diff --git a/dist/main-site/browser/index.html b/dist/main-site/browser/index.html index 9eafa597..babd8d68 100644 --- a/dist/main-site/browser/index.html +++ b/dist/main-site/browser/index.html @@ -63,7 +63,7 @@ - + \ No newline at end of file diff --git a/dist/main-site/browser/main.6215847f929b806c.js b/dist/main-site/browser/main.6215847f929b806c.js deleted file mode 100644 index 0d7a1cb6..00000000 --- a/dist/main-site/browser/main.6215847f929b806c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmain_site=self.webpackChunkmain_site||[]).push([[179],{7397:(ae,k,o)=>{"use strict";o.d(k,{d:()=>a});var t=o(4650),n=o(9816),l=o(6895);function u(D,E){1&D&&t._UZ(0,"br")}let a=(()=>{class D{constructor(d){this.gs=d}ngOnInit(){}get GS(){return this.gs}static#t=this.\u0275fac=function(y){return new(y||D)(t.Y36(n.U))};static#e=this.\u0275cmp=t.Xpm({type:D,selectors:[["app-no-data"]],decls:7,vars:1,consts:[[2,"background-image","url('/assets/img/404/no-data.png')","background-size","contain","background-position","center","background-repeat","no-repeat","height","256px","overflow","hidden"],[1,"row","align-items-center","h-100"],[1,"col-8","mx-auto","text-light","text-center","rounded","py-3",2,"background-color","rgba(128, 128, 128, 0.875)"],[1,"m-0"],[4,"ngIf"]],template:function(y,g){1&y&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),t._uU(4," Tidak Ada Data "),t.YNc(5,u,1,0,"br",4),t._uU(6," \xaf\\_(\u30c4)_/\xaf "),t.qZA()()()()),2&y&&(t.xp6(5),t.Q6J("ngIf",!g.GS.isDesktop))},dependencies:[l.O5]})}return D})()},5208:(ae,k,o)=>{"use strict";o.d(k,{d:()=>l});var t=o(6895),n=o(4650);let l=(()=>{class u{static#t=this.\u0275fac=function(E){return new(E||u)};static#e=this.\u0275mod=n.oAB({type:u});static#i=this.\u0275inj=n.cJS({imports:[t.ez]})}return u})()},5526:(ae,k,o)=>{"use strict";o.d(k,{u:()=>It});var t=o(3659),n=o(1741),l=o(4650),u=o(80),a=o(9816),D=o(7396),E=o(5155),d=o(1390),y=o(6895),g=o(4006),_=o(4363),f=o(9818),v=o(3238),T=o(7392),V=o(8455),B=o(9203),Y=o(6289),L=o(7462);const U=["liveChatScroll"];function nt(gt,te){if(1>&&(l.TgZ(0,"mat-option",17),l._uU(1,"Global Fansubber"),l.qZA()),2>){const Ht=l.oxw(2);l.Q6J("value",Ht.CONSTANTS.socketRoomNameGlobalFansub)}}function K(gt,te){if(1>&&(l.TgZ(0,"div",26)(1,"div",27),l._UZ(2,"img",28),l.qZA(),l.TgZ(3,"div",29)(4,"h4",30)(5,"span"),l._uU(6),l.qZA()()()()),2>){const Ht=l.oxw().$implicit;l.MGl("routerLink","/user/",Ht.value.username,""),l.s9C("matTooltip",Ht.value.username),l.xp6(2),l.s9C("src",Ht.value.image_url,l.LSH),l.xp6(4),l.Oqu(Ht.value.username)}}function Z(gt,te){if(1>&&(l.TgZ(0,"div",24),l.YNc(1,K,7,4,"div",25),l.qZA()),2>){const Ht=te.$implicit;l.xp6(1),l.Q6J("ngIf",Ht.value)}}function tt(gt,te){if(1>&&(l.TgZ(0,"div",22),l.YNc(1,Z,2,1,"div",23),l.ALo(2,"keyvalue"),l.qZA()),2>){const Ht=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",l.lcZ(2,1,Ht.roomCurrentOrGlobal.member_list))}}function mt(gt,te){if(1>){const Ht=l.EpF();l.TgZ(0,"div",13)(1,"div",3)(2,"h3",14)(3,"mat-form-field",15)(4,"mat-label"),l._uU(5,"Ruang Obrolan"),l.qZA(),l.TgZ(6,"mat-select",16),l.NdJ("valueChange",function(Nt){l.CHM(Ht);const Vt=l.oxw();return l.KtG(Vt.liveChatResult.roomId=Nt)})("valueChange",function(Nt){l.CHM(Ht);const Vt=l.oxw();return l.KtG(Vt.changeRoom(Nt))}),l.TgZ(7,"mat-option",17),l._uU(8,"Halaman Ini"),l.qZA(),l.TgZ(9,"mat-option",17),l._uU(10,"Global Publik"),l.qZA(),l.YNc(11,nt,2,1,"mat-option",18),l.qZA()()()(),l.TgZ(12,"div",19)(13,"div",20),l.YNc(14,tt,3,3,"div",21),l.qZA()()()}if(2>){const Ht=l.oxw();l.xp6(3),l.Q6J("color","accent"),l.xp6(3),l.Q6J("value",Ht.liveChatResult.roomId),l.xp6(1),l.Q6J("value",Ht.ROUTER.url.split("?")[0]),l.xp6(2),l.Q6J("value",Ht.CONSTANTS.socketRoomNameGlobalPublic),l.xp6(2),l.Q6J("ngIf",Ht.isAdminModFansubber),l.xp6(3),l.Q6J("ngIf",Ht.roomCurrentOrGlobal)}}function lt(gt,te){if(1>&&(l.TgZ(0,"div",27),l._UZ(1,"img",28),l.qZA()),2>){const Ht=l.oxw().$implicit;l.xp6(1),l.s9C("src",Ht.sender.image_url,l.LSH)}}function ft(gt,te){if(1>){const Ht=l.EpF();l.TgZ(0,"div"),l.YNc(1,lt,2,1,"div",31),l.TgZ(2,"div",32)(3,"h5",33)(4,"span",34),l.NdJ("click",function(){const Vt=l.CHM(Ht).$implicit,xt=l.oxw();return l.KtG(xt.openUserProfile(Vt.sender.username))}),l._uU(5),l.qZA(),l._UZ(6,"span",35),l.qZA()()()}if(2>){const Ht=te.$implicit,Jt=te.index,Nt=l.oxw();l.Gre("d-flex py-1 ",Jt===Nt.chatCurrentOrGlobal.length-Nt.SS.messageChatUnreadCount?"border-top":"",""),l.xp6(1),l.Q6J("ngIf",Ht.sender.image_url),l.xp6(4),l.hij(" ",Ht.sender.username," "),l.xp6(1),l.Q6J("innerHtml",Nt.innerHtml(Ht.message),l.oJD)}}function Yt(gt,te){if(1>){const Ht=l.EpF();l.TgZ(0,"mat-form-field",36)(1,"mat-label"),l._uU(2,"Kirim Pesan Obrolan Disini ..."),l.qZA(),l.TgZ(3,"input",37),l.NdJ("keyup.enter",function(Nt){l.CHM(Ht);const Vt=l.oxw();return l.KtG(Vt.applyFilter(Nt))})("ngModelChange",function(Nt){l.CHM(Ht);const Vt=l.oxw();return l.KtG(Vt.liveChatResult.messageToSend=Nt)}),l.qZA(),l._UZ(4,"mat-icon",38),l.qZA()}if(2>){const Ht=l.oxw();l.Q6J("color","accent"),l.xp6(3),l.Q6J("ngModel",Ht.liveChatResult.messageToSend)("disabled",!Ht.canChat)}}function Rt(gt,te){if(1>){const Ht=l.EpF();l.TgZ(0,"button",39),l.NdJ("click",function(){l.CHM(Ht);const Nt=l.oxw();return l.KtG(Nt.login())}),l._UZ(1,"mat-icon",40),l._uU(2," Login Untuk Bisa Mengobrol "),l.qZA()}}const wt=function(gt){return{height:gt}};let It=(()=>{class gt{constructor(Ht,Jt,Nt,Vt,xt){this.as=Ht,this.gs=Jt,this.ss=Nt,this.ls=Vt,this.router=xt,this.chatOnly=!1,this.liveChatResult={messageToSend:"",roomId:""},this.globalRoom=null,this.fansubRoom=null,this.currentRoom=null,this.messageHistory=[],this.subsCurrentRoom=null,this.subsGlobalRoom=null,this.subsFansubRoom=null,this.firstTimeOpen=!0,this.timedOut=null}get AS(){return this.as}get ROUTER(){return this.router}get SS(){return this.ss}ngOnInit(){if(this.gs.isBrowser){const Ht=this.ls.getItem(this.gs.localStorageKeys.LiveChatResults,!0);if(Ht)for(const[Jt,Nt]of Object.entries(Ht))this.liveChatResult[Jt]=Nt;this.liveChatResult.roomId=this.router.url.split("?")[0],this.subsCurrentRoom=this.ss.currentRoom.subscribe({next:Jt=>{this.currentRoom=Jt}}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:Jt=>{this.globalRoom=Jt}}),this.subsFansubRoom=this.ss.fansubRoom.subscribe({next:Jt=>{this.fansubRoom=Jt}})}}get CONSTANTS(){return t.t}get isAdminModFansubber(){return!(!this.as.currentUserSubject?.value||this.as.currentUserSubject?.value?.role!==n.yS.ADMIN&&this.as.currentUserSubject?.value?.role!==n.yS.MODERATOR&&this.as.currentUserSubject?.value?.role!==n.yS.FANSUBBER)}get roomCurrentOrGlobal(){return this.liveChatResult.roomId===t.t.socketRoomNameGlobalPublic?this.globalRoom:this.liveChatResult.roomId===t.t.socketRoomNameGlobalFansub?this.fansubRoom:this.currentRoom}get chatCurrentOrGlobal(){return this.messageHistory=this.liveChatResult.roomId===t.t.socketRoomNameGlobalPublic?this.ss.globalChatRoom:this.liveChatResult.roomId===t.t.socketRoomNameGlobalFansub?this.ss.fansubChatRoom:this.ss.currentChatRoom,this.ss.messageChatUnreadCount>0&&this.scrollMessage(),this.messageHistory}get canChat(){return!!this.as.currentUserSubject?.value&&(this.liveChatResult.roomId!==t.t.socketRoomNameGlobalFansub||this.isAdminModFansubber)}ngAfterViewInit(){this.gs.isBrowser&&this.scrollMessage()}ngOnDestroy(){this.ls.setItem(this.gs.localStorageKeys.LiveChatResults,this.liveChatResult),this.subsCurrentRoom?.unsubscribe(),this.subsGlobalRoom?.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}innerHtml(Ht){return this.gs.linkify(this.gs.htmlToText(Ht))}scrollToBottom(){this.timedOut=setTimeout(()=>{this.ss.messageChatUnreadCount=0,this.liveChatScroll.nativeElement.scrollTop=this.liveChatScroll.nativeElement.scrollHeight},0)}scrollMessage(){this.liveChatScroll&&(this.firstTimeOpen?(this.firstTimeOpen=!1,this.scrollToBottom()):this.liveChatScroll.nativeElement.scrollTop+this.liveChatScroll.nativeElement.clientHeight===this.liveChatScroll.nativeElement.scrollHeight&&this.scrollToBottom())}sendMessage(){this.ss.socketEmit("send-chat",{roomId:this.roomCurrentOrGlobal.room_id,message:this.gs.htmlToText(this.liveChatResult.messageToSend)}),this.liveChatResult.messageToSend=null}applyFilter(Ht){this.gs.log("[MESSAGE_VALUE_CHANGED]",Ht),this.liveChatResult.messageToSend=Ht.target.value.trim().toLowerCase(),this.liveChatResult.messageToSend&&this.sendMessage()}changeRoom(Ht){this.gs.log("[MESSAGE_ROOM_CHANGED]",Ht),this.liveChatResult.roomId=Ht,this.scrollMessage()}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}openUserProfile(Ht){this.router.navigateByUrl(`/user/${Ht}`)}static#t=this.\u0275fac=function(Jt){return new(Jt||gt)(l.Y36(u.e),l.Y36(a.U),l.Y36(D.R),l.Y36(E.n),l.Y36(d.F0))};static#e=this.\u0275cmp=l.Xpm({type:gt,selectors:[["app-live-chat"]],viewQuery:function(Jt,Nt){if(1&Jt&&l.Gf(U,5),2&Jt){let Vt;l.iGM(Vt=l.CRH())&&(Nt.liveChatScroll=Vt.first)}},inputs:{chatOnly:"chatOnly"},decls:15,vars:13,consts:[[1,"row",3,"ngStyle"],[1,"col-12","h-100"],["class","row","style","height: 40%!important;",4,"ngIf"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12"],[2,"overflow-y","auto",3,"ngStyle"],["liveChatScroll",""],[3,"class",4,"ngFor","ngForOf"],[1,"col-12","mt-auto"],["class","mt-3 col-12",3,"color",4,"ngIf"],["type","button","class","mt-4 col-12 text-light","mat-flat-button","","color","accent",3,"click",4,"ngIf"],[1,"row",2,"height","40%!important"],[1,"border-bottom-dotted","row"],[1,"pt-3","col-12",3,"color"],[3,"value","valueChange"],[3,"value"],[3,"value",4,"ngIf"],[1,"col-12",2,"height","calc(100% - 105px)"],[1,"h-100",2,"overflow-y","auto"],["class","row m-0",4,"ngIf"],[1,"row","m-0"],["class","col-6 p-0",4,"ngFor","ngForOf"],[1,"col-6","p-0"],["class","card d-flex py-1 align-items-center p-1 text-success",3,"routerLink","matTooltip",4,"ngIf"],[1,"card","d-flex","py-1","align-items-center","p-1","text-success",3,"routerLink","matTooltip"],[1,"flex-shrink-0"],["height","24","width","24",1,"ms-1","mt-1",2,"object-fit","cover",3,"src"],[1,"flex-grow-1","mx-1","text-truncate"],["matLine","",1,"m-0","text-truncate"],["class","flex-shrink-0",4,"ngIf"],[1,"flex-grow-1","mx-1","my-auto"],["matLine","",1,"m-0"],[1,"me-1","text-success",2,"cursor","pointer",3,"click"],[1,"text-warning",2,"word-break","break-word",3,"innerHtml"],[1,"mt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. Hello \u4e16\u754c\uff01",3,"ngModel","disabled","keyup.enter","ngModelChange"],["fontIcon","send","matSuffix",""],["type","button","mat-flat-button","","color","accent",1,"mt-4","col-12","text-light",3,"click"],["fontIcon","vpn_key",1,"me-1"]],template:function(Jt,Nt){1&Jt&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,mt,15,6,"div",2),l.TgZ(3,"div",0)(4,"div",3)(5,"h2",4)(6,"b",5),l._uU(7,"Obrolan"),l.qZA()()(),l.TgZ(8,"div",6)(9,"div",7,8),l.YNc(11,ft,7,6,"div",9),l.qZA()(),l.TgZ(12,"div",10),l.YNc(13,Yt,5,3,"mat-form-field",11),l.YNc(14,Rt,3,0,"button",12),l.qZA()()()()),2&Jt&&(l.Q6J("ngStyle",l.VKq(7,wt,Nt.chatOnly?"":"calc(100vh - 120px)")),l.xp6(2),l.Q6J("ngIf",!Nt.chatOnly),l.xp6(1),l.Q6J("ngStyle",l.VKq(9,wt,Nt.chatOnly?"100%!important":"60%!important")),l.xp6(6),l.Q6J("ngStyle",l.VKq(11,wt,Nt.chatOnly?"320px":"calc(50vh - 139px)")),l.xp6(2),l.Q6J("ngForOf",Nt.chatCurrentOrGlobal),l.xp6(2),l.Q6J("ngIf",null==Nt.AS.currentUserSubject?null:Nt.AS.currentUserSubject.value),l.xp6(1),l.Q6J("ngIf",!(null!=Nt.AS.currentUserSubject&&Nt.AS.currentUserSubject.value)))},dependencies:[y.sg,y.O5,y.PC,d.rH,g.Fj,g.JJ,g.nD,g.On,_.CK,f.eB,v.X2,T.Hw,V.v_,V.$V,V.nX,B.k0,Y.x8,L.Kd,y.Nd],styles:[".card[_ngcontent-%COMP%]{position:inherit;display:flex;flex-direction:row;min-width:0;overflow-wrap:anywhere;background-color:#0000!important;background-clip:border-box;border:none;border-radius:.25rem;cursor:pointer}.card[_ngcontent-%COMP%]:hover{color:#ffc107!important}"]})}return gt})()},9221:(ae,k,o)=>{"use strict";o.d(k,{d:()=>D});var t=o(6895),n=o(1390),l=o(4006),u=o(2314),a=o(4650);let D=(()=>{class E{static#t=this.\u0275fac=function(g){return new(g||E)};static#e=this.\u0275mod=a.oAB({type:E});static#i=this.\u0275inj=a.cJS({imports:[t.ez,n.Bz,l.u5,u.m]})}return E})()},5816:(ae,k,o)=>{"use strict";o.d(k,{t:()=>d});var t=o(3659),n=o(4650),l=o(1390),u=o(80),a=o(2693),D=o(9816),E=o(3322);let d=(()=>{class y{constructor(_,f,v,T,V){this.router=_,this.as=f,this.toast=v,this.gs=T,this.bs=V}canActivate(_,f){const v=_.data[t.t.decoratorRoles];if(!v)return!0;if(this.gs.isBrowser){const T=this.as.currentUserSubject?.value;if(T)return!!v.includes(T.role)||(this.bs.clear(),this.toast.error(`Membutuhkan Role :: ${v.join(" / ")}`,"Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl(this.gs.previousUrl||"/"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:f.url}}),!1}static#t=this.\u0275fac=function(f){return new(f||y)(n.LFG(l.F0),n.LFG(u.e),n.LFG(a.k),n.LFG(D.U),n.LFG(E.z))};static#e=this.\u0275prov=n.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},7357:(ae,k,o)=>{"use strict";o.d(k,{H:()=>d});var t=o(3659),n=o(4650),l=o(1390),u=o(80),a=o(2693),D=o(9816),E=o(3322);let d=(()=>{class y{constructor(_,f,v,T,V){this.router=_,this.as=f,this.toast=v,this.gs=T,this.bs=V}canActivate(_,f){if(!_.data[t.t.decoratorVerifiedOnly])return!0;if(this.gs.isBrowser){const T=this.as.currentUserSubject?.value;if(T)return!!T.verified||(this.bs.clear(),this.toast.error("Khusus Pengguna Terverifikasi","Whoops, Akses Ditolak!",null,!0),this.router.navigateByUrl("/verify"),!1);this.bs.clear(),this.toast.error("Harap Login Terlebih Dahulu~","Whoops, Akses Ditolak!",null,!0)}return this.router.navigate(["/login"],{queryParams:{returnUrl:f.url}}),!1}static#t=this.\u0275fac=function(f){return new(f||y)(n.LFG(l.F0),n.LFG(u.e),n.LFG(a.k),n.LFG(D.U),n.LFG(E.z))};static#e=this.\u0275prov=n.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},2314:(ae,k,o)=>{"use strict";o.d(k,{m:()=>It});var t=o(2138),n=o(2447),l=o(2673),u=o(9818),a=o(8377),D=o(9923),E=o(9602),d=o(9095),y=o(4850),g=o(7084),_=o(782),f=o(7392),v=o(9203),T=o(9982),V=o(6255),B=o(3238),Y=o(1597),L=o(1256),U=o(6289),nt=o(3267),K=o(7732),Z=o(8425),tt=o(5558),mt=o(3026),lt=o(3683),ft=o(7462),Yt=o(2972),Rt=o(6308),wt=o(4650);let It=(()=>{class gt{static#t=this.\u0275fac=function(Jt){return new(Jt||gt)};static#e=this.\u0275mod=wt.oAB({type:gt});static#i=this.\u0275inj=wt.cJS({imports:[t.U5,n.D8,l.g,u.yu,a.IF,D.yD,E.FA,d.yj,y.t,g.To,_.N6,f.Ps,v.x4,T.gR,V.jT,B.XK,Y.gf,L.jc,B.si,U.uw,nt.SJ,K.Wd,Z.T5,tt.U5,mt.Nn,lt.g0,ft.AA,Yt.y,Rt.JX]})}return gt})()},7443:(ae,k,o)=>{"use strict";o.d(k,{$:()=>n});var t=o(4650);class n{static#t=this.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};static formatResult(u,a){return`${u} ${a}`}static calculateResult(u,a){const D=u.prev?n.formats[u.prev]:void 0;return D?a/D.max:a}isNumber(u){return"number"==typeof u}isNumberFinite(u){return this.isNumber(u)&&isFinite(u)}isPositive(u){return u>=0}isInteger(u){return u%1==0}toDecimal(u,a){return Math.round(u*Math.pow(10,a))/Math.pow(10,a)}transform(u,a=2,D="B",E){if(!(this.isNumberFinite(u)&&this.isNumberFinite(a)&&this.isInteger(a)&&this.isPositive(a)))return u;let d=u,y=D;for(;"B"!==y;)d*=1024,y=n.formats[y].prev;if(E){const _=this.toDecimal(n.calculateResult(n.formats[E],d),a);return n.formatResult(_,E)}for(const g in n.formats)if(n.formats.hasOwnProperty(g)){const _=n.formats[g];if(d<_.max){const f=this.toDecimal(n.calculateResult(_,d),a);return n.formatResult(f,g)}}}static#e=this.\u0275fac=function(a){return new(a||n)};static#i=this.\u0275pipe=t.Yjl({name:"bytes",type:n,pure:!0})}},3811:(ae,k,o)=>{"use strict";o.d(k,{T:()=>l});var t=o(6895),n=o(4650);let l=(()=>{class u{static#t=this.\u0275fac=function(E){return new(E||u)};static#e=this.\u0275mod=n.oAB({type:u});static#i=this.\u0275inj=n.cJS({imports:[t.ez]})}return u})()},5882:(ae,k,o)=>{"use strict";o.d(k,{H:()=>l});var t=o(4650),n=o(1481);let l=(()=>{class u{constructor(D){this.domSanitizer=D}transform(D){return this.domSanitizer.bypassSecurityTrustHtml(D)}static#t=this.\u0275fac=function(E){return new(E||u)(t.Y36(n.H7,16))};static#e=this.\u0275pipe=t.Yjl({name:"safeInnerHtml",type:u,pure:!0})}return u})()},7141:(ae,k,o)=>{"use strict";o.d(k,{l:()=>a});var t=o(4674),n=o(4650),l=o(9222),u=o(9816);let a=(()=>{class D{constructor(d,y){this.api=d,this.gs=y,this.menuList=[{url:"banned-list",name:"Banned List",image_url:null,icon:"lock_open",deskripsi:"Kelola Banned User"},{url:"ddl-list",name:"DDL Lampiran",image_url:null,icon:"insert_drive_file",deskripsi:"Kelola DDL Lampiran"},{url:"dns",name:"CNAME / A Record",image_url:null,icon:"badge",deskripsi:`sub-domain.${t.N.domain}`},{url:"cors-list",name:"CORS & API Key",image_url:null,icon:"privacy_tip",deskripsi:"Cross-Origin API"},{url:"email",name:"Email",image_url:null,icon:"alternate_email",deskripsi:`email.address@${t.N.domain}`},{url:"fansub-member",name:"Fansub Members",image_url:null,icon:"stars",deskripsi:"Keanggotaan Fansub"},{url:"information",name:"Informasi Dialog",image_url:null,icon:"live_help",deskripsi:"Popup Info Dialog"},{url:"project-type",name:"Project Type",image_url:null,icon:"loyalty",deskripsi:"Kategori Garapan"},{url:"push-notification",name:"Push Notification",image_url:null,icon:"notifications_active",deskripsi:"Pengumuman Dadakan"},{url:"user-list",name:"User List",image_url:null,icon:"supervisor_account",deskripsi:"Seluruh Member"}]}getAllNotif(d="",y=1,g=10,_="",f=""){return this.api.getData(`/notification?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`)}createNotif(d){return this.api.postData("/notification",d)}deleteNotif(d){return this.api.deleteData(`/notification/${d}`)}getAllBanned(d="",y=1,g=10,_="",f=""){return this.api.getData(`/banned?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`)}getBanned(d){return this.api.patchData("/banned",d)}unBan(d){return this.api.deleteData(`/banned/${d}`)}ban(d){return this.api.postData("/banned",d)}proDemote(d){return this.api.postData("/promote",d)}getAllCors(d="",y=1,g=10,_="",f=""){return this.api.getData(`/api-key?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`)}revokeCors(d){return this.api.deleteData(`/api-key/${d}`)}static#t=this.\u0275fac=function(y){return new(y||D)(n.LFG(l.s),n.LFG(u.U))};static#e=this.\u0275prov=n.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},6841:(ae,k,o)=>{"use strict";o.d(k,{o:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}searchAnime(E){return this.api.getData(`/anime?q=${E}`)}getAnime(E){return this.api.getData(`/anime/${E}`)}addNewAnime(E){return this.api.patchData("/anime",E)}getSeasonalAnime(E,d){return this.api.getData(`/anime-seasonal?year=${E}&season=${d}`)}getBerkasAnime(E=[],d="",y=1,g=10,_="",f=""){return this.api.patchData(`/anime-berkas?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`,{id:E})}getFansubAnime(E=[],d=1,y=10){return this.api.patchData(`/anime-fansub?page=${d}&row=${y}`,{id:E})}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},9222:(ae,k,o)=>{"use strict";o.d(k,{s:()=>B});var t=o(529),n=o(4986),l=o(1165),u=o(4482),a=o(8421),D=o(3888),E=o(5403),d=o(9672);const y=(0,D.d)(Y=>function(U=null){Y(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=U});function g(Y,L){const{first:U,each:nt,with:K=_,scheduler:Z=L??n.z,meta:tt=null}=(0,l.q)(Y)?{first:Y}:"number"==typeof Y?{each:Y}:Y;if(null==U&&null==nt)throw new TypeError("No timeout provided.");return(0,u.e)((mt,lt)=>{let ft,Yt,Rt=null,wt=0;const It=gt=>{Yt=(0,d.f)(lt,Z,()=>{try{ft.unsubscribe(),(0,a.Xf)(K({meta:tt,lastValue:Rt,seen:wt})).subscribe(lt)}catch(te){lt.error(te)}},gt)};ft=mt.subscribe((0,E.x)(lt,gt=>{Yt?.unsubscribe(),wt++,lt.next(Rt=gt),nt>0&&It(nt)},void 0,void 0,()=>{Yt?.closed||Yt?.unsubscribe(),Rt=null})),!wt&&It(null!=U?"number"==typeof U?U:+U-Z.now():nt)})}function _(Y){throw new y(Y)}var f=o(5625),v=o(4674),T=o(4650),V=o(9816);let B=(()=>{class Y{constructor(U,nt){this.http=U,this.gs=nt}HTTP_REQ_URL(U){if(U.startsWith("/")){let nt=v.N.baseUrl;U.startsWith("/api/")||(nt+=v.N.apiUrl),U=nt+U}return U}getData(U,nt={},K=2e4,Z=3){return this.gs.log("[API_GET]",U),this.prepareOptions(nt),this.http.get(this.HTTP_REQ_URL(U),nt).pipe(g(K),(0,f.X)(Z))}postData(U,nt={},K=!1,Z={},tt=3e4){this.gs.log("[API_POST]",U);let mt=nt;return K&&(mt=this.prepareFormData(nt)),this.prepareOptions(Z),this.http.post(this.HTTP_REQ_URL(U),mt,Z).pipe(g(tt))}putData(U,nt={},K=!1,Z={},tt=3e4){this.gs.log("[API_PUT]",U);let mt=nt;return K&&(mt=this.prepareFormData(nt)),this.prepareOptions(Z),this.http.put(this.HTTP_REQ_URL(U),mt,Z).pipe(g(tt))}patchData(U,nt={},K=!1,Z={},tt=3e4){this.gs.log("[API_PATCH]",U);let mt=nt;return K&&(mt=this.prepareFormData(nt)),this.prepareOptions(Z),this.http.patch(this.HTTP_REQ_URL(U),mt,Z).pipe(g(tt))}deleteData(U,nt={},K=2e4,Z=3){return this.gs.log("[API_DELETE]",U),this.prepareOptions(nt),this.http.delete(this.HTTP_REQ_URL(U),nt).pipe(g(K),(0,f.X)(Z))}prepareOptions(U){U.headers instanceof t.WM||(U.headers=new t.WM(U.headers))}prepareFormData(U){const nt=new FormData;for(const K in U)U.hasOwnProperty(K)&&nt.append(K,U[K]);return nt}static#t=this.\u0275fac=function(nt){return new(nt||Y)(T.LFG(t.eN),T.LFG(V.U))};static#e=this.\u0275prov=T.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})()},80:(ae,k,o)=>{"use strict";o.d(k,{e:()=>_});var t=o(1135),n=o(8505),l=o(4650),u=o(1390),a=o(9816),D=o(3322),E=o(5155),d=o(9222),y=o(5643),g=o(2693);let _=(()=>{class f{constructor(T,V,B,Y,L,U,nt){this.router=T,this.gs=V,this.bs=B,this.ls=Y,this.api=L,this.cs=U,this.toast=nt,this.currentUserSubject=new t.X(null),this.currentUser=this.currentUserSubject?.asObservable(),this.token=null,this.timeoutNotif=null,this.timeoutToast=null,this.logoutTimerText="",this.intervalLogout=null,this.gs.isBrowser&&(this.token=this.ls.getItem(this.gs.localStorageKeys.Token),this.ls.removeItem(this.gs.localStorageKeys.Token))}verify(T){return this.gs.log("[AUTH_VERIFY]",T),this.api.patchData("/verify",{token:T}).pipe((0,n.b)(V=>{if(this.currentUserSubject?.next(V.result),this.token=V.token,this.token){const Y=new Date(1e3*this.cs.jwtView(this.token).exp).getTime(),L=Y-3e5;this.cleanUpTimeoutInterval(),this.timeoutNotif=setTimeout(()=>{this.timeoutToast=this.toast.warning("Sesi Akun Akan Habis!","Silahkan Logout & Login Ulang ...",{closeButton:!1,timeOut:Y-Date.now(),disableTimeOut:"extendedTimeOut",tapToDismiss:!1,progressAnimation:"decreasing"},!0)},L-Date.now()),this.intervalLogout=setInterval(()=>{const U=Y-Date.now(),nt=Math.floor(U/864e5),K=Math.floor(U%864e5/36e5),Z=Math.floor(U%36e5/6e4),tt=Math.floor(U%6e4/1e3);this.logoutTimerText=`(${nt}:${String(K).padStart(2,"0")}:${String(Z).padStart(2,"0")}:${String(tt).padStart(2,"0")})`,U<0&&(clearInterval(this.intervalLogout),this.intervalLogout=null,this.logoutTimerText="",this.gs.window.location.reload())},1e3)}}))}resendActivation(T){return this.gs.log("[AUTH_ACTIVATION]",T),this.api.postData("/aktivasi",{id:T})}login(T){return this.gs.log("[AUTH_LOGIN]",T),this.api.postData("/login",T).pipe((0,n.b)(V=>{this.token=V.result.token}))}register(T){return this.gs.log("[AUTH_REGISTER]",T),this.api.postData("/register",T)}removeUser(){this.currentUserSubject?.next(null),this.token=null,this.cleanUpTimeoutInterval()}logout(T="/",V=null){this.gs.log("[AUTH_LOGOUT]",this.token),this.bs.busy(),this.api.deleteData("/logout").subscribe({next:B=>{this.gs.log("[LOGOUT_SUCCESS]",B),this.bs.idle(),this.removeUser(),this.ls.clear(),this.router.navigate([T],V)},error:B=>{this.gs.log("[LOGOUT_ERROR]",B,"error"),this.cleanUpTimeoutInterval(),this.bs.idle()}})}cleanUpTimeoutInterval(){this.timeoutNotif&&(clearTimeout(this.timeoutNotif),this.timeoutNotif=null),this.timeoutToast&&(this.toast.remove(this.timeoutToast.toastId),this.timeoutToast=null),this.intervalLogout&&(clearInterval(this.intervalLogout),this.intervalLogout=null,this.logoutTimerText="")}static#t=this.\u0275fac=function(V){return new(V||f)(l.LFG(u.F0),l.LFG(a.U),l.LFG(D.z),l.LFG(E.n),l.LFG(d.s),l.LFG(y.$),l.LFG(g.k))};static#e=this.\u0275prov=l.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},1428:(ae,k,o)=>{"use strict";o.d(k,{A:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}delete(E){return this.api.deleteData(`/berkas/${E}`)}getAllBerkas(E="",d=1,y=10,g="",_="",f){return this.api.getData(`/berkas?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}${f?"&r18=true":""}`)}getBerkas(E){return this.api.getData(`/berkas/${E}`)}createBerkas(E){return this.api.postData("/berkas",E)}updateBerkas(E,d){return this.api.putData(`/berkas/${E}`,d)}checkTrusted(E=[]){return this.api.patchData("/berkas-trusted",{id:E})}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},3322:(ae,k,o)=>{"use strict";o.d(k,{z:()=>a});var t=o(7579),n=o(4650),l=o(8423),u=o(9816);let a=(()=>{class D{constructor(d,y){this.spinnerService=d,this.gs=y,this.cancelPendingRequests$=new t.x,this.busyRequestCount=0,this.timedOut=null}get onCancelPendingRequests(){return this.cancelPendingRequests$.asObservable()}busy(){this.gs.isBrowser&&(this.busyRequestCount<=0&&this.spinnerService.show(),this.busyRequestCount++,this.gs.log("[BUSY_STATE_COUNTER_BUSY]",this.busyRequestCount),this.timedOut&&clearTimeout(this.timedOut),this.timedOut=setTimeout(()=>{this.clear(),this.timedOut=null},6e4))}idle(){this.gs.isBrowser&&(this.busyRequestCount--,this.busyRequestCount<=0&&(this.busyRequestCount=0,this.spinnerService.hide()),this.gs.log("[BUSY_STATE_COUNTER_IDLE]",this.busyRequestCount))}clear(){if(this.gs.isBrowser)for(;this.busyRequestCount>0;)this.idle(),this.cancelPendingRequests$.next()}static#t=this.\u0275fac=function(y){return new(y||D)(n.LFG(l.t2),n.LFG(u.U))};static#e=this.\u0275prov=n.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},5643:(ae,k,o)=>{"use strict";o.d(k,{$:()=>E});var t=o(3172),n=o(7206),u=o(4674),a=o(4650),D=o(9816);let E=(()=>{class d{constructor(g){this.gs=g,this.keySize=256,this.ivSize=128,this.iterations=100}universalBtoa(g){return this.convertToBase64(g)}universalAtob(g){return this.convertFromBase64(g)}convertToBase64(g){return this.convertEncoding(g).toString("base64")}convertFromBase64(g){return this.convertEncoding(g,"base64").toString()}convertEncoding(g,_=null){return _?t.lW.from(g,_):t.lW.from(g)}msgEncrypt(g,_=u.N.apiKey){const f=n.lib.WordArray.random(16),v=(0,n.PBKDF2)(_,f,{keySize:this.keySize/32,iterations:this.iterations}),T=n.lib.WordArray.random(16),V=n.AES.encrypt(g,v,{iv:T,padding:n.pad.Pkcs7,mode:n.mode.CBC});return f.toString()+T.toString()+V.toString()}msgDecrypt(g,_=u.N.apiKey){const f=n.enc.Hex.parse(g.substr(0,32)),v=n.enc.Hex.parse(g.substr(32,32)),T=g.substring(64),V=(0,n.PBKDF2)(_,f,{keySize:this.keySize/32,iterations:this.iterations});return n.AES.decrypt(T,V,{iv:v,padding:n.pad.Pkcs7,mode:n.mode.CBC}).toString(n.enc.Utf8)}hashPassword(g){return(0,n.SHA512)(g).toString()}jwtView(g){const f=g.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),v=decodeURIComponent(this.universalAtob(f).split("").map(T=>"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(v)}static#t=this.\u0275fac=function(_){return new(_||d)(a.LFG(D.U))};static#e=this.\u0275prov=a.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},2970:(ae,k,o)=>{"use strict";o.d(k,{x:()=>Ka});var t=o(5861),n=o(6805);function l(Gt,Ge){const Kt="object"==typeof Ge;return new Promise((Re,Le)=>{let Ai,pi=!1;Gt.subscribe({next:Bi=>{Ai=Bi,pi=!0},error:Le,complete:()=>{pi?Re(Ai):Kt?Re(Ge.defaultValue):Le(new n.K)}})})}var u=o(9095),a=o(4650),D=o(9816),E=o(6895),d=o(9818),y=o(5882);const g=["htmlElementContentDialog"];function _(Gt,Ge){if(1&Gt&&(a.TgZ(0,"small",7)(1,"i"),a._uU(2),a.qZA()()),2&Gt){const Kt=a.oxw();a.xp6(2),a.hij("* ",Kt.DATA.infoText,"")}}function f(Gt,Ge){if(1&Gt&&(a.TgZ(0,"button",8),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw();a.Q6J("mat-dialog-close",!1),a.xp6(1),a.hij(" ",Kt.DATA.cancelText," ")}}let v=(()=>{class Gt{constructor(Kt,Re){this.data=Kt,this.gs=Re,this.buttonDisabled=!1}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data)}ngAfterViewInit(){this.checkOverflow()&&(this.buttonDisabled=!0)}onScroll(Kt){this.gs.log("[MOUSE_SCROLL]",Kt),this.buttonDisabled=!(Kt.target.offsetHeight+Kt.target.scrollTop>=Kt.target.scrollHeight-1)}checkOverflow(){const Kt=this.el.nativeElement,Re=Kt.style.overflow;(!Re||"visible"===Re)&&(Kt.style.overflow="hidden");const Le=Kt.clientWidth{class Gt{constructor(Kt,Re){this.data=Kt,this.gs=Re,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA"}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"hiragana_katakana_kanji"in this.data&&this.data.hiragana_katakana_kanji&&(this.charToDraw=this.data.hiragana_katakana_kanji)}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}play(){this.dmak.render()}pause(){this.dmak.pause()}next(){this.pause(),this.dmak.renderNextStrokes(1)}back(){this.pause(),this.dmak.eraseLastStrokes(1)}reset(){this.pause(),this.dmak.erase()}static#t=this.\u0275fac=function(Re){return new(Re||Gt)(a.Y36(u.eJ),a.Y36(D.U))};static#e=this.\u0275cmp=a.Xpm({type:Gt,selectors:[["app-material-dialog-dmak"]],viewQuery:function(Re,Le){if(1&Re&&a.Gf(B,5),2&Re){let pi;a.iGM(pi=a.CRH())&&(Le.dmakElement=pi.first)}},decls:10,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],["id","dmakElement",1,"text-center"],["dmakElement",""],["mat-dialog-actions",""],["type","button","mat-button","","matTooltip","Back",1,"ms-auto",3,"click"],["fontIcon","chevron_left"],["type","button","mat-button","","matTooltip","Next",3,"click"],["fontIcon","chevron_right"]],template:function(Re,Le){1&Re&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a._UZ(3,"div",2,3),a.qZA(),a.TgZ(5,"div",4)(6,"button",5),a.NdJ("click",function(){return Le.back()}),a._UZ(7,"mat-icon",6),a.qZA(),a.TgZ(8,"button",7),a.NdJ("click",function(){return Le.next()}),a._UZ(9,"mat-icon",8),a.qZA()()),2&Re&&(a.xp6(1),a.hij("Cara Penulisan '",Le.DATA.romaji,"'"))},dependencies:[d.eB,u.YS,u.Rb,u.ev,T.Hw,V.Kd]})}return Gt})();function L(Gt){return null===Gt?"null":Gt!==Object(Gt)?typeof Gt:{}.toString.call(Gt).slice(8,-1).toLowerCase()}function U(Gt){return"string"!==L(Gt)||!Gt.length}const tt_HEPBURN="hepburn",mt={useObsoleteKana:!1,passRomaji:!1,upcaseKatakana:!1,IMEMode:!1,convertLongVowelMark:!0,romanization:tt_HEPBURN},gt=12353,Ht=12449,Jt=12540,xt=12540,zt=12539;var H=Number.isNaN||function(Ge){return"number"==typeof Ge&&Ge!=Ge};function C(Gt,Ge){return!!(Gt===Ge||H(Gt)&&H(Ge))}function ut(Gt,Ge){if(Gt.length!==Ge.length)return!1;for(var Kt=0;KtObject.assign({},mt,Gt);function $e(Gt,Ge,Kt){const Re=Ge;function pi(Bi,$i){const xn=Bi.charAt(0);return Ai(Object.assign({"":xn},Re[xn]),Bi.slice(1),$i,$i+1)}function Ai(Bi,$i,xn,zn){if(!$i)return Kt||1===Object.keys(Bi).length?Bi[""]?[[xn,zn,Bi[""]]]:[]:[[xn,zn,null]];if(1===Object.keys(Bi).length)return[[xn,zn,Bi[""]]].concat(pi($i,zn));const Xn=function Le(Bi,$i){if(void 0!==Bi[$i])return Object.assign({"":Bi[""]+$i},Bi[$i])}(Bi,$i.charAt(0));return void 0===Xn?[[xn,zn,Bi[""]]].concat(pi($i,zn)):Ai(Xn,$i.slice(1),xn,zn+1)}return pi(Gt,0)}function vi(Gt){return Object.entries(Gt).reduce((Ge,[Kt,Re])=>{const Le="string"===L(Re);return Ge[Kt]=Le?{"":Re}:vi(Re),Ge},{})}function mi(Gt,Ge){return Ge.split("").reduce((Kt,Re)=>(void 0===Kt[Re]&&(Kt[Re]={}),Kt[Re]),Gt)}function ki(Gt={}){const Ge={};return"object"===L(Gt)&&Object.entries(Gt).forEach(([Kt,Re])=>{let Le=Ge;Kt.split("").forEach(pi=>{void 0===Le[pi]&&(Le[pi]={}),Le=Le[pi]}),Le[""]=Re}),function(Re){return function pi(Ai,Bi){return void 0===Ai||"string"===L(Ai)?Bi:Object.entries(Bi).reduce(($i,[xn,zn])=>($i[xn]=pi(Ai[xn],zn),$i),Ai)}(JSON.parse(JSON.stringify(Re)),Ge)}}function Ri(Gt,Ge){return Ge?"function"===L(Ge)?Ge(Gt):ki(Ge)(Gt):Gt}const fe={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u304a",k:{a:"\u304b",i:"\u304d",u:"\u304f",e:"\u3051",o:"\u3053"},s:{a:"\u3055",i:"\u3057",u:"\u3059",e:"\u305b",o:"\u305d"},t:{a:"\u305f",i:"\u3061",u:"\u3064",e:"\u3066",o:"\u3068"},n:{a:"\u306a",i:"\u306b",u:"\u306c",e:"\u306d",o:"\u306e"},h:{a:"\u306f",i:"\u3072",u:"\u3075",e:"\u3078",o:"\u307b"},m:{a:"\u307e",i:"\u307f",u:"\u3080",e:"\u3081",o:"\u3082"},y:{a:"\u3084",u:"\u3086",o:"\u3088"},r:{a:"\u3089",i:"\u308a",u:"\u308b",e:"\u308c",o:"\u308d"},w:{a:"\u308f",i:"\u3090",e:"\u3091",o:"\u3092"},g:{a:"\u304c",i:"\u304e",u:"\u3050",e:"\u3052",o:"\u3054"},z:{a:"\u3056",i:"\u3058",u:"\u305a",e:"\u305c",o:"\u305e"},d:{a:"\u3060",i:"\u3062",u:"\u3065",e:"\u3067",o:"\u3069"},b:{a:"\u3070",i:"\u3073",u:"\u3076",e:"\u3079",o:"\u307c"},p:{a:"\u3071",i:"\u3074",u:"\u3077",e:"\u307a",o:"\u307d"},v:{a:"\u3094\u3041",i:"\u3094\u3043",u:"\u3094",e:"\u3094\u3047",o:"\u3094\u3049"}},dt={".":"\u3002",",":"\u3001",":":"\uff1a","/":"\u30fb","!":"\uff01","?":"\uff1f","~":"\u301c","-":"\u30fc","\u2018":"\u300c","\u2019":"\u300d","\u201c":"\u300e","\u201d":"\u300f","[":"\uff3b","]":"\uff3d","(":"\uff08",")":"\uff09","{":"\uff5b","}":"\uff5d"},j={k:"\u304d",s:"\u3057",t:"\u3061",n:"\u306b",h:"\u3072",m:"\u307f",r:"\u308a",g:"\u304e",z:"\u3058",d:"\u3062",b:"\u3073",p:"\u3074",v:"\u3094",q:"\u304f",f:"\u3075"},z={ya:"\u3083",yi:"\u3043",yu:"\u3085",ye:"\u3047",yo:"\u3087"},bt={a:"\u3041",i:"\u3043",u:"\u3045",e:"\u3047",o:"\u3049"},Tt={sh:"sy",ch:"ty",cy:"ty",chy:"ty",shy:"sy",j:"zy",jy:"zy",shi:"si",chi:"ti",tsu:"tu",ji:"zi",fu:"hu"},ge=Object.assign({tu:"\u3063",wa:"\u308e",ka:"\u30f5",ke:"\u30f6"},bt,z),Je={yi:"\u3044",wu:"\u3046",ye:"\u3044\u3047",wi:"\u3046\u3043",we:"\u3046\u3047",kwa:"\u304f\u3041",whu:"\u3046",tha:"\u3066\u3083",thu:"\u3066\u3085",tho:"\u3066\u3087",dha:"\u3067\u3083",dhu:"\u3067\u3085",dho:"\u3067\u3087"},di={wh:"\u3046",qw:"\u304f",q:"\u304f",gw:"\u3050",sw:"\u3059",ts:"\u3064",th:"\u3066",tw:"\u3068",dh:"\u3067",dw:"\u3069",fw:"\u3075",f:"\u3075"},Ee={kwi:"\u304f\u3043",kuxi:"\u304f\u3043",kuli:"\u304f\u3043",kwe:"\u304f\u3047",kuxe:"\u304f\u3047",kule:"\u304f\u3047",kwo:"\u304f\u3049",kuxo:"\u304f\u3049",kulo:"\u304f\u3049"};function Ve(){const Gt=vi(fe),Ge=Le=>mi(Gt,Le);function Re(Le){return Object.entries(Le).reduce((pi,[Ai,Bi])=>(pi[Ai]=Ai?Re(Bi):`\u3063${Bi}`,pi),{})}return Object.entries(j).forEach(([Le,pi])=>{Object.entries(z).forEach(([Ai,Bi])=>{Ge(Le+Ai)[""]=pi+Bi})}),Object.entries(dt).forEach(([Le,pi])=>{Ge(Le)[""]=pi}),Object.entries(Ee).forEach(([Le,pi])=>{Ge(Le)[""]=pi}),Object.entries(di).forEach(([Le,pi])=>{Object.entries(bt).forEach(([Ai,Bi])=>{Ge(Le+Ai)[""]=pi+Bi})}),["n","n'","xn"].forEach(Le=>{Ge(Le)[""]="\u3093"}),Gt.c=JSON.parse(JSON.stringify(Gt.k)),Object.entries(Tt).forEach(([Le,pi])=>{const Ai=Le.slice(0,Le.length-1),Bi=Le.charAt(Le.length-1);Ge(Ai)[Bi]=JSON.parse(JSON.stringify(Ge(pi)))}),Object.entries(ge).forEach(([Le,pi])=>{const Ai=Xn=>Xn.charAt(Xn.length-1),Bi=Xn=>Xn.slice(0,Xn.length-1),xn=Ge(`x${Le}`);xn[""]=pi,Ge(`l${Bi(Le)}`)[Ai(Le)]=xn,function Kt(Le){return[...Object.entries(Tt),["c","k"]].reduce((pi,[Ai,Bi])=>Le.startsWith(Bi)?pi.concat(Le.replace(Bi,Ai)):pi,[])}(Le).forEach(Xn=>{["l","x"].forEach(aa=>{Ge(aa+Bi(Xn))[Ai(Xn)]=Ge(aa+Le)})})}),Object.entries(Je).forEach(([Le,pi])=>{Ge(Le)[""]=pi}),[...Object.keys(j),"c","y","w","j"].forEach(Le=>{const pi=Gt[Le];pi[Le]=Re(pi)}),delete Gt.n.n,Object.freeze(JSON.parse(JSON.stringify(Gt)))}let X=null;const Et=ki({wi:"\u3090",we:"\u3091"});function gi(Gt=""){return!U(Gt)&&Gt.charCodeAt(0)===xt}function ye(Gt=""){return function nt(Gt="",Ge,Kt){if(U(Gt))return!1;const Re=Gt.charCodeAt(0);return Ge<=Re&&Re<=Kt}(Gt,Ht,Jt)}Ct((Gt,Ge,Kt)=>{let Re=function Ot(){return null==X&&(X=Ve()),X}();return Re=Gt?function ce(Gt){const Ge=JSON.parse(JSON.stringify(Gt));return Ge.n.n={"":"\u3093"},Ge.n[" "]={"":"\u3093"},Ge}(Re):Re,Re=Ge?Et(Re):Re,Kt&&(Re=Ri(Re,Kt)),Re},ie);const $t=(Gt,Ge)=>gi(Gt)&&Ge<1,_e=(Gt,Ge)=>gi(Gt)&&Ge>0,Ke=Gt=>["\u30f6","\u30f5"].includes(Gt),fi={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u3046"};function xi(Gt="",Ge,{isDestinationRomaji:Kt,convertLongVowelMark:Re}={}){let Le="";return Gt.split("").reduce((pi,Ai,Bi)=>{if(function Ei(Gt=""){return!U(Gt)&&Gt.charCodeAt(0)===zt}(Ai)||$t(Ai,Bi)||Ke(Ai))return pi.concat(Ai);if(Re&&Le&&_e(Ai,Bi)){const $i=Ge(Le).slice(-1);return ye(Gt[Bi-1])&&"o"===$i&&Kt?pi.concat("\u304a"):pi.concat(fi[$i])}if(!gi(Ai)&&ye(Ai)){const $i=Ai.charCodeAt(0)+(gt-Ht),xn=String.fromCharCode($i);return Le=xn,pi.concat(xn)}return Le="",pi.concat(Ai)},[]).join("")}let zi=null;const qi={\u3042:"a",\u3044:"i",\u3046:"u",\u3048:"e",\u304a:"o",\u304b:"ka",\u304d:"ki",\u304f:"ku",\u3051:"ke",\u3053:"ko",\u3055:"sa",\u3057:"shi",\u3059:"su",\u305b:"se",\u305d:"so",\u305f:"ta",\u3061:"chi",\u3064:"tsu",\u3066:"te",\u3068:"to",\u306a:"na",\u306b:"ni",\u306c:"nu",\u306d:"ne",\u306e:"no",\u306f:"ha",\u3072:"hi",\u3075:"fu",\u3078:"he",\u307b:"ho",\u307e:"ma",\u307f:"mi",\u3080:"mu",\u3081:"me",\u3082:"mo",\u3089:"ra",\u308a:"ri",\u308b:"ru",\u308c:"re",\u308d:"ro",\u3084:"ya",\u3086:"yu",\u3088:"yo",\u308f:"wa",\u3090:"wi",\u3091:"we",\u3092:"wo",\u3093:"n",\u304c:"ga",\u304e:"gi",\u3050:"gu",\u3052:"ge",\u3054:"go",\u3056:"za",\u3058:"ji",\u305a:"zu",\u305c:"ze",\u305e:"zo",\u3060:"da",\u3062:"ji",\u3065:"zu",\u3067:"de",\u3069:"do",\u3070:"ba",\u3073:"bi",\u3076:"bu",\u3079:"be",\u307c:"bo",\u3071:"pa",\u3074:"pi",\u3077:"pu",\u307a:"pe",\u307d:"po",\u3094\u3041:"va",\u3094\u3043:"vi",\u3094:"vu",\u3094\u3047:"ve",\u3094\u3049:"vo"},gn={"\u3002":".","\u3001":",","\uff1a":":","\u30fb":"/","\uff01":"!","\uff1f":"?","\u301c":"~",\u30fc:"-","\u300c":"\u2018","\u300d":"\u2019","\u300e":"\u201c","\u300f":"\u201d","\uff3b":"[","\uff3d":"]","\uff08":"(","\uff09":")","\uff5b":"{","\uff5d":"}","\u3000":" "},_n=["\u3042","\u3044","\u3046","\u3048","\u304a","\u3084","\u3086","\u3088"],Wn={\u3083:"ya",\u3085:"yu",\u3087:"yo"},Cn={\u3043:"yi",\u3047:"ye"},$n={\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},vr=["\u304d","\u306b","\u3072","\u307f","\u308a","\u304e","\u3073","\u3074","\u3094","\u304f","\u3075"],dr={\u3057:"sh",\u3061:"ch",\u3058:"j",\u3062:"j"},Or={\u3063:"",\u3083:"ya",\u3085:"yu",\u3087:"yo",\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},Kn={b:"b",c:"t",d:"d",f:"f",g:"g",h:"h",j:"j",k:"k",m:"m",p:"p",q:"q",r:"r",s:"s",t:"t",v:"v",w:"w",x:"x",z:"z"};function Ga(){return null==zi&&(zi=function Ba(){const Gt=vi(qi),Ge=Re=>mi(Gt,Re),Kt=(Re,Le)=>{Ge(Re)[""]=Le};return Object.entries(gn).forEach(([Re,Le])=>{Ge(Re)[""]=Le}),[...Object.entries(Wn),...Object.entries($n)].forEach(([Re,Le])=>{Kt(Re,Le)}),vr.forEach(Re=>{const Le=Ge(Re)[""][0];Object.entries(Wn).forEach(([pi,Ai])=>{Kt(Re+pi,Le+Ai)}),Object.entries(Cn).forEach(([pi,Ai])=>{Kt(Re+pi,Le+Ai)})}),Object.entries(dr).forEach(([Re,Le])=>{Object.entries(Wn).forEach(([pi,Ai])=>{Kt(Re+pi,Le+Ai[1])}),Kt(`${Re}\u3043`,`${Le}yi`),Kt(`${Re}\u3047`,`${Le}e`)}),Gt.\u3063=ha(Gt),Object.entries(Or).forEach(([Re,Le])=>{Kt(Re,Le)}),_n.forEach(Re=>{Kt(`\u3093${Re}`,`n'${Ge(Re)[""]}`)}),Object.freeze(JSON.parse(JSON.stringify(Gt)))}()),zi}function ha(Gt){return Object.entries(Gt).reduce((Ge,[Kt,Re])=>{if(Kt)Ge[Kt]=ha(Re);else{const Le=Re.charAt(0);Ge[Kt]=Object.keys(Kn).includes(Le)?Kn[Le]+Re:Re}return Ge},{})}const Ur=Ct((Gt,Ge)=>{let Kt=function xr(Gt){return Gt===tt_HEPBURN?Ga():{}}(Gt);return Ge&&(Kt=Ri(Kt,Ge)),Kt},ie);function Hr(Gt="",Ge={},Kt){const Re=He(Ge);return Kt||(Kt=Ur(Re.romanization,Re.customRomajiMapping)),function Vr(Gt,Ge,Kt){Kt||(Kt=Ur(Ge.romanization,Ge.customRomajiMapping));return $e(xi(Gt,Hr,Object.assign({},{isDestinationRomaji:!0},Ge)),Kt,!Ge.IMEMode)}(Gt,Re,Kt).map(Le=>{const[pi,Ai,Bi]=Le;return Re.upcaseKatakana&&function kt(Gt=""){return!U(Gt)&&[...Gt].every(ye)}(Gt.slice(pi,Ai))?Bi.toUpperCase():Bi}).join("")}var fa=o(3235),ga=o(3238),_a=o(9982),ba=o(7397);const va=["dmakElement"];function Ta(Gt,Ge){if(1&Gt&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&Gt){const Kt=Ge.$implicit,Re=a.oxw();a.xp6(1),a.AsE(" ",Kt," (",Re.getRomaji(Kt),") ")}}function Ua(Gt,Ge){if(1&Gt&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&Gt){const Kt=Ge.$implicit,Re=a.oxw();a.xp6(1),a.AsE(" ",Kt," (",Re.getRomaji(Kt),") ")}}function to(Gt,Ge){if(1&Gt){const Kt=a.EpF();a.TgZ(0,"mat-list-option",25),a.NdJ("click",function(){const pi=a.CHM(Kt).$implicit,Ai=a.oxw(2);return a.KtG(Ai.openVocab(pi))}),a.TgZ(1,"h4",26),a._uU(2),a.qZA(),a.TgZ(3,"h5",27),a._uU(4),a.qZA(),a.TgZ(5,"p",28),a._uU(6),a.qZA()()}if(2&Gt){const Kt=Ge.$implicit,Re=a.oxw(2);a.xp6(2),a.Oqu(Kt.kanji),a.xp6(2),a.AsE("",Kt.reading," (",Re.getRomaji(Kt.reading),")"),a.xp6(2),a.Oqu(Kt.meaning)}}function nr(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div")(1,"mat-selection-list",23),a.YNc(2,to,7,4,"mat-list-option",24),a.qZA()()),2&Gt){const Kt=a.oxw();a.xp6(1),a.Q6J("multiple",!1),a.xp6(1),a.Q6J("ngForOf",Kt.edict)}}function Qr(Gt,Ge){1&Gt&&a._UZ(0,"app-no-data")}function ar(Gt,Ge){if(1&Gt){const Kt=a.EpF();a.TgZ(0,"div",29)(1,"button",30),a.NdJ("click",function(){a.CHM(Kt);const Le=a.oxw();return a.KtG(Le.loadNextPage())}),a._uU(2,"Load More ..."),a.qZA()()}}let ra=(()=>{class Gt{constructor(Kt,Re,Le){this.data=Kt,this.nihon=Re,this.gs=Le,this.dmak=null,this.dmakUrl="/assets/kanji/",this.charToDraw="NO DATA",this.edict=[],this.page=1,this.pageFinished=!1,this.subsEdict=null}get DATA(){return this.data}getRomaji(Kt){return Hr(Kt)}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data),"character"in this.data&&this.data.character&&(this.charToDraw=this.data.character),this.loadEdict()}ngOnDestroy(){this.subsEdict?.unsubscribe()}ngAfterViewInit(){this.dmak=new Dmak(this.charToDraw,{element:"dmakElement",uri:this.dmakUrl,stroke:{order:{visible:!0},attr:{active:"#f44336",stroke:"#28a745"}}})}loadEdict(){this.subsEdict=this.nihon.getAllEdict(this.charToDraw,this.page).subscribe({next:Kt=>{this.gs.log("[EDICT_LIST_SUCCESS]",Kt),this.edict=[...this.edict,...Kt.results],Kt.results.length<=0&&(this.pageFinished=!0)},error:Kt=>{this.gs.log("[EDICT_LIST_ERROR]",Kt,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.loadEdict())}openVocab(Kt){this.gs.log("[EDICT_LIST_CLICK_VOCAB]",Kt)}static#t=this.\u0275fac=function(Re){return new(Re||Gt)(a.Y36(u.eJ),a.Y36(fa.a),a.Y36(D.U))};static#e=this.\u0275cmp=a.Xpm({type:Gt,selectors:[["app-material-dialog-edict"]],viewQuery:function(Re,Le){if(1&Re&&a.Gf(va,5),2&Re){let pi;a.iGM(pi=a.CRH())&&(Le.dmakElement=pi.first)}},decls:42,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break"],[1,"row"],[1,"col-md-4","col-xl-3"],[1,"row","sticky-top","p-3"],[1,"col-12"],["id","dmakElement",1,"text-center"],["dmakElement",""],[1,"col-12","mt-3"],[1,"text-warning"],[1,"text-truncate"],[1,"text-success"],[1,"text-truncate","mt-3"],[1,"text-success","m-0"],[4,"ngFor","ngForOf"],[1,"col-md-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],[1,"text-bifeldy"],[4,"ngIf"],["class","col-12 text-center p-3",4,"ngIf"],["mat-dialog-actions",""],["type","button","mat-button","",1,"ms-auto",3,"mat-dialog-close"],[3,"multiple"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"px-3"],["matLine","",1,"px-3","text-success"],["matLine","",1,"px-3","text-warning"],[1,"col-12","text-center","p-3"],["type","button","mat-button","",3,"click"]],template:function(Re,Le){1&Re&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),a._UZ(7,"div",6,7),a.qZA(),a.TgZ(9,"div",8)(10,"p",9),a._uU(11),a.qZA()(),a.TgZ(12,"div",5)(13,"div",10),a._uU(14," JLPT Level :: "),a.TgZ(15,"span",11),a._uU(16),a.qZA()(),a.TgZ(17,"div",10),a._uU(18," School Level :: "),a.TgZ(19,"span",11),a._uU(20),a.qZA()(),a.TgZ(21,"div",12),a._uU(22," Kunyomi :: "),a.TgZ(23,"ul",13),a.YNc(24,Ta,2,2,"li",14),a.qZA()(),a.TgZ(25,"div",10),a._uU(26," Onyomi :: "),a.TgZ(27,"ul",13),a.YNc(28,Ua,2,2,"li",14),a.qZA()()()()(),a.TgZ(29,"div",15)(30,"div",2)(31,"div",16)(32,"h2",17)(33,"b",18),a._uU(34,"Kosa Kata"),a.qZA()()(),a.TgZ(35,"div",5),a.YNc(36,nr,3,2,"div",19),a.YNc(37,Qr,1,0,"app-no-data",19),a.qZA(),a.YNc(38,ar,3,0,"div",20),a.qZA()()()(),a.TgZ(39,"div",21)(40,"button",22),a._uU(41,"Tutup"),a.qZA()()),2&Re&&(a.xp6(1),a.hij("Kamus Dictionary '",Le.DATA.character,"'"),a.xp6(10),a.Oqu(Le.DATA.translate),a.xp6(5),a.hij("N",Le.DATA.jlpt,""),a.xp6(4),a.Oqu(Le.DATA.school),a.xp6(4),a.Q6J("ngForOf",Le.DATA.v_kunyomi.split(",")),a.xp6(4),a.Q6J("ngForOf",Le.DATA.v_onyomi.split(",")),a.xp6(8),a.Q6J("ngIf",Le.edict.length>0),a.xp6(1),a.Q6J("ngIf",Le.edict.length<=0),a.xp6(1),a.Q6J("ngIf",!Le.pageFinished),a.xp6(2),a.Q6J("mat-dialog-close",!0))},dependencies:[E.sg,E.O5,d.eB,u.aO,u.YS,u.Rb,u.ev,ga.X2,_a.kh,_a.O$,ba.d]})}return Gt})();var un=o(4006),On=o(3659),Zn=o(3322),ya=o(7245),Jn=o(1390),Tr=o(8455),xa=o(9203),jr=o(5128),rr=o(7443);function Aa(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div"),a._uU(1),a.ALo(2,"bytes"),a.qZA()),2&Gt){const Kt=a.oxw(2);a.xp6(1),a.hij("Ukuran Upload Melebihi Batas ",a.lcZ(2,1,Kt.imageLimitExceeded)," !")}}function or(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div"),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw(2);a.xp6(1),a.Oqu(Kt.imageErrorText)}}function mr(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Gambar Wajib Ada!"),a.qZA())}function Cr(Gt,Ge){if(1&Gt){const Kt=a.EpF();a.TgZ(0,"div",7)(1,"button",25),a.NdJ("click",function(){a.CHM(Kt);const Le=a.oxw(2);return a.KtG(Le.submitImage())}),a._UZ(2,"mat-icon",26),a._uU(3," Unggah "),a.qZA()()}if(2&Gt){const Kt=a.oxw(2);a.xp6(1),a.Q6J("disabled",Kt.submitted)}}function $a(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Kana Tidak Boleh Kosong"),a.qZA())}function Sa(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Kana Hanya Boleh Huruf Jepang"),a.qZA())}function Ji(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Romaji Tidak Boleh Kosong"),a.qZA())}function Jr(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Romaji Hanya Boleh Huruf Standar Papan Ketik"),a.qZA())}function pt(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Arti Tidak Boleh Kosong"),a.qZA())}function ht(Gt,Ge){1&Gt&&(a.TgZ(0,"div"),a._uU(1,"Arti Hanya Boleh Huruf Standar Papan Ketik"),a.qZA())}function Q(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div",5)(1,"div",27),a._uU(2," Last Edit By :: "),a.TgZ(3,"a",28),a._uU(4),a.qZA()()()),2&Gt){const Kt=a.oxw(2);a.xp6(3),a.MGl("routerLink","/user/",null==Kt.DATA.dataset||null==Kt.DATA.dataset.user_?null:Kt.DATA.dataset.user_.username,""),a.xp6(1),a.hij(" ",null==Kt.DATA.dataset||null==Kt.DATA.dataset.user_?null:Kt.DATA.dataset.user_.username," ")}}function qt(Gt,Ge){if(1&Gt){const Kt=a.EpF();a.TgZ(0,"form",4)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7),a._UZ(5,"img",8),a.TgZ(6,"mat-form-field",9)(7,"mat-label"),a._uU(8,"Gambar"),a.qZA(),a.TgZ(9,"ngx-mat-file-input",10,11),a.NdJ("change",function(Le){a.CHM(Kt);const pi=a.MAs(10),Ai=a.oxw();return a.KtG(Ai.uploadImage(Le,pi))}),a.qZA(),a._UZ(11,"mat-icon",12),a.qZA(),a.TgZ(12,"mat-error",13)(13,"small"),a.YNc(14,Aa,3,3,"div",14),a.YNc(15,or,2,1,"div",14),a.YNc(16,mr,2,0,"div",14),a.qZA()()(),a.YNc(17,Cr,4,1,"div",15),a.qZA()(),a.TgZ(18,"div",16)(19,"div",5)(20,"mat-form-field",17)(21,"mat-label"),a._uU(22,"Kana"),a.qZA(),a._UZ(23,"input",18)(24,"mat-icon",19),a.TgZ(25,"mat-error"),a.YNc(26,$a,2,0,"div",14),a.YNc(27,Sa,2,0,"div",14),a.qZA()(),a.TgZ(28,"mat-form-field",17)(29,"mat-label"),a._uU(30,"Romaji"),a.qZA(),a._UZ(31,"input",20)(32,"mat-icon",21),a.TgZ(33,"mat-error"),a.YNc(34,Ji,2,0,"div",14),a.YNc(35,Jr,2,0,"div",14),a.qZA()(),a.TgZ(36,"mat-form-field",17)(37,"mat-label"),a._uU(38,"Arti Terjemahan"),a.qZA(),a._UZ(39,"input",22)(40,"mat-icon",23),a.TgZ(41,"mat-error"),a.YNc(42,pt,2,0,"div",14),a.YNc(43,ht,2,0,"div",14),a.qZA()()(),a.YNc(44,Q,5,2,"div",24),a.qZA()()()}if(2&Gt){const Kt=a.oxw();a.Q6J("formGroup",Kt.fg),a.xp6(5),a.Q6J("src",Kt.image_url,a.LSH),a.xp6(1),a.Q6J("color","accent"),a.xp6(3),a.Q6J("disabled",Kt.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),a.xp6(5),a.Q6J("ngIf",Kt.imageLimitExceeded),a.xp6(1),a.Q6J("ngIf",Kt.imageErrorText),a.xp6(1),a.Q6J("ngIf",Kt.fg.get("image").hasError("required")),a.xp6(1),a.Q6J("ngIf",Kt.image&&!Kt.fg.value.image),a.xp6(3),a.Q6J("color","accent"),a.xp6(6),a.Q6J("ngIf",Kt.fg.get("kana").hasError("required")),a.xp6(1),a.Q6J("ngIf",Kt.fg.get("kana").hasError("pattern")),a.xp6(1),a.Q6J("color","accent"),a.xp6(6),a.Q6J("ngIf",Kt.fg.get("romaji").hasError("required")),a.xp6(1),a.Q6J("ngIf",Kt.fg.get("romaji").hasError("pattern")),a.xp6(1),a.Q6J("color","accent"),a.xp6(6),a.Q6J("ngIf",Kt.fg.get("meaning").hasError("required")),a.xp6(1),a.Q6J("ngIf",Kt.fg.get("meaning").hasError("pattern")),a.xp6(1),a.Q6J("ngIf",null==Kt.DATA.dataset?null:Kt.DATA.dataset.user_)}}function si(Gt,Ge){if(1&Gt&&(a.TgZ(0,"button",32),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw(2);a.Q6J("mat-dialog-close",null),a.xp6(1),a.hij(" ",Kt.DATA.cancelText," ")}}function Ii(Gt,Ge){if(1&Gt){const Kt=a.EpF();a.TgZ(0,"div",29)(1,"button",30),a.NdJ("click",function(){a.CHM(Kt);const Le=a.oxw();return a.KtG(Le.saveData())}),a._uU(2),a.qZA(),a.YNc(3,si,2,2,"button",31),a.qZA()}if(2&Gt){const Kt=a.oxw();a.xp6(1),a.Q6J("disabled",Kt.submitted||Kt.fg.invalid||!Kt.fg.dirty),a.xp6(1),a.hij(" ",Kt.DATA.confirmText," "),a.xp6(1),a.Q6J("ngIf",Kt.DATA.cancelText)}}let er=(()=>{class Gt{constructor(Kt,Re,Le,pi,Ai,Bi,$i){this.fb=Kt,this.bs=Re,this.imgbb=Le,this.nihongo=pi,this.dialogRef=Ai,this.data=Bi,this.gs=$i,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.image_url_original=null,this.gambar=null,this.subsNihongo=null,this.subsImgbb=null}get DATA(){return this.data}ngOnInit(){this.gs.isBrowser&&(this.gs.log("[DIALOG_DATA_IN]",this.data),this.initForm(this.data?.dataset))}ngOnDestroy(){this.subsImgbb?.unsubscribe(),this.subsNihongo?.unsubscribe()}initForm(Kt){this.fg=this.fb.group({kana:[Kt?.kana,un.kI.compose([un.kI.required,un.kI.pattern(On.t.regexJapaneseKeyboardKeys)])],romaji:[Kt?.romaji,un.kI.compose([un.kI.required,un.kI.pattern(On.t.regexEnglishKeyboardKeys)])],meaning:[Kt?.meaning,un.kI.compose([un.kI.required,un.kI.pattern(On.t.regexEnglishKeyboardKeys)])],category:[Kt?.category||this.data.modeTampilan,un.kI.compose([un.kI.required,un.kI.pattern(On.t.regexEnglishKeyboardKeys)])],image:[null,un.kI.compose([un.kI.pattern(On.t.regexUrl)])]}),Kt?this.image_url=Kt?.image_url:this.fg.controls.image.setValidators([un.kI.required,un.kI.pattern(On.t.regexEnglishKeyboardKeys)]),this.image_url_original=this.image_url}uploadImage(Kt,Re){this.gambar=Re,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const Le=Kt.target.files[0];try{const pi=new FileReader;pi.readAsDataURL(Le),pi.onload=Ai=>{if(this.gs.log("[IMAGE_SELECTED]",Ai),Le.size<=On.t.fileSizeImageLimit){const Bi=this.gs.document.createElement("img");Bi.onload=()=>{this.image=Le,this.image_url=pi.result.toString()},Bi.src=pi.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=On.t.fileSizeImageLimit,this.gambar.clear(Kt)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(Kt)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:Kt=>{this.gs.log("[IMAGE_SUCCESS]",Kt),this.fg.controls.image.patchValue(Kt.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:Kt=>{this.gs.log("[IMAGE_ERROR]",Kt,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=Kt.result?.message||Kt.info}})}saveData(){this.bs.busy(),this.submitted=!0;let Kt=null;if(this.data?.dataset&&(Kt=this.gs.getDirtyValues(this.fg),this.gs.log("[NIHONGO_ADD_OR_EDIT_DIRTY]",Kt)),this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNihongo=Kt?this.nihongo.updateNihongo(this.data.dataset.id,{...Kt}):this.nihongo.createNihongo({image:this.fg.value.image,kana:this.fg.value.kana,romaji:this.fg.value.romaji,meaning:this.fg.value.meaning,category:this.fg.value.category}),this.subsNihongo=this.subsNihongo.subscribe({next:Re=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_SUCCESS]",Re),this.submitted=!1,this.bs.idle(),this.dialogRef.close(Re)},error:Re=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_ERROR]",Re,"error"),this.submitted=!1,this.bs.idle()}})}static#t=this.\u0275fac=function(Re){return new(Re||Gt)(a.Y36(un.QS),a.Y36(Zn.z),a.Y36(ya.X),a.Y36(fa.a),a.Y36(u.hV),a.Y36(u.eJ),a.Y36(D.U))};static#e=this.\u0275cmp=a.Xpm({type:Gt,selectors:[["app-material-dialog-belajar"]],decls:5,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[1,"col-12"],[1,"w-100","border",3,"src"],["appearance","outline",1,"pt-3","w-100",3,"color"],[1,"w-100",3,"disabled","accept","change"],["gambar",""],["fontIcon","image","matSuffix",""],[1,"px-3","pb-3","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","","formControlName","kana","placeholder","\u8910\u8272"],["fontIcon","translate","matSuffix",""],["matInput","","formControlName","romaji","placeholder","Kasshoku"],["fontIcon","text_fields","matSuffix",""],["matInput","","formControlName","meaning","placeholder","Coklat"],["fontIcon","g_translate","matSuffix",""],["class","row",4,"ngIf"],["type","button","mat-raised-button","","color","primary","type","button",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],[1,"col","text-end"],[1,"text-success",2,"text-decoration","none",3,"routerLink"],["mat-dialog-actions",""],["type","button","mat-button","",1,"ms-auto","text-success",3,"disabled","click"],["type","button","mat-button","",3,"mat-dialog-close",4,"ngIf"],["type","button","mat-button","",3,"mat-dialog-close"]],template:function(Re,Le){1&Re&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,qt,45,19,"form",2),a.qZA(),a.YNc(4,Ii,4,3,"div",3)),2&Re&&(a.xp6(1),a.AsE("",Le.DATA.title," '",Le.DATA.dataset?Le.DATA.dataset.kana:Le.DATA.modeTampilan,"'"),a.xp6(2),a.Q6J("ngIf",Le.fg),a.xp6(1),a.Q6J("ngIf",Le.fg))},dependencies:[E.O5,Jn.rH,d.eB,u.aO,u.YS,u.Rb,u.ev,T.Hw,Tr.nI,Tr.v_,Tr.$V,Tr.nX,xa.k0,un._Y,un.Fj,un.JJ,un.JL,un.sg,un.u,jr.Yh,rr.$]})}return Gt})();function ni(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div"),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw().$implicit;a.xp6(1),a.hij("",Kt.value.inputLabel," Tidak Boleh Kosong")}}function rn(Gt,Ge){if(1&Gt&&(a.TgZ(0,"div"),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw().$implicit;a.xp6(1),a.hij("",Kt.value.inputLabel," Hanya Boleh Huruf Standar Papan Ketik")}}function kr(Gt,Ge){if(1&Gt&&(a.TgZ(0,"mat-form-field",9)(1,"mat-label"),a._uU(2),a.qZA(),a._UZ(3,"input",10)(4,"mat-icon",11),a.TgZ(5,"mat-error"),a.YNc(6,ni,2,1,"div",12),a.YNc(7,rn,2,1,"div",12),a.qZA()()),2&Gt){const Kt=Ge.$implicit,Re=a.oxw(2);a.Q6J("color","accent"),a.xp6(2),a.Oqu(Kt.value.inputLabel),a.xp6(1),a.s9C("placeholder",Kt.value.inputPlaceholder),a.Q6J("formControlName",Kt.key)("required",Kt.value.inputRequired),a.xp6(3),a.Q6J("ngIf",Re.fg.get(Kt.key).hasError("required")),a.xp6(1),a.Q6J("ngIf",Re.fg.get(Kt.key).hasError("pattern"))}}function Ia(Gt,Ge){if(1&Gt&&(a.TgZ(0,"form",7),a.YNc(1,kr,8,7,"mat-form-field",8),a.ALo(2,"keyvalue"),a.qZA()),2&Gt){const Kt=a.oxw();a.Q6J("formGroup",Kt.fg),a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,2,Kt.DATA.input))}}function ur(Gt,Ge){if(1&Gt&&(a.TgZ(0,"small",13)(1,"i"),a._uU(2),a.qZA()()),2&Gt){const Kt=a.oxw();a.xp6(2),a.hij("* ",Kt.DATA.infoText,"")}}function Oa(Gt,Ge){if(1&Gt&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&Gt){const Kt=a.oxw();a.Q6J("mat-dialog-close",!1),a.xp6(1),a.hij(" ",Kt.DATA.cancelText," ")}}let Xr=(()=>{class Gt{constructor(Kt,Re,Le){this.data=Kt,this.fb=Re,this.gs=Le}get DATA(){return this.data}get BALIKAN(){return this.fg.value}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data);const Kt={};for(const[Re,Le]of Object.entries(this.data.input)){const pi=[un.kI.pattern(On.t.regexEnglishKeyboardKeys)];Le.inputRequired&&pi.push(un.kI.required),Kt[Re]=[Le.inputValue,un.kI.compose(pi)]}this.fg=this.fb.group(Kt)}static#t=this.\u0275fac=function(Re){return new(Re||Gt)(a.Y36(u.eJ),a.Y36(un.QS),a.Y36(D.U))};static#e=this.\u0275cmp=a.Xpm({type:Gt,selectors:[["app-material-dialog-input"]],decls:9,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning"],[3,"formGroup",4,"ngIf"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["type","button","mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close","disabled"],["type","button","mat-button","",3,"mat-dialog-close",4,"ngIf"],[3,"formGroup"],["appearance","outline","class","p-3 col-12",3,"color",4,"ngFor","ngForOf"],["appearance","outline",1,"p-3","col-12",3,"color"],["matInput","",3,"formControlName","placeholder","required"],["fontIcon","wysiwyg","matSuffix",""],[4,"ngIf"],[1,"text-start","m-2"],["type","button","mat-button","",3,"mat-dialog-close"]],template:function(Re,Le){1&Re&&(a.TgZ(0,"h1",0),a._uU(1),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,Ia,3,4,"form",2),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,ur,3,1,"small",4),a.TgZ(6,"button",5),a._uU(7),a.qZA(),a.YNc(8,Oa,2,2,"button",6),a.qZA()),2&Re&&(a.xp6(1),a.Oqu(Le.DATA.title),a.xp6(2),a.Q6J("ngIf",Le.fg),a.xp6(2),a.Q6J("ngIf",Le.DATA.infoText),a.xp6(1),a.Q6J("mat-dialog-close",Le.BALIKAN)("disabled",Le.fg.invalid),a.xp6(1),a.hij(" ",Le.DATA.confirmText," "),a.xp6(1),a.Q6J("ngIf",Le.DATA.cancelText))},dependencies:[E.sg,E.O5,d.eB,u.aO,u.YS,u.Rb,u.ev,T.Hw,Tr.nI,Tr.v_,Tr.$V,Tr.nX,xa.k0,un._Y,un.Fj,un.JJ,un.JL,un.Q7,un.sg,un.u,E.Nd]})}return Gt})();var Rr=o(1092);let Ka=(()=>{class Gt{constructor(Kt,Re,Le){this.dialog=Kt,this.gs=Re,this.info=Le,this.maxWidth="80vw",this.gs.isBrowser&&(this.maxWidth=4===this.gs.gridListBreakpoint?"45vw":3===this.gs.gridListBreakpoint?"50vw":2===this.gs.gridListBreakpoint?"60vw":"80vw")}openInputDialog(Kt){return"disableClose"in Kt||(Kt.disableClose=!0),this.dialog.open(Xr,Kt)}openInfoDialog(Kt){return"disableClose"in Kt||(Kt.disableClose=!0),"maxWidth"in Kt||(Kt.maxWidth=this.maxWidth),this.dialog.open(v,Kt)}openDmakDialog(Kt){return"disableClose"in Kt||(Kt.disableClose=!0),this.dialog.open(Y,Kt)}openEdictDialog(Kt){return"disableClose"in Kt||(Kt.disableClose=!0),this.dialog.open(ra,Kt)}openBelajarDialog(Kt){return"disableClose"in Kt||(Kt.disableClose=!0),this.dialog.open(er,Kt)}leavePageDialog(){var Kt=this;return(0,t.Z)(function*(){return(yield Kt.openKonfirmasiDialog("Batal & Keluar","Apakah Yakin Meninggalkan Halaman Ini ?")).afterClosed()})()}openKonfirmasiDialog(Kt,Re,Le=!0){var pi=this;return(0,t.Z)(function*(){return pi.openInfoDialog({data:{title:Kt,htmlMessage:Re,confirmText:"Ya",cancelText:"Tidak"},disableClose:Le,maxWidth:pi.maxWidth})})()}fetchInformationRegisterMode(Kt,Re=!1){var Le=this;return(0,t.Z)(function*(){try{const pi=yield l(Le.info.getInfo(Kt.id));Kt.data.title=pi.result.title,Kt.data.htmlMessage=pi.result.content,Kt.disableClose=pi.result.close,Re&&(Kt.data.confirmText=pi.result.confirm,Kt.data.cancelText=pi.result.cancel,Kt.disableClose=!0)}catch(pi){Le.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",pi.error,"error")}return Le.openInfoDialog(Kt)})()}fetchInformation(Kt){var Re=this;return(0,t.Z)(function*(){try{const Le=yield l(Re.info.getInfo(Kt.id));Kt.data.title=Le.result.title,Kt.data.htmlMessage=Le.result.content,Kt.data.confirmText=Le.result.confirm,Kt.data.cancelText=Le.result.cancel,Kt.disableClose=Le.result.close}catch(Le){Re.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",Le.error,"error")}})()}openMaintenanceDialog(){var Kt=this;return(0,t.Z)(function*(){const Re={id:"MAINTENANCE",data:{title:"Informasi Perbaikan Web & Server",htmlMessage:"Gagal Memuat Perbaikan Web & Server",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:Kt.maxWidth};return yield Kt.fetchInformation(Re),Kt.openInfoDialog(Re)})()}openCorsExtension(){var Kt=this;return(0,t.Z)(function*(){const Re={id:"CORS-EXTENSION",data:{title:"Ekstensi CORS Unblock",htmlMessage:"Gagal Memuat Metode Verifikasi",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1,maxWidth:Kt.maxWidth};return yield Kt.fetchInformation(Re),Kt.openInfoDialog(Re)})()}openDonation(){var Kt=this;return(0,t.Z)(function*(){const Re={id:"DONASI",data:{title:"Donasi Perawatan Server",htmlMessage:"Gagal Memuat Rincian Donasi",confirmText:"Tutup",cancelText:null},disableClose:!1,maxWidth:Kt.maxWidth};return yield Kt.fetchInformation(Re),Kt.openInfoDialog(Re)})()}static#t=this.\u0275fac=function(Re){return new(Re||Gt)(a.LFG(u.on),a.LFG(D.U),a.LFG(Rr.O))};static#e=this.\u0275prov=a.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"})}return Gt})()},642:(ae,k,o)=>{"use strict";o.d(k,{X:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}searchDorama(E,d=""){return this.api.getData(`/dorama?q=${E}&type=${d}`)}getDorama(E){return this.api.getData(`/dorama/${E}`)}addNewDorama(E){return this.api.patchData("/dorama",E)}getSeasonalDorama(E,d){return this.api.getData(`/dorama-seasonal?year=${E}&season=${d}`)}getBerkasDorama(E=[],d="",y=1,g=10,_="",f=""){return this.api.patchData(`/dorama-berkas?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`,{id:E})}getFansubDorama(E=[],d=1,y=10){return this.api.patchData(`/dorama-fansub?page=${d}&row=${y}`,{id:E})}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},5312:(ae,k,o)=>{"use strict";o.d(k,{r:()=>a});var t=o(4650),n=o(1390),l=o(9816),u=o(8151);let a=(()=>{class D{constructor(d,y,g){this.router=d,this.gs=y,this.wb=g,this.isHidden=!0,this.newTab=!0,this.targetUrl=null,this.backgroundImage=null,this.backgroundIcon=null,this.tooltipText=null}toggleFab(){this.isHidden=!this.isHidden}showFab(){this.isHidden=!1}hideFab(){this.isHidden=!0}removeFab(){this.isHidden=!0,this.tooltipText=null,this.backgroundIcon=null,this.backgroundImage=null,this.targetUrl=null,this.newTab=null}initializeFab(d,y,g,_,f){this.backgroundIcon=d,this.backgroundImage=y,this.tooltipText=g,this.targetUrl=_,this.newTab=f,this.isHidden=!1}setTooltipText(d){this.tooltipText=d}setNewTab(d){this.newTab=d}setTargetUrl(d){this.targetUrl=d}setBackgroundImage(d){this.backgroundImage=d}setBackgroundIcon(d){this.backgroundIcon=d}buttonClicked(){this.newTab?this.wb.winboxOpenUri(this.targetUrl):this.router.navigateByUrl(this.targetUrl)}static#t=this.\u0275fac=function(y){return new(y||D)(t.LFG(n.F0),t.LFG(l.U),t.LFG(u.N))};static#e=this.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},3842:(ae,k,o)=>{"use strict";o.d(k,{T:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}delete(E){return this.api.deleteData(`/fansub/${E}`)}searchFansub(E="",d=1,y=10,g="",_=""){return this.api.getData(`/fansub?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}createFansub(E){return this.api.postData("/fansub",E)}updateFansub(E,d){return this.api.putData(`/fansub/${E}`,d)}getFansub(E){return this.api.getData(`/fansub/${E}`)}getAllFansub(){return this.api.getData("/fansub-all")}cekSlug(E){return this.api.patchData("/fansub-slug",E)}getBerkasFansub(E=[],d="",y=1,g=10,_="",f=""){return this.api.patchData(`/fansub-berkas?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`,{id:E})}getAnimeFansub(E=[],d=1,y=10){return this.api.patchData(`/fansub-anime?page=${d}&row=${y}`,{id:E})}getDoramaFansub(E=[],d=1,y=10){return this.api.patchData(`/fansub-dorama?page=${d}&row=${y}`,{id:E})}getRssFeedFansubAll(E=!1,d="",y=1,g=10,_="",f=""){return this.api.getData(`/fansub-rss-feed?q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}&summary=${E?"true":""}`)}getRssFeedFansub(E){return this.api.getData(`/fansub/${E}/rss`)}getFansubMember(E){return this.api.getData(`/fansub/${E}/member`)}getAllFansubMember(E="",d=1,y=10,g="",_=""){return this.api.getData(`/fansub-member?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}requestJoinFansubMember(E){return this.api.postData("/fansub-member",E)}approveRejectFansubMember(E,d){return this.api.putData(`/fansub-member/${E}`,d)}leaveFansubMember(E){return this.api.deleteData(`/fansub-member/${E}`)}getAllSubDomain(E="",d=1,y=12,g="",_=""){return this.api.getData(`/fansub-dns?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}claimSubDomain(E){return this.api.postData("/fansub-dns",E)}getSubDomain(E){return this.api.getData(`/fansub-dns/${E}`)}updateSubDomain(E,d){return this.api.putData(`/fansub-dns/${E}`,d)}revokeDomain(E){return this.api.deleteData(`/fansub-dns/${E}`)}checkInternetPositif(E=[]){return this.api.patchData("/fansub-internet-positif",{id:E})}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},9816:(ae,k,o)=>{"use strict";o.d(k,{U:()=>so});var t=o(4650),n=o(6895),l=o(9521),u=o(5126);function Nt(it){if(null==it||"object"!=typeof it)return!1;let de=Object.getPrototypeOf(it);return!(null!==de&&de!==Object.prototype&&null!==Object.getPrototypeOf(de)||Symbol.iterator in it||Symbol.toStringTag in it)}function xt(it){return"string"==typeof it}function P(it){return Number.isSafeInteger(it)&&it>=0}function we(it){return null!=it}u();var Ce=o(3639);function je(it){var de=-1,Se=null==it?0:it.length;for(this.__data__=new Ce.Z;++de-1},mi=function vi(it,de,Se){for(var Ye=-1,ui=null==it?0:it.length;++Ye0){if(++de>=Gi)return arguments[0]}else de=0;return it.apply(void 0,arguments)}}(Xe.Z?function(it,de){return(0,Xe.Z)(it,"toString",{configurable:!0,enumerable:!1,value:ce(de),writable:!0})}:Je);var nn=o(8706),In=o(214);const wn=function Un(it,de){return jn(function X(it,de,Se){return de=Ve(void 0===de?it.length-1:de,0),function(){for(var Ye=arguments,ui=-1,Ze=Ve(Ye.length-de,0),Ci=Array(Ze);++ui=200&&(Ze=j,Ci=!1,de=new ei(de));t:for(;++ui=Ye?it:function q(it,de,Se){var Ye=-1,ui=it.length;de<0&&(de=-de>ui?0:ui+de),(Se=Se>ui?ui:Se)<0&&(Se+=ui),ui=de>Se?0:Se-de>>>0,de>>>=0;for(var Ze=Array(ui);++Ye-1;);return Se}(Ye,ui),Ci=function ti(it,de){for(var Se=it.length;Se--&&ie(de,it[Se],0)>-1;);return Se}(Ye,ui)+1;return ue(Ye,Ze,Ci).join("")};var va=o(2221),to={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function nr(it,de){if(!Array.isArray(it)||!it.length)return it;let Ye,ui,Se={...to,...de};if(Se.strictlyTwoElementsInRangeArrays&&!it.every((pe,Li)=>!(!Array.isArray(pe)||2!==pe.length)||(Ye=Li,ui=pe.length,!1)))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${Ye}th range (${JSON.stringify(it[Ye],null,4)}) has not two but ${ui} elements!`);if(!it.every((pe,Li)=>!(!Array.isArray(pe)||!Number.isInteger(pe[0])||pe[0]<0||!Number.isInteger(pe[1])||pe[1]<0)||(Ye=Li,!1)))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${Ye}th range (${JSON.stringify(it[Ye],null,4)}) does not consist of only natural numbers!`);let Ze=it.length**2,Ci=0;return Array.from(it).sort((pe,Li)=>(Se.progressFn&&(Ci+=1,Se.progressFn(Math.floor(100*Ci/Ze))),pe[0]===Li[0]?pe[1]Li[1]?1:0:pe[0]Yi).length)return it;Ze=Array.isArray(de)&&Number.isInteger(de[0])&&Number.isInteger(de[1])?[Array.from(de)]:Array.from(de);let Ci=Ze.length,pe=0;Ze.filter(Yi=>Yi).forEach((Yi,En)=>{if(Se&&(Ye=Math.floor(pe/Ci*10),Ye!==ui&&(ui=Ye,Se(Ye))),!Array.isArray(Yi))throw new TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${En}th element not an array: ${JSON.stringify(Yi,null,4)}, which is ${typeof Yi}`);if(!Number.isInteger(Yi[0])){if(!Number.isInteger(+Yi[0])||+Yi[0]<0)throw new TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${En}th element, array ${JSON.stringify(Yi,null,0)}. Its first element is not an integer, string index, but ${typeof Yi[0]}, equal to: ${JSON.stringify(Yi[0],null,4)}.`);Ze[En][0]=+Ze[En][0]}if(!Number.isInteger(Yi[1])){if(!Number.isInteger(+Yi[1])||+Yi[1]<0)throw new TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${En}th element, array ${JSON.stringify(Yi,null,0)}. Its second element is not an integer, string index, but ${typeof Yi[1]}, equal to: ${JSON.stringify(Yi[1],null,4)}.`);Ze[En][1]=+Ze[En][1]}pe+=1});let Li=function un(it,de){function Se(ri){return!!ri&&"object"==typeof ri&&!Array.isArray(ri)}if(!Array.isArray(it)||!it.length)return null;let Ye;if(de){if(!Se(de))throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:\n${JSON.stringify(de,null,4)} (type ${typeof de})`);if(Ye={...ra,...de},Ye.progressFn&&Se(Ye.progressFn)&&!Object.keys(Ye.progressFn).length)Ye.progressFn=null;else if(Ye.progressFn&&"function"!=typeof Ye.progressFn)throw new Error(`ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "${typeof Ye.progressFn}", equal to ${JSON.stringify(Ye.progressFn,null,4)}`);if(![1,2,"1","2"].includes(Ye.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof Ye.mergeType}", equal to ${JSON.stringify(Ye.mergeType,null,4)}`);if("boolean"!=typeof Ye.joinRangesThatTouchEdges)throw new Error(`ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof Ye.joinRangesThatTouchEdges}", equal to ${JSON.stringify(Ye.joinRangesThatTouchEdges,null,4)}`)}else Ye={...ra};let Ze,Ci,pe,ui=it.filter(ri=>Array.isArray(ri)).map(ri=>[...ri]).filter(ri=>void 0!==ri[2]||ri[0]!==ri[1]);Ze=Ye.progressFn?nr(ui,{progressFn:ri=>{pe=Math.floor(ri/5),pe!==Ci&&(Ci=pe,Ye.progressFn(pe))}}):nr(ui);let Li=Ze.length-1;for(let ri=Li;ri>0;ri--)Ye.progressFn&&(pe=Math.floor(78*(1-ri/Li))+21,pe!==Ci&&pe>Ci&&(Ci=pe,Ye.progressFn(pe))),(Ze[ri][0]<=Ze[ri-1][0]||!Ye.joinRangesThatTouchEdges&&Ze[ri][0]=Ze[ri][0]||Ze[ri-1][1]<=Ze[ri][1])&&null!==Ze[ri-1][2]&&(null===Ze[ri][2]&&null!==Ze[ri-1][2]?Ze[ri-1][2]=null:null!=Ze[ri-1][2]?2==+Ye.mergeType&&Ze[ri-1][0]===Ze[ri][0]?Ze[ri-1][2]=Ze[ri][2]:Ze[ri-1][2]+=Ze[ri][2]:Ze[ri-1][2]=Ze[ri][2]),Ze.splice(ri,1),ri=Ze.length);return Ze.length?Ze:null}(Ze,{progressFn:Yi=>{Se&&(Ye=10+Math.floor(Yi/10),Ye!==ui&&(ui=Ye,Se(Ye)))}});!function ya(it,de){if(!it){if(On)throw new Error(Zn);var Se="function"==typeof de?de():de,Ye=Se?"".concat(Zn,": ").concat(Se):Zn;throw new Error(Ye)}}(Li);let ri=Li.length;if(ri>0){let Yi=it.slice(Li[ri-1][1]);it=Li.reduce((En,hr,wi,Tn)=>(Se&&(Ye=20+Math.floor(wi/ri*80),Ye!==ui&&(ui=Ye,Se(Ye))),`${En}${it.slice(0===wi?0:Tn[wi-1][1],Tn[wi][0])}${Tn[wi][2]||""}`),""),it+=Yi}return it}function Aa(it,de=1){let Se="\xa0";function Ye(Ze){return Array.from(Ze).reverse().join("")}function ui(Ze,Ci,pe){let Li=pe?"\n":"\r",ri=pe?"\r":"\n";if(!Ze)return Ze;let Yi=0,En=0,hr="";for(let wi=0,Tn=Ze.length;wi=0&&(Ze=+de);let Ci="",pe="";if(it.trim()){if(!it[0].trim())for(let Li=0,ri=it.length;LiArray.isArray(Ze)))return void it.forEach(Ze=>{Array.isArray(Ze)&&this.add(...Ze)});it.length&&P(+it[0])&&P(+it[1])&&this.add(...it)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(it,null,0)}) but second-one, "to" is not (${JSON.stringify(de,null,0)})`)}if(!we(it)&&we(de))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(de,null,0)}) but first-one, "from" is not (${JSON.stringify(it,null,0)})`);let Ye=+it,ui=+de;if(P(Se)&&(Se=String(Se)),!P(Ye)||!P(ui))throw P(Ye)&&Ye>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof ui}" equal to: ${JSON.stringify(ui,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof Ye}" equal to: ${JSON.stringify(Ye,null,4)}`);if(we(Se)&&!xt(Se)&&!P(Se))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof Se}, equal to:\n${JSON.stringify(Se,null,4)}`);if(we(this.ranges)&&Array.isArray(this.last())&&Ye===this.last()[1]){if(this.last()[1]=ui,this.last(),null!==this.last()[2]&&we(Se)){let Ze=!this.last()[2]||!this.last()[2].length||this.opts?.mergeType&&1!==this.opts.mergeType?Se:`${this.last()[2]}${Se}`;this.opts.limitToBeAddedWhitespace&&(Ze=Aa(Ze,this.opts.limitLinebreaksCount)),xt(Ze)&&!Ze.length||(this.last()[2]=Ze)}}else{this.ranges||(this.ranges=[]);let Ze=void 0===Se||xt(Se)&&!Se.length?[Ye,ui]:[Ye,ui,Se&&this.opts.limitToBeAddedWhitespace?Aa(Se,this.opts.limitLinebreaksCount):Se];this.ranges.push(Ze)}}push(it,de,Se){this.add(it,de,Se)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=function Cr(it,de){function Se(ri){return!!ri&&"object"==typeof ri&&!Array.isArray(ri)}if(!Array.isArray(it)||!it.length)return null;let Ye;if(de){if(!Se(de))throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:\n${JSON.stringify(de,null,4)} (type ${typeof de})`);if(Ye={...mr,...de},Ye.progressFn&&Se(Ye.progressFn)&&!Object.keys(Ye.progressFn).length)Ye.progressFn=null;else if(Ye.progressFn&&"function"!=typeof Ye.progressFn)throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof Ye.progressFn}", equal to ${JSON.stringify(Ye.progressFn,null,4)}`);if(![1,2,"1","2"].includes(Ye.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof Ye.mergeType}", equal to ${JSON.stringify(Ye.mergeType,null,4)}`);if("boolean"!=typeof Ye.joinRangesThatTouchEdges)throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof Ye.joinRangesThatTouchEdges}", equal to ${JSON.stringify(Ye.joinRangesThatTouchEdges,null,4)}`)}else Ye={...mr};let Ze,Ci,pe,ui=it.filter(ri=>Array.isArray(ri)).map(ri=>[...ri]).filter(ri=>void 0!==ri[2]||ri[0]!==ri[1]);Ze=Ye.progressFn?nr(ui,{progressFn:ri=>{pe=Math.floor(ri/5),pe!==Ci&&(Ci=pe,Ye.progressFn(pe))}}):nr(ui);let Li=Ze.length-1;for(let ri=Li;ri>0;ri--)Ye.progressFn&&(pe=Math.floor(78*(1-ri/Li))+21,pe!==Ci&&pe>Ci&&(Ci=pe,Ye.progressFn(pe))),(Ze[ri][0]<=Ze[ri-1][0]||!Ye.joinRangesThatTouchEdges&&Ze[ri][0]=Ze[ri][0]||Ze[ri-1][1]<=Ze[ri][1])&&null!==Ze[ri-1][2]&&(null===Ze[ri][2]&&null!==Ze[ri-1][2]?Ze[ri-1][2]=null:null!=Ze[ri-1][2]?2==+Ye.mergeType&&Ze[ri-1][0]===Ze[ri][0]?Ze[ri-1][2]=Ze[ri][2]:Ze[ri-1][2]+=Ze[ri][2]:Ze[ri-1][2]=Ze[ri][2]),Ze.splice(ri,1),ri=Ze.length);return Ze.length?Ze:null}(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(it=>we(it[2])?[it[0],it[1],Aa(it[2],this.opts.limitLinebreaksCount)]:it):this.ranges):null}wipe(){this.ranges=[]}replace(it){if(Array.isArray(it)&&it.length){if(!Array.isArray(it[0])||!P(it[0][0]))throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(it[0],null,4)} should be an array and its first element should be an integer, a string index.`);this.ranges=Array.from(it)}else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}},Q=(u(),"\xa0");function Ii(it,de=0){return function si({str:it,idx:de=0,stopAtNewlines:Se=!1,stopAtRawNbsp:Ye=!1}){if("string"!=typeof it||!it.length||((!de||"number"!=typeof de)&&(de=0),!it[de+1]))return null;if(it[de+1]&&(it[de+1].trim()||Se&&"\n\r".includes(it[de+1])||Ye&&it[de+1]===Q))return de+1;if(it[de+2]&&(it[de+2].trim()||Se&&"\n\r".includes(it[de+2])||Ye&&it[de+2]===Q))return de+2;for(let ui=de+1,Ze=it.length;ui"string"==typeof Se&&Se.trim());if("string"==typeof it)return it.trim()?[it]:[];throw new TypeError(`string-strip-html/stripHtml(): [THROW_ID_05] ${de} must be array containing zero or more strings or something falsey. Currently it's equal to: ${it}, that a type of ${typeof it}.`)}function pi(it,de,Se,Ye){for(let ui=de,Ze=it.length;ui"),pi(de,it?.quotes?.next-1,it?.quotes?.value,">"),!it?.quotes||!pi(de,Se+1,it.quotes.value,">")&&-1!==it?.quotes?.next&&pi(de,it?.quotes?.next-1,it?.quotes?.value,">")}function Bi(it,de){return(de.match(new RegExp(it,"g"))||[]).length}var $i=new Set(["!doctype","abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"]),xn=new Set(["a","b","i","p","q","s","u"]),zn=new Set([".",",",";","!","?"]),Xn=new Set([".",",","?",";",")","\u2026",'"',"\xbb"]),aa=new Set(["a","abbr","acronym","audio","b","bdi","bdo","big","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]),oo={ignoreTags:[],ignoreTagsWithTheirContents:[],onlyStripTags:[],stripTogetherWithTheirContents:["script","style","xml"],skipHtmlDecoding:!1,trimOnlySpaces:!1,stripRecognisedHTMLOnly:!1,dumpLinkHrefsNearby:{enabled:!1,putOnNewLine:!1,wrapHeads:"",wrapTails:""},ignoreIndentations:!1,cb:null,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100};function eo(it,de){let Se=Date.now(),Ye=[],ui=[],Ze=[],Ci=[],pe={};!function Li(){pe={attributes:[]}}();let ri=null,Yi=null,En=null,hr=!1,wi={},Tn={tagName:"",hrefValue:"",openingTagEnds:void 0},gr="",qr=!1,sa=null,la=!0;function W(Oe,Mi,ji){if(Array.isArray(Mi.stripTogetherWithTheirContents)&&(Mi.stripTogetherWithTheirContents.includes(pe.name)||Mi.stripTogetherWithTheirContents.includes("*")))if(pe.slashPresent&&Array.isArray(Ye)&&Ye.some(Pi=>Pi.name===pe.name)){for(let Pi=Ye.length;Pi--;)if(Ye[Pi].name===pe.name){Ci=Ci.filter(([fn,_r])=>(fn=Oe+1)&&(_r<=Ye[Pi].lastOpeningBracketAt||_r>Oe+1));let hn=Oe+1;pe.lastClosingBracketAt&&(hn=pe.lastClosingBracketAt+1),Ci.push([Ye[Pi].lastOpeningBracketAt,hn]),Xn.has(it[Oe])&&Mi.cb?Mi.cb({tag:pe,deleteFrom:Ye[Pi].lastOpeningBracketAt,deleteTo:Oe+1,insert:null,rangesArr:ji,proposedReturn:[Ye[Pi].lastOpeningBracketAt,Oe,null]}):Mi.cb&&Mi.cb({tag:pe,deleteFrom:Ye[Pi].lastOpeningBracketAt,deleteTo:Oe,insert:"",rangesArr:ji,proposedReturn:[Ye[Pi].lastOpeningBracketAt,Oe,""]}),Ye.splice(Pi,1);break}}else pe.slashPresent||Ye.push(pe);else Array.isArray(Mi.ignoreTagsWithTheirContents)&&ci(Oe,Mi,pe)&&(la=!1)}function At(Oe,Mi,ji,Pi,hn,fn){if(Array.isArray(Hi.current())&&"number"==typeof ji&&0===Hi.current()[0][0]&&Hi.current()[0][1]>=ji)return"";if(it.length===Pi&&fn&&!li?.dumpLinkHrefsNearby?.enabled)return null;let _r="";if(Number.isInteger(ji)&&jifn+1){let ka=Oe.slice(fn+1,Pi);Pi&&!Ii(it,Pi-1)&&(ka=ka.trimEnd()),ka.includes("\n")&&Zt(Pi,Oe)?_r+=" ":_r+=ka}let Nn=!Xn.has(Oe[Mi]),Za=">"!==Oe[Pi-1]||!Oe[ji].trim(),lo=!['"',"("].includes(Oe[hn-1]),ta=![";",".",":","!"].includes(Oe[Mi]);if((Nn||Za&&lo&&ta)&&(Za||lo)&&"!"!==Oe[Mi]&&(!aa.has(pe.name)||"number"==typeof ji&&jifn+1)){let ka=_r.match(/\n/g);return Array.isArray(ka)&&ka.length?1===ka.length?"\n":2===ka.length?"\n\n":"\n\n\n":" "}return""}function et(Oe,Mi){if(Oe.dumpLinkHrefsNearby?.enabled&&Tn.tagName&&Tn.tagName===pe.name&&pe.lastOpeningBracketAt&&(Tn.openingTagEnds&&pe.lastOpeningBracketAt>Tn.openingTagEnds||!Tn.openingTagEnds)&&(qr=!0),qr){let ji=Oe.dumpLinkHrefsNearby?.putOnNewLine?"\n\n":"";gr=`${ji}${Tn.hrefValue}`,("number"!=typeof Mi||Ii(it,Mi-1))&&(gr+=ji)}}function Zt(Oe,Mi){return Mi?"<"===Mi[Oe]&&"%"!==Mi[Oe+1]:"<"===it[Oe]&&"%"!==it[Oe+1]}function Ie(Oe){return">"===it[Oe]&&"%"!==it[Oe-1]}function ci(Oe,Mi,ji){if(Mi.ignoreTagsWithTheirContents.includes("*"))return!0;let Pi=it.indexOf(`<${ji.name}`,Oe),hn=it.indexOf(`fn.name===ji.name)||hn>-1&&Pi>-1&&Pi"string"==typeof Oe||(An.el=Oe,An.i=Mi,!1)))throw new TypeError(`string-strip-html/stripHtml(): [THROW_ID_08] Optional Options Object's key stripTogetherWithTheirContents was set to contain not just string elements! For example, element at index ${An.i} has a value ${An.el} which is not string but ${(typeof An.el).toLowerCase()}.`);li.cb||(li.cb=({rangesArr:Oe,proposedReturn:Mi})=>{Mi&&Oe.push(...Mi)});let Hi=new Ji({limitToBeAddedWhitespace:!0,limitLinebreaksCount:2});if(!li.skipHtmlDecoding)for(;it!==(0,va.decode)(it,{scope:"strict"});)it=(0,va.decode)(it,{scope:"strict"});let an=!1,bn=!1,Ki=0,kn=0,qn=it.length,pr=Math.floor(qn/2);for(let Oe=0;Oe1e3&&qn<2e3?Oe===pr&&li.reportProgressFunc(Math.floor((li.reportProgressFuncTo-li.reportProgressFuncFrom)/2)):qn>=2e3&&(Ki=li.reportProgressFuncFrom+Math.floor(Oe/qn*(li.reportProgressFuncTo-li.reportProgressFuncFrom)),Ki!==kn&&(kn=Ki,li.reportProgressFunc(Ki)))),Object.keys(pe).length>1&&pe.lastClosingBracketAt&&pe.lastClosingBracketAtOe){Oe=Mi;continue}}if(!an&&Ie(Oe)&&(!pe||Object.keys(pe).length<2)&&Oe>1)for(let Mi=Oe;Mi--;)if(void 0===it[Mi-1]||Ie(Mi)){let ji=void 0===it[Mi-1]?Mi:Mi+1,Pi=it.slice(ji,Oe+1)||"";if((Pi.includes("/>")||Pi.includes("/ >")||Pi.includes('="')||Pi.includes("='"))&&it!==`<${ba(Pi.trim(),"/>")}>`&&[...$i].some(hn=>ba(Pi.trim().split(/\s+/).filter(fn=>fn.trim()).filter((fn,_r)=>0===_r),"/>").toLowerCase()===hn)&&""===eo(`<${Pi.trim()}>`,li).result){(!Ze.length||Ze[Ze.length-1][0]!==pe.lastOpeningBracketAt)&&Ze.push([ji,Oe+1]),(!Ci.length||Ci[Ci.length-1][0]!==pe.lastOpeningBracketAt)&&Ci.push([ji,Oe+1]);let hn=At(it,Oe,ji,Oe+1,ji,Oe+1),fn=Oe+1;if(it[fn]&&!it[fn].trim())for(let _r=fn;_r{if("string"==typeof ji.name&&"href"===ji.name.toLowerCase())return Mi=`${li.dumpLinkHrefsNearby?.wrapHeads||""}${ji.value}${li.dumpLinkHrefsNearby?.wrapTails||""}`,!0})&&(Tn={tagName:pe.name,hrefValue:Mi,openingTagEnds:void 0})}else!bn&&!pe.quotes&&pe.nameStarts&&(pe.quotes={},pe.quotes.value=it[Oe],pe.quotes.start=Oe,pe.quotes.next=it.indexOf(it[Oe],Oe+1),wi.nameStarts&&wi.nameEnds&&wi.nameEnds!(ji===pe.leftOuterWhitespace&&Pi===Oe))),li.cb({tag:pe,deleteFrom:pe.leftOuterWhitespace,deleteTo:Oe,insert:`${Mi}${gr}${Mi}`,rangesArr:Hi,proposedReturn:[pe.leftOuterWhitespace,Oe,`${Mi}${gr}${Mi}`]}),bi(),W(Oe,li,Hi)}}if(pe.quotes?.start&&pe.quotes.start/!".includes(it[Oe])&&!wi.nameStarts&&!pe.lastClosingBracketAt&&(wi.nameStarts=Oe),null!==pe.lastOpeningBracketAt&&pe.lastOpeningBracketAt"))&&void 0!==pe.lastOpeningBracketAt&&(pe.lastClosingBracketAt=Oe,sa=null,Object.keys(wi).length&&(pe.attributes.push(wi),wi={}),li.dumpLinkHrefsNearby?.enabled&&Tn.tagName&&!Tn.openingTagEnds&&(Tn.openingTagEnds=Oe)),(!bn||">"===it[Oe])&&void 0!==pe.lastOpeningBracketAt){if(void 0===pe.lastClosingBracketAt){if(pe.lastOpeningBracketAtji!==Mi.lastOpeningBracketAt),Ci.push([Mi.lastOpeningBracketAt,Oe+1])):Ci.push([pe.lastOpeningBracketAt,Oe+1])}else Ci.push([pe.lastOpeningBracketAt,Oe+1])}}else if(Oe>pe.lastClosingBracketAt&&it[Oe].trim()||void 0===it[Oe+1]||li.ignoreIndentations&&"\r\n".includes(it[Oe])){let Mi=pe.lastClosingBracketAt===Oe?Oe+1:Oe;li.trimOnlySpaces&&Mi===qn-1&&null!==sa&&sahn.equalsAt)){(!Ci.length||Ci[Ci.length-1][0]!==pe.lastOpeningBracketAt)&&Ci.push([pe.lastOpeningBracketAt,pe.lastClosingBracketAt+1]);let fn,hn=At(it,Oe,pe.leftOuterWhitespace,Mi,pe.lastOpeningBracketAt,pe.lastClosingBracketAt);gr="",qr=!1,et(li,Mi),"string"==typeof gr&&gr.length?(fn=`${hn}${gr}${"\n\n"===hn?"\n":hn}`,Mi===pe.lastClosingBracketAt+1&&(!it[Mi]||!zn.has(it[Mi]))&&(fn+=" "),pe.leftOuterWhitespace===pe.lastOpeningBracketAt&&Hi.last()&&Hi.last()[1]Oe)&&_r++}li.cb({tag:pe,deleteFrom:pe.leftOuterWhitespace,deleteTo:Mi+_r,insert:fn,rangesArr:Hi,proposedReturn:[pe.leftOuterWhitespace,Mi+_r,fn]}),bi(),W(Oe,li,Hi)}else pe={};Ie(Oe)||(pe={})}bn&&(bn=!1)}if((!an||"<"===it[Oe]&&Ii(it,Ii(it,Oe))&&"/"===it[Ii(it,Oe)]&&it.startsWith("script",Ii(it,Ii(it,Oe))))&&Zt(Oe)&&!Zt(Oe-1)&&!"'\"".includes(it[Oe+1])&&(!"'\"".includes(it[Oe+2])||/\w/.test(it[Oe+1]))&&("c"!==it[Oe+1]||":"!==it[Oe+2])&&("f"!==it[Oe+1]||"m"!==it[Oe+2]||"t"!==it[Oe+3]||":"!==it[Oe+4])&&("s"!==it[Oe+1]||"q"!==it[Oe+2]||"l"!==it[Oe+3]||":"!==it[Oe+4])&&("x"!==it[Oe+1]||":"!==it[Oe+2])&&("f"!==it[Oe+1]||"n"!==it[Oe+2]||":"!==it[Oe+3])&&Ai(pe,it,Oe)){if(Ie(Ii(it,Oe)))continue;if(pe.nameEnds&&pe.nameEnds"==`${it[Pi-2]}${it[Pi-1]}${it[Pi]}`||!Mi&&"--\x3e"==`${it[Pi-2]}${it[Pi-1]}${it[Pi]}`)&&(ji=Pi),ji&&(ji"===it[Pi])&&(hn+=1),(!Ze.length||Ze[Ze.length-1][0]!==pe.lastOpeningBracketAt)&&Ze.push([pe.lastOpeningBracketAt,ji+1]),(!Ci.length||Ci[Ci.length-1][0]!==pe.lastOpeningBracketAt)&&Ci.push([pe.lastOpeningBracketAt,ji+1]);let fn=At(it,Pi,pe.leftOuterWhitespace,hn,pe.lastOpeningBracketAt,ji);li.cb({tag:pe,deleteFrom:pe.leftOuterWhitespace,deleteTo:hn,insert:fn,rangesArr:Hi,proposedReturn:[pe.leftOuterWhitespace,hn,fn]}),Oe=Pi-1,">"===it[Pi]&&(Oe=Pi),pe={},wi={};break}}}it[Oe].trim()&&847!==it[Oe].charCodeAt(0)?(null!==ri&&(!pe.quotes&&wi.equalsAt>ri-1&&wi.nameEnds&&wi.equalsAt>wi.nameEnds&&'"'!==it[Oe]&&"'"!==it[Oe]&&(Nt(wi)&&pe.attributes.push(wi),wi={},pe.equalsSpottedAt=void 0),ri=null),hr||(hr=!0,la&&!an&&"number"==typeof En&&Oe&&EnMi.name===pe.name)&&(pe.onlyPlausible=!0,pe.name=void 0,pe.nameStarts=void 0)),("\n"===it[Oe]||"\r"===it[Oe])&&(En=Oe,hr&&(hr=!1)))," "===it[Oe]?null===Yi&&(Yi=Oe):null!==Yi&&(Yi=null),"script"===pe.name&&(an=!pe.slashPresent)}if(it&&!li.ignoreIndentations&&(li.trimOnlySpaces&&" "===it[0]||!li.trimOnlySpaces&&!it[0].trim()))for(let Oe=0;Oe{class it{constructor(Se,Ye){this.localStorageKeys={AturanTatib:`${Gr.N.siteName}_AturanTatib`,DebugLogs:`${Gr.N.siteName}_DebugLogs`,DarkMode:`${Gr.N.siteName}_DarkMode`,Token:`${Gr.N.siteName}_Token`,LiveChatResults:`${Gr.N.siteName}_LiveChatResults`,R18:`${Gr.N.siteName}_R18`,SearchResults:`${Gr.N.siteName}_SearchResults`,Torrents:`${Gr.N.siteName}_Torrents`},this.forceEnableDebugLog=null,this.separatorKeysCodes=[l.K5,l.OC],this.routerData=null,this.previousUrl=null,this.bgImgUrlPath="",this.bannerImg=null,this.sizeContain=!1,this.bgRepeat=!1,this.leftMenuImage="",this.rightMenuImage="",this.isBrowser=null,this.document=null,this.window=null,this.gridListBreakpoint=1,this.isDesktop=!0,this.isDevMode=!0,this.isDarkMode=!1,this.weatherEffect=null,this.weatherRunning=!1,this.angularEditorConfig={editable:!0,minHeight:"256px",placeholder:"Deskripsi, Informasi, Atau Keterangan Lainnya ...",uploadUrl:`${Gr.N.apiUrl}/image`,uploadWithCredentials:!0,defaultParagraphSeparator:"div",toolbarHiddenButtons:[[],[]],customClasses:[{name:"white-space-normal-important",class:"white-space-normal-important"},{name:"text-decoration-none",class:"text-decoration-none"}]},this.seasonalWeather=[{id:1,name:wa.F.WINTER,cssClassName:"snow",img:"/assets/img/season/winter.png"},{id:2,name:wa.F.SPRING,cssClassName:"sakura",img:"/assets/img/season/spring.png"},{id:3,name:wa.F.SUMMER,cssClassName:null,img:"/assets/img/season/summer.png"},{id:4,name:wa.F.FALL,cssClassName:"fall",img:"/assets/img/season/fall.png"}],this.isBrowser=(0,n.NF)(Se),this.document=Ye,this.window=Ye.defaultView,this.isDevMode=(0,t.X6Q)(),this.isBrowser&&(this.onResize(null),this.weatherJS())}log(Se,Ye=null,ui="log"){if(this.isBrowser&&(this.forceEnableDebugLog="true"===localStorage.getItem(this.localStorageKeys.DebugLogs)),this.isDevMode||this.forceEnableDebugLog){let Ze=null;Ze="warn"===ui?console.warn:"error"===ui?console.error:"table"===ui?console.table:console.log,Ye?Ze(Se,Ye):Ze(Se)}}getDirtyValues(Se){const Ye={};for(const ui of Object.keys(Se.controls)){const Ze=Se.get(ui);Ze.dirty&&(Ye[ui]=Ze.value)}return Ye}get randomColor(){return(16777215*Math.random()<<0).toString(16)}get bgImgUrl(){return this.isDesktop?this.bgImgUrlPath:""}onResize(Se,Ye="APP_COMPONENT"){if(Se&&this.log(`[WINDOW_RESIZE-${Ye}]`,Se),this.isBrowser){const ui=Se?.target?.window||window;this.leftMenuImage="/assets/img/background/left-menu.png",this.rightMenuImage="/assets/img/background/right-panel.png",ui.innerWidth>1200?(this.isDesktop=!0,this.gridListBreakpoint=4):ui.innerWidth>992?(this.isDesktop=!0,this.gridListBreakpoint=3):ui.innerWidth>768?(this.isDesktop=!1,this.gridListBreakpoint=2):(this.isDesktop=!1,this.gridListBreakpoint=1,this.leftMenuImage="",this.rightMenuImage="")}}htmlToText(Se){return Se?eo(Se).result:""}shuffle(Se){let Ye=Se.length,ui=0,Ze=0;for(;0!==Ye;)Ze=Math.floor(Math.random()*Ye),Ye-=1,ui=Se[Ye],Se[Ye]=Se[Ze],Se[Ze]=ui;return Se}cleanObject(Se){for(const Ye in Se)Se[Ye]||delete Se[Ye]}includesOneOf(Se,Ye){for(const ui of Ye)if(Se?.includes(ui))return!0;return!1}linkify(Se){if(Se){const ui=/(^|[^\/])(www\.[\S]+(\b|$))/gim,Ze=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return Se.replace(/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,'$&').replace(ui,'$1$2').replace(Ze,'$&')}return""}toggleDarkTheme(Se=!1){Se?this.isDarkMode?this.document?.body.classList.add("bifeldy-dark-theme"):this.document?.body.classList.remove("bifeldy-dark-theme"):this.isDarkMode?(this.isDarkMode=!1,this.document?.body.classList.remove("bifeldy-dark-theme")):(this.isDarkMode=!0,this.document?.body.classList.add("bifeldy-dark-theme"))}weatherJS(){const Se=(new Date).getMonth()+1,Ye=this.seasonalWeather.find(ui=>ui.id===Math.ceil(Se/3));Ye?.cssClassName&&(this.weatherEffect=new Sakura("body",{className:Ye.cssClassName,lifeTime:5e3}),this.weatherRunning=!0)}weatherToggle(){this.weatherRunning?(this.weatherEffect.stop(!0),this.weatherRunning=!1):(this.weatherEffect.start(),this.weatherRunning=!0)}cleanIpOrigin(Se){if(Se){Se.startsWith("::ffff:")&&(Se=Se.slice(7,Se.length)),Se.startsWith("http://")?Se=Se.slice(7,Se.length):Se.startsWith("https://")&&(Se=Se.slice(8,Se.length)),Se.startsWith("www.")&&(Se=Se.slice(4,Se.length)),Se=Se.split("/")[0];let Ye=0;for(let ui=0;ui1));ui++);return 1===Ye?Se=Se.split(":")[0]:(Se=Se.split("]")[0]).startsWith("[")&&(Se=Se.slice(1,Se.length)),Se}return""}static#t=this.\u0275fac=function(Ye){return new(Ye||it)(t.LFG(t.Lbi),t.LFG(n.K0))};static#e=this.\u0275prov=t.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"})}return it})()},7245:(ae,k,o)=>{"use strict";o.d(k,{X:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}uploadImage(E){return this.api.postData("/image",E,!0,{headers:{"ngsw-bypass":"true"}})}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},1092:(ae,k,o)=>{"use strict";o.d(k,{O:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}getAllInfo(E,d,y,g,_){return this.api.getData(`/information?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}getInfo(E){return this.api.getData(`/information/${E}`)}createUpdateInfo(E){return this.api.postData("/information",E)}deleteInfo(E){return this.api.deleteData(`/information/${E}`)}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},9156:(ae,k,o)=>{"use strict";o.d(k,{S:()=>l});var t=o(4650),n=o(9816);let l=(()=>{class u{constructor(D){this.gs=D,this.sideNav=null,this.sideNavExpanded=!1,this.linkText=!1,this.opened=!0,this.mainMenus=[{name:"Beranda",link:"/home",icon:"dashboard",badge:null},{name:"Berita & Informasi",link:"/news",icon:"receipt_long",badge:null}],this.contentMenus=[{name:"Anime Musiman",link:"/anime",icon:"live_tv",badge:null},{name:"Film Drama",link:"/dorama",icon:"movie",badge:null},{name:"Katalog Fansub",link:"/fansub",icon:"closed_caption",badge:null},{name:"Berbagi Garapan",link:"/berkas",icon:"file_copy",badge:null}],this.additionalMenus=[{name:"E-Mail@FanSub.ID",link:"/mailbox",icon:"mail_outline",badge:null},{name:"Nihongo \u65e5\u672c\u8a9e",link:"/nihongo",icon:"translate",badge:null},{name:"Admin & Mod Panel",link:"/admin-mod",icon:"admin_panel_settings",badge:null}],this.miscMenus=[{name:"RSS Feed",link:"/rss-feed",icon:"rss_feed",badge:null}],this.otherMenus=[{name:"Kebijakan Privasi",link:"/privacy-policy",icon:"policy",badge:null}],this.gs.isBrowser&&(this.opened=!!this.gs.isDesktop)}changeSideNavState(){this.linkText=this.sideNavExpanded}forceCloseSideNav(){!this.gs.isDesktop&&this.sideNav.opened&&this.sideNav.close(),this.onMouseHoverOut()}onSideNavToggleView(){this.sideNav.opened?(this.sideNav.close(),this.gs.isDesktop||this.onMouseHoverOut()):(this.sideNav.open(),this.gs.isDesktop||this.onMouseHoverIn())}onSideNavToggleExpanded(){this.sideNavExpanded=!this.sideNavExpanded,this.changeSideNavState()}onMouseHoverIn(){!1===this.sideNavExpanded&&(this.sideNavExpanded=!0,this.changeSideNavState())}onMouseHoverOut(){!0===this.sideNavExpanded&&(this.sideNavExpanded=!1,this.changeSideNavState())}static#t=this.\u0275fac=function(E){return new(E||u)(t.LFG(n.U))};static#e=this.\u0275prov=t.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},5155:(ae,k,o)=>{"use strict";o.d(k,{n:()=>u});var t=o(4650),n=o(5643),l=o(9816);let u=(()=>{class a{constructor(E,d){this.cs=E,this.gs=d}getItem(E,d=!1){if(!this.gs.isBrowser)return null;if(!d)return localStorage.getItem(E);try{const y=localStorage.getItem(E),g=this.cs.msgDecrypt(y);return JSON.parse(g)}catch{return this.removeItem(E),null}}setItem(E,d){if(this.gs.isBrowser)if("string"==typeof d)localStorage.setItem(E,d);else{const y=JSON.stringify(d),g=this.cs.msgEncrypt(y);localStorage.setItem(E,g)}}removeItem(E){this.gs.isBrowser&&localStorage.removeItem(E)}clear(){if(this.gs.isBrowser)for(const E of Object.keys(this.gs.localStorageKeys))"Torrents"!==E&&this.removeItem(this.gs.localStorageKeys[E])}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.$),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},8111:(ae,k,o)=>{"use strict";o.d(k,{Y:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}delete(E){return this.api.deleteData(`/news/${E}`)}getAllNews(E="",d=1,y=10,g="",_=""){return this.api.getData(`/news?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}createNews(E){return this.api.postData("/news",E)}updateNews(E,d){return this.api.putData(`/news/${E}`,d)}getNews(E){return this.api.getData(`/news/${E}`)}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},3235:(ae,k,o)=>{"use strict";o.d(k,{a:()=>u});var t=o(4650),n=o(9222),l=o(9816);let u=(()=>{class a{constructor(E,d){this.api=E,this.gs=d}getAllNihongo(E="",d="",y=1,g=10,_="",f=""){return this.api.getData(`/nihongo?category=${E}&q=${d}&page=${y}&row=${g}&sort=${_}&order=${f}`)}getAllKategori(){return this.api.patchData("/nihongo")}createNihongo(E){return this.api.postData("/nihongo",E)}updateNihongo(E,d){return this.api.putData(`/nihongo/${E}`,d)}getHirakata(){return this.api.getData("/nihongo-hirakata-all")}getAllKanji(E="",d="",y="",g=1,_=10,f="",v=""){return this.api.getData(`/nihongo-kanji?jlpt=${E}&school=${d}&q=${y}&page=${g}&row=${_}&sort=${f}&order=${v}`)}getAllEdict(E="",d=1,y=10,g="",_=""){return this.api.getData(`/nihongo-edict?q=${E}&page=${d}&row=${y}&sort=${g}&order=${_}`)}static#t=this.\u0275fac=function(d){return new(d||a)(t.LFG(n.s),t.LFG(l.U))};static#e=this.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},8598:(ae,k,o)=>{"use strict";o.d(k,{T:()=>u});var t=o(4674),n=o(4650),l=o(9816);let u=(()=>{class a{constructor(E){this.gs=E,this.notifications=[],this.dissmissTimeout={},this.timedOut=null,this.gs.isBrowser&&this.notifications.push({notifCreator:null,notifData:{id:`${t.N.siteName.toUpperCase()}_UNDER_DEVELOPMENT`,type:"info",title:"Pemberitahuan!",content:'\n Jika ingin request fitur baru ataupun melaporkan Bug dapat menulis pesan di kanal\n \'#dev-prog\'.\n Termasuk juga melihat dan mencari semua log aktivitas secara transparan (terbuka) ada di kanal\n \'#aktivitas\'.\n Terima kasih. ^_^\n ',dismissible:!0}})}addNotif(E,d,y,g,_,f=!0,v=1e4){f&&(this.dissmissTimeout[d]=setTimeout(()=>this.removeNotif(d),v)),this.notifications.findIndex(V=>V.notifData.id===d)<0&&this.notifications.splice(0,0,{notifCreator:E,notifData:{id:d,type:y,title:g,content:_,dismissible:f}})}removeNotif(E){this.dissmissTimeout[E]&&(clearTimeout(this.dissmissTimeout[E]),this.dissmissTimeout[E]=null,delete this.dissmissTimeout[E]),this.timedOut=setTimeout(()=>{const d=this.notifications.findIndex(y=>y.notifData.id===E);d>=0&&(this.notifications=this.notifications.slice(0,d).concat(this.notifications.slice(d+1,this.notifications.length)))},500)}static#t=this.\u0275fac=function(d){return new(d||a)(n.LFG(l.U))};static#e=this.\u0275prov=n.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},5141:(ae,k,o)=>{"use strict";o.d(k,{Z:()=>D});var t=o(4674),n=o(4650),l=o(1481),u=o(9816),a=o(1390);let D=(()=>{class E{constructor(y,g,_,f){this.t=y,this.m=g,this.gs=_,this.router=f,this.siteName=t.N.siteName,this.title="",this.description="",this.keywords="",this.image="",this.author="",this.header=""}get getHeaderTitle(){return this.header!==this.title?this.header:this.title}get getDescription(){return this.description}get getKeywords(){return this.keywords}updatePageMetaData(y,g,_,f=`${t.N.baseUrl}/assets/img/favicon.png`,v="\u300c\u{1f4a4} Fansub \u2728 ID \u{1f31e}\u300d"){y&&(this.title=y,this.t.setTitle(`${this.title} | ${this.siteName}`),this.m.updateTag({property:"og:title",content:`${this.title} | ${this.siteName}`}),this.m.updateTag({name:"twitter:title",content:`${this.title} | ${this.siteName}`})),g&&(this.description=this.gs.htmlToText(g),this.m.updateTag({name:"description",content:this.description}),this.m.updateTag({property:"og:description",content:this.description}),this.m.updateTag({name:"twitter:description",content:this.description})),_&&(this.keywords=_,this.m.updateTag({name:"keywords",content:this.keywords})),this.image=f.startsWith("/")?t.N.baseUrl+f:f,this.m.updateTag({property:"og:image",content:this.image}),this.m.updateTag({name:"twitter:image",content:this.image}),this.router.url.split("?")[0].includes("/berkas/")&&!this.image.includes(t.N.baseUrl)&&this.m.updateTag({name:"twitter:card",content:"summary_large_image"}),this.author=v,this.m.updateTag({name:"author",content:this.author}),this.updatePageHeader()}updateStatusBarTheme(y){this.m.updateTag(y?{name:"theme-color",content:"#673ab7"}:{name:"theme-color",content:"#3f51b5"})}updatePageHeader(y=null){this.header=y||this.title}static#t=this.\u0275fac=function(g){return new(g||E)(n.LFG(l.Dx),n.LFG(l.h_),n.LFG(u.U),n.LFG(a.F0))};static#e=this.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},9194:(ae,k,o)=>{"use strict";o.d(k,{C:()=>we});var t=o(4650),n=o(9816),l=o(8111),u=o(2970),a=o(3235),D=o(6841),E=o(642),d=o(3842),y=o(1428),g=o(1140),_=o(5155),f=o(8151),v=o(6895),T=o(1390),V=o(4006),B=o(3238),Y=o(7392),L=o(8455),U=o(9203),nt=o(9982);function K(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.ALo(10,"date"),t.qZA()()()),2&ve){const ot=rt.$implicit;t.MGl("routerLink","/news/",ot.id,""),t.xp6(1),t.s9C("src",ot.image_url,t.LSH),t.xp6(2),t.Oqu(ot.title),t.xp6(3),t.Oqu(ot.user_.username),t.xp6(3),t.Oqu(t.xi3(10,5,ot.created_at,"d-MM-y"))}}function Z(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Berita"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,K,11,8,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.beritaResults,0,5))}}function tt(ve,rt){if(1&ve){const ot=t.EpF();t.TgZ(0,"mat-list-option",17),t.NdJ("click",function(){const De=t.CHM(ot).$implicit,Be=t.oxw(2);return t.KtG(Be.openEdict(De))}),t.TgZ(1,"h4",18),t._uU(2),t.qZA(),t.TgZ(3,"h5",18)(4,"span",14),t._uU(5),t.qZA(),t._uU(6," \xa0 "),t.TgZ(7,"span",15),t._uU(8),t.qZA()()()}if(2&ve){const ot=rt.$implicit;t.xp6(2),t.lnq(" ",ot.character," | ",ot.v_kunyomi,"| ",ot.v_onyomi," "),t.xp6(3),t.hij("N",ot.jlpt,""),t.xp6(3),t.Oqu(ot.translate)}}function mt(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Kanji"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,tt,9,5,"mat-list-option",16),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.kanjiResults,0,5))}}function lt(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.qZA()()()),2&ve){const ot=rt.$implicit,_t=t.oxw(2);t.hYB("routerLink","/anime/",ot.id,"-",_t.getAnimeTitle(ot.title),""),t.xp6(1),t.s9C("src",ot.image_url,t.LSH),t.xp6(2),t.Oqu(ot.title),t.xp6(3),t.Oqu(ot.id),t.xp6(3),t.AsE("",ot.num_episodes," Eps ",null==ot.media_type?null:ot.media_type.toUpperCase(),"")}}function ft(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Anime"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,lt,10,7,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.animeResults,0,5))}}function Yt(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.qZA()()()),2&ve){const ot=rt.$implicit;t.MGl("routerLink","/dorama/",ot.slug,""),t.xp6(1),t.s9C("src",ot.thumb,t.LSH),t.xp6(2),t.Oqu(ot.title),t.xp6(3),t.Oqu(ot.mdl_id),t.xp6(3),t.Oqu(ot.type)}}function Rt(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Dorama"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,Yt,10,5,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.doramaResults,0,5))}}function wt(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.ALo(10,"date"),t.qZA()()()),2&ve){const ot=rt.$implicit;t.MGl("routerLink","/fansub/",ot.slug,""),t.xp6(1),t.s9C("src",ot.image_url,t.LSH),t.xp6(2),t.Oqu(ot.name),t.xp6(3),t.Oqu(ot.active?"Aktif":"Tidak Aktif"),t.xp6(3),t.Oqu(t.xi3(10,5,ot.born,"d-MM-y"))}}function It(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Fansub"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,wt,11,8,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.fansubResults,0,5))}}function gt(ve,rt){if(1&ve){const ot=t.EpF();t.TgZ(0,"mat-list-option",17),t.NdJ("click",function(){const De=t.CHM(ot).$implicit,Be=t.oxw(2);return t.KtG(Be.openRssFeed(De))}),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",15),t._uU(6),t.ALo(7,"date"),t.qZA()()()}if(2&ve){const ot=rt.$implicit;t.xp6(1),t.s9C("src",ot.fansub_.image_url,t.LSH),t.xp6(2),t.Oqu(ot.title),t.xp6(3),t.Oqu(t.xi3(7,3,ot.created_at,"d-MM-y"))}}function te(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"RSS"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,gt,8,6,"mat-list-option",16),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.rssResults,0,5))}}function Ht(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.ALo(10,"date"),t.qZA()()()),2&ve){const ot=rt.$implicit;t.MGl("routerLink","/berkas/",ot.id,""),t.xp6(1),t.s9C("src",ot.image_url,t.LSH),t.xp6(2),t.Oqu(ot.name),t.xp6(3),t.Oqu(ot.user_.username),t.xp6(3),t.Oqu(t.xi3(10,5,ot.created_at,"d-MM-y"))}}function Jt(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Berkas"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,Ht,11,8,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.berkasResults,0,5))}}function Nt(ve,rt){if(1&ve&&(t.TgZ(0,"mat-list-option",11),t._UZ(1,"img",12),t.TgZ(2,"h4",13),t._uU(3),t.qZA(),t.TgZ(4,"h5",13)(5,"span",14),t._uU(6),t.qZA(),t._uU(7," \xa0 "),t.TgZ(8,"span",15),t._uU(9),t.ALo(10,"date"),t.qZA()()()),2&ve){const ot=rt.$implicit;t.MGl("routerLink","/user/",ot.username,""),t.xp6(1),t.s9C("src",ot.image_url,t.LSH),t.xp6(2),t.Oqu(ot.kartu_tanda_penduduk_.nama),t.xp6(3),t.Oqu(ot.id),t.xp6(3),t.Oqu(t.xi3(10,5,ot.created_at,"d-MM-y"))}}function Vt(ve,rt){if(1&ve&&(t.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),t._uU(4,"Pengguna"),t.qZA()()(),t.TgZ(5,"div",5)(6,"mat-selection-list",9),t.YNc(7,Nt,11,8,"mat-list-option",10),t.ALo(8,"slice"),t.qZA()()()),2&ve){const ot=t.oxw();t.xp6(6),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",t.Dn7(8,2,ot.searchResult.penggunaResults,0,5))}}let xt=(()=>{class ve{constructor(ot,_t,le,De,Be,se,Pe,Ne,Ce,ne,st){this.gs=ot,this.news=_t,this.ds=le,this.nihon=De,this.anime=Be,this.dorama=se,this.fansub=Pe,this.berkas=Ne,this.user=Ce,this.ls=ne,this.wb=st,this.searchResult={q:"",beritaResults:[],kanjiResults:[],animeResults:[],doramaResults:[],fansubResults:[],rssResults:[],berkasResults:[],penggunaResults:[]},this.subsBerita=null,this.subsKanji=null,this.subsAnime=null,this.subsDorama=null,this.subsFansub=null,this.subsRss=null,this.subsBerkas=null,this.subsPengguna=null,this.subsDialog=null,this.timedOut1=null,this.timedOut2=null,this.timedOut3=null,this.timedOut4=null,this.timedOut5=null,this.timedOut6=null,this.timedOut7=null,this.timedOut8=null}ngOnInit(){if(this.gs.isBrowser){const ot=this.ls.getItem(this.gs.localStorageKeys.SearchResults,!0);if(ot)for(const[_t,le]of Object.entries(ot))this.searchResult[_t]=le}}ngOnDestroy(){this.ls.setItem(this.gs.localStorageKeys.SearchResults,this.searchResult),this.subsBerita?.unsubscribe(),this.subsKanji?.unsubscribe(),this.subsAnime?.unsubscribe(),this.subsDorama?.unsubscribe(),this.subsFansub?.unsubscribe(),this.subsRss?.unsubscribe(),this.subsBerkas?.unsubscribe(),this.subsPengguna?.unsubscribe(),this.subsDialog?.unsubscribe(),this.timedOut1&&(clearTimeout(this.timedOut1),this.timedOut1=null),this.timedOut2&&(clearTimeout(this.timedOut2),this.timedOut2=null),this.timedOut3&&(clearTimeout(this.timedOut3),this.timedOut3=null),this.timedOut4&&(clearTimeout(this.timedOut4),this.timedOut4=null),this.timedOut5&&(clearTimeout(this.timedOut5),this.timedOut5=null),this.timedOut6&&(clearTimeout(this.timedOut6),this.timedOut6=null),this.timedOut7&&(clearTimeout(this.timedOut7),this.timedOut7=null),this.timedOut8&&(clearTimeout(this.timedOut8),this.timedOut8=null)}applyFilter(ot){this.gs.log("[SEARCH_VALUE_CHANGED]",ot),this.searchResult.q=ot.target.value.trim().toLowerCase(),this.searchResult.beritaResults=[],this.searchResult.kanjiResults=[],this.searchResult.animeResults=[],this.searchResult.doramaResults=[],this.searchResult.fansubResults=[],this.searchResult.rssResults=[],this.searchResult.berkasResults=[],this.searchResult.penggunaResults=[],this.searchResult.q&&(this.timedOut1=setTimeout(()=>{this.getNews()},250),this.timedOut2=setTimeout(()=>{this.getKanji()},500),this.timedOut3=setTimeout(()=>{this.getAnime()},750),this.timedOut4=setTimeout(()=>{this.getDorama()},1e3),this.timedOut5=setTimeout(()=>{this.getFansub()},1250),this.timedOut6=setTimeout(()=>{this.getBerkas()},1500),this.timedOut7=setTimeout(()=>{this.getPengguna()},1750),this.timedOut7=setTimeout(()=>{this.getRss()},2e3))}openEdict(ot){this.gs.log("[HIRAKATA_OPEN_EDICT]",ot),this.subsDialog=this.ds.openEdictDialog({data:{character:ot.character,context:ot.context,freq:ot.freq,gakken:ot.gakken,harlpern_kkld:ot.harlpern_kkld,harlpern_njecd:ot.harlpern_njecd,jlpt:ot.jlpt,maniette:ot.maniette,nelson_c:ot.nelson_c,nelson_n:ot.nelson_n,remember:ot.remember,school:ot.school,skip:ot.skip,stroke:ot.stroke,translate:ot.translate,v_kunyomi:ot.v_kunyomi,v_onyomi:ot.v_onyomi},disableClose:!1}).afterClosed().subscribe({next:_t=>{this.gs.log("[EDICT_DIALOG_CLOSED]",_t),this.subsDialog.unsubscribe()}})}getNews(){this.subsBerita&&this.subsBerita.unsubscribe(),this.subsBerita=this.news.getAllNews(this.searchResult.q,1,5).subscribe({next:ot=>{this.gs.log("[NEWS_SEARCH_SUCCESS]",ot),this.searchResult.beritaResults=ot.results},error:ot=>{this.gs.log("[NEWS_SEARCH_ERROR]",ot,"error")}})}getKanji(){this.subsKanji&&this.subsKanji.unsubscribe(),this.subsKanji=this.nihon.getAllKanji("","",this.searchResult.q,1,5).subscribe({next:ot=>{this.gs.log("[KANJI_SEARCH_SUCCESS]",ot),this.searchResult.kanjiResults=ot.results},error:ot=>{this.gs.log("[KANJI_SEARCH_ERROR]",ot,"error")}})}getAnimeTitle(ot){return ot.replace(/[^a-zA-Z0-9]/g,"-")}getAnime(){this.subsAnime&&this.subsAnime.unsubscribe(),this.subsAnime=this.anime.searchAnime(this.searchResult.q).subscribe({next:ot=>{this.gs.log("[ANIME_SEARCH_SUCCESS]",ot),this.searchResult.animeResults=ot.results},error:ot=>{this.gs.log("[ANIME_SEARCH_ERROR]",ot,"error")}})}getDorama(){this.subsDorama&&this.subsDorama.unsubscribe(),this.subsDorama=this.dorama.searchDorama(this.searchResult.q).subscribe({next:ot=>{this.gs.log("[DORAMA_SEARCH_SUCCESS]",ot),this.searchResult.doramaResults=ot.results},error:ot=>{this.gs.log("[DORAMA_SEARCH_ERROR]",ot,"error")}})}getFansub(){this.subsFansub&&this.subsFansub.unsubscribe(),this.subsFansub=this.fansub.searchFansub(this.searchResult.q,1,5).subscribe({next:ot=>{this.gs.log("[FANSUB_SEARCH_SUCCESS]",ot),this.searchResult.fansubResults=ot.results},error:ot=>{this.gs.log("[FANSUB_SEARCH_ERROR]",ot,"error")}})}getBerkas(){this.subsBerkas&&this.subsBerkas.unsubscribe(),this.subsBerkas=this.berkas.getAllBerkas(this.searchResult.q,1,5,"","",!0).subscribe({next:ot=>{this.gs.log("[BERKAS_SEARCH_SUCCESS]",ot),this.searchResult.berkasResults=ot.results},error:ot=>{this.gs.log("[BERKAS_SEARCH_ERROR]",ot,"error")}})}getPengguna(){this.subsPengguna&&this.subsPengguna.unsubscribe(),this.subsPengguna=this.user.getAllUser(this.searchResult.q,1,5).subscribe({next:ot=>{this.gs.log("[PENGGUNA_SEARCH_SUCCESS]",ot),this.searchResult.penggunaResults=ot.results},error:ot=>{this.gs.log("[PENGGUNA_SEARCH_ERROR]",ot,"error")}})}getRss(){this.subsRss&&this.subsRss.unsubscribe(),this.subsRss=this.fansub.getRssFeedFansubAll(null,this.searchResult.q,1,5).subscribe({next:ot=>{this.gs.log("[RSS_SEARCH_SUCCESS]",ot),this.searchResult.rssResults=ot.results},error:ot=>{this.gs.log("[RSS_SEARCH_ERROR]",ot,"error")}})}openRssFeed(ot){this.gs.log("[RSS_FEED_LIST_OPEN_URL]",ot);const _t=ot.fansub_.urls.web;if(_t){const le=new URL(_t);let De=`${le.protocol}//${le.host}`;ot.link.startsWith("/")||(De+="/"),De+=ot.link,this.wb.winboxOpenUri(De)}}static#t=this.\u0275fac=function(_t){return new(_t||ve)(t.Y36(n.U),t.Y36(l.Y),t.Y36(u.x),t.Y36(a.a),t.Y36(D.o),t.Y36(E.X),t.Y36(d.T),t.Y36(y.A),t.Y36(g.K),t.Y36(_.n),t.Y36(f.N))};static#e=this.\u0275cmp=t.Xpm({type:ve,selectors:[["app-search-all"]],decls:16,vars:10,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"ms-auto","pt-3","col-12",3,"color"],["matInput","","maxlength","200","placeholder","Ex. \u3070\u30fc\u304b\u30fc\uff01",3,"ngModel","keyup.enter","ngModelChange"],["fontIcon","search","matSuffix",""],[1,"col-12"],["class","row",4,"ngIf"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"pt-0",3,"multiple"],[3,"routerLink",4,"ngFor","ngForOf"],[3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],["matLine",""],[1,"text-warning"],[1,"text-success"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["matLine","",1,"ms-3"]],template:function(_t,le){1&_t&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),t._uU(4,"Cari Apapun Di Sini ..."),t.qZA(),t.TgZ(5,"input",3),t.NdJ("keyup.enter",function(Be){return le.applyFilter(Be)})("ngModelChange",function(Be){return le.searchResult.q=Be}),t.qZA(),t._UZ(6,"mat-icon",4),t.qZA()(),t.TgZ(7,"div",5),t.YNc(8,Z,9,6,"div",6),t.YNc(9,mt,9,6,"div",6),t.YNc(10,ft,9,6,"div",6),t.YNc(11,Rt,9,6,"div",6),t.YNc(12,It,9,6,"div",6),t.YNc(13,te,9,6,"div",6),t.YNc(14,Jt,9,6,"div",6),t.YNc(15,Vt,9,6,"div",6),t.qZA()()),2&_t&&(t.xp6(2),t.Q6J("color","accent"),t.xp6(3),t.Q6J("ngModel",le.searchResult.q),t.xp6(3),t.Q6J("ngIf",le.searchResult.beritaResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.kanjiResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.animeResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.doramaResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.fansubResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.rssResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.berkasResults.length>0),t.xp6(1),t.Q6J("ngIf",le.searchResult.penggunaResults.length>0))},dependencies:[v.sg,v.O5,T.rH,V.Fj,V.JJ,V.nD,V.On,B.X2,Y.Hw,L.v_,L.$V,L.nX,U.k0,nt.Wx,nt.kh,nt.O$,v.OU,v.uU]})}return ve})();var zt=o(7141),P=o(8377);function Lt(ve,rt){if(1&ve&&t._UZ(0,"mat-icon",12),2&ve){const ot=t.oxw().$implicit;t.Q6J("fontIcon",ot.icon)}}function vt(ve,rt){if(1&ve&&(t.TgZ(0,"div",6)(1,"mat-card")(2,"mat-card-header",7)(3,"div",8),t.YNc(4,Lt,1,1,"mat-icon",9),t.qZA(),t.TgZ(5,"mat-card-title",10)(6,"h3",11),t._uU(7),t.qZA()(),t.TgZ(8,"mat-card-subtitle",11),t._uU(9),t.qZA()()()()),2&ve){const ot=rt.$implicit;t.xp6(2),t.MGl("routerLink","/admin-mod/",ot.url,""),t.xp6(1),t.Udp("background-image","url("+(ot.image_url?ot.image_url:"")+")"),t.xp6(1),t.Q6J("ngIf",ot.icon),t.xp6(3),t.Oqu(ot.name),t.xp6(2),t.Oqu(ot.deskripsi)}}let Wt=(()=>{class ve{constructor(ot,_t){this.gs=ot,this.adm=_t}get ADM(){return this.adm}ngOnInit(){}static#t=this.\u0275fac=function(_t){return new(_t||ve)(t.Y36(n.U),t.Y36(zt.l))};static#e=this.\u0275cmp=t.Xpm({type:ve,selectors:[["app-admin-navigation"]],decls:7,vars:1,consts:[[1,"row"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"col-12","px-3"],["class","col-12 p-2",4,"ngFor","ngForOf"],[1,"col-12","p-2"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],["style","font-size: 300%;",3,"fontIcon",4,"ngIf"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"mb-0"],[2,"font-size","300%",3,"fontIcon"]],template:function(_t,le){1&_t&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),t._uU(4,"Menu Admin Lainnya"),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,vt,10,6,"div",5),t.qZA()()),2&_t&&(t.xp6(6),t.Q6J("ngForOf",le.ADM.menuList))},dependencies:[v.sg,v.O5,T.rH,P.S$,P.u7,P.mi,P._K,P.lb,Y.Hw]})}return ve})();var Ut=o(5526),he=o(7396);let we=(()=>{class ve{constructor(ot,_t){this.gs=ot,this.ss=_t,this.sidePanel=null,this.componentView=null}toggleSidePanel(ot){this.componentView?this.closeSidePanel():this.openSidePanel(ot)}closeSidePanel(){this.sidePanel.close()}onClose(){this.componentView=null}openSidePanel(ot){if("string"!=typeof ot)this.componentView=ot;else if("SearchAllComponent"===ot)this.componentView=xt;else if("AdminNavigationComponent"===ot)this.componentView=Wt;else if("LiveChatComponent"===ot){if(!this.ss.mySocket.id)return;this.componentView=Ut.u}this.sidePanel.open()}static#t=this.\u0275fac=function(_t){return new(_t||ve)(t.LFG(n.U),t.LFG(he.R))};static#e=this.\u0275prov=t.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},4098:(ae,k,o)=>{"use strict";o.d(k,{H:()=>E});var t=o(5861),n=o(4650),l=o(9784),u=o(9816),a=o(2970);let D=(()=>{class d{constructor(g){this.gs=g}clearAllCacheByName(g){var _=this;return(0,t.Z)(function*(){const v=(yield _.gs.window.caches.keys()).filter(T=>!g||g==T);return Promise.all(v.map(T=>_.gs.window.caches.delete(T)))})()}clearCacheNameByUrl(g,_){var f=this;return(0,t.Z)(function*(){const v=yield f.gs.window.caches.open(g),V=(yield v.keys()).filter(B=>B.url.includes(_));return Promise.all(V.map(B=>v.delete(B.url)))})()}clearAllCacheAndRestart(){var g=this;return(0,t.Z)(function*(){try{yield g.clearAllCacheByName(null),g.gs.window.location.reload()}catch(_){g.gs.log("[BROWSER_CLEAR_CACHE_NAME_ERROR]",_,"error")}})()}clearCacheByUrl(g=`${this.gs.window.origin}/api/`){var _=this;return(0,t.Z)(function*(){try{const f=yield caches.keys();yield Promise.all(f.map(v=>_.clearCacheNameByUrl(v,g)))}catch(f){_.gs.log("[BROWSER_CLEAR_CACHE_URL_ERROR]",f,"error")}})()}static#t=this.\u0275fac=function(_){return new(_||d)(n.LFG(u.U))};static#e=this.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})(),E=(()=>{class d{constructor(g,_,f,v,T){this.su=g,this.sp=_,this.gs=f,this.ds=v,this.bcs=T,this.isUpdateAvailable=!1,this.swuVerUpd=null,this.swuUnRecv=null,this.dialogRef=null,this.subsDialog=null,this.gs.isBrowser&&this.initialize()}get swEnabled(){return this.su.isEnabled&&this.sp.isEnabled}checkForUpdate(){var g=this;return(0,t.Z)(function*(){if(!g.isUpdateAvailable){g.isUpdateAvailable=!0;try{g.isUpdateAvailable=yield g.su.checkForUpdate()}catch(_){g.gs.log("[SERVICE_WORKER_CHECK_FOR_UPDATE_ERROR]",_,"error")}}return g.gs.log("[SERVICE_WORKER_UPDATE_AVAILABLE]",g.isUpdateAvailable),g.isUpdateAvailable})()}activateUpdate(){var g=this;return(0,t.Z)(function*(){let _=!1;if(g.isUpdateAvailable)try{_=yield g.su.activateUpdate(),g.isUpdateAvailable=!1,g.dialogRef?.close(null),g.subsDialog?.unsubscribe(),g.dialogRef=g.ds.openInfoDialog({data:{title:"Pembaharuan "+(_?"Berhasil":"Gagal"),htmlMessage:"Ingin Refresh Halaman Sekarang (?)",confirmText:"Ya",cancelText:"Tidak"}}),g.subsDialog=g.dialogRef?.afterClosed().subscribe({next:f=>{g.gs.log("[INFO_DIALOG_CLOSED]",f),g.dialogRef=null,g.subsDialog.unsubscribe(),!0===f&&g.gs.window.location.reload()}})}catch(f){g.gs.log("[SERVICE_WORKER_ACTIVATE_UPDATE_ERROR]",f,"error")}return g.gs.log("[SERVICE_WORKER_UPDATE_FINISH]",_),_})()}initialize(){var _,g=this;this.swuVerUpd=this.su.versionUpdates.subscribe({next:(_=(0,t.Z)(function*(f){var v;g.gs.log(`[SERVICE_WORKER_${f.type}]`,f),"VERSION_DETECTED"===f.type&&(g.dialogRef?.close(null),g.subsDialog?.unsubscribe()),"VERSION_READY"===f.type&&(g.dialogRef=g.ds.openInfoDialog({data:{title:"Pembaruan Tersedia",htmlMessage:`\n
Sekarang :: ${f.currentVersion?.hash?.slice(0,8)}
\n
Tersedia :: ${f.latestVersion?.hash?.slice(0,8)}
\n `,confirmText:"OK"}})),"VERSION_INSTALLATION_FAILED"===f.type&&(g.dialogRef=g.ds.openInfoDialog({data:{title:"Pembaharuan Gagal",htmlMessage:`\n
Versi :: ${f.version?.hash?.slice(0,8)}
\n
Error :: ${f.error}
\n `,confirmText:"Ulangi"}})),g.subsDialog=g.dialogRef?.afterClosed().subscribe({next:(v=(0,t.Z)(function*(T){g.gs.log("[INFO_DIALOG_CLOSED]",T),g.dialogRef=null,g.subsDialog.unsubscribe(),yield g.bcs.clearCacheByUrl(),yield g.activateUpdate()}),function(V){return v.apply(this,arguments)})})}),function(v){return _.apply(this,arguments)})}),this.swuUnRecv=this.su.unrecoverable.subscribe({next:_=>{var f;this.gs.log(`[SERVICE_WORKER_${_.type}]`,_.reason),this.dialogRef?.close(null),this.subsDialog?.unsubscribe(),this.dialogRef=this.ds.openInfoDialog({data:{title:"Service Worker Bermasalah",htmlMessage:`Kesalahan :: ${_.reason}`,confirmText:"Refresh Halaman"}}),this.subsDialog=this.dialogRef?.afterClosed().subscribe({next:(f=(0,t.Z)(function*(v){g.gs.log("[INFO_DIALOG_CLOSED]",v),g.dialogRef=null,g.subsDialog.unsubscribe(),yield g.bcs.clearAllCacheAndRestart()}),function(T){return f.apply(this,arguments)})})}})}static#t=this.\u0275fac=function(_){return new(_||d)(n.LFG(l.yO),n.LFG(l.Mk),n.LFG(u.U),n.LFG(a.x),n.LFG(D))};static#e=this.\u0275prov=n.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})}return d})()},7396:(ae,k,o)=>{"use strict";o.d(k,{R:()=>Y});var t=o(5861),n=o(685),l=o.n(n),u=o(1135),a=o(3659),D=o(4674),E=o(4650),d=o(80),y=o(1390),g=o(9816),_=o(3322),f=o(8598),v=o(9156),T=o(2693),V=o(2970),B=o(4098);let Y=(()=>{class L{constructor(nt,K,Z,tt,mt,lt,ft,Yt,Rt){this.as=nt,this.router=K,this.gs=Z,this.bs=tt,this.notif=mt,this.lms=lt,this.toast=ft,this.ds=Yt,this.sw=Rt,this.mySocket=null,this.visitor=0,this.latency=0,this.maxReConnDisc=0,this.statsServer={cpus:0,mem_ram:0,disk_io:0,net_tx:0,net_rx:0,billing:0},this.messageChatUnreadCount=0,this.badgeNews=[],this.badgeBerkas=[],this.badgeFansub=[],this.github=null,this.currentServerSubject=new u.X(null),this.currentServer=this.currentServerSubject.asObservable(),this.currentServerValue=null,this.currentRoomSubject=new u.X(null),this.currentRoom=this.currentRoomSubject.asObservable(),this.currentChatRoom=[],this.globalRoomSubject=new u.X(null),this.globalRoom=this.globalRoomSubject.asObservable(),this.globalChatRoom=[],this.fansubRoomSubject=new u.X(null),this.fansubRoom=this.fansubRoomSubject.asObservable(),this.fansubChatRoom=[],this.serverLog="// Tidak Ada Catatan Log~",this.quizRoom={},this.subsServer=null,this.subsDialog=null,this.timedOut=null,this.gs.isBrowser&&(this.mySocket=l()("//",{query:{"ngsw-bypass":!0,token:this.as.token},transports:["websocket","polling"],transportOptions:{polling:{extraHeaders:{"x-access-token":this.as.token}}}}),this.socketListen(),this.checkServerMaintenance())}get currentRoomValue(){return this.currentRoomSubject?.value||null}get globalRoomValue(){return this.globalRoomSubject?.value||null}checkServerMaintenance(){var K,nt=this;this.subsServer=this.currentServer.subscribe({next:(K=(0,t.Z)(function*(Z){Z&&Z.isMaintenance&&nt.currentServerValue?.isMaintenance!==Z.isMaintenance&&(nt.subsDialog=(yield nt.ds.openMaintenanceDialog()).afterClosed().subscribe({next:tt=>{nt.gs.log("[INFO_DIALOG_CLOSED]",tt),nt.subsDialog.unsubscribe()}})),nt.currentServerValue=Z}),function(tt){return K.apply(this,arguments)})})}pingPong(){this.socketEmitVolatile("ping-pong",{},nt=>{this.gs.log("[SOCKET_PING_PONG]",nt),"github"in nt&&nt.github&&(this.github=nt.github),"visitor"in nt&&nt.visitor&&(this.visitor=nt.visitor),"server"in nt&&nt.server&&this.currentServerSubject.next(nt.server)}),this.socketEmitVolatile("stats-server",{},nt=>{this.gs.log("[SOCKET_STATS_SERVER]",nt),this.statsServer=nt})}socketListen(){var nt=this;this.mySocket.on("connect",()=>{this.gs.log("[SOCKET_CONNECTED]",this.mySocket.id),this.pingPong(),this.notif.removeNotif(`${D.N.siteName.toUpperCase()}_SOCKET_DISCONNECTED`),this.timedOut=setTimeout(()=>{this.socketLeaveAndJoinNewRoom(null,this.router.url.split("?")[0])},1234)}),this.mySocket.on("connect_error",()=>{this.gs.log("[SOCKET_CONNECT_ERROR]",this.mySocket.io.opts,"error"),this.mySocket.io.opts.transports=["polling","websocket"]}),this.mySocket.on("disconnect",K=>{this.gs.log("[SOCKET_DISCONNECTED]",K),this.notif.addNotif(null,`${D.N.siteName.toUpperCase()}_SOCKET_DISCONNECTED`,"warning","Sambungan Terputus","Tidak dapat terhubung dengan Server melalui WebSocket !!",!1),this.maxReConnDisc++,this.maxReConnDisc>10&&(this.bs.busy(),this.gs.window.location.reload())}),this.mySocket.on("ping",()=>{this.gs.log("[SOCKET_PING]",Date.now())}),this.mySocket.on("server-config",K=>{this.currentServerSubject.next(K)}),this.mySocket.on("pong",K=>{this.latency=K,this.gs.log("[SOCKET_PONG]",`${Date.now()} => ${K} ms`),this.pingPong(),this.sw.checkForUpdate()}),this.mySocket.on("visitor",K=>{this.gs.log("[SOCKET_VISITOR]",K),this.visitor=K}),this.mySocket.on("console-log",K=>{this.gs.log("[SOCKET_CONSOLE_LOG]",K),this.serverLog=`${K}\r\n${this.serverLog}`}),this.mySocket.on("force-redirect",K=>{this.gs.log("[SOCKET_REDIRECT]",K.message),this.toast.info(K.message,K.title,null,!0),this.router.navigateByUrl(K.url)}),this.mySocket.on("force-logout",K=>{this.gs.log("[SOCKET_EXIT]",K),this.toast.info(K,"Keluar Paksa!",null,!0),this.as.logout()}),this.mySocket.on("new-notification",K=>{this.gs.log("[SOCKET_NOTIFICATION]",K),this.notif.addNotif(K.notifCreator,K.notifData.id,K.notifData.type,K.notifData.title,K.notifData.content,K.notifData.dismissible,K.notifData.timeout)}),this.mySocket.on("new-information",function(){var K=(0,t.Z)(function*(Z){nt.gs.log("[SOCKET_INFORMATION]",Z),nt.subsDialog=nt.ds.openInfoDialog({data:{title:Z.infoData.title,htmlMessage:Z.infoData.content,confirmText:Z.infoData.confirm,cancelText:Z.infoData.cancel},disableClose:Z.infoData.close}).afterClosed().subscribe({next:tt=>{nt.gs.log("[INFO_DIALOG_CLOSED]",tt),nt.subsDialog.unsubscribe()}})});return function(Z){return K.apply(this,arguments)}}()),this.mySocket.on("new-berkas",K=>{this.gs.log("[SOCKET_BERKAS]",K),this.badgeBerkas.push(K);const Z=this.lms.contentMenus.find(tt=>"/berkas"===tt.link);Z&&(Z.badge=this.badgeBerkas.length>0?this.badgeBerkas.length:null)}),this.mySocket.on("new-fansub",K=>{this.gs.log("[SOCKET_FANSUB]",K),this.badgeFansub.push(K);const Z=this.lms.contentMenus.find(tt=>"/fansub"===tt.link);Z&&(Z.badge=this.badgeFansub.length>0?this.badgeFansub.length:null)}),this.mySocket.on("new-news",K=>{this.gs.log("[SOCKET_NEWS]",K),this.badgeNews.push(K);const Z=this.lms.mainMenus.find(tt=>"/news"===tt.link);Z&&(Z.badge=this.badgeNews.length>0?this.badgeNews.length:null)}),this.mySocket.on("receive-chat",K=>{this.gs.log("[SOCKET_RECEIVE-CHAT]",K),K.room_id===a.t.socketRoomNameGlobalPublic?this.globalChatRoom.push(K):K.room_id===a.t.socketRoomNameGlobalFansub?this.fansubChatRoom.push(K):K.room_id!==a.t.socketRoomNameServerLogs&&this.currentChatRoom.push(K),this.messageChatUnreadCount++}),this.mySocket.on("room-info",K=>{this.gs.log("[SOCKET_ROOM-INFO]",K),this.gs.cleanObject(K?.member_list),K.room_id===a.t.socketRoomNameGlobalPublic?this.globalRoomSubject.next(K):K.room_id===a.t.socketRoomNameGlobalFansub?this.fansubRoomSubject.next(K):K.room_id!==a.t.socketRoomNameServerLogs&&this.currentRoomSubject.next(K)}),this.mySocket.on("multiple-connection",(K,Z)=>{this.gs.log("[SOCKET_MULTIPLE-CONNECTION]",K),this.toast.warning("Sesi lain telah aktif!","Koneksi Duplikat",null,!0),this.mySocket.io.reconnection(!1),this.bs.clear(),Z&&Z()}),this.mySocket.on("quiz-question",K=>{if(this.gs.log("[SOCKET_QUIZ]",K),this.gs.routerData.question&&this.gs.routerData.options){const{room_id:Z,...tt}=K;this.quizRoom[Z]=tt,this.quizRoom[Z].options=this.gs.shuffle(this.quizRoom[Z].options)}})}socketEmit(nt,K={},Z=null){this.as.token&&(K.token=this.as.token),Z?this.mySocket?.emit(nt,K,Z):this.mySocket?.emit(nt,K)}socketEmitVolatile(nt,K={},Z=null){this.socketEmit(nt,K,Z)}socketLeaveAndJoinNewRoom(nt,K){this.gs.log(`[SOCKET_LEAVE-JOIN-ROOM] ${nt} => ${K}`),this.socketEmit("leave-join-room",{oldRoom:nt,newRoom:K})}static#t=this.\u0275fac=function(K){return new(K||L)(E.LFG(d.e),E.LFG(y.F0),E.LFG(g.U),E.LFG(_.z),E.LFG(f.T),E.LFG(v.S),E.LFG(T.k),E.LFG(V.x),E.LFG(B.H))};static#e=this.\u0275prov=E.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},2693:(ae,k,o)=>{"use strict";o.d(k,{k:()=>a});var t=o(4650),n=o(9816),l=o(7185),u=o(8598);let a=(()=>{class D{constructor(d,y,g){this.gs=d,this.toast=y,this.notif=g}remove(d){return this.toast.remove(d)}success(d,y,g,_=!1){return _&&this.notif.addNotif(null,Date.now(),"success",y,d),this.gs.isDesktop||_?this.toast.success(d,y,g):null}warning(d,y,g,_=!1){return _&&this.notif.addNotif(null,Date.now(),"warning",y,d),this.gs.isDesktop||_?this.toast.warning(d,y,g):null}info(d,y,g,_=!1){return _&&this.notif.addNotif(null,Date.now(),"info",y,d),this.gs.isDesktop||_?this.toast.info(d,y,g):null}error(d,y,g,_=!1){return _&&this.notif.addNotif(null,Date.now(),"danger",y,d),this.gs.isDesktop||_?this.toast.error(d,y,g):null}static#t=this.\u0275fac=function(y){return new(y||D)(t.LFG(n.U),t.LFG(l._W),t.LFG(u.T))};static#e=this.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},1140:(ae,k,o)=>{"use strict";o.d(k,{K:()=>D});var t=o(8505),n=o(4650),l=o(9222),u=o(80),a=o(9816);let D=(()=>{class E{constructor(y,g,_){this.api=y,this.as=g,this.gs=_}delete(y){return this.api.deleteData(`/user/${y}`)}checkBanned(y){return this.api.getData(`/banned?username=${y}`)}getAllUser(y="",g=1,_=10,f="",v=""){return this.api.getData(`/user?q=${y}&page=${g}&row=${_}&sort=${f}&order=${v}`)}getUserData(y){return this.api.getData(`/user/${y}`)}updateUser(y,g){return this.api.putData(`/user/${y}`,g).pipe((0,t.b)(_=>{this.as.token=_.result.token}))}getUserBerkas(y,g="",_=1,f=10,v="",T=""){return this.api.getData(`/user/${y}/feed-berkas?q=${g}&page=${_}&row=${f}&sort=${v}&order=${T}`)}getUserFeedComment(y,g="",_=1,f=10,v="",T=""){return this.api.getData(`/user/${y}/feed-comment?q=${g}&page=${_}&row=${f}&sort=${v}&order=${T}`)}getUserFeedLikeDislike(y,g="",_=1,f=10,v="",T=""){return this.api.getData(`/user/${y}/feed-likedislike?q=${g}&page=${_}&row=${f}&sort=${v}&order=${T}`)}getUserFeedVisit(y,g="",_=1,f=10,v="",T=""){return this.api.getData(`/user/${y}/feed-visit?q=${g}&page=${_}&row=${f}&sort=${v}&order=${T}`)}sosmedLogin(y){return this.api.postData("/verify-sosmed",y)}getUserGroup(y){return this.api.getData(`/user/${y}/group`)}findLostAccount(y){return this.api.postData("/lost-account-find",y)}resetLostAccount(y){return this.api.postData("/lost-account-reset",y)}static#t=this.\u0275fac=function(g){return new(g||E)(n.LFG(l.s),n.LFG(u.e),n.LFG(a.U))};static#e=this.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},8151:(ae,k,o)=>{"use strict";o.d(k,{N:()=>D});var t=o(5861),n=o(4650),l=o(9816),u=o(2970),a=o(7396);let D=(()=>{class E{constructor(y,g,_){this.gs=y,this.ds=g,this.ss=_,this.currentServer=null,this.openedWindow={},this.subsDialog=null,this.subsServer=null,this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:f=>this.currentServer=f}))}confirmationOpenUrl(y,g){var _=this;return(0,t.Z)(function*(){_.subsDialog=(yield _.ds.openKonfirmasiDialog(`Ingin Buka Di Tab ${"_self"===g?"Ini":"Baru"} ?`,y,!1)).afterClosed().subscribe({next:f=>{_.gs.log("[INFO_DIALOG_CLOSED]",f),!0===f&&_.gs.window.open(y,g),_.subsDialog.unsubscribe()}})})()}winboxOpenUri(y,g="_blank",_=!1){if(y.startsWith("http://")&&(y="https://"+y.slice(7,y.length)),y.startsWith("/api/"))this.confirmationOpenUrl(y,"_self");else if(this.currentServer?.winboxOpenLink&&!this.gs.includesOneOf(y,["ftp://","mailto:"])||_){const f=Date.now();this.openedWindow[f]=new WinBox(y,{id:f,title:y,url:y,class:"no-full no-shadow no-max",background:"#7b1fa2",x:"center",y:"center",top:56,right:0,bottom:32,left:this.gs.isDesktop?64:0,onclose:v=>(this.confirmationOpenUrl(y,g),!1)})}else this.confirmationOpenUrl(y,g)}static#t=this.\u0275fac=function(g){return new(g||E)(n.LFG(l.U),n.LFG(u.x),n.LFG(a.R))};static#e=this.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},3659:(ae,k,o)=>{"use strict";o.d(k,{t:()=>t});const t={apiTagAnime:"Anime",apiTagApiKey:"API Key",apiTagAttachment:"Attachment",apiTagBanned:"Banned",apiTagBerkas:"Berkas",apiTagDorama:"Dorama",apiTagDdlFile:"DDL File",apiTagFansub:"Fansub",apiTagRss:"RSS",apiTagMail:"Surat Elektronik",apiTagNews:"News",apiTagNihongo:"Nihongo",apiTagQuiz:"Quiz",apiTagSession:"Session",apiTagUser:"User",attachmentSpeedLimiterBps:256e3,blacklistedWords:["*","www","fansub","fansub.id","fansubid","fansub-id","crawl","crawler","localhost","mail","email","e-mail","tracker","fansub","fansubber","ddl","ferdion","bifeldy","dev","api","docs","cs","help","support","proxy","admin","administrator","info","information","noreply","mod","moderator"],cronCloudflareBan:"CRON_CLOUDFLARE_BAN",cronFansubRssFeed:"CRON_FANSUB_RSS_FEED",cronTrackerStatistics:"CRON_TRACKER_STATISTICS",cronSitemap:"CRON_SITEMAP",cronStatsServer:"CRON_STATS_SERVER",cronUpload:"CRON_UPLOAD",cronVpsBilling:"CRON_VPS_BILLING",decoratorFilterApiKeyAccess:"filter-api-key-access",decoratorRoles:"roles",decoratorVerifiedOnly:"verified-only",extAttachment:["avi","flv","mkv","mp4","zip"],extFonts:["ttf","otf","woff","woff2"],extSubs:["ass","srt"],externalApiCacheTime:900,failToBanMaxCountPerMin:20,fileTypeAttachmentAllowed:["video/flv","video/x-flv","video/x-msvideo","video/x-matroska","video/mp4","application/zip","application/zip-compressed","application/x-zip","application/x-zip-compressed"],fileSizeAttachmentChunkCloudflareLimit:32e6,fileSizeAttachmentChunkDiscordLimit:8e6,fileTypeAttachmentStreamable:["mkv","mp4"],fileSizeAttachmentTotalLimit:4e9,fileSizeImageLimit:512e3,freeTimeStart:"02:00:00",freeTimeEnd:"02:30:00",gCaptchaSiteKey:"6Ld4Bt4UAAAAAKJQ_jfqtWdsq9BuARLHag2DBvqK",jwtAlgorithm:"HS512",jwtExpiredIn:86400,quizOptionsCountHirakata:5,quizOptionsCountCategory:6,quizOptionsCountKanji:6,regexAllKeyboardKeys:/^[\P{Cc}\P{Cn}\P{Cs}]*$/,regexEmail:/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/,regexEmailMulti:/^[^a-z0-9_]*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+[^a-z0-9_]*,{1}[^a-z0-9_]*)*([a-z0-9_+\-.%]+@[a-z0-9_\-.]+\.[a-z]+)[^a-z0-9_]*$/,regexEnglishKeyboardKeys:/^[a-zA-Z0-9~`!@#\$%\^&\*\(\)_\-\+={\[\}\]\|\\:;"'<,>\.\?\/ \n]*$/,regexIllegalFileName:/[/\\?%*:|"<>]/g,regexIpAddress:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,regexJapaneseKeyboardKeys:/[\u4e00-\u9fa0\u3041-\u3094\u30a1-\u30f4\u30fc\uff41-\uff5a\uff21-\uff3a\uff10-\uff19\u3005\u3006\u3024\u3001\u3002]+/u,regexUrl:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/,retryDdlUploadMaxCount:5,socketRoomNameGlobalPublic:"GLOBAL_PUBLIK",socketRoomNameGlobalFansub:"GLOBAL_FANSUB",socketRoomNameServerLogs:"SERVER_LOGS",timeoutCancelRegisterKey:"TIMEOUT_CANCEL_REGISTER",timeoutCancelRegisterTime:3e5,timeoutDeleteTempAttachmentKey:"TIMEOUT_DELETE_TEMP_ATTACHMENT",timeoutDeleteTempAttachmentTime:6e5,timeoutMailWebhookTime:6e4,timeoutReconnectSocketKey:"TIMEOUT_RECONNECT_SOCKET",timeoutReconnectSocketTime:5e3,timeDiscord:6e4,timeJwtEncryption:180,timeLoginRememberMe:604800,timeResetAccount:300,timeMaxDaysNotification:6048e5,torrentIceStunServer:["stun:stun.cloudflare.com","stun:stun.l.google.com:19302","stun:tracker.fansub.id:11111"],torrentTracker:["wss://tracker.fansub.id","wss://tracker.openwebtorrent.com","wss://tracker.webtorrent.dev","wss://tracker.btorrent.xyz"],verificationDomainCname:["ghs.google.com"],verificationDomainTxt:["*.repl.co"]}},4674:(ae,k,o)=>{"use strict";o.d(k,{N:()=>n});var t=o(3659);const n={production:!0,siteName:"FansubID",siteDescription:"Di Kamar Saja!",author:"Bifeldy",domain:"fansub.id",baseUrl:"https://www.fansub.id",apiUrl:"/api",apiKey:"00000000-0000-0000-0000-000000000000",discord:{client_id:"789831990433153034",join_url:"https://discord.gg/xGWdExk",guild_id:"342220398022098944"},torrent:{trackerAnnounce:t.t.torrentTracker,iceServers:[{urls:t.t.torrentIceStunServer}]}}},1104:(ae,k,o)=>{"use strict";var t=o(1481),n=o(4650),l=o(529),u=o(9646),a=o(9300),D=o(5698),E=o(8505);function d(N){const x={};for(const m of N.keys()){const A=N.getAll(m);null!==A&&(x[m]=A)}return x}let y=(()=>{class N{constructor(m,A){this.transferState=A,this.isCacheActive=!0,m.isStable.pipe((0,a.h)(G=>G),(0,D.q)(1)).subscribe(()=>{this.isCacheActive=!1})}invalidateCacheEntry(m){Object.keys(this.transferState.store).forEach(A=>A.includes(m)?this.transferState.remove((0,t.Cb)(A)):null)}makeCacheKey(m,A,G){const Pt=G.keys().sort().map(ke=>`${ke}=${G.getAll(ke)}`).join("&");return(0,t.Cb)(("GET"===m?"G.":"H.")+A+"?"+Pt)}intercept(m,A){if("GET"!==m.method&&"HEAD"!==m.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(m.url)),!this.isCacheActive)return A.handle(m);const G=this.makeCacheKey(m.method,m.url,m.params);if(this.transferState.hasKey(G)){const Pt=this.transferState.get(G,{});return(0,u.of)(new l.Zn({body:Pt.body,headers:new l.WM(Pt.headers),status:Pt.status,statusText:Pt.statusText,url:Pt.url}))}return A.handle(m).pipe((0,E.b)(be=>{be instanceof l.Zn&&this.transferState.set(G,{body:be.body,headers:d(be.headers),status:be.status,statusText:be.statusText,url:be.url||""})}))}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(n.z2F),n.LFG(t.ki))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})(),g=(()=>{class N{}return N.\u0275fac=function(m){return new(m||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({providers:[y,{provide:l.TP,useExisting:y,multi:!0}],imports:[t.Cu]}),N})();var v=o(7340);function V(N){return new n.vHH(3e3,!1)}function Be(){return typeof window<"u"&&typeof window.document<"u"}function se(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Pe(N){switch(N.length){case 0:return new v.ZN;case 1:return N[0];default:return new v.ZE(N)}}function Ne(N,x,m,A,G=new Map,Pt=new Map){const be=[],ke=[];let ii=-1,hi=null;if(A.forEach(Oi=>{const Vi=Oi.get("offset"),Dn=Vi==ii,mn=Dn&&hi||new Map;Oi.forEach((tn,cn)=>{let Qn=cn,ir=tn;if("offset"!==cn)switch(Qn=x.normalizePropertyName(Qn,be),ir){case v.k1:ir=G.get(cn);break;case v.l3:ir=Pt.get(cn);break;default:ir=x.normalizeStyleValue(cn,Qn,ir,be)}mn.set(Qn,ir)}),Dn||ke.push(mn),hi=mn,ii=Vi}),be.length)throw function P(N){return new n.vHH(3502,!1)}();return ke}function Ce(N,x,m,A){switch(x){case"start":N.onStart(()=>A(m&&ne(m,"start",N)));break;case"done":N.onDone(()=>A(m&&ne(m,"done",N)));break;case"destroy":N.onDestroy(()=>A(m&&ne(m,"destroy",N)))}}function ne(N,x,m){const Pt=st(N.element,N.triggerName,N.fromState,N.toState,x||N.phaseName,m.totalTime??N.totalTime,!!m.disabled),be=N._data;return null!=be&&(Pt._data=be),Pt}function st(N,x,m,A,G="",Pt=0,be){return{element:N,triggerName:x,fromState:m,toState:A,phaseName:G,totalTime:Pt,disabled:!!be}}function at(N,x,m){let A=N.get(x);return A||N.set(x,A=m),A}function Ft(N){const x=N.indexOf(":");return[N.substring(1,x),N.slice(x+1)]}let xe=(N,x)=>!1,je=(N,x,m)=>[],ei=null;function ct(N){const x=N.parentNode||N.host;return x===ei?null:x}(se()||typeof Element<"u")&&(Be()?(ei=(()=>document.documentElement)(),xe=(N,x)=>{for(;x;){if(x===N)return!0;x=ct(x)}return!1}):xe=(N,x)=>N.contains(x),je=(N,x,m)=>{if(m)return Array.from(N.querySelectorAll(x));const A=N.querySelector(x);return A?[A]:[]});let ut=null,Ct=!1;const He=xe,$e=je;let mi=(()=>{class N{validateStyleProperty(m){return function Bt(N){ut||(ut=function ie(){return typeof document<"u"?document.body:null}()||{},Ct=!!ut.style&&"WebkitAppearance"in ut.style);let x=!0;return ut.style&&!function C(N){return"ebkit"==N.substring(1,6)}(N)&&(x=N in ut.style,!x&&Ct&&(x="Webkit"+N.charAt(0).toUpperCase()+N.slice(1)in ut.style)),x}(m)}matchesElement(m,A){return!1}containsElement(m,A){return He(m,A)}getParentElement(m){return ct(m)}query(m,A,G){return $e(m,A,G)}computeStyle(m,A,G){return G||""}animate(m,A,G,Pt,be,ke=[],ii){return new v.ZN(G,Pt)}}return N.\u0275fac=function(m){return new(m||N)},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})(),ki=(()=>{class N{}return N.NOOP=new mi,N})();const Ri=1e3,j="ng-enter",z="ng-leave",bt="ng-trigger",Tt=".ng-trigger",ge="ng-animating",Je=".ng-animating";function di(N){if("number"==typeof N)return N;const x=N.match(/^(-?[\.\d]+)(m?s)/);return!x||x.length<2?0:Ee(parseFloat(x[1]),x[2])}function Ee(N,x){return"s"===x?N*Ri:N}function Ve(N,x,m){return N.hasOwnProperty("duration")?N:function X(N,x,m){let G,Pt=0,be="";if("string"==typeof N){const ke=N.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ke)return x.push(V()),{duration:0,delay:0,easing:""};G=Ee(parseFloat(ke[1]),ke[2]);const ii=ke[3];null!=ii&&(Pt=Ee(parseFloat(ii),ke[4]));const hi=ke[5];hi&&(be=hi)}else G=N;if(!m){let ke=!1,ii=x.length;G<0&&(x.push(function B(){return new n.vHH(3100,!1)}()),ke=!0),Pt<0&&(x.push(function Y(){return new n.vHH(3101,!1)}()),ke=!0),ke&&x.splice(ii,0,V())}return{duration:G,delay:Pt,easing:be}}(N,x,m)}function Ot(N,x={}){return Object.keys(N).forEach(m=>{x[m]=N[m]}),x}function Et(N){const x=new Map;return Object.keys(N).forEach(m=>{x.set(m,N[m])}),x}function gi(N,x=new Map,m){if(m)for(let[A,G]of m)x.set(A,G);for(let[A,G]of N)x.set(A,G);return x}function Ei(N,x,m){return m?x+":"+m+";":""}function Gi(N){let x="";for(let m=0;m{const Pt=In(G);m&&!m.has(G)&&m.set(G,N.style[Pt]),N.style[Pt]=A}),se()&&Gi(N))}function Sn(N,x){N.style&&(x.forEach((m,A)=>{const G=In(A);N.style[G]=""}),se()&&Gi(N))}function Rn(N){return Array.isArray(N)?1==N.length?N[0]:(0,v.vP)(N):N}const Pn=new RegExp("{{\\s*(.+?)\\s*}}","g");function jn(N){let x=[];if("string"==typeof N){let m;for(;m=Pn.exec(N);)x.push(m[1]);Pn.lastIndex=0}return x}function Un(N,x,m){const A=N.toString(),G=A.replace(Pn,(Pt,be)=>{let ke=x[be];return null==ke&&(m.push(function U(N){return new n.vHH(3003,!1)}()),ke=""),ke.toString()});return G==A?N:G}function Gn(N){const x=[];let m=N.next();for(;!m.done;)x.push(m.value),m=N.next();return x}const nn=/-+([a-z0-9])/g;function In(N){return N.replace(nn,(...x)=>x[1].toUpperCase())}function Mn(N){return N.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function wn(N,x,m){switch(x.type){case 7:return N.visitTrigger(x,m);case 0:return N.visitState(x,m);case 1:return N.visitTransition(x,m);case 2:return N.visitSequence(x,m);case 3:return N.visitGroup(x,m);case 4:return N.visitAnimate(x,m);case 5:return N.visitKeyframes(x,m);case 6:return N.visitStyle(x,m);case 8:return N.visitReference(x,m);case 9:return N.visitAnimateChild(x,m);case 10:return N.visitAnimateRef(x,m);case 11:return N.visitQuery(x,m);case 12:return N.visitStagger(x,m);default:throw function nt(N){return new n.vHH(3004,!1)}()}}function Bn(N,x){return window.getComputedStyle(N)[x]}const ai="*";function Ti(N,x){const m=[];return"string"==typeof N?N.split(/\s*,\s*/).forEach(A=>function Qi(N,x,m){if(":"==N[0]){const ii=function dn(N,x){switch(N){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(m,A)=>parseFloat(A)>parseFloat(m);case":decrement":return(m,A)=>parseFloat(A) *"}}(N,m);if("function"==typeof ii)return void x.push(ii);N=ii}const A=N.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==A||A.length<4)return m.push(function Jt(N){return new n.vHH(3015,!1)}()),x;const G=A[1],Pt=A[2],be=A[3];x.push(jt(G,be));"<"==Pt[0]&&!(G==ai&&be==ai)&&x.push(jt(be,G))}(A,m,x)):m.push(N),m}const ze=new Set(["true","1"]),Ue=new Set(["false","0"]);function jt(N,x){const m=ze.has(N)||Ue.has(N),A=ze.has(x)||Ue.has(x);return(G,Pt)=>{let be=N==ai||N==G,ke=x==ai||x==Pt;return!be&&m&&"boolean"==typeof G&&(be=G?ze.has(N):Ue.has(N)),!ke&&A&&"boolean"==typeof Pt&&(ke=Pt?ze.has(x):Ue.has(x)),be&&ke}}const We=new RegExp("s*:selfs*,?","g");function q(N,x,m,A){return new kt(N).build(x,m,A)}class kt{constructor(x){this._driver=x}build(x,m,A){const G=new Mt(m);return this._resetContextStyleTimingState(G),wn(this,Rn(x),G)}_resetContextStyleTimingState(x){x.currentQuerySelector="",x.collectedStyles=new Map,x.collectedStyles.set("",new Map),x.currentTime=0}visitTrigger(x,m){let A=m.queryCount=0,G=m.depCount=0;const Pt=[],be=[];return"@"==x.name.charAt(0)&&m.errors.push(function Z(){return new n.vHH(3006,!1)}()),x.definitions.forEach(ke=>{if(this._resetContextStyleTimingState(m),0==ke.type){const ii=ke,hi=ii.name;hi.toString().split(/\s*,\s*/).forEach(Oi=>{ii.name=Oi,Pt.push(this.visitState(ii,m))}),ii.name=hi}else if(1==ke.type){const ii=this.visitTransition(ke,m);A+=ii.queryCount,G+=ii.depCount,be.push(ii)}else m.errors.push(function tt(){return new n.vHH(3007,!1)}())}),{type:7,name:x.name,states:Pt,transitions:be,queryCount:A,depCount:G,options:null}}visitState(x,m){const A=this.visitStyle(x.styles,m),G=x.options&&x.options.params||null;if(A.containsDynamicStyles){const Pt=new Set,be=G||{};A.styles.forEach(ke=>{ke instanceof Map&&ke.forEach(ii=>{jn(ii).forEach(hi=>{be.hasOwnProperty(hi)||Pt.add(hi)})})}),Pt.size&&(Gn(Pt.values()),m.errors.push(function mt(N,x){return new n.vHH(3008,!1)}()))}return{type:0,name:x.name,style:A,options:G?{params:G}:null}}visitTransition(x,m){m.queryCount=0,m.depCount=0;const A=wn(this,Rn(x.animation),m);return{type:1,matchers:Ti(x.expr,m.errors),animation:A,queryCount:m.queryCount,depCount:m.depCount,options:Ke(x.options)}}visitSequence(x,m){return{type:2,steps:x.steps.map(A=>wn(this,A,m)),options:Ke(x.options)}}visitGroup(x,m){const A=m.currentTime;let G=0;const Pt=x.steps.map(be=>{m.currentTime=A;const ke=wn(this,be,m);return G=Math.max(G,m.currentTime),ke});return m.currentTime=G,{type:3,steps:Pt,options:Ke(x.options)}}visitAnimate(x,m){const A=function _e(N,x){if(N.hasOwnProperty("duration"))return N;if("number"==typeof N)return fi(Ve(N,x).duration,0,"");const m=N;if(m.split(/\s+/).some(Pt=>"{"==Pt.charAt(0)&&"{"==Pt.charAt(1))){const Pt=fi(0,0,"");return Pt.dynamic=!0,Pt.strValue=m,Pt}const G=Ve(m,x);return fi(G.duration,G.delay,G.easing)}(x.timings,m.errors);m.currentAnimateTimings=A;let G,Pt=x.styles?x.styles:(0,v.oB)({});if(5==Pt.type)G=this.visitKeyframes(Pt,m);else{let be=x.styles,ke=!1;if(!be){ke=!0;const hi={};A.easing&&(hi.easing=A.easing),be=(0,v.oB)(hi)}m.currentTime+=A.duration+A.delay;const ii=this.visitStyle(be,m);ii.isEmptyStep=ke,G=ii}return m.currentAnimateTimings=null,{type:4,timings:A,style:G,options:null}}visitStyle(x,m){const A=this._makeStyleAst(x,m);return this._validateStyleAst(A,m),A}_makeStyleAst(x,m){const A=[],G=Array.isArray(x.styles)?x.styles:[x.styles];for(let ke of G)"string"==typeof ke?ke===v.l3?A.push(ke):m.errors.push(new n.vHH(3002,!1)):A.push(Et(ke));let Pt=!1,be=null;return A.forEach(ke=>{if(ke instanceof Map&&(ke.has("easing")&&(be=ke.get("easing"),ke.delete("easing")),!Pt))for(let ii of ke.values())if(ii.toString().indexOf("{{")>=0){Pt=!0;break}}),{type:6,styles:A,easing:be,offset:x.offset,containsDynamicStyles:Pt,options:null}}_validateStyleAst(x,m){const A=m.currentAnimateTimings;let G=m.currentTime,Pt=m.currentTime;A&&Pt>0&&(Pt-=A.duration+A.delay),x.styles.forEach(be=>{"string"!=typeof be&&be.forEach((ke,ii)=>{const hi=m.collectedStyles.get(m.currentQuerySelector),Oi=hi.get(ii);let Vi=!0;Oi&&(Pt!=G&&Pt>=Oi.startTime&&G<=Oi.endTime&&(m.errors.push(function Yt(N,x,m,A,G){return new n.vHH(3010,!1)}()),Vi=!1),Pt=Oi.startTime),Vi&&hi.set(ii,{startTime:Pt,endTime:G}),m.options&&function cr(N,x,m){const A=x.params||{},G=jn(N);G.length&&G.forEach(Pt=>{A.hasOwnProperty(Pt)||m.push(function L(N){return new n.vHH(3001,!1)}())})}(ke,m.options,m.errors)})})}visitKeyframes(x,m){const A={type:5,styles:[],options:null};if(!m.currentAnimateTimings)return m.errors.push(function Rt(){return new n.vHH(3011,!1)}()),A;let Pt=0;const be=[];let ke=!1,ii=!1,hi=0;const Oi=x.steps.map(ir=>{const Ar=this._makeStyleAst(ir,m);let da=null!=Ar.offset?Ar.offset:function $t(N){if("string"==typeof N)return null;let x=null;if(Array.isArray(N))N.forEach(m=>{if(m instanceof Map&&m.has("offset")){const A=m;x=parseFloat(A.get("offset")),A.delete("offset")}});else if(N instanceof Map&&N.has("offset")){const m=N;x=parseFloat(m.get("offset")),m.delete("offset")}return x}(Ar.styles),Fr=0;return null!=da&&(Pt++,Fr=Ar.offset=da),ii=ii||Fr<0||Fr>1,ke=ke||Fr0&&Pt{const da=Dn>0?Ar==mn?1:Dn*Ar:be[Ar],Fr=da*Qn;m.currentTime=tn+cn.delay+Fr,cn.duration=Fr,this._validateStyleAst(ir,m),ir.offset=da,A.styles.push(ir)}),A}visitReference(x,m){return{type:8,animation:wn(this,Rn(x.animation),m),options:Ke(x.options)}}visitAnimateChild(x,m){return m.depCount++,{type:9,options:Ke(x.options)}}visitAnimateRef(x,m){return{type:10,animation:this.visitReference(x.animation,m),options:Ke(x.options)}}visitQuery(x,m){const A=m.currentQuerySelector,G=x.options||{};m.queryCount++,m.currentQuery=x;const[Pt,be]=function ue(N){const x=!!N.split(/\s*,\s*/).find(m=>":self"==m);return x&&(N=N.replace(We,"")),N=N.replace(/@\*/g,Tt).replace(/@\w+/g,m=>Tt+"-"+m.slice(1)).replace(/:animating/g,Je),[N,x]}(x.selector);m.currentQuerySelector=A.length?A+" "+Pt:Pt,at(m.collectedStyles,m.currentQuerySelector,new Map);const ke=wn(this,Rn(x.animation),m);return m.currentQuery=null,m.currentQuerySelector=A,{type:11,selector:Pt,limit:G.limit||0,optional:!!G.optional,includeSelf:be,animation:ke,originalSelector:x.selector,options:Ke(x.options)}}visitStagger(x,m){m.currentQuery||m.errors.push(function te(){return new n.vHH(3013,!1)}());const A="full"===x.timings?{duration:0,delay:0,easing:"full"}:Ve(x.timings,m.errors,!0);return{type:12,animation:wn(this,Rn(x.animation),m),timings:A,options:null}}}class Mt{constructor(x){this.errors=x,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 Ke(N){return N?(N=Ot(N)).params&&(N.params=function ti(N){return N?Ot(N):null}(N.params)):N={},N}function fi(N,x,m){return{duration:N,delay:x,easing:m}}function xi(N,x,m,A,G,Pt,be=null,ke=!1){return{type:1,element:N,keyframes:x,preStyleProps:m,postStyleProps:A,duration:G,delay:Pt,totalTime:G+Pt,easing:be,subTimeline:ke}}class zi{constructor(){this._map=new Map}get(x){return this._map.get(x)||[]}append(x,m){let A=this._map.get(x);A||this._map.set(x,A=[]),A.push(...m)}has(x){return this._map.has(x)}clear(){this._map.clear()}}const _n=new RegExp(":enter","g"),Cn=new RegExp(":leave","g");function $n(N,x,m,A,G,Pt=new Map,be=new Map,ke,ii,hi=[]){return(new vr).buildKeyframes(N,x,m,A,G,Pt,be,ke,ii,hi)}class vr{buildKeyframes(x,m,A,G,Pt,be,ke,ii,hi,Oi=[]){hi=hi||new zi;const Vi=new Or(x,m,hi,G,Pt,Oi,[]);Vi.options=ii;const Dn=ii.delay?di(ii.delay):0;Vi.currentTimeline.delayNextStep(Dn),Vi.currentTimeline.setStyles([be],null,Vi.errors,ii),wn(this,A,Vi);const mn=Vi.timelines.filter(tn=>tn.containsAnimation());if(mn.length&&ke.size){let tn;for(let cn=mn.length-1;cn>=0;cn--){const Qn=mn[cn];if(Qn.element===m){tn=Qn;break}}tn&&!tn.allowOnlyTimelineStyles()&&tn.setStyles([ke],null,Vi.errors,ii)}return mn.length?mn.map(tn=>tn.buildKeyframes()):[xi(m,[],[],[],0,Dn,"",!1)]}visitTrigger(x,m){}visitState(x,m){}visitTransition(x,m){}visitAnimateChild(x,m){const A=m.subInstructions.get(m.element);if(A){const G=m.createSubContext(x.options),Pt=m.currentTimeline.currentTime,be=this._visitSubInstructions(A,G,G.options);Pt!=be&&m.transformIntoNewTimeline(be)}m.previousNode=x}visitAnimateRef(x,m){const A=m.createSubContext(x.options);A.transformIntoNewTimeline(),this._applyAnimationRefDelays([x.options,x.animation.options],m,A),this.visitReference(x.animation,A),m.transformIntoNewTimeline(A.currentTimeline.currentTime),m.previousNode=x}_applyAnimationRefDelays(x,m,A){for(const G of x){const Pt=G?.delay;if(Pt){const be="number"==typeof Pt?Pt:di(Un(Pt,G?.params??{},m.errors));A.delayNextStep(be)}}}_visitSubInstructions(x,m,A){let Pt=m.currentTimeline.currentTime;const be=null!=A.duration?di(A.duration):null,ke=null!=A.delay?di(A.delay):null;return 0!==be&&x.forEach(ii=>{const hi=m.appendInstructionToTimeline(ii,be,ke);Pt=Math.max(Pt,hi.duration+hi.delay)}),Pt}visitReference(x,m){m.updateOptions(x.options,!0),wn(this,x.animation,m),m.previousNode=x}visitSequence(x,m){const A=m.subContextCount;let G=m;const Pt=x.options;if(Pt&&(Pt.params||Pt.delay)&&(G=m.createSubContext(Pt),G.transformIntoNewTimeline(),null!=Pt.delay)){6==G.previousNode.type&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=dr);const be=di(Pt.delay);G.delayNextStep(be)}x.steps.length&&(x.steps.forEach(be=>wn(this,be,G)),G.currentTimeline.applyStylesToKeyframe(),G.subContextCount>A&&G.transformIntoNewTimeline()),m.previousNode=x}visitGroup(x,m){const A=[];let G=m.currentTimeline.currentTime;const Pt=x.options&&x.options.delay?di(x.options.delay):0;x.steps.forEach(be=>{const ke=m.createSubContext(x.options);Pt&&ke.delayNextStep(Pt),wn(this,be,ke),G=Math.max(G,ke.currentTimeline.currentTime),A.push(ke.currentTimeline)}),A.forEach(be=>m.currentTimeline.mergeTimelineCollectedStyles(be)),m.transformIntoNewTimeline(G),m.previousNode=x}_visitTiming(x,m){if(x.dynamic){const A=x.strValue;return Ve(m.params?Un(A,m.params,m.errors):A,m.errors)}return{duration:x.duration,delay:x.delay,easing:x.easing}}visitAnimate(x,m){const A=m.currentAnimateTimings=this._visitTiming(x.timings,m),G=m.currentTimeline;A.delay&&(m.incrementTime(A.delay),G.snapshotCurrentStyles());const Pt=x.style;5==Pt.type?this.visitKeyframes(Pt,m):(m.incrementTime(A.duration),this.visitStyle(Pt,m),G.applyStylesToKeyframe()),m.currentAnimateTimings=null,m.previousNode=x}visitStyle(x,m){const A=m.currentTimeline,G=m.currentAnimateTimings;!G&&A.hasCurrentStyleProperties()&&A.forwardFrame();const Pt=G&&G.easing||x.easing;x.isEmptyStep?A.applyEmptyStep(Pt):A.setStyles(x.styles,Pt,m.errors,m.options),m.previousNode=x}visitKeyframes(x,m){const A=m.currentAnimateTimings,G=m.currentTimeline.duration,Pt=A.duration,ke=m.createSubContext().currentTimeline;ke.easing=A.easing,x.styles.forEach(ii=>{ke.forwardTime((ii.offset||0)*Pt),ke.setStyles(ii.styles,ii.easing,m.errors,m.options),ke.applyStylesToKeyframe()}),m.currentTimeline.mergeTimelineCollectedStyles(ke),m.transformIntoNewTimeline(G+Pt),m.previousNode=x}visitQuery(x,m){const A=m.currentTimeline.currentTime,G=x.options||{},Pt=G.delay?di(G.delay):0;Pt&&(6===m.previousNode.type||0==A&&m.currentTimeline.hasCurrentStyleProperties())&&(m.currentTimeline.snapshotCurrentStyles(),m.previousNode=dr);let be=A;const ke=m.invokeQuery(x.selector,x.originalSelector,x.limit,x.includeSelf,!!G.optional,m.errors);m.currentQueryTotal=ke.length;let ii=null;ke.forEach((hi,Oi)=>{m.currentQueryIndex=Oi;const Vi=m.createSubContext(x.options,hi);Pt&&Vi.delayNextStep(Pt),hi===m.element&&(ii=Vi.currentTimeline),wn(this,x.animation,Vi),Vi.currentTimeline.applyStylesToKeyframe(),be=Math.max(be,Vi.currentTimeline.currentTime)}),m.currentQueryIndex=0,m.currentQueryTotal=0,m.transformIntoNewTimeline(be),ii&&(m.currentTimeline.mergeTimelineCollectedStyles(ii),m.currentTimeline.snapshotCurrentStyles()),m.previousNode=x}visitStagger(x,m){const A=m.parentContext,G=m.currentTimeline,Pt=x.timings,be=Math.abs(Pt.duration),ke=be*(m.currentQueryTotal-1);let ii=be*m.currentQueryIndex;switch(Pt.duration<0?"reverse":Pt.easing){case"reverse":ii=ke-ii;break;case"full":ii=A.currentStaggerTime}const Oi=m.currentTimeline;ii&&Oi.delayNextStep(ii);const Vi=Oi.currentTime;wn(this,x.animation,m),m.previousNode=x,A.currentStaggerTime=G.currentTime-Vi+(G.startTime-A.currentTimeline.startTime)}}const dr={};class Or{constructor(x,m,A,G,Pt,be,ke,ii){this._driver=x,this.element=m,this.subInstructions=A,this._enterClassName=G,this._leaveClassName=Pt,this.errors=be,this.timelines=ke,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ii||new Kn(this._driver,m,0),ke.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(x,m){if(!x)return;const A=x;let G=this.options;null!=A.duration&&(G.duration=di(A.duration)),null!=A.delay&&(G.delay=di(A.delay));const Pt=A.params;if(Pt){let be=G.params;be||(be=this.options.params={}),Object.keys(Pt).forEach(ke=>{(!m||!be.hasOwnProperty(ke))&&(be[ke]=Un(Pt[ke],be,this.errors))})}}_copyOptions(){const x={};if(this.options){const m=this.options.params;if(m){const A=x.params={};Object.keys(m).forEach(G=>{A[G]=m[G]})}}return x}createSubContext(x=null,m,A){const G=m||this.element,Pt=new Or(this._driver,G,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(G,A||0));return Pt.previousNode=this.previousNode,Pt.currentAnimateTimings=this.currentAnimateTimings,Pt.options=this._copyOptions(),Pt.updateOptions(x),Pt.currentQueryIndex=this.currentQueryIndex,Pt.currentQueryTotal=this.currentQueryTotal,Pt.parentContext=this,this.subContextCount++,Pt}transformIntoNewTimeline(x){return this.previousNode=dr,this.currentTimeline=this.currentTimeline.fork(this.element,x),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(x,m,A){const G={duration:m??x.duration,delay:this.currentTimeline.currentTime+(A??0)+x.delay,easing:""},Pt=new Ga(this._driver,x.element,x.keyframes,x.preStyleProps,x.postStyleProps,G,x.stretchStartingKeyframe);return this.timelines.push(Pt),G}incrementTime(x){this.currentTimeline.forwardTime(this.currentTimeline.duration+x)}delayNextStep(x){x>0&&this.currentTimeline.delayNextStep(x)}invokeQuery(x,m,A,G,Pt,be){let ke=[];if(G&&ke.push(this.element),x.length>0){x=(x=x.replace(_n,"."+this._enterClassName)).replace(Cn,"."+this._leaveClassName);let hi=this._driver.query(this.element,x,1!=A);0!==A&&(hi=A<0?hi.slice(hi.length+A,hi.length):hi.slice(0,A)),ke.push(...hi)}return!Pt&&0==ke.length&&be.push(function Ht(N){return new n.vHH(3014,!1)}()),ke}}class Kn{constructor(x,m,A,G){this._driver=x,this.element=m,this.startTime=A,this._elementTimelineStylesLookup=G,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(m),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(m,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(x){const m=1===this._keyframes.size&&this._pendingStyles.size;this.duration||m?(this.forwardTime(this.currentTime+x),m&&this.snapshotCurrentStyles()):this.startTime+=x}fork(x,m){return this.applyStylesToKeyframe(),new Kn(this._driver,x,m||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(x){this.applyStylesToKeyframe(),this.duration=x,this._loadKeyframe()}_updateStyle(x,m){this._localTimelineStyles.set(x,m),this._globalTimelineStyles.set(x,m),this._styleSummary.set(x,{time:this.currentTime,value:m})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(x){x&&this._previousKeyframe.set("easing",x);for(let[m,A]of this._globalTimelineStyles)this._backFill.set(m,A||v.l3),this._currentKeyframe.set(m,v.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(x,m,A,G){m&&this._previousKeyframe.set("easing",m);const Pt=G&&G.params||{},be=function Ba(N,x){const m=new Map;let A;return N.forEach(G=>{if("*"===G){A=A||x.keys();for(let Pt of A)m.set(Pt,v.l3)}else gi(G,m)}),m}(x,this._globalTimelineStyles);for(let[ke,ii]of be){const hi=Un(ii,Pt,A);this._pendingStyles.set(ke,hi),this._localTimelineStyles.has(ke)||this._backFill.set(ke,this._globalTimelineStyles.get(ke)??v.l3),this._updateStyle(ke,hi)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((x,m)=>{this._currentKeyframe.set(m,x)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((x,m)=>{this._currentKeyframe.has(m)||this._currentKeyframe.set(m,x)}))}snapshotCurrentStyles(){for(let[x,m]of this._localTimelineStyles)this._pendingStyles.set(x,m),this._updateStyle(x,m)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const x=[];for(let m in this._currentKeyframe)x.push(m);return x}mergeTimelineCollectedStyles(x){x._styleSummary.forEach((m,A)=>{const G=this._styleSummary.get(A);(!G||m.time>G.time)&&this._updateStyle(A,m.value)})}buildKeyframes(){this.applyStylesToKeyframe();const x=new Set,m=new Set,A=1===this._keyframes.size&&0===this.duration;let G=[];this._keyframes.forEach((ke,ii)=>{const hi=gi(ke,new Map,this._backFill);hi.forEach((Oi,Vi)=>{Oi===v.k1?x.add(Vi):Oi===v.l3&&m.add(Vi)}),A||hi.set("offset",ii/this.duration),G.push(hi)});const Pt=x.size?Gn(x.values()):[],be=m.size?Gn(m.values()):[];if(A){const ke=G[0],ii=new Map(ke);ke.set("offset",0),ii.set("offset",1),G=[ke,ii]}return xi(this.element,G,Pt,be,this.duration,this.startTime,this.easing,!1)}}class Ga extends Kn{constructor(x,m,A,G,Pt,be,ke=!1){super(x,m,be.delay),this.keyframes=A,this.preStyleProps=G,this.postStyleProps=Pt,this._stretchStartingKeyframe=ke,this.timings={duration:be.duration,delay:be.delay,easing:be.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let x=this.keyframes,{delay:m,duration:A,easing:G}=this.timings;if(this._stretchStartingKeyframe&&m){const Pt=[],be=A+m,ke=m/be,ii=gi(x[0]);ii.set("offset",0),Pt.push(ii);const hi=gi(x[0]);hi.set("offset",xr(ke)),Pt.push(hi);const Oi=x.length-1;for(let Vi=1;Vi<=Oi;Vi++){let Dn=gi(x[Vi]);const mn=Dn.get("offset");Dn.set("offset",xr((m+mn*A)/be)),Pt.push(Dn)}A=be,m=0,G="",x=Pt}return xi(this.element,x,this.preStyleProps,this.postStyleProps,A,m,G,!0)}}function xr(N,x=3){const m=Math.pow(10,x-1);return Math.round(N*m)/m}class Ur{}const Vr=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 ia extends Ur{normalizePropertyName(x,m){return In(x)}normalizeStyleValue(x,m,A,G){let Pt="";const be=A.toString().trim();if(Vr.has(m)&&0!==A&&"0"!==A)if("number"==typeof A)Pt="px";else{const ke=A.match(/^[+-]?[\d\.]+([a-z]*)$/);ke&&0==ke[1].length&&G.push(function K(N,x){return new n.vHH(3005,!1)}())}return be+Pt}}function ma(N,x,m,A,G,Pt,be,ke,ii,hi,Oi,Vi,Dn){return{type:0,element:N,triggerName:x,isRemovalTransition:G,fromState:m,fromStyles:Pt,toState:A,toStyles:be,timelines:ke,queriedElements:ii,preStyleProps:hi,postStyleProps:Oi,totalTime:Vi,errors:Dn}}const na={};class zr{constructor(x,m,A){this._triggerName=x,this.ast=m,this._stateStyles=A}match(x,m,A,G){return function Da(N,x,m,A,G){return N.some(Pt=>Pt(x,m,A,G))}(this.ast.matchers,x,m,A,G)}buildStyles(x,m,A){let G=this._stateStyles.get("*");return void 0!==x&&(G=this._stateStyles.get(x?.toString())||G),G?G.buildStyles(m,A):new Map}build(x,m,A,G,Pt,be,ke,ii,hi,Oi){const Vi=[],Dn=this.ast.options&&this.ast.options.params||na,tn=this.buildStyles(A,ke&&ke.params||na,Vi),cn=ii&&ii.params||na,Qn=this.buildStyles(G,cn,Vi),ir=new Set,Ar=new Map,da=new Map,Fr="void"===G,wo={params:Na(cn,Dn),delay:this.ast.options?.delay},Xa=Oi?[]:$n(x,m,this.ast.animation,Pt,be,tn,Qn,wo,hi,Vi);let ea=0;if(Xa.forEach(Br=>{ea=Math.max(Br.duration+Br.delay,ea)}),Vi.length)return ma(m,this._triggerName,A,G,Fr,tn,Qn,[],[],Ar,da,ea,Vi);Xa.forEach(Br=>{const ho=Br.element,Rl=at(Ar,ho,new Set);Br.preStyleProps.forEach(Co=>Rl.add(Co));const ss=at(da,ho,new Set);Br.postStyleProps.forEach(Co=>ss.add(Co)),ho!==m&&ir.add(ho)});const no=Gn(ir.values());return ma(m,this._triggerName,A,G,Fr,tn,Qn,Xa,no,Ar,da,ea)}}function Na(N,x){const m=Ot(x);for(const A in N)N.hasOwnProperty(A)&&null!=N[A]&&(m[A]=N[A]);return m}class Ma{constructor(x,m,A){this.styles=x,this.defaultParams=m,this.normalizer=A}buildStyles(x,m){const A=new Map,G=Ot(this.defaultParams);return Object.keys(x).forEach(Pt=>{const be=x[Pt];null!==be&&(G[Pt]=be)}),this.styles.styles.forEach(Pt=>{"string"!=typeof Pt&&Pt.forEach((be,ke)=>{be&&(be=Un(be,G,m));const ii=this.normalizer.normalizePropertyName(ke,m);be=this.normalizer.normalizeStyleValue(ke,ii,be,m),A.set(ke,be)})}),A}}class Zr{constructor(x,m,A){this.name=x,this.ast=m,this._normalizer=A,this.transitionFactories=[],this.states=new Map,m.states.forEach(G=>{this.states.set(G.name,new Ma(G.style,G.options&&G.options.params||{},A))}),Ea(this.states,"true","1"),Ea(this.states,"false","0"),m.transitions.forEach(G=>{this.transitionFactories.push(new zr(x,G,this.states))}),this.fallbackTransition=function pa(N,x,m){return new zr(N,{type:1,animation:{type:2,steps:[],options:null},matchers:[(be,ke)=>!0],options:null,queryCount:0,depCount:0},x)}(x,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(x,m,A,G){return this.transitionFactories.find(be=>be.match(x,m,A,G))||null}matchStyles(x,m,A){return this.fallbackTransition.buildStyles(x,m,A)}}function Ea(N,x,m){N.has(x)?N.has(m)||N.set(m,N.get(x)):N.has(m)&&N.set(x,N.get(m))}const Wa=new zi;class Er{constructor(x,m,A){this.bodyNode=x,this._driver=m,this._normalizer=A,this._animations=new Map,this._playersById=new Map,this.players=[]}register(x,m){const A=[],G=[],Pt=q(this._driver,m,A,G);if(A.length)throw function Lt(N){return new n.vHH(3503,!1)}();this._animations.set(x,Pt)}_buildPlayer(x,m,A){const G=x.element,Pt=Ne(0,this._normalizer,0,x.keyframes,m,A);return this._driver.animate(G,Pt,x.duration,x.delay,x.easing,[],!0)}create(x,m,A={}){const G=[],Pt=this._animations.get(x);let be;const ke=new Map;if(Pt?(be=$n(this._driver,m,Pt,j,z,new Map,new Map,A,Wa,G),be.forEach(Oi=>{const Vi=at(ke,Oi.element,new Map);Oi.postStyleProps.forEach(Dn=>Vi.set(Dn,null))})):(G.push(function vt(){return new n.vHH(3300,!1)}()),be=[]),G.length)throw function Wt(N){return new n.vHH(3504,!1)}();ke.forEach((Oi,Vi)=>{Oi.forEach((Dn,mn)=>{Oi.set(mn,this._driver.computeStyle(Vi,mn,v.l3))})});const hi=Pe(be.map(Oi=>{const Vi=ke.get(Oi.element);return this._buildPlayer(Oi,new Map,Vi)}));return this._playersById.set(x,hi),hi.onDestroy(()=>this.destroy(x)),this.players.push(hi),hi}destroy(x){const m=this._getPlayer(x);m.destroy(),this._playersById.delete(x);const A=this.players.indexOf(m);A>=0&&this.players.splice(A,1)}_getPlayer(x){const m=this._playersById.get(x);if(!m)throw function Ut(N){return new n.vHH(3301,!1)}();return m}listen(x,m,A,G){const Pt=st(m,"","","");return Ce(this._getPlayer(x),A,Pt,G),()=>{}}command(x,m,A,G){if("register"==A)return void this.register(x,G[0]);if("create"==A)return void this.create(x,m,G[0]||{});const Pt=this._getPlayer(x);switch(A){case"play":Pt.play();break;case"pause":Pt.pause();break;case"reset":Pt.reset();break;case"restart":Pt.restart();break;case"finish":Pt.finish();break;case"init":Pt.init();break;case"setPosition":Pt.setPosition(parseFloat(G[0]));break;case"destroy":this.destroy(x)}}}const wr="ng-animate-queued",ga="ng-animate-disabled",Ta=[],Ua={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},to={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},nr="__ng_removed";class Qr{get params(){return this.options.params}constructor(x,m=""){this.namespaceId=m;const A=x&&x.hasOwnProperty("value");if(this.value=function Jn(N){return N??null}(A?x.value:x),A){const Pt=Ot(x);delete Pt.value,this.options=Pt}else this.options={};this.options.params||(this.options.params={})}absorbOptions(x){const m=x.params;if(m){const A=this.options.params;Object.keys(m).forEach(G=>{null==A[G]&&(A[G]=m[G])})}}}const ar="void",ra=new Qr(ar);class un{constructor(x,m,A){this.id=x,this.hostElement=m,this._engine=A,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+x,or(m,this._hostClassName)}listen(x,m,A,G){if(!this._triggers.has(m))throw function he(N,x){return new n.vHH(3302,!1)}();if(null==A||0==A.length)throw function we(N){return new n.vHH(3303,!1)}();if(!function xa(N){return"start"==N||"done"==N}(A))throw function ve(N,x){return new n.vHH(3400,!1)}();const Pt=at(this._elementListeners,x,[]),be={name:m,phase:A,callback:G};Pt.push(be);const ke=at(this._engine.statesByElement,x,new Map);return ke.has(m)||(or(x,bt),or(x,bt+"-"+m),ke.set(m,ra)),()=>{this._engine.afterFlush(()=>{const ii=Pt.indexOf(be);ii>=0&&Pt.splice(ii,1),this._triggers.has(m)||ke.delete(m)})}}register(x,m){return!this._triggers.has(x)&&(this._triggers.set(x,m),!0)}_getTrigger(x){const m=this._triggers.get(x);if(!m)throw function rt(N){return new n.vHH(3401,!1)}();return m}trigger(x,m,A,G=!0){const Pt=this._getTrigger(m),be=new Zn(this.id,m,x);let ke=this._engine.statesByElement.get(x);ke||(or(x,bt),or(x,bt+"-"+m),this._engine.statesByElement.set(x,ke=new Map));let ii=ke.get(m);const hi=new Qr(A,this.id);if(!(A&&A.hasOwnProperty("value"))&&ii&&hi.absorbOptions(ii.options),ke.set(m,hi),ii||(ii=ra),hi.value!==ar&&ii.value===hi.value){if(!function Ji(N,x){const m=Object.keys(N),A=Object.keys(x);if(m.length!=A.length)return!1;for(let G=0;G{Sn(x,Qn),Xi(x,ir)})}return}const Dn=at(this._engine.playersByElement,x,[]);Dn.forEach(cn=>{cn.namespaceId==this.id&&cn.triggerName==m&&cn.queued&&cn.destroy()});let mn=Pt.matchTransition(ii.value,hi.value,x,hi.params),tn=!1;if(!mn){if(!G)return;mn=Pt.fallbackTransition,tn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:x,triggerName:m,transition:mn,fromState:ii,toState:hi,player:be,isFallbackTransition:tn}),tn||(or(x,wr),be.onStart(()=>{mr(x,wr)})),be.onDone(()=>{let cn=this.players.indexOf(be);cn>=0&&this.players.splice(cn,1);const Qn=this._engine.playersByElement.get(x);if(Qn){let ir=Qn.indexOf(be);ir>=0&&Qn.splice(ir,1)}}),this.players.push(be),Dn.push(be),be}deregister(x){this._triggers.delete(x),this._engine.statesByElement.forEach(m=>m.delete(x)),this._elementListeners.forEach((m,A)=>{this._elementListeners.set(A,m.filter(G=>G.name!=x))})}clearElementCache(x){this._engine.statesByElement.delete(x),this._elementListeners.delete(x);const m=this._engine.playersByElement.get(x);m&&(m.forEach(A=>A.destroy()),this._engine.playersByElement.delete(x))}_signalRemovalForInnerTriggers(x,m){const A=this._engine.driver.query(x,Tt,!0);A.forEach(G=>{if(G[nr])return;const Pt=this._engine.fetchNamespacesByElement(G);Pt.size?Pt.forEach(be=>be.triggerLeaveAnimation(G,m,!1,!0)):this.clearElementCache(G)}),this._engine.afterFlushAnimationsDone(()=>A.forEach(G=>this.clearElementCache(G)))}triggerLeaveAnimation(x,m,A,G){const Pt=this._engine.statesByElement.get(x),be=new Map;if(Pt){const ke=[];if(Pt.forEach((ii,hi)=>{if(be.set(hi,ii.value),this._triggers.has(hi)){const Oi=this.trigger(x,hi,ar,G);Oi&&ke.push(Oi)}}),ke.length)return this._engine.markElementAsRemoved(this.id,x,!0,m,be),A&&Pe(ke).onDone(()=>this._engine.processLeaveNode(x)),!0}return!1}prepareLeaveAnimationListeners(x){const m=this._elementListeners.get(x),A=this._engine.statesByElement.get(x);if(m&&A){const G=new Set;m.forEach(Pt=>{const be=Pt.name;if(G.has(be))return;G.add(be);const ii=this._triggers.get(be).fallbackTransition,hi=A.get(be)||ra,Oi=new Qr(ar),Vi=new Zn(this.id,be,x);this._engine.totalQueuedPlayers++,this._queue.push({element:x,triggerName:be,transition:ii,fromState:hi,toState:Oi,player:Vi,isFallbackTransition:!0})})}}removeNode(x,m){const A=this._engine;if(x.childElementCount&&this._signalRemovalForInnerTriggers(x,m),this.triggerLeaveAnimation(x,m,!0))return;let G=!1;if(A.totalAnimations){const Pt=A.players.length?A.playersByQueriedElement.get(x):[];if(Pt&&Pt.length)G=!0;else{let be=x;for(;be=be.parentNode;)if(A.statesByElement.get(be)){G=!0;break}}}if(this.prepareLeaveAnimationListeners(x),G)A.markElementAsRemoved(this.id,x,!1,m);else{const Pt=x[nr];(!Pt||Pt===Ua)&&(A.afterFlush(()=>this.clearElementCache(x)),A.destroyInnerAnimations(x),A._onRemovalComplete(x,m))}}insertNode(x,m){or(x,this._hostClassName)}drainQueuedTransitions(x){const m=[];return this._queue.forEach(A=>{const G=A.player;if(G.destroyed)return;const Pt=A.element,be=this._elementListeners.get(Pt);be&&be.forEach(ke=>{if(ke.name==A.triggerName){const ii=st(Pt,A.triggerName,A.fromState.value,A.toState.value);ii._data=x,Ce(A.player,ke.phase,ii,ke.callback)}}),G.markedForDestroy?this._engine.afterFlush(()=>{G.destroy()}):m.push(A)}),this._queue=[],m.sort((A,G)=>{const Pt=A.transition.ast.depCount,be=G.transition.ast.depCount;return 0==Pt||0==be?Pt-be:this._engine.driver.containsElement(A.element,G.element)?1:-1})}destroy(x){this.players.forEach(m=>m.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,x)}elementContainsData(x){let m=!1;return this._elementListeners.has(x)&&(m=!0),m=!!this._queue.find(A=>A.element===x)||m,m}}class On{_onRemovalComplete(x,m){this.onRemovalComplete(x,m)}constructor(x,m,A){this.bodyNode=x,this.driver=m,this._normalizer=A,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=(G,Pt)=>{}}get queuedPlayers(){const x=[];return this._namespaceList.forEach(m=>{m.players.forEach(A=>{A.queued&&x.push(A)})}),x}createNamespace(x,m){const A=new un(x,m,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,m)?this._balanceNamespaceList(A,m):(this.newHostElements.set(m,A),this.collectEnterElement(m)),this._namespaceLookup[x]=A}_balanceNamespaceList(x,m){const A=this._namespaceList,G=this.namespacesByHostElement;if(A.length-1>=0){let be=!1,ke=this.driver.getParentElement(m);for(;ke;){const ii=G.get(ke);if(ii){const hi=A.indexOf(ii);A.splice(hi+1,0,x),be=!0;break}ke=this.driver.getParentElement(ke)}be||A.unshift(x)}else A.push(x);return G.set(m,x),x}register(x,m){let A=this._namespaceLookup[x];return A||(A=this.createNamespace(x,m)),A}registerTrigger(x,m,A){let G=this._namespaceLookup[x];G&&G.register(m,A)&&this.totalAnimations++}destroy(x,m){if(!x)return;const A=this._fetchNamespace(x);this.afterFlush(()=>{this.namespacesByHostElement.delete(A.hostElement),delete this._namespaceLookup[x];const G=this._namespaceList.indexOf(A);G>=0&&this._namespaceList.splice(G,1)}),this.afterFlushAnimationsDone(()=>A.destroy(m))}_fetchNamespace(x){return this._namespaceLookup[x]}fetchNamespacesByElement(x){const m=new Set,A=this.statesByElement.get(x);if(A)for(let G of A.values())if(G.namespaceId){const Pt=this._fetchNamespace(G.namespaceId);Pt&&m.add(Pt)}return m}trigger(x,m,A,G){if(Tr(m)){const Pt=this._fetchNamespace(x);if(Pt)return Pt.trigger(m,A,G),!0}return!1}insertNode(x,m,A,G){if(!Tr(m))return;const Pt=m[nr];if(Pt&&Pt.setForRemoval){Pt.setForRemoval=!1,Pt.setForMove=!0;const be=this.collectedLeaveElements.indexOf(m);be>=0&&this.collectedLeaveElements.splice(be,1)}if(x){const be=this._fetchNamespace(x);be&&be.insertNode(m,A)}G&&this.collectEnterElement(m)}collectEnterElement(x){this.collectedEnterElements.push(x)}markElementAsDisabled(x,m){m?this.disabledNodes.has(x)||(this.disabledNodes.add(x),or(x,ga)):this.disabledNodes.has(x)&&(this.disabledNodes.delete(x),mr(x,ga))}removeNode(x,m,A,G){if(Tr(m)){const Pt=x?this._fetchNamespace(x):null;if(Pt?Pt.removeNode(m,G):this.markElementAsRemoved(x,m,!1,G),A){const be=this.namespacesByHostElement.get(m);be&&be.id!==x&&be.removeNode(m,G)}}else this._onRemovalComplete(m,G)}markElementAsRemoved(x,m,A,G,Pt){this.collectedLeaveElements.push(m),m[nr]={namespaceId:x,setForRemoval:G,hasAnimation:A,removedBeforeQueried:!1,previousTriggersValues:Pt}}listen(x,m,A,G,Pt){return Tr(m)?this._fetchNamespace(x).listen(m,A,G,Pt):()=>{}}_buildInstruction(x,m,A,G,Pt){return x.transition.build(this.driver,x.element,x.fromState.value,x.toState.value,A,G,x.fromState.options,x.toState.options,m,Pt)}destroyInnerAnimations(x){let m=this.driver.query(x,Tt,!0);m.forEach(A=>this.destroyActiveAnimationsForElement(A)),0!=this.playersByQueriedElement.size&&(m=this.driver.query(x,Je,!0),m.forEach(A=>this.finishActiveQueriedAnimationOnElement(A)))}destroyActiveAnimationsForElement(x){const m=this.playersByElement.get(x);m&&m.forEach(A=>{A.queued?A.markedForDestroy=!0:A.destroy()})}finishActiveQueriedAnimationOnElement(x){const m=this.playersByQueriedElement.get(x);m&&m.forEach(A=>A.finish())}whenRenderingDone(){return new Promise(x=>{if(this.players.length)return Pe(this.players).onDone(()=>x());x()})}processLeaveNode(x){const m=x[nr];if(m&&m.setForRemoval){if(x[nr]=Ua,m.namespaceId){this.destroyInnerAnimations(x);const A=this._fetchNamespace(m.namespaceId);A&&A.clearElementCache(x)}this._onRemovalComplete(x,m.setForRemoval)}x.classList?.contains(ga)&&this.markElementAsDisabled(x,!1),this.driver.query(x,".ng-animate-disabled",!0).forEach(A=>{this.markElementAsDisabled(A,!1)})}flush(x=-1){let m=[];if(this.newHostElements.size&&(this.newHostElements.forEach((A,G)=>this._balanceNamespaceList(A,G)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let A=0;AA()),this._flushFns=[],this._whenQuietFns.length){const A=this._whenQuietFns;this._whenQuietFns=[],m.length?Pe(m).onDone(()=>{A.forEach(G=>G())}):A.forEach(G=>G())}}reportError(x){throw function ot(N){return new n.vHH(3402,!1)}()}_flushAnimations(x,m){const A=new zi,G=[],Pt=new Map,be=[],ke=new Map,ii=new Map,hi=new Map,Oi=new Set;this.disabledNodes.forEach(Zi=>{Oi.add(Zi);const en=this.driver.query(Zi,".ng-animate-queued",!0);for(let on=0;on{const on=j+cn++;tn.set(en,on),Zi.forEach(Vn=>or(Vn,on))});const Qn=[],ir=new Set,Ar=new Set;for(let Zi=0;Ziir.add(Vn)):Ar.add(en))}const da=new Map,Fr=Aa(Dn,Array.from(ir));Fr.forEach((Zi,en)=>{const on=z+cn++;da.set(en,on),Zi.forEach(Vn=>or(Vn,on))}),x.push(()=>{mn.forEach((Zi,en)=>{const on=tn.get(en);Zi.forEach(Vn=>mr(Vn,on))}),Fr.forEach((Zi,en)=>{const on=da.get(en);Zi.forEach(Vn=>mr(Vn,on))}),Qn.forEach(Zi=>{this.processLeaveNode(Zi)})});const wo=[],Xa=[];for(let Zi=this._namespaceList.length-1;Zi>=0;Zi--)this._namespaceList[Zi].drainQueuedTransitions(m).forEach(on=>{const Vn=on.player,Nr=on.element;if(wo.push(Vn),this.collectedEnterElements.length){const Wr=Nr[nr];if(Wr&&Wr.setForMove){if(Wr.previousTriggersValues&&Wr.previousTriggersValues.has(on.triggerName)){const Do=Wr.previousTriggersValues.get(on.triggerName),ja=this.statesByElement.get(on.element);if(ja&&ja.has(on.triggerName)){const cs=ja.get(on.triggerName);cs.value=Do,ja.set(on.triggerName,cs)}}return void Vn.destroy()}}const fr=!Vi||!this.driver.containsElement(Vi,Nr),ua=da.get(Nr),mo=tn.get(Nr),lr=this._buildInstruction(on,A,mo,ua,fr);if(lr.errors&&lr.errors.length)return void Xa.push(lr);if(fr)return Vn.onStart(()=>Sn(Nr,lr.fromStyles)),Vn.onDestroy(()=>Xi(Nr,lr.toStyles)),void G.push(Vn);if(on.isFallbackTransition)return Vn.onStart(()=>Sn(Nr,lr.fromStyles)),Vn.onDestroy(()=>Xi(Nr,lr.toStyles)),void G.push(Vn);const Yr=[];lr.timelines.forEach(Wr=>{Wr.stretchStartingKeyframe=!0,this.disabledNodes.has(Wr.element)||Yr.push(Wr)}),lr.timelines=Yr,A.append(Nr,lr.timelines),be.push({instruction:lr,player:Vn,element:Nr}),lr.queriedElements.forEach(Wr=>at(ke,Wr,[]).push(Vn)),lr.preStyleProps.forEach((Wr,Do)=>{if(Wr.size){let ja=ii.get(Do);ja||ii.set(Do,ja=new Set),Wr.forEach((cs,el)=>ja.add(el))}}),lr.postStyleProps.forEach((Wr,Do)=>{let ja=hi.get(Do);ja||hi.set(Do,ja=new Set),Wr.forEach((cs,el)=>ja.add(el))})});if(Xa.length){const Zi=[];Xa.forEach(en=>{Zi.push(function le(N,x){return new n.vHH(3505,!1)}())}),wo.forEach(en=>en.destroy()),this.reportError(Zi)}const ea=new Map,no=new Map;be.forEach(Zi=>{const en=Zi.element;A.has(en)&&(no.set(en,en),this._beforeAnimationBuild(Zi.player.namespaceId,Zi.instruction,ea))}),G.forEach(Zi=>{const en=Zi.element;this._getPreviousPlayers(en,!1,Zi.namespaceId,Zi.triggerName,null).forEach(Vn=>{at(ea,en,[]).push(Vn),Vn.destroy()})});const Br=Qn.filter(Zi=>Jr(Zi,ii,hi)),ho=new Map;rr(ho,this.driver,Ar,hi,v.l3).forEach(Zi=>{Jr(Zi,ii,hi)&&Br.push(Zi)});const ss=new Map;mn.forEach((Zi,en)=>{rr(ss,this.driver,new Set(Zi),ii,v.k1)}),Br.forEach(Zi=>{const en=ho.get(Zi),on=ss.get(Zi);ho.set(Zi,new Map([...Array.from(en?.entries()??[]),...Array.from(on?.entries()??[])]))});const Co=[],Es=[],Pl={};be.forEach(Zi=>{const{element:en,player:on,instruction:Vn}=Zi;if(A.has(en)){if(Oi.has(en))return on.onDestroy(()=>Xi(en,Vn.toStyles)),on.disabled=!0,on.overrideTotalTime(Vn.totalTime),void G.push(on);let Nr=Pl;if(no.size>1){let ua=en;const mo=[];for(;ua=ua.parentNode;){const lr=no.get(ua);if(lr){Nr=lr;break}mo.push(ua)}mo.forEach(lr=>no.set(lr,Nr))}const fr=this._buildAnimation(on.namespaceId,Vn,ea,Pt,ss,ho);if(on.setRealPlayer(fr),Nr===Pl)Co.push(on);else{const ua=this.playersByElement.get(Nr);ua&&ua.length&&(on.parentPlayer=Pe(ua)),G.push(on)}}else Sn(en,Vn.fromStyles),on.onDestroy(()=>Xi(en,Vn.toStyles)),Es.push(on),Oi.has(en)&&G.push(on)}),Es.forEach(Zi=>{const en=Pt.get(Zi.element);if(en&&en.length){const on=Pe(en);Zi.setRealPlayer(on)}}),G.forEach(Zi=>{Zi.parentPlayer?Zi.syncPlayerEvents(Zi.parentPlayer):Zi.destroy()});for(let Zi=0;Zi!fr.destroyed);Nr.length?Cr(this,en,Nr):this.processLeaveNode(en)}return Qn.length=0,Co.forEach(Zi=>{this.players.push(Zi),Zi.onDone(()=>{Zi.destroy();const en=this.players.indexOf(Zi);this.players.splice(en,1)}),Zi.play()}),Co}elementContainsData(x,m){let A=!1;const G=m[nr];return G&&G.setForRemoval&&(A=!0),this.playersByElement.has(m)&&(A=!0),this.playersByQueriedElement.has(m)&&(A=!0),this.statesByElement.has(m)&&(A=!0),this._fetchNamespace(x).elementContainsData(m)||A}afterFlush(x){this._flushFns.push(x)}afterFlushAnimationsDone(x){this._whenQuietFns.push(x)}_getPreviousPlayers(x,m,A,G,Pt){let be=[];if(m){const ke=this.playersByQueriedElement.get(x);ke&&(be=ke)}else{const ke=this.playersByElement.get(x);if(ke){const ii=!Pt||Pt==ar;ke.forEach(hi=>{hi.queued||!ii&&hi.triggerName!=G||be.push(hi)})}}return(A||G)&&(be=be.filter(ke=>!(A&&A!=ke.namespaceId||G&&G!=ke.triggerName))),be}_beforeAnimationBuild(x,m,A){const Pt=m.element,be=m.isRemovalTransition?void 0:x,ke=m.isRemovalTransition?void 0:m.triggerName;for(const ii of m.timelines){const hi=ii.element,Oi=hi!==Pt,Vi=at(A,hi,[]);this._getPreviousPlayers(hi,Oi,be,ke,m.toState).forEach(mn=>{const tn=mn.getRealPlayer();tn.beforeDestroy&&tn.beforeDestroy(),mn.destroy(),Vi.push(mn)})}Sn(Pt,m.fromStyles)}_buildAnimation(x,m,A,G,Pt,be){const ke=m.triggerName,ii=m.element,hi=[],Oi=new Set,Vi=new Set,Dn=m.timelines.map(tn=>{const cn=tn.element;Oi.add(cn);const Qn=cn[nr];if(Qn&&Qn.removedBeforeQueried)return new v.ZN(tn.duration,tn.delay);const ir=cn!==ii,Ar=function $a(N){const x=[];return Sa(N,x),x}((A.get(cn)||Ta).map(ea=>ea.getRealPlayer())).filter(ea=>!!ea.element&&ea.element===cn),da=Pt.get(cn),Fr=be.get(cn),wo=Ne(0,this._normalizer,0,tn.keyframes,da,Fr),Xa=this._buildPlayer(tn,wo,Ar);if(tn.subTimeline&&G&&Vi.add(cn),ir){const ea=new Zn(x,ke,cn);ea.setRealPlayer(Xa),hi.push(ea)}return Xa});hi.forEach(tn=>{at(this.playersByQueriedElement,tn.element,[]).push(tn),tn.onDone(()=>function ya(N,x,m){let A=N.get(x);if(A){if(A.length){const G=A.indexOf(m);A.splice(G,1)}0==A.length&&N.delete(x)}return A}(this.playersByQueriedElement,tn.element,tn))}),Oi.forEach(tn=>or(tn,ge));const mn=Pe(Dn);return mn.onDestroy(()=>{Oi.forEach(tn=>mr(tn,ge)),Xi(ii,m.toStyles)}),Vi.forEach(tn=>{at(G,tn,[]).push(mn)}),mn}_buildPlayer(x,m,A){return m.length>0?this.driver.animate(x.element,m,x.duration,x.delay,x.easing,A):new v.ZN(x.duration,x.delay)}}class Zn{constructor(x,m,A){this.namespaceId=x,this.triggerName=m,this.element=A,this._player=new v.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(x){this._containsRealPlayer||(this._player=x,this._queuedCallbacks.forEach((m,A)=>{m.forEach(G=>Ce(x,A,void 0,G))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(x.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(x){this.totalTime=x}syncPlayerEvents(x){const m=this._player;m.triggerCallback&&x.onStart(()=>m.triggerCallback("start")),x.onDone(()=>this.finish()),x.onDestroy(()=>this.destroy())}_queueEvent(x,m){at(this._queuedCallbacks,x,[]).push(m)}onDone(x){this.queued&&this._queueEvent("done",x),this._player.onDone(x)}onStart(x){this.queued&&this._queueEvent("start",x),this._player.onStart(x)}onDestroy(x){this.queued&&this._queueEvent("destroy",x),this._player.onDestroy(x)}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(x){this.queued||this._player.setPosition(x)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(x){const m=this._player;m.triggerCallback&&m.triggerCallback(x)}}function Tr(N){return N&&1===N.nodeType}function jr(N,x){const m=N.style.display;return N.style.display=x??"none",m}function rr(N,x,m,A,G){const Pt=[];m.forEach(ii=>Pt.push(jr(ii)));const be=[];A.forEach((ii,hi)=>{const Oi=new Map;ii.forEach(Vi=>{const Dn=x.computeStyle(hi,Vi,G);Oi.set(Vi,Dn),(!Dn||0==Dn.length)&&(hi[nr]=to,be.push(hi))}),N.set(hi,Oi)});let ke=0;return m.forEach(ii=>jr(ii,Pt[ke++])),be}function Aa(N,x){const m=new Map;if(N.forEach(ke=>m.set(ke,[])),0==x.length)return m;const A=1,G=new Set(x),Pt=new Map;function be(ke){if(!ke)return A;let ii=Pt.get(ke);if(ii)return ii;const hi=ke.parentNode;return ii=m.has(hi)?hi:G.has(hi)?A:be(hi),Pt.set(ke,ii),ii}return x.forEach(ke=>{const ii=be(ke);ii!==A&&m.get(ii).push(ke)}),m}function or(N,x){N.classList?.add(x)}function mr(N,x){N.classList?.remove(x)}function Cr(N,x,m){Pe(m).onDone(()=>N.processLeaveNode(x))}function Sa(N,x){for(let m=0;mG.add(Pt)):x.set(N,A),m.delete(N),!0}class pt{constructor(x,m,A){this.bodyNode=x,this._driver=m,this._normalizer=A,this._triggerCache={},this.onRemovalComplete=(G,Pt)=>{},this._transitionEngine=new On(x,m,A),this._timelineEngine=new Er(x,m,A),this._transitionEngine.onRemovalComplete=(G,Pt)=>this.onRemovalComplete(G,Pt)}registerTrigger(x,m,A,G,Pt){const be=x+"-"+G;let ke=this._triggerCache[be];if(!ke){const ii=[],hi=[],Oi=q(this._driver,Pt,ii,hi);if(ii.length)throw function zt(N,x){return new n.vHH(3404,!1)}();ke=function Ya(N,x,m){return new Zr(N,x,m)}(G,Oi,this._normalizer),this._triggerCache[be]=ke}this._transitionEngine.registerTrigger(m,G,ke)}register(x,m){this._transitionEngine.register(x,m)}destroy(x,m){this._transitionEngine.destroy(x,m)}onInsert(x,m,A,G){this._transitionEngine.insertNode(x,m,A,G)}onRemove(x,m,A,G){this._transitionEngine.removeNode(x,m,G||!1,A)}disableAnimations(x,m){this._transitionEngine.markElementAsDisabled(x,m)}process(x,m,A,G){if("@"==A.charAt(0)){const[Pt,be]=Ft(A);this._timelineEngine.command(Pt,m,be,G)}else this._transitionEngine.trigger(x,m,A,G)}listen(x,m,A,G,Pt){if("@"==A.charAt(0)){const[be,ke]=Ft(A);return this._timelineEngine.listen(be,m,ke,Pt)}return this._transitionEngine.listen(x,m,A,G,Pt)}flush(x=-1){this._transitionEngine.flush(x)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Q=(()=>{class N{constructor(m,A,G){this._element=m,this._startStyles=A,this._endStyles=G,this._state=0;let Pt=N.initialStylesByElement.get(m);Pt||N.initialStylesByElement.set(m,Pt=new Map),this._initialStyles=Pt}start(){this._state<1&&(this._startStyles&&Xi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xi(this._element,this._initialStyles),this._endStyles&&(Xi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(N.initialStylesByElement.delete(this._element),this._startStyles&&(Sn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sn(this._element,this._endStyles),this._endStyles=null),Xi(this._element,this._initialStyles),this._state=3)}}return N.initialStylesByElement=new WeakMap,N})();function qt(N){let x=null;return N.forEach((m,A)=>{(function si(N){return"display"===N||"position"===N})(A)&&(x=x||new Map,x.set(A,m))}),x}class Ii{constructor(x,m,A,G){this.element=x,this.keyframes=m,this.options=A,this._specialStyles=G,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=A.duration,this._delay=A.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const x=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,x,this.options),this._finalKeyframe=x.length?x[x.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(x){const m=[];return x.forEach(A=>{m.push(Object.fromEntries(A))}),m}_triggerWebAnimation(x,m,A){return x.animate(this._convertKeyframesToObject(m),A)}onStart(x){this._originalOnStartFns.push(x),this._onStartFns.push(x)}onDone(x){this._originalOnDoneFns.push(x),this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(x=>x()),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(x=>x()),this._onDestroyFns=[])}setPosition(x){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=x*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const x=new Map;this.hasStarted()&&this._finalKeyframe.forEach((A,G)=>{"offset"!==G&&x.set(G,this._finished?A:Bn(this.element,G))}),this.currentSnapshot=x}triggerCallback(x){const m="start"===x?this._onStartFns:this._onDoneFns;m.forEach(A=>A()),m.length=0}}class er{validateStyleProperty(x){return!0}validateAnimatableStyleProperty(x){return!0}matchesElement(x,m){return!1}containsElement(x,m){return He(x,m)}getParentElement(x){return ct(x)}query(x,m,A){return $e(x,m,A)}computeStyle(x,m,A){return window.getComputedStyle(x)[m]}animate(x,m,A,G,Pt,be=[]){const ii={duration:A,delay:G,fill:0==G?"both":"forwards"};Pt&&(ii.easing=Pt);const hi=new Map,Oi=be.filter(mn=>mn instanceof Ii);(function Yn(N,x){return 0===N||0===x})(A,G)&&Oi.forEach(mn=>{mn.currentSnapshot.forEach((tn,cn)=>hi.set(cn,tn))});let Vi=function ce(N){return N.length?N[0]instanceof Map?N:N.map(x=>Et(x)):[]}(m).map(mn=>gi(mn));Vi=function pn(N,x,m){if(m.size&&x.length){let A=x[0],G=[];if(m.forEach((Pt,be)=>{A.has(be)||G.push(be),A.set(be,Pt)}),G.length)for(let Pt=1;Ptbe.set(ke,Bn(N,ke)))}}return x}(x,Vi,hi);const Dn=function ht(N,x){let m=null,A=null;return Array.isArray(x)&&x.length?(m=qt(x[0]),x.length>1&&(A=qt(x[x.length-1]))):x instanceof Map&&(m=qt(x)),m||A?new Q(N,m,A):null}(x,Vi);return new Ii(x,Vi,ii,Dn)}}var ni=o(6895);let rn=(()=>{class N extends v._j{constructor(m,A){super(),this._nextAnimationId=0,this._renderer=m.createRenderer(A.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(m){const A=this._nextAnimationId.toString();this._nextAnimationId++;const G=Array.isArray(m)?(0,v.vP)(m):m;return ur(this._renderer,null,A,"register",[G]),new kr(A,this._renderer)}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(n.FYo),n.LFG(ni.K0))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})();class kr extends v.LC{constructor(x,m){super(),this._id=x,this._renderer=m}create(x,m){return new Ia(this._id,x,m||{},this._renderer)}}class Ia{constructor(x,m,A,G){this.id=x,this.element=m,this._renderer=G,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",A)}_listen(x,m){return this._renderer.listen(this.element,`@@${this.id}:${x}`,m)}_command(x,...m){return ur(this._renderer,this.element,this.id,x,m)}onDone(x){this._listen("done",x)}onStart(x){this._listen("start",x)}onDestroy(x){this._listen("destroy",x)}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(x){this._command("setPosition",x)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ur(N,x,m,A,G){return N.setProperty(x,`@@${m}:${A}`,G)}const Xr="@.disabled";let Rr=(()=>{class N{constructor(m,A,G){this.delegate=m,this.engine=A,this._zone=G,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),A.onRemovalComplete=(Pt,be)=>{const ke=be?.parentNode(Pt);ke&&be.removeChild(ke,Pt)}}createRenderer(m,A){const Pt=this.delegate.createRenderer(m,A);if(!(m&&A&&A.data&&A.data.animation)){let Oi=this._rendererCache.get(Pt);return Oi||(Oi=new Ka("",Pt,this.engine,()=>this._rendererCache.delete(Pt)),this._rendererCache.set(Pt,Oi)),Oi}const be=A.id,ke=A.id+"-"+this._currentId;this._currentId++,this.engine.register(ke,m);const ii=Oi=>{Array.isArray(Oi)?Oi.forEach(ii):this.engine.registerTrigger(be,ke,m,Oi.name,Oi)};return A.data.animation.forEach(ii),new Gt(this,ke,Pt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(m,A,G){m>=0&&mA(G)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Pt=>{const[be,ke]=Pt;be(ke)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([A,G]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(n.FYo),n.LFG(pt),n.LFG(n.R0b))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})();class Ka{constructor(x,m,A,G){this.namespaceId=x,this.delegate=m,this.engine=A,this._onDestroy=G,this.destroyNode=this.delegate.destroyNode?Pt=>m.destroyNode(Pt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(x,m){return this.delegate.createElement(x,m)}createComment(x){return this.delegate.createComment(x)}createText(x){return this.delegate.createText(x)}appendChild(x,m){this.delegate.appendChild(x,m),this.engine.onInsert(this.namespaceId,m,x,!1)}insertBefore(x,m,A,G=!0){this.delegate.insertBefore(x,m,A),this.engine.onInsert(this.namespaceId,m,x,G)}removeChild(x,m,A){this.engine.onRemove(this.namespaceId,m,this.delegate,A)}selectRootElement(x,m){return this.delegate.selectRootElement(x,m)}parentNode(x){return this.delegate.parentNode(x)}nextSibling(x){return this.delegate.nextSibling(x)}setAttribute(x,m,A,G){this.delegate.setAttribute(x,m,A,G)}removeAttribute(x,m,A){this.delegate.removeAttribute(x,m,A)}addClass(x,m){this.delegate.addClass(x,m)}removeClass(x,m){this.delegate.removeClass(x,m)}setStyle(x,m,A,G){this.delegate.setStyle(x,m,A,G)}removeStyle(x,m,A){this.delegate.removeStyle(x,m,A)}setProperty(x,m,A){"@"==m.charAt(0)&&m==Xr?this.disableAnimations(x,!!A):this.delegate.setProperty(x,m,A)}setValue(x,m){this.delegate.setValue(x,m)}listen(x,m,A){return this.delegate.listen(x,m,A)}disableAnimations(x,m){this.engine.disableAnimations(x,m)}}class Gt extends Ka{constructor(x,m,A,G,Pt){super(m,A,G,Pt),this.factory=x,this.namespaceId=m}setProperty(x,m,A){"@"==m.charAt(0)?"."==m.charAt(1)&&m==Xr?this.disableAnimations(x,A=void 0===A||!!A):this.engine.process(this.namespaceId,x,m.slice(1),A):this.delegate.setProperty(x,m,A)}listen(x,m,A){if("@"==m.charAt(0)){const G=function Ge(N){switch(N){case"body":return document.body;case"document":return document;case"window":return window;default:return N}}(x);let Pt=m.slice(1),be="";return"@"!=Pt.charAt(0)&&([Pt,be]=function Kt(N){const x=N.indexOf(".");return[N.substring(0,x),N.slice(x+1)]}(Pt)),this.engine.listen(this.namespaceId,G,Pt,be,ke=>{this.factory.scheduleListenerCallback(ke._data||-1,A,ke)})}return this.delegate.listen(x,m,A)}}const Ai=[{provide:v._j,useClass:rn},{provide:Ur,useFactory:function Le(){return new ia}},{provide:pt,useClass:(()=>{class N extends pt{constructor(m,A,G,Pt){super(m.body,A,G)}ngOnDestroy(){this.flush()}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(ni.K0),n.LFG(ki),n.LFG(Ur),n.LFG(n.z2F))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})()},{provide:n.FYo,useFactory:function pi(N,x,m){return new Rr(N,x,m)},deps:[t.se,pt,n.R0b]}],Bi=[{provide:ki,useFactory:()=>new er},{provide:n.QbO,useValue:"BrowserAnimations"},...Ai],$i=[{provide:ki,useClass:mi},{provide:n.QbO,useValue:"NoopAnimations"},...Ai];let xn=(()=>{class N{static withConfig(m){return{ngModule:N,providers:m.disableAnimations?$i:Bi}}}return N.\u0275fac=function(m){return new(m||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({providers:Bi,imports:[t.b2]}),N})();var oa=o(4006),Ha=o(7009),oo=o(8455),eo=o(266),Gr=o(9784),wa=o(8423),so=o(7185),it=o(7579),de=o(727),Se=o(1135),Ye=o(9841),ui=o(2805),Ze=o(515),Ci=o(4482),pe=o(5032),Li=o(5403),ri=o(8421),En=o(3900),hr=o(1005),wi=o(8746),Tn=o(2722),gr=o(4004);function qr(N,x){if(1&N&&n._UZ(0,"div",6),2&N){const m=n.oxw(2);n.Udp("box-shadow","0 0 10px "+m.color+", 0 0 5px "+m.color)}}function sa(N,x){if(1&N&&(n.TgZ(0,"div",7),n._UZ(1,"div",8),n.qZA()),2&N){const m=n.oxw(2);n.xp6(1),n.Udp("border-top-color",m.color)("border-left-color",m.color)}}function la(N,x){if(1&N&&(n.ynx(0),n.TgZ(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,qr,1,2,"div",4),n.qZA()(),n.YNc(5,sa,2,4,"div",5),n.qZA(),n.BQk()),2&N){const m=x.$implicit,A=n.oxw();n.xp6(1),n.Udp("transition","opacity "+A.speed+"ms "+A.ease),n.uIk("active",m.active),n.xp6(2),n.Udp("transform",m.transform)("background-color",A.color)("transition",m.active?"all "+A.speed+"ms "+A.ease:"none"),n.xp6(1),n.Q6J("ngIf",A.meteor),n.xp6(1),n.Q6J("ngIf",A.spinner)}}class W{constructor(x,m){this._onDestroyCallback=m,this._started=new it.x,this.started=this._started.pipe((0,a.h)(()=>!this.isStarted)),this._completed=new it.x,this.completed=this._completed.pipe((0,a.h)(()=>this.isStarted)),this._trickling=new it.x,this._worker=de.w0.EMPTY,this._state=new Se.X({active:!1,value:0}),this._config=new Se.X(x),this.state=this._state.asObservable(),this.config=this._config.asObservable(),this._worker=(0,Ye.a)([this._trickling,this._config]).pipe(function Yi(N){return(0,Ci.e)((x,m)=>{let A=!1,G=null,Pt=null;const be=()=>{if(Pt?.unsubscribe(),Pt=null,A){A=!1;const ke=G;G=null,m.next(ke)}};x.subscribe((0,Li.x)(m,ke=>{Pt?.unsubscribe(),A=!0,G=ke,Pt=(0,Li.x)(m,be,pe.Z),(0,ri.Xf)(N(ke)).subscribe(Pt)},()=>{be(),m.complete()},void 0,()=>{G=Pt=null}))})}(([A,G])=>(0,ui.H)(A?G.debounceTime:0)),(0,En.w)(([A,G])=>A?this.onTrickling(G):this.onComplete(G))).subscribe()}get snapshot(){return this._state.value}get isStarted(){return this.snapshot.active}start(){this._started.next(),this._trickling.next(!0)}complete(){this._trickling.next(!1)}inc(x){const m=this.snapshot.value;this.isStarted?("number"!=typeof x&&(x=this._config.value.trickleFunc(m)),this.set(m+x)):this.start()}set(x){this.setState({value:this.clamp(x),active:!0})}setConfig(x){this._config.next({...this._config.value,...x})}destroy(){this._worker.unsubscribe(),this._trickling.complete(),this._state.complete(),this._config.complete(),this._started.complete(),this._completed.complete(),this._onDestroyCallback()}setState(x){this._state.next({...this.snapshot,...x})}clamp(x){return Math.max(this._config.value.min,Math.min(this._config.value.max,x))}onTrickling(x){return this.isStarted||this.set(this._config.value.min),(0,ui.H)(0,x.trickleSpeed).pipe((0,E.b)(()=>this.inc()))}onComplete(x){return this._completed.next(),this.isStarted?(0,u.of)({}).pipe((0,E.b)(()=>this.setState({value:100})),(0,hr.g)(1.7*x.speed),(0,E.b)(()=>this.setState({active:!1})),(0,hr.g)(x.speed),(0,wi.x)(()=>this.setState({value:0})),(0,Tn.R)(this._started)):Ze.E}}const At=new n.OlP("ngProgressConfig"),et={min:8,max:100,speed:200,debounceTime:0,trickleSpeed:300,fixed:!0,meteor:!0,thick:!1,spinner:!0,ease:"linear",color:"#1B95E0",direction:"ltr+",spinnerPosition:"right",trickleFunc:N=>N>=0&&N<20?10:N>=20&&N<50?4:N>=50&&N<80?2:N>=80&&N<99?.5:0};let Zt=(()=>{class N{constructor(m){this._instances=new Map,this.config=m?{...et,...m}:et}ref(m="root",A){if(this._instances.has(m)){const G=this._instances.get(m);return A&&G.setConfig({...this.config,...A}),G}{const G=new W({...this.config,...A},this.deleteInstance(m));return this._instances.set(m,G).get(m)}}destroyAll(){this._instances.forEach(m=>m.destroy())}deleteInstance(m){return()=>{this._instances.delete(m)}}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(At,8))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),Ie=(()=>{class N{constructor(m){this._ngProgress=m,this.id="root",this.min=this._ngProgress.config.min,this.max=this._ngProgress.config.max,this.ease=this._ngProgress.config.ease,this.color=this._ngProgress.config.color,this.speed=this._ngProgress.config.speed,this.thick=this._ngProgress.config.thick,this.fixed=this._ngProgress.config.fixed,this.meteor=this._ngProgress.config.meteor,this.spinner=this._ngProgress.config.spinner,this.trickleSpeed=this._ngProgress.config.trickleSpeed,this.debounceTime=this._ngProgress.config.debounceTime,this.trickleFunc=this._ngProgress.config.trickleFunc,this.spinnerPosition=this._ngProgress.config.spinnerPosition,this.direction=this._ngProgress.config.direction,this.started=new n.vpe,this.completed=new n.vpe}get isStarted(){return this.progressRef?.isStarted}ngOnChanges(){this.progressRef?.setConfig({max:this.max>0&&this.max<=100?this.max:100,min:this.min<100&&this.min>=0?this.min:0,speed:this.speed,trickleSpeed:this.trickleSpeed,trickleFunc:this.trickleFunc,debounceTime:this.debounceTime})}ngOnInit(){this.progressRef=this._ngProgress.ref(this.id,{max:this.max,min:this.min,speed:this.speed,trickleSpeed:this.trickleSpeed,debounceTime:this.debounceTime}),this.state$=this.progressRef.state.pipe((0,gr.U)(m=>({active:m.active,transform:`translate3d(${m.value}%,0,0)`}))),this.started.observed&&(this._started=this.progressRef.started.subscribe(()=>this.started.emit())),this.completed.observed&&(this._completed=this.progressRef.completed.subscribe(()=>this.completed.emit()))}ngOnDestroy(){this._started?.unsubscribe(),this._completed?.unsubscribe(),this.progressRef?.destroy()}start(){this.progressRef.start()}complete(){this.progressRef.complete()}inc(m){this.progressRef.inc(m)}set(m){this.progressRef.set(m)}}return N.\u0275fac=function(m){return new(m||N)(n.Y36(Zt))},N.\u0275cmp=n.Xpm({type:N,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:4,hostBindings:function(m,A){2&m&&n.uIk("spinnerPosition",A.spinnerPosition)("direction",A.direction)("thick",A.thick)("fixed",A.fixed)},inputs:{id:"id",min:"min",max:"max",ease:"ease",color:"color",speed:"speed",thick:"thick",fixed:"fixed",meteor:"meteor",spinner:"spinner",trickleSpeed:"trickleSpeed",debounceTime:"debounceTime",trickleFunc:"trickleFunc",spinnerPosition:"spinnerPosition",direction:"direction"},outputs:{started:"started",completed:"completed"},features:[n.TTD],decls:2,vars:3,consts:[[4,"ngIf"],[1,"ng-progress-bar"],[1,"ng-bar-placeholder"],[1,"ng-bar"],["class","ng-meteor",3,"boxShadow",4,"ngIf"],["class","ng-spinner",4,"ngIf"],[1,"ng-meteor"],[1,"ng-spinner"],[1,"ng-spinner-icon"]],template:function(m,A){1&m&&(n.YNc(0,la,6,11,"ng-container",0),n.ALo(1,"async")),2&m&&n.Q6J("ngIf",n.lcZ(1,1,A.state$))},dependencies:[ni.O5,ni.Ov],styles:['[_nghost-%COMP%]{z-index:999999;pointer-events:none}[fixed=true][_nghost-%COMP%] .ng-progress-bar[_ngcontent-%COMP%], [fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{top:15px}[fixed=true][spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:15px}[fixed=true][spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:15px}[thick=true][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{width:24px;height:24px;border-width:3px}[thick=true][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{height:3px!important}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(3deg)}[direction="ltr+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(4deg)}[direction="ltr+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar[_ngcontent-%COMP%]{margin-left:-100%}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{right:0}[direction="ltr+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-3px}[direction="ltr+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{top:-4px}[direction=ltr-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-3px}[direction=ltr-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction="rtl+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{bottom:-4px}[direction=ltr-][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-bar-placeholder[_ngcontent-%COMP%]{transform:rotate(180deg)}[direction=ltr-][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%], [direction="rtl+"][_nghost-%COMP%] .ng-spinner-icon[_ngcontent-%COMP%]{animation-directionection:reverse}[direction="rtl+"][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-3deg)}[direction="rtl+"][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%], [direction=rtl-][thick=true][_nghost-%COMP%] .ng-meteor[_ngcontent-%COMP%]{transform:rotate(-4deg)}[spinnerPosition=left][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{left:10px}[spinnerPosition=right][_nghost-%COMP%] .ng-spinner[_ngcontent-%COMP%]{right:10px}.ng-progress-bar[_ngcontent-%COMP%]{position:relative;z-index:999999;top:0;left:0;width:100%;transform:scale(1);filter:alpha(opacity=0);opacity:0}.ng-progress-bar[active=true][_ngcontent-%COMP%]{filter:alpha(opacity=100);opacity:1;transition:none}.ng-bar-placeholder[_ngcontent-%COMP%]{position:absolute;height:2px;width:100%}.ng-bar[_ngcontent-%COMP%]{width:100%;height:100%;transform:translate(-100%,0,0)}.ng-meteor[_ngcontent-%COMP%]{display:block;position:absolute;width:100px;height:100%;opacity:1}.ng-spinner[_ngcontent-%COMP%]{position:absolute;display:block;z-index:1031;top:10px}.ng-spinner-icon[_ngcontent-%COMP%]{width:18px;height:18px;box-sizing:border-box;-webkit-animation:_ngcontent-%COMP%_spinner-animation .25s linear infinite;animation:_ngcontent-%COMP%_spinner-animation .25s linear infinite;border:2px solid transparent;border-radius:50%}@-webkit-keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0}),N})(),ci=(()=>{class N{static withConfig(m){return{ngModule:N,providers:[{provide:At,useValue:m}]}}}return N.\u0275fac=function(m){return new(m||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[[ni.ez]]}),N})();const bi=new n.OlP("ngProgressHttpConfig");let li=(()=>{class N{constructor(m,A){this.ngProgress=m,this._inProgressCount=0,this._config={id:"root",silentApis:[],matcher:void 0},this._config=A?{...this._config,...A}:this._config}intercept(m,A){return m.headers.has("ignoreProgressBar")?A.handle(m.clone({headers:m.headers.delete("ignoreProgressBar")})):this.checkUrl(m)?A.handle(m):(this._inProgressCount++,this._progressRef=this.ngProgress.ref(this._config.id),this._progressRef.isStarted||this._progressRef.start(),A.handle(m).pipe((0,wi.x)(()=>{this._inProgressCount--,0===this._inProgressCount&&this._progressRef.complete()})))}checkUrl(m){const A=m.url.toLowerCase();return this._config.matcher&&this._config.silentApis?.length?An(A,this._config.matcher)&&Hn(A,this._config.silentApis):this._config.silentApis?.length?Hn(A,this._config.silentApis):!!this._config.matcher&&An(A,this._config.matcher)}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(Zt),n.LFG(bi,8))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac}),N})();function Hn(N,x){return!!x.find(m=>N.includes(m.toLowerCase()))}function An(N,x){return!!N.match(x)}let Hi=(()=>{class N{static withConfig(m){return{ngModule:N,providers:[{provide:bi,useValue:m}]}}}return N.\u0275fac=function(m){return new(m||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({providers:[{provide:l.TP,useClass:li,multi:!0}]}),N})();var an=o(6493),bn=o(3659),Ki=o(1390),kn=o(1741),qn=o(5816),pr=o(7357);const sr=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"admin-mod",loadChildren:()=>Promise.all([o.e(25),o.e(375),o.e(592),o.e(370)]).then(o.bind(o,1370)).then(N=>N.AdminModule),canActivate:[pr.H,qn.t],data:{title:"Admin & Moderator Panel Management",description:"Halaman Khusus Untuk Administrasi & Moderasi",keywords:"Admin Moderator Fansub Database",[bn.t.decoratorVerifiedOnly]:!0,[bn.t.decoratorRoles]:[kn.yS.ADMIN,kn.yS.MODERATOR]}},{path:"create",loadChildren:()=>Promise.all([o.e(375),o.e(592),o.e(541)]).then(o.bind(o,4541)).then(N=>N.CreateModule),data:{title:"Membuat Konten Baru",description:"Membuat Konten Baru",keywords:"Add New Content"}},{path:"login",loadChildren:()=>o.e(76).then(o.bind(o,4076)).then(N=>N.LoginModule),data:{title:"Masuk",description:"Halaman Login",keywords:"Login"}},{path:"register",loadChildren:()=>Promise.all([o.e(592),o.e(708)]).then(o.bind(o,4708)).then(N=>N.RegisterModule),data:{title:"Pendaftaran",description:"Halaman Pembuatan Akun Baru",keywords:"Register"}},{path:"reset-password",loadChildren:()=>Promise.all([o.e(592),o.e(935)]).then(o.bind(o,1935)).then(N=>N.ResetPasswordModule),data:{title:"Reset Akun",description:"Halaman Atur Ulang Kata Sandi",keywords:"Reset Password"}},{path:"privacy-policy",loadChildren:()=>o.e(31).then(o.bind(o,31)).then(N=>N.PrivacyPolicyModule),data:{title:"Kebijakan Privasi",description:"Halaman Kebijakan Privasi",keywords:"privacy-policy"}},{path:"verify",loadChildren:()=>Promise.all([o.e(592),o.e(348)]).then(o.bind(o,9348)).then(N=>N.VerifyModule),canActivate:[qn.t],data:{title:"Verifikasi",description:"Halaman Verifikasi Akun",keywords:"Verify",[bn.t.decoratorRoles]:[kn.yS.ADMIN,kn.yS.MODERATOR,kn.yS.FANSUBBER,kn.yS.USER]}},{path:"home",loadChildren:()=>Promise.all([o.e(592),o.e(679)]).then(o.bind(o,6679)).then(N=>N.HomeModule),data:{title:"Database Fansub Indonesia",description:"Database Fansub Indonesia",keywords:"Fansub DB"}},{path:"news",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(375),o.e(338),o.e(592),o.e(655)]).then(o.bind(o,8438)).then(N=>N.NewsModule),data:{title:"Berita & Informasi",description:"Papan Pengumuman",keywords:"News"}},{path:"ticket",loadChildren:()=>Promise.all([o.e(767),o.e(375),o.e(592),o.e(38)]).then(o.bind(o,2007)).then(N=>N.TicketModule),data:{title:"Ticket - Lapor Pelanggaran",description:"Pelanggaran & Penyalahgunaan",keywords:"Report"}},{path:"mailbox",loadChildren:()=>Promise.all([o.e(25),o.e(592),o.e(570)]).then(o.bind(o,4570)).then(N=>N.MailboxModule),canActivate:[qn.t,pr.H],data:{title:"Surat Elektronik",description:"E-Mail & DM's",keywords:"Surel Email DM",[bn.t.decoratorVerifiedOnly]:!0,[bn.t.decoratorRoles]:[kn.yS.ADMIN,kn.yS.MODERATOR,kn.yS.FANSUBBER]}},{path:"nihongo",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(375),o.e(338),o.e(592),o.e(748)]).then(o.bind(o,7748)).then(N=>N.NihongoModule),data:{title:"Belajar Bahasa Jepang",description:"Jejepangan Lebih Seru Dengan Bahasa Aslinya",keywords:"Bahasa Jepang"}},{path:"berkas",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(375),o.e(338),o.e(268),o.e(743),o.e(592),o.e(526)]).then(o.bind(o,1526)).then(N=>N.BerkasModule),data:{title:"Semua Berkas",description:"Kelola Arsip Berkas",keywords:"Berkas File"}},{path:"anime",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(338),o.e(268),o.e(702),o.e(794)]).then(o.bind(o,8794)).then(N=>N.AnimeModule),data:{title:"List Anime & Garapan Musiman",description:"Daftar Isi Anime Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Anime Subtitle Indonesia"}},{path:"dorama",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(338),o.e(268),o.e(702),o.e(578)]).then(o.bind(o,4578)).then(N=>N.DoramaModule),data:{title:"List Dorama & Garapan Musiman",description:"Daftar Isi Dorama Musiman Yang Baru Saja Rilis Subtitle Indonesianya",keywords:"Dorama Subtitle Indonesia"}},{path:"fansub",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(375),o.e(338),o.e(268),o.e(743),o.e(745)]).then(o.bind(o,1745)).then(N=>N.FansubModule),data:{title:"Katalog Informasi Seluruh Fansub Indonesia",description:"Daftar Isi Seluruh Fansub Indonesia",keywords:"Fansub Indonesia"}},{path:"user",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(375),o.e(338),o.e(268),o.e(743),o.e(109)]).then(o.bind(o,9109)).then(N=>N.UserModule),data:{title:"User Profile",description:"Halaman Informasi Pengguna",keywords:"User"}},{path:"rss-feed",loadChildren:()=>Promise.all([o.e(25),o.e(767),o.e(338),o.e(592),o.e(305)]).then(o.bind(o,9305)).then(N=>N.RssFeedModule),data:{title:"Loper Koran RSS Feed",description:"Halaman Rangkuman Berita Acara Fansub Indonesia",keywords:"RSS Feed"}},{path:"torrent",loadChildren:()=>Promise.all([o.e(592),o.e(513)]).then(o.bind(o,5513)).then(N=>N.TorrentModule),data:{title:"Web-SocketRTC Torrent",description:"Halaman Peer-to-Peer Berbagi Berkas",keywords:"Web Torrent"}},{path:"docs",loadChildren:()=>Promise.all([o.e(592),o.e(683)]).then(o.bind(o,8370)).then(N=>N.DocsModule),data:{title:"Developers Documentation",description:"For Developers Only",keywords:"Domain & API Keys"}},{path:"error",loadChildren:()=>o.e(797).then(o.bind(o,7797)).then(N=>N.NotFoundModule),data:{title:"Error - 404",description:"Whoops! Halaman Tidak Ditemukan",keywords:"404 - Not Found"}},{path:"**",redirectTo:"error"}];let Oe=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[Ki.Bz.forRoot(sr,{initialNavigation:"enabledBlocking",scrollPositionRestoration:"enabled"}),Ki.Bz]})}return N})(),Mi=(()=>{class N extends t.hm{constructor(){super(...arguments),this.overrides={pinch:{enable:!1},rotate:{enable:!1}}}static#t=this.\u0275fac=function(){let m;return function(G){return(m||(m=n.n5z(N)))(G||N)}}();static#e=this.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const ji={showDelay:250,hideDelay:0,touchendHideDelay:0,touchGestures:"off"};var Pi=o(2314),hn=o(9816),fn=o(3322);let _r=(()=>{class N{constructor(m,A){this.gs=m,this.bs=A}intercept(m,A){return A.handle(m).pipe((0,Tn.R)(this.bs.onCancelPendingRequests))}static#t=this.\u0275fac=function(A){return new(A||N)(n.LFG(hn.U),n.LFG(fn.z))};static#e=this.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac})}return N})();var Nn=o(4674),Za=o(7396),lo=o(80);let ta=(()=>{class N{constructor(m,A,G){this.gs=m,this.ss=A,this.as=G}intercept(m,A){const G=m.url,Pt=G.startsWith(Nn.N.baseUrl)||G.startsWith(Nn.N.apiUrl);if(this.gs.isBrowser&&Pt){if(m=m.clone({withCredentials:!this.gs.isDevMode}),this.as.token){const be=this.as.token.length,ke=this.as.token.slice(0,5)+"....."+this.as.token.slice(be-5,be);this.gs.log("[INTERCEPT_JWT]",ke),m=m.clone({headers:m.headers.append("Authorization",`Bearer ${this.as.token}`)})}this.ss.mySocket?.id&&(this.gs.log("[INTERCEPT_SOCKET]",this.ss.mySocket.id),m=m.clone({headers:m.headers.append("x-socket-id",this.ss.mySocket.id)}))}return A.handle(m)}static#t=this.\u0275fac=function(A){return new(A||N)(n.LFG(hn.U),n.LFG(Za.R),n.LFG(lo.e))};static#e=this.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac})}return N})();var ka=o(262),Uo=o(2843),Qo=o(2693),Io=o(5155);let Pr=(()=>{class N{constructor(m,A,G,Pt,be,ke,ii,hi){this.gs=m,this.router=A,this.as=G,this.toast=Pt,this.bs=be,this.ss=ke,this.ls=ii,this.activatedRoute=hi}intercept(m,A){return A.handle(m).pipe((0,E.b)(G=>{if(G instanceof l.Zn&&this.gs.isBrowser){let Pt="UwUu~ Berhasil~",be="Yeay, Selesai!";switch(G&&G.body&&(G.body.info&&(be=G.body.info),G.body.result&&G.body.result.message&&(Pt=G.body.result.message)),G.status){case 200:this.toast.success(Pt,be);break;case 201:case 202:this.toast.info(Pt,be);break;default:this.toast.warning(Pt,be)}if("GET"===m.method){this.gs.log("[SOCKET_TRACK-SET]",m.url);let ke=m.url;ke.startsWith(Nn.N.baseUrl)&&(ke=ke.slice(Nn.N.baseUrl.length)),ke.startsWith(Nn.N.apiUrl)&&(ke=ke.slice(Nn.N.apiUrl.length)),this.ss.socketEmitVolatile("track-set",{pathUrl:ke.split("?")[0]})}}}),(0,ka.K)(G=>{if(this.gs.log(`[INTERCEPT_ERROR-${G.status}]`,G.statusText,"error"),this.gs.isBrowser){let Pt="Terjadi Kesalahan Pada Jaringan~",be="Whoops, Server Sibuk T.T";switch(G&&G.error&&(G.error.info&&(be=G.error.info),G.error.result&&G.error.result.message&&(Pt=G.error.result.message)),this.toast.error(Pt,be,null,!0),G.status){case 401:this.as.removeUser(),this.ls.clear(),this.bs.idle(),this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]||"/"}});break;case 404:this.router.url.startsWith("/docs")||(this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:this.activatedRoute.snapshot.parent?.url||"/"}}));break;case 418:this.bs.idle(),this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]||"/"}})}}return(0,Uo._)(()=>G.error)}))}static#t=this.\u0275fac=function(A){return new(A||N)(n.LFG(hn.U),n.LFG(Ki.F0),n.LFG(lo.e),n.LFG(Qo.k),n.LFG(fn.z),n.LFG(Za.R),n.LFG(Io.n),n.LFG(Ki.gz))};static#e=this.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac})}return N})();var Ho=o(5861);const Vo=(0,v.X$)("onSideNavChange",[(0,v.SB)("close",(0,v.oB)({"min-width":"50px"})),(0,v.SB)("open",(0,v.oB)({"min-width":"200px"})),(0,v.eR)("close => open",(0,v.jt)("250ms ease-in")),(0,v.eR)("open => close",(0,v.jt)("250ms ease-out"))]),Jo=(0,v.X$)("onMainContentChange",[(0,v.SB)("close",(0,v.oB)({"margin-left":"62px"})),(0,v.SB)("open",(0,v.oB)({"margin-left":"200px"})),(0,v.eR)("close => open",(0,v.jt)("250ms ease-in")),(0,v.eR)("open => close",(0,v.jt)("250ms ease-out"))]),vs=(0,v.X$)("animateText",[(0,v.SB)("hide",(0,v.oB)({display:"none",opacity:0})),(0,v.SB)("show",(0,v.oB)({display:"block",opacity:1})),(0,v.eR)("close => open",(0,v.jt)("350ms ease-in")),(0,v.eR)("open => close",(0,v.jt)("200ms ease-out"))]);var zo=o(2972),ys=o(5141),Js=o(5312),bo=o(9156),Ra=o(9194),Xo=o(8151),Lr=o(2970),xs=o(4098);let Pa=(()=>{class N{constructor(m){this.gs=m,this.currentViewer=null}viewImage(m){this.currentViewer=new Viewer(m,{url:"src",navbar:!1,title:!0,toolbar:{zoomIn:!0,zoomOut:!0,oneToOne:!0,reset:!0,prev:!1,play:{show:!1,size:"large"},next:!1,rotateLeft:!0,rotateRight:!0,flipHorizontal:!0,flipVertical:!0},ready:A=>{this.gs.log("[VIEWERJS]",A.type),this.currentViewer.show()},show:A=>{this.gs.log("[VIEWERJS]",A.type)},shown:A=>{this.gs.log("[VIEWERJS]",A.type)},view:A=>{this.gs.log("[VIEWERJS]",A.type)},viewed:A=>{this.gs.log("[VIEWERJS]",A.type)},move:A=>{this.gs.log("[VIEWERJS]",A.type)},moved:A=>{this.gs.log("[VIEWERJS]",A.type)},rotate:A=>{this.gs.log("[VIEWERJS]",A.type)},rotated:A=>{this.gs.log("[VIEWERJS]",A.type)},scale:A=>{this.gs.log("[VIEWERJS]",A.type)},scaled:A=>{this.gs.log("[VIEWERJS]",A.type)},play:A=>{this.gs.log("[VIEWERJS]",A.type)},stop:A=>{this.gs.log("[VIEWERJS]",A.type)},hide:A=>{this.gs.log("[VIEWERJS]",A.type)},zoom:A=>{this.gs.log("[VIEWERJS]",A.type)},zoomed:A=>{this.gs.log("[VIEWERJS]",A.type)},hidden:A=>{this.gs.log("[VIEWERJS]",A.type),this.currentViewer.destroy(),this.currentViewer=null}})}static#t=this.\u0275fac=function(A){return new(A||N)(n.LFG(hn.U))};static#e=this.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var ws=o(3267),qo=o(1428),Va=o(3842),ts=o(8111),Cs=o(1140),es=o(2673),vo=o(9818),co=o(3238),Qa=o(7392),Oo=o(3683),jo=o(7462);function yo(N,x){if(1&N&&(n.TgZ(0,"button",17),n._UZ(1,"mat-icon",18),n._uU(2),n.qZA()),2&N){const m=n.oxw();n.xp6(2),n.hij(" ",m.myPoints," ")}}function Cl(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.toggleDelete())}),n._UZ(1,"mat-icon",20),n.qZA()}}function Ds(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.toggleReport())}),n._UZ(1,"mat-icon",22),n.qZA()}}function tr(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.toggleWeather())}),n._UZ(1,"mat-icon",24),n.qZA()}}function Cc(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"button",25),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.openAdminNavigation())}),n._UZ(1,"mat-icon",26),n.qZA()}}function Dc(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"button",27),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.reloadPage())}),n._UZ(1,"mat-icon",28),n.qZA()}}let Mc=(()=>{class N{constructor(m,A,G,Pt,be,ke,ii,hi,Oi,Vi,Dn,mn,tn,cn){this.snackBar=m,this.lms=A,this.rps=G,this.router=Pt,this.pi=be,this.gs=ke,this.ss=ii,this.bs=hi,this.ls=Oi,this.ds=Vi,this.berkas=Dn,this.fansub=mn,this.news=tn,this.user=cn,this.myPoints=0,this.subsGlobalRoom=null,this.subsDialog=null,this.subsDelete=null,this.deleteHandle={},this.gs.isBrowser&&(this.deleteHandle.berkas=this.berkas,this.deleteHandle.fansub=this.fansub,this.deleteHandle.news=this.news,this.deleteHandle.user=this.user)}get GS(){return this.gs}get ROUTER(){return this.router}get PI(){return this.pi}get SS(){return this.ss}get canDelete(){return this.router.url.startsWith("/berkas/")||this.router.url.startsWith("/fansub/")||this.router.url.startsWith("/news/")||this.router.url.startsWith("/user/")}get canReport(){return this.router.url.startsWith("/berkas/")||this.router.url.startsWith("/fansub/")||this.router.url.startsWith("/user/")}ngOnInit(){if(this.gs.isBrowser){const m=this.gs.window.matchMedia&&this.gs.window.matchMedia("(prefers-color-scheme: dark)").matches;this.gs.isDarkMode=m||"true"===this.ls.getItem(this.gs.localStorageKeys.DarkMode),this.toggleDarkTheme(!0),this.gs.window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",A=>{this.gs.isDarkMode=A.matches,this.toggleDarkTheme(!0)}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:A=>{this.myPoints=A?.member_list[this.ss.mySocket.id]?.profile_?.points||0}})}}ngOnDestroy(){this.subsGlobalRoom?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsDelete?.unsubscribe()}get discordUrl(){return Nn.N.discord.join_url}toggleSideNav(){this.lms.onSideNavToggleView()}toggleWeather(){this.gs.weatherToggle(),this.snackBar.open(`Berhasil ${this.gs.weatherRunning?"Menyalakan":"Mematikan"} Efek Musiman`,"OK")}reloadPage(){this.bs.busy(),this.gs.window.location.reload()}openSearch(){this.rps.toggleSidePanel("SearchAllComponent")}openLiveChat(){this.rps.toggleSidePanel("LiveChatComponent")}openAdminNavigation(){this.rps.toggleSidePanel("AdminNavigationComponent")}toggleDarkTheme(m=!1){this.gs.toggleDarkTheme(m),this.ls.setItem(this.gs.localStorageKeys.DarkMode,JSON.stringify(this.gs.isDarkMode)),this.pi.updateStatusBarTheme(this.gs.isDarkMode),this.snackBar.open("Menggunakan Mode "+(this.gs.isDarkMode?"Gelap":"Terang"),"OK")}toggleDelete(){var m=this;return(0,Ho.Z)(function*(){const A=m.router.url.split("?")[0],G=A.split("/")[1],Pt=A.split("/")[2];m.subsDialog=(yield m.ds.openKonfirmasiDialog("Konfirmasi Hapus",`Yakin Akan Menghapus ${G[0].toUpperCase()}${G.slice(1)} -- '${Pt}' ?`,!0)).afterClosed().subscribe({next:be=>{m.gs.log("[INFO_DIALOG_CLOSED]",be),!0===be&&(m.bs.busy(),m.subsDelete=m.deleteHandle[G].delete(Pt).subscribe({next:ke=>{m.gs.log(`[${G.toUpperCase()}_CLICK_DELETE_SUCCESS]`,ke),m.bs.idle(),m.router.navigateByUrl(`/${G}`)},error:ke=>{m.gs.log(`[${G.toUpperCase()}_CLICK_DELETE_ERROR]`,ke,"error"),m.bs.idle()}})),m.subsDialog.unsubscribe()}})})()}toggleReport(){const m=this.router.url.split("?")[0];this.router.navigate(["/create/ticket"],{queryParams:{url:(m.startsWith("/")?Nn.N.baseUrl:"")+m}})}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(zo.pl),n.Y36(bo.S),n.Y36(Ra.C),n.Y36(Ki.F0),n.Y36(ys.Z),n.Y36(hn.U),n.Y36(Za.R),n.Y36(fn.z),n.Y36(Io.n),n.Y36(Lr.x),n.Y36(qo.A),n.Y36(Va.T),n.Y36(ts.Y),n.Y36(Cs.K))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-header"]],decls:18,vars:11,consts:[["color","primary",2,"height","56px","padding","0 12px"],["type","button","mat-icon-button","","matTooltip","Menu",1,"shiny",3,"click"],["fontIcon","menu"],["matLine","",1,"text-truncate",2,"margin-left","1rem","margin-right","1rem"],[1,"spacer"],["type","button","mat-stroked-button","","matTooltip","Points",4,"ngIf"],["type","button","class","animate__animated animate__rubberBand animate__infinite animate__slower","mat-icon-button","","matTooltip","Hapus Data",3,"click",4,"ngIf"],["type","button","class","animate__animated animate__headShake animate__infinite animate__slower","mat-icon-button","","matTooltip","Lapor Pelanggaran",3,"click",4,"ngIf"],["type","button","class","animate__animated animate__tada animate__infinite animate__slower","mat-icon-button","","matTooltip","Weather Effect",3,"click",4,"ngIf"],["type","button","mat-icon-button","","matTooltip","Ganti Warna",1,"animate__animated","animate__flash","animate__infinite","animate__slower",3,"click"],["fontIcon","nights_stay"],["type","button","mat-icon-button","","matTooltip","Obrolan",3,"click"],["fontIcon","forum","matBadgePosition","before",3,"matBadge","matBadgeColor"],["type","button","mat-icon-button","",3,"click",4,"ngIf"],["type","button","mat-icon-button","","matTooltip","Pencarian",1,"animate__animated","animate__heartBeat","animate__infinite","animate__slower",3,"click"],["fontIcon","search"],["type","button","mat-icon-button","","matTooltip","Clear Cache & Refresh",3,"click",4,"ngIf"],["type","button","mat-stroked-button","","matTooltip","Points"],["fontIcon","sports_score",1,"me-1"],["type","button","mat-icon-button","","matTooltip","Hapus Data",1,"animate__animated","animate__rubberBand","animate__infinite","animate__slower",3,"click"],["fontIcon","delete"],["type","button","mat-icon-button","","matTooltip","Lapor Pelanggaran",1,"animate__animated","animate__headShake","animate__infinite","animate__slower",3,"click"],["fontIcon","flag"],["type","button","mat-icon-button","","matTooltip","Weather Effect",1,"animate__animated","animate__tada","animate__infinite","animate__slower",3,"click"],["fontIcon","filter_vintage"],["type","button","mat-icon-button","",3,"click"],["fontIcon","apps"],["type","button","mat-icon-button","","matTooltip","Clear Cache & Refresh",3,"click"],["fontIcon","replay"]],template:function(A,G){1&A&&(n.TgZ(0,"mat-toolbar",0)(1,"button",1),n.NdJ("click",function(){return G.toggleSideNav()}),n._UZ(2,"mat-icon",2),n.qZA(),n.TgZ(3,"span",3),n._uU(4),n.qZA(),n._UZ(5,"span",4),n.YNc(6,yo,3,1,"button",5),n.YNc(7,Cl,2,0,"button",6),n.YNc(8,Ds,2,0,"button",7),n.YNc(9,tr,2,0,"button",8),n.TgZ(10,"button",9),n.NdJ("click",function(){return G.toggleDarkTheme()}),n._UZ(11,"mat-icon",10),n.qZA(),n.TgZ(12,"button",11),n.NdJ("click",function(){return G.openLiveChat()}),n._UZ(13,"mat-icon",12),n.qZA(),n.YNc(14,Cc,2,0,"button",13),n.TgZ(15,"button",14),n.NdJ("click",function(){return G.openSearch()}),n._UZ(16,"mat-icon",15),n.qZA(),n.YNc(17,Dc,2,0,"button",16),n.qZA()),2&A&&(n.Udp("background",null!=G.SS.mySocket&&G.SS.mySocket.id?"":"#4f555d"),n.xp6(4),n.hij(" ",G.PI.getHeaderTitle," "),n.xp6(2),n.Q6J("ngIf",G.ROUTER.url.startsWith("/nihongo")&&G.GS.isDesktop),n.xp6(1),n.Q6J("ngIf",G.canDelete),n.xp6(1),n.Q6J("ngIf",G.canReport),n.xp6(1),n.Q6J("ngIf",G.GS.weatherEffect),n.xp6(4),n.Q6J("matBadge",G.SS.messageChatUnreadCount)("matBadgeColor","warn"),n.xp6(1),n.Q6J("ngIf",G.ROUTER.url.startsWith("/admin-mod/")),n.xp6(3),n.Q6J("ngIf",!(null!=G.SS.mySocket&&G.SS.mySocket.id)))},dependencies:[ni.O5,es.k,vo.eB,co.X2,Qa.Hw,Oo.Ye,jo.Kd]})}return N})();var Go=o(4850),Dl=o(9982),Xs=o(7732);function Ml(N,x){1&N&&n.GkF(0)}function ko(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"img",13),n.TgZ(2,"span",14),n._uU(3),n._UZ(4,"br"),n._uU(5),n.qZA()(),n.TgZ(6,"a",15),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.logout())}),n._UZ(7,"mat-icon",16),n.TgZ(8,"span",8),n._uU(9),n.qZA()()}if(2&N){const m=n.oxw();n.Tol(m.TRUSTED?"gradient-border":""),n.xp6(1),n.s9C("src",null==m.AS.currentUserSubject||null==m.AS.currentUserSubject.value?null:m.AS.currentUserSubject.value.image_url,n.LSH),n.xp6(1),n.Q6J("@animateText",m.linkText?"show":"hide"),n.xp6(1),n.hij(" ",null==m.AS.currentUserSubject||null==m.AS.currentUserSubject.value?null:m.AS.currentUserSubject.value.kartu_tanda_penduduk_.nama," "),n.xp6(2),n.hij(" ",null==m.AS.currentUserSubject||null==m.AS.currentUserSubject.value?null:m.AS.currentUserSubject.value._email," "),n.xp6(3),n.Q6J("@animateText",m.linkText?"show":"hide"),n.xp6(1),n.hij(" Keluar ",m.AS.logoutTimerText," ")}}function El(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",17),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",18),n.TgZ(2,"span",8),n._uU(3,"Masuk"),n.qZA()(),n.TgZ(4,"a",19),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(5,"mat-icon",20),n.TgZ(6,"span",8),n._uU(7,"Daftar"),n.qZA()()}if(2&N){const m=n.oxw();n.xp6(2),n.Q6J("@animateText",m.linkText?"show":"hide"),n.xp6(4),n.Q6J("@animateText",m.linkText?"show":"hide")}}function Tl(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",22),n.TgZ(2,"span",8),n._uU(3),n.qZA()()}if(2&N){const m=x.$implicit,A=n.oxw();n.s9C("routerLink",m.link),n.xp6(1),n.Q6J("fontIcon",m.icon)("matBadge",m.badge),n.xp6(1),n.Q6J("@animateText",A.linkText?"show":"hide"),n.xp6(1),n.Oqu(m.name)}}function yr(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",22),n.TgZ(2,"span",8),n._uU(3),n.qZA()()}if(2&N){const m=x.$implicit,A=n.oxw();n.s9C("routerLink",m.link),n.xp6(1),n.Q6J("fontIcon",m.icon)("matBadge",m.badge),n.xp6(1),n.Q6J("@animateText",A.linkText?"show":"hide"),n.xp6(1),n.Oqu(m.name)}}function is(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",22),n.TgZ(2,"span",8),n._uU(3),n.qZA()()}if(2&N){const m=x.$implicit,A=n.oxw();n.s9C("routerLink",m.link),n.xp6(1),n.Q6J("fontIcon",m.icon)("matBadge",m.badge),n.xp6(1),n.Q6J("@animateText",A.linkText?"show":"hide"),n.xp6(1),n.Oqu(m.name)}}function Ro(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",22),n.TgZ(2,"span",8),n._uU(3),n.qZA()()}if(2&N){const m=x.$implicit,A=n.oxw();n.s9C("routerLink",m.link),n.xp6(1),n.Q6J("fontIcon",m.icon)("matBadge",m.badge),n.xp6(1),n.Q6J("@animateText",A.linkText?"show":"hide"),n.xp6(1),n.Oqu(m.name)}}function qs(N,x){if(1&N){const m=n.EpF();n.TgZ(0,"a",21),n.NdJ("click",function(){n.CHM(m);const G=n.oxw();return n.KtG(G.forceCloseSideNav())}),n._UZ(1,"mat-icon",22),n.TgZ(2,"span",8),n._uU(3),n.qZA()()}if(2&N){const m=x.$implicit,A=n.oxw();n.s9C("routerLink",m.link),n.xp6(1),n.Q6J("fontIcon",m.icon)("matBadge",m.badge),n.xp6(1),n.Q6J("@animateText",A.linkText?"show":"hide"),n.xp6(1),n.Oqu(m.name)}}const ca=function(N){return{"overflow-y":N,"overflow-x":"hidden"}};let uo=(()=>{class N{constructor(m,A,G,Pt,be,ke){this.router=m,this.lms=A,this.as=G,this.gs=Pt,this.ds=be,this.ls=ke,this.subsDialog=null}get AS(){return this.as}get GS(){return this.gs}get mainMenus(){return this.lms.mainMenus}get contentMenus(){return this.lms.contentMenus}get additionalMenus(){return this.lms.additionalMenus}get miscMenus(){return this.lms.miscMenus}get otherMenus(){return this.lms.otherMenus}get TRUSTED(){return!!this.as.currentUserSubject?.value&&(this.as.currentUserSubject.value.role===kn.yS.ADMIN||this.as.currentUserSubject.value.role===kn.yS.MODERATOR||this.as.currentUserSubject.value.role===kn.yS.FANSUBBER)}ngOnDestroy(){this.subsDialog?.unsubscribe()}ngOnInit(){}get sideNavExpanded(){return this.lms.sideNavExpanded}get linkText(){return this.lms.linkText}onMouseHoverIn(){this.gs.isDesktop&&this.lms.onMouseHoverIn()}onMouseHoverOut(){this.gs.isDesktop&&this.lms.onMouseHoverOut()}forceCloseSideNav(){this.lms.forceCloseSideNav()}logout(){this.as.logout()}openDocumentation(){this.forceCloseSideNav(),this.router.navigateByUrl("/docs")}openWebTorrent(){this.forceCloseSideNav(),this.gs.isDesktop?this.router.navigateByUrl("/torrent"):this.subsDialog=this.ds.openInfoDialog({data:{title:".: Web-Torrent :.",htmlMessage:"Fitur Ini Tergolong Cukup Berat Karena Dikhususkan Untuk Pengguna Desktop, Akan Ada Kemungkinan Juga Tampilan Menjadi Berantakan, Yakin Ingin Melanjutkan ?",confirmText:"Ya, Lanjutkan",cancelText:"Tidak, Batal"},disableClose:!1}).afterClosed().subscribe({next:m=>{this.gs.log("[INFO_DIALOG_CLOSED]",m),!0===m&&this.router.navigateByUrl("/torrent"),this.subsDialog.unsubscribe()}})}toggleDebugLog(m){this.gs.forceEnableDebugLog=m.checked,this.ls.setItem(this.gs.localStorageKeys.DebugLogs,JSON.stringify(m.checked))}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(Ki.F0),n.Y36(bo.S),n.Y36(lo.e),n.Y36(hn.U),n.Y36(Lr.x),n.Y36(Io.n))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-left-menu"]],decls:33,vars:15,consts:[[1,"sidenav_container",3,"ngStyle","mouseenter","mouseleave"],[4,"ngIf","ngIfThen","ngIfElse"],["sudahLogin",""],["belumLogin",""],[2,"margin-top","8px"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click",4,"ngFor","ngForOf"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"click"],["fontIcon","sailing",2,"padding-left","0.2em"],[2,"padding-left","1.75em","padding-right","0.2em"],["fontIcon","settings_ethernet",2,"padding-left","0.2em"],[2,"right","1em !important","position","absolute"],[3,"ngModel","ngModelChange","click","change"],["mat-list-item","","routerLink","/user","routerLinkActive","side-menu-link-active",3,"click"],[1,"jim",3,"src"],[1,"text-truncate",2,"padding-left","1.2em","padding-right","0.2em"],["mat-list-item","",3,"click"],["fontIcon","power_settings_new",2,"padding-left","0.2em"],["mat-list-item","","routerLink","/login","routerLinkActive","side-menu-link-active",3,"click"],["fontIcon","login",2,"padding-left","0.2em"],["mat-list-item","","routerLink","/register","routerLinkActive","side-menu-link-active",3,"click"],["fontIcon","group_add",2,"padding-left","0.2em"],["mat-list-item","","routerLinkActive","side-menu-link-active",3,"routerLink","click"],["matBadgeColor","warn","matBadgePosition","before",2,"padding-left","0.2em",3,"fontIcon","matBadge"]],template:function(A,G){if(1&A&&(n.TgZ(0,"div",0),n.NdJ("mouseenter",function(){return G.onMouseHoverIn()})("mouseleave",function(){return G.onMouseHoverOut()}),n.TgZ(1,"mat-nav-list"),n.YNc(2,Ml,1,0,"ng-container",1),n.YNc(3,ko,10,9,"ng-template",null,2,n.W1O),n.YNc(5,El,8,2,"ng-template",null,3,n.W1O),n.qZA(),n._UZ(7,"mat-divider",4),n.TgZ(8,"mat-nav-list"),n.YNc(9,Tl,4,5,"a",5),n.qZA(),n._UZ(10,"mat-divider",4),n.TgZ(11,"mat-nav-list"),n.YNc(12,yr,4,5,"a",5),n.qZA(),n._UZ(13,"mat-divider",4),n.TgZ(14,"mat-nav-list"),n.YNc(15,is,4,5,"a",5),n.qZA(),n._UZ(16,"mat-divider",4),n.TgZ(17,"mat-nav-list")(18,"a",6),n.NdJ("click",function(){return G.openWebTorrent()}),n._UZ(19,"mat-icon",7),n.TgZ(20,"span",8),n._uU(21,"Web Torrent"),n.qZA()(),n.YNc(22,Ro,4,5,"a",5),n.qZA(),n._UZ(23,"mat-divider",4),n.TgZ(24,"mat-nav-list"),n.YNc(25,qs,4,5,"a",5),n.TgZ(26,"a",6),n.NdJ("click",function(){return G.openDocumentation()}),n._UZ(27,"mat-icon",9),n.TgZ(28,"span",8),n._uU(29," Dev. Mode "),n.TgZ(30,"span",10)(31,"mat-slide-toggle",11),n.NdJ("ngModelChange",function(be){return G.GS.forceEnableDebugLog=be})("click",function(be){return be.stopPropagation()})("change",function(be){return G.toggleDebugLog(be)}),n.qZA()()()()(),n._UZ(32,"div",4),n.qZA()),2&A){const Pt=n.MAs(4),be=n.MAs(6);n.Q6J("@onSideNavChange",G.sideNavExpanded?"open":"close")("ngStyle",n.VKq(13,ca,G.sideNavExpanded?"auto":"hidden")),n.xp6(2),n.Q6J("ngIf",null==G.AS.currentUserSubject?null:G.AS.currentUserSubject.value)("ngIfThen",Pt)("ngIfElse",be),n.xp6(7),n.Q6J("ngForOf",G.mainMenus),n.xp6(3),n.Q6J("ngForOf",G.contentMenus),n.xp6(3),n.Q6J("ngForOf",G.additionalMenus),n.xp6(5),n.Q6J("@animateText",G.linkText?"show":"hide"),n.xp6(2),n.Q6J("ngForOf",G.miscMenus),n.xp6(3),n.Q6J("ngForOf",G.otherMenus),n.xp6(3),n.Q6J("@animateText",G.linkText?"show":"hide"),n.xp6(3),n.Q6J("ngModel",G.GS.forceEnableDebugLog)}},dependencies:[ni.sg,ni.O5,ni.PC,Ki.rH,Ki.Od,es.k,Go.d,Qa.Hw,Dl.U,Dl.oh,Xs.iZ,oa.JJ,oa.On],styles:[".sidenav_container[_ngcontent-%COMP%]{min-width:64px!important;max-width:320px;height:calc(100vh - 88px)}.jim[_ngcontent-%COMP%]{width:32px;height:32px;object-fit:cover;border-radius:50%}.side-menu-link-active[_ngcontent-%COMP%]{background:rgba(255,64,129,.15);color:#ff4081!important;font-weight:700}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"],data:{animation:[Vo,vs]}})}return N})();function tl(N,x){1&N&&n.GkF(0,4)}let S=(()=>{class N{constructor(m,A){this.rps=m,this.gs=A}get RPS(){return this.rps}ngOnInit(){}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(Ra.C),n.Y36(hn.U))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-right-panel"]],decls:4,vars:1,consts:[[1,"sidepanel_container","p-3"],[1,"row"],[1,"col-12"],["ngIf","rps.component",4,"ngComponentOutlet"],["ngIf","rps.component"]],template:function(A,G){1&A&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2),n.YNc(3,tl,1,0,"ng-container",3),n.qZA()()()),2&A&&(n.xp6(3),n.Q6J("ngComponentOutlet",G.RPS.componentView))},dependencies:[ni.$G,ni.O5],styles:[".sidepanel_container[_ngcontent-%COMP%]{max-width:320px}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"]})}return N})(),O=(()=>{class N{constructor(m,A){this.fs=m,this.gs=A}ngOnInit(){}get isHidden(){return this.fs.isHidden}get tooltipText(){return this.fs.tooltipText}get backgroundImage(){return this.fs.backgroundImage}get backgroundIcon(){return this.fs.backgroundIcon}buttonClicked(){this.fs.buttonClicked()}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(Js.r),n.Y36(hn.U))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-material-fab"]],decls:2,vars:6,consts:[["type","button","mat-fab","","color","warn",1,"me-3","mb-5","fab-button","animate__animated","animate__bounce","animate__infinite","animate__slow",3,"matTooltip","click"],[3,"fontIcon"]],template:function(A,G){1&A&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return G.buttonClicked()}),n._UZ(1,"mat-icon",1),n.qZA()),2&A&&(n.Udp("display",G.isHidden?"none":"")("background-image",G.backgroundImage?"url("+G.backgroundImage+")":""),n.s9C("matTooltip",G.tooltipText),n.xp6(1),n.Q6J("fontIcon",G.backgroundIcon))},dependencies:[vo.eB,Qa.Hw,jo.Kd],styles:[".fab-button[_ngcontent-%COMP%]{z-index:9999;position:fixed;bottom:0;right:0;background-size:contain;background-position:center}"]})}return N})();function w(N,x){1&N&&n.GkF(0)}function $(N,x){if(1&N&&(n.ynx(0),n._uU(1),n.BQk()),2&N){const m=n.oxw(2).$implicit;n.xp6(1),n.Oqu(m.label)}}const yt=function(N){return{"xng-breadcrumb-link-disabled":N}},Qt=function(N,x,m,A,G,Pt){return{$implicit:N,info:x,last:m,first:A,index:G,count:Pt}};function oe(N,x){if(1&N&&(n.TgZ(0,"a",7),n.YNc(1,w,1,0,"ng-container",8),n.YNc(2,$,2,1,"ng-container",9),n.qZA()),2&N){const m=n.oxw(),A=m.$implicit,G=m.last,Pt=m.first,be=m.index,ke=m.count,ii=n.oxw();n.Q6J("ngClass",n.VKq(10,yt,A.disable))("routerLink",A.routeInterceptor?A.routeInterceptor(A.routeLink,A):A.routeLink)("queryParams",ii.preserveQueryParams?A.queryParams:void 0)("fragment",ii.preserveFragment?A.fragment:void 0)("target",ii.anchorTarget?ii.anchorTarget:"_self"),n.uIk("aria-disabled",A.disable)("tabIndex",A.disable?-1:0),n.xp6(1),n.Q6J("ngTemplateOutlet",ii.itemTemplate)("ngTemplateOutletContext",n.HTZ(12,Qt,A.label,A.info,G,Pt,be,ke)),n.xp6(1),n.Q6J("ngIf",!ii.itemTemplate)}}function qe(N,x){1&N&&n.GkF(0)}function _i(N,x){if(1&N&&(n.ynx(0),n._uU(1),n.BQk()),2&N){const m=n.oxw(2).$implicit;n.xp6(1),n.Oqu(m.label)}}function Fi(N,x){if(1&N&&(n.TgZ(0,"label",10),n.YNc(1,qe,1,0,"ng-container",8),n.YNc(2,_i,2,1,"ng-container",9),n.qZA()),2&N){const m=n.oxw(),A=m.$implicit,G=m.last,Pt=m.first,be=m.index,ke=m.count,ii=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",ii.itemTemplate)("ngTemplateOutletContext",n.HTZ(3,Qt,A.label,A.info,G,Pt,be,ke)),n.xp6(1),n.Q6J("ngIf",!ii.itemTemplate)}}function Ni(N,x){1&N&&n.GkF(0)}function Fn(N,x){if(1&N&&(n.ynx(0),n._uU(1),n.BQk()),2&N){const m=n.oxw(3);n.xp6(1),n.Oqu(m.separator)}}function Dr(N,x){if(1&N&&(n.TgZ(0,"li",11),n.YNc(1,Ni,1,0,"ng-container",12),n.YNc(2,Fn,2,1,"ng-container",9),n.qZA()),2&N){const m=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",m.separatorTemplate),n.xp6(1),n.Q6J("ngIf",!m.separatorTemplate)}}function io(N,x){if(1&N&&(n.ynx(0),n.TgZ(1,"li",3),n.YNc(2,oe,3,19,"a",4),n.YNc(3,Fi,3,10,"label",5),n.qZA(),n.YNc(4,Dr,3,2,"li",6),n.BQk()),2&N){const m=x.last;n.xp6(2),n.Q6J("ngIf",!m),n.xp6(1),n.Q6J("ngIf",m),n.xp6(1),n.Q6J("ngIf",!m)}}let Ja=(()=>{class N{}return N.\u0275fac=function(m){return new(m||N)},N.\u0275dir=n.lG2({type:N,selectors:[["","xngBreadcrumbItem",""]]}),N})();const ns=N=>N&&Object.keys(N).length>0;let xo=(()=>{class N{constructor(m,A){this.activatedRoute=m,this.router=A,this.baseHref="/",this.dynamicBreadcrumbStore=[],this.currentBreadcrumbs=[],this.previousBreadcrumbs=[],this.breadcrumbs=new Se.X([]),this.breadcrumbs$=this.breadcrumbs.asObservable(),this.detectRouteChanges()}detectRouteChanges(){this.setupBreadcrumbs(this.activatedRoute.snapshot),this.router.events.pipe((0,a.h)(m=>m instanceof Ki.c9)).subscribe(m=>{m.shouldActivate&&this.setupBreadcrumbs(m.state.root)})}setupBreadcrumbs(m){this.previousBreadcrumbs=this.currentBreadcrumbs;const A=this.getRootBreadcrumb();this.currentBreadcrumbs=A?[A]:[],this.prepareBreadcrumbList(m,this.baseHref)}getRootBreadcrumb(){const m=this.router.config.find(Pt=>""===Pt.path),A=this.extractObject(m?.data?.breadcrumb),G=this.getFromStore(A.alias,"/");if(ns(A)||ns(G))return{...G,...A,routeLink:this.baseHref,...this.getQueryParamsFromPreviousList("/")}}prepareBreadcrumbItem(m,A){const{path:G,breadcrumb:Pt}=this.parseRouteData(m.routeConfig),be=this.resolvePathSegment(G,m),ke=`${A}${be}`,ii=this.getFromStore(Pt.alias,ke),hi=this.extractLabel(ii?.label||Pt?.label,be);let Oi=!1,Vi="";return hi||(Oi=!0,Vi=be),{...ii,...Pt,label:Oi?Vi:hi,routeLink:ke,isAutoGeneratedLabel:Oi,...this.getQueryParamsFromPreviousList(ke)}}prepareBreadcrumbList(m,A){if(m.routeConfig?.path){const be=this.prepareBreadcrumbItem(m,A);if(this.currentBreadcrumbs.push(be),m.firstChild)return this.prepareBreadcrumbList(m.firstChild,be.routeLink+"/")}else if(m.firstChild)return this.prepareBreadcrumbList(m.firstChild,A);this.setQueryParamsForActiveBreadcrumb(this.currentBreadcrumbs[this.currentBreadcrumbs.length-1],m);const Pt=this.currentBreadcrumbs.filter(be=>!be.skip);this.breadcrumbs.next(Pt)}getFromStore(m,A){return this.dynamicBreadcrumbStore.find(G=>m&&m===G.alias||A&&A===G.routeLink||this.matchRegex(A,G.routeRegex))}matchRegex(m,A){return m.match(new RegExp(A))?.[0]===m}resolvePathSegment(m,A){return m.includes(":")&&Object.entries(A.params).forEach(([G,Pt])=>{m=m.replace(`:${G}`,`${Pt}`)}),m}getQueryParamsFromPreviousList(m){const{queryParams:A,fragment:G}=this.previousBreadcrumbs.find(Pt=>Pt.routeLink===m)||{};return{queryParams:A,fragment:G}}setQueryParamsForActiveBreadcrumb(m,A){if(m){const{queryParams:G,fragment:Pt}=A;m.queryParams=G?{...G}:void 0,m.fragment=Pt}}parseRouteData(m){const{path:A,data:G}=m;return{path:A,breadcrumb:this.mergeWithBaseChildData(m,G?.breadcrumb)}}mergeWithBaseChildData(m,A){if(!m)return this.extractObject(A);let G;m.loadChildren?G=m._loadedRoutes.find(be=>""===be.path):m.children&&(G=m.children.find(be=>""===be.path));const Pt=G?.data?.breadcrumb;return Pt?this.mergeWithBaseChildData(G,{...this.extractObject(A),...this.extractObject(Pt)}):this.extractObject(A)}set(m,A){const G=this.extractObject(A);let Pt;Pt=m.startsWith("@")?["alias",{...G,alias:m.slice(1)}]:m.includes(":")?["routeRegex",{...G,routeRegex:this.buildRegex(m)}]:["routeLink",{...G,routeLink:this.ensureLeadingSlash(m)}],Pt[1].isAutoGeneratedLabel=!1,this.updateStore(...Pt),this.updateCurrentBreadcrumbs(...Pt)}updateStore(m,A){const G=this.dynamicBreadcrumbStore.findIndex(Pt=>A[m]===Pt[m]);G>-1?this.dynamicBreadcrumbStore[G]={...this.dynamicBreadcrumbStore[G],...A}:this.dynamicBreadcrumbStore.push({...A})}updateCurrentBreadcrumbs(m,A){const G=this.currentBreadcrumbs.findIndex(Pt=>"routeRegex"===m?this.matchRegex(Pt.routeLink,A[m]):A[m]===Pt[m]);if(G>-1){this.currentBreadcrumbs[G]={...this.currentBreadcrumbs[G],...A};const Pt=this.currentBreadcrumbs.filter(be=>!be.skip);this.breadcrumbs.next([...Pt])}}buildRegex(m){return this.ensureLeadingSlash(m).replace(new RegExp("/:[^/]+","g"),"/[^/]+")}ensureLeadingSlash(m){return m.startsWith("/")?m:`/${m}`}extractLabel(m,A){const G="object"==typeof m?m.label:m;return"function"==typeof G?G(A):G}extractObject(m){return!m||"string"!=typeof m&&"function"!=typeof m?m||{}:{label:m}}}return N.\u0275fac=function(m){return new(m||N)(n.LFG(Ki.gz),n.LFG(Ki.F0))},N.\u0275prov=n.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),Yo=(()=>{class N{constructor(m,A){this.breadcrumbService=m,this._separator="/",this.autoGenerate=!0,this.preserveQueryParams=!0,this.preserveFragment=!0,this.class="",this.setupMessage="not set up yet",this.someParameterValue=null,A.params.subscribe(G=>{this.setupComponent(G.someParam)})}set separator(m){m instanceof n.Rgc?(this.separatorTemplate=m,this._separator=void 0):(this.separatorTemplate=void 0,this._separator=m||"/")}get separator(){return this._separator}setupComponent(m){this.setupMessage="set up at "+new Date,this.someParameterValue=m}ngOnInit(){this.breadcrumbs$=this.breadcrumbService.breadcrumbs$.pipe((0,gr.U)(m=>m.filter(A=>!!this.autoGenerate||!A.isAutoGeneratedLabel).map(A=>{const{routeInterceptor:G,routeLink:Pt}=A;return{...A,routeLink:G?.(Pt,A)||Pt}})))}}return N.\u0275fac=function(m){return new(m||N)(n.Y36(xo),n.Y36(Ki.gz))},N.\u0275cmp=n.Xpm({type:N,selectors:[["xng-breadcrumb"]],contentQueries:function(m,A,G){if(1&m&&n.Suo(G,Ja,5,n.Rgc),2&m){let Pt;n.iGM(Pt=n.CRH())&&(A.itemTemplate=Pt.first)}},inputs:{autoGenerate:"autoGenerate",preserveQueryParams:"preserveQueryParams",preserveFragment:"preserveFragment",class:"class",anchorTarget:"anchorTarget",separator:"separator"},decls:4,vars:4,consts:[["aria-label","breadcrumb",1,"xng-breadcrumb-root",3,"ngClass"],[1,"xng-breadcrumb-list"],[4,"ngFor","ngForOf"],[1,"xng-breadcrumb-item"],["class","xng-breadcrumb-link","role","button","rel","noopener noreferrer",3,"ngClass","routerLink","queryParams","fragment","target",4,"ngIf"],["class","xng-breadcrumb-trail",4,"ngIf"],["class","xng-breadcrumb-separator","aria-hidden","true",4,"ngIf"],["role","button","rel","noopener noreferrer",1,"xng-breadcrumb-link",3,"ngClass","routerLink","queryParams","fragment","target"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[1,"xng-breadcrumb-trail"],["aria-hidden","true",1,"xng-breadcrumb-separator"],[4,"ngTemplateOutlet"]],template:function(m,A){1&m&&(n.TgZ(0,"nav",0)(1,"ol",1),n.YNc(2,io,5,3,"ng-container",2),n.ALo(3,"async"),n.qZA()()),2&m&&(n.Q6J("ngClass",A.class),n.xp6(2),n.Q6J("ngForOf",n.lcZ(3,2,A.breadcrumbs$)))},dependencies:[ni.mk,ni.sg,ni.O5,ni.tP,Ki.rH,ni.Ov],styles:[".xng-breadcrumb-root{margin:0;color:#0009}.xng-breadcrumb-list{display:flex;align-items:center;flex-wrap:wrap;margin:0;padding:0}.xng-breadcrumb-item{list-style:none}.xng-breadcrumb-trail{display:flex;align-items:center;color:#000000e6}.xng-breadcrumb-link{display:flex;align-items:center;white-space:nowrap;color:inherit;text-decoration:none;transition:-webkit-text-decoration .3s;transition:text-decoration .3s;transition:text-decoration .3s,-webkit-text-decoration .3s;cursor:pointer}.xng-breadcrumb-link:hover{text-decoration:underline}.xng-breadcrumb-link-disabled{pointer-events:none;cursor:disabled}.xng-breadcrumb-separator{display:flex;-webkit-user-select:none;user-select:none;margin-left:8px;margin-right:8px}\n"],encapsulation:2}),N})(),rs=(()=>{class N{}return N.\u0275fac=function(m){return new(m||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[ni.ez,Ki.Bz]}),N})(),Al=(()=>{class N{constructor(m,A,G){this.gs=m,this.ss=A,this.wb=G}get SS(){return this.ss}ngOnInit(){}get discordUrl(){return Nn.N.discord.join_url}get author(){return Nn.N.author}get siteName(){return Nn.N.siteName}openGithub(){this.wb.winboxOpenUri(`https://github.com/${this.author}/${this.siteName}`)}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(hn.U),n.Y36(Za.R),n.Y36(Xo.N))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-footer"]],decls:14,vars:6,consts:[["color","primary",2,"height","32px","padding","0 12px"],[2,"font-size","small"],[2,"text-decoration","none","color","whitesmoke","cursor","pointer",3,"click"],[2,"display","inline-block","transform","rotateY(180deg)"],[2,"display","inline-block"],[1,"spacer","px-1"],["target","_blank",2,"text-decoration","none","color","whitesmoke",3,"href"]],template:function(A,G){1&A&&(n.TgZ(0,"mat-toolbar",0)(1,"span",1)(2,"div",2),n.NdJ("click",function(){return G.openGithub()}),n.TgZ(3,"div",3),n._uU(4,"\xa9"),n.qZA(),n.TgZ(5,"div",4),n._uU(6),n.ALo(7,"slice"),n.qZA()()(),n._UZ(8,"span",5)(9,"xng-breadcrumb")(10,"span",5),n.TgZ(11,"span",1)(12,"a",6),n._uU(13," With \u{1f498} Just For You~ "),n.qZA()()()),2&A&&(n.xp6(6),n.hij("\xa0 2013 | ",n.Dn7(7,2,null==G.SS.github?null:G.SS.github.sha,0,7),""),n.xp6(6),n.s9C("href",G.discordUrl,n.LSH))},dependencies:[Oo.Ye,Yo,ni.OU]})}return N})();const as=["leftSideNav"],Ec=["rightSidePanel"],Sl=["siteContent"],Wo=function(N){return{"background-image":N}};let Ms=(()=>{class N{get sideNavType(){return this.gs.isDesktop?"side":"over"}onResize(m){this.gs.onResize(m)}constructor(m,A,G,Pt,be,ke,ii,hi,Oi,Vi,Dn,mn,tn,cn,Qn,ir,Ar){this.snackBar=m,this.renderer=A,this.router=G,this.activatedRoute=Pt,this.bs=be,this.pi=ke,this.as=ii,this.fs=hi,this.ls=Oi,this.gs=Vi,this.lms=Dn,this.rps=mn,this.ss=tn,this.wb=cn,this.ds=Qn,this.sw=ir,this.viewer=Ar,this.subsRouter=null,this.subsRouterChild=null,this.subsUrl=null,this.subsVerify=null,this.subsDialog=null,this.timedOut=null}get ROUTER(){return this.router}get GS(){return this.gs}get LMS(){return this.lms}get RPS(){return this.rps}ngOnDestroy(){this.subsRouter?.unsubscribe(),this.subsRouterChild?.unsubscribe(),this.subsUrl?.unsubscribe(),this.subsVerify?.unsubscribe(),this.subsDialog?.unsubscribe(),this.timedOut&&(clearTimeout(this.timedOut),this.timedOut=null)}ngAfterViewInit(){if(this.lms.sideNav=this.leftSideNav,this.rps.sidePanel=this.rightSidePanel,this.gs.isBrowser){const m=this.renderer.selectRootElement("#app-loading");m&&(m.style.visibility="hidden",m.style.opacity=0)}}ngOnInit(){var m=this;this.gs.log(`[APP_BUILD_STATUS] \u{1f498} ${Nn.N.siteName} :: ${Nn.N.production?"Production":"Development"} With Logging Enabled \u{1f4cc}`),this.gs.log(`[SERVICE_WORKER_STATUS] \u{1f498} isEnabled :: ${this.sw.swEnabled} \u{1f4cc}`),this.pi.updatePageMetaData(`\u300c\u{1f4a4} ${Nn.N.siteName}\u300d`,`\u300c\u2728 ${Nn.N.siteDescription}\u300d`,`\u300c\u{1f4a4} ${Nn.N.siteName} \u2728\u{1f31e}\u300d`,`${Nn.N.baseUrl}/assets/img/favicon.png`),this.subsRouter=this.router.events.subscribe({next:A=>{if(A instanceof Ki.xV)this.gs.isBrowser&&this.bs.busy();else if(A instanceof Ki.GH)this.gs.isBrowser&&this.bs.idle();else if(A instanceof Ki.OD){if(this.gs.isBrowser&&A.url){const G=A.url.split("/")[1];if(G){const Pt=`badge${G[0].toUpperCase()}${G.slice(1)}`;if(this.ss[Pt]){this.ss[Pt]=[];const be=this.lms.mainMenus.find(hi=>hi.link===A.url),ke=this.lms.contentMenus.find(hi=>hi.link===A.url),ii=this.lms.miscMenus.find(hi=>hi.link===A.url);be&&(be.badge=null),ke&&(ke.badge=null),ii&&(ii.badge=null)}}this.gs.previousUrl=this.router.url.split("?")[0]}}else if(A instanceof Ki.m2){let G=this.activatedRoute.firstChild;for(const Pt of G.children)G=Pt;this.subsRouterChild=G.data.subscribe({next:Pt=>{if(this.updateBackgroundImage(),this.gs.routerData=Pt,this.pi.updatePageMetaData(Pt.title,Pt.description,Pt.keywords,this.gs.bgImgUrl||`${Nn.N.baseUrl}/assets/img/favicon.png`),this.fs.removeFab(),this.gs.isBrowser){this.siteContent&&(this.siteContent.elementRef.nativeElement.scrollTop=0);const be=A.url.split("?")[0];this.gs.previousUrl!==be&&(this.ss.currentChatRoom=[]),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,be)}}})}}}),this.gs.isBrowser&&(this.checkStorage(),this.windowRightClick=this.onWindowRightClick,this.windowLeftClick=this.onWindowLeftClick,this.windowDoubleClick=this.onWindowDoubleClick,this.windowBeforeUnloaded=this.onWindowBeforeUnloaded,this.timedOut=setTimeout((0,Ho.Z)(function*(){if("true"!==m.ls.getItem(m.gs.localStorageKeys.AturanTatib)){const G={id:"ATURAN-TATA-TERTIB",data:{title:"Aturan Dan Tata Tertib Komunitas",htmlMessage:"Gagal Memuat Aturan Dan Tata Tertib Komunitas",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:m.ds.maxWidth};m.subsDialog=(yield m.ds.fetchInformationRegisterMode(G)).afterClosed().subscribe({next:Pt=>{m.gs.log("[ATURAN_TATA_TERTIB_DIALOG_CLOSED]",Pt),"boolean"==typeof Pt&&m.ls.setItem(m.gs.localStorageKeys.AturanTatib,JSON.stringify(Pt)),m.subsDialog.unsubscribe()}})}m.injectServerTimeClock(),m.gs.weatherEffect&&m.snackBar.open("Gunakan Menu Di Kanan Atas (Gambar Bunga) Untuk Mematikan Animasi Efek Musiman!","OK")}),1234))}updateBackgroundImage(){const m=this.router.url.split("?")[0].substring(1).split("/")[0];this.gs.bgImgUrlPath=m?`/assets/img/router/${m}.png`:""}checkStorage(){this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:m=>{this.gs.log("[VERIFY_SUCCESS]",m),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,this.router.url.split("?")[0]),this.bs.idle()},error:m=>{this.gs.log("[VERIFY_ERROR]",m,"error"),this.bs.idle(),this.as.removeUser()}})}resetLoading(){this.bs.clear()}onWindowRightClick(m){this.gs.log("[MOUSE_RIGHT_CLICK]",m)}onWindowLeftClick(m){this.gs.log("[MOUSE_LEFT_CLICK]",m);const A=m||this.gs.window.event;let G=A.target||A.srcElement;if(G){let Pt=5;const be=["A","a"];for(;![...be].includes(G.tagName)&&Pt>0;)if(G=G.parentElement||G.parentNode,Pt--,!G)return!0;if(be.includes(G.tagName)){const ke=G.getAttribute("href");if(ke&&this.gs.isDesktop&&this.gs.includesOneOf(ke,["http","ftp","mailto"])&&!ke.includes(Nn.N.baseUrl))return A.preventDefault(),A.stopPropagation(),this.winboxOpenUri(ke),!1}}return!0}onWindowDoubleClick(m){this.gs.log("[MOUSE_DOUBLE_CLICK]",m);const A=m||this.gs.window.event,G=A.target||A.srcElement;("IMG"===G.tagName||"img"===G.tagName)&&this.gs.isDesktop&&this.viewer.viewImage(G)}onWindowBeforeUnloaded(m){this.as.token&&(this.gs.log("[BROWSER_EXIT_CLOSE_SAVE_JWT]",this.as.token),this.ls.setItem(this.gs.localStorageKeys.Token,this.as.token))}winboxOpenUri(m){this.wb.winboxOpenUri(m)}injectServerTimeClock(){if(this.gs.isDesktop){const m=this.gs.document.getElementsByClassName("mat-drawer-backdrop");if(m.length>0){m[0].innerHTML='\n
\n
\n

~ Kalender (\uff61>\ufe4f<\uff61) Server ~

\n

\n

\n
\n
\n ';const G=this.gs.document.createElement("script");G.type="text/javascript",G.textContent="\n function runCalendar() {\n const calendar = new Date();\n const serverTime = document.getElementById('serverTime');\n serverTime.innerHTML = calendar.toLocaleTimeString('ja-JP', {\n timeZone: 'Asia/Tokyo',\n timeZoneName: 'longGeneric'\n });\n const serverDate = document.getElementById('serverDate');\n serverDate.innerHTML = calendar.toLocaleDateString('id-ID', {\n weekday: 'long',\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n timeZone: 'Asia/Tokyo'\n });\n setTimeout(runCalendar, 1000);\n }\n runCalendar();\n ",this.gs.document.head.appendChild(G)}}}static#t=this.\u0275fac=function(A){return new(A||N)(n.Y36(zo.pl),n.Y36(n.Qsj),n.Y36(Ki.F0),n.Y36(Ki.gz),n.Y36(fn.z),n.Y36(ys.Z),n.Y36(lo.e),n.Y36(Js.r),n.Y36(Io.n),n.Y36(hn.U),n.Y36(bo.S),n.Y36(Ra.C),n.Y36(Za.R),n.Y36(Xo.N),n.Y36(Lr.x),n.Y36(xs.H),n.Y36(Pa))};static#e=this.\u0275cmp=n.Xpm({type:N,selectors:[["app-root"]],viewQuery:function(A,G){if(1&A&&(n.Gf(as,7),n.Gf(Ec,7),n.Gf(Sl,7)),2&A){let Pt;n.iGM(Pt=n.CRH())&&(G.leftSideNav=Pt.first),n.iGM(Pt=n.CRH())&&(G.rightSidePanel=Pt.first),n.iGM(Pt=n.CRH())&&(G.siteContent=Pt.first)}},hostBindings:function(A,G){1&A&&n.NdJ("contextmenu",function(be){return G.windowRightClick(be)},!1,n.Jf7)("click",function(be){return G.windowLeftClick(be)},!1,n.Jf7)("dblclick",function(be){return G.windowDoubleClick(be)},!1,n.Jf7)("beforeunload",function(be){return G.windowBeforeUnloaded(be)},!1,n.Jf7)("resize",function(be){return G.onResize(be)},!1,n.Jf7)},decls:24,vars:24,consts:[[3,"color","fixed","meteor","thick"],[1,"sidenav-container",3,"hasBackdrop"],["disableClose","",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle"],["leftSideNav",""],["position","end",1,"bg-bifeldy",2,"background-position","bottom center","background-size","128px","background-repeat","no-repeat",3,"mode","opened","ngStyle","closedStart"],["rightSidePanel",""],["siteContent",""],[1,"main_content"],["template","",3,"bdColor"],[1,"text-light","text-center","mt-5"],[1,"text-info","text-decoration-none",3,"click"],[2,"cursor","pointer"]],template:function(A,G){if(1&A&&(n._UZ(0,"app-header")(1,"ng-progress",0),n.TgZ(2,"mat-sidenav-container",1)(3,"mat-sidenav",2,3),n._UZ(5,"app-left-menu"),n.qZA(),n.TgZ(6,"mat-sidenav",4,5),n.NdJ("closedStart",function(){return G.RPS.onClose()}),n._UZ(8,"app-right-panel"),n.qZA(),n.TgZ(9,"mat-sidenav-content",null,6)(11,"div",7),n._UZ(12,"router-outlet"),n.qZA(),n._UZ(13,"app-material-fab"),n.qZA()(),n._UZ(14,"app-footer"),n.TgZ(15,"ngx-spinner",8)(16,"p",9),n._uU(17," Sedang Memuat Data ^_^ "),n._UZ(18,"br"),n._uU(19," Mohon Menunggu ... "),n._UZ(20,"br"),n.TgZ(21,"span",10),n.NdJ("click",function(){return G.resetLoading()}),n.TgZ(22,"b",11),n._uU(23,"Batalkan"),n.qZA()()()()),2&A){const Pt=n.MAs(7);n.xp6(1),n.Q6J("color","#ff4081")("fixed",!1)("meteor",!1)("thick",!0),n.xp6(1),n.Q6J("hasBackdrop",G.LMS.sideNavExpanded||Pt.isOpen),n.xp6(1),n.Q6J("mode",G.sideNavType)("opened",G.LMS.opened)("ngStyle",n.VKq(20,Wo,G.GS.leftMenuImage?"url("+G.GS.leftMenuImage+")":"")),n.xp6(3),n.Q6J("mode","over")("opened",!1)("ngStyle",n.VKq(22,Wo,G.GS.rightMenuImage?"url("+G.GS.rightMenuImage+")":"")),n.xp6(3),n.Udp("background-repeat","no-repeat")("background-size","128px"+(G.ROUTER.url.startsWith("/login")||G.ROUTER.url.startsWith("/register")||G.ROUTER.url.startsWith("/home")||G.ROUTER.url.startsWith("/verify")||G.ROUTER.url.startsWith("/privacy-policy")||G.ROUTER.url.startsWith("/reset-password")||G.ROUTER.url.startsWith("/nihongo")||G.ROUTER.url.startsWith("/torrent")||G.ROUTER.url.startsWith("/news/")||G.ROUTER.url.startsWith("/admin-mod/")?", cover":""))("background-position","bottom right"+(G.ROUTER.url.startsWith("/login")||G.ROUTER.url.startsWith("/register")||G.ROUTER.url.startsWith("/home")||G.ROUTER.url.startsWith("/verify")||G.ROUTER.url.startsWith("/privacy-policy")||G.ROUTER.url.startsWith("/reset-password")||G.ROUTER.url.startsWith("/nihongo")||G.ROUTER.url.startsWith("/torrent")||G.ROUTER.url.startsWith("/news/")||G.ROUTER.url.startsWith("/admin-mod/")?", center":""))("background-image","url("+G.GS.bgImgUrl+")"+(G.ROUTER.url.startsWith("/login")||G.ROUTER.url.startsWith("/register")||G.ROUTER.url.startsWith("/home")||G.ROUTER.url.startsWith("/verify")||G.ROUTER.url.startsWith("/privacy-policy")||G.ROUTER.url.startsWith("/reset-password")||G.ROUTER.url.startsWith("/nihongo")||G.ROUTER.url.startsWith("/torrent")||G.ROUTER.url.startsWith("/news/")||G.ROUTER.url.startsWith("/admin-mod/")?", url('/assets/img/background/paint.svg')":"")),n.xp6(6),n.Q6J("bdColor","#0000007f")}},dependencies:[ni.PC,Ki.lC,ws.JX,ws.TM,ws.Rh,wa.Ro,Ie,Mc,uo,S,O,Al],styles:[".main_content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 88px)}"],data:{animation:[Jo]}})}return N})(),Il=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[ni.ez,Ki.Bz,Pi.m]})}return N})(),Tc=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[ni.ez,Ki.Bz,Pi.m,oa.u5]})}return N})();var Ac=o(9221);let $o=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[ni.ez,Pi.m]})}return N})(),os=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[ni.ez,Pi.m,rs]})}return N})();var Sc=o(5128),Su=o(3811),Ol=o(5208);let Ic=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N});static#i=this.\u0275inj=n.cJS({imports:[ni.ez,Ki.Bz,Pi.m,oa.u5,oa.UX,Sc.Ad,Ol.d,Su.T]})}return N})(),Iu=(()=>{class N{static#t=this.\u0275fac=function(A){return new(A||N)};static#e=this.\u0275mod=n.oAB({type:N,bootstrap:[Ms]});static#i=this.\u0275inj=n.cJS({providers:[{provide:t.ok,useClass:Mi},{provide:eo.Jm,useValue:ji},{provide:oo.Qi,useValue:{floatLabel:"always"}},{provide:Ha.Ve,useValue:{duration:1e4}},{provide:l.TP,useClass:ta,multi:!0},{provide:l.TP,useClass:Pr,multi:!0},{provide:l.TP,useClass:_r,multi:!0}],imports:[t.b2.withServerTransition({appId:"serverApp"}),Oe,xn,g,oa.UX,l.JF,Pi.m,t.t6,wa.ef,so.Rh.forRoot({timeOut:3e3,positionClass:"toast-top-right",closeButton:!0,progressBar:!0,progressAnimation:"increasing",preventDuplicates:!0,resetTimeoutOnDuplicate:!0,includeTitleDuplicates:!0,countDuplicates:!0}),ci,Hi,Il,Tc,Ac.d,$o,os,Ic,Gr.Wr.register("/ngsw-worker.js",{enabled:Nn.N.production,registrationStrategy:"registerWhenStable:30000"}),an.zO.withConfig({autoUpload:!1,concurrency:1,endpoint:`${Nn.N.apiUrl}/attachment`,headers:{"ngsw-bypass":"true"},retryConfig:{maxAttempts:3},maxChunkSize:bn.t.fileSizeAttachmentChunkCloudflareLimit})]})}return N})();function kl(){t.q6().bootstrapModule(Iu).catch(N=>console.error(N))}o(5386),Nn.N.production&&(0,n.G48)(),"complete"===document.readyState?kl():document.addEventListener("DOMContentLoaded",kl)},1741:(ae,k,o)=>{"use strict";o.d(k,{Bp:()=>E,eK:()=>D,yS:()=>t});var t=(()=>{return(d=t||(t={})).ADMIN="ADMIN",d.MODERATOR="MODERATOR",d.FANSUBBER="FANSUBBER",d.USER="USER",t;var d})(),D=(()=>{return(d=D||(D={})).LIKE="LIKE",d.DISLIKE="DISLIKE",D;var d})(),E=(()=>{return(d=E||(E={})).DISCORD="DISCORD",d.DISQUS="DISQUS",d.FACEBOOK="FACEBOOK",d.GOOGLE="GOOGLE",E;var d})()},7360:(ae,k,o)=>{"use strict";o.d(k,{F:()=>t});var t=(()=>{return(n=t||(t={})).WINTER="winter",n.SPRING="spring",n.SUMMER="summer",n.FALL="fall",t;var n})()},8498:ae=>{function o(){}ae.exports=function k(t,n,l){var u=!1;return l=l||o,a.count=t,0===t?n():a;function a(D,E){if(a.count<=0)throw new Error("after called too many times");--a.count,D?(u=!0,n(D),n=l):0===a.count&&!u&&n(null,E)}}},9933:ae=>{ae.exports=function(k,o,t){var n=k.byteLength;if(o=o||0,t=t||n,k.slice)return k.slice(o,t);if(o<0&&(o+=n),t<0&&(t+=n),t>n&&(t=n),o>=n||o>=t||0===n)return new ArrayBuffer(0);for(var l=new Uint8Array(k),u=new Uint8Array(t-o),a=o,D=0;a{function k(o){this.ms=(o=o||{}).min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}ae.exports=k,k.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*o);o=1&Math.floor(10*t)?o+n:o-n}return 0|Math.min(o,this.max)},k.prototype.reset=function(){this.attempts=0},k.prototype.setMin=function(o){this.ms=o},k.prototype.setMax=function(o){this.max=o},k.prototype.setJitter=function(o){this.jitter=o}},390:(ae,k)=>{!function(o){"use strict";k.encode=function(t){var l,n=new Uint8Array(t),u=n.length,a="";for(l=0;l>2],a+=o[(3&n[l])<<4|n[l+1]>>4],a+=o[(15&n[l+1])<<2|n[l+2]>>6],a+=o[63&n[l+2]];return u%3==2?a=a.substring(0,a.length-1)+"=":u%3==1&&(a=a.substring(0,a.length-2)+"=="),a},k.decode=function(t){var u,D,E,d,y,n=.75*t.length,l=t.length,a=0;"="===t[t.length-1]&&(n--,"="===t[t.length-2]&&n--);var g=new ArrayBuffer(n),_=new Uint8Array(g);for(u=0;u>4,_[a++]=(15&E)<<4|d>>2,_[a++]=(3&d)<<6|63&y;return g}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5343:(ae,k)=>{"use strict";k.byteLength=function E(v){var T=D(v),B=T[1];return 3*(T[0]+B)/4-B},k.toByteArray=function y(v){var T,K,V=D(v),B=V[0],Y=V[1],L=new n(function d(v,T,V){return 3*(T+V)/4-V}(0,B,Y)),U=0,nt=Y>0?B-4:B;for(K=0;K>16&255,L[U++]=T>>8&255,L[U++]=255&T;return 2===Y&&(T=t[v.charCodeAt(K)]<<2|t[v.charCodeAt(K+1)]>>4,L[U++]=255&T),1===Y&&(T=t[v.charCodeAt(K)]<<10|t[v.charCodeAt(K+1)]<<4|t[v.charCodeAt(K+2)]>>2,L[U++]=T>>8&255,L[U++]=255&T),L},k.fromByteArray=function f(v){for(var T,V=v.length,B=V%3,Y=[],L=16383,U=0,nt=V-B;Unt?nt:U+L));return 1===B?Y.push(o[(T=v[V-1])>>2]+o[T<<4&63]+"=="):2===B&&Y.push(o[(T=(v[V-2]<<8)+v[V-1])>>10]+o[T>>4&63]+o[T<<2&63]+"="),Y.join("")};for(var o=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=l.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var V=v.indexOf("=");return-1===V&&(V=T),[V,V===T?0:4-V%4]}function g(v){return o[v>>18&63]+o[v>>12&63]+o[v>>6&63]+o[63&v]}function _(v,T,V){for(var Y=[],L=T;L{var k=typeof k<"u"?k:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"&&MozBlobBuilder,o=function(){try{return 2===new Blob(["hi"]).size}catch{return!1}}(),t=o&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch{return!1}}(),n=k&&k.prototype.append&&k.prototype.getBlob;function l(D){return D.map(function(E){if(E.buffer instanceof ArrayBuffer){var d=E.buffer;if(E.byteLength!==d.byteLength){var y=new Uint8Array(E.byteLength);y.set(new Uint8Array(d,E.byteOffset,E.byteLength)),d=y.buffer}return d}return E})}function u(D,E){E=E||{};var d=new k;return l(D).forEach(function(y){d.append(y)}),E.type?d.getBlob(E.type):d.getBlob()}function a(D,E){return new Blob(l(D),E||{})}typeof Blob<"u"&&(u.prototype=Blob.prototype,a.prototype=Blob.prototype),ae.exports=o?t?Blob:a:n?u:void 0},3172:(ae,k,o)=>{"use strict";const n=o(5343),l=o(8461),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;k.lW=d,k.h2=50;const a=2147483647;function E(ct){if(ct>a)throw new RangeError('The value "'+ct+'" is invalid for option "size"');const H=new Uint8Array(ct);return Object.setPrototypeOf(H,d.prototype),H}function d(ct,H,C){if("number"==typeof ct){if("string"==typeof H)throw new TypeError('The "string" argument must be of type string. Received type number');return f(ct)}return y(ct,H,C)}function y(ct,H,C){if("string"==typeof ct)return function v(ct,H){if(("string"!=typeof H||""===H)&&(H="utf8"),!d.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const C=0|nt(ct,H);let ut=E(C);const Ct=ut.write(ct,H);return Ct!==C&&(ut=ut.slice(0,Ct)),ut}(ct,H);if(ArrayBuffer.isView(ct))return function V(ct){if(at(ct,Uint8Array)){const H=new Uint8Array(ct);return B(H.buffer,H.byteOffset,H.byteLength)}return T(ct)}(ct);if(null==ct)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ct);if(at(ct,ArrayBuffer)||ct&&at(ct.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(ct,SharedArrayBuffer)||ct&&at(ct.buffer,SharedArrayBuffer)))return B(ct,H,C);if("number"==typeof ct)throw new TypeError('The "value" argument must not be of type number. Received type number');const ut=ct.valueOf&&ct.valueOf();if(null!=ut&&ut!==ct)return d.from(ut,H,C);const Ct=function Y(ct){if(d.isBuffer(ct)){const H=0|L(ct.length),C=E(H);return 0===C.length||ct.copy(C,0,0,H),C}return void 0!==ct.length?"number"!=typeof ct.length||Ft(ct.length)?E(0):T(ct):"Buffer"===ct.type&&Array.isArray(ct.data)?T(ct.data):void 0}(ct);if(Ct)return Ct;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ct[Symbol.toPrimitive])return d.from(ct[Symbol.toPrimitive]("string"),H,C);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ct)}function g(ct){if("number"!=typeof ct)throw new TypeError('"size" argument must be of type number');if(ct<0)throw new RangeError('The value "'+ct+'" is invalid for option "size"')}function f(ct){return g(ct),E(ct<0?0:0|L(ct))}function T(ct){const H=ct.length<0?0:0|L(ct.length),C=E(H);for(let ut=0;ut=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|ct}function nt(ct,H){if(d.isBuffer(ct))return ct.length;if(ArrayBuffer.isView(ct)||at(ct,ArrayBuffer))return ct.byteLength;if("string"!=typeof ct)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ct);const C=ct.length,ut=arguments.length>2&&!0===arguments[2];if(!ut&&0===C)return 0;let Ct=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return Pe(ct).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return ne(ct).length;default:if(Ct)return ut?-1:Pe(ct).length;H=(""+H).toLowerCase(),Ct=!0}}function K(ct,H,C){let ut=!1;if((void 0===H||H<0)&&(H=0),H>this.length||((void 0===C||C>this.length)&&(C=this.length),C<=0)||(C>>>=0)<=(H>>>=0))return"";for(ct||(ct="utf8");;)switch(ct){case"hex":return Vt(this,H,C);case"utf8":case"utf-8":return gt(this,H,C);case"ascii":return Jt(this,H,C);case"latin1":case"binary":return Nt(this,H,C);case"base64":return It(this,H,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,H,C);default:if(ut)throw new TypeError("Unknown encoding: "+ct);ct=(ct+"").toLowerCase(),ut=!0}}function Z(ct,H,C){const ut=ct[H];ct[H]=ct[C],ct[C]=ut}function tt(ct,H,C,ut,Ct){if(0===ct.length)return-1;if("string"==typeof C?(ut=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),Ft(C=+C)&&(C=Ct?0:ct.length-1),C<0&&(C=ct.length+C),C>=ct.length){if(Ct)return-1;C=ct.length-1}else if(C<0){if(!Ct)return-1;C=0}if("string"==typeof H&&(H=d.from(H,ut)),d.isBuffer(H))return 0===H.length?-1:mt(ct,H,C,ut,Ct);if("number"==typeof H)return H&=255,"function"==typeof Uint8Array.prototype.indexOf?Ct?Uint8Array.prototype.indexOf.call(ct,H,C):Uint8Array.prototype.lastIndexOf.call(ct,H,C):mt(ct,[H],C,ut,Ct);throw new TypeError("val must be string, number or Buffer")}function mt(ct,H,C,ut,Ct){let $e,Bt=1,Ae=ct.length,ie=H.length;if(void 0!==ut&&("ucs2"===(ut=String(ut).toLowerCase())||"ucs-2"===ut||"utf16le"===ut||"utf-16le"===ut)){if(ct.length<2||H.length<2)return-1;Bt=2,Ae/=2,ie/=2,C/=2}function He(vi,mi){return 1===Bt?vi[mi]:vi.readUInt16BE(mi*Bt)}if(Ct){let vi=-1;for($e=C;$eAe&&(C=Ae-ie),$e=C;$e>=0;$e--){let vi=!0;for(let mi=0;miCt&&(ut=Ct):ut=Ct;const Bt=H.length;let Ae;for(ut>Bt/2&&(ut=Bt/2),Ae=0;Ae>8,Ct=C%256,Bt.push(Ct),Bt.push(ut);return Bt}(H,ct.length-C),ct,C,ut)}function It(ct,H,C){return n.fromByteArray(0===H&&C===ct.length?ct:ct.slice(H,C))}function gt(ct,H,C){C=Math.min(ct.length,C);const ut=[];let Ct=H;for(;Ct239?4:Bt>223?3:Bt>191?2:1;if(Ct+ie<=C){let He,$e,vi,mi;switch(ie){case 1:Bt<128&&(Ae=Bt);break;case 2:He=ct[Ct+1],128==(192&He)&&(mi=(31&Bt)<<6|63&He,mi>127&&(Ae=mi));break;case 3:He=ct[Ct+1],$e=ct[Ct+2],128==(192&He)&&128==(192&$e)&&(mi=(15&Bt)<<12|(63&He)<<6|63&$e,mi>2047&&(mi<55296||mi>57343)&&(Ae=mi));break;case 4:He=ct[Ct+1],$e=ct[Ct+2],vi=ct[Ct+3],128==(192&He)&&128==(192&$e)&&128==(192&vi)&&(mi=(15&Bt)<<18|(63&He)<<12|(63&$e)<<6|63&vi,mi>65535&&mi<1114112&&(Ae=mi))}}null===Ae?(Ae=65533,ie=1):Ae>65535&&(Ae-=65536,ut.push(Ae>>>10&1023|55296),Ae=56320|1023&Ae),ut.push(Ae),Ct+=ie}return function Ht(ct){const H=ct.length;if(H<=te)return String.fromCharCode.apply(String,ct);let C="",ut=0;for(;utCt.length?(d.isBuffer(Ae)||(Ae=d.from(Ae)),Ae.copy(Ct,Bt)):Uint8Array.prototype.set.call(Ct,Ae,Bt);else{if(!d.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Ct,Bt)}Bt+=Ae.length}return Ct},d.byteLength=nt,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const H=this.length;if(H%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let C=0;CC&&(H+=" ... "),""},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(H,C,ut,Ct,Bt){if(at(H,Uint8Array)&&(H=d.from(H,H.offset,H.byteLength)),!d.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(void 0===C&&(C=0),void 0===ut&&(ut=H?H.length:0),void 0===Ct&&(Ct=0),void 0===Bt&&(Bt=this.length),C<0||ut>H.length||Ct<0||Bt>this.length)throw new RangeError("out of range index");if(Ct>=Bt&&C>=ut)return 0;if(Ct>=Bt)return-1;if(C>=ut)return 1;if(this===H)return 0;let Ae=(Bt>>>=0)-(Ct>>>=0),ie=(ut>>>=0)-(C>>>=0);const He=Math.min(Ae,ie),$e=this.slice(Ct,Bt),vi=H.slice(C,ut);for(let mi=0;mi>>=0,isFinite(ut)?(ut>>>=0,void 0===Ct&&(Ct="utf8")):(Ct=ut,ut=void 0)}const Bt=this.length-C;if((void 0===ut||ut>Bt)&&(ut=Bt),H.length>0&&(ut<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ct||(Ct="utf8");let Ae=!1;for(;;)switch(Ct){case"hex":return lt(this,H,C,ut);case"utf8":case"utf-8":return ft(this,H,C,ut);case"ascii":case"latin1":case"binary":return Yt(this,H,C,ut);case"base64":return Rt(this,H,C,ut);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,H,C,ut);default:if(Ae)throw new TypeError("Unknown encoding: "+Ct);Ct=(""+Ct).toLowerCase(),Ae=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const te=4096;function Jt(ct,H,C){let ut="";C=Math.min(ct.length,C);for(let Ct=H;Ctut)&&(C=ut);let Ct="";for(let Bt=H;BtC)throw new RangeError("Trying to access beyond buffer length")}function P(ct,H,C,ut,Ct,Bt){if(!d.isBuffer(ct))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>Ct||Hct.length)throw new RangeError("Index out of range")}function Lt(ct,H,C,ut,Ct){_t(H,ut,Ct,ct,C,7);let Bt=Number(H&BigInt(4294967295));ct[C++]=Bt,Bt>>=8,ct[C++]=Bt,Bt>>=8,ct[C++]=Bt,Bt>>=8,ct[C++]=Bt;let Ae=Number(H>>BigInt(32)&BigInt(4294967295));return ct[C++]=Ae,Ae>>=8,ct[C++]=Ae,Ae>>=8,ct[C++]=Ae,Ae>>=8,ct[C++]=Ae,C}function vt(ct,H,C,ut,Ct){_t(H,ut,Ct,ct,C,7);let Bt=Number(H&BigInt(4294967295));ct[C+7]=Bt,Bt>>=8,ct[C+6]=Bt,Bt>>=8,ct[C+5]=Bt,Bt>>=8,ct[C+4]=Bt;let Ae=Number(H>>BigInt(32)&BigInt(4294967295));return ct[C+3]=Ae,Ae>>=8,ct[C+2]=Ae,Ae>>=8,ct[C+1]=Ae,Ae>>=8,ct[C]=Ae,C+8}function Wt(ct,H,C,ut,Ct,Bt){if(C+ut>ct.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function Ut(ct,H,C,ut,Ct){return H=+H,C>>>=0,Ct||Wt(ct,0,C,4),l.write(ct,H,C,ut,23,4),C+4}function he(ct,H,C,ut,Ct){return H=+H,C>>>=0,Ct||Wt(ct,0,C,8),l.write(ct,H,C,ut,52,8),C+8}d.prototype.slice=function(H,C){const ut=this.length;(H=~~H)<0?(H+=ut)<0&&(H=0):H>ut&&(H=ut),(C=void 0===C?ut:~~C)<0?(C+=ut)<0&&(C=0):C>ut&&(C=ut),C>>=0,C>>>=0,ut||zt(H,C,this.length);let Ct=this[H],Bt=1,Ae=0;for(;++Ae>>=0,C>>>=0,ut||zt(H,C,this.length);let Ct=this[H+--C],Bt=1;for(;C>0&&(Bt*=256);)Ct+=this[H+--C]*Bt;return Ct},d.prototype.readUint8=d.prototype.readUInt8=function(H,C){return H>>>=0,C||zt(H,1,this.length),this[H]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(H,C){return H>>>=0,C||zt(H,2,this.length),this[H]|this[H+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(H,C){return H>>>=0,C||zt(H,2,this.length),this[H]<<8|this[H+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(H,C){return H>>>=0,C||zt(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+16777216*this[H+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(H,C){return H>>>=0,C||zt(H,4,this.length),16777216*this[H]+(this[H+1]<<16|this[H+2]<<8|this[H+3])},d.prototype.readBigUInt64LE=je(function(H){le(H>>>=0,"offset");const C=this[H],ut=this[H+7];(void 0===C||void 0===ut)&&De(H,this.length-8);const Ct=C+256*this[++H]+65536*this[++H]+this[++H]*2**24,Bt=this[++H]+256*this[++H]+65536*this[++H]+ut*2**24;return BigInt(Ct)+(BigInt(Bt)<>>=0,"offset");const C=this[H],ut=this[H+7];(void 0===C||void 0===ut)&&De(H,this.length-8);const Ct=C*2**24+65536*this[++H]+256*this[++H]+this[++H],Bt=this[++H]*2**24+65536*this[++H]+256*this[++H]+ut;return(BigInt(Ct)<>>=0,C>>>=0,ut||zt(H,C,this.length);let Ct=this[H],Bt=1,Ae=0;for(;++Ae=Bt&&(Ct-=Math.pow(2,8*C)),Ct},d.prototype.readIntBE=function(H,C,ut){H>>>=0,C>>>=0,ut||zt(H,C,this.length);let Ct=C,Bt=1,Ae=this[H+--Ct];for(;Ct>0&&(Bt*=256);)Ae+=this[H+--Ct]*Bt;return Bt*=128,Ae>=Bt&&(Ae-=Math.pow(2,8*C)),Ae},d.prototype.readInt8=function(H,C){return H>>>=0,C||zt(H,1,this.length),128&this[H]?-1*(255-this[H]+1):this[H]},d.prototype.readInt16LE=function(H,C){H>>>=0,C||zt(H,2,this.length);const ut=this[H]|this[H+1]<<8;return 32768&ut?4294901760|ut:ut},d.prototype.readInt16BE=function(H,C){H>>>=0,C||zt(H,2,this.length);const ut=this[H+1]|this[H]<<8;return 32768&ut?4294901760|ut:ut},d.prototype.readInt32LE=function(H,C){return H>>>=0,C||zt(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},d.prototype.readInt32BE=function(H,C){return H>>>=0,C||zt(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},d.prototype.readBigInt64LE=je(function(H){le(H>>>=0,"offset");const C=this[H],ut=this[H+7];return(void 0===C||void 0===ut)&&De(H,this.length-8),(BigInt(this[H+4]+256*this[H+5]+65536*this[H+6]+(ut<<24))<>>=0,"offset");const C=this[H],ut=this[H+7];(void 0===C||void 0===ut)&&De(H,this.length-8);const Ct=(C<<24)+65536*this[++H]+256*this[++H]+this[++H];return(BigInt(Ct)<>>=0,C||zt(H,4,this.length),l.read(this,H,!0,23,4)},d.prototype.readFloatBE=function(H,C){return H>>>=0,C||zt(H,4,this.length),l.read(this,H,!1,23,4)},d.prototype.readDoubleLE=function(H,C){return H>>>=0,C||zt(H,8,this.length),l.read(this,H,!0,52,8)},d.prototype.readDoubleBE=function(H,C){return H>>>=0,C||zt(H,8,this.length),l.read(this,H,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(H,C,ut,Ct){H=+H,C>>>=0,ut>>>=0,Ct||P(this,H,C,ut,Math.pow(2,8*ut)-1,0);let Bt=1,Ae=0;for(this[C]=255&H;++Ae>>=0,ut>>>=0,Ct||P(this,H,C,ut,Math.pow(2,8*ut)-1,0);let Bt=ut-1,Ae=1;for(this[C+Bt]=255&H;--Bt>=0&&(Ae*=256);)this[C+Bt]=H/Ae&255;return C+ut},d.prototype.writeUint8=d.prototype.writeUInt8=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,1,255,0),this[C]=255&H,C+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,2,65535,0),this[C]=255&H,this[C+1]=H>>>8,C+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,2,65535,0),this[C]=H>>>8,this[C+1]=255&H,C+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,4,4294967295,0),this[C+3]=H>>>24,this[C+2]=H>>>16,this[C+1]=H>>>8,this[C]=255&H,C+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,4,4294967295,0),this[C]=H>>>24,this[C+1]=H>>>16,this[C+2]=H>>>8,this[C+3]=255&H,C+4},d.prototype.writeBigUInt64LE=je(function(H,C=0){return Lt(this,H,C,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=je(function(H,C=0){return vt(this,H,C,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(H,C,ut,Ct){if(H=+H,C>>>=0,!Ct){const He=Math.pow(2,8*ut-1);P(this,H,C,ut,He-1,-He)}let Bt=0,Ae=1,ie=0;for(this[C]=255&H;++Bt>0)-ie&255;return C+ut},d.prototype.writeIntBE=function(H,C,ut,Ct){if(H=+H,C>>>=0,!Ct){const He=Math.pow(2,8*ut-1);P(this,H,C,ut,He-1,-He)}let Bt=ut-1,Ae=1,ie=0;for(this[C+Bt]=255&H;--Bt>=0&&(Ae*=256);)H<0&&0===ie&&0!==this[C+Bt+1]&&(ie=1),this[C+Bt]=(H/Ae>>0)-ie&255;return C+ut},d.prototype.writeInt8=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,1,127,-128),H<0&&(H=255+H+1),this[C]=255&H,C+1},d.prototype.writeInt16LE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,2,32767,-32768),this[C]=255&H,this[C+1]=H>>>8,C+2},d.prototype.writeInt16BE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,2,32767,-32768),this[C]=H>>>8,this[C+1]=255&H,C+2},d.prototype.writeInt32LE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,4,2147483647,-2147483648),this[C]=255&H,this[C+1]=H>>>8,this[C+2]=H>>>16,this[C+3]=H>>>24,C+4},d.prototype.writeInt32BE=function(H,C,ut){return H=+H,C>>>=0,ut||P(this,H,C,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[C]=H>>>24,this[C+1]=H>>>16,this[C+2]=H>>>8,this[C+3]=255&H,C+4},d.prototype.writeBigInt64LE=je(function(H,C=0){return Lt(this,H,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=je(function(H,C=0){return vt(this,H,C,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeFloatLE=function(H,C,ut){return Ut(this,H,C,!0,ut)},d.prototype.writeFloatBE=function(H,C,ut){return Ut(this,H,C,!1,ut)},d.prototype.writeDoubleLE=function(H,C,ut){return he(this,H,C,!0,ut)},d.prototype.writeDoubleBE=function(H,C,ut){return he(this,H,C,!1,ut)},d.prototype.copy=function(H,C,ut,Ct){if(!d.isBuffer(H))throw new TypeError("argument should be a Buffer");if(ut||(ut=0),!Ct&&0!==Ct&&(Ct=this.length),C>=H.length&&(C=H.length),C||(C=0),Ct>0&&Ct=this.length)throw new RangeError("Index out of range");if(Ct<0)throw new RangeError("sourceEnd out of bounds");Ct>this.length&&(Ct=this.length),H.length-C>>=0,ut=void 0===ut?this.length:ut>>>0,H||(H=0),"number"==typeof H)for(Bt=C;Bt=ut+4;C-=3)H=`_${ct.slice(C-3,C)}${H}`;return`${ct.slice(0,C)}${H}`}function _t(ct,H,C,ut,Ct,Bt){if(ct>C||ct3?0===H||H===BigInt(0)?`>= 0${Ae} and < 2${Ae} ** ${8*(Bt+1)}${Ae}`:`>= -(2${Ae} ** ${8*(Bt+1)-1}${Ae}) and < 2 ** ${8*(Bt+1)-1}${Ae}`:`>= ${H}${Ae} and <= ${C}${Ae}`,new we.ERR_OUT_OF_RANGE("value",ie,ct)}!function ot(ct,H,C){le(H,"offset"),(void 0===ct[H]||void 0===ct[H+C])&&De(H,ct.length-(C+1))}(ut,Ct,Bt)}function le(ct,H){if("number"!=typeof ct)throw new we.ERR_INVALID_ARG_TYPE(H,"number",ct)}function De(ct,H,C){throw Math.floor(ct)!==ct?(le(ct,C),new we.ERR_OUT_OF_RANGE(C||"offset","an integer",ct)):H<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(C||"offset",`>= ${C?1:0} and <= ${H}`,ct)}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(ct){return ct?`${ct} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(ct,H){return`The "${ct}" argument must be of type number. Received type ${typeof H}`},TypeError),ve("ERR_OUT_OF_RANGE",function(ct,H,C){let ut=`The value of "${ct}" is out of range.`,Ct=C;return Number.isInteger(C)&&Math.abs(C)>2**32?Ct=rt(String(C)):"bigint"==typeof C&&(Ct=String(C),(C>BigInt(2)**BigInt(32)||C<-(BigInt(2)**BigInt(32)))&&(Ct=rt(Ct)),Ct+="n"),ut+=` It must be ${H}. Received ${Ct}`,ut},RangeError);const Be=/[^+/0-9A-Za-z-_]/g;function Pe(ct,H){let C;H=H||1/0;const ut=ct.length;let Ct=null;const Bt=[];for(let Ae=0;Ae55295&&C<57344){if(!Ct){if(C>56319){(H-=3)>-1&&Bt.push(239,191,189);continue}if(Ae+1===ut){(H-=3)>-1&&Bt.push(239,191,189);continue}Ct=C;continue}if(C<56320){(H-=3)>-1&&Bt.push(239,191,189),Ct=C;continue}C=65536+(Ct-55296<<10|C-56320)}else Ct&&(H-=3)>-1&&Bt.push(239,191,189);if(Ct=null,C<128){if((H-=1)<0)break;Bt.push(C)}else if(C<2048){if((H-=2)<0)break;Bt.push(C>>6|192,63&C|128)}else if(C<65536){if((H-=3)<0)break;Bt.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((H-=4)<0)break;Bt.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return Bt}function ne(ct){return n.toByteArray(function se(ct){if((ct=(ct=ct.split("=")[0]).trim().replace(Be,"")).length<2)return"";for(;ct.length%4!=0;)ct+="=";return ct}(ct))}function st(ct,H,C,ut){let Ct;for(Ct=0;Ct=H.length||Ct>=ct.length);++Ct)H[Ct+C]=ct[Ct];return Ct}function at(ct,H){return ct instanceof H||null!=ct&&null!=ct.constructor&&null!=ct.constructor.name&&ct.constructor.name===H.name}function Ft(ct){return ct!=ct}const xe=function(){const ct="0123456789abcdef",H=new Array(256);for(let C=0;C<16;++C){const ut=16*C;for(let Ct=0;Ct<16;++Ct)H[ut+Ct]=ct[C]+ct[Ct]}return H}();function je(ct){return typeof BigInt>"u"?ei:ct}function ei(){throw new Error("BigInt not supported")}},1213:ae=>{var k=[].slice;ae.exports=function(o,t){if("string"==typeof t&&(t=o[t]),"function"!=typeof t)throw new Error("bind() requires a function");var n=k.call(arguments,2);return function(){return t.apply(o,n.concat(k.call(arguments)))}}},1264:ae=>{function k(t){if(t)return function o(t){for(var n in k.prototype)t[n]=k.prototype[n];return t}(t)}ae.exports=k,k.prototype.on=k.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this},k.prototype.once=function(t,n){function l(){this.off(t,l),n.apply(this,arguments)}return l.fn=n,this.on(t,l),this},k.prototype.off=k.prototype.removeListener=k.prototype.removeAllListeners=k.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+t];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var u,a=0;a{ae.exports=function(k,o){var t=function(){};t.prototype=o.prototype,k.prototype=new t,k.prototype.constructor=k}},7466:function(ae,k,o){var t;ae.exports=(t=o(7585),o(8319),o(9493),o(7865),o(3057),function(){var n=t,u=n.lib.BlockCipher,a=n.algo,D=[],E=[],d=[],y=[],g=[],_=[],f=[],v=[],T=[],V=[];!function(){for(var L=[],U=0;U<256;U++)L[U]=U<128?U<<1:U<<1^283;var nt=0,K=0;for(U=0;U<256;U++){var Z=K^K<<1^K<<2^K<<3^K<<4;D[nt]=Z=Z>>>8^255&Z^99,E[Z]=nt;var ft,tt=L[nt],mt=L[tt],lt=L[mt];d[nt]=(ft=257*L[Z]^16843008*Z)<<24|ft>>>8,y[nt]=ft<<16|ft>>>16,g[nt]=ft<<8|ft>>>24,_[nt]=ft,f[Z]=(ft=16843009*lt^65537*mt^257*tt^16843008*nt)<<24|ft>>>8,v[Z]=ft<<16|ft>>>16,T[Z]=ft<<8|ft>>>24,V[Z]=ft,nt?(nt=tt^L[L[L[lt^tt]]],K^=L[L[K]]):nt=K=1}}();var B=[0,1,2,4,8,16,32,64,128,27,54],Y=a.AES=u.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var U=this._keyPriorReset=this._key,nt=U.words,K=U.sigBytes/4,tt=4*((this._nRounds=K+6)+1),mt=this._keySchedule=[],lt=0;lt6&<%K==4&&(L=D[L>>>24]<<24|D[L>>>16&255]<<16|D[L>>>8&255]<<8|D[255&L]):(L=D[(L=L<<8|L>>>24)>>>24]<<24|D[L>>>16&255]<<16|D[L>>>8&255]<<8|D[255&L],L^=B[lt/K|0]<<24),mt[lt]=mt[lt-K]^L);for(var ft=this._invKeySchedule=[],Yt=0;Yt>>24]]^v[D[L>>>16&255]]^T[D[L>>>8&255]]^V[D[255&L]]}}},encryptBlock:function(L,U){this._doCryptBlock(L,U,this._keySchedule,d,y,g,_,D)},decryptBlock:function(L,U){var nt=L[U+1];L[U+1]=L[U+3],L[U+3]=nt,this._doCryptBlock(L,U,this._invKeySchedule,f,v,T,V,E),nt=L[U+1],L[U+1]=L[U+3],L[U+3]=nt},_doCryptBlock:function(L,U,nt,K,Z,tt,mt,lt){for(var ft=this._nRounds,Yt=L[U]^nt[0],Rt=L[U+1]^nt[1],wt=L[U+2]^nt[2],It=L[U+3]^nt[3],gt=4,te=1;te>>24]^Z[Rt>>>16&255]^tt[wt>>>8&255]^mt[255&It]^nt[gt++],Jt=K[Rt>>>24]^Z[wt>>>16&255]^tt[It>>>8&255]^mt[255&Yt]^nt[gt++],Nt=K[wt>>>24]^Z[It>>>16&255]^tt[Yt>>>8&255]^mt[255&Rt]^nt[gt++],Vt=K[It>>>24]^Z[Yt>>>16&255]^tt[Rt>>>8&255]^mt[255&wt]^nt[gt++];Yt=Ht,Rt=Jt,wt=Nt,It=Vt}Ht=(lt[Yt>>>24]<<24|lt[Rt>>>16&255]<<16|lt[wt>>>8&255]<<8|lt[255&It])^nt[gt++],Jt=(lt[Rt>>>24]<<24|lt[wt>>>16&255]<<16|lt[It>>>8&255]<<8|lt[255&Yt])^nt[gt++],Nt=(lt[wt>>>24]<<24|lt[It>>>16&255]<<16|lt[Yt>>>8&255]<<8|lt[255&Rt])^nt[gt++],Vt=(lt[It>>>24]<<24|lt[Yt>>>16&255]<<16|lt[Rt>>>8&255]<<8|lt[255&wt])^nt[gt++],L[U]=Ht,L[U+1]=Jt,L[U+2]=Nt,L[U+3]=Vt},keySize:8});n.AES=u._createHelper(Y)}(),t.AES)},3057:function(ae,k,o){var n,l,u,a,D,E,d,g,f,v,V,B,Y,U,K,tt,mt,ft,Yt,t;ae.exports=(t=o(7585),o(7865),void(t.lib.Cipher||(l=t,u=l.lib,a=u.Base,D=u.WordArray,E=u.BufferedBlockAlgorithm,d=l.enc,g=d.Base64,f=l.algo.EvpKDF,v=u.Cipher=E.extend({cfg:a.extend(),createEncryptor:function(Rt,wt){return this.create(this._ENC_XFORM_MODE,Rt,wt)},createDecryptor:function(Rt,wt){return this.create(this._DEC_XFORM_MODE,Rt,wt)},init:function(Rt,wt,It){this.cfg=this.cfg.extend(It),this._xformMode=Rt,this._key=wt,this.reset()},reset:function(){E.reset.call(this),this._doReset()},process:function(Rt){return this._append(Rt),this._process()},finalize:function(Rt){return Rt&&this._append(Rt),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Rt(wt){return"string"==typeof wt?Yt:mt}return function(wt){return{encrypt:function(It,gt,te){return Rt(gt).encrypt(wt,It,gt,te)},decrypt:function(It,gt,te){return Rt(gt).decrypt(wt,It,gt,te)}}}}()}),u.StreamCipher=v.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),V=l.mode={},B=u.BlockCipherMode=a.extend({createEncryptor:function(Rt,wt){return this.Encryptor.create(Rt,wt)},createDecryptor:function(Rt,wt){return this.Decryptor.create(Rt,wt)},init:function(Rt,wt){this._cipher=Rt,this._iv=wt}}),Y=V.CBC=function(){var Rt=B.extend();function wt(It,gt,te){var Ht,Jt=this._iv;Jt?(Ht=Jt,this._iv=n):Ht=this._prevBlock;for(var Nt=0;Nt>>2]}},u.BlockCipher=v.extend({cfg:v.cfg.extend({mode:Y,padding:U}),reset:function(){var Rt;v.reset.call(this);var wt=this.cfg,It=wt.iv,gt=wt.mode;this._xformMode==this._ENC_XFORM_MODE?Rt=gt.createEncryptor:(Rt=gt.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Rt?this._mode.init(this,It&&It.words):(this._mode=Rt.call(gt,this,It&&It.words),this._mode.__creator=Rt)},_doProcessBlock:function(Rt,wt){this._mode.processBlock(Rt,wt)},_doFinalize:function(){var Rt,wt=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(wt.pad(this._data,this.blockSize),Rt=this._process(!0)):(Rt=this._process(!0),wt.unpad(Rt)),Rt},blockSize:4}),K=u.CipherParams=a.extend({init:function(Rt){this.mixIn(Rt)},toString:function(Rt){return(Rt||this.formatter).stringify(this)}}),tt=(l.format={}).OpenSSL={stringify:function(Rt){var It=Rt.ciphertext,gt=Rt.salt;return(gt?D.create([1398893684,1701076831]).concat(gt).concat(It):It).toString(g)},parse:function(Rt){var wt,It=g.parse(Rt),gt=It.words;return 1398893684==gt[0]&&1701076831==gt[1]&&(wt=D.create(gt.slice(2,4)),gt.splice(0,4),It.sigBytes-=16),K.create({ciphertext:It,salt:wt})}},mt=u.SerializableCipher=a.extend({cfg:a.extend({format:tt}),encrypt:function(Rt,wt,It,gt){gt=this.cfg.extend(gt);var te=Rt.createEncryptor(It,gt),Ht=te.finalize(wt),Jt=te.cfg;return K.create({ciphertext:Ht,key:It,iv:Jt.iv,algorithm:Rt,mode:Jt.mode,padding:Jt.padding,blockSize:Rt.blockSize,formatter:gt.format})},decrypt:function(Rt,wt,It,gt){return gt=this.cfg.extend(gt),wt=this._parse(wt,gt.format),Rt.createDecryptor(It,gt).finalize(wt.ciphertext)},_parse:function(Rt,wt){return"string"==typeof Rt?wt.parse(Rt,this):Rt}}),ft=(l.kdf={}).OpenSSL={execute:function(Rt,wt,It,gt){gt||(gt=D.random(8));var te=f.create({keySize:wt+It}).compute(Rt,gt),Ht=D.create(te.words.slice(wt),4*It);return te.sigBytes=4*wt,K.create({key:te,iv:Ht,salt:gt})}},Yt=u.PasswordBasedCipher=mt.extend({cfg:mt.cfg.extend({kdf:ft}),encrypt:function(Rt,wt,It,gt){var te=(gt=this.cfg.extend(gt)).kdf.execute(It,Rt.keySize,Rt.ivSize);gt.iv=te.iv;var Ht=mt.encrypt.call(this,Rt,wt,te.key,gt);return Ht.mixIn(te),Ht},decrypt:function(Rt,wt,It,gt){gt=this.cfg.extend(gt),wt=this._parse(wt,gt.format);var te=gt.kdf.execute(It,Rt.keySize,Rt.ivSize,wt.salt);return gt.iv=te.iv,mt.decrypt.call(this,Rt,wt,te.key,gt)}}))))},7585:function(ae,k,o){var t;ae.exports=(t=t||function(n,l){var u;if(typeof window<"u"&&window.crypto&&(u=window.crypto),typeof self<"u"&&self.crypto&&(u=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(u=globalThis.crypto),!u&&typeof window<"u"&&window.msCrypto&&(u=window.msCrypto),!u&&typeof global<"u"&&global.crypto&&(u=global.crypto),!u)try{u=o(2480)}catch{}var a=function(){if(u){if("function"==typeof u.getRandomValues)try{return u.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof u.randomBytes)try{return u.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},D=Object.create||function(){function L(){}return function(U){var nt;return L.prototype=U,nt=new L,L.prototype=null,nt}}(),E={},d=E.lib={},y=d.Base={extend:function(L){var U=D(this);return L&&U.mixIn(L),(!U.hasOwnProperty("init")||this.init===U.init)&&(U.init=function(){U.$super.init.apply(this,arguments)}),U.init.prototype=U,U.$super=this,U},create:function(){var L=this.extend();return L.init.apply(L,arguments),L},init:function(){},mixIn:function(L){for(var U in L)L.hasOwnProperty(U)&&(this[U]=L[U]);L.hasOwnProperty("toString")&&(this.toString=L.toString)},clone:function(){return this.init.prototype.extend(this)}},g=d.WordArray=y.extend({init:function(L,U){L=this.words=L||[],this.sigBytes=null!=U?U:4*L.length},toString:function(L){return(L||f).stringify(this)},concat:function(L){var U=this.words,nt=L.words,K=this.sigBytes,Z=L.sigBytes;if(this.clamp(),K%4)for(var tt=0;tt>>2]|=(nt[tt>>>2]>>>24-tt%4*8&255)<<24-(K+tt)%4*8;else for(var lt=0;lt>>2]=nt[lt>>>2];return this.sigBytes+=Z,this},clamp:function(){var L=this.words,U=this.sigBytes;L[U>>>2]&=4294967295<<32-U%4*8,L.length=n.ceil(U/4)},clone:function(){var L=y.clone.call(this);return L.words=this.words.slice(0),L},random:function(L){for(var U=[],nt=0;nt>>2]>>>24-Z%4*8&255;K.push((tt>>>4).toString(16)),K.push((15&tt).toString(16))}return K.join("")},parse:function(L){for(var U=L.length,nt=[],K=0;K>>3]|=parseInt(L.substr(K,2),16)<<24-K%8*4;return new g.init(nt,U/2)}},v=_.Latin1={stringify:function(L){for(var U=L.words,nt=L.sigBytes,K=[],Z=0;Z>>2]>>>24-Z%4*8&255));return K.join("")},parse:function(L){for(var U=L.length,nt=[],K=0;K>>2]|=(255&L.charCodeAt(K))<<24-K%4*8;return new g.init(nt,U)}},T=_.Utf8={stringify:function(L){try{return decodeURIComponent(escape(v.stringify(L)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(L){return v.parse(unescape(encodeURIComponent(L)))}},V=d.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(L){"string"==typeof L&&(L=T.parse(L)),this._data.concat(L),this._nDataBytes+=L.sigBytes},_process:function(L){var U,nt=this._data,K=nt.words,Z=nt.sigBytes,tt=this.blockSize,lt=Z/(4*tt),ft=(lt=L?n.ceil(lt):n.max((0|lt)-this._minBufferSize,0))*tt,Yt=n.min(4*ft,Z);if(ft){for(var Rt=0;Rt>>2]>>>24-v%4*8&255)<<16|(y[v+1>>>2]>>>24-(v+1)%4*8&255)<<8|y[v+2>>>2]>>>24-(v+2)%4*8&255,L=0;L<4&&v+.75*L>>6*(3-L)&63));var U=_.charAt(64);if(U)for(;f.length%4;)f.push(U);return f.join("")},parse:function(d){var y=d.length,g=this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var f=0;f>>6-v%4*2;_[f>>>2]|=(T|V)<<24-f%4*8,f++}return u.create(_,f)}(d,y,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64)},4410:function(ae,k,o){var t,u;ae.exports=(t=o(7585),u=t.lib.WordArray,t.enc.Base64url={stringify:function(d,y=!0){var g=d.words,_=d.sigBytes,f=y?this._safe_map:this._map;d.clamp();for(var v=[],T=0;T<_;T+=3)for(var L=(g[T>>>2]>>>24-T%4*8&255)<<16|(g[T+1>>>2]>>>24-(T+1)%4*8&255)<<8|g[T+2>>>2]>>>24-(T+2)%4*8&255,U=0;U<4&&T+.75*U<_;U++)v.push(f.charAt(L>>>6*(3-U)&63));var nt=f.charAt(64);if(nt)for(;v.length%4;)v.push(nt);return v.join("")},parse:function(d,y=!0){var g=d.length,_=y?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var v=0;v<_.length;v++)f[_.charCodeAt(v)]=v}var T=_.charAt(64);if(T){var V=d.indexOf(T);-1!==V&&(g=V)}return function E(d,y,g){for(var _=[],f=0,v=0;v>>6-v%4*2;_[f>>>2]|=(T|V)<<24-f%4*8,f++}return u.create(_,f)}(d,g,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},t.enc.Base64url)},9012:function(ae,k,o){var t;ae.exports=(t=o(7585),function(){var u=t.lib.WordArray,a=t.enc;function E(d){return d<<8&4278255360|d>>>8&16711935}a.Utf16=a.Utf16BE={stringify:function(d){for(var y=d.words,g=d.sigBytes,_=[],f=0;f>>2]>>>16-f%4*8&65535));return _.join("")},parse:function(d){for(var y=d.length,g=[],_=0;_>>1]|=d.charCodeAt(_)<<16-_%2*16;return u.create(g,2*y)}},a.Utf16LE={stringify:function(d){for(var y=d.words,g=d.sigBytes,_=[],f=0;f>>2]>>>16-f%4*8&65535);_.push(String.fromCharCode(v))}return _.join("")},parse:function(d){for(var y=d.length,g=[],_=0;_>>1]|=E(d.charCodeAt(_)<<16-_%2*16);return u.create(g,2*y)}}}(),t.enc.Utf16)},7865:function(ae,k,o){var n,l,u,a,D,d,t;ae.exports=(t=o(7585),o(5162),o(3764),a=(l=(n=t).lib).WordArray,d=(D=n.algo).EvpKDF=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:D.MD5,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,g){for(var _,f=this.cfg,v=f.hasher.create(),T=a.create(),V=T.words,B=f.keySize,Y=f.iterations;V.lengthf&&(g=y.finalize(g)),g.clamp();for(var v=this._oKey=g.clone(),T=this._iKey=g.clone(),V=v.words,B=T.words,Y=0;Y<_;Y++)V[Y]^=1549556828,B[Y]^=909522486;v.sigBytes=T.sigBytes=f,this.reset()},reset:function(){var y=this._hasher;y.reset(),y.update(this._iKey)},update:function(y){return this._hasher.update(y),this},finalize:function(y){var g=this._hasher,_=g.finalize(y);return g.reset(),g.finalize(this._oKey.clone().concat(_))}})))},7206:function(ae,k,o){var t;ae.exports=(t=o(7585),o(401),o(7412),o(9012),o(8319),o(4410),o(9493),o(5162),o(1817),o(8769),o(3351),o(6787),o(1971),o(4973),o(3764),o(8812),o(7865),o(3057),o(4424),o(6635),o(3592),o(9354),o(7934),o(4413),o(4630),o(187),o(1691),o(3237),o(1847),o(7466),o(7243),o(486),o(8182),o(3544),t)},7412:function(ae,k,o){var t;ae.exports=(t=o(7585),function(){if("function"==typeof ArrayBuffer){var u=t.lib.WordArray,a=u.init,D=u.init=function(E){if(E instanceof ArrayBuffer&&(E=new Uint8Array(E)),(E instanceof Int8Array||typeof Uint8ClampedArray<"u"&&E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array)&&(E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength)),E instanceof Uint8Array){for(var d=E.byteLength,y=[],g=0;g>>2]|=E[g]<<24-g%4*8;a.call(this,y,d)}else a.apply(this,arguments)};D.prototype=u}}(),t.lib.WordArray)},9493:function(ae,k,o){var t;ae.exports=(t=o(7585),function(n){var l=t,u=l.lib,a=u.WordArray,D=u.Hasher,E=l.algo,d=[];!function(){for(var T=0;T<64;T++)d[T]=4294967296*n.abs(n.sin(T+1))|0}();var y=E.MD5=D.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,V){for(var B=0;B<16;B++){var Y=V+B,L=T[Y];T[Y]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}var U=this._hash.words,nt=T[V+0],K=T[V+1],Z=T[V+2],tt=T[V+3],mt=T[V+4],lt=T[V+5],ft=T[V+6],Yt=T[V+7],Rt=T[V+8],wt=T[V+9],It=T[V+10],gt=T[V+11],te=T[V+12],Ht=T[V+13],Jt=T[V+14],Nt=T[V+15],Vt=U[0],xt=U[1],zt=U[2],P=U[3];Vt=g(Vt,xt,zt,P,nt,7,d[0]),P=g(P,Vt,xt,zt,K,12,d[1]),zt=g(zt,P,Vt,xt,Z,17,d[2]),xt=g(xt,zt,P,Vt,tt,22,d[3]),Vt=g(Vt,xt,zt,P,mt,7,d[4]),P=g(P,Vt,xt,zt,lt,12,d[5]),zt=g(zt,P,Vt,xt,ft,17,d[6]),xt=g(xt,zt,P,Vt,Yt,22,d[7]),Vt=g(Vt,xt,zt,P,Rt,7,d[8]),P=g(P,Vt,xt,zt,wt,12,d[9]),zt=g(zt,P,Vt,xt,It,17,d[10]),xt=g(xt,zt,P,Vt,gt,22,d[11]),Vt=g(Vt,xt,zt,P,te,7,d[12]),P=g(P,Vt,xt,zt,Ht,12,d[13]),zt=g(zt,P,Vt,xt,Jt,17,d[14]),Vt=_(Vt,xt=g(xt,zt,P,Vt,Nt,22,d[15]),zt,P,K,5,d[16]),P=_(P,Vt,xt,zt,ft,9,d[17]),zt=_(zt,P,Vt,xt,gt,14,d[18]),xt=_(xt,zt,P,Vt,nt,20,d[19]),Vt=_(Vt,xt,zt,P,lt,5,d[20]),P=_(P,Vt,xt,zt,It,9,d[21]),zt=_(zt,P,Vt,xt,Nt,14,d[22]),xt=_(xt,zt,P,Vt,mt,20,d[23]),Vt=_(Vt,xt,zt,P,wt,5,d[24]),P=_(P,Vt,xt,zt,Jt,9,d[25]),zt=_(zt,P,Vt,xt,tt,14,d[26]),xt=_(xt,zt,P,Vt,Rt,20,d[27]),Vt=_(Vt,xt,zt,P,Ht,5,d[28]),P=_(P,Vt,xt,zt,Z,9,d[29]),zt=_(zt,P,Vt,xt,Yt,14,d[30]),Vt=f(Vt,xt=_(xt,zt,P,Vt,te,20,d[31]),zt,P,lt,4,d[32]),P=f(P,Vt,xt,zt,Rt,11,d[33]),zt=f(zt,P,Vt,xt,gt,16,d[34]),xt=f(xt,zt,P,Vt,Jt,23,d[35]),Vt=f(Vt,xt,zt,P,K,4,d[36]),P=f(P,Vt,xt,zt,mt,11,d[37]),zt=f(zt,P,Vt,xt,Yt,16,d[38]),xt=f(xt,zt,P,Vt,It,23,d[39]),Vt=f(Vt,xt,zt,P,Ht,4,d[40]),P=f(P,Vt,xt,zt,nt,11,d[41]),zt=f(zt,P,Vt,xt,tt,16,d[42]),xt=f(xt,zt,P,Vt,ft,23,d[43]),Vt=f(Vt,xt,zt,P,wt,4,d[44]),P=f(P,Vt,xt,zt,te,11,d[45]),zt=f(zt,P,Vt,xt,Nt,16,d[46]),Vt=v(Vt,xt=f(xt,zt,P,Vt,Z,23,d[47]),zt,P,nt,6,d[48]),P=v(P,Vt,xt,zt,Yt,10,d[49]),zt=v(zt,P,Vt,xt,Jt,15,d[50]),xt=v(xt,zt,P,Vt,lt,21,d[51]),Vt=v(Vt,xt,zt,P,te,6,d[52]),P=v(P,Vt,xt,zt,tt,10,d[53]),zt=v(zt,P,Vt,xt,It,15,d[54]),xt=v(xt,zt,P,Vt,K,21,d[55]),Vt=v(Vt,xt,zt,P,Rt,6,d[56]),P=v(P,Vt,xt,zt,Nt,10,d[57]),zt=v(zt,P,Vt,xt,ft,15,d[58]),xt=v(xt,zt,P,Vt,Ht,21,d[59]),Vt=v(Vt,xt,zt,P,mt,6,d[60]),P=v(P,Vt,xt,zt,gt,10,d[61]),zt=v(zt,P,Vt,xt,Z,15,d[62]),xt=v(xt,zt,P,Vt,wt,21,d[63]),U[0]=U[0]+Vt|0,U[1]=U[1]+xt|0,U[2]=U[2]+zt|0,U[3]=U[3]+P|0},_doFinalize:function(){var T=this._data,V=T.words,B=8*this._nDataBytes,Y=8*T.sigBytes;V[Y>>>5]|=128<<24-Y%32;var L=n.floor(B/4294967296),U=B;V[15+(Y+64>>>9<<4)]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),V[14+(Y+64>>>9<<4)]=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),T.sigBytes=4*(V.length+1),this._process();for(var nt=this._hash,K=nt.words,Z=0;Z<4;Z++){var tt=K[Z];K[Z]=16711935&(tt<<8|tt>>>24)|4278255360&(tt<<24|tt>>>8)}return nt},clone:function(){var T=D.clone.call(this);return T._hash=this._hash.clone(),T}});function g(T,V,B,Y,L,U,nt){var K=T+(V&B|~V&Y)+L+nt;return(K<>>32-U)+V}function _(T,V,B,Y,L,U,nt){var K=T+(V&Y|B&~Y)+L+nt;return(K<>>32-U)+V}function f(T,V,B,Y,L,U,nt){var K=T+(V^B^Y)+L+nt;return(K<>>32-U)+V}function v(T,V,B,Y,L,U,nt){var K=T+(B^(V|~Y))+L+nt;return(K<>>32-U)+V}l.MD5=D._createHelper(y),l.HmacMD5=D._createHmacHelper(y)}(Math),t.MD5)},4424:function(ae,k,o){var t;ae.exports=(t=o(7585),o(3057),t.mode.CFB=function(){var n=t.lib.BlockCipherMode.extend();function l(u,a,D,E){var d,y=this._iv;y?(d=y.slice(0),this._iv=void 0):d=this._prevBlock,E.encryptBlock(d,0);for(var g=0;g>24&255)){var E=D>>16&255,d=D>>8&255,y=255&D;255===E?(E=0,255===d?(d=0,255===y?y=0:++y):++d):++E,D=0,D+=E<<16,D+=d<<8,D+=y}else D+=1<<24;return D}var a=n.Encryptor=n.extend({processBlock:function(D,E){var d=this._cipher,y=d.blockSize,g=this._iv,_=this._counter;g&&(_=this._counter=g.slice(0),this._iv=void 0),function u(D){return 0===(D[0]=l(D[0]))&&(D[1]=l(D[1])),D}(_);var f=_.slice(0);d.encryptBlock(f,0);for(var v=0;v>>2]|=D<<24-E%4*8,n.sigBytes+=D},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},t.pad.Ansix923)},4630:function(ae,k,o){var t;ae.exports=(t=o(7585),o(3057),t.pad.Iso10126={pad:function(n,l){var u=4*l,a=u-n.sigBytes%u;n.concat(t.lib.WordArray.random(a-1)).concat(t.lib.WordArray.create([a<<24],1))},unpad:function(n){n.sigBytes-=255&n.words[n.sigBytes-1>>>2]}},t.pad.Iso10126)},187:function(ae,k,o){var t;ae.exports=(t=o(7585),o(3057),t.pad.Iso97971={pad:function(n,l){n.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(n,l)},unpad:function(n){t.pad.ZeroPadding.unpad(n),n.sigBytes--}},t.pad.Iso97971)},3237:function(ae,k,o){var t;ae.exports=(t=o(7585),o(3057),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)},1691:function(ae,k,o){var t;ae.exports=(t=o(7585),o(3057),t.pad.ZeroPadding={pad:function(n,l){var u=4*l;n.clamp(),n.sigBytes+=u-(n.sigBytes%u||u)},unpad:function(n){var l=n.words,u=n.sigBytes-1;for(u=n.sigBytes-1;u>=0;u--)if(l[u>>>2]>>>24-u%4*8&255){n.sigBytes=u+1;break}}},t.pad.ZeroPadding)},8812:function(ae,k,o){var n,l,u,a,D,d,y,t;ae.exports=(t=o(7585),o(5162),o(3764),a=(l=(n=t).lib).WordArray,d=(D=n.algo).HMAC,y=D.PBKDF2=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:D.SHA1,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,_){for(var f=this.cfg,v=d.create(f.hasher,g),T=a.create(),V=a.create([1]),B=T.words,Y=V.words,L=f.keySize,U=f.iterations;B.length>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],T=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];this._b=0;for(var V=0;V<4;V++)g.call(this);for(V=0;V<8;V++)T[V]^=v[V+4&7];if(f){var B=f.words,Y=B[0],L=B[1],U=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),nt=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),K=U>>>16|4294901760&nt,Z=nt<<16|65535&U;for(T[0]^=U,T[1]^=K,T[2]^=nt,T[3]^=Z,T[4]^=U,T[5]^=K,T[6]^=nt,T[7]^=Z,V=0;V<4;V++)g.call(this)}},_doProcessBlock:function(_,f){var v=this._X;g.call(this),D[0]=v[0]^v[5]>>>16^v[3]<<16,D[1]=v[2]^v[7]>>>16^v[5]<<16,D[2]=v[4]^v[1]>>>16^v[7]<<16,D[3]=v[6]^v[3]>>>16^v[1]<<16;for(var T=0;T<4;T++)D[T]=16711935&(D[T]<<8|D[T]>>>24)|4278255360&(D[T]<<24|D[T]>>>8),_[f+T]^=D[T]},blockSize:4,ivSize:2});function g(){for(var _=this._X,f=this._C,v=0;v<8;v++)E[v]=f[v];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,v=0;v<8;v++){var T=_[v]+f[v],V=65535&T,B=T>>>16;d[v]=((V*V>>>17)+V*B>>>15)+B*B^((4294901760&T)*T|0)+((65535&T)*T|0)}_[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,_[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,_[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,_[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,_[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,_[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,_[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,_[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}n.RabbitLegacy=u._createHelper(y)}(),t.RabbitLegacy)},8182:function(ae,k,o){var t;ae.exports=(t=o(7585),o(8319),o(9493),o(7865),o(3057),function(){var n=t,u=n.lib.StreamCipher,D=[],E=[],d=[],y=n.algo.Rabbit=u.extend({_doReset:function(){for(var _=this._key.words,f=this.cfg.iv,v=0;v<4;v++)_[v]=16711935&(_[v]<<8|_[v]>>>24)|4278255360&(_[v]<<24|_[v]>>>8);var T=this._X=[_[0],_[3]<<16|_[2]>>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],V=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];for(this._b=0,v=0;v<4;v++)g.call(this);for(v=0;v<8;v++)V[v]^=T[v+4&7];if(f){var B=f.words,Y=B[0],L=B[1],U=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),nt=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8),K=U>>>16|4294901760&nt,Z=nt<<16|65535&U;for(V[0]^=U,V[1]^=K,V[2]^=nt,V[3]^=Z,V[4]^=U,V[5]^=K,V[6]^=nt,V[7]^=Z,v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(_,f){var v=this._X;g.call(this),D[0]=v[0]^v[5]>>>16^v[3]<<16,D[1]=v[2]^v[7]>>>16^v[5]<<16,D[2]=v[4]^v[1]>>>16^v[7]<<16,D[3]=v[6]^v[3]>>>16^v[1]<<16;for(var T=0;T<4;T++)D[T]=16711935&(D[T]<<8|D[T]>>>24)|4278255360&(D[T]<<24|D[T]>>>8),_[f+T]^=D[T]},blockSize:4,ivSize:2});function g(){for(var _=this._X,f=this._C,v=0;v<8;v++)E[v]=f[v];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,v=0;v<8;v++){var T=_[v]+f[v],V=65535&T,B=T>>>16;d[v]=((V*V>>>17)+V*B>>>15)+B*B^((4294901760&T)*T|0)+((65535&T)*T|0)}_[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,_[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,_[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,_[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,_[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,_[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,_[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,_[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}n.Rabbit=u._createHelper(y)}(),t.Rabbit)},486:function(ae,k,o){var t;ae.exports=(t=o(7585),o(8319),o(9493),o(7865),o(3057),function(){var n=t,u=n.lib.StreamCipher,a=n.algo,D=a.RC4=u.extend({_doReset:function(){for(var y=this._key,g=y.words,_=y.sigBytes,f=this._S=[],v=0;v<256;v++)f[v]=v;v=0;for(var T=0;v<256;v++){var V=v%_,Y=f[v];f[v]=f[T=(T+f[v]+(g[V>>>2]>>>24-V%4*8&255))%256],f[T]=Y}this._i=this._j=0},_doProcessBlock:function(y,g){y[g]^=E.call(this)},keySize:8,ivSize:0});function E(){for(var y=this._S,g=this._i,_=this._j,f=0,v=0;v<4;v++){var T=y[g=(g+1)%256];y[g]=y[_=(_+y[g])%256],y[_]=T,f|=y[(y[g]+y[_])%256]<<24-8*v}return this._i=g,this._j=_,f}n.RC4=u._createHelper(D);var d=a.RC4Drop=D.extend({cfg:D.cfg.extend({drop:192}),_doReset:function(){D._doReset.call(this);for(var y=this.cfg.drop;y>0;y--)E.call(this)}});n.RC4Drop=u._createHelper(d)}(),t.RC4)},4973:function(ae,k,o){var t;ae.exports=(t=o(7585),function(n){var l=t,u=l.lib,a=u.WordArray,D=u.Hasher,E=l.algo,d=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),y=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=a.create([0,1518500249,1859775393,2400959708,2840853838]),v=a.create([1352829926,1548603684,1836072691,2053994217,0]),T=E.RIPEMD160=D.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(K,Z){for(var tt=0;tt<16;tt++){var mt=Z+tt,lt=K[mt];K[mt]=16711935&(lt<<8|lt>>>24)|4278255360&(lt<<24|lt>>>8)}var Ht,Jt,Nt,Vt,xt,zt,P,Lt,vt,Wt,Ut,ft=this._hash.words,Yt=f.words,Rt=v.words,wt=d.words,It=y.words,gt=g.words,te=_.words;for(zt=Ht=ft[0],P=Jt=ft[1],Lt=Nt=ft[2],vt=Vt=ft[3],Wt=xt=ft[4],tt=0;tt<80;tt+=1)Ut=Ht+K[Z+wt[tt]]|0,Ut+=tt<16?V(Jt,Nt,Vt)+Yt[0]:tt<32?B(Jt,Nt,Vt)+Yt[1]:tt<48?Y(Jt,Nt,Vt)+Yt[2]:tt<64?L(Jt,Nt,Vt)+Yt[3]:U(Jt,Nt,Vt)+Yt[4],Ut=(Ut=nt(Ut|=0,gt[tt]))+xt|0,Ht=xt,xt=Vt,Vt=nt(Nt,10),Nt=Jt,Jt=Ut,Ut=zt+K[Z+It[tt]]|0,Ut+=tt<16?U(P,Lt,vt)+Rt[0]:tt<32?L(P,Lt,vt)+Rt[1]:tt<48?Y(P,Lt,vt)+Rt[2]:tt<64?B(P,Lt,vt)+Rt[3]:V(P,Lt,vt)+Rt[4],Ut=(Ut=nt(Ut|=0,te[tt]))+Wt|0,zt=Wt,Wt=vt,vt=nt(Lt,10),Lt=P,P=Ut;Ut=ft[1]+Nt+vt|0,ft[1]=ft[2]+Vt+Wt|0,ft[2]=ft[3]+xt+zt|0,ft[3]=ft[4]+Ht+P|0,ft[4]=ft[0]+Jt+Lt|0,ft[0]=Ut},_doFinalize:function(){var K=this._data,Z=K.words,tt=8*this._nDataBytes,mt=8*K.sigBytes;Z[mt>>>5]|=128<<24-mt%32,Z[14+(mt+64>>>9<<4)]=16711935&(tt<<8|tt>>>24)|4278255360&(tt<<24|tt>>>8),K.sigBytes=4*(Z.length+1),this._process();for(var lt=this._hash,ft=lt.words,Yt=0;Yt<5;Yt++){var Rt=ft[Yt];ft[Yt]=16711935&(Rt<<8|Rt>>>24)|4278255360&(Rt<<24|Rt>>>8)}return lt},clone:function(){var K=D.clone.call(this);return K._hash=this._hash.clone(),K}});function V(K,Z,tt){return K^Z^tt}function B(K,Z,tt){return K&Z|~K&tt}function Y(K,Z,tt){return(K|~Z)^tt}function L(K,Z,tt){return K&tt|Z&~tt}function U(K,Z,tt){return K^(Z|~tt)}function nt(K,Z){return K<>>32-Z}l.RIPEMD160=D._createHelper(T),l.HmacRIPEMD160=D._createHmacHelper(T)}(Math),t.RIPEMD160)},5162:function(ae,k,o){var n,l,u,a,E,d,t;ae.exports=(t=o(7585),u=(l=(n=t).lib).WordArray,E=[],d=n.algo.SHA1=(a=l.Hasher).extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,g){for(var _=this._hash.words,f=_[0],v=_[1],T=_[2],V=_[3],B=_[4],Y=0;Y<80;Y++){if(Y<16)E[Y]=0|y[g+Y];else{var L=E[Y-3]^E[Y-8]^E[Y-14]^E[Y-16];E[Y]=L<<1|L>>>31}var U=(f<<5|f>>>27)+B+E[Y];U+=Y<20?1518500249+(v&T|~v&V):Y<40?1859775393+(v^T^V):Y<60?(v&T|v&V|T&V)-1894007588:(v^T^V)-899497514,B=V,V=T,T=v<<30|v>>>2,v=f,f=U}_[0]=_[0]+f|0,_[1]=_[1]+v|0,_[2]=_[2]+T|0,_[3]=_[3]+V|0,_[4]=_[4]+B|0},_doFinalize:function(){var y=this._data,g=y.words,_=8*this._nDataBytes,f=8*y.sigBytes;return g[f>>>5]|=128<<24-f%32,g[14+(f+64>>>9<<4)]=Math.floor(_/4294967296),g[15+(f+64>>>9<<4)]=_,y.sigBytes=4*g.length,this._process(),this._hash},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}}),n.SHA1=a._createHelper(d),n.HmacSHA1=a._createHmacHelper(d),t.SHA1)},8769:function(ae,k,o){var n,u,a,D,E,t;ae.exports=(t=o(7585),o(1817),u=(n=t).lib.WordArray,E=(a=n.algo).SHA224=(D=a.SHA256).extend({_doReset:function(){this._hash=new u.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=D._doFinalize.call(this);return d.sigBytes-=4,d}}),n.SHA224=D._createHelper(E),n.HmacSHA224=D._createHmacHelper(E),t.SHA224)},1817:function(ae,k,o){var t;ae.exports=(t=o(7585),function(n){var l=t,u=l.lib,a=u.WordArray,D=u.Hasher,E=l.algo,d=[],y=[];!function(){function f(B){for(var Y=n.sqrt(B),L=2;L<=Y;L++)if(!(B%L))return!1;return!0}function v(B){return 4294967296*(B-(0|B))|0}for(var T=2,V=0;V<64;)f(T)&&(V<8&&(d[V]=v(n.pow(T,.5))),y[V]=v(n.pow(T,1/3)),V++),T++}();var g=[],_=E.SHA256=D.extend({_doReset:function(){this._hash=new a.init(d.slice(0))},_doProcessBlock:function(f,v){for(var T=this._hash.words,V=T[0],B=T[1],Y=T[2],L=T[3],U=T[4],nt=T[5],K=T[6],Z=T[7],tt=0;tt<64;tt++){if(tt<16)g[tt]=0|f[v+tt];else{var mt=g[tt-15],ft=g[tt-2];g[tt]=((mt<<25|mt>>>7)^(mt<<14|mt>>>18)^mt>>>3)+g[tt-7]+((ft<<15|ft>>>17)^(ft<<13|ft>>>19)^ft>>>10)+g[tt-16]}var wt=V&B^V&Y^B&Y,te=Z+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&nt^~U&K)+y[tt]+g[tt];Z=K,K=nt,nt=U,U=L+te|0,L=Y,Y=B,B=V,V=te+(((V<<30|V>>>2)^(V<<19|V>>>13)^(V<<10|V>>>22))+wt)|0}T[0]=T[0]+V|0,T[1]=T[1]+B|0,T[2]=T[2]+Y|0,T[3]=T[3]+L|0,T[4]=T[4]+U|0,T[5]=T[5]+nt|0,T[6]=T[6]+K|0,T[7]=T[7]+Z|0},_doFinalize:function(){var f=this._data,v=f.words,T=8*this._nDataBytes,V=8*f.sigBytes;return v[V>>>5]|=128<<24-V%32,v[14+(V+64>>>9<<4)]=n.floor(T/4294967296),v[15+(V+64>>>9<<4)]=T,f.sigBytes=4*v.length,this._process(),this._hash},clone:function(){var f=D.clone.call(this);return f._hash=this._hash.clone(),f}});l.SHA256=D._createHelper(_),l.HmacSHA256=D._createHmacHelper(_)}(Math),t.SHA256)},1971:function(ae,k,o){var t;ae.exports=(t=o(7585),o(401),function(n){var l=t,u=l.lib,a=u.WordArray,D=u.Hasher,d=l.x64.Word,y=l.algo,g=[],_=[],f=[];!function(){for(var V=1,B=0,Y=0;Y<24;Y++){g[V+5*B]=(Y+1)*(Y+2)/2%64;var U=(2*V+3*B)%5;V=B%5,B=U}for(V=0;V<5;V++)for(B=0;B<5;B++)_[V+5*B]=B+(2*V+3*B)%5*5;for(var nt=1,K=0;K<24;K++){for(var Z=0,tt=0,mt=0;mt<7;mt++){if(1&nt){var lt=(1<>>24)|4278255360&(nt<<24|nt>>>8),(Z=Y[U]).high^=K=16711935&(K<<8|K>>>24)|4278255360&(K<<24|K>>>8),Z.low^=nt}for(var tt=0;tt<24;tt++){for(var mt=0;mt<5;mt++){for(var lt=0,ft=0,Yt=0;Yt<5;Yt++)lt^=(Z=Y[mt+5*Yt]).high,ft^=Z.low;var Rt=v[mt];Rt.high=lt,Rt.low=ft}for(mt=0;mt<5;mt++){var wt=v[(mt+4)%5],It=v[(mt+1)%5],gt=It.high,te=It.low;for(lt=wt.high^(gt<<1|te>>>31),ft=wt.low^(te<<1|gt>>>31),Yt=0;Yt<5;Yt++)(Z=Y[mt+5*Yt]).high^=lt,Z.low^=ft}for(var Ht=1;Ht<25;Ht++){var Jt=(Z=Y[Ht]).high,Nt=Z.low,Vt=g[Ht];Vt<32?(lt=Jt<>>32-Vt,ft=Nt<>>32-Vt):(lt=Nt<>>64-Vt,ft=Jt<>>64-Vt);var xt=v[_[Ht]];xt.high=lt,xt.low=ft}var zt=v[0],P=Y[0];for(zt.high=P.high,zt.low=P.low,mt=0;mt<5;mt++)for(Yt=0;Yt<5;Yt++){var Lt=v[Ht=mt+5*Yt],vt=v[(mt+1)%5+5*Yt],Wt=v[(mt+2)%5+5*Yt];(Z=Y[Ht]).high=Lt.high^~vt.high&Wt.high,Z.low=Lt.low^~vt.low&Wt.low}var Z,Ut=f[tt];(Z=Y[0]).high^=Ut.high,Z.low^=Ut.low}},_doFinalize:function(){var V=this._data,B=V.words,L=8*V.sigBytes,U=32*this.blockSize;B[L>>>5]|=1<<24-L%32,B[(n.ceil((L+1)/U)*U>>>5)-1]|=128,V.sigBytes=4*B.length,this._process();for(var nt=this._state,K=this.cfg.outputLength/8,Z=K/8,tt=[],mt=0;mt>>24)|4278255360&(ft<<24|ft>>>8),tt.push(Yt=16711935&(Yt<<8|Yt>>>24)|4278255360&(Yt<<24|Yt>>>8)),tt.push(ft)}return new a.init(tt,K)},clone:function(){for(var V=D.clone.call(this),B=V._state=this._state.slice(0),Y=0;Y<25;Y++)B[Y]=B[Y].clone();return V}});l.SHA3=D._createHelper(T),l.HmacSHA3=D._createHmacHelper(T)}(Math),t.SHA3)},6787:function(ae,k,o){var n,l,u,a,D,E,d,t;ae.exports=(t=o(7585),o(401),o(3351),u=(l=(n=t).x64).Word,a=l.WordArray,d=(D=n.algo).SHA384=(E=D.SHA512).extend({_doReset:function(){this._hash=new a.init([new u.init(3418070365,3238371032),new u.init(1654270250,914150663),new u.init(2438529370,812702999),new u.init(355462360,4144912697),new u.init(1731405415,4290775857),new u.init(2394180231,1750603025),new u.init(3675008525,1694076839),new u.init(1203062813,3204075428)])},_doFinalize:function(){var y=E._doFinalize.call(this);return y.sigBytes-=16,y}}),n.SHA384=E._createHelper(d),n.HmacSHA384=E._createHmacHelper(d),t.SHA384)},3351:function(ae,k,o){var t;ae.exports=(t=o(7585),o(401),function(){var n=t,u=n.lib.Hasher,a=n.x64,D=a.Word,E=a.WordArray,d=n.algo;function y(){return D.create.apply(D,arguments)}var g=[y(1116352408,3609767458),y(1899447441,602891725),y(3049323471,3964484399),y(3921009573,2173295548),y(961987163,4081628472),y(1508970993,3053834265),y(2453635748,2937671579),y(2870763221,3664609560),y(3624381080,2734883394),y(310598401,1164996542),y(607225278,1323610764),y(1426881987,3590304994),y(1925078388,4068182383),y(2162078206,991336113),y(2614888103,633803317),y(3248222580,3479774868),y(3835390401,2666613458),y(4022224774,944711139),y(264347078,2341262773),y(604807628,2007800933),y(770255983,1495990901),y(1249150122,1856431235),y(1555081692,3175218132),y(1996064986,2198950837),y(2554220882,3999719339),y(2821834349,766784016),y(2952996808,2566594879),y(3210313671,3203337956),y(3336571891,1034457026),y(3584528711,2466948901),y(113926993,3758326383),y(338241895,168717936),y(666307205,1188179964),y(773529912,1546045734),y(1294757372,1522805485),y(1396182291,2643833823),y(1695183700,2343527390),y(1986661051,1014477480),y(2177026350,1206759142),y(2456956037,344077627),y(2730485921,1290863460),y(2820302411,3158454273),y(3259730800,3505952657),y(3345764771,106217008),y(3516065817,3606008344),y(3600352804,1432725776),y(4094571909,1467031594),y(275423344,851169720),y(430227734,3100823752),y(506948616,1363258195),y(659060556,3750685593),y(883997877,3785050280),y(958139571,3318307427),y(1322822218,3812723403),y(1537002063,2003034995),y(1747873779,3602036899),y(1955562222,1575990012),y(2024104815,1125592928),y(2227730452,2716904306),y(2361852424,442776044),y(2428436474,593698344),y(2756734187,3733110249),y(3204031479,2999351573),y(3329325298,3815920427),y(3391569614,3928383900),y(3515267271,566280711),y(3940187606,3454069534),y(4118630271,4000239992),y(116418474,1914138554),y(174292421,2731055270),y(289380356,3203993006),y(460393269,320620315),y(685471733,587496836),y(852142971,1086792851),y(1017036298,365543100),y(1126000580,2618297676),y(1288033470,3409855158),y(1501505948,4234509866),y(1607167915,987167468),y(1816402316,1246189591)],_=[];!function(){for(var v=0;v<80;v++)_[v]=y()}();var f=d.SHA512=u.extend({_doReset:function(){this._hash=new E.init([new D.init(1779033703,4089235720),new D.init(3144134277,2227873595),new D.init(1013904242,4271175723),new D.init(2773480762,1595750129),new D.init(1359893119,2917565137),new D.init(2600822924,725511199),new D.init(528734635,4215389547),new D.init(1541459225,327033209)])},_doProcessBlock:function(v,T){for(var V=this._hash.words,B=V[0],Y=V[1],L=V[2],U=V[3],nt=V[4],K=V[5],Z=V[6],tt=V[7],mt=B.high,lt=B.low,ft=Y.high,Yt=Y.low,Rt=L.high,wt=L.low,It=U.high,gt=U.low,te=nt.high,Ht=nt.low,Jt=K.high,Nt=K.low,Vt=Z.high,xt=Z.low,zt=tt.high,P=tt.low,Lt=mt,vt=lt,Wt=ft,Ut=Yt,he=Rt,we=wt,ve=It,rt=gt,ot=te,_t=Ht,le=Jt,De=Nt,Be=Vt,se=xt,Pe=zt,Ne=P,Ce=0;Ce<80;Ce++){var ne,st,at=_[Ce];if(Ce<16)st=at.high=0|v[T+2*Ce],ne=at.low=0|v[T+2*Ce+1];else{var Ft=_[Ce-15],xe=Ft.high,je=Ft.low,ct=(je>>>1|xe<<31)^(je>>>8|xe<<24)^(je>>>7|xe<<25),H=_[Ce-2],C=H.high,ut=H.low,Bt=(ut>>>19|C<<13)^(ut<<3|C>>>29)^(ut>>>6|C<<26),Ae=_[Ce-7],$e=_[Ce-16],mi=$e.low;at.high=st=(st=(st=((xe>>>1|je<<31)^(xe>>>8|je<<24)^xe>>>7)+Ae.high+((ne=ct+Ae.low)>>>0>>0?1:0))+((C>>>19|ut<<13)^(C<<3|ut>>>29)^C>>>6)+((ne+=Bt)>>>0>>0?1:0))+$e.high+((ne+=mi)>>>0>>0?1:0),at.low=ne}var Ee,ki=ot&le^~ot&Be,Ri=_t&De^~_t&se,fe=Lt&Wt^Lt&he^Wt&he,z=(vt>>>28|Lt<<4)^(vt<<30|Lt>>>2)^(vt<<25|Lt>>>7),ge=g[Ce],di=ge.low,Ve=Pe+((ot>>>14|_t<<18)^(ot>>>18|_t<<14)^(ot<<23|_t>>>9))+((Ee=Ne+((_t>>>14|ot<<18)^(_t>>>18|ot<<14)^(_t<<23|ot>>>9)))>>>0>>0?1:0),X=z+(vt&Ut^vt&we^Ut&we);Pe=Be,Ne=se,Be=le,se=De,le=ot,De=_t,ot=ve+(Ve=(Ve=(Ve=Ve+ki+((Ee+=Ri)>>>0>>0?1:0))+ge.high+((Ee+=di)>>>0>>0?1:0))+st+((Ee+=ne)>>>0>>0?1:0))+((_t=rt+Ee|0)>>>0>>0?1:0)|0,ve=he,rt=we,he=Wt,we=Ut,Wt=Lt,Ut=vt,Lt=Ve+(((Lt>>>28|vt<<4)^(Lt<<30|vt>>>2)^(Lt<<25|vt>>>7))+fe+(X>>>0>>0?1:0))+((vt=Ee+X|0)>>>0>>0?1:0)|0}lt=B.low=lt+vt,B.high=mt+Lt+(lt>>>0>>0?1:0),Yt=Y.low=Yt+Ut,Y.high=ft+Wt+(Yt>>>0>>0?1:0),wt=L.low=wt+we,L.high=Rt+he+(wt>>>0>>0?1:0),gt=U.low=gt+rt,U.high=It+ve+(gt>>>0>>0?1:0),Ht=nt.low=Ht+_t,nt.high=te+ot+(Ht>>>0<_t>>>0?1:0),Nt=K.low=Nt+De,K.high=Jt+le+(Nt>>>0>>0?1:0),xt=Z.low=xt+se,Z.high=Vt+Be+(xt>>>0>>0?1:0),P=tt.low=P+Ne,tt.high=zt+Pe+(P>>>0>>0?1:0)},_doFinalize:function(){var v=this._data,T=v.words,V=8*this._nDataBytes,B=8*v.sigBytes;return T[B>>>5]|=128<<24-B%32,T[30+(B+128>>>10<<5)]=Math.floor(V/4294967296),T[31+(B+128>>>10<<5)]=V,v.sigBytes=4*T.length,this._process(),this._hash.toX32()},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:32});n.SHA512=u._createHelper(f),n.HmacSHA512=u._createHmacHelper(f)}(),t.SHA512)},7243:function(ae,k,o){var t;ae.exports=(t=o(7585),o(8319),o(9493),o(7865),o(3057),function(){var n=t,l=n.lib,u=l.WordArray,a=l.BlockCipher,D=n.algo,E=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],y=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],_=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=D.DES=a.extend({_doReset:function(){for(var Y=this._key.words,L=[],U=0;U<56;U++){var nt=E[U]-1;L[U]=Y[nt>>>5]>>>31-nt%32&1}for(var K=this._subKeys=[],Z=0;Z<16;Z++){var tt=K[Z]=[],mt=y[Z];for(U=0;U<24;U++)tt[U/6|0]|=L[(d[U]-1+mt)%28]<<31-U%6,tt[4+(U/6|0)]|=L[28+(d[U+24]-1+mt)%28]<<31-U%6;for(tt[0]=tt[0]<<1|tt[0]>>>31,U=1;U<7;U++)tt[U]=tt[U]>>>4*(U-1)+3;tt[7]=tt[7]<<5|tt[7]>>>27}var lt=this._invSubKeys=[];for(U=0;U<16;U++)lt[U]=K[15-U]},encryptBlock:function(B,Y){this._doCryptBlock(B,Y,this._subKeys)},decryptBlock:function(B,Y){this._doCryptBlock(B,Y,this._invSubKeys)},_doCryptBlock:function(B,Y,L){this._lBlock=B[Y],this._rBlock=B[Y+1],v.call(this,4,252645135),v.call(this,16,65535),T.call(this,2,858993459),T.call(this,8,16711935),v.call(this,1,1431655765);for(var U=0;U<16;U++){for(var nt=L[U],K=this._lBlock,Z=this._rBlock,tt=0,mt=0;mt<8;mt++)tt|=g[mt][((Z^nt[mt])&_[mt])>>>0];this._lBlock=Z,this._rBlock=K^tt}var lt=this._lBlock;this._lBlock=this._rBlock,this._rBlock=lt,v.call(this,1,1431655765),T.call(this,8,16711935),T.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),B[Y]=this._lBlock,B[Y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function v(B,Y){var L=(this._lBlock>>>B^this._rBlock)&Y;this._rBlock^=L,this._lBlock^=L<>>B^this._lBlock)&Y;this._lBlock^=L,this._rBlock^=L<192.");var L=Y.slice(0,2),U=Y.length<4?Y.slice(0,2):Y.slice(2,4),nt=Y.length<6?Y.slice(0,2):Y.slice(4,6);this._des1=f.createEncryptor(u.create(L)),this._des2=f.createEncryptor(u.create(U)),this._des3=f.createEncryptor(u.create(nt))},encryptBlock:function(B,Y){this._des1.encryptBlock(B,Y),this._des2.decryptBlock(B,Y),this._des3.encryptBlock(B,Y)},decryptBlock:function(B,Y){this._des3.decryptBlock(B,Y),this._des2.encryptBlock(B,Y),this._des1.decryptBlock(B,Y)},keySize:6,ivSize:2,blockSize:2});n.TripleDES=a._createHelper(V)}(),t.TripleDES)},401:function(ae,k,o){var u,a,D,E,t;ae.exports=(t=o(7585),a=(u=t.lib).Base,D=u.WordArray,(E=t.x64={}).Word=a.extend({init:function(g,_){this.high=g,this.low=_}}),E.WordArray=a.extend({init:function(g,_){g=this.words=g||[],this.sigBytes=null!=_?_:8*g.length},toX32:function(){for(var g=this.words,_=g.length,f=[],v=0;v<_;v++){var T=g[v];f.push(T.high),f.push(T.low)}return D.create(f,this.sigBytes)},clone:function(){for(var g=a.clone.call(this),_=g.words=this.words.slice(0),f=_.length,v=0;v{ae.exports=typeof self<"u"?self:typeof window<"u"?window:Function("return this")()},7410:(ae,k,o)=>{ae.exports=o(3213),ae.exports.parser=o(552)},3213:(ae,k,o)=>{var t=o(1497),n=o(1264),l=o(2534)("engine.io-client:socket"),u=o(4068),a=o(552),D=o(1884),E=o(3257);function d(g,_){if(!(this instanceof d))return new d(g,_);_=_||{},g&&"object"==typeof g&&(_=g,g=null),g?(g=D(g),_.hostname=g.host,_.secure="https"===g.protocol||"wss"===g.protocol,_.port=g.port,g.query&&(_.query=g.query)):_.host&&(_.hostname=D(_.host).host),this.secure=null!=_.secure?_.secure:typeof location<"u"&&"https:"===location.protocol,_.hostname&&!_.port&&(_.port=this.secure?"443":"80"),this.agent=_.agent||!1,this.hostname=_.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=_.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=_.query||{},"string"==typeof this.query&&(this.query=E.decode(this.query)),this.upgrade=!1!==_.upgrade,this.path=(_.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!_.forceJSONP,this.jsonp=!1!==_.jsonp,this.forceBase64=!!_.forceBase64,this.enablesXDR=!!_.enablesXDR,this.withCredentials=!1!==_.withCredentials,this.timestampParam=_.timestampParam||"t",this.timestampRequests=_.timestampRequests,this.transports=_.transports||["polling","websocket"],this.transportOptions=_.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=_.policyPort||843,this.rememberUpgrade=_.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=_.onlyBinaryUpgrades,this.perMessageDeflate=!1!==_.perMessageDeflate&&(_.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=_.pfx||void 0,this.key=_.key||void 0,this.passphrase=_.passphrase||void 0,this.cert=_.cert||void 0,this.ca=_.ca||void 0,this.ciphers=_.ciphers||void 0,this.rejectUnauthorized=void 0===_.rejectUnauthorized||_.rejectUnauthorized,this.forceNode=!!_.forceNode,this.isReactNative=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),(typeof self>"u"||this.isReactNative)&&(_.extraHeaders&&Object.keys(_.extraHeaders).length>0&&(this.extraHeaders=_.extraHeaders),_.localAddress&&(this.localAddress=_.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}ae.exports=d,d.priorWebsocketSuccess=!1,n(d.prototype),d.protocol=a.protocol,d.Socket=d,d.Transport=o(3330),d.transports=o(1497),d.parser=o(552),d.prototype.createTransport=function(g){l('creating transport "%s"',g);var _=function y(g){var _={};for(var f in g)g.hasOwnProperty(f)&&(_[f]=g[f]);return _}(this.query);_.EIO=a.protocol,_.transport=g;var f=this.transportOptions[g]||{};return this.id&&(_.sid=this.id),new t[g]({query:_,socket:this,agent:f.agent||this.agent,hostname:f.hostname||this.hostname,port:f.port||this.port,secure:f.secure||this.secure,path:f.path||this.path,forceJSONP:f.forceJSONP||this.forceJSONP,jsonp:f.jsonp||this.jsonp,forceBase64:f.forceBase64||this.forceBase64,enablesXDR:f.enablesXDR||this.enablesXDR,withCredentials:f.withCredentials||this.withCredentials,timestampRequests:f.timestampRequests||this.timestampRequests,timestampParam:f.timestampParam||this.timestampParam,policyPort:f.policyPort||this.policyPort,pfx:f.pfx||this.pfx,key:f.key||this.key,passphrase:f.passphrase||this.passphrase,cert:f.cert||this.cert,ca:f.ca||this.ca,ciphers:f.ciphers||this.ciphers,rejectUnauthorized:f.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:f.perMessageDeflate||this.perMessageDeflate,extraHeaders:f.extraHeaders||this.extraHeaders,forceNode:f.forceNode||this.forceNode,localAddress:f.localAddress||this.localAddress,requestTimeout:f.requestTimeout||this.requestTimeout,protocols:f.protocols||void 0,isReactNative:this.isReactNative})},d.prototype.open=function(){var g;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))g="websocket";else{if(0===this.transports.length){var _=this;return void setTimeout(function(){_.emit("error","No transports available")},0)}g=this.transports[0]}this.readyState="opening";try{g=this.createTransport(g)}catch{return this.transports.shift(),void this.open()}g.open(),this.setTransport(g)},d.prototype.setTransport=function(g){l("setting transport %s",g.name);var _=this;this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=g,g.on("drain",function(){_.onDrain()}).on("packet",function(f){_.onPacket(f)}).on("error",function(f){_.onError(f)}).on("close",function(){_.onClose("transport close")})},d.prototype.probe=function(g){l('probing transport "%s"',g);var _=this.createTransport(g,{probe:1}),f=!1,v=this;function T(){v.onlyBinaryUpgrades&&(f=f||!this.supportsBinary&&v.transport.supportsBinary),f||(l('probe transport "%s" opened',g),_.send([{type:"ping",data:"probe"}]),_.once("packet",function(Z){if(!f)if("pong"===Z.type&&"probe"===Z.data){if(l('probe transport "%s" pong',g),v.upgrading=!0,v.emit("upgrading",_),!_)return;d.priorWebsocketSuccess="websocket"===_.name,l('pausing current transport "%s"',v.transport.name),v.transport.pause(function(){f||"closed"!==v.readyState&&(l("changing transport and sending upgrade packet"),nt(),v.setTransport(_),_.send([{type:"upgrade"}]),v.emit("upgrade",_),_=null,v.upgrading=!1,v.flush())})}else{l('probe transport "%s" failed',g);var tt=new Error("probe error");tt.transport=_.name,v.emit("upgradeError",tt)}}))}function V(){f||(f=!0,nt(),_.close(),_=null)}function B(K){var Z=new Error("probe error: "+K);Z.transport=_.name,V(),l('probe transport "%s" failed because of error: %s',g,K),v.emit("upgradeError",Z)}function Y(){B("transport closed")}function L(){B("socket closed")}function U(K){_&&K.name!==_.name&&(l('"%s" works - aborting "%s"',K.name,_.name),V())}function nt(){_.removeListener("open",T),_.removeListener("error",B),_.removeListener("close",Y),v.removeListener("close",L),v.removeListener("upgrading",U)}d.priorWebsocketSuccess=!1,_.once("open",T),_.once("error",B),_.once("close",Y),this.once("close",L),this.once("upgrading",U),_.open()},d.prototype.onOpen=function(){if(l("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){l("starting upgrade probes");for(var g=0,_=this.upgrades.length;g<_;g++)this.probe(this.upgrades[g])}},d.prototype.onPacket=function(g){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(l('socket receive: type "%s", data "%s"',g.type,g.data),this.emit("packet",g),this.emit("heartbeat"),g.type){case"open":this.onHandshake(JSON.parse(g.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var _=new Error("server error");_.code=g.data,this.onError(_);break;case"message":this.emit("data",g.data),this.emit("message",g.data)}else l('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(g){this.emit("handshake",g),this.id=g.sid,this.transport.query.sid=g.sid,this.upgrades=this.filterUpgrades(g.upgrades),this.pingInterval=g.pingInterval,this.pingTimeout=g.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(g){clearTimeout(this.pingTimeoutTimer);var _=this;_.pingTimeoutTimer=setTimeout(function(){"closed"!==_.readyState&&_.onClose("ping timeout")},g||_.pingInterval+_.pingTimeout)},d.prototype.setPing=function(){var g=this;clearTimeout(g.pingIntervalTimer),g.pingIntervalTimer=setTimeout(function(){l("writing ping packet - expecting pong within %sms",g.pingTimeout),g.ping(),g.onHeartbeat(g.pingTimeout)},g.pingInterval)},d.prototype.ping=function(){var g=this;this.sendPacket("ping",function(){g.emit("ping")})},d.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},d.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(l("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},d.prototype.write=d.prototype.send=function(g,_,f){return this.sendPacket("message",g,_,f),this},d.prototype.sendPacket=function(g,_,f,v){if("function"==typeof _&&(v=_,_=void 0),"function"==typeof f&&(v=f,f=null),"closing"!==this.readyState&&"closed"!==this.readyState){(f=f||{}).compress=!1!==f.compress;var T={type:g,data:_,options:f};this.emit("packetCreate",T),this.writeBuffer.push(T),v&&this.once("flush",v),this.flush()}},d.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var g=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?v():_()}):this.upgrading?v():_()}function _(){g.onClose("forced close"),l("socket closing - telling transport to close"),g.transport.close()}function f(){g.removeListener("upgrade",f),g.removeListener("upgradeError",f),_()}function v(){g.once("upgrade",f),g.once("upgradeError",f)}return this},d.prototype.onError=function(g){l("socket error %j",g),d.priorWebsocketSuccess=!1,this.emit("error",g),this.onClose("transport error",g)},d.prototype.onClose=function(g,_){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(l('socket close with reason: "%s"',g),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",g,_),this.writeBuffer=[],this.prevBufferLen=0)},d.prototype.filterUpgrades=function(g){for(var _=[],f=0,v=g.length;f{var t=o(552),n=o(1264);function l(u){this.path=u.path,this.hostname=u.hostname,this.port=u.port,this.secure=u.secure,this.query=u.query,this.timestampParam=u.timestampParam,this.timestampRequests=u.timestampRequests,this.readyState="",this.agent=u.agent||!1,this.socket=u.socket,this.enablesXDR=u.enablesXDR,this.withCredentials=u.withCredentials,this.pfx=u.pfx,this.key=u.key,this.passphrase=u.passphrase,this.cert=u.cert,this.ca=u.ca,this.ciphers=u.ciphers,this.rejectUnauthorized=u.rejectUnauthorized,this.forceNode=u.forceNode,this.isReactNative=u.isReactNative,this.extraHeaders=u.extraHeaders,this.localAddress=u.localAddress}ae.exports=l,n(l.prototype),l.prototype.onError=function(u,a){var D=new Error(u);return D.type="TransportError",D.description=a,this.emit("error",D),this},l.prototype.open=function(){return("closed"===this.readyState||""===this.readyState)&&(this.readyState="opening",this.doOpen()),this},l.prototype.close=function(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this},l.prototype.send=function(u){if("open"!==this.readyState)throw new Error("Transport not open");this.write(u)},l.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},l.prototype.onData=function(u){var a=t.decodePacket(u,this.socket.binaryType);this.onPacket(a)},l.prototype.onPacket=function(u){this.emit("packet",u)},l.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1497:(ae,k,o)=>{var t=o(3035),n=o(2889),l=o(6029),u=o(3909);k.polling=function a(D){var d=!1,y=!1,g=!1!==D.jsonp;if(typeof location<"u"){var _="https:"===location.protocol,f=location.port;f||(f=_?443:80),d=D.hostname!==location.hostname||f!==D.port,y=D.secure!==_}if(D.xdomain=d,D.xscheme=y,"open"in new t(D)&&!D.forceJSONP)return new n(D);if(!g)throw new Error("JSONP disabled");return new l(D)},k.websocket=u},6029:(ae,k,o)=>{var t=o(3904),n=o(9471),l=o(851);ae.exports=d;var D,u=/\n/g,a=/\\n/g;function E(){}function d(y){t.call(this,y),this.query=this.query||{},D||(D=l.___eio=l.___eio||[]),this.index=D.length;var g=this;D.push(function(_){g.onData(_)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){g.script&&(g.script.onerror=E)},!1)}n(d,t),d.prototype.supportsBinary=!1,d.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),t.prototype.doClose.call(this)},d.prototype.doPoll=function(){var y=this,g=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),g.async=!0,g.src=this.uri(),g.onerror=function(v){y.onError("jsonp poll error",v)};var _=document.getElementsByTagName("script")[0];_?_.parentNode.insertBefore(g,_):(document.head||document.body).appendChild(g),this.script=g,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var v=document.createElement("iframe");document.body.appendChild(v),document.body.removeChild(v)},100)},d.prototype.doWrite=function(y,g){var _=this;if(!this.form){var V,f=document.createElement("form"),v=document.createElement("textarea"),T=this.iframeId="eio_iframe_"+this.index;f.className="socketio",f.style.position="absolute",f.style.top="-1000px",f.style.left="-1000px",f.target=T,f.method="POST",f.setAttribute("accept-charset","utf-8"),v.name="d",f.appendChild(v),document.body.appendChild(f),this.form=f,this.area=v}function B(){Y(),g()}function Y(){if(_.iframe)try{_.form.removeChild(_.iframe)}catch(U){_.onError("jsonp polling iframe removal error",U)}try{V=document.createElement('