1import{a as j}from"./chunk-PV4G3ZMD.js";import{a as pt}from"./chunk-GE5VJ33Z.js";import{a as U}from"./chunk-5JA4MRTV.js";import"./chunk-7RITHO7P.js";import"./chunk-GJLMCD5L.js";import"./chunk-ZVNMLKSA.js";import"./chunk-C4UKIA7I.js";import{a as te}from"./chunk-WT6TOOLX.js";import{a as N}from"./chunk-6E3LMQAL.js";import{a as mt,d as S}from"./chunk-6KGZXWQC.js";import{a as lt}from"./chunk-YT24ZAS6.js";import{a as fe,b as ve,c as dt}from"./chunk-VFC26NIT.js";import"./chunk-O27N33U3.js";import{a as he}from"./chunk-FGJY2ZU4.js";import{a as it}from"./chunk-VEIF3W7A.js";import"./chunk-4B2FV7TS.js";import{a as nt}from"./chunk-VDHMNIPW.js";import{a as rt,b as at,c as st,e as ct}from"./chunk-7NJJ2OR6.js";import{a as et,b as tt}from"./chunk-COB7JTXP.js";import{a as F,b as B}from"./chunk-B7MEV2DH.js";import{c as L,d as $}from"./chunk-HHQ3DLDR.js";import{a as ot}from"./chunk-PYESVWFJ.js";import"./chunk-ZCP5KTTM.js";import"./chunk-R3QRL77R.js";import{a as $e}from"./chunk-TEBKKOGH.js";import"./chunk-UMK6AGIS.js";import"./chunk-4QX5TW7Y.js";import"./chunk-7UZYWCAJ.js";import"./chunk-RIQOBMUM.js";import{j as Le,l as de}from"./chunk-WX25E2HZ.js";import"./chunk-I5K7UUBW.js";import"./chunk-6BAE5M2B.js";import{a as E,b as k}from"./chunk-GPTXSPLI.js";import"./chunk-WSF7ZPQZ.js";import{a as We,b as Ge,c as Je,e as Ye}from"./chunk-7KBFIBUW.js";import"./chunk-JYXQ74JV.js";import"./chunk-7A7LFYDL.js";import"./chunk-IQBBAARC.js";import"./chunk-CWWNL6ZE.js";import"./chunk-FSAIB72R.js";import{L as Ze,i as Ke,o as Xe}from"./chunk-X474JN3X.js";import"./chunk-OLSNRRTA.js";import"./chunk-GJNXMHJK.js";import"./chunk-CLUIJ6WE.js";import{a as He}from"./chunk-XWMJJGBF.js";import{a as je}from"./chunk-5G7452JJ.js";import"./chunk-O6NNHBDA.js";import"./chunk-VK3ZU6WP.js";import{G as ee,m as Ue,n as qe,u as Ce}from"./chunk-BRHCVEVW.js";import{Ac as ze,Bc as De,Be as Ve,Ed as Be,Fd as Ne,Gc as Z,Gd as Ae,Ic as _,Jc as C,Ka as u,Kc as oe,Kd as Fe,L as Ee,Mb as Te,Mc as z,Me as M,Nc as D,O as ue,Ob as i,Oc as p,Pc as r,Qa as P,Qc as a,Qd as Re,Ra as O,Rc as g,Sd as f,Tb as W,Ud as Qe,Wa as we,Xc as se,Zc as y,_a as I,cc as X,ed as h,f as Oe,ge as ce,hc as b,hd as l,ld as G,le as ie,mc as ne,md as J,me as d,nc as ae,nd as Y,ne as V,r as ye,rd as ge,sa as ke,td as x,ue as q,wd as m,xa as wt,xd as w,yd as T,zc as Ie,zd as _e}from"./chunk-7DV7UWC6.js";import"./chunk-XS7UEPGF.js";import{a as me,b as pe,n as A}from"./chunk-IP4IO47A.js";M();M();M();M();var ut=()=>["grey-100"],gt=(()=>{class t{constructor(){this._configService=u(S),this.questionId=d(()=>this._configService.unEditorConfig().sourceId),this.viewport=d(()=>this._configService.viewport()),this.timer="00:00:00",this.secondsElapsed=0,this.timerAction="play",this.onBeforeUnload=()=>{this.pauseTimer()};let e=null;V(()=>{let n=this.questionId();e!==null&&(n===e?this.pauseTimer():(this.saveTimerToStorage(e),this.timerAction="play",clearInterval(this.intervalId),this.secondsElapsed=0,this.timer="00:00:00",this.loadTimerFromStorage())),e=n})}ngOnInit(){this.loadTimerFromStorage(),window.addEventListener("beforeunload",this.onBeforeUnload)}playPauseTimer(){this.timerAction==="pause"?this.pauseTimer():this.startTimer()}resetTimer(){this.timerAction="play",clearInterval(this.intervalId),this.secondsElapsed=0,this.timer="00:00:00",this.saveTimerToStorage()}startTimer(){this.timerAction="pause",this.intervalId=setInterval(()=>{this.secondsElapsed++,this.timer=this.formatTime(this.secondsElapsed)},1e3)}pauseTimer(){this.timerAction="play",clearInterval(this.intervalId),this.saveTimerToStorage()}formatTime(e){let n=Math.floor(e/3600).toString().padStart(2,"0"),o=Math.floor(e%3600/60).toString().padStart(2,"0"),s=(e%60).toString().padStart(2,"0");return`${n}:${o}:${s}`}loadTimerFromStorage(){let e=localStorage.getItem("code_timer");if(e)try{let o=JSON.parse(e)[this.questionId()];if(!o)return;let s="00:00:00";o.startsWith("code_timer")?s=o.split(",")[1]??"00:00:00":s=o,this.timer=s,this.secondsElapsed=this.parseTime(s)}catch(n){console.error("Failed to parse code_timer from localStorage",n)}}saveTimerToStorage(e=this.questionId()){let n=localStorage.getItem("code_timer"),o={};try{o=n?JSON.parse(n):{}}catch{o={}}o[e]=this.timer,localStorage.setItem("code_timer",JSON.stringify(o))}parseTime(e){let[n="0",o="0",s="0"]=e.split(":");return+n*3600+ +o*60+ +s}ngOnDestroy(){this.pauseTimer(),window.removeEventListener("beforeunload",this.onBeforeUnload)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-timer"]],decls:7,vars:11,consts:[[1,"un-component-group"],["unButton","","unButtonFlat","",1,"timer_btn",3,"click","unButtonSmall"],[1,"align-center","gap4","timer-content"],[3,"icon","size","color"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"button",1),h("click",function(){return o.playPauseTimer()}),r(2,"span",2),g(3,"un-icon",3),m(4),a()(),r(5,"button",1),h("click",function(){return o.resetTimer()}
1),g(6,"un-icon",3),a()()),n&2&&(i(),p("unButtonSmall",o.viewport()=="mobile"),i(2),p("icon",o.timerAction=="pause"?"pause_2.svg":"play_circle.svg")("size",20)("color",f(9,ut)),i(),T(" ",o.timer," "),i(),p("unButtonSmall",o.viewport()=="mobile"),i(),p("icon","restore.svg")("size",24)("color",f(10,ut)))},dependencies:[B,F,k,E],styles:[`.timer_btn{position:relative;background-color:var(--editor-button-bg, var(--primary-1200))!important;color:var(--editor-text-primary, var(--grey-00))}.timer_btn:first-of-type{border-right:1px solid var(--editor-table-border)!important}.timer_btn:hover{background-color:var(--editor-button-bg, var(--primary-1200))!important}.timer_btn .btn-content{position:relative!important;overflow:hidden!important;cursor:pointer}.timer_btn .btn-content:after{content:"";position:absolute;pointer-events:none;z-index:0}.timer_btn .btn-content>*{position:relative;z-index:1}.timer_btn .btn-content:after{top:0;left:0;width:0;height:100%;background:var(--editor-button-bg-hover, rgba(0, 0, 0, .5));transform:none;transition:width .4s ease}.timer_btn .btn-content:hover:after{width:100%}.timer_btn .un-icon-container{position:relative!important;overflow:hidden!important;cursor:pointer;border-left-color:var(--editor-button-border, var(--grey-900))!important}.timer_btn .un-icon-container:after{content:"";position:absolute;pointer-events:none;z-index:0}.timer_btn .un-icon-container>*{position:relative;z-index:1}.timer_btn .un-icon-container un-icon{transition:none}.timer_btn .un-icon-container:after{top:50%;left:50%;width:0;height:0;background:var(--editor-button-bg-hover, rgba(0, 0, 0, .5));border-radius:50%;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease,opacity .4s ease;opacity:0}.timer_btn .un-icon-container:hover un-icon{transition:transform .4s ease-in;transform:rotate(180deg)}.timer_btn .un-icon-container:hover:after{width:200%;height:200%;opacity:1}.timer_btn .icon{background-color:var(--editor-text-primary)!important}.timer-content{min-width:84px}@media screen and (max-width: 767px){.timer-content{min-width:64px}} 2`,`.un-component-group{display:flex;flex-direction:row;gap:0}.un-component-group>*:first-child{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0px!important}.un-component-group>*:not(:first-child){border-left:1px solid}.un-component-group>*:not(:first-child):not(:last-child){border-left:0px!important;border-right:0px!important;border-radius:0!important}.un-component-group>*:last-child{border-top-left-radius:0!important;border-bottom-left-radius:0!important} 3`],encapsulation:2})}}return t})();M();wt();M();var _t=(()=>{class t{constructor(){this._configService=u(S),this.watchlistService=u(it),this.toastService=u($e),this.gtmService=u(ot),this._codeEditorService=u(N),this.localStorageService=u(je),this.destroy$=new Oe,this.mode=d(()=>this._configService.mode()),this.bookmarkedQuestions=I([]),this.problemStatement=d(()=>this._codeEditorService.problemStatement()),this.currentQuestionId=d(()=>this.problemStatement()?.id??null),this.isBookmarked=d(()=>!!this.currentQuestionId()&&this.bookmarkedQuestions().includes(this.currentQuestionId())),this.iconBgColor=d(()=>this._configService.iconBgColor()),this.iconColor=d(()=>{let e=this.mode()==="dark",n=this.isBookmarked();return e?n?["secondary-700"]:["grey-100"]:n?["secondary-800"]:["grey-1100"]}),this.tooltipText=d(()=>(this._configService.viewport()=="desktop"?this.isBookmarked()?"Remove Bookmark":"Add Bookmark":"")||"")}ngOnInit(){this.getStarredQuestions()}getStarredQuestions(){let e=this.localStorageService.getItem("userWatchList"),o=(e?JSON.parse(e):null)?.codeQuestion||[];this.bookmarkedQuestions.set(o),this.localStorageService.changes.pipe(Ee(s=>s.key==="userWatchList"),ke(this.destroy$)).subscribe(({value:s})=>{let Q=(s?JSON.parse(s):null)?.codeQuestion||[];this.bookmarkedQuestions.set(Q),console.log("Updated Code Questions:",Q)})}toggleBookmarkQuestion(){let e=this.problemStatement();if(!e?.id)return;let n=e.id,o=s=>v=>{let Q=s==="add"?"add to":"remove from";return this.toastService.toast(`Failed to ${Q} Bookmarked Questions`,2e3,"red"),ye(null)};this.isBookmarked()?this.watchlistService.removeFromStarredQuestions(n).pipe(ue(o("remove"))).subscribe(s=>{s?.status&&(this.toastService.toast("Removed from Bookmarked Questions",2e3,"red"),this.watchlistService.removeFromLocal(n,"codeQuestion"))}):this.watchlistService.addToStarredQuestions(n).pipe(ue(o("add"))).subscribe(s=>{if(s?.status){this.toastService.toast("Added to Bookmarked Questions",2e3,"green"),this.watchlistService.addIntoLocal(n,"codeQuestion");let v={question_id:n,question_title:e.name,question_tags:e.tags?.map(Q=>Q.name).join(","),directed_from:"code_editor"};this.moEngageEvent("Star_Question_Clicked",v)}})}moEngageEvent(e,n){this.gtmService.customEvent(e,n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-question-bookmark"]
3],decls:1,vars:8,consts:[["asBtn","","rounded","sm",3,"click","unTooltip","tooltipBgColor","tooltipTextColor","icon","color","bg","bgSize","size"]],template:function(n,o){n&1&&(r(0,"un-icon",0),h("click",function(){return o.toggleBookmarkQuestion()}),a()),n&2&&p("unTooltip",o.tooltipText())("tooltipBgColor",o.mode()==="light"?"grey-1100":"grey-00")("tooltipTextColor",o.mode()==="light"?"grey-00":"grey-1100")("icon",o.isBookmarked()?"bookmark_filled.svg":"bookmark.svg")("color",o.iconColor())("bg",o.iconBgColor())("bgSize",32)("size",20)},dependencies:[k,E,$,L],encapsulation:2})}}return t})();M();M();var Ct=(t,c)=>c.id;function Tt(t,c){if(t&1){let e=y();r(0,"button",4),h("click",function(){P(e);let o=l();return O(o.requestFeature())}),m(1," Request a feature "),a()}}function It(t,c){if(t&1){let e=y();r(0,"un-icon",6),h("click",function(){let o=P(e).$implicit;return O(o.action())}),a()}if(t&2){let e=c.$implicit,n=l(2);p("id",e.id)("color",n.iconColor())("bg",n.iconBgColor())("bgSize",40)("size",20)("icon",e.icon)("unTooltip",e.tooltip)("tooltipBgColor",n.mode()==="light"?"grey-1100":"grey-00")("tooltipTextColor",n.mode()==="light"?"grey-00":"grey-1100")}}function zt(t,c){if(t&1&&z(0,It,1,9,"un-icon",5,Ct),t&2){let e=l();D(e.actionButtons())}}function Dt(t,c){if(t&1){let e=y();r(0,"un-dropdown-item",9),h("click",function(){P(e);let o=l().$implicit;return O(o.action())}),m(1),a()}if(t&2){let e=l().$implicit;p("iconLeft",e.icon),i(),T(" ",e.tooltip," ")}}function Bt(t,c){if(t&1&&_(0,Dt,2,2,"un-dropdown-item",8),t&2){let e=c.$implicit;C(e.id!="help_question"?0:-1)}}function Nt(t,c){if(t&1&&(r(0,"un-dropdown",3),g(1,"un-icon",7),r(2,"un-dropdown-select"),z(3,Bt,1,1,null,null,Ct),a()()),t&2){let e=l();p("width",212),i(),p("icon","3-dot-vertical.svg")("bgSize",40)("size",20)("color",e.iconColor())("bg",e.iconBgColor()),i(2),D(e.actionButtons())}}var ht=(()=>{class t{constructor(){this._configService=u(S),this._interactionService=u(te),this.vcr=u(X),this.iconColor=d(()=>this._configService.iconColor()),this.iconBgColor=d(()=>this._configService.iconBgColor()),this.mode=d(()=>this._configService.mode()),this.viewport=d(()=>this._configService.viewport()),this.toolTipInitiator=new W,this.actionButtons=d(()=>{let e=this.mode()==="light",n=this._configService.editorType();return[{id:"information",icon:"bulb.svg",tooltip:"Information",action:()=>this.openShortcutGuideline()},{id:"bug_report",icon:"bug_report.svg",tooltip:"Report a bug",action:()=>this.reportBug()},{id:"color-theme-toggle",icon:e?"dark_mode.svg":"light_mode.svg",tooltip:e?"Switch to Dark mode":"Switch to Light mode",action:()=>e?this.updateTheme(n=="monaco"?"vs-dark":"github_dark"):this.updateTheme(n=="monaco"?"vs":"github")},{id:"help_question",icon:"help-question.svg",tooltip:"How it Works",action:()=>this.toolTipInitiator.emit()},{id:"setting",icon:"setting.svg",tooltip:"Settings",action:()=>this.openSetting()}]})}updateTheme(e){console.log(this.mode()),this._configService.setTheme(e)}requestFeature(){this._interactionService.emit("requestFeature")}reportBug(){this._interactionService.emit("bugReport")}openSetting(){return A(this,null,function*(){let{CodeEditorSettingsComponent:e}=yield import("./chunk-GHBRO5ZK.js"),n=this.vcr.createComponent(e),o=n.instance.closeModal.subscribe(s=>{o.unsubscribe(),n.destroy()})})}openShortcutGuideline(){return A(this,null,function*(){let{ShortcutGuideLinesComponent:e}=yield import("./chunk-EWMEI6IX.js"),n=this.vcr.createComponent(e);n.instance.mode=this.mode();let o=n.instance.closeModal.subscribe(s=>{o.unsubscribe(),n.destroy()})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["editor-quick-action-btns"]],outputs:{toolTipInitiator:"toolTipInitiator"},decls:5,vars:2,consts:[[1,"align-center","gap8"],["unButtonFlat","",1,"editor-btn"],[1,"align-center"],[3,"width"],["unButtonFlat","",1,"editor-btn",3,"click"],["asBtn","","rounded","sm",3,"id","color","bg","bgSize","size","icon","unTooltip","tooltipBgColor","tooltipTextColor"],["asBtn","","rounded","sm",3,"click","id","color","bg","bgSize","size","icon","unTooltip","tooltipBgColor","tooltipTextColor"],["rounded","sm",3,"icon","bgSize","size","color","bg"],[3,"iconLeft"],[3,"click","iconLeft"]],template:function(n,o){n&1&&(r(0,"div",0),_(1,Tt,2,0,"button",1),r(2,"div",2),_(3,zt,2,0)(4,Nt,5,6,"un-dropdown",3),a()()),n&2&&(i(),C(o.viewport()=="desktop"?1:-1),i(2),C(o.viewport()=="desktop"?3:4))},dependencies:[k,E,$,L,B,F,ct,st,rt,at],styles:["[_nghost-%COMP%]{display:block;height:100%}button.editor-btn[_ngcontent-%COMP%]:hover{background-color:var(--editor-button-bg)}"]})}}return t})();M();M();var At=(t,c)=>c==null?null:c.id,Ft=(t,c)=>c.id;function Rt(t,c){if(t&1){let e=y();r(0,"li",16),h("click",function(){let o=P(e).$index,s=l().$implicit,v=l(2);return O(v.selectModuleAndQuestion(s.id,o))}),r(1,"span"),m(2),a(),r(3,"small"),m(4),a()()}if(t&2){let e,n=c.$implicit,o=c.$index,s=l().$implicit,v=l(2);
3x("active",s.id===((e=v.currentModule())==null?null:e.id)&&o===v.currentQuestionIndex()),i(2),_e("",o+1,". ",n.name),i(2),w(n.difficulty)}}function Qt(t,c){if(t&1){let e=y();r(0,"li",10)(1,"div",11),h("click",function(){let o=P(e).$implicit,s=l(2);return O(s.toggleModule(o.id))}),r(2,"span",12),m(3),a(),g(4,"un-icon",13),a(),r(5,"div",14)(6,"ul"),z(7,Rt,5,5,"li",15,Ft),a()()()}if(t&2){let e=c.$implicit,n=l(2);x("open",n.openModules().has(e==null?null:e.id)),p("id","module-"+(e==null?null:e.id)),i(3),w(e.title),i(),p("icon","chevron_down.svg")("color",n.iconColor())("size",16),i(3),D(e.questions)}}function Vt(t,c){if(t&1){let e=y();r(0,"un-modal",6),h("closeModal",function(){P(e);let o=l();return O(o.closeModal())}),r(1,"un-modal-header")(2,"h2"),m(3,"Questions"),a(),r(4,"span",7),h("click",function(){P(e);let o=l();return O(o.closeModal())}),m(5," close "),a()(),r(6,"un-modal-content")(7,"ul",8),z(8,Qt,9,7,"li",9,At),a()()()}if(t&2){let e=l();p("size","sm")("position","left")("mobileSlide","right")("fontColor","blue_color"),i(),x("light-theme",e.mode()=="light"),i(5),x("light-theme",e.mode()=="light"),i(2),D(e.modules())}}var ft=(()=>{class t{constructor(){this._configService=u(S),this._apiService=u(mt),this._route=u(Le),this._router=u(de),this.iconColor=d(()=>this._configService.iconColor()),this.iconBgColor=d(()=>this._configService.iconBgColor()),this.mode=d(()=>this._configService.mode()),this.showAllQuestion=I(!1),this.challange=I(null),this.currentModuleIndex=I(0),this.currentQuestionIndex=I(0),this.openModules=I(new Set),this.modules=d(()=>this.challange()?.modules??[]),this.currentModule=d(()=>this.modules()[this.currentModuleIndex()]??null),this.currentQuestion=d(()=>this.currentModule()?.questions[this.currentQuestionIndex()]??null)}ngOnInit(){let e=Number(this._route.snapshot.paramMap.get("questionId")),n=Number(this._route.snapshot.queryParamMap.get("moduleId"));this._apiService.userChallengeListWithProgress().subscribe(o=>{this.challange.set(o.data);let s=this.modules().findIndex(v=>v.id===n);if(s!==-1){this.currentModuleIndex.set(s);let v=new Set(this.openModules());v.add(this.modules()[s].id),this.openModules.set(v);let Q=this.modules()[s].questions.findIndex(K=>K.id===e);Q!==-1&&this.currentQuestionIndex.set(Q)}})}scrollToModule(e){let n=document.getElementById(`module-${e}`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})}updateRoute(){let e=this.currentModule(),n=this.currentQuestion();e&&n&&this._router.navigate(["/code2/challenge-assessment",n.id],{queryParams:{moduleId:e.id}})}nextQuestion(){let e=this.currentModule();e&&(this.currentQuestionIndex()<e.questions.length-1?this.currentQuestionIndex.update(n=>n+1):this.currentModuleIndex()<this.modules().length-1&&(this.currentModuleIndex.update(n=>n+1),this.currentQuestionIndex.set(0)),this.updateRoute())}prevQuestion(){if(this.currentQuestionIndex()>0)this.currentQuestionIndex.update(e=>e-1);else if(this.currentModuleIndex()>0){this.currentModuleIndex.update(n=>n-1);let e=this.modules()[this.currentModuleIndex()];this.currentQuestionIndex.set(e.questions.length-1)}this.updateRoute()}shuffle(){let e=Math.floor(Math.random()*this.modules().length),n=Math.floor(Math.random()*this.modules()[e].questions.length);this.currentModuleIndex.set(e),this.currentQuestionIndex.set(n),this.updateRoute()}openModal(){this.showAllQuestion.set(!0),setTimeout(()=>{this.scrollToModule(this.currentModule()?.id)},100)}closeModal(){this.showAllQuestion.set(!1)}selectModuleAndQuestion(e,n){let o=this.modules().findIndex(s=>s.id===e);o!==-1&&(this.currentModuleIndex.set(o),this.currentQuestionIndex.set(n),this.showAllQuestion.set(!1),this.updateRoute())}toggleModule(e){let n=new Set(this.openModules());n.has(e)?n.delete(e):n.add(e),this.openModules.set(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["challenge-assessment-navigation"]],decls:10,vars:14,consts:[[1,"cursor",3,"click"],[1,"vertical-line"],[1,"align-center","gap6"],[1,"align-center"],["asBtn","","rounded","sm",3,"click","icon","color","bg","bgSize","size"],[3,"size","position","mobileSlide","fontColor"],[3,"closeModal","size","position","mobileSlide","fontColor"],[1,"close","material-icons",3,"click"],[1,"module-list"],[1,"accordion",3,"open","id"],[1,"accordion",3,"id"],[1,"label",3,"click"],[1,"label-title"],[3,"icon","color","size"],[1,"accordion-content"],[1,"question-item",3,"active"],[1,"question-item",3,"click"]],template:function(n,o){if(n&1&&(r(0,"span",0),h("click",function(){return o.openModal()}),m(1),a(),g(2,"span",1),r(3,"div",2)(4,"div",0),h("click",function(){return o.openModal()}),m(5),a(),r(6,"div",3)(7,"un-icon",4),h("click",function(){return o.prevQuestion()}),a(),r(8,"un-icon",4),h("click",function(){return o.nextQuestion()}),a()()(),_(9,Vt,10,8,"un-modal",5)),n&2){let s,v;
3i(),w((s=o.currentModule())==null?null:s.title),i(4),_e(" ",o.currentQuestionIndex()+1,"/",(v=o.currentModule())==null?null:v.questions.length," "),i(2),p("icon","chevron_left.svg")("color",o.iconColor())("bg",o.iconBgColor())("bgSize",32)("size",20),i(),p("icon","chevron_right.svg")("color",o.iconColor())("bg",o.iconBgColor())("bgSize",32)("size",20),i(),C(o.showAllQuestion()?9:-1)}},dependencies:[k,E,Ye,We,Ge,Je],styles:["un-modal-header[_ngcontent-%COMP%]:not(.light-theme){background:var(--grey-1100)}un-modal-header[_ngcontent-%COMP%]:not(.light-theme) .head{border-bottom:1px solid rgba(221,232,244,.2)}un-modal-header[_ngcontent-%COMP%]:not(.light-theme) h2[_ngcontent-%COMP%], un-modal-header[_ngcontent-%COMP%]:not(.light-theme) .close[_ngcontent-%COMP%]{color:var(--grey-00)}un-modal-header[_ngcontent-%COMP%]:not(.light-theme) .close[_ngcontent-%COMP%]:hover{background:#4e494e66}un-modal-content[_ngcontent-%COMP%]:not(.light-theme){background:var(--grey-1100)}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) .shortcuts-guide[_ngcontent-%COMP%]{color:var(--grey-00)}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) .shortcuts-guide[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--grey-00)}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) .shortcuts-guide[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#b0bfd2}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#b0bfd2}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--grey-00)}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) table[_ngcontent-%COMP%]{background:var(--grey-1100)}un-modal-content[_ngcontent-%COMP%]:not(.light-theme) table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], un-modal-content[_ngcontent-%COMP%]:not(.light-theme) table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-color:#b0bfd2;color:#b0bfd2}un-modal-footer[_ngcontent-%COMP%]:not(.light-theme){background:var(--grey-1100)}un-modal-footer[_ngcontent-%COMP%]:not(.light-theme) button.un-button[_ngcontent-%COMP%]{background-color:var(--grey-00);color:var(--grey-1100)}un-modal-footer[_ngcontent-%COMP%]:not(.light-theme) button.un-button[_ngcontent-%COMP%]:hover{background-color:var(--grey-100)}un-modal-footer[_ngcontent-%COMP%]:not(.light-theme) button.un-button-border[_ngcontent-%COMP%]{background-color:var(--transparent);color:var(--grey-100);border-color:var(--grey-700)}un-modal-footer[_ngcontent-%COMP%]:not(.light-theme) button.un-button-border[_ngcontent-%COMP%]:hover{background-color:var(--grey-1200)}","un-modal-content[_ngcontent-%COMP%]{--modal-box-bg: #1e1e1e;--modal-text-primary: #ffffff;--modal-button-bg: #2a2a2a;--modal-row-even-bg: #252525;--modal-row-hover: #333333;--modal-active-bg: #3a3a3a;--modal-row-divider: rgba(255, 255, 255, .08);--transparent: transparent}un-modal-content.light-theme[_ngcontent-%COMP%]{--modal-box-bg: #ffffff;--modal-text-primary: #1a1a1a;--modal-button-bg: #f4f4f4;--modal-row-even-bg: #f9f9f9;--modal-row-hover: #ececec;--modal-active-bg: #e0e0e0;--modal-row-divider: rgba(0, 0, 0, .08)}[_nghost-%COMP%]{display:flex;align-items:center;gap:10px;font-family:var(--font-family, sans-serif)}.module-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.accordion[_ngcontent-%COMP%]{margin-bottom:8px;border:1px solid var(--transparent);border-radius:8px;background:var(--modal-box-bg);overflow:hidden;transition:border-color .2s ease}.accordion.open[_ngcontent-%COMP%]{border-color:var(--modal-text-primary)}.accordion.open[_ngcontent-%COMP%] .accordion-content[_ngcontent-%COMP%]{grid-template-rows:1fr}.accordion.open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%] un-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}.label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;cursor:pointer;font-size:14px;color:var(--modal-text-primary);background:var(--modal-box-bg);transition:background .2s ease;-webkit-user-select:none;user-select:none}.label[_ngcontent-%COMP%]:hover{background-color:var(--modal-button-bg)}.label-title[_ngcontent-%COMP%]{flex:1;font-weight:500;text-transform:capitalize}.label[_ngcontent-%COMP%] un-icon[_ngcontent-%COMP%]{transition:transform .3s ease}.accordion-content[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .3s ease;background:var(--modal-bg-secondary)}.accordion-content[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;overflow:hidden}.question-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;font-size:13px;
3cursor:pointer;border-bottom:1px solid var(--modal-row-divider)}.question-item[_ngcontent-%COMP%]:nth-of-type(2n){background:var(--modal-row-even-bg)}.question-item[_ngcontent-%COMP%]:hover{background:var(--modal-row-hover)}.question-item.active[_ngcontent-%COMP%]{font-weight:700;background:var(--modal-active-bg, var(--modal-row-hover));border-left:3px solid var(--modal-text-primary)}.question-item[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;opacity:.7}"]})}}return t})();M();var Ut=(t,c)=>({"red-1000":t,"red-700":c}),vt=()=>["grey-00"],qt=()=>["primary-700"];function Lt(t,c){if(t&1&&g(0,"un-icon",8)(1,"span",9),t&2){let e=l();p("icon","unstop.svg")("color",e.mode()=="light"?f(3,qt):f(4,vt))("size",32)}}function $t(t,c){if(t&1&&(r(0,"h2",7),m(1),a()),t&2){let e,n=l(2);i(),T(" ",(e=n.problemStatement())==null?null:e.name," ")}}function jt(t,c){if(t&1){let e=y();r(0,"div",1)(1,"un-icon",10),h("click",function(){P(e);let o=l();return O(o.openQuestion())}),a(),_(2,$t,2,1,"h2",7),g(3,"app-question-bookmark"),a()}if(t&2){let e=l();i(),p("icon","sorts.svg")("unTooltip",e.viewport()=="desktop"?"Show more questions":"")("tooltipBgColor",e.mode()==="light"?"grey-1100":"grey-00")("tooltipTextColor",e.mode()==="light"?"grey-00":"grey-1100")("color",e.iconColor())("bg",e.iconBgColor())("bgSize",32)("size",20),i(),C(e.viewport()!=="mobile"?2:-1)}}function Ht(t,c){t&1&&g(0,"challenge-assessment-navigation",2)}function Wt(t,c){if(t&1&&(r(0,"h2",7),m(1),a()),t&2){let e,n=l(2);i(),T(" ",(e=n.problemStatement())==null?null:e.name," ")}}function Gt(t,c){if(t&1&&_(0,Wt,2,1,"h2",7),t&2){let e=l();C(e.viewport()!=="mobile"?0:-1)}}function Jt(t,c){t&1&&m(0," Exit ")}function Yt(t,c){if(t&1&&(r(0,"h2",7),m(1),a()),t&2){let e,n=l();i(),T(" ",(e=n.problemStatement())==null?null:e.name," ")}}var bt=(()=>{class t{constructor(){this._codeEditorService=u(N),this._configService=u(S),this.route=u(de),this.vcr=u(X),this.manageWalkthroughService=u(he),this.problemStatement=d(()=>this._codeEditorService.problemStatement()),this.viewport=d(()=>this._configService.viewport()),this.editorType=d(()=>this._configService.unEditorConfig().source),this.compiler_steps=[{element:"",content:{info:"Welcome! Let\u2019s take a quick walkthrough of the compiler."}},{element:"#color-theme-toggle",content:{info:"Switch between Dark and Light mode from here."},placement:"bottom"},{element:"#bug_report",content:{info:"Report a bug or issue from here."},placement:"bottom"},{element:"#language-ddl",content:{info:"Change your coding language from here."},placement:"bottom-end"},{element:"#more-problems",secondElement:"#more-problems-box",content:{info:"Pick more questions to practice from here."},placement:"right-start"}],this.mode=d(()=>this._configService.mode()),this.iconColor=d(()=>this._configService.iconColor()),this.iconBgColor=d(()=>this._configService.iconBgColor()),this.toolTipInitiator=new W}ngOnInit(){}openQuestion(){return A(this,null,function*(){let{ShowMoreQuestionComponent:e}=yield import("./chunk-2Z6TY3KU.js"),n=this.vcr.createComponent(e);n.instance.mode=this.mode();let o=n.instance.closeModal.subscribe(s=>{o.unsubscribe(),n.destroy()})})}navigateback(){this.route.navigateByUrl("/practice/coding")}handleToolTipInitiator(){this.manageWalkthroughService.globalBg=!0,this.manageWalkthroughService.darkMode=this.mode()=="dark",this.manageWalkthroughService.startTour(this.compiler_steps)}ngOnDestroy(){this.manageWalkthroughService.closeTour()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-header"]],features:[Re([he])],decls:13,vars:13,consts:[[1,"align-center","gap12","header_container_left"],["id","more-problems-box",1,"align-center","gap8","overflow-hidden"],["id","more-problems"],[1,"align-center","gap10"],[3,"toolTipInitiator"],["unButtonFlat","","unButtonIconRight","",1,"waves-effect","grey-00-text",3,"click","unButtonSmall","ngClass"],[3,"icon","size","color"],[1,"name"],[3,"icon","color","size"],[1,"vertical-line"],["id","more-problems","asBtn","","rounded","sm",3,"click","icon","unTooltip","tooltipBgColor","tooltipTextColor","color","bg","bgSize","size"]],template:function(n,o){if(n&1&&(r(0,"header")(1,"div",0),_(2,Lt,2,5),_(3,jt,4,9,"div",1)(4,Ht,1,0,"challenge-assessment-navigation",2)(5,Gt,1,1),a(),r(6,"div",3)(7,"editor-quick-action-btns",4),h("toolTipInitiator",function(){return o.handleToolTipInitiator()}),a(),g(8,"app-code-editor-timer"),r(9,"button",5),h("click",function(){return o.navigateback()}),_(10,Jt,1,0),g(11,"un-icon",6),a()(),_(12,Yt,2,1,"h2",7),a()),n&2){let s;i(2),C(o.viewport()=="desktop"?2:-1),i(),C((s=o.editorType())==="practice"?3:s==="challenge-assessment"?4:5),i(6),p("un
3ButtonSmall",o.viewport()=="mobile")("ngClass",Qe(9,Ut,o.mode()=="dark",o.mode()=="light")),i(),C(o.viewport()=="desktop"?10:-1),i(),p("icon","login.svg")("size",24)("color",f(12,vt)),i(),C(o.viewport()=="mobile"?12:-1)}},dependencies:[Ue,gt,_t,ht,ft,$,L,B,F,k,E],styles:["[_nghost-%COMP%]{display:block;padding:16px;color:var(--editor-text-primary)}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;flex-wrap:wrap;row-gap:4px}[_nghost-%COMP%] header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .header_container_left[_ngcontent-%COMP%]{max-width:50%}.name[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:500;color:var(--editor-text-primary);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vertical-line[_ngcontent-%COMP%]{height:20px;width:1px;background-color:var(--editor-text-primary);opacity:50%}button[_ngcontent-%COMP%]{color:var(--editor-text-primary)}","*[wt-highlight-new=true]{position:relative;z-index:99999!important;background-color:var(--grey-00);border-radius:16px!important;overflow:hidden;animation:_ngcontent-%COMP%_breathing .7s infinite alternate!important;pointer-events:none!important} *[wt-highlight-bg-dark=true]{background-color:transparent} *[wt-no-sticky=true]{position:static!important;overflow:unset}@keyframes _ngcontent-%COMP%_breathing{0%{box-shadow:0 0 0 2px var(--grey-00),0 0 0 5px var(--blue-700),0 0 0 5px #0073e666}to{box-shadow:0 0 0 2px var(--grey-00),0 0 0 5px var(--blue-700),0 0 0 12px #0073e666}}"]})}}return t})();M();M();var xe=()=>["secondary-700"],Me=()=>["blue-700"],xt=()=>["grey-00"],Mt=()=>["grey-1100"];function Kt(t,c){t&1&&m(0,"TestCase")}function Xt(t,c){t&1&&m(0,"Custom Test")}function Zt(t,c){if(t&1){let e=y();r(0,"button",3),h("click",function(){P(e);let o=l();return O(o.handleTab("submission"))}),m(1," Submissions "),g(2,"un-icon",4),a()}if(t&2){let e=l();x("lightActive",e.activeTab()==="submission"&&e.mode()!=="dark")("darkActive",e.activeTab()==="submission"&&e.mode()==="dark"),i(2),p("icon","checklist.svg")("size",24)("color",e.mode()==="dark"?f(7,xe):f(8,Me))}}var St=(()=>{class t{constructor(){this._configService=u(S),this._codeEditorService=u(N),this._compilerService=u(U),this._interactionService=u(te),this.executionPanelOpen=this._codeEditorService.executionPanelOpen,this.activeTab=d(()=>this._compilerService.currentExecutionPanel()),this.constestID=d(()=>this._configService.unEditorConfig().sourceId),this.directedFrom=d(()=>this._configService.unEditorConfig().source),this.showSubmission=d(()=>this._configService.unEditorConfig().showSubmission),this.viewport=d(()=>this._configService.viewport()),this.mode=d(()=>this._configService.mode()),this.iconColor=d(()=>this._configService.iconColor()),this.iconBgColor=d(()=>this._configService.iconBgColor()),this.expandStateTootip=d(()=>this.viewport()=="desktop"?this.executionPanelOpen()?"Collapse view":"Expand view":""),this.apiUrl="",this.entiyID=0,this.getCompilerResponseApiCallDuration=0}ngOnInit(){}toggleExecPanel(){this._codeEditorService.toggleExecutionPanel()}openExecPanel(){this._codeEditorService.openExecutionPanel()}compile(){this._compilerService.setIsSubmission(!1),this._codeEditorService.openExecutionPanel();let e={source:this._codeEditorService.code(),lang:this._configService.currentLanguageObj().hr_code,testcases:[]};this._codeEditorService?.problemStatement()?.sample_testcases?.length&&(e.testcases=this._codeEditorService.problemStatement().sample_testcases.map(n=>n.input)),this.handleTab("testcases"),this._codeEditorService?.problemStatement()?.sample_testcases?.length&&(e.testcases=this._codeEditorService.problemStatement().sample_testcases.map(n=>n.input)),this._compilerService.testCompile(e),this._interactionService.emit("compile")}handleTab(e){this._compilerService.setCurrentExecutionPanel(e),this.openExecPanel()}submitCode(){this._codeEditorService.setSubmissionTestCases(null),this.getCompilerResponseApiCallDuration=0,this._compilerService.setIsSubmission(!0),this._compilerService.setIsSubmissionCompiling(!0),this.handleTab("testcases"),this.fetchSub
3scription&&this.fetchSubscription.unsubscribe(),this.apiUrl="/api/code/competition/"+this.constestID()+"/submit-question/"+this.entiyID+"/"+this.directedFrom();let e={source:this._codeEditorService.code(),lang:this._configService.currentLanguageObj().hr_code,assesment_module_id:0},n="/api/code/competition/"+this.constestID()+"/submit-question/"+this.entiyID+"/"+this.directedFrom();this._compilerService.submitCode("practice",n,e),this._interactionService.emit("submission")}viewSubmissions(){this._compilerService.getCompetitionSubmissions(this.entiyID,this.constestID(),0).subscribe(n=>{n.data&&this._codeEditorService.setUserSubmissions(n)}),this.handleTab("submission")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-execution-bar"]],decls:18,vars:47,consts:[[1,"d-flex","flex-column","full-height"],[1,"exec-bar"],[1,"leftRight"],["unButton","","unButtonFlat","",3,"click"],[3,"icon","size","color"],["unButton","","unButtonFlat","",3,"lightActive","darkActive"],["asBtn","",3,"click","icon","size","unTooltip","tooltipPosition","tooltipBgColor","tooltipTextColor","bgSize","rounded","color","bg"],["unButton","","unButtonFlat","",1,"blue-100",3,"click"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),h("click",function(){return o.handleTab("testcases")}),_(4,Kt,1,0),g(5,"un-icon",4),a(),r(6,"button",3),h("click",function(){return o.handleTab("customtest")}),_(7,Xt,1,0),g(8,"un-icon",4),a(),_(9,Zt,3,9,"button",5),a(),r(10,"div",2)(11,"un-icon",6),h("click",function(){return o.toggleExecPanel()}),a(),r(12,"button",7),h("click",function(){return o.compile()}),m(13," Run "),g(14,"un-icon",4),a(),r(15,"button",7),h("click",function(){return o.submitCode()}),m(16," Submit "),g(17,"un-icon",4),a()()()()),n&2&&(i(),x("dark-theme",o.mode()==="dark"),i(2),x("lightActive",o.activeTab()==="testcases"&&o.mode()!=="dark")("darkActive",o.activeTab()==="testcases"&&o.mode()==="dark"),i(),C(o.viewport()=="desktop"?4:-1),i(),p("icon","tick_underscore.svg")("size",24)("color",o.mode()==="dark"?f(39,xe):f(40,Me)),i(),x("lightActive",o.activeTab()==="customtest"&&o.mode()!=="dark")("darkActive",o.activeTab()==="customtest"&&o.mode()==="dark"),i(),C(o.viewport()=="desktop"?7:-1),i(),p("icon","folder_edit.svg")("size",24)("color",o.mode()==="dark"?f(41,xe):f(42,Me)),i(),C(o.showSubmission?-1:9),i(2),p("icon",o.executionPanelOpen()?"chevron_down.svg":"chevron_up.svg")("size",20)("unTooltip",o.expandStateTootip())("tooltipPosition","top")("tooltipBgColor",o.mode()==="light"?"grey-1100":"grey-00")("tooltipTextColor",o.mode()==="light"?"grey-00":"grey-1100")("bgSize",32)("rounded","sm")("color",o.iconColor())("bg",o.iconBgColor()),i(),x("dark-run",o.mode()==="dark"),i(2),p("icon","play_arrow_stroked.svg")("size",24)("color",o.mode()==="dark"?f(43,xt):f(44,Mt)),i(),x("green-1000",o.mode()==="dark"),i(2),p("icon","upload_1.svg")("size",24)("color",o.mode()==="dark"?f(45,xt):f(46,Mt)))},dependencies:[B,F,k,E,$,L],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--editor-button-bg-hover)}.exec-bar[_ngcontent-%COMP%]{background:var(--grey-00);display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:10px}.exec-bar[_ngcontent-%COMP%] .leftRight[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.dark-theme[_ngcontent-%COMP%]{background:#0006}.dark-theme[_ngcontent-%COMP%] .leftRight[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-run[_ngcontent-%COMP%]{background:#ffffff0f!important}.lightActive[_ngcontent-%COMP%]{background:#0000000f!important}.darkActive[_ngcontent-%COMP%]{background:#ffffff1a!important}"]})}}return t})();M();M();M();M();var en=()=>["red-700"],tn=()=>["green-800"];function nn(t,c){if(t&1&&g(0,"un-icon",9),t&2){let e=l().$implicit;p("icon",(e==null||e.testcase==null?null:e.testcase.output)!==(e==null?null:e.stdout)?"close.svg":"check.svg")("size",16)("color",(e==null||e.testcase==null?null:e.testcase.output)!==(e==null?null:e.stdout)?f(3,en):f(4,tn))}}function on(t,c){if(t&1){let e=y();r(0,"div",8),h("click",function(){let o=P(e).$index,s=l(3);return O(s.setActive(o))}),_(1,nn,1,5,"un-icon",9),r(2,"p"),m(3),a()()}if(t&2){let e=c.$implicit,n=c.$index,o=l(3);x("activeTestCase",o.activeTestCase()===n),i(),C(!(e==null||e.stderr==null)&&e.stderr.length?-1:1),i(2),T("Case ",n+1)}}function rn(t,c){if(t&1&&(r(0,"div",2),z(1,on,4,4,"div",7,oe),a()),t&2){let e=l(2);i(),D(e.sanitizedTestCases())}}function an(t,c){if(t&1&&(r(0,"div",4)(1,"p"),m(2,"Error"),a(),r(3,"div",10)(4,"pre"),m(5),a()()()),t&2){let e,n=l(2);i(5),w((e=n.activeTestCaseValue())==null?null:e.stderr)}}function sn(t,c){t&1&&(r(0,"p",11),m(1,"Compile Success"),a())}function cn(t,c){t&1&&(r(0,"p",12),m(1,"Compile Failed"),a())}function dn(t,c){if(t&1&&(r(0,"div",5)(1,"p"),m(2,"Compile Message"),a(),r(3,"div",6),_(4,sn,2,0,"p",11)(5,cn,2,0,"p",12),a()()),t&2){let e,n=l(2);i(4),C(((e=n.activeTestCaseValue())==null?null:e.status)=="accepted"?4:5)}}function ln(t,c){t&1&&(r(0,"p",12),m(1,"Testcase Failed"),a())}function mn(t,c){t&1&&(r(0,"p",11),m(1,"Testcase Passed"),a())}function pn(t,c){if(t&1&&(r(0,"div",5)(1,"p"),m(2,"Compile Message"),a(),r(3,"div",6),_(4,ln,2,0,"p",12)(5,mn,2,0,"p",11),a()()),t&2){let e,n=l(2);i(4),C(((e=n.activeTestCaseValue())==null||e.testcase==null?null:e.testcase.output)!==((e=n.activeTestCaseValue())==null?null:e.stdout)?4:5)}}function un(t,c){if(t&1&&(r(0,"div",5)(1,"p"),m(2,"Expected Output"),a(),r(3,"div",6)(4,"pre"),m(5),a()()()),t&2){let e,n=l(2);i(5),w((e=n.activeTestCaseValue())==null||e.testcase==null?null:e.testcase.output)}}function gn(t,c){if(t&1&&(r(0,"div",1),_(1,rn,3,0,"div",2),r(2,"div",3),_(3,an,6,1,"div",4)(4,dn,6,1,"div",5)(5,pn,6,1,"div",5),r(6,"div",5)(7,"p"),m(8,"Input (stdin)"),a(),r(9,"div",6)(10,"pre"),m(11),a()()(),r(12,"div",5)(13,"p"),m(14,"Your Output (stdout)"),a(),r(15,"div",6)(16,"pre"),m(17),a()()(),_(18,un,6,1,"div",5),a()()),t&2){let e,n,o,s=l();x("dark-theme",s.mode()==="dark"),i(),C(s.sanitizedTestCases().length>1?1:-1),i(2),C(!((e=s.activeTestCaseValue())==null||e.stderr==null)&&e.stderr.length?3:s.customInput()?4:5),i(8),w((n=s.activeTestCaseValue())==null||n.testcase==null?null:n.testcase.input),i(6),w((o=s.activeTestCaseValue())==null?null:o.stdout),i(),C(s.customInput()?-1:18)}}var le=(()=>{class t{constructor(){this.testCases=q(),this.customInput=q(),this._configService=u(S),this.activeTestCase=I(0),this.mode=d(()=>this._configService.mode()),this.sanitizedTestCases=d(()=>this.testCases()?.map(e=>pe(me({},e),{stdout:this.sanitizeOutput(e.stdout),stderr:this.sanitizeOutput(e.stderr),testcase:pe(me({},e.testcase),{output:this.trimIfString(e.testcase?.output),input:this.trimIfString(e.testcase?.input)||this.customInput()})}))??[]),this.activeTestCaseValue=d(()=>this.sanitizedTestCases()?.[this.activeTestCase()]??null)}trimIfString(e){return typeof e=="string"?e.trim():e}sanitizeOutput(e){return typeof e=="string"?e.trim():Array.isArray(e)?e.filter(n=>n!==""):e}setActive(e){this.activeTestCase.set(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-test-case-result"]],inputs:{testCases:[1,"testCases"],customInput:[1,"customInput"]},decls:1,vars:1,consts:[[1,"test-cases",3,"dark-theme"],[1,"test-cases"],[1,"test-cases-header"],[1,"test-cases-main"],[1,"error-block"],[1,"io-block"],[1,"inputoutput"],[1,"tc",3,"activeTestCase"],[1,"tc",3,"click"],[3,"icon","size","color"],[1,"error-box"],[1,"green-700-text"],[1,"red-700-text"]],template:function(n,o){if(n&1&&_(0,gn,19,7,"div",0),n&2){let s;C((s=o.sanitizedTestCases())!=null&&s.length?0:-1)}},dependencies:[k,E],styles:[".test-cases[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin:-12px -12px 5px;padding:12px 6px;position:sticky;top:-12px;background-color:var(--editor-margin-color);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.test-cases[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%] .tc[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;padding:8.5px 8px;border-radius:8px;
3cursor:pointer}.test-cases[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%] .tc[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:400;color:var(--text-color)}.test-cases[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%] .activeTestCase[_ngcontent-%COMP%]{background:#0000000f}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .error-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:16px 0 8px;font-size:16px;font-weight:500;color:var(--text-color)}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .error-block[_ngcontent-%COMP%] .error-box[_ngcontent-%COMP%]{background:var(--red-100);padding:13px;color:var(--red-600);border-radius:8px}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{font-size:12px;white-space:pre-wrap}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%]{margin:10px 0}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px;font-size:16px;font-weight:500;color:var(--text-color)}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%] .inputoutput[_ngcontent-%COMP%]{background:var(--grey-50);color:var(--text-secondary);padding:12px;border-radius:8px}.test-cases[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%] .inputoutput[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:400}.dark-theme[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%] .tc[_ngcontent-%COMP%]{background:#ffffff1a;color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .test-cases-header[_ngcontent-%COMP%] .activeTestCase[_ngcontent-%COMP%]{background:#ffffff1a;border:2px solid var(--blue-500)}.dark-theme[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .error-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-tertiary)}.dark-theme[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .error-block[_ngcontent-%COMP%] .error-box[_ngcontent-%COMP%]{background:#e8907314;color:var(--red-600)}.dark-theme[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .test-cases-main[_ngcontent-%COMP%] .io-block[_ngcontent-%COMP%] .inputoutput[_ngcontent-%COMP%]{background:#ffffff1a;color:var(--text-tertiary)}"]})}}return t})();M();var _n=()=>["red-700"],Cn=()=>["primary-700"],hn=()=>["green-700"],fn=()=>["grey-00"],vn=(t,c)=>c.id;function bn(t,c){t&1&&g(0,"app-code-editor-loader",0),t&2&&p("text","Please wait! Perfect time for a quick sip of water!")}function xn(t,c){if(t&1&&(r(0,"div",3)(1,"div",4)(2,"div",5),g(3,"un-icon",6),a(),r(4,"p"),m(5),a()(),r(6,"div",7)(7,"p"),m(8),a()()()),t&2){let e=c.$implicit,n=c.$index,o=l(2);i(2),Z("data-status",e.status==1?"passed":e.status==-1?"compiling":"failed"),i(),p("bgSize",18)("bg",e.status==0?f(9,_n):e.status==-1?f(10,Cn):f(11,hn))("icon",e.status==0?"error-alert.svg":e.status==-1?"timer.svg":"check.svg")("size",12)("color",f(12,fn)),i(2),T("Testcase ",n+1),i(2),Z("data-status",e.status==1?"passed":e.status==-1?"compiling":"failed"),i(),T(" ",o.STATUS_LABELS[e.status]," ")}}function Mn(t,c){if(t&1&&(r(0,"div",1),z(1,xn,9,13,"div",3,vn),a()),t&2){let e=l();i(),D(e.submissionTestcases())}}function Sn(t,c){if(t&1&&g(0,"app-test-case-result",2),t&2){let e=l();p("testCases",e.testCases())}}var Pt=(()=>{class t{constructor(){this._codeEditorService=u(N),this._configService=u(S),this._compilerService=u(U),this.mode=d(()=>this._configService.mode()),this.isCompiling=d(()=>this._compilerService.isCompiling()),this.currentExecutionPanel=d(()=>this._compilerService.currentExecutionPanel()),this.compileResult=d(()=>this._codeEditorService.compiledResult()),this.isSubmission=d(()=>this._compilerService.isSubmission()),this.isSubmissionCompiling=d(()=>this._compilerService.isSubmissionCompiling()),this.submissionTestcases=d(()=>this._compilerService.submissionTestCases()),this.activeTestCase=I(0),this.testCases=d(()=>{let e=this.compileResult(),n=this._codeEditorService.problemStatement
3()?.sample_testcases;if(!e?.result)return[];let{stdout:o,stderr:s,time:v}=e.result;return o.map((Q,K)=>({stdout:Q,stderr:s[K]||"",stdmsg:s[K]?"":"Testcase Passed",time:v[K]||"",testcase:n[K]||{}}))}),this.STATUS_LABELS={[-1]:"Compiling",0:"Failed",1:"Passed"}}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-testcases"]],hostVars:1,hostBindings:function(n,o){n&2&&Z("data-empty",'Click "Run" to see the test case results here.')},decls:3,vars:1,consts:[[3,"text"],[1,"sr-main"],[3,"testCases"],[1,"sub-tcs"],[1,"stl"],[1,"tc-icon"],["asBtn","","rounded","full",3,"bgSize","bg","icon","size","color"],[1,"str"]],template:function(n,o){if(n&1&&_(0,bn,1,1,"app-code-editor-loader",0)(1,Mn,3,0,"div",1)(2,Sn,1,1,"app-test-case-result",2),n&2){let s;C(o.isCompiling()?0:(s=o.submissionTestcases())!=null&&s.length?1:(s=o.testCases())!=null&&s.length?2:-1)}},dependencies:[k,E,B,j,le,ee],styles:["[_nghost-%COMP%]{display:block;height:inherit}[_nghost-%COMP%]:empty{position:relative}[_nghost-%COMP%]:empty:after{content:attr(data-empty);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:large;color:var(--editor-text-secondary);text-shadow:1px 1px 2px var(--editor-margin-color);pointer-events:none;opacity:.4}.submission-result[_ngcontent-%COMP%] .sr-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:var(--editor-box-bg);padding:0 10px}.submission-result[_ngcontent-%COMP%] .sr-head[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--editor-text-primary)}.submission-result[_ngcontent-%COMP%] .sr-head[_ngcontent-%COMP%] .compiling[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.submission-result[_ngcontent-%COMP%] .sr-head[_ngcontent-%COMP%] .compiling[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--editor-text-primary)}.sr-main[_ngcontent-%COMP%]{padding:10px;display:flex;flex-direction:column;gap:10px}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background-color:var(--editor-box-bg);border-radius:8px}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%] .tc-icon[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;display:flex;justify-content:center;align-items:center}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%] .tc-icon[data-status=passed][_ngcontent-%COMP%]{background-color:var(--editor-success-bg)}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%] .tc-icon[data-status=failed][_ngcontent-%COMP%]{background-color:var(--editor-failed-bg)}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%] .tc-icon[data-status=compiling][_ngcontent-%COMP%]{background-color:var(--editor-progress-bg)}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .stl[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--editor-text-primary);font-weight:500}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .str[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:500;color:#fff;padding:2px 10px;border-radius:8px}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .str[_ngcontent-%COMP%] p[data-status=passed][_ngcontent-%COMP%]{background-color:var(--editor-success-btn-bg)}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .str[_ngcontent-%COMP%] p[data-status=failed][_ngcontent-%COMP%]{background-color:var(--editor-failed-btn-bg)}.sr-main[_ngcontent-%COMP%] .sub-tcs[_ngcontent-%COMP%] .str[_ngcontent-%COMP%] p[data-status=compiling][_ngcontent-%COMP%]{background-color:var(--editor-progress-btn-bg)}.loader-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.loader-container[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{width:120px;height:20px;background:linear-gradient(var(--grey-1300) 0 0) 0/0% no-repeat #ddd;animation:_ngcontent-%COMP%_l1 2s infinite linear}@keyframes _ngcontent-%COMP%_l1{to{background-size:100%}}
3.wave[_ngcontent-%COMP%]{height:10px;aspect-ratio:2.5;--_g: no-repeat radial-gradient(farthest-side, #000 90%, #0000);background:var(--_g),var(--_g),var(--_g),var(--_g);background-size:20% 50%;animation:_ngcontent-%COMP%_l43 1s infinite linear}@keyframes _ngcontent-%COMP%_l43{0%{background-position:0% 50%,33.3333333333% 50%,66.6666666667% 50%,100% 50%}16.67%{background-position:0% 0,33.3333333333% 50%,66.6666666667% 50%,100% 50%}33.33%{background-position:0% 100%,33.3333333333% 0,66.6666666667% 50%,100% 50%}50%{background-position:0% 50%,33.3333333333% 100%,66.6666666667% 0,100% 50%}66.67%{background-position:0% 50%,33.3333333333% 50%,66.6666666667% 100%,100% 0}83.33%{background-position:0% 50%,33.3333333333% 50%,66.6666666667% 50%,100% 100%}to{background-position:0% 50%,33.3333333333% 50%,66.6666666667% 50%,100% 50%}}"]})}}return t})();M();M();function Pn(t,c){t&1&&g(0,"app-code-editor-loader",4),t&2&&p("text","Please wait! Perfect time for a quick sip of water!")}function On(t,c){if(t&1&&g(0,"app-test-case-result",5),t&2){let e=l();p("testCases",e.customResult())("customInput",e.valueToTest)}}var Ot=(()=>{class t{constructor(){this._configService=u(S),this._codeEditorService=u(N),this._compilerService=u(U),this.customInputValue="",this.valueToTest="",this.customResult=d(()=>{let e=this._compilerService.customTestResult();return e?[e]:[]}),this.isCompiling=d(()=>this._compilerService.isCompiling())}ngOnInit(){}get mode(){return this._configService.mode()}handleCustomOutput(){this.valueToTest=this.customInputValue,this._codeEditorService.setCompiledResult({});let e={source:this._codeEditorService.code(),lang:this._configService.currentLanguageObj().hr_code,testcases:[]};e.testcases.push(this.customInputValue),this._compilerService.testCustom(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-custom-testcase"]],decls:7,vars:13,consts:[[1,"custom-testcase"],[1,"custom-input"],[3,"ngModelChange","type","fontSize","size","ngModel","placeholder","rows","cols"],["unButton","","unButtonFlat","","unButtonLarge","",1,"font-14","editor_btn",3,"click","disabled","unButtonLoading"],[3,"text"],[3,"testCases","customInput"]],template:function(n,o){n&1&&(r(0,"div",0)(1,"div",1)(2,"un-input",2),Ae("ngModelChange",function(v){return Ne(o.customInputValue,v)||(o.customInputValue=v),v}),a(),r(3,"button",3),h("click",function(){return o.handleCustomOutput()}),m(4," Run Custom Input "),a()(),_(5,Pn,1,1,"app-code-editor-loader",4)(6,On,1,2,"app-test-case-result",5),a()),n&2&&(x("dark-theme",o.mode==="dark"),i(2),p("placeholder",Fe("Write your custom input"))("type","textarea")("fontSize","default")("size","medium"),Be("ngModel",o.customInputValue),p("rows",2)("cols",void 0),i(),p("disabled",!o.customInputValue||o.isCompiling())("unButtonLoading",!1),i(2),C(o.isCompiling()?5:6))},dependencies:[B,F,tt,et,ee,Ze,Ke,Xe,le,j],styles:["[_nghost-%COMP%]{display:block}.custom-testcase[_ngcontent-%COMP%] .custom-input[_ngcontent-%COMP%]{margin-bottom:10px;display:flex;align-items:flex-start;gap:20px}.custom-testcase[_ngcontent-%COMP%] .custom-input[_ngcontent-%COMP%] un-input .input_box_container textarea{background:transparent!important}.dark-theme[_ngcontent-%COMP%] .custom-input[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--grey-00)}.dark-theme[_ngcontent-%COMP%] .custom-input[_ngcontent-%COMP%] un-input .input_box_container textarea{color:var(--grey-00)!important}.editor_btn[_ngcontent-%COMP%]{background-color:var(--editor-button-bg)}.editor_btn[_ngcontent-%COMP%]:hover{background-color:var(--editor-button-bg-hover)}.dark-cutom-run[_ngcontent-%COMP%]:not(:disabled){background:#ffffff0f!important}"]})}}return t})();M();M();var yn=["highlightCode"],Se=()=>["grey-00"],Pe=()=>["grey-800"],En=(t,c)=>c.id;function kn(t,c){if(t&1&&(r(0,"div",16)(1,"div",17),g(2,"un-icon",18),a(),r(3,"p"),m(4),a()()),t&2){let e,n=c.$implicit,o=c.$index,s=l(3);x("tc-failed",n.status!==1)("tc-passed",n.status===1),i(2),p("icon",!((e=s.particularSubmissiondata())==null||e.failed_testcase==null)&&e.failed_testcase.id?"close.svg":"check.svg")("size",12),i(2),T("Testcase ",o+1)}}function wn(t,c){if(t&1){let e=y();r(0,"div",8)(1,"div",9)(2,"h2"),m(3,"Code"),a(),r(4,"button",5),h("click",function(){P(e);let o=l(2);return O(o.setToCodeEditor())}),m(5," Copy to Editor "),g(6,"un-icon",6),a()(),r(7,"div",10)(8,"div",11)(9,"pre",null,0),m(11),a()(),g(12,"div",7),r(13,"div",12)(14,"p"),m(15),a()()()(),r(16,"div",13)(17,"h2"),m(18,"Result"),a(),r(19,"div",14),z(20,kn,5,7,"div",15,En),a()(),g(22,"div",7)}if(t&2){let e,n,o,s=l(2);i(6),p("icon","copy_black.svg")("size",24)("color",s.mode==="dark"?f(5,Se):f(6,Pe)),i(5),w((e=s.particularSubmissiondata())==null||e.submission==null?null:e.submission.source),i(4),T(" Executed in ",(n=s.particularSubmissiondata())==null||n.submission==null?null:n.submission.execution_time," "),i(5),D((o=s.particularSubmissiondata())==null?null:o.data)}}function Tn(t,c){t&1&&g(0,"app-code-editor-loader")}function In(t,c){if(t&1){let e=y();r(0,"div",1)(1,"div",3)(2,"un-icon",4),h("click",function(){P(e);let o=l();return O(o.toggleParticulatSubmissionModal())}),a(),r(3,"h2"),m(4),a(),r(5,"button",5),h("click",function(){P(e);let o=l();return O(o.viewSubmission())}),m(6," Refresh "),g(7,"un-icon",6),a()(),g(8,"div",7),_(9,wn,23,7)(10,Tn,1,0,"app-code-editor-loader"),a()}if(t&2){let e=l();i(2),p("icon","arrows_left.svg")("size",20)("color",e.mode==="dark"?f(8,Se):f(9,Pe)),i(2),w(e.selectedLanguage==null?null:e.selectedLanguage.name),i(3),p("icon","refresh.svg")("size",24)("color",e.mode==="dark"?f(10,Se):f(11,Pe)),i(2),C(e.particularSubmissiondata()?9:10)}}function zn(t,c){if(t&1&&(r(0,"th"),m(1),a()),t&2){let e=c.$implicit;i(),w(e)}}function Dn(t,c){if(t&1){let e=y();r(0,"tr",20),h("click",function(){let o=P(e).$implicit,s=l(3);return O(s.setSelectedSubmission(o))}),r(1,"td"),m(2),a(),r(3,"td"),m(4),a(),r(5,"td"),m(6),a(),r(7,"td"),m(8),a()()}if(t&2){let e=c.$implicit;i(2),w(e.langauge),i(2),w(e.testcasePassed),i(2),w(e.score),i(2),w(e.time)}}function Bn(t,c){if(t&1&&(r(0,"table")(1,"thead")(2,"tr"),z(3,zn,2,1,"th",null,oe),a()(),r(5,"tbody"),z(6,Dn,9,4,"tr",null,oe),a()()),t&2){let e=l(2);i(3),D(e.mySubmissioHeadings),i(3),D(e.tabledata)}}function Nn(t,c){t&1&&g(0,"app-code-editor-loader")}function An(t,c){if(t&1&&(r(0,"div",2)(1,"div",19),_(2,Bn,8,0,"table")(3,Nn,1,0,"app-code-editor-loader"),a()()),t&2){let e=l();i(2),C(e.userSubmission()?2:3)}}var yt=(()=>{class t{constructor(){this._configService=u(S),this._codeEditorService=u(N),this._compilerService=u(U),this._highlightService=u(lt),this.mySubmissioHeadings=["LANGUAGE","TESTCASE PASSED","SCORE","TIME"],this.userSubmission=d(()=>this._codeEditorService.userSubmissions()),this.tabledata=[],this.particularSubmissiondata=I({}),this.particularSubmissionModalOpen=!1,this.selectedSubmission=I({}),V(()=>this.userSubmission()&&this.setTableDataInfo())}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this._highlightService.highlightElement(this.highlightCode?.nativeElement)},500)}toggleParticulatSubmissionModal(){this.particularSubmissionModalOpen=!this.particularSubmissionModalOpen}setTableDataInfo(){let e=this.userSubmission().data||[];this.tabledata=e.map(n=>({id:n.id,langauge:n.language.name,languageObj:n.language,testcasePassed:n.testcase_passed,score:n.score,time:n.finished_at}))}setSelectedLanguage(e){this.selectedLanguage=e}setSelectedSubmission(e){this.particularSubmissiondata.set({}),this.selectedSubmission.set(e),this.viewSubmission()}viewSubmission(){this.setSelectedLanguage(this.selectedSubmission().languageObj),this.particularSubmissionModalOpen=!0}setToCodeEditor(){return A(this,null,function*(){yield this._configService.setLanguage(this.selectedLanguage.id),this._codeEditorService.setCode(this.particularSubmissiondata().submission.source)})}get mode(){return this._configService.mode()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-submissions"]],viewQuery:function(n,o){if(n&1&&G(yn,5),n&2){let s;J(s=Y())&&(o.highlightCode=s.first)}},decls:2,vars:1,consts:[["highlightCode",""],[1,"particular-submission"],[1,"submissions"],[1,"head-area"],["asBtn","",3,"click","icon","size","color"],["unButtonFlat","",3,"click"],[3,"icon","size","color"],[1,"divi
3der"],[1,"main-area"],[1,"main-sub-head"],[1,"code-section"],[1,"cd-main"],[1,"cd-footer"],[1,"footer-area"],[1,"testcase-section"],[1,"testcase",3,"tc-failed","tc-passed"],[1,"testcase"],[1,"icon-box"],[3,"icon","size"],[1,"sub-main"],[3,"click"]],template:function(n,o){n&1&&_(0,In,11,12,"div",1)(1,An,4,1,"div",2),n&2&&C(o.particularSubmissionModalOpen?0:1)},dependencies:[k,E,B,F,j],styles:["[_nghost-%COMP%]{display:block;height:100%}.divider[_ngcontent-%COMP%]{height:1px;background:var(--grey-100);margin:10px 0;border:none}.testcase[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:0 8px 0 2px;border-radius:10px}.testcase[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{width:15px;height:15px;border-radius:50%;display:flex;align-items:center;justify-content:center}.tc-failed[_ngcontent-%COMP%]{background:#dc53261a}.tc-failed[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{background:var(--red-600)}.tc-passed[_ngcontent-%COMP%]{background:#2aca7c1a}.tc-passed[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{background:var(--green-600)}.particular-submission[_ngcontent-%COMP%]{height:100%;background:var(--editor-fg);padding:16px}.particular-submission[_ngcontent-%COMP%] .head-area[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.particular-submission[_ngcontent-%COMP%] .head-area[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:400;font-size:14px;color:var(--editor-text-primary)}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:500;color:var(--editor-text-primary)}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] .submission-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] .submission-status[_ngcontent-%COMP%] .icon-box[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] .submission-status[_ngcontent-%COMP%] .wrong-answer[_ngcontent-%COMP%]{background:var(--red-600)}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] .submission-status[_ngcontent-%COMP%] .right-answer[_ngcontent-%COMP%]{background:var(--green-600)}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] .submission-status[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--text-primary);font-size:14px;font-weight:400}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-head[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--editor-text-primary);font-size:12px;font-weight:400}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-sub-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-sub-head[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:12px;color:var(--editor-text-primary)}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .main-sub-head[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:transparent}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .code-section[_ngcontent-%COMP%]{background:var(--editor-box-bg);border-radius:10px}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .code-section[_ngcontent-%COMP%] .cd-main[_ngcontent-%COMP%]{overflow-x:auto}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .code-section[_ngcontent-%COMP%] .cd-footer[_ngcontent-%COMP%]{padding:10px;margin-bottom:10px}.particular-submission[_ngcontent-%COMP%] .main-area[_ngcontent-%COMP%] .code-section[_ngcontent-%COMP%] .cd-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;font-size:12px;color:var(--editor-text-primary)}.particular-submission[_ngcontent-%COMP%] .footer-area[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:12px;font-weight:500;color:var(--editor-text-primary)}.particular-submission[_ngcontent-%COMP%] .footer-area[_ngcontent-%COMP%] .testcase-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0}.particular-submission[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;font-size:12px;color:var(--editor-text-primary)}.submissions[_ngcontent-%COMP%]{background:var(--editor-fg);padding:16px;height:100%}.submissions[_ngcontent-%COMP%] .sub-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.submissions[_ngcontent-%COMP%] .sub-head[_ngcontent-%COMP%] .submission-tabs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;color:var(--editor-text-primary)}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%]{border-radius:12px;height:100%;overflow-x:auto;width:100%;border:1px solid var(--editor-table-border)}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{min-width:50rem;border-collapse:collapse;border-radius:12px;overflow:hidden;background-color:transparent}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:var(--editor-table-head-bg)}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px;text-align:left;font-size:12px;color:var(--editor-text-secondary)}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:var(--editor-text-tertiary);font-weight:500}.submissions[_ngcontent-%COMP%] .sub-main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-top:1px solid var(--editor-table-border);cursor:pointer}.dark-run[_ngcontent-%COMP%]{background:transparent!important}.lightActive[_ngcontent-%COMP%]{background:#0000000f!important}.darkActive[_ngcontent-%COMP%]{background:#ffffff1a!important}.loader-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.loader-container[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{width:120px;height:20px;background:linear-gradient(var(--grey-1300) 0 0) 0/0% no-repeat #ddd;animation:_ngcontent-%COMP%_l1 2s infinite linear}@keyframes _ngcontent-%COMP%_l1{to{background-size:100%}}.selected_langauge[_ngcontent-%COMP%]{height:32px;display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;padding:0 12px;border-radius:8px;border:1px solid var(--editor-text-primary);background:transparent}.selected_langauge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-weight:400;font-size:12px;color:var(--editor-text-primary)}"]})}}return t})();M();function Fn(t,c){t&1&&g(0,"app-code-editor-testcases")}function Rn(t,c){t&1&&g(0,"app-code-editor-custom-testcase")}function Qn(t,c){t&1&&g(0,"app-code-editor-submissions")}function Vn(t,c){t&1&&g(0,"app-code-editor-loader")}var Et=(()=>{class t{constructor(){this.currentScreen="",this._configService=u(S),this._compilerService=u(U),this.currentPanel=d(()=>this._compilerService.currentExecutionPanel()),this.isCompiling=d(()=>this._compilerService.isCompiling())}ngOnInit(){}get mode(){return this._configService.mode()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-execution-panel"]],inputs:{currentScreen:"currentScreen"},decls:5,vars:3,consts:[[1,"exec-area"]],template:function(n,o){n&1&&(r(0,"div",0),_(1,Fn,1,0,"app-code-editor-testcases")(2,Rn,1,0,"app-code-editor-custom-testcase")(3,Qn,1,0,"app-code-editor-submissions")(4,Vn,1,0,"app-code-editor-loader"),a()),n&2&&(x("dark-exec",o.mode==="dark"),i(),C(o.currentPanel()==="testcases"?1:o.currentPanel()==="customtest"?2:o.currentPanel()==="submission"?3:o.isCompiling()?4:-1))},dependencies:[Pt,Ot,yt,j],styles:['[_nghost-%COMP%]{display:block;height:calc(100% - 60px);overflow:hidden;overflow-y:auto;background:var(--editor-fg)}.exec-area[_ngcontent-%COMP%]{height:100%;overflow-y:auto;border-top:none;padding:12px}.exec-area[_ngcontent-%COMP%]:empty{position:relative}.exec-area[_ngcontent-%COMP%]:empty:after{content:"Output Window";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:large;color:var(--editor-text-secondary);text-shadow:1px 1px 2px var(--editor-margin-color);pointer-events:none;opacity:.4}.dark-exec[_ngcontent-%COMP%]{background:transparent!important;border-color:#fff3!important}']})}}return t})();M();M();var Un=["codeEdiorComponent"];function qn(t,c){}var kt=(()=>{class t{constructor(){this.editorConfig=q(null,{alias:"editorConfig"}),this.codeEdiorComponentInstance=null,this._configService=u(S),V(()=>{let e=this.editorConfig();e&&(console.log("%c [ editorConfig changed ]-110","font-size:16px; background:#cc069d; color:#ff4ae1;",e),ie(()=>{this._configService.setEditorConfig(e.codeEditor),this._configService.setUnEditorConfig(this.editorConfig()),this.loadCodeEditor(e.codeEditor)}))})}loadCodeEditor(e){return A(this,null,function*(){e==="monaco"?yield this.loadMonacoEditor():e==="ace"?yield this.loadAceEditor():console.warn("Unsupported code editor type:",e)})}loadMonacoEditor(){return A(this,null,function*(){try{let e=yield import("./chunk-KX2FF5YM.js"),n=this.codeEdiorComponent.createComponent(e.UnMonacoEditorComponent);
3this.codeEdiorComponentInstance=n.instance}catch(e){console.error("Error loading Monaco Component:",e)}})}loadAceEditor(){return A(this,null,function*(){try{let e=yield import("./chunk-4M6WXI3M.js"),n=this.codeEdiorComponent.createComponent(e.UnAceEditorComponent);this.codeEdiorComponentInstance=n.instance}catch(e){console.error("Error loading Ace Component:",e)}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-code-editor-area"]],viewQuery:function(n,o){if(n&1&&G(Un,5,X),n&2){let s;J(s=Y())&&(o.codeEdiorComponent=s.first)}},inputs:{editorConfig:[1,"editorConfig"]},decls:2,vars:0,consts:[["codeEdiorComponent",""]],template:function(n,o){n&1&&ae(0,qn,0,0,"ng-template",null,0,ce)},encapsulation:2})}}return t})();M();var Ln=["contentContainer"],$n=["leftPanelEl"],jn=()=>[qe,Ce,fe,ve];function Hn(t,c){t&1&&g(0,"app-code-editor-header")}function Wn(t,c){t&1&&se(0)}function Gn(t,c){if(t&1&&(r(0,"as-split-area",7,2)(2,"div",9,3),ne(4,Wn,1,0,"ng-container",10),a()()),t&2){let e=l(2);p("size",e.sidepanelCollapsed()?5:30)("minSize",5),i(4),p("ngComponentOutlet",e.problemStatementComponent)}}function Jn(t,c){t&1&&se(0)}function Yn(t,c){if(t&1&&(r(0,"as-split-area",8),ne(1,Jn,1,0,"ng-container",11),a()),t&2){let e=l(2),n=ge(12);p("size",e.sidepanelCollapsed()?95:70),i(),p("ngTemplateOutlet",n)}}function Kn(t,c){if(t&1){let e=y();r(0,"as-split",6),h("dragStart",function(){P(e);let o=l();return O(o.sidepanelResizeStart())})("dragEnd",function(){P(e);let o=l();return O(o.sidepanelResizeEnd())}),_(1,Gn,5,3,"as-split-area",7),_(2,Yn,2,2,"as-split-area",8),a()}if(t&2){let e=l();x("mob-showcode",e.viewport()=="mobile"&&e.currentActiveTab()=="code")("hasHeader",e.showHeader()),p("gutterSize",3)("direction",e.viewport()=="mobile"?"vertical":"horizontal"),i(),C(e.showProblemStatement()?1:-1),i(),C(e.viewport()!=="mobile"?2:-1)}}function Xn(t,c){t&1&&m(0," loader ")}function Zn(t,c){t&1&&m(0," placeholder ")}function eo(t,c){t&1&&m(0," error ")}function to(t,c){t&1&&se(0)}function no(t,c){if(t&1&&ne(0,to,1,0,"ng-container",11),t&2){l();let e=ge(12);p("ngTemplateOutlet",e)}}function oo(t,c){if(t&1&&(r(0,"as-split-area",14)(1,"div",15),g(2,"app-code-editor-execution-bar")(3,"app-code-editor-execution-panel"),a()()),t&2){let e=l(2);p("size",e.executionPanelOpen()?50:e.minSizePercent)("minSize",15)}}function io(t,c){if(t&1&&(r(0,"as-split",12)(1,"as-split-area",7),g(2,"app-code-editor-area",13),a(),_(3,oo,4,2,"as-split-area",14),a()),t&2){let e=l();x("hide-editor",e.viewport()=="mobile"&&e.currentActiveTab()!=="code"),p("gutterSize",3)("useTransition",!0),i(),p("size",e.executionPanelOpen()?50:100-e.minSizePercent)("minSize",20),i(),p("editorConfig",e.editorConfig()),i(),C(e.showCodeExecutionPanel()?3:-1)}}var ea=(()=>{class t{get code(){return this._codeEditorService.code()}loadProblemStatement(){return A(this,null,function*(){if(!this.problemStatementComponent)try{let e=yield import("./chunk-RCYNS2K3.js");this.problemStatementComponent=e.ProblemStatementComponent,this.cdr.detectChanges()}catch(e){console.error("Error loading problem statement:",e)}})}constructor(){this._configService=u(S),this._codeEditorService=u(N),this._interactionService=u(te),this.viewportService=u(nt),this.cdr=u(Ve),this.showProblemStatement=d(()=>this._configService.unEditorConfig().showProblemStatement),this.currentLanguage=d(()=>this._configService.currentLanguage()),this.problemStatementComponent=null,this.problemStatement=q(null,{alias:"problemStatement"}),this.editorConfig=q(null,{alias:"editorConfig"}),this.viewport=d(()=>this.viewportService.viewport()),this.currentActiveTab=d(()=>this._codeEditorService.currentActiveTab()),this.showHeader=d(()=>this._configService.unEditorConfig().showHeader),this.showCodeExecutionPanel=d(()=>this._configService.unEditorConfig().showCodeExecutionPanel),this.executionPanelOpen=this._codeEditorService.executionPanelOpen,this.sidepanelCollapsed=this._codeEditorService.sidepanelCollapsed,this.accessCheckerService=u(pt),this.destroyRef=u(we),this.accessDenied=new W,this.interaction=new W,this.resizeObserver=null,this.minSizePercent=15,V(()=>
3{let e=this.showProblemStatement();e&&(console.log("%c [ showProblemStatement ]-94","font-size:16px; background:#3e4998; color:#828ddc;",e),ie(()=>this.loadProblemStatement()))}),V(()=>{let e=this.problemStatement();e&&(console.log("%c [ problemStatement ]-106","font-size:16px; background:#e20b84; color:#ff4fc8;",e),this._codeEditorService.setProblemStatement(this.problemStatement()?.question||this.problemStatement()))},{allowSignalWrites:!0}),V(()=>{let e=this._interactionService.interaction();e&&(console.log("%c [ interaction ]-141","font-size:16px; background:#4344e4; color:#8788ff;",e),ie(()=>{this.interaction.emit(e),this._interactionService.clear()}))}),this.accessCheckerService.accessDeniedSub.pipe(He(this.destroyRef)).subscribe(e=>{this.accessDenied.emit(e)})}ngOnDestroy(){this._configService.dispose(),this._codeEditorService.dispose(),this.resizeObserver?.disconnect(),this.resizeObserver=null}get mode(){return this._configService.mode()}laodproblem(){let e=this._configService.unEditorConfig();this._configService.setUnEditorConfig({showProblemStatement:!e.showProblemStatement})}
3sidepanelResizeStart(){if(this.viewport()=="mobile"||!this.leftPanelRef?.nativeElement||!this.contentContainerRef?.nativeElement)return;let e=this.contentContainerRef.nativeElement.offsetWidth,n=5/100*e;this.resizeObserver=new ResizeObserver(o=>{for(let s of o)s.contentRect.width<=n?this._codeEditorService.setSidebarCollapsed(!0):this._codeEditorService.setSidebarCollapsed(!1)}),this.resizeObserver.observe(this.leftPanelRef.nativeElement)}sidepanelResizeEnd(){this.resizeObserver?.disconnect(),this.resizeObserver=null;let e=this._configService?.editorInstance;e&&"layout"in e&&e.layout(),console.log("%c [ editorInstance ]-151","font-size:16px; background:#718d27; color:#b5d16b;")}convertPxToPercent(e,n){return n===0?0:e/n*100}recalculateMinSize(){this.contentContainerRef?.nativeElement&&requestAnimationFrame(()=>{let e=this.contentContainerRef.nativeElement.offsetHeight;!e||e<=0||(this.minSizePercent=this.convertPxToPercent(70,e))})}ngAfterViewInit(){this.recalculateMinSize()}onWindowResize(){this.recalculateMinSize()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=b({type:t,selectors:[["un-code-editor"]],viewQuery:function(n,o){if(n&1&&(G(Ln,5),G($n,5)),n&2){let s;J(s=Y())&&(o.contentContainerRef=s.first),J(s=Y())&&(o.leftPanelRef=s.first)}},hostBindings:function(n,o){n&1&&h("resize",function(v){return o.onWindowResize(v)},Te)},inputs:{problemStatement:[1,"problemStatement"],editorConfig:[1,"editorConfig"]},outputs:{accessDenied:"accessDenied",interaction:"interaction"},decls:13,vars:8,consts:[["contentContainer",""],["codeEditor",""],["leftPanelRef","asSplitArea"],["leftPanelEl",""],[1,"code-editor"],[1,"content_container"],[3,"dragStart","dragEnd","gutterSize","direction"],[3,"size","minSize"],[1,"no-border",3,"size"],[1,"overflow-hidden","full-height"],[4,"ngComponentOutlet"],[4,"ngTemplateOutlet"],["id","containerRef","direction","vertical",1,"coding-panel",3,"gutterSize","useTransition"],[3,"editorConfig"],[2,"overflow","hidden",3,"size","minSize"],[2,"height","100%","background","var(--editor-fg)"]],template:function(n,o){n&1&&(r(0,"div",4),_(1,Hn,1,0,"app-code-editor-header"),r(2,"div",5,0),ae(4,Kn,3,8)(5,Xn,1,0)(6,Zn,1,0)(7,eo,1,0),Ie(8,4,jn,5,6,7),De(),_(10,no,1,1,"ng-container"),a(),ne(11,io,4,8,"ng-template",null,1,ce),a()),n&2&&(x("full-width",!o.showProblemStatement()),Z("editor-theme",o.mode),i(),C(o.showHeader()?1:-1),i(),x("p-0",!o.showProblemStatement()),i(6),ze(o.showProblemStatement()),i(2),C(o.viewport()=="mobile"?10:-1))},dependencies:[ee,Ce,dt,fe,ve,bt,St,Et,kt],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden;position:relative}.mob-showcode[_ngcontent-%COMP%]{max-height:64px;overflow:hidden}.hide-editor[_ngcontent-%COMP%]{height:0px;overflow:hidden;opacity:0}.code-editor[_ngcontent-%COMP%]{height:100%;overflow:hidden;background:var(--editor-bg);display:flex;flex-direction:column;height:100dvh;width:100dvw}.code-editor[_ngcontent-%COMP%] as-split-area[_ngcontent-%COMP%]:not(.no-border){background-color:var(--split-area-bg);border-color:var(--editor-table-border)}.code-editor[_ngcontent-%COMP%] .as-horizontal .as-split-gutter{width:2px;height:100%}.code-editor[_ngcontent-%COMP%] .as-vertical .as-split-gutter{height:2px;width:100%}.code-editor[_ngcontent-%COMP%] .as-split-gutter{flex-basis:2px;background-color:var(--transparent)!important}.code-editor[_ngcontent-%COMP%] .as-split-gutter .as-split-gutter-icon{display:none}.code-editor[_ngcontent-%COMP%] .as-split-gutter:hover{background:radial-gradient(circle,var(--editor-gutter) 0%,transparent 100%)}.content_container[_ngcontent-%COMP%]{padding:0 8px 8px;flex-grow:1;overflow:hidden}@media screen and (max-width: 767px){.content_container[_ngcontent-%COMP%]{display:flex;flex-direction:column}}as-split[_ngcontent-%COMP%]{overflow:hidden;overflow-y:auto;scrollbar-color:var(--editor-box-bg) var(--transparent);scrollbar-width:thin;border-radius:8px;scroll-behavior:smooth;height:100%}as-split[_ngcontent-%COMP%] as-split-area[_ngcontent-%COMP%]{border:1px solid;border-radius:12px;overflow:hidden}as-split[_ngcontent-%COMP%] as-split-area.as-min[_ngcontent-%COMP%]{background-color:var(--editor-margin-color)!important}as-split[_ngcontent-%COMP%] as-split-area.coding-panel[_ngcontent-%COMP%]{height:calc(100% - 30px)}as-split[_ngcontent-%COMP%] .hasHeader[_ngcontent-%COMP%]{height:calc(100% - 67px)}","[_ngcontent-%COMP%]:root{--editor-bg: var(--grey-50);--editor-fg: var(--grey-00);--editor-cursor: #ffffff;--editor-selection: #264f78;--editor-text-primary: var(--text-primary)}[editor-theme=light][_ngcontent-%COMP%]{--editor-text-primary: var(--text-primary);--editor-text-secondary: var(var(--text-secondary)) --editor-text-tertiary: var(--text-tertiary);--editor-bg: var(--grey-50);
3--code-editor-bg-color: rgba(255, 255, 255, .01);--editor-fg: var(--grey-00);--editor-box-bg: var(--grey-00);--split-area-bg: #ffffff33;--editor-margin-color: var(--grey-00);--editor-gutter: var(--blue-700);--spinner-bg: var(--primary-700);--editor-success-bg:var(--green-200);--editor-failed-bg:var(--red-200);--editor-progress-bg:var(--primary-200);--editor-cursor: #000000;--editor-selection: #cce2ff;--editor-button-bg: var(--grey-100);--editor-button-bg-hover: var(--grey-200);--editor-failed-btn-bg:var(--red-700);--editor-progress-btn-bg:var(--primary-700);--editor-success-btn-bg:var(--green-700);--editor-icon: var(--grey-1100);--editor-table-head-bg: var(--grey-50);--editor-table-border: var(--stroke-primary);--editor-table-row-hover: var(--grey-100);--editor-table-row-even-bg: linear-gradient(45deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, 0))}[editor-theme=dark][_ngcontent-%COMP%]{--editor-text-primary: var(--grey-00);--editor-text-secondary: var(--grey-400);--editor-text-tertiary: var(--grey-200);--editor-bg: linear-gradient(#0d2440, #212121);--code-editor-bg-color: rgba(0, 0, 0, .01);--editor-fg: transparent;--editor-box-bg: rgba(255, 255, 255, .1);--split-area-bg: #00000033;--editor-margin-color: rgba(0, 0, 0, .4);--spinner-bg: var(--grey-100);--editor-success-bg:var(--green-900);--editor-failed-bg: var(--red-900);--editor-progress-bg:var(--primary-900);--editor-cursor: #ff9d00;--editor-selection: #12498c;--editor-gutter: var(--blue-700);--editor-button-bg: #3e4a57;--editor-button-bg-hover: rgba(255, 255, 255, .1);--editor-failed-btn-bg:var(--red-1000);--editor-progress-btn-bg:var(--primary-1000);--editor-success-btn-bg:var(--green-1000);--editor-icon: var(--grey-00);--editor-table-head-bg: rgba(0, 0, 0, .26);--editor-table-border: rgba(255, 255, 255, .08);--editor-table-row-hover: var(--grey-1250);--editor-table-row-even-bg: linear-gradient(45deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0))}"]})}}return t})();export{ea as UnCodeEditorComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.