diff --git a/dist/fansubid/browser/114.2c43fdf80009a74d.js b/dist/fansubid/browser/114.2c43fdf80009a74d.js deleted file mode 100644 index 9a56043c0..000000000 --- a/dist/fansubid/browser/114.2c43fdf80009a74d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[114],{7114:(P,C,r)=>{"use strict";r.r(C),r.d(C,{DocsModule:()=>W});var o=r(6895),d=r(1390),t=r(4650),b=r(6808);const y=["wrapper"],m=["*"];let h=(()=>{class p{constructor(){this.typeSpeed=30,this.completed=new t.vpe,this.preStringTyped=new t.vpe,this.stringTyped=new t.vpe,this.lastStringBackspaced=new t.vpe,this.typingPaused=new t.vpe,this.typingResumed=new t.vpe,this.reset=new t.vpe,this.stopped=new t.vpe,this.started=new t.vpe,this.destroyed=new t.vpe}ngAfterViewInit(){this.typed=new b(this.content.nativeElement.querySelector(".typing"),this.options),!1!==this.showCursor&&this.updateCursorStyle()}toggle(){this.typed.toggle()}stop(){this.typed.stop()}start(){this.typed.start()}destroy(){this.typed.destroy()}doReset(s){this.typed.reset(s)}get options(){const s=k=>()=>k.emit(),g=k=>x=>k.emit(x),v={strings:this.strings??[""],stringsElement:this.stringsElement,typeSpeed:this.typeSpeed,startDelay:this.startDelay,backSpeed:this.backSpeed,smartBackspace:this.smartBackspace,shuffle:this.shuffle,backDelay:this.backDelay,fadeOut:this.fadeOut,fadeOutClass:this.fadeOutClass,fadeOutDelay:this.fadeOutDelay,loop:this.loop,loopCount:this.loopCount,showCursor:this.showCursor,autoInsertCss:this.autoInsertCss,attr:this.attr,bindInputFocusEvents:this.bindInputFocusEvents,contentType:this.contentType,onComplete:s(this.completed),preStringTyped:g(this.preStringTyped),onStringTyped:g(this.stringTyped),onLastStringBackspaced:s(this.lastStringBackspaced),onTypingPaused:g(this.typingPaused),onTypingResumed:g(this.typingResumed),onReset:s(this.reset),onStop:g(this.stopped),onStart:g(this.started),onDestroy:s(this.destroyed)};return Object.keys(v).forEach(k=>{void 0===v[k]&&delete v[k]}),v}updateCursorStyle(){const s=getComputedStyle(this.content.nativeElement.querySelector(".typing")),g=this.content.nativeElement.querySelector(".typed-cursor").style;g.fontSize=s.fontSize,g.color=this.cursorColor||s.color}ngOnChanges(s){this.typed&&(this.typed.destroy(),this.ngAfterViewInit())}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["ngx-typed-js"]],viewQuery:function(s,g){if(1&s&&t.Gf(y,7),2&s){let v;t.iGM(v=t.CRH())&&(g.content=v.first)}},inputs:{cursorColor:"cursorColor",strings:"strings",stringsElement:"stringsElement",typeSpeed:"typeSpeed",startDelay:"startDelay",backSpeed:"backSpeed",smartBackspace:"smartBackspace",shuffle:"shuffle",backDelay:"backDelay",fadeOut:"fadeOut",fadeOutClass:"fadeOutClass",fadeOutDelay:"fadeOutDelay",loop:"loop",loopCount:"loopCount",showCursor:"showCursor",cursorChar:"cursorChar",autoInsertCss:"autoInsertCss",attr:"attr",bindInputFocusEvents:"bindInputFocusEvents",contentType:"contentType"},outputs:{completed:"completed",preStringTyped:"preStringTyped",stringTyped:"stringTyped",lastStringBackspaced:"lastStringBackspaced",typingPaused:"typingPaused",typingResumed:"typingResumed",reset:"reset",stopped:"stopped",started:"started",destroyed:"destroyed"},features:[t.TTD],ngContentSelectors:m,decls:3,vars:0,consts:[["wrapper",""]],template:function(s,g){1&s&&(t.F$t(),t.TgZ(0,"div",null,0),t.Hsn(2),t.qZA())},styles:["[_nghost-%COMP%] > .typing[_ngcontent-%COMP%]{display:inline}"]}),p})(),u=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[[]]}),p})();var n=r(8613),a=r(4854),i=r(669),e=r(210),c=r(1838),l=r(7355),f=r(5861),_=r(5934),O=r(257),E=r(6781),M=r(7745),N=r(7845),A=r(8020),R=r(9530),U=r(3331),B=r(8921),F=r(8616),L=r(4859),w=r(3546),S=r(1861);function Z(p,T){if(1&p&&(t.TgZ(0,"div",33)(1,"mat-card",34)(2,"mat-card-header",35),t._UZ(3,"div",36),t.TgZ(4,"mat-card-title",37)(5,"h3",9),t._uU(6),t.qZA()(),t.TgZ(7,"mat-card-subtitle",9),t._uU(8),t.qZA()()()()),2&p){const s=T.$implicit,g=t.oxw(2);t.xp6(2),t.MGl("routerLink","/fansub/",null==s.fansub_?null:s.fansub_.slug,""),t.xp6(1),t.Udp("background-image","url("+((null==s.fansub_?null:s.fansub_.image_url)||g.ENV.baseUrl+"/assets/img/favicon.png")+")"),t.xp6(3),t.Oqu(null==s.fansub_?null:s.fansub_.name),t.xp6(2),t.Oqu(s.name)}}function J(p,T){if(1&p){const s=t.EpF();t.TgZ(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),t._uU(4,"Sub-Domain *.Fansub.ID Aktif"),t.qZA()()(),t.TgZ(5,"div",12)(6,"div",29),t.YNc(7,Z,9,5,"div",30),t.qZA(),t.TgZ(8,"div",13)(9,"div",31)(10,"button",32),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return t.KtG(v.loadNextPage())}),t._uU(11," Load More ... "),t.qZA()()()()()}if(2&p){const s=t.oxw();t.xp6(7),t.Q6J("ngForOf",s.dnsData),t.xp6(3),t.Q6J("disabled",s.pageFinished)}}function H(p,T){if(1&p&&(t.TgZ(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),t._uU(4,"Tutorial Klaim *.Fansub.ID"),t.qZA()()(),t.TgZ(5,"div",12),t._UZ(6,"div",38),t.ALo(7,"safeInnerHtml"),t.qZA()()),2&p){const s=t.oxw();t.xp6(6),t.Q6J("innerHTML",t.lcZ(7,1,s.tutorialData),t.oJD)}}const z=function(){return["shiro","aka","midori","kuro","ao","kiiro","orenji","pinku"]},j=[{path:"",pathMatch:"full",component:(()=>{class p{constructor(s,g,v,k,x,I,D){this.router=s,this.activatedRoute=g,this.gs=v,this.fansub=k,this.info=x,this.ds=I,this.wb=D,this.url="",this.dnsData=[],this.tutorialData=null,this.page=1,this.pageFinished=!1,this.subsDns=null,this.subsTutorial=null,this.subsDialog=null,this.subsFansub=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return _.N}ngOnInit(){this.gs.isBrowser&&(this.getDns(),this.getTutorial(),this.checkUrl())}ngOnDestroy(){this.subsDns?.unsubscribe(),this.subsTutorial?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsFansub?.unsubscribe()}checkUrl(){var s=this;return(0,f.Z)(function*(){if(s.url=s.activatedRoute.snapshot.queryParamMap.get("url")||"",s.url){(s.url.endsWith("&")||s.url.endsWith("/")||s.url.endsWith("?"))&&(s.url=s.url.substring(0,s.url.length-1)),s.url=s.gs.cleanIpOrigin(s.url);const g=`.${_.N.domain}`;s.url.toLowerCase().endsWith(g)&&(s.url=s.url.substring(0,s.url.length-g.length)),s.subsFansub=s.fansub.getFansub(s.url).subscribe({next:(v=(0,f.Z)(function*(k){s.gs.log("[FANSUB_DETAIL_SUCCESS]",k);let x=k.result.urls;const I=x.findIndex(D=>"web"===D.name);s.subsDialog=I>=0?(yield s.ds.openKonfirmasiDialog("Sub-Domain Tidak Aktif",`Ingin Mengunjungi Situs ${x[I].url} ?`)).afterClosed().subscribe({next:D=>{s.gs.log("[INFO_DIALOG_CLOSED]",D),D&&s.wb.winboxOpenUri(x[I].url),s.subsDialog.unsubscribe()}}):(yield s.ds.openKonfirmasiDialog("Alamat Website Tidak Tersedia",`Ingin Mengunjungi Halaman ${s.url} ?`)).afterClosed().subscribe({next:D=>{s.gs.log("[INFO_DIALOG_CLOSED]",D),D&&s.router.navigateByUrl(`/fansub/${s.url}`),s.subsDialog.unsubscribe()}})}),function(x){return v.apply(this,arguments)}),error:v=>{s.gs.log("[FANSUB_DETAIL_ERROR]",v,"error")}})}var v})()}getDns(){this.subsDns=this.fansub.getAllSubDomain("",this.page).subscribe({next:s=>{this.gs.log("[DNSS_LIST_SUCCESS]",s);const g=[];for(const v of s.results)v.fansub_&&g.push(v);this.dnsData=[...this.dnsData,...g],s.results.length<=0&&(this.pageFinished=!0)},error:s=>{this.gs.log("[DNSS_LIST_ERROR]",s,"error")}})}getTutorial(){this.subsTutorial=this.info.getInfo("TUTORIAL-SUB-DOMAIN").subscribe({next:s=>{this.gs.log("[TUTORIAL_INFORMATION_SUCCESS]",s),this.tutorialData=s.result.content},error:s=>{this.gs.log("[TUTORIAL_INFORMATION_ERROR]",s,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.getDns())}}return p.\u0275fac=function(s){return new(s||p)(t.Y36(d.F0),t.Y36(d.gz),t.Y36(O.U),t.Y36(E.T),t.Y36(M.O),t.Y36(N.x),t.Y36(A.N))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-docs"]],decls:51,vars:10,consts:[[1,"p-0","m-0",2,"background-image","url('/assets/img/background/docs.png')","background-size","contain"],[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","align-items-center","mt-5","mx-auto"],[1,"text-warning"],[1,"col-12","align-items-center","mx-auto"],[3,"strings","shuffle","loop","smartBackspace","backDelay"],[1,"text-light","text-truncate"],[1,"arrow-right","p-3"],[1,"typing"],[1,"col-12","align-items-center","mb-5","mx-auto"],[1,"col-lg-8","col-xl-9"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","text-end","py-3"],["type","button","mat-button","","color","accent",1,"shiny",3,"disabled","click"],[1,"col-12","col-md-6","col-xl-4","p-2"],[1,"gradient-border","rgb-border"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"row","px-3","pb-3",3,"innerHTML"]],template:function(s,g){1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3),t._UZ(4,"span",4)(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li")(14,"li"),t.TgZ(15,"div",5)(16,"div",6)(17,"div",7)(18,"h2",8),t._uU(19," Developers Documentation "),t.qZA(),t.TgZ(20,"p",9),t._uU(21," Hadiah Spesial & Khusus Untuk Kamu ... "),t.qZA()()()()()()(),t._UZ(22,"app-notifications"),t.TgZ(23,"div",10)(24,"div",11)(25,"div",12)(26,"div",13)(27,"div",14)(28,"h1",15),t._uU(29,"Dapatkan alamat URL khusus untuk website Fansub Kamu !!"),t.qZA()(),t.TgZ(30,"div",16)(31,"ngx-typed-js",17)(32,"h1",18)(33,"span",19),t._uU(34," https:// "),t._UZ(35,"span",20),t._uU(36),t.qZA()()()(),t.TgZ(37,"div",21)(38,"h1",15),t._uU(39),t.qZA()()()()()(),t.TgZ(40,"div",10)(41,"div",11)(42,"div",22),t.YNc(43,J,12,2,"div",23),t.YNc(44,H,8,3,"div",23),t.qZA(),t.TgZ(45,"div",24)(46,"div",25)(47,"div",12),t._UZ(48,"app-banner-donasi")(49,"app-banner-discord")(50,"app-stats-server"),t.qZA()()()()()()),2&s&&(t.xp6(31),t.Q6J("strings",t.DdM(9,z))("shuffle",!0)("loop",!0)("smartBackspace",!0)("backDelay",1e3),t.xp6(5),t.hij(" .",g.ENV.domain," "),t.xp6(3),t.hij("dan email (\uff61>\ufe4f<\uff61) @ ",g.ENV.domain,""),t.xp6(4),t.Q6J("ngIf",g.dnsData.length>0),t.xp6(1),t.Q6J("ngIf",g.tutorialData))},dependencies:[o.sg,o.O5,d.rH,R.u,U.B,B.X,F.t,L.lW,w.a8,w.dk,w.n5,w.$j,w.kc,h,S.H],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/docs.png);background-position:center 41%}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}.arrow-right[_ngcontent-%COMP%]{width:20%;line-height:50px;position:relative;background:red;text-align:center;margin:50px auto}.arrow-right[_ngcontent-%COMP%]:after, .arrow-right[_ngcontent-%COMP%]:before{content:"";position:absolute;width:20px;height:50%;left:100%}.arrow-right[_ngcontent-%COMP%]:after{bottom:0;background:linear-gradient(to right bottom,red 50%,transparent 50%)}.arrow-right[_ngcontent-%COMP%]:before{top:0;background:linear-gradient(to right top,red 50%,transparent 50%)}']}),p})()}];let W=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[o.ez,d.Bz.forChild(j),c.R,a.R,i.A,n.F,e.m,u,l.T]}),p})()},8616:(P,C,r)=>{"use strict";r.d(C,{t:()=>i});var o=r(4650),d=r(1390),t=r(257),b=r(7140),y=r(6895),m=r(1861);function h(e,c){if(1&e&&o._UZ(0,"div",4),2&e){const l=o.oxw();o.Udp("background-size",l.GS.sizeContain?"contain":"cover")("background-image","url("+l.GS.bannerImg+")")("background-repeat",l.GS.bgRepeat?"repeat-x":"no-repeat")("height",l.ROUTER.url.startsWith("/news")||l.ROUTER.url.startsWith("/berkas")||l.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",l.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function u(e,c){if(1&e&&(o.TgZ(0,"strong",10),o._uU(1," -- "),o.TgZ(2,"i")(3,"a",11),o._uU(4),o.qZA()()()),2&e){const l=o.oxw().$implicit;o.xp6(3),o.MGl("routerLink","/user/",l.notifCreator,""),o.xp6(1),o.hij(" ",l.notifCreator," ")}}function n(e,c){if(1&e){const l=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){o.CHM(l);const _=o.oxw().$implicit,O=o.oxw();return o.KtG(O.removeNotif(_.notifData.id))}),o.qZA()}}function a(e,c){if(1&e&&(o.TgZ(0,"div",5)(1,"div")(2,"strong",6),o._uU(3),o.qZA(),o._UZ(4,"span",7),o.ALo(5,"safeInnerHtml"),o.YNc(6,u,5,2,"strong",8),o.YNc(7,n,1,0,"button",9),o.qZA()()),2&e){const l=c.$implicit;o.xp6(1),o.Gre("alert alert-",l.notifData.type," alert-dismissible fade show"),o.xp6(2),o.Oqu(l.notifData.title),o.xp6(1),o.Q6J("innerHTML",o.lcZ(5,7,l.notifData.content),o.oJD),o.xp6(2),o.Q6J("ngIf",l.notifCreator),o.xp6(1),o.Q6J("ngIf",l.notifData.dismissible)}}let i=(()=>{class e{constructor(l,f,_){this.router=l,this.gs=f,this.notif=_}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(l){this.notif.removeNotif(l)}}return e.\u0275fac=function(l){return new(l||e)(o.Y36(d.F0),o.Y36(t.U),o.Y36(b.T))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(l,f){1&l&&(o.YNc(0,h,1,10,"div",0),o.TgZ(1,"div",1)(2,"div",2),o.YNc(3,a,8,9,"div",3),o.qZA()()),2&l&&(o.Q6J("ngIf",f.GS.bannerImg&&(f.ROUTER.url.startsWith("/news")||f.ROUTER.url.startsWith("/berkas")||f.ROUTER.url.startsWith("/fansub")||f.ROUTER.url.startsWith("/anime")||f.ROUTER.url.startsWith("/dorama"))),o.xp6(3),o.Q6J("ngForOf",f.NOTIF.notifications))},dependencies:[y.sg,y.O5,d.yS,m.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),e})()},8613:(P,C,r)=>{"use strict";r.d(C,{F:()=>y});var o=r(6895),d=r(1390),t=r(7355),b=r(4650);let y=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=b.oAB({type:m}),m.\u0275inj=b.cJS({imports:[o.ez,d.Bz,t.T]}),m})()},6808:function(P){P.exports=function(C){var r={};function o(d){if(r[d])return r[d].exports;var t=r[d]={exports:{},id:d,loaded:!1};return C[d].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}return o.m=C,o.c=r,o.p="",o(0)}([function(C,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function h(u,n){for(var a=0;an.length)););var O=n.substring(0,a),E=n.substring(O.length+1,a+c),M=n.substring(a+c+1);n=O+E+M,c--}i.timeout=setTimeout(function(){i.toggleBlinking(!1),a>=n.length?i.doneTyping(n,a):i.keepTyping(n,a,c),i.temporaryPause&&(i.temporaryPause=!1,i.options.onTypingResumed(i.arrayPos,i))},l)},e):this.setPauseStatus(n,a,!0)}},{key:"keepTyping",value:function(n,a,i){0===a&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var e=n.substr(0,a+=i);this.replaceText(e),this.typewrite(n,a)}},{key:"doneTyping",value:function(n,a){var i=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),(this.arrayPos!==this.strings.length-1||(this.complete(),!1!==this.loop&&this.curLoop!==this.loopCount))&&(this.timeout=setTimeout(function(){i.backspace(n,a)},this.backDelay))}},{key:"backspace",value:function(n,a){var i=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var e=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){a=y.htmlParser.backSpaceHtmlChars(n,a,i);var c=n.substr(0,a);if(i.replaceText(c),i.smartBackspace){var l=i.strings[i.arrayPos+1];i.stopNum=l&&c===l.substr(0,a)?a:0}a>i.stopNum?(a--,i.backspace(n,a)):a<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.options.onLastStringBackspaced(),i.shuffleStringsIfNeeded(),i.begin()):i.typewrite(i.strings[i.sequence[i.arrayPos]],a))},e)}else this.setPauseStatus(n,a,!1)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(n,a,i){this.pause.typewrite=i,this.pause.curString=n,this.pause.curStrPos=a}},{key:"toggleBlinking",value:function(n){!this.cursor||this.pause.status||this.cursorBlinking!==n&&(this.cursorBlinking=n,n?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink"))}},{key:"humanizer",value:function(n){return Math.round(Math.random()*n/2)+n}},{key:"shuffleStringsIfNeeded",value:function(){!this.shuffle||(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var n=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){n.arrayPos++,n.replaceText(""),n.strings.length>n.arrayPos?n.typewrite(n.strings[n.sequence[n.arrayPos]],0):(n.typewrite(n.strings[0],0),n.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(n){this.attr?this.el.setAttribute(this.attr,n):this.isInput?this.el.value=n:"html"===this.contentType?this.el.innerHTML=n:this.el.textContent=n}},{key:"bindFocusEvents",value:function(){var n=this;!this.isInput||(this.el.addEventListener("focus",function(a){n.stop()}),this.el.addEventListener("blur",function(a){n.el.value&&0!==n.el.value.length||n.start()}))}},{key:"insertCursor",value:function(){!this.showCursor||this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling))}}]),h}();r.default=m,C.exports=r.default},function(C,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var d=Object.assign||function(a){for(var i=1;i":";";h.substr(u+1).charAt(0)!==i&&!(1+ ++u>h.length););u++}return u}},{key:"backSpaceHtmlChars",value:function(h,u,n){if("html"!==n.contentType)return u;var a=h.substr(u).charAt(0);if(">"===a||";"===a){var i;for(i=">"===a?"<":"&";h.substr(u-1).charAt(0)!==i&&!(--u<0););u--}return u}}]),y}();r.default=t;var b=new t;r.htmlParser=b}])}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/114.588ae335e855e6cc.js b/dist/fansubid/browser/114.588ae335e855e6cc.js new file mode 100644 index 000000000..9eaabb39d --- /dev/null +++ b/dist/fansubid/browser/114.588ae335e855e6cc.js @@ -0,0 +1 @@ +(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[114],{7114:(P,C,r)=>{"use strict";r.r(C),r.d(C,{DocsModule:()=>j});var o=r(6895),d=r(1390),t=r(4650),b=r(6808);const y=["wrapper"],m=["*"];let h=(()=>{class p{constructor(){this.typeSpeed=30,this.completed=new t.vpe,this.preStringTyped=new t.vpe,this.stringTyped=new t.vpe,this.lastStringBackspaced=new t.vpe,this.typingPaused=new t.vpe,this.typingResumed=new t.vpe,this.reset=new t.vpe,this.stopped=new t.vpe,this.started=new t.vpe,this.destroyed=new t.vpe}ngAfterViewInit(){this.typed=new b(this.content.nativeElement.querySelector(".typing"),this.options),!1!==this.showCursor&&this.updateCursorStyle()}toggle(){this.typed.toggle()}stop(){this.typed.stop()}start(){this.typed.start()}destroy(){this.typed.destroy()}doReset(s){this.typed.reset(s)}get options(){const s=k=>()=>k.emit(),g=k=>D=>k.emit(D),v={strings:this.strings??[""],stringsElement:this.stringsElement,typeSpeed:this.typeSpeed,startDelay:this.startDelay,backSpeed:this.backSpeed,smartBackspace:this.smartBackspace,shuffle:this.shuffle,backDelay:this.backDelay,fadeOut:this.fadeOut,fadeOutClass:this.fadeOutClass,fadeOutDelay:this.fadeOutDelay,loop:this.loop,loopCount:this.loopCount,showCursor:this.showCursor,autoInsertCss:this.autoInsertCss,attr:this.attr,bindInputFocusEvents:this.bindInputFocusEvents,contentType:this.contentType,onComplete:s(this.completed),preStringTyped:g(this.preStringTyped),onStringTyped:g(this.stringTyped),onLastStringBackspaced:s(this.lastStringBackspaced),onTypingPaused:g(this.typingPaused),onTypingResumed:g(this.typingResumed),onReset:s(this.reset),onStop:g(this.stopped),onStart:g(this.started),onDestroy:s(this.destroyed)};return Object.keys(v).forEach(k=>{void 0===v[k]&&delete v[k]}),v}updateCursorStyle(){const s=getComputedStyle(this.content.nativeElement.querySelector(".typing")),g=this.content.nativeElement.querySelector(".typed-cursor").style;g.fontSize=s.fontSize,g.color=this.cursorColor||s.color}ngOnChanges(s){this.typed&&(this.typed.destroy(),this.ngAfterViewInit())}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["ngx-typed-js"]],viewQuery:function(s,g){if(1&s&&t.Gf(y,7),2&s){let v;t.iGM(v=t.CRH())&&(g.content=v.first)}},inputs:{cursorColor:"cursorColor",strings:"strings",stringsElement:"stringsElement",typeSpeed:"typeSpeed",startDelay:"startDelay",backSpeed:"backSpeed",smartBackspace:"smartBackspace",shuffle:"shuffle",backDelay:"backDelay",fadeOut:"fadeOut",fadeOutClass:"fadeOutClass",fadeOutDelay:"fadeOutDelay",loop:"loop",loopCount:"loopCount",showCursor:"showCursor",cursorChar:"cursorChar",autoInsertCss:"autoInsertCss",attr:"attr",bindInputFocusEvents:"bindInputFocusEvents",contentType:"contentType"},outputs:{completed:"completed",preStringTyped:"preStringTyped",stringTyped:"stringTyped",lastStringBackspaced:"lastStringBackspaced",typingPaused:"typingPaused",typingResumed:"typingResumed",reset:"reset",stopped:"stopped",started:"started",destroyed:"destroyed"},features:[t.TTD],ngContentSelectors:m,decls:3,vars:0,consts:[["wrapper",""]],template:function(s,g){1&s&&(t.F$t(),t.TgZ(0,"div",null,0),t.Hsn(2),t.qZA())},styles:["[_nghost-%COMP%] > .typing[_ngcontent-%COMP%]{display:inline}"]}),p})(),u=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[[]]}),p})();var n=r(8613),a=r(4854),i=r(669),e=r(210),c=r(1838),l=r(7355),f=r(5861),_=r(5934),O=r(257),E=r(6781),M=r(7745),I=r(7845),N=r(8020),A=r(9530),R=r(3331),U=r(8921),B=r(8616),F=r(4859),w=r(3546),L=r(1861);function S(p,T){if(1&p&&(t.TgZ(0,"div",33)(1,"mat-card",34)(2,"mat-card-header",35),t._UZ(3,"div",36),t.TgZ(4,"mat-card-title",37)(5,"h3",9),t._uU(6),t.qZA()(),t.TgZ(7,"mat-card-subtitle",9),t._uU(8),t.qZA()()()()),2&p){const s=T.$implicit,g=t.oxw(2);t.xp6(2),t.MGl("routerLink","/fansub/",null==s.fansub_?null:s.fansub_.slug,""),t.xp6(1),t.Udp("background-image","url("+((null==s.fansub_?null:s.fansub_.image_url)||g.ENV.baseUrl+"/assets/img/favicon.png")+")"),t.xp6(3),t.Oqu(null==s.fansub_?null:s.fansub_.name),t.xp6(2),t.Oqu(s.name)}}function Z(p,T){if(1&p){const s=t.EpF();t.TgZ(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),t._uU(4,"Sub-Domain *.Fansub.ID Aktif"),t.qZA()()(),t.TgZ(5,"div",12)(6,"div",29),t.YNc(7,S,9,5,"div",30),t.qZA(),t.TgZ(8,"div",13)(9,"div",31)(10,"button",32),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return t.KtG(v.loadNextPage())}),t._uU(11," Load More ... "),t.qZA()()()()()}if(2&p){const s=t.oxw();t.xp6(7),t.Q6J("ngForOf",s.dnsData),t.xp6(3),t.Q6J("disabled",s.pageFinished)}}function J(p,T){if(1&p&&(t.TgZ(0,"div",13)(1,"div",26)(2,"h2",27)(3,"b",28),t._uU(4,"Tutorial Klaim *.Fansub.ID"),t.qZA()()(),t.TgZ(5,"div",12),t._UZ(6,"div",38),t.ALo(7,"safeInnerHtml"),t.qZA()()),2&p){const s=t.oxw();t.xp6(6),t.Q6J("innerHTML",t.lcZ(7,1,s.tutorialData),t.oJD)}}const H=function(){return["shiro","aka","midori","kuro","ao","kiiro","orenji","pinku"]},z=[{path:"",pathMatch:"full",component:(()=>{class p{constructor(s,g,v,k,D,x,W){this.router=s,this.activatedRoute=g,this.gs=v,this.fansub=k,this.info=D,this.ds=x,this.wb=W,this.url="",this.dnsData=[],this.tutorialData=null,this.page=1,this.pageFinished=!1,this.subsDns=null,this.subsTutorial=null,this.subsDialog=null,this.subsFansub=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return _.N}ngOnInit(){this.gs.isBrowser&&(this.getDns(),this.getTutorial(),this.checkUrl())}ngOnDestroy(){this.subsDns?.unsubscribe(),this.subsTutorial?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsFansub?.unsubscribe()}checkUrl(){var s=this;return(0,f.Z)(function*(){if(s.url=s.activatedRoute.snapshot.queryParamMap.get("url")||"",s.url){(s.url.endsWith("&")||s.url.endsWith("/")||s.url.endsWith("?"))&&(s.url=s.url.substring(0,s.url.length-1)),s.url=s.gs.cleanIpOrigin(s.url);const g=`.${_.N.domain}`;s.url.toLowerCase().endsWith(g)&&(s.url=s.url.substring(0,s.url.length-g.length)),s.subsFansub=s.fansub.getFansub(s.url).subscribe({next:(v=(0,f.Z)(function*(k){s.gs.log("[FANSUB_DETAIL_SUCCESS]",k);let D=k.result.urls;s.subsDialog=D.web?(yield s.ds.openKonfirmasiDialog("Sub-Domain Tidak Aktif",`Ingin Mengunjungi Situs ${D.web} ?`)).afterClosed().subscribe({next:x=>{s.gs.log("[INFO_DIALOG_CLOSED]",x),x&&s.wb.winboxOpenUri(D.web),s.subsDialog.unsubscribe()}}):(yield s.ds.openKonfirmasiDialog("Alamat Website Tidak Tersedia",`Ingin Mengunjungi Halaman ${s.url} ?`)).afterClosed().subscribe({next:x=>{s.gs.log("[INFO_DIALOG_CLOSED]",x),x&&s.router.navigateByUrl(`/fansub/${s.url}`),s.subsDialog.unsubscribe()}})}),function(D){return v.apply(this,arguments)}),error:v=>{s.gs.log("[FANSUB_DETAIL_ERROR]",v,"error")}})}var v})()}getDns(){this.subsDns=this.fansub.getAllSubDomain("",this.page).subscribe({next:s=>{this.gs.log("[DNSS_LIST_SUCCESS]",s);const g=[];for(const v of s.results)v.fansub_&&g.push(v);this.dnsData=[...this.dnsData,...g],s.results.length<=0&&(this.pageFinished=!0)},error:s=>{this.gs.log("[DNSS_LIST_ERROR]",s,"error")}})}getTutorial(){this.subsTutorial=this.info.getInfo("TUTORIAL-SUB-DOMAIN").subscribe({next:s=>{this.gs.log("[TUTORIAL_INFORMATION_SUCCESS]",s),this.tutorialData=s.result.content},error:s=>{this.gs.log("[TUTORIAL_INFORMATION_ERROR]",s,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.getDns())}}return p.\u0275fac=function(s){return new(s||p)(t.Y36(d.F0),t.Y36(d.gz),t.Y36(O.U),t.Y36(E.T),t.Y36(M.O),t.Y36(I.x),t.Y36(N.N))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-docs"]],decls:51,vars:10,consts:[[1,"p-0","m-0",2,"background-image","url('/assets/img/background/docs.png')","background-size","contain"],[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-12"],[1,"row"],[1,"col-12","align-items-center","mt-5","mx-auto"],[1,"text-warning"],[1,"col-12","align-items-center","mx-auto"],[3,"strings","shuffle","loop","smartBackspace","backDelay"],[1,"text-light","text-truncate"],[1,"arrow-right","p-3"],[1,"typing"],[1,"col-12","align-items-center","mb-5","mx-auto"],[1,"col-lg-8","col-xl-9"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","text-end","py-3"],["type","button","mat-button","","color","accent",1,"shiny",3,"disabled","click"],[1,"col-12","col-md-6","col-xl-4","p-2"],[1,"gradient-border","rgb-border"],[2,"cursor","pointer",3,"routerLink"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer"],[1,"row","px-3","pb-3",3,"innerHTML"]],template:function(s,g){1&s&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3),t._UZ(4,"span",4)(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li")(14,"li"),t.TgZ(15,"div",5)(16,"div",6)(17,"div",7)(18,"h2",8),t._uU(19," Developers Documentation "),t.qZA(),t.TgZ(20,"p",9),t._uU(21," Hadiah Spesial & Khusus Untuk Kamu ... "),t.qZA()()()()()()(),t._UZ(22,"app-notifications"),t.TgZ(23,"div",10)(24,"div",11)(25,"div",12)(26,"div",13)(27,"div",14)(28,"h1",15),t._uU(29,"Dapatkan alamat URL khusus untuk website Fansub Kamu !!"),t.qZA()(),t.TgZ(30,"div",16)(31,"ngx-typed-js",17)(32,"h1",18)(33,"span",19),t._uU(34," https:// "),t._UZ(35,"span",20),t._uU(36),t.qZA()()()(),t.TgZ(37,"div",21)(38,"h1",15),t._uU(39),t.qZA()()()()()(),t.TgZ(40,"div",10)(41,"div",11)(42,"div",22),t.YNc(43,Z,12,2,"div",23),t.YNc(44,J,8,3,"div",23),t.qZA(),t.TgZ(45,"div",24)(46,"div",25)(47,"div",12),t._UZ(48,"app-banner-donasi")(49,"app-banner-discord")(50,"app-stats-server"),t.qZA()()()()()()),2&s&&(t.xp6(31),t.Q6J("strings",t.DdM(9,H))("shuffle",!0)("loop",!0)("smartBackspace",!0)("backDelay",1e3),t.xp6(5),t.hij(" .",g.ENV.domain," "),t.xp6(3),t.hij("dan email (\uff61>\ufe4f<\uff61) @ ",g.ENV.domain,""),t.xp6(4),t.Q6J("ngIf",g.dnsData.length>0),t.xp6(1),t.Q6J("ngIf",g.tutorialData))},dependencies:[o.sg,o.O5,d.rH,A.u,R.B,U.X,B.t,F.lW,w.a8,w.dk,w.n5,w.$j,w.kc,h,L.H],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/docs.png);background-position:center 41%}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}.arrow-right[_ngcontent-%COMP%]{width:20%;line-height:50px;position:relative;background:red;text-align:center;margin:50px auto}.arrow-right[_ngcontent-%COMP%]:after, .arrow-right[_ngcontent-%COMP%]:before{content:"";position:absolute;width:20px;height:50%;left:100%}.arrow-right[_ngcontent-%COMP%]:after{bottom:0;background:linear-gradient(to right bottom,red 50%,transparent 50%)}.arrow-right[_ngcontent-%COMP%]:before{top:0;background:linear-gradient(to right top,red 50%,transparent 50%)}']}),p})()}];let j=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[o.ez,d.Bz.forChild(z),c.R,a.R,i.A,n.F,e.m,u,l.T]}),p})()},8616:(P,C,r)=>{"use strict";r.d(C,{t:()=>i});var o=r(4650),d=r(1390),t=r(257),b=r(7140),y=r(6895),m=r(1861);function h(e,c){if(1&e&&o._UZ(0,"div",4),2&e){const l=o.oxw();o.Udp("background-size",l.GS.sizeContain?"contain":"cover")("background-image","url("+l.GS.bannerImg+")")("background-repeat",l.GS.bgRepeat?"repeat-x":"no-repeat")("height",l.ROUTER.url.startsWith("/news")||l.ROUTER.url.startsWith("/berkas")||l.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",l.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function u(e,c){if(1&e&&(o.TgZ(0,"strong",10),o._uU(1," -- "),o.TgZ(2,"i")(3,"a",11),o._uU(4),o.qZA()()()),2&e){const l=o.oxw().$implicit;o.xp6(3),o.MGl("routerLink","/user/",l.notifCreator,""),o.xp6(1),o.hij(" ",l.notifCreator," ")}}function n(e,c){if(1&e){const l=o.EpF();o.TgZ(0,"button",12),o.NdJ("click",function(){o.CHM(l);const _=o.oxw().$implicit,O=o.oxw();return o.KtG(O.removeNotif(_.notifData.id))}),o.qZA()}}function a(e,c){if(1&e&&(o.TgZ(0,"div",5)(1,"div")(2,"strong",6),o._uU(3),o.qZA(),o._UZ(4,"span",7),o.ALo(5,"safeInnerHtml"),o.YNc(6,u,5,2,"strong",8),o.YNc(7,n,1,0,"button",9),o.qZA()()),2&e){const l=c.$implicit;o.xp6(1),o.Gre("alert alert-",l.notifData.type," alert-dismissible fade show"),o.xp6(2),o.Oqu(l.notifData.title),o.xp6(1),o.Q6J("innerHTML",o.lcZ(5,7,l.notifData.content),o.oJD),o.xp6(2),o.Q6J("ngIf",l.notifCreator),o.xp6(1),o.Q6J("ngIf",l.notifData.dismissible)}}let i=(()=>{class e{constructor(l,f,_){this.router=l,this.gs=f,this.notif=_}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(l){this.notif.removeNotif(l)}}return e.\u0275fac=function(l){return new(l||e)(o.Y36(d.F0),o.Y36(t.U),o.Y36(b.T))},e.\u0275cmp=o.Xpm({type:e,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(l,f){1&l&&(o.YNc(0,h,1,10,"div",0),o.TgZ(1,"div",1)(2,"div",2),o.YNc(3,a,8,9,"div",3),o.qZA()()),2&l&&(o.Q6J("ngIf",f.GS.bannerImg&&(f.ROUTER.url.startsWith("/news")||f.ROUTER.url.startsWith("/berkas")||f.ROUTER.url.startsWith("/fansub")||f.ROUTER.url.startsWith("/anime")||f.ROUTER.url.startsWith("/dorama"))),o.xp6(3),o.Q6J("ngForOf",f.NOTIF.notifications))},dependencies:[y.sg,y.O5,d.yS,m.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),e})()},8613:(P,C,r)=>{"use strict";r.d(C,{F:()=>y});var o=r(6895),d=r(1390),t=r(7355),b=r(4650);let y=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=b.oAB({type:m}),m.\u0275inj=b.cJS({imports:[o.ez,d.Bz,t.T]}),m})()},6808:function(P){P.exports=function(C){var r={};function o(d){if(r[d])return r[d].exports;var t=r[d]={exports:{},id:d,loaded:!1};return C[d].call(t.exports,t,t.exports,o),t.loaded=!0,t.exports}return o.m=C,o.c=r,o.p="",o(0)}([function(C,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var d=function(){function h(u,n){for(var a=0;an.length)););var O=n.substring(0,a),E=n.substring(O.length+1,a+c),M=n.substring(a+c+1);n=O+E+M,c--}i.timeout=setTimeout(function(){i.toggleBlinking(!1),a>=n.length?i.doneTyping(n,a):i.keepTyping(n,a,c),i.temporaryPause&&(i.temporaryPause=!1,i.options.onTypingResumed(i.arrayPos,i))},l)},e):this.setPauseStatus(n,a,!0)}},{key:"keepTyping",value:function(n,a,i){0===a&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var e=n.substr(0,a+=i);this.replaceText(e),this.typewrite(n,a)}},{key:"doneTyping",value:function(n,a){var i=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),(this.arrayPos!==this.strings.length-1||(this.complete(),!1!==this.loop&&this.curLoop!==this.loopCount))&&(this.timeout=setTimeout(function(){i.backspace(n,a)},this.backDelay))}},{key:"backspace",value:function(n,a){var i=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var e=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){a=y.htmlParser.backSpaceHtmlChars(n,a,i);var c=n.substr(0,a);if(i.replaceText(c),i.smartBackspace){var l=i.strings[i.arrayPos+1];i.stopNum=l&&c===l.substr(0,a)?a:0}a>i.stopNum?(a--,i.backspace(n,a)):a<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.options.onLastStringBackspaced(),i.shuffleStringsIfNeeded(),i.begin()):i.typewrite(i.strings[i.sequence[i.arrayPos]],a))},e)}else this.setPauseStatus(n,a,!1)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(n,a,i){this.pause.typewrite=i,this.pause.curString=n,this.pause.curStrPos=a}},{key:"toggleBlinking",value:function(n){!this.cursor||this.pause.status||this.cursorBlinking!==n&&(this.cursorBlinking=n,n?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink"))}},{key:"humanizer",value:function(n){return Math.round(Math.random()*n/2)+n}},{key:"shuffleStringsIfNeeded",value:function(){!this.shuffle||(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var n=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){n.arrayPos++,n.replaceText(""),n.strings.length>n.arrayPos?n.typewrite(n.strings[n.sequence[n.arrayPos]],0):(n.typewrite(n.strings[0],0),n.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(n){this.attr?this.el.setAttribute(this.attr,n):this.isInput?this.el.value=n:"html"===this.contentType?this.el.innerHTML=n:this.el.textContent=n}},{key:"bindFocusEvents",value:function(){var n=this;!this.isInput||(this.el.addEventListener("focus",function(a){n.stop()}),this.el.addEventListener("blur",function(a){n.el.value&&0!==n.el.value.length||n.start()}))}},{key:"insertCursor",value:function(){!this.showCursor||this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling))}}]),h}();r.default=m,C.exports=r.default},function(C,r,o){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var d=Object.assign||function(a){for(var i=1;i":";";h.substr(u+1).charAt(0)!==i&&!(1+ ++u>h.length););u++}return u}},{key:"backSpaceHtmlChars",value:function(h,u,n){if("html"!==n.contentType)return u;var a=h.substr(u).charAt(0);if(">"===a||";"===a){var i;for(i=">"===a?"<":"&";h.substr(u-1).charAt(0)!==i&&!(--u<0););u--}return u}}]),y}();r.default=t;var b=new t;r.htmlParser=b}])}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/478.38b20d4998375e69.js b/dist/fansubid/browser/478.38b20d4998375e69.js new file mode 100644 index 000000000..32903d225 --- /dev/null +++ b/dist/fansubid/browser/478.38b20d4998375e69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[478],{8478:(Z,x,o)=>{o.r(x),o.d(x,{FansubModule:()=>ue});var g=o(6895),r=o(1390),u=o(4006),T=o(7375),p=o(4561),C=o(3170),m=o(6271),_=o(4249),I=o(2777),M=o(5094),d=o(210),f=o(7355),b=o(6436),v=o(4946),F=o(8613),k=o(6020),j=o(4167),z=o(2438),t=o(4650),y=o(257),R=o(3e3),B=o(6382),N=o(6781),J=o(8020),Q=o(8757),L=o(8616);function $(a,l){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Q6J("data",e.barChartAnimeData)("labels",e.barChartAnimeLabels)("chartType",e.barChartType)("options",e.barChartAnimeOptions)("plugins",e.chartPlugins)("legend",!1)}}function V(a,l){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Q6J("data",e.barChartDoramaData)("labels",e.barChartDoramaLabels)("chartType",e.barChartType)("options",e.barChartDoramaOptions)("plugins",e.chartPlugins)("legend",!1)}}function W(a,l){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Q6J("data",e.pieChartStatusData)("labels",e.pieChartStatusLabels)("chartType",e.pieChartType)("options",e.pieChartStatusOptions)("plugins",e.chartPlugins)("legend",!0)}}function X(a,l){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Q6J("data",e.doughnutChartGarapanData)("labels",e.doughnutChartGarapanLabels)("chartType",e.doughnutChartType)("options",e.doughnutChartGarapanOptions)("plugins",e.chartPlugins)("legend",!0)}}let tt=(()=>{class a{constructor(e,s,i,n,c,h,A){this.activatedRoute=e,this.router=s,this.gs=i,this.bs=n,this.fs=c,this.fansub=h,this.wb=A,this.allFansubId=[],this.fansubData=[],this.tabData=[{name:"Katalog Fansub",icon:"closed_caption",type:"table",data:{column:["Status","Logo","Nama Fansub","Anime","Dorama","Tautan Komunitas"],row:[]}}],this.pieChartStatusOptions={title:{display:!0,text:"Kondisi Fansub Terkini"},responsive:!0,legend:{position:"right"}},this.doughnutChartGarapanOptions={title:{display:!0,text:"Total Garapan Fansub"},responsive:!0,legend:{position:"right"}},this.barChartAnimeOptions={title:{display:!0,text:"Garapan Anime Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.barChartDoramaOptions={title:{display:!0,text:"Garapan Dorama Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.chartPlugins=[],this.pieChartStatusData=[],this.pieChartStatusLabels=[],this.doughnutChartGarapanData=[],this.doughnutChartGarapanLabels=[],this.barChartAnimeData=[],this.barChartAnimeLabels=[],this.barChartDoramaData=[],this.barChartDoramaLabels=[],this.pieChartType="pie",this.doughnutChartType="doughnut",this.barChartType="horizontalBar",this.fansubActive=0,this.fansubInActive=0,this.subsFansub=null,this.subsAnime=null,this.subsDorama=null,this.subsQueryParam=null,this.gs.bannerImg="/assets/img/banner/fansub.png",this.gs.sizeContain=!1,this.gs.bgRepeat=!1,this.gs.isBrowser&&((0,p.Dy)(),(0,p.bF)())}ngOnDestroy(){this.subsFansub?.unsubscribe(),this.subsAnime?.unsubscribe(),this.subsQueryParam?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.watchUrlRoute()}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:e=>{this.bs.busy(),this.allFansubId=[],this.fansubData=[],this.fansubActive=0,this.fansubInActive=0,this.doughnutChartGarapanLabels=[],this.doughnutChartGarapanData=[],this.barChartAnimeLabels=[],this.barChartAnimeData=[],this.barChartDoramaLabels=[],this.barChartDoramaData=[],this.bs.idle(),this.getFansubData()}})}getFansubData(){this.bs.busy(),this.subsFansub=this.fansub.getAllFansub().subscribe({next:e=>{this.gs.log("[FANSUB_LIST_SUCCESS]",e);for(const s of e.results){this.allFansubId.push(s.id);const i=[];if(Object.keys(s.urls).length>0)for(const[c,h]of Object.entries(s.urls))i.push({type:"button",icon:"discord"===c||"twitter"===c?void 0:c,image:"discord"===c?"/assets/img/discord/blue.png":"twitter"===c?"/assets/img/twitter/blue.png":void 0,url:h,name:c});this.fansubData.push({id:s.id,slug:s.slug,Logo:s.image_url,Status:s.active?"AKTIF":"TIDAK AKTIF","Nama Fansub":s.name,"Tautan Komunitas":i}),s.active?this.fansubActive++:s.active||this.fansubInActive++}this.pieChartStatusLabels=["Aktif","Tidak Aktif"],this.pieChartStatusData=[this.fansubActive,this.fansubInActive],this.tabData[0].data.row=this.fansubData,this.getAnimeFansub(),this.getDoramaFansub(),this.fs.initializeFab("add",null,"Tambahkan Fansub Baru","/create/fansub",!1),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_LIST_ERROR]",e,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub(this.allFansubId).subscribe({next:e=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",e);for(const i of this.fansubData)i.Anime=e.results[i.id];this.doughnutChartGarapanLabels.push("Anime"),this.doughnutChartGarapanData.push(e.count);const s=[...this.fansubData].sort((i,n)=>n.Anime-i.Anime).slice(0,10);for(const i of s)this.barChartAnimeLabels.push(i["Nama Fansub"]),this.barChartAnimeData.push(i.Anime);this.bs.idle()},error:e=>{this.gs.log("[FANSUB_ANIME_ERROR]",e,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub(this.allFansubId).subscribe({next:e=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",e);for(const i of this.fansubData)i.Dorama=e.results[i.id];this.doughnutChartGarapanLabels.push("Dorama"),this.doughnutChartGarapanData.push(e.count);const s=[...this.fansubData].sort((i,n)=>n.Dorama-i.Dorama).slice(0,10);for(const i of s)this.barChartDoramaLabels.push(i["Nama Fansub"]),this.barChartDoramaData.push(i.Dorama);this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DORAMA_ERROR]",e,"error"),this.bs.idle()}})}openFansub(e){this.gs.log("[FANSUB_LIST_OPEN_FANSUB]",e),this.router.navigateByUrl(`/fansub/${e.slug}`)}openUrl(e){this.gs.log("[FANSUB_LIST_OPEN_URL]",e),this.wb.winboxOpenUri(e.url)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(r.gz),t.Y36(r.F0),t.Y36(y.U),t.Y36(R.z),t.Y36(B.r),t.Y36(N.T),t.Y36(J.N))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fansub-list"]],decls:9,vars:5,consts:[[1,"container"],[1,"row","p-3"],["class","col-12 col-md-6 py-1 bg-bifeldy",4,"ngIf"],[1,"row","pt-3"],[3,"tabData","tableRowClicked","buttonClicked"],[1,"col-12","col-md-6","py-1","bg-bifeldy"],["baseChart","",3,"data","labels","chartType","options","plugins","legend"]],template:function(e,s){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1),t.YNc(3,$,2,6,"div",2),t.YNc(4,V,2,6,"div",2),t.YNc(5,W,2,6,"div",2),t.YNc(6,X,2,6,"div",2),t.qZA(),t.TgZ(7,"div",3)(8,"app-material-tab",4),t.NdJ("tableRowClicked",function(n){return s.openFansub(n)})("buttonClicked",function(n){return s.openUrl(n)}),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",s.barChartAnimeData.length>0&&s.barChartAnimeLabels.length>0),t.xp6(1),t.Q6J("ngIf",s.barChartDoramaData.length>0&&s.barChartDoramaLabels.length>0),t.xp6(1),t.Q6J("ngIf",2===s.pieChartStatusData.length&&2===s.pieChartStatusLabels.length),t.xp6(1),t.Q6J("ngIf",2===s.doughnutChartGarapanData.length&&2===s.doughnutChartGarapanLabels.length),t.xp6(2),t.Q6J("tabData",s.tabData))},dependencies:[g.O5,Q.H,p.jh,L.t]}),a})();var K=o(5934),et=o(7623),G=o(4137),at=o(7845),it=o(8745),st=o(8381),Y=o(6925),nt=o(8987),S=o(4859),q=o(7392),E=o(6338),H=o(266),ot=o(7567),rt=o(4028),lt=o(325),ut=o(192),ct=o(6766);function gt(a,l){if(1&a&&(t.TgZ(0,"div",8)(1,"a",38),t._UZ(2,"mat-icon",39),t._uU(3," Facebook Fanpage "),t.qZA()()),2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.fansubData.urls.facebook,t.LSH)}}function bt(a,l){if(1&a&&(t.TgZ(0,"div",8)(1,"a",40),t._UZ(2,"img",41),t._uU(3," Ruang Obrolan Discord "),t.qZA()()),2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.fansubData.urls.discord,t.LSH)}}function mt(a,l){if(1&a&&(t.TgZ(0,"div",8)(1,"a",42),t._UZ(2,"img",43),t._uU(3," Cuitan Twitter "),t.qZA()()),2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.fansubData.urls.twitter,t.LSH)}}function dt(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"a",44),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.joinLeaveMember())}),t._uU(1),t.qZA()}if(2&a){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.joinedAsMember?"Keluar":"Gabung"," ")}}function ht(a,l){1&a&&t._UZ(0,"app-no-data")}function pt(a,l){if(1&a&&(t.TgZ(0,"mat-list-option",47),t._UZ(1,"img",48),t.TgZ(2,"a",49)(3,"span",50),t._uU(4),t.qZA(),t.TgZ(5,"span",51),t._uU(6),t.qZA()()()),2&a){const e=l.$implicit;t.MGl("routerLink","/user/",e.user_.username,""),t.xp6(1),t.s9C("src",e.user_.image_url,t.LSH),t.xp6(3),t.hij(" ",e.keterangan," "),t.xp6(2),t.Oqu(e.user_.username)}}function _t(a,l){if(1&a&&(t.TgZ(0,"mat-selection-list",45),t.YNc(1,pt,7,4,"mat-list-option",46),t.qZA()),2&a){const e=t.oxw(2);t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.approvedMembers)}}function ft(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"mat-list-option",53),t._UZ(1,"img",48),t.TgZ(2,"a",49)(3,"span",54)(4,"small",55),t.NdJ("click",function(){const n=t.CHM(e).$implicit,c=t.oxw(3);return t.KtG(c.approveMember(n))}),t._uU(5," Terima "),t.qZA(),t._uU(6," | "),t.TgZ(7,"small",56),t.NdJ("click",function(){const n=t.CHM(e).$implicit,c=t.oxw(3);return t.KtG(c.rejectMember(n))}),t._uU(8," Tolak "),t.qZA()(),t.TgZ(9,"span",57),t._uU(10),t.qZA()()()}if(2&a){const e=l.$implicit;t.xp6(1),t.s9C("src",e.user_.image_url,t.LSH),t.xp6(8),t.MGl("routerLink","/user/",e.user_.username,""),t.xp6(1),t.hij(" ",e.user_.username," ")}}function vt(a,l){if(1&a&&(t.TgZ(0,"mat-selection-list",45),t.YNc(1,ft,11,3,"mat-list-option",52),t.qZA()),2&a){const e=t.oxw(2);t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.pendingMembers)}}function xt(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"div",8)(1,"button",58),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.getSubDomain())}),t._UZ(2,"mat-icon",59),t._uU(3),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(3),t.AsE(" 'https://",e.fansubData.slug,".",e.ENV.domain,"' ")}}function Tt(a,l){if(1&a&&(t.TgZ(0,"div",17),t._UZ(1,"app-material-expansion-panel",60),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("panelData",e.panelData)}}function Ft(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"mat-list-option",53),t._UZ(1,"mat-icon",65),t.TgZ(2,"a",66),t.NdJ("click",function(){const n=t.CHM(e).$implicit,c=t.oxw(3);return t.KtG(c.openRssFeed(n.fansub_,n.link))}),t.TgZ(3,"span",67),t._uU(4),t.ALo(5,"dateAgo"),t.qZA(),t._UZ(6,"span",68),t.qZA()()}if(2&a){const e=l.$implicit;t.xp6(4),t.Oqu(t.lcZ(5,2,e.created_at)),t.xp6(2),t.Q6J("innerHTML",e.title,t.oJD)}}function At(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"div",17)(1,"div",61)(2,"h2",62)(3,"span",63)(4,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.getRssFeed())}),t._uU(5," Refresh "),t.qZA(),t._uU(6," | "),t.TgZ(7,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showAllRssFeed())}),t._uU(8," Lainnya "),t.qZA()(),t.TgZ(9,"b",21),t._uU(10,"RSS Feed Fansub"),t.qZA()()(),t.TgZ(11,"div",16)(12,"mat-selection-list",45),t.YNc(13,Ft,7,4,"mat-list-option",52),t.qZA()()()}if(2&a){const e=t.oxw(2);t.xp6(12),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.rssFeedData)}}function Ct(a,l){1&a&&(t.TgZ(0,"div",17)(1,"div",16),t._UZ(2,"app-report"),t.qZA()())}function Dt(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),t._UZ(6,"img",7),t.qZA(),t.TgZ(7,"div",8)(8,"button",9),t._UZ(9,"mat-icon",10),t._uU(10),t.ALo(11,"date"),t.qZA(),t.TgZ(12,"button",11),t._UZ(13,"mat-icon",12),t._uU(14),t.qZA()(),t.YNc(15,gt,4,1,"div",13),t.YNc(16,bt,4,1,"div",13),t.YNc(17,mt,4,1,"div",13),t.TgZ(18,"div",8)(19,"button",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.editFansubData())}),t._UZ(20,"mat-icon",15),t._uU(21," Perbaharui Informasi "),t.qZA()(),t.TgZ(22,"div",16)(23,"div",17)(24,"div",18)(25,"h2",19),t.YNc(26,dt,2,1,"a",20),t.TgZ(27,"b",21),t._uU(28),t.qZA()()(),t.TgZ(29,"div",22)(30,"div",23),t.YNc(31,ht,1,0,"app-no-data",24),t.YNc(32,_t,2,2,"mat-selection-list",25),t.YNc(33,vt,2,2,"mat-selection-list",25),t.qZA()(),t.TgZ(34,"div",8)(35,"button",26),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.togglePendingMembers())}),t._UZ(36,"mat-icon",27),t._uU(37),t.qZA()()()(),t.YNc(38,xt,4,2,"div",13),t.qZA()(),t.TgZ(39,"div",28)(40,"div",29)(41,"h1",30)(42,"b"),t._uU(43),t.qZA()()(),t.TgZ(44,"div",17)(45,"app-material-chip",31),t.NdJ("chipClicked",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.openTag(i))}),t.qZA()(),t.TgZ(46,"div",32),t._UZ(47,"app-notifications",33),t.qZA(),t.YNc(48,Tt,2,1,"div",34),t.YNc(49,At,14,2,"div",34),t.YNc(50,Ct,3,0,"div",34),t.qZA()(),t.TgZ(51,"div",32)(52,"div",16)(53,"app-material-tab",35),t.NdJ("listClicked",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.openAnime(i))})("gridClicked",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.openDorama(i))})("tableRowClicked",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.openFile(i))})("paginatorClicked",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.onPaginatorClicked(i))})("serverSideFilter",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.onServerSideFilter(i))})("serverSideOrder",function(i){t.CHM(e);const n=t.oxw();return t.KtG(n.onServerSideOrder(i))})("gridLoadNextPage",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onDoramaLoadNextPage())})("listLoadNextPage",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.onAnimeLoadNextPage())}),t.qZA()()()(),t._UZ(54,"div",36)(55,"div",37),t.qZA()}if(2&a){const e=t.oxw();t.xp6(6),t.Q6J("src",e.fansubData.image_url,t.LSH),t.xp6(4),t.hij(" ",t.xi3(11,26,e.fansubData.born,"d MMMM y")," "),t.xp6(4),t.hij(" ",e.fansubData.active?"Aktif":"Tidak Aktif"," "),t.xp6(1),t.Q6J("ngIf",e.fansubData.urls.facebook),t.xp6(1),t.Q6J("ngIf",e.fansubData.urls.discord),t.xp6(1),t.Q6J("ngIf",e.fansubData.urls.twitter),t.xp6(2),t.s9C("matTooltip",e.fansubData.user_?"Terakhir Di Ubah Oleh :: "+e.fansubData.user_.username:"Perbaharui Data Fansub"),t.xp6(7),t.Q6J("ngIf",!e.showPendingMember),t.xp6(2),t.hij(" ",e.showPendingMember?"Permintaan Gabung":"Anggota"," "),t.xp6(3),t.Q6J("ngIf",!e.showPendingMember&&e.approvedMembers.length<=0||e.showPendingMember&&e.pendingMembers.length<=0),t.xp6(1),t.Q6J("ngIf",!e.showPendingMember&&e.approvedMembers.length>0),t.xp6(1),t.Q6J("ngIf",e.showPendingMember&&e.pendingMembers.length>0),t.xp6(4),t.hij(" Lihat ",e.showPendingMember?"Anggota":"Permintaan Gabung"," "),t.xp6(1),t.Q6J("ngIf",!e.fansubData.dns_id),t.xp6(5),t.Oqu(e.fansubData.name),t.xp6(2),t.Q6J("chipData",e.chipData),t.xp6(3),t.Q6J("ngIf",e.panelData.length>0),t.xp6(1),t.Q6J("ngIf",e.rssFeedData.length>0),t.xp6(1),t.Q6J("ngIf",null==e.SS.mySocket?null:e.SS.mySocket.id),t.xp6(3),t.Q6J("tabData",e.tabData)("count",e.count)("serverSide",!0)("gridPageFinished",e.doramaPageFinished)("listPageFinished",e.animePageFinished),t.xp6(1),t.Udp("background-image","url("+e.fansubData.cover_url+")")}}let St=(()=>{class a{constructor(e,s,i,n,c,h,A,P,O,ce,ge,be,me){this.activatedRoute=e,this.router=s,this.bs=i,this.as=n,this.ds=c,this.gs=h,this.fs=A,this.pi=P,this.fansub=O,this.ss=ce,this.toast=ge,this.wb=be,this.berkas=me,this.fansubSlug="",this.fansubData=null,this.rssFeedData=[],this.approvedMembers=[],this.pendingMembers=[],this.joinedAsMember=null,this.showPendingMember=!1,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.animeFansub=[],this.doramaFansub=[],this.berkasFansub=[],this.allBerkasFansubId=[],this.animePageFinished=!1,this.doramaPageFinished=!1,this.animePage=1,this.doramaPage=1,this.chipData=[],this.panelData=[],this.tabData=[{name:"Anime",icon:"live_tv",type:"list",data:[]},{name:"Dorama",icon:"movie",type:"grid",data:[]},{name:"Berkas Terkait",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Pemilik"],row:[]}}],this.subsActRoute=null,this.subsFansub=null,this.subsBerkas=null,this.subsAnime=null,this.subsDorama=null,this.subsParam=null,this.subsRssFeed=null,this.subsFansubMemberGet=null,this.subsFansubMemberJoin=null,this.subsFansubMemberApproveReject=null,this.subsFansubMemberLeave=null,this.subsDialog=null,this.subsClaimSubDomain=null,this.subsTrusted=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}get ENV(){return K.N}ngOnDestroy(){this.subsActRoute?.unsubscribe(),this.subsFansub?.unsubscribe(),this.subsBerkas?.unsubscribe(),this.subsAnime?.unsubscribe(),this.subsDorama?.unsubscribe(),this.subsParam?.unsubscribe(),this.subsRssFeed?.unsubscribe(),this.subsFansubMemberGet?.unsubscribe(),this.subsFansubMemberJoin?.unsubscribe(),this.subsFansubMemberApproveReject?.unsubscribe(),this.subsFansubMemberLeave?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsClaimSubDomain?.unsubscribe(),this.subsTrusted?.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:e=>{this.fansubSlug=e.fansubSlug,this.getFansubDetail()}})}getFansubDetail(){this.bs.busy(),this.subsFansub=this.fansub.getFansub(this.fansubSlug).subscribe({next:e=>{if(this.gs.log("[FANSUB_DETAIL_SUCCESS]",e),this.fansubData=e.result,this.pi.updatePageMetaData(this.fansubData.name,this.fansubData.description,Array.isArray(this.fansubData.tags)?this.fansubData.tags.join(", "):this.fansubData.name,this.fansubData.image_url,this.fansubData.user_.username),this.bs.idle(),this.gs.isBrowser){if(Array.isArray(this.fansubData.tags))for(let s=0;s{this.gs.log("[FANSUB_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/fansub"}})}})}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansub(this.fansubSlug).subscribe({next:e=>{this.gs.log("[RSS_FEED_LIST_SUCCESS]",e),this.rssFeedData=e.results,this.bs.idle()},error:e=>{this.gs.log("[RSS_FEED_LIST_ERROR]",e,"error"),this.bs.idle()}})}showAllRssFeed(){this.router.navigate(["/rss-feed"],{queryParams:{q:this.fansubSlug}})}openRssFeed(e,s){const i=e.urls.web;if(i){const n=new URL(i);let c=`${n.protocol}//${n.host}`;s.startsWith("/")||(c+="/"),c+=s,this.wb.winboxOpenUri(c)}}getBerkasFansub(){this.bs.busy(),this.subsBerkas&&(this.subsBerkas.unsubscribe(),this.bs.idle()),this.subsBerkas=this.fansub.getBerkasFansub([this.fansubData.id],this.q,this.page,this.row,this.sort,this.order).subscribe({next:e=>{this.gs.log("[BERKAS_ANIME_SUCCESS]",e),this.count=e.count,this.berkasFansub=[];for(const s of e.results[this.fansubData.id])this.allBerkasFansubId.push(s.id),this.berkasFansub.push({id:s.id,private:s.private,foto:s.user_.image_url,Pemilik:s.user_.username,Proyek:s.project_type_.name,Tanggal:s.created_at,"Nama Berkas":s.name});this.tabData[2].data.row=this.berkasFansub,this.allBerkasFansubId.length>0&&this.checkTrusted(),this.bs.idle()},error:e=>{this.gs.log("[BERKAS_FANSUB_ERROR]",e,"error"),this.bs.idle()}})}checkTrusted(){this.bs.busy(),this.subsTrusted&&(this.subsTrusted.unsubscribe(),this.bs.idle()),this.subsTrusted=this.berkas.checkTrusted(this.allBerkasFansubId).subscribe({next:e=>{this.gs.log("[ANIME_BERKAS_TRUSTED_SUCCESS]",e);for(const s of this.berkasFansub)s.trusted=e.results[s.id];this.bs.idle()},error:e=>{this.gs.log("[ANIME_BERKAS_TRUSTED_ERROR]",e,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub([this.fansubData.id],this.animePage).subscribe({next:e=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",e);for(const s of e.results[this.fansubData.id])this.animeFansub.push({id:s.id,image:s.image_url,title:s.name});this.tabData[0].data=this.animeFansub,e.results[this.fansubData.id].length<=0&&(this.animePageFinished=!0),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_ANIME_ERROR]",e,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub([this.fansubData.id],this.doramaPage).subscribe({next:e=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",e);for(const s of e.results[this.fansubData.id])this.doramaFansub.push({id:s.id,image:s.image_url,title:s.name,slug:s.slug});this.tabData[1].data=this.doramaFansub,e.results[this.fansubData.id].length<=0&&(this.doramaPageFinished=!0),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DORAMA_ERROR]",e,"error"),this.bs.idle()}})}editFansubData(){this.router.navigateByUrl(`/fansub/${this.fansubSlug}/edit`)}onServerSideFilter(e){this.gs.log("[BERKAS_FANSUB_ENTER_FILTER]",e),this.q=e,this.getBerkasFansub()}onServerSideOrder(e){this.gs.log("[BERKAS_FANSUB_CLICK_ORDER]",e),this.q=e.q,this.sort=e.active,this.order=e.direction,this.getBerkasFansub()}onPaginatorClicked(e){this.gs.log("[FANSUB_DETAIL_CLICK_PAGINATOR]",e),this.page=e.pageIndex+1,this.row=e.pageSize,this.getBerkasFansub()}openFile(e){this.gs.log("[FANSUB_DETAIL_OPEN_FILE]",e),this.router.navigateByUrl(`/berkas/${e.id}`)}openAnime(e){this.gs.log("[FANSUB_DETAIL_OPEN_ANIME]",e);const s=e.title.replace(/[^a-zA-Z0-9]/g,"-");this.router.navigateByUrl(`/anime/${e.id}-${s}`)}openDorama(e){this.gs.log("[FANSUB_DETAIL_OPEN_DORAMA]",e),this.router.navigateByUrl(`/dorama/${e.slug}`)}openTag(e){this.gs.log("[FANSUB_DETAIL_OPEN_TAG]",e)}onAnimeLoadNextPage(){this.animePageFinished||(this.animePage++,this.getAnimeFansub())}onDoramaLoadNextPage(){this.doramaPageFinished||(this.doramaPage++,this.getDoramaFansub())}togglePendingMembers(){this.showPendingMember=!this.showPendingMember,this.getFansubMember()}getFansubMember(){this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_SUCCESS]",e),this.approvedMembers=[],this.pendingMembers=[];for(const s of e.results)s.approved?this.approvedMembers.push(s):this.pendingMembers.push(s);if(this.as.currentUserSubject?.value){const s=this.approvedMembers.findIndex(i=>i.user_.id===this.as.currentUserSubject?.value?.id);this.joinedAsMember=s>=0?this.approvedMembers[s]:null}this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_ERROR]",e,"error"),this.bs.idle()}})}joinLeaveMember(){this.bs.busy(),this.joinedAsMember?this.subsFansubMemberLeave=this.fansub.leaveFansubMember(this.joinedAsMember.id).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_SUCCESS]",e),this.getFansubMember(),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_ERROR]",e,"error"),this.getFansubMember(),this.bs.idle()}}):this.subsFansubMemberJoin=this.fansub.requestJoinFansubMember({slug:this.fansubSlug}).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_SUCCESS]",e),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Permintaan Gabung Berhasil",htmlMessage:"Silahkan Menghubungi Anggota Yang Sudah Tergabung / Admin / Moderator Fansub Untuk Menerima Permintaan Gabung.",confirmText:"Tutup"}}).afterClosed().subscribe({next:s=>{this.gs.log("[INFO_DIALOG_CLOSED]",s),this.getFansubMember(),this.subsDialog.unsubscribe()}})},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_ERROR]",e,"error"),this.getFansubMember(),this.bs.idle()}})}approveOrRejectFansubMember(e,s){this.subsDialog=this.ds.openInputDialog({data:{title:`Keterangan ${s?"Approve":"Reject"} '${e.user_.username}' :: '${e.fansub_.slug}'`,input:{keterangan:{inputLabel:"Keterangan",inputPlaceholder:"Pemilik, Translator, Timer, QA / QC, TypeSetter, dll.",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Max. 10 Huruf"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INPUT_DIALOG_CLOSED]",i),i?(this.bs.busy(),this.subsFansubMemberApproveReject=this.fansub.approveRejectFansubMember(e.id,{approved:s,keterangan:i.keterangan?.substring(0,10)}).subscribe({next:n=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_SUCCESS]",n),this.getFansubMember(),this.bs.idle()},error:n=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_ERROR]",n,"error"),this.getFansubMember(),this.bs.idle()}})):!1===i&&this.getFansubMember(),this.subsDialog.unsubscribe()}})}approveMember(e){this.approveOrRejectFansubMember(e,!0)}rejectMember(e){this.approveOrRejectFansubMember(e,!1)}getSubDomain(){this.as.currentUserSubject?.value?this.joinedAsMember||this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR?this.subsDialog=this.ds.openInputDialog({data:{title:`Buat CNAME / A Record IP v4 v6 :: '${this.fansubSlug}'`,input:{server_target:{inputLabel:"Server Target Domain IP Publik",inputPlaceholder:"127.0.0.1 | ghs.google.com | blablabla.id.repl.co",inputValue:null,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger / Replit",inputPlaceholder:"blablabla-name | slug-fs",inputValue:null,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger / Replit",inputPlaceholder:"blablabla-target.dv.googlehosted.com | replit-verify=blablabla",inputValue:null,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger / Replit"}}).afterClosed().subscribe({next:e=>{this.gs.log("[INPUT_DIALOG_CLOSED]",e),e&&(this.bs.busy(),this.subsClaimSubDomain=this.fansub.claimSubDomain({slug:this.fansubSlug,server_target:e.server_target,verification_name:e.verification_name,verification_target:e.verification_target}).subscribe({next:s=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_SUCCESS]",s),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Klaim Berhasil",htmlMessage:`\n Domain '${this.fansubSlug}.${this.ENV.domain}' Selesai Didaftarkan.\n Silahkan Tunggu Hingga Propagasi Dns Selesai.\n Untuk Mengubah, Silahkan Menuju Halaman User\n Apabila Ada Pertanyaan Dapat Langsung Menghubungi Admin / Moderator.\n Terima Kasih.\n `,confirmText:"Tutup"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INFO_DIALOG_CLOSED]",i),this.getFansubDetail(),this.subsDialog.unsubscribe()}})},error:s=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_ERROR]",s,"error"),this.bs.idle(),this.getFansubDetail()}})),this.subsDialog.unsubscribe()}}):this.toast.warning("Harus Menjadi Anggota Untuk Klaim Sub-Domain!","Whoops!",null,!0):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(r.gz),t.Y36(r.F0),t.Y36(R.z),t.Y36(G.e),t.Y36(at.x),t.Y36(y.U),t.Y36(B.r),t.Y36(it.Z),t.Y36(N.T),t.Y36(st.R),t.Y36(Y.k),t.Y36(J.N),t.Y36(nt.A))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fansub-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-info","align-items-center"],[1,"row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"fansub-image",3,"src"],[1,"col-12","text-center","pt-3"],["type","button","mat-button","","color","warn","matTooltip","Berdiri Sejak",1,"w-100"],["fontIcon","calendar_today",1,"me-1"],["type","button","mat-button","","color","accent","matTooltip","Status Fansub",1,"w-100"],["fontIcon","history",1,"me-1"],["class","col-12 text-center pt-3",4,"ngIf"],["type","button","mat-button","",1,"w-100","text-success",2,"color","rgb(255, 64, 129) !important",3,"matTooltip","click"],["fontIcon","edit",1,"me-1"],[1,"col-12"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],["class","float-end text-decoration-none text-warning","style","font-size: small; cursor: pointer;",3,"click",4,"ngIf"],[1,"text-bifeldy"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[4,"ngIf"],[3,"multiple",4,"ngIf"],["type","button","mat-button","","color","accent",1,"w-100",3,"click"],["fontIcon","manage_accounts",1,"me-1"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","mt-auto"],[1,"m-0"],[3,"chipData","chipClicked"],[1,"row"],[1,"px-0"],["class","row py-3",4,"ngIf"],[3,"tabData","count","serverSide","gridPageFinished","listPageFinished","listClicked","gridClicked","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder","gridLoadNextPage","listLoadNextPage"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],["mat-stroked-button","","matTooltip","Kunjungi Halaman Fanpage",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["fontIcon","facebook",1,"me-1"],["mat-stroked-button","","matTooltip","Kunjungi Ruang Obrolan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/discord/blue.png","width","24px"],["mat-stroked-button","","matTooltip","Lihat Cuitan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/twitter/blue.png","width","24px"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],[1,"bg-bifeldy","px-2","me-1",2,"position","absolute","right","0"],[1,"text-success",2,"cursor","pointer",3,"click"],[1,"text-danger",2,"cursor","pointer",3,"click"],[1,"text-warning",3,"routerLink"],["type","button","mat-button","","color","accent","matTooltip","Ambil / Klaim / Dapatkan Sub-Domain Ini",1,"w-100","shiny",3,"click"],["fontIcon","dns",1,"me-1"],[3,"panelData"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-bifeldy",2,"font-size","small"],[1,"text-warning","text-decoration-none",2,"cursor","pointer",3,"click"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-success",3,"innerHTML"]],template:function(e,s){1&e&&t.YNc(0,Dt,56,29,"div",0),2&e&&t.Q6J("ngIf",s.fansubData)},dependencies:[g.sg,g.O5,r.rH,S.lW,S.zs,q.Hw,E.eA,E.Nh,E.Ub,E.vS,H.gM,Q.H,ot.Q,rt.G,L.t,lt.Y,ut.d,g.uU,ct.R],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.fansub-image[_ngcontent-%COMP%]{width:100%}"]}),a})();var Et=o(8372),Ut=o(9094),Zt=o(8505),It=o(3900),Mt=o(5625),kt=o(7902),yt=o(3238),U=o(7331),w=o(9602),D=o(9549),Rt=o(4144),Nt=o(4385),Lt=o(3626);function wt(a,l){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function Pt(a,l){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function Ot(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"div",6)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.submitImage())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Bt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Tidak Boleh Kosong"),t.qZA())}function Jt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Link Tidak Valid"),t.qZA())}function Qt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Facebook Link Tidak Valid"),t.qZA())}function Kt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function Gt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Twitter Link Tidak Valid"),t.qZA())}function Yt(a,l){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.coverLimitExceeded)," !")}}function qt(a,l){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.coverErrorText)}}function Ht(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"div",66)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.submitCover())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function jt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Tidak Boleh Kosong"),t.qZA())}function zt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function $t(a,l){if(1&a&&(t.TgZ(0,"small",67)(1,"div"),t._uU(2),t.qZA()()),2&a){const e=t.oxw(3);t.xp6(2),t.Oqu(e.slugInfo)}}function Vt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Tidak Boleh Kosong"),t.qZA())}function Wt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),t.qZA())}function Xt(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Harus Diisi Secara Valid"),t.qZA())}function te(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ee(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Mohon Pilih Salah Satu"),t.qZA())}function ae(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ie(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",68),t.NdJ("removed",function(){const n=t.CHM(e).$implicit,c=t.oxw(3);return t.KtG(c.removeTag(n))}),t._uU(1),t._UZ(2,"mat-icon",69),t.qZA()}if(2&a){const e=l.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function se(a,l){1&a&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function ne(a,l){if(1&a&&(t.TgZ(0,"mat-form-field",23)(1,"mat-label"),t._uU(2,"URI / URL RSS v2.0 Feed"),t.qZA(),t._UZ(3,"input",70)(4,"mat-icon",71),t.TgZ(5,"mat-error"),t.YNc(6,se,2,0,"div",21),t.qZA()()),2&a){const e=t.oxw(3);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("rss_feed").hasError("pattern"))}}function oe(a,l){if(1&a){const e=t.EpF();t.TgZ(0,"form",8),t.NdJ("submit",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSubmit())}),t.TgZ(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),t._uU(5,"Perbaharui Data Fansub"),t.qZA()()(),t.TgZ(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",13)(10,"div",6),t._UZ(11,"img",15),t.TgZ(12,"mat-form-field",16)(13,"mat-label"),t._uU(14,"Foto"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",17,18),t.NdJ("change",function(i){t.CHM(e);const n=t.MAs(16),c=t.oxw(2);return t.KtG(c.uploadImage(i,n))}),t.qZA(),t._UZ(17,"mat-icon",19),t.qZA(),t.TgZ(18,"mat-error",20)(19,"small"),t.YNc(20,wt,3,3,"div",21),t.YNc(21,Pt,2,1,"div",21),t.qZA()()(),t.YNc(22,Ot,4,1,"div",22),t.qZA(),t.TgZ(23,"div",13)(24,"div",6)(25,"div",13)(26,"mat-form-field",23)(27,"mat-label"),t._uU(28,"Tautan Website"),t.qZA(),t._UZ(29,"input",24)(30,"mat-icon",25),t.TgZ(31,"mat-error"),t.YNc(32,Bt,2,0,"div",21),t.YNc(33,Jt,2,0,"div",21),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-label"),t._uU(36,"Facebook Fanpage"),t.qZA(),t._UZ(37,"input",26)(38,"mat-icon",27),t.TgZ(39,"mat-error"),t.YNc(40,Qt,2,0,"div",21),t.qZA()(),t.TgZ(41,"mat-form-field",23)(42,"mat-label"),t._uU(43,"Tautan Discord"),t.qZA(),t._UZ(44,"input",28),t.TgZ(45,"mat-icon",29),t._UZ(46,"img",30),t.qZA(),t.TgZ(47,"mat-error"),t.YNc(48,Kt,2,0,"div",21),t.qZA()(),t.TgZ(49,"mat-form-field",23)(50,"mat-label"),t._uU(51,"Cuitan Twitter"),t.qZA(),t._UZ(52,"input",31),t.TgZ(53,"mat-icon",29),t._UZ(54,"img",30),t.qZA(),t.TgZ(55,"mat-error"),t.YNc(56,Gt,2,0,"div",21),t.qZA()()()()()(),t.TgZ(57,"div",32)(58,"div",13)(59,"mat-form-field",16)(60,"mat-label"),t._uU(61,"Cover"),t.qZA(),t.TgZ(62,"ngx-mat-file-input",17,33),t.NdJ("change",function(i){t.CHM(e);const n=t.MAs(63),c=t.oxw(2);return t.KtG(c.uploadCover(i,n))}),t.qZA(),t._UZ(64,"mat-icon",19),t.qZA(),t.TgZ(65,"mat-error",20)(66,"small"),t.YNc(67,Yt,3,3,"div",21),t.YNc(68,qt,2,1,"div",21),t.qZA()(),t.YNc(69,Ht,4,1,"div",34),t.TgZ(70,"mat-form-field",35)(71,"mat-label"),t._uU(72,"Nama Fansub"),t.qZA(),t._UZ(73,"input",36)(74,"mat-icon",37),t.TgZ(75,"mat-error"),t.YNc(76,jt,2,0,"div",21),t.YNc(77,zt,2,0,"div",21),t.qZA()(),t.TgZ(78,"mat-form-field",38)(79,"mat-label"),t._uU(80,"Singkatan"),t.qZA(),t._UZ(81,"input",39)(82,"mat-icon",40),t.YNc(83,$t,3,1,"small",41),t.TgZ(84,"mat-error"),t.YNc(85,Vt,2,0,"div",21),t.YNc(86,Wt,2,0,"div",21),t.qZA()(),t._UZ(87,"angular-editor",42),t.TgZ(88,"mat-form-field",43)(89,"mat-label"),t._uU(90,"Mulai Ada Sejak"),t.qZA(),t.TgZ(91,"input",44),t.NdJ("focus",function(){t.CHM(e);const i=t.MAs(95);return t.KtG(i.open())}),t.ALo(92,"date"),t.qZA(),t._UZ(93,"mat-datepicker-toggle",45)(94,"mat-datepicker",46,47),t.TgZ(96,"mat-error"),t.YNc(97,Xt,2,0,"div",21),t.YNc(98,te,2,0,"div",21),t.qZA()(),t.TgZ(99,"mat-form-field",43)(100,"mat-label"),t._uU(101,"Status"),t.qZA(),t.TgZ(102,"mat-select",48)(103,"mat-option",49),t._uU(104,"Tidak Aktif"),t.qZA(),t.TgZ(105,"mat-option",50),t._uU(106,"Aktif"),t.qZA()(),t.TgZ(107,"mat-hint",51),t._uU(108,"Status Kehidupan Fansub Saat Ini"),t.qZA(),t.TgZ(109,"mat-error"),t.YNc(110,ee,2,0,"div",21),t.YNc(111,ae,2,0,"div",21),t.qZA()(),t.TgZ(112,"mat-form-field",23)(113,"mat-label"),t._uU(114,"Tags & Kategori"),t.qZA(),t.TgZ(115,"mat-chip-list",null,52),t.YNc(117,ie,3,2,"mat-chip",53),t.TgZ(118,"input",54),t.NdJ("matChipInputTokenEnd",function(i){t.CHM(e);const n=t.oxw(2);return t.KtG(n.addTag(i))}),t.qZA(),t._UZ(119,"mat-icon",55),t.qZA(),t.TgZ(120,"mat-hint",51),t._uU(121,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t.YNc(122,ne,7,2,"mat-form-field",56),t.qZA()()(),t.TgZ(123,"div",13)(124,"div",6)(125,"div",57),t._UZ(126,"div",58),t.TgZ(127,"div",59)(128,"a",60),t._UZ(129,"mat-icon",61),t._uU(130," Batal "),t.qZA()(),t.TgZ(131,"div",59)(132,"button",62),t._uU(133," Simpan "),t._UZ(134,"mat-icon",63),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(95),s=t.MAs(116),i=t.oxw(2);t.Q6J("formGroup",i.fg),t.xp6(11),t.Q6J("src",i.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",i.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",i.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",i.imageErrorText),t.xp6(1),t.Q6J("ngIf",i.image&&!i.fg.value.image),t.xp6(4),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",i.fg.get("web").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("web").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",i.fg.get("facebook").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/discord/",i.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",i.fg.get("discord").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/twitter/",i.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",i.fg.get("twitter").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",i.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",i.coverLimitExceeded),t.xp6(1),t.Q6J("ngIf",i.coverErrorText),t.xp6(1),t.Q6J("ngIf",i.cover&&!i.fg.value.cover),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",i.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngIf",i.slugInfo),t.xp6(2),t.Q6J("ngIf",i.fg.get("slug").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("slug").hasError("pattern")),t.xp6(1),t.Q6J("config",i.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("placeholder",t.xi3(92,50,i.currentDate,"d MMMM y")),t.Q6J("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(4),t.Q6J("ngIf",i.fg.get("born").hasError("required")||i.fg.get("born").hasError("matDatepickerParse")),t.xp6(1),t.Q6J("ngIf",i.fg.get("born").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(11),t.Q6J("ngIf",i.fg.get("active").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("active").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",i.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",i.GS.separatorKeysCodes)("matChipInputFor",s)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",i.rssFeedAllowed),t.xp6(6),t.Q6J("disabled",i.submitted),t.xp6(4),t.Q6J("disabled",i.submitted||i.fg.invalid||!i.fg.dirty)}}function re(a,l){if(1&a&&(t.TgZ(0,"div",1),t._UZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),t.TgZ(5,"div",5)(6,"div",6),t.YNc(7,oe,135,53,"form",7),t.qZA()()()),2&a){const e=t.oxw();t.xp6(1),t.Udp("background-image","url("+e.cover_url+")"),t.xp6(6),t.Q6J("ngIf",e.fg)}}const le=[{path:"",pathMatch:"full",component:tt},{path:":fansubSlug",children:[{path:"",pathMatch:"full",component:St},{path:"edit",component:(()=>{class a{constructor(e,s,i,n,c,h,A,P,O){this.fb=e,this.router=s,this.bs=i,this.activatedRoute=n,this.imgbb=c,this.fansub=h,this.toast=A,this.as=P,this.gs=O,this.fansubSlug="",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.cover=null,this.coverErrorText=null,this.coverLimitExceeded=null,this.cover_url="/assets/img/form/no-image.png",this.cover_url_original=null,this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsActRoute=null,this.subsFansubUpdate=null,this.subsFansubDetail=null,this.subsImgbb=null,this.subsCekFansubSlug=null,this.subsFansubMemberGet=null,this.slugInfo="",this.editable=!0,this.approvedMembers=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get rssFeedAllowed(){return this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR||this.as.currentUserSubject?.value?.role===_.yS.FANSUBBER}ngOnDestroy(){this.subsActRoute?.unsubscribe(),this.subsFansubUpdate?.unsubscribe(),this.subsFansubDetail?.unsubscribe(),this.subsImgbb?.unsubscribe(),this.subsFansubMemberGet?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.fansubSlug=this.activatedRoute.snapshot.paramMap.get("fansubSlug"),this.bs.busy(),this.subsFansubDetail=this.fansub.getFansub(this.fansubSlug).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_SUCCESS]",e),this.bs.idle(),this.editable=e.result.editable,this.editable?(this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:s=>{this.gs.log("[FANSUB_EDIT_MEMBER_LIST_SUCCESS]",s),this.bs.idle(),this.approvedMembers=[];for(const n of s.results)n.approved&&this.approvedMembers.push(n);this.approvedMembers.findIndex(n=>n.user_.id===this.as.currentUserSubject?.value?.id)>=0||this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR||this.as.currentUserSubject?.value?.id===e.result.user_.id?this.initForm(e.result):(this.toast.warning("Harus Menjadi Anggota Untuk Mengubah Data!","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:s=>{this.gs.log("[FANSUB_EDIT_MEMBER_LIST_ERROR]",s,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}})):(this.toast.warning("Data Fansub Ini Tidak Dapat Diubah","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:e=>{this.gs.log("[FANSUB_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}}))}initForm(e){this.image_url=e.image_url,this.image_url_original=this.image_url,this.cover_url=e.cover_url,this.cover_url_original=this.cover_url,this.fg=this.fb.group({name:[e.name,u.kI.compose([u.kI.required,u.kI.pattern(m.t.regexEnglishKeyboardKeys)])],description:[e.description,u.kI.compose([u.kI.required,u.kI.pattern(m.t.regexEnglishKeyboardKeys)])],born:[e.born,u.kI.compose([u.kI.required,u.kI.pattern(m.t.regexEnglishKeyboardKeys)])],active:[!0===e.active?"1":"0",u.kI.compose([u.kI.required,u.kI.pattern(m.t.regexEnglishKeyboardKeys)])],slug:[{value:e.slug,disabled:e.dns_id},u.kI.compose([u.kI.required,u.kI.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[e.tags,u.kI.compose([])],image:[null,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],cover:[null,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],web:[e.urls.web,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],facebook:[e.urls.facebook,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],discord:[e.urls.discord,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],twitter:[e.urls.twitter,u.kI.compose([u.kI.pattern(m.t.regexUrl)])],rss_feed:[e.rss_feed,u.kI.compose([u.kI.pattern(m.t.regexUrl)])]}),this.slugValueChanged()}slugValueChanged(){this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,Et.b)(500),(0,Ut.x)(),(0,Zt.b)(()=>this.slugInfo="Mengecek ..."),(0,It.w)(e=>this.fansub.cekSlug({slug:e})),(0,Mt.X)(-1)).subscribe({next:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_SUCCESS]",e),this.slugInfo=e.result.message},error:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_ERROR]",e,"error"),this.slugValueChanged()}})}addTag(e){const s=e.input,i=e.value;(i||"").trim()&&this.fg.value.tags.push(i.trim()),s&&(s.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((n,c,h)=>h.findIndex(A=>A===n)===c)),this.fg.controls.tags.markAsDirty()}removeTag(e){const s=this.fg.value.tags.indexOf(e);s>=0&&this.fg.value.tags.splice(s,1)}uploadImage(e,s){this.gambar=s,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const i=e.target.files[0];try{const n=new FileReader;n.readAsDataURL(i),n.onload=c=>{if(this.gs.log("[IMAGE_SELECTED]",c),i.size<=m.t.fileSizeImageLimit){const h=this.gs.document.createElement("img");h.onload=()=>{this.image=i,this.image_url=n.result.toString()},h.src=n.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=m.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}uploadCover(e,s){this.gambar_=s,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine();const i=e.target.files[0];try{const n=new FileReader;n.readAsDataURL(i),n.onload=c=>{if(this.gs.log("[COVER_SELECTED]",c),i.size<=m.t.fileSizeImageLimit){const h=this.gs.document.createElement("img");h.onload=()=>{this.cover=i,this.cover_url=n.result.toString()},h.src=n.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=m.t.fileSizeImageLimit,this.gambar_.clear(e)}}catch{this.cover=null,this.cover_url=this.cover_url_original,this.gambar_.clear(e)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:e=>{this.gs.log("[COVER_SUCCESS]",e),this.fg.controls.cover.patchValue(e.result.url),this.fg.controls.cover.markAsDirty(),this.submitted=!1},error:e=>{this.gs.log("[COVER_ERROR]",e,"error"),this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine(),this.submitted=!1,this.coverErrorText=e.result?.message||e.info}})}onSubmit(){this.bs.busy();const e={};this.fg.value.web&&(e.web=this.fg.value.web),this.fg.value.facebook&&(e.facebook=this.fg.value.facebook),this.fg.value.discord&&(e.discord=this.fg.value.discord),this.fg.value.twitter&&(e.twitter=this.fg.value.twitter);const s=this.gs.getDirtyValues(this.fg);if("web"in s&&delete s.web,"facebook"in s&&delete s.facebook,"discord"in s&&delete s.discord,"twitter"in s&&delete s.twitter,s.urls=e,this.gs.log("[FANSUB_EDIT_DIRTY]",s),this.submitted=!0,this.fg.value.rss_feed&&(!this.fg.value.web||!this.fg.value.rss_feed.startsWith(this.fg.value.web)))return this.toast.warning("RSS Feed Tidak Sesuai Dengan Alamat Web","URL RSS Feed & WEB",null,!0),this.submitted=!1,void this.bs.idle();const i=Object.keys(e).length;if(this.fg.invalid||0===i)return 0===i&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansubUpdate=this.fansub.updateFansub(this.fansubSlug,{...s}).subscribe({next:n=>{this.gs.log("[FANSUB_EDIT_SUCCESS]",n),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl(`/fansub/${n.result.slug}`)},error:n=>{this.gs.log("[FANSUB_EDIT_ERROR]",n,"error"),this.submitted=!1,this.bs.idle()}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(u.QS),t.Y36(r.F0),t.Y36(R.z),t.Y36(r.gz),t.Y36(kt.X),t.Y36(N.T),t.Y36(Y.k),t.Y36(G.e),t.Y36(y.U))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fansub-edit"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["fontIcon","web","matSuffix",""],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["fontIcon","facebook","matSuffix",""],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["matSuffix",""],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],[1,"col-12","col-md-7","col-xl-8","p-3"],["gambar_",""],["class","col-12 py-3",4,"ngIf"],["appearance","outline",1,"py-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan"],["fontIcon","wysiwyg","matSuffix",""],["appearance","outline","matTooltip","Digunakan Juga Untuk Sub-Domain",1,"py-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub"],["fontIcon","short_text","matSuffix",""],["class","text-info",4,"ngIf"],["formControlName","description",1,"py-3","w-100",3,"config"],["appearance","outline",1,"py-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif"],["value","0"],["value","1"],["align","end"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],[1,"col-12","py-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],["fontIcon","rss_feed","matSuffix",""]],template:function(e,s){1&e&&t.YNc(0,re,8,3,"div",0),2&e&&t.Q6J("ngIf",s.fg)},dependencies:[g.sg,g.O5,r.yS,yt.ey,S.lW,S.zs,U.qn,U.HS,U.oH,U.qH,w.Mq,w.hl,w.nW,q.Hw,D.TO,D.KE,D.bx,D.hX,D.R9,Rt.Nt,Nt.gD,H.gM,L.t,u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,C.Yh,T.s6,g.uU,Lt.$],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]}),a})(),canActivate:[M.H,I.t],data:{title:"Fansub - Ubah Data",description:"Halaman Pembaharuan Data Fansub",keywords:"Ubah Fansub",[m.t.decoratorVerifiedOnly]:!0,[m.t.decoratorRoles]:[_.yS.ADMIN,_.yS.MODERATOR,_.yS.FANSUBBER,_.yS.USER]}}]}];let ue=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[g.ez,r.Bz.forChild(le),d.m,b.L,k.$,v.P,p.m9,F.F,u.u5,u.UX,C.Ad,T.UM,j.b,f.T,z.d]}),a})()},7567:(Z,x,o)=>{o.d(x,{Q:()=>M});var g=o(7084),r=o(4650),u=o(257),T=o(6895),p=o(7392),C=o(266);function m(d,f){if(1&d&&r._UZ(0,"h3",8),2&d){const b=r.oxw().$implicit;r.Q6J("innerHTML",b.text,r.oJD)}}function _(d,f){if(1&d&&(r.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title",4)(3,"span",5),r._uU(4),r.qZA()(),r.TgZ(5,"mat-panel-description"),r._UZ(6,"mat-icon",6),r.qZA()(),r.YNc(7,m,1,1,"ng-template",7),r.qZA()),2&d){const b=f.$implicit,v=f.first,F=r.oxw(2);r.Q6J("expanded",F.GS.isDesktop&&v),r.xp6(3),r.s9C("matTooltip",b.tooltip),r.Q6J("matTooltipPosition","above"),r.xp6(1),r.hij(" ",b.title," "),r.xp6(2),r.Q6J("fontIcon",b.icon)}}function I(d,f){if(1&d&&(r.TgZ(0,"mat-accordion",1),r.YNc(1,_,8,5,"mat-expansion-panel",2),r.qZA()),2&d){const b=r.oxw();r.xp6(1),r.Q6J("ngForOf",b.panelData)}}let M=(()=>{class d{constructor(b){this.gs=b,this.panelData=[{title:"Title",icon:"warning",text:"Lorem ipsum ...",tooltip:"Info"}]}onResize(b){this.gs.onResize(b,"MATERIAL_EXPANSION_PANEL"),this.gs.isDesktop?this.accordion.openAll():this.accordion.closeAll()}get GS(){return this.gs}ngOnInit(){}}return d.\u0275fac=function(b){return new(b||d)(r.Y36(u.U))},d.\u0275cmp=r.Xpm({type:d,selectors:[["app-material-expansion-panel"]],viewQuery:function(b,v){if(1&b&&r.Gf(g.pp,5),2&b){let F;r.iGM(F=r.CRH())&&(v.accordion=F.first)}},hostBindings:function(b,v){1&b&&r.NdJ("resize",function(k){return v.onResize(k)},!1,r.Jf7)},inputs:{panelData:"panelData"},decls:1,vars:1,consts:[["class","example-headers-align","multi","",4,"ngIf"],["multi","",1,"example-headers-align"],[3,"expanded",4,"ngFor","ngForOf"],[3,"expanded"],[1,"font-weight-bold"],[3,"matTooltip","matTooltipPosition"],[1,"ms-auto",3,"fontIcon"],["matExpansionPanelContent",""],[1,"m-0","text-justify",2,"white-space","pre-line !important",3,"innerHTML"]],template:function(b,v){1&b&&r.YNc(0,I,2,1,"mat-accordion",0),2&b&&r.Q6J("ngIf",v.panelData.length>0)},dependencies:[T.sg,T.O5,g.pp,g.ib,g.yz,g.yK,g.u4,g.HS,p.Hw,C.gM]}),d})()},6020:(Z,x,o)=>{o.d(x,{$:()=>T});var g=o(6895),r=o(210),u=o(4650);let T=(()=>{class p{}return p.\u0275fac=function(m){return new(m||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[g.ez,r.m]}),p})()},7623:(Z,x,o)=>{o.d(x,{Q:()=>g});var g=(()=>{return(r=g||(g={})).BIRU="#7289DA",r.UNGU="#3F51B5",r.HITAM="#343A40",r.ABU="#A9A9A9",r.MERAH="#DC3545",r.PINK="#FF4081",r.OREN="#F44336",r.KUNING="#FFC107",r.HIJAU="#28A745",g;var r})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/478.ccada834b3753ed2.js b/dist/fansubid/browser/478.ccada834b3753ed2.js deleted file mode 100644 index 8c6323f24..000000000 --- a/dist/fansubid/browser/478.ccada834b3753ed2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[478],{8478:(Z,A,n)=>{n.r(A),n.d(A,{FansubModule:()=>ue});var c=n(6895),r=n(1390),u=n(4006),F=n(7375),p=n(4561),D=n(3170),b=n(6271),_=n(4249),M=n(2777),k=n(5094),d=n(210),f=n(7355),m=n(6436),x=n(4946),C=n(8613),y=n(6020),j=n(4167),z=n(2438),t=n(4650),R=n(257),N=n(3e3),O=n(6382),L=n(6781),J=n(8020),Q=n(8757),B=n(8616);function V(i,l){if(1&i&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("data",e.barChartAnimeData)("labels",e.barChartAnimeLabels)("chartType",e.barChartType)("options",e.barChartAnimeOptions)("plugins",e.chartPlugins)("legend",!1)}}function $(i,l){if(1&i&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("data",e.barChartDoramaData)("labels",e.barChartDoramaLabels)("chartType",e.barChartType)("options",e.barChartDoramaOptions)("plugins",e.chartPlugins)("legend",!1)}}function W(i,l){if(1&i&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("data",e.pieChartStatusData)("labels",e.pieChartStatusLabels)("chartType",e.pieChartType)("options",e.pieChartStatusOptions)("plugins",e.chartPlugins)("legend",!0)}}function X(i,l){if(1&i&&(t.TgZ(0,"div",5),t._UZ(1,"canvas",6),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("data",e.doughnutChartGarapanData)("labels",e.doughnutChartGarapanLabels)("chartType",e.doughnutChartType)("options",e.doughnutChartGarapanOptions)("plugins",e.chartPlugins)("legend",!0)}}let tt=(()=>{class i{constructor(e,s,a,o,g,h,T){this.activatedRoute=e,this.router=s,this.gs=a,this.bs=o,this.fs=g,this.fansub=h,this.wb=T,this.allFansubId=[],this.fansubData=[],this.tabData=[{name:"Katalog Fansub",icon:"closed_caption",type:"table",data:{column:["Status","Logo","Nama Fansub","Anime","Dorama","Tautan Komunitas"],row:[]}}],this.pieChartStatusOptions={title:{display:!0,text:"Kondisi Fansub Terkini"},responsive:!0,legend:{position:"right"}},this.doughnutChartGarapanOptions={title:{display:!0,text:"Total Garapan Fansub"},responsive:!0,legend:{position:"right"}},this.barChartAnimeOptions={title:{display:!0,text:"Garapan Anime Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.barChartDoramaOptions={title:{display:!0,text:"Garapan Dorama Terbanyak"},responsive:!0,legend:{position:"right"},scales:{xAxes:[{ticks:{beginAtZero:!0},gridLines:{color:"rgba(92,92,92,1)"}}],yAxes:[{gridLines:{color:"rgba(92,92,92,1)"}}]}},this.chartPlugins=[],this.pieChartStatusData=[],this.pieChartStatusLabels=[],this.doughnutChartGarapanData=[],this.doughnutChartGarapanLabels=[],this.barChartAnimeData=[],this.barChartAnimeLabels=[],this.barChartDoramaData=[],this.barChartDoramaLabels=[],this.pieChartType="pie",this.doughnutChartType="doughnut",this.barChartType="horizontalBar",this.fansubActive=0,this.fansubInActive=0,this.subsFansub=null,this.subsAnime=null,this.subsDorama=null,this.subsQueryParam=null,this.gs.bannerImg="/assets/img/banner/fansub.png",this.gs.sizeContain=!1,this.gs.bgRepeat=!1,this.gs.isBrowser&&((0,p.Dy)(),(0,p.bF)())}ngOnDestroy(){this.subsFansub?.unsubscribe(),this.subsAnime?.unsubscribe(),this.subsQueryParam?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.watchUrlRoute()}watchUrlRoute(){this.subsQueryParam=this.activatedRoute.queryParams.subscribe({next:e=>{this.bs.busy(),this.allFansubId=[],this.fansubData=[],this.fansubActive=0,this.fansubInActive=0,this.doughnutChartGarapanLabels=[],this.doughnutChartGarapanData=[],this.barChartAnimeLabels=[],this.barChartAnimeData=[],this.barChartDoramaLabels=[],this.barChartDoramaData=[],this.bs.idle(),this.getFansubData()}})}getFansubData(){this.bs.busy(),this.subsFansub=this.fansub.getAllFansub().subscribe({next:e=>{this.gs.log("[FANSUB_LIST_SUCCESS]",e);for(const s of e.results){this.allFansubId.push(s.id);const a=[];if(Array.isArray(s.urls))for(const o of s.urls)a.push({type:"button",icon:"discord"===o.name||"twitter"===o.name?void 0:o.name,image:"discord"===o.name?"/assets/img/discord/blue.png":"twitter"===o.name?"/assets/img/twitter/blue.png":void 0,url:o.url,name:o.name});this.fansubData.push({id:s.id,slug:s.slug,Logo:s.image_url,Status:s.active?"AKTIF":"TIDAK AKTIF","Nama Fansub":s.name,"Tautan Komunitas":a}),s.active?this.fansubActive++:s.active||this.fansubInActive++}this.pieChartStatusLabels=["Aktif","Tidak Aktif"],this.pieChartStatusData=[this.fansubActive,this.fansubInActive],this.tabData[0].data.row=this.fansubData,this.getAnimeFansub(),this.getDoramaFansub(),this.fs.initializeFab("add",null,"Tambahkan Fansub Baru","/create/fansub",!1),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_LIST_ERROR]",e,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub(this.allFansubId).subscribe({next:e=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",e);for(const a of this.fansubData)a.Anime=e.results[a.id];this.doughnutChartGarapanLabels.push("Anime"),this.doughnutChartGarapanData.push(e.count);const s=[...this.fansubData].sort((a,o)=>o.Anime-a.Anime).slice(0,10);for(const a of s)this.barChartAnimeLabels.push(a["Nama Fansub"]),this.barChartAnimeData.push(a.Anime);this.bs.idle()},error:e=>{this.gs.log("[FANSUB_ANIME_ERROR]",e,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub(this.allFansubId).subscribe({next:e=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",e);for(const a of this.fansubData)a.Dorama=e.results[a.id];this.doughnutChartGarapanLabels.push("Dorama"),this.doughnutChartGarapanData.push(e.count);const s=[...this.fansubData].sort((a,o)=>o.Dorama-a.Dorama).slice(0,10);for(const a of s)this.barChartDoramaLabels.push(a["Nama Fansub"]),this.barChartDoramaData.push(a.Dorama);this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DORAMA_ERROR]",e,"error"),this.bs.idle()}})}openFansub(e){this.gs.log("[FANSUB_LIST_OPEN_FANSUB]",e),this.router.navigateByUrl(`/fansub/${e.slug}`)}openUrl(e){this.gs.log("[FANSUB_LIST_OPEN_URL]",e),this.wb.winboxOpenUri(e.url)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(r.gz),t.Y36(r.F0),t.Y36(R.U),t.Y36(N.z),t.Y36(O.r),t.Y36(L.T),t.Y36(J.N))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-fansub-list"]],decls:9,vars:5,consts:[[1,"container"],[1,"row","p-3"],["class","col-12 col-md-6 py-1 bg-bifeldy",4,"ngIf"],[1,"row","pt-3"],[3,"tabData","tableRowClicked","buttonClicked"],[1,"col-12","col-md-6","py-1","bg-bifeldy"],["baseChart","",3,"data","labels","chartType","options","plugins","legend"]],template:function(e,s){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1),t.YNc(3,V,2,6,"div",2),t.YNc(4,$,2,6,"div",2),t.YNc(5,W,2,6,"div",2),t.YNc(6,X,2,6,"div",2),t.qZA(),t.TgZ(7,"div",3)(8,"app-material-tab",4),t.NdJ("tableRowClicked",function(o){return s.openFansub(o)})("buttonClicked",function(o){return s.openUrl(o)}),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",s.barChartAnimeData.length>0&&s.barChartAnimeLabels.length>0),t.xp6(1),t.Q6J("ngIf",s.barChartDoramaData.length>0&&s.barChartDoramaLabels.length>0),t.xp6(1),t.Q6J("ngIf",2===s.pieChartStatusData.length&&2===s.pieChartStatusLabels.length),t.xp6(1),t.Q6J("ngIf",2===s.doughnutChartGarapanData.length&&2===s.doughnutChartGarapanLabels.length),t.xp6(2),t.Q6J("tabData",s.tabData))},dependencies:[c.O5,Q.H,p.jh,B.t]}),i})();var K=n(5934),et=n(7623),G=n(4137),at=n(7845),it=n(8745),st=n(8381),Y=n(6925),nt=n(8987),E=n(4859),q=n(7392),U=n(6338),H=n(266),ot=n(7567),rt=n(4028),lt=n(325),ut=n(192),ct=n(6766);function mt(i,l){if(1&i&&(t.TgZ(0,"div",8)(1,"a",38),t._UZ(2,"mat-icon",39),t._uU(3," Facebook Fanpage "),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.getUrlByName("facebook"),t.LSH)}}function gt(i,l){if(1&i&&(t.TgZ(0,"div",8)(1,"a",40),t._UZ(2,"img",41),t._uU(3," Ruang Obrolan Discord "),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.getUrlByName("discord"),t.LSH)}}function bt(i,l){if(1&i&&(t.TgZ(0,"div",8)(1,"a",42),t._UZ(2,"img",43),t._uU(3," Cuitan Twitter "),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("href",e.getUrlByName("twitter"),t.LSH)}}function dt(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"a",44),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.joinLeaveMember())}),t._uU(1),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.joinedAsMember?"Keluar":"Gabung"," ")}}function ht(i,l){1&i&&t._UZ(0,"app-no-data")}function pt(i,l){if(1&i&&(t.TgZ(0,"mat-list-option",47),t._UZ(1,"img",48),t.TgZ(2,"a",49)(3,"span",50),t._uU(4),t.qZA(),t.TgZ(5,"span",51),t._uU(6),t.qZA()()()),2&i){const e=l.$implicit;t.MGl("routerLink","/user/",e.user_.username,""),t.xp6(1),t.s9C("src",e.user_.image_url,t.LSH),t.xp6(3),t.hij(" ",e.keterangan," "),t.xp6(2),t.Oqu(e.user_.username)}}function _t(i,l){if(1&i&&(t.TgZ(0,"mat-selection-list",45),t.YNc(1,pt,7,4,"mat-list-option",46),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.approvedMembers)}}function ft(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-option",53),t._UZ(1,"img",48),t.TgZ(2,"a",49)(3,"span",54)(4,"small",55),t.NdJ("click",function(){const o=t.CHM(e).$implicit,g=t.oxw(3);return t.KtG(g.approveMember(o))}),t._uU(5," Terima "),t.qZA(),t._uU(6," | "),t.TgZ(7,"small",56),t.NdJ("click",function(){const o=t.CHM(e).$implicit,g=t.oxw(3);return t.KtG(g.rejectMember(o))}),t._uU(8," Tolak "),t.qZA()(),t.TgZ(9,"span",57),t._uU(10),t.qZA()()()}if(2&i){const e=l.$implicit;t.xp6(1),t.s9C("src",e.user_.image_url,t.LSH),t.xp6(8),t.MGl("routerLink","/user/",e.user_.username,""),t.xp6(1),t.hij(" ",e.user_.username," ")}}function vt(i,l){if(1&i&&(t.TgZ(0,"mat-selection-list",45),t.YNc(1,ft,11,3,"mat-list-option",52),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.pendingMembers)}}function xt(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"div",8)(1,"button",58),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSubDomain())}),t._UZ(2,"mat-icon",59),t._uU(3),t.qZA()()}if(2&i){const e=t.oxw(2);t.xp6(3),t.AsE(" 'https://",e.fansubData.slug,".",e.ENV.domain,"' ")}}function Tt(i,l){if(1&i&&(t.TgZ(0,"div",17),t._UZ(1,"app-material-expansion-panel",60),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("panelData",e.panelData)}}function At(i,l){if(1&i&&(t.TgZ(0,"mat-list-option",53),t._UZ(1,"mat-icon",65),t.TgZ(2,"a",66)(3,"span",67),t._uU(4),t.ALo(5,"dateAgo"),t.qZA(),t._UZ(6,"span",68),t.qZA()()),2&i){const e=l.$implicit;t.xp6(2),t.s9C("href",e.link,t.LSH),t.xp6(2),t.Oqu(t.lcZ(5,3,e.created_at)),t.xp6(2),t.Q6J("innerHTML",e.title,t.oJD)}}function Ft(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"div",17)(1,"div",61)(2,"h2",62)(3,"span",63)(4,"a",64),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getRssFeed())}),t._uU(5," Refresh "),t.qZA(),t._uU(6," | "),t.TgZ(7,"a",64),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.showAllRssFeed())}),t._uU(8," Lainnya "),t.qZA()(),t.TgZ(9,"b",21),t._uU(10,"RSS Feed Fansub"),t.qZA()()(),t.TgZ(11,"div",16)(12,"mat-selection-list",45),t.YNc(13,At,7,5,"mat-list-option",52),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(12),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",e.rssFeedData)}}function Ct(i,l){1&i&&(t.TgZ(0,"div",17)(1,"div",16),t._UZ(2,"app-report"),t.qZA()())}function Dt(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),t._UZ(6,"img",7),t.qZA(),t.TgZ(7,"div",8)(8,"button",9),t._UZ(9,"mat-icon",10),t._uU(10),t.ALo(11,"date"),t.qZA(),t.TgZ(12,"button",11),t._UZ(13,"mat-icon",12),t._uU(14),t.qZA()(),t.YNc(15,mt,4,1,"div",13),t.YNc(16,gt,4,1,"div",13),t.YNc(17,bt,4,1,"div",13),t.TgZ(18,"div",8)(19,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.editFansubData())}),t._UZ(20,"mat-icon",15),t._uU(21," Perbaharui Informasi "),t.qZA()(),t.TgZ(22,"div",16)(23,"div",17)(24,"div",18)(25,"h2",19),t.YNc(26,dt,2,1,"a",20),t.TgZ(27,"b",21),t._uU(28),t.qZA()()(),t.TgZ(29,"div",22)(30,"div",23),t.YNc(31,ht,1,0,"app-no-data",24),t.YNc(32,_t,2,2,"mat-selection-list",25),t.YNc(33,vt,2,2,"mat-selection-list",25),t.qZA()(),t.TgZ(34,"div",8)(35,"button",26),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.togglePendingMembers())}),t._UZ(36,"mat-icon",27),t._uU(37),t.qZA()()()(),t.YNc(38,xt,4,2,"div",13),t.qZA()(),t.TgZ(39,"div",28)(40,"div",29)(41,"h1",30)(42,"b"),t._uU(43),t.qZA()()(),t.TgZ(44,"div",17)(45,"app-material-chip",31),t.NdJ("chipClicked",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.openTag(a))}),t.qZA()(),t.TgZ(46,"div",32),t._UZ(47,"app-notifications",33),t.qZA(),t.YNc(48,Tt,2,1,"div",34),t.YNc(49,Ft,14,2,"div",34),t.YNc(50,Ct,3,0,"div",34),t.qZA()(),t.TgZ(51,"div",32)(52,"div",16)(53,"app-material-tab",35),t.NdJ("listClicked",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.openAnime(a))})("gridClicked",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.openDorama(a))})("tableRowClicked",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.openFile(a))})("paginatorClicked",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onPaginatorClicked(a))})("serverSideFilter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onServerSideFilter(a))})("serverSideOrder",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onServerSideOrder(a))})("gridLoadNextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDoramaLoadNextPage())})("listLoadNextPage",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAnimeLoadNextPage())}),t.qZA()()()(),t._UZ(54,"div",36)(55,"div",37),t.qZA()}if(2&i){const e=t.oxw();t.xp6(6),t.Q6J("src",e.fansubData.image_url,t.LSH),t.xp6(4),t.hij(" ",t.xi3(11,26,e.fansubData.born,"d MMMM y")," "),t.xp6(4),t.hij(" ",e.fansubData.active?"Aktif":"Tidak Aktif"," "),t.xp6(1),t.Q6J("ngIf",e.getUrlByName("facebook")),t.xp6(1),t.Q6J("ngIf",e.getUrlByName("discord")),t.xp6(1),t.Q6J("ngIf",e.getUrlByName("twitter")),t.xp6(2),t.s9C("matTooltip",e.fansubData.user_?"Terakhir Di Ubah Oleh :: "+e.fansubData.user_.username:"Perbaharui Data Fansub"),t.xp6(7),t.Q6J("ngIf",!e.showPendingMember),t.xp6(2),t.hij(" ",e.showPendingMember?"Permintaan Gabung":"Anggota"," "),t.xp6(3),t.Q6J("ngIf",!e.showPendingMember&&e.approvedMembers.length<=0||e.showPendingMember&&e.pendingMembers.length<=0),t.xp6(1),t.Q6J("ngIf",!e.showPendingMember&&e.approvedMembers.length>0),t.xp6(1),t.Q6J("ngIf",e.showPendingMember&&e.pendingMembers.length>0),t.xp6(4),t.hij(" Lihat ",e.showPendingMember?"Anggota":"Permintaan Gabung"," "),t.xp6(1),t.Q6J("ngIf",!e.fansubData.dns_id),t.xp6(5),t.Oqu(e.fansubData.name),t.xp6(2),t.Q6J("chipData",e.chipData),t.xp6(3),t.Q6J("ngIf",e.panelData.length>0),t.xp6(1),t.Q6J("ngIf",e.rssFeedData.length>0),t.xp6(1),t.Q6J("ngIf",null==e.SS.mySocket?null:e.SS.mySocket.id),t.xp6(3),t.Q6J("tabData",e.tabData)("count",e.count)("serverSide",!0)("gridPageFinished",e.doramaPageFinished)("listPageFinished",e.animePageFinished),t.xp6(1),t.Udp("background-image","url("+e.fansubData.cover_url+")")}}let St=(()=>{class i{constructor(e,s,a,o,g,h,T,v,w,ce,me,ge,be){this.activatedRoute=e,this.router=s,this.bs=a,this.as=o,this.ds=g,this.gs=h,this.fs=T,this.pi=v,this.fansub=w,this.ss=ce,this.toast=me,this.wb=ge,this.berkas=be,this.fansubSlug="",this.fansubData=null,this.rssFeedData=[],this.approvedMembers=[],this.pendingMembers=[],this.joinedAsMember=null,this.showPendingMember=!1,this.count=0,this.page=1,this.row=10,this.q="",this.sort="",this.order="",this.animeFansub=[],this.doramaFansub=[],this.berkasFansub=[],this.allBerkasFansubId=[],this.animePageFinished=!1,this.doramaPageFinished=!1,this.animePage=1,this.doramaPage=1,this.chipData=[],this.panelData=[],this.tabData=[{name:"Anime",icon:"live_tv",type:"list",data:[]},{name:"Dorama",icon:"movie",type:"grid",data:[]},{name:"Berkas Terkait",icon:"file_copy",type:"table",data:{column:["Proyek","Nama Berkas","Tanggal","Pemilik"],row:[]}}],this.subsActRoute=null,this.subsFansub=null,this.subsBerkas=null,this.subsAnime=null,this.subsDorama=null,this.subsParam=null,this.subsRssFeed=null,this.subsFansubMemberGet=null,this.subsFansubMemberJoin=null,this.subsFansubMemberApproveReject=null,this.subsFansubMemberLeave=null,this.subsDialog=null,this.subsClaimSubDomain=null,this.subsTrusted=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get SS(){return this.ss}get ENV(){return K.N}ngOnDestroy(){this.subsActRoute?.unsubscribe(),this.subsFansub?.unsubscribe(),this.subsBerkas?.unsubscribe(),this.subsAnime?.unsubscribe(),this.subsDorama?.unsubscribe(),this.subsParam?.unsubscribe(),this.subsRssFeed?.unsubscribe(),this.subsFansubMemberGet?.unsubscribe(),this.subsFansubMemberJoin?.unsubscribe(),this.subsFansubMemberApproveReject?.unsubscribe(),this.subsFansubMemberLeave?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsClaimSubDomain?.unsubscribe(),this.subsTrusted?.unsubscribe()}ngOnInit(){this.subsParam=this.activatedRoute.params.subscribe({next:e=>{this.fansubSlug=e.fansubSlug,this.getFansubDetail()}})}getFansubDetail(){this.bs.busy(),this.subsFansub=this.fansub.getFansub(this.fansubSlug).subscribe({next:e=>{if(this.gs.log("[FANSUB_DETAIL_SUCCESS]",e),this.fansubData=e.result,this.pi.updatePageMetaData(this.fansubData.name,this.fansubData.description,Array.isArray(this.fansubData.tags)?this.fansubData.tags.join(", "):this.fansubData.name,this.fansubData.image_url,this.fansubData.user_.username),this.bs.idle(),this.gs.isBrowser){if(Array.isArray(this.fansubData.tags))for(let a=0;a{this.gs.log("[FANSUB_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:"/fansub"}})}})}getUrlByName(e){const s=this.fansubData.urls.find(a=>a.name===e);return s?s.url:null}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansub(this.fansubSlug).subscribe({next:e=>{this.gs.log("[RSS_FEED_LIST_SUCCESS]",e),this.rssFeedData=e.results,this.bs.idle()},error:e=>{this.gs.log("[RSS_FEED_LIST_ERROR]",e,"error"),this.bs.idle()}})}showAllRssFeed(){this.router.navigate(["/rss-feed"],{queryParams:{q:this.fansubSlug}})}openRssFeed(e){this.wb.winboxOpenUri(e)}getBerkasFansub(){this.bs.busy(),this.subsBerkas&&(this.subsBerkas.unsubscribe(),this.bs.idle()),this.subsBerkas=this.fansub.getBerkasFansub([this.fansubData.id],this.q,this.page,this.row,this.sort,this.order).subscribe({next:e=>{this.gs.log("[BERKAS_ANIME_SUCCESS]",e),this.count=e.count,this.berkasFansub=[];for(const s of e.results[this.fansubData.id])this.allBerkasFansubId.push(s.id),this.berkasFansub.push({id:s.id,private:s.private,foto:s.user_.image_url,Pemilik:s.user_.username,Proyek:s.project_type_.name,Tanggal:s.created_at,"Nama Berkas":s.name});this.tabData[2].data.row=this.berkasFansub,this.allBerkasFansubId.length>0&&this.checkTrusted(),this.bs.idle()},error:e=>{this.gs.log("[BERKAS_FANSUB_ERROR]",e,"error"),this.bs.idle()}})}checkTrusted(){this.bs.busy(),this.subsTrusted&&(this.subsTrusted.unsubscribe(),this.bs.idle()),this.subsTrusted=this.berkas.checkTrusted(this.allBerkasFansubId).subscribe({next:e=>{this.gs.log("[ANIME_BERKAS_TRUSTED_SUCCESS]",e);for(const s of this.berkasFansub)s.trusted=e.results[s.id];this.bs.idle()},error:e=>{this.gs.log("[ANIME_BERKAS_TRUSTED_ERROR]",e,"error"),this.bs.idle()}})}getAnimeFansub(){this.bs.busy(),this.subsAnime=this.fansub.getAnimeFansub([this.fansubData.id],this.animePage).subscribe({next:e=>{this.gs.log("[FANSUB_ANIME_SUCCESS]",e);for(const s of e.results[this.fansubData.id])this.animeFansub.push({id:s.id,image:s.image_url,title:s.name});this.tabData[0].data=this.animeFansub,e.results[this.fansubData.id].length<=0&&(this.animePageFinished=!0),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_ANIME_ERROR]",e,"error"),this.bs.idle()}})}getDoramaFansub(){this.bs.busy(),this.subsDorama=this.fansub.getDoramaFansub([this.fansubData.id],this.doramaPage).subscribe({next:e=>{this.gs.log("[FANSUB_DORAMA_SUCCESS]",e);for(const s of e.results[this.fansubData.id])this.doramaFansub.push({id:s.id,image:s.image_url,title:s.name,slug:s.slug});this.tabData[1].data=this.doramaFansub,e.results[this.fansubData.id].length<=0&&(this.doramaPageFinished=!0),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DORAMA_ERROR]",e,"error"),this.bs.idle()}})}editFansubData(){this.router.navigateByUrl(`/fansub/${this.fansubSlug}/edit`)}onServerSideFilter(e){this.gs.log("[BERKAS_FANSUB_ENTER_FILTER]",e),this.q=e,this.getBerkasFansub()}onServerSideOrder(e){this.gs.log("[BERKAS_FANSUB_CLICK_ORDER]",e),this.q=e.q,this.sort=e.active,this.order=e.direction,this.getBerkasFansub()}onPaginatorClicked(e){this.gs.log("[FANSUB_DETAIL_CLICK_PAGINATOR]",e),this.page=e.pageIndex+1,this.row=e.pageSize,this.getBerkasFansub()}openFile(e){this.gs.log("[FANSUB_DETAIL_OPEN_FILE]",e),this.router.navigateByUrl(`/berkas/${e.id}`)}openAnime(e){this.gs.log("[FANSUB_DETAIL_OPEN_ANIME]",e);const s=e.title.replace(/[^a-zA-Z0-9]/g,"-");this.router.navigateByUrl(`/anime/${e.id}-${s}`)}openDorama(e){this.gs.log("[FANSUB_DETAIL_OPEN_DORAMA]",e),this.router.navigateByUrl(`/dorama/${e.slug}`)}openTag(e){this.gs.log("[FANSUB_DETAIL_OPEN_TAG]",e)}onAnimeLoadNextPage(){this.animePageFinished||(this.animePage++,this.getAnimeFansub())}onDoramaLoadNextPage(){this.doramaPageFinished||(this.doramaPage++,this.getDoramaFansub())}togglePendingMembers(){this.showPendingMember=!this.showPendingMember,this.getFansubMember()}getFansubMember(){this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_SUCCESS]",e),this.approvedMembers=[],this.pendingMembers=[];for(const s of e.results)s.approved?this.approvedMembers.push(s):this.pendingMembers.push(s);if(this.as.currentUserSubject?.value){const s=this.approvedMembers.findIndex(a=>a.user_.id===this.as.currentUserSubject?.value?.id);this.joinedAsMember=s>=0?this.approvedMembers[s]:null}this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LIST_ERROR]",e,"error"),this.bs.idle()}})}joinLeaveMember(){this.bs.busy(),this.joinedAsMember?this.subsFansubMemberLeave=this.fansub.leaveFansubMember(this.joinedAsMember.id).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_SUCCESS]",e),this.getFansubMember(),this.bs.idle()},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_LEAVE_ERROR]",e,"error"),this.getFansubMember(),this.bs.idle()}}):this.subsFansubMemberJoin=this.fansub.requestJoinFansubMember({slug:this.fansubSlug}).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_SUCCESS]",e),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Permintaan Gabung Berhasil",htmlMessage:"Silahkan Menghubungi Anggota Yang Sudah Tergabung / Admin / Moderator Fansub Untuk Menerima Permintaan Gabung.",confirmText:"Tutup"}}).afterClosed().subscribe({next:s=>{this.gs.log("[INFO_DIALOG_CLOSED]",s),this.getFansubMember(),this.subsDialog.unsubscribe()}})},error:e=>{this.gs.log("[FANSUB_DETAIL_MEMBER_JOIN_ERROR]",e,"error"),this.getFansubMember(),this.bs.idle()}})}approveOrRejectFansubMember(e,s){this.subsDialog=this.ds.openInputDialog({data:{title:`Keterangan ${s?"Approve":"Reject"} '${e.user_.username}' :: '${e.fansub_.slug}'`,input:{keterangan:{inputLabel:"Keterangan",inputPlaceholder:"Pemilik, Translator, Timer, QA / QC, TypeSetter, dll.",inputValue:null,inputRequired:!0}},confirmText:"OK",cancelText:"Batal",infoText:"Max. 10 Huruf"}}).afterClosed().subscribe({next:a=>{this.gs.log("[INPUT_DIALOG_CLOSED]",a),a?(this.bs.busy(),this.subsFansubMemberApproveReject=this.fansub.approveRejectFansubMember(e.id,{approved:s,keterangan:a.keterangan?.substring(0,10)}).subscribe({next:o=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_SUCCESS]",o),this.getFansubMember(),this.bs.idle()},error:o=>{this.gs.log("[FANSUB_DETAIL_MEMBER_APPROVE_REJECT_ERROR]",o,"error"),this.getFansubMember(),this.bs.idle()}})):!1===a&&this.getFansubMember(),this.subsDialog.unsubscribe()}})}approveMember(e){this.approveOrRejectFansubMember(e,!0)}rejectMember(e){this.approveOrRejectFansubMember(e,!1)}getSubDomain(){this.as.currentUserSubject?.value?this.joinedAsMember||this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR?this.subsDialog=this.ds.openInputDialog({data:{title:`Buat CNAME / A Record IP v4 v6 :: '${this.fansubSlug}'`,input:{server_target:{inputLabel:"Server Target Domain IP Publik",inputPlaceholder:"127.0.0.1 | ghs.google.com | blablabla.id.repl.co",inputValue:null,inputRequired:!0},verification_name:{inputLabel:"Tambahan Khusus Blogger / Replit",inputPlaceholder:"blablabla-name | slug-fs",inputValue:null,inputRequired:!1},verification_target:{inputLabel:"Tambahan Khusus Blogger / Replit",inputPlaceholder:"blablabla-target.dv.googlehosted.com | replit-verify=blablabla",inputValue:null,inputRequired:!1}},confirmText:"OK",cancelText:"Batal",infoText:"Abaikan 2 Input Terakhir Jika Bukan Blogger / Replit"}}).afterClosed().subscribe({next:e=>{this.gs.log("[INPUT_DIALOG_CLOSED]",e),e&&(this.bs.busy(),this.subsClaimSubDomain=this.fansub.claimSubDomain({slug:this.fansubSlug,server_target:e.server_target,verification_name:e.verification_name,verification_target:e.verification_target}).subscribe({next:s=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_SUCCESS]",s),this.bs.idle(),this.subsDialog=this.ds.openInfoDialog({data:{title:"Klaim Berhasil",htmlMessage:`\n Domain '${this.fansubSlug}.${this.ENV.domain}' Selesai Didaftarkan.\n Silahkan Tunggu Hingga Propagasi Dns Selesai.\n Untuk Mengubah, Silahkan Menuju Halaman User\n Apabila Ada Pertanyaan Dapat Langsung Menghubungi Admin / Moderator.\n Terima Kasih.\n `,confirmText:"Tutup"}}).afterClosed().subscribe({next:a=>{this.gs.log("[INFO_DIALOG_CLOSED]",a),this.getFansubDetail(),this.subsDialog.unsubscribe()}})},error:s=>{this.gs.log("[FANSUB_CLAIM_SUBDOMAIN_ERROR]",s,"error"),this.bs.idle(),this.getFansubDetail()}})),this.subsDialog.unsubscribe()}}):this.toast.warning("Harus Menjadi Anggota Untuk Klaim Sub-Domain!","Whoops!",null,!0):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(r.gz),t.Y36(r.F0),t.Y36(N.z),t.Y36(G.e),t.Y36(at.x),t.Y36(R.U),t.Y36(O.r),t.Y36(it.Z),t.Y36(L.T),t.Y36(st.R),t.Y36(Y.k),t.Y36(J.N),t.Y36(nt.A))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-fansub-detail"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-info","align-items-center"],[1,"row","py-3","px-2"],[1,"col-md-4","col-xl-3","px-3"],[1,"row","sticky-top","pt-3"],[1,"col-12","pt-4"],[1,"fansub-image",3,"src"],[1,"col-12","text-center","pt-3"],["type","button","mat-button","","color","warn","matTooltip","Berdiri Sejak",1,"w-100"],["fontIcon","calendar_today",1,"me-1"],["type","button","mat-button","","color","accent","matTooltip","Status Fansub",1,"w-100"],["fontIcon","history",1,"me-1"],["class","col-12 text-center pt-3",4,"ngIf"],["type","button","mat-button","",1,"w-100","text-success",2,"color","rgb(255, 64, 129) !important",3,"matTooltip","click"],["fontIcon","edit",1,"me-1"],[1,"col-12"],[1,"row","py-3"],[1,"col-12","pt-3","sticky-top","bg-bifeldy"],[1,"border-bottom-dotted"],["class","float-end text-decoration-none text-warning","style","font-size: small; cursor: pointer;",3,"click",4,"ngIf"],[1,"text-bifeldy"],[1,"col-12",2,"max-height","288px"],[1,"h-100",2,"overflow-y","auto"],[4,"ngIf"],[3,"multiple",4,"ngIf"],["type","button","mat-button","","color","accent",1,"w-100",3,"click"],["fontIcon","manage_accounts",1,"me-1"],[1,"col-md-8","col-xl-9","pt-3"],[1,"row","py-3","px-0","mt-auto"],[1,"m-0"],[3,"chipData","chipClicked"],[1,"row"],[1,"px-0"],["class","row py-3",4,"ngIf"],[3,"tabData","count","serverSide","gridPageFinished","listPageFinished","listClicked","gridClicked","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder","gridLoadNextPage","listLoadNextPage"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],["mat-stroked-button","","matTooltip","Kunjungi Halaman Fanpage",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["fontIcon","facebook",1,"me-1"],["mat-stroked-button","","matTooltip","Kunjungi Ruang Obrolan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/discord/blue.png","width","24px"],["mat-stroked-button","","matTooltip","Lihat Cuitan",1,"w-100",2,"color","rgb(114, 137, 218)",3,"href"],["src","/assets/img/twitter/blue.png","width","24px"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",3,"routerLink",4,"ngFor","ngForOf"],[1,"h-100",3,"routerLink"],["matListAvatar","",1,"ms-3",2,"border-radius","0",3,"src"],[1,"text-truncate","text-decoration-none"],[1,"bg-bifeldy","px-2","me-1","text-warning",2,"position","absolute","right","0"],[1,"text-success"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],[1,"bg-bifeldy","px-2","me-1",2,"position","absolute","right","0"],[1,"text-success",2,"cursor","pointer",3,"click"],[1,"text-danger",2,"cursor","pointer",3,"click"],[1,"text-warning",3,"routerLink"],["type","button","mat-button","","color","accent","matTooltip","Ambil / Klaim / Dapatkan Sub-Domain Ini",1,"w-100","shiny",3,"click"],["fontIcon","dns",1,"me-1"],[3,"panelData"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-bifeldy",2,"font-size","small"],[1,"text-warning","text-decoration-none",2,"cursor","pointer",3,"click"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"href"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0"],[1,"text-success",3,"innerHTML"]],template:function(e,s){1&e&&t.YNc(0,Dt,56,29,"div",0),2&e&&t.Q6J("ngIf",s.fansubData)},dependencies:[c.sg,c.O5,r.rH,E.lW,E.zs,q.Hw,U.eA,U.Nh,U.Ub,U.vS,H.gM,Q.H,ot.Q,rt.G,B.t,lt.Y,ut.d,c.uU,ct.R],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}.fansub-image[_ngcontent-%COMP%]{width:100%}"]}),i})();var Et=n(8372),Ut=n(9094),It=n(8505),Zt=n(3900),Mt=n(5625),kt=n(7902),yt=n(3238),I=n(7331),P=n(9602),S=n(9549),Rt=n(4144),Nt=n(4385),Lt=n(3626);function Bt(i,l){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function Pt(i,l){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function wt(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"div",6)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.submitImage())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Ot(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Website Tidak Boleh Kosong"),t.qZA())}function Jt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Website Link Tidak Valid"),t.qZA())}function Qt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Facebook Link Tidak Valid"),t.qZA())}function Kt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function Gt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Twitter Link Tidak Valid"),t.qZA())}function Yt(i,l){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.coverLimitExceeded)," !")}}function qt(i,l){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Oqu(e.coverErrorText)}}function Ht(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"div",66)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.submitCover())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function jt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Tidak Boleh Kosong"),t.qZA())}function zt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Vt(i,l){if(1&i&&(t.TgZ(0,"small",67)(1,"div"),t._uU(2),t.qZA()()),2&i){const e=t.oxw(3);t.xp6(2),t.Oqu(e.slugInfo)}}function $t(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Tidak Boleh Kosong"),t.qZA())}function Wt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),t.qZA())}function Xt(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Harus Diisi Secara Valid"),t.qZA())}function te(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ee(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Mohon Pilih Salah Satu"),t.qZA())}function ae(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ie(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"mat-chip",68),t.NdJ("removed",function(){const o=t.CHM(e).$implicit,g=t.oxw(3);return t.KtG(g.removeTag(o))}),t._uU(1),t._UZ(2,"mat-icon",69),t.qZA()}if(2&i){const e=l.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function se(i,l){1&i&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function ne(i,l){if(1&i&&(t.TgZ(0,"mat-form-field",23)(1,"mat-label"),t._uU(2,"URI / URL RSS v2.0 Feed"),t.qZA(),t._UZ(3,"input",70)(4,"mat-icon",71),t.TgZ(5,"mat-error"),t.YNc(6,se,2,0,"div",21),t.qZA()()),2&i){const e=t.oxw(3);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("rss_feed").hasError("pattern"))}}function oe(i,l){if(1&i){const e=t.EpF();t.TgZ(0,"form",8),t.NdJ("submit",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSubmit())}),t.TgZ(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),t._uU(5,"Perbaharui Data Fansub"),t.qZA()()(),t.TgZ(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",13)(10,"div",6),t._UZ(11,"img",15),t.TgZ(12,"mat-form-field",16)(13,"mat-label"),t._uU(14,"Foto"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",17,18),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(16),g=t.oxw(2);return t.KtG(g.uploadImage(a,o))}),t.qZA(),t._UZ(17,"mat-icon",19),t.qZA(),t.TgZ(18,"mat-error",20)(19,"small"),t.YNc(20,Bt,3,3,"div",21),t.YNc(21,Pt,2,1,"div",21),t.qZA()()(),t.YNc(22,wt,4,1,"div",22),t.qZA(),t.TgZ(23,"div",13)(24,"div",6)(25,"div",13)(26,"mat-form-field",23)(27,"mat-label"),t._uU(28,"Tautan Website"),t.qZA(),t._UZ(29,"input",24)(30,"mat-icon",25),t.TgZ(31,"mat-error"),t.YNc(32,Ot,2,0,"div",21),t.YNc(33,Jt,2,0,"div",21),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-label"),t._uU(36,"Facebook Fanpage"),t.qZA(),t._UZ(37,"input",26)(38,"mat-icon",27),t.TgZ(39,"mat-error"),t.YNc(40,Qt,2,0,"div",21),t.qZA()(),t.TgZ(41,"mat-form-field",23)(42,"mat-label"),t._uU(43,"Tautan Discord"),t.qZA(),t._UZ(44,"input",28),t.TgZ(45,"mat-icon",29),t._UZ(46,"img",30),t.qZA(),t.TgZ(47,"mat-error"),t.YNc(48,Kt,2,0,"div",21),t.qZA()(),t.TgZ(49,"mat-form-field",23)(50,"mat-label"),t._uU(51,"Cuitan Twitter"),t.qZA(),t._UZ(52,"input",31),t.TgZ(53,"mat-icon",29),t._UZ(54,"img",30),t.qZA(),t.TgZ(55,"mat-error"),t.YNc(56,Gt,2,0,"div",21),t.qZA()()()()()(),t.TgZ(57,"div",32)(58,"div",13)(59,"mat-form-field",16)(60,"mat-label"),t._uU(61,"Cover"),t.qZA(),t.TgZ(62,"ngx-mat-file-input",17,33),t.NdJ("change",function(a){t.CHM(e);const o=t.MAs(63),g=t.oxw(2);return t.KtG(g.uploadCover(a,o))}),t.qZA(),t._UZ(64,"mat-icon",19),t.qZA(),t.TgZ(65,"mat-error",20)(66,"small"),t.YNc(67,Yt,3,3,"div",21),t.YNc(68,qt,2,1,"div",21),t.qZA()(),t.YNc(69,Ht,4,1,"div",34),t.TgZ(70,"mat-form-field",35)(71,"mat-label"),t._uU(72,"Nama Fansub"),t.qZA(),t._UZ(73,"input",36)(74,"mat-icon",37),t.TgZ(75,"mat-error"),t.YNc(76,jt,2,0,"div",21),t.YNc(77,zt,2,0,"div",21),t.qZA()(),t.TgZ(78,"mat-form-field",38)(79,"mat-label"),t._uU(80,"Singkatan"),t.qZA(),t._UZ(81,"input",39)(82,"mat-icon",40),t.YNc(83,Vt,3,1,"small",41),t.TgZ(84,"mat-error"),t.YNc(85,$t,2,0,"div",21),t.YNc(86,Wt,2,0,"div",21),t.qZA()(),t._UZ(87,"angular-editor",42),t.TgZ(88,"mat-form-field",43)(89,"mat-label"),t._uU(90,"Mulai Ada Sejak"),t.qZA(),t.TgZ(91,"input",44),t.NdJ("focus",function(){t.CHM(e);const a=t.MAs(95);return t.KtG(a.open())}),t.ALo(92,"date"),t.qZA(),t._UZ(93,"mat-datepicker-toggle",45)(94,"mat-datepicker",46,47),t.TgZ(96,"mat-error"),t.YNc(97,Xt,2,0,"div",21),t.YNc(98,te,2,0,"div",21),t.qZA()(),t.TgZ(99,"mat-form-field",43)(100,"mat-label"),t._uU(101,"Status"),t.qZA(),t.TgZ(102,"mat-select",48)(103,"mat-option",49),t._uU(104,"Tidak Aktif"),t.qZA(),t.TgZ(105,"mat-option",50),t._uU(106,"Aktif"),t.qZA()(),t.TgZ(107,"mat-hint",51),t._uU(108,"Status Kehidupan Fansub Saat Ini"),t.qZA(),t.TgZ(109,"mat-error"),t.YNc(110,ee,2,0,"div",21),t.YNc(111,ae,2,0,"div",21),t.qZA()(),t.TgZ(112,"mat-form-field",23)(113,"mat-label"),t._uU(114,"Tags & Kategori"),t.qZA(),t.TgZ(115,"mat-chip-list",null,52),t.YNc(117,ie,3,2,"mat-chip",53),t.TgZ(118,"input",54),t.NdJ("matChipInputTokenEnd",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.addTag(a))}),t.qZA(),t._UZ(119,"mat-icon",55),t.qZA(),t.TgZ(120,"mat-hint",51),t._uU(121,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t.YNc(122,ne,7,2,"mat-form-field",56),t.qZA()()(),t.TgZ(123,"div",13)(124,"div",6)(125,"div",57),t._UZ(126,"div",58),t.TgZ(127,"div",59)(128,"a",60),t._UZ(129,"mat-icon",61),t._uU(130," Batal "),t.qZA()(),t.TgZ(131,"div",59)(132,"button",62),t._uU(133," Simpan "),t._UZ(134,"mat-icon",63),t.qZA()()()()()()()()}if(2&i){const e=t.MAs(95),s=t.MAs(116),a=t.oxw(2);t.Q6J("formGroup",a.fg),t.xp6(11),t.Q6J("src",a.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",a.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",a.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",a.imageErrorText),t.xp6(1),t.Q6J("ngIf",a.image&&!a.fg.value.image),t.xp6(4),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",a.fg.get("web").hasError("required")),t.xp6(1),t.Q6J("ngIf",a.fg.get("web").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",a.fg.get("facebook").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/discord/",a.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",a.fg.get("discord").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/twitter/",a.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",a.fg.get("twitter").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",a.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",a.coverLimitExceeded),t.xp6(1),t.Q6J("ngIf",a.coverErrorText),t.xp6(1),t.Q6J("ngIf",a.cover&&!a.fg.value.cover),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",a.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",a.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngIf",a.slugInfo),t.xp6(2),t.Q6J("ngIf",a.fg.get("slug").hasError("required")),t.xp6(1),t.Q6J("ngIf",a.fg.get("slug").hasError("pattern")),t.xp6(1),t.Q6J("config",a.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("placeholder",t.xi3(92,50,a.currentDate,"d MMMM y")),t.Q6J("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(4),t.Q6J("ngIf",a.fg.get("born").hasError("required")||a.fg.get("born").hasError("matDatepickerParse")),t.xp6(1),t.Q6J("ngIf",a.fg.get("born").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(11),t.Q6J("ngIf",a.fg.get("active").hasError("required")),t.xp6(1),t.Q6J("ngIf",a.fg.get("active").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",a.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",a.GS.separatorKeysCodes)("matChipInputFor",s)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",a.rssFeedAllowed),t.xp6(6),t.Q6J("disabled",a.submitted),t.xp6(4),t.Q6J("disabled",a.submitted||a.fg.invalid||!a.fg.dirty)}}function re(i,l){if(1&i&&(t.TgZ(0,"div",1),t._UZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),t.TgZ(5,"div",5)(6,"div",6),t.YNc(7,oe,135,53,"form",7),t.qZA()()()),2&i){const e=t.oxw();t.xp6(1),t.Udp("background-image","url("+e.cover_url+")"),t.xp6(6),t.Q6J("ngIf",e.fg)}}const le=[{path:"",pathMatch:"full",component:tt},{path:":fansubSlug",children:[{path:"",pathMatch:"full",component:St},{path:"edit",component:(()=>{class i{constructor(e,s,a,o,g,h,T,v,w){this.fb=e,this.router=s,this.bs=a,this.activatedRoute=o,this.imgbb=g,this.fansub=h,this.toast=T,this.as=v,this.gs=w,this.fansubSlug="",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.cover=null,this.coverErrorText=null,this.coverLimitExceeded=null,this.cover_url="/assets/img/form/no-image.png",this.cover_url_original=null,this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsActRoute=null,this.subsFansubUpdate=null,this.subsFansubDetail=null,this.subsImgbb=null,this.subsCekFansubSlug=null,this.subsFansubMemberGet=null,this.slugInfo="",this.editable=!0,this.approvedMembers=[],this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get rssFeedAllowed(){return this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR||this.as.currentUserSubject?.value?.role===_.yS.FANSUBBER}ngOnDestroy(){this.subsActRoute?.unsubscribe(),this.subsFansubUpdate?.unsubscribe(),this.subsFansubDetail?.unsubscribe(),this.subsImgbb?.unsubscribe(),this.subsFansubMemberGet?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.fansubSlug=this.activatedRoute.snapshot.paramMap.get("fansubSlug"),this.bs.busy(),this.subsFansubDetail=this.fansub.getFansub(this.fansubSlug).subscribe({next:e=>{this.gs.log("[FANSUB_DETAIL_SUCCESS]",e),this.bs.idle(),this.editable=e.result.editable,this.editable?(this.bs.busy(),this.subsFansubMemberGet=this.fansub.getFansubMember(this.fansubSlug).subscribe({next:s=>{this.gs.log("[FANSUB_EDIT_MEMBER_LIST_SUCCESS]",s),this.bs.idle(),this.approvedMembers=[];for(const o of s.results)o.approved&&this.approvedMembers.push(o);this.approvedMembers.findIndex(o=>o.user_.id===this.as.currentUserSubject?.value?.id)>=0||this.as.currentUserSubject?.value?.role===_.yS.ADMIN||this.as.currentUserSubject?.value?.role===_.yS.MODERATOR||this.as.currentUserSubject?.value?.id===e.result.user_.id?this.initForm(e.result):(this.toast.warning("Harus Menjadi Anggota Untuk Mengubah Data!","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:s=>{this.gs.log("[FANSUB_EDIT_MEMBER_LIST_ERROR]",s,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}})):(this.toast.warning("Data Fansub Ini Tidak Dapat Diubah","Whoops!",null,!0),this.router.navigateByUrl(`/fansub/${this.fansubSlug}`))},error:e=>{this.gs.log("[FANSUB_DETAIL_ERROR]",e,"error"),this.bs.idle(),this.router.navigate(["/error"],{queryParams:{returnUrl:`/fansub/${this.fansubSlug}`}})}}))}initForm(e){this.image_url=e.image_url,this.image_url_original=this.image_url,this.cover_url=e.cover_url,this.cover_url_original=this.cover_url;const s=e.urls,a=s.find(v=>"web"===v.name),o=s.find(v=>"facebook"===v.name),g=s.find(v=>"discord"===v.name),h=s.find(v=>"twitter"===v.name),T=!0===e.active?"1":"0";this.fg=this.fb.group({name:[e.name,u.kI.compose([u.kI.required,u.kI.pattern(b.t.regexEnglishKeyboardKeys)])],description:[e.description,u.kI.compose([u.kI.required,u.kI.pattern(b.t.regexEnglishKeyboardKeys)])],born:[e.born,u.kI.compose([u.kI.required,u.kI.pattern(b.t.regexEnglishKeyboardKeys)])],active:[T,u.kI.compose([u.kI.required,u.kI.pattern(b.t.regexEnglishKeyboardKeys)])],slug:[{value:e.slug,disabled:e.dns_id},u.kI.compose([u.kI.required,u.kI.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[e.tags,u.kI.compose([])],image:[null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],cover:[null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],web:[a?.url||null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],facebook:[o?.url||null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],discord:[g?.url||null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],twitter:[h?.url||null,u.kI.compose([u.kI.pattern(b.t.regexUrl)])],rss_feed:[e.rss_feed,u.kI.compose([u.kI.pattern(b.t.regexUrl)])]}),this.slugValueChanged()}slugValueChanged(){this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,Et.b)(500),(0,Ut.x)(),(0,It.b)(()=>this.slugInfo="Mengecek ..."),(0,Zt.w)(e=>this.fansub.cekSlug({slug:e})),(0,Mt.X)(-1)).subscribe({next:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_SUCCESS]",e),this.slugInfo=e.result.message},error:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_ERROR]",e,"error"),this.slugValueChanged()}})}addTag(e){const s=e.input,a=e.value;(a||"").trim()&&this.fg.value.tags.push(a.trim()),s&&(s.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((o,g,h)=>h.findIndex(T=>T===o)===g)),this.fg.controls.tags.markAsDirty()}removeTag(e){const s=this.fg.value.tags.indexOf(e);s>=0&&this.fg.value.tags.splice(s,1)}uploadImage(e,s){this.gambar=s,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=g=>{if(this.gs.log("[IMAGE_SELECTED]",g),a.size<=b.t.fileSizeImageLimit){const h=this.gs.document.createElement("img");h.onload=()=>{this.image=a,this.image_url=o.result.toString()},h.src=o.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=b.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}uploadCover(e,s){this.gambar_=s,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine();const a=e.target.files[0];try{const o=new FileReader;o.readAsDataURL(a),o.onload=g=>{if(this.gs.log("[COVER_SELECTED]",g),a.size<=b.t.fileSizeImageLimit){const h=this.gs.document.createElement("img");h.onload=()=>{this.cover=a,this.cover_url=o.result.toString()},h.src=o.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=b.t.fileSizeImageLimit,this.gambar_.clear(e)}}catch{this.cover=null,this.cover_url=this.cover_url_original,this.gambar_.clear(e)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:e=>{this.gs.log("[COVER_SUCCESS]",e),this.fg.controls.cover.patchValue(e.result.url),this.fg.controls.cover.markAsDirty(),this.submitted=!1},error:e=>{this.gs.log("[COVER_ERROR]",e,"error"),this.fg.controls.cover.patchValue(null),this.fg.controls.cover.markAsPristine(),this.submitted=!1,this.coverErrorText=e.result?.message||e.info}})}onSubmit(){this.bs.busy();const e=[];this.fg.value.web&&e.push({name:"web",url:this.fg.value.web}),this.fg.value.facebook&&e.push({name:"facebook",url:this.fg.value.facebook}),this.fg.value.discord&&e.push({name:"discord",url:this.fg.value.discord}),this.fg.value.twitter&&e.push({name:"twitter",url:this.fg.value.twitter});const s=this.gs.getDirtyValues(this.fg);if("web"in s&&delete s.web,"facebook"in s&&delete s.facebook,"discord"in s&&delete s.discord,"twitter"in s&&delete s.twitter,s.urls=e,this.gs.log("[FANSUB_EDIT_DIRTY]",s),this.submitted=!0,this.fg.invalid||0===e.length)return 0===e.length&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansubUpdate=this.fansub.updateFansub(this.fansubSlug,{...s}).subscribe({next:a=>{this.gs.log("[FANSUB_EDIT_SUCCESS]",a),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl(`/fansub/${a.result.slug}`)},error:a=>{this.gs.log("[FANSUB_EDIT_ERROR]",a,"error"),this.submitted=!1,this.bs.idle()}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.QS),t.Y36(r.F0),t.Y36(N.z),t.Y36(r.gz),t.Y36(kt.X),t.Y36(L.T),t.Y36(Y.k),t.Y36(G.e),t.Y36(R.U))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-fansub-edit"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["fontIcon","web","matSuffix",""],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["fontIcon","facebook","matSuffix",""],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["matSuffix",""],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],[1,"col-12","col-md-7","col-xl-8","p-3"],["gambar_",""],["class","col-12 py-3",4,"ngIf"],["appearance","outline",1,"py-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan"],["fontIcon","wysiwyg","matSuffix",""],["appearance","outline","matTooltip","Digunakan Juga Untuk Sub-Domain",1,"py-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub"],["fontIcon","short_text","matSuffix",""],["class","text-info",4,"ngIf"],["formControlName","description",1,"py-3","w-100",3,"config"],["appearance","outline",1,"py-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif"],["value","0"],["value","1"],["align","end"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","../",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],[1,"col-12","py-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],["fontIcon","rss_feed","matSuffix",""]],template:function(e,s){1&e&&t.YNc(0,re,8,3,"div",0),2&e&&t.Q6J("ngIf",s.fg)},dependencies:[c.sg,c.O5,r.yS,yt.ey,E.lW,E.zs,I.qn,I.HS,I.oH,I.qH,P.Mq,P.hl,P.nW,q.Hw,S.TO,S.KE,S.bx,S.hX,S.R9,Rt.Nt,Nt.gD,H.gM,B.t,u._Y,u.Fj,u.JJ,u.JL,u.sg,u.u,D.Yh,F.s6,c.uU,Lt.$],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]}),i})(),canActivate:[k.H,M.t],data:{title:"Fansub - Ubah Data",description:"Halaman Pembaharuan Data Fansub",keywords:"Ubah Fansub",[b.t.decoratorVerifiedOnly]:!0,[b.t.decoratorRoles]:[_.yS.ADMIN,_.yS.MODERATOR,_.yS.FANSUBBER,_.yS.USER]}}]}];let ue=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[c.ez,r.Bz.forChild(le),d.m,m.L,y.$,x.P,p.m9,C.F,u.u5,u.UX,D.Ad,F.UM,j.b,f.T,z.d]}),i})()},7567:(Z,A,n)=>{n.d(A,{Q:()=>k});var c=n(7084),r=n(4650),u=n(257),F=n(6895),p=n(7392),D=n(266);function b(d,f){if(1&d&&r._UZ(0,"h3",8),2&d){const m=r.oxw().$implicit;r.Q6J("innerHTML",m.text,r.oJD)}}function _(d,f){if(1&d&&(r.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title",4)(3,"span",5),r._uU(4),r.qZA()(),r.TgZ(5,"mat-panel-description"),r._UZ(6,"mat-icon",6),r.qZA()(),r.YNc(7,b,1,1,"ng-template",7),r.qZA()),2&d){const m=f.$implicit,x=f.first,C=r.oxw(2);r.Q6J("expanded",C.GS.isDesktop&&x),r.xp6(3),r.s9C("matTooltip",m.tooltip),r.Q6J("matTooltipPosition","above"),r.xp6(1),r.hij(" ",m.title," "),r.xp6(2),r.Q6J("fontIcon",m.icon)}}function M(d,f){if(1&d&&(r.TgZ(0,"mat-accordion",1),r.YNc(1,_,8,5,"mat-expansion-panel",2),r.qZA()),2&d){const m=r.oxw();r.xp6(1),r.Q6J("ngForOf",m.panelData)}}let k=(()=>{class d{constructor(m){this.gs=m,this.panelData=[{title:"Title",icon:"warning",text:"Lorem ipsum ...",tooltip:"Info"}]}onResize(m){this.gs.onResize(m,"MATERIAL_EXPANSION_PANEL"),this.gs.isDesktop?this.accordion.openAll():this.accordion.closeAll()}get GS(){return this.gs}ngOnInit(){}}return d.\u0275fac=function(m){return new(m||d)(r.Y36(u.U))},d.\u0275cmp=r.Xpm({type:d,selectors:[["app-material-expansion-panel"]],viewQuery:function(m,x){if(1&m&&r.Gf(c.pp,5),2&m){let C;r.iGM(C=r.CRH())&&(x.accordion=C.first)}},hostBindings:function(m,x){1&m&&r.NdJ("resize",function(y){return x.onResize(y)},!1,r.Jf7)},inputs:{panelData:"panelData"},decls:1,vars:1,consts:[["class","example-headers-align","multi","",4,"ngIf"],["multi","",1,"example-headers-align"],[3,"expanded",4,"ngFor","ngForOf"],[3,"expanded"],[1,"font-weight-bold"],[3,"matTooltip","matTooltipPosition"],[1,"ms-auto",3,"fontIcon"],["matExpansionPanelContent",""],[1,"m-0","text-justify",2,"white-space","pre-line !important",3,"innerHTML"]],template:function(m,x){1&m&&r.YNc(0,M,2,1,"mat-accordion",0),2&m&&r.Q6J("ngIf",x.panelData.length>0)},dependencies:[F.sg,F.O5,c.pp,c.ib,c.yz,c.yK,c.u4,c.HS,p.Hw,D.gM]}),d})()},6020:(Z,A,n)=>{n.d(A,{$:()=>F});var c=n(6895),r=n(210),u=n(4650);let F=(()=>{class p{}return p.\u0275fac=function(b){return new(b||p)},p.\u0275mod=u.oAB({type:p}),p.\u0275inj=u.cJS({imports:[c.ez,r.m]}),p})()},7623:(Z,A,n)=>{n.d(A,{Q:()=>c});var c=(()=>{return(r=c||(c={})).BIRU="#7289DA",r.UNGU="#3F51B5",r.HITAM="#343A40",r.ABU="#A9A9A9",r.MERAH="#DC3545",r.PINK="#FF4081",r.OREN="#F44336",r.KUNING="#FFC107",r.HIJAU="#28A745",c;var r})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/534.4733a94ca596a8d9.js b/dist/fansubid/browser/534.4733a94ca596a8d9.js deleted file mode 100644 index 2c64c4144..000000000 --- a/dist/fansubid/browser/534.4733a94ca596a8d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[534],{6534:(D,l,n)=>{n.r(l),n.d(l,{RssFeedModule:()=>y});var d=n(6895),g=n(1390),e=n(4650),h=n(257),b=n(3e3),c=n(6781),p=n(8020),u=n(8757),f=n(8616),m=n(9530),v=n(3331),C=n(8921);let F=(()=>{class i{constructor(t,s,a,o){this.gs=t,this.bs=s,this.fansub=a,this.wb=o,this.rssFeedData=[],this.tabData=[{name:"Loper Koran",icon:"rss_feed",type:"table",data:{column:["Tanggal","Fansub","Topik"],row:[]}}],this.count=0,this.page=1,this.row=10,this.tablePageSizeOptions=[50,75,100,125,150],this.q="",this.sort="",this.order="",this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.gs.isDesktop||(this.tablePageSizeOptions=[10,25,50,75,100]),this.row=this.tablePageSizeOptions[0],this.getRssFeed())}ngOnDestroy(){this.subsRssFeed?.unsubscribe()}getRssFeed(){this.bs.busy(),this.subsRssFeed&&(this.subsRssFeed.unsubscribe(),this.bs.idle()),this.subsRssFeed=this.fansub.getRssFeedFansubAll(null,this.q,this.page,this.row,this.sort,this.order).subscribe({next:t=>{this.gs.log("[RSS_FEED_LIST_SUCCESS]",t),this.count=t.count,this.rssFeedData=[];for(const s of t.results)this.rssFeedData.push({foto_fansub:s.fansub_.image_url,link:s.link,Fansub:s.fansub_.slug,Tanggal:s.created_at,Topik:s.title});this.tabData[0].data.row=this.rssFeedData,this.bs.idle()},error:t=>{this.gs.log("[RSS_FEED_LIST_ERROR]",t,"error"),this.bs.idle()}})}openRssFeed(t){this.gs.log("[RSS_FEED_LIST_OPEN_URL]",t),this.wb.winboxOpenUri(t.link)}onPaginatorClicked(t){this.gs.log("[RSS_FEED_CLICK_PAGINATOR]",t),this.page=t.pageIndex+1,this.row=t.pageSize,this.getRssFeed()}onServerSideFilter(t){this.gs.log("[RSS_FEED_ENTER_FILTER]",t),this.q=t,this.getRssFeed()}onServerSideOrder(t){this.gs.log("[RSS_FEED_CLICK_ORDER]",t),this.q=t.q,this.sort=t.active,this.order=t.direction,this.getRssFeed()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(h.U),e.Y36(b.z),e.Y36(c.T),e.Y36(p.N))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-rss-feed-list"]],decls:33,vars:4,consts:[[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[3,"tablePageSizeOptions","tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul",2),e._UZ(3,"span",3)(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li"),e.TgZ(14,"div",4)(15,"div",5)(16,"div",6)(17,"h2",7),e._uU(18," RSS & Feed Fansub "),e.qZA(),e.TgZ(19,"p",8),e._uU(20," Informasi Terkini Dari Fansub ... "),e.qZA()()()()()()(),e._UZ(21,"app-notifications"),e.TgZ(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12)(26,"app-material-tab",13),e.NdJ("tableRowClicked",function(o){return s.openRssFeed(o)})("paginatorClicked",function(o){return s.onPaginatorClicked(o)})("serverSideFilter",function(o){return s.onServerSideFilter(o)})("serverSideOrder",function(o){return s.onServerSideOrder(o)}),e.qZA()()(),e.TgZ(27,"div",14)(28,"div",15)(29,"div",16),e._UZ(30,"app-banner-donasi")(31,"app-banner-discord")(32,"app-stats-server"),e.qZA()()()()()),2&t&&(e.xp6(26),e.Q6J("tablePageSizeOptions",s.tablePageSizeOptions)("tabData",s.tabData)("count",s.count)("serverSide",!0))},dependencies:[u.H,f.t,m.u,v.B,C.X],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/rss-feed.jpg)}.wrapper[_ngcontent-%COMP%]:before, .wrapper[_ngcontent-%COMP%]:after{content:"";width:128px;height:128px;background-repeat:no-repeat;background-size:contain;position:absolute;z-index:-1}.wrapper[_ngcontent-%COMP%]:before{background-image:url(/assets/img/banner/rss-feed-before.svg);left:0}.wrapper[_ngcontent-%COMP%]:after{background-image:url(/assets/img/banner/rss-feed-after.svg);right:0}.wrapper-1[_ngcontent-%COMP%]{width:256px;height:100%;background-image:url(/assets/img/banner/rss-feed-1.svg);position:absolute;background-repeat:no-repeat;background-size:contain;right:64px;top:-8px;z-index:-1}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}']}),i})();var R=n(210),O=n(4854),S=n(8764),P=n(6436),M=n(8613),x=n(669),w=n(1838);const T=[{path:"",pathMatch:"full",component:F}];let y=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[d.ez,g.Bz.forChild(T),R.m,P.L,M.F,w.R,O.R,x.A,S.R]}),i})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/534.6ddf0bb523f2fc1f.js b/dist/fansubid/browser/534.6ddf0bb523f2fc1f.js new file mode 100644 index 000000000..d8f2c1887 --- /dev/null +++ b/dist/fansubid/browser/534.6ddf0bb523f2fc1f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[534],{6534:(D,l,n)=>{n.r(l),n.d(l,{RssFeedModule:()=>y});var d=n(6895),g=n(1390),e=n(4650),h=n(257),b=n(3e3),c=n(6781),p=n(8020),u=n(8757),f=n(8616),m=n(9530),v=n(3331),C=n(8921);let F=(()=>{class o{constructor(t,s,a,i){this.gs=t,this.bs=s,this.fansub=a,this.wb=i,this.rssFeedData=[],this.tabData=[{name:"Loper Koran",icon:"rss_feed",type:"table",data:{column:["Tanggal","Fansub","Topik"],row:[]}}],this.count=0,this.page=1,this.row=10,this.tablePageSizeOptions=[50,75,100,125,150],this.q="",this.sort="",this.order="",this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}ngOnInit(){this.gs.isBrowser&&(this.gs.isDesktop||(this.tablePageSizeOptions=[10,25,50,75,100]),this.row=this.tablePageSizeOptions[0],this.getRssFeed())}ngOnDestroy(){this.subsRssFeed?.unsubscribe()}getRssFeed(){this.bs.busy(),this.subsRssFeed&&(this.subsRssFeed.unsubscribe(),this.bs.idle()),this.subsRssFeed=this.fansub.getRssFeedFansubAll(null,this.q,this.page,this.row,this.sort,this.order).subscribe({next:t=>{this.gs.log("[RSS_FEED_LIST_SUCCESS]",t),this.count=t.count,this.rssFeedData=[];for(const s of t.results)this.rssFeedData.push({foto_fansub:s.fansub_.image_url,url:s.fansub_.urls.web,link:s.link,Fansub:s.fansub_.slug,Tanggal:s.created_at,Topik:s.title});this.tabData[0].data.row=this.rssFeedData,this.bs.idle()},error:t=>{this.gs.log("[RSS_FEED_LIST_ERROR]",t,"error"),this.bs.idle()}})}openRssFeed(t){this.gs.log("[RSS_FEED_LIST_OPEN_URL]",t);const s=t.url;if(s){const a=new URL(s);let i=`${a.protocol}//${a.host}`;t.link.startsWith("/")||(i+="/"),i+=t.link,this.wb.winboxOpenUri(i)}}onPaginatorClicked(t){this.gs.log("[RSS_FEED_CLICK_PAGINATOR]",t),this.page=t.pageIndex+1,this.row=t.pageSize,this.getRssFeed()}onServerSideFilter(t){this.gs.log("[RSS_FEED_ENTER_FILTER]",t),this.q=t,this.getRssFeed()}onServerSideOrder(t){this.gs.log("[RSS_FEED_CLICK_ORDER]",t),this.q=t.q,this.sort=t.active,this.order=t.direction,this.getRssFeed()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(h.U),e.Y36(b.z),e.Y36(c.T),e.Y36(p.N))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-rss-feed-list"]],decls:33,vars:4,consts:[[1,"container-fluid","p-0"],[1,"wrapper"],[1,"bg-bubbles","align-items-center","p-0"],[1,"wrapper-1"],[1,"row","align-items-center","h-100"],[1,"col-12","mx-auto"],[1,"container","text-dark"],[1,"mb-1",2,"line-height","normal"],[1,"mb-0"],[1,"container"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"row"],[3,"tablePageSizeOptions","tabData","count","serverSide","tableRowClicked","paginatorClicked","serverSideFilter","serverSideOrder"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],[1,"col-12"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul",2),e._UZ(3,"span",3)(4,"li")(5,"li")(6,"li")(7,"li")(8,"li")(9,"li")(10,"li")(11,"li")(12,"li")(13,"li"),e.TgZ(14,"div",4)(15,"div",5)(16,"div",6)(17,"h2",7),e._uU(18," RSS & Feed Fansub "),e.qZA(),e.TgZ(19,"p",8),e._uU(20," Informasi Terkini Dari Fansub ... "),e.qZA()()()()()()(),e._UZ(21,"app-notifications"),e.TgZ(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12)(26,"app-material-tab",13),e.NdJ("tableRowClicked",function(i){return s.openRssFeed(i)})("paginatorClicked",function(i){return s.onPaginatorClicked(i)})("serverSideFilter",function(i){return s.onServerSideFilter(i)})("serverSideOrder",function(i){return s.onServerSideOrder(i)}),e.qZA()()(),e.TgZ(27,"div",14)(28,"div",15)(29,"div",16),e._UZ(30,"app-banner-donasi")(31,"app-banner-discord")(32,"app-stats-server"),e.qZA()()()()()),2&t&&(e.xp6(26),e.Q6J("tablePageSizeOptions",s.tablePageSizeOptions)("tabData",s.tabData)("count",s.count)("serverSide",!0))},dependencies:[u.H,f.t,m.u,v.B,C.X],styles:['.wrapper[_ngcontent-%COMP%]{position:sticky;left:0;width:100%;height:128px;overflow:hidden;background-image:url(/assets/img/banner/rss-feed.jpg)}.wrapper[_ngcontent-%COMP%]:before, .wrapper[_ngcontent-%COMP%]:after{content:"";width:128px;height:128px;background-repeat:no-repeat;background-size:contain;position:absolute;z-index:-1}.wrapper[_ngcontent-%COMP%]:before{background-image:url(/assets/img/banner/rss-feed-before.svg);left:0}.wrapper[_ngcontent-%COMP%]:after{background-image:url(/assets/img/banner/rss-feed-after.svg);right:0}.wrapper-1[_ngcontent-%COMP%]{width:256px;height:100%;background-image:url(/assets/img/banner/rss-feed-1.svg);position:absolute;background-repeat:no-repeat;background-size:contain;right:64px;top:-8px;z-index:-1}.bg-bubbles[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:absolute;list-style:none;display:block;width:40px;height:40px;background-color:#ffffff26;bottom:-160px;animation:square 25s infinite;transition-timing-function:linear}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(1){left:10%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2){left:20%;width:80px;height:80px;animation-delay:2s;animation-duration:17s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(3){left:25%;animation-delay:4s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(4){left:40%;width:60px;height:60px;animation-duration:22s;background-color:#ffffff40}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(5){left:70%}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(6){left:80%;width:120px;height:120px;animation-delay:3s;background-color:#fff3}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(7){left:32%;width:160px;height:160px;animation-delay:7s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(8){left:55%;width:20px;height:20px;animation-delay:15s;animation-duration:40s}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(9){left:25%;width:10px;height:10px;animation-delay:2s;animation-duration:40s;background-color:#ffffff4d}.bg-bubbles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(10){left:90%;width:160px;height:160px;animation-delay:11s}@keyframes square{0%{transform:translateY(0)}to{transform:translateY(-512px) rotate(512deg)}}']}),o})();var R=n(210),O=n(4854),S=n(8764),P=n(6436),M=n(8613),x=n(669),w=n(1838);const T=[{path:"",pathMatch:"full",component:F}];let y=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[d.ez,g.Bz.forChild(T),R.m,P.L,M.F,w.R,O.R,x.A,S.R]}),o})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/580.9ba0b5ad110c71a8.js b/dist/fansubid/browser/580.d65608ae45baf085.js similarity index 58% rename from dist/fansubid/browser/580.9ba0b5ad110c71a8.js rename to dist/fansubid/browser/580.d65608ae45baf085.js index a792f505d..60cb8990c 100644 --- a/dist/fansubid/browser/580.9ba0b5ad110c71a8.js +++ b/dist/fansubid/browser/580.d65608ae45baf085.js @@ -1 +1 @@ -"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[580],{3580:($,E,c)=>{c.r(E),c.d(E,{CreateModule:()=>xa});var m=c(6895),h=c(1390),o=c(4006),Z=c(7375),k=c(3170),v=c(4700),u=c(6271),g=c(4249),S=c(2777),y=c(5094),t=c(4650),p=c(257);let x=(()=>{class a{constructor(e,i){this.gs=e,this.router=i}canDeactivate(e){return!!this.router.getCurrentNavigation()?.extras?.state?.bypassCanDeactivate||!e.canDeactivate||e.canDeactivate()}}return a.\u0275fac=function(e){return new(e||a)(t.LFG(p.U),t.LFG(h.F0))},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var _=c(210),C=c(7355),N=c(8613),I=c(5861),nt=c(6805),ot=c(930);function J(a,r){const e="object"==typeof r;return new Promise((i,n)=>{const s=new ot.Hp({next:l=>{i(l),s.unsubscribe()},error:n,complete:()=>{e?i(r.defaultValue):n(new nt.K)}});a.subscribe(s)})}var w=c(8372),q=c(9094),L=c(8505),O=c(3900),G=c(8746),B=c(5625),F=c(3e3),rt=c(519),st=c(8439),lt=c(5679),W=c(6781),ct=c(8987),j=c(7902),X=c(6925),Y=c(4137),mt=c(6493),D=c(7845),tt=c(7957),et=c(3238),A=c(4859),ut=c(4850),M=c(7392),f=c(9549),R=c(4144),dt=c(3162),at=c(4385),it=c(455),K=c(266),Q=c(8616),V=c(3626);function _t(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function gt(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function pt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",2),t._UZ(1,"img",46),t.TgZ(2,"mat-form-field",47)(3,"mat-label"),t._uU(4,"Gambar Untuk Embed SEO"),t.qZA(),t.TgZ(5,"ngx-mat-file-input",48,49),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(6),l=t.oxw(2);return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(7,"mat-icon",50),t.qZA(),t.TgZ(8,"mat-error",51)(9,"small"),t.YNc(10,_t,3,3,"div",20),t.YNc(11,gt,2,1,"div",20),t.qZA()()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("src",e.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",e.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",e.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imageErrorText)}}function ft(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",52)(1,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",53),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function ht(a,r){1&a&&(t.TgZ(0,"div",15)(1,"mat-slide-toggle",54)(2,"i"),t._uU(3,"Private"),t.qZA(),t._uU(4," Akses Hanya Dengan URL "),t.qZA()())}function bt(a,r){if(1&a&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.Oqu(e.name)}}function vt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Jenis Tidak Boleh Kosong"),t.qZA())}function xt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Jenis Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Ct(a,r){1&a&&t.GkF(0)}function Tt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Zt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(4);return t.KtG(l.filterAnimeSelected(s))}),t._UZ(1,"img",66),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.lnq("",e.id," :: ",null==e.media_type?null:e.media_type.toUpperCase()," :: ",e.title,"")}}function At(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Zt,4,5,"mat-option",64),t.BQk()),2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.filteredAnime)}}function kt(a,r){if(1&a&&(t.TgZ(0,"small",68),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.fg.get("anime_name").value)}}function It(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Anime Tidak Boleh Kosong"),t.qZA())}function Ut(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Anime Hanya Boleh Angka"),t.qZA())}function Et(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-form-field",56)(1,"mat-label"),t._uU(2,"Anime Terkait"),t.qZA(),t.TgZ(3,"input",57),t.NdJ("keyup",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resetSelectedAnime())}),t.qZA(),t._UZ(4,"mat-icon",58),t.TgZ(5,"mat-autocomplete",null,59),t.YNc(7,Tt,2,0,"mat-option",60),t.YNc(8,At,2,1,"ng-container",20),t.qZA(),t.YNc(9,kt,2,1,"small",61),t.TgZ(10,"mat-error"),t.YNc(11,It,2,0,"div",20),t.YNc(12,Ut,2,0,"div",20),t.qZA()()}if(2&a){const e=t.MAs(6),i=t.oxw(2);t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",e),t.xp6(4),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading),t.xp6(1),t.Q6J("ngIf",i.fg.get("anime_name").value),t.xp6(2),t.Q6J("ngIf",i.fg.get("anime_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("anime_id").hasError("pattern"))}}function St(a,r){1&a&&t.GkF(0)}function yt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Nt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(5);return t.KtG(l.filterDoramaSelected(s))}),t._UZ(1,"img",66),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.mdl_id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.AsE("",e.mdl_id," :: ",e.title,"")}}function Jt(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Nt,4,4,"mat-option",64),t.BQk()),2&a){const e=t.oxw(4);t.xp6(1),t.Q6J("ngForOf",e.filteredDorama)}}function wt(a,r){if(1&a&&(t.TgZ(0,"small",68),t._uU(1),t.qZA()),2&a){const e=t.oxw(4);t.xp6(1),t.Oqu(e.fg.get("dorama_name").value)}}function qt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Dorama Tidak Boleh Kosong"),t.qZA())}function Bt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Dorama Hanya Boleh Angka"),t.qZA())}function Ft(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-form-field",56)(1,"mat-label"),t._uU(2,"Dorama Terkait"),t.qZA(),t.TgZ(3,"input",71),t.NdJ("keyup",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.resetSelectedDorama())}),t.qZA(),t._UZ(4,"mat-icon",58),t.TgZ(5,"mat-autocomplete",null,72),t.YNc(7,yt,2,0,"mat-option",60),t.YNc(8,Jt,2,1,"ng-container",20),t.qZA(),t.YNc(9,wt,2,1,"small",61),t.TgZ(10,"mat-error"),t.YNc(11,qt,2,0,"div",20),t.YNc(12,Bt,2,0,"div",20),t.qZA()()}if(2&a){const e=t.MAs(6),i=t.oxw(3);t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",e),t.xp6(4),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading),t.xp6(1),t.Q6J("ngIf",i.fg.get("dorama_name").value),t.xp6(2),t.Q6J("ngIf",i.fg.get("dorama_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("dorama_id").hasError("pattern"))}}function Dt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Kode Serial Tidak Boleh Kosong"),t.qZA())}function Mt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Kode Serial Hanya Boleh Huruf Besar, Strip, Dan Angka"),t.qZA())}function Rt(a,r){if(1&a&&(t.TgZ(0,"mat-form-field",31)(1,"mat-label"),t._uU(2,"Kode / Serial Number"),t.qZA(),t._UZ(3,"input",74)(4,"mat-icon",75),t.TgZ(5,"mat-error"),t.YNc(6,Dt,2,0,"div",20),t.YNc(7,Mt,2,0,"div",20),t.qZA()()),2&a){const e=t.oxw(4);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("sn_code").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("sn_code").hasError("pattern"))}}function Qt(a,r){if(1&a&&t.YNc(0,Rt,8,3,"mat-form-field",73),2&a){const e=t.oxw(3);t.Q6J("ngIf",e.berkasType)}}function Lt(a,r){if(1&a&&(t.YNc(0,St,1,0,"ng-container",21),t.YNc(1,Ft,13,7,"ng-template",null,69,t.W1O),t.YNc(3,Qt,1,1,"ng-template",null,70,t.W1O)),2&a){const e=t.MAs(2),i=t.MAs(4),n=t.oxw(2);t.Q6J("ngIf",n.berkasType.toLowerCase().includes("dorama_"))("ngIfThen",e)("ngIfElse",i)}}function Ot(a,r){1&a&&t._UZ(0,"mat-icon",58)}function Yt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeFansub(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function Kt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Ht(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(2).index,d=t.oxw(2);return t.KtG(d.filterFansubSelected(s,l))}),t._UZ(1,"img",84),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.AsE("",e.slug," :: ",e.name,"")}}function Gt(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Ht,4,4,"mat-option",64),t.BQk()),2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.filteredFansub)}}function jt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Fansub Tidak Boleh Kosong"),t.qZA())}function Vt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Fansub Hanya Boleh Angka"),t.qZA())}function Pt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div")(1,"div",76)(2,"mat-form-field",77)(3,"mat-label"),t._uU(4,"Fansub Terkait"),t.qZA(),t.TgZ(5,"input",78),t.NdJ("keyup",function(){const s=t.CHM(e).index,l=t.oxw(2);return t.KtG(l.resetSelectedFansub(s))}),t.qZA(),t.YNc(6,Ot,1,0,"mat-icon",79),t.YNc(7,Yt,2,0,"button",80),t.TgZ(8,"mat-autocomplete",null,81),t.YNc(10,Kt,2,0,"mat-option",60),t.YNc(11,Gt,2,1,"ng-container",20),t.qZA(),t.TgZ(12,"small",68),t._uU(13),t.qZA(),t.TgZ(14,"mat-error"),t.YNc(15,jt,2,0,"div",20),t.YNc(16,Vt,2,0,"div",20),t.qZA()()()()}if(2&a){const e=r.$implicit,i=r.index,n=t.MAs(9),s=t.oxw(2);t.xp6(1),t.Q6J("formGroupName",i),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",n),t.xp6(1),t.Q6J("ngIf",e.get("fansub_id").value||0===i),t.xp6(1),t.Q6J("ngIf",!e.get("fansub_id").value&&i>0),t.xp6(3),t.Q6J("ngIf",s.isLoading),t.xp6(1),t.Q6J("ngIf",!s.isLoading),t.xp6(2),t.Oqu(e.get("fansub_name").value),t.xp6(2),t.Q6J("ngIf",e.get("fansub_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("fansub_id").hasError("pattern"))}}function zt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Berkas Tidak Boleh Kosong"),t.qZA())}function $t(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Berkas Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Wt(a,r){if(1&a&&t._UZ(0,"angular-editor",85),2&a){const e=t.oxw(2);t.Q6J("config",e.GS.angularEditorConfig)}}function Xt(a,r){1&a&&t.GkF(0)}function te(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.attachmentLimitExceeded)," !")}}function ee(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.attachmentErrorText)}}function ae(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",38)(1,"div",94)(2,"div",95),t._uU(3),t.ALo(4,"bytes"),t._UZ(5,"br")(6,"mat-progress-bar",96),t.qZA()(),t.TgZ(7,"div",97)(8,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.submitAttachment(s))}),t._UZ(9,"mat-icon",98),t._uU(10," Unggah "),t.qZA()()()}if(2&a){const e=r.$implicit,i=t.oxw(3);t.xp6(3),t.HOy(" ",e.status," :: ",e.progress,"% @ ",t.lcZ(4,7,e.speed),"/s # ",e.remaining," detik "),t.xp6(3),t.Q6J("mode","determinate")("value",e.progress),t.xp6(2),t.Q6J("disabled",i.submitted||"complete"===e.status||"uploading"===e.status)}}function ie(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",10)(1,"div",86)(2,"small",87),t._uU(3," * "),t.TgZ(4,"i"),t._uU(5,"Resume-able Upload"),t.qZA(),t._uU(6," (Tidak wajib, jika sudah ada URL eksternal, misal alamat webmu gdrive mediafire mega dan lain sebagainya). Mohon ditunggu dan jangan di tinggal, berkas lampiran akan "),t.TgZ(7,"i"),t._uU(8,"expired"),t.qZA(),t._uU(9),t.TgZ(10,"i"),t._uU(11,"upload"),t.qZA(),t._uU(12),t.qZA()(),t.TgZ(13,"mat-form-field",88)(14,"mat-label"),t._uU(15,"Upload Lampiran Berkas -- DDL"),t.qZA(),t.TgZ(16,"ngx-mat-file-input",89,90),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(17),l=t.oxw(2);return t.KtG(l.uploadAttachment(n,s))}),t.qZA(),t._UZ(18,"mat-icon",91),t.qZA(),t.TgZ(19,"mat-error",92)(20,"small"),t.YNc(21,te,3,3,"div",20),t.YNc(22,ee,2,1,"div",20),t.qZA()()(),t.YNc(23,ae,11,9,"div",93),t.ALo(24,"async")}if(2&a){const e=t.oxw(2);t.xp6(9),t.hij(" apabila tidak disimpan dalam ",e.CONSTANTS.timeoutDeleteTempAttachmentTime/60/1e3," menit setelah berhasil "),t.xp6(3),t.hij(". Lalu kemudian saat berkas berhasil dibuat, lampiran tidak akan bisa di modifikasi. Tipe file yang diperbolehkan :: ",e.extAttachment," "),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",null!==e.attachmentSelected)("accept",e.fileTypeAttachmentAllowed),t.xp6(5),t.Q6J("ngIf",e.attachmentLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.attachmentErrorText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(24,8,e.uploads$))}}function ne(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",99),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verify())}),t._UZ(1,"mat-icon",100),t._uU(2," Verifikasi Akun Untuk Upload DDL! "),t.qZA()}}function oe(a,r){1&a&&(t.TgZ(0,"div",86)(1,"small",87),t._uU(2,"* Gunakan tombol (X) untuk menghapus URL Eksternal jika ingin hanya menggunakan lampiran "),t.TgZ(3,"i"),t._uU(4,"upload"),t.qZA(),t._uU(5," DDL saja"),t.qZA()())}function re(a,r){1&a&&t._UZ(0,"mat-icon",109)}function se(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeDownloadLink(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function le(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Web Tidak Boleh Kosong"),t.qZA())}function ce(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Web Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function me(a,r){1&a&&t._UZ(0,"mat-icon",110)}function ue(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeDownloadLink(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function de(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tautan Tidak Boleh Kosong"),t.qZA())}function _e(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tautan Link Tidak Valid"),t.qZA())}function ge(a,r){if(1&a&&(t.ynx(0),t.TgZ(1,"div",101),t.YNc(2,oe,6,0,"div",102),t.TgZ(3,"mat-form-field",103)(4,"mat-label"),t._uU(5,"Nama Website"),t.qZA(),t._UZ(6,"input",104),t.YNc(7,re,1,0,"mat-icon",105),t.YNc(8,se,2,0,"button",80),t.TgZ(9,"mat-error"),t.YNc(10,le,2,0,"div",20),t.YNc(11,ce,2,0,"div",20),t.qZA()(),t.TgZ(12,"mat-form-field",106)(13,"mat-label"),t._uU(14,"Tautan Link"),t.qZA(),t._UZ(15,"input",107),t.YNc(16,me,1,0,"mat-icon",108),t.YNc(17,ue,2,0,"button",80),t.TgZ(18,"mat-error"),t.YNc(19,de,2,0,"div",20),t.YNc(20,_e,2,0,"div",20),t.qZA()()(),t.BQk()),2&a){const e=r.$implicit,i=r.index,n=t.oxw(2);t.xp6(1),t.Q6J("formGroupName",i),t.xp6(1),t.Q6J("ngIf",(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified)&&0===i),t.xp6(1),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngIf",e.get("name").value||0===i&&!(null!=n.AS.currentUserSubject&&null!=n.AS.currentUserSubject.value&&n.AS.currentUserSubject.value.verified)),t.xp6(1),t.Q6J("ngIf",!e.get("name").value&&(i>0||(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified))),t.xp6(2),t.Q6J("ngIf",e.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngIf",e.get("url").value||0===i&&!(null!=n.AS.currentUserSubject&&null!=n.AS.currentUserSubject.value&&n.AS.currentUserSubject.value.verified)),t.xp6(1),t.Q6J("ngIf",!e.get("url").value&&(i>0||(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified))),t.xp6(2),t.Q6J("ngIf",e.get("url").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("url").hasError("pattern"))}}function pe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"span",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.toggleDetailMode())}),t._uU(5),t.qZA(),t.TgZ(6,"b",9),t._uU(7,"Tambah Berkas Baru"),t.qZA()()(),t.TgZ(8,"div",2)(9,"div",10)(10,"div",11)(11,"div",10),t.YNc(12,pt,12,6,"div",12),t.YNc(13,ft,4,1,"div",13),t.YNc(14,ht,5,0,"div",14),t.TgZ(15,"div",15)(16,"mat-slide-toggle",16),t._uU(17," R-18+ Konten Eksplisit "),t.qZA()(),t.TgZ(18,"mat-form-field",17)(19,"mat-label"),t._uU(20,"Jenis Proyek"),t.qZA(),t.TgZ(21,"mat-select",18),t.YNc(22,bt,2,2,"mat-option",19),t.qZA(),t.TgZ(23,"mat-error"),t.YNc(24,vt,2,0,"div",20),t.YNc(25,xt,2,0,"div",20),t.qZA()(),t.YNc(26,Ct,1,0,"ng-container",21),t.YNc(27,Et,13,7,"ng-template",null,22,t.W1O),t.YNc(29,Lt,5,3,"ng-template",null,23,t.W1O),t.TgZ(31,"div",15),t._UZ(32,"mat-divider"),t.qZA(),t.TgZ(33,"div",24),t.YNc(34,Pt,17,10,"div",25),t.qZA(),t.TgZ(35,"div",2)(36,"div",10),t._UZ(37,"div",26),t.TgZ(38,"div",26)(39,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addFansub())}),t._UZ(40,"mat-icon",28),t._uU(41," Tambah Fansub "),t.qZA()()()(),t.TgZ(42,"div",15)(43,"a",29),t._uU(44," * Jika pencarian tidak ditemukan, silahkan membuat halaman Fansub baru terlebih dahulu "),t.qZA()()()(),t.TgZ(45,"div",30)(46,"div",10)(47,"mat-form-field",31)(48,"mat-label"),t._uU(49,"Nama Berkas"),t.qZA(),t._UZ(50,"input",32)(51,"mat-icon",33),t.TgZ(52,"mat-error"),t.YNc(53,zt,2,0,"div",20),t.YNc(54,$t,2,0,"div",20),t.qZA()(),t.YNc(55,Wt,1,1,"angular-editor",34),t.qZA(),t.TgZ(56,"div",10)(57,"div",15),t._UZ(58,"mat-divider"),t.qZA()(),t.YNc(59,Xt,1,0,"ng-container",21),t.YNc(60,ie,25,10,"ng-template",null,35,t.W1O),t.YNc(62,ne,3,0,"ng-template",null,36,t.W1O),t.TgZ(64,"div",10)(65,"div",15),t._UZ(66,"mat-divider"),t.qZA()(),t.ynx(67,37),t.YNc(68,ge,21,12,"ng-container",25),t.BQk(),t.TgZ(69,"div",38),t._UZ(70,"div",26)(71,"div",26)(72,"div",26),t.TgZ(73,"div",26)(74,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addDownloadLink())}),t._UZ(75,"mat-icon",28),t._uU(76," Tambah URL Eksternal "),t.qZA()()()()(),t.TgZ(77,"div",10)(78,"div",15)(79,"div",39),t._UZ(80,"div",40),t.TgZ(81,"div",41)(82,"a",42),t._UZ(83,"mat-icon",43),t._uU(84," Batal "),t.qZA()(),t.TgZ(85,"div",41)(86,"button",44),t._uU(87," Simpan "),t._UZ(88,"mat-icon",45),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(28),i=t.MAs(30),n=t.MAs(61),s=t.MAs(63),l=t.oxw();t.Q6J("formGroup",l.fg),t.xp6(5),t.hij(" ",l.detailMode?"Sederhana":"Lengkap"," "),t.xp6(7),t.Q6J("ngIf",l.detailMode),t.xp6(1),t.Q6J("ngIf",l.image&&!l.fg.value.image&&l.detailMode),t.xp6(1),t.Q6J("ngIf",null==l.AS.currentUserSubject||null==l.AS.currentUserSubject.value?null:l.AS.currentUserSubject.value.verified),t.xp6(4),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngForOf",l.projectList),t.xp6(2),t.Q6J("ngIf",l.fg.get("projectType_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",l.fg.get("projectType_id").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",l.berkasType.toLowerCase().includes("anime_"))("ngIfThen",e)("ngIfElse",i),t.xp6(8),t.Q6J("ngForOf",l.getFansubControl.controls),t.xp6(5),t.Q6J("disabled",l.submitted),t.xp6(8),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",l.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",l.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",l.detailMode),t.xp6(4),t.Q6J("ngIf",null==l.AS.currentUserSubject||null==l.AS.currentUserSubject.value?null:l.AS.currentUserSubject.value.verified)("ngIfThen",n)("ngIfElse",s),t.xp6(9),t.Q6J("ngForOf",l.getDownloadUrlControl.controls),t.xp6(6),t.Q6J("disabled",l.submitted),t.xp6(8),t.Q6J("disabled",l.submitted),t.xp6(4),t.Q6J("disabled",l.submitted||l.fg.invalid||"uploading"===(null==l.attachmentSelected?null:l.attachmentSelected.status))}}let fe=(()=>{class a{constructor(e,i,n,s,l,d,b,U,z,Ca,Ta,Za,Aa,ka){this.router=e,this.fb=i,this.bs=n,this.anime=s,this.dorama=l,this.project=d,this.fansub=b,this.berkas=U,this.imgbb=z,this.toast=Ca,this.gs=Ta,this.as=Za,this.uploadService=Aa,this.ds=ka,this.detailMode=!1,this.submitted=!1,this.projectList=[],this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.filteredAnime=[],this.filteredDorama=[],this.filteredFansub=[],this.isLoading=!1,this.animeCheckOrAddResponse=null,this.doramaCheckOrAddResponse=null,this.attachmentSelected=null,this.attachmentErrorText=null,this.attachmentLimitExceeded=null,this.uploadToast=null,this.timerTimeout=null,this.gambar=null,this.ddl=null,this.subsProject=null,this.subsFansub=null,this.subsAnimeDetail=null,this.subsDoramaDetail=null,this.subsProjectDetail=null,this.subsFansubDetail=[],this.subsAnimeNew=null,this.subsDoramaNew=null,this.subsImgbb=null,this.subsBerkasCreate=null,this.subsUpload=null,this.berkasType="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get CONSTANTS(){return u.t}get AS(){return this.as}get GS(){return this.gs}get extAttachment(){return u.t.extAttachment.join(", ")}get fileTypeAttachmentAllowed(){return u.t.fileTypeAttachmentAllowed.join(", ")}ngOnInit(){this.gs.isBrowser&&(this.loadProjectList(),this.initForm(),this.uploads$=this.uploadService.connect(),this.subsUpload=this.uploadService.events.subscribe({next:e=>{this.gs.log("[UPLOAD_EVENTS]",e),("uploading"===e.status||"complete"===e.status)&&(this.attachmentSelected=e),"complete"===e.status?(this.gs.log("[UPLOAD_COMPLETED]",e.response),this.fg.controls.attachment_id.patchValue(e.response.result.id),this.uploadToast=this.toast.warning("Segera Kirim Data Berkas!","Lampiran Akan Dihapus ...",{closeButton:!1,timeOut:u.t.timeoutDeleteTempAttachmentTime,disableTimeOut:"extendedTimeOut",tapToDismiss:!1,progressAnimation:"decreasing"},!0),this.timerTimeout=setTimeout(()=>{this.gs.log("[UPLOAD_TIMEOUT]",u.t.timeoutDeleteTempAttachmentTime),this.failOrCancelUpload({info:"Expired, Silahkan Upload Ulang!"})},u.t.timeoutDeleteTempAttachmentTime)):"error"===e.status&&(this.gs.log("[UPLOAD_ERROR]",e.response,"error"),this.failOrCancelUpload(e.response))},error:e=>{this.gs.log("[UPLOAD_ERROR]",e,"error"),this.failOrCancelUpload(e)}}))}ngOnDestroy(){this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.timerTimeout&&(clearTimeout(this.timerTimeout),this.timerTimeout=null),this.subsProject?.unsubscribe(),this.subsFansub?.unsubscribe(),this.subsAnimeDetail?.unsubscribe(),this.subsDoramaDetail?.unsubscribe(),this.subsProjectDetail?.unsubscribe();for(const e of this.subsFansubDetail)e?.unsubscribe();this.subsAnimeNew?.unsubscribe(),this.subsDoramaNew?.unsubscribe(),this.subsImgbb?.unsubscribe(),this.subsBerkasCreate?.unsubscribe(),this.uploadService.disconnect(),this.subsUpload?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}toggleDetailMode(){this.detailMode=!this.detailMode}loadProjectList(){this.bs.busy(),this.subsProject=this.project.getProject().subscribe({next:e=>{this.gs.log("[PROJECT_LOAD_SUCCESS]",e),this.projectList=e.results,this.bs.idle()},error:e=>{this.gs.log("[PROJECT_LOAD_ERROR]",e,"error"),this.bs.idle()}})}hasRequiredField(e,i){return e.get(i).hasValidator(o.kI.required)}animeValueChanged(){this.subsAnimeDetail=this.fg.get("anime_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(e=>this.anime.searchAnime(e).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_SUCCESS]",e),this.filteredAnime=e.results},error:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_ERROR]",e,"error"),this.animeValueChanged()}})}doramaValueChanged(){this.subsDoramaDetail=this.fg.get("dorama_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(e=>this.dorama.searchDorama(e).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_SUCCESS]",e);for(const i of e.results)i.mdl_id=i.mdl_id.split("-")[1],i.image_url=i.thumb;this.filteredDorama=e.results},error:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_ERROR]",e,"error"),this.doramaValueChanged()}})}projectTypeValueChanged(){this.subsProjectDetail=this.fg.get("projectType_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_PROJECT_CHANGED]",e),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null),this.fg.controls.sn_code.patchValue(null),this.fg.controls.anime_id.setErrors(null),this.fg.controls.anime_name.setErrors(null),this.fg.controls.dorama_id.setErrors(null),this.fg.controls.dorama_name.setErrors(null),this.fg.controls.sn_code.setErrors(null),this.fg.controls.anime_id.clearValidators(),this.fg.controls.anime_name.clearValidators(),this.fg.controls.dorama_id.clearValidators(),this.fg.controls.dorama_name.clearValidators(),this.fg.controls.sn_code.clearValidators(),this.fg.controls.anime_id.markAsPristine(),this.fg.controls.anime_name.markAsPristine(),this.fg.controls.dorama_id.markAsPristine(),this.fg.controls.dorama_name.markAsPristine(),this.fg.controls.sn_code.markAsPristine(),this.fg.controls.anime_id.markAsUntouched(),this.fg.controls.anime_name.markAsUntouched(),this.fg.controls.dorama_id.markAsUntouched(),this.fg.controls.dorama_name.markAsUntouched(),this.fg.controls.sn_code.markAsUntouched();const i=this.projectList.find(n=>n.id===e);i&&(this.berkasType=i.name,i.name.toLowerCase().includes("anime_")?(this.fg.controls.anime_id.setValidators([o.kI.required,o.kI.pattern(/^\d+$/)]),this.fg.controls.anime_name.setValidators([o.kI.required]),this.subsAnimeDetail?.unsubscribe(),this.animeValueChanged()):i.name.toLowerCase().includes("dorama_")?(this.fg.controls.dorama_id.setValidators([o.kI.required,o.kI.pattern(/^\d+$/)]),this.fg.controls.dorama_name.setValidators([o.kI.required]),this.subsDoramaDetail?.unsubscribe(),this.doramaValueChanged()):this.fg.controls.sn_code.setValidators([o.kI.required,o.kI.pattern(/^[A-Z0-9\-]+$/)])),this.fg.controls.anime_id.updateValueAndValidity(),this.fg.controls.anime_name.updateValueAndValidity(),this.fg.controls.dorama_id.updateValueAndValidity(),this.fg.controls.dorama_name.updateValueAndValidity(),this.fg.controls.sn_code.updateValueAndValidity()}})}initForm(){this.fg=this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],description:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],projectType_id:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],anime_id:[null,o.kI.compose([])],anime_name:[null,o.kI.compose([])],dorama_id:[null,o.kI.compose([])],dorama_name:[null,o.kI.compose([])],fansub_list:this.fb.array([this.createFansub()]),image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],sn_code:[null,o.kI.compose([])],attachment_id:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],download_url:this.fb.array([this.createDownloadLink()]),private:[!1,o.kI.compose([o.kI.required])],r18:[!1,o.kI.compose([o.kI.required])]}),this.projectTypeValueChanged()}get getDownloadUrlControl(){return this.fg.get("download_url")}createDownloadLink(){return this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],url:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexUrl)])]})}removeDownloadLink(e){this.getDownloadUrlControl.removeAt(e)}addDownloadLink(){this.getDownloadUrlControl.push(this.createDownloadLink())}get getFansubControl(){return this.fg.get("fansub_list")}createFansub(){const e=this.fb.group({fansub_id:[null,o.kI.compose([o.kI.required,o.kI.pattern(/^\d+$/)])],fansub_name:[null,o.kI.compose([o.kI.required])]});return this.subsFansubDetail.push(e.get("fansub_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(i=>this.fansub.searchFansub(i).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:i=>{this.gs.log("[BERKAS_CREATE_SEARCH_FANSUB_RESULT]",i),this.filteredFansub=i.results}})),e}removeFansub(e){this.getFansubControl.removeAt(e),this.subsFansubDetail[e]?.unsubscribe(),this.subsFansubDetail.splice(e,1)}addFansub(){this.getFansubControl.push(this.createFansub())}resetSelectedAnime(){this.fg.controls.anime_name.patchValue(null)}resetSelectedDorama(){this.fg.controls.dorama_name.patchValue(null)}resetSelectedFansub(e){this.getFansubControl.controls[e].get("fansub_name").patchValue(null)}filterAnimeSelected(e){this.gs.log("[ANIME_FILTER_CLICK]",e),this.submitted=!0,this.subsAnimeNew=this.anime.addNewAnime({id:e.id,name:e.title,image_url:e.image_url,type:e.media_type?.toUpperCase()}).subscribe({next:i=>{this.gs.log("[ANIME_CHECK_ADD_SUCCESS]",i),this.animeCheckOrAddResponse=i.result,this.submitted=!1,this.fg.controls.anime_id.patchValue(i.result.id),this.fg.controls.anime_name.patchValue(i.result.name)},error:i=>{this.gs.log("[ANIME_CHECK_ADD_ERROR]",i,"error"),this.submitted=!1,this.resetSelectedAnime(),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null)}})}filterDoramaSelected(e){this.gs.log("[DORAMA_FILTER_CLICK]",e),this.submitted=!0,this.subsDoramaNew=this.dorama.addNewDorama({id:parseInt(e.mdl_id,10),slug:e.slug,name:e.title,image_url:e.image_url,type:e.type}).subscribe({next:i=>{this.gs.log("[DORAMA_CHECK_ADD_SUCCESS]",i),this.doramaCheckOrAddResponse=i.result,this.submitted=!1,this.fg.controls.dorama_id.patchValue(i.result.id),this.fg.controls.dorama_name.patchValue(i.result.name)},error:i=>{this.gs.log("[DORAMA_CHECK_ADD_ERROR]",i,"error"),this.submitted=!1,this.resetSelectedDorama(),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null)}})}filterFansubSelected(e,i){this.gs.log("[FANSUB_FILTER_CLICK]",e),this.getFansubControl.controls[i].get("fansub_id").patchValue(e.id),this.getFansubControl.controls[i].get("fansub_name").patchValue(e.name)}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid||"uploading"===this.attachmentSelected?.status)return this.submitted=!1,void this.bs.idle();if(null===this.fg.value.attachment_id&&0===this.fg.value.download_url.lenth)return this.submitted=!1,this.uploadToast=this.toast.warning("Lampiran DDL / URL Eksternal!","Harap Mengisi Setidaknya Salah Satu ..."),void this.bs.idle();const e=[];for(const i of this.fg.value.fansub_list)e.push(i.fansub_id);this.subsBerkasCreate=this.berkas.createBerkas({image:this.fg.value.image,name:this.fg.value.name,description:this.fg.value.description,private:this.fg.value.private,r18:this.fg.value.r18,projectType_id:this.fg.value.projectType_id,anime_id:this.fg.value.anime_id,dorama_id:this.fg.value.dorama_id,sn_code:this.fg.value.sn_code,fansub_id:e,download_url:this.fg.value.download_url,attachment_id:this.fg.value.attachment_id}).subscribe({next:i=>{this.gs.log("[BERKAS_CREATE_SUCCESS]",i),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/berkas",{state:{bypassCanDeactivate:!0}})},error:i=>{this.gs.log("[BERKAS_CREATE_ERROR]",i,"error"),this.submitted=!1,this.bs.idle()}})}uploadAttachment(e,i){this.ddl=i;const n=e.target.files[0];this.attachmentLimitExceeded=null,this.attachmentErrorText=null,this.gs.log("[ATTACHMENT_SELECTED]",n),this.fg.controls.attachment_id.patchValue(null),this.uploadService.disconnect();try{n.size<=u.t.fileSizeAttachmentTotalLimit?this.uploadService.handleFiles(n):(this.attachmentLimitExceeded=u.t.fileSizeAttachmentTotalLimit,this.ddl.clear(e))}catch{this.ddl.clear(e)}}submitAttachment(e){const i=this.uploadService.state().find(n=>n.uploadId===e.uploadId);i&&(this.attachmentSelected=i,e.status="queue")}failOrCancelUpload(e=null){this.attachmentSelected=null,this.attachmentErrorText=e?.result?.message||e?.info||e?.error?.message||"Terjadi Kesalahan, Harap Reload Halaman!",this.uploadService.disconnect(),this.fg.controls.attachment_id.patchValue(null),this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.ddl.clear()}verify(){this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]},state:{bypassCanDeactivate:!0}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.F0),t.Y36(o.QS),t.Y36(F.z),t.Y36(rt.o),t.Y36(st.X),t.Y36(lt.Y),t.Y36(W.T),t.Y36(ct.A),t.Y36(j.X),t.Y36(X.k),t.Y36(p.U),t.Y36(Y.e),t.Y36(mt.Lz),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-berkas-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["class","col-12",4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],["class","col-12 py-3",4,"ngIf"],[1,"col-12","py-3"],["formControlName","r18","matTooltip","Konten Eksplisit"],["appearance","outline",1,"px-3","pt-3","col-12",3,"color"],["formControlName","projectType_id","placeholder","Anime / Drama","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["anime_",""],["notAnime_",""],["formArrayName","fansub_list","matTooltip","Silahkan Buat Terlebih Dahulu Jika Tidak Ada"],[4,"ngFor","ngForOf"],[1,"col","px-3"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add",1,"me-1"],["routerLink","/create/fansub",1,"text-warning","text-decoration-none"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","name","placeholder","[Fansub] Judul Anime - 00 [BD 4K x265 FLAC][CRC32].mkv","required",""],["fontIcon","wysiwyg","matSuffix",""],["class","py-3 w-100","formControlName","description",3,"config",4,"ngIf"],["ddlVerified",""],["ddlNotVerified",""],["formArrayName","download_url"],[1,"row","mb-4"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/berkas",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],[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","w-100"],[1,"col-12","mb-4"],["fontIcon","add_photo_alternate",1,"me-1"],["formControlName","private","matTooltip","Hanya Dapat Di Akses Melalui URL"],[3,"value"],["appearance","outline",1,"py-3","w-100",3,"color"],["matInput","","formControlName","anime_id","placeholder","Full Metal Alchemist",3,"matAutocomplete","keyup"],["fontIcon","short_text","matSuffix",""],["autoCompleteAnime","matAutocomplete"],["class","is-loading",4,"ngIf"],["class","text-warning",4,"ngIf"],[1,"is-loading"],["mode","indeterminate"],["class","px-1",3,"value","click",4,"ngFor","ngForOf"],[1,"px-1",3,"value","click"],[1,"me-1",2,"height","40px","width","30px","object-fit","cover",3,"src"],[1,"ms-1"],[1,"text-warning"],["dorama_",""],["notDorama_",""],["matInput","","formControlName","dorama_id","placeholder","Flying Colors",3,"matAutocomplete","keyup"],["autoCompleteDorama","matAutocomplete"],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],["matInput","","formControlName","sn_code","placeholder","XXX-999","required",""],["fontIcon","tag","matSuffix",""],[1,"row",3,"formGroupName"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["matInput","","formControlName","fansub_id","placeholder","NamaFansub","required","",3,"matAutocomplete","keyup"],["fontIcon","short_text","matSuffix","",4,"ngIf"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],["autoCompleteFansub","matAutocomplete"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"click"],["fontIcon","close"],[1,"me-1",2,"height","40px","width","40px","object-fit","cover",3,"src"],["formControlName","description",1,"py-3","w-100",3,"config"],[1,"col-12","px-3"],[1,"text-success"],["appearance","outline",1,"px-3","pt-3","col",3,"color"],["uploadx","",1,"w-100",3,"disabled","accept","change"],["ddl",""],["fontIcon","attach_file","matSuffix",""],[1,"px-4","w-100"],["class","row mb-4",4,"ngFor","ngForOf"],[1,"col"],[1,"ps-3"],[3,"mode","value"],[1,"col-6","col-lg-4","px-3"],["fontIcon","attachment",1,"me-1"],["type","button","mat-stroked-button","","color","accent",1,"w-100",3,"click"],["fontIcon","enhanced_encryption",1,"me-1"],["matTooltip","Silahkan Isi Alamat Website Kamu Jika Ingin Mendapatkan Traffic Pengunjung",1,"row",3,"formGroupName"],["class","col-12 px-3",4,"ngIf"],["appearance","outline",1,"px-3","pt-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","name","placeholder","Google Drive","required",""],["fontIcon","web","matSuffix","",4,"ngIf"],["appearance","outline",1,"px-3","pt-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","url","placeholder","https://webshit.saya.com/01/02/halaman-post-download.html","required",""],["fontIcon","link","matSuffix","",4,"ngIf"],["fontIcon","web","matSuffix",""],["fontIcon","link","matSuffix",""]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,pe,89,25,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,tt.XC,tt.ZL,et.ey,A.lW,A.zs,ut.d,M.Hw,f.TO,f.KE,f.hX,f.R9,R.Nt,dt.pW,at.gD,it.Rr,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,o.x0,o.CE,k.Yh,Q.t,Z.s6,m.Ov,V.$]}),a})();var T=c(7331),P=c(9602);function he(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function be(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function ve(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",6)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function xe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Tidak Boleh Kosong"),t.qZA())}function Ce(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Link Tidak Valid"),t.qZA())}function Te(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Facebook Link Tidak Valid"),t.qZA())}function Ze(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function Ae(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Twitter Link Tidak Valid"),t.qZA())}function ke(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.coverLimitExceeded)," !")}}function Ie(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.coverErrorText)}}function Ue(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",66)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.submitCover())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Ee(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Tidak Boleh Kosong"),t.qZA())}function Se(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ye(a,r){if(1&a&&(t.TgZ(0,"small",67)(1,"div"),t._uU(2),t.qZA()()),2&a){const e=t.oxw(3);t.xp6(2),t.Oqu(e.slugInfo)}}function Ne(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Tidak Boleh Kosong"),t.qZA())}function Je(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),t.qZA())}function we(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Harus Diisi Secara Valid"),t.qZA())}function qe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Be(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Mohon Pilih Salah Satu"),t.qZA())}function Fe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function De(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",68),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.removeTag(s))}),t._uU(1),t._UZ(2,"mat-icon",69),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function Me(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"RSS Link Tidak Valid"),t.qZA())}function Re(a,r){if(1&a&&(t.TgZ(0,"mat-form-field",23)(1,"mat-label"),t._uU(2,"URI / URL RSS v2.0 Feed"),t.qZA(),t._UZ(3,"input",70)(4,"mat-icon",71),t.TgZ(5,"mat-error"),t.YNc(6,Me,2,0,"div",21),t.qZA()()),2&a){const e=t.oxw(3);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("rss_feed").hasError("pattern"))}}function Qe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",8),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onSubmit())}),t.TgZ(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),t._uU(5,"Tambah Data Fansub Baru"),t.qZA()()(),t.TgZ(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",13)(10,"div",6),t._UZ(11,"img",15),t.TgZ(12,"mat-form-field",16)(13,"mat-label"),t._uU(14,"Foto"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",17,18),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(16),l=t.oxw(2);return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(17,"mat-icon",19),t.qZA(),t.TgZ(18,"mat-error",20)(19,"small"),t.YNc(20,he,3,3,"div",21),t.YNc(21,be,2,1,"div",21),t.qZA()()(),t.YNc(22,ve,4,1,"div",22),t.qZA(),t.TgZ(23,"div",13)(24,"div",6)(25,"div",13)(26,"mat-form-field",23)(27,"mat-label"),t._uU(28,"Tautan Website"),t.qZA(),t._UZ(29,"input",24)(30,"mat-icon",25),t.TgZ(31,"mat-error"),t.YNc(32,xe,2,0,"div",21),t.YNc(33,Ce,2,0,"div",21),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-label"),t._uU(36,"Facebook Fanpage"),t.qZA(),t._UZ(37,"input",26)(38,"mat-icon",27),t.TgZ(39,"mat-error"),t.YNc(40,Te,2,0,"div",21),t.qZA()(),t.TgZ(41,"mat-form-field",23)(42,"mat-label"),t._uU(43,"Tautan Discord"),t.qZA(),t._UZ(44,"input",28),t.TgZ(45,"mat-icon",29),t._UZ(46,"img",30),t.qZA(),t.TgZ(47,"mat-error"),t.YNc(48,Ze,2,0,"div",21),t.qZA()(),t.TgZ(49,"mat-form-field",23)(50,"mat-label"),t._uU(51,"Cuitan Twitter"),t.qZA(),t._UZ(52,"input",31),t.TgZ(53,"mat-icon",29),t._UZ(54,"img",30),t.qZA(),t.TgZ(55,"mat-error"),t.YNc(56,Ae,2,0,"div",21),t.qZA()()()()()(),t.TgZ(57,"div",32)(58,"div",13)(59,"mat-form-field",16)(60,"mat-label"),t._uU(61,"Cover"),t.qZA(),t.TgZ(62,"ngx-mat-file-input",17,33),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(63),l=t.oxw(2);return t.KtG(l.uploadCover(n,s))}),t.qZA(),t._UZ(64,"mat-icon",19),t.qZA(),t.TgZ(65,"mat-error",20)(66,"small"),t.YNc(67,ke,3,3,"div",21),t.YNc(68,Ie,2,1,"div",21),t.qZA()(),t.YNc(69,Ue,4,1,"div",34),t.TgZ(70,"mat-form-field",35)(71,"mat-label"),t._uU(72,"Nama Fansub"),t.qZA(),t._UZ(73,"input",36)(74,"mat-icon",37),t.TgZ(75,"mat-error"),t.YNc(76,Ee,2,0,"div",21),t.YNc(77,Se,2,0,"div",21),t.qZA()(),t.TgZ(78,"mat-form-field",38)(79,"mat-label"),t._uU(80,"Singkatan"),t.qZA(),t._UZ(81,"input",39)(82,"mat-icon",40),t.YNc(83,ye,3,1,"small",41),t.TgZ(84,"mat-error"),t.YNc(85,Ne,2,0,"div",21),t.YNc(86,Je,2,0,"div",21),t.qZA()(),t._UZ(87,"angular-editor",42),t.TgZ(88,"mat-form-field",43)(89,"mat-label"),t._uU(90,"Mulai Ada Sejak"),t.qZA(),t.TgZ(91,"input",44),t.NdJ("focus",function(){t.CHM(e);const n=t.MAs(95);return t.KtG(n.open())}),t.ALo(92,"date"),t.qZA(),t._UZ(93,"mat-datepicker-toggle",45)(94,"mat-datepicker",46,47),t.TgZ(96,"mat-error"),t.YNc(97,we,2,0,"div",21),t.YNc(98,qe,2,0,"div",21),t.qZA()(),t.TgZ(99,"mat-form-field",43)(100,"mat-label"),t._uU(101,"Status"),t.qZA(),t.TgZ(102,"mat-select",48)(103,"mat-option",49),t._uU(104,"Tidak Aktif"),t.qZA(),t.TgZ(105,"mat-option",50),t._uU(106,"Aktif"),t.qZA()(),t.TgZ(107,"mat-hint",51),t._uU(108,"Status Kehidupan Fansub Saat Ini"),t.qZA(),t.TgZ(109,"mat-error"),t.YNc(110,Be,2,0,"div",21),t.YNc(111,Fe,2,0,"div",21),t.qZA()(),t.TgZ(112,"mat-form-field",23)(113,"mat-label"),t._uU(114,"Tags & Kategori"),t.qZA(),t.TgZ(115,"mat-chip-list",null,52),t.YNc(117,De,3,2,"mat-chip",53),t.TgZ(118,"input",54),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.addTag(n))}),t.qZA(),t._UZ(119,"mat-icon",55),t.qZA(),t.TgZ(120,"mat-hint",51),t._uU(121,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t.YNc(122,Re,7,2,"mat-form-field",56),t.qZA()()(),t.TgZ(123,"div",13)(124,"div",6)(125,"div",57),t._UZ(126,"div",58),t.TgZ(127,"div",59)(128,"a",60),t._UZ(129,"mat-icon",61),t._uU(130," Batal "),t.qZA()(),t.TgZ(131,"div",59)(132,"button",62),t._uU(133," Simpan "),t._UZ(134,"mat-icon",63),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(95),i=t.MAs(116),n=t.oxw(2);t.Q6J("formGroup",n.fg),t.xp6(11),t.Q6J("src",n.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",n.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",n.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",n.imageErrorText),t.xp6(1),t.Q6J("ngIf",n.image&&!n.fg.value.image),t.xp6(4),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("web").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("web").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("facebook").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/discord/",n.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",n.fg.get("discord").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/twitter/",n.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",n.fg.get("twitter").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",n.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",n.coverLimitExceeded),t.xp6(1),t.Q6J("ngIf",n.coverErrorText),t.xp6(1),t.Q6J("ngIf",n.cover&&!n.fg.value.cover),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngIf",n.slugInfo),t.xp6(2),t.Q6J("ngIf",n.fg.get("slug").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("slug").hasError("pattern")),t.xp6(1),t.Q6J("config",n.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("placeholder",t.xi3(92,50,n.currentDate,"d MMMM y")),t.Q6J("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(4),t.Q6J("ngIf",n.fg.get("born").hasError("required")||n.fg.get("born").hasError("matDatepickerParse")),t.xp6(1),t.Q6J("ngIf",n.fg.get("born").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(11),t.Q6J("ngIf",n.fg.get("active").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("active").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",n.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",n.GS.separatorKeysCodes)("matChipInputFor",i)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",n.rssFeedAllowed),t.xp6(6),t.Q6J("disabled",n.submitted),t.xp6(4),t.Q6J("disabled",n.submitted||n.fg.invalid)}}function Le(a,r){if(1&a&&(t.TgZ(0,"div",1),t._UZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),t.TgZ(5,"div",5)(6,"div",6),t.YNc(7,Qe,135,53,"form",7),t.qZA()()()),2&a){const e=t.oxw();t.xp6(1),t.Udp("background-image","url("+e.cover_url+")"),t.xp6(6),t.Q6J("ngIf",e.fg)}}let Oe=(()=>{class a{constructor(e,i,n,s,l,d,b,U,z){this.fb=e,this.router=i,this.as=n,this.bs=s,this.imgbb=l,this.fansub=d,this.toast=b,this.gs=U,this.ds=z,this.submitted=!1,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.image_url="/assets/img/form/no-image.png",this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.cover_url="/assets/img/form/no-image.png",this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsImgbb=null,this.subsFansub=null,this.subsCekFansubSlug=null,this.slugInfo="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get rssFeedAllowed(){return this.as.currentUserSubject?.value?.role===g.yS.ADMIN||this.as.currentUserSubject?.value?.role===g.yS.MODERATOR||this.as.currentUserSubject?.value?.role===g.yS.FANSUBBER}ngOnDestroy(){this.subsImgbb?.unsubscribe(),this.subsFansub?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.initForm()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){this.fg=this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],description:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],born:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],active:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],slug:[null,o.kI.compose([o.kI.required,o.kI.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[[],o.kI.compose([])],image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],cover:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],web:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],facebook:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],discord:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],twitter:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],rss_feed:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])]}),this.slugValueChanged()}slugValueChanged(){this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.slugInfo="Mengecek ..."),(0,O.w)(e=>this.fansub.cekSlug({slug:e})),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_SUCCESS]",e),this.slugInfo=e.result.message},error:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_ERROR]",e,"error"),this.slugValueChanged()}})}addTag(e){const i=e.input,n=e.value;(n||"").trim()&&this.fg.value.tags.push(n.trim()),i&&(i.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTag(e){const i=this.fg.value.tags.indexOf(e);i>=0&&this.fg.value.tags.splice(i,1)}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}uploadCover(e,i){this.gambar_=i,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[COVER_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.cover=n,this.cover_url=s.result.toString()},d.src=s.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=u.t.fileSizeImageLimit,this.gambar_.clear(e)}}catch{this.cover=null,this.cover_url="/assets/img/form/no-image.png",this.gambar_.clear(e)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:e=>{this.gs.log("[COVER_SUCCESS]",e),this.fg.controls.cover.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[COVER_ERROR]",e,"error"),this.fg.controls.cover.patchValue(null),this.submitted=!1,this.coverErrorText=e.result?.message||e.info}})}onSubmit(){this.bs.busy();const e=[];if(this.fg.value.web&&e.push({name:"web",url:this.fg.value.web}),this.fg.value.facebook&&e.push({name:"facebook",url:this.fg.value.facebook}),this.fg.value.discord&&e.push({name:"discord",url:this.fg.value.discord}),this.fg.value.twitter&&e.push({name:"twitter",url:this.fg.value.twitter}),this.submitted=!0,this.fg.invalid||0===e.length)return 0===e.length&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansub=this.fansub.createFansub({image:this.fg.value.image,cover:this.fg.value.cover,name:this.fg.value.name,description:this.fg.value.description,born:this.fg.value.born.getTime(),active:this.fg.value.active,tags:this.fg.value.tags,slug:this.fg.value.slug,urls:e,rss_feed:this.fg.value.rss_feed}).subscribe({next:i=>{this.gs.log("[FANSUB_CREATE_SUCCESS]",i),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/fansub",{state:{bypassCanDeactivate:!0}})},error:i=>{this.gs.log("[FANSUB_CREATE_ERROR]",i,"error"),this.submitted=!1,this.bs.idle()}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(o.QS),t.Y36(h.F0),t.Y36(Y.e),t.Y36(F.z),t.Y36(j.X),t.Y36(W.T),t.Y36(X.k),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fansub-create"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["fontIcon","web","matSuffix",""],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["fontIcon","facebook","matSuffix",""],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["matSuffix",""],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],[1,"col-12","col-md-7","col-xl-8","p-3"],["gambar_",""],["class","col-12 py-3",4,"ngIf"],["appearance","outline",1,"py-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan","required",""],["fontIcon","wysiwyg","matSuffix",""],["appearance","outline","matTooltip","Digunakan Juga Untuk Sub-Domain",1,"py-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub","required",""],["fontIcon","short_text","matSuffix",""],["class","text-info",4,"ngIf"],["formControlName","description","required","",1,"py-3","w-100",3,"config"],["appearance","outline",1,"py-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born","required","",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif","required",""],["value","0"],["value","1"],["align","end"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/fansub",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],[1,"col-12","py-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],["fontIcon","rss_feed","matSuffix",""]],template:function(e,i){1&e&&t.YNc(0,Le,8,3,"div",0),2&e&&t.Q6J("ngIf",i.fg)},dependencies:[m.sg,m.O5,h.yS,et.ey,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,P.Mq,P.hl,P.nW,M.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,R.Nt,at.gD,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,k.Yh,Q.t,Z.s6,m.uU,V.$],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]}),a})();var H=c(5934),Ye=c(7358);function Ke(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeTo(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function He(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Boleh Kosong"),t.qZA())}function Ge(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function je(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeCc(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function Ve(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function Pe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeBcc(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function ze(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function $e(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",36)(1,"mat-slide-toggle",37),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.noReplyMode(n))}),t._uU(2),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.MGl("matTooltip","Kirim sebagai noreply@",e.ENV.domain,""),t.xp6(1),t.hij(" Kirim sebagai noreply@",e.ENV.domain," ")}}function We(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Pesan Tidak Boleh Kosong"),t.qZA())}function Xe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Pesan Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ta(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Buat Email Baru & Kirim"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"mat-form-field",11)(11,"mat-label"),t._uU(12,"Penerima"),t.qZA(),t.TgZ(13,"mat-chip-list",null,12),t.YNc(15,Ke,3,2,"mat-chip",13),t.qZA(),t.TgZ(16,"input",14),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addTo(n))}),t.qZA(),t._UZ(17,"mat-icon",15),t.TgZ(18,"mat-hint",16)(19,"mat-error"),t.YNc(20,He,2,0,"div",17),t.YNc(21,Ge,2,0,"div",17),t.qZA()()(),t.TgZ(22,"mat-form-field",11)(23,"mat-label"),t._uU(24,"Carbon Copy"),t.qZA(),t.TgZ(25,"mat-chip-list",null,18),t.YNc(27,je,3,2,"mat-chip",13),t.qZA(),t.TgZ(28,"input",19),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addCc(n))}),t.qZA(),t._UZ(29,"mat-icon",15),t.TgZ(30,"mat-hint",16)(31,"mat-error"),t.YNc(32,Ve,2,0,"div",17),t.qZA()()(),t.TgZ(33,"mat-form-field",11)(34,"mat-label"),t._uU(35,"Blind Carbon Copy"),t.qZA(),t.TgZ(36,"mat-chip-list",null,20),t.YNc(38,Pe,3,2,"mat-chip",13),t.qZA(),t.TgZ(39,"input",19),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addBcc(n))}),t.qZA(),t._UZ(40,"mat-icon",15),t.TgZ(41,"mat-hint",16)(42,"mat-error"),t.YNc(43,ze,2,0,"div",17),t.qZA()()(),t.YNc(44,$e,3,2,"div",21),t.qZA()(),t.TgZ(45,"div",22)(46,"div",9)(47,"mat-form-field",23)(48,"mat-label"),t._uU(49,"Judul"),t.qZA(),t._UZ(50,"input",24)(51,"mat-icon",25),t.TgZ(52,"mat-error"),t.YNc(53,We,2,0,"div",17),t.YNc(54,Xe,2,0,"div",17),t.qZA()(),t._UZ(55,"angular-editor",26),t.qZA()()(),t.TgZ(56,"div",9)(57,"div",2)(58,"div",27),t._UZ(59,"div",28),t.TgZ(60,"div",29)(61,"a",30),t._UZ(62,"mat-icon",31),t._uU(63," Batal "),t.qZA()(),t.TgZ(64,"div",29)(65,"button",32),t._uU(66," Simpan "),t._UZ(67,"mat-icon",33),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(14),i=t.MAs(26),n=t.MAs(37),s=t.oxw();t.Q6J("formGroup",s.fg),t.xp6(10),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.to),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",e)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("to").hasError("required")),t.xp6(1),t.Q6J("ngIf",s.fg.get("to").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.cc),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",i)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("cc").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.bcc),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",n)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("bcc").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",s.canSendAsNoReply),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",s.fg.get("subject").hasError("required")),t.xp6(1),t.Q6J("ngIf",s.fg.get("subject").hasError("pattern")),t.xp6(1),t.Q6J("config",s.GS.angularEditorConfig),t.xp6(6),t.Q6J("disabled",s.submitted),t.xp6(4),t.Q6J("disabled",s.submitted||s.fg.invalid)}}let ea=(()=>{class a{constructor(e,i,n,s,l,d,b,U){this.activatedRoute=e,this.fb=i,this.router=n,this.bs=s,this.gs=l,this.as=d,this.ms=b,this.ds=U,this.submitted=!1,this.subsMail=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return H.N}get GS(){return this.gs}get canSendAsNoReply(){const e=this.as.currentUserSubject?.value?.role;return e===g.yS.ADMIN||e===g.yS.MODERATOR}ngOnInit(){this.gs.isBrowser&&this.initForm()}ngOnDestroy(){this.subsMail?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){const e=this.activatedRoute.snapshot.queryParamMap.get("to")?.split(",").map(l=>l.toLowerCase().trim())||[],i=this.activatedRoute.snapshot.queryParamMap.get("cc")?.split(",").map(l=>l.toLowerCase().trim())||[],n=this.activatedRoute.snapshot.queryParamMap.get("bcc")?.split(",").map(l=>l.toLowerCase().trim())||[];this.as.currentUserSubject?.value&&(n.includes(`${this.as.currentUserSubject.value._email.toLowerCase().trim()}`)||n.push(`${this.as.currentUserSubject.value._email.toLowerCase().trim()}`));const s=this.activatedRoute.snapshot.queryParamMap.get("subject")||"";this.fg=this.fb.group({to:[e,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEmailMulti)])],cc:[i,o.kI.compose([o.kI.pattern(u.t.regexEmailMulti)])],bcc:[n,o.kI.compose([o.kI.pattern(u.t.regexEmailMulti)])],subject:[s,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],message:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],no_reply:[!1,o.kI.compose([o.kI.required])]})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsMail=this.ms.sendMail(this.fg.value).subscribe({next:e=>{this.gs.log("[MAIL_SEND_SUCCESS]",e),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/mailbox",{state:{bypassCanDeactivate:!0}})},error:e=>{this.gs.log("[MAIL_SEND_ERROR]",e,"error"),this.submitted=!1,this.bs.idle()}})}addTo(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.to.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.to.patchValue(this.fg.value.to.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTo(e){const i=this.fg.value.to.indexOf(e);i>=0&&this.fg.value.to.splice(i,1)}addCc(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.cc.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.cc.patchValue(this.fg.value.cc.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeCc(e){const i=this.fg.value.cc.indexOf(e);i>=0&&this.fg.value.cc.splice(i,1)}addBcc(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.bcc.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.bcc.patchValue(this.fg.value.bcc.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeBcc(e){const i=this.fg.value.bcc.indexOf(e);i>=0&&this.fg.value.bcc.splice(i,1)}noReplyMode(e){e.checked?(this.fg.controls.subject.patchValue(`${H.N.siteName} | Informasi`),this.fg.controls.subject.disable()):this.fg.controls.subject.enable()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.gz),t.Y36(o.QS),t.Y36(h.F0),t.Y36(F.z),t.Y36(p.U),t.Y36(Y.e),t.Y36(Ye.Y),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-mailbox-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["hintLabel","Gunakan , Jika Lebih Dari 1","appearance","outline",1,"py-3","col-12",3,"color"],["to",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","user@domain.tld","required","",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","short_text","matSuffix",""],["align","end"],[4,"ngIf"],["cc",""],["placeholder","user@domain.tld",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["bcc",""],["class","col-12 py-3",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","subject","placeholder","Judul Pesan Blablabla ...","required",""],["fontIcon","wysiwyg","matSuffix",""],["formControlName","message","required","",1,"py-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/mailbox",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],[1,"col-12","py-3"],["formControlName","no_reply",3,"matTooltip","change"]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ta,68,27,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,M.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,R.Nt,it.Rr,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,Q.t,Z.s6]}),a})();var aa=c(9618);function ia(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function na(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imageErrorText)}}function oa(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",2)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",37),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function ra(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Berita Tidak Boleh Kosong"),t.qZA())}function sa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Berita Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function la(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",38),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeTag(s))}),t._uU(1),t._UZ(2,"mat-icon",39),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function ca(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Tambah Data Berita & Informasi Baru"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",2),t._UZ(11,"img",11),t.TgZ(12,"mat-form-field",12)(13,"mat-label"),t._uU(14,"Gambar"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",13,14),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(16),l=t.oxw();return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(17,"mat-icon",15),t.qZA(),t.TgZ(18,"mat-error",16)(19,"small"),t.YNc(20,ia,3,3,"div",17),t.YNc(21,na,2,1,"div",17),t.qZA()()(),t.YNc(22,oa,4,1,"div",18),t.qZA()(),t.TgZ(23,"div",19)(24,"div",9)(25,"mat-form-field",20)(26,"mat-label"),t._uU(27,"Judul"),t.qZA(),t._UZ(28,"input",21)(29,"mat-icon",22),t.TgZ(30,"mat-error"),t.YNc(31,ra,2,0,"div",17),t.YNc(32,sa,2,0,"div",17),t.qZA()(),t.TgZ(33,"mat-form-field",20)(34,"mat-label"),t._uU(35,"Tags & Kategori"),t.qZA(),t.TgZ(36,"mat-chip-list",null,23),t.YNc(38,la,3,2,"mat-chip",24),t.TgZ(39,"input",25),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addTag(n))}),t.qZA(),t._UZ(40,"mat-icon",26),t.qZA(),t.TgZ(41,"mat-hint",27),t._uU(42,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t._UZ(43,"angular-editor",28),t.qZA()()(),t.TgZ(44,"div",9)(45,"div",2)(46,"div",29),t._UZ(47,"div",30),t.TgZ(48,"div",31)(49,"a",32),t._UZ(50,"mat-icon",33),t._uU(51," Batal "),t.qZA()(),t.TgZ(52,"div",31)(53,"button",34),t._uU(54," Simpan "),t._UZ(55,"mat-icon",35),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(37),i=t.oxw();t.Q6J("formGroup",i.fg),t.xp6(11),t.Q6J("src",i.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",i.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",i.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",i.imageErrorText),t.xp6(1),t.Q6J("ngIf",i.image&&!i.fg.value.image),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",i.fg.get("title").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("title").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",i.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",i.GS.separatorKeysCodes)("matChipInputFor",e)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("config",i.GS.angularEditorConfig),t.xp6(6),t.Q6J("disabled",i.submitted),t.xp6(4),t.Q6J("disabled",i.submitted||i.fg.invalid)}}let ma=(()=>{class a{constructor(e,i,n,s,l,d,b){this.fb=e,this.router=i,this.bs=n,this.imgbb=s,this.news=l,this.gs=d,this.ds=b,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.gambar=null,this.subsNews=null,this.subsImgbb=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser&&this.initForm()}ngOnDestroy(){this.subsImgbb?.unsubscribe(),this.subsNews?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){this.fg=this.fb.group({title:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],content:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],tags:[[],o.kI.compose([])]})}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNews=this.news.createNews({image:this.fg.value.image,title:this.fg.value.title,content:this.fg.value.content,tags:this.fg.value.tags}).subscribe({next:e=>{this.gs.log("[NEWS_CREATE_SUCCESS]",e),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/news",{state:{bypassCanDeactivate:!0}})},error:e=>{this.gs.log("[NEWS_CREATE_ERROR]",e,"error"),this.submitted=!1,this.bs.idle()}})}addTag(e){const i=e.input,n=e.value;(n||"").trim()&&this.fg.value.tags.push(n.trim()),i&&(i.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTag(e){const i=this.fg.value.tags.indexOf(e);i>=0&&this.fg.value.tags.splice(i,1)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(o.QS),t.Y36(h.F0),t.Y36(F.z),t.Y36(j.X),t.Y36(aa.Y),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-news-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","title","placeholder","Berita Terkini Blablabla ...","required",""],["fontIcon","wysiwyg","matSuffix",""],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["align","end"],["formControlName","content","required","",1,"py-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/news",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ca,56,19,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,M.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,R.Nt,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,k.Yh,Q.t,Z.s6,V.$]}),a})();var ua=c(7984);function da(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat URL Tidak Boleh Kosong"),t.qZA())}function _a(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Format Alamat URL Salah"),t.qZA())}function ga(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Ekspektasi Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function pa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Boleh Kosong"),t.qZA())}function fa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Format Alamat Surel Salah"),t.qZA())}function ha(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Buat Laporan Pelanggaran Penyalahgunaan"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"mat-form-field",11)(11,"mat-label"),t._uU(12,"URL Link Tautan Yang Di Laporkan"),t.qZA(),t._UZ(13,"input",12)(14,"mat-icon",13),t.TgZ(15,"mat-error"),t.YNc(16,da,2,0,"div",14),t.YNc(17,_a,2,0,"div",14),t.qZA()(),t._UZ(18,"angular-editor",15),t.TgZ(19,"mat-form-field",11)(20,"mat-label"),t._uU(21,"Ekspektasi Hasil Yang Diharapkan"),t.qZA(),t._UZ(22,"input",16)(23,"mat-icon",13),t.TgZ(24,"mat-error"),t.YNc(25,ga,2,0,"div",14),t.qZA()()()(),t.TgZ(26,"div",17)(27,"div",9)(28,"mat-form-field",11)(29,"mat-label"),t._uU(30,"Surel Informasi Proses Hasil Tindak Lanjut"),t.qZA(),t._UZ(31,"input",18)(32,"mat-icon",19),t.TgZ(33,"mat-error"),t.YNc(34,pa,2,0,"div",14),t.YNc(35,fa,2,0,"div",14),t.qZA()(),t.TgZ(36,"div",20)(37,"re-captcha",21,22),t.NdJ("resolved",function(n){t.CHM(e);const s=t.MAs(38),l=t.oxw();return t.KtG(l.captcha(n,s))}),t.qZA()()()()(),t.TgZ(39,"div",9)(40,"div",2)(41,"div",23),t._UZ(42,"div",24),t.TgZ(43,"div",25)(44,"a",26),t._UZ(45,"mat-icon",27),t._uU(46," Batal "),t.qZA()(),t.TgZ(47,"div",25)(48,"button",28),t._uU(49," Simpan "),t._UZ(50,"mat-icon",29),t.qZA()()()()()()()()}if(2&a){const e=t.oxw();t.Q6J("formGroup",e.fg),t.xp6(10),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("url").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("url").hasError("pattern")),t.xp6(1),t.Q6J("config",e.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("expected_solution").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("contact_email").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("contact_email").hasError("pattern")),t.xp6(2),t.Q6J("siteKey",e.G_CAPTCHA_SITE_KEY),t.xp6(7),t.Q6J("disabled",e.submitted),t.xp6(4),t.Q6J("disabled",e.submitted||e.fg.invalid)}}const va=[{path:"",pathMatch:"full",redirectTo:"/home"},{path:"berkas",component:fe,canActivate:[S.t],canDeactivate:[x],data:{title:"Berkas - Buat Baru",description:"Halaman Unggah Berkas Baru",keywords:"Tambah Berkas Baru",[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"fansub",component:Oe,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Fansub - Buat Baru",description:"Halaman Menambahkan Fansub Baru",keywords:"Create Fansub",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"mailbox",component:ea,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Surel - Buat Baru",description:"Halaman Kirim Surel Baru",keywords:"Buat Surel Baru",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"news",component:ma,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Berita - Buat Baru",description:"Halaman Unggah Berita Baru",keywords:"Tambah Berita Baru",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR]}},{path:"ticket",component:(()=>{class a{constructor(e,i,n,s,l,d,b,U){this.activatedRoute=e,this.fb=i,this.router=n,this.as=s,this.bs=l,this.ticket=d,this.gs=b,this.ds=U,this.captchaRef=null,this.submitted=!1,this.subsUser=null,this.subsDialog=null,this.subsTicket=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get G_CAPTCHA_SITE_KEY(){return u.t.gCaptchaSiteKey}ngOnInit(){this.gs.isBrowser&&(this.initForm(),this.subsUser=this.as.currentUser.subscribe({next:e=>{e&&this.fg?.controls.contact_email?.patchValue(e._email)}}))}ngOnDestroy(){this.subsUser?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsTicket?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){const e=this.activatedRoute.snapshot.queryParamMap.get("url")||null;this.fg=this.fb.group({url:[e,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexUrl)])],contact_email:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEmail)])],reported_issue:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],expected_solution:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],"g-recaptcha-response":[null,[o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)]]})}captcha(e,i){this.gs.log(`[GOOGLE_CAPTCHA] ${e}`),e?(this.captchaRef=i,this.fg.controls["g-recaptcha-response"].patchValue(e)):this.fg.value["g-recaptcha-response"]&&this.fg.controls["g-recaptcha-response"].patchValue(null)}showInfo(e){this.subsDialog=this.ds.openInfoDialog({data:{title:"Pembuatan Laporan",htmlMessage:e,confirmText:"Tutup"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INFO_DIALOG_CLOSED]",i),this.subsDialog.unsubscribe()}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsTicket=this.ticket.createTicket({url:this.fg.value.url,contact_email:this.fg.value.contact_email,reported_issue:this.fg.value.reported_issue,expected_solution:this.fg.value.expected_solution,"g-recaptcha-response":this.fg.value["g-recaptcha-response"]}).subscribe({next:e=>{this.gs.log("[NEWS_CREATE_SUCCESS]",e);const i=`${H.N.baseUrl}/ticket/${e.result.id}?secret=${e.result.secret}`;this.showInfo(`\n Terima kasih telah turut ikut serta dalam menjaga dan mengawasi ${H.N.siteName}.\n Harap simpan URL dan gunakan untuk melihat progressnya ::\n ${i}\n `),this.submitted=!1,this.bs.idle(),this.router.navigate([`/ticket/${e.result.id}`],{state:{bypassCanDeactivate:!0},queryParams:{secret:e.result.secret}})},error:e=>{this.gs.log("[NEWS_CREATE_ERROR]",e,"error"),this.showInfo(e.result?.message||e.info),this.submitted=!1,this.bs.idle()}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.gz),t.Y36(o.QS),t.Y36(h.F0),t.Y36(Y.e),t.Y36(F.z),t.Y36(ua.w),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-ticket-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","url","placeholder","https://sub-domain.fansub.id/berkas/konten-melanggar.html","required","","matTooltip","Alamat URL yang ingin kamu laporkan"],["fontIcon","wysiwyg","matSuffix",""],[4,"ngIf"],["formControlName","reported_issue","required","",1,"py-3","w-100",3,"config"],["matInput","","formControlName","expected_solution","placeholder","Harap kontent tersebut di hapus dan akun yang bersangkutan segera di tangguhkan ..."],[1,"col-12","col-md-5","col-xl-4","p-3"],["matInput","","formControlName","contact_email","placeholder","email-untuk-info-update@example.com","required","","matTooltip","Kami akan mengirimkan informasi jika laporanmu sudah selesai ditangani melalui surel ini"],["fontIcon","alternate_email","matSuffix",""],[1,"py-3","col-12"],["formControlName","g-recaptcha-response",3,"siteKey","resolved"],["captchaRef",""],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/news",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ha,51,13,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.O5,h.yS,A.lW,A.zs,M.Hw,f.TO,f.KE,f.hX,f.R9,R.Nt,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,Q.t,Z.s6,v.wT,v.Vd]}),a})(),canDeactivate:[x],data:{title:"Ticket - Permintaan Baru",description:"Halaman Permohonan Baru",keywords:"Ajukan Permintaan Permohonan"}}];let xa=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[m.ez,h.Bz.forChild(va),_.m,o.u5,o.UX,k.Ad,N.F,Z.UM,C.T,v.a,v.lQ]}),a})()},8616:($,E,c)=>{c.d(E,{t:()=>t});var m=c(4650),h=c(1390),o=c(257),Z=c(7140),k=c(6895),v=c(1861);function u(p,x){if(1&p&&m._UZ(0,"div",4),2&p){const _=m.oxw();m.Udp("background-size",_.GS.sizeContain?"contain":"cover")("background-image","url("+_.GS.bannerImg+")")("background-repeat",_.GS.bgRepeat?"repeat-x":"no-repeat")("height",_.ROUTER.url.startsWith("/news")||_.ROUTER.url.startsWith("/berkas")||_.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",_.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function g(p,x){if(1&p&&(m.TgZ(0,"strong",10),m._uU(1," -- "),m.TgZ(2,"i")(3,"a",11),m._uU(4),m.qZA()()()),2&p){const _=m.oxw().$implicit;m.xp6(3),m.MGl("routerLink","/user/",_.notifCreator,""),m.xp6(1),m.hij(" ",_.notifCreator," ")}}function S(p,x){if(1&p){const _=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){m.CHM(_);const N=m.oxw().$implicit,I=m.oxw();return m.KtG(I.removeNotif(N.notifData.id))}),m.qZA()}}function y(p,x){if(1&p&&(m.TgZ(0,"div",5)(1,"div")(2,"strong",6),m._uU(3),m.qZA(),m._UZ(4,"span",7),m.ALo(5,"safeInnerHtml"),m.YNc(6,g,5,2,"strong",8),m.YNc(7,S,1,0,"button",9),m.qZA()()),2&p){const _=x.$implicit;m.xp6(1),m.Gre("alert alert-",_.notifData.type," alert-dismissible fade show"),m.xp6(2),m.Oqu(_.notifData.title),m.xp6(1),m.Q6J("innerHTML",m.lcZ(5,7,_.notifData.content),m.oJD),m.xp6(2),m.Q6J("ngIf",_.notifCreator),m.xp6(1),m.Q6J("ngIf",_.notifData.dismissible)}}let t=(()=>{class p{constructor(_,C,N){this.router=_,this.gs=C,this.notif=N}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(_){this.notif.removeNotif(_)}}return p.\u0275fac=function(_){return new(_||p)(m.Y36(h.F0),m.Y36(o.U),m.Y36(Z.T))},p.\u0275cmp=m.Xpm({type:p,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(_,C){1&_&&(m.YNc(0,u,1,10,"div",0),m.TgZ(1,"div",1)(2,"div",2),m.YNc(3,y,8,9,"div",3),m.qZA()()),2&_&&(m.Q6J("ngIf",C.GS.bannerImg&&(C.ROUTER.url.startsWith("/news")||C.ROUTER.url.startsWith("/berkas")||C.ROUTER.url.startsWith("/fansub")||C.ROUTER.url.startsWith("/anime")||C.ROUTER.url.startsWith("/dorama"))),m.xp6(3),m.Q6J("ngForOf",C.NOTIF.notifications))},dependencies:[k.sg,k.O5,h.yS,v.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),p})()},8613:($,E,c)=>{c.d(E,{F:()=>k});var m=c(6895),h=c(1390),o=c(7355),Z=c(4650);let k=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[m.ez,h.Bz,o.T]}),v})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[580],{3580:(W,E,c)=>{c.r(E),c.d(E,{CreateModule:()=>xa});var m=c(6895),h=c(1390),o=c(4006),Z=c(7375),k=c(3170),v=c(4700),u=c(6271),g=c(4249),S=c(2777),y=c(5094),t=c(4650),p=c(257);let x=(()=>{class a{constructor(e,i){this.gs=e,this.router=i}canDeactivate(e){return!!this.router.getCurrentNavigation()?.extras?.state?.bypassCanDeactivate||!e.canDeactivate||e.canDeactivate()}}return a.\u0275fac=function(e){return new(e||a)(t.LFG(p.U),t.LFG(h.F0))},a.\u0275prov=t.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();var _=c(210),C=c(7355),N=c(8613),I=c(5861),nt=c(6805),ot=c(930);function J(a,r){const e="object"==typeof r;return new Promise((i,n)=>{const s=new ot.Hp({next:l=>{i(l),s.unsubscribe()},error:n,complete:()=>{e?i(r.defaultValue):n(new nt.K)}});a.subscribe(s)})}var w=c(8372),q=c(9094),L=c(8505),O=c(3900),G=c(8746),B=c(5625),F=c(3e3),rt=c(519),st=c(8439),lt=c(5679),$=c(6781),ct=c(8987),j=c(7902),X=c(6925),Y=c(4137),mt=c(6493),D=c(7845),tt=c(7957),et=c(3238),A=c(4859),ut=c(4850),R=c(7392),f=c(9549),M=c(4144),dt=c(3162),at=c(4385),it=c(455),K=c(266),Q=c(8616),V=c(3626);function _t(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function gt(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function pt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",2),t._UZ(1,"img",46),t.TgZ(2,"mat-form-field",47)(3,"mat-label"),t._uU(4,"Gambar Untuk Embed SEO"),t.qZA(),t.TgZ(5,"ngx-mat-file-input",48,49),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(6),l=t.oxw(2);return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(7,"mat-icon",50),t.qZA(),t.TgZ(8,"mat-error",51)(9,"small"),t.YNc(10,_t,3,3,"div",20),t.YNc(11,gt,2,1,"div",20),t.qZA()()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("src",e.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",e.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",e.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.imageErrorText)}}function ft(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",52)(1,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",53),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function ht(a,r){1&a&&(t.TgZ(0,"div",15)(1,"mat-slide-toggle",54)(2,"i"),t._uU(3,"Private"),t.qZA(),t._uU(4," Akses Hanya Dengan URL "),t.qZA()())}function bt(a,r){if(1&a&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.Oqu(e.name)}}function vt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Jenis Tidak Boleh Kosong"),t.qZA())}function xt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Jenis Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Ct(a,r){1&a&&t.GkF(0)}function Tt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Zt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(4);return t.KtG(l.filterAnimeSelected(s))}),t._UZ(1,"img",66),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.lnq("",e.id," :: ",null==e.media_type?null:e.media_type.toUpperCase()," :: ",e.title,"")}}function At(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Zt,4,5,"mat-option",64),t.BQk()),2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.filteredAnime)}}function kt(a,r){if(1&a&&(t.TgZ(0,"small",68),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.fg.get("anime_name").value)}}function It(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Anime Tidak Boleh Kosong"),t.qZA())}function Ut(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Anime Hanya Boleh Angka"),t.qZA())}function Et(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-form-field",56)(1,"mat-label"),t._uU(2,"Anime Terkait"),t.qZA(),t.TgZ(3,"input",57),t.NdJ("keyup",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.resetSelectedAnime())}),t.qZA(),t._UZ(4,"mat-icon",58),t.TgZ(5,"mat-autocomplete",null,59),t.YNc(7,Tt,2,0,"mat-option",60),t.YNc(8,At,2,1,"ng-container",20),t.qZA(),t.YNc(9,kt,2,1,"small",61),t.TgZ(10,"mat-error"),t.YNc(11,It,2,0,"div",20),t.YNc(12,Ut,2,0,"div",20),t.qZA()()}if(2&a){const e=t.MAs(6),i=t.oxw(2);t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",e),t.xp6(4),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading),t.xp6(1),t.Q6J("ngIf",i.fg.get("anime_name").value),t.xp6(2),t.Q6J("ngIf",i.fg.get("anime_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("anime_id").hasError("pattern"))}}function St(a,r){1&a&&t.GkF(0)}function yt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Nt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(5);return t.KtG(l.filterDoramaSelected(s))}),t._UZ(1,"img",66),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.mdl_id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.AsE("",e.mdl_id," :: ",e.title,"")}}function Jt(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Nt,4,4,"mat-option",64),t.BQk()),2&a){const e=t.oxw(4);t.xp6(1),t.Q6J("ngForOf",e.filteredDorama)}}function wt(a,r){if(1&a&&(t.TgZ(0,"small",68),t._uU(1),t.qZA()),2&a){const e=t.oxw(4);t.xp6(1),t.Oqu(e.fg.get("dorama_name").value)}}function qt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Dorama Tidak Boleh Kosong"),t.qZA())}function Bt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Dorama Hanya Boleh Angka"),t.qZA())}function Ft(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-form-field",56)(1,"mat-label"),t._uU(2,"Dorama Terkait"),t.qZA(),t.TgZ(3,"input",71),t.NdJ("keyup",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.resetSelectedDorama())}),t.qZA(),t._UZ(4,"mat-icon",58),t.TgZ(5,"mat-autocomplete",null,72),t.YNc(7,yt,2,0,"mat-option",60),t.YNc(8,Jt,2,1,"ng-container",20),t.qZA(),t.YNc(9,wt,2,1,"small",61),t.TgZ(10,"mat-error"),t.YNc(11,qt,2,0,"div",20),t.YNc(12,Bt,2,0,"div",20),t.qZA()()}if(2&a){const e=t.MAs(6),i=t.oxw(3);t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",e),t.xp6(4),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading),t.xp6(1),t.Q6J("ngIf",i.fg.get("dorama_name").value),t.xp6(2),t.Q6J("ngIf",i.fg.get("dorama_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("dorama_id").hasError("pattern"))}}function Dt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Kode Serial Tidak Boleh Kosong"),t.qZA())}function Rt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Kode Serial Hanya Boleh Huruf Besar, Strip, Dan Angka"),t.qZA())}function Mt(a,r){if(1&a&&(t.TgZ(0,"mat-form-field",31)(1,"mat-label"),t._uU(2,"Kode / Serial Number"),t.qZA(),t._UZ(3,"input",74)(4,"mat-icon",75),t.TgZ(5,"mat-error"),t.YNc(6,Dt,2,0,"div",20),t.YNc(7,Rt,2,0,"div",20),t.qZA()()),2&a){const e=t.oxw(4);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("sn_code").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("sn_code").hasError("pattern"))}}function Qt(a,r){if(1&a&&t.YNc(0,Mt,8,3,"mat-form-field",73),2&a){const e=t.oxw(3);t.Q6J("ngIf",e.berkasType)}}function Lt(a,r){if(1&a&&(t.YNc(0,St,1,0,"ng-container",21),t.YNc(1,Ft,13,7,"ng-template",null,69,t.W1O),t.YNc(3,Qt,1,1,"ng-template",null,70,t.W1O)),2&a){const e=t.MAs(2),i=t.MAs(4),n=t.oxw(2);t.Q6J("ngIf",n.berkasType.toLowerCase().includes("dorama_"))("ngIfThen",e)("ngIfElse",i)}}function Ot(a,r){1&a&&t._UZ(0,"mat-icon",58)}function Yt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeFansub(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function Kt(a,r){1&a&&(t.TgZ(0,"mat-option",62),t._UZ(1,"mat-progress-bar",63),t.qZA())}function Ht(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-option",65),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(2).index,d=t.oxw(2);return t.KtG(d.filterFansubSelected(s,l))}),t._UZ(1,"img",84),t.TgZ(2,"span",67),t._uU(3),t.qZA()()}if(2&a){const e=r.$implicit;t.Q6J("value",e.id),t.xp6(1),t.s9C("src",e.image_url,t.LSH),t.xp6(2),t.AsE("",e.slug," :: ",e.name,"")}}function Gt(a,r){if(1&a&&(t.ynx(0),t.YNc(1,Ht,4,4,"mat-option",64),t.BQk()),2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.filteredFansub)}}function jt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Fansub Tidak Boleh Kosong"),t.qZA())}function Vt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"ID Fansub Hanya Boleh Angka"),t.qZA())}function Pt(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div")(1,"div",76)(2,"mat-form-field",77)(3,"mat-label"),t._uU(4,"Fansub Terkait"),t.qZA(),t.TgZ(5,"input",78),t.NdJ("keyup",function(){const s=t.CHM(e).index,l=t.oxw(2);return t.KtG(l.resetSelectedFansub(s))}),t.qZA(),t.YNc(6,Ot,1,0,"mat-icon",79),t.YNc(7,Yt,2,0,"button",80),t.TgZ(8,"mat-autocomplete",null,81),t.YNc(10,Kt,2,0,"mat-option",60),t.YNc(11,Gt,2,1,"ng-container",20),t.qZA(),t.TgZ(12,"small",68),t._uU(13),t.qZA(),t.TgZ(14,"mat-error"),t.YNc(15,jt,2,0,"div",20),t.YNc(16,Vt,2,0,"div",20),t.qZA()()()()}if(2&a){const e=r.$implicit,i=r.index,n=t.MAs(9),s=t.oxw(2);t.xp6(1),t.Q6J("formGroupName",i),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("matAutocomplete",n),t.xp6(1),t.Q6J("ngIf",e.get("fansub_id").value||0===i),t.xp6(1),t.Q6J("ngIf",!e.get("fansub_id").value&&i>0),t.xp6(3),t.Q6J("ngIf",s.isLoading),t.xp6(1),t.Q6J("ngIf",!s.isLoading),t.xp6(2),t.Oqu(e.get("fansub_name").value),t.xp6(2),t.Q6J("ngIf",e.get("fansub_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("fansub_id").hasError("pattern"))}}function zt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Berkas Tidak Boleh Kosong"),t.qZA())}function Wt(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Berkas Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function $t(a,r){if(1&a&&t._UZ(0,"angular-editor",85),2&a){const e=t.oxw(2);t.Q6J("config",e.GS.angularEditorConfig)}}function Xt(a,r){1&a&&t.GkF(0)}function te(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.attachmentLimitExceeded)," !")}}function ee(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.attachmentErrorText)}}function ae(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",38)(1,"div",94)(2,"div",95),t._uU(3),t.ALo(4,"bytes"),t._UZ(5,"br")(6,"mat-progress-bar",96),t.qZA()(),t.TgZ(7,"div",97)(8,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.submitAttachment(s))}),t._UZ(9,"mat-icon",98),t._uU(10," Unggah "),t.qZA()()()}if(2&a){const e=r.$implicit,i=t.oxw(3);t.xp6(3),t.HOy(" ",e.status," :: ",e.progress,"% @ ",t.lcZ(4,7,e.speed),"/s # ",e.remaining," detik "),t.xp6(3),t.Q6J("mode","determinate")("value",e.progress),t.xp6(2),t.Q6J("disabled",i.submitted||"complete"===e.status||"uploading"===e.status)}}function ie(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",10)(1,"div",86)(2,"small",87),t._uU(3," * "),t.TgZ(4,"i"),t._uU(5,"Resume-able Upload"),t.qZA(),t._uU(6," (Tidak wajib, jika sudah ada URL eksternal, misal alamat webmu gdrive mediafire mega dan lain sebagainya). Mohon ditunggu dan jangan di tinggal, berkas lampiran akan "),t.TgZ(7,"i"),t._uU(8,"expired"),t.qZA(),t._uU(9),t.TgZ(10,"i"),t._uU(11,"upload"),t.qZA(),t._uU(12),t.qZA()(),t.TgZ(13,"mat-form-field",88)(14,"mat-label"),t._uU(15,"Upload Lampiran Berkas -- DDL"),t.qZA(),t.TgZ(16,"ngx-mat-file-input",89,90),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(17),l=t.oxw(2);return t.KtG(l.uploadAttachment(n,s))}),t.qZA(),t._UZ(18,"mat-icon",91),t.qZA(),t.TgZ(19,"mat-error",92)(20,"small"),t.YNc(21,te,3,3,"div",20),t.YNc(22,ee,2,1,"div",20),t.qZA()()(),t.YNc(23,ae,11,9,"div",93),t.ALo(24,"async")}if(2&a){const e=t.oxw(2);t.xp6(9),t.hij(" apabila tidak disimpan dalam ",e.CONSTANTS.timeoutDeleteTempAttachmentTime/60/1e3," menit setelah berhasil "),t.xp6(3),t.hij(". Lalu kemudian saat berkas berhasil dibuat, lampiran tidak akan bisa di modifikasi. Tipe file yang diperbolehkan :: ",e.extAttachment," "),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",null!==e.attachmentSelected)("accept",e.fileTypeAttachmentAllowed),t.xp6(5),t.Q6J("ngIf",e.attachmentLimitExceeded),t.xp6(1),t.Q6J("ngIf",e.attachmentErrorText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(24,8,e.uploads$))}}function ne(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",99),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.verify())}),t._UZ(1,"mat-icon",100),t._uU(2," Verifikasi Akun Untuk Upload DDL! "),t.qZA()}}function oe(a,r){1&a&&(t.TgZ(0,"div",86)(1,"small",87),t._uU(2,"* Gunakan tombol (X) untuk menghapus URL Eksternal jika ingin hanya menggunakan lampiran "),t.TgZ(3,"i"),t._uU(4,"upload"),t.qZA(),t._uU(5," DDL saja"),t.qZA()())}function re(a,r){1&a&&t._UZ(0,"mat-icon",109)}function se(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeDownloadLink(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function le(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Web Tidak Boleh Kosong"),t.qZA())}function ce(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Web Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function me(a,r){1&a&&t._UZ(0,"mat-icon",110)}function ue(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().index,s=t.oxw(2);return t.KtG(s.removeDownloadLink(n))}),t._UZ(1,"mat-icon",83),t.qZA()}}function de(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tautan Tidak Boleh Kosong"),t.qZA())}function _e(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tautan Link Tidak Valid"),t.qZA())}function ge(a,r){if(1&a&&(t.ynx(0),t.TgZ(1,"div",101),t.YNc(2,oe,6,0,"div",102),t.TgZ(3,"mat-form-field",103)(4,"mat-label"),t._uU(5,"Nama Website"),t.qZA(),t._UZ(6,"input",104),t.YNc(7,re,1,0,"mat-icon",105),t.YNc(8,se,2,0,"button",80),t.TgZ(9,"mat-error"),t.YNc(10,le,2,0,"div",20),t.YNc(11,ce,2,0,"div",20),t.qZA()(),t.TgZ(12,"mat-form-field",106)(13,"mat-label"),t._uU(14,"Tautan Link"),t.qZA(),t._UZ(15,"input",107),t.YNc(16,me,1,0,"mat-icon",108),t.YNc(17,ue,2,0,"button",80),t.TgZ(18,"mat-error"),t.YNc(19,de,2,0,"div",20),t.YNc(20,_e,2,0,"div",20),t.qZA()()(),t.BQk()),2&a){const e=r.$implicit,i=r.index,n=t.oxw(2);t.xp6(1),t.Q6J("formGroupName",i),t.xp6(1),t.Q6J("ngIf",(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified)&&0===i),t.xp6(1),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngIf",e.get("name").value||0===i&&!(null!=n.AS.currentUserSubject&&null!=n.AS.currentUserSubject.value&&n.AS.currentUserSubject.value.verified)),t.xp6(1),t.Q6J("ngIf",!e.get("name").value&&(i>0||(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified))),t.xp6(2),t.Q6J("ngIf",e.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngIf",e.get("url").value||0===i&&!(null!=n.AS.currentUserSubject&&null!=n.AS.currentUserSubject.value&&n.AS.currentUserSubject.value.verified)),t.xp6(1),t.Q6J("ngIf",!e.get("url").value&&(i>0||(null==n.AS.currentUserSubject||null==n.AS.currentUserSubject.value?null:n.AS.currentUserSubject.value.verified))),t.xp6(2),t.Q6J("ngIf",e.get("url").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.get("url").hasError("pattern"))}}function pe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"span",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.toggleDetailMode())}),t._uU(5),t.qZA(),t.TgZ(6,"b",9),t._uU(7,"Tambah Berkas Baru"),t.qZA()()(),t.TgZ(8,"div",2)(9,"div",10)(10,"div",11)(11,"div",10),t.YNc(12,pt,12,6,"div",12),t.YNc(13,ft,4,1,"div",13),t.YNc(14,ht,5,0,"div",14),t.TgZ(15,"div",15)(16,"mat-slide-toggle",16),t._uU(17," R-18+ Konten Eksplisit "),t.qZA()(),t.TgZ(18,"mat-form-field",17)(19,"mat-label"),t._uU(20,"Jenis Proyek"),t.qZA(),t.TgZ(21,"mat-select",18),t.YNc(22,bt,2,2,"mat-option",19),t.qZA(),t.TgZ(23,"mat-error"),t.YNc(24,vt,2,0,"div",20),t.YNc(25,xt,2,0,"div",20),t.qZA()(),t.YNc(26,Ct,1,0,"ng-container",21),t.YNc(27,Et,13,7,"ng-template",null,22,t.W1O),t.YNc(29,Lt,5,3,"ng-template",null,23,t.W1O),t.TgZ(31,"div",15),t._UZ(32,"mat-divider"),t.qZA(),t.TgZ(33,"div",24),t.YNc(34,Pt,17,10,"div",25),t.qZA(),t.TgZ(35,"div",2)(36,"div",10),t._UZ(37,"div",26),t.TgZ(38,"div",26)(39,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addFansub())}),t._UZ(40,"mat-icon",28),t._uU(41," Tambah Fansub "),t.qZA()()()(),t.TgZ(42,"div",15)(43,"a",29),t._uU(44," * Jika pencarian tidak ditemukan, silahkan membuat halaman Fansub baru terlebih dahulu "),t.qZA()()()(),t.TgZ(45,"div",30)(46,"div",10)(47,"mat-form-field",31)(48,"mat-label"),t._uU(49,"Nama Berkas"),t.qZA(),t._UZ(50,"input",32)(51,"mat-icon",33),t.TgZ(52,"mat-error"),t.YNc(53,zt,2,0,"div",20),t.YNc(54,Wt,2,0,"div",20),t.qZA()(),t.YNc(55,$t,1,1,"angular-editor",34),t.qZA(),t.TgZ(56,"div",10)(57,"div",15),t._UZ(58,"mat-divider"),t.qZA()(),t.YNc(59,Xt,1,0,"ng-container",21),t.YNc(60,ie,25,10,"ng-template",null,35,t.W1O),t.YNc(62,ne,3,0,"ng-template",null,36,t.W1O),t.TgZ(64,"div",10)(65,"div",15),t._UZ(66,"mat-divider"),t.qZA()(),t.ynx(67,37),t.YNc(68,ge,21,12,"ng-container",25),t.BQk(),t.TgZ(69,"div",38),t._UZ(70,"div",26)(71,"div",26)(72,"div",26),t.TgZ(73,"div",26)(74,"button",27),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addDownloadLink())}),t._UZ(75,"mat-icon",28),t._uU(76," Tambah URL Eksternal "),t.qZA()()()()(),t.TgZ(77,"div",10)(78,"div",15)(79,"div",39),t._UZ(80,"div",40),t.TgZ(81,"div",41)(82,"a",42),t._UZ(83,"mat-icon",43),t._uU(84," Batal "),t.qZA()(),t.TgZ(85,"div",41)(86,"button",44),t._uU(87," Simpan "),t._UZ(88,"mat-icon",45),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(28),i=t.MAs(30),n=t.MAs(61),s=t.MAs(63),l=t.oxw();t.Q6J("formGroup",l.fg),t.xp6(5),t.hij(" ",l.detailMode?"Sederhana":"Lengkap"," "),t.xp6(7),t.Q6J("ngIf",l.detailMode),t.xp6(1),t.Q6J("ngIf",l.image&&!l.fg.value.image&&l.detailMode),t.xp6(1),t.Q6J("ngIf",null==l.AS.currentUserSubject||null==l.AS.currentUserSubject.value?null:l.AS.currentUserSubject.value.verified),t.xp6(4),t.Q6J("color","accent"),t.xp6(4),t.Q6J("ngForOf",l.projectList),t.xp6(2),t.Q6J("ngIf",l.fg.get("projectType_id").hasError("required")),t.xp6(1),t.Q6J("ngIf",l.fg.get("projectType_id").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",l.berkasType.toLowerCase().includes("anime_"))("ngIfThen",e)("ngIfElse",i),t.xp6(8),t.Q6J("ngForOf",l.getFansubControl.controls),t.xp6(5),t.Q6J("disabled",l.submitted),t.xp6(8),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",l.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",l.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",l.detailMode),t.xp6(4),t.Q6J("ngIf",null==l.AS.currentUserSubject||null==l.AS.currentUserSubject.value?null:l.AS.currentUserSubject.value.verified)("ngIfThen",n)("ngIfElse",s),t.xp6(9),t.Q6J("ngForOf",l.getDownloadUrlControl.controls),t.xp6(6),t.Q6J("disabled",l.submitted),t.xp6(8),t.Q6J("disabled",l.submitted),t.xp6(4),t.Q6J("disabled",l.submitted||l.fg.invalid||"uploading"===(null==l.attachmentSelected?null:l.attachmentSelected.status))}}let fe=(()=>{class a{constructor(e,i,n,s,l,d,b,U,z,Ca,Ta,Za,Aa,ka){this.router=e,this.fb=i,this.bs=n,this.anime=s,this.dorama=l,this.project=d,this.fansub=b,this.berkas=U,this.imgbb=z,this.toast=Ca,this.gs=Ta,this.as=Za,this.uploadService=Aa,this.ds=ka,this.detailMode=!1,this.submitted=!1,this.projectList=[],this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.filteredAnime=[],this.filteredDorama=[],this.filteredFansub=[],this.isLoading=!1,this.animeCheckOrAddResponse=null,this.doramaCheckOrAddResponse=null,this.attachmentSelected=null,this.attachmentErrorText=null,this.attachmentLimitExceeded=null,this.uploadToast=null,this.timerTimeout=null,this.gambar=null,this.ddl=null,this.subsProject=null,this.subsFansub=null,this.subsAnimeDetail=null,this.subsDoramaDetail=null,this.subsProjectDetail=null,this.subsFansubDetail=[],this.subsAnimeNew=null,this.subsDoramaNew=null,this.subsImgbb=null,this.subsBerkasCreate=null,this.subsUpload=null,this.berkasType="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get CONSTANTS(){return u.t}get AS(){return this.as}get GS(){return this.gs}get extAttachment(){return u.t.extAttachment.join(", ")}get fileTypeAttachmentAllowed(){return u.t.fileTypeAttachmentAllowed.join(", ")}ngOnInit(){this.gs.isBrowser&&(this.loadProjectList(),this.initForm(),this.uploads$=this.uploadService.connect(),this.subsUpload=this.uploadService.events.subscribe({next:e=>{this.gs.log("[UPLOAD_EVENTS]",e),("uploading"===e.status||"complete"===e.status)&&(this.attachmentSelected=e),"complete"===e.status?(this.gs.log("[UPLOAD_COMPLETED]",e.response),this.fg.controls.attachment_id.patchValue(e.response.result.id),this.uploadToast=this.toast.warning("Segera Kirim Data Berkas!","Lampiran Akan Dihapus ...",{closeButton:!1,timeOut:u.t.timeoutDeleteTempAttachmentTime,disableTimeOut:"extendedTimeOut",tapToDismiss:!1,progressAnimation:"decreasing"},!0),this.timerTimeout=setTimeout(()=>{this.gs.log("[UPLOAD_TIMEOUT]",u.t.timeoutDeleteTempAttachmentTime),this.failOrCancelUpload({info:"Expired, Silahkan Upload Ulang!"})},u.t.timeoutDeleteTempAttachmentTime)):"error"===e.status&&(this.gs.log("[UPLOAD_ERROR]",e.response,"error"),this.failOrCancelUpload(e.response))},error:e=>{this.gs.log("[UPLOAD_ERROR]",e,"error"),this.failOrCancelUpload(e)}}))}ngOnDestroy(){this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.timerTimeout&&(clearTimeout(this.timerTimeout),this.timerTimeout=null),this.subsProject?.unsubscribe(),this.subsFansub?.unsubscribe(),this.subsAnimeDetail?.unsubscribe(),this.subsDoramaDetail?.unsubscribe(),this.subsProjectDetail?.unsubscribe();for(const e of this.subsFansubDetail)e?.unsubscribe();this.subsAnimeNew?.unsubscribe(),this.subsDoramaNew?.unsubscribe(),this.subsImgbb?.unsubscribe(),this.subsBerkasCreate?.unsubscribe(),this.uploadService.disconnect(),this.subsUpload?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}toggleDetailMode(){this.detailMode=!this.detailMode}loadProjectList(){this.bs.busy(),this.subsProject=this.project.getProject().subscribe({next:e=>{this.gs.log("[PROJECT_LOAD_SUCCESS]",e),this.projectList=e.results,this.bs.idle()},error:e=>{this.gs.log("[PROJECT_LOAD_ERROR]",e,"error"),this.bs.idle()}})}hasRequiredField(e,i){return e.get(i).hasValidator(o.kI.required)}animeValueChanged(){this.subsAnimeDetail=this.fg.get("anime_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(e=>this.anime.searchAnime(e).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_SUCCESS]",e),this.filteredAnime=e.results},error:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_ANIME_RESULT_ERROR]",e,"error"),this.animeValueChanged()}})}doramaValueChanged(){this.subsDoramaDetail=this.fg.get("dorama_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(e=>this.dorama.searchDorama(e).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_SUCCESS]",e);for(const i of e.results)i.mdl_id=i.mdl_id.split("-")[1],i.image_url=i.thumb;this.filteredDorama=e.results},error:e=>{this.gs.log("[BERKAS_CREATE_SEARCH_DORAMA_RESULT_ERROR]",e,"error"),this.doramaValueChanged()}})}projectTypeValueChanged(){this.subsProjectDetail=this.fg.get("projectType_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[BERKAS_CREATE_PROJECT_CHANGED]",e),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null),this.fg.controls.sn_code.patchValue(null),this.fg.controls.anime_id.setErrors(null),this.fg.controls.anime_name.setErrors(null),this.fg.controls.dorama_id.setErrors(null),this.fg.controls.dorama_name.setErrors(null),this.fg.controls.sn_code.setErrors(null),this.fg.controls.anime_id.clearValidators(),this.fg.controls.anime_name.clearValidators(),this.fg.controls.dorama_id.clearValidators(),this.fg.controls.dorama_name.clearValidators(),this.fg.controls.sn_code.clearValidators(),this.fg.controls.anime_id.markAsPristine(),this.fg.controls.anime_name.markAsPristine(),this.fg.controls.dorama_id.markAsPristine(),this.fg.controls.dorama_name.markAsPristine(),this.fg.controls.sn_code.markAsPristine(),this.fg.controls.anime_id.markAsUntouched(),this.fg.controls.anime_name.markAsUntouched(),this.fg.controls.dorama_id.markAsUntouched(),this.fg.controls.dorama_name.markAsUntouched(),this.fg.controls.sn_code.markAsUntouched();const i=this.projectList.find(n=>n.id===e);i&&(this.berkasType=i.name,i.name.toLowerCase().includes("anime_")?(this.fg.controls.anime_id.setValidators([o.kI.required,o.kI.pattern(/^\d+$/)]),this.fg.controls.anime_name.setValidators([o.kI.required]),this.subsAnimeDetail?.unsubscribe(),this.animeValueChanged()):i.name.toLowerCase().includes("dorama_")?(this.fg.controls.dorama_id.setValidators([o.kI.required,o.kI.pattern(/^\d+$/)]),this.fg.controls.dorama_name.setValidators([o.kI.required]),this.subsDoramaDetail?.unsubscribe(),this.doramaValueChanged()):this.fg.controls.sn_code.setValidators([o.kI.required,o.kI.pattern(/^[A-Z0-9\-]+$/)])),this.fg.controls.anime_id.updateValueAndValidity(),this.fg.controls.anime_name.updateValueAndValidity(),this.fg.controls.dorama_id.updateValueAndValidity(),this.fg.controls.dorama_name.updateValueAndValidity(),this.fg.controls.sn_code.updateValueAndValidity()}})}initForm(){this.fg=this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],description:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],projectType_id:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],anime_id:[null,o.kI.compose([])],anime_name:[null,o.kI.compose([])],dorama_id:[null,o.kI.compose([])],dorama_name:[null,o.kI.compose([])],fansub_list:this.fb.array([this.createFansub()]),image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],sn_code:[null,o.kI.compose([])],attachment_id:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],download_url:this.fb.array([this.createDownloadLink()]),private:[!1,o.kI.compose([o.kI.required])],r18:[!1,o.kI.compose([o.kI.required])]}),this.projectTypeValueChanged()}get getDownloadUrlControl(){return this.fg.get("download_url")}createDownloadLink(){return this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],url:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexUrl)])]})}removeDownloadLink(e){this.getDownloadUrlControl.removeAt(e)}addDownloadLink(){this.getDownloadUrlControl.push(this.createDownloadLink())}get getFansubControl(){return this.fg.get("fansub_list")}createFansub(){const e=this.fb.group({fansub_id:[null,o.kI.compose([o.kI.required,o.kI.pattern(/^\d+$/)])],fansub_name:[null,o.kI.compose([o.kI.required])]});return this.subsFansubDetail.push(e.get("fansub_id").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.isLoading=!0),(0,O.w)(i=>this.fansub.searchFansub(i).pipe((0,G.x)(()=>this.isLoading=!1))),(0,B.X)(-1)).subscribe({next:i=>{this.gs.log("[BERKAS_CREATE_SEARCH_FANSUB_RESULT]",i),this.filteredFansub=i.results}})),e}removeFansub(e){this.getFansubControl.removeAt(e),this.subsFansubDetail[e]?.unsubscribe(),this.subsFansubDetail.splice(e,1)}addFansub(){this.getFansubControl.push(this.createFansub())}resetSelectedAnime(){this.fg.controls.anime_name.patchValue(null)}resetSelectedDorama(){this.fg.controls.dorama_name.patchValue(null)}resetSelectedFansub(e){this.getFansubControl.controls[e].get("fansub_name").patchValue(null)}filterAnimeSelected(e){this.gs.log("[ANIME_FILTER_CLICK]",e),this.submitted=!0,this.subsAnimeNew=this.anime.addNewAnime({id:e.id,name:e.title,image_url:e.image_url,type:e.media_type?.toUpperCase()}).subscribe({next:i=>{this.gs.log("[ANIME_CHECK_ADD_SUCCESS]",i),this.animeCheckOrAddResponse=i.result,this.submitted=!1,this.fg.controls.anime_id.patchValue(i.result.id),this.fg.controls.anime_name.patchValue(i.result.name)},error:i=>{this.gs.log("[ANIME_CHECK_ADD_ERROR]",i,"error"),this.submitted=!1,this.resetSelectedAnime(),this.fg.controls.anime_id.patchValue(null),this.fg.controls.anime_name.patchValue(null)}})}filterDoramaSelected(e){this.gs.log("[DORAMA_FILTER_CLICK]",e),this.submitted=!0,this.subsDoramaNew=this.dorama.addNewDorama({id:parseInt(e.mdl_id,10),slug:e.slug,name:e.title,image_url:e.image_url,type:e.type}).subscribe({next:i=>{this.gs.log("[DORAMA_CHECK_ADD_SUCCESS]",i),this.doramaCheckOrAddResponse=i.result,this.submitted=!1,this.fg.controls.dorama_id.patchValue(i.result.id),this.fg.controls.dorama_name.patchValue(i.result.name)},error:i=>{this.gs.log("[DORAMA_CHECK_ADD_ERROR]",i,"error"),this.submitted=!1,this.resetSelectedDorama(),this.fg.controls.dorama_id.patchValue(null),this.fg.controls.dorama_name.patchValue(null)}})}filterFansubSelected(e,i){this.gs.log("[FANSUB_FILTER_CLICK]",e),this.getFansubControl.controls[i].get("fansub_id").patchValue(e.id),this.getFansubControl.controls[i].get("fansub_name").patchValue(e.name)}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid||"uploading"===this.attachmentSelected?.status)return this.submitted=!1,void this.bs.idle();if(null===this.fg.value.attachment_id&&0===this.fg.value.download_url.lenth)return this.submitted=!1,this.uploadToast=this.toast.warning("Lampiran DDL / URL Eksternal!","Harap Mengisi Setidaknya Salah Satu ..."),void this.bs.idle();const e=[];for(const i of this.fg.value.fansub_list)e.push(i.fansub_id);this.subsBerkasCreate=this.berkas.createBerkas({image:this.fg.value.image,name:this.fg.value.name,description:this.fg.value.description,private:this.fg.value.private,r18:this.fg.value.r18,projectType_id:this.fg.value.projectType_id,anime_id:this.fg.value.anime_id,dorama_id:this.fg.value.dorama_id,sn_code:this.fg.value.sn_code,fansub_id:e,download_url:this.fg.value.download_url,attachment_id:this.fg.value.attachment_id}).subscribe({next:i=>{this.gs.log("[BERKAS_CREATE_SUCCESS]",i),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/berkas",{state:{bypassCanDeactivate:!0}})},error:i=>{this.gs.log("[BERKAS_CREATE_ERROR]",i,"error"),this.submitted=!1,this.bs.idle()}})}uploadAttachment(e,i){this.ddl=i;const n=e.target.files[0];this.attachmentLimitExceeded=null,this.attachmentErrorText=null,this.gs.log("[ATTACHMENT_SELECTED]",n),this.fg.controls.attachment_id.patchValue(null),this.uploadService.disconnect();try{n.size<=u.t.fileSizeAttachmentTotalLimit?this.uploadService.handleFiles(n):(this.attachmentLimitExceeded=u.t.fileSizeAttachmentTotalLimit,this.ddl.clear(e))}catch{this.ddl.clear(e)}}submitAttachment(e){const i=this.uploadService.state().find(n=>n.uploadId===e.uploadId);i&&(this.attachmentSelected=i,e.status="queue")}failOrCancelUpload(e=null){this.attachmentSelected=null,this.attachmentErrorText=e?.result?.message||e?.info||e?.error?.message||"Terjadi Kesalahan, Harap Reload Halaman!",this.uploadService.disconnect(),this.fg.controls.attachment_id.patchValue(null),this.uploadToast&&this.toast.remove(this.uploadToast.toastId),this.ddl.clear()}verify(){this.router.navigate(["/verify"],{queryParams:{returnUrl:this.router.url.split("?")[0]},state:{bypassCanDeactivate:!0}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.F0),t.Y36(o.QS),t.Y36(F.z),t.Y36(rt.o),t.Y36(st.X),t.Y36(lt.Y),t.Y36($.T),t.Y36(ct.A),t.Y36(j.X),t.Y36(X.k),t.Y36(p.U),t.Y36(Y.e),t.Y36(mt.Lz),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-berkas-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"float-end","text-decoration-none","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["class","col-12",4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],["class","col-12 py-3",4,"ngIf"],[1,"col-12","py-3"],["formControlName","r18","matTooltip","Konten Eksplisit"],["appearance","outline",1,"px-3","pt-3","col-12",3,"color"],["formControlName","projectType_id","placeholder","Anime / Drama","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["anime_",""],["notAnime_",""],["formArrayName","fansub_list","matTooltip","Silahkan Buat Terlebih Dahulu Jika Tidak Ada"],[4,"ngFor","ngForOf"],[1,"col","px-3"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add",1,"me-1"],["routerLink","/create/fansub",1,"text-warning","text-decoration-none"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","name","placeholder","[Fansub] Judul Anime - 00 [BD 4K x265 FLAC][CRC32].mkv","required",""],["fontIcon","wysiwyg","matSuffix",""],["class","py-3 w-100","formControlName","description",3,"config",4,"ngIf"],["ddlVerified",""],["ddlNotVerified",""],["formArrayName","download_url"],[1,"row","mb-4"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/berkas",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],[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","w-100"],[1,"col-12","mb-4"],["fontIcon","add_photo_alternate",1,"me-1"],["formControlName","private","matTooltip","Hanya Dapat Di Akses Melalui URL"],[3,"value"],["appearance","outline",1,"py-3","w-100",3,"color"],["matInput","","formControlName","anime_id","placeholder","Full Metal Alchemist",3,"matAutocomplete","keyup"],["fontIcon","short_text","matSuffix",""],["autoCompleteAnime","matAutocomplete"],["class","is-loading",4,"ngIf"],["class","text-warning",4,"ngIf"],[1,"is-loading"],["mode","indeterminate"],["class","px-1",3,"value","click",4,"ngFor","ngForOf"],[1,"px-1",3,"value","click"],[1,"me-1",2,"height","40px","width","30px","object-fit","cover",3,"src"],[1,"ms-1"],[1,"text-warning"],["dorama_",""],["notDorama_",""],["matInput","","formControlName","dorama_id","placeholder","Flying Colors",3,"matAutocomplete","keyup"],["autoCompleteDorama","matAutocomplete"],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],["matInput","","formControlName","sn_code","placeholder","XXX-999","required",""],["fontIcon","tag","matSuffix",""],[1,"row",3,"formGroupName"],["appearance","outline",1,"px-3","pt-3","w-100",3,"color"],["matInput","","formControlName","fansub_id","placeholder","NamaFansub","required","",3,"matAutocomplete","keyup"],["fontIcon","short_text","matSuffix","",4,"ngIf"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"click",4,"ngIf"],["autoCompleteFansub","matAutocomplete"],["type","button","mat-button","","matSuffix","","mat-icon-button","",3,"click"],["fontIcon","close"],[1,"me-1",2,"height","40px","width","40px","object-fit","cover",3,"src"],["formControlName","description",1,"py-3","w-100",3,"config"],[1,"col-12","px-3"],[1,"text-success"],["appearance","outline",1,"px-3","pt-3","col",3,"color"],["uploadx","",1,"w-100",3,"disabled","accept","change"],["ddl",""],["fontIcon","attach_file","matSuffix",""],[1,"px-4","w-100"],["class","row mb-4",4,"ngFor","ngForOf"],[1,"col"],[1,"ps-3"],[3,"mode","value"],[1,"col-6","col-lg-4","px-3"],["fontIcon","attachment",1,"me-1"],["type","button","mat-stroked-button","","color","accent",1,"w-100",3,"click"],["fontIcon","enhanced_encryption",1,"me-1"],["matTooltip","Silahkan Isi Alamat Website Kamu Jika Ingin Mendapatkan Traffic Pengunjung",1,"row",3,"formGroupName"],["class","col-12 px-3",4,"ngIf"],["appearance","outline",1,"px-3","pt-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","name","placeholder","Google Drive","required",""],["fontIcon","web","matSuffix","",4,"ngIf"],["appearance","outline",1,"px-3","pt-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","url","placeholder","https://webshit.saya.com/01/02/halaman-post-download.html","required",""],["fontIcon","link","matSuffix","",4,"ngIf"],["fontIcon","web","matSuffix",""],["fontIcon","link","matSuffix",""]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,pe,89,25,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,tt.XC,tt.ZL,et.ey,A.lW,A.zs,ut.d,R.Hw,f.TO,f.KE,f.hX,f.R9,M.Nt,dt.pW,at.gD,it.Rr,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,o.x0,o.CE,k.Yh,Q.t,Z.s6,m.Ov,V.$]}),a})();var T=c(7331),P=c(9602);function he(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function be(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.imageErrorText)}}function ve(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",6)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function xe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Tidak Boleh Kosong"),t.qZA())}function Ce(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Website Link Tidak Valid"),t.qZA())}function Te(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Facebook Link Tidak Valid"),t.qZA())}function Ze(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Discord Link Tidak Valid"),t.qZA())}function Ae(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Twitter Link Tidak Valid"),t.qZA())}function ke(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.coverLimitExceeded)," !")}}function Ie(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(3);t.xp6(1),t.Oqu(e.coverErrorText)}}function Ue(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",66)(1,"button",64),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.submitCover())}),t._UZ(2,"mat-icon",65),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.submitted)}}function Ee(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Tidak Boleh Kosong"),t.qZA())}function Se(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Nama Fansub Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ye(a,r){if(1&a&&(t.TgZ(0,"small",67)(1,"div"),t._uU(2),t.qZA()()),2&a){const e=t.oxw(3);t.xp6(2),t.Oqu(e.slugInfo)}}function Ne(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Tidak Boleh Kosong"),t.qZA())}function Je(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Singkatan Hanya Boleh Huruf Dan \u4e00"),t.qZA())}function we(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Harus Diisi Secara Valid"),t.qZA())}function qe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Tanggal Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function Be(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Mohon Pilih Salah Satu"),t.qZA())}function Fe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Status Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function De(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",68),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.removeTag(s))}),t._uU(1),t._UZ(2,"mat-icon",69),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function Re(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"RSS Link Tidak Valid"),t.qZA())}function Me(a,r){if(1&a&&(t.TgZ(0,"mat-form-field",23)(1,"mat-label"),t._uU(2,"URI / URL RSS v2.0 Feed"),t.qZA(),t._UZ(3,"input",70)(4,"mat-icon",71),t.TgZ(5,"mat-error"),t.YNc(6,Re,2,0,"div",21),t.qZA()()),2&a){const e=t.oxw(3);t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("rss_feed").hasError("pattern"))}}function Qe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",8),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onSubmit())}),t.TgZ(1,"div",9)(2,"div",10)(3,"h2",11)(4,"b",12),t._uU(5,"Tambah Data Fansub Baru"),t.qZA()()(),t.TgZ(6,"div",6)(7,"div",13)(8,"div",14)(9,"div",13)(10,"div",6),t._UZ(11,"img",15),t.TgZ(12,"mat-form-field",16)(13,"mat-label"),t._uU(14,"Foto"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",17,18),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(16),l=t.oxw(2);return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(17,"mat-icon",19),t.qZA(),t.TgZ(18,"mat-error",20)(19,"small"),t.YNc(20,he,3,3,"div",21),t.YNc(21,be,2,1,"div",21),t.qZA()()(),t.YNc(22,ve,4,1,"div",22),t.qZA(),t.TgZ(23,"div",13)(24,"div",6)(25,"div",13)(26,"mat-form-field",23)(27,"mat-label"),t._uU(28,"Tautan Website"),t.qZA(),t._UZ(29,"input",24)(30,"mat-icon",25),t.TgZ(31,"mat-error"),t.YNc(32,xe,2,0,"div",21),t.YNc(33,Ce,2,0,"div",21),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-label"),t._uU(36,"Facebook Fanpage"),t.qZA(),t._UZ(37,"input",26)(38,"mat-icon",27),t.TgZ(39,"mat-error"),t.YNc(40,Te,2,0,"div",21),t.qZA()(),t.TgZ(41,"mat-form-field",23)(42,"mat-label"),t._uU(43,"Tautan Discord"),t.qZA(),t._UZ(44,"input",28),t.TgZ(45,"mat-icon",29),t._UZ(46,"img",30),t.qZA(),t.TgZ(47,"mat-error"),t.YNc(48,Ze,2,0,"div",21),t.qZA()(),t.TgZ(49,"mat-form-field",23)(50,"mat-label"),t._uU(51,"Cuitan Twitter"),t.qZA(),t._UZ(52,"input",31),t.TgZ(53,"mat-icon",29),t._UZ(54,"img",30),t.qZA(),t.TgZ(55,"mat-error"),t.YNc(56,Ae,2,0,"div",21),t.qZA()()()()()(),t.TgZ(57,"div",32)(58,"div",13)(59,"mat-form-field",16)(60,"mat-label"),t._uU(61,"Cover"),t.qZA(),t.TgZ(62,"ngx-mat-file-input",17,33),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(63),l=t.oxw(2);return t.KtG(l.uploadCover(n,s))}),t.qZA(),t._UZ(64,"mat-icon",19),t.qZA(),t.TgZ(65,"mat-error",20)(66,"small"),t.YNc(67,ke,3,3,"div",21),t.YNc(68,Ie,2,1,"div",21),t.qZA()(),t.YNc(69,Ue,4,1,"div",34),t.TgZ(70,"mat-form-field",35)(71,"mat-label"),t._uU(72,"Nama Fansub"),t.qZA(),t._UZ(73,"input",36)(74,"mat-icon",37),t.TgZ(75,"mat-error"),t.YNc(76,Ee,2,0,"div",21),t.YNc(77,Se,2,0,"div",21),t.qZA()(),t.TgZ(78,"mat-form-field",38)(79,"mat-label"),t._uU(80,"Singkatan"),t.qZA(),t._UZ(81,"input",39)(82,"mat-icon",40),t.YNc(83,ye,3,1,"small",41),t.TgZ(84,"mat-error"),t.YNc(85,Ne,2,0,"div",21),t.YNc(86,Je,2,0,"div",21),t.qZA()(),t._UZ(87,"angular-editor",42),t.TgZ(88,"mat-form-field",43)(89,"mat-label"),t._uU(90,"Mulai Ada Sejak"),t.qZA(),t.TgZ(91,"input",44),t.NdJ("focus",function(){t.CHM(e);const n=t.MAs(95);return t.KtG(n.open())}),t.ALo(92,"date"),t.qZA(),t._UZ(93,"mat-datepicker-toggle",45)(94,"mat-datepicker",46,47),t.TgZ(96,"mat-error"),t.YNc(97,we,2,0,"div",21),t.YNc(98,qe,2,0,"div",21),t.qZA()(),t.TgZ(99,"mat-form-field",43)(100,"mat-label"),t._uU(101,"Status"),t.qZA(),t.TgZ(102,"mat-select",48)(103,"mat-option",49),t._uU(104,"Tidak Aktif"),t.qZA(),t.TgZ(105,"mat-option",50),t._uU(106,"Aktif"),t.qZA()(),t.TgZ(107,"mat-hint",51),t._uU(108,"Status Kehidupan Fansub Saat Ini"),t.qZA(),t.TgZ(109,"mat-error"),t.YNc(110,Be,2,0,"div",21),t.YNc(111,Fe,2,0,"div",21),t.qZA()(),t.TgZ(112,"mat-form-field",23)(113,"mat-label"),t._uU(114,"Tags & Kategori"),t.qZA(),t.TgZ(115,"mat-chip-list",null,52),t.YNc(117,De,3,2,"mat-chip",53),t.TgZ(118,"input",54),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.addTag(n))}),t.qZA(),t._UZ(119,"mat-icon",55),t.qZA(),t.TgZ(120,"mat-hint",51),t._uU(121,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t.YNc(122,Me,7,2,"mat-form-field",56),t.qZA()()(),t.TgZ(123,"div",13)(124,"div",6)(125,"div",57),t._UZ(126,"div",58),t.TgZ(127,"div",59)(128,"a",60),t._UZ(129,"mat-icon",61),t._uU(130," Batal "),t.qZA()(),t.TgZ(131,"div",59)(132,"button",62),t._uU(133," Simpan "),t._UZ(134,"mat-icon",63),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(95),i=t.MAs(116),n=t.oxw(2);t.Q6J("formGroup",n.fg),t.xp6(11),t.Q6J("src",n.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",n.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",n.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",n.imageErrorText),t.xp6(1),t.Q6J("ngIf",n.image&&!n.fg.value.image),t.xp6(4),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("web").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("web").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("facebook").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/discord/",n.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",n.fg.get("discord").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.MGl("src","/assets/img/twitter/",n.GS.isDarkMode?"white":"black",".png",t.LSH),t.xp6(2),t.Q6J("ngIf",n.fg.get("twitter").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",n.fg.value.cover)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",n.coverLimitExceeded),t.xp6(1),t.Q6J("ngIf",n.coverErrorText),t.xp6(1),t.Q6J("ngIf",n.cover&&!n.fg.value.cover),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",n.fg.get("name").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("name").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngIf",n.slugInfo),t.xp6(2),t.Q6J("ngIf",n.fg.get("slug").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("slug").hasError("pattern")),t.xp6(1),t.Q6J("config",n.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.s9C("placeholder",t.xi3(92,50,n.currentDate,"d MMMM y")),t.Q6J("matDatepicker",e),t.xp6(2),t.Q6J("for",e),t.xp6(4),t.Q6J("ngIf",n.fg.get("born").hasError("required")||n.fg.get("born").hasError("matDatepickerParse")),t.xp6(1),t.Q6J("ngIf",n.fg.get("born").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(11),t.Q6J("ngIf",n.fg.get("active").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.fg.get("active").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",n.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",n.GS.separatorKeysCodes)("matChipInputFor",i)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",n.rssFeedAllowed),t.xp6(6),t.Q6J("disabled",n.submitted),t.xp6(4),t.Q6J("disabled",n.submitted||n.fg.invalid)}}function Le(a,r){if(1&a&&(t.TgZ(0,"div",1),t._UZ(1,"div",2)(2,"div",3)(3,"div",4)(4,"app-notifications"),t.TgZ(5,"div",5)(6,"div",6),t.YNc(7,Qe,135,53,"form",7),t.qZA()()()),2&a){const e=t.oxw();t.xp6(1),t.Udp("background-image","url("+e.cover_url+")"),t.xp6(6),t.Q6J("ngIf",e.fg)}}let Oe=(()=>{class a{constructor(e,i,n,s,l,d,b,U,z){this.fb=e,this.router=i,this.as=n,this.bs=s,this.imgbb=l,this.fansub=d,this.toast=b,this.gs=U,this.ds=z,this.submitted=!1,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.image_url="/assets/img/form/no-image.png",this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.cover_url="/assets/img/form/no-image.png",this.urls=[],this.currentDate=new Date,this.gambar=null,this.gambar_=null,this.subsImgbb=null,this.subsFansub=null,this.subsCekFansubSlug=null,this.slugInfo="",this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get rssFeedAllowed(){return this.as.currentUserSubject?.value?.role===g.yS.ADMIN||this.as.currentUserSubject?.value?.role===g.yS.MODERATOR||this.as.currentUserSubject?.value?.role===g.yS.FANSUBBER}ngOnDestroy(){this.subsImgbb?.unsubscribe(),this.subsFansub?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&this.initForm()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){this.fg=this.fb.group({name:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],description:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],born:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],active:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],slug:[null,o.kI.compose([o.kI.required,o.kI.pattern(/^[0-9a-zA-Z-]*$/)])],tags:[[],o.kI.compose([])],image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],cover:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],web:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],facebook:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],discord:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],twitter:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],rss_feed:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])]}),this.slugValueChanged()}slugValueChanged(){this.subsCekFansubSlug=this.fg.get("slug").valueChanges.pipe((0,w.b)(500),(0,q.x)(),(0,L.b)(()=>this.slugInfo="Mengecek ..."),(0,O.w)(e=>this.fansub.cekSlug({slug:e})),(0,B.X)(-1)).subscribe({next:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_SUCCESS]",e),this.slugInfo=e.result.message},error:e=>{this.gs.log("[FANSUB_CEK_SLUG_RESULT_ERROR]",e,"error"),this.slugValueChanged()}})}addTag(e){const i=e.input,n=e.value;(n||"").trim()&&this.fg.value.tags.push(n.trim()),i&&(i.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTag(e){const i=this.fg.value.tags.indexOf(e);i>=0&&this.fg.value.tags.splice(i,1)}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}uploadCover(e,i){this.gambar_=i,this.cover=null,this.coverLimitExceeded=null,this.coverErrorText=null,this.fg.controls.cover.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[COVER_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.cover=n,this.cover_url=s.result.toString()},d.src=s.result.toString()}else this.cover=null,this.cover_url="/assets/img/form/image-error.png",this.coverLimitExceeded=u.t.fileSizeImageLimit,this.gambar_.clear(e)}}catch{this.cover=null,this.cover_url="/assets/img/form/no-image.png",this.gambar_.clear(e)}}submitCover(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.cover}).subscribe({next:e=>{this.gs.log("[COVER_SUCCESS]",e),this.fg.controls.cover.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[COVER_ERROR]",e,"error"),this.fg.controls.cover.patchValue(null),this.submitted=!1,this.coverErrorText=e.result?.message||e.info}})}onSubmit(){this.bs.busy();const e={};if(this.fg.value.web&&(e.web=this.fg.value.web),this.fg.value.facebook&&(e.facebook=this.fg.value.facebook),this.fg.value.discord&&(e.discord=this.fg.value.discord),this.fg.value.twitter&&(e.twitter=this.fg.value.twitter),this.submitted=!0,this.fg.value.rss_feed&&(!this.fg.value.web||!this.fg.value.rss_feed.startsWith(this.fg.value.web)))return this.toast.warning("RSS Feed Tidak Sesuai Dengan Alamat Web","URL RSS Feed & WEB",null,!0),this.submitted=!1,void this.bs.idle();const i=Object.keys(e).length;if(this.fg.invalid||0===i)return 0===i&&this.toast.warning("Harap Isi Salah Satu URL","Form Tidak lengkap (Web/FB/DC)",null,!0),this.submitted=!1,void this.bs.idle();this.subsFansub=this.fansub.createFansub({image:this.fg.value.image,cover:this.fg.value.cover,name:this.fg.value.name,description:this.fg.value.description,born:this.fg.value.born.getTime(),active:this.fg.value.active,tags:this.fg.value.tags,slug:this.fg.value.slug,urls:e,rss_feed:this.fg.value.rss_feed}).subscribe({next:n=>{this.gs.log("[FANSUB_CREATE_SUCCESS]",n),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/fansub",{state:{bypassCanDeactivate:!0}})},error:n=>{this.gs.log("[FANSUB_CREATE_ERROR]",n,"error"),this.submitted=!1,this.bs.idle()}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(o.QS),t.Y36(h.F0),t.Y36(Y.e),t.Y36(F.z),t.Y36(j.X),t.Y36($.T),t.Y36(X.k),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fansub-create"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"fansub-banner","fansub-banner-1","align-items-center"],[1,"fansub-banner","fansub-banner-2","align-items-center"],[2,"padding-top","160px"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","web","placeholder","http://www.domain.id"],["fontIcon","web","matSuffix",""],["matInput","","formControlName","facebook","placeholder","http://www.facebook.com"],["fontIcon","facebook","matSuffix",""],["matInput","","formControlName","discord","placeholder","http://www.discord.gg"],["matSuffix",""],["width","24px",2,"vertical-align","baseline",3,"src"],["matInput","","formControlName","twitter","placeholder","http://www.twitter.com"],[1,"col-12","col-md-7","col-xl-8","p-3"],["gambar_",""],["class","col-12 py-3",4,"ngIf"],["appearance","outline",1,"py-3","col-12","col-md-7",3,"color"],["matInput","","formControlName","name","placeholder","Fansub Jalanan","required",""],["fontIcon","wysiwyg","matSuffix",""],["appearance","outline","matTooltip","Digunakan Juga Untuk Sub-Domain",1,"py-3","col-12","col-md-5",3,"color"],["matInput","","formControlName","slug","placeholder","Jalsub","required",""],["fontIcon","short_text","matSuffix",""],["class","text-info",4,"ngIf"],["formControlName","description","required","",1,"py-3","w-100",3,"config"],["appearance","outline",1,"py-3","col-12","col-md-6",3,"color"],["matInput","","formControlName","born","required","",3,"matDatepicker","placeholder","focus"],["matSuffix","",3,"for"],["disabled","false"],["kalender",""],["formControlName","active","placeholder","Aktif / Non-Aktif","required",""],["value","0"],["value","1"],["align","end"],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["appearance","outline","class","py-3 col-12",3,"color",4,"ngIf"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/fansub",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],[1,"col-12","py-3"],[1,"text-info"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],["matInput","","formControlName","rss_feed","placeholder","http://my-site.blogspot.com/feeds/posts/default?alt=rss"],["fontIcon","rss_feed","matSuffix",""]],template:function(e,i){1&e&&t.YNc(0,Le,8,3,"div",0),2&e&&t.Q6J("ngIf",i.fg)},dependencies:[m.sg,m.O5,h.yS,et.ey,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,P.Mq,P.hl,P.nW,R.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,M.Nt,at.gD,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,k.Yh,Q.t,Z.s6,m.uU,V.$],styles:[".fansub-banner[_ngcontent-%COMP%]{height:128px;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur(5px) brightness(100%);opacity:.5}.fansub-banner-1[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.fansub-banner-2[_ngcontent-%COMP%]{position:absolute;top:128px;left:0}.fansub-info[_ngcontent-%COMP%]{position:relative;height:256px;z-index:1}"]}),a})();var H=c(5934),Ye=c(7358);function Ke(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeTo(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function He(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Boleh Kosong"),t.qZA())}function Ge(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function je(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeCc(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function Ve(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function Pe(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",34),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeBcc(s))}),t._uU(1),t._UZ(2,"mat-icon",35),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function ze(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Valid"),t.qZA())}function We(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",36)(1,"mat-slide-toggle",37),t.NdJ("change",function(n){t.CHM(e);const s=t.oxw(2);return t.KtG(s.noReplyMode(n))}),t._uU(2),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.MGl("matTooltip","Kirim sebagai noreply@",e.ENV.domain,""),t.xp6(1),t.hij(" Kirim sebagai noreply@",e.ENV.domain," ")}}function $e(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Pesan Tidak Boleh Kosong"),t.qZA())}function Xe(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Pesan Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function ta(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Buat Email Baru & Kirim"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"mat-form-field",11)(11,"mat-label"),t._uU(12,"Penerima"),t.qZA(),t.TgZ(13,"mat-chip-list",null,12),t.YNc(15,Ke,3,2,"mat-chip",13),t.qZA(),t.TgZ(16,"input",14),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addTo(n))}),t.qZA(),t._UZ(17,"mat-icon",15),t.TgZ(18,"mat-hint",16)(19,"mat-error"),t.YNc(20,He,2,0,"div",17),t.YNc(21,Ge,2,0,"div",17),t.qZA()()(),t.TgZ(22,"mat-form-field",11)(23,"mat-label"),t._uU(24,"Carbon Copy"),t.qZA(),t.TgZ(25,"mat-chip-list",null,18),t.YNc(27,je,3,2,"mat-chip",13),t.qZA(),t.TgZ(28,"input",19),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addCc(n))}),t.qZA(),t._UZ(29,"mat-icon",15),t.TgZ(30,"mat-hint",16)(31,"mat-error"),t.YNc(32,Ve,2,0,"div",17),t.qZA()()(),t.TgZ(33,"mat-form-field",11)(34,"mat-label"),t._uU(35,"Blind Carbon Copy"),t.qZA(),t.TgZ(36,"mat-chip-list",null,20),t.YNc(38,Pe,3,2,"mat-chip",13),t.qZA(),t.TgZ(39,"input",19),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addBcc(n))}),t.qZA(),t._UZ(40,"mat-icon",15),t.TgZ(41,"mat-hint",16)(42,"mat-error"),t.YNc(43,ze,2,0,"div",17),t.qZA()()(),t.YNc(44,We,3,2,"div",21),t.qZA()(),t.TgZ(45,"div",22)(46,"div",9)(47,"mat-form-field",23)(48,"mat-label"),t._uU(49,"Judul"),t.qZA(),t._UZ(50,"input",24)(51,"mat-icon",25),t.TgZ(52,"mat-error"),t.YNc(53,$e,2,0,"div",17),t.YNc(54,Xe,2,0,"div",17),t.qZA()(),t._UZ(55,"angular-editor",26),t.qZA()()(),t.TgZ(56,"div",9)(57,"div",2)(58,"div",27),t._UZ(59,"div",28),t.TgZ(60,"div",29)(61,"a",30),t._UZ(62,"mat-icon",31),t._uU(63," Batal "),t.qZA()(),t.TgZ(64,"div",29)(65,"button",32),t._uU(66," Simpan "),t._UZ(67,"mat-icon",33),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(14),i=t.MAs(26),n=t.MAs(37),s=t.oxw();t.Q6J("formGroup",s.fg),t.xp6(10),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.to),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",e)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("to").hasError("required")),t.xp6(1),t.Q6J("ngIf",s.fg.get("to").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.cc),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",i)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("cc").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",s.fg.value.bcc),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",s.GS.separatorKeysCodes)("matChipInputFor",n)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("ngIf",s.fg.get("bcc").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",s.canSendAsNoReply),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",s.fg.get("subject").hasError("required")),t.xp6(1),t.Q6J("ngIf",s.fg.get("subject").hasError("pattern")),t.xp6(1),t.Q6J("config",s.GS.angularEditorConfig),t.xp6(6),t.Q6J("disabled",s.submitted),t.xp6(4),t.Q6J("disabled",s.submitted||s.fg.invalid)}}let ea=(()=>{class a{constructor(e,i,n,s,l,d,b,U){this.activatedRoute=e,this.fb=i,this.router=n,this.bs=s,this.gs=l,this.as=d,this.ms=b,this.ds=U,this.submitted=!1,this.subsMail=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return H.N}get GS(){return this.gs}get canSendAsNoReply(){const e=this.as.currentUserSubject?.value?.role;return e===g.yS.ADMIN||e===g.yS.MODERATOR}ngOnInit(){this.gs.isBrowser&&this.initForm()}ngOnDestroy(){this.subsMail?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){const e=this.activatedRoute.snapshot.queryParamMap.get("to")?.split(",").map(l=>l.toLowerCase().trim())||[],i=this.activatedRoute.snapshot.queryParamMap.get("cc")?.split(",").map(l=>l.toLowerCase().trim())||[],n=this.activatedRoute.snapshot.queryParamMap.get("bcc")?.split(",").map(l=>l.toLowerCase().trim())||[];this.as.currentUserSubject?.value&&(n.includes(`${this.as.currentUserSubject.value._email.toLowerCase().trim()}`)||n.push(`${this.as.currentUserSubject.value._email.toLowerCase().trim()}`));const s=this.activatedRoute.snapshot.queryParamMap.get("subject")||"";this.fg=this.fb.group({to:[e,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEmailMulti)])],cc:[i,o.kI.compose([o.kI.pattern(u.t.regexEmailMulti)])],bcc:[n,o.kI.compose([o.kI.pattern(u.t.regexEmailMulti)])],subject:[s,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],message:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],no_reply:[!1,o.kI.compose([o.kI.required])]})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsMail=this.ms.sendMail(this.fg.value).subscribe({next:e=>{this.gs.log("[MAIL_SEND_SUCCESS]",e),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/mailbox",{state:{bypassCanDeactivate:!0}})},error:e=>{this.gs.log("[MAIL_SEND_ERROR]",e,"error"),this.submitted=!1,this.bs.idle()}})}addTo(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.to.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.to.patchValue(this.fg.value.to.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTo(e){const i=this.fg.value.to.indexOf(e);i>=0&&this.fg.value.to.splice(i,1)}addCc(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.cc.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.cc.patchValue(this.fg.value.cc.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeCc(e){const i=this.fg.value.cc.indexOf(e);i>=0&&this.fg.value.cc.splice(i,1)}addBcc(e){const i=e.chipInput.inputElement,n=e.value;(n||"").toLowerCase().trim()&&this.fg.value.bcc.push(n.toLowerCase().trim()),i&&(i.value=""),this.fg.controls.bcc.patchValue(this.fg.value.bcc.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeBcc(e){const i=this.fg.value.bcc.indexOf(e);i>=0&&this.fg.value.bcc.splice(i,1)}noReplyMode(e){e.checked?(this.fg.controls.subject.patchValue(`${H.N.siteName} | Informasi`),this.fg.controls.subject.disable()):this.fg.controls.subject.enable()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.gz),t.Y36(o.QS),t.Y36(h.F0),t.Y36(F.z),t.Y36(p.U),t.Y36(Y.e),t.Y36(Ye.Y),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-mailbox-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],["hintLabel","Gunakan , Jika Lebih Dari 1","appearance","outline",1,"py-3","col-12",3,"color"],["to",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","user@domain.tld","required","",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","short_text","matSuffix",""],["align","end"],[4,"ngIf"],["cc",""],["placeholder","user@domain.tld",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["bcc",""],["class","col-12 py-3",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","subject","placeholder","Judul Pesan Blablabla ...","required",""],["fontIcon","wysiwyg","matSuffix",""],["formControlName","message","required","",1,"py-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/mailbox",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""],[1,"col-12","py-3"],["formControlName","no_reply",3,"matTooltip","change"]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ta,68,27,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,R.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,M.Nt,it.Rr,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,Q.t,Z.s6]}),a})();var aa=c(9618);function ia(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"bytes"),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.hij("Ukuran Upload Melebihi Batas ",t.lcZ(2,1,e.imageLimitExceeded)," !")}}function na(a,r){if(1&a&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&a){const e=t.oxw(2);t.xp6(1),t.Oqu(e.imageErrorText)}}function oa(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"div",2)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.submitImage())}),t._UZ(2,"mat-icon",37),t._uU(3," Unggah "),t.qZA()()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("disabled",e.submitted)}}function ra(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Berita Tidak Boleh Kosong"),t.qZA())}function sa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Judul Berita Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function la(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"mat-chip",38),t.NdJ("removed",function(){const s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.removeTag(s))}),t._uU(1),t._UZ(2,"mat-icon",39),t.qZA()}if(2&a){const e=r.$implicit;t.Q6J("removable",!0),t.xp6(1),t.hij(" ",e," ")}}function ca(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Tambah Data Berita & Informasi Baru"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"div",2),t._UZ(11,"img",11),t.TgZ(12,"mat-form-field",12)(13,"mat-label"),t._uU(14,"Gambar"),t.qZA(),t.TgZ(15,"ngx-mat-file-input",13,14),t.NdJ("change",function(n){t.CHM(e);const s=t.MAs(16),l=t.oxw();return t.KtG(l.uploadImage(n,s))}),t.qZA(),t._UZ(17,"mat-icon",15),t.qZA(),t.TgZ(18,"mat-error",16)(19,"small"),t.YNc(20,ia,3,3,"div",17),t.YNc(21,na,2,1,"div",17),t.qZA()()(),t.YNc(22,oa,4,1,"div",18),t.qZA()(),t.TgZ(23,"div",19)(24,"div",9)(25,"mat-form-field",20)(26,"mat-label"),t._uU(27,"Judul"),t.qZA(),t._UZ(28,"input",21)(29,"mat-icon",22),t.TgZ(30,"mat-error"),t.YNc(31,ra,2,0,"div",17),t.YNc(32,sa,2,0,"div",17),t.qZA()(),t.TgZ(33,"mat-form-field",20)(34,"mat-label"),t._uU(35,"Tags & Kategori"),t.qZA(),t.TgZ(36,"mat-chip-list",null,23),t.YNc(38,la,3,2,"mat-chip",24),t.TgZ(39,"input",25),t.NdJ("matChipInputTokenEnd",function(n){t.CHM(e);const s=t.oxw();return t.KtG(s.addTag(n))}),t.qZA(),t._UZ(40,"mat-icon",26),t.qZA(),t.TgZ(41,"mat-hint",27),t._uU(42,"Isi Dengan Bebas, Pisahkan Dengan Koma"),t.qZA()(),t._UZ(43,"angular-editor",28),t.qZA()()(),t.TgZ(44,"div",9)(45,"div",2)(46,"div",29),t._UZ(47,"div",30),t.TgZ(48,"div",31)(49,"a",32),t._UZ(50,"mat-icon",33),t._uU(51," Batal "),t.qZA()(),t.TgZ(52,"div",31)(53,"button",34),t._uU(54," Simpan "),t._UZ(55,"mat-icon",35),t.qZA()()()()()()()()}if(2&a){const e=t.MAs(37),i=t.oxw();t.Q6J("formGroup",i.fg),t.xp6(11),t.Q6J("src",i.image_url,t.LSH),t.xp6(1),t.Q6J("color","accent"),t.xp6(3),t.Q6J("disabled",i.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),t.xp6(5),t.Q6J("ngIf",i.imageLimitExceeded),t.xp6(1),t.Q6J("ngIf",i.imageErrorText),t.xp6(1),t.Q6J("ngIf",i.image&&!i.fg.value.image),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",i.fg.get("title").hasError("required")),t.xp6(1),t.Q6J("ngIf",i.fg.get("title").hasError("pattern")),t.xp6(1),t.Q6J("color","accent"),t.xp6(5),t.Q6J("ngForOf",i.fg.value.tags),t.xp6(1),t.Q6J("matChipInputSeparatorKeyCodes",i.GS.separatorKeysCodes)("matChipInputFor",e)("matChipInputAddOnBlur",!0),t.xp6(4),t.Q6J("config",i.GS.angularEditorConfig),t.xp6(6),t.Q6J("disabled",i.submitted),t.xp6(4),t.Q6J("disabled",i.submitted||i.fg.invalid)}}let ma=(()=>{class a{constructor(e,i,n,s,l,d,b){this.fb=e,this.router=i,this.bs=n,this.imgbb=s,this.news=l,this.gs=d,this.ds=b,this.submitted=!1,this.image=null,this.imageErrorText=null,this.imageLimitExceeded=null,this.image_url="/assets/img/form/no-image.png",this.gambar=null,this.subsNews=null,this.subsImgbb=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}ngOnInit(){this.gs.isBrowser&&this.initForm()}ngOnDestroy(){this.subsImgbb?.unsubscribe(),this.subsNews?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){this.fg=this.fb.group({title:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],content:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],image:[null,o.kI.compose([o.kI.pattern(u.t.regexUrl)])],tags:[[],o.kI.compose([])]})}uploadImage(e,i){this.gambar=i,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null);const n=e.target.files[0];try{const s=new FileReader;s.readAsDataURL(n),s.onload=l=>{if(this.gs.log("[IMAGE_SELECTED]",l),n.size<=u.t.fileSizeImageLimit){const d=this.gs.document.createElement("img");d.onload=()=>{this.image=n,this.image_url=s.result.toString()},d.src=s.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=u.t.fileSizeImageLimit,this.gambar.clear(e)}}catch{this.image=null,this.image_url="/assets/img/form/no-image.png",this.gambar.clear(e)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:e=>{this.gs.log("[IMAGE_SUCCESS]",e),this.fg.controls.image.patchValue(e.result.url),this.submitted=!1},error:e=>{this.gs.log("[IMAGE_ERROR]",e,"error"),this.fg.controls.image.patchValue(null),this.submitted=!1,this.imageErrorText=e.result?.message||e.info}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNews=this.news.createNews({image:this.fg.value.image,title:this.fg.value.title,content:this.fg.value.content,tags:this.fg.value.tags}).subscribe({next:e=>{this.gs.log("[NEWS_CREATE_SUCCESS]",e),this.submitted=!1,this.bs.idle(),this.router.navigateByUrl("/news",{state:{bypassCanDeactivate:!0}})},error:e=>{this.gs.log("[NEWS_CREATE_ERROR]",e,"error"),this.submitted=!1,this.bs.idle()}})}addTag(e){const i=e.input,n=e.value;(n||"").trim()&&this.fg.value.tags.push(n.trim()),i&&(i.value=""),this.fg.controls.tags.patchValue(this.fg.value.tags.filter((s,l,d)=>d.findIndex(b=>b===s)===l))}removeTag(e){const i=this.fg.value.tags.indexOf(e);i>=0&&this.fg.value.tags.splice(i,1)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(o.QS),t.Y36(h.F0),t.Y36(F.z),t.Y36(j.X),t.Y36(aa.Y),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-news-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-5","col-xl-4","p-3"],[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","w-100"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","title","placeholder","Berita Terkini Blablabla ...","required",""],["fontIcon","wysiwyg","matSuffix",""],["tag",""],["color","accent","selected","",3,"removable","removed",4,"ngFor","ngForOf"],["placeholder","Label Tag / Kategori",3,"matChipInputSeparatorKeyCodes","matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],["fontIcon","loyalty","matSuffix",""],["align","end"],["formControlName","content","required","",1,"py-3","w-100",3,"config"],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/news",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"],["type","button","mat-raised-button","","color","primary",1,"w-100",3,"disabled","click"],["fontIcon","add_photo_alternate",1,"me-1"],["color","accent","selected","",3,"removable","removed"],["fontIcon","cancel","matChipRemove",""]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ca,56,19,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.sg,m.O5,h.yS,A.lW,A.zs,T.qn,T.HS,T.oH,T.qH,R.Hw,f.TO,f.KE,f.bx,f.hX,f.R9,M.Nt,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,k.Yh,Q.t,Z.s6,V.$]}),a})();var ua=c(7984);function da(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat URL Tidak Boleh Kosong"),t.qZA())}function _a(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Format Alamat URL Salah"),t.qZA())}function ga(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Ekspektasi Hanya Boleh Huruf Standar Papan Ketik"),t.qZA())}function pa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Alamat Surel Tidak Boleh Kosong"),t.qZA())}function fa(a,r){1&a&&(t.TgZ(0,"div"),t._uU(1,"Format Alamat Surel Salah"),t.qZA())}function ha(a,r){if(1&a){const e=t.EpF();t.TgZ(0,"form",4),t.NdJ("submit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t.TgZ(1,"div",5)(2,"div",6)(3,"h2",7)(4,"b",8),t._uU(5,"Buat Laporan Pelanggaran Penyalahgunaan"),t.qZA()()(),t.TgZ(6,"div",2)(7,"div",9)(8,"div",10)(9,"div",9)(10,"mat-form-field",11)(11,"mat-label"),t._uU(12,"URL Link Tautan Yang Di Laporkan"),t.qZA(),t._UZ(13,"input",12)(14,"mat-icon",13),t.TgZ(15,"mat-error"),t.YNc(16,da,2,0,"div",14),t.YNc(17,_a,2,0,"div",14),t.qZA()(),t._UZ(18,"angular-editor",15),t.TgZ(19,"mat-form-field",11)(20,"mat-label"),t._uU(21,"Ekspektasi Hasil Yang Diharapkan"),t.qZA(),t._UZ(22,"input",16)(23,"mat-icon",13),t.TgZ(24,"mat-error"),t.YNc(25,ga,2,0,"div",14),t.qZA()()()(),t.TgZ(26,"div",17)(27,"div",9)(28,"mat-form-field",11)(29,"mat-label"),t._uU(30,"Surel Informasi Proses Hasil Tindak Lanjut"),t.qZA(),t._UZ(31,"input",18)(32,"mat-icon",19),t.TgZ(33,"mat-error"),t.YNc(34,pa,2,0,"div",14),t.YNc(35,fa,2,0,"div",14),t.qZA()(),t.TgZ(36,"div",20)(37,"re-captcha",21,22),t.NdJ("resolved",function(n){t.CHM(e);const s=t.MAs(38),l=t.oxw();return t.KtG(l.captcha(n,s))}),t.qZA()()()()(),t.TgZ(39,"div",9)(40,"div",2)(41,"div",23),t._UZ(42,"div",24),t.TgZ(43,"div",25)(44,"a",26),t._UZ(45,"mat-icon",27),t._uU(46," Batal "),t.qZA()(),t.TgZ(47,"div",25)(48,"button",28),t._uU(49," Simpan "),t._UZ(50,"mat-icon",29),t.qZA()()()()()()()()}if(2&a){const e=t.oxw();t.Q6J("formGroup",e.fg),t.xp6(10),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("url").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("url").hasError("pattern")),t.xp6(1),t.Q6J("config",e.GS.angularEditorConfig),t.xp6(1),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("expected_solution").hasError("pattern")),t.xp6(3),t.Q6J("color","accent"),t.xp6(6),t.Q6J("ngIf",e.fg.get("contact_email").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.fg.get("contact_email").hasError("pattern")),t.xp6(2),t.Q6J("siteKey",e.G_CAPTCHA_SITE_KEY),t.xp6(7),t.Q6J("disabled",e.submitted),t.xp6(4),t.Q6J("disabled",e.submitted||e.fg.invalid)}}const va=[{path:"",pathMatch:"full",redirectTo:"/home"},{path:"berkas",component:fe,canActivate:[S.t],canDeactivate:[x],data:{title:"Berkas - Buat Baru",description:"Halaman Unggah Berkas Baru",keywords:"Tambah Berkas Baru",[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"fansub",component:Oe,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Fansub - Buat Baru",description:"Halaman Menambahkan Fansub Baru",keywords:"Create Fansub",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"mailbox",component:ea,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Surel - Buat Baru",description:"Halaman Kirim Surel Baru",keywords:"Buat Surel Baru",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR,g.yS.FANSUBBER,g.yS.USER]}},{path:"news",component:ma,canActivate:[y.H,S.t],canDeactivate:[x],data:{title:"Berita - Buat Baru",description:"Halaman Unggah Berita Baru",keywords:"Tambah Berita Baru",[u.t.decoratorVerifiedOnly]:!0,[u.t.decoratorRoles]:[g.yS.ADMIN,g.yS.MODERATOR]}},{path:"ticket",component:(()=>{class a{constructor(e,i,n,s,l,d,b,U){this.activatedRoute=e,this.fb=i,this.router=n,this.as=s,this.bs=l,this.ticket=d,this.gs=b,this.ds=U,this.captchaRef=null,this.submitted=!1,this.subsUser=null,this.subsDialog=null,this.subsTicket=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get GS(){return this.gs}get G_CAPTCHA_SITE_KEY(){return u.t.gCaptchaSiteKey}ngOnInit(){this.gs.isBrowser&&(this.initForm(),this.subsUser=this.as.currentUser.subscribe({next:e=>{e&&this.fg?.controls.contact_email?.patchValue(e._email)}}))}ngOnDestroy(){this.subsUser?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsTicket?.unsubscribe()}canDeactivate(){var e=this;return(0,I.Z)(function*(){const i=yield e.ds.leavePageDialog();return yield J(i)})()}initForm(){const e=this.activatedRoute.snapshot.queryParamMap.get("url")||null;this.fg=this.fb.group({url:[e,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexUrl)])],contact_email:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEmail)])],reported_issue:[null,o.kI.compose([o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],expected_solution:[null,o.kI.compose([o.kI.pattern(u.t.regexEnglishKeyboardKeys)])],"g-recaptcha-response":[null,[o.kI.required,o.kI.pattern(u.t.regexEnglishKeyboardKeys)]]})}captcha(e,i){this.gs.log(`[GOOGLE_CAPTCHA] ${e}`),e?(this.captchaRef=i,this.fg.controls["g-recaptcha-response"].patchValue(e)):this.fg.value["g-recaptcha-response"]&&this.fg.controls["g-recaptcha-response"].patchValue(null)}showInfo(e){this.subsDialog=this.ds.openInfoDialog({data:{title:"Pembuatan Laporan",htmlMessage:e,confirmText:"Tutup"}}).afterClosed().subscribe({next:i=>{this.gs.log("[INFO_DIALOG_CLOSED]",i),this.subsDialog.unsubscribe()}})}onSubmit(){if(this.bs.busy(),this.submitted=!0,this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsTicket=this.ticket.createTicket({url:this.fg.value.url,contact_email:this.fg.value.contact_email,reported_issue:this.fg.value.reported_issue,expected_solution:this.fg.value.expected_solution,"g-recaptcha-response":this.fg.value["g-recaptcha-response"]}).subscribe({next:e=>{this.gs.log("[NEWS_CREATE_SUCCESS]",e);const i=`${H.N.baseUrl}/ticket/${e.result.id}?secret=${e.result.secret}`;this.showInfo(`\n Terima kasih telah turut ikut serta dalam menjaga dan mengawasi ${H.N.siteName}.\n Harap simpan URL dan gunakan untuk melihat progressnya ::\n ${i}\n `),this.submitted=!1,this.bs.idle(),this.router.navigate([`/ticket/${e.result.id}`],{state:{bypassCanDeactivate:!0},queryParams:{secret:e.result.secret}})},error:e=>{this.gs.log("[NEWS_CREATE_ERROR]",e,"error"),this.showInfo(e.result?.message||e.info),this.submitted=!1,this.bs.idle()}})}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(h.gz),t.Y36(o.QS),t.Y36(h.F0),t.Y36(Y.e),t.Y36(F.z),t.Y36(ua.w),t.Y36(p.U),t.Y36(D.x))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-ticket-create"]],decls:5,vars:1,consts:[[1,"container"],[1,"row","px-3"],[1,"col-12"],[3,"formGroup","submit",4,"ngIf"],[3,"formGroup","submit"],[1,"row","mt-3","mb-3"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],[1,"text-bifeldy"],[1,"row"],[1,"col-12","col-md-7","col-xl-8","p-3"],["appearance","outline",1,"py-3","col-12",3,"color"],["matInput","","formControlName","url","placeholder","https://sub-domain.fansub.id/berkas/konten-melanggar.html","required","","matTooltip","Alamat URL yang ingin kamu laporkan"],["fontIcon","wysiwyg","matSuffix",""],[4,"ngIf"],["formControlName","reported_issue","required","",1,"py-3","w-100",3,"config"],["matInput","","formControlName","expected_solution","placeholder","Harap kontent tersebut di hapus dan akun yang bersangkutan segera di tangguhkan ..."],[1,"col-12","col-md-5","col-xl-4","p-3"],["matInput","","formControlName","contact_email","placeholder","email-untuk-info-update@example.com","required","","matTooltip","Kami akan mengirimkan informasi jika laporanmu sudah selesai ditangani melalui surel ini"],["fontIcon","alternate_email","matSuffix",""],[1,"py-3","col-12"],["formControlName","g-recaptcha-response",3,"siteKey","resolved"],["captchaRef",""],[1,"row","gy-3"],[1,"col","g-0"],[1,"col-12","col-md-3"],["mat-stroked-button","","routerLink","/news",1,"w-100",3,"disabled"],["fontIcon","undo",1,"me-1"],["type","submit","mat-flat-button","","color","accent",1,"w-100",3,"disabled"],["fontIcon","save",1,"ms-1"]],template:function(e,i){1&e&&(t._UZ(0,"app-notifications"),t.TgZ(1,"div",0)(2,"div",1)(3,"div",2),t.YNc(4,ha,51,13,"form",3),t.qZA()()()),2&e&&(t.xp6(4),t.Q6J("ngIf",i.fg))},dependencies:[m.O5,h.yS,A.lW,A.zs,R.Hw,f.TO,f.KE,f.hX,f.R9,M.Nt,K.gM,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,Q.t,Z.s6,v.wT,v.Vd]}),a})(),canDeactivate:[x],data:{title:"Ticket - Permintaan Baru",description:"Halaman Permohonan Baru",keywords:"Ajukan Permintaan Permohonan"}}];let xa=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[m.ez,h.Bz.forChild(va),_.m,o.u5,o.UX,k.Ad,N.F,Z.UM,C.T,v.a,v.lQ]}),a})()},8616:(W,E,c)=>{c.d(E,{t:()=>t});var m=c(4650),h=c(1390),o=c(257),Z=c(7140),k=c(6895),v=c(1861);function u(p,x){if(1&p&&m._UZ(0,"div",4),2&p){const _=m.oxw();m.Udp("background-size",_.GS.sizeContain?"contain":"cover")("background-image","url("+_.GS.bannerImg+")")("background-repeat",_.GS.bgRepeat?"repeat-x":"no-repeat")("height",_.ROUTER.url.startsWith("/news")||_.ROUTER.url.startsWith("/berkas")||_.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",_.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function g(p,x){if(1&p&&(m.TgZ(0,"strong",10),m._uU(1," -- "),m.TgZ(2,"i")(3,"a",11),m._uU(4),m.qZA()()()),2&p){const _=m.oxw().$implicit;m.xp6(3),m.MGl("routerLink","/user/",_.notifCreator,""),m.xp6(1),m.hij(" ",_.notifCreator," ")}}function S(p,x){if(1&p){const _=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){m.CHM(_);const N=m.oxw().$implicit,I=m.oxw();return m.KtG(I.removeNotif(N.notifData.id))}),m.qZA()}}function y(p,x){if(1&p&&(m.TgZ(0,"div",5)(1,"div")(2,"strong",6),m._uU(3),m.qZA(),m._UZ(4,"span",7),m.ALo(5,"safeInnerHtml"),m.YNc(6,g,5,2,"strong",8),m.YNc(7,S,1,0,"button",9),m.qZA()()),2&p){const _=x.$implicit;m.xp6(1),m.Gre("alert alert-",_.notifData.type," alert-dismissible fade show"),m.xp6(2),m.Oqu(_.notifData.title),m.xp6(1),m.Q6J("innerHTML",m.lcZ(5,7,_.notifData.content),m.oJD),m.xp6(2),m.Q6J("ngIf",_.notifCreator),m.xp6(1),m.Q6J("ngIf",_.notifData.dismissible)}}let t=(()=>{class p{constructor(_,C,N){this.router=_,this.gs=C,this.notif=N}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(_){this.notif.removeNotif(_)}}return p.\u0275fac=function(_){return new(_||p)(m.Y36(h.F0),m.Y36(o.U),m.Y36(Z.T))},p.\u0275cmp=m.Xpm({type:p,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(_,C){1&_&&(m.YNc(0,u,1,10,"div",0),m.TgZ(1,"div",1)(2,"div",2),m.YNc(3,y,8,9,"div",3),m.qZA()()),2&_&&(m.Q6J("ngIf",C.GS.bannerImg&&(C.ROUTER.url.startsWith("/news")||C.ROUTER.url.startsWith("/berkas")||C.ROUTER.url.startsWith("/fansub")||C.ROUTER.url.startsWith("/anime")||C.ROUTER.url.startsWith("/dorama"))),m.xp6(3),m.Q6J("ngForOf",C.NOTIF.notifications))},dependencies:[k.sg,k.O5,h.yS,v.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),p})()},8613:(W,E,c)=>{c.d(E,{F:()=>k});var m=c(6895),h=c(1390),o=c(7355),Z=c(4650);let k=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[m.ez,h.Bz,o.T]}),v})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/915.8c92636ce0d1fa1c.js b/dist/fansubid/browser/915.8c92636ce0d1fa1c.js new file mode 100644 index 000000000..2f4118de2 --- /dev/null +++ b/dist/fansubid/browser/915.8c92636ce0d1fa1c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[915],{2915:(O,h,e)=>{e.r(h),e.d(h,{HomeModule:()=>X});var n=e(6895),u=e(1390),d=e(7355),v=e(8613),r=e(669),p=e(210),a=e(4854),c=e(913),g=e(1838),f=e(2438),T=e(5934),t=e(4650),Z=e(257),s=e(7),_=e(9618),A=e(7559),C=e(6781),D=e(3e3),R=e(8020),L=e(6382),N=e(9530),k=e(3331),F=e(8921),I=e(8616),S=e(4859),E=e(3546),y=e(3238),H=e(7392),M=e(6338),w=e(266),P=e(192),$=e(6766);function B(i,m){if(1&i&&(t.TgZ(0,"a",37),t._UZ(1,"mat-icon",38),t._uU(2),t.qZA()),2&i){const o=m.$implicit;t.Gre("m-1 ","/berkas"===o.link?"shiny":"",""),t.s9C("routerLink",o.link),t.xp6(1),t.Q6J("fontIcon",o.icon),t.xp6(1),t.hij(" ",o.name," ")}}function J(i,m){1&i&&t._UZ(0,"app-no-data",39)}function K(i,m){if(1&i&&(t.TgZ(0,"div",42)(1,"mat-card"),t._UZ(2,"img",43),t.TgZ(3,"mat-card-content",44)(4,"h3",45),t._uU(5),t.qZA()(),t.TgZ(6,"mat-card-header"),t._UZ(7,"div",46),t.TgZ(8,"mat-card-title",47)(9,"h3",48),t._uU(10),t.qZA()(),t.TgZ(11,"mat-card-subtitle",48),t._uU(12),t.ALo(13,"date"),t.qZA()()()()),2&i){const o=m.$implicit;t.xp6(2),t.MGl("routerLink","/news/",o.id,""),t.Q6J("src",o.image_url,t.LSH),t.xp6(1),t.MGl("routerLink","/news/",o.id,""),t.xp6(2),t.hij(" ",o.title," "),t.xp6(2),t.Udp("background-image","url("+o.user_.image_url+")"),t.xp6(1),t.MGl("routerLink","/user/",o.user_.username,""),t.xp6(2),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(t.xi3(13,9,o.created_at,"d MMMM y, HH:mm:ss z"))}}function Y(i,m){if(1&i&&(t.TgZ(0,"div",31)(1,"div",40),t.YNc(2,K,14,12,"div",41),t.ALo(3,"slice"),t.qZA()()),2&i){const o=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.Dn7(3,1,o.newsData,0,3===o.GS.gridListBreakpoint?2:o.GS.gridListBreakpoint))}}function W(i,m){if(1&i){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",53),t.TgZ(2,"a",54),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openComment(b))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t.TgZ(9,"span",57),t._uU(10),t.qZA()()()}if(2&i){const o=m.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(o.comment)}}function G(i,m){if(1&i){const o=t.EpF();t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"span",49),t.NdJ("click",function(){t.CHM(o);const U=t.oxw();return t.KtG(U.getComment())}),t._uU(4," Refresh "),t.qZA(),t.TgZ(5,"b",30),t._uU(6,"Komentar Terbaru"),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,W,11,9,"mat-list-option",51),t.qZA()()()}if(2&i){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.komentarData)}}function z(i,m){if(1&i){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",60),t.TgZ(2,"a",54),t.NdJ("click",function(){const b=t.CHM(o).$implicit,x=t.oxw(2);return t.KtG(x.openRssFeed(b.fansub_,b.link))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t._UZ(9,"span",61),t.qZA()()}if(2&i){const o=m.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.fansub_.slug),t.xp6(1),t.Q6J("innerHtml",o.title,t.oJD)}}function Q(i,m){if(1&i&&(t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"a",58),t._uU(4," Lainnya "),t.qZA(),t.TgZ(5,"b",59),t._uU(6," RSS Feed Fansub "),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,z,10,9,"mat-list-option",51),t.qZA()()()),2&i){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.rssFeedData)}}const j=[{path:"",pathMatch:"full",component:(()=>{class i{constructor(o,l,U,b,x,q,V,tt,nt){this.router=o,this.gs=l,this.lms=U,this.news=b,this.komen=x,this.fansub=q,this.bs=V,this.wb=tt,this.fs=nt,this.newsData=[],this.komentarData=[],this.rssFeedData=[],this.subsNews=null,this.subsKomenGet=null,this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return T.N}get GS(){return this.gs}get contentMenus(){return this.lms.contentMenus}ngOnDestroy(){this.subsNews?.unsubscribe(),this.subsKomenGet?.unsubscribe(),this.subsRssFeed?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.getNews(),this.getComment(),this.getRssFeed(),this.fs.initializeFab(null,"/assets/img/discord/pink.png","Discord Server",T.N.discord.join_url,!0))}getNews(){this.bs.busy(),this.subsNews=this.news.getAllNews("",1,3).subscribe({next:o=>{this.gs.log("[HOME_NEWS_LIST_SUCCESS]",o),this.newsData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_NEWS_LIST_ERROR]",o,"error"),this.bs.idle()}})}getComment(){this.bs.busy(),this.subsKomenGet=this.komen.getAllComment().subscribe({next:o=>{this.gs.log("[HOME_KOMENTAR_LIST_SUCCESS]",o),this.komentarData=o.results;for(const l of this.komentarData)l.comment=this.gs.htmlToText(l.comment);this.bs.idle()},error:o=>{this.gs.log("[HOME_KOMENTAR_LIST_ERROR]",o,"error"),this.bs.idle()}})}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansubAll(!0).subscribe({next:o=>{this.gs.log("[HOME_RSS_FEED_LIST_SUCCESS]",o),this.rssFeedData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_RSS_FEED_LIST_ERROR]",o,"error"),this.bs.idle()}})}openRssFeed(o,l){const U=o.urls.web;if(U){const b=new URL(U);let x=`${b.protocol}//${b.host}`;l.startsWith("/")||(x+="/"),x+=l,this.wb.winboxOpenUri(x)}}openComment(o){this.router.navigate([o.path],{queryParams:{comment:o.id}})}}return i.\u0275fac=function(o){return new(o||i)(t.Y36(u.F0),t.Y36(Z.U),t.Y36(s.S),t.Y36(_.Y),t.Y36(A.k),t.Y36(C.T),t.Y36(D.z),t.Y36(R.N),t.Y36(L.r))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-home"]],decls:69,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],["href","https://www.pixiv.net/en/users/1688603","target","_blank"],[1,"p-5",3,"src"],[1,"h3","font-weight-normal","gradient-text"],[1,"pt-3"],[1,"col-12","col-lg-8","mx-auto"],["matTooltip","Khusus Berkas Yang Upload DDL",1,"text-success"],[1,"row","pb-3"],["mat-stroked-button","","color","warn",3,"class","routerLink",4,"ngFor","ngForOf"],["mat-stroked-button","","routerLink","/create/ticket",1,"m-1"],["fontIcon","flag",1,"me-1"],["mat-stroked-button","","routerLink","/mailbox","color","accent",1,"m-1"],["fontIcon","mail_outline",1,"me-1"],["mat-stroked-button","","routerLink","/nihongo","color","accent",1,"m-1"],["fontIcon","translate",1,"me-1"],[1,"row","mb-3"],[1,"mouse_scroll"],[1,"mouse"],[1,"wheel"],[1,"m_scroll_arrows","unu"],[1,"m_scroll_arrows","doi"],[1,"m_scroll_arrows","trei"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],["routerLink","/news",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],["mat-stroked-button","","color","warn",3,"routerLink"],[1,"me-1",3,"fontIcon"],[1,"col-12","p-3"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","p-2"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"],["matLine","",2,"text-overflow","ellipsis","overflow","hidden","white-space","nowrap"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer",3,"routerLink"],[1,"mb-0"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["fontIcon","add_comment","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0",3,"matTooltip"],[1,"me-3","text-success"],[1,"text-warning"],["routerLink","/rss-feed",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],["matTooltip","Diperbaharui Beberapa Jam Sekali",1,"text-bifeldy"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-warning",3,"innerHtml"]],template:function(o,l){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"h1",6),t._uU(7),t.qZA(),t.TgZ(8,"h2",7)(9,"p",8),t._uU(10," Tempat berbagi (+ "),t.TgZ(11,"i"),t._uU(12,"backup"),t.qZA(),t._uU(13,") dan melacak sekaligus mengabadikan berkas proyek garapan animasi maupun film drama dari, oleh, untuk siapa saja. "),t.qZA()(),t.TgZ(14,"h3",9)(15,"p",8),t._uU(16," * Tempat arsip abadi :: Anti "),t.TgZ(17,"i")(18,"u"),t._uU(19,"link"),t.qZA()(),t._uU(20," mati ~ "),t.qZA()(),t.TgZ(21,"div",10)(22,"div",8),t.YNc(23,B,3,6,"a",11),t.qZA()(),t.TgZ(24,"div",10)(25,"div",8)(26,"a",12),t._UZ(27,"mat-icon",13),t._uU(28," Lapor Pelanggaran & Penyalahgunaan "),t.qZA()()(),t.TgZ(29,"div",10)(30,"div",8)(31,"a",14),t._UZ(32,"mat-icon",15),t._uU(33," Surat Elektronik "),t.qZA(),t.TgZ(34,"a",16),t._UZ(35,"mat-icon",17),t._uU(36," Belajar Bahasa Jepang "),t.qZA()()()()()(),t.TgZ(37,"div",18)(38,"div",2)(39,"div",19)(40,"div",20),t._UZ(41,"div",21),t.qZA(),t.TgZ(42,"div"),t._UZ(43,"span",22)(44,"span",23)(45,"span",24),t.qZA()()()()(),t._UZ(46,"app-notifications"),t.TgZ(47,"div",0)(48,"div",25)(49,"div",26)(50,"div",1)(51,"div",27)(52,"h2",28)(53,"a",29),t._uU(54," Selengkapnya "),t.qZA(),t.TgZ(55,"b",30),t._uU(56,"Papan Pengumuman"),t.qZA()()(),t.TgZ(57,"div",31)(58,"div",1),t.YNc(59,J,1,0,"app-no-data",32),t.YNc(60,Y,4,5,"div",33),t.qZA()()(),t.YNc(61,G,10,2,"div",34),t.YNc(62,Q,10,2,"div",34),t.qZA(),t.TgZ(63,"div",35)(64,"div",36)(65,"div",31),t._UZ(66,"app-banner-donasi")(67,"app-banner-discord")(68,"app-stats-server"),t.qZA()()()()()),2&o&&(t.xp6(5),t.MGl("src","",l.ENV.baseUrl,"/assets/img/favicon.png",t.LSH),t.xp6(2),t.Oqu(l.ENV.siteName),t.xp6(16),t.Q6J("ngForOf",l.contentMenus),t.xp6(36),t.Q6J("ngIf",l.newsData.length<=0),t.xp6(1),t.Q6J("ngIf",l.newsData.length>0),t.xp6(1),t.Q6J("ngIf",l.komentarData.length>0),t.xp6(1),t.Q6J("ngIf",l.rssFeedData.length>0))},dependencies:[n.sg,n.O5,u.rH,u.yS,N.u,k.B,F.X,I.t,S.zs,E.a8,E.dk,E.dn,E.n5,E.$j,E.G2,E.kc,y.X2,H.Hw,M.Nh,M.Ub,M.vS,w.gM,P.d,n.OU,n.uU,$.R]}),i})()}];let X=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[n.ez,u.Bz.forChild(j),g.R,a.R,c.g,r.A,v.F,p.m,d.T,f.d]}),i})()},8616:(O,h,e)=>{e.d(h,{t:()=>T});var n=e(4650),u=e(1390),d=e(257),v=e(7140),r=e(6895),p=e(1861);function a(t,Z){if(1&t&&n._UZ(0,"div",4),2&t){const s=n.oxw();n.Udp("background-size",s.GS.sizeContain?"contain":"cover")("background-image","url("+s.GS.bannerImg+")")("background-repeat",s.GS.bgRepeat?"repeat-x":"no-repeat")("height",s.ROUTER.url.startsWith("/news")||s.ROUTER.url.startsWith("/berkas")||s.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",s.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function c(t,Z){if(1&t&&(n.TgZ(0,"strong",10),n._uU(1," -- "),n.TgZ(2,"i")(3,"a",11),n._uU(4),n.qZA()()()),2&t){const s=n.oxw().$implicit;n.xp6(3),n.MGl("routerLink","/user/",s.notifCreator,""),n.xp6(1),n.hij(" ",s.notifCreator," ")}}function g(t,Z){if(1&t){const s=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){n.CHM(s);const A=n.oxw().$implicit,C=n.oxw();return n.KtG(C.removeNotif(A.notifData.id))}),n.qZA()}}function f(t,Z){if(1&t&&(n.TgZ(0,"div",5)(1,"div")(2,"strong",6),n._uU(3),n.qZA(),n._UZ(4,"span",7),n.ALo(5,"safeInnerHtml"),n.YNc(6,c,5,2,"strong",8),n.YNc(7,g,1,0,"button",9),n.qZA()()),2&t){const s=Z.$implicit;n.xp6(1),n.Gre("alert alert-",s.notifData.type," alert-dismissible fade show"),n.xp6(2),n.Oqu(s.notifData.title),n.xp6(1),n.Q6J("innerHTML",n.lcZ(5,7,s.notifData.content),n.oJD),n.xp6(2),n.Q6J("ngIf",s.notifCreator),n.xp6(1),n.Q6J("ngIf",s.notifData.dismissible)}}let T=(()=>{class t{constructor(s,_,A){this.router=s,this.gs=_,this.notif=A}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(s){this.notif.removeNotif(s)}}return t.\u0275fac=function(s){return new(s||t)(n.Y36(u.F0),n.Y36(d.U),n.Y36(v.T))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(s,_){1&s&&(n.YNc(0,a,1,10,"div",0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,f,8,9,"div",3),n.qZA()()),2&s&&(n.Q6J("ngIf",_.GS.bannerImg&&(_.ROUTER.url.startsWith("/news")||_.ROUTER.url.startsWith("/berkas")||_.ROUTER.url.startsWith("/fansub")||_.ROUTER.url.startsWith("/anime")||_.ROUTER.url.startsWith("/dorama"))),n.xp6(3),n.Q6J("ngForOf",_.NOTIF.notifications))},dependencies:[r.sg,r.O5,u.yS,p.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),t})()},8613:(O,h,e)=>{e.d(h,{F:()=>r});var n=e(6895),u=e(1390),d=e(7355),v=e(4650);let r=(()=>{class p{}return p.\u0275fac=function(c){return new(c||p)},p.\u0275mod=v.oAB({type:p}),p.\u0275inj=v.cJS({imports:[n.ez,u.Bz,d.T]}),p})()},6766:(O,h,e)=>{e.d(h,{R:()=>u});var n=e(4650);let u=(()=>{class d{transform(r,p){if(r){const a=Math.floor((+new Date-+new Date(r))/1e3),c={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let g;for(const f of Object.keys(c))if(g=Math.floor(a/c[f]),g>0)return g+" "+f+" lalu"}return r}}return d.\u0275fac=function(r){return new(r||d)},d.\u0275pipe=n.Yjl({name:"dateAgo",type:d,pure:!0}),d})()},7559:(O,h,e)=>{e.d(h,{k:()=>v});var n=e(4650),u=e(9731),d=e(257);let v=(()=>{class r{constructor(a,c){this.api=a,this.gs=c}getAllComment(a="",c=1,g=10,f="",T=""){return this.api.getData(`/comment?q=${a}&page=${c}&row=${g}&sort=${f}&order=${T}`)}getComment(a="",c="",g=1,f=10,T="",t=""){return this.api.getData(`/comment?path=${a}&q=${c}&page=${g}&row=${f}&sort=${T}&order=${t}`)}getReply(a,c="",g=1,f=10,T="",t=""){return this.api.getData(`/comment/${a}?q=${c}&page=${g}&row=${f}&sort=${T}&order=${t}`)}sendComment(a){return this.api.postData("/comment",a)}getHighlight(a){return this.api.patchData("/comment",a)}deleteComment(a){return this.api.deleteData(`/comment/${a}`)}}return r.\u0275fac=function(a){return new(a||r)(n.LFG(u.s),n.LFG(d.U))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/915.b159b1607e0bd0f3.js b/dist/fansubid/browser/915.b159b1607e0bd0f3.js deleted file mode 100644 index 77753a4a5..000000000 --- a/dist/fansubid/browser/915.b159b1607e0bd0f3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[915],{2915:(O,h,e)=>{e.r(h),e.d(h,{HomeModule:()=>X});var n=e(6895),d=e(1390),u=e(7355),v=e(8613),r=e(669),p=e(210),a=e(4854),l=e(913),g=e(1838),f=e(2438),T=e(5934),t=e(4650),Z=e(257),s=e(7),_=e(9618),x=e(7559),C=e(6781),D=e(3e3),R=e(8020),L=e(6382),k=e(9530),N=e(3331),F=e(8921),I=e(8616),S=e(4859),b=e(3546),y=e(3238),H=e(7392),M=e(6338),w=e(266),P=e(192),B=e(6766);function J(i,c){if(1&i&&(t.TgZ(0,"a",37),t._UZ(1,"mat-icon",38),t._uU(2),t.qZA()),2&i){const o=c.$implicit;t.Gre("m-1 ","/berkas"===o.link?"shiny":"",""),t.s9C("routerLink",o.link),t.xp6(1),t.Q6J("fontIcon",o.icon),t.xp6(1),t.hij(" ",o.name," ")}}function K(i,c){1&i&&t._UZ(0,"app-no-data",39)}function Y(i,c){if(1&i&&(t.TgZ(0,"div",42)(1,"mat-card"),t._UZ(2,"img",43),t.TgZ(3,"mat-card-content",44)(4,"h3",45),t._uU(5),t.qZA()(),t.TgZ(6,"mat-card-header"),t._UZ(7,"div",46),t.TgZ(8,"mat-card-title",47)(9,"h3",48),t._uU(10),t.qZA()(),t.TgZ(11,"mat-card-subtitle",48),t._uU(12),t.ALo(13,"date"),t.qZA()()()()),2&i){const o=c.$implicit;t.xp6(2),t.MGl("routerLink","/news/",o.id,""),t.Q6J("src",o.image_url,t.LSH),t.xp6(1),t.MGl("routerLink","/news/",o.id,""),t.xp6(2),t.hij(" ",o.title," "),t.xp6(2),t.Udp("background-image","url("+o.user_.image_url+")"),t.xp6(1),t.MGl("routerLink","/user/",o.user_.username,""),t.xp6(2),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(t.xi3(13,9,o.created_at,"d MMMM y, HH:mm:ss z"))}}function $(i,c){if(1&i&&(t.TgZ(0,"div",31)(1,"div",40),t.YNc(2,Y,14,12,"div",41),t.ALo(3,"slice"),t.qZA()()),2&i){const o=t.oxw();t.xp6(2),t.Q6J("ngForOf",t.Dn7(3,1,o.newsData,0,3===o.GS.gridListBreakpoint?2:o.GS.gridListBreakpoint))}}function G(i,c){if(1&i){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",53),t.TgZ(2,"a",54),t.NdJ("click",function(){const E=t.CHM(o).$implicit,A=t.oxw(2);return t.KtG(A.openComment(E))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t.TgZ(9,"span",57),t._uU(10),t.qZA()()()}if(2&i){const o=c.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.user_.username),t.xp6(2),t.Oqu(o.comment)}}function W(i,c){if(1&i){const o=t.EpF();t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"span",49),t.NdJ("click",function(){t.CHM(o);const U=t.oxw();return t.KtG(U.getComment())}),t._uU(4," Refresh "),t.qZA(),t.TgZ(5,"b",30),t._uU(6,"Komentar Terbaru"),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,G,11,9,"mat-list-option",51),t.qZA()()()}if(2&i){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.komentarData)}}function z(i,c){if(1&i){const o=t.EpF();t.TgZ(0,"mat-list-option",52),t._UZ(1,"mat-icon",60),t.TgZ(2,"a",54),t.NdJ("click",function(){const E=t.CHM(o).$implicit,A=t.oxw(2);return t.KtG(A.openRssFeed(E.link))}),t.TgZ(3,"span",55),t.ALo(4,"date"),t._uU(5),t.ALo(6,"dateAgo"),t.qZA(),t.TgZ(7,"span",56),t._uU(8),t.qZA(),t._UZ(9,"span",61),t.qZA()()}if(2&i){const o=c.$implicit;t.xp6(3),t.s9C("matTooltip",t.xi3(4,4,o.created_at,"d MMMM y, hh:mm:ss a z")),t.xp6(2),t.hij(" ",t.lcZ(6,7,o.created_at)," "),t.xp6(3),t.Oqu(o.fansub_.slug),t.xp6(1),t.Q6J("innerHtml",o.title,t.oJD)}}function Q(i,c){if(1&i&&(t.TgZ(0,"div",1)(1,"div",27)(2,"h2",28)(3,"a",58),t._uU(4," Lainnya "),t.qZA(),t.TgZ(5,"b",59),t._uU(6," RSS Feed Fansub "),t.qZA()()(),t.TgZ(7,"div",31)(8,"mat-selection-list",50),t.YNc(9,z,10,9,"mat-list-option",51),t.qZA()()()),2&i){const o=t.oxw();t.xp6(8),t.Q6J("multiple",!1),t.xp6(1),t.Q6J("ngForOf",o.rssFeedData)}}const j=[{path:"",pathMatch:"full",component:(()=>{class i{constructor(o,m,U,E,A,q,V,tt,nt){this.router=o,this.gs=m,this.lms=U,this.news=E,this.komen=A,this.fansub=q,this.bs=V,this.wb=tt,this.fs=nt,this.newsData=[],this.komentarData=[],this.rssFeedData=[],this.subsNews=null,this.subsKomenGet=null,this.subsRssFeed=null,this.gs.bannerImg=null,this.gs.sizeContain=!1,this.gs.bgRepeat=!1}get ENV(){return T.N}get GS(){return this.gs}get contentMenus(){return this.lms.contentMenus}ngOnDestroy(){this.subsNews?.unsubscribe(),this.subsKomenGet?.unsubscribe(),this.subsRssFeed?.unsubscribe()}ngOnInit(){this.gs.isBrowser&&(this.getNews(),this.getComment(),this.getRssFeed(),this.fs.initializeFab(null,"/assets/img/discord/pink.png","Discord Server",T.N.discord.join_url,!0))}getNews(){this.bs.busy(),this.subsNews=this.news.getAllNews("",1,3).subscribe({next:o=>{this.gs.log("[HOME_NEWS_LIST_SUCCESS]",o),this.newsData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_NEWS_LIST_ERROR]",o,"error"),this.bs.idle()}})}getComment(){this.bs.busy(),this.subsKomenGet=this.komen.getAllComment().subscribe({next:o=>{this.gs.log("[HOME_KOMENTAR_LIST_SUCCESS]",o),this.komentarData=o.results;for(const m of this.komentarData)m.comment=this.gs.htmlToText(m.comment);this.bs.idle()},error:o=>{this.gs.log("[HOME_KOMENTAR_LIST_ERROR]",o,"error"),this.bs.idle()}})}getRssFeed(){this.bs.busy(),this.subsRssFeed=this.fansub.getRssFeedFansubAll(!0).subscribe({next:o=>{this.gs.log("[HOME_RSS_FEED_LIST_SUCCESS]",o),this.rssFeedData=o.results,this.bs.idle()},error:o=>{this.gs.log("[HOME_RSS_FEED_LIST_ERROR]",o,"error"),this.bs.idle()}})}openRssFeed(o){this.wb.winboxOpenUri(o)}openComment(o){this.router.navigate([o.path],{queryParams:{comment:o.id}})}}return i.\u0275fac=function(o){return new(o||i)(t.Y36(d.F0),t.Y36(Z.U),t.Y36(s.S),t.Y36(_.Y),t.Y36(x.k),t.Y36(C.T),t.Y36(D.z),t.Y36(R.N),t.Y36(L.r))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-home"]],decls:69,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-12","align-items-center"],[1,"text-center","my-3","mx-auto"],["href","https://www.pixiv.net/en/users/1688603","target","_blank"],[1,"p-5",3,"src"],[1,"h3","font-weight-normal","gradient-text"],[1,"pt-3"],[1,"col-12","col-lg-8","mx-auto"],["matTooltip","Khusus Berkas Yang Upload DDL",1,"text-success"],[1,"row","pb-3"],["mat-stroked-button","","color","warn",3,"class","routerLink",4,"ngFor","ngForOf"],["mat-stroked-button","","routerLink","/create/ticket",1,"m-1"],["fontIcon","flag",1,"me-1"],["mat-stroked-button","","routerLink","/mailbox","color","accent",1,"m-1"],["fontIcon","mail_outline",1,"me-1"],["mat-stroked-button","","routerLink","/nihongo","color","accent",1,"m-1"],["fontIcon","translate",1,"me-1"],[1,"row","mb-3"],[1,"mouse_scroll"],[1,"mouse"],[1,"wheel"],[1,"m_scroll_arrows","unu"],[1,"m_scroll_arrows","doi"],[1,"m_scroll_arrows","trei"],[1,"row","pb-3","px-0"],[1,"col-lg-8","col-xl-9"],[1,"col-12","sticky-top","bg-bifeldy"],[1,"pt-3","border-bottom-dotted"],["routerLink","/news",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],[1,"text-bifeldy"],[1,"col-12"],["class","col-12 p-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-lg-4","col-xl-3"],[1,"row","sticky-top"],["mat-stroked-button","","color","warn",3,"routerLink"],[1,"me-1",3,"fontIcon"],[1,"col-12","p-3"],[1,"row","px-3"],["class","col-12 col-md-6 col-xl-4 p-2",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-xl-4","p-2"],["mat-card-image","",2,"height","128px","object-fit","cover","cursor","pointer",3,"src","routerLink"],[2,"cursor","pointer",3,"routerLink"],["matLine","",2,"text-overflow","ellipsis","overflow","hidden","white-space","nowrap"],["mat-card-avatar","",2,"background-size","cover","border-radius","0"],[1,"text-warning","mb-1",2,"cursor","pointer",3,"routerLink"],[1,"mb-0"],[1,"float-end","text-warning",2,"font-size","small","cursor","pointer",3,"click"],[3,"multiple"],["class","h-100",4,"ngFor","ngForOf"],[1,"h-100"],["fontIcon","add_comment","mat-list-icon","",1,"ps-3"],[1,"text-truncate","text-decoration-none",3,"click"],[1,"bg-bifeldy","px-2","me-1","text-danger",2,"position","absolute","right","0",3,"matTooltip"],[1,"me-3","text-success"],[1,"text-warning"],["routerLink","/rss-feed",1,"float-end","text-decoration-none","text-warning",2,"font-size","small"],["matTooltip","Diperbaharui Beberapa Jam Sekali",1,"text-bifeldy"],["fontIcon","rss_feed","mat-list-icon","",1,"ps-3"],[1,"text-warning",3,"innerHtml"]],template:function(o,m){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),t._UZ(5,"img",5),t.qZA(),t.TgZ(6,"h1",6),t._uU(7),t.qZA(),t.TgZ(8,"h2",7)(9,"p",8),t._uU(10," Tempat berbagi (+ "),t.TgZ(11,"i"),t._uU(12,"backup"),t.qZA(),t._uU(13,") dan melacak sekaligus mengabadikan berkas proyek garapan animasi maupun film drama dari, oleh, untuk siapa saja. "),t.qZA()(),t.TgZ(14,"h3",9)(15,"p",8),t._uU(16," * Tempat arsip abadi :: Anti "),t.TgZ(17,"i")(18,"u"),t._uU(19,"link"),t.qZA()(),t._uU(20," mati ~ "),t.qZA()(),t.TgZ(21,"div",10)(22,"div",8),t.YNc(23,J,3,6,"a",11),t.qZA()(),t.TgZ(24,"div",10)(25,"div",8)(26,"a",12),t._UZ(27,"mat-icon",13),t._uU(28," Lapor Pelanggaran & Penyalahgunaan "),t.qZA()()(),t.TgZ(29,"div",10)(30,"div",8)(31,"a",14),t._UZ(32,"mat-icon",15),t._uU(33," Surat Elektronik "),t.qZA(),t.TgZ(34,"a",16),t._UZ(35,"mat-icon",17),t._uU(36," Belajar Bahasa Jepang "),t.qZA()()()()()(),t.TgZ(37,"div",18)(38,"div",2)(39,"div",19)(40,"div",20),t._UZ(41,"div",21),t.qZA(),t.TgZ(42,"div"),t._UZ(43,"span",22)(44,"span",23)(45,"span",24),t.qZA()()()()(),t._UZ(46,"app-notifications"),t.TgZ(47,"div",0)(48,"div",25)(49,"div",26)(50,"div",1)(51,"div",27)(52,"h2",28)(53,"a",29),t._uU(54," Selengkapnya "),t.qZA(),t.TgZ(55,"b",30),t._uU(56,"Papan Pengumuman"),t.qZA()()(),t.TgZ(57,"div",31)(58,"div",1),t.YNc(59,K,1,0,"app-no-data",32),t.YNc(60,$,4,5,"div",33),t.qZA()()(),t.YNc(61,W,10,2,"div",34),t.YNc(62,Q,10,2,"div",34),t.qZA(),t.TgZ(63,"div",35)(64,"div",36)(65,"div",31),t._UZ(66,"app-banner-donasi")(67,"app-banner-discord")(68,"app-stats-server"),t.qZA()()()()()),2&o&&(t.xp6(5),t.MGl("src","",m.ENV.baseUrl,"/assets/img/favicon.png",t.LSH),t.xp6(2),t.Oqu(m.ENV.siteName),t.xp6(16),t.Q6J("ngForOf",m.contentMenus),t.xp6(36),t.Q6J("ngIf",m.newsData.length<=0),t.xp6(1),t.Q6J("ngIf",m.newsData.length>0),t.xp6(1),t.Q6J("ngIf",m.komentarData.length>0),t.xp6(1),t.Q6J("ngIf",m.rssFeedData.length>0))},dependencies:[n.sg,n.O5,d.rH,d.yS,k.u,N.B,F.X,I.t,S.zs,b.a8,b.dk,b.dn,b.n5,b.$j,b.G2,b.kc,y.X2,H.Hw,M.Nh,M.Ub,M.vS,w.gM,P.d,n.OU,n.uU,B.R]}),i})()}];let X=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[n.ez,d.Bz.forChild(j),g.R,a.R,l.g,r.A,v.F,p.m,u.T,f.d]}),i})()},8616:(O,h,e)=>{e.d(h,{t:()=>T});var n=e(4650),d=e(1390),u=e(257),v=e(7140),r=e(6895),p=e(1861);function a(t,Z){if(1&t&&n._UZ(0,"div",4),2&t){const s=n.oxw();n.Udp("background-size",s.GS.sizeContain?"contain":"cover")("background-image","url("+s.GS.bannerImg+")")("background-repeat",s.GS.bgRepeat?"repeat-x":"no-repeat")("height",s.ROUTER.url.startsWith("/news")||s.ROUTER.url.startsWith("/berkas")||s.ROUTER.url.startsWith("/fansub")?"192px":"128px")("background-position-y",s.ROUTER.url.startsWith("/berkas")?"22.5%":"")}}function l(t,Z){if(1&t&&(n.TgZ(0,"strong",10),n._uU(1," -- "),n.TgZ(2,"i")(3,"a",11),n._uU(4),n.qZA()()()),2&t){const s=n.oxw().$implicit;n.xp6(3),n.MGl("routerLink","/user/",s.notifCreator,""),n.xp6(1),n.hij(" ",s.notifCreator," ")}}function g(t,Z){if(1&t){const s=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){n.CHM(s);const x=n.oxw().$implicit,C=n.oxw();return n.KtG(C.removeNotif(x.notifData.id))}),n.qZA()}}function f(t,Z){if(1&t&&(n.TgZ(0,"div",5)(1,"div")(2,"strong",6),n._uU(3),n.qZA(),n._UZ(4,"span",7),n.ALo(5,"safeInnerHtml"),n.YNc(6,l,5,2,"strong",8),n.YNc(7,g,1,0,"button",9),n.qZA()()),2&t){const s=Z.$implicit;n.xp6(1),n.Gre("alert alert-",s.notifData.type," alert-dismissible fade show"),n.xp6(2),n.Oqu(s.notifData.title),n.xp6(1),n.Q6J("innerHTML",n.lcZ(5,7,s.notifData.content),n.oJD),n.xp6(2),n.Q6J("ngIf",s.notifCreator),n.xp6(1),n.Q6J("ngIf",s.notifData.dismissible)}}let T=(()=>{class t{constructor(s,_,x){this.router=s,this.gs=_,this.notif=x}ngOnInit(){}get GS(){return this.gs}get ROUTER(){return this.router}get NOTIF(){return this.notif}removeNotif(s){this.notif.removeNotif(s)}}return t.\u0275fac=function(s){return new(s||t)(n.Y36(d.F0),n.Y36(u.U),n.Y36(v.T))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-notifications"]],decls:4,vars:2,consts:[["class","container-fluid notif-banner align-items-center",3,"background-size","background-image","background-repeat","height","background-position-y",4,"ngIf"],[1,"container"],[1,"row","pt-3"],["class","col-12",4,"ngFor","ngForOf"],[1,"container-fluid","notif-banner","align-items-center"],[1,"col-12"],[1,"me-1"],[3,"innerHTML"],["class","ms-1",4,"ngIf"],["type","button","class","btn-close","data-dismiss","alert",3,"click",4,"ngIf"],[1,"ms-1"],[1,"text-decoration-none",3,"routerLink"],["type","button","data-dismiss","alert",1,"btn-close",3,"click"]],template:function(s,_){1&s&&(n.YNc(0,a,1,10,"div",0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,f,8,9,"div",3),n.qZA()()),2&s&&(n.Q6J("ngIf",_.GS.bannerImg&&(_.ROUTER.url.startsWith("/news")||_.ROUTER.url.startsWith("/berkas")||_.ROUTER.url.startsWith("/fansub")||_.ROUTER.url.startsWith("/anime")||_.ROUTER.url.startsWith("/dorama"))),n.xp6(3),n.Q6J("ngForOf",_.NOTIF.notifications))},dependencies:[r.sg,r.O5,d.yS,p.H],styles:[".notif-banner[_ngcontent-%COMP%]{width:100%;background-size:cover;background-position:75% 50%}"]}),t})()},8613:(O,h,e)=>{e.d(h,{F:()=>r});var n=e(6895),d=e(1390),u=e(7355),v=e(4650);let r=(()=>{class p{}return p.\u0275fac=function(l){return new(l||p)},p.\u0275mod=v.oAB({type:p}),p.\u0275inj=v.cJS({imports:[n.ez,d.Bz,u.T]}),p})()},6766:(O,h,e)=>{e.d(h,{R:()=>d});var n=e(4650);let d=(()=>{class u{transform(r,p){if(r){const a=Math.floor((+new Date-+new Date(r))/1e3),l={tahun:31536e3,bulan:2592e3,minggu:604800,hari:86400,jam:3600,menit:60,detik:1};let g;for(const f of Object.keys(l))if(g=Math.floor(a/l[f]),g>0)return g+" "+f+" lalu"}return r}}return u.\u0275fac=function(r){return new(r||u)},u.\u0275pipe=n.Yjl({name:"dateAgo",type:u,pure:!0}),u})()},7559:(O,h,e)=>{e.d(h,{k:()=>v});var n=e(4650),d=e(9731),u=e(257);let v=(()=>{class r{constructor(a,l){this.api=a,this.gs=l}getAllComment(a="",l=1,g=10,f="",T=""){return this.api.getData(`/comment?q=${a}&page=${l}&row=${g}&sort=${f}&order=${T}`)}getComment(a="",l="",g=1,f=10,T="",t=""){return this.api.getData(`/comment?path=${a}&q=${l}&page=${g}&row=${f}&sort=${T}&order=${t}`)}getReply(a,l="",g=1,f=10,T="",t=""){return this.api.getData(`/comment/${a}?q=${l}&page=${g}&row=${f}&sort=${T}&order=${t}`)}sendComment(a){return this.api.postData("/comment",a)}getHighlight(a){return this.api.patchData("/comment",a)}deleteComment(a){return this.api.deleteData(`/comment/${a}`)}}return r.\u0275fac=function(a){return new(a||r)(n.LFG(d.s),n.LFG(u.U))},r.\u0275prov=n.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()}}]); \ No newline at end of file diff --git a/dist/fansubid/browser/index.html b/dist/fansubid/browser/index.html index 3e7eb6061..a2b7c5cf8 100644 --- a/dist/fansubid/browser/index.html +++ b/dist/fansubid/browser/index.html @@ -63,7 +63,7 @@ - + \ No newline at end of file diff --git a/dist/fansubid/browser/main.6975c34147e7fa9e.js b/dist/fansubid/browser/main.6975c34147e7fa9e.js new file mode 100644 index 000000000..22515ffd9 --- /dev/null +++ b/dist/fansubid/browser/main.6975c34147e7fa9e.js @@ -0,0 +1 @@ +var BD=Object.defineProperty,ND=(Qe,F,s)=>F in Qe?BD(Qe,F,{enumerable:!0,configurable:!0,writable:!0,value:s}):Qe[F]=s,th=(Qe,F,s)=>(ND(Qe,"symbol"!=typeof F?F+"":F,s),s);(self.webpackChunkfansubid=self.webpackChunkfansubid||[]).push([[179],{192:(Qe,F,s)=>{"use strict";s.d(F,{d:()=>o});var n=s(4650),r=s(257),l=s(6895);function u(E,x){1&E&&n._UZ(0,"br")}let o=(()=>{class E{constructor(d){this.gs=d}ngOnInit(){}get GS(){return this.gs}}return E.\u0275fac=function(d){return new(d||E)(n.Y36(r.U))},E.\u0275cmp=n.Xpm({type:E,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(d,g){1&d&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),n._uU(4," Tidak Ada Data "),n.YNc(5,u,1,0,"br",4),n._uU(6," \xaf\\_(\u30c4)_/\xaf "),n.qZA()()()()),2&d&&(n.xp6(5),n.Q6J("ngIf",!g.GS.isDesktop))},dependencies:[l.O5]}),E})()},2438:(Qe,F,s)=>{"use strict";s.d(F,{d:()=>l});var n=s(6895),r=s(4650);let l=(()=>{class u{}return u.\u0275fac=function(E){return new(E||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[n.ez]}),u})()},1617:(Qe,F,s)=>{"use strict";s.d(F,{u:()=>Z});var n=s(6271),r=s(4249),l=s(4650),u=s(4137),o=s(257),E=s(8381),x=s(3379),d=s(1390),g=s(6895),v=s(4006),_=s(3238),m=s(4859),C=s(7392),O=s(9549),H=s(4144),G=s(4385),Y=s(266);const V=["liveChatScroll"];function ne(fe,q){if(1&fe&&(l.TgZ(0,"mat-option",17),l._uU(1,"Global Fansubber"),l.qZA()),2&fe){const Ve=l.oxw(2);l.Q6J("value",Ve.CONSTANTS.socketRoomNameGlobalFansub)}}function me(fe,q){if(1&fe&&(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&fe){const Ve=l.oxw().$implicit;l.MGl("routerLink","/user/",Ve.value.username,""),l.s9C("matTooltip",Ve.value.username),l.xp6(2),l.s9C("src",Ve.value.image_url,l.LSH),l.xp6(4),l.Oqu(Ve.value.username)}}function j(fe,q){if(1&fe&&(l.TgZ(0,"div",24),l.YNc(1,me,7,4,"div",25),l.qZA()),2&fe){const Ve=q.$implicit;l.xp6(1),l.Q6J("ngIf",Ve.value)}}function $(fe,q){if(1&fe&&(l.TgZ(0,"div",22),l.YNc(1,j,2,1,"div",23),l.ALo(2,"keyvalue"),l.qZA()),2&fe){const Ve=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",l.lcZ(2,1,Ve.roomCurrentOrGlobal.member_list))}}function N(fe,q){if(1&fe){const Ve=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(kt){l.CHM(Ve);const Lt=l.oxw();return l.KtG(Lt.liveChatResult.roomId=kt)})("valueChange",function(kt){l.CHM(Ve);const Lt=l.oxw();return l.KtG(Lt.changeRoom(kt))}),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,ne,2,1,"mat-option",18),l.qZA()()()(),l.TgZ(12,"div",19)(13,"div",20),l.YNc(14,$,3,3,"div",21),l.qZA()()()}if(2&fe){const Ve=l.oxw();l.xp6(3),l.Q6J("color","accent"),l.xp6(3),l.Q6J("value",Ve.liveChatResult.roomId),l.xp6(1),l.Q6J("value",Ve.ROUTER.url.split("?")[0]),l.xp6(2),l.Q6J("value",Ve.CONSTANTS.socketRoomNameGlobalPublic),l.xp6(2),l.Q6J("ngIf",Ve.isAdminModFansubber),l.xp6(3),l.Q6J("ngIf",Ve.roomCurrentOrGlobal)}}function ee(fe,q){if(1&fe&&(l.TgZ(0,"div",27),l._UZ(1,"img",28),l.qZA()),2&fe){const Ve=l.oxw().$implicit;l.xp6(1),l.s9C("src",Ve.sender.image_url,l.LSH)}}function he(fe,q){if(1&fe){const Ve=l.EpF();l.TgZ(0,"div"),l.YNc(1,ee,2,1,"div",31),l.TgZ(2,"div",32)(3,"h5",33)(4,"span",34),l.NdJ("click",function(){const Lt=l.CHM(Ve).$implicit,wt=l.oxw();return l.KtG(wt.openUserProfile(Lt.sender.username))}),l._uU(5),l.qZA(),l._UZ(6,"span",35),l.qZA()()()}if(2&fe){const Ve=q.$implicit,Je=q.index,kt=l.oxw();l.Gre("d-flex py-1 ",Je===kt.chatCurrentOrGlobal.length-kt.SS.messageChatUnreadCount?"border-top":"",""),l.xp6(1),l.Q6J("ngIf",Ve.sender.image_url),l.xp6(4),l.hij(" ",Ve.sender.username," "),l.xp6(1),l.Q6J("innerHtml",kt.innerHtml(Ve.message),l.oJD)}}function oe(fe,q){if(1&fe){const Ve=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(kt){l.CHM(Ve);const Lt=l.oxw();return l.KtG(Lt.applyFilter(kt))})("ngModelChange",function(kt){l.CHM(Ve);const Lt=l.oxw();return l.KtG(Lt.liveChatResult.messageToSend=kt)}),l.qZA(),l._UZ(4,"mat-icon",38),l.qZA()}if(2&fe){const Ve=l.oxw();l.Q6J("color","accent"),l.xp6(3),l.Q6J("ngModel",Ve.liveChatResult.messageToSend)("disabled",!Ve.canChat)}}function Ie(fe,q){if(1&fe){const Ve=l.EpF();l.TgZ(0,"button",39),l.NdJ("click",function(){l.CHM(Ve);const kt=l.oxw();return l.KtG(kt.login())}),l._UZ(1,"mat-icon",40),l._uU(2," Login Untuk Bisa Mengobrol "),l.qZA()}}const ae=function(fe){return{height:fe}};let Z=(()=>{class fe{constructor(Ve,Je,kt,Lt,wt){this.as=Ve,this.gs=Je,this.ss=kt,this.ls=Lt,this.router=wt,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 Ve=this.ls.getItem(this.gs.localStorageKeys.LiveChatResults,!0);if(Ve)for(const[Je,kt]of Object.entries(Ve))this.liveChatResult[Je]=kt;this.liveChatResult.roomId=this.router.url.split("?")[0],this.subsCurrentRoom=this.ss.currentRoom.subscribe({next:Je=>{this.currentRoom=Je}}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:Je=>{this.globalRoom=Je}}),this.subsFansubRoom=this.ss.fansubRoom.subscribe({next:Je=>{this.fansubRoom=Je}})}}get CONSTANTS(){return n.t}get isAdminModFansubber(){return!(!this.as.currentUserSubject?.value||this.as.currentUserSubject?.value?.role!==r.yS.ADMIN&&this.as.currentUserSubject?.value?.role!==r.yS.MODERATOR&&this.as.currentUserSubject?.value?.role!==r.yS.FANSUBBER)}get roomCurrentOrGlobal(){return this.liveChatResult.roomId===n.t.socketRoomNameGlobalPublic?this.globalRoom:this.liveChatResult.roomId===n.t.socketRoomNameGlobalFansub?this.fansubRoom:this.currentRoom}get chatCurrentOrGlobal(){return this.messageHistory=this.liveChatResult.roomId===n.t.socketRoomNameGlobalPublic?this.ss.globalChatRoom:this.liveChatResult.roomId===n.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!==n.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(Ve){return this.gs.linkify(this.gs.htmlToText(Ve))}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(Ve){this.gs.log("[MESSAGE_VALUE_CHANGED]",Ve),this.liveChatResult.messageToSend=Ve.target.value.trim().toLowerCase(),this.liveChatResult.messageToSend&&this.sendMessage()}changeRoom(Ve){this.gs.log("[MESSAGE_ROOM_CHANGED]",Ve),this.liveChatResult.roomId=Ve,this.scrollMessage()}login(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url.split("?")[0]}})}openUserProfile(Ve){this.router.navigateByUrl(`/user/${Ve}`)}}return fe.\u0275fac=function(Ve){return new(Ve||fe)(l.Y36(u.e),l.Y36(o.U),l.Y36(E.R),l.Y36(x.n),l.Y36(d.F0))},fe.\u0275cmp=l.Xpm({type:fe,selectors:[["app-live-chat"]],viewQuery:function(Ve,Je){if(1&Ve&&l.Gf(V,5),2&Ve){let kt;l.iGM(kt=l.CRH())&&(Je.liveChatScroll=kt.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(Ve,Je){1&Ve&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,N,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,he,7,6,"div",9),l.qZA()(),l.TgZ(12,"div",10),l.YNc(13,oe,5,3,"mat-form-field",11),l.YNc(14,Ie,3,0,"button",12),l.qZA()()()()),2&Ve&&(l.Q6J("ngStyle",l.VKq(7,ae,Je.chatOnly?"":"calc(100vh - 120px)")),l.xp6(2),l.Q6J("ngIf",!Je.chatOnly),l.xp6(1),l.Q6J("ngStyle",l.VKq(9,ae,Je.chatOnly?"100%!important":"60%!important")),l.xp6(6),l.Q6J("ngStyle",l.VKq(11,ae,Je.chatOnly?"320px":"calc(50vh - 139px)")),l.xp6(2),l.Q6J("ngForOf",Je.chatCurrentOrGlobal),l.xp6(2),l.Q6J("ngIf",null==Je.AS.currentUserSubject?null:Je.AS.currentUserSubject.value),l.xp6(1),l.Q6J("ngIf",!(null!=Je.AS.currentUserSubject&&Je.AS.currentUserSubject.value)))},dependencies:[g.sg,g.O5,g.PC,d.rH,v.Fj,v.JJ,v.nD,v.On,_.ey,m.lW,_.X2,C.Hw,O.KE,O.hX,O.R9,H.Nt,G.gD,Y.gM,g.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}"]}),fe})()},5116:(Qe,F,s)=>{"use strict";s.d(F,{d:()=>E});var n=s(6895),r=s(1390),l=s(4006),u=s(210),o=s(4650);let E=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[n.ez,r.Bz,l.u5,u.m]}),x})()},2777:(Qe,F,s)=>{"use strict";s.d(F,{t:()=>d});var n=s(6271),r=s(4650),l=s(1390),u=s(4137),o=s(6925),E=s(257),x=s(3e3);let d=(()=>{class g{constructor(_,m,C,O,H){this.router=_,this.as=m,this.toast=C,this.gs=O,this.bs=H}canActivate(_,m){const C=_.data[n.t.decoratorRoles];if(!C)return!0;if(this.gs.isBrowser){const O=this.as.currentUserSubject?.value;if(O)return!!C.includes(O.role)||(this.bs.clear(),this.toast.error(`Membutuhkan Role :: ${C.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:m.url}}),!1}}return g.\u0275fac=function(_){return new(_||g)(r.LFG(l.F0),r.LFG(u.e),r.LFG(o.k),r.LFG(E.U),r.LFG(x.z))},g.\u0275prov=r.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},5094:(Qe,F,s)=>{"use strict";s.d(F,{H:()=>d});var n=s(6271),r=s(4650),l=s(1390),u=s(4137),o=s(6925),E=s(257),x=s(3e3);let d=(()=>{class g{constructor(_,m,C,O,H){this.router=_,this.as=m,this.toast=C,this.gs=O,this.bs=H}canActivate(_,m){if(!_.data[n.t.decoratorVerifiedOnly])return!0;if(this.gs.isBrowser){const O=this.as.currentUserSubject?.value;if(O)return!!O.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:m.url}}),!1}}return g.\u0275fac=function(_){return new(_||g)(r.LFG(l.F0),r.LFG(u.e),r.LFG(o.k),r.LFG(E.U),r.LFG(x.z))},g.\u0275prov=r.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},210:(Qe,F,s)=>{"use strict";s.d(F,{m:()=>fe});var n=s(2138),r=s(7957),l=s(2673),u=s(4859),o=s(3546),E=s(7331),x=s(9602),d=s(5412),g=s(4850),v=s(7084),_=s(782),m=s(7392),C=s(4144),O=s(6338),H=s(8255),G=s(3238),Y=s(8739),V=s(3162),ne=s(4385),me=s(3267),j=s(455),$=s(8425),N=s(7155),ee=s(3848),he=s(3683),oe=s(266),Ie=s(7009),ae=s(6308),Z=s(4650);let fe=(()=>{class q{}return q.\u0275fac=function(Je){return new(Je||q)},q.\u0275mod=Z.oAB({type:q}),q.\u0275inj=Z.cJS({imports:[n.U5,r.Bb,l.g,u.ot,o.QW,E.Hi,x.FA,d.Is,g.t,v.To,_.N6,m.Ps,C.c,O.ie,H.Tx,G.XK,Y.TU,V.Cv,G.si,ne.LD,me.SJ,j.rP,$.T5,N.p0,ee.Nh,he.g0,oe.AV,Ie.ZX,ae.JX]}),q})()},3626:(Qe,F,s)=>{"use strict";s.d(F,{$:()=>r});var n=s(4650);class r{static formatResult(u,o){return`${u} ${o}`}static calculateResult(u,o){const E=u.prev?r.formats[u.prev]:void 0;return E?o/E.max:o}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,o){return Math.round(u*Math.pow(10,o))/Math.pow(10,o)}transform(u,o=2,E="B",x){if(!(this.isNumberFinite(u)&&this.isNumberFinite(o)&&this.isInteger(o)&&this.isPositive(o)))return u;let d=u,g=E;for(;"B"!==g;)d*=1024,g=r.formats[g].prev;if(x){const _=this.toDecimal(r.calculateResult(r.formats[x],d),o);return r.formatResult(_,x)}for(const v in r.formats)if(r.formats.hasOwnProperty(v)){const _=r.formats[v];if(d<_.max){const m=this.toDecimal(r.calculateResult(_,d),o);return r.formatResult(m,v)}}}}r.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"}},r.\u0275fac=function(u){return new(u||r)},r.\u0275pipe=n.Yjl({name:"bytes",type:r,pure:!0})},7355:(Qe,F,s)=>{"use strict";s.d(F,{T:()=>l});var n=s(6895),r=s(4650);let l=(()=>{class u{}return u.\u0275fac=function(E){return new(E||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[n.ez]}),u})()},1861:(Qe,F,s)=>{"use strict";s.d(F,{H:()=>l});var n=s(4650),r=s(1481);let l=(()=>{class u{constructor(E){this.domSanitizer=E}transform(E){return this.domSanitizer.bypassSecurityTrustHtml(E)}}return u.\u0275fac=function(E){return new(E||u)(n.Y36(r.H7,16))},u.\u0275pipe=n.Yjl({name:"safeInnerHtml",type:u,pure:!0}),u})()},466:(Qe,F,s)=>{"use strict";s.d(F,{l:()=>o});var n=s(5934),r=s(4650),l=s(9731),u=s(257);let o=(()=>{class E{constructor(d,g){this.api=d,this.gs=g,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.${n.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@${n.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="",g=1,v=10,_="",m=""){return this.api.getData(`/notification?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`)}createNotif(d){return this.api.postData("/notification",d)}deleteNotif(d){return this.api.deleteData(`/notification/${d}`)}getAllBanned(d="",g=1,v=10,_="",m=""){return this.api.getData(`/banned?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`)}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="",g=1,v=10,_="",m=""){return this.api.getData(`/api-key?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`)}revokeCors(d){return this.api.deleteData(`/api-key/${d}`)}}return E.\u0275fac=function(d){return new(d||E)(r.LFG(l.s),r.LFG(u.U))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},519:(Qe,F,s)=>{"use strict";s.d(F,{o:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}searchAnime(x){return this.api.getData(`/anime?q=${x}`)}getAnime(x){return this.api.getData(`/anime/${x}`)}addNewAnime(x){return this.api.patchData("/anime",x)}getSeasonalAnime(x,d){return this.api.getData(`/anime-seasonal?year=${x}&season=${d}`)}getBerkasAnime(x=[],d="",g=1,v=10,_="",m=""){return this.api.patchData(`/anime-berkas?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`,{id:x})}getFansubAnime(x=[],d=1,g=10){return this.api.patchData(`/anime-fansub?page=${d}&row=${g}`,{id:x})}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},9731:(Qe,F,s)=>{"use strict";s.d(F,{s:()=>G});var n=s(529),r=s(4986),l=s(1165),u=s(4482),o=s(8421),E=s(3888),x=s(5403),d=s(9672);const g=(0,E.d)(Y=>function(ne=null){Y(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function v(Y,V){const{first:ne,each:me,with:j=_,scheduler:$=V??r.z,meta:N=null}=(0,l.q)(Y)?{first:Y}:"number"==typeof Y?{each:Y}:Y;if(null==ne&&null==me)throw new TypeError("No timeout provided.");return(0,u.e)((ee,he)=>{let oe,Ie,ae=null,Z=0;const fe=q=>{Ie=(0,d.f)(he,$,()=>{try{oe.unsubscribe(),(0,o.Xf)(j({meta:N,lastValue:ae,seen:Z})).subscribe(he)}catch(Ve){he.error(Ve)}},q)};oe=ee.subscribe((0,x.x)(he,q=>{Ie?.unsubscribe(),Z++,he.next(ae=q),me>0&&fe(me)},void 0,void 0,()=>{Ie?.closed||Ie?.unsubscribe(),ae=null})),!Z&&fe(null!=ne?"number"==typeof ne?ne:+ne-$.now():me)})}function _(Y){throw new g(Y)}var m=s(5625),C=s(5934),O=s(4650),H=s(257);let G=(()=>{class Y{constructor(ne,me){this.http=ne,this.gs=me}HTTP_REQ_URL(ne){if(ne.startsWith("/")){let me=C.N.baseUrl;ne.startsWith("/api/")||(me+=C.N.apiUrl),ne=me+ne}return ne}getData(ne,me={},j=2e4,$=3){return this.gs.log("[API_GET]",ne),this.prepareOptions(me),this.http.get(this.HTTP_REQ_URL(ne),me).pipe(v(j),(0,m.X)($))}postData(ne,me={},j=!1,$={},N=3e4){this.gs.log("[API_POST]",ne);let ee=me;return j&&(ee=this.prepareFormData(me)),this.prepareOptions($),this.http.post(this.HTTP_REQ_URL(ne),ee,$).pipe(v(N))}putData(ne,me={},j=!1,$={},N=3e4){this.gs.log("[API_PUT]",ne);let ee=me;return j&&(ee=this.prepareFormData(me)),this.prepareOptions($),this.http.put(this.HTTP_REQ_URL(ne),ee,$).pipe(v(N))}patchData(ne,me={},j=!1,$={},N=3e4){this.gs.log("[API_PATCH]",ne);let ee=me;return j&&(ee=this.prepareFormData(me)),this.prepareOptions($),this.http.patch(this.HTTP_REQ_URL(ne),ee,$).pipe(v(N))}deleteData(ne,me={},j=2e4,$=3){return this.gs.log("[API_DELETE]",ne),this.prepareOptions(me),this.http.delete(this.HTTP_REQ_URL(ne),me).pipe(v(j),(0,m.X)($))}prepareOptions(ne){ne.headers instanceof n.WM||(ne.headers=new n.WM(ne.headers))}prepareFormData(ne){const me=new FormData;for(const j in ne)ne.hasOwnProperty(j)&&me.append(j,ne[j]);return me}}return Y.\u0275fac=function(ne){return new(ne||Y)(O.LFG(n.eN),O.LFG(H.U))},Y.\u0275prov=O.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})()},4137:(Qe,F,s)=>{"use strict";s.d(F,{e:()=>_});var n=s(1135),r=s(8505),l=s(4650),u=s(1390),o=s(257),E=s(3e3),x=s(3379),d=s(9731),g=s(8379),v=s(6925);let _=(()=>{class m{constructor(O,H,G,Y,V,ne,me){this.router=O,this.gs=H,this.bs=G,this.ls=Y,this.api=V,this.cs=ne,this.toast=me,this.currentUserSubject=new n.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(O){return this.gs.log("[AUTH_VERIFY]",O),this.api.patchData("/verify",{token:O}).pipe((0,r.b)(H=>{if(this.currentUserSubject?.next(H.result),this.token=H.token,this.token){const Y=new Date(1e3*this.cs.jwtView(this.token).exp).getTime(),V=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)},V-Date.now()),this.intervalLogout=setInterval(()=>{const ne=Y-Date.now(),me=Math.floor(ne/864e5),j=Math.floor(ne%864e5/36e5),$=Math.floor(ne%36e5/6e4),N=Math.floor(ne%6e4/1e3);this.logoutTimerText=`(${me}:${String(j).padStart(2,"0")}:${String($).padStart(2,"0")}:${String(N).padStart(2,"0")})`,ne<0&&(clearInterval(this.intervalLogout),this.intervalLogout=null,this.logoutTimerText="")},1e3)}}))}resendActivation(O){return this.gs.log("[AUTH_ACTIVATION]",O),this.api.postData("/aktivasi",{id:O})}login(O){return this.gs.log("[AUTH_LOGIN]",O),this.api.postData("/login",O).pipe((0,r.b)(H=>{this.token=H.result.token}))}register(O){return this.gs.log("[AUTH_REGISTER]",O),this.api.postData("/register",O)}removeUser(){this.currentUserSubject?.next(null),this.token=null,this.cleanUpTimeoutInterval()}logout(O="/",H=null){this.gs.log("[AUTH_LOGOUT]",this.token),this.bs.busy(),this.api.deleteData("/logout").subscribe({next:G=>{this.gs.log("[LOGOUT_SUCCESS]",G),this.bs.idle(),this.removeUser(),this.ls.clear(),this.router.navigate([O],H)},error:G=>{this.gs.log("[LOGOUT_ERROR]",G,"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="")}}return m.\u0275fac=function(O){return new(O||m)(l.LFG(u.F0),l.LFG(o.U),l.LFG(E.z),l.LFG(x.n),l.LFG(d.s),l.LFG(g.$),l.LFG(v.k))},m.\u0275prov=l.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},8987:(Qe,F,s)=>{"use strict";s.d(F,{A:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}delete(x){return this.api.deleteData(`/berkas/${x}`)}getAllBerkas(x="",d=1,g=10,v="",_="",m){return this.api.getData(`/berkas?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}${m?"&r18=true":""}`)}getBerkas(x){return this.api.getData(`/berkas/${x}`)}createBerkas(x){return this.api.postData("/berkas",x)}updateBerkas(x,d){return this.api.putData(`/berkas/${x}`,d)}checkTrusted(x=[]){return this.api.patchData("/berkas-trusted",{id:x})}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},3e3:(Qe,F,s)=>{"use strict";s.d(F,{z:()=>o});var n=s(7579),r=s(4650),l=s(8423),u=s(257);let o=(()=>{class E{constructor(d,g){this.spinnerService=d,this.gs=g,this.cancelPendingRequests$=new n.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()}}return E.\u0275fac=function(d){return new(d||E)(r.LFG(l.t2),r.LFG(u.U))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},8379:(Qe,F,s)=>{"use strict";s.d(F,{$:()=>x});var n=s(3172),r=s(7206),u=s(5934),o=s(4650),E=s(257);let x=(()=>{class d{constructor(v){this.gs=v,this.keySize=256,this.ivSize=128,this.iterations=100}universalBtoa(v){return this.convertToBase64(v)}universalAtob(v){return this.convertFromBase64(v)}convertToBase64(v){return this.convertEncoding(v).toString("base64")}convertFromBase64(v){return this.convertEncoding(v,"base64").toString()}convertEncoding(v,_=null){return _?n.lW.from(v,_):n.lW.from(v)}msgEncrypt(v,_=u.N.apiKey){const m=r.lib.WordArray.random(16),C=(0,r.PBKDF2)(_,m,{keySize:this.keySize/32,iterations:this.iterations}),O=r.lib.WordArray.random(16),H=r.AES.encrypt(v,C,{iv:O,padding:r.pad.Pkcs7,mode:r.mode.CBC});return m.toString()+O.toString()+H.toString()}msgDecrypt(v,_=u.N.apiKey){const m=r.enc.Hex.parse(v.substr(0,32)),C=r.enc.Hex.parse(v.substr(32,32)),O=v.substring(64),H=(0,r.PBKDF2)(_,m,{keySize:this.keySize/32,iterations:this.iterations});return r.AES.decrypt(O,H,{iv:C,padding:r.pad.Pkcs7,mode:r.mode.CBC}).toString(r.enc.Utf8)}hashPassword(v){return(0,r.SHA512)(v).toString()}jwtView(v){const m=v.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),C=decodeURIComponent(this.universalAtob(m).split("").map(O=>"%"+("00"+O.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(C)}}return d.\u0275fac=function(v){return new(v||d)(o.LFG(E.U))},d.\u0275prov=o.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},7845:(Qe,F,s)=>{"use strict";s.d(F,{x:()=>Qs});var n=s(5861),r=s(6805);function l(Fe,xt){const Ne="object"==typeof xt;return new Promise((Dt,Vt)=>{let yn,cn=!1;Fe.subscribe({next:In=>{yn=In,cn=!0},error:Vt,complete:()=>{cn?Dt(yn):Ne?Dt(xt.defaultValue):Vt(new r.K)}})})}var u=s(5412),o=s(4650),E=s(257),x=s(6895),d=s(4859),g=s(1861);function v(Fe,xt){if(1&Fe&&(o.TgZ(0,"small",6)(1,"i"),o._uU(2),o.qZA()()),2&Fe){const Ne=o.oxw();o.xp6(2),o.hij("* ",Ne.DATA.infoText,"")}}function _(Fe,xt){if(1&Fe&&(o.TgZ(0,"button",7),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw();o.Q6J("mat-dialog-close",!1),o.xp6(1),o.hij(" ",Ne.DATA.cancelText," ")}}let m=(()=>{class Fe{constructor(Ne,Dt){this.data=Ne,this.gs=Dt}get DATA(){return this.data}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data)}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.Y36(u.WI),o.Y36(E.U))},Fe.\u0275cmp=o.Xpm({type:Fe,selectors:[["app-material-dialog-info"]],decls:9,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"text-break","text-warning",3,"innerHTML"],["mat-dialog-actions",""],["class","text-start m-2",4,"ngIf"],["type","button","mat-button","",1,"ms-auto","text-success","shiny",3,"mat-dialog-close"],["type","button","mat-button","",3,"mat-dialog-close",4,"ngIf"],[1,"text-start","m-2"],["type","button","mat-button","",3,"mat-dialog-close"]],template:function(Ne,Dt){1&Ne&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o._UZ(2,"div",1),o.ALo(3,"safeInnerHtml"),o.TgZ(4,"div",2),o.YNc(5,v,3,1,"small",3),o.TgZ(6,"button",4),o._uU(7),o.qZA(),o.YNc(8,_,2,2,"button",5),o.qZA()),2&Ne&&(o.xp6(1),o.Oqu(Dt.DATA.title),o.xp6(1),o.Q6J("innerHTML",o.lcZ(3,6,Dt.DATA.htmlMessage),o.oJD),o.xp6(3),o.Q6J("ngIf",Dt.DATA.infoText),o.xp6(1),o.Q6J("mat-dialog-close",!0),o.xp6(1),o.hij(" ",Dt.DATA.confirmText," "),o.xp6(1),o.Q6J("ngIf",Dt.DATA.cancelText))},dependencies:[x.O5,d.lW,u.ZT,u.uh,u.xY,u.H8,g.H]}),Fe})();var C=s(7392),O=s(266);const H=["dmakElement"];let G=(()=>{class Fe{constructor(Ne,Dt){this.data=Ne,this.gs=Dt,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()}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.Y36(u.WI),o.Y36(E.U))},Fe.\u0275cmp=o.Xpm({type:Fe,selectors:[["app-material-dialog-dmak"]],viewQuery:function(Ne,Dt){if(1&Ne&&o.Gf(H,5),2&Ne){let Vt;o.iGM(Vt=o.CRH())&&(Dt.dmakElement=Vt.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(Ne,Dt){1&Ne&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o._UZ(3,"div",2,3),o.qZA(),o.TgZ(5,"div",4)(6,"button",5),o.NdJ("click",function(){return Dt.back()}),o._UZ(7,"mat-icon",6),o.qZA(),o.TgZ(8,"button",7),o.NdJ("click",function(){return Dt.next()}),o._UZ(9,"mat-icon",8),o.qZA()()),2&Ne&&(o.xp6(1),o.hij("Cara Penulisan '",Dt.DATA.romaji,"'"))},dependencies:[d.lW,u.uh,u.xY,u.H8,C.Hw,O.gM]}),Fe})();function Y(Fe){return null===Fe?"null":Fe!==Object(Fe)?typeof Fe:{}.toString.call(Fe).slice(8,-1).toLowerCase()}function V(Fe){return"string"!==Y(Fe)||!Fe.length}const N={useObsoleteKana:!1,passRomaji:!1,upcaseKatakana:!1,IMEMode:!1,convertLongVowelMark:!0,romanization:"hepburn"};var ce=Number.isNaN||function(xt){return"number"==typeof xt&&xt!=xt};function P(Fe,xt){return!!(Fe===xt||ce(Fe)&&ce(xt))}function z(Fe,xt){if(Fe.length!==xt.length)return!1;for(var Ne=0;Ne{const Vt="string"===Y(Dt);return xt[Ne]=Vt?{"":Dt}:gn(Dt),xt},{})}function Ot(Fe,xt){return xt.split("").reduce((Ne,Dt)=>(void 0===Ne[Dt]&&(Ne[Dt]={}),Ne[Dt]),Fe)}function pt(Fe={}){const xt={};return"object"===Y(Fe)&&Object.entries(Fe).forEach(([Ne,Dt])=>{let Vt=xt;Ne.split("").forEach(cn=>{void 0===Vt[cn]&&(Vt[cn]={}),Vt=Vt[cn]}),Vt[""]=Dt}),function(Dt){return function cn(yn,In){return void 0===yn||"string"===Y(yn)?In:Object.entries(In).reduce((ei,[Ci,Ri])=>(ei[Ci]=cn(yn[Ci],Ri),ei),yn)}(JSON.parse(JSON.stringify(Dt)),xt)}}function ut(Fe,xt){return xt?"function"===Y(xt)?xt(Fe):pt(xt)(Fe):Fe}const it={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"},nt={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"},Rt={ya:"\u3083",yi:"\u3043",yu:"\u3085",ye:"\u3047",yo:"\u3087"},jt={a:"\u3041",i:"\u3043",u:"\u3045",e:"\u3047",o:"\u3049"},un={sh:"sy",ch:"ty",cy:"ty",chy:"ty",shy:"sy",j:"zy",jy:"zy",shi:"si",chi:"ti",tsu:"tu",ji:"zi",fu:"hu"},Mn=Object.assign({tu:"\u3063",wa:"\u308e",ka:"\u30f5",ke:"\u30f6"},jt,Rt),zt={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"},ln={wh:"\u3046",qw:"\u304f",q:"\u304f",gw:"\u3050",sw:"\u3059",ts:"\u3064",th:"\u3066",tw:"\u3068",dh:"\u3067",dw:"\u3069",fw:"\u3075",f:"\u3075"},Ke={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 Et(){const Fe=gn(it),xt=Vt=>Ot(Fe,Vt);function Dt(Vt){return Object.entries(Vt).reduce((cn,[yn,In])=>(cn[yn]=yn?Dt(In):`\u3063${In}`,cn),{})}return Object.entries(nt).forEach(([Vt,cn])=>{Object.entries(Rt).forEach(([yn,In])=>{xt(Vt+yn)[""]=cn+In})}),Object.entries(dt).forEach(([Vt,cn])=>{xt(Vt)[""]=cn}),Object.entries(Ke).forEach(([Vt,cn])=>{xt(Vt)[""]=cn}),Object.entries(ln).forEach(([Vt,cn])=>{Object.entries(jt).forEach(([yn,In])=>{xt(Vt+yn)[""]=cn+In})}),["n","n'","xn"].forEach(Vt=>{xt(Vt)[""]="\u3093"}),Fe.c=JSON.parse(JSON.stringify(Fe.k)),Object.entries(un).forEach(([Vt,cn])=>{const yn=Vt.slice(0,Vt.length-1),In=Vt.charAt(Vt.length-1);xt(yn)[In]=JSON.parse(JSON.stringify(xt(cn)))}),Object.entries(Mn).forEach(([Vt,cn])=>{const yn=Pi=>Pi.charAt(Pi.length-1),In=Pi=>Pi.slice(0,Pi.length-1),Ci=xt(`x${Vt}`);Ci[""]=cn,xt(`l${In(Vt)}`)[yn(Vt)]=Ci,function Ne(Vt){return[...Object.entries(un),["c","k"]].reduce((cn,[yn,In])=>Vt.startsWith(In)?cn.concat(Vt.replace(In,yn)):cn,[])}(Vt).forEach(Pi=>{["l","x"].forEach(jr=>{xt(jr+In(Pi))[yn(Pi)]=xt(jr+Vt)})})}),Object.entries(zt).forEach(([Vt,cn])=>{xt(Vt)[""]=cn}),[...Object.keys(nt),"c","y","w","j"].forEach(Vt=>{const cn=Fe[Vt];cn[Vt]=Dt(cn)}),delete Fe.n.n,Object.freeze(JSON.parse(JSON.stringify(Fe)))}let Ht=null;const Nn=pt({wi:"\u3090",we:"\u3091"});function _t(Fe=""){return!V(Fe)&&12540===Fe.charCodeAt(0)}function sr(Fe=""){return function ne(Fe="",xt,Ne){if(V(Fe))return!1;const Dt=Fe.charCodeAt(0);return xt<=Dt&&Dt<=Ne}(Fe,12449,12540)}Re((Fe,xt,Ne)=>{let Dt=function rn(){return null==Ht&&(Ht=Et()),Ht}();return Dt=Fe?function Wn(Fe){const xt=JSON.parse(JSON.stringify(Fe));return xt.n.n={"":"\u3093"},xt.n[" "]={"":"\u3093"},xt}(Dt):Dt,Dt=xt?Nn(Dt):Dt,Ne&&(Dt=ut(Dt,Ne)),Dt},Nt);const $t={a:"\u3042",i:"\u3044",u:"\u3046",e:"\u3048",o:"\u3046"};function dn(Fe="",xt,{isDestinationRomaji:Ne,convertLongVowelMark:Dt}={}){let Vt="";return Fe.split("").reduce((cn,yn,In)=>{if(function $e(Fe=""){return!V(Fe)&&12539===Fe.charCodeAt(0)}(yn)||((Fe,xt)=>_t(Fe)&&xt<1)(yn,In)||(Fe=>["\u30f6","\u30f5"].includes(Fe))(yn))return cn.concat(yn);if(Dt&&Vt&&((Fe,xt)=>_t(Fe)&&xt>0)(yn,In)){const ei=xt(Vt).slice(-1);return sr(Fe[In-1])&&"o"===ei&&Ne?cn.concat("\u304a"):cn.concat($t[ei])}if(!_t(yn)&&sr(yn)){const ei=yn.charCodeAt(0)+-96,Ci=String.fromCharCode(ei);return Vt=Ci,cn.concat(Ci)}return Vt="",cn.concat(yn)},[]).join("")}let Cn=null;const Kn={\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"},Vi={"\u3002":".","\u3001":",","\uff1a":":","\u30fb":"/","\uff01":"!","\uff1f":"?","\u301c":"~",\u30fc:"-","\u300c":"\u2018","\u300d":"\u2019","\u300e":"\u201c","\u300f":"\u201d","\uff3b":"[","\uff3d":"]","\uff08":"(","\uff09":")","\uff5b":"{","\uff5d":"}","\u3000":" "},Ai=["\u3042","\u3044","\u3046","\u3048","\u304a","\u3084","\u3086","\u3088"],Ii={\u3083:"ya",\u3085:"yu",\u3087:"yo"},fr={\u3043:"yi",\u3047:"ye"},Is={\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},Ms=["\u304d","\u306b","\u3072","\u307f","\u308a","\u304e","\u3073","\u3074","\u3094","\u304f","\u3075"],br={\u3057:"sh",\u3061:"ch",\u3058:"j",\u3062:"j"},Kr={\u3063:"",\u3083:"ya",\u3085:"yu",\u3087:"yo",\u3041:"a",\u3043:"i",\u3045:"u",\u3047:"e",\u3049:"o"},Cr={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 Zr(){return null==Cn&&(Cn=function rs(){const Fe=gn(Kn),xt=Dt=>Ot(Fe,Dt),Ne=(Dt,Vt)=>{xt(Dt)[""]=Vt};return Object.entries(Vi).forEach(([Dt,Vt])=>{xt(Dt)[""]=Vt}),[...Object.entries(Ii),...Object.entries(Is)].forEach(([Dt,Vt])=>{Ne(Dt,Vt)}),Ms.forEach(Dt=>{const Vt=xt(Dt)[""][0];Object.entries(Ii).forEach(([cn,yn])=>{Ne(Dt+cn,Vt+yn)}),Object.entries(fr).forEach(([cn,yn])=>{Ne(Dt+cn,Vt+yn)})}),Object.entries(br).forEach(([Dt,Vt])=>{Object.entries(Ii).forEach(([cn,yn])=>{Ne(Dt+cn,Vt+yn[1])}),Ne(`${Dt}\u3043`,`${Vt}yi`),Ne(`${Dt}\u3047`,`${Vt}e`)}),Fe.\u3063=Dr(Fe),Object.entries(Kr).forEach(([Dt,Vt])=>{Ne(Dt,Vt)}),Ai.forEach(Dt=>{Ne(`\u3093${Dt}`,`n'${xt(Dt)[""]}`)}),Object.freeze(JSON.parse(JSON.stringify(Fe)))}()),Cn}function Dr(Fe){return Object.entries(Fe).reduce((xt,[Ne,Dt])=>{if(Ne)xt[Ne]=Dr(Dt);else{const Vt=Dt.charAt(0);xt[Ne]=Object.keys(Cr).includes(Vt)?Cr[Vt]+Dt:Dt}return xt},{})}const Qr=Re((Fe,xt)=>{let Ne=function ps(Fe){return"hepburn"===Fe?Zr():{}}(Fe);return xt&&(Ne=ut(Ne,xt)),Ne},Nt);function gr(Fe="",xt={},Ne){const Dt=((Fe={})=>Object.assign({},N,Fe))(xt);return Ne||(Ne=Qr(Dt.romanization,Dt.customRomajiMapping)),function ss(Fe,xt,Ne){Ne||(Ne=Qr(xt.romanization,xt.customRomajiMapping));return Rn(dn(Fe,gr,Object.assign({},{isDestinationRomaji:!0},xt)),Ne,!xt.IMEMode)}(Fe,Dt,Ne).map(Vt=>{const[cn,yn,In]=Vt;return Dt.upcaseKatakana&&function Rr(Fe=""){return!V(Fe)&&[...Fe].every(sr)}(Fe.slice(cn,yn))?In.toUpperCase():In}).join("")}var as=s(2663),_s=s(3238),or=s(6338),Ps=s(192);const ls=["dmakElement"];function Fr(Fe,xt){if(1&Fe&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&Fe){const Ne=xt.$implicit,Dt=o.oxw();o.xp6(1),o.AsE(" ",Ne," (",Dt.getRomaji(Ne),") ")}}function ar(Fe,xt){if(1&Fe&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&Fe){const Ne=xt.$implicit,Dt=o.oxw();o.xp6(1),o.AsE(" ",Ne," (",Dt.getRomaji(Ne),") ")}}function Zs(Fe,xt){if(1&Fe){const Ne=o.EpF();o.TgZ(0,"mat-list-option",25),o.NdJ("click",function(){const cn=o.CHM(Ne).$implicit,yn=o.oxw(2);return o.KtG(yn.openVocab(cn))}),o.TgZ(1,"h4",26),o._uU(2),o.qZA(),o.TgZ(3,"h5",27),o._uU(4),o.qZA(),o.TgZ(5,"p",28),o._uU(6),o.qZA()()}if(2&Fe){const Ne=xt.$implicit,Dt=o.oxw(2);o.xp6(2),o.Oqu(Ne.kanji),o.xp6(2),o.AsE("",Ne.reading," (",Dt.getRomaji(Ne.reading),")"),o.xp6(2),o.Oqu(Ne.meaning)}}function cs(Fe,xt){if(1&Fe&&(o.TgZ(0,"div")(1,"mat-selection-list",23),o.YNc(2,Zs,7,4,"mat-list-option",24),o.qZA()()),2&Fe){const Ne=o.oxw();o.xp6(1),o.Q6J("multiple",!1),o.xp6(1),o.Q6J("ngForOf",Ne.edict)}}function Ji(Fe,xt){1&Fe&&o._UZ(0,"app-no-data")}function Ni(Fe,xt){if(1&Fe){const Ne=o.EpF();o.TgZ(0,"div",29)(1,"button",30),o.NdJ("click",function(){o.CHM(Ne);const Vt=o.oxw();return o.KtG(Vt.loadNextPage())}),o._uU(2,"Load More ..."),o.qZA()()}}let Ar=(()=>{class Fe{constructor(Ne,Dt,Vt){this.data=Ne,this.nihon=Dt,this.gs=Vt,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(Ne){return gr(Ne)}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:Ne=>{this.gs.log("[EDICT_LIST_SUCCESS]",Ne),this.edict=[...this.edict,...Ne.results],Ne.results.length<=0&&(this.pageFinished=!0)},error:Ne=>{this.gs.log("[EDICT_LIST_ERROR]",Ne,"error")}})}loadNextPage(){this.pageFinished||(this.page++,this.loadEdict())}openVocab(Ne){this.gs.log("[EDICT_LIST_CLICK_VOCAB]",Ne)}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.Y36(u.WI),o.Y36(as.a),o.Y36(E.U))},Fe.\u0275cmp=o.Xpm({type:Fe,selectors:[["app-material-dialog-edict"]],viewQuery:function(Ne,Dt){if(1&Ne&&o.Gf(ls,5),2&Ne){let Vt;o.iGM(Vt=o.CRH())&&(Dt.dmakElement=Vt.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(Ne,Dt){1&Ne&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),o._UZ(7,"div",6,7),o.qZA(),o.TgZ(9,"div",8)(10,"p",9),o._uU(11),o.qZA()(),o.TgZ(12,"div",5)(13,"div",10),o._uU(14," JLPT Level :: "),o.TgZ(15,"span",11),o._uU(16),o.qZA()(),o.TgZ(17,"div",10),o._uU(18," School Level :: "),o.TgZ(19,"span",11),o._uU(20),o.qZA()(),o.TgZ(21,"div",12),o._uU(22," Kunyomi :: "),o.TgZ(23,"ul",13),o.YNc(24,Fr,2,2,"li",14),o.qZA()(),o.TgZ(25,"div",10),o._uU(26," Onyomi :: "),o.TgZ(27,"ul",13),o.YNc(28,ar,2,2,"li",14),o.qZA()()()()(),o.TgZ(29,"div",15)(30,"div",2)(31,"div",16)(32,"h2",17)(33,"b",18),o._uU(34,"Kosa Kata"),o.qZA()()(),o.TgZ(35,"div",5),o.YNc(36,cs,3,2,"div",19),o.YNc(37,Ji,1,0,"app-no-data",19),o.qZA(),o.YNc(38,Ni,3,0,"div",20),o.qZA()()()(),o.TgZ(39,"div",21)(40,"button",22),o._uU(41,"Tutup"),o.qZA()()),2&Ne&&(o.xp6(1),o.hij("Kamus Dictionary '",Dt.DATA.character,"'"),o.xp6(10),o.Oqu(Dt.DATA.translate),o.xp6(5),o.hij("N",Dt.DATA.jlpt,""),o.xp6(4),o.Oqu(Dt.DATA.school),o.xp6(4),o.Q6J("ngForOf",Dt.DATA.v_kunyomi.split(",")),o.xp6(4),o.Q6J("ngForOf",Dt.DATA.v_onyomi.split(",")),o.xp6(8),o.Q6J("ngIf",Dt.edict.length>0),o.xp6(1),o.Q6J("ngIf",Dt.edict.length<=0),o.xp6(1),o.Q6J("ngIf",!Dt.pageFinished),o.xp6(2),o.Q6J("mat-dialog-close",!0))},dependencies:[x.sg,x.O5,d.lW,u.ZT,u.uh,u.xY,u.H8,_s.X2,or.Ub,or.vS,Ps.d]}),Fe})();var Qn=s(4006),Hn=s(6271),Vs=s(3e3),vs=s(7902),ys=s(1390),Vr=s(9549),qr=s(4144),Lr=s(3170),bs=s(3626);function ro(Fe,xt){if(1&Fe&&(o.TgZ(0,"div"),o._uU(1),o.ALo(2,"bytes"),o.qZA()),2&Fe){const Ne=o.oxw(2);o.xp6(1),o.hij("Ukuran Upload Melebihi Batas ",o.lcZ(2,1,Ne.imageLimitExceeded)," !")}}function an(Fe,xt){if(1&Fe&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw(2);o.xp6(1),o.Oqu(Ne.imageErrorText)}}function Gn(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Gambar Wajib Ada!"),o.qZA())}function _r(Fe,xt){if(1&Fe){const Ne=o.EpF();o.TgZ(0,"div",7)(1,"button",25),o.NdJ("click",function(){o.CHM(Ne);const Vt=o.oxw(2);return o.KtG(Vt.submitImage())}),o._UZ(2,"mat-icon",26),o._uU(3," Unggah "),o.qZA()()}if(2&Fe){const Ne=o.oxw(2);o.xp6(1),o.Q6J("disabled",Ne.submitted)}}function ks(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Kana Tidak Boleh Kosong"),o.qZA())}function ir(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Kana Hanya Boleh Huruf Jepang"),o.qZA())}function ye(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Romaji Tidak Boleh Kosong"),o.qZA())}function ue(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Romaji Hanya Boleh Huruf Standar Papan Ketik"),o.qZA())}function Q(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Arti Tidak Boleh Kosong"),o.qZA())}function ze(Fe,xt){1&Fe&&(o.TgZ(0,"div"),o._uU(1,"Arti Hanya Boleh Huruf Standar Papan Ketik"),o.qZA())}function Jt(Fe,xt){if(1&Fe&&(o.TgZ(0,"div",5)(1,"div",27),o._uU(2," Last Edit By :: "),o.TgZ(3,"a",28),o._uU(4),o.qZA()()()),2&Fe){const Ne=o.oxw(2);o.xp6(3),o.MGl("routerLink","/user/",null==Ne.DATA.dataset||null==Ne.DATA.dataset.user_?null:Ne.DATA.dataset.user_.username,""),o.xp6(1),o.hij(" ",null==Ne.DATA.dataset||null==Ne.DATA.dataset.user_?null:Ne.DATA.dataset.user_.username," ")}}function wn(Fe,xt){if(1&Fe){const Ne=o.EpF();o.TgZ(0,"form",4)(1,"div",5)(2,"div",6)(3,"div",5)(4,"div",7),o._UZ(5,"img",8),o.TgZ(6,"mat-form-field",9)(7,"mat-label"),o._uU(8,"Gambar"),o.qZA(),o.TgZ(9,"ngx-mat-file-input",10,11),o.NdJ("change",function(Vt){o.CHM(Ne);const cn=o.MAs(10),yn=o.oxw();return o.KtG(yn.uploadImage(Vt,cn))}),o.qZA(),o._UZ(11,"mat-icon",12),o.qZA(),o.TgZ(12,"mat-error",13)(13,"small"),o.YNc(14,ro,3,3,"div",14),o.YNc(15,an,2,1,"div",14),o.YNc(16,Gn,2,0,"div",14),o.qZA()()(),o.YNc(17,_r,4,1,"div",15),o.qZA()(),o.TgZ(18,"div",16)(19,"div",5)(20,"mat-form-field",17)(21,"mat-label"),o._uU(22,"Kana"),o.qZA(),o._UZ(23,"input",18)(24,"mat-icon",19),o.TgZ(25,"mat-error"),o.YNc(26,ks,2,0,"div",14),o.YNc(27,ir,2,0,"div",14),o.qZA()(),o.TgZ(28,"mat-form-field",17)(29,"mat-label"),o._uU(30,"Romaji"),o.qZA(),o._UZ(31,"input",20)(32,"mat-icon",21),o.TgZ(33,"mat-error"),o.YNc(34,ye,2,0,"div",14),o.YNc(35,ue,2,0,"div",14),o.qZA()(),o.TgZ(36,"mat-form-field",17)(37,"mat-label"),o._uU(38,"Arti Terjemahan"),o.qZA(),o._UZ(39,"input",22)(40,"mat-icon",23),o.TgZ(41,"mat-error"),o.YNc(42,Q,2,0,"div",14),o.YNc(43,ze,2,0,"div",14),o.qZA()()(),o.YNc(44,Jt,5,2,"div",24),o.qZA()()()}if(2&Fe){const Ne=o.oxw();o.Q6J("formGroup",Ne.fg),o.xp6(5),o.Q6J("src",Ne.image_url,o.LSH),o.xp6(1),o.Q6J("color","accent"),o.xp6(3),o.Q6J("disabled",Ne.fg.value.image)("accept","image/gif, image/jpeg, image/jpg, image/png"),o.xp6(5),o.Q6J("ngIf",Ne.imageLimitExceeded),o.xp6(1),o.Q6J("ngIf",Ne.imageErrorText),o.xp6(1),o.Q6J("ngIf",Ne.fg.get("image").hasError("required")),o.xp6(1),o.Q6J("ngIf",Ne.image&&!Ne.fg.value.image),o.xp6(3),o.Q6J("color","accent"),o.xp6(6),o.Q6J("ngIf",Ne.fg.get("kana").hasError("required")),o.xp6(1),o.Q6J("ngIf",Ne.fg.get("kana").hasError("pattern")),o.xp6(1),o.Q6J("color","accent"),o.xp6(6),o.Q6J("ngIf",Ne.fg.get("romaji").hasError("required")),o.xp6(1),o.Q6J("ngIf",Ne.fg.get("romaji").hasError("pattern")),o.xp6(1),o.Q6J("color","accent"),o.xp6(6),o.Q6J("ngIf",Ne.fg.get("meaning").hasError("required")),o.xp6(1),o.Q6J("ngIf",Ne.fg.get("meaning").hasError("pattern")),o.xp6(1),o.Q6J("ngIf",null==Ne.DATA.dataset?null:Ne.DATA.dataset.user_)}}function Xn(Fe,xt){if(1&Fe&&(o.TgZ(0,"button",32),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw(2);o.Q6J("mat-dialog-close",null),o.xp6(1),o.hij(" ",Ne.DATA.cancelText," ")}}function Er(Fe,xt){if(1&Fe){const Ne=o.EpF();o.TgZ(0,"div",29)(1,"button",30),o.NdJ("click",function(){o.CHM(Ne);const Vt=o.oxw();return o.KtG(Vt.saveData())}),o._uU(2),o.qZA(),o.YNc(3,Xn,2,2,"button",31),o.qZA()}if(2&Fe){const Ne=o.oxw();o.xp6(1),o.Q6J("disabled",Ne.submitted||Ne.fg.invalid||!Ne.fg.dirty),o.xp6(1),o.hij(" ",Ne.DATA.confirmText," "),o.xp6(1),o.Q6J("ngIf",Ne.DATA.cancelText)}}let Ui=(()=>{class Fe{constructor(Ne,Dt,Vt,cn,yn,In,ei){this.fb=Ne,this.bs=Dt,this.imgbb=Vt,this.nihongo=cn,this.dialogRef=yn,this.data=In,this.gs=ei,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(Ne){this.fg=this.fb.group({kana:[Ne?.kana,Qn.kI.compose([Qn.kI.required,Qn.kI.pattern(Hn.t.regexJapaneseKeyboardKeys)])],romaji:[Ne?.romaji,Qn.kI.compose([Qn.kI.required,Qn.kI.pattern(Hn.t.regexEnglishKeyboardKeys)])],meaning:[Ne?.meaning,Qn.kI.compose([Qn.kI.required,Qn.kI.pattern(Hn.t.regexEnglishKeyboardKeys)])],category:[Ne?.category||this.data.modeTampilan,Qn.kI.compose([Qn.kI.required,Qn.kI.pattern(Hn.t.regexEnglishKeyboardKeys)])],image:[null,Qn.kI.compose([Qn.kI.pattern(Hn.t.regexUrl)])]}),Ne?this.image_url=Ne?.image_url:this.fg.controls.image.setValidators([Qn.kI.required,Qn.kI.pattern(Hn.t.regexEnglishKeyboardKeys)]),this.image_url_original=this.image_url}uploadImage(Ne,Dt){this.gambar=Dt,this.image=null,this.imageLimitExceeded=null,this.imageErrorText=null,this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine();const Vt=Ne.target.files[0];try{const cn=new FileReader;cn.readAsDataURL(Vt),cn.onload=yn=>{if(this.gs.log("[IMAGE_SELECTED]",yn),Vt.size<=Hn.t.fileSizeImageLimit){const In=this.gs.document.createElement("img");In.onload=()=>{this.image=Vt,this.image_url=cn.result.toString()},In.src=cn.result.toString()}else this.image=null,this.image_url="/assets/img/form/image-error.png",this.imageLimitExceeded=Hn.t.fileSizeImageLimit,this.gambar.clear(Ne)}}catch{this.image=null,this.image_url=this.image_url_original,this.gambar.clear(Ne)}}submitImage(){this.submitted=!0,this.subsImgbb=this.imgbb.uploadImage({file:this.image}).subscribe({next:Ne=>{this.gs.log("[IMAGE_SUCCESS]",Ne),this.fg.controls.image.patchValue(Ne.result.url),this.fg.controls.image.markAsDirty(),this.submitted=!1},error:Ne=>{this.gs.log("[IMAGE_ERROR]",Ne,"error"),this.fg.controls.image.patchValue(null),this.fg.controls.image.markAsPristine(),this.submitted=!1,this.imageErrorText=Ne.result?.message||Ne.info}})}saveData(){this.bs.busy(),this.submitted=!0;let Ne=null;if(this.data?.dataset&&(Ne=this.gs.getDirtyValues(this.fg),this.gs.log("[NIHONGO_ADD_OR_EDIT_DIRTY]",Ne)),this.fg.invalid)return this.submitted=!1,void this.bs.idle();this.subsNihongo=Ne?this.nihongo.updateNihongo(this.data.dataset.id,{...Ne}):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:Dt=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_SUCCESS]",Dt),this.submitted=!1,this.bs.idle(),this.dialogRef.close(Dt)},error:Dt=>{this.gs.log("[NIHONGO_ADD_OR_EDIT_ERROR]",Dt,"error"),this.submitted=!1,this.bs.idle()}})}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.Y36(Qn.QS),o.Y36(Vs.z),o.Y36(vs.X),o.Y36(as.a),o.Y36(u.so),o.Y36(u.WI),o.Y36(E.U))},Fe.\u0275cmp=o.Xpm({type:Fe,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(Ne,Dt){1&Ne&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o.YNc(3,wn,45,19,"form",2),o.qZA(),o.YNc(4,Er,4,3,"div",3)),2&Ne&&(o.xp6(1),o.AsE("",Dt.DATA.title," '",Dt.DATA.dataset?Dt.DATA.dataset.kana:Dt.DATA.modeTampilan,"'"),o.xp6(2),o.Q6J("ngIf",Dt.fg),o.xp6(1),o.Q6J("ngIf",Dt.fg))},dependencies:[x.O5,ys.yS,d.lW,u.ZT,u.uh,u.xY,u.H8,C.Hw,Vr.TO,Vr.KE,Vr.hX,Vr.R9,qr.Nt,Qn._Y,Qn.Fj,Qn.JJ,Qn.JL,Qn.sg,Qn.u,Lr.Yh,bs.$]}),Fe})();function lr(Fe,xt){if(1&Fe&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw().$implicit;o.xp6(1),o.hij("",Ne.value.inputLabel," Tidak Boleh Kosong")}}function Ti(Fe,xt){if(1&Fe&&(o.TgZ(0,"div"),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw().$implicit;o.xp6(1),o.hij("",Ne.value.inputLabel," Hanya Boleh Huruf Standar Papan Ketik")}}function js(Fe,xt){if(1&Fe&&(o.TgZ(0,"mat-form-field",9)(1,"mat-label"),o._uU(2),o.qZA(),o._UZ(3,"input",10)(4,"mat-icon",11),o.TgZ(5,"mat-error"),o.YNc(6,lr,2,1,"div",12),o.YNc(7,Ti,2,1,"div",12),o.qZA()()),2&Fe){const Ne=xt.$implicit,Dt=o.oxw(2);o.Q6J("color","accent"),o.xp6(2),o.Oqu(Ne.value.inputLabel),o.xp6(1),o.s9C("placeholder",Ne.value.inputPlaceholder),o.Q6J("formControlName",Ne.key)("required",Ne.value.inputRequired),o.xp6(3),o.Q6J("ngIf",Dt.fg.get(Ne.key).hasError("required")),o.xp6(1),o.Q6J("ngIf",Dt.fg.get(Ne.key).hasError("pattern"))}}function us(Fe,xt){if(1&Fe&&(o.TgZ(0,"form",7),o.YNc(1,js,8,7,"mat-form-field",8),o.ALo(2,"keyvalue"),o.qZA()),2&Fe){const Ne=o.oxw();o.Q6J("formGroup",Ne.fg),o.xp6(1),o.Q6J("ngForOf",o.lcZ(2,2,Ne.DATA.input))}}function Xr(Fe,xt){if(1&Fe&&(o.TgZ(0,"small",13)(1,"i"),o._uU(2),o.qZA()()),2&Fe){const Ne=o.oxw();o.xp6(2),o.hij("* ",Ne.DATA.infoText,"")}}function go(Fe,xt){if(1&Fe&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&Fe){const Ne=o.oxw();o.Q6J("mat-dialog-close",!1),o.xp6(1),o.hij(" ",Ne.DATA.cancelText," ")}}let Ts=(()=>{class Fe{constructor(Ne,Dt,Vt){this.data=Ne,this.fb=Dt,this.gs=Vt}get DATA(){return this.data}get BALIKAN(){return this.fg.value}ngOnInit(){this.gs.log("[DIALOG_DATA_IN]",this.data);const Ne={};for(const[Dt,Vt]of Object.entries(this.data.input)){const cn=[Qn.kI.pattern(Hn.t.regexEnglishKeyboardKeys)];Vt.inputRequired&&cn.push(Qn.kI.required),Ne[Dt]=[Vt.inputValue,Qn.kI.compose(cn)]}this.fg=this.fb.group(Ne)}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.Y36(u.WI),o.Y36(Qn.QS),o.Y36(E.U))},Fe.\u0275cmp=o.Xpm({type:Fe,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(Ne,Dt){1&Ne&&(o.TgZ(0,"h1",0),o._uU(1),o.qZA(),o.TgZ(2,"div",1),o.YNc(3,us,3,4,"form",2),o.qZA(),o.TgZ(4,"div",3),o.YNc(5,Xr,3,1,"small",4),o.TgZ(6,"button",5),o._uU(7),o.qZA(),o.YNc(8,go,2,2,"button",6),o.qZA()),2&Ne&&(o.xp6(1),o.Oqu(Dt.DATA.title),o.xp6(2),o.Q6J("ngIf",Dt.fg),o.xp6(2),o.Q6J("ngIf",Dt.DATA.infoText),o.xp6(1),o.Q6J("mat-dialog-close",Dt.BALIKAN)("disabled",Dt.fg.invalid),o.xp6(1),o.hij(" ",Dt.DATA.confirmText," "),o.xp6(1),o.Q6J("ngIf",Dt.DATA.cancelText))},dependencies:[x.sg,x.O5,d.lW,u.ZT,u.uh,u.xY,u.H8,C.Hw,Vr.TO,Vr.KE,Vr.hX,Vr.R9,qr.Nt,Qn._Y,Qn.Fj,Qn.JJ,Qn.JL,Qn.Q7,Qn.sg,Qn.u,x.Nd]}),Fe})();var Fs=s(7745);let Qs=(()=>{class Fe{constructor(Ne,Dt,Vt){this.dialog=Ne,this.gs=Dt,this.info=Vt,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(Ne){return"disableClose"in Ne||(Ne.disableClose=!0),this.dialog.open(Ts,Ne)}openInfoDialog(Ne){return"disableClose"in Ne||(Ne.disableClose=!0),"maxWidth"in Ne||(Ne.maxWidth=this.maxWidth),this.dialog.open(m,Ne)}openDmakDialog(Ne){return"disableClose"in Ne||(Ne.disableClose=!0),this.dialog.open(G,Ne)}openEdictDialog(Ne){return"disableClose"in Ne||(Ne.disableClose=!0),this.dialog.open(Ar,Ne)}openBelajarDialog(Ne){return"disableClose"in Ne||(Ne.disableClose=!0),this.dialog.open(Ui,Ne)}leavePageDialog(){var Ne=this;return(0,n.Z)(function*(){return(yield Ne.openKonfirmasiDialog("Batal & Keluar","Apakah Yakin Meninggalkan Halaman Ini ?")).afterClosed()})()}openKonfirmasiDialog(Ne,Dt,Vt=!0){var cn=this;return(0,n.Z)(function*(){return cn.openInfoDialog({data:{title:Ne,htmlMessage:Dt,confirmText:"Ya",cancelText:"Tidak"},disableClose:Vt,maxWidth:cn.maxWidth})})()}fetchInformationRegisterMode(Ne,Dt=!1){var Vt=this;return(0,n.Z)(function*(){try{const cn=yield l(Vt.info.getInfo(Ne.id));Ne.data.title=cn.result.title,Ne.data.htmlMessage=cn.result.content,Ne.disableClose=cn.result.close,Dt&&(Ne.data.confirmText=cn.result.confirm,Ne.data.cancelText=cn.result.cancel,Ne.disableClose=!0)}catch(cn){Vt.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",cn.error,"error")}return Vt.openInfoDialog(Ne)})()}fetchInformation(Ne){var Dt=this;return(0,n.Z)(function*(){try{const Vt=yield l(Dt.info.getInfo(Ne.id));Ne.data.title=Vt.result.title,Ne.data.htmlMessage=Vt.result.content,Ne.data.confirmText=Vt.result.confirm,Ne.data.cancelText=Vt.result.cancel,Ne.disableClose=Vt.result.close}catch(Vt){Dt.gs.log("[DIALOG_SERVICE-FETCH_DIALOG_ERROR]",Vt.error,"error")}})()}openMaintenanceDialog(){var Ne=this;return(0,n.Z)(function*(){const Dt={id:"MAINTENANCE",data:{title:"Informasi Perbaikan Web & Server",htmlMessage:"Gagal Memuat Perbaikan Web & Server",confirmText:"Ok, Saya Mengerti!",cancelText:null},disableClose:!1,maxWidth:Ne.maxWidth};return yield Ne.fetchInformation(Dt),Ne.openInfoDialog(Dt)})()}openCorsExtension(){var Ne=this;return(0,n.Z)(function*(){const Dt={id:"CORS-EXTENSION",data:{title:"Ekstensi CORS Unblock",htmlMessage:"Gagal Memuat Metode Verifikasi",confirmText:"Ya",cancelText:"Tidak"},disableClose:!1,maxWidth:Ne.maxWidth};return yield Ne.fetchInformation(Dt),Ne.openInfoDialog(Dt)})()}openDonation(){var Ne=this;return(0,n.Z)(function*(){const Dt={id:"DONASI",data:{title:"Donasi Perawatan Server",htmlMessage:"Gagal Memuat Rincian Donasi",confirmText:"Tutup",cancelText:null},disableClose:!1,maxWidth:Ne.maxWidth};return yield Ne.fetchInformation(Dt),Ne.openInfoDialog(Dt)})()}}return Fe.\u0275fac=function(Ne){return new(Ne||Fe)(o.LFG(u.uw),o.LFG(E.U),o.LFG(Fs.O))},Fe.\u0275prov=o.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})()},8439:(Qe,F,s)=>{"use strict";s.d(F,{X:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}searchDorama(x,d=""){return this.api.getData(`/dorama?q=${x}&type=${d}`)}getDorama(x){return this.api.getData(`/dorama/${x}`)}addNewDorama(x){return this.api.patchData("/dorama",x)}getSeasonalDorama(x,d){return this.api.getData(`/dorama-seasonal?year=${x}&season=${d}`)}getBerkasDorama(x=[],d="",g=1,v=10,_="",m=""){return this.api.patchData(`/dorama-berkas?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`,{id:x})}getFansubDorama(x=[],d=1,g=10){return this.api.patchData(`/dorama-fansub?page=${d}&row=${g}`,{id:x})}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},6382:(Qe,F,s)=>{"use strict";s.d(F,{r:()=>o});var n=s(4650),r=s(1390),l=s(257),u=s(8020);let o=(()=>{class E{constructor(d,g,v){this.router=d,this.gs=g,this.wb=v,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,g,v,_,m){this.backgroundIcon=d,this.backgroundImage=g,this.tooltipText=v,this.targetUrl=_,this.newTab=m,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)}}return E.\u0275fac=function(d){return new(d||E)(n.LFG(r.F0),n.LFG(l.U),n.LFG(u.N))},E.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},6781:(Qe,F,s)=>{"use strict";s.d(F,{T:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}delete(x){return this.api.deleteData(`/fansub/${x}`)}searchFansub(x="",d=1,g=10,v="",_=""){return this.api.getData(`/fansub?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}createFansub(x){return this.api.postData("/fansub",x)}updateFansub(x,d){return this.api.putData(`/fansub/${x}`,d)}getFansub(x){return this.api.getData(`/fansub/${x}`)}getAllFansub(){return this.api.getData("/fansub-all")}cekSlug(x){return this.api.patchData("/fansub-slug",x)}getBerkasFansub(x=[],d="",g=1,v=10,_="",m=""){return this.api.patchData(`/fansub-berkas?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`,{id:x})}getAnimeFansub(x=[],d=1,g=10){return this.api.patchData(`/fansub-anime?page=${d}&row=${g}`,{id:x})}getDoramaFansub(x=[],d=1,g=10){return this.api.patchData(`/fansub-dorama?page=${d}&row=${g}`,{id:x})}getRssFeedFansubAll(x=!1,d="",g=1,v=10,_="",m=""){return this.api.getData(`/fansub-rss-feed?q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}&summary=${x?"true":""}`)}getRssFeedFansub(x){return this.api.getData(`/fansub/${x}/rss`)}getFansubMember(x){return this.api.getData(`/fansub/${x}/member`)}getAllFansubMember(x="",d=1,g=10,v="",_=""){return this.api.getData(`/fansub-member?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}requestJoinFansubMember(x){return this.api.postData("/fansub-member",x)}approveRejectFansubMember(x,d){return this.api.putData(`/fansub-member/${x}`,d)}leaveFansubMember(x){return this.api.deleteData(`/fansub-member/${x}`)}getAllSubDomain(x="",d=1,g=12,v="",_=""){return this.api.getData(`/fansub-dns?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}claimSubDomain(x){return this.api.postData("/fansub-dns",x)}getSubDomain(x){return this.api.getData(`/fansub-dns/${x}`)}updateSubDomain(x,d){return this.api.putData(`/fansub-dns/${x}`,d)}revokeDomain(x){return this.api.deleteData(`/fansub-dns/${x}`)}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},257:(Qe,F,s)=>{"use strict";s.d(F,{U:()=>Uo});var n=s(4650),r=s(6895),l=s(9521),u=s(5126);function Lt(ie){if(null==ie||"object"!=typeof ie)return!1;let et=Object.getPrototypeOf(ie);return!(null!==et&&et!==Object.prototype&&null!==Object.getPrototypeOf(et)||Symbol.iterator in ie||Symbol.toStringTag in ie)}function Pe(ie){return"string"==typeof ie}function le(ie){return Number.isSafeInteger(ie)&&ie>=0}function yt(ie){return null!=ie}u();var ve=s(3639);function xe(ie){var et=-1,gt=null==ie?0:ie.length;for(this.__data__=new ve.Z;++et-1},pt=function Ot(ie,et,gt){for(var Ft=-1,Qt=null==ie?0:ie.length;++Ft0){if(++et>=800)return arguments[0]}else et=0;return ie.apply(void 0,arguments)}}(_t.Z?function(ie,et){return(0,_t.Z)(ie,"toString",{configurable:!0,enumerable:!1,value:rt(et),writable:!0})}:ln);var we=s(8706),be=s(214);const Xe=function Oi(ie,et){return kn(function rn(ie,et,gt){return et=Ht(void 0===et?ie.length-1:et,0),function(){for(var Ft=arguments,Qt=-1,Ut=Ht(Ft.length-et,0),mn=Array(Ut);++Qt=200&&(Ut=Rt,mn=!1,et=new Be(et));e:for(;++Qt=Ft?ie:function nr(ie,et,gt){var Ft=-1,Qt=ie.length;et<0&&(et=-et>Qt?0:Qt+et),(gt=gt>Qt?Qt:gt)<0&&(gt+=Qt),Qt=et>gt?0:gt-et>>>0,et>>>=0;for(var Ut=Array(Qt);++Ft-1;);return gt}(Ft,Qt),mn=function Yr(ie,et){for(var gt=ie.length;gt--&&nn(et,ie[gt],0)>-1;);return gt}(Ft,Qt)+1;return Pr(Ft,Ut,mn).join("")};var Fr=s(2221),cs={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Ji(ie,et){if(!Array.isArray(ie)||!ie.length)return ie;let Ft,Qt,gt={...cs,...et};if(gt.strictlyTwoElementsInRangeArrays&&!ie.every((lt,Tn)=>!(!Array.isArray(lt)||2!==lt.length)||(Ft=Tn,Qt=lt.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, ${Ft}th range (${JSON.stringify(ie[Ft],null,4)}) has not two but ${Qt} elements!`);if(!ie.every((lt,Tn)=>!(!Array.isArray(lt)||!Number.isInteger(lt[0])||lt[0]<0||!Number.isInteger(lt[1])||lt[1]<0)||(Ft=Tn,!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, ${Ft}th range (${JSON.stringify(ie[Ft],null,4)}) does not consist of only natural numbers!`);let Ut=ie.length**2,mn=0;return Array.from(ie).sort((lt,Tn)=>(gt.progressFn&&(mn+=1,gt.progressFn(Math.floor(100*mn/Ut))),lt[0]===Tn[0]?lt[1]Tn[1]?1:0:lt[0]Array.isArray(qt)).map(qt=>[...qt]).filter(qt=>void 0!==qt[2]||qt[0]!==qt[1]);Ut=Ft.progressFn?Ji(Qt,{progressFn:qt=>{lt=Math.floor(qt/5),lt!==mn&&(mn=lt,Ft.progressFn(lt))}}):Ji(Qt);let Tn=Ut.length-1;for(let qt=Tn;qt>0;qt--)Ft.progressFn&&(lt=Math.floor(78*(1-qt/Tn))+21,lt!==mn&<>mn&&(mn=lt,Ft.progressFn(lt))),(Ut[qt][0]<=Ut[qt-1][0]||!Ft.joinRangesThatTouchEdges&&Ut[qt][0]=Ut[qt][0]||Ut[qt-1][1]<=Ut[qt][1])&&null!==Ut[qt-1][2]&&(null===Ut[qt][2]&&null!==Ut[qt-1][2]?Ut[qt-1][2]=null:null!=Ut[qt-1][2]?2==+Ft.mergeType&&Ut[qt-1][0]===Ut[qt][0]?Ut[qt-1][2]=Ut[qt][2]:Ut[qt-1][2]+=Ut[qt][2]:Ut[qt-1][2]=Ut[qt][2]),Ut.splice(qt,1),qt=Ut.length);return Ut.length?Ut:null}function ys(ie,et){if(!ie)throw new Error("Invariant failed")}function Lr(ie,et,gt){let Ut,Ft=0,Qt=0;if(0===arguments.length)throw new Error("ranges-apply: [THROW_ID_01] inputs missing!");if("string"!=typeof ie)throw new TypeError(`ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ${typeof ie}, equal to: ${JSON.stringify(ie,null,4)}`);if(et&&!Array.isArray(et))throw new TypeError(`ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ${typeof et}, equal to: ${JSON.stringify(et,null,4)}`);if(gt&&"function"!=typeof gt)throw new TypeError(`ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ${typeof gt}, equal to: ${JSON.stringify(gt,null,4)}`);if(!et?.filter(Vn=>Vn).length)return ie;Ut=Array.isArray(et)&&Number.isInteger(et[0])&&Number.isInteger(et[1])?[Array.from(et)]:Array.from(et);let mn=Ut.length,lt=0;Ut.filter(Vn=>Vn).forEach((Vn,Mi)=>{if(gt&&(Ft=Math.floor(lt/mn*10),Ft!==Qt&&(Qt=Ft,gt(Ft))),!Array.isArray(Vn))throw new TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${Mi}th element not an array: ${JSON.stringify(Vn,null,4)}, which is ${typeof Vn}`);if(!Number.isInteger(Vn[0])){if(!Number.isInteger(+Vn[0])||+Vn[0]<0)throw new TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${Mi}th element, array ${JSON.stringify(Vn,null,0)}. Its first element is not an integer, string index, but ${typeof Vn[0]}, equal to: ${JSON.stringify(Vn[0],null,4)}.`);Ut[Mi][0]=+Ut[Mi][0]}if(!Number.isInteger(Vn[1])){if(!Number.isInteger(+Vn[1])||+Vn[1]<0)throw new TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${Mi}th element, array ${JSON.stringify(Vn,null,0)}. Its second element is not an integer, string index, but ${typeof Vn[1]}, equal to: ${JSON.stringify(Vn[1],null,4)}.`);Ut[Mi][1]=+Ut[Mi][1]}lt+=1});let Tn=Hn(Ut,{progressFn:Vn=>{gt&&(Ft=10+Math.floor(Vn/10),Ft!==Qt&&(Qt=Ft,gt(Ft)))}});ys(Tn);let qt=Tn.length;if(qt>0){let Vn=ie.slice(Tn[qt-1][1]);ie=Tn.reduce((Mi,Ki,hn,Di)=>(gt&&(Ft=20+Math.floor(hn/qt*80),Ft!==Qt&&(Qt=Ft,gt(Ft))),`${Mi}${ie.slice(0===hn?0:Di[hn-1][1],Di[hn][0])}${Di[hn][2]||""}`),""),ie+=Vn}return ie}function an(ie,et=1){function Ft(Ut){return Array.from(Ut).reverse().join("")}function Qt(Ut,mn,lt){let Tn=lt?"\n":"\r",qt=lt?"\r":"\n";if(!Ut)return Ut;let Vn=0,Mi=0,Ki="";for(let hn=0,Di=Ut.length;hn=0&&(Ut=+et);let mn="",lt="";if(ie.trim()){if(!ie[0].trim())for(let Tn=0,qt=ie.length;Tn"string"==typeof gt&>.trim());if("string"==typeof ie)return ie.trim()?[ie]:[];throw new TypeError(`string-strip-html/stripHtml(): [THROW_ID_05] ${et} must be array containing zero or more strings or something falsey. Currently it's equal to: ${ie}, that a type of ${typeof ie}.`)}function yn(ie,et,gt,Ft){for(let Qt=et,Ut=ie.length;Qt"),yn(et,ie?.quotes?.next-1,ie?.quotes?.value,">"),!ie?.quotes||!yn(et,gt+1,ie.quotes.value,">")&&-1!==ie?.quotes?.next&&yn(et,ie?.quotes?.next-1,ie?.quotes?.value,">")}function ei(ie,et){return(et.match(new RegExp(ie,"g"))||[]).length}u();var Ci=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"]),Ri=new Set(["a","b","i","p","q","s","u"]),Pi=new Set([".",",",";","!","?"]),jr=new Set([".",",","?",";",")","\u2026",'"',"\xbb"]),Js=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"]),ki={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 zs(ie,et){let gt=Date.now(),Ft=[],Qt=[],Ut=[],mn=[],lt={};!function Tn(){lt={attributes:[]}}();let qt=null,Vn=null,Mi=null,Ki=!1,hn={},Di={tagName:"",hrefValue:"",openingTagEnds:void 0},W="",Ee=!1,X=null,He=!0;function St(Mt,_n,Un){if(Array.isArray(_n.stripTogetherWithTheirContents)&&(_n.stripTogetherWithTheirContents.includes(lt.name)||_n.stripTogetherWithTheirContents.includes("*")))if(lt.slashPresent&&Array.isArray(Ft)&&Ft.some(Ln=>Ln.name===lt.name)){for(let Ln=Ft.length;Ln--;)if(Ft[Ln].name===lt.name){mn=mn.filter(([gi,dr])=>(gi=Mt+1)&&(dr<=Ft[Ln].lastOpeningBracketAt||dr>Mt+1));let li=Mt+1;lt.lastClosingBracketAt&&(li=lt.lastClosingBracketAt+1),mn.push([Ft[Ln].lastOpeningBracketAt,li]),jr.has(ie[Mt])&&_n.cb?_n.cb({tag:lt,deleteFrom:Ft[Ln].lastOpeningBracketAt,deleteTo:Mt+1,insert:null,rangesArr:Un,proposedReturn:[Ft[Ln].lastOpeningBracketAt,Mt,null]}):_n.cb&&_n.cb({tag:lt,deleteFrom:Ft[Ln].lastOpeningBracketAt,deleteTo:Mt,insert:"",rangesArr:Un,proposedReturn:[Ft[Ln].lastOpeningBracketAt,Mt,""]}),Ft.splice(Ln,1);break}}else lt.slashPresent||Ft.push(lt);else Array.isArray(_n.ignoreTagsWithTheirContents)&&hi(Mt,_n,lt)&&(He=!1)}function Kt(Mt,_n,Un,Ln,li,gi){if(Array.isArray($n.current())&&"number"==typeof Un&&0===$n.current()[0][0]&&$n.current()[0][1]>=Un)return"";if(ie.length===Ln&&gi&&!en?.dumpLinkHrefsNearby?.enabled)return null;let dr="";if(Number.isInteger(Un)&&Ungi+1){let ts=Mt.slice(gi+1,Ln);Ln&&!Ui(ie,Ln-1)&&(ts=ts.trimEnd()),ts.includes("\n")&&An(Ln,Mt)?dr+=" ":dr+=ts}let Fi=!jr.has(Mt[_n]),Xi=">"!==Mt[Ln-1]||!Mt[Un].trim(),Ls=!['"',"("].includes(Mt[li-1]),qs=![";",".",":","!"].includes(Mt[_n]);if((Fi||Xi&&Ls&&qs)&&(Xi||Ls)&&"!"!==Mt[_n]&&(!Js.has(lt.name)||"number"==typeof Un&&Ungi+1)){let ts=dr.match(/\n/g);return Array.isArray(ts)&&ts.length?1===ts.length?"\n":2===ts.length?"\n\n":"\n\n\n":" "}return""}function sn(Mt,_n){if(Mt.dumpLinkHrefsNearby?.enabled&&Di.tagName&&Di.tagName===lt.name&<.lastOpeningBracketAt&&(Di.openingTagEnds&<.lastOpeningBracketAt>Di.openingTagEnds||!Di.openingTagEnds)&&(Ee=!0),Ee){let Un=Mt.dumpLinkHrefsNearby?.putOnNewLine?"\n\n":"";W=`${Un}${Di.hrefValue}`,("number"!=typeof _n||Ui(ie,_n-1))&&(W+=Un)}}function An(Mt,_n){return _n?"<"===_n[Mt]&&"%"!==_n[Mt+1]:"<"===ie[Mt]&&"%"!==ie[Mt+1]}function di(Mt){return">"===ie[Mt]&&"%"!==ie[Mt-1]}function hi(Mt,_n,Un){if(_n.ignoreTagsWithTheirContents.includes("*"))return!0;let Ln=ie.indexOf(`<${Un.name}`,Mt),li=ie.indexOf(`gi.name===Un.name)||li>-1&&Ln>-1&&Ln"string"==typeof Mt||(Ei.el=Mt,Ei.i=_n,!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 ${Ei.i} has a value ${Ei.el} which is not string but ${(typeof Ei.el).toLowerCase()}.`);en.cb||(en.cb=({rangesArr:Mt,proposedReturn:_n})=>{_n&&Mt.push(..._n)});let $n=new class{constructor(ie){th(this,"ranges"),th(this,"opts");let et={...ye,...ie};if(et.mergeType&&1!==et.mergeType&&2!==et.mergeType)if(Pe(et.mergeType)&&"1"===et.mergeType.trim())et.mergeType=1;else{if(!Pe(et.mergeType)||"2"!==et.mergeType.trim())throw new Error(`ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof et.mergeType}", equal to ${JSON.stringify(et.mergeType,null,4)}`);et.mergeType=2}this.opts=et,this.ranges=[]}add(ie,et,gt){if(null==ie&&null==et)return;if(yt(ie)&&!yt(et)){if(Array.isArray(ie)){if(ie.length){if(ie.some(Ut=>Array.isArray(Ut)))return void ie.forEach(Ut=>{Array.isArray(Ut)&&this.add(...Ut)});ie.length&&le(+ie[0])&&le(+ie[1])&&this.add(...ie)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(ie,null,0)}) but second-one, "to" is not (${JSON.stringify(et,null,0)})`)}if(!yt(ie)&&yt(et))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(et,null,0)}) but first-one, "from" is not (${JSON.stringify(ie,null,0)})`);let Ft=+ie,Qt=+et;if(le(gt)&&(gt=String(gt)),!le(Ft)||!le(Qt))throw le(Ft)&&Ft>=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 Qt}" equal to: ${JSON.stringify(Qt,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 Ft}" equal to: ${JSON.stringify(Ft,null,4)}`);if(yt(gt)&&!Pe(gt)&&!le(gt))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof gt}, equal to:\n${JSON.stringify(gt,null,4)}`);if(yt(this.ranges)&&Array.isArray(this.last())&&Ft===this.last()[1]){if(this.last()[1]=Qt,this.last(),null!==this.last()[2]&&yt(gt)){let Ut=!this.last()[2]||!this.last()[2].length||this.opts?.mergeType&&1!==this.opts.mergeType?gt:`${this.last()[2]}${gt}`;this.opts.limitToBeAddedWhitespace&&(Ut=an(Ut,this.opts.limitLinebreaksCount)),Pe(Ut)&&!Ut.length||(this.last()[2]=Ut)}}else{this.ranges||(this.ranges=[]);let Ut=void 0===gt||Pe(gt)&&!gt.length?[Ft,Qt]:[Ft,Qt,gt&&this.opts.limitToBeAddedWhitespace?an(gt,this.opts.limitLinebreaksCount):gt];this.ranges.push(Ut)}}push(ie,et,gt){this.add(ie,et,gt)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=function ks(ie,et){function gt(qt){return!!qt&&"object"==typeof qt&&!Array.isArray(qt)}if(!Array.isArray(ie)||!ie.length)return null;let Ft;if(et){if(!gt(et))throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:\n${JSON.stringify(et,null,4)} (type ${typeof et})`);if(Ft={..._r,...et},Ft.progressFn&>(Ft.progressFn)&&!Object.keys(Ft.progressFn).length)Ft.progressFn=null;else if(Ft.progressFn&&"function"!=typeof Ft.progressFn)throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof Ft.progressFn}", equal to ${JSON.stringify(Ft.progressFn,null,4)}`);if(![1,2,"1","2"].includes(Ft.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof Ft.mergeType}", equal to ${JSON.stringify(Ft.mergeType,null,4)}`);if("boolean"!=typeof Ft.joinRangesThatTouchEdges)throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof Ft.joinRangesThatTouchEdges}", equal to ${JSON.stringify(Ft.joinRangesThatTouchEdges,null,4)}`)}else Ft={..._r};let Ut,mn,lt,Qt=ie.filter(qt=>Array.isArray(qt)).map(qt=>[...qt]).filter(qt=>void 0!==qt[2]||qt[0]!==qt[1]);Ut=Ft.progressFn?Ji(Qt,{progressFn:qt=>{lt=Math.floor(qt/5),lt!==mn&&(mn=lt,Ft.progressFn(lt))}}):Ji(Qt);let Tn=Ut.length-1;for(let qt=Tn;qt>0;qt--)Ft.progressFn&&(lt=Math.floor(78*(1-qt/Tn))+21,lt!==mn&<>mn&&(mn=lt,Ft.progressFn(lt))),(Ut[qt][0]<=Ut[qt-1][0]||!Ft.joinRangesThatTouchEdges&&Ut[qt][0]=Ut[qt][0]||Ut[qt-1][1]<=Ut[qt][1])&&null!==Ut[qt-1][2]&&(null===Ut[qt][2]&&null!==Ut[qt-1][2]?Ut[qt-1][2]=null:null!=Ut[qt-1][2]?2==+Ft.mergeType&&Ut[qt-1][0]===Ut[qt][0]?Ut[qt-1][2]=Ut[qt][2]:Ut[qt-1][2]+=Ut[qt][2]:Ut[qt-1][2]=Ut[qt][2]),Ut.splice(qt,1),qt=Ut.length);return Ut.length?Ut:null}(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(ie=>yt(ie[2])?[ie[0],ie[1],an(ie[2],this.opts.limitLinebreaksCount)]:ie):this.ranges):null}wipe(){this.ranges=[]}replace(ie){if(Array.isArray(ie)&&ie.length){if(!Array.isArray(ie[0])||!le(ie[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(ie[0],null,4)} should be an array and its first element should be an integer, a string index.`);this.ranges=Array.from(ie)}else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}}({limitToBeAddedWhitespace:!0,limitLinebreaksCount:2});if(!en.skipHtmlDecoding)for(;ie!==(0,Fr.decode)(ie,{scope:"strict"});)ie=(0,Fr.decode)(ie,{scope:"strict"});let Mr=!1,Gi=!1,mi=0,Si=0,ur=ie.length,es=Math.floor(ur/2);for(let Mt=0;Mt1e3&&ur<2e3?Mt===es&&en.reportProgressFunc(Math.floor((en.reportProgressFuncTo-en.reportProgressFuncFrom)/2)):ur>=2e3&&(mi=en.reportProgressFuncFrom+Math.floor(Mt/ur*(en.reportProgressFuncTo-en.reportProgressFuncFrom)),mi!==Si&&(Si=mi,en.reportProgressFunc(mi)))),Object.keys(lt).length>1&<.lastClosingBracketAt&<.lastClosingBracketAtMt){Mt=_n;continue}}if(!Mr&&di(Mt)&&(!lt||Object.keys(lt).length<2)&&Mt>1)for(let _n=Mt;_n--;)if(void 0===ie[_n-1]||di(_n)){let Un=void 0===ie[_n-1]?_n:_n+1,Ln=ie.slice(Un,Mt+1)||"";if((Ln.includes("/>")||Ln.includes("/ >")||Ln.includes('="')||Ln.includes("='"))&&ie!==`<${ls(Ln.trim(),"/>")}>`&&[...Ci].some(li=>ls(Ln.trim().split(/\s+/).filter(gi=>gi.trim()).filter((gi,dr)=>0===dr),"/>").toLowerCase()===li)&&""===zs(`<${Ln.trim()}>`,en).result){(!Ut.length||Ut[Ut.length-1][0]!==lt.lastOpeningBracketAt)&&Ut.push([Un,Mt+1]),(!mn.length||mn[mn.length-1][0]!==lt.lastOpeningBracketAt)&&mn.push([Un,Mt+1]);let li=Kt(ie,Mt,Un,Mt+1,Un,Mt+1),gi=Mt+1;if(ie[gi]&&!ie[gi].trim())for(let dr=gi;dr{if("string"==typeof Un.name&&"href"===Un.name.toLowerCase())return _n=`${en.dumpLinkHrefsNearby?.wrapHeads||""}${Un.value}${en.dumpLinkHrefsNearby?.wrapTails||""}`,!0})&&(Di={tagName:lt.name,hrefValue:_n,openingTagEnds:void 0})}else!Gi&&!lt.quotes&<.nameStarts&&(lt.quotes={},lt.quotes.value=ie[Mt],lt.quotes.start=Mt,lt.quotes.next=ie.indexOf(ie[Mt],Mt+1),hn.nameStarts&&hn.nameEnds&&hn.nameEnds!(Un===lt.leftOuterWhitespace&&Ln===Mt))),en.cb({tag:lt,deleteFrom:lt.leftOuterWhitespace,deleteTo:Mt,insert:`${_n}${W}${_n}`,rangesArr:$n,proposedReturn:[lt.leftOuterWhitespace,Mt,`${_n}${W}${_n}`]}),xi(),St(Mt,en,$n)}}if(lt.quotes?.start&<.quotes.start/!".includes(ie[Mt])&&!hn.nameStarts&&!lt.lastClosingBracketAt&&(hn.nameStarts=Mt),null!==lt.lastOpeningBracketAt&<.lastOpeningBracketAt"))&&void 0!==lt.lastOpeningBracketAt&&(lt.lastClosingBracketAt=Mt,X=null,Object.keys(hn).length&&(lt.attributes.push(hn),hn={}),en.dumpLinkHrefsNearby?.enabled&&Di.tagName&&!Di.openingTagEnds&&(Di.openingTagEnds=Mt)),(!Gi||">"===ie[Mt])&&void 0!==lt.lastOpeningBracketAt){if(void 0===lt.lastClosingBracketAt){if(lt.lastOpeningBracketAtUn!==_n.lastOpeningBracketAt),mn.push([_n.lastOpeningBracketAt,Mt+1])):mn.push([lt.lastOpeningBracketAt,Mt+1])}else mn.push([lt.lastOpeningBracketAt,Mt+1])}}else if(Mt>lt.lastClosingBracketAt&&ie[Mt].trim()||void 0===ie[Mt+1]||en.ignoreIndentations&&"\r\n".includes(ie[Mt])){let _n=lt.lastClosingBracketAt===Mt?Mt+1:Mt;en.trimOnlySpaces&&_n===ur-1&&null!==X&&Xli.equalsAt)){(!mn.length||mn[mn.length-1][0]!==lt.lastOpeningBracketAt)&&mn.push([lt.lastOpeningBracketAt,lt.lastClosingBracketAt+1]);let gi,li=Kt(ie,Mt,lt.leftOuterWhitespace,_n,lt.lastOpeningBracketAt,lt.lastClosingBracketAt);W="",Ee=!1,sn(en,_n),"string"==typeof W&&W.length?(gi=`${li}${W}${"\n\n"===li?"\n":li}`,_n===lt.lastClosingBracketAt+1&&(!ie[_n]||!Pi.has(ie[_n]))&&(gi+=" "),lt.leftOuterWhitespace===lt.lastOpeningBracketAt&&$n.last()&&$n.last()[1]Mt)&&dr++}en.cb({tag:lt,deleteFrom:lt.leftOuterWhitespace,deleteTo:_n+dr,insert:gi,rangesArr:$n,proposedReturn:[lt.leftOuterWhitespace,_n+dr,gi]}),xi(),St(Mt,en,$n)}else lt={};di(Mt)||(lt={})}Gi&&(Gi=!1)}if((!Mr||"<"===ie[Mt]&&Ui(ie,Ui(ie,Mt))&&"/"===ie[Ui(ie,Mt)]&&ie.startsWith("script",Ui(ie,Ui(ie,Mt))))&&An(Mt)&&!An(Mt-1)&&!"'\"".includes(ie[Mt+1])&&(!"'\"".includes(ie[Mt+2])||/\w/.test(ie[Mt+1]))&&("c"!==ie[Mt+1]||":"!==ie[Mt+2])&&("f"!==ie[Mt+1]||"m"!==ie[Mt+2]||"t"!==ie[Mt+3]||":"!==ie[Mt+4])&&("s"!==ie[Mt+1]||"q"!==ie[Mt+2]||"l"!==ie[Mt+3]||":"!==ie[Mt+4])&&("x"!==ie[Mt+1]||":"!==ie[Mt+2])&&("f"!==ie[Mt+1]||"n"!==ie[Mt+2]||":"!==ie[Mt+3])&&In(lt,ie,Mt)){if(di(Ui(ie,Mt)))continue;if(lt.nameEnds&<.nameEnds"==`${ie[Ln-2]}${ie[Ln-1]}${ie[Ln]}`||!_n&&"--\x3e"==`${ie[Ln-2]}${ie[Ln-1]}${ie[Ln]}`)&&(Un=Ln),Un&&(Un"===ie[Ln])&&(li+=1),(!Ut.length||Ut[Ut.length-1][0]!==lt.lastOpeningBracketAt)&&Ut.push([lt.lastOpeningBracketAt,Un+1]),(!mn.length||mn[mn.length-1][0]!==lt.lastOpeningBracketAt)&&mn.push([lt.lastOpeningBracketAt,Un+1]);let gi=Kt(ie,Ln,lt.leftOuterWhitespace,li,lt.lastOpeningBracketAt,Un);en.cb({tag:lt,deleteFrom:lt.leftOuterWhitespace,deleteTo:li,insert:gi,rangesArr:$n,proposedReturn:[lt.leftOuterWhitespace,li,gi]}),Mt=Ln-1,">"===ie[Ln]&&(Mt=Ln),lt={},hn={};break}}}ie[Mt].trim()&&847!==ie[Mt].charCodeAt(0)?(null!==qt&&(!lt.quotes&&hn.equalsAt>qt-1&&hn.nameEnds&&hn.equalsAt>hn.nameEnds&&'"'!==ie[Mt]&&"'"!==ie[Mt]&&(Lt(hn)&<.attributes.push(hn),hn={},lt.equalsSpottedAt=void 0),qt=null),Ki||(Ki=!0,He&&!Mr&&"number"==typeof Mi&&Mt&&Mi_n.name===lt.name)&&(lt.onlyPlausible=!0,lt.name=void 0,lt.nameStarts=void 0)),("\n"===ie[Mt]||"\r"===ie[Mt])&&(Mi=Mt,Ki&&(Ki=!1)))," "===ie[Mt]?null===Vn&&(Vn=Mt):null!==Vn&&(Vn=null),"script"===lt.name&&(Mr=!lt.slashPresent)}if(ie&&!en.ignoreIndentations&&(en.trimOnlySpaces&&" "===ie[0]||!en.trimOnlySpaces&&!ie[0].trim()))for(let Mt=0;Mt{class ie{constructor(gt,Ft){this.localStorageKeys={AturanTatib:`${Cs.N.siteName}_AturanTatib`,DebugLogs:`${Cs.N.siteName}_DebugLogs`,DarkMode:`${Cs.N.siteName}_DarkMode`,Token:`${Cs.N.siteName}_Token`,LiveChatResults:`${Cs.N.siteName}_LiveChatResults`,R18:`${Cs.N.siteName}_R18`,SearchResults:`${Cs.N.siteName}_SearchResults`,Torrents:`${Cs.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.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:`${Cs.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:Ws.F.WINTER,cssClassName:"snow",img:"/assets/img/season/winter.png"},{id:2,name:Ws.F.SPRING,cssClassName:"sakura",img:"/assets/img/season/spring.png"},{id:3,name:Ws.F.SUMMER,cssClassName:null,img:"/assets/img/season/summer.png"},{id:4,name:Ws.F.FALL,cssClassName:"fall",img:"/assets/img/season/fall.png"}],this.isBrowser=(0,r.NF)(gt),this.document=Ft,this.isDevMode=(0,n.X6Q)(),this.isBrowser&&(this.onResize(null),this.weatherJS())}log(gt,Ft=null,Qt="log"){if(this.isBrowser&&(this.forceEnableDebugLog="true"===localStorage.getItem(this.localStorageKeys.DebugLogs)),this.isDevMode||this.forceEnableDebugLog){let Ut=null;Ut="warn"===Qt?console.warn:"error"===Qt?console.error:"table"===Qt?console.table:console.log,Ft?Ut(gt,Ft):Ut(gt)}}getDirtyValues(gt){const Ft={};for(const Qt of Object.keys(gt.controls)){const Ut=gt.get(Qt);Ut.dirty&&(Ft[Qt]=Ut.value)}return Ft}get randomColor(){return(16777215*Math.random()<<0).toString(16)}get bgImgUrl(){return this.isDesktop?this.bgImgUrlPath:""}onResize(gt,Ft="APP_COMPONENT"){if(gt&&this.log(`[WINDOW_RESIZE-${Ft}]`,gt),this.isBrowser){const Qt=gt?.target?.window||window;this.leftMenuImage="/assets/img/background/left-menu.png",this.rightMenuImage="/assets/img/background/right-panel.png",Qt.innerWidth>1200?(this.isDesktop=!0,this.gridListBreakpoint=4):Qt.innerWidth>992?(this.isDesktop=!0,this.gridListBreakpoint=3):Qt.innerWidth>768?(this.isDesktop=!1,this.gridListBreakpoint=2):(this.isDesktop=!1,this.gridListBreakpoint=1,this.leftMenuImage="",this.rightMenuImage="")}}htmlToText(gt){return gt?zs(gt).result:""}shuffle(gt){let Ft=gt.length,Qt=0,Ut=0;for(;0!==Ft;)Ut=Math.floor(Math.random()*Ft),Ft-=1,Qt=gt[Ft],gt[Ft]=gt[Ut],gt[Ut]=Qt;return gt}cleanObject(gt){for(const Ft in gt)gt[Ft]||delete gt[Ft]}includesOneOf(gt,Ft){for(const Qt of Ft)if(gt?.includes(Qt))return!0;return!1}linkify(gt){if(gt){const Qt=/(^|[^\/])(www\.[\S]+(\b|$))/gim,Ut=/[\w.]+@[a-zA-Z_-]+?(?:\.[a-zA-Z]{2,6})+/gim;return gt.replace(/\b(?:https?|ftp):\/\/[a-z0-9-+&@#\/%?=~_|!:,.;]*[a-z0-9-+&@#\/%=~_|]/gim,'$&').replace(Qt,'$1$2').replace(Ut,'$&')}return""}toggleDarkTheme(gt=!1){gt?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 gt=(new Date).getMonth()+1,Ft=this.seasonalWeather.find(Qt=>Qt.id===Math.ceil(gt/3));Ft?.cssClassName&&(this.weatherEffect=new Sakura("body",{className:Ft.cssClassName,lifeTime:5e3}),this.weatherRunning=!0)}weatherToggle(){this.weatherRunning?(this.weatherEffect.stop(!0),this.weatherRunning=!1):(this.weatherEffect.start(),this.weatherRunning=!0)}cleanIpOrigin(gt){if(gt){gt.startsWith("::ffff:")&&(gt=gt.slice(7,gt.length)),gt.startsWith("http://")?gt=gt.slice(7,gt.length):gt.startsWith("https://")&&(gt=gt.slice(8,gt.length)),gt.startsWith("www.")&&(gt=gt.slice(4,gt.length)),gt=gt.split("/")[0];let Ft=0;for(let Qt=0;Qt1));Qt++);return 1===Ft?gt=gt.split(":")[0]:(gt=gt.split("]")[0]).startsWith("[")&&(gt=gt.slice(1,gt.length)),gt}return""}}return ie.\u0275fac=function(gt){return new(gt||ie)(n.LFG(n.Lbi),n.LFG(r.K0))},ie.\u0275prov=n.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})()},7902:(Qe,F,s)=>{"use strict";s.d(F,{X:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}uploadImage(x){return this.api.postData("/image",x,!0,{headers:{"ngsw-bypass":"true"}})}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7745:(Qe,F,s)=>{"use strict";s.d(F,{O:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}getAllInfo(x,d,g,v,_){return this.api.getData(`/information?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}getInfo(x){return this.api.getData(`/information/${x}`)}createUpdateInfo(x){return this.api.postData("/information",x)}deleteInfo(x){return this.api.deleteData(`/information/${x}`)}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7:(Qe,F,s)=>{"use strict";s.d(F,{S:()=>l});var n=s(4650),r=s(257);let l=(()=>{class u{constructor(E){this.gs=E,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=window.innerWidth>=992)}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())}}return u.\u0275fac=function(E){return new(E||u)(n.LFG(r.U))},u.\u0275prov=n.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},3379:(Qe,F,s)=>{"use strict";s.d(F,{n:()=>u});var n=s(4650),r=s(8379),l=s(257);let u=(()=>{class o{constructor(x,d){this.cs=x,this.gs=d}getItem(x,d=!1){if(!this.gs.isBrowser)return null;if(!d)return localStorage.getItem(x);try{const g=localStorage.getItem(x),v=this.cs.msgDecrypt(g);return JSON.parse(v)}catch{return this.removeItem(x),null}}setItem(x,d){if(this.gs.isBrowser)if("string"==typeof d)localStorage.setItem(x,d);else{const g=JSON.stringify(d),v=this.cs.msgEncrypt(g);localStorage.setItem(x,v)}}removeItem(x){this.gs.isBrowser&&localStorage.removeItem(x)}clear(){if(this.gs.isBrowser)for(const x of Object.keys(this.gs.localStorageKeys))"Torrents"!==x&&this.removeItem(this.gs.localStorageKeys[x])}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.$),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},9618:(Qe,F,s)=>{"use strict";s.d(F,{Y:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}delete(x){return this.api.deleteData(`/news/${x}`)}getAllNews(x="",d=1,g=10,v="",_=""){return this.api.getData(`/news?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}createNews(x){return this.api.postData("/news",x)}updateNews(x,d){return this.api.putData(`/news/${x}`,d)}getNews(x){return this.api.getData(`/news/${x}`)}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},2663:(Qe,F,s)=>{"use strict";s.d(F,{a:()=>u});var n=s(4650),r=s(9731),l=s(257);let u=(()=>{class o{constructor(x,d){this.api=x,this.gs=d}getAllNihongo(x="",d="",g=1,v=10,_="",m=""){return this.api.getData(`/nihongo?category=${x}&q=${d}&page=${g}&row=${v}&sort=${_}&order=${m}`)}getAllKategori(){return this.api.patchData("/nihongo")}createNihongo(x){return this.api.postData("/nihongo",x)}updateNihongo(x,d){return this.api.putData(`/nihongo/${x}`,d)}getHirakata(){return this.api.getData("/nihongo-hirakata-all")}getAllKanji(x="",d="",g="",v=1,_=10,m="",C=""){return this.api.getData(`/nihongo-kanji?jlpt=${x}&school=${d}&q=${g}&page=${v}&row=${_}&sort=${m}&order=${C}`)}getAllEdict(x="",d=1,g=10,v="",_=""){return this.api.getData(`/nihongo-edict?q=${x}&page=${d}&row=${g}&sort=${v}&order=${_}`)}}return o.\u0275fac=function(x){return new(x||o)(n.LFG(r.s),n.LFG(l.U))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},7140:(Qe,F,s)=>{"use strict";s.d(F,{T:()=>u});var n=s(5934),r=s(4650),l=s(257);let u=(()=>{class o{constructor(x){this.gs=x,this.notifications=[],this.dissmissTimeout={},this.timedOut=null,this.gs.isBrowser&&this.notifications.push({notifCreator:null,notifData:{id:`${n.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(x,d,g,v,_,m=!0,C=1e4){m&&(this.dissmissTimeout[d]=setTimeout(()=>this.removeNotif(d),C)),this.notifications.findIndex(H=>H.notifData.id===d)<0&&this.notifications.splice(0,0,{notifCreator:x,notifData:{id:d,type:g,title:v,content:_,dismissible:m}})}removeNotif(x){this.dissmissTimeout[x]&&(clearTimeout(this.dissmissTimeout[x]),this.dissmissTimeout[x]=null,delete this.dissmissTimeout[x]),this.timedOut=setTimeout(()=>{const d=this.notifications.findIndex(g=>g.notifData.id===x);d>=0&&(this.notifications=this.notifications.slice(0,d).concat(this.notifications.slice(d+1,this.notifications.length)))},500)}}return o.\u0275fac=function(x){return new(x||o)(r.LFG(l.U))},o.\u0275prov=r.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},8745:(Qe,F,s)=>{"use strict";s.d(F,{Z:()=>E});var n=s(5934),r=s(4650),l=s(1481),u=s(257),o=s(1390);let E=(()=>{class x{constructor(g,v,_,m){this.t=g,this.m=v,this.gs=_,this.router=m,this.siteName=n.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(g,v,_,m=`${n.N.baseUrl}/assets/img/favicon.png`,C="\u300c\u{1f4a4} Fansub \u2728 ID \u{1f31e}\u300d"){g&&(this.title=g,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}`})),v&&(this.description=this.gs.htmlToText(v),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=m.startsWith("/")?n.N.baseUrl+m:m,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(n.N.baseUrl)&&this.m.updateTag({name:"twitter:card",content:"summary_large_image"}),this.author=C,this.m.updateTag({name:"author",content:this.author}),this.updatePageHeader()}updateStatusBarTheme(g){this.m.updateTag(g?{name:"theme-color",content:"#673ab7"}:{name:"theme-color",content:"#3f51b5"})}updatePageHeader(g=null){this.header=g||this.title}}return x.\u0275fac=function(g){return new(g||x)(r.LFG(l.Dx),r.LFG(l.h_),r.LFG(u.U),r.LFG(o.F0))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},7814:(Qe,F,s)=>{"use strict";s.d(F,{C:()=>yt});var n=s(4650),r=s(257),l=s(9618),u=s(7845),o=s(2663),E=s(519),x=s(8439),d=s(6781),g=s(8987),v=s(8058),_=s(3379),m=s(8020),C=s(6895),O=s(1390),H=s(4006),G=s(3238),Y=s(7392),V=s(9549),ne=s(4144),me=s(6338);function j(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&at){const se=de.$implicit;n.MGl("routerLink","/news/",se.id,""),n.xp6(1),n.s9C("src",se.image_url,n.LSH),n.xp6(2),n.Oqu(se.title),n.xp6(3),n.Oqu(se.user_.username),n.xp6(3),n.Oqu(n.xi3(10,5,se.created_at,"d-MM-y"))}}function $(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Berita"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,j,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.beritaResults,0,5))}}function N(at,de){if(1&at){const se=n.EpF();n.TgZ(0,"mat-list-option",17),n.NdJ("click",function(){const st=n.CHM(se).$implicit,qe=n.oxw(2);return n.KtG(qe.openEdict(st))}),n.TgZ(1,"h4",18),n._uU(2),n.qZA(),n.TgZ(3,"h5",18)(4,"span",14),n._uU(5),n.qZA(),n._uU(6," \xa0 "),n.TgZ(7,"span",15),n._uU(8),n.qZA()()()}if(2&at){const se=de.$implicit;n.xp6(2),n.lnq(" ",se.character," | ",se.v_kunyomi,"| ",se.v_onyomi," "),n.xp6(3),n.hij("N",se.jlpt,""),n.xp6(3),n.Oqu(se.translate)}}function ee(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Kanji"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,N,9,5,"mat-list-option",16),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.kanjiResults,0,5))}}function he(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.qZA()()()),2&at){const se=de.$implicit,ge=n.oxw(2);n.hYB("routerLink","/anime/",se.id,"-",ge.getAnimeTitle(se.title),""),n.xp6(1),n.s9C("src",se.image_url,n.LSH),n.xp6(2),n.Oqu(se.title),n.xp6(3),n.Oqu(se.id),n.xp6(3),n.AsE("",se.num_episodes," Eps ",null==se.media_type?null:se.media_type.toUpperCase(),"")}}function oe(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Anime"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,he,10,7,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.animeResults,0,5))}}function Ie(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.qZA()()()),2&at){const se=de.$implicit;n.MGl("routerLink","/dorama/",se.slug,""),n.xp6(1),n.s9C("src",se.thumb,n.LSH),n.xp6(2),n.Oqu(se.title),n.xp6(3),n.Oqu(se.mdl_id),n.xp6(3),n.Oqu(se.type)}}function ae(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Dorama"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Ie,10,5,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.doramaResults,0,5))}}function Z(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&at){const se=de.$implicit;n.MGl("routerLink","/fansub/",se.slug,""),n.xp6(1),n.s9C("src",se.image_url,n.LSH),n.xp6(2),n.Oqu(se.name),n.xp6(3),n.Oqu(se.active?"Aktif":"Tidak Aktif"),n.xp6(3),n.Oqu(n.xi3(10,5,se.born,"d-MM-y"))}}function fe(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Fansub"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Z,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.fansubResults,0,5))}}function q(at,de){if(1&at){const se=n.EpF();n.TgZ(0,"mat-list-option",17),n.NdJ("click",function(){const st=n.CHM(se).$implicit,qe=n.oxw(2);return n.KtG(qe.openRssFeed(st))}),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",15),n._uU(6),n.ALo(7,"date"),n.qZA()()()}if(2&at){const se=de.$implicit;n.xp6(1),n.s9C("src",se.fansub_.image_url,n.LSH),n.xp6(2),n.Oqu(se.title),n.xp6(3),n.Oqu(n.xi3(7,3,se.created_at,"d-MM-y"))}}function Ve(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"RSS"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,q,8,6,"mat-list-option",16),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.rssResults,0,5))}}function Je(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&at){const se=de.$implicit;n.MGl("routerLink","/berkas/",se.id,""),n.xp6(1),n.s9C("src",se.image_url,n.LSH),n.xp6(2),n.Oqu(se.name),n.xp6(3),n.Oqu(se.user_.username),n.xp6(3),n.Oqu(n.xi3(10,5,se.created_at,"d-MM-y"))}}function kt(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Berkas"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Je,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.berkasResults,0,5))}}function Lt(at,de){if(1&at&&(n.TgZ(0,"mat-list-option",11),n._UZ(1,"img",12),n.TgZ(2,"h4",13),n._uU(3),n.qZA(),n.TgZ(4,"h5",13)(5,"span",14),n._uU(6),n.qZA(),n._uU(7," \xa0 "),n.TgZ(8,"span",15),n._uU(9),n.ALo(10,"date"),n.qZA()()()),2&at){const se=de.$implicit;n.MGl("routerLink","/user/",se.username,""),n.xp6(1),n.s9C("src",se.image_url,n.LSH),n.xp6(2),n.Oqu(se.kartu_tanda_penduduk_.nama),n.xp6(3),n.Oqu(se.id),n.xp6(3),n.Oqu(n.xi3(10,5,se.created_at,"d-MM-y"))}}function wt(at,de){if(1&at&&(n.TgZ(0,"div",0)(1,"div",5)(2,"h2",7)(3,"b",8),n._uU(4,"Pengguna"),n.qZA()()(),n.TgZ(5,"div",5)(6,"mat-selection-list",9),n.YNc(7,Lt,11,8,"mat-list-option",10),n.ALo(8,"slice"),n.qZA()()()),2&at){const se=n.oxw();n.xp6(6),n.Q6J("multiple",!1),n.xp6(1),n.Q6J("ngForOf",n.Dn7(8,2,se.searchResult.penggunaResults,0,5))}}let Pe=(()=>{class at{constructor(se,ge,ke,st,qe,bt,At,je,ve,T,A){this.gs=se,this.news=ge,this.ds=ke,this.nihon=st,this.anime=qe,this.dorama=bt,this.fansub=At,this.berkas=je,this.user=ve,this.ls=T,this.wb=A,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 se=this.ls.getItem(this.gs.localStorageKeys.SearchResults,!0);if(se)for(const[ge,ke]of Object.entries(se))this.searchResult[ge]=ke}}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(se){this.gs.log("[SEARCH_VALUE_CHANGED]",se),this.searchResult.q=se.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(se){this.gs.log("[HIRAKATA_OPEN_EDICT]",se),this.subsDialog=this.ds.openEdictDialog({data:{character:se.character,context:se.context,freq:se.freq,gakken:se.gakken,harlpern_kkld:se.harlpern_kkld,harlpern_njecd:se.harlpern_njecd,jlpt:se.jlpt,maniette:se.maniette,nelson_c:se.nelson_c,nelson_n:se.nelson_n,remember:se.remember,school:se.school,skip:se.skip,stroke:se.stroke,translate:se.translate,v_kunyomi:se.v_kunyomi,v_onyomi:se.v_onyomi},disableClose:!1}).afterClosed().subscribe({next:ge=>{this.gs.log("[EDICT_DIALOG_CLOSED]",ge),this.subsDialog.unsubscribe()}})}getNews(){this.subsBerita&&this.subsBerita.unsubscribe(),this.subsBerita=this.news.getAllNews(this.searchResult.q,1,5).subscribe({next:se=>{this.gs.log("[NEWS_SEARCH_SUCCESS]",se),this.searchResult.beritaResults=se.results},error:se=>{this.gs.log("[NEWS_SEARCH_ERROR]",se,"error")}})}getKanji(){this.subsKanji&&this.subsKanji.unsubscribe(),this.subsKanji=this.nihon.getAllKanji("","",this.searchResult.q,1,5).subscribe({next:se=>{this.gs.log("[KANJI_SEARCH_SUCCESS]",se),this.searchResult.kanjiResults=se.results},error:se=>{this.gs.log("[KANJI_SEARCH_ERROR]",se,"error")}})}getAnimeTitle(se){return se.replace(/[^a-zA-Z0-9]/g,"-")}getAnime(){this.subsAnime&&this.subsAnime.unsubscribe(),this.subsAnime=this.anime.searchAnime(this.searchResult.q).subscribe({next:se=>{this.gs.log("[ANIME_SEARCH_SUCCESS]",se),this.searchResult.animeResults=se.results},error:se=>{this.gs.log("[ANIME_SEARCH_ERROR]",se,"error")}})}getDorama(){this.subsDorama&&this.subsDorama.unsubscribe(),this.subsDorama=this.dorama.searchDorama(this.searchResult.q).subscribe({next:se=>{this.gs.log("[DORAMA_SEARCH_SUCCESS]",se),this.searchResult.doramaResults=se.results},error:se=>{this.gs.log("[DORAMA_SEARCH_ERROR]",se,"error")}})}getFansub(){this.subsFansub&&this.subsFansub.unsubscribe(),this.subsFansub=this.fansub.searchFansub(this.searchResult.q,1,5).subscribe({next:se=>{this.gs.log("[FANSUB_SEARCH_SUCCESS]",se),this.searchResult.fansubResults=se.results},error:se=>{this.gs.log("[FANSUB_SEARCH_ERROR]",se,"error")}})}getBerkas(){this.subsBerkas&&this.subsBerkas.unsubscribe(),this.subsBerkas=this.berkas.getAllBerkas(this.searchResult.q,1,5,"","",!0).subscribe({next:se=>{this.gs.log("[BERKAS_SEARCH_SUCCESS]",se),this.searchResult.berkasResults=se.results},error:se=>{this.gs.log("[BERKAS_SEARCH_ERROR]",se,"error")}})}getPengguna(){this.subsPengguna&&this.subsPengguna.unsubscribe(),this.subsPengguna=this.user.getAllUser(this.searchResult.q,1,5).subscribe({next:se=>{this.gs.log("[PENGGUNA_SEARCH_SUCCESS]",se),this.searchResult.penggunaResults=se.results},error:se=>{this.gs.log("[PENGGUNA_SEARCH_ERROR]",se,"error")}})}getRss(){this.subsRss&&this.subsRss.unsubscribe(),this.subsRss=this.fansub.getRssFeedFansubAll(null,this.searchResult.q,1,5).subscribe({next:se=>{this.gs.log("[RSS_SEARCH_SUCCESS]",se),this.searchResult.rssResults=se.results},error:se=>{this.gs.log("[RSS_SEARCH_ERROR]",se,"error")}})}openRssFeed(se){this.gs.log("[RSS_FEED_LIST_OPEN_URL]",se);const ge=se.fansub_.urls.web;if(ge){const ke=new URL(ge);let st=`${ke.protocol}//${ke.host}`;se.link.startsWith("/")||(st+="/"),st+=se.link,this.wb.winboxOpenUri(st)}}}return at.\u0275fac=function(se){return new(se||at)(n.Y36(r.U),n.Y36(l.Y),n.Y36(u.x),n.Y36(o.a),n.Y36(E.o),n.Y36(x.X),n.Y36(d.T),n.Y36(g.A),n.Y36(v.K),n.Y36(_.n),n.Y36(m.N))},at.\u0275cmp=n.Xpm({type:at,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(se,ge){1&se&&(n.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),n._uU(4,"Cari Apapun Di Sini ..."),n.qZA(),n.TgZ(5,"input",3),n.NdJ("keyup.enter",function(st){return ge.applyFilter(st)})("ngModelChange",function(st){return ge.searchResult.q=st}),n.qZA(),n._UZ(6,"mat-icon",4),n.qZA()(),n.TgZ(7,"div",5),n.YNc(8,$,9,6,"div",6),n.YNc(9,ee,9,6,"div",6),n.YNc(10,oe,9,6,"div",6),n.YNc(11,ae,9,6,"div",6),n.YNc(12,fe,9,6,"div",6),n.YNc(13,Ve,9,6,"div",6),n.YNc(14,kt,9,6,"div",6),n.YNc(15,wt,9,6,"div",6),n.qZA()()),2&se&&(n.xp6(2),n.Q6J("color","accent"),n.xp6(3),n.Q6J("ngModel",ge.searchResult.q),n.xp6(3),n.Q6J("ngIf",ge.searchResult.beritaResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.kanjiResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.animeResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.doramaResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.fansubResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.rssResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.berkasResults.length>0),n.xp6(1),n.Q6J("ngIf",ge.searchResult.penggunaResults.length>0))},dependencies:[C.sg,C.O5,O.rH,H.Fj,H.JJ,H.nD,H.On,G.X2,Y.Hw,V.KE,V.hX,V.R9,ne.Nt,me.eA,me.Ub,me.vS,C.OU,C.uU]}),at})();var Ue=s(466),le=s(3546);function Ce(at,de){if(1&at&&n._UZ(0,"mat-icon",12),2&at){const se=n.oxw().$implicit;n.Q6J("fontIcon",se.icon)}}function pe(at,de){if(1&at&&(n.TgZ(0,"div",6)(1,"mat-card")(2,"mat-card-header",7)(3,"div",8),n.YNc(4,Ce,1,1,"mat-icon",9),n.qZA(),n.TgZ(5,"mat-card-title",10)(6,"h3",11),n._uU(7),n.qZA()(),n.TgZ(8,"mat-card-subtitle",11),n._uU(9),n.qZA()()()()),2&at){const se=de.$implicit;n.xp6(2),n.MGl("routerLink","/admin-mod/",se.url,""),n.xp6(1),n.Udp("background-image","url("+(se.image_url?se.image_url:"")+")"),n.xp6(1),n.Q6J("ngIf",se.icon),n.xp6(3),n.Oqu(se.name),n.xp6(2),n.Oqu(se.deskripsi)}}let Le=(()=>{class at{constructor(se,ge){this.gs=se,this.adm=ge}get ADM(){return this.adm}ngOnInit(){}}return at.\u0275fac=function(se){return new(se||at)(n.Y36(r.U),n.Y36(Ue.l))},at.\u0275cmp=n.Xpm({type:at,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(se,ge){1&se&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h2",2)(3,"b",3),n._uU(4,"Menu Admin Lainnya"),n.qZA()()(),n.TgZ(5,"div",4),n.YNc(6,pe,10,6,"div",5),n.qZA()()),2&se&&(n.xp6(6),n.Q6J("ngForOf",ge.ADM.menuList))},dependencies:[C.sg,C.O5,O.rH,le.a8,le.dk,le.n5,le.$j,le.kc,Y.Hw]}),at})();var Oe=s(1617),ot=s(8381);let yt=(()=>{class at{constructor(se,ge){this.gs=se,this.ss=ge,this.sidePanel=null,this.componentView=null}toggleSidePanel(se){this.componentView?this.closeSidePanel():this.openSidePanel(se)}closeSidePanel(){this.sidePanel.close()}onClose(){this.componentView=null}openSidePanel(se){if("string"!=typeof se)this.componentView=se;else if("SearchAllComponent"===se)this.componentView=Pe;else if("AdminNavigationComponent"===se)this.componentView=Le;else if("LiveChatComponent"===se){if(!this.ss.mySocket.id)return;this.componentView=Oe.u}this.sidePanel.open()}}return at.\u0275fac=function(se){return new(se||at)(n.LFG(r.U),n.LFG(ot.R))},at.\u0275prov=n.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})()},9775:(Qe,F,s)=>{"use strict";s.d(F,{H:()=>E});var n=s(5861),r=s(4650),l=s(9784),u=s(257),o=s(7845);let E=(()=>{class x{constructor(g,v,_,m){this.su=g,this.sp=v,this.gs=_,this.ds=m,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,n.Z)(function*(){if(!g.isUpdateAvailable){g.isUpdateAvailable=!0;try{g.isUpdateAvailable=yield g.su.checkForUpdate()}catch(v){g.gs.log("[SERVICE_WORKER_CHECK_FOR_UPDATE_ERROR]",v,"error")}}return g.gs.log("[SERVICE_WORKER_UPDATE_AVAILABLE]",g.isUpdateAvailable),g.isUpdateAvailable})()}activateUpdate(){var g=this;return(0,n.Z)(function*(){let v=!1;if(g.isUpdateAvailable)try{v=yield g.su.activateUpdate(),g.isUpdateAvailable=!1,g.dialogRef?.close(null),g.subsDialog?.unsubscribe(),g.dialogRef=g.ds.openInfoDialog({data:{title:"Pembaharuan "+(v?"Berhasil":"Gagal"),htmlMessage:"Ingin Refresh Halaman (?)",confirmText:"Ya",cancelText:"Tidak"}}),g.subsDialog=g.dialogRef?.afterClosed().subscribe({next:_=>{g.gs.log("[INFO_DIALOG_CLOSED]",_),g.dialogRef=null,g.subsDialog.unsubscribe(),!0===_&&window.location.reload()}})}catch(_){g.gs.log("[SERVICE_WORKER_ACTIVATE_UPDATE_ERROR]",_,"error")}return g.gs.log("[SERVICE_WORKER_UPDATE_FINISH]",v),v})()}initialize(){var g=this;return(0,n.Z)(function*(){var v;g.swuVerUpd=g.su.versionUpdates.subscribe({next:(v=(0,n.Z)(function*(_){g.gs.log(`[SERVICE_WORKER_${_.type}]`,_),"VERSION_DETECTED"===_.type&&(g.dialogRef?.close(null),g.subsDialog?.unsubscribe()),"VERSION_READY"===_.type&&(g.dialogRef=g.ds.openInfoDialog({data:{title:"Ada Pembaharuan Tersedia",htmlMessage:`\n
Sekarang :: ${_.currentVersion?.hash?.slice(0,8)}
\n
Tersedia :: ${_.latestVersion?.hash?.slice(0,8)}
\n `,confirmText:"OK"}})),"VERSION_INSTALLATION_FAILED"===_.type&&(g.dialogRef=g.ds.openInfoDialog({data:{title:"Pembaharuan Gagal",htmlMessage:`\n
Versi :: ${_.version?.hash?.slice(0,8)}
\n
Error :: ${_.error}
\n `,confirmText:"Ulangi",cancelText:"Lewati"}})),g.subsDialog=g.dialogRef?.afterClosed().subscribe({next:m=>{g.gs.log("[INFO_DIALOG_CLOSED]",m),!0===m&&g.activateUpdate(),g.dialogRef=null,g.subsDialog.unsubscribe()}})}),function(m){return v.apply(this,arguments)})}),g.swuUnRecv=g.su.unrecoverable.subscribe({next:v=>{g.gs.log(`[SERVICE_WORKER_${v.type}]`,v.reason),g.dialogRef?.close(null),g.subsDialog?.unsubscribe(),g.dialogRef=g.ds.openInfoDialog({data:{title:"Service Worker Bermasalah",htmlMessage:`Kesalahan :: ${v.reason}`,confirmText:"Refresh Halaman"}}),g.subsDialog=g.dialogRef?.afterClosed().subscribe({next:_=>{g.gs.log("[INFO_DIALOG_CLOSED]",_),g.dialogRef=null,g.subsDialog.unsubscribe(),window.location.reload()}})}})})()}}return x.\u0275fac=function(g){return new(g||x)(r.LFG(l.yO),r.LFG(l.Mk),r.LFG(u.U),r.LFG(o.x))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},8381:(Qe,F,s)=>{"use strict";s.d(F,{R:()=>Y});var n=s(5861),r=s(685),l=s.n(r),u=s(1135),o=s(6271),E=s(5934),x=s(4650),d=s(4137),g=s(1390),v=s(257),_=s(3e3),m=s(7140),C=s(7),O=s(6925),H=s(7845),G=s(9775);let Y=(()=>{class V{constructor(me,j,$,N,ee,he,oe,Ie,ae){this.as=me,this.router=j,this.gs=$,this.bs=N,this.notif=ee,this.lms=he,this.toast=oe,this.ds=Ie,this.sw=ae,this.mySocket=null,this.visitor=0,this.latency=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 j,me=this;this.subsServer=this.currentServer.subscribe({next:(j=(0,n.Z)(function*($){$&&$.isMaintenance&&me.currentServerValue?.isMaintenance!==$.isMaintenance&&(me.subsDialog=(yield me.ds.openMaintenanceDialog()).afterClosed().subscribe({next:N=>{me.gs.log("[INFO_DIALOG_CLOSED]",N),me.subsDialog.unsubscribe()}})),me.currentServerValue=$}),function(N){return j.apply(this,arguments)})})}pingPong(){this.socketEmitVolatile("ping-pong",{},me=>{this.gs.log("[SOCKET_PING_PONG]",me),"github"in me&&me.github&&(this.github=me.github),"visitor"in me&&me.visitor&&(this.visitor=me.visitor),"server"in me&&me.server&&this.currentServerSubject.next(me.server)}),this.socketEmitVolatile("stats-server",{},me=>{this.gs.log("[SOCKET_STATS_SERVER]",me),this.statsServer=me})}socketListen(){var me=this;this.mySocket.on("connect",()=>{this.gs.log("[SOCKET_CONNECTED]",this.mySocket.id),this.pingPong(),this.notif.removeNotif(`${E.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",j=>{this.gs.log("[SOCKET_DISCONNECTED]",j),this.notif.addNotif(null,`${E.N.siteName.toUpperCase()}_SOCKET_DISCONNECTED`,"warning","Sambungan Terputus","Tidak dapat terhubung dengan Server melalui WebSocket !!",!1),this.sw.isUpdateAvailable=!1}),this.mySocket.on("ping",()=>{this.gs.log("[SOCKET_PING]",Date.now())}),this.mySocket.on("server-config",j=>{this.currentServerSubject.next(j)}),this.mySocket.on("pong",j=>{this.latency=j,this.gs.log("[SOCKET_PONG]",`${Date.now()} => ${j} ms`),this.pingPong(),this.sw.checkForUpdate()}),this.mySocket.on("visitor",j=>{this.gs.log("[SOCKET_VISITOR]",j),this.visitor=j}),this.mySocket.on("console-log",j=>{this.gs.log("[SOCKET_CONSOLE_LOG]",j),this.serverLog=`${j}\r\n${this.serverLog}`}),this.mySocket.on("force-redirect",j=>{this.gs.log("[SOCKET_REDIRECT]",j.message),this.toast.info(j.message,j.title,null,!0),this.router.navigateByUrl(j.url)}),this.mySocket.on("force-logout",j=>{this.gs.log("[SOCKET_EXIT]",j),this.toast.info(j,"Keluar Paksa!",null,!0),this.as.logout()}),this.mySocket.on("new-notification",j=>{this.gs.log("[SOCKET_NOTIFICATION]",j),this.notif.addNotif(j.notifCreator,j.notifData.id,j.notifData.type,j.notifData.title,j.notifData.content,j.notifData.dismissible,j.notifData.timeout)}),this.mySocket.on("new-information",function(){var j=(0,n.Z)(function*($){me.gs.log("[SOCKET_INFORMATION]",$),me.subsDialog=me.ds.openInfoDialog({data:{title:$.infoData.title,htmlMessage:$.infoData.content,confirmText:$.infoData.confirm,cancelText:$.infoData.cancel},disableClose:$.infoData.close}).afterClosed().subscribe({next:N=>{me.gs.log("[INFO_DIALOG_CLOSED]",N),me.subsDialog.unsubscribe()}})});return function($){return j.apply(this,arguments)}}()),this.mySocket.on("new-berkas",j=>{this.gs.log("[SOCKET_BERKAS]",j),this.badgeBerkas.push(j);const $=this.lms.contentMenus.find(N=>"/berkas"===N.link);$&&($.badge=this.badgeBerkas.length>0?this.badgeBerkas.length:null)}),this.mySocket.on("new-fansub",j=>{this.gs.log("[SOCKET_FANSUB]",j),this.badgeFansub.push(j);const $=this.lms.contentMenus.find(N=>"/fansub"===N.link);$&&($.badge=this.badgeFansub.length>0?this.badgeFansub.length:null)}),this.mySocket.on("new-news",j=>{this.gs.log("[SOCKET_NEWS]",j),this.badgeNews.push(j);const $=this.lms.mainMenus.find(N=>"/news"===N.link);$&&($.badge=this.badgeNews.length>0?this.badgeNews.length:null)}),this.mySocket.on("receive-chat",j=>{this.gs.log("[SOCKET_RECEIVE-CHAT]",j),j.room_id===o.t.socketRoomNameGlobalPublic?this.globalChatRoom.push(j):j.room_id===o.t.socketRoomNameGlobalFansub?this.fansubChatRoom.push(j):j.room_id!==o.t.socketRoomNameServerLogs&&this.currentChatRoom.push(j),this.messageChatUnreadCount++}),this.mySocket.on("room-info",j=>{this.gs.log("[SOCKET_ROOM-INFO]",j),this.gs.cleanObject(j?.member_list),j.room_id===o.t.socketRoomNameGlobalPublic?this.globalRoomSubject.next(j):j.room_id===o.t.socketRoomNameGlobalFansub?this.fansubRoomSubject.next(j):j.room_id!==o.t.socketRoomNameServerLogs&&this.currentRoomSubject.next(j)}),this.mySocket.on("multiple-connection",(j,$)=>{this.gs.log("[SOCKET_MULTIPLE-CONNECTION]",j),this.toast.warning("Sesi lain telah aktif!","Koneksi Duplikat",null,!0),this.mySocket.io.reconnection(!1),this.bs.clear(),$&&$()}),this.mySocket.on("quiz-question",j=>{if(this.gs.log("[SOCKET_QUIZ]",j),this.gs.routerData.question&&this.gs.routerData.options){const{room_id:$,...N}=j;this.quizRoom[$]=N,this.quizRoom[$].options=this.gs.shuffle(this.quizRoom[$].options)}})}socketEmit(me,j={},$=null){this.as.token&&(j.token=this.as.token),$?this.mySocket?.emit(me,j,$):this.mySocket?.emit(me,j)}socketEmitVolatile(me,j={},$=null){this.socketEmit(me,j,$)}socketLeaveAndJoinNewRoom(me,j){this.gs.log(`[SOCKET_LEAVE-JOIN-ROOM] ${me} => ${j}`),this.socketEmit("leave-join-room",{oldRoom:me,newRoom:j})}}return V.\u0275fac=function(me){return new(me||V)(x.LFG(d.e),x.LFG(g.F0),x.LFG(v.U),x.LFG(_.z),x.LFG(m.T),x.LFG(C.S),x.LFG(O.k),x.LFG(H.x),x.LFG(G.H))},V.\u0275prov=x.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},6925:(Qe,F,s)=>{"use strict";s.d(F,{k:()=>o});var n=s(4650),r=s(257),l=s(7185),u=s(7140);let o=(()=>{class E{constructor(d,g,v){this.gs=d,this.toast=g,this.notif=v}remove(d){return this.toast.remove(d)}success(d,g,v,_=!1){return _&&this.notif.addNotif(null,Date.now(),"success",g,d),this.gs.isDesktop||_?this.toast.success(d,g,v):null}warning(d,g,v,_=!1){return _&&this.notif.addNotif(null,Date.now(),"warning",g,d),this.gs.isDesktop||_?this.toast.warning(d,g,v):null}info(d,g,v,_=!1){return _&&this.notif.addNotif(null,Date.now(),"info",g,d),this.gs.isDesktop||_?this.toast.info(d,g,v):null}error(d,g,v,_=!1){return _&&this.notif.addNotif(null,Date.now(),"danger",g,d),this.gs.isDesktop||_?this.toast.error(d,g,v):null}}return E.\u0275fac=function(d){return new(d||E)(n.LFG(r.U),n.LFG(l._W),n.LFG(u.T))},E.\u0275prov=n.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},8058:(Qe,F,s)=>{"use strict";s.d(F,{K:()=>E});var n=s(8505),r=s(4650),l=s(9731),u=s(4137),o=s(257);let E=(()=>{class x{constructor(g,v,_){this.api=g,this.as=v,this.gs=_}delete(g){return this.api.deleteData(`/user/${g}`)}checkBanned(g){return this.api.getData(`/banned?username=${g}`)}getAllUser(g="",v=1,_=10,m="",C=""){return this.api.getData(`/user?q=${g}&page=${v}&row=${_}&sort=${m}&order=${C}`)}getUserData(g){return this.api.getData(`/user/${g}`)}updateUser(g,v){return this.api.putData(`/user/${g}`,v).pipe((0,n.b)(_=>{this.as.token=_.result.token}))}getUserBerkas(g,v="",_=1,m=10,C="",O=""){return this.api.getData(`/user/${g}/feed-berkas?q=${v}&page=${_}&row=${m}&sort=${C}&order=${O}`)}getUserFeedComment(g,v="",_=1,m=10,C="",O=""){return this.api.getData(`/user/${g}/feed-comment?q=${v}&page=${_}&row=${m}&sort=${C}&order=${O}`)}getUserFeedLikeDislike(g,v="",_=1,m=10,C="",O=""){return this.api.getData(`/user/${g}/feed-likedislike?q=${v}&page=${_}&row=${m}&sort=${C}&order=${O}`)}getUserFeedVisit(g,v="",_=1,m=10,C="",O=""){return this.api.getData(`/user/${g}/feed-visit?q=${v}&page=${_}&row=${m}&sort=${C}&order=${O}`)}sosmedLogin(g){return this.api.postData("/verify-sosmed",g)}getUserGroup(g){return this.api.getData(`/user/${g}/group`)}findLostAccount(g){return this.api.postData("/lost-account-find",g)}resetLostAccount(g){return this.api.postData("/lost-account-reset",g)}}return x.\u0275fac=function(g){return new(g||x)(r.LFG(l.s),r.LFG(u.e),r.LFG(o.U))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},8020:(Qe,F,s)=>{"use strict";s.d(F,{N:()=>E});var n=s(5861),r=s(4650),l=s(257),u=s(7845),o=s(8381);let E=(()=>{class x{constructor(g,v,_){this.gs=g,this.ds=v,this.ss=_,this.currentServer=null,this.openedWindow={},this.subsDialog=null,this.subsServer=null,this.gs.isBrowser&&(this.subsServer=this.ss.currentServer.subscribe({next:m=>this.currentServer=m}))}confirmationOpenUrl(g,v){var _=this;return(0,n.Z)(function*(){_.subsDialog=(yield _.ds.openKonfirmasiDialog(`Ingin Buka Di Tab ${"_self"===v?"Ini":"Baru"} ?`,g,!1)).afterClosed().subscribe({next:m=>{_.gs.log("[INFO_DIALOG_CLOSED]",m),!0===m&&window.open(g,v),_.subsDialog.unsubscribe()}})})()}winboxOpenUri(g,v="_blank",_=!1){if(g.startsWith("http://")&&(g="https://"+g.slice(7,g.length)),g.startsWith("/api/"))this.confirmationOpenUrl(g,"_self");else if(this.currentServer?.winboxOpenLink&&!this.gs.includesOneOf(g,["ftp://","mailto:"])||_){const m=Date.now();this.openedWindow[m]=new WinBox(g,{id:m,title:g,url:g,class:"no-full no-shadow no-max",background:"#7b1fa2",x:"center",y:"center",top:56,right:0,bottom:32,left:64,onclose:C=>(this.confirmationOpenUrl(g,v),!1)})}else this.confirmationOpenUrl(g,v)}}return x.\u0275fac=function(g){return new(g||x)(r.LFG(l.U),r.LFG(u.x),r.LFG(o.R))},x.\u0275prov=r.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},6271:(Qe,F,s)=>{"use strict";s.d(F,{t:()=>n});const n={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","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:64e6,fileSizeAttachmentChunkDiscordLimit:8e6,fileTypeAttachmentStreamable:["mkv","mp4"],fileSizeAttachmentTotalLimit:2e9,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"]}},5934:(Qe,F,s)=>{"use strict";s.d(F,{N:()=>r});var n=s(6271);const r={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:n.t.torrentTracker,iceServers:[{urls:n.t.torrentIceStunServer}]}}},1141:(Qe,F,s)=>{"use strict";var n=s(1481),r=s(4650),l=s(529),u=s(9646),o=s(9300),E=s(5698),x=s(8505);function d(L){const y={};for(const h of L.keys()){const w=L.getAll(h);null!==w&&(y[h]=w)}return y}let g=(()=>{class L{constructor(h,w){this.transferState=w,this.isCacheActive=!0,h.isStable.pipe((0,o.h)(re=>re),(0,E.q)(1)).subscribe(()=>{this.isCacheActive=!1})}invalidateCacheEntry(h){Object.keys(this.transferState.store).forEach(w=>w.includes(h)?this.transferState.remove((0,n.Cb)(w)):null)}makeCacheKey(h,w,re){const Se=re.keys().sort().map(Ct=>`${Ct}=${re.getAll(Ct)}`).join("&");return(0,n.Cb)(("GET"===h?"G.":"H.")+w+"?"+Se)}intercept(h,w){if("GET"!==h.method&&"HEAD"!==h.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(h.url)),!this.isCacheActive)return w.handle(h);const re=this.makeCacheKey(h.method,h.url,h.params);if(this.transferState.hasKey(re)){const Se=this.transferState.get(re,{});return(0,u.of)(new l.Zn({body:Se.body,headers:new l.WM(Se.headers),status:Se.status,statusText:Se.statusText,url:Se.url}))}return w.handle(h).pipe((0,x.b)(ht=>{ht instanceof l.Zn&&this.transferState.set(re,{body:ht.body,headers:d(ht.headers),status:ht.status,statusText:ht.statusText,url:ht.url||""})}))}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(r.z2F),r.LFG(n.ki))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})(),v=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({providers:[g,{provide:l.TP,useExisting:g,multi:!0}],imports:[n.Cu]}),L})();var C=s(7340);function H(L){return new r.vHH(3e3,!1)}function qe(){return typeof window<"u"&&typeof window.document<"u"}function bt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function At(L){switch(L.length){case 0:return new C.ZN;case 1:return L[0];default:return new C.ZE(L)}}function je(L,y,h,w,re=new Map,Se=new Map){const ht=[],Ct=[];let Wt=-1,tn=null;if(w.forEach(En=>{const Sn=En.get("offset"),vi=Sn==Wt,fi=vi&&tn||new Map;En.forEach((Zn,ii)=>{let Hi=ii,er=Zn;if("offset"!==ii)switch(Hi=y.normalizePropertyName(Hi,ht),er){case C.k1:er=re.get(ii);break;case C.l3:er=Se.get(ii);break;default:er=y.normalizeStyleValue(ii,Hi,er,ht)}fi.set(Hi,er)}),vi||Ct.push(fi),tn=fi,Wt=Sn}),ht.length)throw function le(L){return new r.vHH(3502,!1)}();return Ct}function ve(L,y,h,w){switch(y){case"start":L.onStart(()=>w(h&&T(h,"start",L)));break;case"done":L.onDone(()=>w(h&&T(h,"done",L)));break;case"destroy":L.onDestroy(()=>w(h&&T(h,"destroy",L)))}}function T(L,y,h){const Se=A(L.element,L.triggerName,L.fromState,L.toState,y||L.phaseName,h.totalTime??L.totalTime,!!h.disabled),ht=L._data;return null!=ht&&(Se._data=ht),Se}function A(L,y,h,w,re="",Se=0,ht){return{element:L,triggerName:y,fromState:h,toState:w,phaseName:re,totalTime:Se,disabled:!!ht}}function U(L,y,h){let w=L.get(y);return w||L.set(y,w=h),w}function Te(L){const y=L.indexOf(":");return[L.substring(1,y),L.slice(y+1)]}let Me=(L,y)=>!1,xe=(L,y,h)=>[],Be=null;function ce(L){const y=L.parentNode||L.host;return y===Be?null:y}(bt()||typeof Element<"u")&&(qe()?(Be=(()=>document.documentElement)(),Me=(L,y)=>{for(;y;){if(y===L)return!0;y=ce(y)}return!1}):Me=(L,y)=>L.contains(y),xe=(L,y,h)=>{if(h)return Array.from(L.querySelectorAll(y));const w=L.querySelector(y);return w?[w]:[]});let Re=null,vt=!1;const Rn=Me,gn=xe;let pt=(()=>{class L{validateStyleProperty(h){return function ft(L){Re||(Re=function nn(){return typeof document<"u"?document.body:null}()||{},vt=!!Re.style&&"WebkitAppearance"in Re.style);let y=!0;return Re.style&&!function z(L){return"ebkit"==L.substring(1,6)}(L)&&(y=L in Re.style,!y&&vt&&(y="Webkit"+L.charAt(0).toUpperCase()+L.slice(1)in Re.style)),y}(h)}matchesElement(h,w){return!1}containsElement(h,w){return Rn(h,w)}getParentElement(h){return ce(h)}query(h,w,re){return gn(h,w,re)}computeStyle(h,w,re){return re||""}animate(h,w,re,Se,ht,Ct=[],Wt){return new C.ZN(re,Se)}}return L.\u0275fac=function(h){return new(h||L)},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})(),ut=(()=>{class L{}return L.NOOP=new pt,L})();const Rt="ng-enter",jt="ng-leave",un="ng-trigger",Mn=".ng-trigger",zt="ng-animating",ln=".ng-animating";function Ke(L){if("number"==typeof L)return L;const y=L.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Et(parseFloat(y[1]),y[2])}function Et(L,y){return"s"===y?1e3*L:L}function Ht(L,y,h){return L.hasOwnProperty("duration")?L:function rn(L,y,h){let re,Se=0,ht="";if("string"==typeof L){const Ct=L.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ct)return y.push(H()),{duration:0,delay:0,easing:""};re=Et(parseFloat(Ct[1]),Ct[2]);const Wt=Ct[3];null!=Wt&&(Se=Et(parseFloat(Wt),Ct[4]));const tn=Ct[5];tn&&(ht=tn)}else re=L;if(!h){let Ct=!1,Wt=y.length;re<0&&(y.push(function G(){return new r.vHH(3100,!1)}()),Ct=!0),Se<0&&(y.push(function Y(){return new r.vHH(3101,!1)}()),Ct=!0),Ct&&y.splice(Wt,0,H())}return{duration:re,delay:Se,easing:ht}}(L,y,h)}function Nn(L,y={}){return Object.keys(L).forEach(h=>{y[h]=L[h]}),y}function Wn(L){const y=new Map;return Object.keys(L).forEach(h=>{y.set(h,L[h])}),y}function $e(L,y=new Map,h){if(h)for(let[w,re]of h)y.set(w,re);for(let[w,re]of L)y.set(w,re);return y}function Pt(L,y,h){return h?y+":"+h+";":""}function Yt(L){let y="";for(let h=0;h{const Se=be(re);h&&!h.has(re)&&h.set(re,L.style[Se]),L.style[Se]=w}),bt()&&Yt(L))}function On(L,y){L.style&&(y.forEach((h,w)=>{const re=be(w);L.style[re]=""}),bt()&&Yt(L))}function Bn(L){return Array.isArray(L)?1==L.length?L[0]:(0,C.vP)(L):L}const Li=new RegExp("{{\\s*(.+?)\\s*}}","g");function kn(L){let y=[];if("string"==typeof L){let h;for(;h=Li.exec(L);)y.push(h[1]);Li.lastIndex=0}return y}function Oi(L,y,h){const w=L.toString(),re=w.replace(Li,(Se,ht)=>{let Ct=y[ht];return null==Ct&&(h.push(function ne(L){return new r.vHH(3003,!1)}()),Ct=""),Ct.toString()});return re==w?L:re}function Ye(L){const y=[];let h=L.next();for(;!h.done;)y.push(h.value),h=L.next();return y}const we=/-+([a-z0-9])/g;function be(L){return L.replace(we,(...y)=>y[1].toUpperCase())}function D(L){return L.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Xe(L,y,h){switch(y.type){case 7:return L.visitTrigger(y,h);case 0:return L.visitState(y,h);case 1:return L.visitTransition(y,h);case 2:return L.visitSequence(y,h);case 3:return L.visitGroup(y,h);case 4:return L.visitAnimate(y,h);case 5:return L.visitKeyframes(y,h);case 6:return L.visitStyle(y,h);case 8:return L.visitReference(y,h);case 9:return L.visitAnimateChild(y,h);case 10:return L.visitAnimateRef(y,h);case 11:return L.visitQuery(y,h);case 12:return L.visitStagger(y,h);default:throw function me(L){return new r.vHH(3004,!1)}()}}function Zt(L,y){return window.getComputedStyle(L)[y]}function oi(L,y){const h=[];return"string"==typeof L?L.split(/\s*,\s*/).forEach(w=>function pi(L,y,h){if(":"==L[0]){const Wt=function rr(L,y){switch(L){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,w)=>parseFloat(w)>parseFloat(h);case":decrement":return(h,w)=>parseFloat(w) *"}}(L,h);if("function"==typeof Wt)return void y.push(Wt);L=Wt}const w=L.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==w||w.length<4)return h.push(function kt(L){return new r.vHH(3015,!1)}()),y;const re=w[1],Se=w[2],ht=w[3];y.push(sr(re,ht));"<"==Se[0]&&!("*"==re&&"*"==ht)&&y.push(sr(ht,re))}(w,h,y)):h.push(L),h}const wi=new Set(["true","1"]),Bi=new Set(["false","0"]);function sr(L,y){const h=wi.has(L)||Bi.has(L),w=wi.has(y)||Bi.has(y);return(re,Se)=>{let ht="*"==L||L==re,Ct="*"==y||y==Se;return!ht&&h&&"boolean"==typeof re&&(ht=re?wi.has(L):Bi.has(L)),!Ct&&w&&"boolean"==typeof Se&&(Ct=Se?wi.has(y):Bi.has(y)),ht&&Ct}}const yr=new RegExp("s*:selfs*,?","g");function nr(L,y,h,w){return new $r(L).build(y,h,w)}class $r{constructor(y){this._driver=y}build(y,h,w){const re=new Ze(h);return this._resetContextStyleTimingState(re),Xe(this,Bn(y),re)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,h){let w=h.queryCount=0,re=h.depCount=0;const Se=[],ht=[];return"@"==y.name.charAt(0)&&h.errors.push(function $(){return new r.vHH(3006,!1)}()),y.definitions.forEach(Ct=>{if(this._resetContextStyleTimingState(h),0==Ct.type){const Wt=Ct,tn=Wt.name;tn.toString().split(/\s*,\s*/).forEach(En=>{Wt.name=En,Se.push(this.visitState(Wt,h))}),Wt.name=tn}else if(1==Ct.type){const Wt=this.visitTransition(Ct,h);w+=Wt.queryCount,re+=Wt.depCount,ht.push(Wt)}else h.errors.push(function N(){return new r.vHH(3007,!1)}())}),{type:7,name:y.name,states:Se,transitions:ht,queryCount:w,depCount:re,options:null}}visitState(y,h){const w=this.visitStyle(y.styles,h),re=y.options&&y.options.params||null;if(w.containsDynamicStyles){const Se=new Set,ht=re||{};w.styles.forEach(Ct=>{Ct instanceof Map&&Ct.forEach(Wt=>{kn(Wt).forEach(tn=>{ht.hasOwnProperty(tn)||Se.add(tn)})})}),Se.size&&(Ye(Se.values()),h.errors.push(function ee(L,y){return new r.vHH(3008,!1)}()))}return{type:0,name:y.name,style:w,options:re?{params:re}:null}}visitTransition(y,h){h.queryCount=0,h.depCount=0;const w=Xe(this,Bn(y.animation),h);return{type:1,matchers:oi(y.expr,h.errors),animation:w,queryCount:h.queryCount,depCount:h.depCount,options:$t(y.options)}}visitSequence(y,h){return{type:2,steps:y.steps.map(w=>Xe(this,w,h)),options:$t(y.options)}}visitGroup(y,h){const w=h.currentTime;let re=0;const Se=y.steps.map(ht=>{h.currentTime=w;const Ct=Xe(this,ht,h);return re=Math.max(re,h.currentTime),Ct});return h.currentTime=re,{type:3,steps:Se,options:$t(y.options)}}visitAnimate(y,h){const w=function It(L,y){if(L.hasOwnProperty("duration"))return L;if("number"==typeof L)return dn(Ht(L,y).duration,0,"");const h=L;if(h.split(/\s+/).some(Se=>"{"==Se.charAt(0)&&"{"==Se.charAt(1))){const Se=dn(0,0,"");return Se.dynamic=!0,Se.strValue=h,Se}const re=Ht(h,y);return dn(re.duration,re.delay,re.easing)}(y.timings,h.errors);h.currentAnimateTimings=w;let re,Se=y.styles?y.styles:(0,C.oB)({});if(5==Se.type)re=this.visitKeyframes(Se,h);else{let ht=y.styles,Ct=!1;if(!ht){Ct=!0;const tn={};w.easing&&(tn.easing=w.easing),ht=(0,C.oB)(tn)}h.currentTime+=w.duration+w.delay;const Wt=this.visitStyle(ht,h);Wt.isEmptyStep=Ct,re=Wt}return h.currentAnimateTimings=null,{type:4,timings:w,style:re,options:null}}visitStyle(y,h){const w=this._makeStyleAst(y,h);return this._validateStyleAst(w,h),w}_makeStyleAst(y,h){const w=[],re=Array.isArray(y.styles)?y.styles:[y.styles];for(let Ct of re)"string"==typeof Ct?Ct===C.l3?w.push(Ct):h.errors.push(new r.vHH(3002,!1)):w.push(Wn(Ct));let Se=!1,ht=null;return w.forEach(Ct=>{if(Ct instanceof Map&&(Ct.has("easing")&&(ht=Ct.get("easing"),Ct.delete("easing")),!Se))for(let Wt of Ct.values())if(Wt.toString().indexOf("{{")>=0){Se=!0;break}}),{type:6,styles:w,easing:ht,offset:y.offset,containsDynamicStyles:Se,options:null}}_validateStyleAst(y,h){const w=h.currentAnimateTimings;let re=h.currentTime,Se=h.currentTime;w&&Se>0&&(Se-=w.duration+w.delay),y.styles.forEach(ht=>{"string"!=typeof ht&&ht.forEach((Ct,Wt)=>{const tn=h.collectedStyles.get(h.currentQuerySelector),En=tn.get(Wt);let Sn=!0;En&&(Se!=re&&Se>=En.startTime&&re<=En.endTime&&(h.errors.push(function Ie(L,y,h,w,re){return new r.vHH(3010,!1)}()),Sn=!1),Se=En.startTime),Sn&&tn.set(Wt,{startTime:Se,endTime:re}),h.options&&function _i(L,y,h){const w=y.params||{},re=kn(L);re.length&&re.forEach(Se=>{w.hasOwnProperty(Se)||h.push(function V(L){return new r.vHH(3001,!1)}())})}(Ct,h.options,h.errors)})})}visitKeyframes(y,h){const w={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function ae(){return new r.vHH(3011,!1)}()),w;let Se=0;const ht=[];let Ct=!1,Wt=!1,tn=0;const En=y.steps.map(er=>{const wr=this._makeStyleAst(er,h);let fs=null!=wr.offset?wr.offset:function tt(L){if("string"==typeof L)return null;let y=null;if(Array.isArray(L))L.forEach(h=>{if(h instanceof Map&&h.has("offset")){const w=h;y=parseFloat(w.get("offset")),w.delete("offset")}});else if(L instanceof Map&&L.has("offset")){const h=L;y=parseFloat(h.get("offset")),h.delete("offset")}return y}(wr.styles),Or=0;return null!=fs&&(Se++,Or=wr.offset=fs),Wt=Wt||Or<0||Or>1,Ct=Ct||Or0&&Se{const fs=vi>0?wr==fi?1:vi*wr:ht[wr],Or=fs*Hi;h.currentTime=Zn+ii.delay+Or,ii.duration=Or,this._validateStyleAst(er,h),er.offset=fs,w.styles.push(er)}),w}visitReference(y,h){return{type:8,animation:Xe(this,Bn(y.animation),h),options:$t(y.options)}}visitAnimateChild(y,h){return h.depCount++,{type:9,options:$t(y.options)}}visitAnimateRef(y,h){return{type:10,animation:this.visitReference(y.animation,h),options:$t(y.options)}}visitQuery(y,h){const w=h.currentQuerySelector,re=y.options||{};h.queryCount++,h.currentQuery=y;const[Se,ht]=function Pr(L){const y=!!L.split(/\s*,\s*/).find(h=>":self"==h);return y&&(L=L.replace(yr,"")),L=L.replace(/@\*/g,Mn).replace(/@\w+/g,h=>Mn+"-"+h.slice(1)).replace(/:animating/g,ln),[L,y]}(y.selector);h.currentQuerySelector=w.length?w+" "+Se:Se,U(h.collectedStyles,h.currentQuerySelector,new Map);const Ct=Xe(this,Bn(y.animation),h);return h.currentQuery=null,h.currentQuerySelector=w,{type:11,selector:Se,limit:re.limit||0,optional:!!re.optional,includeSelf:ht,animation:Ct,originalSelector:y.selector,options:$t(y.options)}}visitStagger(y,h){h.currentQuery||h.errors.push(function Ve(){return new r.vHH(3013,!1)}());const w="full"===y.timings?{duration:0,delay:0,easing:"full"}:Ht(y.timings,h.errors,!0);return{type:12,animation:Xe(this,Bn(y.animation),h),timings:w,options:null}}}class Ze{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function $t(L){return L?(L=Nn(L)).params&&(L.params=function Yr(L){return L?Nn(L):null}(L.params)):L={},L}function dn(L,y,h){return{duration:L,delay:y,easing:h}}function Cn(L,y,h,w,re,Se,ht=null,Ct=!1){return{type:1,element:L,keyframes:y,preStyleProps:h,postStyleProps:w,duration:re,delay:Se,totalTime:re+Se,easing:ht,subTimeline:Ct}}class Kn{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,h){let w=this._map.get(y);w||this._map.set(y,w=[]),w.push(...h)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const Ii=new RegExp(":enter","g"),Is=new RegExp(":leave","g");function Ms(L,y,h,w,re,Se=new Map,ht=new Map,Ct,Wt,tn=[]){return(new br).buildKeyframes(L,y,h,w,re,Se,ht,Ct,Wt,tn)}class br{buildKeyframes(y,h,w,re,Se,ht,Ct,Wt,tn,En=[]){tn=tn||new Kn;const Sn=new Cr(y,h,tn,re,Se,En,[]);Sn.options=Wt;const vi=Wt.delay?Ke(Wt.delay):0;Sn.currentTimeline.delayNextStep(vi),Sn.currentTimeline.setStyles([ht],null,Sn.errors,Wt),Xe(this,w,Sn);const fi=Sn.timelines.filter(Zn=>Zn.containsAnimation());if(fi.length&&Ct.size){let Zn;for(let ii=fi.length-1;ii>=0;ii--){const Hi=fi[ii];if(Hi.element===h){Zn=Hi;break}}Zn&&!Zn.allowOnlyTimelineStyles()&&Zn.setStyles([Ct],null,Sn.errors,Wt)}return fi.length?fi.map(Zn=>Zn.buildKeyframes()):[Cn(h,[],[],[],0,vi,"",!1)]}visitTrigger(y,h){}visitState(y,h){}visitTransition(y,h){}visitAnimateChild(y,h){const w=h.subInstructions.get(h.element);if(w){const re=h.createSubContext(y.options),Se=h.currentTimeline.currentTime,ht=this._visitSubInstructions(w,re,re.options);Se!=ht&&h.transformIntoNewTimeline(ht)}h.previousNode=y}visitAnimateRef(y,h){const w=h.createSubContext(y.options);w.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],h,w),this.visitReference(y.animation,w),h.transformIntoNewTimeline(w.currentTimeline.currentTime),h.previousNode=y}_applyAnimationRefDelays(y,h,w){for(const re of y){const Se=re?.delay;if(Se){const ht="number"==typeof Se?Se:Ke(Oi(Se,re?.params??{},h.errors));w.delayNextStep(ht)}}}_visitSubInstructions(y,h,w){let Se=h.currentTimeline.currentTime;const ht=null!=w.duration?Ke(w.duration):null,Ct=null!=w.delay?Ke(w.delay):null;return 0!==ht&&y.forEach(Wt=>{const tn=h.appendInstructionToTimeline(Wt,ht,Ct);Se=Math.max(Se,tn.duration+tn.delay)}),Se}visitReference(y,h){h.updateOptions(y.options,!0),Xe(this,y.animation,h),h.previousNode=y}visitSequence(y,h){const w=h.subContextCount;let re=h;const Se=y.options;if(Se&&(Se.params||Se.delay)&&(re=h.createSubContext(Se),re.transformIntoNewTimeline(),null!=Se.delay)){6==re.previousNode.type&&(re.currentTimeline.snapshotCurrentStyles(),re.previousNode=Kr);const ht=Ke(Se.delay);re.delayNextStep(ht)}y.steps.length&&(y.steps.forEach(ht=>Xe(this,ht,re)),re.currentTimeline.applyStylesToKeyframe(),re.subContextCount>w&&re.transformIntoNewTimeline()),h.previousNode=y}visitGroup(y,h){const w=[];let re=h.currentTimeline.currentTime;const Se=y.options&&y.options.delay?Ke(y.options.delay):0;y.steps.forEach(ht=>{const Ct=h.createSubContext(y.options);Se&&Ct.delayNextStep(Se),Xe(this,ht,Ct),re=Math.max(re,Ct.currentTimeline.currentTime),w.push(Ct.currentTimeline)}),w.forEach(ht=>h.currentTimeline.mergeTimelineCollectedStyles(ht)),h.transformIntoNewTimeline(re),h.previousNode=y}_visitTiming(y,h){if(y.dynamic){const w=y.strValue;return Ht(h.params?Oi(w,h.params,h.errors):w,h.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,h){const w=h.currentAnimateTimings=this._visitTiming(y.timings,h),re=h.currentTimeline;w.delay&&(h.incrementTime(w.delay),re.snapshotCurrentStyles());const Se=y.style;5==Se.type?this.visitKeyframes(Se,h):(h.incrementTime(w.duration),this.visitStyle(Se,h),re.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=y}visitStyle(y,h){const w=h.currentTimeline,re=h.currentAnimateTimings;!re&&w.hasCurrentStyleProperties()&&w.forwardFrame();const Se=re&&re.easing||y.easing;y.isEmptyStep?w.applyEmptyStep(Se):w.setStyles(y.styles,Se,h.errors,h.options),h.previousNode=y}visitKeyframes(y,h){const w=h.currentAnimateTimings,re=h.currentTimeline.duration,Se=w.duration,Ct=h.createSubContext().currentTimeline;Ct.easing=w.easing,y.styles.forEach(Wt=>{Ct.forwardTime((Wt.offset||0)*Se),Ct.setStyles(Wt.styles,Wt.easing,h.errors,h.options),Ct.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(Ct),h.transformIntoNewTimeline(re+Se),h.previousNode=y}visitQuery(y,h){const w=h.currentTimeline.currentTime,re=y.options||{},Se=re.delay?Ke(re.delay):0;Se&&(6===h.previousNode.type||0==w&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=Kr);let ht=w;const Ct=h.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!re.optional,h.errors);h.currentQueryTotal=Ct.length;let Wt=null;Ct.forEach((tn,En)=>{h.currentQueryIndex=En;const Sn=h.createSubContext(y.options,tn);Se&&Sn.delayNextStep(Se),tn===h.element&&(Wt=Sn.currentTimeline),Xe(this,y.animation,Sn),Sn.currentTimeline.applyStylesToKeyframe(),ht=Math.max(ht,Sn.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(ht),Wt&&(h.currentTimeline.mergeTimelineCollectedStyles(Wt),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=y}visitStagger(y,h){const w=h.parentContext,re=h.currentTimeline,Se=y.timings,ht=Math.abs(Se.duration),Ct=ht*(h.currentQueryTotal-1);let Wt=ht*h.currentQueryIndex;switch(Se.duration<0?"reverse":Se.easing){case"reverse":Wt=Ct-Wt;break;case"full":Wt=w.currentStaggerTime}const En=h.currentTimeline;Wt&&En.delayNextStep(Wt);const Sn=En.currentTime;Xe(this,y.animation,h),h.previousNode=y,w.currentStaggerTime=re.currentTime-Sn+(re.startTime-w.currentTimeline.startTime)}}const Kr={};class Cr{constructor(y,h,w,re,Se,ht,Ct,Wt){this._driver=y,this.element=h,this.subInstructions=w,this._enterClassName=re,this._leaveClassName=Se,this.errors=ht,this.timelines=Ct,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Kr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Wt||new Zr(this._driver,h,0),Ct.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,h){if(!y)return;const w=y;let re=this.options;null!=w.duration&&(re.duration=Ke(w.duration)),null!=w.delay&&(re.delay=Ke(w.delay));const Se=w.params;if(Se){let ht=re.params;ht||(ht=this.options.params={}),Object.keys(Se).forEach(Ct=>{(!h||!ht.hasOwnProperty(Ct))&&(ht[Ct]=Oi(Se[Ct],ht,this.errors))})}}_copyOptions(){const y={};if(this.options){const h=this.options.params;if(h){const w=y.params={};Object.keys(h).forEach(re=>{w[re]=h[re]})}}return y}createSubContext(y=null,h,w){const re=h||this.element,Se=new Cr(this._driver,re,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(re,w||0));return Se.previousNode=this.previousNode,Se.currentAnimateTimings=this.currentAnimateTimings,Se.options=this._copyOptions(),Se.updateOptions(y),Se.currentQueryIndex=this.currentQueryIndex,Se.currentQueryTotal=this.currentQueryTotal,Se.parentContext=this,this.subContextCount++,Se}transformIntoNewTimeline(y){return this.previousNode=Kr,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,h,w){const re={duration:h??y.duration,delay:this.currentTimeline.currentTime+(w??0)+y.delay,easing:""},Se=new ps(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,re,y.stretchStartingKeyframe);return this.timelines.push(Se),re}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,h,w,re,Se,ht){let Ct=[];if(re&&Ct.push(this.element),y.length>0){y=(y=y.replace(Ii,"."+this._enterClassName)).replace(Is,"."+this._leaveClassName);let tn=this._driver.query(this.element,y,1!=w);0!==w&&(tn=w<0?tn.slice(tn.length+w,tn.length):tn.slice(0,w)),Ct.push(...tn)}return!Se&&0==Ct.length&&ht.push(function Je(L){return new r.vHH(3014,!1)}()),Ct}}class Zr{constructor(y,h,w,re){this._driver=y,this.element=h,this.startTime=w,this._elementTimelineStylesLookup=re,this.duration=0,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(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+y),h&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,h){return this.applyStylesToKeyframe(),new Zr(this._driver,y,h||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,h){this._localTimelineStyles.set(y,h),this._globalTimelineStyles.set(y,h),this._styleSummary.set(y,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[h,w]of this._globalTimelineStyles)this._backFill.set(h,w||C.l3),this._currentKeyframe.set(h,C.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,h,w,re){h&&this._previousKeyframe.set("easing",h);const Se=re&&re.params||{},ht=function Dr(L,y){const h=new Map;let w;return L.forEach(re=>{if("*"===re){w=w||y.keys();for(let Se of w)h.set(Se,C.l3)}else $e(re,h)}),h}(y,this._globalTimelineStyles);for(let[Ct,Wt]of ht){const tn=Oi(Wt,Se,w);this._pendingStyles.set(Ct,tn),this._localTimelineStyles.has(Ct)||this._backFill.set(Ct,this._globalTimelineStyles.get(Ct)??C.l3),this._updateStyle(Ct,tn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,h)=>{this._currentKeyframe.set(h,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,y)}))}snapshotCurrentStyles(){for(let[y,h]of this._localTimelineStyles)this._pendingStyles.set(y,h),this._updateStyle(y,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let h in this._currentKeyframe)y.push(h);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((h,w)=>{const re=this._styleSummary.get(w);(!re||h.time>re.time)&&this._updateStyle(w,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,h=new Set,w=1===this._keyframes.size&&0===this.duration;let re=[];this._keyframes.forEach((Ct,Wt)=>{const tn=$e(Ct,new Map,this._backFill);tn.forEach((En,Sn)=>{En===C.k1?y.add(Sn):En===C.l3&&h.add(Sn)}),w||tn.set("offset",Wt/this.duration),re.push(tn)});const Se=y.size?Ye(y.values()):[],ht=h.size?Ye(h.values()):[];if(w){const Ct=re[0],Wt=new Map(Ct);Ct.set("offset",0),Wt.set("offset",1),re=[Ct,Wt]}return Cn(this.element,re,Se,ht,this.duration,this.startTime,this.easing,!1)}}class ps extends Zr{constructor(y,h,w,re,Se,ht,Ct=!1){super(y,h,ht.delay),this.keyframes=w,this.preStyleProps=re,this.postStyleProps=Se,this._stretchStartingKeyframe=Ct,this.timings={duration:ht.duration,delay:ht.delay,easing:ht.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:h,duration:w,easing:re}=this.timings;if(this._stretchStartingKeyframe&&h){const Se=[],ht=w+h,Ct=h/ht,Wt=$e(y[0]);Wt.set("offset",0),Se.push(Wt);const tn=$e(y[0]);tn.set("offset",rs(Ct)),Se.push(tn);const En=y.length-1;for(let Sn=1;Sn<=En;Sn++){let vi=$e(y[Sn]);const fi=vi.get("offset");vi.set("offset",rs((h+fi*w)/ht)),Se.push(vi)}w=ht,h=0,re="",y=Se}return Cn(this.element,y,this.preStyleProps,this.postStyleProps,w,h,re,!0)}}function rs(L,y=3){const h=Math.pow(10,y-1);return Math.round(L*h)/h}class gr{}const pr=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 ms extends gr{normalizePropertyName(y,h){return be(y)}normalizeStyleValue(y,h,w,re){let Se="";const ht=w.toString().trim();if(pr.has(h)&&0!==w&&"0"!==w)if("number"==typeof w)Se="px";else{const Ct=w.match(/^[+-]?[\d\.]+([a-z]*)$/);Ct&&0==Ct[1].length&&re.push(function j(L,y){return new r.vHH(3005,!1)}())}return ht+Se}}function gs(L,y,h,w,re,Se,ht,Ct,Wt,tn,En,Sn,vi){return{type:0,element:L,triggerName:y,isRemovalTransition:re,fromState:h,fromStyles:Se,toState:w,toStyles:ht,timelines:Ct,queriedElements:Wt,preStyleProps:tn,postStyleProps:En,totalTime:Sn,errors:vi}}const Nr={};class Jr{constructor(y,h,w){this._triggerName=y,this.ast=h,this._stateStyles=w}match(y,h,w,re){return function xs(L,y,h,w,re){return L.some(Se=>Se(y,h,w,re))}(this.ast.matchers,y,h,w,re)}buildStyles(y,h,w){let re=this._stateStyles.get("*");return void 0!==y&&(re=this._stateStyles.get(y?.toString())||re),re?re.buildStyles(h,w):new Map}build(y,h,w,re,Se,ht,Ct,Wt,tn,En){const Sn=[],vi=this.ast.options&&this.ast.options.params||Nr,Zn=this.buildStyles(w,Ct&&Ct.params||Nr,Sn),ii=Wt&&Wt.params||Nr,Hi=this.buildStyles(re,ii,Sn),er=new Set,wr=new Map,fs=new Map,Or="void"===re,ra={params:Qi(ii,vi),delay:this.ast.options?.delay},lo=En?[]:Ms(y,h,this.ast.animation,Se,ht,Zn,Hi,ra,tn,Sn);let zr=0;if(lo.forEach(vo=>{zr=Math.max(vo.duration+vo.delay,zr)}),Sn.length)return gs(h,this._triggerName,w,re,Or,Zn,Hi,[],[],wr,fs,zr,Sn);lo.forEach(vo=>{const yo=vo.element,Nc=U(wr,yo,new Set);vo.preStyleProps.forEach(Ro=>Nc.add(Ro));const Ea=U(fs,yo,new Set);vo.postStyleProps.forEach(Ro=>Ea.add(Ro)),yo!==h&&er.add(yo)});const _o=Ye(er.values());return gs(h,this._triggerName,w,re,Or,Zn,Hi,lo,_o,wr,fs,zr)}}function Qi(L,y){const h=Nn(y);for(const w in L)L.hasOwnProperty(w)&&null!=L[w]&&(h[w]=L[w]);return h}class ws{constructor(y,h,w){this.styles=y,this.defaultParams=h,this.normalizer=w}buildStyles(y,h){const w=new Map,re=Nn(this.defaultParams);return Object.keys(y).forEach(Se=>{const ht=y[Se];null!==ht&&(re[Se]=ht)}),this.styles.styles.forEach(Se=>{"string"!=typeof Se&&Se.forEach((ht,Ct)=>{ht&&(ht=Oi(ht,re,h));const Wt=this.normalizer.normalizePropertyName(Ct,h);ht=this.normalizer.normalizeStyleValue(Ct,Wt,ht,h),w.set(Wt,ht)})}),w}}class Hr{constructor(y,h,w){this.name=y,this.ast=h,this._normalizer=w,this.transitionFactories=[],this.states=new Map,h.states.forEach(re=>{this.states.set(re.name,new ws(re.style,re.options&&re.options.params||{},w))}),Ks(this.states,"true","1"),Ks(this.states,"false","0"),h.transitions.forEach(re=>{this.transitionFactories.push(new Jr(y,re,this.states))}),this.fallbackTransition=function kr(L,y,h){return new Jr(L,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ht,Ct)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,h,w,re){return this.transitionFactories.find(ht=>ht.match(y,h,w,re))||null}matchStyles(y,h,w){return this.fallbackTransition.buildStyles(y,h,w)}}function Ks(L,y,h){L.has(y)?L.has(h)||L.set(h,L.get(y)):L.has(h)&&L.set(y,L.get(h))}const Wi=new Kn;class Rs{constructor(y,h,w){this.bodyNode=y,this._driver=h,this._normalizer=w,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,h){const w=[],Se=nr(this._driver,h,w,[]);if(w.length)throw function Ce(L){return new r.vHH(3503,!1)}();this._animations.set(y,Se)}_buildPlayer(y,h,w){const re=y.element,Se=je(0,this._normalizer,0,y.keyframes,h,w);return this._driver.animate(re,Se,y.duration,y.delay,y.easing,[],!0)}create(y,h,w={}){const re=[],Se=this._animations.get(y);let ht;const Ct=new Map;if(Se?(ht=Ms(this._driver,h,Se,Rt,jt,new Map,new Map,w,Wi,re),ht.forEach(En=>{const Sn=U(Ct,En.element,new Map);En.postStyleProps.forEach(vi=>Sn.set(vi,null))})):(re.push(function pe(){return new r.vHH(3300,!1)}()),ht=[]),re.length)throw function Le(L){return new r.vHH(3504,!1)}();Ct.forEach((En,Sn)=>{En.forEach((vi,fi)=>{En.set(fi,this._driver.computeStyle(Sn,fi,C.l3))})});const tn=At(ht.map(En=>{const Sn=Ct.get(En.element);return this._buildPlayer(En,new Map,Sn)}));return this._playersById.set(y,tn),tn.onDestroy(()=>this.destroy(y)),this.players.push(tn),tn}destroy(y){const h=this._getPlayer(y);h.destroy(),this._playersById.delete(y);const w=this.players.indexOf(h);w>=0&&this.players.splice(w,1)}_getPlayer(y){const h=this._playersById.get(y);if(!h)throw function Oe(L){return new r.vHH(3301,!1)}();return h}listen(y,h,w,re){const Se=A(h,"","","");return ve(this._getPlayer(y),w,Se,re),()=>{}}command(y,h,w,re){if("register"==w)return void this.register(y,re[0]);if("create"==w)return void this.create(y,h,re[0]||{});const Se=this._getPlayer(y);switch(w){case"play":Se.play();break;case"pause":Se.pause();break;case"reset":Se.reset();break;case"restart":Se.restart();break;case"finish":Se.finish();break;case"init":Se.init();break;case"setPosition":Se.setPosition(parseFloat(re[0]));break;case"destroy":this.destroy(y)}}}const as="ng-animate-queued",or="ng-animate-disabled",ar=[],Zs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},cs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ji="__ng_removed";class Ni{constructor(y,h=""){this.namespaceId=h;const w=y&&y.hasOwnProperty("value");if(this.value=function Vr(L){return L??null}(w?y.value:y),w){const Se=Nn(y);delete Se.value,this.options=Se}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(y){const h=y.params;if(h){const w=this.options.params;Object.keys(h).forEach(re=>{null==w[re]&&(w[re]=h[re])})}}}const Ar="void",Qn=new Ni(Ar);class Hn{constructor(y,h,w){this.id=y,this.hostElement=h,this._engine=w,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,Gn(h,this._hostClassName)}listen(y,h,w,re){if(!this._triggers.has(h))throw function ot(L,y){return new r.vHH(3302,!1)}();if(null==w||0==w.length)throw function yt(L){return new r.vHH(3303,!1)}();if(!function Lr(L){return"start"==L||"done"==L}(w))throw function at(L,y){return new r.vHH(3400,!1)}();const Se=U(this._elementListeners,y,[]),ht={name:h,phase:w,callback:re};Se.push(ht);const Ct=U(this._engine.statesByElement,y,new Map);return Ct.has(h)||(Gn(y,un),Gn(y,un+"-"+h),Ct.set(h,Qn)),()=>{this._engine.afterFlush(()=>{const Wt=Se.indexOf(ht);Wt>=0&&Se.splice(Wt,1),this._triggers.has(h)||Ct.delete(h)})}}register(y,h){return!this._triggers.has(y)&&(this._triggers.set(y,h),!0)}_getTrigger(y){const h=this._triggers.get(y);if(!h)throw function de(L){return new r.vHH(3401,!1)}();return h}trigger(y,h,w,re=!0){const Se=this._getTrigger(h),ht=new vs(this.id,h,y);let Ct=this._engine.statesByElement.get(y);Ct||(Gn(y,un),Gn(y,un+"-"+h),this._engine.statesByElement.set(y,Ct=new Map));let Wt=Ct.get(h);const tn=new Ni(w,this.id);if(!(w&&w.hasOwnProperty("value"))&&Wt&&tn.absorbOptions(Wt.options),Ct.set(h,tn),Wt||(Wt=Qn),tn.value!==Ar&&Wt.value===tn.value){if(!function ue(L,y){const h=Object.keys(L),w=Object.keys(y);if(h.length!=w.length)return!1;for(let re=0;re{On(y,Hi),fn(y,er)})}return}const vi=U(this._engine.playersByElement,y,[]);vi.forEach(ii=>{ii.namespaceId==this.id&&ii.triggerName==h&&ii.queued&&ii.destroy()});let fi=Se.matchTransition(Wt.value,tn.value,y,tn.params),Zn=!1;if(!fi){if(!re)return;fi=Se.fallbackTransition,Zn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:h,transition:fi,fromState:Wt,toState:tn,player:ht,isFallbackTransition:Zn}),Zn||(Gn(y,as),ht.onStart(()=>{_r(y,as)})),ht.onDone(()=>{let ii=this.players.indexOf(ht);ii>=0&&this.players.splice(ii,1);const Hi=this._engine.playersByElement.get(y);if(Hi){let er=Hi.indexOf(ht);er>=0&&Hi.splice(er,1)}}),this.players.push(ht),vi.push(ht),ht}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(h=>h.delete(y)),this._elementListeners.forEach((h,w)=>{this._elementListeners.set(w,h.filter(re=>re.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const h=this._engine.playersByElement.get(y);h&&(h.forEach(w=>w.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,h){const w=this._engine.driver.query(y,Mn,!0);w.forEach(re=>{if(re[Ji])return;const Se=this._engine.fetchNamespacesByElement(re);Se.size?Se.forEach(ht=>ht.triggerLeaveAnimation(re,h,!1,!0)):this.clearElementCache(re)}),this._engine.afterFlushAnimationsDone(()=>w.forEach(re=>this.clearElementCache(re)))}triggerLeaveAnimation(y,h,w,re){const Se=this._engine.statesByElement.get(y),ht=new Map;if(Se){const Ct=[];if(Se.forEach((Wt,tn)=>{if(ht.set(tn,Wt.value),this._triggers.has(tn)){const En=this.trigger(y,tn,Ar,re);En&&Ct.push(En)}}),Ct.length)return this._engine.markElementAsRemoved(this.id,y,!0,h,ht),w&&At(Ct).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const h=this._elementListeners.get(y),w=this._engine.statesByElement.get(y);if(h&&w){const re=new Set;h.forEach(Se=>{const ht=Se.name;if(re.has(ht))return;re.add(ht);const Wt=this._triggers.get(ht).fallbackTransition,tn=w.get(ht)||Qn,En=new Ni(Ar),Sn=new vs(this.id,ht,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:ht,transition:Wt,fromState:tn,toState:En,player:Sn,isFallbackTransition:!0})})}}removeNode(y,h){const w=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,h),this.triggerLeaveAnimation(y,h,!0))return;let re=!1;if(w.totalAnimations){const Se=w.players.length?w.playersByQueriedElement.get(y):[];if(Se&&Se.length)re=!0;else{let ht=y;for(;ht=ht.parentNode;)if(w.statesByElement.get(ht)){re=!0;break}}}if(this.prepareLeaveAnimationListeners(y),re)w.markElementAsRemoved(this.id,y,!1,h);else{const Se=y[Ji];(!Se||Se===Zs)&&(w.afterFlush(()=>this.clearElementCache(y)),w.destroyInnerAnimations(y),w._onRemovalComplete(y,h))}}insertNode(y,h){Gn(y,this._hostClassName)}drainQueuedTransitions(y){const h=[];return this._queue.forEach(w=>{const re=w.player;if(re.destroyed)return;const Se=w.element,ht=this._elementListeners.get(Se);ht&&ht.forEach(Ct=>{if(Ct.name==w.triggerName){const Wt=A(Se,w.triggerName,w.fromState.value,w.toState.value);Wt._data=y,ve(w.player,Ct.phase,Wt,Ct.callback)}}),re.markedForDestroy?this._engine.afterFlush(()=>{re.destroy()}):h.push(w)}),this._queue=[],h.sort((w,re)=>{const Se=w.transition.ast.depCount,ht=re.transition.ast.depCount;return 0==Se||0==ht?Se-ht:this._engine.driver.containsElement(w.element,re.element)?1:-1})}destroy(y){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}elementContainsData(y){let h=!1;return this._elementListeners.has(y)&&(h=!0),h=!!this._queue.find(w=>w.element===y)||h,h}}class Vs{constructor(y,h,w){this.bodyNode=y,this.driver=h,this._normalizer=w,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=(re,Se)=>{}}_onRemovalComplete(y,h){this.onRemovalComplete(y,h)}get queuedPlayers(){const y=[];return this._namespaceList.forEach(h=>{h.players.forEach(w=>{w.queued&&y.push(w)})}),y}createNamespace(y,h){const w=new Hn(y,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(w,h):(this.newHostElements.set(h,w),this.collectEnterElement(h)),this._namespaceLookup[y]=w}_balanceNamespaceList(y,h){const w=this._namespaceList,re=this.namespacesByHostElement;if(w.length-1>=0){let ht=!1,Ct=this.driver.getParentElement(h);for(;Ct;){const Wt=re.get(Ct);if(Wt){const tn=w.indexOf(Wt);w.splice(tn+1,0,y),ht=!0;break}Ct=this.driver.getParentElement(Ct)}ht||w.unshift(y)}else w.push(y);return re.set(h,y),y}register(y,h){let w=this._namespaceLookup[y];return w||(w=this.createNamespace(y,h)),w}registerTrigger(y,h,w){let re=this._namespaceLookup[y];re&&re.register(h,w)&&this.totalAnimations++}destroy(y,h){if(!y)return;const w=this._fetchNamespace(y);this.afterFlush(()=>{this.namespacesByHostElement.delete(w.hostElement),delete this._namespaceLookup[y];const re=this._namespaceList.indexOf(w);re>=0&&this._namespaceList.splice(re,1)}),this.afterFlushAnimationsDone(()=>w.destroy(h))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const h=new Set,w=this.statesByElement.get(y);if(w)for(let re of w.values())if(re.namespaceId){const Se=this._fetchNamespace(re.namespaceId);Se&&h.add(Se)}return h}trigger(y,h,w,re){if(qr(h)){const Se=this._fetchNamespace(y);if(Se)return Se.trigger(h,w,re),!0}return!1}insertNode(y,h,w,re){if(!qr(h))return;const Se=h[Ji];if(Se&&Se.setForRemoval){Se.setForRemoval=!1,Se.setForMove=!0;const ht=this.collectedLeaveElements.indexOf(h);ht>=0&&this.collectedLeaveElements.splice(ht,1)}if(y){const ht=this._fetchNamespace(y);ht&&ht.insertNode(h,w)}re&&this.collectEnterElement(h)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,h){h?this.disabledNodes.has(y)||(this.disabledNodes.add(y),Gn(y,or)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),_r(y,or))}removeNode(y,h,w,re){if(qr(h)){const Se=y?this._fetchNamespace(y):null;if(Se?Se.removeNode(h,re):this.markElementAsRemoved(y,h,!1,re),w){const ht=this.namespacesByHostElement.get(h);ht&&ht.id!==y&&ht.removeNode(h,re)}}else this._onRemovalComplete(h,re)}markElementAsRemoved(y,h,w,re,Se){this.collectedLeaveElements.push(h),h[Ji]={namespaceId:y,setForRemoval:re,hasAnimation:w,removedBeforeQueried:!1,previousTriggersValues:Se}}listen(y,h,w,re,Se){return qr(h)?this._fetchNamespace(y).listen(h,w,re,Se):()=>{}}_buildInstruction(y,h,w,re,Se){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,w,re,y.fromState.options,y.toState.options,h,Se)}destroyInnerAnimations(y){let h=this.driver.query(y,Mn,!0);h.forEach(w=>this.destroyActiveAnimationsForElement(w)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(y,ln,!0),h.forEach(w=>this.finishActiveQueriedAnimationOnElement(w)))}destroyActiveAnimationsForElement(y){const h=this.playersByElement.get(y);h&&h.forEach(w=>{w.queued?w.markedForDestroy=!0:w.destroy()})}finishActiveQueriedAnimationOnElement(y){const h=this.playersByQueriedElement.get(y);h&&h.forEach(w=>w.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return At(this.players).onDone(()=>y());y()})}processLeaveNode(y){const h=y[Ji];if(h&&h.setForRemoval){if(y[Ji]=Zs,h.namespaceId){this.destroyInnerAnimations(y);const w=this._fetchNamespace(h.namespaceId);w&&w.clearElementCache(y)}this._onRemovalComplete(y,h.setForRemoval)}y.classList?.contains(or)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(w=>{this.markElementAsDisabled(w,!1)})}flush(y=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((w,re)=>this._balanceNamespaceList(w,re)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let w=0;ww()),this._flushFns=[],this._whenQuietFns.length){const w=this._whenQuietFns;this._whenQuietFns=[],h.length?At(h).onDone(()=>{w.forEach(re=>re())}):w.forEach(re=>re())}}reportError(y){throw function se(L){return new r.vHH(3402,!1)}()}_flushAnimations(y,h){const w=new Kn,re=[],Se=new Map,ht=[],Ct=new Map,Wt=new Map,tn=new Map,En=new Set;this.disabledNodes.forEach(jn=>{En.add(jn);const Jn=this.driver.query(jn,".ng-animate-queued",!0);for(let ti=0;ti{const ti=Rt+ii++;Zn.set(Jn,ti),jn.forEach(yi=>Gn(yi,ti))});const Hi=[],er=new Set,wr=new Set;for(let jn=0;jner.add(yi)):wr.add(Jn))}const fs=new Map,Or=an(vi,Array.from(er));Or.forEach((jn,Jn)=>{const ti=jt+ii++;fs.set(Jn,ti),jn.forEach(yi=>Gn(yi,ti))}),y.push(()=>{fi.forEach((jn,Jn)=>{const ti=Zn.get(Jn);jn.forEach(yi=>_r(yi,ti))}),Or.forEach((jn,Jn)=>{const ti=fs.get(Jn);jn.forEach(yi=>_r(yi,ti))}),Hi.forEach(jn=>{this.processLeaveNode(jn)})});const ra=[],lo=[];for(let jn=this._namespaceList.length-1;jn>=0;jn--)this._namespaceList[jn].drainQueuedTransitions(h).forEach(ti=>{const yi=ti.player,Br=ti.element;if(ra.push(yi),this.collectedEnterElements.length){const is=Br[Ji];if(is&&is.setForMove){if(is.previousTriggersValues&&is.previousTriggersValues.has(ti.triggerName)){const bo=is.previousTriggersValues.get(ti.triggerName),Hs=this.statesByElement.get(ti.element);if(Hs&&Hs.has(ti.triggerName)){const xa=Hs.get(ti.triggerName);xa.value=bo,Hs.set(ti.triggerName,xa)}}return void yi.destroy()}}const to=!Sn||!this.driver.containsElement(Sn,Br),Ss=fs.get(Br),co=Zn.get(Br),cr=this._buildInstruction(ti,w,co,Ss,to);if(cr.errors&&cr.errors.length)return void lo.push(cr);if(to)return yi.onStart(()=>On(Br,cr.fromStyles)),yi.onDestroy(()=>fn(Br,cr.toStyles)),void re.push(yi);if(ti.isFallbackTransition)return yi.onStart(()=>On(Br,cr.fromStyles)),yi.onDestroy(()=>fn(Br,cr.toStyles)),void re.push(yi);const Ul=[];cr.timelines.forEach(is=>{is.stretchStartingKeyframe=!0,this.disabledNodes.has(is.element)||Ul.push(is)}),cr.timelines=Ul,w.append(Br,cr.timelines),ht.push({instruction:cr,player:yi,element:Br}),cr.queriedElements.forEach(is=>U(Ct,is,[]).push(yi)),cr.preStyleProps.forEach((is,bo)=>{if(is.size){let Hs=Wt.get(bo);Hs||Wt.set(bo,Hs=new Set),is.forEach((xa,Wr)=>Hs.add(Wr))}}),cr.postStyleProps.forEach((is,bo)=>{let Hs=tn.get(bo);Hs||tn.set(bo,Hs=new Set),is.forEach((xa,Wr)=>Hs.add(Wr))})});if(lo.length){const jn=[];lo.forEach(Jn=>{jn.push(function ke(L,y){return new r.vHH(3505,!1)}())}),ra.forEach(Jn=>Jn.destroy()),this.reportError(jn)}const zr=new Map,_o=new Map;ht.forEach(jn=>{const Jn=jn.element;w.has(Jn)&&(_o.set(Jn,Jn),this._beforeAnimationBuild(jn.player.namespaceId,jn.instruction,zr))}),re.forEach(jn=>{const Jn=jn.element;this._getPreviousPlayers(Jn,!1,jn.namespaceId,jn.triggerName,null).forEach(yi=>{U(zr,Jn,[]).push(yi),yi.destroy()})});const vo=Hi.filter(jn=>Q(jn,Wt,tn)),yo=new Map;ro(yo,this.driver,wr,tn,C.l3).forEach(jn=>{Q(jn,Wt,tn)&&vo.push(jn)});const Ea=new Map;fi.forEach((jn,Jn)=>{ro(Ea,this.driver,new Set(jn),Wt,C.k1)}),vo.forEach(jn=>{const Jn=yo.get(jn),ti=Ea.get(jn);yo.set(jn,new Map([...Array.from(Jn?.entries()??[]),...Array.from(ti?.entries()??[])]))});const Ro=[],sl=[],Ma={};ht.forEach(jn=>{const{element:Jn,player:ti,instruction:yi}=jn;if(w.has(Jn)){if(En.has(Jn))return ti.onDestroy(()=>fn(Jn,yi.toStyles)),ti.disabled=!0,ti.overrideTotalTime(yi.totalTime),void re.push(ti);let Br=Ma;if(_o.size>1){let Ss=Jn;const co=[];for(;Ss=Ss.parentNode;){const cr=_o.get(Ss);if(cr){Br=cr;break}co.push(Ss)}co.forEach(cr=>_o.set(cr,Br))}const to=this._buildAnimation(ti.namespaceId,yi,zr,Se,Ea,yo);if(ti.setRealPlayer(to),Br===Ma)Ro.push(ti);else{const Ss=this.playersByElement.get(Br);Ss&&Ss.length&&(ti.parentPlayer=At(Ss)),re.push(ti)}}else On(Jn,yi.fromStyles),ti.onDestroy(()=>fn(Jn,yi.toStyles)),sl.push(ti),En.has(Jn)&&re.push(ti)}),sl.forEach(jn=>{const Jn=Se.get(jn.element);if(Jn&&Jn.length){const ti=At(Jn);jn.setRealPlayer(ti)}}),re.forEach(jn=>{jn.parentPlayer?jn.syncPlayerEvents(jn.parentPlayer):jn.destroy()});for(let jn=0;jn!to.destroyed);Br.length?ks(this,Jn,Br):this.processLeaveNode(Jn)}return Hi.length=0,Ro.forEach(jn=>{this.players.push(jn),jn.onDone(()=>{jn.destroy();const Jn=this.players.indexOf(jn);this.players.splice(Jn,1)}),jn.play()}),Ro}elementContainsData(y,h){let w=!1;const re=h[Ji];return re&&re.setForRemoval&&(w=!0),this.playersByElement.has(h)&&(w=!0),this.playersByQueriedElement.has(h)&&(w=!0),this.statesByElement.has(h)&&(w=!0),this._fetchNamespace(y).elementContainsData(h)||w}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,h,w,re,Se){let ht=[];if(h){const Ct=this.playersByQueriedElement.get(y);Ct&&(ht=Ct)}else{const Ct=this.playersByElement.get(y);if(Ct){const Wt=!Se||Se==Ar;Ct.forEach(tn=>{tn.queued||!Wt&&tn.triggerName!=re||ht.push(tn)})}}return(w||re)&&(ht=ht.filter(Ct=>!(w&&w!=Ct.namespaceId||re&&re!=Ct.triggerName))),ht}_beforeAnimationBuild(y,h,w){const Se=h.element,ht=h.isRemovalTransition?void 0:y,Ct=h.isRemovalTransition?void 0:h.triggerName;for(const Wt of h.timelines){const tn=Wt.element,En=tn!==Se,Sn=U(w,tn,[]);this._getPreviousPlayers(tn,En,ht,Ct,h.toState).forEach(fi=>{const Zn=fi.getRealPlayer();Zn.beforeDestroy&&Zn.beforeDestroy(),fi.destroy(),Sn.push(fi)})}On(Se,h.fromStyles)}_buildAnimation(y,h,w,re,Se,ht){const Ct=h.triggerName,Wt=h.element,tn=[],En=new Set,Sn=new Set,vi=h.timelines.map(Zn=>{const ii=Zn.element;En.add(ii);const Hi=ii[Ji];if(Hi&&Hi.removedBeforeQueried)return new C.ZN(Zn.duration,Zn.delay);const er=ii!==Wt,wr=function ir(L){const y=[];return ye(L,y),y}((w.get(ii)||ar).map(zr=>zr.getRealPlayer())).filter(zr=>!!zr.element&&zr.element===ii),fs=Se.get(ii),Or=ht.get(ii),ra=je(0,this._normalizer,0,Zn.keyframes,fs,Or),lo=this._buildPlayer(Zn,ra,wr);if(Zn.subTimeline&&re&&Sn.add(ii),er){const zr=new vs(y,Ct,ii);zr.setRealPlayer(lo),tn.push(zr)}return lo});tn.forEach(Zn=>{U(this.playersByQueriedElement,Zn.element,[]).push(Zn),Zn.onDone(()=>function ys(L,y,h){let w=L.get(y);if(w){if(w.length){const re=w.indexOf(h);w.splice(re,1)}0==w.length&&L.delete(y)}return w}(this.playersByQueriedElement,Zn.element,Zn))}),En.forEach(Zn=>Gn(Zn,zt));const fi=At(vi);return fi.onDestroy(()=>{En.forEach(Zn=>_r(Zn,zt)),fn(Wt,h.toStyles)}),Sn.forEach(Zn=>{U(re,Zn,[]).push(fi)}),fi}_buildPlayer(y,h,w){return h.length>0?this.driver.animate(y.element,h,y.duration,y.delay,y.easing,w):new C.ZN(y.duration,y.delay)}}class vs{constructor(y,h,w){this.namespaceId=y,this.triggerName=h,this.element=w,this._player=new C.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((h,w)=>{h.forEach(re=>ve(y,w,void 0,re))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const h=this._player;h.triggerCallback&&y.onStart(()=>h.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,h){U(this._queuedCallbacks,y,[]).push(h)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const h=this._player;h.triggerCallback&&h.triggerCallback(y)}}function qr(L){return L&&1===L.nodeType}function bs(L,y){const h=L.style.display;return L.style.display=y??"none",h}function ro(L,y,h,w,re){const Se=[];h.forEach(Wt=>Se.push(bs(Wt)));const ht=[];w.forEach((Wt,tn)=>{const En=new Map;Wt.forEach(Sn=>{const vi=y.computeStyle(tn,Sn,re);En.set(Sn,vi),(!vi||0==vi.length)&&(tn[Ji]=cs,ht.push(tn))}),L.set(tn,En)});let Ct=0;return h.forEach(Wt=>bs(Wt,Se[Ct++])),ht}function an(L,y){const h=new Map;if(L.forEach(Ct=>h.set(Ct,[])),0==y.length)return h;const re=new Set(y),Se=new Map;function ht(Ct){if(!Ct)return 1;let Wt=Se.get(Ct);if(Wt)return Wt;const tn=Ct.parentNode;return Wt=h.has(tn)?tn:re.has(tn)?1:ht(tn),Se.set(Ct,Wt),Wt}return y.forEach(Ct=>{const Wt=ht(Ct);1!==Wt&&h.get(Wt).push(Ct)}),h}function Gn(L,y){L.classList?.add(y)}function _r(L,y){L.classList?.remove(y)}function ks(L,y,h){At(h).onDone(()=>L.processLeaveNode(y))}function ye(L,y){for(let h=0;hre.add(Se)):y.set(L,w),h.delete(L),!0}class ze{constructor(y,h,w){this.bodyNode=y,this._driver=h,this._normalizer=w,this._triggerCache={},this.onRemovalComplete=(re,Se)=>{},this._transitionEngine=new Vs(y,h,w),this._timelineEngine=new Rs(y,h,w),this._transitionEngine.onRemovalComplete=(re,Se)=>this.onRemovalComplete(re,Se)}registerTrigger(y,h,w,re,Se){const ht=y+"-"+re;let Ct=this._triggerCache[ht];if(!Ct){const Wt=[],En=nr(this._driver,Se,Wt,[]);if(Wt.length)throw function Ue(L,y){return new r.vHH(3404,!1)}();Ct=function Ur(L,y,h){return new Hr(L,y,h)}(re,En,this._normalizer),this._triggerCache[ht]=Ct}this._transitionEngine.registerTrigger(h,re,Ct)}register(y,h){this._transitionEngine.register(y,h)}destroy(y,h){this._transitionEngine.destroy(y,h)}onInsert(y,h,w,re){this._transitionEngine.insertNode(y,h,w,re)}onRemove(y,h,w,re){this._transitionEngine.removeNode(y,h,re||!1,w)}disableAnimations(y,h){this._transitionEngine.markElementAsDisabled(y,h)}process(y,h,w,re){if("@"==w.charAt(0)){const[Se,ht]=Te(w);this._timelineEngine.command(Se,h,ht,re)}else this._transitionEngine.trigger(y,h,w,re)}listen(y,h,w,re,Se){if("@"==w.charAt(0)){const[ht,Ct]=Te(w);return this._timelineEngine.listen(ht,h,Ct,Se)}return this._transitionEngine.listen(y,h,w,re,Se)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let wn=(()=>{class L{constructor(h,w,re){this._element=h,this._startStyles=w,this._endStyles=re,this._state=0;let Se=L.initialStylesByElement.get(h);Se||L.initialStylesByElement.set(h,Se=new Map),this._initialStyles=Se}start(){this._state<1&&(this._startStyles&&fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fn(this._element,this._initialStyles),this._endStyles&&(fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(L.initialStylesByElement.delete(this._element),this._startStyles&&(On(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(On(this._element,this._endStyles),this._endStyles=null),fn(this._element,this._initialStyles),this._state=3)}}return L.initialStylesByElement=new WeakMap,L})();function Xn(L){let y=null;return L.forEach((h,w)=>{(function Er(L){return"display"===L||"position"===L})(w)&&(y=y||new Map,y.set(w,h))}),y}class Ui{constructor(y,h,w,re){this.element=y,this.keyframes=h,this.options=w,this._specialStyles=re,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=w.duration,this._delay=w.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const h=[];return y.forEach(w=>{h.push(Object.fromEntries(w))}),h}_triggerWebAnimation(y,h,w){return y.animate(this._convertKeyframesToObject(h),w)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((w,re)=>{"offset"!==re&&y.set(re,this._finished?w:Zt(this.element,re))}),this.currentSnapshot=y}triggerCallback(y){const h="start"===y?this._onStartFns:this._onDoneFns;h.forEach(w=>w()),h.length=0}}class lr{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,h){return!1}containsElement(y,h){return Rn(y,h)}getParentElement(y){return ce(y)}query(y,h,w){return gn(y,h,w)}computeStyle(y,h,w){return window.getComputedStyle(y)[h]}animate(y,h,w,re,Se,ht=[]){const Wt={duration:w,delay:re,fill:0==re?"both":"forwards"};Se&&(Wt.easing=Se);const tn=new Map,En=ht.filter(fi=>fi instanceof Ui);(function te(L,y){return 0===L||0===y})(w,re)&&En.forEach(fi=>{fi.currentSnapshot.forEach((Zn,ii)=>tn.set(ii,Zn))});let Sn=function rt(L){return L.length?L[0]instanceof Map?L:L.map(y=>Wn(y)):[]}(h).map(fi=>$e(fi));Sn=function Ae(L,y,h){if(h.size&&y.length){let w=y[0],re=[];if(h.forEach((Se,ht)=>{w.has(ht)||re.push(ht),w.set(ht,Se)}),re.length)for(let Se=1;Seht.set(Ct,Zt(L,Ct)))}}return y}(y,Sn,tn);const vi=function Jt(L,y){let h=null,w=null;return Array.isArray(y)&&y.length?(h=Xn(y[0]),y.length>1&&(w=Xn(y[y.length-1]))):y instanceof Map&&(h=Xn(y)),h||w?new wn(L,h,w):null}(y,Sn);return new Ui(y,Sn,Wt,vi)}}var Ti=s(6895);let js=(()=>{class L extends C._j{constructor(h,w){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(w.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(h){const w=this._nextAnimationId.toString();this._nextAnimationId++;const re=Array.isArray(h)?(0,C.vP)(h):h;return go(this._renderer,null,w,"register",[re]),new us(w,this._renderer)}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(r.FYo),r.LFG(Ti.K0))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();class us extends C.LC{constructor(y,h){super(),this._id=y,this._renderer=h}create(y,h){return new Xr(this._id,y,h||{},this._renderer)}}class Xr{constructor(y,h,w,re){this.id=y,this.element=h,this._renderer=re,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",w)}_listen(y,h){return this._renderer.listen(this.element,`@@${this.id}:${y}`,h)}_command(y,...h){return go(this._renderer,this.element,this.id,y,h)}onDone(y){this._listen("done",y)}onStart(y){this._listen("start",y)}onDestroy(y){this._listen("destroy",y)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(y){this._command("setPosition",y)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function go(L,y,h,w,re){return L.setProperty(y,`@@${h}:${w}`,re)}const Fs="@.disabled";let Qs=(()=>{class L{constructor(h,w,re){this.delegate=h,this.engine=w,this._zone=re,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),w.onRemovalComplete=(Se,ht)=>{const Ct=ht?.parentNode(Se);Ct&&ht.removeChild(Ct,Se)}}createRenderer(h,w){const Se=this.delegate.createRenderer(h,w);if(!(h&&w&&w.data&&w.data.animation)){let En=this._rendererCache.get(Se);return En||(En=new Fe("",Se,this.engine,()=>this._rendererCache.delete(Se)),this._rendererCache.set(Se,En)),En}const ht=w.id,Ct=w.id+"-"+this._currentId;this._currentId++,this.engine.register(Ct,h);const Wt=En=>{Array.isArray(En)?En.forEach(Wt):this.engine.registerTrigger(ht,Ct,h,En.name,En)};return w.data.animation.forEach(Wt),new xt(this,Ct,Se,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(h,w,re){h>=0&&hw(re)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Se=>{const[ht,Ct]=Se;ht(Ct)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([w,re]))}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 L.\u0275fac=function(h){return new(h||L)(r.LFG(r.FYo),r.LFG(ze),r.LFG(r.R0b))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();class Fe{constructor(y,h,w,re){this.namespaceId=y,this.delegate=h,this.engine=w,this._onDestroy=re,this.destroyNode=this.delegate.destroyNode?Se=>h.destroyNode(Se):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(y,h){return this.delegate.createElement(y,h)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,h){this.delegate.appendChild(y,h),this.engine.onInsert(this.namespaceId,h,y,!1)}insertBefore(y,h,w,re=!0){this.delegate.insertBefore(y,h,w),this.engine.onInsert(this.namespaceId,h,y,re)}removeChild(y,h,w){this.engine.onRemove(this.namespaceId,h,this.delegate,w)}selectRootElement(y,h){return this.delegate.selectRootElement(y,h)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,h,w,re){this.delegate.setAttribute(y,h,w,re)}removeAttribute(y,h,w){this.delegate.removeAttribute(y,h,w)}addClass(y,h){this.delegate.addClass(y,h)}removeClass(y,h){this.delegate.removeClass(y,h)}setStyle(y,h,w,re){this.delegate.setStyle(y,h,w,re)}removeStyle(y,h,w){this.delegate.removeStyle(y,h,w)}setProperty(y,h,w){"@"==h.charAt(0)&&h==Fs?this.disableAnimations(y,!!w):this.delegate.setProperty(y,h,w)}setValue(y,h){this.delegate.setValue(y,h)}listen(y,h,w){return this.delegate.listen(y,h,w)}disableAnimations(y,h){this.engine.disableAnimations(y,h)}}class xt extends Fe{constructor(y,h,w,re,Se){super(h,w,re,Se),this.factory=y,this.namespaceId=h}setProperty(y,h,w){"@"==h.charAt(0)?"."==h.charAt(1)&&h==Fs?this.disableAnimations(y,w=void 0===w||!!w):this.engine.process(this.namespaceId,y,h.slice(1),w):this.delegate.setProperty(y,h,w)}listen(y,h,w){if("@"==h.charAt(0)){const re=function Ne(L){switch(L){case"body":return document.body;case"document":return document;case"window":return window;default:return L}}(y);let Se=h.slice(1),ht="";return"@"!=Se.charAt(0)&&([Se,ht]=function Dt(L){const y=L.indexOf(".");return[L.substring(0,y),L.slice(y+1)]}(Se)),this.engine.listen(this.namespaceId,re,Se,ht,Ct=>{this.factory.scheduleListenerCallback(Ct._data||-1,w,Ct)})}return this.delegate.listen(y,h,w)}}const In=[{provide:C._j,useClass:js},{provide:gr,useFactory:function cn(){return new ms}},{provide:ze,useClass:(()=>{class L extends ze{constructor(h,w,re,Se){super(h.body,w,re)}ngOnDestroy(){this.flush()}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(Ti.K0),r.LFG(ut),r.LFG(gr),r.LFG(r.z2F))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})()},{provide:r.FYo,useFactory:function yn(L,y,h){return new Qs(L,y,h)},deps:[n.se,ze,r.R0b]}],ei=[{provide:ut,useFactory:()=>new lr},{provide:r.QbO,useValue:"BrowserAnimations"},...In],Ci=[{provide:ut,useClass:pt},{provide:r.QbO,useValue:"NoopAnimations"},...In];let Ri=(()=>{class L{static withConfig(h){return{ngModule:L,providers:h.disableAnimations?Ci:ei}}}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({providers:ei,imports:[n.b2]}),L})();var qi=s(4006),ds=s(7009),ki=s(9549),zs=s(266),Cs=s(9784),Ws=s(8423),Uo=s(7185),ie=s(7579),et=s(727),gt=s(1135),Ft=s(9841),Qt=s(2805),Ut=s(515),mn=s(4482),lt=s(5032),Tn=s(5403),qt=s(8421),Mi=s(3900),Ki=s(1005),hn=s(8746),Di=s(2722),W=s(4004);function Ee(L,y){if(1&L&&r._UZ(0,"div",6),2&L){const h=r.oxw(2);r.Udp("box-shadow","0 0 10px "+h.color+", 0 0 5px "+h.color)}}function X(L,y){if(1&L&&(r.TgZ(0,"div",7),r._UZ(1,"div",8),r.qZA()),2&L){const h=r.oxw(2);r.xp6(1),r.Udp("border-top-color",h.color)("border-left-color",h.color)}}function He(L,y){if(1&L&&(r.ynx(0),r.TgZ(1,"div",1)(2,"div",2)(3,"div",3),r.YNc(4,Ee,1,2,"div",4),r.qZA()(),r.YNc(5,X,2,4,"div",5),r.qZA(),r.BQk()),2&L){const h=y.$implicit,w=r.oxw();r.xp6(1),r.Udp("transition","opacity "+w.speed+"ms "+w.ease),r.uIk("active",h.active),r.xp6(2),r.Udp("transform",h.transform)("background-color",w.color)("transition",h.active?"all "+w.speed+"ms "+w.ease:"none"),r.xp6(1),r.Q6J("ngIf",w.meteor),r.xp6(1),r.Q6J("ngIf",w.spinner)}}class St{constructor(y,h){this._onDestroyCallback=h,this._started=new ie.x,this.started=this._started.pipe((0,o.h)(()=>!this.isStarted)),this._completed=new ie.x,this.completed=this._completed.pipe((0,o.h)(()=>this.isStarted)),this._trickling=new ie.x,this._worker=et.w0.EMPTY,this._state=new gt.X({active:!1,value:0}),this._config=new gt.X(y),this.state=this._state.asObservable(),this.config=this._config.asObservable(),this._worker=(0,Ft.a)([this._trickling,this._config]).pipe(function Vn(L){return(0,mn.e)((y,h)=>{let w=!1,re=null,Se=null;const ht=()=>{if(Se?.unsubscribe(),Se=null,w){w=!1;const Ct=re;re=null,h.next(Ct)}};y.subscribe((0,Tn.x)(h,Ct=>{Se?.unsubscribe(),w=!0,re=Ct,Se=(0,Tn.x)(h,ht,lt.Z),(0,qt.Xf)(L(Ct)).subscribe(Se)},()=>{ht(),h.complete()},void 0,()=>{re=Se=null}))})}(([w,re])=>(0,Qt.H)(w?re.debounceTime:0)),(0,Mi.w)(([w,re])=>w?this.onTrickling(re):this.onComplete(re))).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(y){const h=this.snapshot.value;this.isStarted?("number"!=typeof y&&(y=this._config.value.trickleFunc(h)),this.set(h+y)):this.start()}set(y){this.setState({value:this.clamp(y),active:!0})}setConfig(y){this._config.next({...this._config.value,...y})}destroy(){this._worker.unsubscribe(),this._trickling.complete(),this._state.complete(),this._config.complete(),this._started.complete(),this._completed.complete(),this._onDestroyCallback()}setState(y){this._state.next({...this.snapshot,...y})}clamp(y){return Math.max(this._config.value.min,Math.min(this._config.value.max,y))}onTrickling(y){return this.isStarted||this.set(this._config.value.min),(0,Qt.H)(0,y.trickleSpeed).pipe((0,x.b)(()=>this.inc()))}onComplete(y){return this._completed.next(),this.isStarted?(0,u.of)({}).pipe((0,x.b)(()=>this.setState({value:100})),(0,Ki.g)(1.7*y.speed),(0,x.b)(()=>this.setState({active:!1})),(0,Ki.g)(y.speed),(0,hn.x)(()=>this.setState({value:0})),(0,Di.R)(this._started)):Ut.E}}const Kt=new r.OlP("ngProgressConfig"),sn={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:L=>L>=0&&L<20?10:L>=20&&L<50?4:L>=50&&L<80?2:L>=80&&L<99?.5:0};let An=(()=>{class L{constructor(h){this._instances=new Map,this.config=h?{...sn,...h}:sn}ref(h="root",w){if(this._instances.has(h)){const re=this._instances.get(h);return w&&re.setConfig({...this.config,...w}),re}{const re=new St({...this.config,...w},this.deleteInstance(h));return this._instances.set(h,re).get(h)}}destroyAll(){this._instances.forEach(h=>h.destroy())}deleteInstance(h){return()=>{this._instances.delete(h)}}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(Kt,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),di=(()=>{class L{constructor(h){this._ngProgress=h,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 r.vpe,this.completed=new r.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,W.U)(h=>({active:h.active,transform:`translate3d(${h.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(h){this.progressRef.inc(h)}set(h){this.progressRef.set(h)}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(An))},L.\u0275cmp=r.Xpm({type:L,selectors:[["ng-progress"]],hostAttrs:["role","progressbar"],hostVars:4,hostBindings:function(h,w){2&h&&r.uIk("spinnerPosition",w.spinnerPosition)("direction",w.direction)("thick",w.thick)("fixed",w.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:[r.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(h,w){1&h&&(r.YNc(0,He,6,11,"ng-container",0),r.ALo(1,"async")),2&h&&r.Q6J("ngIf",r.lcZ(1,1,w.state$))},dependencies:[Ti.O5,Ti.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:spinner-animation .25s linear infinite;animation:spinner-animation .25s linear infinite;border:2px solid transparent;border-radius:50%}@-webkit-keyframes spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spinner-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'],changeDetection:0}),L})(),hi=(()=>{class L{static withConfig(h){return{ngModule:L,providers:[{provide:Kt,useValue:h}]}}}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[[Ti.ez]]}),L})();const xi=new r.OlP("ngProgressHttpConfig");let en=(()=>{class L{constructor(h,w){this.ngProgress=h,this._inProgressCount=0,this._config={id:"root",silentApis:[],matcher:void 0},this._config=w?{...this._config,...w}:this._config}intercept(h,w){return h.headers.has("ignoreProgressBar")?w.handle(h.clone({headers:h.headers.delete("ignoreProgressBar")})):this.checkUrl(h)?w.handle(h):(this._inProgressCount++,this._progressRef=this.ngProgress.ref(this._config.id),this._progressRef.isStarted||this._progressRef.start(),w.handle(h).pipe((0,hn.x)(()=>{this._inProgressCount--,0===this._inProgressCount&&this._progressRef.complete()})))}checkUrl(h){const w=h.url.toLowerCase();return this._config.matcher&&this._config.silentApis?.length?Ei(w,this._config.matcher)&&Zi(w,this._config.silentApis):this._config.silentApis?.length?Zi(w,this._config.silentApis):!!this._config.matcher&&Ei(w,this._config.matcher)}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(An),r.LFG(xi,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();function Zi(L,y){return!!y.find(h=>L.includes(h.toLowerCase()))}function Ei(L,y){return!!L.match(y)}let $n=(()=>{class L{static withConfig(h){return{ngModule:L,providers:[{provide:xi,useValue:h}]}}}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({providers:[{provide:l.TP,useClass:en,multi:!0}]}),L})();var Mr=s(6493),Gi=s(6271),mi=s(1390),Si=s(4249),ur=s(2777),es=s(5094);const Sr=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"admin-mod",loadChildren:()=>Promise.all([s.e(471),s.e(375),s.e(592),s.e(734)]).then(s.bind(s,7734)).then(L=>L.AdminModule),canActivate:[es.H,ur.t],data:{title:"Admin & Moderator Panel Management",description:"Halaman Khusus Untuk Administrasi & Moderasi",keywords:"Admin Moderator Fansub Database",[Gi.t.decoratorVerifiedOnly]:!0,[Gi.t.decoratorRoles]:[Si.yS.ADMIN,Si.yS.MODERATOR]}},{path:"create",loadChildren:()=>Promise.all([s.e(375),s.e(592),s.e(580)]).then(s.bind(s,3580)).then(L=>L.CreateModule),data:{title:"Membuat Konten Baru",description:"Membuat Konten Baru",keywords:"Add New Content"}},{path:"login",loadChildren:()=>s.e(146).then(s.bind(s,8146)).then(L=>L.LoginModule),data:{title:"Masuk",description:"Halaman Login",keywords:"Login"}},{path:"register",loadChildren:()=>Promise.all([s.e(592),s.e(839)]).then(s.bind(s,3839)).then(L=>L.RegisterModule),data:{title:"Pendaftaran",description:"Halaman Pembuatan Akun Baru",keywords:"Register"}},{path:"reset-password",loadChildren:()=>Promise.all([s.e(592),s.e(960)]).then(s.bind(s,5960)).then(L=>L.ResetPasswordModule),data:{title:"Reset Akun",description:"Halaman Atur Ulang Kata Sandi",keywords:"Reset Password"}},{path:"privacy-policy",loadChildren:()=>s.e(772).then(s.bind(s,5772)).then(L=>L.PrivacyPolicyModule),data:{title:"Privacy Policy",description:"Halaman Kebijakan Privasi",keywords:"privacy-policy"}},{path:"verify",loadChildren:()=>Promise.all([s.e(592),s.e(628)]).then(s.bind(s,7628)).then(L=>L.VerifyModule),canActivate:[ur.t],data:{title:"Verifikasi",description:"Halaman Verifikasi Akun",keywords:"Verify",[Gi.t.decoratorRoles]:[Si.yS.ADMIN,Si.yS.MODERATOR,Si.yS.FANSUBBER,Si.yS.USER]}},{path:"home",loadChildren:()=>Promise.all([s.e(592),s.e(915)]).then(s.bind(s,2915)).then(L=>L.HomeModule),data:{title:"Database Fansub Indonesia",description:"Database Fansub Indonesia",keywords:"Fansub DB"}},{path:"news",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(375),s.e(757),s.e(592),s.e(108)]).then(s.bind(s,6108)).then(L=>L.NewsModule),data:{title:"Berita & Informasi",description:"Papan Pengumuman",keywords:"News"}},{path:"ticket",loadChildren:()=>Promise.all([s.e(171),s.e(375),s.e(592),s.e(33)]).then(s.bind(s,1090)).then(L=>L.TicketModule),data:{title:"Ticket - Lapor Pelanggaran",description:"Pelanggaran & Penyalahgunaan",keywords:"Report"}},{path:"mailbox",loadChildren:()=>Promise.all([s.e(471),s.e(592),s.e(297)]).then(s.bind(s,2297)).then(L=>L.MailboxModule),canActivate:[ur.t,es.H],data:{title:"Surat Elektronik",description:"E-Mail & DM's",keywords:"Surel Email DM",[Gi.t.decoratorVerifiedOnly]:!0,[Gi.t.decoratorRoles]:[Si.yS.ADMIN,Si.yS.MODERATOR,Si.yS.FANSUBBER,Si.yS.USER]}},{path:"nihongo",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(375),s.e(757),s.e(592),s.e(750)]).then(s.bind(s,6750)).then(L=>L.NihongoModule),data:{title:"Belajar Bahasa Jepang",description:"Jejepangan Lebih Seru Dengan Bahasa Aslinya",keywords:"Bahasa Jepang"}},{path:"berkas",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(375),s.e(757),s.e(268),s.e(219),s.e(592),s.e(635)]).then(s.bind(s,8635)).then(L=>L.BerkasModule),data:{title:"Semua Berkas",description:"Kelola Arsip Berkas",keywords:"Berkas File"}},{path:"anime",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(757),s.e(268),s.e(650),s.e(32)]).then(s.bind(s,32)).then(L=>L.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([s.e(471),s.e(171),s.e(757),s.e(268),s.e(650),s.e(469)]).then(s.bind(s,8469)).then(L=>L.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([s.e(471),s.e(171),s.e(375),s.e(757),s.e(268),s.e(219),s.e(478)]).then(s.bind(s,8478)).then(L=>L.FansubModule),data:{title:"Katalog Informasi Seluruh Fansub Indonesia",description:"Daftar Isi Seluruh Fansub Indonesia",keywords:"Fansub Indonesia"}},{path:"user",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(375),s.e(757),s.e(268),s.e(219),s.e(794)]).then(s.bind(s,2794)).then(L=>L.UserModule),data:{title:"User Profile",description:"Halaman Informasi Pengguna",keywords:"User"}},{path:"rss-feed",loadChildren:()=>Promise.all([s.e(471),s.e(171),s.e(757),s.e(592),s.e(534)]).then(s.bind(s,6534)).then(L=>L.RssFeedModule),data:{title:"Loper Koran RSS Feed",description:"Halaman Rangkuman Berita Acara Fansub Indonesia",keywords:"RSS Feed"}},{path:"torrent",loadChildren:()=>Promise.all([s.e(592),s.e(58)]).then(s.bind(s,4058)).then(L=>L.TorrentModule),data:{title:"Web-SocketRTC Torrent",description:"Halaman Peer-to-Peer Berbagi Berkas",keywords:"Web Torrent"}},{path:"docs",loadChildren:()=>Promise.all([s.e(592),s.e(114)]).then(s.bind(s,7114)).then(L=>L.DocsModule),data:{title:"Developers Documentation",description:"For Developers Only",keywords:"Domain & API Keys"}},{path:"error",loadChildren:()=>s.e(762).then(s.bind(s,5762)).then(L=>L.NotFoundModule),data:{title:"Error - 404",description:"Whoops! Halaman Tidak Ditemukan",keywords:"404 - Not Found"}},{path:"**",redirectTo:"error"}];let Mt=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[mi.Bz.forRoot(Sr,{initialNavigation:"enabledBlocking",scrollPositionRestoration:"enabled",relativeLinkResolution:"corrected"}),mi.Bz]}),L})(),_n=(()=>{class L extends n.hm{constructor(){super(...arguments),this.overrides={pinch:{enable:!1},rotate:{enable:!1}}}}return L.\u0275fac=function(){let y;return function(w){return(y||(y=r.n5z(L)))(w||L)}}(),L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Un={showDelay:250,hideDelay:0,touchendHideDelay:0,touchGestures:"off"};var Ln=s(210),li=s(257),gi=s(3e3);let dr=(()=>{class L{constructor(h,w){this.gs=h,this.bs=w}intercept(h,w){return w.handle(h).pipe((0,Di.R)(this.bs.onCancelPendingRequests))}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(li.U),r.LFG(gi.z))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();var Fi=s(5934),Xi=s(8381),Ls=s(4137);let qs=(()=>{class L{constructor(h,w,re){this.gs=h,this.ss=w,this.as=re}intercept(h,w){const re=h.url,Se=re.startsWith(Fi.N.baseUrl)||re.startsWith(Fi.N.apiUrl);if(this.gs.isBrowser&&Se){if(h=h.clone({withCredentials:!this.gs.isDevMode}),this.as.token){const ht=this.as.token.length,Ct=this.as.token.slice(0,5)+"....."+this.as.token.slice(ht-5,ht);this.gs.log("[INTERCEPT_JWT]",Ct),h=h.clone({headers:h.headers.append("Authorization",`Bearer ${this.as.token}`)})}this.ss.mySocket?.id&&(this.gs.log("[INTERCEPT_SOCKET]",this.ss.mySocket.id),h=h.clone({headers:h.headers.append("x-socket-id",this.ss.mySocket.id)}))}return w.handle(h)}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(li.U),r.LFG(Xi.R),r.LFG(Ls.e))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();var ts=s(262),wo=s(2843),Qo=s(6925),Gs=s(3379);let ga=(()=>{class L{constructor(h,w,re,Se,ht,Ct,Wt,tn){this.gs=h,this.router=w,this.as=re,this.toast=Se,this.bs=ht,this.ss=Ct,this.ls=Wt,this.activatedRoute=tn}intercept(h,w){return w.handle(h).pipe((0,x.b)(re=>{if(re instanceof l.Zn&&this.gs.isBrowser){let Se="UwUu~ Berhasil~",ht="Yeay, Selesai!";switch(re&&re.body&&(re.body.info&&(ht=re.body.info),re.body.result&&re.body.result.message&&(Se=re.body.result.message)),re.status){case 200:this.toast.success(Se,ht);break;case 201:case 202:this.toast.info(Se,ht);break;default:this.toast.warning(Se,ht)}if("GET"===h.method){this.gs.log("[SOCKET_TRACK-SET]",h.url);let Ct=h.url;Ct.startsWith(Fi.N.baseUrl)&&(Ct=Ct.slice(Fi.N.baseUrl.length)),Ct.startsWith(Fi.N.apiUrl)&&(Ct=Ct.slice(Fi.N.apiUrl.length)),this.ss.socketEmitVolatile("track-set",{pathUrl:Ct.split("?")[0]})}}}),(0,ts.K)(re=>{if(this.gs.log(`[INTERCEPT_ERROR-${re.status}]`,re.statusText,"error"),this.gs.isBrowser){let Se="Terjadi Kesalahan Pada Jaringan~",ht="Whoops, Server Sibuk T.T";switch(re&&re.error&&(re.error.info&&(ht=re.error.info),re.error.result&&re.error.result.message&&(Se=re.error.result.message)),this.toast.error(Se,ht,null,!0),re.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,wo._)(()=>re.error)}))}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(li.U),r.LFG(mi.F0),r.LFG(Ls.e),r.LFG(Qo.k),r.LFG(gi.z),r.LFG(Xi.R),r.LFG(Gs.n),r.LFG(mi.gz))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac}),L})();var _a=s(5861);const va=(0,C.X$)("onSideNavChange",[(0,C.SB)("close",(0,C.oB)({"min-width":"50px"})),(0,C.SB)("open",(0,C.oB)({"min-width":"200px"})),(0,C.eR)("close => open",(0,C.jt)("250ms ease-in")),(0,C.eR)("open => close",(0,C.jt)("250ms ease-out"))]),Qa=(0,C.X$)("onMainContentChange",[(0,C.SB)("close",(0,C.oB)({"margin-left":"62px"})),(0,C.SB)("open",(0,C.oB)({"margin-left":"200px"})),(0,C.eR)("close => open",(0,C.jt)("250ms ease-in")),(0,C.eR)("open => close",(0,C.jt)("250ms ease-out"))]),Ho=(0,C.X$)("animateText",[(0,C.SB)("hide",(0,C.oB)({display:"none",opacity:0})),(0,C.SB)("show",(0,C.oB)({display:"block",opacity:1})),(0,C.eR)("close => open",(0,C.jt)("350ms ease-in")),(0,C.eR)("open => close",(0,C.jt)("200ms ease-out"))]);var To=s(8745),Bs=s(6382),so=s(7),$s=s(7814),Xs=s(8020),oo=s(7845),Ao=s(9775);let Ja=(()=>{class L{constructor(h){this.gs=h,this.currentViewer=null}viewImage(h){this.currentViewer=new Viewer(h,{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:w=>{this.gs.log("[VIEWERJS]",w.type),this.currentViewer.show()},show:w=>{this.gs.log("[VIEWERJS]",w.type)},shown:w=>{this.gs.log("[VIEWERJS]",w.type)},view:w=>{this.gs.log("[VIEWERJS]",w.type)},viewed:w=>{this.gs.log("[VIEWERJS]",w.type)},move:w=>{this.gs.log("[VIEWERJS]",w.type)},moved:w=>{this.gs.log("[VIEWERJS]",w.type)},rotate:w=>{this.gs.log("[VIEWERJS]",w.type)},rotated:w=>{this.gs.log("[VIEWERJS]",w.type)},scale:w=>{this.gs.log("[VIEWERJS]",w.type)},scaled:w=>{this.gs.log("[VIEWERJS]",w.type)},play:w=>{this.gs.log("[VIEWERJS]",w.type)},stop:w=>{this.gs.log("[VIEWERJS]",w.type)},hide:w=>{this.gs.log("[VIEWERJS]",w.type)},zoom:w=>{this.gs.log("[VIEWERJS]",w.type)},zoomed:w=>{this.gs.log("[VIEWERJS]",w.type)},hidden:w=>{this.gs.log("[VIEWERJS]",w.type),this.currentViewer.destroy(),this.currentViewer=null}})}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(li.U))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();var Vo=s(3267),ji=s(8987),Al=s(6781),Sl=s(9618),Ol=s(8058),ya=s(2673),qa=s(4859),Sc=s(3238),So=s(7392),Oo=s(3683);function Xa(L,y){if(1&L&&(r.TgZ(0,"button",17),r._UZ(1,"mat-icon",18),r._uU(2),r.qZA()),2&L){const h=r.oxw();r.xp6(2),r.hij(" ",h.myPoints," ")}}function Il(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.toggleDelete())}),r._UZ(1,"mat-icon",20),r.qZA()}}function vr(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.toggleReport())}),r._UZ(1,"mat-icon",22),r.qZA()}}function Jo(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"button",23),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.toggleWeather())}),r._UZ(1,"mat-icon",24),r.qZA()}}function Io(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"button",25),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.openAdminNavigation())}),r._UZ(1,"mat-icon",26),r.qZA()}}function Rl(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"button",27),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.reloadPage())}),r._UZ(1,"mat-icon",28),r.qZA()}}let el=(()=>{class L{constructor(h,w,re,Se,ht,Ct,Wt,tn,En,Sn,vi,fi,Zn,ii){this.snackBar=h,this.lms=w,this.rps=re,this.router=Se,this.pi=ht,this.gs=Ct,this.ss=Wt,this.bs=tn,this.ls=En,this.ds=Sn,this.berkas=vi,this.fansub=fi,this.news=Zn,this.user=ii,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 h=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;this.gs.isDarkMode=h||"true"===this.ls.getItem(this.gs.localStorageKeys.DarkMode),this.toggleDarkTheme(!0),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",w=>{this.gs.isDarkMode=w.matches,this.toggleDarkTheme(!0)}),this.subsGlobalRoom=this.ss.globalRoom.subscribe({next:w=>{this.myPoints=w?.member_list[this.ss.mySocket.id]?.profile_?.points||0}})}}ngOnDestroy(){this.subsGlobalRoom?.unsubscribe(),this.subsDialog?.unsubscribe(),this.subsDelete?.unsubscribe()}get discordUrl(){return Fi.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(),window.location.reload()}openSearch(){this.rps.toggleSidePanel("SearchAllComponent")}openLiveChat(){this.rps.toggleSidePanel("LiveChatComponent")}openAdminNavigation(){this.rps.toggleSidePanel("AdminNavigationComponent")}toggleDarkTheme(h=!1){this.gs.toggleDarkTheme(h),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 h=this;return(0,_a.Z)(function*(){const w=h.router.url.split("?")[0],re=w.split("/")[1],Se=w.split("/")[2];h.subsDialog=(yield h.ds.openKonfirmasiDialog("Konfirmasi Hapus",`Yakin Akan Menghapus ${re[0].toUpperCase()}${re.slice(1)} -- '${Se}' ?`,!0)).afterClosed().subscribe({next:ht=>{h.gs.log("[INFO_DIALOG_CLOSED]",ht),!0===ht&&(h.bs.busy(),h.subsDelete=h.deleteHandle[re].delete(Se).subscribe({next:Ct=>{h.gs.log(`[${re.toUpperCase()}_CLICK_DELETE_SUCCESS]`,Ct),h.bs.idle(),h.router.navigateByUrl(`/${re}`)},error:Ct=>{h.gs.log(`[${re.toUpperCase()}_CLICK_DELETE_ERROR]`,Ct,"error"),h.bs.idle()}})),h.subsDialog.unsubscribe()}})})()}toggleReport(){const h=this.router.url.split("?")[0];this.router.navigate(["/create/ticket"],{queryParams:{url:(h.startsWith("/")?Fi.N.baseUrl:"")+h}})}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(ds.ux),r.Y36(so.S),r.Y36($s.C),r.Y36(mi.F0),r.Y36(To.Z),r.Y36(li.U),r.Y36(Xi.R),r.Y36(gi.z),r.Y36(Gs.n),r.Y36(oo.x),r.Y36(ji.A),r.Y36(Al.T),r.Y36(Sl.Y),r.Y36(Ol.K))},L.\u0275cmp=r.Xpm({type:L,selectors:[["app-header"]],decls:18,vars:9,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","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","Refresh",3,"click"],["fontIcon","replay"]],template:function(h,w){1&h&&(r.TgZ(0,"mat-toolbar",0)(1,"button",1),r.NdJ("click",function(){return w.toggleSideNav()}),r._UZ(2,"mat-icon",2),r.qZA(),r.TgZ(3,"span",3),r._uU(4),r.qZA(),r._UZ(5,"span",4),r.YNc(6,Xa,3,1,"button",5),r.YNc(7,Il,2,0,"button",6),r.YNc(8,vr,2,0,"button",7),r.YNc(9,Jo,2,0,"button",8),r.TgZ(10,"button",9),r.NdJ("click",function(){return w.toggleDarkTheme()}),r._UZ(11,"mat-icon",10),r.qZA(),r.TgZ(12,"button",11),r.NdJ("click",function(){return w.openLiveChat()}),r._UZ(13,"mat-icon",12),r.qZA(),r.YNc(14,Io,2,0,"button",13),r.TgZ(15,"button",14),r.NdJ("click",function(){return w.openSearch()}),r._UZ(16,"mat-icon",15),r.qZA(),r.YNc(17,Rl,2,0,"button",16),r.qZA()),2&h&&(r.xp6(4),r.hij(" ",w.PI.getHeaderTitle," "),r.xp6(2),r.Q6J("ngIf",w.ROUTER.url.startsWith("/nihongo")&&w.GS.isDesktop),r.xp6(1),r.Q6J("ngIf",w.canDelete),r.xp6(1),r.Q6J("ngIf",w.canReport),r.xp6(1),r.Q6J("ngIf",w.GS.weatherEffect),r.xp6(4),r.Q6J("matBadge",w.SS.messageChatUnreadCount)("matBadgeColor","warn"),r.xp6(1),r.Q6J("ngIf",w.ROUTER.url.startsWith("/admin-mod/")),r.xp6(3),r.Q6J("ngIf",!(null!=w.SS.mySocket&&w.SS.mySocket.id)))},dependencies:[Ti.O5,ya.k,qa.lW,Sc.X2,So.Hw,Oo.Ye,zs.gM]}),L})();var hs=s(4850),Ns=s(6338),qo=s(455);function jo(L,y){1&L&&r.GkF(0)}function zo(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",12),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"img",13),r.TgZ(2,"span",14),r._uU(3),r._UZ(4,"br"),r._uU(5),r.qZA()(),r.TgZ(6,"a",15),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.logout())}),r._UZ(7,"mat-icon",16),r.TgZ(8,"span",8),r._uU(9),r.qZA()()}if(2&L){const h=r.oxw();r.Tol(h.TRUSTED?"gradient-border":""),r.xp6(1),r.s9C("src",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value.image_url,r.LSH),r.xp6(1),r.Q6J("@animateText",h.linkText?"show":"hide"),r.xp6(1),r.hij(" ",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value.kartu_tanda_penduduk_.nama," "),r.xp6(2),r.hij(" ",null==h.AS.currentUserSubject||null==h.AS.currentUserSubject.value?null:h.AS.currentUserSubject.value._email," "),r.xp6(3),r.Q6J("@animateText",h.linkText?"show":"hide"),r.xp6(1),r.hij(" Keluar ",h.AS.logoutTimerText," ")}}function I(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",17),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",18),r.TgZ(2,"span",8),r._uU(3,"Masuk"),r.qZA()(),r.TgZ(4,"a",19),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(5,"mat-icon",20),r.TgZ(6,"span",8),r._uU(7,"Daftar"),r.qZA()()}if(2&L){const h=r.oxw();r.xp6(2),r.Q6J("@animateText",h.linkText?"show":"hide"),r.xp6(4),r.Q6J("@animateText",h.linkText?"show":"hide")}}function k(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",22),r.TgZ(2,"span",8),r._uU(3),r.qZA()()}if(2&L){const h=y.$implicit,w=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("fontIcon",h.icon)("matBadge",h.badge),r.xp6(1),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function S(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",22),r.TgZ(2,"span",8),r._uU(3),r.qZA()()}if(2&L){const h=y.$implicit,w=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("fontIcon",h.icon)("matBadge",h.badge),r.xp6(1),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function J(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",22),r.TgZ(2,"span",8),r._uU(3),r.qZA()()}if(2&L){const h=y.$implicit,w=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("fontIcon",h.icon)("matBadge",h.badge),r.xp6(1),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function _e(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",22),r.TgZ(2,"span",8),r._uU(3),r.qZA()()}if(2&L){const h=y.$implicit,w=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("fontIcon",h.icon)("matBadge",h.badge),r.xp6(1),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}function We(L,y){if(1&L){const h=r.EpF();r.TgZ(0,"a",21),r.NdJ("click",function(){r.CHM(h);const re=r.oxw();return r.KtG(re.forceCloseSideNav())}),r._UZ(1,"mat-icon",22),r.TgZ(2,"span",8),r._uU(3),r.qZA()()}if(2&L){const h=y.$implicit,w=r.oxw();r.s9C("routerLink",h.link),r.xp6(1),r.Q6J("fontIcon",h.icon)("matBadge",h.badge),r.xp6(1),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(1),r.Oqu(h.name)}}const mt=function(L){return{"overflow-y":L,"overflow-x":"hidden"}};let Tt=(()=>{class L{constructor(h,w,re,Se,ht,Ct){this.router=h,this.lms=w,this.as=re,this.gs=Se,this.ds=ht,this.ls=Ct,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===Si.yS.ADMIN||this.as.currentUserSubject.value.role===Si.yS.MODERATOR||this.as.currentUserSubject.value.role===Si.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:h=>{this.gs.log("[INFO_DIALOG_CLOSED]",h),!0===h&&this.router.navigateByUrl("/torrent"),this.subsDialog.unsubscribe()}})}toggleDebugLog(h){this.gs.forceEnableDebugLog=h.checked,this.ls.setItem(this.gs.localStorageKeys.DebugLogs,JSON.stringify(h.checked))}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(mi.F0),r.Y36(so.S),r.Y36(Ls.e),r.Y36(li.U),r.Y36(oo.x),r.Y36(Gs.n))},L.\u0275cmp=r.Xpm({type:L,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(h,w){if(1&h&&(r.TgZ(0,"div",0),r.NdJ("mouseenter",function(){return w.onMouseHoverIn()})("mouseleave",function(){return w.onMouseHoverOut()}),r.TgZ(1,"mat-nav-list"),r.YNc(2,jo,1,0,"ng-container",1),r.YNc(3,zo,10,9,"ng-template",null,2,r.W1O),r.YNc(5,I,8,2,"ng-template",null,3,r.W1O),r.qZA(),r._UZ(7,"mat-divider",4),r.TgZ(8,"mat-nav-list"),r.YNc(9,k,4,5,"a",5),r.qZA(),r._UZ(10,"mat-divider",4),r.TgZ(11,"mat-nav-list"),r.YNc(12,S,4,5,"a",5),r.qZA(),r._UZ(13,"mat-divider",4),r.TgZ(14,"mat-nav-list"),r.YNc(15,J,4,5,"a",5),r.qZA(),r._UZ(16,"mat-divider",4),r.TgZ(17,"mat-nav-list")(18,"a",6),r.NdJ("click",function(){return w.openWebTorrent()}),r._UZ(19,"mat-icon",7),r.TgZ(20,"span",8),r._uU(21,"Web Torrent"),r.qZA()(),r.YNc(22,_e,4,5,"a",5),r.qZA(),r._UZ(23,"mat-divider",4),r.TgZ(24,"mat-nav-list"),r.YNc(25,We,4,5,"a",5),r.TgZ(26,"a",6),r.NdJ("click",function(){return w.openDocumentation()}),r._UZ(27,"mat-icon",9),r.TgZ(28,"span",8),r._uU(29," Dev. Mode "),r.TgZ(30,"span",10)(31,"mat-slide-toggle",11),r.NdJ("ngModelChange",function(Se){return w.GS.forceEnableDebugLog=Se})("click",function(Se){return Se.stopPropagation()})("change",function(Se){return w.toggleDebugLog(Se)}),r.qZA()()()()(),r._UZ(32,"div",4),r.qZA()),2&h){const re=r.MAs(4),Se=r.MAs(6);r.Q6J("@onSideNavChange",w.sideNavExpanded?"open":"close")("ngStyle",r.VKq(13,mt,w.sideNavExpanded?"auto":"hidden")),r.xp6(2),r.Q6J("ngIf",null==w.AS.currentUserSubject?null:w.AS.currentUserSubject.value)("ngIfThen",re)("ngIfElse",Se),r.xp6(7),r.Q6J("ngForOf",w.mainMenus),r.xp6(3),r.Q6J("ngForOf",w.contentMenus),r.xp6(3),r.Q6J("ngForOf",w.additionalMenus),r.xp6(5),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(2),r.Q6J("ngForOf",w.miscMenus),r.xp6(3),r.Q6J("ngForOf",w.otherMenus),r.xp6(3),r.Q6J("@animateText",w.linkText?"show":"hide"),r.xp6(3),r.Q6J("ngModel",w.GS.forceEnableDebugLog)}},dependencies:[Ti.sg,Ti.O5,Ti.PC,mi.yS,mi.Od,ya.k,hs.d,So.Hw,Ns.Hk,Ns.Tg,qo.Rr,qi.JJ,qi.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:[va,Ho]}}),L})();function Xt(L,y){1&L&&r.GkF(0,4)}let Dn=(()=>{class L{constructor(h,w){this.rps=h,this.gs=w}get RPS(){return this.rps}ngOnInit(){}}return L.\u0275fac=function(h){return new(h||L)(r.Y36($s.C),r.Y36(li.U))},L.\u0275cmp=r.Xpm({type:L,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(h,w){1&h&&(r.TgZ(0,"div",0)(1,"div",1)(2,"div",2),r.YNc(3,Xt,1,0,"ng-container",3),r.qZA()()()),2&h&&(r.xp6(3),r.Q6J("ngComponentOutlet",w.RPS.componentView))},dependencies:[Ti.$G,Ti.O5],styles:[".sidepanel_container[_ngcontent-%COMP%]{max-width:320px}.mat-list-item-content[_ngcontent-%COMP%]{padding:0!important}"]}),L})(),ci=(()=>{class L{constructor(h,w){this.fs=h,this.gs=w}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()}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(Bs.r),r.Y36(li.U))},L.\u0275cmp=r.Xpm({type:L,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(h,w){1&h&&(r.TgZ(0,"button",0),r.NdJ("click",function(){return w.buttonClicked()}),r._UZ(1,"mat-icon",1),r.qZA()),2&h&&(r.Udp("display",w.isHidden?"none":"")("background-image",w.backgroundImage?"url("+w.backgroundImage+")":""),r.s9C("matTooltip",w.tooltipText),r.xp6(1),r.Q6J("fontIcon",w.backgroundIcon))},dependencies:[qa.lW,So.Hw,zs.gM],styles:[".fab-button[_ngcontent-%COMP%]{z-index:9999;position:fixed;bottom:0;right:0;background-size:contain;background-position:center}"]}),L})();function Fn(L,y){1&L&&r.GkF(0)}function zi(L,y){if(1&L&&(r.ynx(0),r._uU(1),r.BQk()),2&L){const h=r.oxw(2).$implicit;r.xp6(1),r.Oqu(h.label)}}const ns=function(L){return{"xng-breadcrumb-link-disabled":L}},Us=function(L,y,h,w,re,Se){return{$implicit:L,info:y,last:h,first:w,index:re,count:Se}};function ao(L,y){if(1&L&&(r.TgZ(0,"a",7),r.YNc(1,Fn,1,0,"ng-container",8),r.YNc(2,zi,2,1,"ng-container",9),r.qZA()),2&L){const h=r.oxw(),w=h.$implicit,re=h.last,Se=h.first,ht=h.index,Ct=h.count,Wt=r.oxw();r.Q6J("ngClass",r.VKq(10,ns,w.disable))("routerLink",w.routeInterceptor?w.routeInterceptor(w.routeLink,w):w.routeLink)("queryParams",Wt.preserveQueryParams?w.queryParams:void 0)("fragment",Wt.preserveFragment?w.fragment:void 0)("target",Wt.anchorTarget?Wt.anchorTarget:"_self"),r.uIk("aria-disabled",w.disable)("tabIndex",w.disable?-1:0),r.xp6(1),r.Q6J("ngTemplateOutlet",Wt.itemTemplate)("ngTemplateOutletContext",r.HTZ(12,Us,w.label,w.info,re,Se,ht,Ct)),r.xp6(1),r.Q6J("ngIf",!Wt.itemTemplate)}}function As(L,y){1&L&&r.GkF(0)}function Wo(L,y){if(1&L&&(r.ynx(0),r._uU(1),r.BQk()),2&L){const h=r.oxw(2).$implicit;r.xp6(1),r.Oqu(h.label)}}function eo(L,y){if(1&L&&(r.TgZ(0,"label",10),r.YNc(1,As,1,0,"ng-container",8),r.YNc(2,Wo,2,1,"ng-container",9),r.qZA()),2&L){const h=r.oxw(),w=h.$implicit,re=h.last,Se=h.first,ht=h.index,Ct=h.count,Wt=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",Wt.itemTemplate)("ngTemplateOutletContext",r.HTZ(3,Us,w.label,w.info,re,Se,ht,Ct)),r.xp6(1),r.Q6J("ngIf",!Wt.itemTemplate)}}function Pl(L,y){1&L&&r.GkF(0)}function Xo(L,y){if(1&L&&(r.ynx(0),r._uU(1),r.BQk()),2&L){const h=r.oxw(3);r.xp6(1),r.Oqu(h.separator)}}function tl(L,y){if(1&L&&(r.TgZ(0,"li",11),r.YNc(1,Pl,1,0,"ng-container",12),r.YNc(2,Xo,2,1,"ng-container",9),r.qZA()),2&L){const h=r.oxw(2);r.xp6(1),r.Q6J("ngTemplateOutlet",h.separatorTemplate),r.xp6(1),r.Q6J("ngIf",!h.separatorTemplate)}}function ba(L,y){if(1&L&&(r.ynx(0),r.TgZ(1,"li",3),r.YNc(2,ao,3,19,"a",4),r.YNc(3,eo,3,10,"label",5),r.qZA(),r.YNc(4,tl,3,2,"li",6),r.BQk()),2&L){const h=y.last;r.xp6(2),r.Q6J("ngIf",!h),r.xp6(1),r.Q6J("ngIf",h),r.xp6(1),r.Q6J("ngIf",!h)}}let Oc=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275dir=r.lG2({type:L,selectors:[["","xngBreadcrumbItem",""]]}),L})();const nl=L=>L&&Object.keys(L).length>0;let ea=(()=>{class L{constructor(h,w){this.activatedRoute=h,this.router=w,this.baseHref="/",this.dynamicBreadcrumbStore=[],this.currentBreadcrumbs=[],this.previousBreadcrumbs=[],this.breadcrumbs=new gt.X([]),this.breadcrumbs$=this.breadcrumbs.asObservable(),this.detectRouteChanges()}detectRouteChanges(){this.setupBreadcrumbs(this.activatedRoute.snapshot),this.router.events.pipe((0,o.h)(h=>h instanceof mi.c9)).subscribe(h=>{h instanceof mi.c9&&h.shouldActivate&&this.setupBreadcrumbs(h.state.root)})}setupBreadcrumbs(h){this.previousBreadcrumbs=this.currentBreadcrumbs;const w=this.getRootBreadcrumb();this.currentBreadcrumbs=w?[w]:[],this.prepareBreadcrumbList(h,this.baseHref)}getRootBreadcrumb(){const h=this.router.config.find(Se=>""===Se.path),w=this.extractObject(h?.data?.breadcrumb),re=this.getFromStore(w.alias,"/");if(nl(w)||nl(re))return{...re,...w,routeLink:this.baseHref,...this.getQueryParamsFromPreviousList("/")}}prepareBreadcrumbItem(h,w){const{path:re,breadcrumb:Se}=this.parseRouteData(h.routeConfig),ht=this.resolvePathSegment(re,h),Ct=`${w}${ht}`,Wt=this.getFromStore(Se.alias,Ct),tn=this.extractLabel(Wt?.label||Se?.label,ht);let En=!1,Sn="";return tn||(En=!0,Sn=ht),{...Wt,...Se,label:En?Sn:tn,routeLink:Ct,isAutoGeneratedLabel:En,...this.getQueryParamsFromPreviousList(Ct)}}prepareBreadcrumbList(h,w){if(h.routeConfig?.path){const ht=this.prepareBreadcrumbItem(h,w);if(this.currentBreadcrumbs.push(ht),h.firstChild)return this.prepareBreadcrumbList(h.firstChild,ht.routeLink+"/")}else if(h.firstChild)return this.prepareBreadcrumbList(h.firstChild,w);this.setQueryParamsForActiveBreadcrumb(this.currentBreadcrumbs[this.currentBreadcrumbs.length-1],h);const Se=this.currentBreadcrumbs.filter(ht=>!ht.skip);this.breadcrumbs.next(Se)}getFromStore(h,w){return this.dynamicBreadcrumbStore.find(re=>h&&h===re.alias||w&&w===re.routeLink||this.matchRegex(w,re.routeRegex))}matchRegex(h,w){return h.match(new RegExp(w))?.[0]===h}resolvePathSegment(h,w){return h.includes(":")&&Object.entries(w.params).forEach(([re,Se])=>{h=h.replace(`:${re}`,`${Se}`)}),h}getQueryParamsFromPreviousList(h){const{queryParams:w,fragment:re}=this.previousBreadcrumbs.find(Se=>Se.routeLink===h)||{};return{queryParams:w,fragment:re}}setQueryParamsForActiveBreadcrumb(h,w){if(h){const{queryParams:re,fragment:Se}=w;h.queryParams=re?{...re}:void 0,h.fragment=Se}}parseRouteData(h){const{path:w,data:re}=h;return{path:w,breadcrumb:this.mergeWithBaseChildData(h,re?.breadcrumb)}}mergeWithBaseChildData(h,w){if(!h)return this.extractObject(w);let re;h.loadChildren?re=h._loadedRoutes.find(ht=>""===ht.path):h.children&&(re=h.children.find(ht=>""===ht.path));const Se=re?.data?.breadcrumb;return Se?this.mergeWithBaseChildData(re,{...this.extractObject(w),...this.extractObject(Se)}):this.extractObject(w)}set(h,w){const re=this.extractObject(w);let Se;Se=h.startsWith("@")?["alias",{...re,alias:h.slice(1)}]:h.includes(":")?["routeRegex",{...re,routeRegex:this.buildRegex(h)}]:["routeLink",{...re,routeLink:this.ensureLeadingSlash(h)}],Se[1].isAutoGeneratedLabel=!1,this.updateStore(...Se),this.updateCurrentBreadcrumbs(...Se)}updateStore(h,w){const re=this.dynamicBreadcrumbStore.findIndex(Se=>w[h]===Se[h]);re>-1?this.dynamicBreadcrumbStore[re]={...this.dynamicBreadcrumbStore[re],...w}:this.dynamicBreadcrumbStore.push({...w})}updateCurrentBreadcrumbs(h,w){const re=this.currentBreadcrumbs.findIndex(Se=>"routeRegex"===h?this.matchRegex(Se.routeLink,w[h]):w[h]===Se[h]);if(re>-1){this.currentBreadcrumbs[re]={...this.currentBreadcrumbs[re],...w};const Se=this.currentBreadcrumbs.filter(ht=>!ht.skip);this.breadcrumbs.next([...Se])}}buildRegex(h){return this.ensureLeadingSlash(h).replace(new RegExp("/:[^/]+","g"),"/[^/]+")}ensureLeadingSlash(h){return h.startsWith("/")?h:`/${h}`}extractLabel(h,w){const re="object"==typeof h?h.label:h;return"function"==typeof re?re(w):re}extractObject(h){return!h||"string"!=typeof h&&"function"!=typeof h?h||{}:{label:h}}}return L.\u0275fac=function(h){return new(h||L)(r.LFG(mi.gz),r.LFG(mi.F0))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Go=(()=>{class L{constructor(h,w){this.breadcrumbService=h,this._separator="/",this.autoGenerate=!0,this.preserveQueryParams=!0,this.preserveFragment=!0,this.class="",this.setupMessage="not set up yet",this.someParameterValue=null,w.params.subscribe(re=>{this.setupComponent(re.someParam)})}set separator(h){h instanceof r.Rgc?(this.separatorTemplate=h,this._separator=void 0):(this.separatorTemplate=void 0,this._separator=h||"/")}get separator(){return this._separator}setupComponent(h){this.setupMessage="set up at "+new Date,this.someParameterValue=h}ngOnInit(){this.breadcrumbs$=this.breadcrumbService.breadcrumbs$.pipe((0,W.U)(h=>h.filter(w=>!!this.autoGenerate||!w.isAutoGeneratedLabel).map(w=>{const{routeInterceptor:re,routeLink:Se}=w;return{...w,routeLink:re?.(Se,w)||Se}})))}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(ea),r.Y36(mi.gz))},L.\u0275cmp=r.Xpm({type:L,selectors:[["xng-breadcrumb"]],contentQueries:function(h,w,re){if(1&h&&r.Suo(re,Oc,5,r.Rgc),2&h){let Se;r.iGM(Se=r.CRH())&&(w.itemTemplate=Se.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(h,w){1&h&&(r.TgZ(0,"nav",0)(1,"ol",1),r.YNc(2,ba,5,3,"ng-container",2),r.ALo(3,"async"),r.qZA()()),2&h&&(r.Q6J("ngClass",w.class),r.xp6(2),r.Q6J("ngForOf",r.lcZ(3,2,w.breadcrumbs$)))},dependencies:[Ti.mk,Ti.sg,Ti.O5,Ti.tP,mi.yS,Ti.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}),L})(),Rc=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,mi.Bz]}),L})(),xr=(()=>{class L{constructor(h,w,re){this.gs=h,this.ss=w,this.wb=re}get SS(){return this.ss}ngOnInit(){}get discordUrl(){return Fi.N.discord.join_url}get author(){return Fi.N.author}get siteName(){return Fi.N.siteName}openGithub(){this.wb.winboxOpenUri(`https://github.com/${this.author}/${this.siteName}`)}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(li.U),r.Y36(Xi.R),r.Y36(Xs.N))},L.\u0275cmp=r.Xpm({type:L,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(h,w){1&h&&(r.TgZ(0,"mat-toolbar",0)(1,"span",1)(2,"div",2),r.NdJ("click",function(){return w.openGithub()}),r.TgZ(3,"div",3),r._uU(4,"\xa9"),r.qZA(),r.TgZ(5,"div",4),r._uU(6),r.ALo(7,"slice"),r.qZA()()(),r._UZ(8,"span",5)(9,"xng-breadcrumb")(10,"span",5),r.TgZ(11,"span",1)(12,"a",6),r._uU(13," With \u{1f498} Just For You~ "),r.qZA()()()),2&h&&(r.xp6(6),r.hij("\xa0 2013 | ",r.Dn7(7,2,null==w.SS.github?null:w.SS.github.sha,0,7),""),r.xp6(6),r.s9C("href",w.discordUrl,r.LSH))},dependencies:[Oo.Ye,Go,Ti.OU]}),L})();const kl=["leftSideNav"],Fl=["rightSidePanel"],il=["siteContent"],$o=function(L){return{"background-image":L}};let Pc=(()=>{class L{constructor(h,w,re,Se,ht,Ct,Wt,tn,En,Sn,vi,fi,Zn,ii,Hi,er,wr){this.snackBar=h,this.renderer=w,this.router=re,this.activatedRoute=Se,this.bs=ht,this.pi=Ct,this.as=Wt,this.fs=tn,this.ls=En,this.gs=Sn,this.lms=vi,this.rps=fi,this.ss=Zn,this.wb=ii,this.ds=Hi,this.sw=er,this.viewer=wr,this.subsRouter=null,this.subsRouterChild=null,this.subsUrl=null,this.subsVerify=null,this.subsDialog=null,this.timedOut=null}get sideNavType(){return this.gs.isDesktop?"side":"over"}onResize(h){this.gs.onResize(h)}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 h=this.renderer.selectRootElement("#app-loading");h&&(h.style.visibility="hidden",h.style.opacity=0)}}ngOnInit(){var h=this;this.gs.log(`[APP_BUILD_STATUS] \u{1f498} ${Fi.N.siteName} :: ${Fi.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} ${Fi.N.siteName}\u300d`,`\u300c\u2728 ${Fi.N.siteDescription}\u300d`,`\u300c\u{1f4a4} ${Fi.N.siteName} \u2728\u{1f31e}\u300d`,`${Fi.N.baseUrl}/assets/img/favicon.png`),this.subsRouter=this.router.events.subscribe({next:w=>{if(w instanceof mi.xV)this.gs.isBrowser&&this.bs.busy();else if(w instanceof mi.GH)this.gs.isBrowser&&this.bs.idle();else if(w instanceof mi.OD){if(this.gs.isBrowser&&w.url){const re=w.url.split("/")[1];if(re){const Se=`badge${re[0].toUpperCase()}${re.slice(1)}`;if(this.ss[Se]){this.ss[Se]=[];const ht=this.lms.mainMenus.find(tn=>tn.link===w.url),Ct=this.lms.contentMenus.find(tn=>tn.link===w.url),Wt=this.lms.miscMenus.find(tn=>tn.link===w.url);ht&&(ht.badge=null),Ct&&(Ct.badge=null),Wt&&(Wt.badge=null)}}this.gs.previousUrl=this.router.url.split("?")[0]}}else if(w instanceof mi.m2){let re=this.activatedRoute.firstChild;for(const Se of re.children)re=Se;this.subsRouterChild=re.data.subscribe({next:Se=>{if(this.updateBackgroundImage(),this.gs.routerData=Se,this.pi.updatePageMetaData(Se.title,Se.description,Se.keywords,this.gs.bgImgUrl||`${Fi.N.baseUrl}/assets/img/favicon.png`),this.fs.removeFab(),this.gs.isBrowser){this.siteContent&&(this.siteContent.elementRef.nativeElement.scrollTop=0);const ht=w.url.split("?")[0];this.gs.previousUrl!==ht&&(this.ss.currentChatRoom=[]),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,ht)}}})}}}),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,_a.Z)(function*(){if("true"!==h.ls.getItem(h.gs.localStorageKeys.AturanTatib)){const re={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:h.ds.maxWidth};h.subsDialog=(yield h.ds.fetchInformationRegisterMode(re)).afterClosed().subscribe({next:Se=>{h.gs.log("[ATURAN_TATA_TERTIB_DIALOG_CLOSED]",Se),"boolean"==typeof Se&&h.ls.setItem(h.gs.localStorageKeys.AturanTatib,JSON.stringify(Se)),h.subsDialog.unsubscribe()}})}h.injectServerTimeClock(),h.gs.weatherEffect&&h.snackBar.open("Gunakan Menu Di Kanan Atas (Gambar Bunga) Untuk Mematikan Animasi Efek Musiman!","Ok")}),1234))}updateBackgroundImage(){const h=this.router.url.split("?")[0].substring(1).split("/")[0];this.gs.bgImgUrlPath=h?`/assets/img/router/${h}.png`:""}checkStorage(){this.bs.busy(),this.subsVerify=this.as.verify(this.as.token).subscribe({next:h=>{this.gs.log("[VERIFY_SUCCESS]",h),this.ss.socketLeaveAndJoinNewRoom(this.gs.previousUrl,this.router.url.split("?")[0]),this.bs.idle()},error:h=>{this.gs.log("[VERIFY_ERROR]",h,"error"),this.bs.idle(),this.as.removeUser()}})}resetLoading(){this.bs.clear()}onWindowRightClick(h){this.gs.log("[MOUSE_RIGHT_CLICK]",h)}onWindowLeftClick(h){this.gs.log("[MOUSE_LEFT_CLICK]",h);const w=h||window.event;let re=w.target||w.srcElement;if(re){let Se=5;const ht=["A","a"];for(;![...ht].includes(re.tagName)&&Se>0;)if(re=re.parentElement||re.parentNode,Se--,!re)return!0;if(ht.includes(re.tagName)){const Ct=re.getAttribute("href");if(Ct&&this.gs.isDesktop&&this.gs.includesOneOf(Ct,["http","ftp","mailto"])&&!Ct.includes(Fi.N.baseUrl))return w.preventDefault(),w.stopPropagation(),this.winboxOpenUri(Ct),!1}}return!0}onWindowDoubleClick(h){this.gs.log("[MOUSE_DOUBLE_CLICK]",h);const w=h||window.event,re=w.target||w.srcElement;("IMG"===re.tagName||"img"===re.tagName)&&this.gs.isDesktop&&this.viewer.viewImage(re)}onWindowBeforeUnloaded(h){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(h){this.wb.winboxOpenUri(h)}injectServerTimeClock(){if(this.gs.isDesktop){const h=this.gs.document.getElementsByClassName("mat-drawer-backdrop");if(h.length>0){h[0].innerHTML='\n
\n
\n

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

\n

\n

\n
\n
\n ';const re=this.gs.document.createElement("script");re.type="text/javascript",re.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(re)}}}}return L.\u0275fac=function(h){return new(h||L)(r.Y36(ds.ux),r.Y36(r.Qsj),r.Y36(mi.F0),r.Y36(mi.gz),r.Y36(gi.z),r.Y36(To.Z),r.Y36(Ls.e),r.Y36(Bs.r),r.Y36(Gs.n),r.Y36(li.U),r.Y36(so.S),r.Y36($s.C),r.Y36(Xi.R),r.Y36(Xs.N),r.Y36(oo.x),r.Y36(Ao.H),r.Y36(Ja))},L.\u0275cmp=r.Xpm({type:L,selectors:[["app-root"]],viewQuery:function(h,w){if(1&h&&(r.Gf(kl,7),r.Gf(Fl,7),r.Gf(il,7)),2&h){let re;r.iGM(re=r.CRH())&&(w.leftSideNav=re.first),r.iGM(re=r.CRH())&&(w.rightSidePanel=re.first),r.iGM(re=r.CRH())&&(w.siteContent=re.first)}},hostBindings:function(h,w){1&h&&r.NdJ("contextmenu",function(Se){return w.windowRightClick(Se)},!1,r.Jf7)("click",function(Se){return w.windowLeftClick(Se)},!1,r.Jf7)("dblclick",function(Se){return w.windowDoubleClick(Se)},!1,r.Jf7)("beforeunload",function(Se){return w.windowBeforeUnloaded(Se)},!1,r.Jf7)("resize",function(Se){return w.onResize(Se)},!1,r.Jf7)},decls:24,vars:27,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"],[3,"bdColor","type","size","color"],[1,"text-light","text-center"],[1,"text-info","text-decoration-none",3,"click"],[2,"cursor","pointer"]],template:function(h,w){if(1&h&&(r._UZ(0,"app-header")(1,"ng-progress",0),r.TgZ(2,"mat-sidenav-container",1)(3,"mat-sidenav",2,3),r._UZ(5,"app-left-menu"),r.qZA(),r.TgZ(6,"mat-sidenav",4,5),r.NdJ("closedStart",function(){return w.RPS.onClose()}),r._UZ(8,"app-right-panel"),r.qZA(),r.TgZ(9,"mat-sidenav-content",null,6)(11,"div",7),r._UZ(12,"router-outlet"),r.qZA(),r._UZ(13,"app-material-fab"),r.qZA()(),r._UZ(14,"app-footer"),r.TgZ(15,"ngx-spinner",8)(16,"p",9),r._uU(17," Sedang Memuat Data ^_^ "),r._UZ(18,"br"),r._uU(19," Mohon Menunggu ... "),r._UZ(20,"br"),r.TgZ(21,"span",10),r.NdJ("click",function(){return w.resetLoading()}),r.TgZ(22,"b",11),r._uU(23,"Batalkan"),r.qZA()()()()),2&h){const re=r.MAs(7);r.xp6(1),r.Q6J("color","#ff4081")("fixed",!1)("meteor",!1)("thick",!0),r.xp6(1),r.Q6J("hasBackdrop",w.LMS.sideNavExpanded||re.isOpen),r.xp6(1),r.Q6J("mode",w.sideNavType)("opened",w.LMS.opened)("ngStyle",r.VKq(23,$o,w.GS.leftMenuImage?"url("+w.GS.leftMenuImage+")":"")),r.xp6(3),r.Q6J("mode","over")("opened",!1)("ngStyle",r.VKq(25,$o,w.GS.rightMenuImage?"url("+w.GS.rightMenuImage+")":"")),r.xp6(3),r.Udp("background-repeat","no-repeat")("background-size","128px"+(w.ROUTER.url.startsWith("/login")||w.ROUTER.url.startsWith("/register")||w.ROUTER.url.startsWith("/home")||w.ROUTER.url.startsWith("/verify")||w.ROUTER.url.startsWith("/privacy-policy")||w.ROUTER.url.startsWith("/reset-password")||w.ROUTER.url.startsWith("/nihongo")||w.ROUTER.url.startsWith("/torrent")||w.ROUTER.url.startsWith("/news/")||w.ROUTER.url.startsWith("/admin-mod/")?", cover":""))("background-position","bottom right"+(w.ROUTER.url.startsWith("/login")||w.ROUTER.url.startsWith("/register")||w.ROUTER.url.startsWith("/home")||w.ROUTER.url.startsWith("/verify")||w.ROUTER.url.startsWith("/privacy-policy")||w.ROUTER.url.startsWith("/reset-password")||w.ROUTER.url.startsWith("/nihongo")||w.ROUTER.url.startsWith("/torrent")||w.ROUTER.url.startsWith("/news/")||w.ROUTER.url.startsWith("/admin-mod/")?", center":""))("background-image","url("+w.GS.bgImgUrl+")"+(w.ROUTER.url.startsWith("/login")||w.ROUTER.url.startsWith("/register")||w.ROUTER.url.startsWith("/home")||w.ROUTER.url.startsWith("/verify")||w.ROUTER.url.startsWith("/privacy-policy")||w.ROUTER.url.startsWith("/reset-password")||w.ROUTER.url.startsWith("/nihongo")||w.ROUTER.url.startsWith("/torrent")||w.ROUTER.url.startsWith("/news/")||w.ROUTER.url.startsWith("/admin-mod/")?", url('/assets/img/background/paint.svg')":"")),r.xp6(6),r.Q6J("bdColor","#0000007f")("type","square-jelly-box")("size","medium")("color","#e84360")}},dependencies:[Ti.PC,mi.lC,Vo.JX,Vo.TM,Vo.Rh,Ws.Ro,di,el,Tt,Dn,ci,xr],styles:[".main_content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 88px)}"],data:{animation:[Qa]}}),L})(),kc=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,mi.Bz,Ln.m]}),L})(),Fc=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,mi.Bz,Ln.m,qi.u5]}),L})();var rl=s(5116);let ta=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,Ln.m]}),L})(),Ll=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,Ln.m,Rc]}),L})();var na=s(3170),Lc=s(7355),Bl=s(2438);let ia=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({imports:[Ti.ez,mi.Bz,Ln.m,qi.u5,qi.UX,na.Ad,Bl.d,Lc.T]}),L})(),Da=(()=>{class L{}return L.\u0275fac=function(h){return new(h||L)},L.\u0275mod=r.oAB({type:L,bootstrap:[Pc]}),L.\u0275inj=r.cJS({providers:[{provide:n.ok,useClass:_n},{provide:zs.Jm,useValue:Un},{provide:ki.o2,useValue:{floatLabel:"always"}},{provide:ds.Ve,useValue:{duration:1e4}},{provide:l.TP,useClass:qs,multi:!0},{provide:l.TP,useClass:ga,multi:!0},{provide:l.TP,useClass:dr,multi:!0}],imports:[n.b2.withServerTransition({appId:"serverApp"}),Mt,Ri,v,qi.UX,l.JF,Ln.m,n.t6,Ws.ef,Uo.Rh.forRoot({timeOut:3e3,positionClass:"toast-top-right",closeButton:!0,progressBar:!0,progressAnimation:"increasing"}),hi,$n,kc,Fc,rl.d,ta,Ll,ia,Cs.Wr.register("/ngsw-worker.js",{enabled:Fi.N.production,registrationStrategy:"registerWhenStable:30000"}),Mr.zO.withConfig({autoUpload:!1,concurrency:1,endpoint:`${Fi.N.apiUrl}/attachment`,headers:{"ngsw-bypass":"true"},retryConfig:{maxAttempts:3},maxChunkSize:Gi.t.fileSizeAttachmentChunkCloudflareLimit})]}),L})();function Nl(){n.q6().bootstrapModule(Da).catch(L=>console.error(L))}s(5386),Fi.N.production&&(0,r.G48)(),"complete"===document.readyState?Nl():document.addEventListener("DOMContentLoaded",Nl)},4249:(Qe,F,s)=>{"use strict";s.d(F,{Bp:()=>x,eK:()=>E,yS:()=>n});var n=(()=>{return(d=n||(n={})).ADMIN="ADMIN",d.MODERATOR="MODERATOR",d.FANSUBBER="FANSUBBER",d.USER="USER",n;var d})(),E=(()=>{return(d=E||(E={})).LIKE="LIKE",d.DISLIKE="DISLIKE",E;var d})(),x=(()=>{return(d=x||(x={})).DISCORD="DISCORD",d.DISQUS="DISQUS",d.FACEBOOK="FACEBOOK",d.GOOGLE="GOOGLE",x;var d})()},6022:(Qe,F,s)=>{"use strict";s.d(F,{F:()=>n});var n=(()=>{return(r=n||(n={})).WINTER="winter",r.SPRING="spring",r.SUMMER="summer",r.FALL="fall",n;var r})()},8498:Qe=>{function s(){}Qe.exports=function F(n,r,l){var u=!1;return l=l||s,o.count=n,0===n?r():o;function o(E,x){if(o.count<=0)throw new Error("after called too many times");--o.count,E?(u=!0,r(E),r=l):0===o.count&&!u&&r(null,x)}}},9933:Qe=>{Qe.exports=function(F,s,n){var r=F.byteLength;if(s=s||0,n=n||r,F.slice)return F.slice(s,n);if(s<0&&(s+=r),n<0&&(n+=r),n>r&&(n=r),s>=r||s>=n||0===r)return new ArrayBuffer(0);for(var l=new Uint8Array(F),u=new Uint8Array(n-s),o=s,E=0;o{function F(s){this.ms=(s=s||{}).min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Qe.exports=F,F.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*s);s=0==(1&Math.floor(10*n))?s-r:s+r}return 0|Math.min(s,this.max)},F.prototype.reset=function(){this.attempts=0},F.prototype.setMin=function(s){this.ms=s},F.prototype.setMax=function(s){this.max=s},F.prototype.setJitter=function(s){this.jitter=s}},390:(Qe,F)=>{!function(s){"use strict";F.encode=function(n){var l,r=new Uint8Array(n),u=r.length,o="";for(l=0;l>2],o+=s[(3&r[l])<<4|r[l+1]>>4],o+=s[(15&r[l+1])<<2|r[l+2]>>6],o+=s[63&r[l+2]];return u%3==2?o=o.substring(0,o.length-1)+"=":u%3==1&&(o=o.substring(0,o.length-2)+"=="),o},F.decode=function(n){var u,E,x,d,g,r=.75*n.length,l=n.length,o=0;"="===n[n.length-1]&&(r--,"="===n[n.length-2]&&r--);var v=new ArrayBuffer(r),_=new Uint8Array(v);for(u=0;u>4,_[o++]=(15&x)<<4|d>>2,_[o++]=(3&d)<<6|63&g;return v}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},5343:(Qe,F)=>{"use strict";F.byteLength=function x(C){var O=E(C),G=O[1];return 3*(O[0]+G)/4-G},F.toByteArray=function g(C){var O,j,H=E(C),G=H[0],Y=H[1],V=new r(function d(C,O,H){return 3*(O+H)/4-H}(0,G,Y)),ne=0,me=Y>0?G-4:G;for(j=0;j>16&255,V[ne++]=O>>8&255,V[ne++]=255&O;return 2===Y&&(O=n[C.charCodeAt(j)]<<2|n[C.charCodeAt(j+1)]>>4,V[ne++]=255&O),1===Y&&(O=n[C.charCodeAt(j)]<<10|n[C.charCodeAt(j+1)]<<4|n[C.charCodeAt(j+2)]>>2,V[ne++]=O>>8&255,V[ne++]=255&O),V},F.fromByteArray=function m(C){for(var O,H=C.length,G=H%3,Y=[],V=16383,ne=0,me=H-G;neme?me:ne+V));return 1===G?Y.push(s[(O=C[H-1])>>2]+s[O<<4&63]+"=="):2===G&&Y.push(s[(O=(C[H-2]<<8)+C[H-1])>>10]+s[O>>4&63]+s[O<<2&63]+"="),Y.join("")};for(var s=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,o=l.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var H=C.indexOf("=");return-1===H&&(H=O),[H,H===O?0:4-H%4]}function v(C){return s[C>>18&63]+s[C>>12&63]+s[C>>6&63]+s[63&C]}function _(C,O,H){for(var Y=[],V=O;V{var F=typeof F<"u"?F:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"&&MozBlobBuilder,s=function(){try{return 2===new Blob(["hi"]).size}catch{return!1}}(),n=s&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch{return!1}}(),r=F&&F.prototype.append&&F.prototype.getBlob;function l(E){return E.map(function(x){if(x.buffer instanceof ArrayBuffer){var d=x.buffer;if(x.byteLength!==d.byteLength){var g=new Uint8Array(x.byteLength);g.set(new Uint8Array(d,x.byteOffset,x.byteLength)),d=g.buffer}return d}return x})}function u(E,x){x=x||{};var d=new F;return l(E).forEach(function(g){d.append(g)}),x.type?d.getBlob(x.type):d.getBlob()}function o(E,x){return new Blob(l(E),x||{})}typeof Blob<"u"&&(u.prototype=Blob.prototype,o.prototype=Blob.prototype),Qe.exports=s?n?Blob:o:r?u:void 0},3172:(Qe,F,s)=>{"use strict";const r=s(5343),l=s(8461),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;F.lW=d,F.h2=50;const o=2147483647;function x(ce){if(ce>o)throw new RangeError('The value "'+ce+'" is invalid for option "size"');const P=new Uint8Array(ce);return Object.setPrototypeOf(P,d.prototype),P}function d(ce,P,z){if("number"==typeof ce){if("string"==typeof P)throw new TypeError('The "string" argument must be of type string. Received type number');return m(ce)}return g(ce,P,z)}function g(ce,P,z){if("string"==typeof ce)return function C(ce,P){if(("string"!=typeof P||""===P)&&(P="utf8"),!d.isEncoding(P))throw new TypeError("Unknown encoding: "+P);const z=0|me(ce,P);let Re=x(z);const vt=Re.write(ce,P);return vt!==z&&(Re=Re.slice(0,vt)),Re}(ce,P);if(ArrayBuffer.isView(ce))return function H(ce){if(U(ce,Uint8Array)){const P=new Uint8Array(ce);return G(P.buffer,P.byteOffset,P.byteLength)}return O(ce)}(ce);if(null==ce)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce);if(U(ce,ArrayBuffer)||ce&&U(ce.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(U(ce,SharedArrayBuffer)||ce&&U(ce.buffer,SharedArrayBuffer)))return G(ce,P,z);if("number"==typeof ce)throw new TypeError('The "value" argument must not be of type number. Received type number');const Re=ce.valueOf&&ce.valueOf();if(null!=Re&&Re!==ce)return d.from(Re,P,z);const vt=function Y(ce){if(d.isBuffer(ce)){const P=0|V(ce.length),z=x(P);return 0===z.length||ce.copy(z,0,0,P),z}return void 0!==ce.length?"number"!=typeof ce.length||Te(ce.length)?x(0):O(ce):"Buffer"===ce.type&&Array.isArray(ce.data)?O(ce.data):void 0}(ce);if(vt)return vt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ce[Symbol.toPrimitive])return d.from(ce[Symbol.toPrimitive]("string"),P,z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce)}function v(ce){if("number"!=typeof ce)throw new TypeError('"size" argument must be of type number');if(ce<0)throw new RangeError('The value "'+ce+'" is invalid for option "size"')}function m(ce){return v(ce),x(ce<0?0:0|V(ce))}function O(ce){const P=ce.length<0?0:0|V(ce.length),z=x(P);for(let Re=0;Re=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|ce}function me(ce,P){if(d.isBuffer(ce))return ce.length;if(ArrayBuffer.isView(ce)||U(ce,ArrayBuffer))return ce.byteLength;if("string"!=typeof ce)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ce);const z=ce.length,Re=arguments.length>2&&!0===arguments[2];if(!Re&&0===z)return 0;let vt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return z;case"utf8":case"utf-8":return At(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*z;case"hex":return z>>>1;case"base64":return T(ce).length;default:if(vt)return Re?-1:At(ce).length;P=(""+P).toLowerCase(),vt=!0}}function j(ce,P,z){let Re=!1;if((void 0===P||P<0)&&(P=0),P>this.length||((void 0===z||z>this.length)&&(z=this.length),z<=0)||(z>>>=0)<=(P>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return wt(this,P,z);case"utf8":case"utf-8":return q(this,P,z);case"ascii":return kt(this,P,z);case"latin1":case"binary":return Lt(this,P,z);case"base64":return fe(this,P,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,P,z);default:if(Re)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),Re=!0}}function $(ce,P,z){const Re=ce[P];ce[P]=ce[z],ce[z]=Re}function N(ce,P,z,Re,vt){if(0===ce.length)return-1;if("string"==typeof z?(Re=z,z=0):z>2147483647?z=2147483647:z<-2147483648&&(z=-2147483648),Te(z=+z)&&(z=vt?0:ce.length-1),z<0&&(z=ce.length+z),z>=ce.length){if(vt)return-1;z=ce.length-1}else if(z<0){if(!vt)return-1;z=0}if("string"==typeof P&&(P=d.from(P,Re)),d.isBuffer(P))return 0===P.length?-1:ee(ce,P,z,Re,vt);if("number"==typeof P)return P&=255,"function"==typeof Uint8Array.prototype.indexOf?vt?Uint8Array.prototype.indexOf.call(ce,P,z):Uint8Array.prototype.lastIndexOf.call(ce,P,z):ee(ce,[P],z,Re,vt);throw new TypeError("val must be string, number or Buffer")}function ee(ce,P,z,Re,vt){let gn,ft=1,Nt=ce.length,nn=P.length;if(void 0!==Re&&("ucs2"===(Re=String(Re).toLowerCase())||"ucs-2"===Re||"utf16le"===Re||"utf-16le"===Re)){if(ce.length<2||P.length<2)return-1;ft=2,Nt/=2,nn/=2,z/=2}function Rn(Ot,pt){return 1===ft?Ot[pt]:Ot.readUInt16BE(pt*ft)}if(vt){let Ot=-1;for(gn=z;gnNt&&(z=Nt-nn),gn=z;gn>=0;gn--){let Ot=!0;for(let pt=0;ptvt&&(Re=vt):Re=vt;const ft=P.length;let Nt;for(Re>ft/2&&(Re=ft/2),Nt=0;Nt>8,vt=z%256,ft.push(vt),ft.push(Re);return ft}(P,ce.length-z),ce,z,Re)}function fe(ce,P,z){return r.fromByteArray(0===P&&z===ce.length?ce:ce.slice(P,z))}function q(ce,P,z){z=Math.min(ce.length,z);const Re=[];let vt=P;for(;vt239?4:ft>223?3:ft>191?2:1;if(vt+nn<=z){let Rn,gn,Ot,pt;switch(nn){case 1:ft<128&&(Nt=ft);break;case 2:Rn=ce[vt+1],128==(192&Rn)&&(pt=(31&ft)<<6|63&Rn,pt>127&&(Nt=pt));break;case 3:Rn=ce[vt+1],gn=ce[vt+2],128==(192&Rn)&&128==(192&gn)&&(pt=(15&ft)<<12|(63&Rn)<<6|63&gn,pt>2047&&(pt<55296||pt>57343)&&(Nt=pt));break;case 4:Rn=ce[vt+1],gn=ce[vt+2],Ot=ce[vt+3],128==(192&Rn)&&128==(192&gn)&&128==(192&Ot)&&(pt=(15&ft)<<18|(63&Rn)<<12|(63&gn)<<6|63&Ot,pt>65535&&pt<1114112&&(Nt=pt))}}null===Nt?(Nt=65533,nn=1):Nt>65535&&(Nt-=65536,Re.push(Nt>>>10&1023|55296),Nt=56320|1023&Nt),Re.push(Nt),vt+=nn}return function Je(ce){const P=ce.length;if(P<=4096)return String.fromCharCode.apply(String,ce);let z="",Re=0;for(;ReRe)&&(z=Re);let vt="";for(let ft=P;ftz)throw new RangeError("Trying to access beyond buffer length")}function le(ce,P,z,Re,vt,ft){if(!d.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>vt||Pce.length)throw new RangeError("Index out of range")}function Ce(ce,P,z,Re,vt){ge(P,Re,vt,ce,z,7);let ft=Number(P&BigInt(4294967295));ce[z++]=ft,ft>>=8,ce[z++]=ft,ft>>=8,ce[z++]=ft,ft>>=8,ce[z++]=ft;let Nt=Number(P>>BigInt(32)&BigInt(4294967295));return ce[z++]=Nt,Nt>>=8,ce[z++]=Nt,Nt>>=8,ce[z++]=Nt,Nt>>=8,ce[z++]=Nt,z}function pe(ce,P,z,Re,vt){ge(P,Re,vt,ce,z,7);let ft=Number(P&BigInt(4294967295));ce[z+7]=ft,ft>>=8,ce[z+6]=ft,ft>>=8,ce[z+5]=ft,ft>>=8,ce[z+4]=ft;let Nt=Number(P>>BigInt(32)&BigInt(4294967295));return ce[z+3]=Nt,Nt>>=8,ce[z+2]=Nt,Nt>>=8,ce[z+1]=Nt,Nt>>=8,ce[z]=Nt,z+8}function Le(ce,P,z,Re,vt,ft){if(z+Re>ce.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("Index out of range")}function Oe(ce,P,z,Re,vt){return P=+P,z>>>=0,vt||Le(ce,0,z,4),l.write(ce,P,z,Re,23,4),z+4}function ot(ce,P,z,Re,vt){return P=+P,z>>>=0,vt||Le(ce,0,z,8),l.write(ce,P,z,Re,52,8),z+8}!(d.TYPED_ARRAY_SUPPORT=function E(){try{const ce=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(ce,P),42===ce.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(ce,P,z){return g(ce,P,z)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(ce,P,z){return function _(ce,P,z){return v(ce),ce<=0?x(ce):void 0!==P?"string"==typeof z?x(ce).fill(P,z):x(ce).fill(P):x(ce)}(ce,P,z)},d.allocUnsafe=function(ce){return m(ce)},d.allocUnsafeSlow=function(ce){return m(ce)},d.isBuffer=function(P){return null!=P&&!0===P._isBuffer&&P!==d.prototype},d.compare=function(P,z){if(U(P,Uint8Array)&&(P=d.from(P,P.offset,P.byteLength)),U(z,Uint8Array)&&(z=d.from(z,z.offset,z.byteLength)),!d.isBuffer(P)||!d.isBuffer(z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===z)return 0;let Re=P.length,vt=z.length;for(let ft=0,Nt=Math.min(Re,vt);ftvt.length?(d.isBuffer(Nt)||(Nt=d.from(Nt)),Nt.copy(vt,ft)):Uint8Array.prototype.set.call(vt,Nt,ft);else{if(!d.isBuffer(Nt))throw new TypeError('"list" argument must be an Array of Buffers');Nt.copy(vt,ft)}ft+=Nt.length}return vt},d.byteLength=me,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let z=0;zz&&(P+=" ... "),""},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(P,z,Re,vt,ft){if(U(P,Uint8Array)&&(P=d.from(P,P.offset,P.byteLength)),!d.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(void 0===z&&(z=0),void 0===Re&&(Re=P?P.length:0),void 0===vt&&(vt=0),void 0===ft&&(ft=this.length),z<0||Re>P.length||vt<0||ft>this.length)throw new RangeError("out of range index");if(vt>=ft&&z>=Re)return 0;if(vt>=ft)return-1;if(z>=Re)return 1;if(this===P)return 0;let Nt=(ft>>>=0)-(vt>>>=0),nn=(Re>>>=0)-(z>>>=0);const Rn=Math.min(Nt,nn),gn=this.slice(vt,ft),Ot=P.slice(z,Re);for(let pt=0;pt>>=0,isFinite(Re)?(Re>>>=0,void 0===vt&&(vt="utf8")):(vt=Re,Re=void 0)}const ft=this.length-z;if((void 0===Re||Re>ft)&&(Re=ft),P.length>0&&(Re<0||z<0)||z>this.length)throw new RangeError("Attempt to write outside buffer bounds");vt||(vt="utf8");let Nt=!1;for(;;)switch(vt){case"hex":return he(this,P,z,Re);case"utf8":case"utf-8":return oe(this,P,z,Re);case"ascii":case"latin1":case"binary":return Ie(this,P,z,Re);case"base64":return ae(this,P,z,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,P,z,Re);default:if(Nt)throw new TypeError("Unknown encoding: "+vt);vt=(""+vt).toLowerCase(),Nt=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.slice=function(P,z){const Re=this.length;(P=~~P)<0?(P+=Re)<0&&(P=0):P>Re&&(P=Re),(z=void 0===z?Re:~~z)<0?(z+=Re)<0&&(z=0):z>Re&&(z=Re),z>>=0,z>>>=0,Re||Ue(P,z,this.length);let vt=this[P],ft=1,Nt=0;for(;++Nt>>=0,z>>>=0,Re||Ue(P,z,this.length);let vt=this[P+--z],ft=1;for(;z>0&&(ft*=256);)vt+=this[P+--z]*ft;return vt},d.prototype.readUint8=d.prototype.readUInt8=function(P,z){return P>>>=0,z||Ue(P,1,this.length),this[P]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(P,z){return P>>>=0,z||Ue(P,2,this.length),this[P]|this[P+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(P,z){return P>>>=0,z||Ue(P,2,this.length),this[P]<<8|this[P+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(P,z){return P>>>=0,z||Ue(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(P,z){return P>>>=0,z||Ue(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},d.prototype.readBigUInt64LE=xe(function(P){ke(P>>>=0,"offset");const z=this[P],Re=this[P+7];(void 0===z||void 0===Re)&&st(P,this.length-8);const vt=z+256*this[++P]+65536*this[++P]+this[++P]*2**24,ft=this[++P]+256*this[++P]+65536*this[++P]+Re*2**24;return BigInt(vt)+(BigInt(ft)<>>=0,"offset");const z=this[P],Re=this[P+7];(void 0===z||void 0===Re)&&st(P,this.length-8);const vt=z*2**24+65536*this[++P]+256*this[++P]+this[++P],ft=this[++P]*2**24+65536*this[++P]+256*this[++P]+Re;return(BigInt(vt)<>>=0,z>>>=0,Re||Ue(P,z,this.length);let vt=this[P],ft=1,Nt=0;for(;++Nt=ft&&(vt-=Math.pow(2,8*z)),vt},d.prototype.readIntBE=function(P,z,Re){P>>>=0,z>>>=0,Re||Ue(P,z,this.length);let vt=z,ft=1,Nt=this[P+--vt];for(;vt>0&&(ft*=256);)Nt+=this[P+--vt]*ft;return ft*=128,Nt>=ft&&(Nt-=Math.pow(2,8*z)),Nt},d.prototype.readInt8=function(P,z){return P>>>=0,z||Ue(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},d.prototype.readInt16LE=function(P,z){P>>>=0,z||Ue(P,2,this.length);const Re=this[P]|this[P+1]<<8;return 32768&Re?4294901760|Re:Re},d.prototype.readInt16BE=function(P,z){P>>>=0,z||Ue(P,2,this.length);const Re=this[P+1]|this[P]<<8;return 32768&Re?4294901760|Re:Re},d.prototype.readInt32LE=function(P,z){return P>>>=0,z||Ue(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},d.prototype.readInt32BE=function(P,z){return P>>>=0,z||Ue(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},d.prototype.readBigInt64LE=xe(function(P){ke(P>>>=0,"offset");const z=this[P],Re=this[P+7];return(void 0===z||void 0===Re)&&st(P,this.length-8),(BigInt(this[P+4]+256*this[P+5]+65536*this[P+6]+(Re<<24))<>>=0,"offset");const z=this[P],Re=this[P+7];(void 0===z||void 0===Re)&&st(P,this.length-8);const vt=(z<<24)+65536*this[++P]+256*this[++P]+this[++P];return(BigInt(vt)<>>=0,z||Ue(P,4,this.length),l.read(this,P,!0,23,4)},d.prototype.readFloatBE=function(P,z){return P>>>=0,z||Ue(P,4,this.length),l.read(this,P,!1,23,4)},d.prototype.readDoubleLE=function(P,z){return P>>>=0,z||Ue(P,8,this.length),l.read(this,P,!0,52,8)},d.prototype.readDoubleBE=function(P,z){return P>>>=0,z||Ue(P,8,this.length),l.read(this,P,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(P,z,Re,vt){P=+P,z>>>=0,Re>>>=0,vt||le(this,P,z,Re,Math.pow(2,8*Re)-1,0);let ft=1,Nt=0;for(this[z]=255&P;++Nt>>=0,Re>>>=0,vt||le(this,P,z,Re,Math.pow(2,8*Re)-1,0);let ft=Re-1,Nt=1;for(this[z+ft]=255&P;--ft>=0&&(Nt*=256);)this[z+ft]=P/Nt&255;return z+Re},d.prototype.writeUint8=d.prototype.writeUInt8=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,1,255,0),this[z]=255&P,z+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,2,65535,0),this[z]=255&P,this[z+1]=P>>>8,z+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,2,65535,0),this[z]=P>>>8,this[z+1]=255&P,z+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,4,4294967295,0),this[z+3]=P>>>24,this[z+2]=P>>>16,this[z+1]=P>>>8,this[z]=255&P,z+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,4,4294967295,0),this[z]=P>>>24,this[z+1]=P>>>16,this[z+2]=P>>>8,this[z+3]=255&P,z+4},d.prototype.writeBigUInt64LE=xe(function(P,z=0){return Ce(this,P,z,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=xe(function(P,z=0){return pe(this,P,z,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(P,z,Re,vt){if(P=+P,z>>>=0,!vt){const Rn=Math.pow(2,8*Re-1);le(this,P,z,Re,Rn-1,-Rn)}let ft=0,Nt=1,nn=0;for(this[z]=255&P;++ft>0)-nn&255;return z+Re},d.prototype.writeIntBE=function(P,z,Re,vt){if(P=+P,z>>>=0,!vt){const Rn=Math.pow(2,8*Re-1);le(this,P,z,Re,Rn-1,-Rn)}let ft=Re-1,Nt=1,nn=0;for(this[z+ft]=255&P;--ft>=0&&(Nt*=256);)P<0&&0===nn&&0!==this[z+ft+1]&&(nn=1),this[z+ft]=(P/Nt>>0)-nn&255;return z+Re},d.prototype.writeInt8=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,1,127,-128),P<0&&(P=255+P+1),this[z]=255&P,z+1},d.prototype.writeInt16LE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,2,32767,-32768),this[z]=255&P,this[z+1]=P>>>8,z+2},d.prototype.writeInt16BE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,2,32767,-32768),this[z]=P>>>8,this[z+1]=255&P,z+2},d.prototype.writeInt32LE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,4,2147483647,-2147483648),this[z]=255&P,this[z+1]=P>>>8,this[z+2]=P>>>16,this[z+3]=P>>>24,z+4},d.prototype.writeInt32BE=function(P,z,Re){return P=+P,z>>>=0,Re||le(this,P,z,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[z]=P>>>24,this[z+1]=P>>>16,this[z+2]=P>>>8,this[z+3]=255&P,z+4},d.prototype.writeBigInt64LE=xe(function(P,z=0){return Ce(this,P,z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=xe(function(P,z=0){return pe(this,P,z,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeFloatLE=function(P,z,Re){return Oe(this,P,z,!0,Re)},d.prototype.writeFloatBE=function(P,z,Re){return Oe(this,P,z,!1,Re)},d.prototype.writeDoubleLE=function(P,z,Re){return ot(this,P,z,!0,Re)},d.prototype.writeDoubleBE=function(P,z,Re){return ot(this,P,z,!1,Re)},d.prototype.copy=function(P,z,Re,vt){if(!d.isBuffer(P))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!vt&&0!==vt&&(vt=this.length),z>=P.length&&(z=P.length),z||(z=0),vt>0&&vt=this.length)throw new RangeError("Index out of range");if(vt<0)throw new RangeError("sourceEnd out of bounds");vt>this.length&&(vt=this.length),P.length-z>>=0,Re=void 0===Re?this.length:Re>>>0,P||(P=0),"number"==typeof P)for(ft=z;ft=Re+4;z-=3)P=`_${ce.slice(z-3,z)}${P}`;return`${ce.slice(0,z)}${P}`}function ge(ce,P,z,Re,vt,ft){if(ce>z||ce3?0===P||P===BigInt(0)?`>= 0${Nt} and < 2${Nt} ** ${8*(ft+1)}${Nt}`:`>= -(2${Nt} ** ${8*(ft+1)-1}${Nt}) and < 2 ** ${8*(ft+1)-1}${Nt}`:`>= ${P}${Nt} and <= ${z}${Nt}`,new yt.ERR_OUT_OF_RANGE("value",nn,ce)}!function se(ce,P,z){ke(P,"offset"),(void 0===ce[P]||void 0===ce[P+z])&&st(P,ce.length-(z+1))}(Re,vt,ft)}function ke(ce,P){if("number"!=typeof ce)throw new yt.ERR_INVALID_ARG_TYPE(P,"number",ce)}function st(ce,P,z){throw Math.floor(ce)!==ce?(ke(ce,z),new yt.ERR_OUT_OF_RANGE(z||"offset","an integer",ce)):P<0?new yt.ERR_BUFFER_OUT_OF_BOUNDS:new yt.ERR_OUT_OF_RANGE(z||"offset",`>= ${z?1:0} and <= ${P}`,ce)}at("ERR_BUFFER_OUT_OF_BOUNDS",function(ce){return ce?`${ce} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(ce,P){return`The "${ce}" argument must be of type number. Received type ${typeof P}`},TypeError),at("ERR_OUT_OF_RANGE",function(ce,P,z){let Re=`The value of "${ce}" is out of range.`,vt=z;return Number.isInteger(z)&&Math.abs(z)>2**32?vt=de(String(z)):"bigint"==typeof z&&(vt=String(z),(z>BigInt(2)**BigInt(32)||z<-(BigInt(2)**BigInt(32)))&&(vt=de(vt)),vt+="n"),Re+=` It must be ${P}. Received ${vt}`,Re},RangeError);const qe=/[^+/0-9A-Za-z-_]/g;function At(ce,P){let z;P=P||1/0;const Re=ce.length;let vt=null;const ft=[];for(let Nt=0;Nt55295&&z<57344){if(!vt){if(z>56319){(P-=3)>-1&&ft.push(239,191,189);continue}if(Nt+1===Re){(P-=3)>-1&&ft.push(239,191,189);continue}vt=z;continue}if(z<56320){(P-=3)>-1&&ft.push(239,191,189),vt=z;continue}z=65536+(vt-55296<<10|z-56320)}else vt&&(P-=3)>-1&&ft.push(239,191,189);if(vt=null,z<128){if((P-=1)<0)break;ft.push(z)}else if(z<2048){if((P-=2)<0)break;ft.push(z>>6|192,63&z|128)}else if(z<65536){if((P-=3)<0)break;ft.push(z>>12|224,z>>6&63|128,63&z|128)}else{if(!(z<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;ft.push(z>>18|240,z>>12&63|128,z>>6&63|128,63&z|128)}}return ft}function T(ce){return r.toByteArray(function bt(ce){if((ce=(ce=ce.split("=")[0]).trim().replace(qe,"")).length<2)return"";for(;ce.length%4!=0;)ce+="=";return ce}(ce))}function A(ce,P,z,Re){let vt;for(vt=0;vt=P.length||vt>=ce.length);++vt)P[vt+z]=ce[vt];return vt}function U(ce,P){return ce instanceof P||null!=ce&&null!=ce.constructor&&null!=ce.constructor.name&&ce.constructor.name===P.name}function Te(ce){return ce!=ce}const Me=function(){const ce="0123456789abcdef",P=new Array(256);for(let z=0;z<16;++z){const Re=16*z;for(let vt=0;vt<16;++vt)P[Re+vt]=ce[z]+ce[vt]}return P}();function xe(ce){return typeof BigInt>"u"?Be:ce}function Be(){throw new Error("BigInt not supported")}},1213:Qe=>{var F=[].slice;Qe.exports=function(s,n){if("string"==typeof n&&(n=s[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=F.call(arguments,2);return function(){return n.apply(s,r.concat(F.call(arguments)))}}},1264:Qe=>{function F(n){if(n)return function s(n){for(var r in F.prototype)n[r]=F.prototype[r];return n}(n)}Qe.exports=F,F.prototype.on=F.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this},F.prototype.once=function(n,r){function l(){this.off(n,l),r.apply(this,arguments)}return l.fn=r,this.on(n,l),this},F.prototype.off=F.prototype.removeListener=F.prototype.removeAllListeners=F.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(1==arguments.length)return delete this._callbacks["$"+n],this;for(var u,o=0;o{Qe.exports=function(F,s){var n=function(){};n.prototype=s.prototype,F.prototype=new n,F.prototype.constructor=F}},7466:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(8319),s(9493),s(7865),s(3057),function(){var r=n,u=r.lib.BlockCipher,o=r.algo,E=[],x=[],d=[],g=[],v=[],_=[],m=[],C=[],O=[],H=[];!function(){for(var V=[],ne=0;ne<256;ne++)V[ne]=ne<128?ne<<1:ne<<1^283;var me=0,j=0;for(ne=0;ne<256;ne++){var $=j^j<<1^j<<2^j<<3^j<<4;E[me]=$=$>>>8^255&$^99,x[$]=me;var oe,N=V[me],ee=V[N],he=V[ee];d[me]=(oe=257*V[$]^16843008*$)<<24|oe>>>8,g[me]=oe<<16|oe>>>16,v[me]=oe<<8|oe>>>24,_[me]=oe,m[$]=(oe=16843009*he^65537*ee^257*N^16843008*me)<<24|oe>>>8,C[$]=oe<<16|oe>>>16,O[$]=oe<<8|oe>>>24,H[$]=oe,me?(me=N^V[V[V[he^N]]],j^=V[V[j]]):me=j=1}}();var G=[0,1,2,4,8,16,32,64,128,27,54],Y=o.AES=u.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var ne=this._keyPriorReset=this._key,me=ne.words,j=ne.sigBytes/4,N=4*((this._nRounds=j+6)+1),ee=this._keySchedule=[],he=0;he6&&he%j==4&&(V=E[V>>>24]<<24|E[V>>>16&255]<<16|E[V>>>8&255]<<8|E[255&V]):(V=E[(V=V<<8|V>>>24)>>>24]<<24|E[V>>>16&255]<<16|E[V>>>8&255]<<8|E[255&V],V^=G[he/j|0]<<24),ee[he]=ee[he-j]^V);for(var oe=this._invKeySchedule=[],Ie=0;Ie>>24]]^C[E[V>>>16&255]]^O[E[V>>>8&255]]^H[E[255&V]]}}},encryptBlock:function(V,ne){this._doCryptBlock(V,ne,this._keySchedule,d,g,v,_,E)},decryptBlock:function(V,ne){var me=V[ne+1];V[ne+1]=V[ne+3],V[ne+3]=me,this._doCryptBlock(V,ne,this._invKeySchedule,m,C,O,H,x),me=V[ne+1],V[ne+1]=V[ne+3],V[ne+3]=me},_doCryptBlock:function(V,ne,me,j,$,N,ee,he){for(var oe=this._nRounds,Ie=V[ne]^me[0],ae=V[ne+1]^me[1],Z=V[ne+2]^me[2],fe=V[ne+3]^me[3],q=4,Ve=1;Ve>>24]^$[ae>>>16&255]^N[Z>>>8&255]^ee[255&fe]^me[q++],kt=j[ae>>>24]^$[Z>>>16&255]^N[fe>>>8&255]^ee[255&Ie]^me[q++],Lt=j[Z>>>24]^$[fe>>>16&255]^N[Ie>>>8&255]^ee[255&ae]^me[q++],wt=j[fe>>>24]^$[Ie>>>16&255]^N[ae>>>8&255]^ee[255&Z]^me[q++];Ie=Je,ae=kt,Z=Lt,fe=wt}Je=(he[Ie>>>24]<<24|he[ae>>>16&255]<<16|he[Z>>>8&255]<<8|he[255&fe])^me[q++],kt=(he[ae>>>24]<<24|he[Z>>>16&255]<<16|he[fe>>>8&255]<<8|he[255&Ie])^me[q++],Lt=(he[Z>>>24]<<24|he[fe>>>16&255]<<16|he[Ie>>>8&255]<<8|he[255&ae])^me[q++],wt=(he[fe>>>24]<<24|he[Ie>>>16&255]<<16|he[ae>>>8&255]<<8|he[255&Z])^me[q++],V[ne]=Je,V[ne+1]=kt,V[ne+2]=Lt,V[ne+3]=wt},keySize:8});r.AES=u._createHelper(Y)}(),n.AES)},3057:function(Qe,F,s){var l,u,o,E,x,d,v,m,C,H,G,Y,ne,j,N,ee,oe,Ie,n;Qe.exports=(n=s(7585),s(7865),void(n.lib.Cipher||(l=n,u=l.lib,o=u.Base,E=u.WordArray,x=u.BufferedBlockAlgorithm,d=l.enc,v=d.Base64,m=l.algo.EvpKDF,C=u.Cipher=x.extend({cfg:o.extend(),createEncryptor:function(ae,Z){return this.create(this._ENC_XFORM_MODE,ae,Z)},createDecryptor:function(ae,Z){return this.create(this._DEC_XFORM_MODE,ae,Z)},init:function(ae,Z,fe){this.cfg=this.cfg.extend(fe),this._xformMode=ae,this._key=Z,this.reset()},reset:function(){x.reset.call(this),this._doReset()},process:function(ae){return this._append(ae),this._process()},finalize:function(ae){return ae&&this._append(ae),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function ae(Z){return"string"==typeof Z?Ie:ee}return function(Z){return{encrypt:function(fe,q,Ve){return ae(q).encrypt(Z,fe,q,Ve)},decrypt:function(fe,q,Ve){return ae(q).decrypt(Z,fe,q,Ve)}}}}()}),u.StreamCipher=C.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),H=l.mode={},G=u.BlockCipherMode=o.extend({createEncryptor:function(ae,Z){return this.Encryptor.create(ae,Z)},createDecryptor:function(ae,Z){return this.Decryptor.create(ae,Z)},init:function(ae,Z){this._cipher=ae,this._iv=Z}}),Y=H.CBC=function(){var ae=G.extend();function Z(fe,q,Ve){var Je,kt=this._iv;kt?(Je=kt,this._iv=undefined):Je=this._prevBlock;for(var Lt=0;Lt>>2]}},u.BlockCipher=C.extend({cfg:C.cfg.extend({mode:Y,padding:ne}),reset:function(){var ae;C.reset.call(this);var Z=this.cfg,fe=Z.iv,q=Z.mode;this._xformMode==this._ENC_XFORM_MODE?ae=q.createEncryptor:(ae=q.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==ae?this._mode.init(this,fe&&fe.words):(this._mode=ae.call(q,this,fe&&fe.words),this._mode.__creator=ae)},_doProcessBlock:function(ae,Z){this._mode.processBlock(ae,Z)},_doFinalize:function(){var ae,Z=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(Z.pad(this._data,this.blockSize),ae=this._process(!0)):(ae=this._process(!0),Z.unpad(ae)),ae},blockSize:4}),j=u.CipherParams=o.extend({init:function(ae){this.mixIn(ae)},toString:function(ae){return(ae||this.formatter).stringify(this)}}),N=(l.format={}).OpenSSL={stringify:function(ae){var fe=ae.ciphertext,q=ae.salt;return(q?E.create([1398893684,1701076831]).concat(q).concat(fe):fe).toString(v)},parse:function(ae){var Z,fe=v.parse(ae),q=fe.words;return 1398893684==q[0]&&1701076831==q[1]&&(Z=E.create(q.slice(2,4)),q.splice(0,4),fe.sigBytes-=16),j.create({ciphertext:fe,salt:Z})}},ee=u.SerializableCipher=o.extend({cfg:o.extend({format:N}),encrypt:function(ae,Z,fe,q){q=this.cfg.extend(q);var Ve=ae.createEncryptor(fe,q),Je=Ve.finalize(Z),kt=Ve.cfg;return j.create({ciphertext:Je,key:fe,iv:kt.iv,algorithm:ae,mode:kt.mode,padding:kt.padding,blockSize:ae.blockSize,formatter:q.format})},decrypt:function(ae,Z,fe,q){return q=this.cfg.extend(q),Z=this._parse(Z,q.format),ae.createDecryptor(fe,q).finalize(Z.ciphertext)},_parse:function(ae,Z){return"string"==typeof ae?Z.parse(ae,this):ae}}),oe=(l.kdf={}).OpenSSL={execute:function(ae,Z,fe,q){q||(q=E.random(8));var Ve=m.create({keySize:Z+fe}).compute(ae,q),Je=E.create(Ve.words.slice(Z),4*fe);return Ve.sigBytes=4*Z,j.create({key:Ve,iv:Je,salt:q})}},Ie=u.PasswordBasedCipher=ee.extend({cfg:ee.cfg.extend({kdf:oe}),encrypt:function(ae,Z,fe,q){var Ve=(q=this.cfg.extend(q)).kdf.execute(fe,ae.keySize,ae.ivSize);q.iv=Ve.iv;var Je=ee.encrypt.call(this,ae,Z,Ve.key,q);return Je.mixIn(Ve),Je},decrypt:function(ae,Z,fe,q){q=this.cfg.extend(q),Z=this._parse(Z,q.format);var Ve=q.kdf.execute(fe,ae.keySize,ae.ivSize,Z.salt);return q.iv=Ve.iv,ee.decrypt.call(this,ae,Z,Ve.key,q)}}))))},7585:function(Qe,F,s){var n;Qe.exports=(n=n||function(r,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=s(2480)}catch{}var o=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.")},E=Object.create||function(){function V(){}return function(ne){var me;return V.prototype=ne,me=new V,V.prototype=null,me}}(),x={},d=x.lib={},g=d.Base={extend:function(V){var ne=E(this);return V&&ne.mixIn(V),(!ne.hasOwnProperty("init")||this.init===ne.init)&&(ne.init=function(){ne.$super.init.apply(this,arguments)}),ne.init.prototype=ne,ne.$super=this,ne},create:function(){var V=this.extend();return V.init.apply(V,arguments),V},init:function(){},mixIn:function(V){for(var ne in V)V.hasOwnProperty(ne)&&(this[ne]=V[ne]);V.hasOwnProperty("toString")&&(this.toString=V.toString)},clone:function(){return this.init.prototype.extend(this)}},v=d.WordArray=g.extend({init:function(V,ne){V=this.words=V||[],this.sigBytes=null!=ne?ne:4*V.length},toString:function(V){return(V||m).stringify(this)},concat:function(V){var ne=this.words,me=V.words,j=this.sigBytes,$=V.sigBytes;if(this.clamp(),j%4)for(var N=0;N<$;N++)ne[j+N>>>2]|=(me[N>>>2]>>>24-N%4*8&255)<<24-(j+N)%4*8;else for(var he=0;he<$;he+=4)ne[j+he>>>2]=me[he>>>2];return this.sigBytes+=$,this},clamp:function(){var V=this.words,ne=this.sigBytes;V[ne>>>2]&=4294967295<<32-ne%4*8,V.length=r.ceil(ne/4)},clone:function(){var V=g.clone.call(this);return V.words=this.words.slice(0),V},random:function(V){for(var ne=[],me=0;me>>2]>>>24-$%4*8&255;j.push((N>>>4).toString(16)),j.push((15&N).toString(16))}return j.join("")},parse:function(V){for(var ne=V.length,me=[],j=0;j>>3]|=parseInt(V.substr(j,2),16)<<24-j%8*4;return new v.init(me,ne/2)}},C=_.Latin1={stringify:function(V){for(var ne=V.words,me=V.sigBytes,j=[],$=0;$>>2]>>>24-$%4*8&255));return j.join("")},parse:function(V){for(var ne=V.length,me=[],j=0;j>>2]|=(255&V.charCodeAt(j))<<24-j%4*8;return new v.init(me,ne)}},O=_.Utf8={stringify:function(V){try{return decodeURIComponent(escape(C.stringify(V)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(V){return C.parse(unescape(encodeURIComponent(V)))}},H=d.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(V){"string"==typeof V&&(V=O.parse(V)),this._data.concat(V),this._nDataBytes+=V.sigBytes},_process:function(V){var ne,me=this._data,j=me.words,$=me.sigBytes,N=this.blockSize,he=$/(4*N),oe=(he=V?r.ceil(he):r.max((0|he)-this._minBufferSize,0))*N,Ie=r.min(4*oe,$);if(oe){for(var ae=0;ae>>2]>>>24-C%4*8&255)<<16|(g[C+1>>>2]>>>24-(C+1)%4*8&255)<<8|g[C+2>>>2]>>>24-(C+2)%4*8&255,V=0;V<4&&C+.75*V>>6*(3-V)&63));var ne=_.charAt(64);if(ne)for(;m.length%4;)m.push(ne);return m.join("")},parse:function(d){var g=d.length,v=this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var m=0;m>>6-C%4*2;_[m>>>2]|=(O|H)<<24-m%4*8,m++}return u.create(_,m)}(d,g,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},4410:function(Qe,F,s){var n,u;Qe.exports=(n=s(7585),u=n.lib.WordArray,n.enc.Base64url={stringify:function(d,g=!0){var v=d.words,_=d.sigBytes,m=g?this._safe_map:this._map;d.clamp();for(var C=[],O=0;O<_;O+=3)for(var V=(v[O>>>2]>>>24-O%4*8&255)<<16|(v[O+1>>>2]>>>24-(O+1)%4*8&255)<<8|v[O+2>>>2]>>>24-(O+2)%4*8&255,ne=0;ne<4&&O+.75*ne<_;ne++)C.push(m.charAt(V>>>6*(3-ne)&63));var me=m.charAt(64);if(me)for(;C.length%4;)C.push(me);return C.join("")},parse:function(d,g=!0){var v=d.length,_=g?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var C=0;C<_.length;C++)m[_.charCodeAt(C)]=C}var O=_.charAt(64);if(O){var H=d.indexOf(O);-1!==H&&(v=H)}return function x(d,g,v){for(var _=[],m=0,C=0;C>>6-C%4*2;_[m>>>2]|=(O|H)<<24-m%4*8,m++}return u.create(_,m)}(d,v,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},9012:function(Qe,F,s){var n;Qe.exports=(n=s(7585),function(){var u=n.lib.WordArray,o=n.enc;function x(d){return d<<8&4278255360|d>>>8&16711935}o.Utf16=o.Utf16BE={stringify:function(d){for(var g=d.words,v=d.sigBytes,_=[],m=0;m>>2]>>>16-m%4*8&65535));return _.join("")},parse:function(d){for(var g=d.length,v=[],_=0;_>>1]|=d.charCodeAt(_)<<16-_%2*16;return u.create(v,2*g)}},o.Utf16LE={stringify:function(d){for(var g=d.words,v=d.sigBytes,_=[],m=0;m>>2]>>>16-m%4*8&65535);_.push(String.fromCharCode(C))}return _.join("")},parse:function(d){for(var g=d.length,v=[],_=0;_>>1]|=x(d.charCodeAt(_)<<16-_%2*16);return u.create(v,2*g)}}}(),n.enc.Utf16)},7865:function(Qe,F,s){var r,l,u,o,E,d,n;Qe.exports=(n=s(7585),s(5162),s(3764),o=(l=(r=n).lib).WordArray,d=(E=r.algo).EvpKDF=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:E.MD5,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,v){for(var _,m=this.cfg,C=m.hasher.create(),O=o.create(),H=O.words,G=m.keySize,Y=m.iterations;H.lengthm&&(v=g.finalize(v)),v.clamp();for(var C=this._oKey=v.clone(),O=this._iKey=v.clone(),H=C.words,G=O.words,Y=0;Y<_;Y++)H[Y]^=1549556828,G[Y]^=909522486;C.sigBytes=O.sigBytes=m,this.reset()},reset:function(){var g=this._hasher;g.reset(),g.update(this._iKey)},update:function(g){return this._hasher.update(g),this},finalize:function(g){var v=this._hasher,_=v.finalize(g);return v.reset(),v.finalize(this._oKey.clone().concat(_))}})))},7206:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(401),s(7412),s(9012),s(8319),s(4410),s(9493),s(5162),s(1817),s(8769),s(3351),s(6787),s(1971),s(4973),s(3764),s(8812),s(7865),s(3057),s(4424),s(6635),s(3592),s(9354),s(7934),s(4413),s(4630),s(187),s(1691),s(3237),s(1847),s(7466),s(7243),s(486),s(8182),s(3544),n)},7412:function(Qe,F,s){var n;Qe.exports=(n=s(7585),function(){if("function"==typeof ArrayBuffer){var u=n.lib.WordArray,o=u.init,E=u.init=function(x){if(x instanceof ArrayBuffer&&(x=new Uint8Array(x)),(x instanceof Int8Array||typeof Uint8ClampedArray<"u"&&x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array)&&(x=new Uint8Array(x.buffer,x.byteOffset,x.byteLength)),x instanceof Uint8Array){for(var d=x.byteLength,g=[],v=0;v>>2]|=x[v]<<24-v%4*8;o.call(this,g,d)}else o.apply(this,arguments)};E.prototype=u}}(),n.lib.WordArray)},9493:function(Qe,F,s){var n;Qe.exports=(n=s(7585),function(r){var l=n,u=l.lib,o=u.WordArray,E=u.Hasher,x=l.algo,d=[];!function(){for(var O=0;O<64;O++)d[O]=4294967296*r.abs(r.sin(O+1))|0}();var g=x.MD5=E.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(O,H){for(var G=0;G<16;G++){var Y=H+G,V=O[Y];O[Y]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8)}var ne=this._hash.words,me=O[H+0],j=O[H+1],$=O[H+2],N=O[H+3],ee=O[H+4],he=O[H+5],oe=O[H+6],Ie=O[H+7],ae=O[H+8],Z=O[H+9],fe=O[H+10],q=O[H+11],Ve=O[H+12],Je=O[H+13],kt=O[H+14],Lt=O[H+15],wt=ne[0],Pe=ne[1],Ue=ne[2],le=ne[3];wt=v(wt,Pe,Ue,le,me,7,d[0]),le=v(le,wt,Pe,Ue,j,12,d[1]),Ue=v(Ue,le,wt,Pe,$,17,d[2]),Pe=v(Pe,Ue,le,wt,N,22,d[3]),wt=v(wt,Pe,Ue,le,ee,7,d[4]),le=v(le,wt,Pe,Ue,he,12,d[5]),Ue=v(Ue,le,wt,Pe,oe,17,d[6]),Pe=v(Pe,Ue,le,wt,Ie,22,d[7]),wt=v(wt,Pe,Ue,le,ae,7,d[8]),le=v(le,wt,Pe,Ue,Z,12,d[9]),Ue=v(Ue,le,wt,Pe,fe,17,d[10]),Pe=v(Pe,Ue,le,wt,q,22,d[11]),wt=v(wt,Pe,Ue,le,Ve,7,d[12]),le=v(le,wt,Pe,Ue,Je,12,d[13]),Ue=v(Ue,le,wt,Pe,kt,17,d[14]),wt=_(wt,Pe=v(Pe,Ue,le,wt,Lt,22,d[15]),Ue,le,j,5,d[16]),le=_(le,wt,Pe,Ue,oe,9,d[17]),Ue=_(Ue,le,wt,Pe,q,14,d[18]),Pe=_(Pe,Ue,le,wt,me,20,d[19]),wt=_(wt,Pe,Ue,le,he,5,d[20]),le=_(le,wt,Pe,Ue,fe,9,d[21]),Ue=_(Ue,le,wt,Pe,Lt,14,d[22]),Pe=_(Pe,Ue,le,wt,ee,20,d[23]),wt=_(wt,Pe,Ue,le,Z,5,d[24]),le=_(le,wt,Pe,Ue,kt,9,d[25]),Ue=_(Ue,le,wt,Pe,N,14,d[26]),Pe=_(Pe,Ue,le,wt,ae,20,d[27]),wt=_(wt,Pe,Ue,le,Je,5,d[28]),le=_(le,wt,Pe,Ue,$,9,d[29]),Ue=_(Ue,le,wt,Pe,Ie,14,d[30]),wt=m(wt,Pe=_(Pe,Ue,le,wt,Ve,20,d[31]),Ue,le,he,4,d[32]),le=m(le,wt,Pe,Ue,ae,11,d[33]),Ue=m(Ue,le,wt,Pe,q,16,d[34]),Pe=m(Pe,Ue,le,wt,kt,23,d[35]),wt=m(wt,Pe,Ue,le,j,4,d[36]),le=m(le,wt,Pe,Ue,ee,11,d[37]),Ue=m(Ue,le,wt,Pe,Ie,16,d[38]),Pe=m(Pe,Ue,le,wt,fe,23,d[39]),wt=m(wt,Pe,Ue,le,Je,4,d[40]),le=m(le,wt,Pe,Ue,me,11,d[41]),Ue=m(Ue,le,wt,Pe,N,16,d[42]),Pe=m(Pe,Ue,le,wt,oe,23,d[43]),wt=m(wt,Pe,Ue,le,Z,4,d[44]),le=m(le,wt,Pe,Ue,Ve,11,d[45]),Ue=m(Ue,le,wt,Pe,Lt,16,d[46]),wt=C(wt,Pe=m(Pe,Ue,le,wt,$,23,d[47]),Ue,le,me,6,d[48]),le=C(le,wt,Pe,Ue,Ie,10,d[49]),Ue=C(Ue,le,wt,Pe,kt,15,d[50]),Pe=C(Pe,Ue,le,wt,he,21,d[51]),wt=C(wt,Pe,Ue,le,Ve,6,d[52]),le=C(le,wt,Pe,Ue,N,10,d[53]),Ue=C(Ue,le,wt,Pe,fe,15,d[54]),Pe=C(Pe,Ue,le,wt,j,21,d[55]),wt=C(wt,Pe,Ue,le,ae,6,d[56]),le=C(le,wt,Pe,Ue,Lt,10,d[57]),Ue=C(Ue,le,wt,Pe,oe,15,d[58]),Pe=C(Pe,Ue,le,wt,Je,21,d[59]),wt=C(wt,Pe,Ue,le,ee,6,d[60]),le=C(le,wt,Pe,Ue,q,10,d[61]),Ue=C(Ue,le,wt,Pe,$,15,d[62]),Pe=C(Pe,Ue,le,wt,Z,21,d[63]),ne[0]=ne[0]+wt|0,ne[1]=ne[1]+Pe|0,ne[2]=ne[2]+Ue|0,ne[3]=ne[3]+le|0},_doFinalize:function(){var O=this._data,H=O.words,G=8*this._nDataBytes,Y=8*O.sigBytes;H[Y>>>5]|=128<<24-Y%32;var V=r.floor(G/4294967296),ne=G;H[15+(Y+64>>>9<<4)]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),H[14+(Y+64>>>9<<4)]=16711935&(ne<<8|ne>>>24)|4278255360&(ne<<24|ne>>>8),O.sigBytes=4*(H.length+1),this._process();for(var me=this._hash,j=me.words,$=0;$<4;$++){var N=j[$];j[$]=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8)}return me},clone:function(){var O=E.clone.call(this);return O._hash=this._hash.clone(),O}});function v(O,H,G,Y,V,ne,me){var j=O+(H&G|~H&Y)+V+me;return(j<>>32-ne)+H}function _(O,H,G,Y,V,ne,me){var j=O+(H&Y|G&~Y)+V+me;return(j<>>32-ne)+H}function m(O,H,G,Y,V,ne,me){var j=O+(H^G^Y)+V+me;return(j<>>32-ne)+H}function C(O,H,G,Y,V,ne,me){var j=O+(G^(H|~Y))+V+me;return(j<>>32-ne)+H}l.MD5=E._createHelper(g),l.HmacMD5=E._createHmacHelper(g)}(Math),n.MD5)},4424:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(3057),n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();function l(u,o,E,x){var d,g=this._iv;g?(d=g.slice(0),this._iv=void 0):d=this._prevBlock,x.encryptBlock(d,0);for(var v=0;v>24&255)){var x=E>>16&255,d=E>>8&255,g=255&E;255===x?(x=0,255===d?(d=0,255===g?g=0:++g):++d):++x,E=0,E+=x<<16,E+=d<<8,E+=g}else E+=1<<24;return E}var o=r.Encryptor=r.extend({processBlock:function(E,x){var d=this._cipher,g=d.blockSize,v=this._iv,_=this._counter;v&&(_=this._counter=v.slice(0),this._iv=void 0),function u(E){return 0===(E[0]=l(E[0]))&&(E[1]=l(E[1])),E}(_);var m=_.slice(0);d.encryptBlock(m,0);for(var C=0;C>>2]|=E<<24-x%4*8,r.sigBytes+=E},unpad:function(r){r.sigBytes-=255&r.words[r.sigBytes-1>>>2]}},n.pad.Ansix923)},4630:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(3057),n.pad.Iso10126={pad:function(r,l){var u=4*l,o=u-r.sigBytes%u;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){r.sigBytes-=255&r.words[r.sigBytes-1>>>2]}},n.pad.Iso10126)},187:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(3057),n.pad.Iso97971={pad:function(r,l){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,l)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971)},3237:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(3057),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},1691:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(3057),n.pad.ZeroPadding={pad:function(r,l){var u=4*l;r.clamp(),r.sigBytes+=u-(r.sigBytes%u||u)},unpad:function(r){var l=r.words,u=r.sigBytes-1;for(u=r.sigBytes-1;u>=0;u--)if(l[u>>>2]>>>24-u%4*8&255){r.sigBytes=u+1;break}}},n.pad.ZeroPadding)},8812:function(Qe,F,s){var r,l,u,o,E,d,g,n;Qe.exports=(n=s(7585),s(5162),s(3764),o=(l=(r=n).lib).WordArray,d=(E=r.algo).HMAC,g=E.PBKDF2=(u=l.Base).extend({cfg:u.extend({keySize:4,hasher:E.SHA1,iterations:1}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,_){for(var m=this.cfg,C=d.create(m.hasher,v),O=o.create(),H=o.create([1]),G=O.words,Y=H.words,V=m.keySize,ne=m.iterations;G.length>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],O=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 H=0;H<4;H++)v.call(this);for(H=0;H<8;H++)O[H]^=C[H+4&7];if(m){var G=m.words,Y=G[0],V=G[1],ne=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),me=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),j=ne>>>16|4294901760&me,$=me<<16|65535≠for(O[0]^=ne,O[1]^=j,O[2]^=me,O[3]^=$,O[4]^=ne,O[5]^=j,O[6]^=me,O[7]^=$,H=0;H<4;H++)v.call(this)}},_doProcessBlock:function(_,m){var C=this._X;v.call(this),E[0]=C[0]^C[5]>>>16^C[3]<<16,E[1]=C[2]^C[7]>>>16^C[5]<<16,E[2]=C[4]^C[1]>>>16^C[7]<<16,E[3]=C[6]^C[3]>>>16^C[1]<<16;for(var O=0;O<4;O++)E[O]=16711935&(E[O]<<8|E[O]>>>24)|4278255360&(E[O]<<24|E[O]>>>8),_[m+O]^=E[O]},blockSize:4,ivSize:2});function v(){for(var _=this._X,m=this._C,C=0;C<8;C++)x[C]=m[C];for(m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0>>0?1:0)|0,this._b=m[7]>>>0>>0?1:0,C=0;C<8;C++){var O=_[C]+m[C],H=65535&O,G=O>>>16;d[C]=((H*H>>>17)+H*G>>>15)+G*G^((4294901760&O)*O|0)+((65535&O)*O|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}r.RabbitLegacy=u._createHelper(g)}(),n.RabbitLegacy)},8182:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(8319),s(9493),s(7865),s(3057),function(){var r=n,u=r.lib.StreamCipher,E=[],x=[],d=[],g=r.algo.Rabbit=u.extend({_doReset:function(){for(var _=this._key.words,m=this.cfg.iv,C=0;C<4;C++)_[C]=16711935&(_[C]<<8|_[C]>>>24)|4278255360&(_[C]<<24|_[C]>>>8);var O=this._X=[_[0],_[3]<<16|_[2]>>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],H=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,C=0;C<4;C++)v.call(this);for(C=0;C<8;C++)H[C]^=O[C+4&7];if(m){var G=m.words,Y=G[0],V=G[1],ne=16711935&(Y<<8|Y>>>24)|4278255360&(Y<<24|Y>>>8),me=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8),j=ne>>>16|4294901760&me,$=me<<16|65535≠for(H[0]^=ne,H[1]^=j,H[2]^=me,H[3]^=$,H[4]^=ne,H[5]^=j,H[6]^=me,H[7]^=$,C=0;C<4;C++)v.call(this)}},_doProcessBlock:function(_,m){var C=this._X;v.call(this),E[0]=C[0]^C[5]>>>16^C[3]<<16,E[1]=C[2]^C[7]>>>16^C[5]<<16,E[2]=C[4]^C[1]>>>16^C[7]<<16,E[3]=C[6]^C[3]>>>16^C[1]<<16;for(var O=0;O<4;O++)E[O]=16711935&(E[O]<<8|E[O]>>>24)|4278255360&(E[O]<<24|E[O]>>>8),_[m+O]^=E[O]},blockSize:4,ivSize:2});function v(){for(var _=this._X,m=this._C,C=0;C<8;C++)x[C]=m[C];for(m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0>>0?1:0)|0,this._b=m[7]>>>0>>0?1:0,C=0;C<8;C++){var O=_[C]+m[C],H=65535&O,G=O>>>16;d[C]=((H*H>>>17)+H*G>>>15)+G*G^((4294901760&O)*O|0)+((65535&O)*O|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}r.Rabbit=u._createHelper(g)}(),n.Rabbit)},486:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(8319),s(9493),s(7865),s(3057),function(){var r=n,u=r.lib.StreamCipher,o=r.algo,E=o.RC4=u.extend({_doReset:function(){for(var g=this._key,v=g.words,_=g.sigBytes,m=this._S=[],C=0;C<256;C++)m[C]=C;C=0;for(var O=0;C<256;C++){var H=C%_,Y=m[C];m[C]=m[O=(O+m[C]+(v[H>>>2]>>>24-H%4*8&255))%256],m[O]=Y}this._i=this._j=0},_doProcessBlock:function(g,v){g[v]^=x.call(this)},keySize:8,ivSize:0});function x(){for(var g=this._S,v=this._i,_=this._j,m=0,C=0;C<4;C++){var O=g[v=(v+1)%256];g[v]=g[_=(_+g[v])%256],g[_]=O,m|=g[(g[v]+g[_])%256]<<24-8*C}return this._i=v,this._j=_,m}r.RC4=u._createHelper(E);var d=o.RC4Drop=E.extend({cfg:E.cfg.extend({drop:192}),_doReset:function(){E._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)x.call(this)}});r.RC4Drop=u._createHelper(d)}(),n.RC4)},4973:function(Qe,F,s){var n;Qe.exports=(n=s(7585),function(r){var l=n,u=l.lib,o=u.WordArray,E=u.Hasher,x=l.algo,d=o.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]),g=o.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]),v=o.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]),_=o.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]),m=o.create([0,1518500249,1859775393,2400959708,2840853838]),C=o.create([1352829926,1548603684,1836072691,2053994217,0]),O=x.RIPEMD160=E.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(j,$){for(var N=0;N<16;N++){var ee=$+N,he=j[ee];j[ee]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8)}var Je,kt,Lt,wt,Pe,Ue,le,Ce,pe,Le,Oe,oe=this._hash.words,Ie=m.words,ae=C.words,Z=d.words,fe=g.words,q=v.words,Ve=_.words;for(Ue=Je=oe[0],le=kt=oe[1],Ce=Lt=oe[2],pe=wt=oe[3],Le=Pe=oe[4],N=0;N<80;N+=1)Oe=Je+j[$+Z[N]]|0,Oe+=N<16?H(kt,Lt,wt)+Ie[0]:N<32?G(kt,Lt,wt)+Ie[1]:N<48?Y(kt,Lt,wt)+Ie[2]:N<64?V(kt,Lt,wt)+Ie[3]:ne(kt,Lt,wt)+Ie[4],Oe=(Oe=me(Oe|=0,q[N]))+Pe|0,Je=Pe,Pe=wt,wt=me(Lt,10),Lt=kt,kt=Oe,Oe=Ue+j[$+fe[N]]|0,Oe+=N<16?ne(le,Ce,pe)+ae[0]:N<32?V(le,Ce,pe)+ae[1]:N<48?Y(le,Ce,pe)+ae[2]:N<64?G(le,Ce,pe)+ae[3]:H(le,Ce,pe)+ae[4],Oe=(Oe=me(Oe|=0,Ve[N]))+Le|0,Ue=Le,Le=pe,pe=me(Ce,10),Ce=le,le=Oe;Oe=oe[1]+Lt+pe|0,oe[1]=oe[2]+wt+Le|0,oe[2]=oe[3]+Pe+Ue|0,oe[3]=oe[4]+Je+le|0,oe[4]=oe[0]+kt+Ce|0,oe[0]=Oe},_doFinalize:function(){var j=this._data,$=j.words,N=8*this._nDataBytes,ee=8*j.sigBytes;$[ee>>>5]|=128<<24-ee%32,$[14+(ee+64>>>9<<4)]=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8),j.sigBytes=4*($.length+1),this._process();for(var he=this._hash,oe=he.words,Ie=0;Ie<5;Ie++){var ae=oe[Ie];oe[Ie]=16711935&(ae<<8|ae>>>24)|4278255360&(ae<<24|ae>>>8)}return he},clone:function(){var j=E.clone.call(this);return j._hash=this._hash.clone(),j}});function H(j,$,N){return j^$^N}function G(j,$,N){return j&$|~j&N}function Y(j,$,N){return(j|~$)^N}function V(j,$,N){return j&N|$&~N}function ne(j,$,N){return j^($|~N)}function me(j,$){return j<<$|j>>>32-$}l.RIPEMD160=E._createHelper(O),l.HmacRIPEMD160=E._createHmacHelper(O)}(Math),n.RIPEMD160)},5162:function(Qe,F,s){var r,l,u,o,x,d,n;Qe.exports=(n=s(7585),u=(l=(r=n).lib).WordArray,x=[],d=r.algo.SHA1=(o=l.Hasher).extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,v){for(var _=this._hash.words,m=_[0],C=_[1],O=_[2],H=_[3],G=_[4],Y=0;Y<80;Y++){if(Y<16)x[Y]=0|g[v+Y];else{var V=x[Y-3]^x[Y-8]^x[Y-14]^x[Y-16];x[Y]=V<<1|V>>>31}var ne=(m<<5|m>>>27)+G+x[Y];ne+=Y<20?1518500249+(C&O|~C&H):Y<40?1859775393+(C^O^H):Y<60?(C&O|C&H|O&H)-1894007588:(C^O^H)-899497514,G=H,H=O,O=C<<30|C>>>2,C=m,m=ne}_[0]=_[0]+m|0,_[1]=_[1]+C|0,_[2]=_[2]+O|0,_[3]=_[3]+H|0,_[4]=_[4]+G|0},_doFinalize:function(){var g=this._data,v=g.words,_=8*this._nDataBytes,m=8*g.sigBytes;return v[m>>>5]|=128<<24-m%32,v[14+(m+64>>>9<<4)]=Math.floor(_/4294967296),v[15+(m+64>>>9<<4)]=_,g.sigBytes=4*v.length,this._process(),this._hash},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}}),r.SHA1=o._createHelper(d),r.HmacSHA1=o._createHmacHelper(d),n.SHA1)},8769:function(Qe,F,s){var r,u,o,E,x,n;Qe.exports=(n=s(7585),s(1817),u=(r=n).lib.WordArray,x=(o=r.algo).SHA224=(E=o.SHA256).extend({_doReset:function(){this._hash=new u.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=E._doFinalize.call(this);return d.sigBytes-=4,d}}),r.SHA224=E._createHelper(x),r.HmacSHA224=E._createHmacHelper(x),n.SHA224)},1817:function(Qe,F,s){var n;Qe.exports=(n=s(7585),function(r){var l=n,u=l.lib,o=u.WordArray,E=u.Hasher,x=l.algo,d=[],g=[];!function(){function m(G){for(var Y=r.sqrt(G),V=2;V<=Y;V++)if(!(G%V))return!1;return!0}function C(G){return 4294967296*(G-(0|G))|0}for(var O=2,H=0;H<64;)m(O)&&(H<8&&(d[H]=C(r.pow(O,.5))),g[H]=C(r.pow(O,1/3)),H++),O++}();var v=[],_=x.SHA256=E.extend({_doReset:function(){this._hash=new o.init(d.slice(0))},_doProcessBlock:function(m,C){for(var O=this._hash.words,H=O[0],G=O[1],Y=O[2],V=O[3],ne=O[4],me=O[5],j=O[6],$=O[7],N=0;N<64;N++){if(N<16)v[N]=0|m[C+N];else{var ee=v[N-15],oe=v[N-2];v[N]=((ee<<25|ee>>>7)^(ee<<14|ee>>>18)^ee>>>3)+v[N-7]+((oe<<15|oe>>>17)^(oe<<13|oe>>>19)^oe>>>10)+v[N-16]}var Z=H&G^H&Y^G&Y,Ve=$+((ne<<26|ne>>>6)^(ne<<21|ne>>>11)^(ne<<7|ne>>>25))+(ne&me^~ne&j)+g[N]+v[N];$=j,j=me,me=ne,ne=V+Ve|0,V=Y,Y=G,G=H,H=Ve+(((H<<30|H>>>2)^(H<<19|H>>>13)^(H<<10|H>>>22))+Z)|0}O[0]=O[0]+H|0,O[1]=O[1]+G|0,O[2]=O[2]+Y|0,O[3]=O[3]+V|0,O[4]=O[4]+ne|0,O[5]=O[5]+me|0,O[6]=O[6]+j|0,O[7]=O[7]+$|0},_doFinalize:function(){var m=this._data,C=m.words,O=8*this._nDataBytes,H=8*m.sigBytes;return C[H>>>5]|=128<<24-H%32,C[14+(H+64>>>9<<4)]=r.floor(O/4294967296),C[15+(H+64>>>9<<4)]=O,m.sigBytes=4*C.length,this._process(),this._hash},clone:function(){var m=E.clone.call(this);return m._hash=this._hash.clone(),m}});l.SHA256=E._createHelper(_),l.HmacSHA256=E._createHmacHelper(_)}(Math),n.SHA256)},1971:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(401),function(r){var l=n,u=l.lib,o=u.WordArray,E=u.Hasher,d=l.x64.Word,g=l.algo,v=[],_=[],m=[];!function(){for(var H=1,G=0,Y=0;Y<24;Y++){v[H+5*G]=(Y+1)*(Y+2)/2%64;var ne=(2*H+3*G)%5;H=G%5,G=ne}for(H=0;H<5;H++)for(G=0;G<5;G++)_[H+5*G]=G+(2*H+3*G)%5*5;for(var me=1,j=0;j<24;j++){for(var $=0,N=0,ee=0;ee<7;ee++){if(1&me){var he=(1<>>24)|4278255360&(me<<24|me>>>8),($=Y[ne]).high^=j=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8),$.low^=me}for(var N=0;N<24;N++){for(var ee=0;ee<5;ee++){for(var he=0,oe=0,Ie=0;Ie<5;Ie++)he^=($=Y[ee+5*Ie]).high,oe^=$.low;var ae=C[ee];ae.high=he,ae.low=oe}for(ee=0;ee<5;ee++){var Z=C[(ee+4)%5],fe=C[(ee+1)%5],q=fe.high,Ve=fe.low;for(he=Z.high^(q<<1|Ve>>>31),oe=Z.low^(Ve<<1|q>>>31),Ie=0;Ie<5;Ie++)($=Y[ee+5*Ie]).high^=he,$.low^=oe}for(var Je=1;Je<25;Je++){var kt=($=Y[Je]).high,Lt=$.low,wt=v[Je];wt<32?(he=kt<>>32-wt,oe=Lt<>>32-wt):(he=Lt<>>64-wt,oe=kt<>>64-wt);var Pe=C[_[Je]];Pe.high=he,Pe.low=oe}var Ue=C[0],le=Y[0];for(Ue.high=le.high,Ue.low=le.low,ee=0;ee<5;ee++)for(Ie=0;Ie<5;Ie++){var Ce=C[Je=ee+5*Ie],pe=C[(ee+1)%5+5*Ie],Le=C[(ee+2)%5+5*Ie];($=Y[Je]).high=Ce.high^~pe.high&Le.high,$.low=Ce.low^~pe.low&Le.low}var $,Oe=m[N];($=Y[0]).high^=Oe.high,$.low^=Oe.low}},_doFinalize:function(){var H=this._data,G=H.words,V=8*H.sigBytes,ne=32*this.blockSize;G[V>>>5]|=1<<24-V%32,G[(r.ceil((V+1)/ne)*ne>>>5)-1]|=128,H.sigBytes=4*G.length,this._process();for(var me=this._state,j=this.cfg.outputLength/8,$=j/8,N=[],ee=0;ee<$;ee++){var he=me[ee],oe=he.high,Ie=he.low;oe=16711935&(oe<<8|oe>>>24)|4278255360&(oe<<24|oe>>>8),N.push(Ie=16711935&(Ie<<8|Ie>>>24)|4278255360&(Ie<<24|Ie>>>8)),N.push(oe)}return new o.init(N,j)},clone:function(){for(var H=E.clone.call(this),G=H._state=this._state.slice(0),Y=0;Y<25;Y++)G[Y]=G[Y].clone();return H}});l.SHA3=E._createHelper(O),l.HmacSHA3=E._createHmacHelper(O)}(Math),n.SHA3)},6787:function(Qe,F,s){var r,l,u,o,E,x,d,n;Qe.exports=(n=s(7585),s(401),s(3351),u=(l=(r=n).x64).Word,o=l.WordArray,d=(E=r.algo).SHA384=(x=E.SHA512).extend({_doReset:function(){this._hash=new o.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 g=x._doFinalize.call(this);return g.sigBytes-=16,g}}),r.SHA384=x._createHelper(d),r.HmacSHA384=x._createHmacHelper(d),n.SHA384)},3351:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(401),function(){var r=n,u=r.lib.Hasher,o=r.x64,E=o.Word,x=o.WordArray,d=r.algo;function g(){return E.create.apply(E,arguments)}var v=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],_=[];!function(){for(var C=0;C<80;C++)_[C]=g()}();var m=d.SHA512=u.extend({_doReset:function(){this._hash=new x.init([new E.init(1779033703,4089235720),new E.init(3144134277,2227873595),new E.init(1013904242,4271175723),new E.init(2773480762,1595750129),new E.init(1359893119,2917565137),new E.init(2600822924,725511199),new E.init(528734635,4215389547),new E.init(1541459225,327033209)])},_doProcessBlock:function(C,O){for(var H=this._hash.words,G=H[0],Y=H[1],V=H[2],ne=H[3],me=H[4],j=H[5],$=H[6],N=H[7],ee=G.high,he=G.low,oe=Y.high,Ie=Y.low,ae=V.high,Z=V.low,fe=ne.high,q=ne.low,Ve=me.high,Je=me.low,kt=j.high,Lt=j.low,wt=$.high,Pe=$.low,Ue=N.high,le=N.low,Ce=ee,pe=he,Le=oe,Oe=Ie,ot=ae,yt=Z,at=fe,de=q,se=Ve,ge=Je,ke=kt,st=Lt,qe=wt,bt=Pe,At=Ue,je=le,ve=0;ve<80;ve++){var T,A,U=_[ve];if(ve<16)A=U.high=0|C[O+2*ve],T=U.low=0|C[O+2*ve+1];else{var Te=_[ve-15],Me=Te.high,xe=Te.low,ce=(xe>>>1|Me<<31)^(xe>>>8|Me<<24)^(xe>>>7|Me<<25),P=_[ve-2],z=P.high,Re=P.low,ft=(Re>>>19|z<<13)^(Re<<3|z>>>29)^(Re>>>6|z<<26),Nt=_[ve-7],gn=_[ve-16],pt=gn.low;U.high=A=(A=(A=((Me>>>1|xe<<31)^(Me>>>8|xe<<24)^Me>>>7)+Nt.high+((T=ce+Nt.low)>>>0>>0?1:0))+((z>>>19|Re<<13)^(z<<3|Re>>>29)^z>>>6)+((T+=ft)>>>0>>0?1:0))+gn.high+((T+=pt)>>>0>>0?1:0),U.low=T}var Et,ut=se&ke^~se&qe,it=ge&st^~ge&bt,dt=Ce&Le^Ce&ot^Le&ot,jt=(pe>>>28|Ce<<4)^(pe<<30|Ce>>>2)^(pe<<25|Ce>>>7),zt=v[ve],Ke=zt.low,Ht=At+((se>>>14|ge<<18)^(se>>>18|ge<<14)^(se<<23|ge>>>9))+((Et=je+((ge>>>14|se<<18)^(ge>>>18|se<<14)^(ge<<23|se>>>9)))>>>0>>0?1:0),rn=jt+(pe&Oe^pe&yt^Oe&yt);At=qe,je=bt,qe=ke,bt=st,ke=se,st=ge,se=at+(Ht=(Ht=(Ht=Ht+ut+((Et+=it)>>>0>>0?1:0))+zt.high+((Et+=Ke)>>>0>>0?1:0))+A+((Et+=T)>>>0>>0?1:0))+((ge=de+Et|0)>>>0>>0?1:0)|0,at=ot,de=yt,ot=Le,yt=Oe,Le=Ce,Oe=pe,Ce=Ht+(((Ce>>>28|pe<<4)^(Ce<<30|pe>>>2)^(Ce<<25|pe>>>7))+dt+(rn>>>0>>0?1:0))+((pe=Et+rn|0)>>>0>>0?1:0)|0}he=G.low=he+pe,G.high=ee+Ce+(he>>>0>>0?1:0),Ie=Y.low=Ie+Oe,Y.high=oe+Le+(Ie>>>0>>0?1:0),Z=V.low=Z+yt,V.high=ae+ot+(Z>>>0>>0?1:0),q=ne.low=q+de,ne.high=fe+at+(q>>>0>>0?1:0),Je=me.low=Je+ge,me.high=Ve+se+(Je>>>0>>0?1:0),Lt=j.low=Lt+st,j.high=kt+ke+(Lt>>>0>>0?1:0),Pe=$.low=Pe+bt,$.high=wt+qe+(Pe>>>0>>0?1:0),le=N.low=le+je,N.high=Ue+At+(le>>>0>>0?1:0)},_doFinalize:function(){var C=this._data,O=C.words,H=8*this._nDataBytes,G=8*C.sigBytes;return O[G>>>5]|=128<<24-G%32,O[30+(G+128>>>10<<5)]=Math.floor(H/4294967296),O[31+(G+128>>>10<<5)]=H,C.sigBytes=4*O.length,this._process(),this._hash.toX32()},clone:function(){var C=u.clone.call(this);return C._hash=this._hash.clone(),C},blockSize:32});r.SHA512=u._createHelper(m),r.HmacSHA512=u._createHmacHelper(m)}(),n.SHA512)},7243:function(Qe,F,s){var n;Qe.exports=(n=s(7585),s(8319),s(9493),s(7865),s(3057),function(){var r=n,l=r.lib,u=l.WordArray,o=l.BlockCipher,E=r.algo,x=[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],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{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],m=E.DES=o.extend({_doReset:function(){for(var Y=this._key.words,V=[],ne=0;ne<56;ne++){var me=x[ne]-1;V[ne]=Y[me>>>5]>>>31-me%32&1}for(var j=this._subKeys=[],$=0;$<16;$++){var N=j[$]=[],ee=g[$];for(ne=0;ne<24;ne++)N[ne/6|0]|=V[(d[ne]-1+ee)%28]<<31-ne%6,N[4+(ne/6|0)]|=V[28+(d[ne+24]-1+ee)%28]<<31-ne%6;for(N[0]=N[0]<<1|N[0]>>>31,ne=1;ne<7;ne++)N[ne]=N[ne]>>>4*(ne-1)+3;N[7]=N[7]<<5|N[7]>>>27}var he=this._invSubKeys=[];for(ne=0;ne<16;ne++)he[ne]=j[15-ne]},encryptBlock:function(G,Y){this._doCryptBlock(G,Y,this._subKeys)},decryptBlock:function(G,Y){this._doCryptBlock(G,Y,this._invSubKeys)},_doCryptBlock:function(G,Y,V){this._lBlock=G[Y],this._rBlock=G[Y+1],C.call(this,4,252645135),C.call(this,16,65535),O.call(this,2,858993459),O.call(this,8,16711935),C.call(this,1,1431655765);for(var ne=0;ne<16;ne++){for(var me=V[ne],j=this._lBlock,$=this._rBlock,N=0,ee=0;ee<8;ee++)N|=v[ee][(($^me[ee])&_[ee])>>>0];this._lBlock=$,this._rBlock=j^N}var he=this._lBlock;this._lBlock=this._rBlock,this._rBlock=he,C.call(this,1,1431655765),O.call(this,8,16711935),O.call(this,2,858993459),C.call(this,16,65535),C.call(this,4,252645135),G[Y]=this._lBlock,G[Y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function C(G,Y){var V=(this._lBlock>>>G^this._rBlock)&Y;this._rBlock^=V,this._lBlock^=V<>>G^this._lBlock)&Y;this._lBlock^=V,this._rBlock^=V<192.");var V=Y.slice(0,2),ne=Y.length<4?Y.slice(0,2):Y.slice(2,4),me=Y.length<6?Y.slice(0,2):Y.slice(4,6);this._des1=m.createEncryptor(u.create(V)),this._des2=m.createEncryptor(u.create(ne)),this._des3=m.createEncryptor(u.create(me))},encryptBlock:function(G,Y){this._des1.encryptBlock(G,Y),this._des2.decryptBlock(G,Y),this._des3.encryptBlock(G,Y)},decryptBlock:function(G,Y){this._des3.decryptBlock(G,Y),this._des2.encryptBlock(G,Y),this._des1.decryptBlock(G,Y)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=o._createHelper(H)}(),n.TripleDES)},401:function(Qe,F,s){var u,o,E,x,n;Qe.exports=(n=s(7585),o=(u=n.lib).Base,E=u.WordArray,(x=n.x64={}).Word=o.extend({init:function(v,_){this.high=v,this.low=_}}),x.WordArray=o.extend({init:function(v,_){v=this.words=v||[],this.sigBytes=null!=_?_:8*v.length},toX32:function(){for(var v=this.words,_=v.length,m=[],C=0;C<_;C++){var O=v[C];m.push(O.high),m.push(O.low)}return E.create(m,this.sigBytes)},clone:function(){for(var v=o.clone.call(this),_=v.words=this.words.slice(0),m=_.length,C=0;C{Qe.exports=typeof self<"u"?self:typeof window<"u"?window:Function("return this")()},7410:(Qe,F,s)=>{Qe.exports=s(3213),Qe.exports.parser=s(552)},3213:(Qe,F,s)=>{var n=s(1497),r=s(1264),l=s(2534)("engine.io-client:socket"),u=s(4068),o=s(552),E=s(1884),x=s(3257);function d(v,_){if(!(this instanceof d))return new d(v,_);_=_||{},v&&"object"==typeof v&&(_=v,v=null),v?(v=E(v),_.hostname=v.host,_.secure="https"===v.protocol||"wss"===v.protocol,_.port=v.port,v.query&&(_.query=v.query)):_.host&&(_.hostname=E(_.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=x.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()}Qe.exports=d,d.priorWebsocketSuccess=!1,r(d.prototype),d.protocol=o.protocol,d.Socket=d,d.Transport=s(3330),d.transports=s(1497),d.parser=s(552),d.prototype.createTransport=function(v){l('creating transport "%s"',v);var _=function g(v){var _={};for(var m in v)v.hasOwnProperty(m)&&(_[m]=v[m]);return _}(this.query);_.EIO=o.protocol,_.transport=v;var m=this.transportOptions[v]||{};return this.id&&(_.sid=this.id),new n[v]({query:_,socket:this,agent:m.agent||this.agent,hostname:m.hostname||this.hostname,port:m.port||this.port,secure:m.secure||this.secure,path:m.path||this.path,forceJSONP:m.forceJSONP||this.forceJSONP,jsonp:m.jsonp||this.jsonp,forceBase64:m.forceBase64||this.forceBase64,enablesXDR:m.enablesXDR||this.enablesXDR,withCredentials:m.withCredentials||this.withCredentials,timestampRequests:m.timestampRequests||this.timestampRequests,timestampParam:m.timestampParam||this.timestampParam,policyPort:m.policyPort||this.policyPort,pfx:m.pfx||this.pfx,key:m.key||this.key,passphrase:m.passphrase||this.passphrase,cert:m.cert||this.cert,ca:m.ca||this.ca,ciphers:m.ciphers||this.ciphers,rejectUnauthorized:m.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:m.perMessageDeflate||this.perMessageDeflate,extraHeaders:m.extraHeaders||this.extraHeaders,forceNode:m.forceNode||this.forceNode,localAddress:m.localAddress||this.localAddress,requestTimeout:m.requestTimeout||this.requestTimeout,protocols:m.protocols||void 0,isReactNative:this.isReactNative})},d.prototype.open=function(){var v;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))v="websocket";else{if(0===this.transports.length){var _=this;return void setTimeout(function(){_.emit("error","No transports available")},0)}v=this.transports[0]}this.readyState="opening";try{v=this.createTransport(v)}catch{return this.transports.shift(),void this.open()}v.open(),this.setTransport(v)},d.prototype.setTransport=function(v){l("setting transport %s",v.name);var _=this;this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=v,v.on("drain",function(){_.onDrain()}).on("packet",function(m){_.onPacket(m)}).on("error",function(m){_.onError(m)}).on("close",function(){_.onClose("transport close")})},d.prototype.probe=function(v){l('probing transport "%s"',v);var _=this.createTransport(v,{probe:1}),m=!1,C=this;function O(){C.onlyBinaryUpgrades&&(m=m||!this.supportsBinary&&C.transport.supportsBinary),m||(l('probe transport "%s" opened',v),_.send([{type:"ping",data:"probe"}]),_.once("packet",function($){if(!m)if("pong"===$.type&&"probe"===$.data){if(l('probe transport "%s" pong',v),C.upgrading=!0,C.emit("upgrading",_),!_)return;d.priorWebsocketSuccess="websocket"===_.name,l('pausing current transport "%s"',C.transport.name),C.transport.pause(function(){m||"closed"!==C.readyState&&(l("changing transport and sending upgrade packet"),me(),C.setTransport(_),_.send([{type:"upgrade"}]),C.emit("upgrade",_),_=null,C.upgrading=!1,C.flush())})}else{l('probe transport "%s" failed',v);var N=new Error("probe error");N.transport=_.name,C.emit("upgradeError",N)}}))}function H(){m||(m=!0,me(),_.close(),_=null)}function G(j){var $=new Error("probe error: "+j);$.transport=_.name,H(),l('probe transport "%s" failed because of error: %s',v,j),C.emit("upgradeError",$)}function Y(){G("transport closed")}function V(){G("socket closed")}function ne(j){_&&j.name!==_.name&&(l('"%s" works - aborting "%s"',j.name,_.name),H())}function me(){_.removeListener("open",O),_.removeListener("error",G),_.removeListener("close",Y),C.removeListener("close",V),C.removeListener("upgrading",ne)}d.priorWebsocketSuccess=!1,_.once("open",O),_.once("error",G),_.once("close",Y),this.once("close",V),this.once("upgrading",ne),_.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 v=0,_=this.upgrades.length;v<_;v++)this.probe(this.upgrades[v])}},d.prototype.onPacket=function(v){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(l('socket receive: type "%s", data "%s"',v.type,v.data),this.emit("packet",v),this.emit("heartbeat"),v.type){case"open":this.onHandshake(JSON.parse(v.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var _=new Error("server error");_.code=v.data,this.onError(_);break;case"message":this.emit("data",v.data),this.emit("message",v.data)}else l('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(v){this.emit("handshake",v),this.id=v.sid,this.transport.query.sid=v.sid,this.upgrades=this.filterUpgrades(v.upgrades),this.pingInterval=v.pingInterval,this.pingTimeout=v.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(v){clearTimeout(this.pingTimeoutTimer);var _=this;_.pingTimeoutTimer=setTimeout(function(){"closed"!==_.readyState&&_.onClose("ping timeout")},v||_.pingInterval+_.pingTimeout)},d.prototype.setPing=function(){var v=this;clearTimeout(v.pingIntervalTimer),v.pingIntervalTimer=setTimeout(function(){l("writing ping packet - expecting pong within %sms",v.pingTimeout),v.ping(),v.onHeartbeat(v.pingTimeout)},v.pingInterval)},d.prototype.ping=function(){var v=this;this.sendPacket("ping",function(){v.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(v,_,m){return this.sendPacket("message",v,_,m),this},d.prototype.sendPacket=function(v,_,m,C){if("function"==typeof _&&(C=_,_=void 0),"function"==typeof m&&(C=m,m=null),"closing"!==this.readyState&&"closed"!==this.readyState){(m=m||{}).compress=!1!==m.compress;var O={type:v,data:_,options:m};this.emit("packetCreate",O),this.writeBuffer.push(O),C&&this.once("flush",C),this.flush()}},d.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var v=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?C():_()}):this.upgrading?C():_()}function _(){v.onClose("forced close"),l("socket closing - telling transport to close"),v.transport.close()}function m(){v.removeListener("upgrade",m),v.removeListener("upgradeError",m),_()}function C(){v.once("upgrade",m),v.once("upgradeError",m)}return this},d.prototype.onError=function(v){l("socket error %j",v),d.priorWebsocketSuccess=!1,this.emit("error",v),this.onClose("transport error",v)},d.prototype.onClose=function(v,_){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(l('socket close with reason: "%s"',v),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",v,_),this.writeBuffer=[],this.prevBufferLen=0)},d.prototype.filterUpgrades=function(v){for(var _=[],m=0,C=v.length;m{var n=s(552),r=s(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}Qe.exports=l,r(l.prototype),l.prototype.onError=function(u,o){var E=new Error(u);return E.type="TransportError",E.description=o,this.emit("error",E),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 o=n.decodePacket(u,this.socket.binaryType);this.onPacket(o)},l.prototype.onPacket=function(u){this.emit("packet",u)},l.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1497:(Qe,F,s)=>{var n=s(3035),r=s(2889),l=s(6029),u=s(3909);F.polling=function o(E){var d=!1,g=!1,v=!1!==E.jsonp;if(typeof location<"u"){var _="https:"===location.protocol,m=location.port;m||(m=_?443:80),d=E.hostname!==location.hostname||m!==E.port,g=E.secure!==_}if(E.xdomain=d,E.xscheme=g,"open"in new n(E)&&!E.forceJSONP)return new r(E);if(!v)throw new Error("JSONP disabled");return new l(E)},F.websocket=u},6029:(Qe,F,s)=>{var n=s(3904),r=s(9471),l=s(851);Qe.exports=d;var E,u=/\n/g,o=/\\n/g;function x(){}function d(g){n.call(this,g),this.query=this.query||{},E||(E=l.___eio=l.___eio||[]),this.index=E.length;var v=this;E.push(function(_){v.onData(_)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){v.script&&(v.script.onerror=x)},!1)}r(d,n),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),n.prototype.doClose.call(this)},d.prototype.doPoll=function(){var g=this,v=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),v.async=!0,v.src=this.uri(),v.onerror=function(C){g.onError("jsonp poll error",C)};var _=document.getElementsByTagName("script")[0];_?_.parentNode.insertBefore(v,_):(document.head||document.body).appendChild(v),this.script=v,typeof navigator<"u"&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var C=document.createElement("iframe");document.body.appendChild(C),document.body.removeChild(C)},100)},d.prototype.doWrite=function(g,v){var _=this;if(!this.form){var H,m=document.createElement("form"),C=document.createElement("textarea"),O=this.iframeId="eio_iframe_"+this.index;m.className="socketio",m.style.position="absolute",m.style.top="-1000px",m.style.left="-1000px",m.target=O,m.method="POST",m.setAttribute("accept-charset","utf-8"),C.name="d",m.appendChild(C),document.body.appendChild(m),this.form=m,this.area=C}function G(){Y(),v()}function Y(){if(_.iframe)try{_.form.removeChild(_.iframe)}catch(ne){_.onError("jsonp polling iframe removal error",ne)}try{H=document.createElement('