PageSourceSearch

https://cloudrek.ai/1150.7b5d18a93c04abe2.js

js cloudrek.ai collected 2026-10-05 15:14:17 UTC 1,023,013 bytes, 129 lines download raw bytes

1"use strict";(self.webpackChunkCloudRek_Front=self.webpackChunkCloudRek_Front||[]).push([[1150],{61150:(Fr,lr,ze)=>{ze.r(lr),ze.d(lr,{JobseekerModule:()=>Q4});var qe=ze(60177),Ve=ze(91583),ne=ze(89417),Ue=ze(33391),$i=ze(72510),Cn=ze(62796),di=ze(36937),so=ze(7476),Ni=ze(40668),Dn=ze(99830),pi=ze(6064),lo=ze(46156),Hi=ze(76144),us=ze(35861),co=ze(15788),et=ze(10467),sn=ze(13967),Ut=ze(45794),ps=ze(47490),_s=ze(26528),e=ze(54438),ka=ze(6939),Pl=ze(34864),qo=ze.n(Pl),jn=ze(21413),mn=ze(97586),Be=ze.n(mn);let Sr=(()=>{class i{stream;recorder;interval;startTime;_stream=new jn.B;_recorded=new jn.B;_recordedUrl=new jn.B;_recordingTime=new jn.B;_recordingFailed=new jn.B;getRecordedUrl(){return this._recordedUrl.asObservable()}getRecordedBlob(){return this._recorded.asObservable()}getRecordedTime(){return this._recordingTime.asObservable()}recordingFailed(){return this._recordingFailed.asObservable()}getStream(){return this._stream.asObservable()}startRecording(t,n){var o=navigator;if(console.log({browser:this.recorder}),!this.recorder)return this._recordingTime.next("00:00"),new Promise((r,s)=>{o.mediaDevices.getUserMedia(t).then(c=>{this.stream=c,this.record(n),r(this.stream)}).catch(c=>{this._recordingFailed.next(void 0),r({status:0}),console.log(c)})})}cancel_interview(){this.recorder=null}abortRecording(){this.stopMedia()}record(t){this.recorder=new(qo())(this.stream,{type:"video",mimeType:"video/webm;codecs=vp9",canvas:{width:1280,height:720}}),this.recorder.startRecording(),this.startTime=Be()(),this.interval=setInterval(()=>{const n=Be()(),o=Be().duration(n.diff(this.startTime)),r=this.toString(o.minutes())+":"+this.toString(o.seconds());this._recordingTime.next(r),this._stream.next(this.stream)},500)}toString(t){let n=t;return t||(n="00"),t<10&&(n="0"+t),n}stopRecording(){this.recorder&&this.recorder.stopRecording(this.processVideo.bind(this))}processVideo(t){const n=this.recorder.getBlob();this.recorder.getDataURL(function(r){});const o=encodeURIComponent("video_"+(new Date).getTime()+".webm");this._recorded.next({blob:n,url:t,title:o}),this.stopMedia()}stopMedia(){this.recorder&&(this.recorder=null,clearInterval(this.interval),this.startTime=null,this.stream&&(this.stream.getAudioTracks().forEach(t=>t.stop()),this.stream.getVideoTracks().forEach(t=>t.stop()),this.stream.stop(),this.stream=null))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Wi=ze(345),Yi=ze(75834),Qt=ze(19278),uo=ze(72193),Fo=ze(10120);const hs=navigator;let Nl=(()=>{class i{wakeLock=null;isWakeLockRequested=!1;constructor(){typeof document<"u"&&document.addEventListener("visibilitychange",()=>{this.isWakeLockRequested&&"visible"===document.visibilityState&&this.requestWakeLock()})}requestWakeLock(){"wakeLock"in navigator&&typeof document<"u"&&"visible"===document.visibilityState&&hs.wakeLock.request("screen").then(t=>{this.wakeLock=t,console.log("Wake Lock is active")}).catch(t=>{"NotAllowedError"!==t.name&&console.error("Unable to acquire wake lock: "+t)})}initWakeLock(){this.isWakeLockRequested=!0,this.requestWakeLock()}releaseWakeLock(){this.isWakeLockRequested=!1,this.wakeLock&&this.wakeLock.release().then(()=>{this.wakeLock=null,console.log("Wake Lock has been released")}).catch(t=>{console.error("Unable to release wake lock: "+t)})}static \u0275fac=function(n){return new(n||i)};static \u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Mi=ze(69452);const Z=["videoElement"],k=["interviewDetailsModal"],H=["interviewFinished"],ye=["alreadyInterviewFinishedModal"];function Te(i,a){1&i&&(e.j41(0,"div",20),e.EFF(1," Please wait until connecting session...\n"),e.k0s())}function me(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.stopVideoRecording())}),e.EFF(1," Stop Interview "),e.k0s()}}function Me(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.startVideoRecording())}),e.EFF(1," Record Now "),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("disabled",t.isDisableRecordBtn||t.webcamDisconnected)}}function le(i,a){1&i&&(e.j41(0,"button",42),e.EFF(1," Record Now "),e.k0s()),2&i&&e.Y8G("disabled",!0)}function Xe(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.finish_interview())}),e.EFF(1," Finish Interview "),e.k0s()}}function pt(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.next())}),e.EFF(1," Next "),e.k0s()}}function Ge(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.retakesVideo())}),e.EFF(1),e.k0s()}if(2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.retakes_time," Retakes Left ")}}function st(i,a){if(1&i&&(e.j41(0,"div",21),e.qex(1),e.j41(2,"div",22)(3,"div",23)(4,"h1",24),e.EFF(5),e.k0s(),e.j41(6,"div")(7,"p",25),e.EFF(8),e.k0s()()(),e.DNE(9,me,2,0,"button",26),e.k0s(),e.j41(10,"div",27)(11,"div",28)(12,"div",29)(13,"p",25)(14,"span",30),e.EFF(15),e.k0s(),e.j41(16,"span",31),e.EFF(17),e.k0s()()(),e.j41(18,"div",32)(19,"div")(20,"h3",33),e.EFF(21),e.k0s(),e.j41(22,"div",34),e.EFF(23),e.k0s()(),e.j41(24,"div",35),e.DNE(25,Me,2,1,"button",36)(26,le,2,1,"button",37)(27,Xe,2,0,"button",38)(28,pt,2,0,"button",38)(29,Ge,2,1,"button",39),e.k0s()()(),e.nrm(30,"div"),e.k0s(),e.bVm(),e.k0s()),2&i){const t=e.XpG();e.R7$(5),e.JRh(t.title),e.R7$(3),e.SpI(" Total Question: ",t.question_count," "),e.R7$(),e.Y8G("ngIf",t.isVideoRecording&&!t.videoBlob),e.R7$(6),e.JRh(t.current_question_number),e.R7$(2),e.SpI(" /",t.question_count," "),e.R7$(4),e.SpI(" ",null==t.question_list?null:t.question_list.question," "),e.R7$(2),e.SpI(" Answer Time: ",null==t.question_list?null:t.question_list.minute_time," minutes "),e.R7$(2),e.Y8G("ngIf",!t.isVideoRecording&&!t.videoBlobUrl&&!t.question_flag),e.R7$(),e.Y8G("ngIf",1==t.isVideoRecording),e.R7$(),e.Y8G("ngIf",t.finish_flag),e.R7$(),e.Y8G("ngIf",t.question_flag&&!t.finish_flag),e.R7$(),e.Y8G("ngIf",t.rerecord_flag)}}function rt(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.playVideo())}),e.j41(1,"button",46),e.qSk(),e.j41(2,"svg",47),e.nrm(3,"path",48),e.k0s()()()}}function He(i,a){if(1&i&&(e.j41(0,"video",49,4),e.nrm(2,"source",50),e.k0s()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("src",t.playbackUrl?t.playbackUrl:t.videoSrc,e.B4B)}}function Ne(i,a){if(1&i&&(e.j41(0,"video",49),e.nrm(1,"source",50),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("src",t.videoSrc,e.B4B)}}function ht(i,a){1&i&&(e.j41(0,"div",51),e.EFF(1," Webcam disconnected. Please reconnect your webcam to resume the interview. "),e.k0s())}function vt(i,a){1&i&&(e.j41(0,"div",52),e.nrm(1,"img",53),e.k0s())}function $e(i,a){if(1&i&&(e.j41(0,"div",54),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.timeLeft," ")}}function Pe(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",55)(1,"div",56),e.nrm(2,"circle-progress",57),e.j41(3,"span",58),e.EFF(4),e.k0s()(),e.j41(5,"button",59),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.stopVideoRecording())}),e.EFF(6," stop "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(2),e.Y8G("percent",t.recordTimelef)("options",t.remainingTimeCounterOptions)("maxPercent",100)("showSubtitle",!1)("showTitle",!1),e.R7$(2),e.JRh(t.recordTimelefPer)}}function We(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",64)(1,"div",65)(2,"h3",24),e.EFF(3),e.k0s(),e.j41(4,"h5",66),e.EFF(5),e.k0s()(),e.j41(6,"div",67)(7,"div",68)(8,"h5"),e.
1EFF(9),e.k0s(),e.j41(10,"p",69),e.EFF(11,"Client Name"),e.k0s()(),e.j41(12,"div",68)(13,"h5"),e.EFF(14),e.k0s(),e.j41(15,"p",69),e.EFF(16,"Employment Time"),e.k0s()()(),e.j41(17,"div",70)(18,"input",71),e.bIt("change",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.agreecheckbox())}),e.k0s(),e.j41(19,"label",72),e.EFF(20," I agree to the "),e.j41(21,"span",73),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openTermsModal())}),e.EFF(22," Terms and Conditions "),e.k0s(),e.EFF(23," and "),e.j41(24,"span",73),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openPrivacyModal())}),e.EFF(25," Privacy Policy "),e.k0s()()()()}if(2&i){const t=e.XpG(2);e.R7$(3),e.JRh(null==t.interview_details?null:t.interview_details.job_title),e.R7$(2),e.SpI(" ",null==t.interview_details?null:t.interview_details.company_type," "),e.R7$(4),e.JRh(null==t.interview_details?null:t.interview_details.first_name),e.R7$(5),e.JRh(null==t.interview_details?null:t.interview_details.job_availability),e.R7$(4),e.Y8G("checked",t.isChecked)}}function ve(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",60)(1,"h3",61),e.EFF(2,"Interview Details"),e.k0s()(),e.DNE(3,We,26,5,"div",62),e.j41(4,"div",63)(5,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG(),r=e.sdS(19);return e.Njj(o.openTipsModal(r,"medium"))}),e.EFF(6," Start Interview "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("ngIf",t.interview_details),e.R7$(2),e.Y8G("disabled",!t.isChecked)}}function Ce(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",60)(1,"h3",61),e.EFF(2,"Tips to get started"),e.k0s(),e.j41(3,"button",74),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",64)(5,"div",75)(6,"h3",76),e.EFF(7,"How to record a great video"),e.k0s(),e.j41(8,"ul",77)(9,"li",78)(10,"span",79),e.EFF(11,"check_circle"),e.k0s(),e.j41(12,"span",80),e.EFF(13,"Ensure you are in a quiet, distraction-free area."),e.k0s()(),e.j41(14,"li",78)(15,"span",79),e.EFF(16,"check_circle"),e.k0s(),e.j41(17,"span",80),e.EFF(18,"Check you have enough charge on your device and a good data connection."),e.k0s()(),e.j41(19,"li",78)(20,"span",79),e.EFF(21,"check_circle"),e.k0s(),e.j41(22,"span",80),e.EFF(23,"Practice to feel comfortable with the process."),e.k0s()(),e.j41(24,"li",78)(25,"span",79),e.EFF(26,"check_circle"),e.k0s(),e.j41(27,"span",80),e.EFF(28,"Make eye contact with the camera whenever possible."),e.k0s()(),e.j41(29,"li",78)(30,"span",79),e.EFF(31,"check_circle"),e.k0s(),e.j41(32,"span",80),e.EFF(33,"You will have the opportunity to review all your answer at the end of the process before submitting them."),e.k0s()(),e.j41(34,"li",78)(35,"span",79),e.EFF(36,"check_circle"),e.k0s(),e.j41(37,"span",80),e.EFF(38,"Remember to grant access to your camera and microphone if required."),e.k0s()()()()(),e.j41(39,"div",63)(40,"div",81)(41,"a",82),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.initializeSession())}),e.EFF(42,"Let's Start"),e.k0s()()()}}function lt(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",60)(1,"h3",61),e.EFF(2,"Interview Finished"),e.k0s(),e.j41(3,"button",74),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.finishClose())}),e.k0s()(),e.j41(4,"div",83)(5,"h2"),e.EFF(6),e.k0s()(),e.j41(7,"div",63)(8,"div",84)(9,"a",85),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.finishClose())}),e.EFF(10,"Close"),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(6),e.JRh(t.interview_message)}}function dt(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",60)(1,"h3",61),e.EFF(2,"Interview Finished"),e.k0s(),e.j41(3,"button",74),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.finishClose())}),e.k0s()(),e.j41(4,"div",83)(5,"h2"),e.EFF(6),e.k0s()(),e.j41(7,"div",63)(8,"div",84)(9,"a",85),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.finishClose())}),e.EFF(10,"Close"),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(6),e.JRh(t.interview_message)}}let Lt=(()=>{class i{rs;ref;modalService;videoRecordingService;sanitizer;route;jobseeker;globals;toastr;NotificationService;chatService;config;wakeLockService;navigationService;remainingTimeCounterOptions={titleColor:"white",unitsColor:"white",titleFontSize:"50",titleFontWeight:400,showUnits:!1,subtitleColor:"white",subt
1itle:"sec",subtitleFontSize:"40",backgroundColor:"rgba(3,29,31,0.25)"};video;isVideoRecording=!1;videoRecordedTime=0;videoTime;videoStream;videoBlob;videoName;videoBlobUrl;front=!1;videoConf={audio:{echoCancellation:!0,noiseSuppression:!0},video:{facingMode:"user",width:320}};closeResult="";question_list;title;question_count;current_question_number;overallData;minInterval;isChecked=!1;start_record_flag=!1;is_show_image=!0;question_flag=!1;finish_flag=!1;clock_flag=!1;auto_timer_record_flag=!1;rerecord_flag=!1;recordlef;recordTimelefPer;jobseeker_id;skill_id;job_id;question_skill_id;recruiter_user_id;question_index=0;timeLeft=3;retakes_time=3;recordTimelef;interval;url;cancel_interview=!1;video_file;video_record_flag=!1;save_video=!1;interview_details;device_connection=!0;webcamDisconnected=!1;otSession;otPublisher;deviceChangeHandler=null;mainTimerInterval;interview_message;videoArr=[];apiKey;sessionId;token;archiveId="";stertArchive=1;stopArchive=0;isVideoPermission=!1;isPermission=!1;isShowVideo=!1;isShowStaticVideo=!1;videoSrc;playbackUrl;isShowTimer=!1;setTimelefImterval;isRetakeClick=!0;isDisableRecordBtn=!0;isVisible=!1;termsAndConditionsUrl;privacyPolicyUrl;videoElement;interviewDetailsModal;interviewFinishedModal;alreadyInterviewFinishedModal;constructor(t,n,o,r,s,c,u,h,v,g,b,f,R,C){this.rs=t,this.ref=n,this.modalService=o,this.videoRecordingService=r,this.sanitizer=s,this.route=c,this.jobseeker=u,this.globals=h,this.toastr=v,this.NotificationService=g,this.chatService=b,this.config=f,this.wakeLockService=R,this.navigationService=C,this.config.backdrop="static",this.config.keyboard=!1,this.route.snapshot.queryParams.jobseeker_id&&(this.jobseeker_id=this.route.snapshot.queryParams.jobseeker_id,this.skill_id=this.route.snapshot.queryParams.skill_id?this.route.snapshot.queryParams.skill_id.split(","):"",this.job_id=this.route.snapshot.queryParams.job_id,this.recruiter_user_id=this.route.snapshot.queryParams.recruiter_user_id,console.log({skill:this.skill_id})),this.wakeLockService.releaseWakeLock()}ngOnInit(){var t=this;return(0,et.A)(function*(){t.termsAndConditionsUrl=`${t.navigationService.redirectUrl()}/terms-conditions`,t.privacyPolicyUrl=`${t.navigationService.redirectUrl()}/privacy-policy`,t.wakeLockService.initWakeLock(),t.videoInterviewCallback(),yield t.interview_detail(t.jobseeker_id,t.skill_id,t.job_id,t.recruiter_user_id),yield t.video_question_list(t.jobseeker_id,t.skill_id,t.job_id,t.recruiter_user_id)})()}ngOnDestroy(){this.wakeLockService.releaseWakeLock(),this.deviceChangeHandler&&navigator.mediaDevices&&navigator.mediaDevices.removeEventListener("devicechange",this.deviceChangeHandler)}video_question_list(t,n,o,r){var s=this;return(0,et.A)(function*(){if(s.route.snapshot.queryParams.client_user)var c={jobseeker_id:t,is_client_scheduled:!0,client_user_id:s.route.snapshot.queryParams.client_user};else var u={jobseeker_id:t,skill_id:n,job_id:o,recruiter_user_id:r};s.globals.loading=!0,yield s.rs.video_question_list_test(s.route.snapshot.queryParams.client_user?c:u).subscribe(h=>{if(console.log("video que",h),s.globals.loading=!1,1==h.ResponseCode)if(s.apiKey=h.ResponseData.response.api_key,s.sessionId=h.ResponseData.response.session_id,s.token=h.ResponseData.response.token,0==h.ResponseData.question_details.length)s.modalService.dismissAll(),s.interview_message="Already finished interview",s.openModal(s.alreadyInterviewFinishedModal,"medium");else{let b=function(f){return f.toString().padStart(2,"0")};s.question_list=h.ResponseData.question_details[s.question_index];const v=Math.floor(Number(s.question_list.time_limit)/60),g=Number(s.question_list.time_limit)%60;s.question_list.minute_time=`${b(v)}:${b(g)}`,console.log(s.question_list.minute_time),console.log({startquestion:s.question_list}),s.current_question_number=h.ResponseData.jobseeker_question_count-h.ResponseData.question_details.length+1,s.question_skill_id=h.ResponseData.question_details[s.question_index]?h.ResponseData.question_details[s.question_index].skill_id:null,
1s.title=h.ResponseData.title,s.question_count=h.ResponseData.jobseeker_question_count}},h=>{s.globals.loading=!1})})()}initializeSession(){var t=this;this.globals.loading=!0,navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(function(){var n=(0,et.A)(function*(o){const r=yield sn.initSession(t.apiKey,t.sessionId);t.otSession=r;const s=yield t.createPublisher();t.otPublisher=s,r.connect(t.token,c=>{if(c)return console.log("session connect err",c),void(t.globals.loading=!1);console.log("connected"),r.publish(s,u=>{u?console.error("Error publishing stream:",u.message):console.log("publish stream")})}),t.globals.loading=!1,t.modalService.dismissAll(),t.showAlert(),setTimeout(()=>{t.webcamDisconnected||(t.isDisableRecordBtn=!1)},6e3),t.setupDeviceChangeListener()});return function(o){return n.apply(this,arguments)}}()).catch(n=>{this.globals.loading=!1,this.toastr.error("Please connect with webcam or camera")})}createPublisher(){return(0,et.A)(function*(){return sn.initPublisher("publisher",{insertMode:"append",width:"100%",height:"100vh",publishVideo:!0},t=>{t&&console.error("Error initializing publisher:",t)})})()}setupDeviceChangeListener(){var t=this;let n=!0;this.deviceChangeHandler=(0,et.A)(function*(){const s=(yield navigator.mediaDevices.enumerateDevices()).filter(c=>"videoinput"===c.kind).length>0;n&&!s?(n=!1,t.onWebcamDisconnected()):!n&&s&&(n=!0,t.onWebcamReconnected())}),navigator.mediaDevices.addEventListener("devicechange",this.deviceChangeHandler)}onWebcamDisconnected(){this.webcamDisconnected||(this.webcamDisconnected=!0,this.isDisableRecordBtn=!0,this.toastr.warning("Webcam disconnected. Please reconnect your webcam to resume the interview."),this.ref.detectChanges(),this.isVideoRecording&&this.pauseInterviewForWebcamDisconnect())}pauseInterviewForWebcamDisconnect(){this.stopArchive=1,this.stertArchive=0,this.clock_flag=!0,this.isShowTimer=!1,clearInterval(this.mainTimerInterval),clearInterval(this.overallData),clearInterval(this.minInterval),clearInterval(this.setTimelefImterval),clearInterval(this.videoTime),this.start_record_flag=!0,this.isVideoRecording=!1,this.videoRecordingService&&this.videoRecordingService.stopRecording(),this.jobseeker.startVideoRecording({archive_id:""==this.archiveId?null:this.archiveId,session_id:this.sessionId,start_archieve:1==this.stertArchive?1:0,stop_archieve:1==this.stopArchive?1:0}).subscribe(()=>{this.ref.detectChanges()})}onWebcamReconnected(){var t=this;return(0,et.A)(function*(){if(t.webcamDisconnected&&t.otSession){try{(yield navigator.mediaDevices.getUserMedia({audio:!0,video:!0})).getTracks().forEach(o=>o.stop())}catch{return}try{t.otPublisher&&(t.otSession.unpublish(t.otPublisher),t.otPublisher.destroy());const n=yield t.createPublisher();t.otPublisher=n,t.otSession.publish(n,o=>{o?console.error("Error re-publishing stream:",o.message):(t.webcamDisconnected=!1,t.isDisableRecordBtn=!1,t.toastr.success("Webcam reconnected. You can resume the interview."),t.ref.detectChanges())})}catch(n){console.error("Failed to replace publisher after webcam reconnect:",n)}}})()}showAlert(){this.isVisible||(this.isVisible=!0,setTimeout(()=>this.isVisible=!1,6e3))}openModal(t,n){this.modalService.open(t,{centered:!0,backdrop:"static",windowClass:n?`cr-custom-modal modal-blur modal-${n}`:"cr-custom-modal"}).result.then(o=>{this.closeResult=`Closed with: ${o}`})}interview_detail(t,n,o,r){var s=this;return(0,et.A)(function*(){if(s.route.snapshot.queryParams.client_user)var c={jobseeker_id:t,is_client_scheduled:!0,client_user_id:s.route.snapshot.queryParams.client_user};else var u={jobseeker_id:t,skill_id:n,job_id:o,recruiter_user_id:r};
1yield s.jobseeker.Interview_detail(s.route.snapshot.queryParams.client_user?c:u).subscribe(h=>{3==h.ResponseCode?(s.interview_message=h.ResponseText,s.openModal(s.interviewFinishedModal,"medium")):(s.interview_details=h.ResponseData,s.openModal(s.interviewDetailsModal,"medium"))})})()}agreecheckbox(){this.isChecked=0==this.isChecked}openTipsModal(t,n){this.modalService.dismissAll(),this.modalService.open(t,{windowClass:n?`cr-custom-modal modal-blur modal-${n}`:"cr-custom-modal",centered:!0}).result.then(o=>{this.closeResult=`Closed with: ${o}`})}startVideoRecording(){if(console.log("rl",this.videoElement),this.playbackUrl="",this.rerecord_flag=!1,this.cancel_interview=!1,console.log({re:this.isVideoRecording}),0==this.isVideoRecording){let r=function(s){return s.toString().padStart(2,"0")};this.jobseeker.startVideoRecording({archive_id:""==this.archiveId?null:this.archiveId,session_id:this.sessionId,start_archieve:1==this.stertArchive?1:0,stop_archieve:1==this.stopArchive?1:0}).subscribe(s=>{1==s.ResponseCode?this.archiveId=s.ResponseData.archive_id:this.toastr.error(s.ResponseText)}),this.auto_timer_record_flag=!0,this.isShowTimer=!0,this.start_record_flag=!0,this.isVideoRecording=!0,this.isRetakeClick=!0,console.log({video:this.question_list}),console.log({nextreord:this.isVideoRecording}),this.device_connection=!1;let n=Math.floor(Number(this.question_list.time_limit)/60),o=Number(this.question_list.time_limit)%60;this.question_list.minute_time=`${r(n)}:${r(o)}`,console.log(this.question_list.minute_time),this.timeLeft=3,this.mainTimerInterval=setInterval(()=>{0==this.device_connection&&0==this.cancel_interview&&(this.timeLeft>0?(console.log("v"),this.clock_flag=!1,this.timeLeft--,this.auto_timer_record_flag=!0):(console.log("b"),this.clock_flag=!0,this.is_show_image=!1,this.timeLeft--,clearInterval(this.mainTimerInterval)))},1e3),this.videoRecordedTime=0,this.videoTime=setInterval(()=>{this.videoRecordedTime++},1e3),setTimeout(()=>{if(console.log("time-data",this.question_list.time_limit),this.recordTimelef=100-100/this.question_list.time_limit,this.setTimelefImterval=setInterval(()=>{this.timeLeft<0&&0==this.cancel_interview&&(this.auto_timer_record_flag=!1,this.recordTimelef>0?this.recordTimelef--:this.recordTimelef=0)},this.question_list.time_limit/100*1e3),this.question_list.time_limit>60){if(setTimeout(()=>{this.auto_timer_record_flag=!1},1e3),0==o){var s=60;n-=1}else s=o+3,s=o;this.overallData=setInterval(()=>{-1!=s&&-1==n?(this.stopVideoRecording(),clearInterval(this.overallData),clearInterval(this.videoTime),this.recordTimelefPer="00:00"):-1!=s&&(s--,this.recordTimelefPer=s<10?n+":0"+s:n+":"+s,console.log(s),0==s&&(console.log("stop"),n-=1,console.log(n),-1!=n))&&(s=60)},1e3)}else if(this.question_list.time_limit<=60){console.log(this.question_list.time_limit);var c=Number(this.question_list.time_limit);this.minInterval=setInterval(()=>{0==c?(this.stopVideoRecording(),clearInterval(this.minInterval)):(c--,console.log(c),this.recordTimelefPer=c<10?"0:0"+c:"0:"+c)},1e3)}},3e3)}}stopVideoRecording(){this.stopArchive=1,this.stertArchive=0,this.clock_flag=!0,this.isShowTimer=!1,clearInterval(this.mainTimerInterval),clearInterval(this.overallData),clearInterval(this.minInterval),clearInterval(this.setTimelefImterval),clearInterval(this.videoTime),this.start_record_flag=!1,this.auto_timer_record_flag=!0,this.isVideoRecording&&(this.videoRecordingService.stopRecording(),this.isVideoRecording=!1,this.question_flag=!0,this.rerecord_flag=!0),this.question_count==this.current_question_number&&(this.finish_flag=!0),0==this.retakes_time&&(this.rerecord_flag=!1);let t={archive_id:""==this.archiveId?null:this.archiveId,session_id:this.sessionId,start_archieve:1==this.stertArchive?1:0,stop_archieve:1==this.stopArchive?1:0};this.isShowStaticVideo=!0,this.globals.loading=!0,this.isVideoPermission=!1,this.jobseeker.startVideoRecording(t).subscribe(n=>{console.log("bbbbbbbbbbbbbbbbbbb",this.stopArchive),this.globals.loading=!1,this.playbackUrl=n.ResponseData.playback_url,this.videoSrc=n.ResponseData.playback_url,this.archiveId=n.ResponseData.archive_id,this.videoInterviewCallback()})}videoInterviewCallback(){console.log({dfd:"fgdf"}),this.isVideoPermission?this.callViedoPlay():(this.isPermission=!1,this.isVideoPermission=!1,""!==this.archiveId&&(this.isPermission=!0,this.jobseeker.givePermissionVideo({archiveId:this.archiveId}).subscribe(t=>{console.log("Permission granted!!",t.ResponseCode),1===t.ResponseCode?(this.isVideoPermission=!0,this.callViedoPlay()):this.playVideo()},t=>{console.log({error:t})})))}playVideo(){var t=this;return(0,et.A)(function*(){t.isVideoPermission?t.callViedoPlay():(t.globals.loading=!0,setTimeout((0,et.A)(function*(){yield t.videoInterviewCallback()}),3e3))})()}callViedoPlay(){1==this.isVideoPermission&&(this.globals.loading=!1,this.isShowVideo=!0,this.videoSrc=this.playbackUrl,this.isShowStaticVideo=!1)}next(){var t=this;return(0,et.A)(function*(){t.isRetakeClick=!0,t.saveVideoRecord(),t.clock_flag=!0,t.rerecord_flag=!1,t.retakes_time=3})()}saveVideoRecord(){var t=this;const n=Math.floor(Number(this.videoRecordedTime)/60),o=Number(this.videoRecordedTime)%60;function r(u){return u.toString().padStart(2,"0")}let s=`${r(n)}:${r(o)}`;this.globals.loading=!0,this.question_index=this.question_index;const c=new FormData;c.append("video_path",""),c.append("jobseeker_id",this.jobseeker_id),c.append("question_id",this.question_list.id),c.append("video_time",s),c.append("retakes",this.retakes_time),c.append("skill_id",this.question_skill_id),c.append("job_id",this.job_id),c.append("archive_id",this.archiveId),c.append("recruiter_user_id",this.recruiter_user_id
1),this.route.snapshot.queryParams.client_user&&c.append("is_client_scheduled",!0),this.question_list.default_que&&c.append("default_que",!0),c.forEach(u=>{console.log(u)}),this.jobseeker.saveJobseekerVideo(c).subscribe(function(){var u=(0,et.A)(function*(h){if(1==h.ResponseCode){if(t.archiveId="",t.isShowVideo=!1,t.videoSrc=null,t.stertArchive=1,t.stopArchive=0,t.isShowStaticVideo=!1,t.auto_timer_record_flag=!1,t.isVideoPermission=!1,clearInterval(t.mainTimerInterval),clearInterval(t.overallData),clearInterval(t.minInterval),clearInterval(t.setTimelefImterval),clearInterval(t.videoTime),t.route.snapshot.queryParams.client_user)var v={jobseeker_id:t.jobseeker_id,is_client_scheduled:!0,client_user_id:t.route.snapshot.queryParams.client_user};else var g={jobseeker_id:t.jobseeker_id,skill_id:t.skill_id,job_id:t.job_id,recruiter_user_id:t.recruiter_user_id};1==t.finish_flag?t.jobseeker.finish_interview(t.route.snapshot.queryParams.client_user?v:g).subscribe(b=>{t.globals.loading=!1,1==b.ResponseCode&&t.navigationService.navigate("jobseeker/submitted-video",t.route,t.route.snapshot.queryParams.client_user?{queryParams:{jobseeker_id:t.jobseeker_id,client_user:t.route.snapshot.queryParams.client_user,job_id:b.ResponseData.job_id}}:{queryParams:{jobseeker_id:t.jobseeker_id,skill_id:t.route.snapshot.queryParams.skill_id,job_id:t.job_id,recruiter_user_id:t.recruiter_user_id}})}):t.rs.video_question_list_test(t.route.snapshot.queryParams.client_user?v:g).subscribe(b=>{if(t.globals.loading=!1,1==b.ResponseCode){let C=function(D){return D.toString().padStart(2,"0")};console.log({res:b}),t.question_list=[],t.question_list=b.ResponseData.question_details[t.question_index];const f=Math.floor(Number(t.question_list.time_limit)/60),R=Number(t.question_list.time_limit)%60;t.question_list.minute_time=`${C(f)}:${C(R)}`,t.question_skill_id=b.ResponseData.question_details[t.question_index]?b.ResponseData.question_details[t.question_index].skill_id:null,t.title=b.ResponseData.title,t.question_count=b.ResponseData.jobseeker_question_count,t.current_question_number=b.ResponseData.jobseeker_question_count-b.ResponseData.question_details.length+1,t.question_flag=!1,t.start_record_flag=!0,t.videoBlobUrl=null}})}});return function(h){return u.apply(this,arguments)}}())}retakesVideo(){if(console.log(this.question_list),clearInterval(this.mainTimerInterval),clearInterval(this.overallData),clearInterval(this.minInterval),clearInterval(this.setTimelefImterval),clearInterval(this.videoTime),this.rerecord_flag=!0,1==this.rerecord_flag&&1==this.isRetakeClick)if(this.isRetakeClick=!1,1==this.isVideoPermission)this.globals.loading=!0,this.jobseeker.retakesVideo({archiveId:this.archiveId,retakes:this.retakes_time,id:this.question_list.id}).subscribe(s=>{this.finish_flag=!1,this.globals.loading=!1,this.question_flag=!1,this.start_record_flag=!0,this.videoBlobUrl=null,this.isShowVideo=!1,this.videoSrc=null,this.stertArchive=1,this.stopArchive=0,this.isShowStaticVideo=!1,this.auto_timer_record_flag=!1,this.retakes_time=this.retakes_time-1,this.recordTimelef=0,0==this.retakes_time&&(this.rerecord_flag=!1)},s=>{this.globals.loading=!1,console.log(s)});else{this.isVideoPermission=!1,this.globals.loading=!0;var t=setInterval(()=>{1==this.isVideoPermission&&(this.jobseeker.retakesVideo({archiveId:this.archiveId,retakes:this.retakes_time,id:this.question_list.id}).subscribe(s=>{this.finish_flag=!1,this.globals.loading=!1,this.question_flag=!1,this.start_record_flag=!0,this.videoBlobUrl=null,this.isShowVideo=!1,this.videoSrc=null,this.stertArchive=1,this.stopArchive=0,this.isShowStaticVideo=!1,this.auto_timer_record_flag=!1,this.retakes_time=this.retakes_time-1,this.recordTimelef=0,0==this.retakes_time&&(this.rerecord_flag=!1)},s=>{this.globals.loading=!1,console.log(s)}),clearInterval(t))},1e3);if(this.route.snapshot.queryParams.client_user)var n={jobseeker_id:this.jobseeker_id,is_client_scheduled:!0,client_user_id:this.route.snapshot.queryParams.client_user};else var o={jobseeker_id:this.jobseeker_id,skill_id:this.skill_id,job_id:this.job_id,recruiter_user_id:this.recruiter_user_id};
1this.rs.video_question_list_test(this.route.snapshot.queryParams.client_user?n:o).subscribe(r=>{if(1==r.ResponseCode){let u=function(h){return h.toString().padStart(2,"0")};console.log({res:r}),this.question_list=[],this.question_list=r.ResponseData.question_details[this.question_index];const s=Math.floor(Number(this.question_list.time_limit)/60),c=Number(this.question_list.time_limit)%60;this.question_list.minute_time=`${u(s)}:${u(c)}`,this.question_skill_id=r.ResponseData.question_details[this.question_index]?r.ResponseData.question_details[this.question_index].skill_id:null,this.title=r.ResponseData.title,this.question_count=r.ResponseData.jobseeker_question_count,this.current_question_number=r.ResponseData.jobseeker_question_count-r.ResponseData.question_details.length+1,this.question_flag=!1,this.start_record_flag=!0,this.videoBlobUrl=null}})}}finish_interview(){var t=this;return(0,et.A)(function*(){t.saveVideoRecord(),t.question_flag=!0,t.isVideoRecording=!1})()}finishClose(){this.modalService.dismissAll(),window.close()}openTermsModal(){this.modalService.open(ps.TermsConditionsComponent,{centered:!0,size:"lg",scrollable:!0,windowClass:"modal-component"})}openPrivacyModal(){this.modalService.open(_s.PrivacyPolicyComponent,{centered:!0,size:"lg",scrollable:!0,windowClass:"modal-component"})}static \u0275fac=function(n){return new(n||i)(e.rXU(ka.T),e.rXU(e.gRc),e.rXU(Ue.Bq),e.rXU(Sr),e.rXU(Wi.up),e.rXU(Ve.nX),e.rXU(Yi.m),e.rXU(Qt.E),e.rXU(Ut.tw),e.rXU(uo.J),e.rXU(Fo.m),e.rXU(Ue.LY),e.rXU(Nl),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-video-interview"]],viewQuery:function(n,o){if(1&n&&(e.GBs(Z,5),e.GBs(k,5),e.GBs(H,5),e.GBs(ye,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.videoElement=r.first),e.mGM(r=e.lsd())&&(o.interviewDetailsModal=r.first),e.mGM(r=e.lsd())&&(o.interviewFinishedModal=r.first),e.mGM(r=e.lsd())&&(o.alreadyInterviewFinishedModal=r.first)}},standalone:!0,features:[e.aNF],decls:24,vars:11,consts:[["interviewDetailsModal",""],["interviewTips",""],["interviewFinished",""],["alreadyInterviewFinishedModal",""],["videoElement",""],["class","success-notifier",4,"ngIf"],[1,"video-interview-page","main-content-wrap"],[1,"interview-grid"],["class","qn-panel",4,"ngIf"],[1,"cam-container"],["class","custom-video-play-btn-container",3,"click",4,"ngIf"],["id","video-el","class","cam-video","controls","","autoplay","",4,"ngIf"],["id","videos",1,"video-interview"],["class","webcam-disconnected-banner alert alert-warning mb-0 rounded-0 text-center",4,"ngIf"],["id","publisher"],["class","cam-placeholder",4,"ngIf"],[1,"cam-options-overlay",3,"ngClass"],["class","interview-countdown",4,"ngIf"],["class","cam-actions",4,"ngIf"],[3,"loading"],[1,"success-notifier"],[1,"qn-panel"],[1,"qn-panel-head"],[1,"qn-skill-title"],[1,"fw-600"],[1,"h6","color-gray-3"],["class","link color-red h4 stop-interview-btn",3,"click",4,"ngIfSUrl","ngIf"],[1,"qn-panel-body"],[1,""],[1,"qn-count"],[1,"h1","fw-600","color-dark"],[1,"h4","fw-500","color-gray-3"],[1,"skill-qn-wrap"],[1,"skill-qn","fw-500","mb-1"],[1,"skill-qn-time","color-gray-3"],[1,"skill-qn-options"],["class","cr-btn cr-btn-blue",3,"disabled","click",4,"ngIf"],["class","cr-btn cr-btn-blue",3,"disabled",4,"ngIf"],["class","cr-btn cr-btn-blue",3,"click",4,"ngIf"],["class","cr-btn cr-btn-red",3,"click",4,"ngIf"],[1,"link","color-red","h4","stop-interview-btn",3,"click"],[1,"cr-btn","cr-btn-blue",3,"click","disabled"],[1,"cr-btn","cr-btn-blue",3,"disabled"],[1,"cr-btn","cr-btn-blue",3,"click"],[1,"cr-btn","cr-btn-red",3,"click"],[1,"custom-video-play-btn-container",3,"click"],[1,"custom-video-play-btn"],["width","24","height","30","viewBox","0 0 24 30","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0.541016 0.414062V29.5807L23.4577 14.9974L0.541016 0.414062Z","fill","white"],["id","video-el","controls","","autoplay","",1,"cam-video"],[3,"src"],[1,"webcam-disconnected-banner","alert","alert-warning","mb-0","rounded-0","text-center"],[1,"cam-placeholder"],["src","assets/images/backgrounds/girl-with-headphones.jpg","alt","Girl with headphones",1,"img-cover","img-inherit","
1img-fluid"],[1,"interview-countdown"],[1,"cam-actions"],[1,"remaining-time",2,"position","relative"],["units","minutes",3,"percent","options","maxPercent","showSubtitle","showTitle"],[2,"color","#ffffff","position","absolute","top","50%","left","50%","transform","translate(-50%, -50%)","white-space","nowrap"],[1,"material-icons","round","cam-action-btn","color-red","ml-4",3,"click"],[1,"modal-header"],[1,"modal-title"],["class","modal-body p-4 pt-0 overflow-auto interview-details-modal",4,"ngIf"],[1,"modal-footer","p-4"],[1,"modal-body","p-4","pt-0","overflow-auto","interview-details-modal"],[1,"interview-head"],[1,"color-teal-blue","fw-500"],[1,"interview-detail-grid"],[1,"interview-details"],[1,"paragraph-md","color-gray-3"],[1,"custom-check"],["id","agreementCheckbox","type","checkbox","name","agreementCheckbox",3,"change","checked"],["for","agreementCheckbox"],[1,"link","color-pure-black",3,"click"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"tips-wrap"],[1,"fw-600","mb-4"],[1,"tips-list","d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-3"],[1,"material-icons-outlined","check-circle-icon"],[1,"fw-500"],[1,"d-flex","align-items-center","flex-wrap","flex-sm-nowrap"],["href","javascript:void(0)",1,"cr-btn","cr-btn-blue","ml-4","cursor-pointer",3,"click"],[1,"modal-body","p-4","pt-0","overflow-auto"],[1,"d-flex","align-items-center","justify-content-end"],[1,"cr-btn","cr-btn-blue","ml-4","cursor-pointer",3,"click"]],template:function(n,o){1&n&&(e.DNE(0,Te,2,0,"div",5),e.j41(1,"section",6)(2,"div",7),e.DNE(3,st,31,12,"div",8),e.j41(4,"div",9),e.DNE(5,rt,4,0,"div",10)(6,He,3,1,"video",11)(7,Ne,2,1,"video",11),e.j41(8,"div",12),e.DNE(9,ht,2,0,"div",13),e.nrm(10,"div",14),e.k0s(),e.DNE(11,vt,2,0,"div",15),e.j41(12,"div",16),e.DNE(13,$e,2,1,"div",17)(14,Pe,7,6,"div",18),e.k0s()()()(),e.nrm(15,"app-loading-spinner",19),e.DNE(16,ve,7,2,"ng-template",null,0,e.C5r)(18,Ce,43,0,"ng-template",null,1,e.C5r)(20,lt,11,1,"ng-template",null,2,e.C5r)(22,dt,11,1,"ng-template",null,3,e.C5r)),2&n&&(e.Y8G("ngIf",o.isVisible),e.R7$(3),e.Y8G("ngIf",o.question_list),e.R7$(2),e.Y8G("ngIf",!o.isShowVideo&&o.isShowStaticVideo),e.R7$(),e.Y8G("ngIf",o.isShowVideo),e.R7$(),e.Y8G("ngIf",!o.isShowVideo&&o.isShowStaticVideo),e.R7$(2),e.Y8G("ngIf",o.webcamDisconnected),e.R7$(2),e.Y8G("ngIf",o.is_show_image&&o.question_list||1==o.cancel_interview),e.R7$(),e.Y8G("ngClass",!o.start_record_flag&&"d-none"),e.R7$(),e.Y8G("ngIf",!o.clock_flag&&!o.device_connection),e.R7$(),e.Y8G("ngIf",!o.auto_timer_record_flag&&1==o.isShowTimer),e.R7$(),e.Y8G("loading",o.globals.loading))},dependencies:[qe.MD,qe.YU,qe.bT,ne.YN,ne.X1,so.rz,so.VE,di.N,Ue.XZ,Ue.Pv,Ue.n8,Ue.zr,Ue.HC,Ut._B],styles:['.video-interview-page[_ngcontent-%COMP%]{height:100%}.interview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:700px 1fr;grid-gap:15px;height:100%}.interview-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%;border-radius:10px;overflow:hidden}.qn-panel[_ngcontent-%COMP%]{background-color:var(--pure-white);padding:30px 25px;border:1px solid var(--cr-gray-tint-8);overflow-y:auto;display:flex;flex-direction:column}.qn-panel-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:40px}.qn-panel-body[_ngcontent-%COMP%]{overflow-y:auto}.qn-count[_ngcontent-%COMP%]{margin-bottom:20px}.skill-qn-options[_ngcontent-%COMP%]{margin-top:30px;display:flex;align-items:center}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:15px}ul.skill-qn-list[_ngcontent-%COMP%]{margin-top:30px;position:relative}ul.skill-qn-list[_ngcontent-%COMP%]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#ffffff80;z-index:1}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-weight:500;padding:5px 10px;-webkit-user-select:none;user-select:none}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid var(--cr-gray-tint-8)}.sub-qn-head[_ngcontent-%COMP%]{border:none;background:transparent;display:flex;align-items:center}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:8px 0;margin-bottom:0}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-8)}.sub-qn-list[_ngcontent-%COMP%]   .sub-qn-wrap[_ngcontent-%COMP%]{margin-left:20px}.sub-qn[_ngcontent-%COMP%]{margin-bottom:5px}.cam-container[_ngcontent-%COMP%]{position:relative}.cam-blur[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:0;top:0;width:100%;height:100%;background-color:#031d1f33;z-index:2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:inherit}.cam-placeholder[_ngcontent-%COMP%]{height:100%;border-radius:10px;overflow:hidden}.cam-placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.cam-options-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.cam-video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px);z-index:99}.interview-countdown[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;font-size:12rem;transform:translate(-50%,-50%);color:var(--pure-white);width:20rem;height:20rem;display:flex;align-items:center;justify-content:center;background-color:#ffffff80;border-radius:50%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-weight:700;-webkit-user-select:none;user-select:none}.cam-actions[_ngcontent-%COMP%]{position:absolute;bottom:20px;width:100%;display:flex;justify-content:center;align-items:center;padding:0 20px}.remaining-time[_ngcontent-%COMP%]{width:80px;height:80px}.cam-action-btn[_ngcontent-%COMP%]{width:70px;height:70px;display:flex;align-items:center;justify-content:center;transition:.3s all;background-color:var(--pure-white);border:1px solid transparent;font-size:30px}.cam-action-btn[_ngcontent-%COMP%]:hover{background-color:#e3e3e3}ul.tips-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-weight:400;margin-bottom:15px;line-height:1.2}.check-circle-icon[_ngcontent-%COMP%]{--icon-sizing: 22px;width:var(--icon-sizing);height:var(--icon-sizing);color:#10957e}.check-circle-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:inherit;height:inherit}.custom-video-play-btn-container[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;width:100%;height:100%;z-index:999;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center}.custom-video-play-btn[_ngcontent-%COMP%]{width:100px;height:100px;background:#ffffff80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:200px;z-index:6;position:relative;border:0}.custom-video-play-btn[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-left:7px}.success-notifier[_ngcontent-%COMP%]{position:fixed;bottom:30px;left:30px;border:1px solid rgba(0,0,0,.2);border-radius:.25rem;padding:2rem;color:#fff;border-radius:7px;font-size:16px;background:#5eb6cf;box-shadow:0 5px 10px -5px #00000080;transition:all .8s ease-in-out;z-index:9}  .modal-component .modal-header{display:flex;align-items:center;justify-content:space-between;padding:25px;color:var(--f-navy-blue);font-weight:600}  .modal-component .modal-content{border-radius:30px}  .modal-component .modal-dialog .modal-body{padding:15px!important}  .modal-component .f-spacing-bottom-small{padding-top:0!important}@media screen and (max-width: 1439px){.interview-grid[_ngcontent-%COMP%]{grid-template-columns:500px 1fr}}@media screen and (max-width: 991px){.interview-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto}.interview-grid[_ngcontent-%COMP%]   .cam-container[_ngcontent-%COMP%]{height:auto;aspect-ratio:16 / 9;margin-bottom:20px}.qn-panel-head[_ngcontent-%COMP%]{margin-bottom:20px}}@media screen and (max-width: 767px){.interview-grid[_ngcontent-%COMP%]   .qn-panel[_ngcontent-%COMP%]{padding:20px}.interview-countdown[_ngcontent-%COMP%]{width:15rem;height:15rem;font-size:8rem}.remaining-time[_ngcontent-%COMP%]{width:60px;height:60px}.cam-action-btn[_ngcontent-%COMP%]{width:50px;height:50px}}@media screen and (max-width: 575px){.interview-grid[_ngcontent-%COMP%]   .qn-panel[_ngcontent-%COMP%]{padding:15px}.qn-panel-head[_ngcontent-%COMP%]{flex-direction:column-reverse}.qn-panel-head[_ngcontent-%COMP%]   .stop-interview-btn[_ngcontent-%COMP%]{font-size:16px;margin-bottom:10px}.interview-countdown[_ngcontent-%COMP%]{width:10rem;height:10rem;font-size:6rem}.remaining-time[_ngcontent-%COMP%]{width:40px;height:40px}.cam-action-btn[_ngcontent-%COMP%]{width:30px;height:30px;font-size:14px}.cam-actions[_ngcontent-%COMP%]{bottom:10px}.skill-qn-options[_ngcontent-%COMP%]{flex-wrap:wrap}.skill-qn-options[_ngcontent-%COMP%]   .cr-btn[_ngcontent-%COMP%]{width:100%}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}}']}
1)}return i})();var Ct=ze(51653),Ii=ze.n(Ct);let _i=(()=>{class i{sanitizer;constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustResourceUrl(t):""}static \u0275fac=function(n){return new(n||i)(e.rXU(Wi.up,16))};static \u0275pipe=e.EJ8({name:"safeUrl",type:i,pure:!0,standalone:!0})}return i})();var ln=ze(1247),ai=ze(22881),Fn=ze(63266),Pn=ze(61622),ni=ze(49903),ji=ze(49733),Oi=ze(85516),cn=ze(93664),Zi=ze(81249);const So=["resume"],wa=["visa_proof"],xa=["video"],Ml=["resume_show"],Er=["visa_proof_show"],Rr=["showDocsModal"],Tr=["send_otp_modal"],Ol=["avaliabilityOverrideModel"],Ca=["editAvailabilityModal"],Ai=["cofirmationModal"],Al=["deleteDocModal"],fs=["shareInviteModal"],Gl=["shareVideoInterviewModal"],ja=["openAccountModal"],Fi=["image_crop"],Nn=i=>({active:i}),dn=()=>["(regions)"],un=i=>({country:i}),Gi=(i,a)=>({types:i,componentRestrictions:a}),Jn=()=>({cursor:"not-allowed"}),Qi=()=>[],Fa=(i,a,t)=>({itemsPerPage:i,currentPage:a,totalItems:t}),ms=()=>["/jobseeker/video-interview"];function Ll(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",75),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.toggleEditProfile(!0))}),e.j41(1,"i",76),e.EFF(2," edit "),e.k0s()()}}function ql(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",75),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.toggleCloseProfile(!1))}),e.j41(1,"i",76),e.EFF(2," close "),e.k0s()()}}function Vu(i,a){if(1&i&&(e.j41(0,"div",77),e.nrm(1,"img",78),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.FS9("src",t.globals.profile,e.B4B)}}function Bu(i,a){if(1&i&&(e.j41(0,"label",79),e.nrm(1,"img",78),e.j41(2,"div",80)(3,"i",81),e.EFF(4,"add_photo_alternate"),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(),e.FS9("src",t.globals.profile,e.B4B)}}function $u(i,a){if(1&i&&(e.j41(0,"div",84)(1,"i",81),e.EFF(2,"flag"),e.k0s(),e.j41(3,"div",85)(4,"div",86),e.EFF(5,"Visa"),e.k0s(),e.j41(6,"div",87),e.EFF(7),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(7),e.SpI(" ",t.userData.visa_status_name," ")}}function Yu(i,a){if(1&i&&(e.j41(0,"div",84)(1,"i",81),e.EFF(2,"public"),e.k0s(),e.j41(3,"div",85)(4,"div",86),e.EFF(5,"Location"),e.k0s(),e.j41(6,"div",87),e.EFF(7),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(7),e.SpI(" ",null==t.userData?null:t.userData.current_location," ")}}function Ju(i,a){if(1&i&&(e.j41(0,"div",84)(1,"i",81),e.EFF(2,"account_box"),e.k0s(),e.j41(3,"div",85)(4,"div",86),e.EFF(5,"Recruiter"),e.k0s(),e.j41(6,"div",87),e.EFF(7),e.nI1(8,"titlecase"),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(7),e.SpI(" ",e.bMT(8,1,null==t.userData?null:t.userData.recruiter_name)," ")}}function Uu(i,a){if(1&i&&(e.j41(0,"a",93),e.nrm(1,"img",94),e.k0s()),2&i){const t=e.XpG(4);e.FS9("href",t.userData.twitter,e.B4B)}}function Xu(i,a){if(1&i&&(e.j41(0,"a",93),e.nrm(1,"img",95),e.k0s()),2&i){const t=e.XpG(4);e.FS9("href",t.userData.facebook,e.B4B)}}function zu(i,a){if(1&i&&(e.j41(0,"a",93),e.nrm(1,"img",96),e.k0s()),2&i){const t=e.XpG(4);e.FS9("href",t.userData.linkedin,e.B4B)}}function Hu(i,a){if(1&i&&(e.j41(0,"div",84)(1,"i",81),e.EFF(2,"tag"),e.k0s(),e.j41(3,"div",85)(4,"div",86),e.EFF(5,"Social Media"),e.k0s(),e.j41(6,"div",87),e.DNE(7,Uu,2,1,"a",92)(8,Xu,2,1,"a",92)(9,zu,2,1,"a",92),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(7),e.Y8G("ngIf",null!=t.userData.twitter),e.R7$(),e.Y8G("ngIf",null!=t.userData.facebook),e.R7$(),e.Y8G("ngIf",null!=t.userData.linkedin)}}function Wu(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",82)(1,"div",83)(2,"div",84)(3,"i",81),e.EFF(4,"smartphone"),e.k0s(),e.j41(5,"div",85)(6,"div",86),e.EFF(7,"Phone"),e.k0s(),e.j41(8,"div",87)(9,"a",88),e.EFF(10),e.k0s()()()(),e.DNE(11,$u,8,1,"div",89)(12,Yu,8,1,"div",89)(13,Ju,9,3,"div",89)(14,Hu,10,3,"div",89),e.j41(15,"div",90)(16,"button",91),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.shareInviteLink())}),e.EFF(17," Refer & Invite "),e.k0s()()()()}if(2&i){const t=e.XpG(2);e.R7$(9),e.Mz_("href","tel:",t.userData.phone_code+""+t.userData.phone,"",e.B4B),e.R7$(),e.JRh((null==t.userData?null:t.userData.phone_code)+" "+(null==t.userData?null:t.userData.phone)),e.R7$(),e.Y8G("ngIf",t.userData.visa_status_name&&"in"!==t.country),e.R7$(),e.Y8G("ngIf",null==t.userData?null:t.userData.address),e.R7$(),e.Y8G("ngIf",null==t.userData?null:t.userData.recruiter_name),e.R7$(),e.Y8G("ngIf",null!=t.userData.twitter||null!=t.userData.facebook||null!=t.userData.linkedin)}}function Zu(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," First name is required. "),e.k0s())}function Qu(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Zu,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.fname.errors.required)}}function Ku(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Last name is required. "),e.k0s())}function ep(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Last name must contain only letters. "),e.k0s())}function tp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Ku,4,0,"div",119)(2,ep,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.lname.errors.required),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.lname.errors.onlySpaces)}}function ip(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number is required! "),e.k0s())}function np(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number is already in use. "),e.k0s())}function op(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number must be 10 digits. "),e.k0s())}function rp(i,a){if(1&i&&(e.j41(0,"div",122),e.DNE(1,ip,4,0,"div",119)(2,np,4,0,"div",119)(3,op,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.phone.errors.required),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.phone.errors.isUnique),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.phone.errors.isValidPhone)}}function ap(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Location is required! "),e.k0s())}function sp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,ap,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.add.errors.required)}}function lp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email is required!. "),e.k0s())}function cp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email must be a valid email address "),e.k0s())}function dp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email is already in use. Please enter another email address "),e.k0s())}function up(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,lp,4,0,"div",119)(2,cp,4,0,"div",119)(3,dp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.email.errors.required),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.email.errors.email),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.email.errors.isUnique)}}function pp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Job Title is required!. "),e.k0s())}function _p(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,pp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.job_title.errors.required)}}function hp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Current location is required! "),e.k0s())}function fp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,hp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.location.errors.required)}}function mp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Visa Status is required!. "),e.k0s())}function gp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,mp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.visa.errors.required)}}function vp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",99)(1,"ng-select",123,27),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(3);return e.DH7(r.visaType,o)||(r.visaType=o),e.Njj(o)}),e.k0s(),e.DNE(3,gp,2,1,"div",102),e.k0s()}if(2&i){const t=e.XpG(3);e.R7$(),e.Y8G("items",t.visa_status)("clearable",!1)("searchable",!1),e.R50("ngModel",t.visaType),e.R7$(2),e.Y8G("ngIf",t.editJobSeeker.controls.visa.invalid&&(t.editJobSeeker.controls.visa.dirty||t.editJobSeeker.controls.visa.touched))}}function bp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Skill is required!. "),e.k0s())}function yp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,bp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.skills.errors.required)}}function kp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Recruiter is required!. "),e.k0s())}function wp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,kp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.rec.errors.required)}}function xp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",97)(1,"form",98)(2,"div",99)(3,"div",100)(4,"input",101),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.charactersOnly(o))}),e.k0s()(),e.DNE(5,Qu,2,1,"div",102),e.k0s(),e.j41(6,"div",99)(7,"div",100)(8,"input",103),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.charactersOnly(o))}),e.k0s()(),e.DNE(9,tp,3,2,"div",102),e.k0s(),e.j41(10,"div",104)(11,"div",105),e.nrm(12,"ng-select",106,25),e.k0s(),e.j41(14,"div",107)(15,"input",108,26),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(2);
1return e.Njj(r.checkUniqPhone(o))})("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.validatePhone(o))}),e.k0s()()(),e.DNE(17,rp,4,3,"div",109),e.j41(18,"div",99)(19,"input",110),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.alphaNumberOnly(o))})("onAddressChange",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.addAddressChange(o.formatted_address))}),e.k0s(),e.DNE(20,sp,2,1,"div",102),e.k0s(),e.j41(21,"div",99)(22,"input",111),e.bIt("focusout",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.checkUniqEmail(o))}),e.k0s(),e.DNE(23,up,4,3,"div",102),e.k0s(),e.j41(24,"div",99)(25,"input",112),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.charactersOnly(o))}),e.k0s(),e.DNE(26,_p,2,1,"div",102),e.k0s(),e.j41(27,"div",99)(28,"input",113),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.alphaNumberOnly(o))})("onAddressChange",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.locationAddressChange(o.formatted_address))}),e.k0s(),e.DNE(29,fp,2,1,"div",102),e.k0s(),e.DNE(30,vp,4,5,"div",114),e.j41(31,"div",99),e.nrm(32,"ng-select",115,27),e.DNE(34,yp,2,1,"div",102),e.k0s(),e.j41(35,"div",99)(36,"ng-select",116,28),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.recType,o)||(r.recType=o),e.Njj(o)}),e.k0s(),e.DNE(38,wp,2,1,"div",102),e.k0s()(),e.j41(39,"button",117),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.Update_Profile())}),e.EFF(40," Update "),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("formGroup",t.editJobSeeker),e.R7$(4),e.Y8G("ngIf",t.editJobSeeker.controls.fname.invalid&&(t.editJobSeeker.controls.fname.dirty||t.editJobSeeker.controls.fname.touched)),e.R7$(4),e.Y8G("ngIf",t.editJobSeeker.controls.lname.invalid&&(t.editJobSeeker.controls.lname.dirty||t.editJobSeeker.controls.lname.touched)),e.R7$(3),e.Y8G("items",t.phone_code)("hideSelected",!0)("clearable",!1)("searchable",!1),e.R7$(5),e.Y8G("ngIf",t.editJobSeeker.controls.phone.invalid&&(t.editJobSeeker.controls.phone.dirty||t.editJobSeeker.controls.phone.touched)),e.R7$(2),e.Y8G("options",e.l_i(29,Gi,e.lJ4(26,dn),e.eq3(27,un,t.country))),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.add.invalid&&(t.editJobSeeker.controls.add.dirty||t.editJobSeeker.controls.add.touched)),e.R7$(3),e.Y8G("ngIf",t.editJobSeeker.controls.email.invalid&&(t.editJobSeeker.controls.email.dirty||t.editJobSeeker.controls.email.touched)),e.R7$(3),e.Y8G("ngIf",t.editJobSeeker.controls.job_title.invalid&&(t.editJobSeeker.controls.job_title.dirty||t.editJobSeeker.controls.job_title.touched)),e.R7$(2),e.Y8G("options",e.l_i(35,Gi,e.lJ4(32,dn),e.eq3(33,un,t.country))),e.R7$(),e.Y8G("ngIf",t.editJobSeeker.controls.location.invalid&&(t.editJobSeeker.controls.location.dirty||t.editJobSeeker.controls.location.touched)),e.R7$(),e.Y8G("ngIf","in"!==t.country),e.R7$(2),e.Y8G("items",t.allskills)("clearable",!1)("multiple",!0)("addTag",t.addSkillPromise),e.R7$(2),e.Y8G("ngIf",t.editJobSeeker.controls.skills.invalid&&(t.editJobSeeker.controls.skills.dirty||t.editJobSeeker.controls.skills.touched)),e.R7$(2),e.Y8G("items",t.allrec)("clearable",!1)("searchable",!1),e.R50("ngModel",t.recType),e.R7$(2),e.Y8G("ngIf",t.editJobSeeker.controls.rec.invalid&&(t.editJobSeeker.controls.rec.dirty||t.editJobSeeker.controls.rec.touched)),e.R7$(),e.Y8G("disabled",t.isEnableNext)}}function Cp(i,a){if(1&i&&(e.j41(0,"div",153),e.EFF(1),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function jp(i,a){if(1&i&&(e.j41(0,"div",133)(1,"div",151),e.DNE(2,Cp,2,1,"div",152),e.k0s()()),2&i){const t=e.XpG(4);e.R7$(2),e.Y8G("ngForOf",t.userData.skill_name)}}function Fp(i,a){1&i&&(e.j41(0,"div",133)(1,"div",151)(2,"div",154),e.EFF(3,"No skills available"),e.k0s()()())}function Sp(i,a){if(1&i&&(e.j41(0,"a",155),e.EFF(1),e.k0s()),2&i){const t=e.XpG(4);e.FS9("href",t.shareJobseekerLink,e.B4B),e.R7$(),e.JRh(t.shareJobseekerLink)}}function Ep(i,a){if(1&i){const t=e.RV6();e.j41(0,"span",156),e.EFF(1),e.j41(2,"div",157)(3,"input",158),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.removeWhiteSpace(o))}),e.k0s()()()}if(2&i){const t=e.XpG(4);e.R7$(),e.SpI(" ",t.shareJobseekerEditedLink," ")}}function Rp(i,a){if(1&i){const t=e.RV6();e.j41(0,"i",143),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return o.isEditLink=!o.isEditLink,e.Njj(o.shareProfileForm.controls.sharedInput.setValue(o.userData.unique_user_name))}),e.EFF(1,"edit"),e.k0s()}}function Tp(i,a){if(1&i){const t=e.RV6();e.j41(0,"i",143),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.isEditLink=!o.isEditLink)}),e.EFF(1," close "),e.k0s()}}function Ip(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Link is required "),e.k0s())}function Dp(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Ip,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.shareProfileForm.controls.sharedInput.errors.required)}}function Pp(i,a){1&i&&(e.j41(0,"div",118)(1,"div",120)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Unique name is already exists "),e.k0s()())}function Np(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",159),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.setShareProfileLink())}),e.EFF(1),e.k0s()}if(2&i){const t=e.XpG(4);e.Y8G("ngStyle",t.isSaveBtn?null:e.lJ4(2,Jn)),e.R7$(),e.SpI(" ",t.isSaveBtn?"Save":"Please wait.."," ")}}function Mp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",128)(1,"div",137)(2,"i",131),e.EFF(3,"account_circle"),e.k0s(),e.EFF(4," Employer Details "),e.k0s(),e.j41(5,"div",133)(6,"div",151)(7,"div",160)(8,"div")(9,"img",161),e.bIt("error",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.globals.handleImageFailed(o))}),e.k0s(),e.j41(10,"div",162)(11,"span",163),e.EFF(12," play_circle "),e.k0s()()(),e.j41(13,"div",164)(14,"h4",165),e.EFF(15),e.nI1(16,"titlecase"),e.k0s(),e.j41(17,"h6",166),e.EFF(18),e.k0s(),e.j41(19,"h6",167)(20,"i",168),e.EFF(21," stay_current_portrait "),e.k0s(),e.EFF(22),e.k0s(),e.j41(23,"h6",169)(24,"i",168),e.EFF(25," corporate_fare "),e.k0s(),e.EFF(26),e.k0s()()()()()()}if(2&i){const t=e.XpG(4);e.R7$(9),e.FS9("src",null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.profile,e.B4B),e.R7$(6),e.SpI(" ",e.bMT(16,5,null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.first_name)," "),e.R7$(3),e.SpI(" ",null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.email," "),e.R7$(4),e.SpI("",(null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.phone_code)+" "+(null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.phone)," "),e.R7$(4),e.SpI("",null==t.userData||null==t.userData.vendor_detail?null:t.userData.vendor_detail.vendor_address," ")}}function Op(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",173)(1,"button",174),e.nrm(2,"img",175),e.j41(3,"div",162)(4,"span",163),e.EFF(5," play_circle "),e.k0s()()(),e.j41(6,"div",164)(7,"h6",176),e.EFF(8),e.k0s(),e.j41(9,"div",130)(10,"a",177),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(5);return e.Njj(r.redirectVideoInterview(o))}),e.EFF(11," Full Interview "),e.k0s(),e.j41(12,"a",178),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(5),s=e.sdS(13);return e.Njj(r.openCondencedModal(s,"medium",o))}
1),e.EFF(13," Condensed Interview "),e.k0s()()()()}if(2&i){const t=a.$implicit;e.R7$(8),e.SpI(" ",null==t?null:t.job_title," ")}}function Ap(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",128)(1,"div",137)(2,"span",170)(3,"i",131),e.EFF(4," video_camera_front "),e.k0s(),e.EFF(5," Submitted Interviews "),e.k0s(),e.j41(6,"span",171),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.shareVideoInterview())}),e.EFF(7," share "),e.k0s()(),e.j41(8,"div",133)(9,"div",151),e.DNE(10,Op,14,1,"div",172),e.k0s()()()}if(2&i){const t=e.XpG(4);e.R7$(10),e.Y8G("ngForOf",t.showVideoDetails)}}function Gp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",179)(1,"div",100)(2,"div",180),e.EFF(3),e.k0s(),e.j41(4,"div",181)(5,"h6",182),e.EFF(6),e.nI1(7,"titlecase"),e.k0s(),e.j41(8,"p",183),e.EFF(9),e.k0s()()(),e.j41(10,"div",100)(11,"a",184),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(4),s=e.sdS(31);return e.Njj(r.edit_education(s,"medium",o))}),e.j41(12,"span",185),e.EFF(13," edit "),e.k0s()(),e.j41(14,"a",186),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(4),s=e.sdS(41);return e.Njj(r.openModal(s,"small",o.id))}),e.j41(15,"span",187),e.EFF(16," delete "),e.k0s()()()()}if(2&i){const t=a.$implicit;e.R7$(3),e.SpI(" ",t.date_from+" - "+t.date_to," "),e.R7$(3),e.SpI(" ",e.bMT(7,3,t.school)," "),e.R7$(3),e.SpI(" ",t.degree," ")}}function Lp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",125)(1,"div",126)(2,"h1",127),e.EFF(3,"My Account"),e.k0s()(),e.j41(4,"div",128)(5,"div",129)(6,"div",130)(7,"i",131),e.EFF(8," feedback "),e.k0s(),e.EFF(9," OVERVIEW "),e.k0s(),e.j41(10,"button",132),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(37);return e.Njj(o.openModal(r,"medium"))}),e.j41(11,"span",81),e.EFF(12,"edit"),e.k0s()()(),e.j41(13,"div",133),e.nrm(14,"p",134),e.k0s()(),e.j41(15,"div",128)(16,"div",129)(17,"div",130)(18,"i",131),e.EFF(19," psychology "),e.k0s(),e.EFF(20," Key Skills "),e.k0s(),e.j41(21,"button",135),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(39);return e.Njj(o.openSkillEditModal(r,"medium"))}),e.j41(22,"span",81),e.EFF(23,"edit"),e.k0s()()(),e.DNE(24,jp,3,1,"div",136)(25,Fp,4,0,"div",136),e.k0s(),e.j41(26,"div",128)(27,"div",137)(28,"i",131),e.EFF(29,"link"),e.k0s(),e.EFF(30," Profile Link "),e.k0s(),e.j41(31,"div",138)(32,"div",139)(33,"div",130),e.DNE(34,Sp,2,2,"a",140)(35,Ep,4,1,"span",141),e.j41(36,"div",142)(37,"i",143),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.copyMessage())}),e.EFF(38,"content_copy"),e.k0s(),e.DNE(39,Rp,2,0,"i",144)(40,Tp,2,0,"i",144),e.k0s()(),e.DNE(41,Dp,2,1,"div",102)(42,Pp,5,0,"div",102),e.k0s(),e.DNE(43,Np,2,3,"button",145),e.k0s()(),e.DNE(44,Mp,27,7,"div",146)(45,Ap,11,1,"div",146),e.j41(46,"div",128)(47,"div",147)(48,"div",130)(49,"i",131),e.EFF(50," school "),e.k0s(),e.EFF(51," Education "),e.k0s(),e.j41(52,"p",148),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(35);return e.Njj(o.openModal(r,"medium"))}),e.EFF(53," + "),e.k0s()(),e.j41(54,"div",133)(55,"div",149),e.DNE(56,Gp,17,5,"div",150),e.k0s()()()()}if(2&i){const t=e.XpG(3);e.R7$(14),e.Y8G("innerHTML",null==t.userData.overview?"No content to display":t.lineBreak(t.userData.overview),e.npT),e.R7$(10),e.Y8G("ngIf",0!=(null==t.userData.skill_name?null:t.userData.skill_name.length)),e.R7$(),e.Y8G("ngIf",0==(null==t.userData.skill_name?null:t.userData.skill_name.length)),e.R7$(6),e.Y8G("formGroup",t.shareProfileForm),e.R7$(3),e.Y8G("ngIf",!t.isEditLink),e.R7$(),e.Y8G("ngIf",t.isEditLink),e.R7$(4),e.Y8G("ngIf",!t.isEditLink),e.R7$(),e.Y8G("ngIf",t.isEditLink),e.R7$(),e.Y8G("ngIf",t.shareProfileForm.controls.sharedInput.invalid&&t.shareProfileForm.controls.sharedInput.touched&&t.isEditLink),e.R7$(),e.Y8G("ngIf",(null==t.shareProfileForm.controls.sharedInput.errors?null:t.shareProfileForm.controls.sharedInput.errors.isUniqueLink)&&t.isEditLink),e.R7$(),e.Y8G("ngIf",t.isEditLink),e.R7$(),e.Y8G("ngIf",null==t.userData?null:t.userData.vendor_detail),e.R7$(),e.Y8G("ngIf",0!=(null==t.showVideoDetails?null:t.showVideoDetails.length)),e.R7$(11),e.Y8G("ngForOf",null==t.userData?null:t.userData.education)}}function qp(i,a){1&i&&e.DNE(0,Lp,57,14,"ng-template",124)}function Vp(i,a){if(1&i&&(e.qex(0),e.EFF(1),e.bVm()),2&i){const t=a.$implicit;e.R7$(),e.Lme(" ",t.from_time," - ",t.to_time," ")}}function Bp(i,a){if(1&i){const t=e.RV6();e.j41(0,"tr")(1,"td",196),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"td",196),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",196),e.DNE(8,Vp,2,2,"ng-container",195),e.k0s(),e.j41(9,"td",196)(10,"button",197),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.edit_time_slot(o))}),e.j41(11,"span",81),e.EFF(12," edit "),e.k0s()(),e.j41(13,"button",198),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.delete_time_slot(o))}),e.j41(14,"span",81),e.EFF(15," delete "),e.k0s()()()()}if(2&i){const t=a.$implicit;e.R7$(2),e.JRh(e.i5U(3,3,t.key,"d MMM, y")),e.R7$(3),e.JRh(e.i5U(6,6,t.key,"EEEE")),e.R7$(3),e.Y8G("ngForOf",t.value)}}function $p(i,a){if(1&i&&(e.j41(0,"tbody"),e.DNE(1,Bp,16,9,"tr",195),e.nI1(2,"keyvalue"),e.k0s()),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,t.show_availability))}}function Yp(i,a){1&i&&(e.j41(0,"tbody")(1,"tr",199)(2,"td",200),e.EFF(3,"No Record Found"),e.k0s()()())}function Jp(i,a){if(1&i&&(e.j41(0,"table",193)(1,"thead")(2,"tr")(3,"th"),e.EFF(4,"Date"),e.nrm(5,"span",194),e.k0s(),e.j41(6,"th"),e.EFF(7,"Day"),e.nrm(8,"span",194),e.k0s(),e.j41(9,"th"),e.EFF(10," Available Time"),e.nrm(11,"span",194),e.k0s(),e.j41(12,"th"),e.EFF(13,"Action"),e.nrm(14,"span",194),e.k0s()()(),e.DNE(15,$p,3,3,"tbody",71)(16,Yp,4,0,"tbody",71),e.k0s()),2&i){const t=e.XpG(4);e.Y8G("dtOptions",t.dtOptionsAvailability),e.R7$(15),e.Y8G("ngIf",0!=t.show_availability.length),e.R7$(),e.Y8G("ngIf",0==t.show_availability.length)}}function Up(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",188)(1,"h1",189),e.EFF(2,"Availability"),e.k0s(),e.j41(3,"button",190),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(15);return e.Njj(o.open_modal(r,"small"))}),e.EFF(4," Add Availability "),e.k0s()(),e.j41(5,"div",191),e.DNE(6,Jp,17,3,"table",192),e.k0s()}if(2&i){const t=e.XpG(3);e.R7$(6),e.Y8G("ngIf",t.availData)}}function Xp(i,a){1&i&&e.DNE(0,Up,7,1,"ng-template",124)}function zp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",207)(1,"input",219),e.bIt("change",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.changeAvailability("1"))}),e.k0s(),e.j41(2,"label",220),e.EFF(3,"Available"),e.k0s()()}}function Hp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",207)(1,"input",219),e.bIt("change",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.changeAvailability("1"))}),e.k0s(),e.j41(2,"label",220),e.EFF(3,"Available"),e.k0s()()}}function Wp(i,a){1&i&&(e.j41(0,"div",228)(1,"div",120)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Date is required "),e.k0s()())}function Zp(i,a){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",213)(2,"div",217)(3,"div",221)(4,"div",222)(
15,"div",223),e.nrm(6,"input",224,30),e.j41(8,"button",225),e.bIt("click",function(){e.eBV(t);const o=e.sdS(7);return e.Njj(o.toggle())}),e.j41(9,"span",226),e.EFF(10," calendar_month "),e.k0s()()()()()()(),e.DNE(11,Wp,5,0,"div",227),e.k0s()}if(2&i){const t=e.XpG(4);e.R7$(6),e.Y8G("readonly",null!=(null==t.userData?null:t.userData.hired_start_date)),e.R7$(2),e.Y8G("disabled",null!=(null==t.userData?null:t.userData.hired_start_date)),e.R7$(3),e.Y8G("ngIf",null==t.EmploymentType.controls.project_end_date.errors?null:t.EmploymentType.controls.project_end_date.errors.isProjectDateErr)}}function Qp(i,a){if(1&i&&(e.j41(0,"div",229)(1,"div",230),e.nrm(2,"input",231),e.j41(3,"label",232),e.EFF(4," Will Move For Right Project "),e.k0s()()()),2&i){const t=e.XpG(4);e.R7$(2),e.Y8G("checked",t.EmploymentType.controls.will_move_project.value)}}function Kp(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required. "),e.k0s())}function e_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Kp,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.f_min.errors.required)}}function t_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",244),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("f"),e.Njj(r.checkMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,e_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Minimum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.f_min.invalid&&(t.EmploymentType.controls.f_min.dirty||t.EmploymentType.controls.f_min.touched))}}function i_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required. "),e.k0s())}function n_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,i_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.f_max.errors.required)}}function o_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",245),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("f"),e.Njj(r.checkMinRate(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,n_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Maximum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.f_max.invalid&&(t.EmploymentType.controls.f_max.dirty||t.EmploymentType.controls.f_max.touched))}}function r_(i,a){1&i&&(e.j41(0,"div",118)(1,"div",246)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function a_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required. "),e.k0s())}function s_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,a_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.c_min.errors.required)}}function l_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",247),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("c"),e.Njj(r.checkContractMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,s_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Minimum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.c_min.invalid&&(t.EmploymentType.controls.c_min.dirty||t.EmploymentType.controls.c_min.touched))}}function c_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required. "),e.k0s())}function d_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,c_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.c_max.errors.required)}}function u_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",248),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("c"),e.Njj(r.checkContractMinRate(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,d_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Maximum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.c_max.invalid&&(t.EmploymentType.controls.c_max.dirty||t.EmploymentType.controls.c_max.touched))}}function p_(i,a){1&i&&(e.j41(0,"div",118)(1,"div",246)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function __(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required. "),e.k0s())}function h_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,__,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.p_min.errors.required)}}function f_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",249),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("p"),e.Njj(r.checkParttimeMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,h_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Minimum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.p_min.invalid&&(t.EmploymentType.controls.p_min.dirty||t.EmploymentType.controls.p_min.touched))}}function m_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required. "),e.k0s())}function g_(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,m_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(6);e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.p_max.errors.required)}}function v_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",243)(1,"div",157)(2,"input",250),e.bIt("change",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(5);return r.set_validation("p"),e.Njj(r.checkParttimeMinRate(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.keyPressNumbers(o))})("focus",function(o){e.eBV(t);const r=e.XpG(5);return e.Njj(r.inputFocus(o))}),e.k0s(),e.DNE(3,g_,2,1,"div",102),e.k0s()()}if(2&i){const t=e.XpG(5);e.R7$(2),e.Y8G("placeholder","Maximum ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.EmploymentType.controls.p_max.invalid&&(t.EmploymentType.controls.p_max.dirty||t.EmploymentType.controls.p_max.touched))}}function b_(i,a){1&i&&(e.j41(0,"div",118)(1,"div",246)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function y_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",213)(2,"div",214)(3,"input",233,31),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(5,"label",234),e.EFF(6," Full Time "),e.k0s()(),e.j41(7,"div",217)(8,"div",235)(9,"div",217),e.DNE(10,t_,4,2,"div",236)(11,o_,4,2,"div",236)(12,r_,5,0,"div",102),e.k0s()()()(),e.j41(13,"div",213)(14,"div",214)(15,"input",237,32),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(17,"label",238),e.EFF(18," Contract "),e.k0s()(),e.j41(19,"div",217)(20,"div",235)(21,"div",217),e.DNE(22,l_,4,2,"div",236)(23,u_,4,2,"div",236)(24,p_,5,0,"div",102),e.k0s()()()(),e.j41(25,"div",213)(26,"div",214)(27,"input",239,33),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(29,"label",240),e.EFF(30," Part Time "),e.k0s()(),e.j41(31,"div",217)(32,"div",235)(33,"div",217),e.DNE(34,f_,4,2,"div",236)(35,v_,4,2,"div",236)(36,b_,5,0,"div",102),e.k0s()()()(),e.j41(37,"div",213)(38,"div",214)(39,"input",241,34),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(41,"label",242),e.EFF(42," Remote "),e.k0s()()()()}if(2&i){let t,n,o,r;const s=e.XpG(4);e.R7$(3),e.Y8G("checked",((null==(t=s.EmploymentType.get("avaliability_type"))?null:t.value)||e.lJ4(13,Qi)).includes("1")||((null==(t=s.EmploymentType.get("avaliability_type"))?null:t.value)||e.lJ4(14,Qi)).includes(1)||1==s.Fulltime||"1"==s.Fulltime),e.R7$(7),e.Y8G("ngIf",s.rates_h_s_arry.f_m_x),e.R7$(),e.Y8G("ngIf",s.rates_h_s_arry.f_m_x),e.R7$(),e.Y8G("ngIf",s.setMa
1xValueErr),e.R7$(3),e.Y8G("checked",((null==(n=s.EmploymentType.get("avaliability_type"))?null:n.value)||e.lJ4(15,Qi)).includes("5")||((null==(n=s.EmploymentType.get("avaliability_type"))?null:n.value)||e.lJ4(16,Qi)).includes(5)||5==s.Constract||"5"==s.Constract),e.R7$(7),e.Y8G("ngIf",s.rates_h_s_arry.c_m_x),e.R7$(),e.Y8G("ngIf",s.rates_h_s_arry.c_m_x),e.R7$(),e.Y8G("ngIf",s.setContractMaxValueErr),e.R7$(3),e.Y8G("checked",((null==(o=s.EmploymentType.get("avaliability_type"))?null:o.value)||e.lJ4(17,Qi)).includes("2")||((null==(o=s.EmploymentType.get("avaliability_type"))?null:o.value)||e.lJ4(18,Qi)).includes(2)||2==s.Parttime||"2"==s.Parttime),e.R7$(7),e.Y8G("ngIf",s.rates_h_s_arry.p_m_x),e.R7$(),e.Y8G("ngIf",s.rates_h_s_arry.p_m_x),e.R7$(),e.Y8G("ngIf",s.setParttimeMaxValueErr),e.R7$(3),e.Y8G("checked",((null==(r=s.EmploymentType.get("avaliability_type"))?null:r.value)||e.lJ4(19,Qi)).includes("3")||((null==(r=s.EmploymentType.get("avaliability_type"))?null:r.value)||e.lJ4(20,Qi)).includes(3)||3==s.Remote||"3"==s.Remote)}}function k_(i,a){1&i&&(e.j41(0,"div",118)(1,"div",253)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," City is required "),e.k0s()())}function w_(i,a){if(1&i&&(e.j41(0,"div",251),e.nrm(1,"ng-select",252,35),e.DNE(3,k_,5,0,"div",102),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("items",t.allcity)("virtualScroll",!0)("multiple",!0)("hideSelected",!0),e.R7$(2),e.Y8G("ngIf",null==t.EmploymentType.controls.city.errors?null:t.EmploymentType.controls.city.errors.required)}}function x_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",126)(1,"div",201)(2,"div",202)(3,"h1",203),e.EFF(4," Employment Type "),e.k0s()(),e.j41(5,"div",204)(6,"div",205),e.DNE(7,zp,4,0,"div",206)(8,Hp,4,0,"div",206),e.j41(9,"div",207)(10,"input",208),e.bIt("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.changeAvailability("2"))}),e.k0s(),e.j41(11,"label",209),e.EFF(12,"Not Available"),e.k0s()(),e.j41(13,"div",207)(14,"input",210),e.bIt("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.changeAvailability("3"))}),e.k0s(),e.j41(15,"label",211),e.EFF(16,"In Project"),e.k0s()()(),e.DNE(17,Zp,12,3,"div",71)(18,Qp,5,1,"div",212)(19,y_,43,21,"div",71),e.j41(20,"div",213)(21,"div",214),e.nrm(22,"input",215,29),e.j41(24,"label",216),e.EFF(25," Willing to Travel "),e.k0s()(),e.j41(26,"div",217),e.DNE(27,w_,4,5,"div",218),e.k0s()(),e.j41(28,"div")(29,"button",190),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.set_employment_type())}),e.EFF(30," Submit "),e.k0s()()()()()}if(2&i){const t=e.XpG(3);e.R7$(5),e.Y8G("formGroup",t.EmploymentType),e.R7$(2),e.Y8G("ngIf",null==(null==t.userData?null:t.userData.hired_start_date)),e.R7$(),e.Y8G("ngIf",null!=(null==t.userData?null:t.userData.hired_start_date)),e.R7$(9),e.Y8G("ngIf",3==t.avaliability),e.R7$(),e.Y8G("ngIf",3==t.avaliability),e.R7$(),e.Y8G("ngIf",t.is_avaliable),e.R7$(8),e.Y8G("ngIf",1==t.EmploymentType.get("travel").value&&t.allcity)}}function C_(i,a){1&i&&e.DNE(0,x_,31,7,"ng-template",124)}function j_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Current Password is required. "),e.k0s())}function F_(i,a){if(1&i&&(e.j41(0,"div",264),e.DNE(1,j_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.Change_Password.controls.current_password.errors.required)}}function S_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," New Password is required. "),e.k0s())}function E_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," A minimum 8 characters password must contain a combination of uppercase and lowercase letters, a number, and a special character. "),e.k0s())}function R_(i,a){if(1&i&&(e.j41(0,"div",264),e.DNE(1,S_,4,0,"div",119)(2,E_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.Change_Password.controls.new_password.errors.required),e.R7$(),e.Y8G("ngIf",t.Change_Password.controls.new_password.errors.pattern)}}function T_(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Confirm Password is required. "),e.k0s())}function I_(i,a){if(1&i&&(e.j41(0,"div",264),e.DNE(1,T_,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.Change_Password.controls.password_confirmation.errors.required)}}function D_(i,a){1&i&&(e.j41(0,"div",264)(1,"div",120)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Confirm Password must match with password. "),e.k0s()())}function P_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",126)(1,"div",201)(2,"div",202)(3,"h1",203),e.EFF(4," Password & Security "),e.k0s()(),e.j41(5,"div",254)(6,"div",255)(7,"form",256)(8,"div",99),e.nrm(9,"input",257,36),e.j41(11,"img",258),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);
1return e.Njj(o.passwordToggle())}),e.k0s()(),e.DNE(12,F_,2,1,"div",259),e.j41(13,"div",99)(14,"input",260),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.matchConfPassword(o))}),e.k0s(),e.j41(15,"img",258),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.cpasswordToggle())}),e.k0s()(),e.DNE(16,R_,3,2,"div",259),e.j41(17,"div",99)(18,"input",261,37),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.matchPassword(o))}),e.k0s(),e.j41(20,"img",258),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.npasswordToggle())}),e.k0s()(),e.DNE(21,I_,2,1,"div",259)(22,D_,5,0,"div",259),e.j41(23,"div",262)(24,"button",263),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.changePassword())}),e.EFF(25," Change Password "),e.k0s()()()()()()()}if(2&i){const t=e.XpG(3);e.R7$(7),e.Y8G("formGroup",t.Change_Password),e.R7$(2),e.Y8G("type",t.is_pass_visible?"text":"password"),e.R7$(3),e.Y8G("ngIf",t.Change_Password.controls.current_password.invalid&&(t.Change_Password.controls.current_password.dirty||t.Change_Password.controls.current_password.touched)),e.R7$(2),e.Y8G("type",t.is_cpass_visible?"text":"password"),e.R7$(2),e.Y8G("ngIf",t.Change_Password.controls.new_password.invalid&&(t.Change_Password.controls.new_password.dirty||t.Change_Password.controls.new_password.touched)),e.R7$(2),e.Y8G("type",t.is_npass_visible?"text":"password"),e.R7$(3),e.Y8G("ngIf",t.Change_Password.controls.password_confirmation.invalid&&(t.Change_Password.controls.password_confirmation.dirty||t.Change_Password.controls.password_confirmation.touched)),e.R7$(),e.Y8G("ngIf",t.showMatchPassword),e.R7$(2),e.Y8G("disabled",t.Change_Password.pristine||t.Change_Password.invalid||t.showMatchPassword)}}function N_(i,a){1&i&&e.DNE(0,P_,26,9,"ng-template",124)}function M_(i,a){1&i&&e.nrm(0,"img",285)}function O_(i,a){1&i&&e.nrm(0,"img",286)}function A_(i,a){1&i&&e.nrm(0,"img",287)}function G_(i,a){1&i&&e.nrm(0,"img",288)}function L_(i,a){1&i&&e.nrm(0,"img",289)}function q_(i,a){1&i&&e.nrm(0,"img",290)}function V_(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Link "),e.k0s())}function B_(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Resume "),e.k0s())}function $_(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Visa Proof "),e.k0s())}function Y_(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Driving Licence "),e.k0s())}function J_(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Id Proof "),e.k0s())}function U_(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.document_name," ")}}function X_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",271),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(4);return e.Njj(s.openPdfViwer("view_doc",r,o))}),e.j41(1,"div",272),e.DNE(2,M_,1,0,"img",273)(3,O_,1,0,"img",274)(4,A_,1,0,"img",275)(5,G_,1,0,"img",276)(6,L_,1,0,"img",277)(7,q_,1,0,"img",278),e.k0s(),e.j41(8,"div",279)(9,"div",280)(10,"h6",281),e.DNE(11,V_,2,0,"span",71)(12,B_,2,0,"span",71)(13,$_,2,0,"span",71)(14,Y_,2,0,"span",71)(15,J_,2,0,"span",71)(16,U_,2,1,"span",71),e.k0s(),e.j41(17,"p",282),e.EFF(18),e.k0s()(),e.j41(19,"button",283)(20,"span",284),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(4);return e.Njj(s.document_clicked("delete_doc",r,o))}),e.EFF(21," delete "),e.k0s()()()()}if(2&i){const t=a.$implicit;e.R7$(2),e.Y8G("ngIf","svg"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","docx"==(null==t?null:t.extension)||"doc"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","png"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","jpg"==(null==t?null:t.extension)||"jpeg"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","pdf"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","Video url"==(null==t?null:t.display_name)||1==(null==t?null:t.document_type)),e.R7$(4),e.Y8G("ngIf",1==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",4==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",5==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",6==(null==t?null:t.document_type)),e.R7$(2),e.JRh(null==t?null:t.file_size)}}function z_(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",126)(1,"div",265)(2,"div",266)(3,"h1",189),e.EFF(4,"Documents"),e.k0s(),e.j41(5,"div",267)(6,"button",268),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(3);return e.Njj(o.openModal(r,"small"))}),e.EFF(7," Add URL "),e.k0s(),e.j41(8,"button",190),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3),r=e.sdS(5);return e.Njj(o.openModal(r,"small"))}),e.EFF(9," Add Document "),e.k0s()()(),e.j41(10,"div",254)(11,"div",269),e.DNE(12,X_,22,13,"div",270),e.k0s()()()()}if(2&i){const t=e.XpG(3);e.R7$(12),e.Y8G("ngForOf",t.js_documents)}}function H_(i,a){1&i&&e.DNE(0,z_,13,1,"ng-template",124)}function W_(i,a){if(1&i){const t=e.RV6();e.j41(0,"img",293),e.bIt("click",function(o){e.eBV(t);const r=e.XpG().$implicit,s=e.XpG(6);return e.Njj(s.openPdfViwer("view_doc",{extension:"pdf",document_url:null==r?null:r.
1invoice},o))}),e.k0s()}}function Z_(i,a){if(1&i&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.nI1(3,"date"),e.nI1(4,"date"),e.k0s(),e.j41(5,"td"),e.EFF(6),e.nI1(7,"date"),e.k0s(),e.j41(8,"td"),e.EFF(9),e.k0s(),e.j41(10,"td"),e.EFF(11),e.nI1(12,"countryCurrency"),e.k0s(),e.j41(13,"td",196),e.DNE(14,W_,1,0,"img",292),e.k0s()()),2&i){const t=a.$implicit;e.R7$(2),e.Lme(" ",e.i5U(3,6,null==t?null:t.pay_start,"MMM d, y")," to ",e.i5U(4,9,null==t?null:t.pay_end,"MMM d, y")," "),e.R7$(4),e.SpI(" ",e.i5U(7,12,null==t?null:t.payment_date,"MMM d, y")," "),e.R7$(3),e.JRh(null==t?null:t.total_hours_paid),e.R7$(2),e.SpI(" ",e.bMT(12,15,null==t?null:t.payment_amount)," "),e.R7$(3),e.Y8G("ngIf",null==t?null:t.invoice)}}function Q_(i,a){if(1&i&&(e.j41(0,"tbody"),e.DNE(1,Z_,15,17,"tr",195),e.nI1(2,"paginate"),e.k0s()),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.payment_history,e.sMw(4,Fa,t.payment_history_per_page,t.payment_history_page,t.payment_history_total)))}}function K_(i,a){1&i&&(e.j41(0,"tbody")(1,"tr",199)(2,"td",200),e.EFF(3,"No Record Found"),e.k0s()()())}function eh(i,a){if(1&i&&(e.j41(0,"table",193)(1,"thead")(2,"tr")(3,"th"),e.EFF(4,"Pay Period"),e.nrm(5,"span",194),e.k0s(),e.j41(6,"th"),e.EFF(7,"Payment Date"),e.nrm(8,"span",194),e.k0s(),e.j41(9,"th"),e.EFF(10,"Paid Hours"),e.nrm(11,"span",194),e.k0s(),e.j41(12,"th"),e.EFF(13,"Amount"),e.nrm(14,"span",194),e.k0s(),e.j41(15,"th"),e.EFF(16,"Invoice"),e.k0s()()(),e.DNE(17,Q_,3,8,"tbody",71)(18,K_,4,0,"tbody",71),e.k0s()),2&i){const t=e.XpG(4);e.Y8G("dtOptions",t.dtOptionsPaymentHistory),e.R7$(17),e.Y8G("ngIf",0!=t.payment_history.length),e.R7$(),e.Y8G("ngIf",0==t.payment_history.length)}}function th(i,a){if(1&i){const t=e.RV6();e.j41(0,"pagination-controls",294),e.bIt("pageChange",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.getPagePaymentHistory(o))}),e.k0s()}}function ih(i,a){if(1&i&&(e.j41(0,"div",188)(1,"h1",189),e.EFF(2,"Payment History"),e.k0s()(),e.j41(3,"div",191),e.DNE(4,eh,19,3,"table",192)(5,th,1,0,"pagination-controls",291),e.k0s()),2&i){const t=e.XpG(3);e.R7$(4),e.Y8G("ngIf",t.isShowPaymentTable),e.R7$(),e.Y8G("ngIf",0!=t.payment_history.length&&t.payment_history_total>t.payment_history_per_page)}}function nh(i,a){1&i&&e.DNE(0,ih,6,2,"ng-template",124)}function oh(i,a){if(1&i&&(e.j41(0,"div",300)(1,"div",301)(2,"div",302)(3,"i",81),e.EFF(4," description "),e.k0s()(),e.j41(5,"div",303)(6,"div",304),e.nrm(7,"p",134)(8,"p",134),e.k0s(),e.j41(9,"div",305),e.EFF(10),e.nI1(11,"date"),e.k0s()()()()),2&i){const t=a.$implicit;e.R7$(7),e.Y8G("innerHTML",t.title,e.npT),e.R7$(),e.Y8G("innerHTML",t.body,e.npT),e.R7$(2),e.SpI(" ",e.i5U(11,3,t.datetime,"MMM d, y h:mm a")," ")}}function rh(i,a){if(1&i&&(e.j41(0,"div",298),e.DNE(1,oh,12,6,"div",299),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.notifications)}}function ah(i,a){1&i&&(e.j41(0,"div",306)(1,"div",307),e.EFF(2," No Data Found "),e.k0s()())}function sh(i,a){if(1&i&&(e.j41(0,"div",295,38)(2,"div",201)(3,"div",202)(4,"h1",189),e.EFF(5,"Notifications"),e.k0s()(),e.j41(6,"div",254),e.DNE(7,rh,2,1,"div",296)(8,ah,3,0,"div",297),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(7),e.Y8G("ngIf",0!=t.notifications.length),e.R7$(),e.Y8G("ngIf",0==t.notifications.length)}}function lh(i,a){1&i&&e.DNE(0,sh,9,2,"ng-template",124)}function ch(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",50)(1,"div",51)(2,"aside",52)(3,"div",53)(4,"div",54),e.DNE(5,Ll,3,0,"button",55)(6,ql,3,0,"button",55),e.k0s(),e.j41(7,"div",56)(8,"input",57,23),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.profileUpdate(o))}),e.k0s(),e.DNE(10,Vu,2,1,"div",58)(11,Bu,5,1,"label",59),e.k0s(),e.j41(12,"div",60)(13,"h3",61),e.EFF(14),e.k0s(),e.j41(15,"a",62),e.EFF(16),e.k0s()()(),e.DNE(17,Wu,18,7,"div",63)(18,xp,41,38,"div",64),e.k0s(),e.j41(19,"div",65)(20,"div",66)(21,"ul",67,24),e.mxI("activeIdChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.settingsSelectedTab,o)||(r.settingsSelectedTab=o),e.Njj(o)}),e.j41(23,"li",68)(24,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.MyAccountClick())}),e.j41(25,"i",70),e.EFF(26,"account_circle"),e.k0s(),e.EFF(27," My Account "),e.k0s(),e.DNE(28,qp,1,0,null,71),e.k0s(),e.j41(29,"li",68)(30,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.availabilityClick())}),e.j41(31,"i",70),e.EFF(32,"calendar_month"),e.k0s(),e.EFF(33," Availability "),e.k0s(),e.DNE(34,Xp,1,0,null,71),e.k0s(),e.j41(35,"li",68)(36,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.empTypeClick())}),e.j41(37,"i",70),e.EFF(38,"medical_information"),e.k0s(),e.EFF(39," Employment Type "),e.k0s(),e.DNE(40,C_,1,0,null,71),e.k0s(),e.j41(41,"li",68)(42,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();
1return e.Njj(o.passwordClick())}),e.j41(43,"i",70),e.EFF(44,"lock"),e.k0s(),e.EFF(45," Password & Security "),e.k0s(),e.DNE(46,N_,1,0,null,71),e.k0s(),e.j41(47,"li",68)(48,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.documentsClick())}),e.j41(49,"i",70),e.EFF(50,"text_snippet"),e.k0s(),e.EFF(51," Documents "),e.k0s(),e.DNE(52,H_,1,0,null,71),e.k0s(),e.j41(53,"li",68)(54,"a",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.paymentHistoryClick())}),e.j41(55,"i",70),e.EFF(56,"history"),e.k0s(),e.EFF(57," Payment History "),e.k0s(),e.DNE(58,nh,1,0,null,71),e.k0s(),e.j41(59,"li",68)(60,"a",72),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.notificationaClick())}),e.j41(61,"i",70),e.EFF(62,"notifications"),e.k0s(),e.EFF(63," Notifications "),e.k0s(),e.DNE(64,lh,1,0,null,71),e.k0s()()(),e.j41(65,"div",73),e.nrm(66,"div",74),e.k0s()()()()}if(2&i){const t=e.sdS(22),n=e.XpG();e.R7$(5),e.Y8G("ngIf",!n.profileSidebarEditView),e.R7$(),e.Y8G("ngIf",n.profileClose),e.R7$(4),e.Y8G("ngIf",!n.profileSidebarEditView),e.R7$(),e.Y8G("ngIf",n.profileSidebarEditView),e.R7$(3),e.SpI(" ",(null==n.userData?null:n.userData.first_name)+" "+(null==n.userData?null:n.userData.last_name)," "),e.R7$(),e.Mz_("href","mailTo:",null==n.userData?null:n.userData.email,"",e.B4B),e.R7$(),e.JRh(null==n.userData?null:n.userData.email),e.R7$(),e.Y8G("ngIf",!n.profileSidebarEditView),e.R7$(),e.Y8G("ngIf",n.profileSidebarEditView),e.R7$(3),e.R50("activeId",n.settingsSelectedTab),e.R7$(2),e.Y8G("ngbNavItem",1),e.R7$(5),e.Y8G("ngIf","myAccount"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",2),e.R7$(5),e.Y8G("ngIf","availability"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",3),e.R7$(5),e.Y8G("ngIf","employmentType"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",4),e.R7$(5),e.Y8G("ngIf","password"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",5),e.R7$(5),e.Y8G("ngIf","documents"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",6),e.R7$(5),e.Y8G("ngIf","paymentHistory"==n.show_hide_card),e.R7$(),e.Y8G("ngbNavItem",7),e.R7$(),e.Y8G("ngClass",e.eq3(27,Nn,"showNotification"==n.show_hide_card)),e.R7$(4),e.Y8G("ngIf","showNotification"==n.show_hide_card),e.R7$(2),e.Y8G("ngbNavOutlet",t)}}function dh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Add URL"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",311)(5,"div",312),e.nrm(6,"input",313,39),e.k0s(),e.j41(8,"button",314),e.bIt("click",function(){e.eBV(t);const o=e.sdS(7),r=e.XpG();return e.Njj(r.add_document_url(o.value))}),e.EFF(9," Add "),e.k0s()()}}function uh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",319)(1,"input",320),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.other_document_name,o)||(r.other_document_name=o),e.Njj(o)}),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.documentNameChange(o))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.R50("ngModel",t.other_document_name)}}function ph(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",321)(1,"div",322)(2,"input",323),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(3,"label",324),e.EFF(4),e.k0s()()()}if(2&i){const t=e.XpG(2);e.R7$(4),e.SpI(" + Upload ",t.docsModalData," ")}}function _h(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",315)(1,"div",308)(2,"h3",309),e.EFF(3,"Add Document"),e.k0s(),e.j41(4,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(5,"div",311)(6,"div",105)(7,"ng-select",316,40),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.addDocumentData(o))}),e.k0s()(),e.DNE(9,uh,2,1,"div",317),e.k0s(),e.DNE(10,ph,5,1,"div",318),e.k0s()}if(2&i){const t=e.XpG();e.R7$(7),e.Y8G("clearable",!1)("searchable",!0)("items",t.documents),e.R7$(2),e.Y8G("ngIf",t.isShowDocsInput),e.R7$(),e.Y8G("ngIf",t.isEnableUpload)}}function hh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Interview Detail"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",325)(5,"div",326)(6,"h3",61),e.EFF(7,"UI/UX Designer"),e.k0s(),e.j41(8,"h5",327),e.EFF(9,"Information Technology"),e.k0s()(),e.j41(10,"div",328)(11,"div",329)(12,"h5"),e.
1EFF(13,"May 18, 2022 12:37PM"),e.k0s(),e.j41(14,"p",330),e.EFF(15,"Interview Date"),e.k0s()(),e.j41(16,"div",329)(17,"h5"),e.EFF(18,"Selena Grande"),e.k0s(),e.j41(19,"p",330),e.EFF(20,"Client Name"),e.k0s()(),e.j41(21,"div",329)(22,"h5"),e.EFF(23,"Senior Designer"),e.k0s(),e.j41(24,"p",330),e.EFF(25,"Role"),e.k0s()(),e.j41(26,"div",329)(27,"h5"),e.EFF(28,"Full Time"),e.k0s(),e.j41(29,"p",330),e.EFF(30,"Employment Time"),e.k0s()()(),e.j41(31,"div",230),e.nrm(32,"input",331),e.j41(33,"label",332),e.EFF(34," I agree to the "),e.j41(35,"a",333),e.EFF(36," Terms and Conditions "),e.k0s(),e.EFF(37," and "),e.j41(38,"a",333),e.EFF(39," Privacy Policy "),e.k0s()()()(),e.j41(40,"div",321)(41,"button",190),e.bIt("click",function(){e.eBV(t);const o=e.XpG(),r=e.sdS(9);return e.Njj(o.openTipsModal(r,"medium"))}),e.EFF(42," Start Interview "),e.k0s()()}}function fh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Tips to get started"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",325)(5,"div",334)(6,"h3",335),e.EFF(7,"How to record a great video"),e.k0s(),e.j41(8,"ul",336)(9,"li",337)(10,"span",338),e.qSk(),e.j41(11,"svg",339),e.nrm(12,"path",340),e.k0s()(),e.EFF(13,"Ensure you are in a quiet, distraction-free area. "),e.k0s(),e.joV(),e.j41(14,"li",337)(15,"span",338),e.qSk(),e.j41(16,"svg",339),e.nrm(17,"path",340),e.k0s()(),e.EFF(18," Check you have enough charge on your device and a good data connection. "),e.k0s(),e.joV(),e.j41(19,"li",337)(20,"span",338),e.qSk(),e.j41(21,"svg",339),e.nrm(22,"path",340),e.k0s()(),e.EFF(23," Practice to feel comfortable with the process. "),e.k0s(),e.joV(),e.j41(24,"li",337)(25,"span",338),e.qSk(),e.j41(26,"svg",339),e.nrm(27,"path",340),e.k0s()(),e.EFF(28," Make eye contact with the camera whenever possible. "),e.k0s(),e.joV(),e.j41(29,"li",337)(30,"span",338),e.qSk(),e.j41(31,"svg",339),e.nrm(32,"path",340),e.k0s()(),e.EFF(33," You will have the opportunity to review all your answer at the end of the process before submitting them. "),e.k0s(),e.joV(),e.j41(34,"li",337)(35,"span",338),e.qSk(),e.j41(36,"svg",339),e.nrm(37,"path",340),e.k0s()(),e.EFF(38," Remember to grant access to your camera and microphone if required. "),e.k0s()()()(),e.joV(),e.j41(39,"div",321)(40,"div",130)(41,"a",341),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Next Page"))}),e.EFF(42,"Let's Start"),e.k0s()()()}2&i&&(e.R7$(41),e.Y8G("countryRouterLink",e.lJ4(1,ms)))}function mh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Update Profile"),e.k0s(),e.j41(3,"button",342),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",343)(5,"image-cropper",344),e.bIt("imageCropped",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.imageCropped(o))})("loadImageFailed",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.loadImageFailed())}),e.k0s(),e.j41(6,"button",345),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.getImage())}),e.EFF(7," Update "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(5),e.Y8G("imageChangedEvent",t.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",1)("resizeToWidth",128)}}function gh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",346),e.EFF(2,"Condensed Interview"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",347)(5,"video",348,41),e.nrm(7,"source",349),e.k0s()(),e.j41(8,"div",350)(9,"button",351),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.gotoFullScreen())}),e.EFF(10," Go To Full Interview "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(7),e.Y8G("src",t.prevVideoCheck,e.B4B)}}function vh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",352),e.EFF(2,"Add Availability"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",353)(5,"div",354)(6,"owl-date-time-inline",355),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.dateRange,o)||(r.dateRange=o),e.Njj(o)}),e.k0s(),e.j41(7,"h4",139),e.EFF(8,"Select Time"),e.k0s(),e.j41(9,"div",130)(10,"div",157)(11,"input",356),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.dateFromTime,o)||(r.dateFromTime=o),e.Njj(o)}),e.k0s(),e.j41(12,"span",357),e.EFF(13,"expand_more"),e.k0s()(),e.nrm(14,"owl-date-time",358,42),e.j41(16,"div",359),e.EFF(17,"To"),e.k0s(),e.j41(18,"div",157)(19,"input",360),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.dateToTime,o)||(r.dateToTime=o),e.Njj(o)}),e.k0s(),e.j41(20,"span",357),e.EFF(21,"expand_more"),e.k0s()(),e.nrm(22,"owl-date-time",358,43),e.k0s()(),e.j41(24,"div",361)(25,"button",362),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.check_date_already_set())}),e.EFF(26," Submit "),e.k0s()()()}if(2&i){const t=e.sdS(15),n=e.sdS(23),o=e.XpG();e.R7$(6),e.Y8G("pickerType","calendar")("selectMode","range"),e.R50("ngModel",o.dateRange),e.Y8G("min",o.todayDate),e.R7$(5),e.R50("ngModel",o.dateFromTime),e.Y8G("owlDateTimeTrigger",t)("owlDateTime",t),e.R7$(3),e.Y8G("pickerType","timer"),e.R7$(5),e.R50("ngModel",o.dateToTime),e.Y8G("owlDateTimeTrigger",n)("owlDateTime",n),e.R7$(3),e.Y8G("pickerType","timer")}}function bh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",363),e.EFF(2,"Edit Availability"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",353)(5,"div",354)(6,"owl-date-time-inline",355),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.editDateRange,o)||(r.editDateRange=o),e.Njj(o)}),e.k0s(),e.j41(7,"h4",139),e.EFF(8,"Select Time"),e.k0s(),e.j41(9,"div",130)(10,"div",157)(11,"input",356),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.editDateFromTime,o)||(r.editDateFromTime=o),e.Njj(o)}),e.k0s(),e.j41(12,"span",357),e.EFF(13,"expand_more"),e.k0s()(),e.nrm(14,"owl-date-time",358,44),e.j41(16,"div",359),e.EFF(17,"To"),e.k0s(),e.j41(18,"div",157)(19,"input",360),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.editDateToTime,o)||(r.editDateToTime=o),e.Njj(o)}),e.k0s(),e.j41(20,"span",357),e.EFF(21,"expand_more"),e.k0s()(),e.nrm(22,"owl-date-time",358,45),e.k0s()(),e.j41(24,"div",361)(25,"button",362),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.updateAvailability())}),e.EFF(26," Update "),e.k0s()()()}if(2&i){const t=e.sdS(15),n=e.sdS(23),o=e.XpG();e.R7$(6),e.Y8G("pickerType","calendar")("selectMode","single"),e.R50("ngModel",o.editDateRange),e.Y8G("min",o.todayDate),e.R7$(5),e.R50("ngModel",o.editDateFromTime),e.Y8G("owlDateTimeTrigger",t)("owlDateTime",t),e.R7$(3),e.Y8G("pickerType","timer"),e.R7$(5),e.R50("ngModel",o.editDateToTime),e.Y8G("owlDateTimeTrigger",n)("owlDateTime",n),e.R7$(3),e.Y8G("pickerType","timer")}}function yh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",365)(5,"button",366),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cancel click"))}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",367),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.confirmSelect())}),e.EFF(8," Yes "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(2),e.SpI("Are you sure you want to ",t.statusInText,"?")}}function kh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Are you agree to override date ?"),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",365)(5,"button",366),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return o.modalClose(),o.override_date=!1,e.Njj(o.submitAvailAbility())}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",367),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return o.override_date=!0,e.Njj(o.submitAvailAbility())}),e.EFF(8," Yes "),e.k0s()()}}function wh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Are you sure you want to delete?"),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",365)(5,"button",366),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cancel click"))}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",367),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return o.override_date=!0,e.Njj(o.deteteDocument())}),e.EFF(8," Yes "),e.k0s()()}}function xh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",368),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",369),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.resume_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",81),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",311),e.nrm(8,"ngx-doc-viewer",370),e.k0s()}if(2&i){const t=e.XpG();e.R7$(8),e.Y8G("url",t.resume_src)}}function Ch(i,a){if(1&i&&(e.nrm(0,"iframe",374),e.nI1(1,"safeUrl")),2&i){const t=e.XpG(2);e.Y8G("src",e.bMT(1,1,t.resume_src),e.f$h)}}function jh(i,a){if(1&i&&e.nrm(0,"img",375),2&i){const t=e.XpG(2);e.FS9("src",t.resume_src,e.B4B)}}function Fh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",368),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",369),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.resume_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",81),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",311)(8,"div",371),e.DNE(9,Ch,2,3,"iframe",372)(10,jh,1,1,"img",373),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(9),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function Sh(i,a){if(1&i&&(e.nrm(0,"iframe",374),e.nI1(1,"safeUrl")),2&i){const t=e.XpG(2);e.Y8G("src",e.bMT(1,1,t.visa_proof_src),e.f$h)}}function Eh(i,a){if(1&i&&e.nrm(0,"img",375),2&i){const t=e.XpG(2);e.Y8G("src",t.visa_proof_src||"",e.B4B)}}function Rh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",368),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",376),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.visa_proof_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",81),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",311)(8,"div",371),e.DNE(9,Sh,2,3,"iframe",372)(10,Eh,1,1,"img",373),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.visa_proof_src,e.B4B),e.R7$(6),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function Th(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Education Institute is required "),e.k0s())}function Ih(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Th,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.school||null==t.editEducation.controls.school.errors?null:t.editEducation.controls.school.errors.required)}}function Dh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Academic Degree is required "),e.k0s())}function Ph(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Dh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.degree||null==t.editEducation.controls.degree.errors?null:t.editEducation.controls.degree.errors.required)}}function Nh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Area of study is required "),e.k0s())}function Mh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Nh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.area_of_study||null==t.editEducation.controls.area_of_study.errors?null:t.editEducation.controls.area_of_study.errors.required)}}function Oh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Start Date is required "),e.k0s())}function Ah(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Oh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_from||null==t.editEducation.controls.date_from.errors?null:t.editEducation.controls.date_from.errors.required)}}function Gh(i,a){1&i&&(e.j41(0,"div",118)(1,"div",253)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," End date is greater than Start date "),e.k0s()())}function Lh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," End Date is required "),e.k0s())}function qh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Lh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_to||null==t.editEducation.controls.date_to.errors?null:t.editEducation.controls.date_to.errors.required)}}function Vh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Update Education"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(o){return e.eBV(t).$implicit.dismiss("Cross click"),e.Njj(o.stopPropagation())}),e.k0s()(),e.j41(4,"div",377)(5,"div",312)(6,"div",378)(7,"div",202)(8,"div",157),e.nrm(9,"input",379),e.DNE(10,Ih,2,1,"div",102),e.k0s()(),e.j41(11,"div",380
1)(12,"div",157),e.nrm(13,"input",381),e.DNE(14,Ph,2,1,"div",102),e.k0s()(),e.j41(15,"div",380)(16,"div",157),e.nrm(17,"input",382),e.DNE(18,Mh,2,1,"div",102),e.k0s()(),e.j41(19,"div",380)(20,"div",157)(21,"ng-select",383),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.changeToDate(o))}),e.k0s(),e.DNE(22,Ah,2,1,"div",102)(23,Gh,5,0,"div",102),e.k0s()(),e.j41(24,"div",380)(25,"div",157)(26,"ng-select",384),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.changeDate(o))}),e.k0s(),e.DNE(27,qh,2,1,"div",102),e.k0s()(),e.nrm(28,"input",385),e.k0s()()(),e.j41(29,"div",350)(30,"button",386),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.update_eduction())}),e.EFF(31," Update "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(6),e.Y8G("formGroup",t.editEducation),e.R7$(4),e.Y8G("ngIf",(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.school?null:t.editEducation.controls.school.invalid)&&((null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.school?null:t.editEducation.controls.school.dirty)||(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.school?null:t.editEducation.controls.school.touched))),e.R7$(4),e.Y8G("ngIf",(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.degree?null:t.editEducation.controls.degree.invali
1d)&&((null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.degree?null:t.editEducation.controls.degree.dirty)||(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.degree?null:t.editEducation.controls.degree.touched))),e.R7$(4),e.Y8G("ngIf",(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.area_of_study?null:t.editEducation.controls.area_of_study.invalid)&&((null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.area_of_study?null:t.editEducation.controls.area_of_study.dirty)||(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.area_of_study?null:t.editEducation.controls.area_of_study.touched))),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_from?null:t.editEducation.controls.date_from.invalid)&&((null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_from?null:t.editEducation.controls.date_from.dirty)||(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_from?null:t.editEducation.controls.date_from.touched))),e.R7$(),e.Y8G("ngIf",t.showEducationYearErr),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_to?null:t.editEducation.controls.date_to.invalid)&&((null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_to?null:t.editEducation.controls.date_to.dirty)||(null==t.editEducation||null==t.editEducation.controls||null==t.editEducation.controls.date_to?null:t.editEducation.controls.date_to.touched))),e.R7$(3),e.Y8G("disabled",null==t.editEducation?null:t.editEducation.invalid)}}function Bh(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," OTP is required. "),e.k0s())}function $h(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Bh,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.OtpGroup.controls.otp.errors.required)}}function Yh(i,a){if(1&i&&(e.j41(0,"div",394),e.EFF(1," You will be able to resend OTP after : "),e.j41(2,"b"),e.EFF(3),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(3),e.SpI("",t.countDown," seconds")}}function Jh(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",352),e.EFF(2,"Verify OTP"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",388)(5,"h3"),e.EFF(6," Enter the OTP sent this phone number : "),e.j41(7,"b"),e.nrm(8,"span",134),e.k0s()(),e.j41(9,"div",389),e.nrm(10,"input",390,46),e.DNE(12,$h,2,1,"div",102)(13,Yh,4,1,"div",391),e.k0s(),e.j41(14,"div",392)(15,"button",393),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.resendOtp())}),e.EFF(16," Resend OTP "),e.k0s(),e.j41(17,"button",263),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.verifyOtp())}),e.EFF(18," Verify "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(8),e.Y8G("innerHTML",t.htmlStr,e.npT),e.R7$(),e.Y8G("formGroup",t.OtpGroup),e.R7$(3),e.Y8G("ngIf",t.OtpGroup.controls.otp.invalid&&(t.OtpGroup.controls.otp.dirty||t.OtpGroup.controls.otp.touched)),e.R7$(),e.Y8G("ngIf",t.countDown>0),e.R7$(2),e.Y8G("hidden",0!=t.countDown),e.R7$(2),e.Y8G("disabled",t.OtpGroup.invalid)}}function Uh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Education Institute is required "),e.k0s())}function Xh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Uh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.school.errors.required)}}function zh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Academic Degree is required "),e.k0s())}function Hh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,zh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.degree.errors.required)}}function Wh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Area of study is required "),e.k0s())}function Zh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Wh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.area_of_study.errors.required)}}function Qh(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Start Date is required "),e.k0s())}function Kh(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,Qh,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_from.errors.required)}}function ef(i,a){1&i&&(e.j41(0,"div",118)(1,"div",253)(2,"i",121),e.EFF(3,"warning"),e.k0s(),e.EFF(4," End date is greater than Start date "),e.k0s()())}function tf(i,a){1&i&&(e.j41(0,"div",253)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," End Date is required "),e.k0s())}function nf(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,tf,4,0,"div",387),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_to.errors.required)}}function of(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Add Education"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",377)(5,"div",312)(6,"div",378)(7,"div",202)(8,"div",157),e.nrm(9,"input",379),e.DNE(10,Xh,2,1,"div",102),e.k0s()(),e.j41(11,"div",380
1)(12,"div",157),e.nrm(13,"input",381),e.DNE(14,Hh,2,1,"div",102),e.k0s()(),e.j41(15,"div",380)(16,"div",157),e.nrm(17,"input",382),e.DNE(18,Zh,2,1,"div",102),e.k0s()(),e.j41(19,"div",380)(20,"div",157)(21,"ng-select",383),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.changeToDate(o))}),e.k0s(),e.DNE(22,Kh,2,1,"div",102)(23,ef,5,0,"div",102),e.k0s()(),e.j41(24,"div",380)(25,"div",157)(26,"ng-select",384),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.changeDate(o))}),e.k0s(),e.DNE(27,nf,2,1,"div",102),e.k0s()()()()(),e.j41(28,"div",350)(29,"button",386),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.add_eduction())}),e.EFF(30," Add "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(6),e.Y8G("formGroup",t.addEducation),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.school.invalid&&(t.addEducation.controls.school.dirty||t.addEducation.controls.school.touched)),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.degree.invalid&&(t.addEducation.controls.degree.dirty||t.addEducation.controls.degree.touched)),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.area_of_study.invalid&&(t.addEducation.controls.area_of_study.dirty||t.addEducation.controls.area_of_study.touched)),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_from.invalid&&(t.addEducation.controls.date_from.dirty||t.addEducation.controls.date_from.touched)),e.R7$(),e.Y8G("ngIf",t.showEducationYearErr),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_to.invalid&&(t.addEducation.controls.date_to.dirty||t.addEducation.controls.date_to.touched)),e.R7$(2),e.Y8G("disabled",t.addEducation.invalid||t.showEducationYearErr)}}function rf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Update Overview"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",395)(5,"div",312),e.nrm(6,"textarea",396,47),e.k0s()(),e.j41(8,"div",350)(9,"button",362),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.Update_jobbseeker_overview())}),e.EFF(10," Update "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(4),e.Y8G("formGroup",t.jobseekerOverview)}}function af(i,a){1&i&&(e.j41(0,"div",120)(1,"i",121),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Skill is required!. "),e.k0s())}function sf(i,a){if(1&i&&(e.j41(0,"div",118),e.DNE(1,af,4,0,"div",119),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobseekerSkill.controls.skills.errors.required)}}function lf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Update Skill"),e.k0s(),e.j41(3,"button",310),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",395)(5,"div",312),e.nrm(6,"ng-select",115),e.DNE(7,sf,2,1,"div",102),e.k0s()(),e.j41(8,"div",350)(9,"button",362),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.updateJobseekerSkills())}),e.EFF(10," Update "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(4),e.Y8G("formGroup",t.jobseekerSkill),e.R7$(2),e.Y8G("items",t.allskills)("clearable",!1)("multiple",!0)("addTag",t.addSkillPromise),e.R7$(),e.Y8G("ngIf",t.jobseekerSkill.controls.skills.invalid&&(t.jobseekerSkill.controls.skills.dirty||t.jobseekerSkill.controls.skills.touched))}}function cf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Are you sure you want to delete?"),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",365)(5,"button",366),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cancel click"))}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",367),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteEducation())}),e.EFF(8," Yes "),e.k0s()()}}function df(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Refer & Invite"),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",397)(5,"div",398)(6,"div",399)(7,"a",400),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareWhatsappLink())}),e.qSk(),e.j41(8,"svg",401),e.nrm(9,"path",402)(10,"path",403),e.k0s()(),e.joV(),e.j41(11,"div",199),e.EFF(12,"WhatsApp"),e.k0s()(),e.j41(13,"div",399)(14,"a",404),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareMailUrl())}),e.qSk(),e.j41(15,"svg",405)(16,"g"),e.nrm(17,"path",406),e.k0s()()(),e.joV(),e.j41(18,"div",199),e.EFF(19,"Email"),e.k0s()()(),e.j41(20,"div",407)(21,"a",408),e.EFF(22),e.k0s(),e.j41(23,"button",409),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.copyInviteLink())}
1),e.EFF(24," Copy "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(21),e.FS9("href",t.inviteJobseekerLink,e.B4B),e.R7$(),e.JRh(t.inviteJobseekerLink)}}function uf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",308)(1,"h3",309),e.EFF(2,"Share Interview"),e.k0s(),e.j41(3,"button",364),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",397)(5,"div",398)(6,"div",399)(7,"a",410),e.qSk(),e.j41(8,"svg",401),e.nrm(9,"path",402)(10,"path",403),e.k0s()(),e.joV(),e.j41(11,"div",199),e.EFF(12,"WhatsApp"),e.k0s()(),e.j41(13,"div",399)(14,"a",411),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareLinkedIn())}),e.qSk(),e.j41(15,"svg",401),e.nrm(16,"path",402)(17,"path",412),e.k0s()(),e.joV(),e.j41(18,"div",199),e.EFF(19,"LinkedIn"),e.k0s()(),e.j41(20,"div",399)(21,"a",413),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareTwitterUrl())}),e.qSk(),e.j41(22,"svg",414),e.nrm(23,"path",415),e.k0s()(),e.joV(),e.j41(24,"div",199),e.EFF(25,"Twitter"),e.k0s()(),e.j41(26,"div",399)(27,"a",404),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareeMailUrl())}),e.qSk(),e.j41(28,"svg",405)(29,"g"),e.nrm(30,"path",406),e.k0s()()(),e.joV(),e.j41(31,"div",199),e.EFF(32,"Email"),e.k0s()(),e.j41(33,"div",399)(34,"a",416),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.shareFacebook())}),e.qSk(),e.j41(35,"svg",401),e.nrm(36,"path",402)(37,"path",417),e.k0s()(),e.joV(),e.j41(38,"div",199),e.EFF(39,"Facebook"),e.k0s()()(),e.j41(40,"div",407)(41,"a",408),e.EFF(42),e.k0s(),e.j41(43,"button",409),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.copyInterviewLink())}),e.EFF(44," Copy "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(7),e.Mz_("href","https://web.whatsapp.com/send?text=",t.videoInterviewLink,"",e.B4B),e.R7$(34),e.FS9("href",t.videoInterviewLink,e.B4B),e.R7$(),e.JRh(t.videoInterviewLink)}}function pf(i,a){1&i&&(e.j41(0,"div",426)(1,"span",81),e.EFF(2," done "),e.k0s()())}function _f(i,a){1&i&&(e.j41(0,"div",427)(1,"span",81),e.EFF(2," close "),e.k0s()())}function hf(i,a){1&i&&(e.j41(0,"p",428),e.EFF(1," Congratulations!! Your account has been created successfully "),e.k0s())}function ff(i,a){1&i&&(e.j41(0,"p",428),e.EFF(1," Something went wrong. Please try again. "),e.k0s())}function mf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",418)(1,"div",419),e.DNE(2,pf,3,0,"div",420)(3,_f,3,0,"div",421),e.j41(4,"h2",422),e.EFF(5),e.k0s(),e.DNE(6,hf,2,0,"p",423)(7,ff,2,0,"p",423),e.j41(8,"div",424)(9,"button",425),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG();return o.dismiss("Cross click"),e.Njj(r.location.replaceState("/jobseeker/settings#payment"))}),e.EFF(10," Okay "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",!0===t.accountSuccess),e.R7$(),e.Y8G("ngIf",!1===t.accountSuccess),e.R7$(2),e.SpI(" ",!0===t.accountSuccess?"Success":"Error"," "),e.R7$(),e.Y8G("ngIf",!0===t.accountSuccess),e.R7$(),e.Y8G("ngIf",!1===t.accountSuccess)}}let gf=(()=>{class i{modalService;globals;common;errorHandler;job;fb;toastr;authenticationService;router;config;location;activatedRoute;sanitizer;renderer;NotificationService;countryLocalizeService;currencyService;navigationService;cdr;settingsSelectedTab=1;country="";dtOptions;dtOptions2={};dtOptionsAvailability={};dtOptionsPaymentHistory={};dtOptionsInvoice1={};dtOptionsInvoice2={};profileSidebarEditView=!1;isShowDocsInput=!1;changePasswordForm;closeResult="";skillData;notifications=[];checkedAvaliability="";userData={};originalUserData={};modalReference=null;editJobSeeker;jobseekerOverview;addEducation;editEducation;ChangeDocs;SetAvaliability;Social;EmploymentType;OtpGroup;Change_Password;shareProfileForm;jobseekerSkill;google_locations=[];allskills=[];skillsAllData=[];allvendor="";allrec=[];recAllData=[];visa_status=[];allVisaData=[];area_of_study_arr=[];allcity="";showVideoDetails=[];avaliable_change=[];hours=[];documentId;js_documents=[];payment_history=[];rates_h_s_arry={f_m_x:!1,p_m_x:!1,r_m_x:!1,c_m_x:!1};isEnableNext=!1;shareJobseekerLink="";shareJobseekerEditedLink;inviteJobseekerLink="";document_div_toggle=!1;document_type_array=["doc","docx","pdf"];other_document_name=null;displayMonths=1;navigation="arrows";showWeekNumbers=!1;outsideDays="visible";docsModalData="";payment_history_page=1;payment_history_per_page=10;payment_history_total;showEducationYearErr=!1;avaliability;resume_src="";visa_proof_src="";video_src="";video_ext="";videoInterviewLink="";deleteSlotId;statusInText;
1setMaxValueErr=!1;setContractMaxValueErr=!1;setParttimeMaxValueErr=!1;setRemoteMaxValueErr=!1;showMatchPassword=!1;isEnableUpload=!1;isShowPaymentTable=!1;accountSuccess=!1;isEditLink=!1;isSaveBtn=!0;isSettingsPage=!1;todayDate=new Date((new Date).setDate((new Date).getDate()-1));dateRange;dateFromTime;dateToTime;editDateRange;editDateFromTime;editDateToTime;editAvailabilityId;editAvailabilityData;myresume;visa_proof;video;resume_show;visa_proof_show;showDocsModal;send_otp_modal;avaliabilityOverrideModel;editAvailabilityModal;cofirmationModal;deleteDocModal;shareInviteModal;shareVideoInterviewModal;openAccountModal;week_check_flag=!0;interval=60;from_time_val="";to_time_val="";today_date="";visaType;recType;editLinkedin=!1;editFacebook=!1;editTwitter=!1;is_travel=!1;is_avaliable=!1;Fulltime=0;Parttime=0;Remote=0;Constract=0;image_crop;resumeLabel="No file selected";visaproofLabel="No file selected";videoLabel="No file selected";resumeUpload=!1;resume_file="";other_document_files=[];visa_proof_file="";visa_proofUpload=!1;video_file="";videoUpload=!1;jobseeker_overview=!1;year_dropdown=[];add_education=!1;edit_education_div=!1;profileClose=!1;notification_last_page=0;notification_current_page=1;notification_loading=!1;availData=!1;availableTime=[];filterDate;show_availability=[];minDate=void 0;maxDate=void 0;hoveredDate;fromDate;selectionDate=!1;toDate;time_slot_array=[];isBooked=t=>this.show_availability.hasOwnProperty(Be()(t.year+"-"+t.month+"-"+t.day).format("YYYY-MM-DD"));time_picker_array_to=[];time_picker_array_from=[];selectedStarTime="8:00 AM";selectedEndTime;time_invalidate=!0;set_avail_error_msg=!1;override_date=null;calendar;currentUsername;upload_doc_prev_div_toggle=!1;uploaded_document_type=null;prevVideoCheck="";show_hide_card="myAccount";vendor_detail=[];clients_list=[];in_project_company;check_email=0;check_phone=0;htmlStr="";countDown=0;docExtension;current_year;eduId;is_pass_visible=!1;is_cpass_visible=!1;is_npass_visible=!1;phone_code=[];documents=[{name:"Resume",id:2},{name:"Driving-licence",id:4},{name:"Id proof",id:5},{name:"Other",id:6}];constructor(t,n,o,r,s,c,u,h,v,g,b,f,R,C,D,x,M,Y,ee){this.modalService=t,this.globals=n,this.common=o,this.errorHandler=r,this.job=s,this.fb=c,this.toastr=u,this.authenticationService=h,this.router=v,this.config=g,this.location=b,this.activatedRoute=f,this.sanitizer=R,this.renderer=C,this.NotificationService=D,this.countryLocalizeService=x,this.currencyService=M,this.navigationService=Y,this.cdr=ee,this.country=this.countryLocalizeService.getCountryCode(),this.phone_code="in"===this.country?[{name:"+91",value:"+91"}]:[{name:"+1",value:"+1"}],this.shareJobseekerLink=this.navigationService.redirectUrl()+"/shared/",this.shareJobseekerEditedLink=this.navigationService.redirectUrl()+"/shared/",this.inviteJobseekerLink=this.navigationService.redirectUrl()+"/jobseeker/register","in"!==this.country&&this.documents.push({name:"Visa proof",id:3}),this.jobseekerOverview=this.fb.group({overview:["",ne.k0.required]}),this.OtpGroup=this.fb.group({otp:["",ne.k0.required],phone_code:["",ne.k0.required],phone:["",ne.k0.required]}),this.Change_Password=this.fb.group({current_password:["",[ne.k0.required]],new_password:["",[ne.k0.required,ne.k0.pattern("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9]).{8,}$")]],password_confirmation:["",[ne.k0.required]]}),this.editJobSeeker=this.fb.group({fname:["",ne.k0.required],lname:["",ne.k0.required],code:["in"==this.country?"+91":"+1",ne.k0.required],phone:["",ne.k0.required],add:[null,ne.k0.required],email:["",ne.k0.required],job_title:["",ne.k0.required],location:[null,ne.k0.required],visa:[""],rec:["",ne.k0.required],skills:["",ne.k0.required],rate_per_hour:[""],max_rate_per_hour:[""]}),"in"!==this.country&&this.editJobSeeker.get("visa").setValidators([ne.k0.required]),this.addEducation=this.fb.group({school:["",ne.k0.required],degree:["",ne.k0.required],area_of_study:["",ne.k0.required],date_from:["",ne.k0.required],date_to:["",ne.k0.required]}),this.editEducation=this.fb.group({school:["",ne.k0.required],degree:["",ne.k0.required],area_of_study:["",ne.k0.required],date_from:["",ne.k0.required],date_to:["",ne.k0.required],id:[""]}
1),this.shareProfileForm=this.fb.group({sharedInput:["",ne.k0.required]}),this.jobseekerSkill=this.fb.group({skills:["",ne.k0.required]});const de=JSON.parse(localStorage.getItem("CR_PREF"));de&&de.profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.activatedRoute):de&&this.job.getdata().subscribe(je=>{if(1==je.ResponseData.is_client_send_video_interview){let ie=Number(je.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.activatedRoute,{queryParams:{client_user:ie,jobseeker_id:je.ResponseData.jobseeker_id}})}},je=>{this.globals.loading=!1,this.errorHandler.handleError(je)}),window.addEventListener("scroll",this.scroll,!0),g.outsideDays="hidden"}ngOnInit(){var t=this;return(0,et.A)(function*(){t.common.isDeletedUser().subscribe(u=>{console.log(u),1==u.ResponseCode&&(t.toastr.error(u.ResponseText),setTimeout(()=>{t.authenticationService.logout()},1e3))}),t.dtOptions2={info:!1,searching:!1,paging:!1,order:[]},t.dtOptionsAvailability={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Date"},{title:"Day"},{title:"Available Time"},{title:"Action"}]},t.dtOptionsPaymentHistory={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Pay Period"},{title:"Payment Date"},{title:"Paid Hours"},{title:"Amount"},{title:"Invoice"}]},t.dtOptionsInvoice1={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Month"},{title:"Invoice"}]},t.dtOptionsInvoice2={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Month"},{title:"Invoice"}]},t.activatedRoute.queryParams.subscribe(u=>{u.acc&&(t.accountSuccess=!1,t.common.stripeCallback({id:u.acc}).subscribe(h=>{1==h.ResponseCode?(t.accountSuccess=!0,t.userData.is_stripe_onboard=1):t.accountSuccess=!1,t.modalService.open(t.openAccountModal,{centered:!0,windowClass:"cr-custom-modal modal-small"})}))});const n=new Date;t.minDate={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()},t.maxDate={year:n.getFullYear(),month:n.getMonth()+3,day:n.getDate()},t.EmploymentType=t.fb.group({avaliability:[""],avaliability_type:[[]],f_min:[""],f_max:[""],c_min:[""],c_max:[""],p_min:[""],p_max:[""],r_min:[""],r_max:[""],travel:[""],city:["",ne.k0.required],will_move_project:[""],project_end_date:[null]}),t.jobseekerOverview=t.fb.group({overview:["",ne.k0.required]}),t.OtpGroup=t.fb.group({otp:["",ne.k0.required],phone_code:["",ne.k0.required],phone:["",ne.k0.required]}),t.Change_Password=t.fb.group({current_password:["",[ne.k0.required]],new_password:["",[ne.k0.required,ne.k0.pattern("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9]).{8,}$")]],password_confirmation:["",[ne.k0.required]]}),t.jobseekerAvailChange(),t.validate_time_from(),t.createTimePicker(),t.getSkills(),t.get_jobseeker_profile(),t.get_visa_status(),t.getRec(),t.GetVendors(),t.get_city(),t.today_date=Be()().format("YYYY-MM-DD");var o=(new Date).getFullYear(),r=o;o-=73;for(var s=0;s<74;s++)t.year_dropdown.push(o+s);t.year_dropdown.reverse();for(let u=0;u<24;u++)t.hours.push(Be()({hour:u}).format("h:mm A"));t.current_year=r,t.addEducation.controls.date_from.setValue(t.current_year-10),t.addEducation.controls.date_to.setValue(t.current_year);let c=t.activatedRoute.snapshot.fragment;null!=c&&("availability"==c&&(t.availabilityClick(),t.settingsSelectedTab=2),"password"==c&&(t.passwordCl
1ick(),t.settingsSelectedTab=4),"myAccount"==c&&(t.MyAccountClick(),t.settingsSelectedTab=1),"documents"==c&&(t.documentsClick(),t.settingsSelectedTab=5),"paymentHistory"==c&&(t.paymentHistoryClick(),t.settingsSelectedTab=6),"showNotification"==c&&(t.notificationaClick(),t.settingsSelectedTab=7),"employmentType"==c&&(t.empTypeClick(),t.settingsSelectedTab=3),"payment"==c&&(t.paymentClick(),t.settingsSelectedTab=8))})()}get currencySymbol(){return this.currencyService.getCurrencySymbol()}scroll=()=>{let t=document.querySelector("#notificationTab");null!=t&&Ii()(window).scrollTop()+t.clientHeight>=t.scrollHeight&&"showNotification"==this.show_hide_card&&this.notification_current_page!=this.notification_last_page&&0==this.notification_loading&&this.get_user_notification(this.notification_current_page+1)};openCondencedModal(t,n,o){var r=this;return(0,et.A)(function*(){r.prevVideoCheck=o.videoCheck,yield r.modalService.open(t,{centered:!0,windowClass:"cr-custom-modal modal-fullscreen"})})()}showVideoDetail(){var t=this;return(0,et.A)(function*(){if(t.userData&&t.userData.jobseeker_id){let n={jobseeker_id:t.userData.jobseeker_id};yield t.job.getVideoDetails(n).subscribe(o=>{t.globals.loading=!1,console.log("gg",o),t.showVideoDetails=o.ResponseData||[]},o=>{t.globals.loading=!1,t.errorHandler.handleError(o),t.showVideoDetails=[]})}else t.showVideoDetails=[]})()}gotoFullScreen(){if(this.modalService.dismissAll(),this.showVideoDetails&&this.showVideoDetails.length>0&&this.showVideoDetails[0]){const t=this.showVideoDetails[0].skill_id.pop(),n=this.showVideoDetails[0].skill_id.join(",")+","+t;this.navigationService.navigate(`jobseeker/preview-interview/${this.userData.jobseeker_id}`,this.activatedRoute,{queryParams:{skill_id:n,job_id:this.showVideoDetails[0].job_id}})}else console.warn("No video details available for full screen view")}get_city(){var t=this;return(0,et.A)(function*(){yield("in"===t.country?t.common.get_city_in():t.common.get_city()).subscribe(o=>{t.allcity=o.ResponseData},o=>{t.globals.loading=!1,t.errorHandler.handleError(o)})})()}jobseekerAvailChange(){var t=this;return(0,et.A)(function*(){yield t.job.getJobseekerAvailability().subscribe(function(){var n=(0,et.A)(function*(o){1==o.ResponseCode&&(yield t.job.getJobseekerAvailabilityUpdate().subscribe(r=>{}))});return function(o){return n.apply(this,arguments)}}())})()}toggleEditProfile(t){var n=this;return(0,et.A)(function*(){n.profileSidebarEditView=t,n.profileClose=!n.profileClose,n.globals.loading=!0;var o=[];if(n.userData&&n.userData.skill_name_null)for(const[r,s]of Object.entries(n.userData.skill_name_null))n.allskills.push({id:"ADD_"+s,skill_name:s}),o.push("ADD_"+s);if(n.userData&&n.userData.skills)for(const[r,s]of Object.entries(n.userData.skills))n.allskills.some(c=>c.id===s)&&o.push(s);setTimeout(()=>{n.globals.loading=!1,n.userData&&(n.editJobSeeker.get("fname").setValue(n.userData.first_name||""),n.editJobSeeker.get("lname").setValue(n.userData.last_name||""),n.editJobSeeker.get("add").setValue(n.userData.address||""),n.editJobSeeker.get("phone").setValue(n.userData.phone||""),n.editJobSeeker.get("code").setValue(n.userData.phone_code||""),n.editJobSeeker.get("email").setValue(n.userData.email||""),n.editJobSeeker.get("location").setValue(n.userData.current_location||""),n.editJobSeeker.get("job_title").setValue(n.userData.current_job_title||""),n.editJobSeeker.get("skills").setValue(o),n.editJobSeeker.get("rate_per_hour").setValue(n.userData.rate_per_hour||""),n.editJobSeeker.get("max_rate_per_hour").setValue(n.userData.max_rate_per_hour||""),n.editJobSeeker.get("visa").setValue(String(n.userData.visa_status_name||"")),n.editJobSeeker.get("rec").setValue(""==n.userData.recruiter_name?null:n.userData.recruiter_name),n.editJobSeeker.get("code").setValue(n.userData.phone_code||""),n.editJobSeeker.get("phone").setValue(n.userData.phone||""),n.editJobSeeker.get("email").setValue(n.userData.email||""),console.log(o),n.google_locations.add=n.userData.address||"",n.google_locations.location=n.userData.current_location||"")},1e3)})()}toggleCloseProfile(t){this.profileClose=!this.profileClose,this.profileSidebarEditView=t}addSkillPromise(t){return new Promise(n=>{setTimeout(()=>{n({id:"ADD_"+t,skill_name:t,valid:!0})},1e3)})}openModal(t,n,o){try{null!=o&&(this.eduId=o),this.modalService.open(t,{centered:!0,windowClass:n?`cr-custom-modal modal-${n}`:"cr-custom-modal"}).result.then(s=>{this.closeResult=`Closed with: ${s}`},s=>{this.closeResult=`Dismissed: ${s||"Cross click"}`})}catch(r){console.error("Error opening modal:",r),this.errorHandler.handleError(r)}}openSkillEditModal(t,n){this.initializeSkillsForm(),this.openModal(t,n)}initializeSkillsForm(){if(this.userData&&this.userData.skills){const t=[];for(const[n,o]of Object.entries(this.userData.skills))this.allskills.some(r=>
1r.id===o)&&t.push(o);this.jobseekerSkill.get("skills").setValue(t),this.skillData=t}else this.jobseekerSkill.get("skills").setValue([]),this.skillData=[]}onDateSelection(t){console.log(t),this.selectionDate=!0,this.fromDate||this.toDate?this.fromDate&&!this.toDate&&t.after(this.fromDate)?this.toDate=t:(this.toDate=null,this.fromDate=t):this.fromDate=t}openTipsModal(t,n){this.modalService.dismissAll(),this.modalService.open(t,{windowClass:n?`cr-custom-modal modal-${n}`:"cr-custom-modal",centered:!0}).result.then(o=>{this.closeResult=`Closed with: ${o}`})}checkUniqEmail(t,n=null){let o=this.editJobSeeker.get("email"),r=localStorage.getItem("CR_PREF");r=JSON.parse(r);let s={email:t.target.value};r.hasOwnProperty("id")&&(s.id=r.id),o.valid&&this.common.checkUniqEmail(s).subscribe(c=>{0==c.ResponseCode&&o.setErrors({isUnique:!0}),this.check_email=c.ResponseCode},c=>{this.errorHandler.handleError(c)})}addAddressChange(t){console.log("event",t),this.google_locations.add=t,this.editJobSeeker.get("add").setValue(t)}locationAddressChange(t){this.google_locations.location=t,this.editJobSeeker.get("location").setValue(t)}getSkills(){var t=this;return(0,et.A)(function*(){yield t.common.GetSkills().subscribe(function(){var n=(0,et.A)(function*(o){yield o.ResponseData.data.forEach(r=>{t.allskills.push({id:r.id,skill_name:r.skill_name})})});return function(o){return n.apply(this,arguments)}}(),n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}GetVendors(){this.common.GetVendors().subscribe(t=>{this.allvendor=t.ResponseData.data,console.log(this.allvendor)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}open_modal(t,n){console.log(t),t&&this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n}`})}Update_Profile(){if(this.editJobSeeker.invalid)this.editJobSeeker.markAllAsTouched();else{let t=this.editJobSeeker.get("code").value+""+this.editJobSeeker.get("phone").value.replace(/-/g,"");t!=this.userData.phone_code+""+this.userData.phone.replace(/-/g,"")?(this.OtpGroup.get("phone_code").setValue(this.editJobSeeker.get("code").value),this.OtpGroup.get("phone").setValue(this.editJobSeeker.get("phone").value.replace(/-/g,"")),this.sendOtp(this.userData.email,t)):this.Update_jobbseeker_profile()}}Update_jobbseeker_profile(){var t=this;return(0,et.A)(function*(){const n=t.editJobSeeker.value;let r,o=null;n.visa&&("number"==typeof n.visa?o=n.visa:yield t.allVisaData.forEach(function(){var s=(0,et.A)(function*(c){n.visa==c.visa_type&&(o=c.id)});return function(c){return s.apply(this,arguments)}}())),"number"==typeof n.rec?r=n.rec:yield t.recAllData.forEach(function(){var s=(0,et.A)(function*(c){n.rec==c.name&&(r=c.id)});return function(c){return s.apply(this,arguments)}}()),n.visa=o,n.rec=r,n.edit="profile",console.log("a",n),console.log(t.skillsAllData),console.log(n),t.globals.loading=!0,t.job.Update_jobbseeker_profile(n).subscribe(s=>{t.globals.loading=!1,1==s.ResponseCode?(t.modalService.dismissAll(),t.getSkills(),t.editJobSeeker.get("email").value!=t.userData.email?(t.toastr.success("Email Verification link sent on your register email"),setTimeout(()=>{t.authenticationService.logout()},3e3)):(t.toastr.success(s.ResponseText),t.get_jobseeker_profile(),t.profileClose=!t.profileClose,t.profileSidebarEditView=!1,t.job.getdata().subscribe(c=>{console.log(c.ResponseData,"test"),localStorage.setItem("CR_PREF",JSON.stringify(c.ResponseData)),t.currentUsername=c.ResponseData,null!=t.currentUsername.profile&&(t.globals.profile=t.currentUsername.profile),3==t.currentUsername.status&&localStorage.setItem("pcom","no")},c=>{t.globals.loading=!1,t.errorHandler.handleError(c)}))):t.toastr.error(s.ResponseText)},s=>{t.globals.loading=!1,t.errorHandler.handleError(s)})})()}addDocumentData(t){this.uploaded_document_type=t.id,this.isEnableUpload=!1,"Other"!=t.name&&(this.isEnableUpload=!0,this.docsModalData=t.name),console.log(t),this.isShowDocsInput=!1,"Other"==t.name&&(this.isShowDocsInput=!0)}documentNameChange(t){console.log(t.target.value),this.docsModalData="document",this.isEnableUpload=""!=t.target.value}modalClose(){this.modalService.dismissAll()}validate_time_to(){var t=Be()(this.selectedStarTime,"h:mma"),n=Be()(this.selectedEndTime,"h:mma");this.time_invalidate=!t.isBefore(n)}validate_time_from(){var t=Be()(this.selectedStarTime,"h:mma");this.time_picker_array_to=[],this.time_picker_array_from.forEach((o,r)=>
1{let s=Be()(o.hour,"h:mma");t.isBefore(s)?this.time_picker_array_to.push(o):delete this.time_picker_array_to[r]}),"12:00 AM"!=this.selectedStarTime&&this.time_picker_array_to.push(this.time_picker_array_from[this.time_picker_array_from.length-1]),this.selectedEndTime=null;var n=Be()(this.selectedEndTime,"h:mma");this.time_invalidate=!t.isBefore(n)}isRange(t){return t.equals(this.fromDate)||t.equals(this.toDate)||this.isInside(t)||this.isHovered(t)}isHovered(t){return this.fromDate&&!this.toDate&&this.hoveredDate&&t.after(this.fromDate)&&t.before(this.hoveredDate)}isInside(t){return t.after(this.fromDate)&&t.before(this.toDate)}imageChangedEvent="";croppedImage="";lineBreak(t){return t&&t.length?t.replace(/(\\r\\n)|([\r\n])/gim,"<br/>"):t}createTimePicker(){var t=this;return(0,et.A)(function*(){for(var n=1;n<=24;n++)yield t.time_picker_array_from.push({hour:Be()({hour:n}).format("h:mm A"),value:Be()({hour:n}).format("h:mm A")});for(n=1;n<=24;n++)yield t.time_picker_array_to.push({hour:Be()({hour:n}).format("h:mm A"),value:Be()({hour:n}).format("h:mm A")})})()}prepare_changePassword(){let t=new FormData;return t.append("current_password",this.Change_Password.get("current_password").value),t.append("new_password",this.Change_Password.get("new_password").value),t.append("token",localStorage.CR_Tornado),t}changePassword(){const t=this.prepare_changePassword();this.globals.loading=!0,this.job.change_password(t).subscribe(n=>{this.globals.loading=!1,0==n.ResponseCode?this.toastr.error(n.ResponseText):(this.toastr.success(n.ResponseText),setTimeout(()=>{this.authenticationService.logout()},1e3))},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}profileUpdate(t){this.imageChangedEvent=t;let n=["image/jpeg","image/jpg","image/png","image/gif","jpg","jpeg","png","gif"];this.imageChangedEvent.target.files[0].size<=2e6?n.includes(this.imageChangedEvent.target.files[0].type)?this.modalService.open(this.image_crop,{centered:!0,windowClass:"cr-custom-modal modal-small"}):-1==n.indexOf(this.imageChangedEvent.target.files[0].type)?this.toastr.error("Only jpeg, gif, png image allowed."):this.modalService.open(this.image_crop,{centered:!0,windowClass:"cr-custom-modal modal-small"}):this.toastr.error("Only 2MB image allowed.")}confirmSelect(){this.globals.loading=!0,this.job.delete_time_slot({slot_id:this.deleteSlotId}).subscribe(t=>{this.globals.loading=!1,0==t.ResponseCode?this.toastr.error(t.ResponseText):(this.toastr.success(t.ResponseText),this.modalService.dismissAll(),this.get_available_time())},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}imageCropped(t){this.croppedImage=t.base64}loadImageFailed(){this.toastr.error("Failed to load an image.")}getImage(){const t={profile:this.croppedImage};this.globals.loading=!0,this.job.upload_profile(t).subscribe(n=>{if(this.globals.loading=!1,1==n.ResponseCode){this.toastr.success(n.ResponseText),this.globals.profile=this.job.upload_profile_url(n.Data);var o=JSON.parse(localStorage.getItem("CR_PREF"));o.profile=this.globals.profile,localStorage.setItem("CR_PREF",JSON.stringify(o)),this.modalService.dismissAll()}else this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}sendOtp(t=null,n=null){null==t&&null==n&&(n=this.editJobSeeker.get("phone").value.replace(/-/g,""),t=this.userData.email);const o={number:n,email:t,type:"update"};this.globals.loading=!0,this.common.sendotp(o).subscribe(r=>{this.globals.loading=!1;let s=r.ResponseData||{};!0!==s.skip_otp||!1!==(void 0===s.otp_service_enabled||s.otp_service_enabled)?1==r.ResponseCode?(this.showCounter(),this.modalReference=this.modalService.open(this.send_otp_modal,{backdrop:"static",keyboard:!1,windowClass:"cr-custom-modal modal-small"}),this.htmlStr=n):(this.globals.loading=!1,this.toastr.error(r.ResponseText)):this.verifyOtp()},r=>{this.globals.loading=!1,this.errorHandler.handleError(r)})}verifyOtp(){let t={otp:this.OtpGroup.get("otp").value,number:this.OtpGroup.get("phone_code").value+""+this.OtpGroup.get("phone").value};this.globals.loading=!0,this.common.verifyotp(t).subscribe(n=>{this.globals.loading=!1;let o=n.ResponseData||{},r=void 0===o.otp_service_enabled||o.otp_service_enabled;1==n.ResponseCode||!0===o.skip_otp&&!1===r?(!0!==o.skip_otp&&!1!==r&&this.modalReference.close(),this.Update_jobbseeker_profile()):(this.globals.loading=!1,this.toastr.error(n.ResponseText))},n=>{this.errorHandler.handleError(n)})}get_available_time(){this.globals.loading=!0,this.job.get_availibility_time({}).subscribe(t=>{console.log(t),this.globals.loading=!1,0==t.ResponseCode?this.toastr.error(t.ResponseText):(this.show_availability=t.ResponseData.availability,this.availData=!0)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}showCounter(){this.countDown=60;var t=setInterval(()=>{this.countDown=this.countDown-1,0==this.countDown&&clearInterval(t)},1e3)}getRec(){var t=this;return(0,et.A)(function*(){yield t.common.GetRec().subscribe(n=>{console.log("rec",n),t.recAllData=n.ResponseData.data,n.ResponseData.data.forEach(o=>{t.allrec.push(o.name)})},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}get_visa_status(){var t=this;return(0,et.A)(function*(){yield t.common.get_visa_status().subscribe(n=>{console.log(n),n.ResponseData.data.forEach(o=>{t.visa_status.push(o.visa_type)}),t.allVisaData=n.ResponseData.data},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}get_jobseeker_profile(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,yield t.job.get_jobseeker_profile().subscribe(function(){var n=(0,et.A)(function*(o){console.log("jsd",o.ResponseData),localStorage.setItem("CR_PREF",JSON.stringify(o.ResponseData)),t.isSettingsPage=!0,t.globals.loading=!1,t.userData=o.ResponseData,t.originalUserData=JSON.parse(JSON.stringify(o.ResponseData)),console.log(t.userData),t.area_of_study_arr=t.userData.education,t.resume_src=t.userData.resume,t.visa_proof_src=t.userData.visa_proof,t.videoInterviewLink=t.navigationService.redirectUrl()+"/shared/preview-video/"+o.ResponseData.jobseeker_id,t.showVideoDetail(),null!=t.userData.documents&&(t.js_documents=t.userData.documents,t.upload_doc_prev_div_toggle=0==t.js_documents.length),console.log(t.editJobSeeker),null!=t.userData.profile&&(t.globals.profile=t.userData.profile);let r=JSON.parse(localStorage.getItem("CR_PREF"));if(""!=r.profile&&(t.globals.profile=r.profile),null!=t.userData.video&&(t.video_ext=/(?:\.([^.]+))?$/.exec(t.userData.video)[1],t.video_src=t.userData.video),null!=t.userData.unique_user_name?(t.shareJobseekerLink=t.navigationService.redirectUrl()+"/shared/"+t.userData.unique_user_name,t.shareProfileForm.controls.sharedInput.setValue(t.userData.unique_user_name)):t.shareJobseekerLink=t.navigationService.redirectUrl()+"/shared/",1==t.userData.avaliability){t.is_avaliable=!0;const c=t.userData.avaliability_opt,u=t.userData.avaliability_opt_range,h=c.findIndex(f=>1==f),v=c.findIndex(f=>2==f),g=c.findIndex(f=>3==f),b=c.findIndex(f=>5==f);t.Fulltime=-1!=h?1:0,t.Parttime=-1!=v?2:0,t.Remote=-1!=g?3:0,t.Constract=-1!=b?5:0,t.rates_h_s_arry.f_m_x=-1!=h,t.rates_h_s_arry.p_m_x=-1!=v,t.rates_h_s_arry.r_m_x=-1!=g,t.rates_h_s_arry.c_m_x=-1!=b,u.forEach(f=>{1==f.opt&&(t.EmploymentType.controls.f_min.setValue(f.from),t.EmploymentType.controls.f_max.setValue(f.to)),2==f.opt&&(t.EmploymentType.controls.p_min.setValue(f.from),t.EmploymentType.controls.p_max.setValue(f.to)),3==f.opt&&(t.EmploymentType.controls.r_min.setValue(f.from),t.EmploymentType.controls.r_max.setValue(f.to)),5==f.opt&&(t.EmploymentType.controls.c_min.setValue(f.from),t.EmploymentType.controls.c_max.setValue(f.to))}),t.avaliable_change=c,t.EmploymentType.get("avaliability_type").setValue(c),t.check_required_rates()}if(t.avaliability=t.userData.avaliability,t.EmploymentType.get("avaliability").setValue(t.userData.avaliability?.toString()),3==t.userData.avaliability&&((t.userData.avaliability_opt[0]=4)&&t.EmploymentType.get("will_move_project").setValue(!0),null!=t.userData.hired_end_date)){let c=t.userData.hired_end_date.split("-");t.EmploymentType.get("project_end_date").setValue({year:parseInt(c[0],10),month:parseInt(c[1],10),day:parseInt(c[2],10)})}t.is_travel=t.userData.willing_to_travel,t.EmploymentType.get("travel").setValue(t.userData.willing_to_travel),1==t.userData.willing_to_travel&&(console.log(t.userData.willing_city),t.EmploymentType.get("city").setValue(t.userData.willing_city)),t.vendor_detail=[],null!=t.userData.vendor_detail&&null!=t.userData.vendor_detail&&(t.vendor_detail=t.userData.vendor_detail),t.jobseekerOverview.get("overview").setValue(t.userData.overview)});return function(o){return n.apply(this,arguments)}}(),n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}resendOtp(){this.globals.loading=!0;var t=this.editJobSeeker.get("phone").value.replace(/-/g,""),o=this.editJobSeeker.get("code").value+""+t,r=this.editJobSeeker.get("email").value;this.htmlStr=o,this.common.sendotp({number:o,email:r,type:"update"}).subscribe(c=>{this.showCounter(),this.globals.loading=!1},c=>{this.globals.loading=!1,this.errorHandler.handleError(c)})}validURL(t){return new RegExp("^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?").test(t)}add_document_url(t){if(this.validURL(t)){const n=new FormData;n.append("document_url",t),n.append("op","resume_url"),this.globals.loading=!0,this.job.reupload_resume(n).subscribe(o=>{1==o.ResponseCode?(this.toastr.success(o.ResponseText),this.modalService.dismissAll(),this.get_jobseeker_profile(),this.document_div_toggle=!1):this.toastr.error(o.ResponseText),this.globals.loading=!1},o=>{this.globals.loading=!1,this.errorHandler.handleError(o)})}else this.toastr.error("Invalid Url")}inputFocus(t){const n=this.currencyService.getCurrencySymbol();String(t.target.value).includes(n)||(t.target.value=t.target.value)}functionOut(t){t.target.value.length>=2||(t.target.value="")}set_employment_type(){var t=this;if(0==this.userData.avaliability)this.toastr.error("Please select availability");else if(1==this.EmploymentType.value.avaliability&&0==this.Fulltime&&0==this.Parttime&&0==this.Constract&&0==this.Remote)this.toastr.error("Availability type is required");else if(0!=this.Fulltime&&(""==this.EmploymentType.value.f_max||""==this.EmploymentType.value.f_min)||0!=this.Fulltime&&(null==this.EmploymentType.value.f_max||null==this.EmploymentType.value.f_min)||0!=this.Parttime&&(""==this.EmploymentType.value.p_max||""==this.EmploymentType.value.p_min)||0!=this.Parttime&&(null==this.EmploymentType.value.p_max||null==this.EmploymentType.value.p_min)||0!=this.Constract&&(""==this.EmploymentType.value.c_max||""==this.EmploymentType.value.c_min)||0!=this.Constract&&(null==this.EmploymentType.value.c_max||null==this.EmploymentType.value.c_min))this.toastr.error("Please fill min or max salary");else if(!(this.setMaxValueErr||this.setContractMaxValueErr||this.setParttimeMaxValueErr))if(1==this.EmploymentType.get("travel").value&&""==this.EmploymentType.controls.city.value)this.EmploymentType.get("city").setErrors({required:!0});else if(3==this.userData.avaliability&&null==this.EmploymentType.get("project_end_date").value)this.EmploymentType.get("project_end_date").setErrors({isProjectDateErr:!0});else{if("1"==this.Fulltime&&(0==Number(this.EmploymentType.value.f_min)||0==Number(this.EmploymentType.value.f_max)
1))return this.toastr.error("Salary must not be zero"),!1;if("2"==this.Parttime&&(0==Number(this.EmploymentType.value.p_min)||0==Number(this.EmploymentType.value.p_max)))return this.toastr.error("Salary must not be zero"),!1;if("5"==this.Constract&&(0==Number(this.EmploymentType.value.c_min)||0==Number(this.EmploymentType.value.c_max)))return this.toastr.error("Salary must not be zero"),!1;{const o=new FormData;o.append("checkbox",this.avaliable_change),o.append("avaliability",this.EmploymentType.get("avaliability").value),o.append("travel",this.EmploymentType.get("travel").value),o.append("city",1==this.EmploymentType.get("travel").value?this.EmploymentType.get("city").value:""),3==this.EmploymentType.get("avaliability").value&&(o.append("will_move_project",this.EmploymentType.get("will_move_project").value),o.append("project_end_date",this.EmploymentType.value.project_end_date.year+"-"+this.EmploymentType.value.project_end_date.month+"-"+this.EmploymentType.value.project_end_date.day)),console.log("emp",JSON.str
1ingify(this.EmploymentType.value));let r=JSON.stringify(this.EmploymentType.value),s=JSON.parse(r);console.log("gg",s),2==this.EmploymentType.get("avaliability").value||3==this.EmploymentType.get("avaliability").value||(null==s.f_min?s.f_min="":s.f_min.includes(this.currencySymbol)&&(s.f_min=s.f_min.replace(this.currencySymbol,"")),null==s.f_max?s.f_max="":s.f_max.includes(this.currencySymbol)&&(s.f_max=s.f_max.replace(this.currencySymbol,"")),null==s.c_min?s.c_min="":s.c_min.includes(this.currencySymbol)&&(s.c_min=s.c_min.replace(this.currencySymbol,"")),null==s.c_max?s.c_max="":s.c_max.includes(this.currencySymbol)&&(s.c_max=s.c_max.replace(this.currencySymbol,"")),null==s.p_min?s.p_min="":s.p_min.includes(this.currencySymbol)&&(s.p_min=s.p_min.replace(this.currencySymbol,"")),null==s.p_max?s.p_max="":s.p_max.includes(this.currencySymbol)&&(s.p_max=s.p_max.replace(this.currencySymbol,"")),null==s.r_min?s.r_min="":s.r_min.includes(this.currencySymbol)&&(s.r_min=s.r_min.replace(this.currencySymbol,"")),null==s.r_max?s.r_max="":s.r_max.includes(this.currencySymbol)&&(s.r_max=s.r_max.replace(this.currencySymbol,""))),console.log(s),1!=this.EmploymentType.get("avaliability").value?this.avaliable_change=[]:(console.log("ava",this.avaliable_change),(this.avaliable_change.includes(",")?this.avaliable_change.split(","):this.avaliable_change).forEach(c=>{1==c&&o.append("salay_range["+c+"]",s.f_min+","+s.f_max),2==c&&o.append("salay_range["+c+"]",s.p_min+","+s.p_max),3==c&&o.append("salay_range["+c+"]",s.r_min+","+s.r_max),5==c&&o.append("salay_range["+c+"]",s.c_min+","+s.c_max)})),this.globals.loading=!0,this.job.employment_type(o).subscribe(function(){var c=(0,et.A)(function*(u){t.globals.loading=!1,1==u.ResponseCode?(console.log("nn",t.userData),t.toastr.success(u.ResponseText),t.get_jobseeker_profile()):t.toastr.error(u.ResponseText)});return function(u){return c.apply(this,arguments)}}(),c=>{this.globals.loading=!1,this.errorHandler.handleError(c)})}}}getPagePaymentHistory(t){this.payment_history_page=t,this.view_payment_history()}view_payment_history(){let t={page:this.payment_history_page};this.globals.loading=!0,this.job.view_payment_history(t).subscribe(n=>{console.log(n),this.isShowPaymentTable=!0,this.globals.loading=!1,1==n.ResponseCode?(this.payment_history=n.ResponseData,n.ResponseData&&n.ResponseData.payment_data?(this.payment_history_total=n.ResponseData.payment_data.total||0,this.payment_history_page=n.ResponseData.payment_data.current_page||1,this.payment_history_per_page=n.ResponseData.payment_data.per_page||10):(this.payment_history_total=0,this.payment_history_page=1,this.payment_history_per_page=10)):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}get_user_notification(t=this.notification_current_page){var n=this;this.show_hide_card="showNotification",this.notification_current_page!=this.notification_last_page&&(this.notification_loading=!0,this.common.get_user_notification({page:t}).subscribe(function(){var r=(0,et.A)(function*(s){1==s.ResponseCode&&(yield s.ResponseData.notifications.data.forEach(c=>{c.message={...c.message,url:"/jobsekeer"};let u=n.NotificationService.create_notification_element(c.message);n.notifications.push(u)}),s.ResponseData&&s.ResponseData.notifications?(n.notification_current_page=s.ResponseData.notifications.current_page||1,n.notification_last_page=s.ResponseData.notifications.last_page||1):(n.notification_current_page=1,n.notification_last_page=1),n.globals.notifications=[],n.notification_loading=!1),console.log("ss",n.notifications)});return function(s){return r.apply(this,arguments)}}(),r=>{this.globals.loading=!1,this.errorHandler.handleError(r)}))}matchPassword(t){this.showMatchPassword=t.target.value!=this.Change_Password.controls.new_password.value}matchConfPassword(t){this.showMatchPassword=t.target.value!=this.Change_Password.controls.password_confirmation.value}changeAvailability(t){if(this.is_avaliable="1"==t,this.avaliability=t,this.EmploymentType.controls.avaliability.setValue(this.avaliability),1==this.userData.avaliability&&"1"==t){const n=this.originalUserData&&Object.keys(this.originalUserData).length>0?this.originalUserData:this.userData,o=Array.isArray(n.avaliability_opt)?JSON.parse(JSON.stringify(n.avaliability_opt)):[],r=Array.isArray(n.avaliability_opt_range)?JSON.parse(JSON.stringify(n.avaliability_opt_range)):[];this.EmploymentType.get("avaliability_type").setValue([],{emitEvent:!1}),this.in_project_availability_reset(),this.cdr.detectChanges(),setTimeout(()=>{const s=o.map(b=>Number(b)),c=r,u=s.findIndex(b=>1===Number(b)),h=s.findIndex(b=>2===Number(b)),v=s.findIndex(b=>3===Number(b)),g=s.findIndex(b=>5===Number(b));this.Fulltime=-1!==u?1:0,this.Parttime=-1!==h?2:0,this.Remote=-1!==v?3:0,this.Constract=-1!==g?5:0,this.rates_h_s_arry.f_m_x=-1!==u,this.rates_h_s_arry.p_m_x=-1!==h,this.rates_h_s_arry.r_m_x=-1!==v,this.rates_h_s_arry.c_m_x=-1!==g,this.EmploymentType.controls.f_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.f_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.p_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.p_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.r_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.r_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.c_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.c_max.setValue(null,{emitEvent:!1}
1),c.forEach(b=>{1===Number(b.opt)&&(this.EmploymentType.controls.f_min.setValue(b.from),this.EmploymentType.controls.f_max.setValue(b.to)),2===Number(b.opt)&&(this.EmploymentType.controls.p_min.setValue(b.from),this.EmploymentType.controls.p_max.setValue(b.to)),3===Number(b.opt)&&(this.EmploymentType.controls.r_min.setValue(b.from),this.EmploymentType.controls.r_max.setValue(b.to)),5===Number(b.opt)&&(this.EmploymentType.controls.c_min.setValue(b.from),this.EmploymentType.controls.c_max.setValue(b.to))}),this.avaliable_change=[...s],-1===g&&(this.Constract=0,this.rates_h_s_arry.c_m_x=!1,this.avaliable_change=this.avaliable_change.filter(b=>5!==Number(b))),-1===h&&(this.Parttime=0,this.rates_h_s_arry.p_m_x=!1,this.avaliable_change=this.avaliable_change.filter(b=>2!==Number(b))),-1===v&&(this.Remote=0,this.rates_h_s_arry.r_m_x=!1,this.avaliable_change=this.avaliable_change.filter(b=>3!==Number(b))),this.EmploymentType.get("avaliability_type").setValue([...this.avaliable_change],{emitEvent:!0}),this.cdr.detectChanges()},100)}else this.in_project_availability_reset(),this.EmploymentType.get("avaliability_type").setValue([]);if("3"==t&&(console.log("this.userData",this.userData),null!=this.userData.hired_end_date)){const n=this.userData.hired_end_date?.split("-")||null,o=this.userData.will_move_project||!1;this.EmploymentType.get("project_end_date").setValue({year:parseInt(n[0],10),month:parseInt(n[1],10),day:parseInt(n[2],10)}),this.EmploymentType.get("will_move_project").setValue(o)}}in_project_availability_reset(){this.Fulltime=0,this.Parttime=0,this.Remote=0,this.Constract=0,this.avaliable_change=[],this.EmploymentType.get("avaliability_type").setValue([],{emitEvent:!1}),this.EmploymentType.controls.f_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.f_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.p_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.p_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.r_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.r_max.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.c_min.setValue(null,{emitEvent:!1}),this.EmploymentType.controls.c_max.setValue(null,{emitEvent:!1}),this.rates_h_s_arry={f_m_x:!1,p_m_x:!1,r_m_x:!1,c_m_x:!1}}is_avaliable_change(t){console.log(t.target.value);const n=Number(t.target.value);if(t.target.checked)1===n?(this.rates_h_s_arry.f_m_x=!0,this.Fulltime=1):2===n?(this.rates_h_s_arry.p_m_x=!0,this.Parttime=2):3===n?(this.rates_h_s_arry.r_m_x=!0,this.Remote=3):5===n&&(this.rates_h_s_arry.c_m_x=!0,this.Constract=5),this.avaliable_change.includes(n)||this.avaliable_change.push(n);else{1===n?(this.rates_h_s_arry.f_m_x=!1,this.Fulltime=0):2===n?(this.rates_h_s_arry.p_m_x=!1,this.Parttime=0):3===n?(this.rates_h_s_arry.r_m_x=!1,this.Remote=0):5===n&&(this.rates_h_s_arry.c_m_x=!1,this.Constract=0);const o=this.avaliable_change.findIndex(r=>Number(r)===n);-1!==o&&this.avaliable_change.splice(o,1)}this.avaliable_change=this.avaliable_change.map(o=>Number(o)).filter((o,r,s)=>s.indexOf(o)===r),this.EmploymentType.get("avaliability_type").setValue([...this.avaliable_change]),this.check_required_rates()}check_required_rates(){(0==this.userData.vendor||null==this.userData.vendor)&&setTimeout(()=>{0!=this.Fulltime?this.set_validation("f"):this.remove_validation("f"),0!=this.Parttime?this.set_validation("p"):this.remove_validation("p"),0!=this.Remote?this.set_validation("r"):this.remove_validation("r"),0!=this.Constract?this.set_validation("c"):this.remove_validation("c")},200)}onOtherDocumentChange(t){if(t.target.files.length>0){let n=!1,o=t.target.files,r=new Array("application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","image/jpeg","image/jpg","image/png"),s=new Array("doc","docx","pdf","jpg","jpeg","png","gif");for(let c=0;c<o.length;c++){const u=o[c];let h=u.name.split(".")[1];-1==r.indexOf(u.type)&&-1==s.indexOf(h)&&(n=!0)}n?this.toastr.error("File type is invalid."):(this.other_document_files=o,this.handleOtherFileInput(o),this.uploadOtherDocuments())}}uploadOtherDocuments(){const t=new FormData;t.append("file",this.other_document_files[0]),t.append("file_type",this.uploaded_document_type),t.append("op","documents"),6==this.uploaded_document_type&&t.append("document_name",this.other_document_name),this.globals.loading=!0,this.job.reupload_resume(t).subscribe(n=>{1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.modalService.dismissAll(),this.get_jobseeker_profile(),this.isShowDocsInput=!1,this.isEnableUpload=!1,this.other_document_name=null):this.toastr.error(n.ResponseText),this.globals.loading=!1},n=>{this.globals.loading=!1,this.modalService.dismissAll(),this.errorHandler.handleError(n)})}openPdfViwer(t,n,o){console.log(n),"view_doc"==t&&(1==n.document_type?window.open(n.document_url,"_blank").focus():"docx"==n.extension||"doc"==n.extension?(this.resume_src=n.document_url,this.modalService.open(this.showDocsModal,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"})):-1!=this.document_type_array.indexOf(n.extension)?(this.modalService.open(this.resume_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.document_url):(this.visa_proof_src=n.document_url,this.modalService.open(this.visa_proof_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.document_url))}download(t){var n=this;return(0,et.A)(function*(){if(t)try{n.globals.loading=!0;const o=yield fetch(t);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);const r=yield o.blob(),s=t.split("/").pop()||"document",c=window.URL.createObjectURL(r),u=document.createElement("a");u.href=c,u.download=s,u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),window.URL.revokeObjectURL(c),n.toastr.success("File downloaded successfully")}catch(o){console.error("Download error:",o),n.toastr.error("Failed to download file. Please try again."),window.open(t,"_blank")}finally{n.globals.loading=!1}else n.toastr.error("No file available for download")})()}document_clicked(t,n,o){"delete_doc"==t&&(o.stopPropagation(),o.preventDefault(),this.modalService.open(this.deleteDocModal,{centered:!0,windowClass:"cr-custom-modal modal-small"}),this.documentId=n.doc_id)}deteteDocument(){this.job.delete_document({doc_id:this.documentId}).subscribe(n=>{this.globals.loading=!1,1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.get_jobseeker_profile(),this.modalService.dismissAll()):(this.toastr.error(n.ResponseText),this.modalService.dismissAll())},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}handleOtherFileInput(t){this.other_document_files=[];for(let n=0;n<t.length;n++)this.other_document_files.push(t.item(n))}checkMinRate(t){let n=this.EmploymentType.controls.f_min.value;if(String(n).includes(this.currencySymbol)){var o=String(n).replace(this.currencySymbol,"");console.log(o)}else o=String(n);if(String(t.target.value).includes(this.currencySymbol)){var r=String(t.target.value).replace(this.currencySymbol,"");console.log(r)}else r=String(t.target.value);this.setMaxValueErr=Number(o)>Number(r)}checkMinRateFirst(t){let n=this.EmploymentType.controls.f_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setMaxValueErr=Number(o)<Number(r)}checkRemoteMinRate(t){let n=this.EmploymentType.controls.r_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setRemoteMaxValueErr=Number(o)>Number(r)}checkContractMinRate(t){let n=this.EmploymentType.controls.c_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setContractMaxValueErr=Number(o)>Number(r)}checkContractMinRateFirst(t){let n=this.EmploymentType.controls.c_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setContractMaxValueErr=Number(o)<Number(r)}checkParttimeMinRate(t){let n=this.EmploymentType.controls.p_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setParttimeMaxValueErr=Number(o)>Number(r)}checkParttimeMinRateFirst(t){let n=this.EmploymentType.controls.p_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setParttimeMaxValueErr=Number(o)<Number(r)}
1keyPressNumbers(t){var n=t.which?t.which:t.keyCode;return!(n<48||n>57)||36==n||(t.preventDefault(),!1)}set_validation(t){this.EmploymentType.get(t+"_max").value||this.EmploymentType.get(t+"_max").setErrors({required:!0}),this.EmploymentType.get(t+"_min").value||this.EmploymentType.get(t+"_min").setErrors({required:!0})}remove_validation(t){this.EmploymentType.get(t+"_min").setErrors(null),this.EmploymentType.get(t+"_max").setErrors(null)}checkUniqPhone(t){this.isEnableNext=!0;const n=this.editJobSeeker.get("phone");n.valid&&this.common.checkAvailPhone({phone:t.target.value.replace(/-/g,""),code:this.editJobSeeker.get("code").value,id:this.userData.id}).subscribe(o=>{this.isEnableNext=!1,0==o.ResponseCode&&this.editJobSeeker.get("code").value+""+this.editJobSeeker.get("phone").value.replace(/-/g,"")!=this.userData.phone_code+""+this.userData.phone.replace(/-/g,"")&&n.setErrors({isUnique:!0})},o=>{this.errorHandler.handleError(o)})}check_date_already_set(){let t=null,n=null;if(this.set_avail_error_msg=null,null!=this.dateRange){let r={};r.day=Number(Be()(this.dateRange[0]).format("DD")),r.month=Number(Be()(this.dateRange[0]).format("MM")),r.year=Number(Be()(this.dateRange[0]).format("YYYY"));let s={};if(s.day=Number(Be()(this.dateRange[1]).format("DD")),s.month=Number(Be()(this.dateRange[1]).format("MM")),s.year=Number(Be()(this.dateRange[1]).format("YYYY")),this.fromDate=r,this.toDate=s,null!=this.dateToTime&&null!=this.dateFromTime?(this.selectedStarTime=Be()(this.dateFromTime).format("hh:mm A"),this.selectedEndTime=Be()(this.dateToTime).format("hh:mm A")):(null==this.dateToTime||null==this.dateFromTime)&&(this.selectedStarTime=null,this.selectedEndTime=null),null!=this.dateRange[0]&&null==this.dateRange[1])return this.toastr.error("Please Select end date"),!1;if(null!=this.dateRange[0]&&null!=this.dateRange[1]&&(this.selectionDate=!0),null!=r&&(t=Be()(this.dateRange[0]).format("YYYY-MM-DD")),null!=s&&(n=Be()(this.dateRange[1]).format("YYYY-MM-DD")),null!=t&&null==n)for(var o in this.show_availability)o==t&&(this.set_avail_error_msg=!0);else{let c=Object.keys(this.show_availability);for(;t<=n;)c.includes(t)&&(this.set_avail_error_msg=!0),t=Be()(t).add(1,"days").format("YYYY-MM-DD")}}1==this.set_avail_error_msg?this.modalService.open(this.avaliabilityOverrideModel,{backdrop:"static",keyboard:!1,centered:!0,windowClass:"cr-custom-modal modal-small"}):(this.override_date=!1,this.submitAvailAbility())}submitAvailAbility(){if(null==this.selectedEndTime||null==this.selectedStarTime)this.toastr.error("Please Select time");else if(0==this.selectionDate)this.toastr.error("Please Select date");else{this.globals.loading=!0;const t={start_date:this.fromDate.day+"-"+this.fromDate.month+"-"+this.fromDate.year,end_date:null==this.toDate?this.toDate:this.toDate.day+"-"+this.toDate.month+"-"+this.toDate.year,timeslot:[[String(this.selectedStarTime),String(this.selectedEndTime)]],override:1==this.override_date?1:0};this.job.setAvailabilty(t).subscribe(n=>{this.globals.loading=!1,1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.modalService.dismissAll(),this.get_available_time(),this.modalReference.close("Save click"),this.fromDate=this.calendar.getToday(),this.toDate=this.calendar.getNext(this.calendar.getToday(),"d",0),this.time_slot_array=[]):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}}delete_time_slot(t){this.deleteSlotId=t.value[0].id,this.statusInText="delete it",this.modalService.open(this.cofirmationModal,{backdrop:"static",keyboard:!1,centered:!0,windowClass:"cr-custom-modal modal-small"})}edit_time_slot(t){this.editAvailabilityData=t,this.editAvailabilityId=t.value[0].id;const n=new Date(t.key);this.editDateRange=n;const o=t.value[0],r=new Date,c=o.to_time;this.editDateFromTime=this.parseTimeString(o.from_time,r),this.editDateToTime=this.parseTimeString(c,r),this.modalService.open(this.editAvailabilityModal,{backdrop:"static",keyboard:!1,centered:!0,windowClass:"cr-custom-modal modal-medium"})}parseTimeString(t,n){if(!t)return null;Be()(t,"hh:mm A");const r=Be()(n).format("YYYY-MM-DD");return Be()(r+" "+t,"YYYY-MM-DD hh:mm A").toDate()}updateAvailability(){if(null==this.editDateToTime||null==this.editDateFromTime)this.toastr.error("Please Select time");else if(null==this.editDateRange)this.toastr.error("Please Select date");else{this.globals.loading=!0;const t=Be()(this.editDateFromTime).format("hh:mm A"),n=Be()(this.editDateToTime).format("hh:mm A"),o={id:this.editAvailabilityId,start_date:Be()(this.editDateRange).format("YYYY-MM-DD"),timeslot:[t,n]};this.job.update_availability(o).subscribe(r=>{this.globals.loading=!1,1==r.ResponseCode?(this.toastr.success(r.Re
1sponseText),this.modalService.dismissAll(),this.get_available_time(),this.editDateRange=null,this.editDateFromTime=null,this.editDateToTime=null,this.editAvailabilityId=null,this.editAvailabilityData=null):this.toastr.error(r.ResponseText)},r=>{this.globals.loading=!1,this.errorHandler.handleError(r)})}}Update_jobbseeker_overview(){const t=this.jobseekerOverview.value;t.edit="overview",this.globals.loading=!0,this.job.Update_jobbseeker_profile(t).subscribe(n=>{this.globals.loading=!1,1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.get_jobseeker_profile(),this.jobseeker_overview=!1,this.modalService.dismissAll()):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}updateJobseekerSkills(){if(this.jobseekerSkill.markAllAsTouched(),this.jobseekerSkill.valid){const t=this.jobseekerSkill.value;t.edit="skills",this.globals.loading=!0,this.job.Update_jobbseeker_profile(t).subscribe(n=>{this.globals.loading=!1,1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.get_jobseeker_profile(),this.modalService.dismissAll(),this.jobseekerSkill.reset()):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}else this.toastr.error("Please select at least one skill")}add_eduction(){if(console.log(this.addEducation.value),this.addEducation.valid)this.globals.loading=!0,this.job.add_eduction(this.addEducation.value).subscribe(n=>{1==n.ResponseCode?(this.globals.loading=!1,this.toastr.success(n.ResponseText),this.area_of_study_arr=n.ResponseData.education,this.get_jobseeker_profile(),this.modalService.dismissAll(),this.addEducation.reset(),this.add_education=!1):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)});else for(let t in this.addEducation.controls)this.addEducation.controls[t].markAsTouched()}deleteEducation(){let t=this.eduId;this.globals.loading=!0,this.job.delete_education(t).subscribe(n=>{1==n.ResponseCode?(this.globals.loading=!1,this.toastr.success(n.ResponseText),this.get_jobseeker_profile(),this.modalService.dismissAll()):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}edit_education(t,n,o){this.editEducation.get("school").setValue(o.school),this.editEducation.get("degree").setValue(o.degree),this.editEducation.get("area_of_study").setValue(o.area_of_study),this.editEducation.get("date_from").setValue(o.date_from),this.editEducation.get("date_to").setValue(o.date_to),this.editEducation.get("id").setValue(o.id),this.modalService.open(t,{centered:!0,windowClass:n?`cr-custom-modal modal-${n}`:"cr-custom-modal"}).result.then(s=>{this.closeResult=`Closed with: ${s}`},s=>{this.closeResult=`Dismissed: ${s||"Cross click"}`})}update_eduction(){var t=this;return(0,et.A)(function*(){console.log(t.editEducation.value),t.globals.loading=!0;const n=t.editEducation.value;yield t.job.update_eduction(n).subscribe(function(){var o=(0,et.A)(function*(r){1==r.ResponseCode?(t.globals.loading=!1,t.toastr.success(r.ResponseText),t.get_jobseeker_profile(),t.modalService.dismissAll(),t.edit_education_div=!1,t.add_education=!0):t.toastr.error(r.ResponseText)});return function(r){return o.apply(this,arguments)}}(),o=>{t.globals.loading=!1,t.errorHandler.handleError(o)})})()}changeDate(t){console.log(t),console.log(this.addEducation.controls.date_from.value),this.showEducationYearErr=this.addEducation.controls.date_from.value>t}changeToDate(t){console.log(t),console.log(this.addEducation.controls.date_to.value),this.showEducationYearErr=this.addEducation.controls.date_to.value<t}passwordToggle(){this.is_pass_visible=!this.is_pass_visible}cpasswordToggle(){this.is_cpass_visible=!this.is_cpass_visible}npasswordToggle(){this.is_npass_visible=!this.is_npass_visible}setShareProfileLink(){console.log(this.shareProfileForm);let t=this.shareProfileForm.controls.sharedInput.value;""==t?this.shareProfileForm.markAllAsTouched():(this.isSaveBtn=!1,this.job.shareProfileLink({user_name:t}).subscribe(n=>{this.isSaveBtn=!0,0==n.ResponseCode?this.shareProfileForm.get("sharedInput").setErrors({isUniqueLink:!0}):(this.toastr.success(n.ResponseText),this.isEditLink=!this.isEditLink,this.shareJobseekerLink=this.navigationService.redirectUrl()+"/shared/"+t,this.shareProfileForm.controls.sharedInput.setValue(t),this.get_jobseeker_profile())}))}copyMessage(){const t=document.createElement("textarea");t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.opacity="0",t.value=this.navigationService.redirectUrl()+"/shared/"+this.userData.unique_user_name,document.body.appendChild(t),t.focu
1s(),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.toastr.success("Copied successfully")}removeWhiteSpace(t){return/^\S*$/.test(t.key)}MyAccountClick(){this.show_hide_card="myAccount",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"myAccount"})}availabilityClick(){this.show_hide_card="availability",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"availability"}),this.get_available_time()}empTypeClick(){this.show_hide_card="employmentType",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"employmentType"}),setTimeout(()=>{const t=this.originalUserData&&Object.keys(this.originalUserData).length>0?this.originalUserData:this.userData;if(t&&t.avaliability){const n=t.avaliability.toString();this.changeAvailability(n)}},100)}passwordClick(){this.show_hide_card="password",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"password"})}documentsClick(){this.show_hide_card="documents",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"documents"})}paymentHistoryClick(){this.show_hide_card="paymentHistory",this.view_payment_history(),this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"paymentHistory"})}paymentClick(){this.show_hide_card="payment",this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"payment"})}notificationaClick(){this.show_hide_card="showNotification",this.get_user_notification(),this.navigationService.navigate("jobseeker/settings",this.activatedRoute,{fragment:"showNotification"})}charactersOnly(t){var n=new RegExp("^[a-zA-Z]+$"),o=String.fromCharCode(t.charCode?t.charCode:t.which);return!!n.test(o)||(t.preventDefault(),!1)}alphaNumberOnly(t){var n=new RegExp("^[a-zA-Z0-9 ]+$"),o=String.fromCharCode(t.charCode?t.charCode:t.which);return!!n.test(o)||(t.preventDefault(),!1)}shareInviteLink(){this.modalService.open(this.shareInviteModal,{backdrop:"static",centered:!0,keyboard:!1,windowClass:"cr-custom-modal modal-medium"})}shareWhatsappLink(){let t=this.userData.first_name,n=this.userData.last_name;const o="https://web.whatsapp.com/send?text=Hi,%0a"+t.charAt(0).toUpperCase()+t.slice(1)+" "+n.charAt(0).toUpperCase()+n.slice(1)+" has invited you to signup on Cloudrek.%0a"+this.inviteJobseekerLink+"%0aCloudRek allows you to submit your candidates directly to  clients and earn commissions.";window.open(o,"_blank")}shareMailUrl(){let t=this.userData.first_name,n=this.userData.last_name;const o="Hi,%0a"+t.charAt(0).toUpperCase()+t.slice(1)+" "+n.charAt(0).toUpperCase()+n.slice(1)+" has invited you to signup on Cloudrek.%0a"+this.inviteJobseekerLink+"%0aCloudRek allows you to submit your candidates directly to  clients and earn commissions.";window.open(`https://mail.google.com/mail/?view=cm&fs=1&to=''&su=Invite Link&body=${o}`,"_blank")}copyInviteLink(){const t=document.createElement("textarea");t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.opacity="0",t.value=this.inviteJobseekerLink,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.toastr.success("Link copied")}validatePhone(t){const n=this.editJobSeeker.get("phone");12!=t.target.value.length&&n.setErrors({isValidPhone:!0})}shareVideoInterview(){this.modalService.open(this.shareVideoInterviewModal,{backdrop:"static",centered:!0,keyboard:!1,windowClass:"cr-custom-modal modal-medium"})}copyInterviewLink(){const t=document.createElement("textarea");t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.opacity="0",t.value=this.videoInterviewLink,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.toastr.success("Link copied")}shareLinkedIn(){const c=this.sanitizer.bypassSecurityTrustUrl(`https://www.linkedin.com/shareArticle?mini=true&url=${this.videoInterviewLink}&title=&summary=&source=&via=`);window.open(c.changingThisBreaksApplicationSecurity,"_blank")}shareTwitterUrl(){const t=this.getTwitterShareUrl("Check out Video Interview link!",this.videoInterviewLink),n=this.sanitizer.bypassSecurityTrustUrl(t);console.log(n),window.open(n.changingThisBreaksApplicationSecurity,"_blank")}getTwitterShareUrl(t,n){return`https://twitter.com/share?text=${encodeURIComponent(t)}&url=${encodeURIComponent(n)}`}shareeMailUrl(){window.open(`https://mail.google.com/mail/?view=cm&fs=1&to=''&su=Share Video Interview&body=${this.videoInterviewLink}`,"_blank")}shareFacebook(){window.open(`https://www.facebook.com/sharer/sharer.php?u=${this.videoInterviewLink}&amp;
1src=sdkpreparse`,"_blank")}redirectVideoInterview(t){const n=t.skill_id.pop(),o=t.skill_id.join(",")+","+n;this.navigationService.navigate(`jobseeker/preview-interview/${this.userData.jobseeker_id}`,this.activatedRoute,{queryParams:{skill_id:o,job_id:t.job_id}})}createStripeAccount(){this.globals.loading=!0,this.common.createStripeAccount().subscribe(t=>{this.globals.loading=!1,1==t.ResponseCode?window.location.href=t.ResponseData.stripe_onboard_data.url:this.toastr.warning("Account already created")})}static \u0275fac=function(n){return new(n||i)(e.rXU(Ue.Bq),e.rXU(Qt.E),e.rXU(ni.h),e.rXU(ji.c),e.rXU(Yi.m),e.rXU(ne.ok),e.rXU(Ut.tw),e.rXU(Oi.u),e.rXU(Ve.Ix),e.rXU(Ue.I5),e.rXU(qe.aZ),e.rXU(Ve.nX),e.rXU(Wi.up),e.rXU(e.sFG),e.rXU(uo.J),e.rXU(cn.z),e.rXU(Zi.P),e.rXU(Mi.o),e.rXU(e.gRc))};static \u0275cmp=e.VBU({type:i,selectors:[["app-jobseeker-settings"]],viewQuery:function(n,o){if(1&n&&(e.GBs(So,5),e.GBs(wa,5),e.GBs(xa,5),e.GBs(Ml,5),e.GBs(Er,5),e.GBs(Rr,5),e.GBs(Tr,5),e.GBs(Ol,5),e.GBs(Ca,5),e.GBs(Ai,5),e.GBs(Al,5),e.GBs(fs,5),e.GBs(Gl,5),e.GBs(ja,5),e.GBs(Fi,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.myresume=r.first),e.mGM(r=e.lsd())&&(o.visa_proof=r.first),e.mGM(r=e.lsd())&&(o.video=r.first),e.mGM(r=e.lsd())&&(o.resume_show=r.first),e.mGM(r=e.lsd())&&(o.visa_proof_show=r.first),e.mGM(r=e.lsd())&&(o.showDocsModal=r.first),e.mGM(r=e.lsd())&&(o.send_otp_modal=r.first),e.mGM(r=e.lsd())&&(o.avaliabilityOverrideModel=r.first),e.mGM(r=e.lsd())&&(o.editAvailabilityModal=r.first),e.mGM(r=e.lsd())&&(o.cofirmationModal=r.first),e.mGM(r=e.lsd())&&(o.deleteDocModal=r.first),e.mGM(r=e.lsd())&&(o.shareInviteModal=r.first),e.mGM(r=e.lsd())&&(o.shareVideoInterviewModal=r.first),e.mGM(r=e.lsd())&&(o.openAccountModal=r.first),e.mGM(r=e.lsd())&&(o.image_crop=r.first)}},standalone:!0,features:[e.Jv_([(0,Dn.Dw)()]),e.aNF],decls:48,vars:2,consts:[["AddURLModal",""],["AddDocModal",""],["interviewDetailsModal",""],["interviewTips",""],["image_crop",""],["vidPreviewModal",""],["availabilityModal",""],["editAvailabilityModal",""],["cofirmationModal",""],["avaliabilityOverrideModel",""],["deleteDocModal",""],["showDocsModal",""],["resume_show",""],["visa_proof_show",""],["eduEditModal",""],["send_otp_modal",""],["eduAddModal",""],["aboutEditModal",""],["skillEditModal",""],["deleteEducationModal",""],["shareInviteModal",""],["shareVideoInterviewModal",""],["openAccountModal",""],["upload_profile",""],["nav","ngbNav"],["code",""],["phone",""],["visa",""],["rec",""],["Part",""],["d","ngbDatepicker"],["fullTimeCheckbox",""],["ContractCheckbox",""],["PartTimeCheckbox",""],["RemoteCheckbox",""],["city",""],["current_password",""],["password_confirmation",""],["scrollMe",""],["resume_url",""],["selectDropdown",""],["videoElement",""],["dt2",""],["dt3",""],["dt4",""],["dt5",""],["otp",""],["overview",""],[3,"loading"],["class","profile-settings-page main-content-wrap",4,"ngIf"],[1,"profile-settings-page","main-content-wrap"],[1,"profile-settings-wrap"],[1,"profile-sidebar"],[1,"profile-side-header"],[1,"profile-cover"],["class","cr-btn-round",3,"click",4,"ngIf"],[1,"position-relative","round"],["id","profilePicSetting","type","file","name","profilePicSetting","ormControlName","upload_profile",1,"custom-hidden-input",3,"change"],["class","jobseeker-def-img",4,"ngIf"],["for","profilePicSetting","class","jobseeker-def-img d-block",4,"ngIf"],[1,"text-center","px-3"],[1,"fw-600"],[1,"color-teal-blue","fw-400",3,"href"],["class","profile-side-content",4,"ngIf"],["class","profile-side-content px-5 pb-5",4,"ngIf"],[1,"profile-main"],[1,"settings-header"],["ngbNav","",1,"settings-head-nav",3,"activeIdChange","activeId"],[3,"ngbNavItem"],["ngbNavLink","",1,"cr-head-nav-item",3,"click"],[1,"material-icons-outlined","mr-3"],[4,"ngIf"],["ngbNavLink","",1,"cr-head-nav-item",3,"click","ngClass"],[1,"settings-content"],[3,"ngbNavOutlet"],[1,"cr-btn-round",3,"click"],["title","Edit Profile",1,"material-icons-outlined"],[1,"jobseeker-def-img"],["alt","",1,"img-cover","round","img-inherit",3,"src"],["for","profilePicSetting",1,"jobseeker-def-img","d-block"],[1,"edit-profile-img-icon"],[1,"material-icons-outlined"],[1,"profile-side-content"],[1,"profile-side-list"],[1,"profile-side-item"],[1,"side-item-inner"],[1,"sidebar-item-title"],[1,"sidebar-item-value"],[1,"color-alice-blue",3,"href"],["class","profile-side-item",4,"ngIf"],[1,"profile-side-item","d-flex","justify-content-center"],[1,"cr-btn","cr-btn-filled","cr-btn-blue","w-100","mt-4",2,"max-width","240px",3,"click"],["class","side-social",3,"href",4,"ngIf"],[1,"side-social",3,"href"],["src","assets/images/icons/twitter-round.svg","alt","Twitter"],["src","assets/images/icons/facebook-round.svg","alt","Facebook"],["src","assets/images/icons/linkedin-round.svg","alt","LinkedIn"],[1,"profile-side-content","px-5","pb-5"],[3,"formGroup"],[1,"cr-input-wrap","mb
1-4"],[1,"d-flex"],["type","text","placeholder","First Name","autocomplete","off","formControlName","fname",1,"cr-form-control","control-small",2,"margin-right","5px",3,"keypress"],["class","control-error",4,"ngIf"],["type","text","placeholder","Last Name","formControlName","lname","autocomplete","off",1,"cr-form-control","control-small",3,"keypress"],[1,"phone-input-wrap","mb-4"],[1,"cr-country-input"],["bindLabel","name","bindValue","name","placeholder","Code","formControlName","code","autocomplete","new-code",1,"cr-select","control-small","country-code-disable",3,"items","hideSelected","clearable","searchable"],[1,"cr-input-wrap","ml-4"],["type","tel","placeholder","Phone Number","formControlName","phone","mask","000-000-0000","autocomplete","off",1,"cr-form-control","control-small",3,"keyup","change"],["class","control-error mb-4","style","margin-top: -10px",4,"ngIf"],["type","text","placeholder","Enter job location","formControlName","add","autocomplete","new-address","googlePlacesAutocomplete","",1,"cr-form-control","control-small",3,"keypress","onAddressChange","options"],["type","text","placeholder","Enter email","formControlName","email","autocomplete","off",1,"cr-form-control","control-small",3,"focusout"],["type","text","placeholder","Enter job Title","formControlName","job_title","autocomplete","off",1,"cr-form-control","control-small",3,"keypress"],["type","text","placeholder","Enter current location","formControlName","location","autocomplete","new-address","googlePlacesAutocomplete","",1,"cr-form-control","control-small",3,"keypress","onAddressChange","options"],["class","cr-input-wrap mb-4",4,"ngIf"],["bindLabel","skill_name","bindValue","id","placeholder","Search Skills","formControlName","skills","appendTo","body",1,"cr-select","control-small","jobseeker-skill-select",3,"items","clearable","multiple","addTag"],["bindLabel","name","bindValue","id","placeholder","Select Recruiter","formControlName","rec","hidden","",1,"cr-select","control-small",3,"ngModelChange","items","clearable","searchable","ngModel"],[1,"cr-btn","cr-btn-blue","w-100","mt-5",3,"click","disabled"],[1,"control-error"],["class","err-container",4,"ngIf"],[1,"err-container"],[1,"material-icons","control-error-icon"],[1,"control-error","mb-4",2,"margin-top","-10px"],["bindLabel","name","bindValue","id","placeholder","Select visa status","formControlName","visa",1,"cr-select","control-small",3,"ngModelChange","items","clearable","searchable","ngModel"],["ngbNavContent",""],[1,"my-account-content"],[1,"settings-inner-content"],[1,"fw-600","mb-0"],[1,"profile-sub-section"],[1,"profile-sub-title","align-items-center","justify-content-between"],[1,"d-flex","align-items-center"],[1,"material-icons-outlined","mr-4"],["title","Edit About",1,"btn-flushed","d-flex","align-items-center",3,"click"],[1,"profile-sub-content"],[3,"innerHTML"],["title","Edit skill",1,"btn-flushed","d-flex","align-items-center",3,"click"],["class","profile-sub-content",4,"ngIf"],[1,"profile-sub-title"],[1,"profile-sub-content",3,"formGroup"],[1,"mb-4"],["target","_blank","class","cr-status status-green d-flex align-items-center link",3,"href",4,"ngIf"],["class","cr-status status-green d-flex align-items-center",4,"ngIf"],[1,"d-flex","ml-3","cr-profile-sharing"],[1,"material-icons-outlined","mr-4","cursor-pointer",3,"click"],["class","material-icons-outlined mr-4 cursor-pointer",3,"click",4,"ngIf"],["class","cr-btn cr-btn-blue cr-save",3,"ngStyle","click",4,"ngIf"],["class","profile-sub-section",4,"ngIf"],[1,"profile-sub-title","justify-content-between","align-items-center"],[1,"cr-btn","cr-btn-blue","cr-btn-filled","d-flex",2,"min-height","30px","min-width","30px","padding","0px 6px","border-radius","5px","font-size","17px","margin","0","cursor","pointer",3,"click"],[1,"ed-timeline","mb-3"],["class","ed-tl-row","style","justify-content: space-between",4,"ngFor","ngForOf"],[1,"cr-skills-wrap"],["class","cr-skill-details",4,"ngFor","ngForOf"],[1,"cr-skill-details"],[1,"cr-skill"],["target","_blank",1,"cr-status","status-green","d-flex","align-items-center","link",3,"href"],[1,"cr-status","status-green","d-flex","align-items-center"],[1,"cr-input-wrap"],["type","text","placeholder","Enter Unique Name","formControlName","sharedInput",1,"cr-form-control","control-small",2,"padding","10px","height","30px",3,"keypress"],[1,"cr-btn","cr-btn-blue","cr-save",3,"click","ngStyle"],[1,"interview-vid-item","interview-vid-item-flex-sub"],["alt","interview 1",1,"img-cover","round","vendor-profile-img-sub",3,"error","src"],[1,"interview-play-btn"],[1,"material-icons","color-pure-white"],[1,"interview-vid-content"],[1,"fw-600","mb-3",2,"font-weight","bold !important"],[1,"fw-400","gray-3","mb-3"],[1,"align-items-center","d-flex","mb-3","fw-400"],[1,"material-icons-outlined","mr-2"],[1,"align-items-center","d-flex","fw-400"],[1,"d-flex","align-items-center","justify-content-start","mr-4"],[1,"material-icons-outlined","mr-3","cursor-pointer",3,"click"],["class","interview-vid-item",4,"ngFor","ngForOf"],[1,"interview-vid-item"],[1,"interview-vid-thumb"],["src","./../../../../assets/images/interview-vid-thumb.jpg","alt","interview 1",1,"img-cover"],[1,"fw-500","mb-1",2,"font-weight","bold !important"],[1,"link","color-alice-blue","mr-3","cursor-pointer",3,"click"],["href","javascript:void(0)",1,"link","color-alice-blue",3,"click"],[1,"ed-tl-row",2,"justify-content","space-between"],[1,"ed-year"],[1,"ed-info"],[1,"small","fw-500","mb-0"],[1,"paragraph-md","gray-3","fw-400","mb-0"],["href","javascript:void(0)",1,"cr-btn-round","flex-shrink-0",2,"width","35px","height","35px",3,"click"],[1,"material-icons-outlined","color-alice-blue","h5","mb-0"],["href","javascript:void(0)",1,"cr-btn-round","flex-shrink-0","ml-2",2,"width","35px","height","35px",3,"click"],[1,"material-icons-outlined","color-red","h5","mb-0"],[1,"settings-inner-content","d-flex","align-items-center","justify-content-between"],[1,"setting-inner-title","fw-600"],[1,"cr-btn","cr-btn-blue",3,"click"],[1,"commisions-table-wrap","table-responsive"],["datatable","","class","row-border hover cr-data-table rounded-0",3,"dtOptions",4,"ngIf"],["datatable","",1,"row-border","hover","cr-data-table","rounded-0",3,"dtOptions"],[1,"sorting-arrows"],[4,"ngFor","ngForOf"],[1,"fw-500"],["title","Edit Availability",1,"link","color-teal-blue","cr-btn-flushed","mr-2",3,"click"],["title","Delete Availability",1,"link","color-red","cr-btn-flushed",3,"click"],[1,"text-center"],["colspan","9"],[1,"row","align-items-stretch"],[1,"col-12","mb-4"],[1,"setting-inner-title","fw-600","mb-0"],[1,"col-12",3,"formGroup"],[1,"emp-avail-wrap","mb
1-5"],["class","avail-radio",4,"ngIf"],[1,"avail-radio"],["type","radio","value","2","formControlName","avaliability","id","emp-not-available",3,"change"],["for","emp-not-available"],["type","radio","value","3","formControlName","avaliability","autocomplete","new-avaliability","id","emp-in-project",3,"change"],["for","emp-in-project"],["class","mb-3",4,"ngIf"],[1,"mb-5"],[1,"custom-check","mb-3"],["id","WillingToTravelCheckbox","type","checkbox","name","WillingToTravelCheckbox","TimeCheckbox","","value","1","formControlName","travel","autocomplete","new-travel"],["for","WillingToTravelCheckbox"],[1,"row"],["class","col-lg-12",4,"ngIf"],["type","radio","id","emp-available","formControlName","avaliability","value","1",3,"change"],["for","emp-available"],[1,"col-3"],[1,"jobseeeker-date","datepicker-wrap","cr-single-datepicker"],[1,"input-group"],["placeholder","Select Project End Date","name","dp","ngbDatepicker","","formControlName","project_end_date","container","modal-body",1,"cr-form-control","control-medium",3,"readonly"],["type","button",1,"btn","bi","bi-calendar3","p-1","d-flex","align-items-center","justify-content-end","cr-single-datepicke-btn",3,"click","disabled"],[1,"material-icons-outlined","px-2"],["class","control-error mb-4","style","margin-top: -7px",4,"ngIf"],[1,"control-error","mb-4",2,"margin-top","-7px"],[1,"mb-3"],[1,"custom-check"],["id","fullTime","type","checkbox","name","fullTime","formControlName","will_move_project",3,"checked"],["for","fullTime",1,"color-pure-black","fw-400"],["id","fullTimeCheckbox","type","checkbox","name","fullTimeCheckbox","value","1",3,"change","checked"],["for","fullTimeCheckbox"],[1,"col-md-4"],["class","col-6",4,"ngIf"],["id","ContractCheckbox","type","checkbox","name","ContractCheckbox","value","5",3,"change","checked"],["for","ContractCheckbox"],["id","PartTimeCheckbox","type","checkbox","value","2",3,"change","checked"],["for","PartTimeCheckbox"],["id","RemoteCheckbox","type","checkbox","name","RemoteCheckbox","value","3",3,"change","checked"],["for","RemoteCheckbox"],[1,"col-6"],["type","text","formControlName","f_min",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],["type","text","formControlName","f_max",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],[1,"err-container","ml-4"],["type","text","formControlName","c_min",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],["type","text","formControlName","c_max",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],["type","text","formControlName","p_min",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],["type","text","formControlName","p_max",1,"cr-form-control",3,"change","keyup","keypress","focus","placeholder"],[1,"col-lg-12"],["placeholder","Search City","formControlName","city","bindLabel","name","bindValue","id","placeholder","Search city",1,"cr-select","control-medium",3,"items","virtualScroll","multiple","hideSelected"],[1,"err-container",2,"white-space","nowrap"],[1,"col-12"],[1,"settings-form-wrap"],[1,"pb-3",3,"formGroup"],["formControlName","current_password","placeholder","Current Password",1,"cr-form-control","control-large",3,"type"],["src","../../../../assets/front-assets/images/icons/eye-icon.svg","alt","eye-icon",1,"eye-icon",3,"click"],["class","control-error mb-4",4,"ngIf"],["name","new_password","formControlName","new_password","placeholder","New Password",1,"cr-form-control","control-large",3,"keyup","type"],["name","confirm_new_password","placeholder","Confirm New Password","formControlName","password_confirmation",1,"cr-form-control","control-large",3,"keyup","type"],[1,"d-flex","justify-content-center","justify-content-lg-end"],[1,"cr-btn","cr-btn-blue",3,"click","disabled"],[1,"control-error","mb-4"],[1,"row","align-items-stretch","gap-3","d-flex","flex-column"],[1,"col-12","mb-4","d-flex","align-items-center","justify-content-between"],[1,"d-flex","gap-3"],[1,"cr-btn","cr-btn-blue","mr-3",3,"click"],[1,"documents-grid"],["class","document-item",3,"click",4,"ngFor","ngForOf"],[1,"document-item",3,"click"],[1,"doctype-img","flex-shrink-0"],["src","assets/images/icons/doctype-svg.svg","alt","SVG Document","class","img-contain","style","width: 32px; height: 40px",4,"ngIf"],["src","assets/images/icons/doctype-docx.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-png.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-jpg.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-pdf.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-url.svg","alt","","class","img-contain",4,"ngIf"],[1,"docinfo-wrap"],[1,"docinfo"],[1,"small","fw-500","color-dark","clamp-1"],[1,"paragraph-sm","color-gray-3","mb-0"],[1,"link","color-red","cr-btn-flushed","flex-shrink-0"],[1,"material-icons-outlined",3,"click"],["src","assets/images/icons/doctype-svg.svg","alt","SVG Document",1,"img-contain",2,"width","32px","height","40px"],["src","assets/images/icons/doctype-docx.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-png.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-jpg.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-pdf.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-url.svg","alt","",1,"img-contain"],["class","custom-pagination","aria-label","Default pagination",3,"pageChange",4,"ngIf"],["src","assets/images/icons/doctype-pdf.svg","alt","","class","img-contain cursor-pointer",3,"click",4,"ngIf"],["src","assets/images/icons/doctype-pdf.svg","alt","",1,"img-contain","cursor-pointer",3,"click"],["aria-label","Default pagination",1,"custom-pagination",3,"pageChange"],["id","notificationTab",1,"settings-inner-content"],["class","notif-section-wrap",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"notif-section-wrap"],["class","notif-list",4,"ngFor","ngForOf"],[1,"notif-list"],["data-notif-type","shortlisted",1,"notif-item-wrap"],[1,"n
1otif-type-icon"],[1,"notif-item"],[1,"notif-content"],[1,"notif-time"],[1,"mt-3"],["role","alert",1,"alert","text-center","alert-secondary","fw-600",2,"color","var(--cr-black)"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","p-4","pt-0","overflow-auto"],[1,"cr-input-wrap","mb-5"],["type","url","placeholder","Add URL",1,"cr-form-control","control-medium"],[1,"cr-btn","cr-btn-blue","d-block","ml-auto",3,"click"],[2,"min-height","400px"],["bindLabel","name","bindValue","id","placeholder","Add Document","appendTo","body",1,"cr-select","control-large",3,"change","clearable","searchable","items"],["style","margin-top: 15px",4,"ngIf"],["class","modal-footer p-4",4,"ngIf"],[2,"margin-top","15px"],["type","text","placeholder","Enter document name",1,"cr-form-control","control-large",3,"ngModelChange","keyup","ngModel"],[1,"modal-footer","p-4"],[1,"custom-file-upload-btn"],["id","addDrivingLicense","type","file","data-id","2",3,"change"],["for","addDrivingLicense",1,"cr-btn","cr-btn-flushed","mb-0"],[1,"modal-body","p-4","pt-0","overflow-auto","interview-details-modal"],[1,"interview-head"],[1,"color-teal-blue","fw-500"],[1,"interview-detail-grid"],[1,"interview-details"],[1,"paragraph-md","color-gray-2"],["id","agreementCheckbox","type","checkbox","name","agreementCheckbox"],["for","agreementCheckbox"],["href","javascript:void",1,"link","color-pure-black"],[1,"tips-wrap"],[1,"fw-600","mb-4"],[1,"tips-list"],[1,"d-flex","align-items-center","justify-content-center","gap-2"],[1,"d-flex","align-items-center","justify-content-center","check-circle-icon"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","currentColor"],["d","M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"],[1,"cr-btn","cr-btn-blue","ml-4",3,"click","countryRouterLink"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],[1,"modal-body"],["format","png",3,"imageCropped","loadImageFailed","imageChangedEvent","maintainAspectRatio","aspectRatio","resizeToWidth"],["type","button",1,"cr-btn","cr-btn-blue","d-block","ml-auto","mt-5",3,"click"],["id","video-preview-modal",1,"modal-title"],[1,"modal-body","d-flex","justify-content-center","p-5"],["controls","","muted","","autoplay","",1,"condensed-interview-video"],[3,"src"],[1,"modal-footer","p-5"],[1,"cr-btn","cr-btn-filled","cr-btn-blue","d-inline-block",3,"click"],["id","video-call-modal",1,"modal-title"],[1,"modal-body","pt-0"],[1,"position-relative","custom-owl-date-picker","custom-owl-date-picker-modal","mb-5"],[3,"ngModelChange","pickerType","selectMode","ngModel","min"],["placeholder","Start Time",1,"cr-form-control","cr-owl-date-picker-input",3,"ngModelChange","ngModel","owlDateTimeTrigger","owlDateTime"],[1,"material-icons-outlined","cr-owl-date-picker-icon"],[3,"pickerType"],[1,"mx-3"],["placeholder","End Time",1,"cr-form-control","cr-owl-date-picker-input",3,"ngModelChange","ngModel","owlDateTimeTrigger","owlDateTime"],[1,"ml-auto","d-flex","justify-content-end"],[1,"cr-btn","cr-btn-blue","ml-auto",3,"click"],["id","edit-availability-modal",1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-auto",3,"click"],[1,"modal-body","d-flex","justify-content-center"],["type","button",1,"cr-btn","cr-btn-red",3,"click"],["type","button",1,"cr-btn","cr-btn-blue","ml-4",3,"click"],["id","document-preview-modal",1,"modal-title"],["href","javascript:void(0)",1,"cr-modal-head-button","ml-auto","mr-3",3,"click"],["viewer","google","googleCheckContentLoaded","true","googleCheckInterval","3000","googleMaxChecks","1",1,"doc-viewer",2,"width","100%","height","600px",3,"url"],[1,"prev-wrap"],["width","100%","height","100%","style","height: 100%",3,"src",4,"ngIf"],["alt","document preview","class","img-contain img-fluid",3,"src",4,"ngIf"],["width","100%","height","100%",2,"height","100%",3,"src"],["alt","document preview",1,"img-contain","img-fluid",3,"src"],[1,"cr-modal-head-button","ml-auto","mr-3",3,"click","href"],[1,"modal-body","p-4"],[1,"row","mb-2",3,"formGroup"],["type","text","placeholder","Educational Institute name","formControlName","school",1,"cr-form-control","control-medium"],[1,"col-6","mb-4"],["type","text","placeholder","Academic Degree","formControlName","degree",1,"cr-form-control","control-medium"],["type","text","placeholder","Area of Study","formControlName","area_of_study",1,"cr-form-control","control-medium"],["bindLabel","name","bindValue","name","placeholder","Start Date","formControlName","date_from","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["bindLabel","name","formControlName","date_to","bindValue","name","placeholder","End Date","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["type","hidden","name","id","formControlName","id","autocomplete","new-id"],[1,"cr-btn","cr-btn-blue","ml-auto",3,"click","disabled"],["class","err-container","style","white-space: nowrap",4,"ngIf"],[1,"modal-body","text-center"],[1,"cr-input-wrap","mb
1-5",3,"formGroup"],["type","number","name","otp","placeholder","Enter OTP","formControlName","otp",1,"cr-form-control","control-medium"],["style","margin-top: 5px",4,"ngIf"],[1,"d-flex","align-items-center","gap-4","justify-content-center"],[1,"cr-btn","cr-btn-blue",2,"margin-right","10px",3,"click","hidden"],[2,"margin-top","5px"],[1,"modal-body","p-4",3,"formGroup"],["cols","100","rows","10","autocomplete","new-overview","formControlName","overview",1,"cr-form-control","control-medium"],[1,"modal-body","social-icon-share-modal","text-center"],[1,"cr-social-icon-share-wrapper","d-flex","justify-content-center","align-items-center","mb-5"],[1,"d-flex","cr-social-icon-share-flex","flex-column","justify-content-center"],["target","_blank",1,"cr-social-icon-share","whats-app",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","32","height","32"],["fill","none","d","M0 0h24v24H0z"],["d","M2.004 22l1.352-4.968A9.954 9.954 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10a9.954 9.954 0 0 1-5.03-1.355L2.004 22zM8.391 7.308a.961.961 0 0 0-.371.1 1.293 1.293 0 0 0-.294.228c-.12.113-.188.211-.261.306A2.729 2.729 0 0 0 6.9 9.62c.002.49.13.967.33 1.413.409.902 1.082 1.857 1.971 2.742.214.213.423.427.648.626a9.448 9.448 0 0 0 3.84 2.046l.569.087c.185.01.37-.004.556-.013a1.99 1.99 0 0 0 .833-.231c.166-.088.244-.132.383-.22 0 0 .043-.028.125-.09.135-.1.218-.171.33-.288.083-.086.155-.187.21-.302.078-.163.156-.474.188-.733.024-.198.017-.306.014-.373-.004-.107-.093-.218-.19-.265l-.582-.261s-.87-.379-1.401-.621a.498.498 0 0 0-.177-.041.482.482 0 0 0-.378.127v-.002c-.005 0-.072.057-.795.933a.35.35 0 0 1-.368.13 1.416 1.416 0 0 1-.191-.066c-.124-.052-.167-.072-.252-.109l-.005-.002a6.01 6.01 0 0 1-1.57-1c-.126-.11-.243-.23-.363-.346a6.296 6.296 0 0 1-1.02-1.268l-.059-.095a.923.923 0 0 1-.102-.205c-.038-.147.061-.265.061-.265s.243-.266.356-.41a4.38 4.38 0 0 0 .263-.373c.118-.19.155-.385.093-.536-.28-.684-.57-1.365-.868-2.041-.059-.134-.234-.23-.393-.249-.054-.006-.108-.012-.162-.016a3.385 3.385 0 0 0-.403.004z","fill","rgba(255,255,255,1)"],[1,"cr-social-icon-share","bg-teal-blue","cursor-pointer","gmail",3,"click"],["fill","white","version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","width","32","height","32","viewBox","0 0 122.879 88.855","enable-background","new 0 0 122.879 88.855",0,"xml","space","preserve"],["d","M7.048,0h108.784c1.939,0,3.701,0.794,4.977,2.069c1.277,1.277,2.07,3.042,2.07,4.979v74.759 c0,1.461-0.451,2.822-1.221,3.951c-0.141,0.365-0.361,0.705-0.662,0.994c-0.201,0.189-0.422,0.344-0.656,0.461 c-1.225,1.021-2.799,1.643-4.508,1.643H7.048c-1.937,0-3.701-0.793-4.979-2.07C0.794,85.51,0,83.748,0,81.807V7.048 c0-1.941,0.792-3.704,2.068-4.979C3.344,0.792,5.107,0,7.048,0L7.048,0z M5.406,78.842l38.124-38.22L5.406,9.538V78.842 L5.406,78.842z M47.729,44.045L8.424,83.449h105.701L76.563,44.051L64.18,54.602l0,0c-0.971,0.83-2.425,0.877-3.453,0.043 L47.729,44.045L47.729,44.045z M80.674,40.549l36.799,38.598V9.198L80.674,40.549L80.674,40.549z M8.867,5.406l53.521,43.639 l51.223-43.639H8.867L8.867,5.406z"],[1,"d-inline-flex","align-items-center","justify-content-between","custom-share-link","px-3","py-2","mt-3","w-100"],["target","_blank",1,"pr-3","pl-2","d-inline-flex","a-link","color-teal-blue",3,"href"],[1,"f-btn","f-btn-sm","f-btn-theme-blue","fw-600",3,"click"],["target","_blank",1,"cr-social-icon-share","whats-app",3,"href"],[1,"cr-social-icon-share","bg-teal-blue","cursor-pointer","linkedin",3,"click"],["d","M6.94 5a2 2 0 1 1-4-.002 2 2 0 0 1 4 .002zM7 8.48H3V21h4V8.48zm6.32 0H9.34V21h3.94v-6.57c0-3.66 4.77-4 4.77 0V21H22v-7.93c0-6.17-7.06-5.94-8.72-2.91l.04-1.68z","fill","rgba(255,255,255,1)"],[1,"cr-social-icon-share","bg-teal-blue","cursor-pointer","twitter",3,"click"],["width","32","height","32","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","currentColor"],["d","M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z"],[1,"cr-social-icon-share","bg-teal-blue","cursor-pointer","facebook",3,"click"],["d","M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4v-8.5z","fill","rgba(255,255,255,1)"],[1,"modal-body","d-flex","justify-content-center","stripe-account-model"],[1,"d-flex","flex-column","text-center"],["class","d-flex align-items-center justify-content-center mb-3 stripe-account-model-check-box",4,"ngIf"],["class","d-flex align-items-center justify-content-center mb-3 stripe-account-model-check-box cancel-test",4,"ngIf"],[1,"mb-3","h1","fw-700"],["class","h4 fw-500 stripe-account-model-description mb-5",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-center"],[1,"cr-btn","cr-btn-filled","cr-btn-blue",3,"click"],[1,"d-flex","align-items-center","justify-content-center","mb-3","stripe-account-model-check-box"],[1,"d-flex","align-items-center","justify-content-center","mb-3","stripe-account-model-check-box","cancel-test"],[1,"h4","fw-500","stripe-account-model-description","mb-5"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",48),e.DNE(1,ch,67,29,"div",49)(2,dh,10,0,"ng-template",null,0,e.C5r)(4,_h,11,5,"ng-template",null,1,e.C5r)(6,hh,43,0,"ng-template",null,2,e.C5r)(8,fh,43,2,"ng-template",null,3,e.C5r)(10,mh,8,4,"ng-template",null,4,e.C5r)(12,gh,11,1,"ng-template",null,5,e.C5r)(14,vh,27,12,"ng-template",null,6,e.C5r)(16,bh,27,12,"ng-template",null,7,e.C5r)(18,yh,9,1,"ng-template",null,8,e.C5r)(20,kh,9,0,"ng-template",null,9,e.C5r)(22,wh,9,0,"ng-template",null,10,e.C5r)(24,xh,9,1,"ng-template",null,11,e.C5r)(26,Fh,11,2,"ng-template",null,12,e.C5r)(28,Rh,11,3,"ng-template",null,13,e.C5r)(30,Vh,32,12,"ng-template",null,14,e.C5r)(32,Jh,19,6,"ng-template",null,15,e.C5r)(34,of,31,12,"ng-template",null,16,e.C5r)(36,rf,11,1,"ng-template",null,17,e.C5r)(38,lf,11,6,"ng-template",null,18,e.C5r)(40,cf,9,0,"ng-template",null,19,e.C5r)(42,df,25,2,"ng-template",null,20,e.C5r)(44,uf,45,4,"ng-template",null,21,e.C5r)(46,mf,11,5,"ng-template",null,22,e.C5r)),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(),e.Y8G("ngIf",o.isSettingsPage))},dependencies:[qe.MD,qe.YU,qe.Sq,qe.bT,qe.B3,qe.PV,qe.vh,qe.lG,$i.MQ,$i.vr,ne.X1,ne.qT,ne.me,ne.Q0,ne.Zm,ne.Fm,ne.BC,ne.cb,ne.j4,ne.JD,Hi.EE,Hi.$j,lo.xv,lo._D,ne.YN,ne.vS,Ue.Pv,Ue.Um,Ue.X9,Ue.sy,Ue.Gx,Ue.Ri,Ue.WA,Ue.m_,di.N,Ni.H,Ni._,Ue.IQ,Ue.cw,Cn.ed,Cn.kf,Cn.ej,Ue._f,Ue.XZ,_i,Dn.Zr,Ut._B,ln.Yz,ln.H$,ln.BK,ln.P_,ln.gt,ln.Zb,ai.j,ai.P,Fn.l,Pn._],styles:['.cr-save.cr-btn[_ngcontent-%COMP%]{border-radius:6px;font-size:14px;padding:4px 16px}.cr-profile-sharing[_ngcontent-%COMP%]   .material-icons-outlined[_ngcontent-%COMP%]{font-size:20px}ul.tips-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-weight:400;margin-bottom:15px;line-height:1.2}.check-circle-icon[_ngcontent-%COMP%]{--icon-sizing: 22px;width:var(--icon-sizing);height:var(--icon-sizing);color:#10957e}.check-circle-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:inherit;height:inherit}.emp-avail-wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.avail-radio[_ngcontent-%COMP%]{position:relative}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;
1left:0;top:0;opacity:0}.avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{min-width:250px;border-radius:12px;border:2px solid var(--cr-gray-tint-7);padding:15px 30px 15px 55px;font-size:12px;font-weight:500;margin-bottom:0;transition:.3s all}.emp-avail-wrap[_ngcontent-%COMP%]   .avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:18px}.avail-radio[_ngcontent-%COMP%]:not(:last-child){margin-right:15px}.avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{content:"";position:absolute;left:25px;height:20px;border-radius:50%;border:2px solid var(--cr-gray-tint-2);width:20px;top:50%;transform:translateY(-50%);transition:.3s all;box-shadow:0 0 #fff inset}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:var(--cr-teal-blue-tint-9);border-color:var(--cr-teal-blue)}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{background-color:var(--cr-teal-blue);border-color:var(--cr-teal-blue);box-shadow:0 0 0 2px #fff inset}.documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(autofit-minx)}.custom-day[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:30px!important;height:30px!important;cursor:pointer}.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover{background-color:var(--cr-teal-blue);border-radius:50%;color:var(--pure-white)}.custom-day.faded[_ngcontent-%COMP%]{width:100%!important;height:30px!important;border-radius:0;background-color:var(--cr-alice-blue-tint-9);color:var(--pure-black)}.custom-day.range[_ngcontent-%COMP%]:not(.faded):after{content:"";position:absolute;width:50%;background-color:var(--cr-alice-blue-tint-9);height:30px;top:50%;transform:translateY(-50%);right:0;z-index:-1}.custom-day.range-end[_ngcontent-%COMP%]:after{right:unset!important;left:0!important}.time-select-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:15px}.vendor-profile-img-sub[_ngcontent-%COMP%]{width:100px;height:100px;margin-right:32px}.eye-icon[_ngcontent-%COMP%]{position:absolute;right:24px;top:50%;padding:6x;transform:translateY(-50%);cursor:pointer}.video-interview-page[_ngcontent-%COMP%]{height:100%}.interview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:700px 1fr;grid-gap:15px;height:100%}.interview-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%;border-radius:10px}.qn-panel[_ngcontent-%COMP%]{background-color:var(--pure-white);padding:30px 25px;border:1px solid var(--cr-gray-tint-8);overflow-y:auto;display:flex;flex-direction:column}.qn-panel-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:40px}.qn-panel-body[_ngcontent-%COMP%]{overflow-y:auto}.qn-count[_ngcontent-%COMP%]{margin-bottom:20px}.skill-qn-options[_ngcontent-%COMP%]{margin:30px 0;display:flex;align-items:center}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:15px}.sub-qn-head[_ngcontent-%COMP%]{border:none;background:transparent;display:flex;align-items:center}.sub-qn-list[_ngcontent-%COMP%]{padding:15px}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:8px;margin-bottom:0}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--cr-gray-tint-8);cursor:pointer}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-8)}.sub-qn-list[_ngcontent-%COMP%]   li.vid-active[_ngcontent-%COMP%]{background-color:var(--cr-gray-tint-7)}.sub-qn-list[_ngcontent-%COMP%]   .sub-qn-wrap[_ngcontent-%COMP%]{margin-left:20px}.sub-qn[_ngcontent-%COMP%]{margin-bottom:5px}.cr-social-icon-share[_ngcontent-%COMP%]{border-radius:50%;width:68px;height:68px;margin-bottom:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer;color:var(--white);position:relative}.cr-social-icon-share.whats-app[_ngcontent-%COMP%]{background-color:#25d366}.cr-social-icon-share.linkedin[_ngcontent-%COMP%]{background-color:#0077b5}.cr-social-icon-share.twitter[_ngcontent-%COMP%]{background-color:#617788}.cr-social-icon-share.gmail[_ngcontent-%COMP%]{background-color:var(--cr-blue)}.cr-social-icon-share.facebook[_ngcontent-%COMP%]{background-color:#3b5998}.cr-social-icon-share-wrapper[_ngcontent-%COMP%]   .cr-social-icon-share-flex[_ngcontent-%COMP%]{margin-right:15px}.cr-social-icon-share-wrapper[_ngcontent-%COMP%]   .cr-social-icon-share-flex[_ngcontent-%COMP%]:last-child{margin-right:0}.custom-share-link[_ngcontent-%COMP%]{border:1px solid;border-radius:32px;border-color:var(--cr-blue)}.social-icon-share-modal[_ngcontent-%COMP%]   .f-btn[_ngcontent-%COMP%]{font-size:13px;font-weight:400;padding:14px 13px;border-radius:60px;height:36px;min-width:77px}.jobseeker-skill-select[_ngcontent-%COMP%]{min-height:45px;height:unset}@media screen and (max-width: 991px){.settings-content[_ngcontent-%COMP%]{height:auto}}@media screen and (max-width: 414px){.time-select-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}}.cr-owl-date-picker-icon[_ngcontent-%COMP%]{width:20px;height:20px;position:absolute;right:10px;top:50%;transform:translateY(-50%)}.cr-owl-date-picker-input[_ngcontent-%COMP%]{padding:10px 22px 10px 12px}.documents-grid.custom-radio-step-documents-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px}.documents-grid.custom-radio-step-documents-grid[_ngcontent-%COMP%]   .document-item[_ngcontent-%COMP%]   .cr-btn-round[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:26px}.custom-radio-step-main-wrapper[_ngcontent-%COMP%]   .custom-radio-step-wrapper[_ngcontent-%COMP%]:last-child   .custom-radio-step-content[_ngcontent-%COMP%]   .custom-radio-line[_ngcontent-%COMP%]:after{content:unset}  .ng-select.ng-select-multiple .ng-value-label{white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;display:block!important}  .ng-select.ng-select-multiple .ng-value{max-width:100%;min-width:0}']})}return i})();const vf=["videoElement"],bf=()=>["submitted-qn-1"];function yf(i,a){if(1&i&&(e.j41(0,"div",9)(1,"div",10)(2,"h1",11),e.EFF(3),e.k0s(),e.j41(4,"h6",11),e.EFF(5),e.k0s(),e.j41(6,"div")(7,"p",12),e.EFF(8),e.k0s()()()()),2&i){const t=e.XpG();e.R7$(3),e.SpI(" ",(null==t.job_title?null:t.job_title.first_name)+" "+(null==t.job_title?null:t.job_title.last_name)," "),e.R7$(2),e.JRh(null==t.job_title?null:t.job_title.job_title),e.R7$(3),e.SpI(" Total Question: ",t.j
1ob_title.question_count," ")}}function kf(i,a){if(1&i){const t=e.RV6();e.j41(0,"ul",27)(1,"li",28),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(5);return e.Njj(r.show_video(o.id))}),e.j41(2,"div",29),e.EFF(3),e.k0s(),e.j41(4,"div",30)(5,"div",31),e.EFF(6),e.k0s(),e.j41(7,"div",32),e.EFF(8),e.k0s()()()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(5);e.R7$(),e.AVh("vid-active",o.activeQuestion===t.id),e.R7$(2),e.SpI("",n+1,"."),e.R7$(3),e.JRh(null==t?null:t.questions),e.R7$(2),e.SpI(" Answer Length: ",t.video_time," minutes ")}}function wf(i,a){if(1&i&&e.DNE(0,kf,9,5,"ul",26),2&i){const t=e.XpG().$implicit;e.Y8G("ngForOf",t.value)}}function xf(i,a){if(1&i&&(e.j41(0,"div")(1,"div",17)(2,"h6",18)(3,"button",19)(4,"div",20)(5,"span",21),e.EFF(6,"keyboard_arrow_down"),e.k0s(),e.j41(7,"div",22)(8,"h6",23),e.EFF(9),e.k0s()()()()(),e.j41(10,"div",24)(11,"div",25),e.DNE(12,wf,1,1,"ng-template"),e.k0s()()()()),2&i){const t=a.$implicit,n=a.index;e.R7$(),e.Y8G("id","submitted-qn-"+(n+1)),e.R7$(8),e.JRh(t.key)}}function Cf(i,a){if(1&i&&(e.qex(0),e.DNE(1,xf,13,2,"div",16),e.nI1(2,"keyvalue"),e.bVm()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,t.completed_video))}}function jf(i,a){if(1&i){const t=e.RV6();e.j41(0,"ul",35)(1,"li",28),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(4);return e.Njj(r.show_video(o.id))}),e.j41(2,"div",29),e.EFF(3),e.k0s(),e.j41(4,"div",30)(5,"div",31),e.EFF(6),e.k0s(),e.j41(7,"div",32),e.EFF(8),e.k0s()()()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(4);e.R7$(),e.AVh("vid-active",o.activeQuestion===t.id),e.R7$(2),e.SpI("",n+1,"."),e.R7$(3),e.JRh(null==t?null:t.questions),e.R7$(2),e.SpI(" Answer Length: ",t.video_time," minutes ")}}function Ff(i,a){if(1&i&&e.DNE(0,jf,9,5,"ul",34),2&i){const t=e.XpG(3);e.Y8G("ngForOf",t.clientShowVideos)}}function Sf(i,a){1&i&&(e.qex(0),e.j41(1,"div",33)(2,"h6",18)(3,"button",19),e.EFF(4," Client Questions "),e.k0s()(),e.j41(5,"div",24)(6,"div",25),e.DNE(7,Ff,1,1,"ng-template"),e.k0s()()(),e.bVm())}function Ef(i,a){if(1&i&&(e.j41(0,"div",13)(1,"div")(2,"div",14),e.DNE(3,Cf,3,3,"ng-container",15)(4,Sf,8,0,"ng-container",15),e.k0s()()()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("closeOthers",!0)("activeIds",e.lJ4(4,bf)),e.R7$(),e.Y8G("ngIf",!(null!=t.route.snapshot&&null!=t.route.snapshot.queryParams&&t.route.snapshot.queryParams.client_user)),e.R7$(),e.Y8G("ngIf",null==t.route.snapshot||null==t.route.snapshot.queryParams?null:t.route.snapshot.queryParams.client_user)}}function Rf(i,a){if(1&i&&(e.j41(0,"div",36)(1,"video",37,0),e.nrm(3,"source",38),e.k0s()()),2&i){const t=e.XpG();e.R7$(3),e.Y8G("src",t.video_path,e.B4B)}}let Tf=(()=>{class i{route;router;jobseeker;globals;rs;navigationService;jobseeker_id;completed_video;job_title;skill_id;job_id;recruiter_user_id;video_path;activeQuestion;clientShowVideos=[];videoElement;constructor(t,n,o,r,s,c){this.route=t,this.router=n,this.jobseeker=o,this.globals=r,this.rs=s,this.navigationService=c}ngOnInit(){console.log("this.route.snapshot.queryParams",this.route.snapshot.queryParams),this.route.snapshot.queryParams.jobseeker_id&&(this.jobseeker_id=this.route.snapshot.queryParams.jobseeker_id,this.skill_id=this.route.snapshot.queryParams.skill_id?this.route.snapshot.queryParams.skill_id.split(","):"",this.job_id=this.route.snapshot.queryParams.job_id,this.recruiter_user_id=this.route.snapshot.queryParams.recruiter_user_id,this.review_jobseeker_video(this.jobseeker_id,this.skill_id,this.recruiter_user_id))}ngAfterViewInit(){}review_jobseeker_video(t,n,o){var r=this;return(0,et.A)(function*(){if(r.route.snapshot.queryParams.client_user)var s={jobseeker_id:t,is_client_scheduled:!0,client_user_id:r.route.snapshot.queryParams.client_user};else var c={jobseeker_id:t,skill_id:n,job_id:r.job_id,recruiter_user_id:o};r.globals.loading=!0,yield r.jobseeker.review_video(r.route.snapshot.queryParams.client_user?s:c).subscribe(function(){var u=(0,et.A)(function*(h){if(1==h.ResponseCode){r.globals.loading=!1,console.log("sda",h.ResponseData),r.completed_video=h.ResponseData.jobseeker_video,r.job_title=h.ResponseData.job_title;let g=0;if(r.route.snapshot.queryParams.client_user){let b=Object.values(r.completed_video),f=[];b.forEach(R=>{f.push(...R)}),f.forEach(R=>{g++;const C=Math.floor(Number(R.time)/60),D=Number(R.time)%60;function x(M){return M.toString().padStart(2,"0")}R.time=`${x(C)}:${x(D)}`,console.log(R.time)}),console.log("val",f),r.clientShowVideos=f,r.video_path=f[0].video,r.activeQuestion=f[0].id}else for(var v in r.completed_video){let b=[];console.log(r.completed_video[v]),yield r.completed_video[v].forEach(f=>{if(f.job_id==r.job_id){let D=function(x){return x.toString().padStart(2,"0")};b.push(f),g++;const R=Math.floor(Number(f.time)/60),C=Number(f.time)%60;f.time=`${D(R)}:${D(C)}`,console.log(f.time)}}),r.completed_video[v]=b,r.video_path=r.completed_video[v][0].video,r.activeQuestion=r.completed_video[v][0].id,console.log("gdf",b)}}});return function(h){return u.apply(this,arguments)}}())})()}show_video(t){for(var n in this.activeQuestion=t,this.completed_video)for(const o in this.completed_video[n])if(this.completed_video[n][o].id==t)if(console.log("abc"),this.videoElement.nativeElement.load(),this.completed_video[n][o].video.includes("?")){console.log("vid");let r=this.completed_video[n][o].video.split("?");this.video_path=r[0]+r[1],console.log(this.video_path)}else this.video_path=this.completed_video[n][o].video}interviewBack(){this.globals.loading=!0;let t=[];t.push(this.jobseeker.set_jobseeker_profile_in_local()),Promise.all(t).then(n=>{this.globals.loading=!1,setTimeout(()=>{this.navigationService.navigate("jobseeker/my-jobs",this.route)},1e3)})}static \u0275fac=function(n){return new(n||i)(e.rXU(Ve.nX),e.rXU(Ve.Ix),e.rXU(Yi.m),e.rXU(Qt.E),e.rXU(ka.T),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-review-video"]],viewQuery:function(n,o){if(1&n&&e.GBs(vf,5),2&n){let r;e.mGM(r=e.lsd())&&(o.videoElement=r.first)}},standalone:!0,features:[e.aNF],decls:10,vars:4,consts:[["videoElement",""],[3,"loading"],[1,"video-interview-page","main-content-wrap"],[1,"interview-grid"],[1,"qn-panel",2,"overflow","auto"],["class","qn-panel-head",4,"ngIf"],["class","qn-panel-body","style","padding-bottom: 20px;",4,"ngIf"],[1,"cr-btn","cr-btn-red","mt-auto","d-inline-block","mr-auto",3,"click"],["class","cam-container",4,"ngIf"],[1,"qn-panel-head"],[1,"qn-skill-title"],[1,"fw-600"],[1,"h6","color-gray-3"],[1,"qn-panel-body",2,"padding-bottom","20px"],["ngbAccordion","",1,"sub-qn-acc",3,"closeOthers","activeIds"],[4,"ngIf"],[4,"ngFor","ngForOf"],["ngbAccordionItem","",3,"id"],["ngbAccordionHeader",""],["ngbAccordionButton","",1,"custom-acc-head","sub-qn-head","w-100"],[1,"d-flex","align-items-center"],[1,"custom-acc-arrow","material-icons-outlined","mr-2"],[1,"submitted-qn-title"],[1,"mb-0"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["class","sub-qn-list",4,"ngFor","ngForOf"],[1,"sub-qn-list"],[1,"h4",3,"click"],[1,"sub-qn-num"],[1,"sub-qn-wrap"],[1,"sub-qn"],[1,"color-gray-3","paragraph-md"],["ngbAccordionItem","","id","submitted-qn-1"],["class","sub-qn-list pb-3",4,"ngFor","ngForOf"],[1,"sub-qn-list","pb-3"],[1,"cam-container"],["controls","","autoplay","",1,"cam-video"],["type","video/mp4",3,"src"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",1),e.j41(1,"section",2)(2,"div",3)(3,"div",4),e.qex(4),e.DNE(
15,yf,9,3,"div",5)(6,Ef,5,5,"div",6),e.j41(7,"button",7),e.bIt("click",function(){return o.interviewBack()}),e.EFF(8," Go to Dashboard "),e.k0s(),e.bVm(),e.k0s(),e.DNE(9,Rf,4,1,"div",8),e.k0s()()),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(5),e.Y8G("ngIf",o.job_title),e.R7$(),e.Y8G("ngIf",o.completed_video),e.R7$(3),e.Y8G("ngIf",o.video_path))},dependencies:[qe.MD,qe.Sq,qe.bT,qe.lG,di.N,Ue._f,Ue.WP,Ue.r6,Ue.tW,Ue.x7,Ue.UA,Ue.$R],styles:['.video-interview-page[_ngcontent-%COMP%]{height:100%}.interview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:700px 1fr;grid-gap:15px;height:100%}.interview-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%;border-radius:10px;overflow:hidden}.qn-panel[_ngcontent-%COMP%]{background-color:var(--pure-white);padding:30px 25px;border:1px solid var(--cr-gray-tint-8);overflow-y:auto;display:flex;flex-direction:column}.qn-panel-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:40px}.qn-panel-body[_ngcontent-%COMP%]{overflow-y:auto}.qn-count[_ngcontent-%COMP%]{margin-bottom:20px}.skill-qn-options[_ngcontent-%COMP%]{margin:30px 0;display:flex;align-items:center}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:15px}ul.skill-qn-list[_ngcontent-%COMP%]{margin-top:30px;position:relative}ul.skill-qn-list[_ngcontent-%COMP%]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#ffffff80;z-index:1}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-weight:500;padding:5px 10px;-webkit-user-select:none;user-select:none}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid var(--cr-gray-tint-8)}.sub-qn-head[_ngcontent-%COMP%]{border:none;background:transparent;display:flex;align-items:center}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:8px;margin-bottom:0}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--cr-gray-tint-8);cursor:pointer}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-8)}.sub-qn-list[_ngcontent-%COMP%]   li.vid-active[_ngcontent-%COMP%]{background-color:var(--cr-gray-tint-7)}.sub-qn-list[_ngcontent-%COMP%]   .sub-qn-wrap[_ngcontent-%COMP%]{margin-left:20px}.sub-qn[_ngcontent-%COMP%]{margin-bottom:5px}.cam-container[_ngcontent-%COMP%]{position:relative}.cam-blur[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background-color:#031d1f33;z-index:2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:inherit}.cam-placeholder[_ngcontent-%COMP%]{height:100%;border-radius:10px;overflow:hidden}.cam-placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.cam-options-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.cam-video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px)}.interview-countdown[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;font-size:12rem;transform:translate(-50%,-50%);color:var(--pure-white);width:20rem;height:20rem;display:flex;align-items:center;justify-content:center;background-color:#ffffff80;border-radius:50%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-weight:700;-webkit-user-select:none;user-select:none}.cam-actions[_ngcontent-%COMP%]{position:absolute;bottom:20px;width:100%;display:flex;justify-content:center;align-items:center;padding:0 20px}.remaining-time[_ngcontent-%COMP%]{width:80px;height:80px}.cam-action-btn[_ngcontent-%COMP%]{width:70px;height:70px;display:flex;align-items:center;justify-content:center;transition:.3s all;background-color:var(--pure-white);border:1px solid transparent;font-size:30px}.cam-action-btn[_ngcontent-%COMP%]:hover{background-color:#e3e3e3}@media screen and (max-width: 1439px){.interview-grid[_ngcontent-%COMP%]{grid-template-columns:500px 1fr}}@media screen and (max-width: 991px){.interview-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto}.interview-grid[_ngcontent-%COMP%]   .cam-container[_ngcontent-%COMP%]{height:auto;aspect-ratio:16 / 9;margin-bottom:20px}.qn-panel-head[_ngcontent-%COMP%]{margin-bottom:20px}}@media screen and (max-width: 767px){.interview-grid[_ngcontent-%COMP%]   .qn-panel[_ngcontent-%COMP%]{padding:20px}.interview-countdown[_ngcontent-%COMP%]{width:15rem;height:15rem;font-size:8rem}
1.remaining-time[_ngcontent-%COMP%]{width:60px;height:60px}.cam-action-btn[_ngcontent-%COMP%]{width:50px;height:50px}}@media screen and (max-width: 575px){.interview-grid[_ngcontent-%COMP%]   .qn-panel[_ngcontent-%COMP%]{padding:15px}.qn-panel-head[_ngcontent-%COMP%]{flex-direction:column-reverse}.qn-panel-head[_ngcontent-%COMP%]   .stop-interview-btn[_ngcontent-%COMP%]{font-size:16px;margin-bottom:10px}.interview-countdown[_ngcontent-%COMP%]{width:10rem;height:10rem;font-size:6rem}.remaining-time[_ngcontent-%COMP%]{width:40px;height:40px}.cam-action-btn[_ngcontent-%COMP%]{width:30px;height:30px;font-size:14px}.cam-actions[_ngcontent-%COMP%]{bottom:10px}.skill-qn-options[_ngcontent-%COMP%]{flex-wrap:wrap}.skill-qn-options[_ngcontent-%COMP%]   .cr-btn[_ngcontent-%COMP%]{width:100%}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}}']})}return i})();var If=ze(69208),id=ze(12283);const Df=["verifyOTPModal"],Pf=()=>[""],Nf=()=>["terms-conditions"],Mf=()=>["privacy-policy"];function Of(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," OTP is required. "),e.k0s())}function Af(i,a){if(1&i&&(e.j41(0,"div",53),e.DNE(1,Of,4,0,"div",54),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.OtpGroup.controls.otp.errors.required)}}function Gf(i,a){if(1&i&&(e.j41(0,"div",57),e.EFF(1," You will be able to resend OTP after : "),e.j41(2,"b"),e.EFF(3),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(3),e.SpI("",t.countDown," seconds")}}function Lf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",42)(1,"h3",43),e.EFF(2,"Verify OTP"),e.k0s(),e.j41(3,"button",44),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",45)(5,"h3"),e.EFF(6," Enter the OTP sent this phone number : "),e.j41(7,"b"),e.nrm(8,"span",46),e.k0s()(),e.j41(9,"div",47),e.nrm(10,"input",48,2),e.DNE(12,Af,2,1,"div",22)(13,Gf,4,1,"div",49),e.k0s(),e.j41(14,"div",50)(15,"button",51),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.resendOtp())}),e.EFF(16," Resend OTP "),e.k0s(),e.j41(17,"button",52),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.verifyOtp())}),e.EFF(18," Verify "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(8),e.Y8G("innerHTML",t.htmlStr,e.npT),e.R7$(),e.Y8G("formGroup",t.OtpGroup),e.R7$(3),e.Y8G("ngIf",t.OtpGroup.controls.otp.invalid&&(t.OtpGroup.controls.otp.dirty||t.OtpGroup.controls.otp.touched)),e.R7$(),e.Y8G("ngIf",t.countDown>0),e.R7$(2),e.Y8G("hidden",0!=t.countDown),e.R7$(2),e.Y8G("disabled",t.OtpGroup.invalid)}}function qf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," First Name is required. "),e.k0s())}function Vf(i,a){if(1&i&&(e.j41(0,"div",53),e.DNE(1,qf,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.fname.errors.required)}}function Bf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Last Name is required. "),e.k0s())}function $f(i,a){if(1&i&&(e.j41(0,"div",53),e.DNE(1,Bf,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.lname.errors.required)}}function Yf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",58)(1,"input",59),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.phoneUp(o))}),e.k0s()()}}function Jf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",58)(1,"input",60),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.checkUniqPhone(o))})("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.validatePhone(o))}),e.k0s()()}}function Uf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number is required. "),e.k0s())}function Xf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number is already in use. "),e.k0s())}function zf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Contact number must be 10 digits. "),e.k0s())}function Hf(i,a){if(1&i&&(e.j41(0,"div",61),e.DNE(1,Uf,4,0,"div",54)(2,Xf,4,0,"div",54)(3,zf,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.phone.errors.required),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.phone.errors.isUnique),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.phone.errors.isValidPhone)}}function Wf(i,a){if(1&i&&(e.j41(0,"div",23),e.nrm(1,"input",62),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("readonly",t.invite_id)}}function Zf(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",23)(1,"input",63),e.bIt("focusout",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.checkUniqEmail(o))}),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("readonly",!!t.route.snapshot.queryParams.client_id)}}function Qf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email is required. "),e.k0s())}function Kf(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email must be a valid email address "),e.k0s())}function e1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email must be a valid email address "),e.k0s())}function t1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Email is already in use. Please select another email address "),e.k0s())}function i1(i,a){if(1&i&&(e.j41(0,"div",64),e.DNE(1,Qf,4,0,"div",54)(2,Kf,4,0,"div",54)(3,e1,4,0,"div",54)(4,t1,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.email.errors.required),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.email.errors.email),e.R7$(),e.Y8G("ngIf",!t.registerGroup.controls.email.errors.email&&t.registerGroup.controls.email.errors.pattern),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.email.errors.isUnique)}}function n1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Password is required. "),e.k0s())}function o1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," A minimum 8 characters password contains a combination of uppercase letter, lowercase letter, number and a special character "),e.k0s())}function r1(i,a){if(1&i&&(e.j41(0,"div",64),e.DNE(1,n1,4,0,"div",54)(2,o1,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.password.errors.required),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.password.errors.pattern)}}function a1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Confirm Password is required. "),e.k0s())}function s1(i,a){1&i&&(e.j41(0,"div",55)(1,"i",56),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Passwords must match "),e.k0s())}function l1(i,a){if(1&i&&(e.j41(0,"div",64),e.DNE(1,a1,4,0,"div",54)(2,s1,4,0,"div",54),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.confpassword.errors.required),e.R7$(),e.Y8G("ngIf",t.registerGroup.controls.confpassword.errors.mustMatch)}}let c1=(()=>{class i{fb;route;job;globals;modalService;toastr;errorHandler;_router;NotificationService;common;navigationService;countryLocalizeService;otpModal;registerGroup;OtpGroup;is_pass_visible=!1;is_cpass_visible=!1;phone_code=[];country="";invite_id="";invite_phone_number;_baseURL;countDown=0;modalReference;htmlStr="";check_email=0;check_phone=0;status=!1;localData="";isEnableNext=!1;counterInterval;currentUsername="";constructor(t,n,o,r,s,c,u,h,v,g,b,f){this.fb=t,this.route=n,this.job=o,this.globals=r,this.modalService=s,this.toastr=c,this.errorHandler=u,this._router=h,this.NotificationService=v,this.common=g,this.navigationService=b,this.countryLocalizeService=f,this.country=this.countryLocalizeService.getCountryCode(),this.phone_code="in"===this.country?[{name:"+91",value:"+91"}]:[{name:"+1",value:"+1"}],this.localData=localStorage.getItem("Auth_man_todo"),"rAlive"==this.localData&&(this.toastr.error("First you will log out as recruiter"),this.navigationService.navigate("/irecruiter/dashboard",this.route)),"jAlive"==this.localData&&(this.toastr.error("First you will log out as jobseeker"),this.navigationService.navigate("/jobseeker/my-jobs",this.route)),"cAlive"==this.localData&&(this.toastr.error("First you will log out as client"),this.navigationService.navigate("/client/dashboard",this.route)),"erAlive"==this.localData&&(this.toastr.error("First you will log out as recruiter"),this.navigationService.navigate("/recruiter/dashboard",this.route)),"vAlive"==this.localData&&(this.toastr.error("First you will log out as vendor"),this.navigationService.navigate("/vendors/dashboard",this.route)),"sAlive"==this.localData&&(this.toastr.error("First you will log out as sales"),this.navigationService.navigate("/sales/dashboard",this.route)),this._baseURL=id.D.baseURL,this.createForm(),this.route.queryParams.subscribe(R=>{console.log("params",R),R.email&&this.registerGroup.controls.email.setValue(R.email)})}createForm(){this.registerGroup=this.fb.group({fname:["",ne.k0.required],lname:["",ne.k0.required],email:["",[ne.k0.required,ne.k0.email,ne.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]],code:["in"===this.country?"+91":"+1",ne.k0.required],phone:["",ne.k0.required],password:["",[ne.k0.required,ne.k0.pattern("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9]).{8,}$")]],confpassword:["",ne.k0.required]},{validator:(0,If.pk)("password","confpassword")}),this.OtpGroup=this.fb.group({otp:["",ne.k0.required]})}
1passwordToggle(){this.is_pass_visible=!this.is_pass_visible,this.status=this.invite_phone_number==this.registerGroup.get("phone").value}cpasswordToggle(){this.is_cpass_visible=!this.is_cpass_visible,this.status=this.invite_phone_number==this.registerGroup.get("phone").value}checkPasswordToggle(){this.is_pass_visible=!this.is_pass_visible}get_invite_jobseeker(t){this.job.get_invite_jobseeker(t).subscribe(n=>{let o=n.ResponseData.first_name,r=n.ResponseData.last_name,s=n.ResponseData.email,c=n.ResponseData.phone_code,u=n.ResponseData.phone;this.invite_phone_number=n.ResponseData.phone,this.registerGroup.get("fname").setValue(o),this.registerGroup.get("lname").setValue(r),this.registerGroup.get("email").setValue(s),this.registerGroup.get("code").setValue(c),this.registerGroup.get("phone").setValue(u),this.checkUniqEmail(s),this.checkUniqPhone(this.registerGroup.get("phone").setValue(u))})}ngOnInit(){this.route.snapshot.queryParams.invite_id?(this.invite_id=this.route.snapshot.queryParams.invite_id,this.get_invite_jobseeker(this.invite_id)):(this.invite_id=null,this.isEnableNext=!0)}showCounter(){this.countDown=60,this.counterInterval=setInterval(()=>{this.countDown=this.countDown-1,0==this.countDown&&clearInterval(this.counterInterval)},1e3)}sendOtp(t){clearInterval(this.counterInterval);var n=this.registerGroup.get("phone").value,o=this.registerGroup.get("code").value,r=this.registerGroup.get("email").value,s=o+""+n;this.globals.loading=!0,this.job.sendotp(s,r).subscribe(c=>{this.showCounter(),console.log(c);let u=c.ResponseData||{};!0!==u.skip_otp||!1!==(void 0===u.otp_service_enabled||u.otp_service_enabled)?1==c.ResponseCode?(this.globals.loading=!1,this.modalReference=this.modalService.open(t,{backdrop:"static",keyboard:!1,windowClass:"cr-custom-modal modal-small"}),this.htmlStr=s,this.toastr.success(c.ResponseText)):(this.globals.loading=!1,this.toastr.error(c.ResponseText)):this.verifyOtp()},c=>{this.toastr.error("unable to send otp"),this.globals.loading=!1,this.errorHandler.handleError(c)})}resendOtp(){this.globals.loading=!0;var t=this.registerGroup.get("phone").value,o=this.registerGroup.get("code").value+""+t,r=this.registerGroup.get("email").value;this.htmlStr=o,this.job.sendotp(o,r).subscribe(s=>{this.showCounter(),this.globals.loading=!1},s=>{this.globals.loading=!1,this.errorHandler.handleError(s)})}verifyOtp(){this.globals.loading=!0;var t=this.OtpGroup.get("otp").value,n=this.registerGroup.get("phone").value,r=this.registerGroup.get("code").value+""+n;const s=new FormData;s.append("otp",t),s.append("number",r),this.job.verifyotp(s).subscribe(c=>{this.globals.loading=!1;let u=c.ResponseData||{},h=void 0===u.otp_service_enabled||u.otp_service_enabled;
1if(1==c.ResponseCode||!0===u.skip_otp&&!1===h)if(!0!==u.skip_otp&&!1!==h&&this.modalReference.close(),this.registerGroup.valid){const v=this.registerGroup.value;this.route.queryParams.subscribe(g=>{console.log("params",g),g.jobseeker_id&&g.client_id&&(v.unique_id=g.jobseeker_id,v.client_user_id=g.client_id),g.job&&(v.job_id=g.job),this.globals.loading=!0,this.job.addJobseeker(v).subscribe(b=>{if(1==b.ResponseCode)if(this.NotificationService.sendNotificationUnauth({type:"new_js_register",notification:{notification_type:"new_js_register",jobseeker_id:b.ResponseData.jobseeker_id,jobseeker_user_id:b.ResponseData.jobseeker_user_id,jobseeker_name:b.ResponseData.jobseeker_name,datetime:b.ResponseData.datetime.date}}),this.route.snapshot.queryParams.client_id){this.globals.loading=!0;let R=new FormData;R.append("user_email",this.registerGroup.get("email").value),R.append("password",this.registerGroup.get("password").value),R.append("device_type","3"),R.append("user","J"),this.job.Jobseekerlogin(R).subscribe(C=>{if(0==C.ResponseCode)this.globals.loading=!1,this.toastr.error(C.ResponseText);else{this.toastr.success(C.ResponseText),localStorage.setItem("CR_Tornado",C.Token),localStorage.setItem("Auth_man_todo","jAlive"),this.globals.loading=!0;let x=[];x.push(this.job.set_jobseeker_profile_in_local()),Promise.all(x).then(M=>{M=M[0],localStorage.setItem("CR_PREF",JSON.stringify(M.ResponseData)),this.currentUsername=M.ResponseData,null!=this.currentUsername.profile&&(this.globals.profile=this.currentUsername.profile),3==this.currentUsername.status&&localStorage.setItem("pcom","no"),this.globals.is_jobseeker_login=!0,this.globals.loading=!1,this.navigationService.navigate(this.currentUsername.profile_ratio<100?"/jobseeker/profile-complete":"/jobseeker/my-jobs",this.route)})}},C=>{this.toastr.error(C.error.ResponseText),this.globals.loading=!1,this.errorHandler.handleError(C)})}else this.toastr.success(b.ResponseText),this.navigationService.navigateToHome(this.route),this.globals.loading=!1;else this.toastr.error(b.ResponseText)},b=>{this.toastr.error(b.error.ResponseData.errors[0]),this.globals.loading=!1,this.errorHandler.handleError(b)})})}else for(let v in this.registerGroup.controls)this.registerGroup.controls[v].markAsTouched();else this.toastr.error(c.ResponseText)},c=>{this.errorHandler.handleError(c)})}checkUniqEmail(t){const n=this.registerGroup.get("email");console.log("first",t.target),n.valid&&this.common.checkUniqEmail({email:null==t.target?t:t.target.value}).subscribe(s=>{0==s.ResponseCode&&(n.setErrors({isUnique:!0}),n.markAsTouched()),this.check_email=s.ResponseCode},s=>{this.errorHandler.handleError(s)}),n.value.match(/^(?!\d+@)[\w.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/g)||n.setErrors({email:!0})}validatePhone(t){const n=this.registerGroup.get("phone");10!=t.target.value.replace(/-/g,"").length?n.setErrors({isValidPhone:!0}):n.errors&&n.errors.isValidPhone&&(delete n.errors.isValidPhone,0===Object.keys(n.errors).length&&n.setErrors(null))}checkUniqPhone(t){console.log(t),this.isEnableNext=!1;const n=this.registerGroup.get("phone");n.valid&&this.common.checkAvailPhone({phone:null==t?t:t.target.value.replace(/-/g,""),code:this.registerGroup.get("code").value}).subscribe(o=>{this.isEnableNext=!0,0==o.ResponseCode&&n.setErrors({isUnique:!0}),this.check_phone=o.ResponseCode},o=>{this.errorHandler.handleError(o)}),console.log(t.target.value.length)}checkPhonefromPassword(){this.status=this.invite_phone_number==this.registerGroup.get("phone").value}phoneUp(t){this.invite_phone_number==t?this.status=!0:(this.status=!1,this.checkUniqPhone(t))}openModal(t,n){this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n}`})}charactersOnly(t){var n=new RegExp("^[a-zA-Z]+$"),o=String.fromCharCode(t.charCode?t.charCode:t.which);return!!n.test(o)||(t.preventDefault(),!1)}loginPage(){this.route.queryParams.subscribe(t=>{console.log(t),t.job?this.navigationService.navigate("login",this.route,{queryParams:{job:t.job}}):this.navigationService.navigateToLogin(this.route)})}static \u0275fac=function(n){return new(n||i)(e.rXU(ne.ok),e.rXU(Ve.nX),e.rXU(Yi.m),e.rXU(Qt.E),e.rXU(Ue.Bq),e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(Ve.Ix),e.rXU(uo.J),e.rXU(ni.h),e.rXU(Mi.o),e.rXU(cn.z))};static \u0275cmp=e.VBU({type:i,selectors:[["app-jobseeker-register"]],viewQuery:function(n,o){if(1&n&&e.GBs(Df,5),2&n){let r;e.mGM(r=e.lsd())&&(o.otpModal=r.first)}},standalone:!0,features:[e.aNF],decls:62,vars:28,consts:[["otpVerifyModal",""],["code",""],["otp",""],[3,"loading"],[2,"margin-top","-65px"],[1,"auth-page-wrapper","d-flex","flex-xl-row","flex-column","page-body"],[1,"auth-page-left"],[1,"auth-text-content-wrap"],[1,"auth-header-logo","cursor-pointer",3,"countryRouterLink"],["src","../../../../assets/front-assets/images/logo.svg","alt","logo"],[1,"auth-text-content"],[1,"f-h1","medium","fw-600","mb-2","f-text-navy-blue","text-break"],[1,"fw-400"],[1,"f-p","fw-500","f-text-gray","mb-0"],[1,"auth-page-right","f-bg-pure-white"],[1,"auth-title"],[1,"f-h3","mb-2"],[1,"f-p"],[1,"authentication-form",3,"formGroup"],[1,"d-flex","align-items-start","justify-content-start","sub-input-wrap"],[1,"input-wrap","mb
1-0"],["type","text","placeholder","First Name","formControlName","fname",1,"custom-input",3,"keypress"],["class","control-error",4,"ngIf"],[1,"input-wrap"],["type","text","placeholder","Last Name","formControlName","lname",1,"custom-input",3,"keypress"],[1,"d-flex","align-items-center","justify-content-start","country-code-input-wrap"],[1,"country-code-number-select"],["bindLabel","name","bindValue","name","placeholder","Code","formControlName","code",1,"select-country-code","country-code-disable",3,"items","hideSelected","clearable","searchable","placeholder"],["class","input-wrap mb-0 phone-number-input",4,"ngIf"],["class","control-error mb-4","style","margin-top: -7px",4,"ngIf"],["class","input-wrap",4,"ngIf"],["class","control-error mb-4",4,"ngIf"],["placeholder","Enter Your Password","formControlName","password",1,"custom-input","password-input",3,"keyup","type"],["alt","eye-icon",1,"eye-icon",3,"click","src"],["placeholder","Confirm Password","formControlName","confpassword",1,"custom-input","password-input",3,"type"],[1,"f-btn","d-block","f-h6","small","text-uppercase","f-btn-theme-blue","login-btn","w-100",3,"click","disabled"],[1,"auth-text-footer"],[1,"f-text-gray","small-font","fw-500","register-link"],[1,"blue-link","fw-500","cursor-pointer",3,"click"],[1,"small-font","f-text-gray","fw-500","mb-0"],[1,"fw-600","dark-link",3,"countryRouterLink"],[1,"dark-link","fw-600",3,"countryRouterLink"],[1,"modal-header"],["id","video-call-modal",1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","text-center"],[3,"innerHTML"],[1,"cr-input-wrap","mb-5",3,"formGroup"],["type","number","name","otp","placeholder","Enter OTP","formControlName","otp",1,"cr-form-control","control-medium"],["style","margin-top: 5px",4,"ngIf"],[1,"d-flex","align-items-center","gap-4","justify-content-center"],[1,"cr-btn","cr-btn-blue",2,"margin-right","10px",3,"click","hidden"],[1,"cr-btn","cr-btn-blue",3,"click","disabled"],[1,"control-error"],["class","err-container",4,"ngIf"],[1,"err-container"],[1,"material-icons","control-error-icon"],[2,"margin-top","5px"],[1,"input-wrap","mb-0","phone-number-input"],["type","text","placeholder","Phone Number","formControlName","phone","mask","000-000-0000",1,"custom-input",3,"keyup"],["type","text","placeholder","Phone Number","formControlName","phone","mask","000-000-0000",1,"custom-input",3,"keyup","change"],[1,"control-error","mb-4",2,"margin-top","-7px"],["type","text","placeholder","Email","formControlName","email",1,"custom-input",3,"readonly"],["type","text","placeholder","Email","formControlName","email",1,"custom-input",3,"focusout","readonly"],[1,"control-error","mb-4"]],template:function(n,o){if(1&n){const r=e.RV6();e.nrm(0,"app-loading-spinner",3),e.DNE(1,Lf,19,6,"ng-template",null,0,e.C5r),e.j41(3,"section",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"a",8),e.nrm(8,"img",9),e.k0s(),e.j41(9,"div",10)(10,"h1",11)(11,"span",12),e.EFF(12,"Seeking Employment"),e.k0s(),e.EFF(13," Opportunities? "),e.k0s(),e.j41(14,"p",13),e.EFF(15," Sign Up to discover fresh, high-paying job opportunities that match your skillset to kickstart your career. "),e.k0s()()()(),e.j41(16,"div",14)(17,"div",15)(18,"h3",16),e.EFF(19,"Create An Account"),e.k0s(),e.j41(20,"p",17),e.EFF(21,"Please fill the details to continue with us"),e.k0s()(),e.j41(22,"form",18)(23,"div",19)(24,"div",20)(25,"input",21),e.bIt("keypress",function(c){return e.eBV(r),e.Njj(o.charactersOnly(c))}),e.k0s(),e.DNE(26,Vf,2,1,"div",22),e.k0s(),e.j41(27,"div",23)(28,"input",24),e.bIt("keypress",function(c){return e.eBV(r),e.Njj(o.charactersOnly(c))}),e.k0s(),e.DNE(29,$f,2,1,"div",22),e.k0s()(),e.j41(30,"div",25)(31,"div",26),e.nrm(32,"ng-select",27,1),e.k0s(),e.DNE(34,Yf,2,0,"div",28)(35,Jf,2,0,"div",28),e.k0s(),e.DNE(36,Hf,4,3,"div",29)(37,Wf,2,1,"div",30)(38,Zf,2,1,"div",30)(39,i1,5,4,"div",31),e.j41(40,"div",23)(41,"input",32),e.bIt("keyup",function(){return e.eBV(r),e.Njj(o.checkPhonefromPassword())}),e.k0s(),e.j41(42,"img",33),e.bIt("click",function(){return e.eBV(r),e.Njj(o.cpasswordToggle(
1))}),e.k0s()(),e.DNE(43,r1,3,2,"div",31),e.j41(44,"div",23),e.nrm(45,"input",34),e.j41(46,"img",33),e.bIt("click",function(){return e.eBV(r),e.Njj(o.checkPasswordToggle())}),e.k0s()(),e.DNE(47,l1,3,2,"div",31),e.j41(48,"button",35),e.bIt("click",function(){e.eBV(r);const c=e.sdS(2);return e.Njj(o.sendOtp(c))}),e.EFF(49," Register "),e.k0s()(),e.j41(50,"div",36)(51,"p",37),e.EFF(52," Already have an Account? "),e.j41(53,"a",38),e.bIt("click",function(){return e.eBV(r),e.Njj(o.loginPage())}),e.EFF(54,"Login"),e.k0s()(),e.j41(55,"p",39),e.EFF(56," By clicking Login, I agree to CloudRek\u2019s "),e.j41(57,"a",40),e.EFF(58,"Terms of Use"),e.k0s(),e.EFF(59," and "),e.j41(60,"a",41),e.EFF(61,"Privacy Policy."),e.k0s()()()()()()}2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(7),e.Y8G("countryRouterLink",e.lJ4(25,Pf)),e.R7$(15),e.Y8G("formGroup",o.registerGroup),e.R7$(4),e.Y8G("ngIf",o.registerGroup.controls.fname.invalid&&(o.registerGroup.controls.fname.dirty||o.registerGroup.controls.fname.touched)),e.R7$(3),e.Y8G("ngIf",o.registerGroup.controls.lname.invalid&&(o.registerGroup.controls.lname.dirty||o.registerGroup.controls.lname.touched)),e.R7$(3),e.FS9("placeholder","in"==o.country?"+91":"+1"),e.Y8G("items",o.phone_code)("hideSelected",!0)("clearable",!1)("searchable",!1),e.R7$(2),e.Y8G("ngIf",o.invite_id),e.R7$(),e.Y8G("ngIf",!o.invite_id),e.R7$(),e.Y8G("ngIf",o.registerGroup.controls.phone.invalid&&(o.registerGroup.controls.phone.dirty||o.registerGroup.controls.phone.touched)),e.R7$(),e.Y8G("ngIf",o.invite_id),e.R7$(),e.Y8G("ngIf",!o.invite_id),e.R7$(),e.Y8G("ngIf",o.registerGroup.controls.email.invalid&&(o.registerGroup.controls.email.dirty||o.registerGroup.controls.email.touched)),e.R7$(2),e.Y8G("type",o.is_cpass_visible?"text":"password"),e.R7$(),e.Y8G("src",o.is_cpass_visible?"../../../../assets/front-assets/images/icons/visibility-off.svg":"../../../../assets/front-assets/images/icons/visibility.svg",e.B4B),e.R7$(),e.Y8G("ngIf",o.registerGroup.controls.password.invalid&&(o.registerGroup.controls.password.dirty||o.registerGroup.controls.password.touched)),e.R7$(2),e.Y8G("type",o.is_pass_visible?"text":"password"),e.R7$(),e.Y8G("src",o.is_pass_visible?"../../../../assets/front-assets/images/icons/visibility-off.svg":"../../../../assets/front-assets/images/icons/visibility.svg",e.B4B),e.R7$(),e.Y8G("ngIf",o.registerGroup.controls.confpassword.invalid&&(o.registerGroup.controls.confpassword.dirty||o.registerGroup.controls.confpassword.touched)),e.R7$(),e.Y8G("disabled",o.registerGroup.invalid||!o.isEnableNext),e.R7$(9),e.Y8G("countryRouterLink",e.lJ4(26,Nf)),e.R7$(3),e.Y8G("countryRouterLink",e.lJ4(27,Mf)))},dependencies:[qe.MD,qe.bT,$i.MQ,$i.vr,ne.X1,ne.qT,ne.me,ne.Q0,ne.BC,ne.cb,ne.j4,ne.JD,di.N,Ve.iI,Dn.Zr,Ut._B,Fn.l],styles:['.auth-page-wrapper[_ngcontent-%COMP%]{background-color:var(--f-pure-white)}.auth-page-left[_ngcontent-%COMP%]{width:100%;max-width:57%;background:#eaf6fc url(authentication-bg.e57280340b54d254.png) no-repeat bottom;height:100vh;object-fit:contain}.auth-page-right[_ngcontent-%COMP%]{width:100%;max-width:43%;padding:100px 100px 0;height:100vh;overflow:auto}.auth-text-content[_ngcontent-%COMP%]{max-width:760px}.auth-text-content-wrap[_ngcontent-%COMP%]{position:relative;display:flex;padding:0 150px;justify-content:center;flex-direction:column;height:100vh}.auth-header-logo[_ngcontent-%COMP%]{position:absolute;top:50px;left:150px}.auth-title[_ngcontent-%COMP%]{margin-bottom:24px}.auth-title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700;color:var(--f-black-tint-1)}.input-wrap[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.sub-input-wrap[_ngcontent-%COMP%]{margin-bottom:12px}.custom-input[_ngcontent-%COMP%]{width:100%;border:1px solid var(--f-gray-tint-4);border-radius:40px;outline:none;padding:18px 24px;transition:.3s all;font-size:18px;color:var(--f-navy-blue);font-weight:500;box-shadow:none}.password-input.custom-input[_ngcontent-%COMP%]{padding:18px 50px 18px 24px}.custom-input[_ngcontent-%COMP%]:focus{border:1px solid var(--f-navy-blue)}.custom-input[_ngcontent-%COMP%]::placeholder{color:var(--f-gray);font-weight:500}.input-wrap[_ngcontent-%COMP%]{position:relative}.eye-icon[_ngcontent-%COMP%]{position:absolute;right:24px;top:50%;padding:6x;transform:translateY(-50%);cursor:pointer}.checkbox-content-wrap[_ngcontent-%COMP%]{margin:20px 0 50px;padding:0 20px}.checkbox-wrap[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:var(--f-black-tint-1);font-size:16px}.checkbox-content-wrap[_ngcontent-%COMP%]   .pwd-text[_ngcontent-%COMP%]{color:var(--f-green);font-size:16px}input[type=checkbox][_ngcontent-%COMP%]{height:24px;width:24px;margin:0 5px 0 0;padding:0;opacity:1;-webkit-appearance:none;appearance:none;border:2px solid var(--f-gray-tint-7);border-radius:6px;background:#fff;position:relative}input[type=checkbox][_ngcontent-%COMP%]:checked{border:2px solid var(--f-gray-tint-7);background:var(--f-gray-tint-7)}input[type=checkbox][_ngcontent-%COMP%]:checked:before, input[type=checkbox][_ngcontent-%COMP%]:checked:after{content:"";position:absolute;height:2px;background:var(--f-pure-white)}input[type=checkbox][_ngcontent-%COMP%]:checked:before{width:8px;top:11px;left:2px;transform:rotate(44deg)}input[type=checkbox][_ngcontent-%COMP%]:checked:after{width:14px;top:8px;left:5px;transform:rotate(-55deg)}input[type=checkbox][_ngcontent-%COMP%]:focus{outline:none}.login-btn[_ngcontent-%COMP%]{margin-bottom:40px}.login-btn.f-btn[_ngcontent-%COMP%]{height:auto;padding:22px 0;font-weight:700}.login-btn[_ngcontent-%COMP%]:disabled{background-color:var(--cr-gray-tint-6);color:var(--cr-gray-tint-2);border-color:transparent;cursor:not-allowed}.connect-text[_ngcontent-%COMP%]{color:var(--f-gray-tint-8);letter-spacing:.08em}.social-links[_ngcontent-%COMP%]{min-width:214px;width:100%;font-weight:500;padding:15px 29px;background:#f5f7fb;border-radius:10px;color:var(--f-black-tint-1);transition:.3s all}.social-links[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.social-links[_ngcontent-%COMP%]:hover{background-color:var(--f-gray-tint-4)}.social-links[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:25px;height:25px}.auth-text-footer[_ngcontent-%COMP%]{max-width:441px;margin:0 auto;text-align:center}.auth-text-footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{letter-spacing:.02em}.links-wrap[_ngcontent-%COMP%]{margin-bottom:25px}.small-font[_ngcontent-%COMP%]{font-size:16px}.blue-link[_ngcontent-%COMP%]{text-decoration:underline;color:var(--f-theme-blue);transition:.3s all}.blue-link[_ngcontent-%COMP%]:hover{color:var(--f-navy-blue);text-decoration:none}.dark-link[_ngcontent-%COMP%]{color:var(--f-navy-blue);transition:.3s all;text-decoration:underline}.dark-link[_ngcontent-%COMP%]:hover{text-decoration:none;color:var(--f-theme-blue)}.register-link[_ngcontent-%COMP%]{margin:32px 0}.green-link[_ngcontent-%COMP%]:hover{color:#09947c;text-decoration:underline}.sub-input-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}.sub-input-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-right:11px}.phone-number-input[_ngcontent-%COMP%]{width:100%;margin-left:11px}.country-code-input-wrap[_ngcontent-%COMP%]{margin-bottom:12px}@media only screen and (max-width:1799px){.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ng
1content-%COMP%]{font-size:67px}.auth-text-content-wrap[_ngcontent-%COMP%]{padding:0 120px}.auth-page-right[_ngcontent-%COMP%]{padding:60px 50px}.auth-page-right[_ngcontent-%COMP%]   .f-h3[_ngcontent-%COMP%]{font-size:32px}}@media only screen and (max-width:1599px){.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:58px}.auth-text-content-wrap[_ngcontent-%COMP%]{padding:0 80px}.custom-input[_ngcontent-%COMP%]{padding:15px 21px;font-size:16px}.login-btn.f-btn[_ngcontent-%COMP%]{padding:19px 0}.social-links[_ngcontent-%COMP%]{min-width:180px;padding:12px 23px}.auth-text-footer[_ngcontent-%COMP%]{max-width:380px}.auth-page-right[_ngcontent-%COMP%]{padding:40px}.auth-header-logo[_ngcontent-%COMP%]{left:80px;top:40px}.password-input.custom-input[_ngcontent-%COMP%]{padding:15px 50px 15px 21px}}@media only screen and (max-width:1439px){.auth-text-content-wrap[_ngcontent-%COMP%]{padding:0 60px}.auth-header-logo[_ngcontent-%COMP%]{left:60px}}@media only screen and (max-width:1365px){.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:50px}.auth-text-content[_ngcontent-%COMP%]{max-width:100%}.auth-text-content-wrap[_ngcontent-%COMP%]{padding:0 40px}.auth-header-logo[_ngcontent-%COMP%]{left:40px}.custom-input[_ngcontent-%COMP%]{padding:13px 18px}.password-input.custom-input[_ngcontent-%COMP%]{padding:13px 50px 13px 18px}.login-btn[_ngcontent-%COMP%]{margin-bottom:25px}.register-link[_ngcontent-%COMP%]{margin:25px 0}}@media only screen and (max-width:1199px){.auth-page-right[_ngcontent-%COMP%]{max-width:70%;margin:0 auto;padding:0;height:auto}.auth-page-wrapper[_ngcontent-%COMP%]{padding:15px}.auth-page-left[_ngcontent-%COMP%]{max-width:70%;margin:0 auto 25px;background:unset;height:auto}.auth-text-content-wrap[_ngcontent-%COMP%]{padding:0;height:auto}.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:40px}.auth-page-right[_ngcontent-%COMP%]   .f-h3[_ngcontent-%COMP%]{font-size:29px}.auth-header-logo[_ngcontent-%COMP%]{position:unset;margin-bottom:15px}.sub-input-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:100%;width:100%}}@media only screen and (max-width:767px){.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:34px}.auth-title[_ngcontent-%COMP%]{margin-bottom:20px}.auth-page-right[_ngcontent-%COMP%]   .f-h3[_ngcontent-%COMP%]{font-size:26px}.auth-page-left[_ngcontent-%COMP%], .auth-page-right[_ngcontent-%COMP%]{max-width:100%}}@media only screen and (max-width:575px){.auth-page-left[_ngcontent-%COMP%], .auth-page-right[_ngcontent-%COMP%]{max-width:100%}.sub-input-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.sub-input-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-right:0;margin-bottom:12px!important}}@media only screen and (max-width:480px){.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:31px}.custom-input[_ngcontent-%COMP%]{font-size:15px}.login-btn.f-btn[_ngcontent-%COMP%]{padding:17px 0}.auth-header-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:140px}.auth-page-right[_ngcontent-%COMP%]   .f-h3[_ngcontent-%COMP%]{font-size:23px}.checkbox-content-wrap[_ngcontent-%COMP%]{margin:20px 0 30px;padding:0}.checkbox-content-wrap[_ngcontent-%COMP%]   .pwd-text[_ngcontent-%COMP%], .checkbox-wrap[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:15px}.social-links[_ngcontent-%COMP%]{min-width:150px;padding:10px 15px}.links-wrap[_ngcontent-%COMP%]   .f-p[_ngcontent-%COMP%]{font-size:15px}.social-links[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:21px;height:21px}}@media only screen and (max-width:414px){.login-btn.f-btn[_ngcontent-%COMP%]{padding:14px 0;font-size:15px}.auth-page-right[_ngcontent-%COMP%]   .f-h3[_ngcontent-%COMP%]{font-size:22px}.auth-page-left[_ngcontent-%COMP%]   .f-h1.medium[_ngcontent-%COMP%]{font-size:27px}}']})}return i})();var d1=ze(18359),nd=ze(45312);const u1=["messageBox"],p1=["select_user_for_call"],_1=["video_call_modal"],od=i=>({active:i}),h1=i=>({color:i,"font-size":"17px","margin-left":"4px"});function f1(i,a){if(1&i&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",t.total_unread_count>99?"99+":t.total_unread_count>0?t.total_unread_count:0," ")}}function m1(i,a){if(1&i&&(e.j41(0,"small",55),e.EFF(1),e.nI1(2,"slice"),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ( ",e.brH(2,1,null==t?null:t.job_title,0,30)+((null==t||null==t.job_title?null:t.job_title.length)>30?"...":" "),") ")}}function g1(i,a){if(1&i&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI("",null==t?null:t.un_read_count," ")}}function v1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",45),e.bIt("click",function(){const o=e.eBV(t),r=o.$implicit,s=o.index,c=e.XpG();
1return c.chat_details=[],c.reset_pagination(),c.cardShowHide(s),e.Njj(c.getChatMemberList(r.unique_id,null==r?null:r.un_read_count,r))}),e.j41(2,"div",46)(3,"div",47)(4,"div",48)(5,"img",49),e.bIt("error",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.globals.handleImageFailed(o))}),e.k0s()(),e.j41(6,"div",50)(7,"h5",51),e.EFF(8),e.nI1(9,"slice"),e.nI1(10,"titlecase"),e.k0s(),e.j41(11,"h3"),e.DNE(12,m1,3,5,"small",52),e.k0s()()(),e.j41(13,"div",53)(14,"div"),e.DNE(15,g1,2,1,"span",54),e.k0s()()()()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG();e.R7$(),e.AVh("item-active",t.unique_id===o.unique_id),e.Y8G("ngClass","group-card-"+n),e.R7$(4),e.FS9("src",null==t?null:t.profile,e.B4B),e.R7$(3),e.SpI(" ",null!=t&&t.friendly_name&&"null"!==(null==t?null:t.friendly_name.toLowerCase())?e.bMT(10,11,e.brH(9,7,null==t?null:t.friendly_name,0,20))+((null==t||null==t.friendly_name?null:t.friendly_name.length)>20?"...":" "):""," "),e.R7$(4),e.Y8G("ngIf",null==t?null:t.job_title),e.R7$(3),e.Y8G("ngIf",0!=(null==t?null:t.un_read_count))}}function b1(i,a){if(1&i&&e.nrm(0,"img",57),2&i){const t=e.XpG();e.FS9("src",t.apiUrl+"/storage/app/public/uploads/external_recruiter_profile/default.png",e.B4B)}}function y1(i,a){if(1&i){const t=e.RV6();e.j41(0,"img",58),e.bIt("error",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.globals.handleImageFailed(o))}),e.k0s()}if(2&i){const t=e.XpG();e.FS9("src",t.userProf,e.B4B)}}function k1(i,a){if(1&i&&(e.j41(0,"span",60),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI("( ",e.bMT(2,1,t.memberName)," )")}}function w1(i,a){if(1&i&&(e.j41(0,"h3",51),e.EFF(1),e.nI1(2,"titlecase"),e.DNE(3,k1,3,3,"span",59),e.k0s()),2&i){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,(t.groupName||"").slice(0,30))+((t.groupName||"").length>30?"...":" ")," "),e.R7$(2),e.Y8G("ngIf",""!=t.memberName)}}function x1(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.open_modal_select_calling_users("video"))}),e.j41(1,"i",41),e.EFF(2,"videocam"),e.k0s()()}}function C1(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.open_modal_select_calling_users("voice"))}),e.j41(1,"i",41),e.EFF(2,"phone"),e.k0s()()}}function j1(i,a){if(1&i&&(e.j41(0,"div",77),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2).$implicit;e.R7$(),e.E5c("",t.first_name," ",t.last_name," (",t.type,")")}}function F1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",67)(1,"div",68)(2,"div",69)(3,"img",58),e.bIt("error",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.globals.handleImageFailed(o))}),e.k0s()(),e.j41(4,"div",70)(5,"div",71)(6,"div",72)(7,"div",73),e.DNE(8,j1,2,3,"div",74),e.nrm(9,"div",75),e.k0s(),e.j41(10,"div",76),e.EFF(11),e.nI1(12,"date"),e.k0s()()()()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG(3);e.R7$(3),e.Mz_("src","",t.profile,"?img=68",e.B4B),e.R7$(5),e.Y8G("ngIf",t.type&&t.is_group),e.R7$(),e.Y8G("innerHTML",n.formatMessage(t.message),e.npT),e.R7$(2),e.SpI(" ",e.i5U(12,5,null==t?null:t.sent_date,"shortTime")," ")}}function S1(i,a){1&i&&(e.j41(0,"div",77),e.EFF(1,"You"),e.k0s())}function E1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",78)(1,"div",68)(2,"div",69)(3,"img",58),e.bIt("error",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.globals.handleImageFailed(o))}),e.k0s()(),e.j41(4,"div",70)(5,"div",71)(6,"div",72)(7,"div",73),e.DNE(8,S1,2,0,"div",74),e.nrm(9,"div",75),e.k0s(),e.j41(10,"div",76),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"span",79),e.EFF(14," done_all "),e.k0s()()()()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG(3);e.R7$(3),e.Mz_("src","",t.profile,"?img=68",e.B4B),e.R7$(5),e.Y8G("ngIf",t.type&&t.is_group),e.R7$(),e.Y8G("innerHTML",n.formatMessage(t.message),e.npT),e.R7$(2),e.SpI(" ",e.i5U(12,6,null==t?null:t.sent_date,"shortTime")," "),e.R7$(2),e.Y8G("ngStyle",e.eq3(9,h1,1==(null==t?null:t.is_read)?"#2d9cdb":"#828282"))}}function R1(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,F1,13,8,"div",65)(2,E1,15,11,"div",66),e.k0s()),2&i){const t=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.sent_by!=n.login_user),e.R7$(),e.Y8G("ngIf",t.sent_by==n.login_user)}}function T1(i,a){if(1&i&&(e.j41(0,"div")(1,"div",63)(2,"div",64),e.EFF(3),e.nI1(4,"date"),e.k0s()(),e.DNE(5,R1,3,2,"div",25),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(3),e.SpI(" ",e.i5U(4,2,null==t?null:t.date,"MMMM d, y")," "),e.R7$(2),e.Y8G("ngForOf",null==t?null:t.value)}}function I1(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,T1,6,5,"div",62),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",!(null!=t&&t.error))}}function D1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",80)(1,"div",81)(2,"input",82),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.sendMessage,o)||(r.sendMessage=o),e.Njj(o)}),e.bIt("keyup.enter",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendChatMessage())})("input",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onTypingKeyup(o))}),e.k0s()(),e.j41(3,"button",83),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendChatMessage())}),e.EFF(4," Send "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(2),e.R50("ngModel",t.sendMessage)}}function P1(i,a){1&i&&(e.j41(0,"div",84)(1,"i",85),e.EFF(2,"lock"),e.k0s(),e.j41(3,"span",86),e.EFF(4,"Chat is disabled."),e.k0s()())}function N1(i,a){1&i&&(e.j41(0,"small",90),e.EFF(1,"(Typing...)"),e.k0s())}function M1(i,a){1&i&&(e.j41(0,"p",51),e.EFF(1,"Jobseeker"),e.k0s())}function O1(i,a){1&i&&(e.j41(0,"p",51),e.EFF(1,"Client"),e.k0s())}function A1(i,a){1&i&&(e.j41(0,"p",51),e.EFF(1,"Recruiter"),e.k0s())}function G1(i,a){1&i&&(e.j41(0,"p",51),e.EFF(1,"External Recruiter"),e.k0s())}function L1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",46)(1,"div",87),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG();return e.Njj(r.open_chat_with_member(o))}),e.j41(2,"div",48)(3,"img",49),e.bIt("error",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.globals.handleImageFailed(o))}),e.k0s(),e.nrm(4,"span",88),e.k0s(),e.j41(5,"div",50)(6,"h5",51),e.EFF(7),e.nI1(8,"titlecase"),e.DNE(9,N1,2,0,"small",89),e.k0s(),e.DNE(10,M1,2,0,"p",33)(11,O1,2,0,"p",33)(12,A
11,2,0,"p",33)(13,G1,2,0,"p",33),e.k0s()()()}if(2&i){const t=a.$implicit;e.R7$(3),e.FS9("src",null==t?null:t.image,e.B4B),e.R7$(),e.Y8G("ngClass",1==(null==t?null:t.is_online)?"online":"offline"),e.R7$(3),e.SpI(" ",e.bMT(8,8,null==t?null:t.name)," "),e.R7$(2),e.Y8G("ngIf",null==t?null:t.is_typing),e.R7$(),e.Y8G("ngIf","J"==t.type),e.R7$(),e.Y8G("ngIf","C"==t.type),e.R7$(),e.Y8G("ngIf","R"==t.type),e.R7$(),e.Y8G("ngIf","ER"==t.type)}}function q1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",91)(1,"h3",92),e.EFF(2,"Add User"),e.k0s(),e.j41(3,"button",93),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",94)(5,"div",95)(6,"ng-select",96),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.selected_users,o)||(r.selected_users=o),e.Njj(o)}),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(6),e.Y8G("clearable",!1)("searchable",!0)("items",t.users_list),e.R50("ngModel",t.selected_users)}}function V1(i,a){1&i&&(e.j41(0,"div",91)(1,"h3",97),e.EFF(2,"Are you sure you want to delete it?"),e.k0s(),e.nrm(3,"button",98),e.k0s(),e.j41(4,"div",99)(5,"button",100),e.EFF(6,"Cancel"),e.k0s(),e.j41(7,"button",101),e.EFF(8,"Yes"),e.k0s()())}function B1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",91)(1,"h3",92),e.EFF(2,"Select Member for Call"),e.k0s(),e.j41(3,"button",93),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",94)(5,"div",95)(6,"ng-select",102),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.call_user_select,o)||(r.call_user_select=o),e.Njj(o)}),e.k0s()(),e.j41(7,"button",103),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.call_now())}),e.EFF(8),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(6),e.Y8G("clearable",!1)("searchable",!0)("items",t.get_member_for_call),e.R50("ngModel",t.call_user_select),e.Y8G("closeOnSelect",!1)("maxSelectedItems",50)("multiple",!0),e.R7$(),e.Y8G("disabled",0==t.call_user_select.length),e.R7$(),e.SpI(" ","1"==t.ot_call_type?"Audio":"Video"," Call ")}}let $1=(()=>{class i{globals;job;commonService;chatservice;NotificationService;toastr;errorHandler;modalService;titleService;meta;_router;route;location;changeDetector;authService;navigationService;countryLocalizeService;sanitizer;identity_name="";userDetails;chatList=[];storedChatList=[];total_unread_count=0;memberList;groupName;sendMessage;unique_id;room_id;chat_details=[];login_user;timeLeft=0;hours=0;interval;route_params=[];is_anonymous=0;anonymous_name="";selected_users;messageListSidebar=!1;membersListSidebar=!1;jobseeker_name="";subscriptions=new d1.yU;chatMessageTimeout;typingIdleTimer;TYPING_IDLE_MS=5e3;filterType="all";load_content=!1;scroll_height=1e3;last_scroll_height=0;country;total_records=0;current=0;next_page=1;record_per_page=0;total_pages=0;loading_spinner=!1;blank_array={};get_member_for_call=[];call_user_select=[];calling_type="";is_group=!1;ot_call_detail=[];ot_call_type="1";newwindow;modalOption={backdrop:"static",size:"lg",keyboard:!1};userProf="";memberName="";currentGroup;intiBy;swal;users_list=[];apiUrl=nd.c.apiUrl;timezone="";localTime="";messageBox;select_user_for_call;video_call_modal;currentChatOpenedByUserClick=!0;isClientChatDisabled=!1;is_disabled_chat=!1;USER_TYPE_MAP={J:"Job Seeker",R:"Recruiter",C:"Client",ER:"External Recruiter",V:"Vendor",S:"Sales Person"};constructor(t,n,o,r,s,c,u,h,v,g,b,f,R,C,D,x,M,Y){this.globals=t,this.job=n,this.commonService=o,this.chatservice=r,this.NotificationService=s,this.toastr=c,this.errorHandler=u,this.modalService=h,this.titleService=v,this.meta=g,this._router=b,this.route=f,this.location=R,this.changeDetector=C,this.authService=D,this.navigationService=x,this.countryLocalizeService=M,this.sanitizer=Y,this.country=this.countryLocalizeService.getCountryCode(),this._router.events.subscribe(ee=>{let de=new URL(window.location.href);de instanceof URL&&de.pathname.split("/").includes("messages")&&window.addEventListener("scroll",this.scroll,!0)})}scroll=t=>{window.location.pathname.split("/").includes("messages")&&$(".chat-content").scrollTop()<=400&&0==this.load_content&&this.total_pages>=this.next_page&&this.requestChatMessage()};scrollToBottom(){this.messageBox&&setTimeout(()=>{const t=this.messageBox.nativeElement;t.scrollTop=t.scrollHeight})}ngOnInit(){var t=this;return(0,et.A)(function*(){t.globals.loading=!1,t.commonService.isDeletedUser().subscribe(o=>{1==o.ResponseCode&&(t.toastr.info(o.ResponseText),setTimeout(()=>{t.authService.logout()},1e3))}),JSON.parse(localStorage.getItem("CR_PREF")).profile_ratio<100?t.navigationService.navigate("/jobseeker/profile-complete",t.route):t.job.getdata().subscribe({next:o=>{if(1==o.ResponseData.is_client_send_video_interview){const r=Number(o.ResponseData.video_interview_sender_id);t.navigationService.navigate("jobseeker/video-interview",t.route,{queryParams:{client_user:r,jobseeker_id:o.ResponseData.jobseeker_id}})}},error:o=>{t.globals.loading=!1,t.errorHandler.handleError(o)}}),t.userDetails=JSON.parse(localStorage.getItem("CR_PREF")),t.login_user=t.userDetails.user_id||t.userDetails.id,yield t.getChatList(),yield t.getChatMessage(),t.get_members_status(),t.get_typing(),t.chat_init_with_new_room(),t.get_common_actions(),t.get_chatRoomDeleted(),t.addMember(),t.readChatMsg(),$(".chat-menu-left").on("click",()=>{$(".sidebar-col").toggleClass("sidebarslow"),$(".rightside-col").removeClass("rightsideslow")}
1),$(".member-menu-right").on("click",()=>{$(".rightside-col").toggleClass("rightsideslow"),$(".sidebar-col").removeClass("sidebarslow")}),$(".rightside-col").on("click",()=>{$(".rightside-col").toggleClass("rightsideslow")}),$(".sidebar-col").on("click",()=>{$(".sidebar-col").toggleClass("sidebarslow")}),$(".chat-box").on("click",()=>{$(".sidebar-col").removeClass("sidebarslow"),$(".rightside-col").removeClass("rightsideslow"),$(t).addClass("active")}),$(".sidebar-col, .rightside-col").on("click",()=>{$(".btn.active").removeClass("active"),$(".chat-box").addClass("active")}),$(function(){$(".foote-chat-mobile .btn").click(function(){$(".btn.active").removeClass("active"),$(this).addClass("active")}),$("body").on("click","ul.chatnav li",function(){$("li").removeClass("active"),$(this).addClass("active")})}),$(".chat-menu-left").trigger("click"),t.route.queryParams.subscribe(o=>{if(t.route.snapshot.queryParamMap.get("unique_id")||delete t.route_params.unique_id,t.route.snapshot.queryParamMap.get("room_id")||delete t.route_params.room_id,t.route.snapshot.queryParamMap.get("unique_id"))try{t.route_params.unique_id=atob(t.route.snapshot.queryParamMap.get("unique_id"))}catch(s){console.log("unique_id",s)}if(t.route.snapshot.queryParamMap.get("room_id"))try{t.route_params.room_id=atob(t.route.snapshot.queryParamMap.get("room_id"))}catch(s){console.log("room_id",s)}const r=t.route_params.unique_id??t.route_params.room_id;r&&r!==t.unique_id&&setTimeout(()=>{t.open_on_existing_chat()},1e3)})})()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.chatMessageTimeout&&(clearTimeout(this.chatMessageTimeout),this.chatMessageTimeout=null),this.clearTypingIdleTimer(),this.chatservice&&this.unique_id&&this.chatservice.clear_active_room({unique_id:this.unique_id})}getChatList(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,yield t.chatservice.getChatList().subscribe(n=>{if(t.globals.loading=!1,1==n.ResponseCode){t.chatList=[...n.ResponseData],t.storedChatList=[...n.ResponseData],0===t.chatList.length?t.blank_array={error:"No chats initiated."}:t.get_total_unread();const o=JSON.parse(localStorage.getItem("CR_PREF")||"{}");o&&o.user_id&&t.chatservice.getUnreadCounter({user_id:o.user_id,u_details:o})}else t.toastr.error(n.ResponseText);t.globals.loading=!1,setTimeout(()=>{t.open_on_existing_chat()},1e3)},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}open_on_existing_chat(){let t=null;try{const r=this.route.snapshot.queryParamMap.get("unique_id"),s=this.route.snapshot.queryParamMap.get("room_id");r?t=atob(r):s&&(t=atob(s))}catch(r){console.log("open_on_existing_chat decode error",r)}if(!t||this.unique_id===t)return;const o=(this.chatList||[]).find(r=>r.unique_id===t);this.getChatMemberList(t,0,o||void 0,!1)}cardShowHide(t){$(".member-item").removeClass("item-active"),$(`.group-card-${t}`).addClass("item-active")}toggleMessageListSidebar(){this.membersListSidebar=!1,this.messageListSidebar=!this.messageListSidebar}toggleMembersListSidebar(){this.messageListSidebar=!1,this.membersListSidebar=!this.membersListSidebar}getChatMemberList(t,n=0,o,r=!0){var s=this;this.currentChatOpenedByUserClick=r,t&&(this.unique_id=t);let c=!1;o&&void 0!==o.is_disabled&&(c=!!o.is_disabled),this.is_disabled_chat=c,null!=o&&(this.userProf=o.profile,this.memberName=o.job_title?o.friendly_name:"");var h,u={room_id:t};this.globals.loading=!0,this.chatservice.getMemberList(u).subscribe({next:(h=(0,et.A)(function*(v){if(1==v.ResponseCode){var g=v.ResponseData;if(s.groupName=g.room_data.friendly_name,!s.userProf&&g.member&&g.member.length>0){const C=g.member.find(D=>D.id!==s.login_user);C&&C.image&&(s.userProf=C.image)}if(s.unique_id=g.room_data.unique_id,s.room_id=g.room_data.id,s.memberList=g.member,s.chat_details=[],s.is_group=g.room_data.is_group,s.intiBy=g.room_data.initiated_by,s.currentGroup=g.room_data,r){n&&n>0&&(s.globals.messageBedge=Math.max(0,(s.globals.messageBedge||0)-n));const C=D=>{D&&D.forEach(x=>{if(!x||x.unique_id!==s.unique_id)return;"number"==typeof x.un_read_count&&(x.un_read_count=0);const M=x.member;M&&Array.isArray(M)&&M.forEach(Y=>{Y&&Y.unique_id===s.unique_id&&(Y.un_read_count=0)})})};C(s.chatList),C(s.storedChatList),s.get_total_unread()}yield s.requestChatMessage(),yield s.request_members_status();let b={unique_id:btoa(s.unique_id),room_id:btoa(s.unique_id)};const f={};Object.keys(b).forEach(C=>{f[C]=b[C]}),s.navigationService.navigate("/jobseeker/messages",s.route,{queryParams:f,replaceUrl:!0}),yield s.get_total_unread(),r&&(yield s.requestSetReadMessage(),yield s.sendMarkReadMessage()),s.move_last_chat_to_first(),s.is_anonymous=0,s.anonymous_name="",s.memberList.forEach(C=>{"J"==C.type&&1==C.is_anonymous&&(s.is_anonymous=C.is_anonymous,s.anonymous_name=C.anonymous_name)}
1),s.jobseeker_name="";let R=s.memberList.find(C=>"J"==C.type);R&&(s.jobseeker_name=R.name),s.get_total_unread()}else s.toastr.error(v.ResponseText);s.globals.loading=!1}),function(g){return h.apply(this,arguments)}),error:h=>{this.globals.loading=!1,this.errorHandler.handleError(h)}})}searchData(t){var n=this;return(0,et.A)(function*(){yield n.chatservice.getChatList().subscribe(function(){var o=(0,et.A)(function*(r){n.chatList=[],n.storedChatList=[],yield r.ResponseData.forEach(s=>{s.friendly_name.toLowerCase().match(t.target.value.toLowerCase())&&(n.chatList.push(s),n.storedChatList.push(s))})});return function(r){return o.apply(this,arguments)}}())})()}sendChatMessage(){var t=this;return(0,et.A)(function*(){if(null!=t.unique_id&&null!=t.room_id&&null==t.sendMessage)return t.toastr.error("error","Please type some Message!"),!1;if(null!=t.unique_id&&null!=t.room_id&&null!=t.sendMessage){var n={unique_id:t.unique_id,room_id:t.room_id,sender_id:t.userDetails.user_id||t.userDetails.id,message:t.sendMessage,first_name:t.userDetails.first_name,last_name:t.userDetails.last_name,is_group:t.is_group,friendly_name:t.groupName,user_type:t.userDetails.user_type||t.userDetails.type};1==t.is_anonymous&&(n.is_anonymous=t.is_anonymous,n.anonymous_name=t.anonymous_name);const o=t.sendMessage,r=new Date,s=r.toISOString().slice(0,10),c={message:o,sent_by:t.userDetails.user_id,sent_date:r.toISOString(),profile:t.userDetails.profile||t.userDetails.image||"",unique_id:t.unique_id,is_read:0},u=t.chat_details.find(h=>h.date&&h.date.toString().slice(0,10)===s);u&&u.value?u.value.push(c):(t.chat_details.push({date:s,value:[c]}),t.chat_details.sort((h,v)=>new Date(h.date).getTime()-new Date(v.date).getTime())),t.sendMessage=null,t.changeDetector.detectChanges(),t.scrollToBottom(),yield t.chatservice.send_message(n)}else t.toastr.error("Please Select Any Group!")})()}move_last_chat_to_first(){const t=this.chatList.findIndex(n=>n&&n.unique_id===this.unique_id);if(t>=0&&this.chatList[t]){const n=this.chatList[t],o=this.chatList.filter((r,s)=>s!==t);this.chatList=[n,...o],this.storedChatList=[n,...o],this.changeDetector.detectChanges(),$("li.group").removeClass("active"),$("li.not-group").removeClass("active"),$(".chatnav li").first().addClass("active"),$("#"+this.unique_id).parent("li").addClass("active-member")}}requestChatMessage(){this.load_content=!0;var t={room_id:this.room_id,user_id:this.userDetails.user_id||this.userDetails.id,page:this.next_page};console.log("obj",t,"requestChatMessage"),this.chatservice.request_chat_message(t)}getChatMessage(){this.chatservice.get_chat_message().subscribe({next:t=>{if(console.log("res",t,"getChatMessage"),this.chatMessageTimeout&&(clearTimeout(this.chatMessageTimeout),this.chatMessageTimeout=null),t)if(0!=t.length){this.isClientChatDisabled=!1;const o=t[0]&&t[0].value&&t[0].value[0];if(!o)return;const r=o.unique_id;if(null!=this.unique_id&&null!=this.unique_id&&this.unique_id==r)if(this.unique_id!=r&&0!=this.chat_details.length&&this.increment_unread_message(r),0==this.chat_details.length)null!=t[0]&&this.set_pagination(t[0].pagination),t.sort((c,u)=>new Date(c.date).getTime()-new Date(u.date).getTime()).forEach(c=>{this.chat_details.push(c)}),this.chat_details=this.chat_details.map(c=>({...c,value:c.value.map(u=>({...u,type:this.USER_TYPE_MAP[u.user_type]||u.type,is_group:this.currentGroup.is_group}))})),setTimeout(()=>{this.scrollToBottom()},100),this.load_content=!1,this.chatMessageTimeout&&(clearTimeout(this.chatMessageTimeout),this.chatMessageTimeout=null);else if(t[0].hasOwnProperty("pagination")){let s=t[0].pagination;this.sortData(t),this.set_pagination(s);for(const c in t)if(this.chat_details.some(u=>u.date===t[c].date)){const u=this.chat_details.findIndex(h=>h.date==t[c].date);this.chat_details[u].value=t[c].value.concat(this.chat_details[u].value),this.scrollToBottom()}else this.chat_details.unshift(t[c]),this.scrollToBottom();this.load_content=!1,this.chatMessageTimeout&&(clearTimeout(this.chatMessageTimeout),this.chatMessageTimeout=null)}else{const s=t[0].value[0],c=s.sent_by,u=c==this.userDetails.user_id;let h=this.chat_details.findIndex(g=>g.date===t[0].date);if(u&&h>
1=0&&this.chat_details[h].value&&this.chat_details[h].value.length>0&&this.chat_details[h].value.some(g=>g.sent_by==c&&g.message===s.message&&(!g.sent_date||!s.sent_date||Math.abs(new Date(g.sent_date).getTime()-new Date(s.sent_date).getTime())<5e3)))this.load_content=!1,this.scrollToBottom();else if(-1==h){const g=new Date(t[0].date).getTime();let b=this.chat_details.length;for(let f=0;f<this.chat_details.length;f++)if(g<new Date(this.chat_details[f].date).getTime()){b=f;break}this.chat_details.splice(b,0,t[0])}else this.chat_details[h].value.push(s),u||(this.globals.messageBedge-=1,this.globals.messageBedge<0&&(this.globals.messageBedge=0));this.load_content=!1,this.scrollToBottom()}else this.increment_unread_message(r)}else this.isClientChatDisabled=!!this.memberList.some(o=>"C"==o.type),this.blank_array={error:"No messages have been sent yet."},this.load_content=!1;else this.toastr.error("Failed to load messages"),this.load_content=!1;this.globals.loading=!1,this.currentChatOpenedByUserClick&&null!=this.room_id&&t&&t.length>0&&null!=this.unique_id&&t[0].value?.[0]?.unique_id===this.unique_id&&this.requestSetReadMessage()},error:t=>{this.load_content=!1,this.globals.loading=!1,this.chatMessageTimeout&&(clearTimeout(this.chatMessageTimeout),this.chatMessageTimeout=null),this.errorHandler.handleError(t)}})}set_pagination(t){t&&(this.total_records=t.total_records,this.current=t.current,this.next_page=t.next_page,this.record_per_page=t.record_per_page,this.total_pages=t.total_pages)}sortData(t){return t.sort((n,o)=>new Date(o.date)-new Date(n.date))}scrolldown(){}request_members_status(){let t=[];this.memberList.forEach(o=>{t.push(o.id)}),this.chatservice.request_members_status({user_ids:t})}get_members_status(){this.chatservice.get_members_status().subscribe({next:t=>{null!=this.memberList&&this.memberList.forEach(n=>{1==t[n.id]&&(n.is_online=1),0==t[n.id]&&(n.is_online=0)})},error:t=>{this.globals.loading=!1,this.errorHandler.handleError(t)}})}clearTypingIdleTimer(){this.typingIdleTimer&&(clearTimeout(this.typingIdleTimer),this.typingIdleTimer=null)}onTypingKeyup(t){this.clearTypingIdleTimer();const n=String(this.sendMessage||"").trim();("deleteContentBackward"===t.inputType||"deleteContentForward"===t.inputType)&&this.releave_typing(),n?("insertText"===t.inputType&&this.send_typing(),this.typingIdleTimer=setTimeout(()=>{this.typingIdleTimer=null,this.releave_typing()},this.TYPING_IDLE_MS)):this.releave_typing()}send_typing(){null!=this.room_id&&this.chatservice.send_typing({unique_id:this.unique_id,room_id:this.room_id,user_id:this.userDetails.user_id||this.userDetails.id,is_typing:1,name:this.userDetails.first_name+" "+this.userDetails.last_name})}releave_typing(){null!=this.room_id&&this.chatservice.send_typing({unique_id:this.unique_id,room_id:this.room_id,user_id:this.userDetails.user_id||this.userDetails.id,is_typing:0,name:this.userDetails.first_name+" "+this.userDetails.last_name})}get_typing(){this.subscriptions.add(this.chatservice.get_typing().subscribe({next:t=>{null!=this.memberList&&this.memberList.forEach(n=>{this.unique_id==t.unique_id&&n.id==t.user_id&&(n.is_typing=t.is_typing)})},error:t=>{this.globals.loading=!1,this.errorHandler.handleError(t)}}))}requestSetReadMessage(){this.chatservice.sendReadRequest({room_id:this.room_id,user_id:this.userDetails.user_id||this.userDetails.id})}ready(){this.chatservice.pageReady()}dismiss_call(){this.cancelTimer(),this.timeLeft=0,this.hours=0,this.chatservice.do_call_action({action:"dismiss_call"})}dismiss_video_call(){let t={action:"dismiss_video_call",unique_id:this.unique_id};this.cancelTimer(),this.timeLeft=0,this.hours=0,this.chatservice.do_call_action(t)}startTimer(){this.interval=setInterval(()=>{this.timeLeft>=0?(60==this.timeLeft&&(this.timeLeft=0,this.hours++),this.timeLeft++):this.timeLeft=60==this.timeLeft?0:60},1e3)}cancelTimer(){clearInterval(this.interval)}reset_pagination(){this.total_records=0,this.current=0,this.next_page=1,this.record_per_page=0,this.total_pages=0,this.last_scroll_height=0,this.scroll_height=1e3}chat_init_with_new_room(){this.chatservice.chat_init_with_new_room().subscribe(t=>{setTimeout(()=>{this.getChatList()},1e3)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}get_online_users_for_call(){this.get_member_for_call=[],this.memberList.forEach(t=>{t.id!=this.login_user&&(t.disabled=!1,this.get_member_for_call.push(t))})}open_modal_select_calling_users(t){this.ot_call_type="video"==t?"2":"1",this.get_member_for_call=[],this.call_user_select=[],this.get_online_users_for_call(),this.modalService.open(this.select_user_for_call,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-small"})}call_now(){let t={user_ids:this.call_user_select.join(","),call_type:this.ot_call_type};this.commonService.init_call(t).subscribe(n=>{if(this.modalService.dismissAll(),1==n.ResponseCode){this.ot_call_detail=n.ResponseData,localStorage.setItem("calling_data",JSON.stringify({is_connected:0,calling_data:this.ot_call_detail}));let r=screen.height-60,s=screen.width;this.newwindow=window.open("/"+this.country+"/jobseeker/calling","name","height="+r+",width="+s+"fullscreen=ye
1s"),this.newwindow.moveTo(0,0),this.chatservice.ot_do_call(this.ot_call_detail.call_data),window.focus&&this.newwindow.focus();let c=setInterval(()=>{this.newwindow&&this.newwindow.closed&&(clearInterval(c),this.chatservice.clearLocalStorageDetail(),this.chatservice.jobseeker_regenerate_socket_connection())},1e3)}else this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}get_total_unread(){if(!this.chatList||!this.chatList.length)return this.globals.messageBedge=0,void this.changeDetector.detectChanges();setTimeout(()=>{this.globals.messageBedge=0,this.chatList.forEach(t=>{const n=t.member;let o=0;n&&Array.isArray(n)&&n.some(s=>"number"==typeof s?.un_read_count)&&n.forEach(s=>{o+=s.un_read_count||0}),!o&&"number"==typeof t.un_read_count&&(o=t.un_read_count||0),t.total_un_read_count=o,this.globals.messageBedge+=o}),this.total_unread_count=(this.storedChatList||[]).reduce((t,n)=>t+(null!=n?.total_un_read_count?n.total_un_read_count:n?.un_read_count||0),0),this.changeDetector.detectChanges()},300)}increment_unread_message(t){!this.chatList||!this.chatList.length||(this.chatList.forEach(n=>{const o=n.member;!o||!Array.isArray(o)||o.forEach(r=>{r.unique_id==t&&(r.un_read_count=(r.un_read_count||0)+1)})}),this.get_total_unread())}deleteRoom(){this.swal.fire({title:"Are you sure?",text:"You will not be able to recover this room!",icon:"warning",showCancelButton:!0,confirmButtonText:"Confirm",confirmButtonColor:"#36a4c3",cancelButtonText:"Cancel",cancelButtonColor:"#afbdcf",customClass:"roomDeleteClass"}).then(t=>{if(t.value){let n={type:"group_delete",room_id:this.room_id,unique_id:this.unique_id};this.chatservice.deleteRoom(n).subscribe(o=>{if(1==o.ResponseCode){try{this.chatservice.deletechatroom({groupName:this.groupName,intiBy:this.intiBy,unique_id:this.unique_id,is_group:this.is_group,room_id:this.room_id}),this.groupName=null,this.intiBy=null,this.unique_id=null,this.is_group=null,this.room_id=null,this.memberList=null,this.chat_details=[],this.users_list=[],this.getChatList()}catch(r){console.log(r)}this.toastr.success(o.ResponseText),this.chatservice.send_common_actions(n)}else this.toastr.error(o.ResponseText)},o=>{this.globals.loading=!1,this.errorHandler.handleError(o)})}})}get_common_actions(){this.chatservice.get_common_actions().subscribe(t=>{"group_delete"==t.type&&(t.room_id==this.room_id&&(this.groupName=null,this.intiBy=null,this.unique_id=null,this.is_group=null,this.room_id=null,this.memberList=null,this.chat_details=[],this.users_list=[]),this.getChatList())},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}get_chatRoomDeleted(){this.chatservice.get_chatRoomDeleted().subscribe(t=>{this.unique_id==t.unique_id?0==t.is_group?(this.groupName=null,this.intiBy=null,this.unique_id=null,this.is_group=null,this.room_id=null,this.memberList=null,this.chat_details=[],this.users_list=[],this.getChatList()):"single_user_remove"==t.type?(this.userDetails.user_id||this.userDetails.id)==t.member_id?(this.groupName=null,this.intiBy=null,this.unique_id=null,this.is_group=null,this.room_id=null,this.memberList=null,this.chat_details=[],this.users_list=[],this.getChatList()):this.chatservice.getMemberList({room_id:this.unique_id}).subscribe(o=>{1==o.ResponseCode&&(this.memberList=o.ResponseData.member)}):(this.groupName=null,this.intiBy=null,this.unique_id=null,this.is_group=null,this.room_id=null,this.memberList=null,this.chat_details=[],this.users_list=[],this.getChatList()):(this.users_list=[],this.getChatList())},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}addMember(){this.chatservice.addMember().subscribe(t=>{this.unique_id!=t.unique_id?(this.userDetails.user_id||this.userDetails.id)==t.users?(this.getChatList(),this.chatservice.getMemberList({room_id:t.unique_id}).subscribe(o=>{1==o.ResponseCode&&(this.memberList=o.ResponseData.member)})):this.chatservice.getMemberList({room_id:t.unique_id}).subscribe(r=>{1==r.ResponseCode&&(this.memberList=r.ResponseData.member)}):(this.userDetails.user_id||this.userDetails.id)!=t.users&&this.chatservice.getMemberList({room_id:t.unique_id}).subscribe(r=>{1==r.ResponseCode&&(this.memberList=r.ResponseData.member)})},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}readChatMsg(){this.chatservice.readChatMsg().subscribe(t=>{console.log("read socket",t);const n=t?.room_id||t?.roomId,o=t?.unique_id||t?.uniqueId;if((!n&&!o||n&&n===this.room_id||o&&o===this.unique_id)&&this.chat_details&&this.chat_details.length>0){let s=!1;
1this.chat_details.forEach(c=>{c.value&&c.value.length>0&&c.value.forEach(u=>{u.sent_by===this.login_user&&1!==u.is_read&&(u.is_read=1,s=!0)})}),s&&this.changeDetector.detectChanges()}})}sendMarkReadMessage(){this.chatservice.sendMarkReadMessage({room_id:this.currentGroup.id})}filterMessages(t){this.filterType=t;const n=this.storedChatList||[];this.chatList="unread"===t?n.filter(o=>(o?.un_read_count||0)>0):[...n],this.total_unread_count=this.chatList.reduce((o,r)=>o+(r?.un_read_count||0),0),this.get_total_unread()}linkify(t){return t?t.replace(/((https?:\/\/|www\.)[^\s]+)/g,o=>{let r=o;return r.startsWith("http")||(r="https://"+r),`<a href="${r}" target="_blank" rel="noopener noreferrer">${o}</a>`}):""}formatMessage(t){const n=this.linkify(t);return this.sanitizer.bypassSecurityTrustHtml(n)}open_chat_with_member(t){this.globals.loading=!0;try{if(t?.is_disabled)return void this.toastr.error("Chat is disabled.");if(t?.id===this.login_user)return;const n=this.find_existing_direct_chat_with_member(this.chatList||[],t.id);if(!n)return;const o=n?.unique_id||n?.member?.[0]?.unique_id;o&&this.getChatMemberList(o,0,n,!0)}finally{this.globals.loading=!1}}find_existing_direct_chat_with_member(t,n){if(!t?.length)return null;const o=this.login_user;return t.find(r=>{if(r?.is_group)return!1;const s=r?.room_members||[],c=s.some(h=>(h?.user_id??h?.job_user?.id)===n),u=s.some(h=>(h?.user_id??h?.job_user?.id)===o);return c&&u})||null}static \u0275fac=function(n){return new(n||i)(e.rXU(Qt.E),e.rXU(Yi.m),e.rXU(ni.h),e.rXU(Fo.m),e.rXU(uo.J),e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(Ue.Bq),e.rXU(Wi.hE),e.rXU(Wi.W8),e.rXU(Ve.Ix),e.rXU(Ve.nX),e.rXU(qe.aZ),e.rXU(e.gRc),e.rXU(Oi.u),e.rXU(Mi.o),e.rXU(cn.z),e.rXU(Wi.up))};static \u0275cmp=e.VBU({type:i,selectors:[["app-messages"]],viewQuery:function(n,o){if(1&n&&(e.GBs(u1,5),e.GBs(p1,5),e.GBs(_1,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.messageBox=r.first),e.mGM(r=e.lsd())&&(o.select_user_for_call=r.first),e.mGM(r=e.lsd())&&(o.video_call_modal=r.first)}},standalone:!0,features:[e.aNF],decls:61,vars:23,consts:[["searchMessage",""],["scrollMe",""],["messageBox",""],["add_user_modal",""],["cofirmationModal",""],["select_user_for_call",""],[3,"loading"],[1,"messages-page","main-content-wrap"],[1,"message-togglers","d-xl-none"],["title","Toggle group list",1,"cr-button-round",3,"click"],[1,"material-icons"],["title","Toggle members list",1,"cr-button-round",3,"click"],[1,"cr-chat-module"],[1,"cr-messages",3,"ngClass"],[1,"cr-chat-aside-head","cr-inner-box"],[1,"head-title"],[1,"cr-message-filter"],[1,"cr-message-filter-list"],[1,"cr-message-filter-item",3,"click","ngClass"],["class","cr-message-filter-item-count",4,"ngIf"],[1,"cr-message-search"],[1,"cr-input-wrap","input-icon-prepend","mb-5"],[1,"material-icons","cr-input-icon","icon-first"],["type","text","name","searchMessage","autocomplete","new-searchMessage","placeholder","Search...",1,"cr-form-control","control-medium",3,"keyup"],[1,"cr-recruiters-wrap"],[4,"ngFor","ngForOf"],[1,"cr-chat"],[1,"cr-chat-header"],[1,"cr-chat-header-left"],[1,"cr-chat-header-img","mr-4","flex-shrink-0"],["alt","","class","round img-cover",3,"src",4,"ngIf"],["alt","","class","round img-cover",3,"src","error",4,"ngIf"],[1,"cr-chat-header-info"],["class","mb-0",4,"ngIf"],[1,"cr-chat-header-right"],["class","cr-btn-round cr-btn-filled cr-btn-green",3,"click",4,"ngIf"],[1,"cr-message-box"],["class","cr-chat-footer",4,"ngIf"],["class","cr-chat-disabled-footer",4,"ngIf"],[1,"cr-members",3,"ngClass"],["title","Add Members",1,"cr-btn-round",3,"hidden"],[1,"material-icons-outlined"],[1,"members-list"],["class","member-item",4,"ngFor","ngForOf"],[1,"cr-message-filter-item-count"],[1,"member-item","p-0",3,"click","ngClass"],[1,"member-item"],[1,"member-item-left"],[1,"member-item-img"],["alt","",1,"img-cover","round",3,"error","src"],[1,"member-info"],[1,"mb-0"],["style","font-size: 14px; font-weight: 300",4,"ngIf"],[1,"member-item-right"],["class","member-msg-count",4,"ngIf"],[2,"font-size","14px","font-weight","300"],[1,"member-msg-count"],["alt","",1,"round","img-cover",3,"src"],["alt","",1,"round","img-cover",3,"error","src"],["style","font-weight: normal; font-size: 20px; margin-left: 10px",4,"ngIf"],[2,"font-weight","normal","font-size","20px","margin-left","10px"],[1,"cr-btn-round","cr-btn-filled","cr-btn-green",3,"click"],[4,"ngIf"],[1,"cr-day-stamp-wrap"],[1,"cr-day-stamp"],["class","cr-msgbox-msg msg-recieved",4,"ngIf"],["class","cr-msgbox-msg msg-sent",4,"ngIf"],[1,"cr-msgbox-msg","msg-recieved"],[1,"cr-msg-wrap"],[1,"cr-msg-icon"],[1,"cr-msg-list"],[1,"cr-msg"],[1,"cr-msg-content","d-flex","align-items-end"],[1,"d-flex","flex-column"],["class","chat-user-type",4,"ngIf"],[3,"innerHTML"],[1,"cr-msg-time","pb-0","ml-3"],[1,"chat-user-type"],[1,"cr-msgbox-msg","msg-sent"],[1,"material-icons-outlined",3,"ngStyle"],[1,"cr-chat-footer"],[1,"cr-input-wrap"],["type","text","name","chat-current-msg","placeholder","Type your message here",1,"cr-form-control","control-medium",3,"ngModelChange","keyup.enter","input","ngModel"],[1,"cr-btn","cr-btn-filled","flex-shrink-0","cr-btn-blue","fw-600",3,"click"],[1,"cr-chat-disabled-footer"],[1,"material-icons-outlined","cr-chat-disabled-icon"],[1,"cr-chat-disabled-text"],[1,"member-item-left",2,"position","relative",3,"click"],[3,"ngClass"],["class","typing",4,"ngIf"],[1,"typing"],[1,"modal-header"],["id","video-call-modal",1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body"],[1,"cr-input-wrap","mb
1-5"],["bindLabel","name","bindValue","id","placeholder","Select User","appendTo","body",1,"cr-select","control-large",3,"ngModelChange","clearable","searchable","items","ngModel"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-auto"],[1,"modal-body","d-flex","justify-content-center"],["type","button",1,"cr-btn","cr-btn-red"],["type","button",1,"cr-btn","cr-btn-blue","ml-4"],["bindLabel","name","bindValue","id","placeholder","Select Members","appendTo","body",1,"cr-select","ng-select","control-large",3,"ngModelChange","clearable","searchable","items","ngModel","closeOnSelect","maxSelectedItems","multiple"],[1,"cr-btn","cr-btn-blue","ml-auto","d-block",3,"click","disabled"]],template:function(n,o){if(1&n){const r=e.RV6();e.nrm(0,"app-loading-spinner",6),e.j41(1,"div",7)(2,"div",8)(3,"button",9),e.bIt("click",function(){return e.eBV(r),e.Njj(o.toggleMessageListSidebar())}),e.j41(4,"span",10),e.EFF(5),e.k0s()(),e.j41(6,"button",11),e.bIt("click",function(){return e.eBV(r),e.Njj(o.toggleMembersListSidebar())}),e.j41(7,"i",10),e.EFF(8),e.k0s()()(),e.j41(9,"div",12)(10,"aside",13)(11,"div",14)(12,"div",15),e.EFF(13,"Messages"),e.k0s()(),e.j41(14,"div",16)(15,"ul",17)(16,"li",18),e.bIt("click",function(){return e.eBV(r),e.Njj(o.filterMessages("all"))}),e.EFF(17,"All"),e.k0s(),e.j41(18,"li",18),e.bIt("click",function(){return e.eBV(r),e.Njj(o.filterMessages("unread"))}),e.EFF(19,"Unread "),e.DNE(20,f1,2,1,"span",19),e.k0s()()(),e.j41(21,"div",20)(22,"div",21)(23,"i",22),e.EFF(24,"search"),e.k0s(),e.j41(25,"input",23,0),e.bIt("keyup",function(c){return e.eBV(r),e.Njj(o.searchData(c))}),e.k0s()()(),e.j41(27,"div",24),e.DNE(28,v1,16,13,"div",25),e.k0s()(),e.j41(29,"section",26)(30,"div",27,1)(32,"div",28)(33,"div",29),e.DNE(34,b1,1,1,"img",30)(35,y1,1,1,"img",31),e.k0s(),e.j41(36,"div",32),e.DNE(37,w1,4,4,"h3",33),e.k0s()(),e.j41(38,"div",34),e.DNE(39,x1,3,0,"button",35)(40,C1,3,0,"button",35),e.k0s()(),e.j41(41,"div",36,2),e.DNE(43,I1,2,1,"div",25),e.k0s(),e.DNE(44,D1,5,1,"div",37)(45,P1,5,0,"div",38),e.k0s(),e.j41(46,"aside",39)(47,"div",14)(48,"div",15),e.EFF(49,"Members"),e.k0s(),e.j41(50,"button",40)(51,"i",41),e.EFF(52," person_add_alt_1 "),e.k0s()()(),e.j41(53,"div",42),e.DNE(54,L1,14,10,"div",43),e.k0s()()(),e.DNE(55,q1,7,4,"ng-template",null,3,e.C5r),e.k0s(),e.DNE(57,V1,9,0,"ng-template",null,4,e.C5r)(59,B1,9,9,"ng-template",null,5,e.C5r)}2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(5),e.SpI(" ",o.messageListSidebar?"close":"contacts"," "),e.R7$(3),e.SpI(" ",o.membersListSidebar?"close":"groups"," "),e.R7$(2),e.Y8G("ngClass",o.messageListSidebar?"active":""),e.R7$(6),e.Y8G("ngClass",e.eq3(19,od,"all"===o.filterType)),e.R7$(2),e.Y8G("ngClass",e.eq3(21,od,"unread"===o.filterType)),e.R7$(2),e.Y8G("ngIf",o.total_unread_count>0),e.R7$(8),e.Y8G("ngForOf",o.chatList),e.R7$(6),e.Y8G("ngIf",""==o.userProf),e.R7$(),e.Y8G("ngIf",""!=o.userProf),e.R7$(2),e.Y8G("ngIf",o.unique_id),e.R7$(2),e.Y8G("ngIf",!o.globals.on_voice_calling&&o.unique_id),e.R7$(),e.Y8G("ngIf",!o.globals.on_voice_calling&&o.unique_id),e.R7$(3),e.Y8G("ngForOf",o.chat_details),e.R7$(),e.Y8G("ngIf",!o.isClientChatDisabled&&!o.is_disabled_chat),e.R7$(),e.Y8G("ngIf",o.isClientChatDisabled||o.is_disabled_chat),e.R7$(),e.Y8G("ngClass",o.membersListSidebar?"active":""),e.R7$(4),e.Y8G("hidden",0==o.users_list.length||!o.is_group),e.R7$(4),e.Y8G("ngForOf",o.memberList))},dependencies:[qe.MD,qe.YU,qe.Sq,qe.bT,qe.B3,qe.P9,qe.PV,qe.vh,$i.MQ,$i.vr,ne.YN,ne.me,ne.BC,ne.vS,ne.X1,Ue.XZ,Ue.n8,Ue.HC,Ue.zr,di.N,Ut._B,Hi.EE],styles:['.messages-page[_ngcontent-%COMP%]{height:100%}.chat-user-type[_ngcontent-%COMP%]{font-size:10px;color:var(--cr-teal-blue);font-weight:600;text-transform:uppercase;margin-bottom:3px}.cr-chat-module[_ngcontent-%COMP%]{display:grid;grid-template-columns:400px 1fr 400px;grid-gap:15px;height:100%}.cr-chat-module[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{background-color:var(--pure-white);border:1px solid var(--cr-gray-tint-6);border-radius:10px;height:100%;overflow-y:auto}.cr-chat-module[_ngcontent-%COMP%] > aside[_ngcontent-%COMP%]{padding:25px 0}.cr-chat-module[_ngcontent-%COMP%] > .cr-members[_ngcontent-%COMP%]{flex:0 0 460px;overflow-y:hidden}
1.cr-chat[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.cr-chat-module[_ngcontent-%COMP%] > .cr-messages[_ngcontent-%COMP%]{flex:0 0 400px}.cr-chat-aside-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cr-chat-aside-head[_ngcontent-%COMP%]   .head-title[_ngcontent-%COMP%]{font-size:26px;font-weight:600}.cr-message-filter[_ngcontent-%COMP%]{padding:10px 20px}.cr-message-filter-list[_ngcontent-%COMP%]{display:inline-flex;background-color:var(--cr-gray-tint-6);border-radius:14px;padding:4px;gap:4px}.cr-message-filter-item-count[_ngcontent-%COMP%]{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background-color:var(--cr-teal-blue);color:var(--pure-white);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;line-height:1}.cr-message-filter-item[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;list-style:none;padding:6px 16px;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;color:var(--cr-gray);background-color:transparent;transition:all .25s ease;-webkit-user-select:none;user-select:none}.cr-message-filter-item[_ngcontent-%COMP%]:not(.active):hover{background-color:#0000000d}.cr-message-filter-item.active[_ngcontent-%COMP%]{background-color:var(--pure-white);color:var(--cr-teal-blue);box-shadow:0 2px 6px #00000014}.cr-message-search[_ngcontent-%COMP%]{padding:0 20px}.cr-group-wrap[_ngcontent-%COMP%]{margin-bottom:25px}.members-list[_ngcontent-%COMP%]{overflow-y:auto;height:100%}.cr-group[_ngcontent-%COMP%]{overflow-y:auto;max-height:325px;margin-right:2px}.cr-inner-box[_ngcontent-%COMP%]{padding:0 25px}.group-head[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:100%;background:var(--pure-white);border:1px solid transparent;border-width:0 0 1px 0;padding:15px 25px;transition:.3s all}.group-head[_ngcontent-%COMP%]:after, .member-item[_ngcontent-%COMP%]:after{position:absolute;content:"";width:calc(100% - 50px);left:50%;transform:translate(-50%);background-color:var(--cr-gray-tint-8);height:1px;bottom:-1px}.group-head[_ngcontent-%COMP%]   .group-main-info[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:auto}.group-img[_ngcontent-%COMP%]{padding:2px;width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:green;color:#fff;margin-right:15px;flex-shrink:0}.group-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.group-name[_ngcontent-%COMP%]{margin:0;font-weight:500}.group-head[_ngcontent-%COMP%]   .accordion-arrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-shrink:0}.member-item[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:15px 25px;border:1px solid transparent;border-width:1px 0 1px 0;transition:.3s all;cursor:pointer}.member-item-img[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%;height:inherit}.member-item[_ngcontent-%COMP%]   .member-item-left[_ngcontent-%COMP%]{display:flex;align-items:center}.member-item-left[_ngcontent-%COMP%]   .member-item-img[_ngcontent-%COMP%]{border-radius:50%;width:50px;height:50px;margin-right:15px}.member-item[_ngcontent-%COMP%]   h6[_ngcontent-%COMP%], .member-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:500}.member-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--cr-gray-tint-2);margin-top:3px}.member-item-right[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0}.member-msg-count[_ngcontent-%COMP%]{background-color:var(--cr-yellow);width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:14px}.add-members-btn[_ngcontent-%COMP%]{border:2px solid var(--cr-gray-tint-5);width:50px;height:50px;transition:.3s all;background-color:transparent}.add-members-btn[_ngcontent-%COMP%]:hover{background-color:var(--cr-gray-tint-8)}.members-list[_ngcontent-%COMP%]   .member-item[_ngcontent-%COMP%]:after{content:unset}.member-online[_ngcontent-%COMP%]{position:relative}.member-online[_ngcontent-%COMP%]:after{content:"";position:absolute;right:4px;top:-16px;background:var(--cr-green);border:2px solid var(--pure-white);width:14px;
1height:14px;border-radius:50%}.member-item[_ngcontent-%COMP%]   .delete-btn[_ngcontent-%COMP%]{display:none}.member-item[_ngcontent-%COMP%]:hover   .delete-btn[_ngcontent-%COMP%]{display:block}.member-item[_ngcontent-%COMP%]:last-child{border-bottom:transparent}.cr-chat-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border:1px solid var(--cr-gray-tint-6)}.cr-chat-header-left[_ngcontent-%COMP%], .cr-chat-header-right[_ngcontent-%COMP%]{display:flex;align-items:center}.cr-chat-header-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:20px}.cr-chat-header-img[_ngcontent-%COMP%]{width:50px;height:50px}.cr-chat-header-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.cr-day-stamp-wrap[_ngcontent-%COMP%]{text-align:center;margin:25px 0}.cr-day-stamp[_ngcontent-%COMP%]{border:1px solid var(--cr-gray-tint-5);color:var(--cr-gray-tint-2);text-transform:uppercase;font-size:12px;letter-spacing:1px;border-radius:12px;display:inline-block;padding:2px 10px;font-weight:500;text-align:center}.cr-message-box[_ngcontent-%COMP%]{padding:25px;height:100%;overflow-y:auto}.cr-msgbox-msg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-wrap:wrap;margin-bottom:30px}.cr-msgbox-msg.msg-sent[_ngcontent-%COMP%]{flex-direction:row-reverse}.cr-msg-wrap[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.msg-sent[_ngcontent-%COMP%]   .cr-msg-wrap[_ngcontent-%COMP%]{flex-direction:row-reverse}.cr-msgbox-msg[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.cr-msg-icon[_ngcontent-%COMP%]{width:30px;height:30px;flex-shrink:0}.cr-msg-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.msg-recieved[_ngcontent-%COMP%]   .cr-msg-icon[_ngcontent-%COMP%]{margin-right:15px}.msg-sent[_ngcontent-%COMP%]   .cr-msg-icon[_ngcontent-%COMP%]{margin-left:15px}.cr-msg-list[_ngcontent-%COMP%]{max-width:60%}.cr-msg-list[_ngcontent-%COMP%]   .cr-msg[_ngcontent-%COMP%]{display:flex;align-items:flex-end;margin-bottom:6px}.cr-msg-list[_ngcontent-%COMP%]   .cr-msg[_ngcontent-%COMP%]:last-child{margin-bottom:0}.msg-sent[_ngcontent-%COMP%]   .cr-msg[_ngcontent-%COMP%]{flex-direction:row-reverse}.msg-recieved[_ngcontent-%COMP%]   .cr-msg[_ngcontent-%COMP%]:first-child   .cr-msg-content[_ngcontent-%COMP%]{border-radius:0 10px 10px}.msg-sent[_ngcontent-%COMP%]   .cr-msg[_ngcontent-%COMP%]:first-child   .cr-msg-content[_ngcontent-%COMP%]{border-radius:10px 0 10px 10px}.cr-msg-content[_ngcontent-%COMP%]{background-color:var(--cr-gray-tint-8);color:var(--cr-gray);padding:8px 10px;border-radius:10px;font-size:14px;border:1px solid transparent;overflow-wrap:anywhere}.msg-recieved[_ngcontent-%COMP%]   .cr-msg-content[_ngcontent-%COMP%]{margin-right:8px}.msg-sent[_ngcontent-%COMP%]   .cr-msg-content[_ngcontent-%COMP%]{margin-left:8px;background-color:var(--pure-white);border-color:var(--cr-gray-tint-4)}.cr-msg-time[_ngcontent-%COMP%]{font-size:12px;color:var(--cr-gray-tint-2);flex-shrink:0;padding-bottom:3px}.cr-chat-footer[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;padding:10px;margin-top:auto}@media screen and (max-width: 1499px){.cr-msg-list[_ngcontent-%COMP%]{max-width:80%}.cr-chat-module[_ngcontent-%COMP%]{grid-template-columns:350px 1fr 350px}.cr-chat-module[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]{padding:15px 0}.cr-chat-header[_ngcontent-%COMP%]{padding:15px}.cr-chat-aside-head[_ngcontent-%COMP%]   .head-title[_ngcontent-%COMP%]{font-size:20px}.cr-message-box[_ngcontent-%COMP%]{padding:15px}.cr-msgbox-msg[_ngcontent-%COMP%]{margin-bottom:20px}}@media screen and (max-width: 1365px){.cr-chat-module[_ngcontent-%COMP%]{grid-template-columns:300px 1fr 300px}.cr-inner-box[_ngcontent-%COMP%], .cr-message-search[_ngcontent-%COMP%]{padding:0 15px}.member-item[_ngcontent-%COMP%], .group-head[_ngcontent-%COMP%]{padding:10px}.member-item[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .group-name[_ngcontent-%COMP%]{font-size:14px}.member-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px}.member-item-left[_ngcontent-%COMP%]   .member-item-img[_ngcontent-%COMP%], .group-img[_ngcontent-%COMP%]{width:45px;height:45px}.cr-chat-header-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}}@media screen and (max-width: 1199px){.messages-page[_ngcontent-%COMP%]{overflow-x:hidden}.cr-chat-module[_ngcontent-%COMP%]{position:relative;display:flex;height:calc(100% - 55px)}.cr-chat-module[_ngcontent-%COMP%] > aside[_ngcontent-%COMP%]{position:absolute;max-width:300px;width:100%;top:0;transition:.5s ease-out;box-shadow:2px 0 20px -10px #0000007f;z-index:10}.cr-messages[_ngcontent-%COMP%]{transform:translate(-110%);left:0}.cr-members[_ngcontent-%COMP%]{transform:translate(110%);right:0}.cr-members.active[_ngcontent-%COMP%], .cr-messages.active[_ngcontent-%COMP%]{transform:translate(0)}.message-togglers[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;
1height:40px;margin-bottom:15px}.message-togglers[_ngcontent-%COMP%]   .cr-button-round[_ngcontent-%COMP%]{padding:5px;width:40px;height:40px;background-color:var(--cr-teal-blue);color:var(--pure-white);border:1px solid transparent;border-radius:5px;display:flex;align-items:center;justify-content:center}}@media screen and (max-width: 575px){.member-item-left[_ngcontent-%COMP%]   .member-item-img[_ngcontent-%COMP%], .group-img[_ngcontent-%COMP%]{width:40px;height:40px;margin-right:10px}.cr-chat-aside-head[_ngcontent-%COMP%]{margin-bottom:10px}.cr-chat-aside-head[_ngcontent-%COMP%]   .head-title[_ngcontent-%COMP%]{font-size:18px}.cr-chat-header-img[_ngcontent-%COMP%]{width:40px;height:40px}.cr-chat-header-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px}.cr-chat-header-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:10px}.cr-msgbox-msg[_ngcontent-%COMP%]{margin-bottom:10px}.cr-msg-content[_ngcontent-%COMP%]{font-size:12px}.cr-chat-footer[_ngcontent-%COMP%]   .cr-form-control[_ngcontent-%COMP%]{font-size:14px;border-radius:8px}.cr-chat-footer[_ngcontent-%COMP%]   .cr-btn[_ngcontent-%COMP%]{font-size:14px;padding:6px 16px}}.offline[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:3;background:#afbdcf;width:15px;height:15px;content:"";border-radius:50%}.online[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:3;background:#4bd15f;width:15px;height:15px;content:"";border-radius:50%}.cr-chat-disabled-footer[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 20px;margin-top:auto;background-color:var(--cr-gray-tint-8, #f5f6f8);border-top:1px solid var(--cr-gray-tint-6, #e8eaef);border-radius:0 0 10px 10px}.cr-chat-disabled-icon[_ngcontent-%COMP%]{font-size:20px;color:var(--cr-gray-tint-2, #6b7280)}.cr-chat-disabled-text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:var(--cr-gray, #4b5563)}.cr-chat-footer[_ngcontent-%COMP%]   .cr-input-wrap[_ngcontent-%COMP%]{width:100%;margin-right:15px}']})}return i})();var Y1=ze(99423),J1=ze(11710),rd=ze(85833),ad=ze(21626),U1=ze(88482);const X1=["monthViewCal"],z1=["dayViewCal"],H1=["eventInfoModal"];function W1(i,a){if(1&i&&(e.j41(0,"div",24),e.EFF(1),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function Z1(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",9)(1,"h3",10),e.EFF(2),e.k0s(),e.j41(3,"div",11)(4,"button",12),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.icsgenerateSingleevent())}),e.j41(5,"i",13),e.EFF(6," file_download "),e.k0s()(),e.j41(7,"button",14),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()()(),e.j41(8,"div",15)(9,"div",16)(10,"div",17)(11,"div",18)(12,"div",19),e.EFF(13,"Client Name"),e.k0s(),e.j41(14,"div",20),e.EFF(15),e.nI1(16,"titlecase"),e.k0s()(),e.j41(17,"div",18)(18,"div",19),e.EFF(19,"Email"),e.k0s(),e.j41(20,"div",20)(21,"a",21),e.EFF(22),e.k0s()()(),e.j41(23,"div",18)(24,"div",19),e.EFF(25,"Interview Date"),e.k0s(),e.j41(26,"div",20),e.EFF(27),e.k0s()(),e.j41(28,"div",18)(29,"div",19),e.EFF(30,"Phone"),e.k0s(),e.j41(31,"div",20)(32,"a",21),e.EFF(33),e.k0s()()(),e.j41(34,"div",18)(35,"div",19),e.EFF(36,"Location"),e.k0s(),e.j41(37,"div",20),e.EFF(38),e.k0s()(),e.j41(39,"div",18)(40,"div",19),e.EFF(41,"Skills"),e.k0s(),e.j41(42,"div",20)(43,"div",22),e.DNE(44,W1,2,1,"div",23),e.k0s()()()()()()}if(2&i){const t=e.XpG();e.R7$(2),e.JRh(t.interview_detail_data.title),e.R7$(13),e.JRh(e.bMT(16,12,t.interview_detail_data.company_name)),e.R7$(6),e.Mz_("href","mailTo:",t.interview_detail_data.company_email,"",e.B4B),e.R7$(),e.JRh(t.interview_detail_data.company_email),e.R7$(5),e.Lme("",t.interview_detail_data.interview_date," ",t.interview_detail_data.from_time,""),e.R7$(5),e.Mz_("href","tel:",t.interview_detail_data.company_phone_code+t.interview_detail_data.company_phone,"",e.B4B),e.R7$(),e.SpI(" ",t.interview_detail_data.company_phone_code+" "+t.interview_detail_data.company_phone," "),e.R7$(5),e.JRh(t.interview_detail_data.address),e.R7$(6),e.Y8G("ngForOf",t.interview_detail_data.required_skills)}}let Q1=(()=>{class i{globals;modalService;job;route;location;errorHandler;toastr;common;authService;http;httpService;navigationService;monthCal;dayCal;eventInfoModal;eventData=[];interview_id;jobseeker_user_id;external_recruiter_user_id;upcoming_month;upcoming_year;client_user_id;set configurations(t){t&&(this.monthViewOptions=t)}cal_label="";GetMonth;GetYear;closeResult="";interview_detail_data=[];getMonth;getYear;selectedDate="";constructor(t,n,o,r,s,c,u,h,v,g,b,f){this.globals=t,this.modalService=n,this.job=o,this.route=r,this.location=s,this.errorHandler=c,this.toastr=u,this.common=h,this.authService=v,this.http=g,this.httpService=b,this.navigationService=f}monthViewOptions={plugins:[Y1.A,rd.Ay],headerToolbar:{left:"prev title next",right:"upcomingBtnnone"},initialView:"dayGridMonth",navLinks:!1,dateClick:this.setDayViewDate.bind(this),height:"100%",weekends:!0,editable:!1,selectable:!0,selectMirror:!0,dayMaxEvents:!0,eventDisplay:"block",displayEventTime:!0,displayEventEnd:!0,eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"},eventClick:t=>{this.openEventInfoModal(this.eventInfoModal,t.event.extendedProps.interview_id,t)},eventDidMount:t=>{"Cancelled"===t.event.extendedProps.eventType&&(t.event.setProp("backgroundColor","#EB5757"),t.event.setProp("borderColor","#EB5757"))}};dayViewOptions={plugins:[J1.A,rd.Ay],headerToolbar:{left:"title prev,next",right:""},height:"100%",initialView:"timeGridDay",weekends:!0,dayMaxEvents:!0,allDaySlot:!1,eventDisplay:"block",displayEventTime:!0,displayEventEnd:!0,eventTimeFormat:{hour:"numeric",minute:"2-digit",meridiem:"short"},eventClick:t=>{this.openEventInfoModal(this.eventInfoModal,t.event.extendedProps.interview_id,t)},eventDidMount:t=>{"Cancelled"===t.event.extendedProps.eventType&&(t.event.setProp("backgroundColor","#EB5757"),t.event.setProp("borderColor","#EB5757"))}};ngOnInit(){this.common.isDeletedUser().subscribe(n=>{console.log(n),1==n.ResponseCode&&(this.toastr.info(n.ResponseText),setTimeout(()=>{this.authService.logout()},1e3))}),this.route.queryParams.subscribe(n=>{if(n.date){const[o,r,s]=n.date.split("-");this.selectedDate=`${s}-${r}-${o}`,setTimeout(()=>
1{this.moveCalendarToDate()},100)}}),JSON.parse(localStorage.getItem("CR_PREF")).profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.route):this.job.getdata().subscribe(n=>{if(1==n.ResponseData.is_client_send_video_interview){let o=Number(n.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:o,jobseeker_id:n.ResponseData.jobseeker_id}})}},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)}),this.get_upcoming_data(),this.globals.loading=!1}moveCalendarToDate(){if(this.monthCal&&this.selectedDate){const t=this.monthCal.getApi();t.gotoDate(this.selectedDate),t.select(this.selectedDate)}}setDayViewDate(t){this.dayCal.getApi().gotoDate(t.date.toISOString())}get_upcoming_data(){this.globals.loading=!0,this.job.get_upcoming_data().subscribe(t=>{console.log("res",t),this.globals.loading=!1,1==t.ResponseCode&&(t.ResponseData.forEach(s=>{let c={title:s.title,start:new Date(s.year,s.month-1,s.day,s.from_h,s.from_m),end:new Date(s.year,s.month-1,s.day,s.to_h,s.to_m),allDay:!1,interview_id:s.interview_id,extendedProps:{eventType:"Scheduled"}};this.eventData.push(c),this.upcoming_month=s.month,this.upcoming_year=s.year,this.client_user_id=s.client_user_id,this.jobseeker_user_id=s.jobseeker_user_id,this.external_recruiter_user_id=s.external_recruiter_user_id}),this.monthCal.getApi().setOption("events",this.eventData),this.dayCal.getApi().setOption("events",this.eventData))},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}openEventInfoModal(t,n,o){console.log(o),console.log(n),this.globals.loading=!0;let r=n;this.interview_id=n,null!=r&&(this.globals.loading=!0,this.job.upcoming_calendar_single_data(r).subscribe(s=>{if(console.log(s.ResponseData.interview_schedule),this.globals.loading=!1,1==s.ResponseCode){this.interview_detail_data.title=s.ResponseData.interview_schedule.job_title,this.interview_detail_data.company_name=s.ResponseData.interview_schedule.company_name,this.interview_detail_data.company_email=s.ResponseData.interview_schedule.email,this.interview_detail_data.company_phone_code=s.ResponseData.interview_schedule.phone_code,this.interview_detail_data.company_phone=s.ResponseData.interview_schedule.phone;let c=s.ResponseData.interview_schedule.required_skills.split(",");console.log(c),this.interview_detail_data.required_skills=c,this.interview_detail_data.address=s.ResponseData.interview_schedule.address,this.interview_detail_data.client_persons=s.ResponseData.interview_schedule.related_cp_name,this.interview_detail_data.cancelled_by_whom=s.ResponseData.interview_schedule.cancelled_by_whom,this.interview_detail_data.cancelled_by=s.ResponseData.interview_schedule.cancelled_by,this.interview_detail_data.interview_date=Be()(s.ResponseData.interview_schedule.date).format("D MMM, YYYY"),this.interview_detail_data.from_time=s.ResponseData.interview_schedule.from_time,this.modalService.open(t,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-small"})}},s=>{this.globals.loading=!1,this.errorHandler.handleError(s)}))}icsgenerateSingleevent(){if(!this.interview_id)return void this.toastr.error("Interview ID is missing");const t=nd.c.apiUrl+`/api/single-event/${this.interview_id}`,n={...this.httpService.GetAuthCommon(),responseType:"blob"};this.http.get(t,n).subscribe({next:o=>{const r=window.URL.createObjectURL(o),s=document.createElement("a");s.href=r,s.download=`interview-${this.interview_id}.ics`,document.body.appendChild(s),s.click(),s.remove(),window.URL.revokeObjectURL(r)},error:o=>{console.error("Download failed:",o),this.errorHandler.handleError(o),this.toastr.error("Failed to download calendar event")}})}icsgenerateevent(){console.log("GENERATE")}ngAfterViewInit(){if(this.route.snapshot.queryParams.date){const t=Be()(this.route.snapshot.queryParams.date,"DD-MM-YYYY").format("YYYY-MM-DD");this.monthCal.getApi().gotoDate(t),this.dayCal.getApi().gotoDate(t)}}static \u0275fac=function(n){return new(n||i)(e.rXU(Qt.E),e.rXU(Ue.Bq),e.rXU(Yi.m),e.rXU(Ve.nX),e.rXU(qe.aZ),e.rXU(ji.c),e.rXU(Ut.tw),e.rXU(ni.h),e.rXU(Oi.u),e.rXU(ad.Qq),e.rXU(U1.k),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-upcoming-interviews"]],viewQuery:function(n,o){if(1&n&&(e.GBs(X1,7),e.GBs(z1,7),e.GBs(H1,7)),2&n){let r;e.mGM(r=e.lsd())&&(o.monthCal=r.first),e.mGM(r=e.lsd())&&(o.dayCal=r.first),e.mGM(r=e.lsd())&&(o.eventInfoModal=r.first)}},inputs:{eventData:"eventData"},standalone:!0,features:[e.aNF],decls:10,vars:3,consts:[["monthViewCal",""],["dayViewCal",""],["eventInfoModal",""],[1,"upcoming-interviews-page","main-content-wrap"],[1,"month-view-section"],[1,"custom-cal","custom-cal-month",3,"options"],[1,"day-view-section"],[1,"custom-cal",3,"options"],[3,"loading"],[1,"modal-header"],[1,"modal-title"],[1,"d-flex","align-items-center"],["type","button","title","Download",1,"cr-modal-head-button",3,"click"],[1,"material-icons"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","p-0"],[1,"p-5"],[1,"event-author-grid","mb-5"],[1,"event-author-details"],[1,"event-detail-title","fw-600"],[1,"fw-500"],[3,"href"],[1,"cr-skills-wrap"],["class","cr-skill",4,"ngFor","ngForOf"],[1,"cr-skill"]],template:function(n,o){1&n&&(e.j41(0,"section",3)(1,"div",4),e.nrm(2,"full-calendar",5,0),e.k0s(),e.j41(4,"div",6),e.nrm(5,"full-calendar",7,1),e.k0s()(),e.nrm(7,"app-loading-spinner",8),e.DNE(8,Z1,45,14,"ng-template",null,2,e.C5r)),2&n&&(e.R7$(2),e.Y8G("options",o.monthViewOptions),e.R7$(3),e.Y8G("options",o.dayViewOptions),e.R7$(2),e.Y8G("loading",o.globals.loading))},dependencies:[qe.MD,qe.Sq,qe.PV,ne.YN,ne.X1,$i.MQ,Hi.EE,Ue.Pv,Ue.XZ,di.N,Ue._f,Ue.IQ,Ue.n8,Ue.zr,Ue.HC,lo.xv,Ni.H,Cn.ed,Ve.iI,pi.E,pi.x,Ut._B],styles:[".upcoming-interviews-page[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 400px;grid-gap:15px;height:100%}.month-view-section[_ngcontent-%COMP%]{height:100%}@media screen and (max-width: 1199px){.upcoming-interviews-page[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:1fr .7fr}}@media screen and (max-width: 767px){.upcoming-interviews-page[_ngcontent-%COMP%]{grid-template-rows:500px 500px}}@media screen and (max-width: 575px){.upcoming-interviews-page[_ngcontent-%COMP%]{grid-template-rows:60% 1fr}}@media screen and (max-width: 480px){.fc[_ngcontent-%COMP%]   .fc-toolbar-title[_ngcontent-%COMP%]{font-size:16px!important}}.upcoming-interviews-page[_ngcontent-%COMP%]   .custom-cal-month[_ngcontent-%COMP%]   .fc-day-today.fc-today-light-border[_ngcontent-%COMP%], .upcoming-interviews-page[_ngcontent-%COMP%]   .custom-cal-month[_ngcontent-%COMP%]   .fc-today-light-border.fc-day-today[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.15)!important;box-shadow:inset 0 0 0 1px #00000014}"]})}return i})();var K1=ze(96697);const em=["jobSkillsModal"],tm=(i,a,t)=>({itemsPerPage:i,currentPage:a,totalItems:t}),im=i=>["jobseeker","job-details",i];function nm(i,a){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.short_job_desc," ")}}function om(i,a){if(1&i&&e.nrm(0,"span",36),2&i){const t=e.XpG().$implicit;e.Y8G("innerHtml",t.job_desc,e.npT)}}function rm(i,a){if(1&i){const t=e.RV6();e.j41(0,"a",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(4),s=e.sdS(17);return e.Njj(r.open(s,"small",o))}),e.EFF(1," See More..."),e.k0s()}}function am(i,a){1&i&&(e.j41(0,"span",38),e.EFF(1,"Not Selected"),e.k0s())}function sm(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Hired"),e.k0s())}function lm(i,a){1&i&&(e.j41(0,"span",40),e.EFF(1,"Scheduled"),e.k0s())}function cm(i,a){1&i&&(e.j41(0,"span",41),e.EFF(1,"Shortlisted"),e.k0s())}function dm(i,a){1&i&&(e.j41(0,"span",42),e.EFF(1,"Submitted"),e.k0s())}function um(i,a){1&i&&(e.j41(0,"span",43),e.EFF(1,"Applied"),e.k0s())}function pm(i,a){if(1&i&&(e.j41(0,"tr")(1,"td")(2,"div",23)(3,"a",24),e.EFF(4),e.k0s()()(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td",20),e.EFF(8),e.k0s(),e.j41(9,"td")(10,"span",25),e.EFF(11),e.k0s()(),e.j41(12,"td",20)(13,"p"),e.DNE(14,nm,2,1,"span",26)(15,om,1,1,"span",27)(16,rm,2,0,"a",28),e.k0s()(),e.j41(17,"td"),e.DNE(18,am,2,0,"span",29)(19,sm,2,0,"span",30)(20,lm,2,0,"span",31)(21,cm,2,0,"span",32)(22,dm,2,0,"span",33)(23,um,2,0,"span",34),e.k0s()()),2&i){const t=a.$implicit;e.R7$(3),e.Y8G("countryRouterLink","/jobseeker/job-details/"+t.job_id),e.R7$(),e.Lme("(",t.job_id,") ",t.j
1ob_title,""),e.R7$(2),e.JRh(t.date),e.R7$(2),e.JRh(t.job_location),e.R7$(3),e.JRh(t.job_availability),e.R7$(3),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>100),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length<100),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>100),e.R7$(2),e.Y8G("ngIf",4==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",1==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",5==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",0==(null==t?null:t.status))}}function _m(i,a){if(1&i&&(e.j41(0,"tbody"),e.DNE(1,pm,24,15,"tr",22),e.nI1(2,"paginate"),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.applied_data,e.sMw(4,tm,t.per_page,t.page,t.total)))}}function hm(i,a){if(1&i&&(e.j41(0,"table",17)(1,"thead")(2,"tr")(3,"th",18),e.EFF(4,"Job Title "),e.nrm(5,"span",19),e.k0s(),e.j41(6,"th"),e.EFF(7,"Posted On"),e.nrm(8,"span",19),e.k0s(),e.j41(9,"th",20),e.EFF(10,"Location"),e.nrm(11,"span",19),e.k0s(),e.j41(12,"th"),e.EFF(13,"Job Type"),e.nrm(14,"span",19),e.k0s(),e.j41(15,"th",20),e.EFF(16,"Description"),e.nrm(17,"span",19),e.k0s(),e.j41(18,"th"),e.EFF(19,"Status"),e.nrm(20,"span",19),e.k0s()()(),e.DNE(21,_m,3,8,"tbody",21),e.k0s()),2&i){const t=e.XpG(2);e.Y8G("dtOptions",t.dtOptionsApplied),e.R7$(21),e.Y8G("ngIf",0!=(null==t.applied_data?null:t.applied_data.length))}}function fm(i,a){if(1&i){const t=e.RV6();e.j41(0,"pagination-controls",44),e.bIt("pageChange",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.getPage(o))}),e.k0s()}}function mm(i,a){if(1&i&&(e.j41(0,"div",13)(1,"div",14),e.DNE(2,hm,22,2,"table",15),e.k0s(),e.DNE(3,fm,1,0,"pagination-controls",16),e.k0s()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.isShowPage),e.R7$(),e.Y8G("ngIf",t.total>t.per_page)}}function gm(i,a){if(1&i&&(e.j41(0,"button",55),e.EFF(1," Apply "),e.k0s()),2&i){const t=e.XpG().$implicit;e.Y8G("countryRouterLink",e.eq3(1,im,t.job_id))}}function vm(i,a){1&i&&(e.j41(0,"button",56),e.EFF(1," Applied "),e.k0s())}function bm(i,a){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.short_job_desc.replace("/<[^>]*>/g","")," ")}}function ym(i,a){if(1&i&&e.nrm(0,"span",36),2&i){const t=e.XpG().$implicit;e.Y8G("innerHtml",t.job_desc,e.npT)}}function km(i,a){if(1&i){const t=e.RV6();e.j41(0,"a",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3),s=e.sdS(17);return e.Njj(r.open(s,"small",o))}),e.EFF(1," See More..."),e.k0s()}}function wm(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",58),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function xm(i,a){if(1&i&&(e.j41(0,"div",57),e.DNE(1,wm,3,1,"ng-container",22),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.skills)}}function Cm(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",58),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function jm(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",57),e.DNE(1,Cm,3,1,"ng-container",22),e.j41(2,"a",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.openSkillModal(o.skills))}),e.EFF(3," View More..."),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.skills.slice(0,2))}}function Fm(i,a){if(1&i&&(e.j41(0,"tr")(1,"td",46),e.DNE(2,gm,2,3,"button",47)(3,vm,2,0,"button",48),e.k0s(),e.j41(4,"td")(5,"div",23)(6,"div",49)(7,"a",24),e.EFF(8),e.k0s(),e.j41(9,"span",50),e.EFF(10),e.k0s()()()(),e.j41(11,"td"),e.EFF(12),e.k0s(),e.j41(13,"td"),e.EFF(14),e.k0s(),e.j41(15,"td")(16,"div",51),e.nrm(17,"circle-progress",52),e.k0s()(),e.j41(18,"td")(19,"a",53),e.EFF(20),e.nI1(21,"titlecase"),e.k0s()(),e.j41(22,"td")(23,"p"),e.DNE(24,bm,2,1,"span",26)(25,ym,1,1,"span",27)(26,km,2,0,"a",28),e.k0s()(),e.j41(27,"td"),e.DNE(28,xm,2,1,"div",54)(29,jm,4,1,"div",54),e.k0s()()),2&i){const t=a.$implicit;e.R7$(2),e.Y8G("ngIf",0===t.is_applied),e.R7$(),e.Y8G("ngIf",1===t.is_applied),e.R7$(4),e.Y8G("countryRouterLink","/jobseeker/job-details/"+t.job_id),e.R7$(),e.Lme("(",t.job_id,") ",t.j
1ob_title,""),e.R7$(2),e.JRh(t.job_availability),e.R7$(2),e.JRh(t.date),e.R7$(2),e.JRh(t.job_location),e.R7$(3),e.Y8G("percent",t.skill_matched)("animation",!0)("animationDuration",700),e.R7$(2),e.Y8G("href",null==t?null:t.company_url,e.B4B),e.R7$(),e.JRh(e.bMT(21,18,t.company_name)),e.R7$(4),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>100),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length<100),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>100),e.R7$(2),e.Y8G("ngIf",(null==t.skills?null:t.skills.length)<=2),e.R7$(),e.Y8G("ngIf",(null==t.skills?null:t.skills.length)>2)}}function Sm(i,a){if(1&i&&(e.j41(0,"tbody"),e.DNE(1,Fm,30,20,"tr",22),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.saved_data)}}function Em(i,a){1&i&&(e.j41(0,"tbody")(1,"tr",59)(2,"td",60),e.EFF(3,"No Record Found"),e.k0s()()())}function Rm(i,a){if(1&i&&(e.j41(0,"div",45)(1,"table",17)(2,"thead")(3,"tr")(4,"th",46),e.EFF(5,"Action"),e.nrm(6,"span",19),e.k0s(),e.j41(7,"th"),e.EFF(8,"Job Title"),e.nrm(9,"span",19),e.k0s(),e.j41(10,"th"),e.EFF(11,"Posted On"),e.nrm(12,"span",19),e.k0s(),e.j41(13,"th"),e.EFF(14,"Location"),e.nrm(15,"span",19),e.k0s(),e.j41(16,"th"),e.EFF(17,"Matched"),e.nrm(18,"span",19),e.k0s(),e.j41(19,"th"),e.EFF(20,"Client"),e.nrm(21,"span",19),e.k0s(),e.j41(22,"th",20),e.EFF(23,"Description"),e.nrm(24,"span",19),e.k0s(),e.j41(25,"th"),e.EFF(26,"Skills"),e.nrm(27,"span",19),e.k0s()()(),e.DNE(28,Sm,2,1,"tbody",21)(29,Em,4,0,"tbody",21),e.k0s()()),2&i){const t=e.XpG();e.R7$(),e.Y8G("dtOptions",t.dtOptionsSaved),e.R7$(27),e.Y8G("ngIf",0!=t.saved_data.length),e.R7$(),e.Y8G("ngIf",0==(null==t.saved_data?null:t.saved_data.length))}}function Tm(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",61)(1,"div",62),e.nrm(2,"img",63),e.k0s(),e.j41(3,"div",64)(4,"h5",65),e.EFF(5),e.nI1(6,"titlecase"),e.k0s(),e.j41(7,"p",66),e.EFF(8),e.k0s()(),e.j41(9,"a",67),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.initiate_chatroom_with_recruiter())}),e.j41(10,"span",68),e.EFF(11," textsms "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(2),e.Mz_("src","",null==t.recruiter_detail[0]?null:t.recruiter_detail[0].rec_profile,"\n        ",e.B4B),e.Y8G("alt",(null==t.recruiter_detail[0]?null:t.recruiter_detail[0].first_name)||"Recruiter"),e.R7$(3),e.SpI(" ",e.bMT(6,5,null==t.recruiter_detail[0]?null:t.recruiter_detail[0].first_name)," "),e.R7$(3),e.SpI(" ",null==t.recruiter_detail[0]?null:t.recruiter_detail[0].email," ")}}function Im(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",69)(1,"h3",70),e.EFF(2,"Job Description"),e.k0s(),e.j41(3,"button",71),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()(),e.j41(4,"div",72)(5,"div",73)(6,"label",74),e.EFF(7,"Job Title"),e.k0s(),e.j41(8,"h3",75),e.EFF(9),e.k0s()(),e.j41(10,"div")(11,"label",76),e.EFF(12,"Job Description"),e.k0s(),e.nrm(13,"p",77),e.k0s()(),e.j41(14,"div",78)(15,"button",79),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.EFF(16,"Close"),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(9),e.SpI(" ",null==t.descriptionModalData?null:t.descriptionModalData.job_title," "),e.R7$(4),e.Y8G("innerHtml",t.descriptionModalData.job_desc,e.npT)}}function Dm(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",82),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function Pm(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",69)(1,"h3",70),e.EFF(2,"Skills"),e.k0s(),e.j41(3,"button",80),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",81)(5,"div",57),e.DNE(6,Dm,3,1,"ng-container",22),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(6),e.Y8G("ngForOf",t.jobSkills)}}let Nm=(()=>{class i{globals;job;errorHandler;chatService;router;modalService;common;toastr;authService;route;navigationService;groupDataSubscription=null;dashSelectedContent=1;recruiter_detail=[];saved_data=[];applied_data=[];dtOptions={};dtOptionsApplied={};dtOptionsSaved={};isShowPage=!1;applyJobCounter;saveJobCounter;descriptionModalData;jobSkills=[];total=0;per_page=10;page=1;jobSkillsModal;constructor(t,n,o,r,s,c,u,h,v,g,b){this.globals=t,this.job=n,this.errorHandler=o,this.chatService=r,this.router=s,this.modalService=c,this.common=u,this.toastr=h,this.authService=v,this.route=g,this.navigationService=b,JSON.parse(localStorage.getItem("CR_PREF")).profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.route):this.job.getdata().subscribe(R=>{if(1==R.ResponseData.is_client_send_video_interview){let C=Number(R.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:C,jobseeker_id:R.ResponseData.jobseeker_id}})}},R=>{this.globals.loading=!1,this.errorHandler.handleError(R)})}ngOnInit(){var t=this;return(0,et.A)(function*(){t.common.isDeletedUser().subscribe(n=>{1==n.ResponseCode&&(t.toastr.info(n.ResponseText),setTimeout(()=>{t.authService.logout()},1e3))}),t.dtOptionsApplied={info:!1,searching:!1,paging:!1,order:[[1,"desc"]],language:{emptyTable:"No Record Found"},columns:[{title:"Job Title"},{title:"Posted On"},{title:"Location"},{title:"Job Type"},{title:"Description"},{title:"Status",orderable:!1}],columnDefs:[{targets:1,type:"date"}]},t.dtOptionsSaved={info:!1,searching:!1,paging:!1,order:[[2,"desc"]],language:{emptyTable:"No Record Found"},columns:[{title:"Action"},{title:"Job Title"},{title:"Posted On"},{title:"Location"},{title:"Matched"},{title:"Client"},{title:"Description"},{title:"Skills"}],columnDefs:[{targets:2,type:"date"}]},yield t.get_jobseeker_profile(),t.get_applied_jobs(),t.get_saved_jobs()})()}get_jobseeker_profile(){var t=this;return(0,et.A)(function*(){yield t.job.get_jobseeker_profile().subscribe(n=>{t.recruiter_detail.push(n.ResponseData.recruiter_data)},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}get_saved_jobs(){this.job.get_saved_jobs().subscribe(t=>{1==t.ResponseCode&&(this.saved_data=t.ResponseData,this.saveJobCounter=t.ResponseData.length)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}get_applied_jobs(){this.globals.loading=!0,this.job.get_applied_jobs({page:this.page,per_page:this.per_page}).subscribe(n=>{this.globals.loading=!1,this.isShowPage=!0,1==n.ResponseCode&&(this.globals.loading=!1,this.applyJobCounter=n.ResponseData.total,this.applied_data=n.ResponseData.data,this.total=n.ResponseData.total,this.per_page=n.ResponseData.per_page,this.page=n.ResponseData.current_page)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}getPage(t){this.page=t,this.get_applied_jobs()}initiate_chatroom_with_recruiter(){let t=JSON.parse(localStorage.getItem("CR_PREF")),n=t.user_id||t.id;this.chatService.initiate_chat({recruiter_user_id:this.recruiter_detail[0].user_id,jobseeker_user_id:n,initiated_by:n}),this.groupDataSubscription&&(this.groupDataSubscription.unsubscribe(),this.groupDataSubscription=null),this.groupDataSubscription=this.chatService.get_group_data().pipe((0,K1.s)(1)).subscribe(s=>{setTimeout(()=>{this.navigationService.navigate("jobseeker/messages",this.route,{queryParams:{unique_id:btoa(s.unique_id)}}),this.modalService.dismissAll()},1e3)},s=>{this.globals.loading=!1,this.errorHandler.handleError(s)})}open(t,n,o){this.descriptionModalData=o,this.modalService.open(t,{centered:!0,scrollable:!0,windowClass:`cr-custom-modal modal-${n||"medium"}`})}openSkillModal(t){this.jobSkills=t,this.modalService.open(this.jobSkillsModal,{centered:!0,windowClass:"cr-custom-modal modal-small"})}ngOnDestroy(){this.groupDataSubscription&&(this.groupDataSubscription.unsubscribe(),this.groupDataSubscription=null)}static \u0275fac=function(n){return new(n||i)(e.rXU(Qt.E),e.rXU(Yi.m),e.rXU(e.zcH),e.rXU(Fo.m),e.rXU(Ve.Ix),e.rXU(Ue.Bq),e.rXU(ni.h),e.rXU(Ut.tw),e.rXU(Oi.u),e.rXU(Ve.nX),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-my-jobs"]],viewQuery:function(n,o){if(1&n&&e.GBs(em,5),2&n){let r;e.mGM(r=e.lsd())&&(o.jobSkillsModal=r.first)}},standalone:!0,features:[e.aNF],decls:20,vars:8,consts:[["nav","ngbNav"],["jobDescriptionModal",""],["jobSkillsModal",""],[3,"loading"],[1,"dashboard-page","main-content-wrap","cr-body-sm","555"],[1,"head-top-bar","flex-column-reverse","flex-md-row","gap-5","align-items-start","align-items-md-center"],["ngbNav","",1,"cr-head-nav",3,"activeIdChange","activeId"],[3,"ngbNavItem"],["ngbNavLink","",1,"cr-head-nav-item"],["ngbNavContent",""],["class","rec-profile-head gap-5 mb-4 mb-md-0",4,"ngIf"],[1,"cr-main-content"],[3,"ngbNavOutlet"],[1,"table-responsive","jobseeker-jobs-table"],[1,"jobseeker-in-job-table"],["class","row-border hover cr-data-table w-100 ","datatable","",3,"dtOptions",4,"ngIf"],["class","custom-pagination paginate-front",3,"pageChange",4,"ngIf"],["datatable","",1,"row-border","hover","cr-data-table","w-100",3,"dtOptions"],[2,"width","500px"],[1,"sorting-arrows"],[1,"table-col-md-size"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center"],["href","javascript:void(0)",1,"fw-500","color-alice-blue","cursor-pointer",3,"countryRouterLink"],[1,"cr-pill","pill-blue"],["class","word-wrap text-clamp clamp-3",4,"ngIf"],[3,"innerHtml",4,"ngIf"],["class","link color-alice-blue","href","javascript:void(0)",3,"click",4,"ngIf"],["class","cr-status status-red",4,"ngIf"],["class","cr-status status-green",4,"ngIf"],["class","cr-status status-yellow",4,"ngIf"],["class","cr-status status-gray",4,"ngIf"],["class","cr-status status-blue",4,"ngIf"],["class","cr-status status-pink",4,"ngIf"],[1,"word-wrap","text-clamp","clamp-3"],[3,"innerHtml"],["href","javascript:void(0)",1,"link","color-alice-blue",3,"click"],[1,"cr-status","status-red"],[1,"cr-status","status-green"],[1,"cr-status","status-yellow"],[1,"cr-status","status-gray"],[1,"cr-status","status-blue"],[1,"cr-status","status-pink"],[1,"custom-pagination","paginate-front",3,"pageChange"],[1,"table-responsive"],[1,""],["class","cr-btn cr-btn-blue cr-btn-filled py-2 px-3",3,"countryRouterLink",4,"ngIf"],["class","cr-btn cr-btn-blue cr-btn-filled py-2 px-3 disabled",4,"ngIf"],[1,"d-flex","flex-column","ml-3"],[1,"color-gray-3","paragraph-md"],[1,"tbl-profile-progress"],[3,"percent","animation","animationDuration"],["target","_blank",1,"fw-500","word-wrap",2,"color","#031d1f",3,"href"],["class","cr-skills-wrap",4,"ngIf"],[1,"cr-btn","cr-btn-blue","cr-btn-filled","py-2","px-3",3,"countryRouterLink"],[1,"cr-btn","cr-btn-blue","cr-btn-filled","py-2","px-3","disabled"],[1,"cr-skills-wrap"],[1,"cr-skill"],[1,"text-center"],["colspan","12"],[1,"rec-profile-head","gap-5","mb-4","mb-md-0"],[1,"rec-profile-img","round","flex-shrink-0"],[1,"round","img-cover","img-fluid",2,"width","100%","height","100%",3,"src","alt"],[1,"ml-3"],[1,"fw-600","mb-0"],[1,"fw-500","paragraph-md","color-gray-2","mb-0"],["href","javascript:void(0)",1,"cr-btn-round","cr-btn-filled","ml-auto","flex-shrink-0","cr-btn-green",3,"click"],[1,"material-icons","text-white","h5","mb-0"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],[1,"modal-body"],[1,"d-flex","flex-column","mb-4"],["for","jobtitle",1,"mb-2","color-gray-2","fw-500"],[1,"mb-0","color-dark","fw-700"],["for","jobdesc",1,"mb-2","color-gray-2","fw-500"],[1,"fw-500","word-wrap",3,"innerHtml"],[1,"modal-footer","p-5","d-flex","justify-content-end"],[1,"cr-btn","cr-btn-blue",3,"click"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","text-center"],[1,"cr-skill-details"]],template:function(n,o){if(1&n){const r=e.RV6();e.nrm(0,"app-loading-spinner",3),e.j41(1,"section",4)(2,"div",5)(3,"ul",6,0),e.mxI("activeIdChange",function(c){return e.eBV(r),e.D
1H7(o.dashSelectedContent,c)||(o.dashSelectedContent=c),e.Njj(c)}),e.j41(5,"li",7)(6,"a",8),e.EFF(7),e.k0s(),e.DNE(8,mm,4,2,"ng-template",9),e.k0s(),e.j41(9,"li",7)(10,"a",8),e.EFF(11),e.k0s(),e.DNE(12,Rm,30,3,"ng-template",9),e.k0s()(),e.DNE(13,Tm,12,7,"div",10),e.k0s(),e.j41(14,"div",11),e.nrm(15,"div",12),e.k0s()(),e.DNE(16,Im,17,2,"ng-template",null,1,e.C5r)(18,Pm,7,1,"ng-template",null,2,e.C5r)}if(2&n){const r=e.sdS(4);e.Y8G("loading",o.globals.loading),e.R7$(3),e.R50("activeId",o.dashSelectedContent),e.R7$(2),e.Y8G("ngbNavItem",1),e.R7$(2),e.SpI(" ",o.applyJobCounter," Applied Jobs "),e.R7$(2),e.Y8G("ngbNavItem",2),e.R7$(2),e.SpI(" ",o.saveJobCounter," Saved Jobs "),e.R7$(2),e.Y8G("ngIf",null!=o.recruiter_detail[0]),e.R7$(2),e.Y8G("ngbNavOutlet",r)}},dependencies:[qe.MD,qe.Sq,qe.bT,qe.PV,Ue.Pv,Ue.Um,Ue.X9,Ue.sy,Ue.Gx,Ue.Ri,Ue.WA,Ue.m_,Ve.iI,Ni.H,Ni._,so.rz,so.VE,di.N,Ut._B,Fn.l,Cn.ed,Cn.kf,Cn.ej],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.cursor-pointer[_ngcontent-%COMP%]:hover{text-decoration:underline}.jobseeker-jobs-table[_ngcontent-%COMP%]{overflow-x:unset}.jobseeker-in-job-table[_ngcontent-%COMP%]{overflow-x:auto}.table-col-md-size[_ngcontent-%COMP%]{max-width:300px}.word-wrap[_ngcontent-%COMP%]{word-break:break-word}.text-clamp[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.clamp-3[_ngcontent-%COMP%]{-webkit-line-clamp:3;line-clamp:3}"]})}return i})();const Mm=["timesheet_detail"],Om=["timesheetModal"],Am=()=>["jobseeker","my-jobs"],Gm=()=>["jobseeker","timesheets","history"],Lm=(i,a,t,n)=>({regular_day:i,holiday:a,timeslot_holiday:t,disabled:n}),qm=()=>({standalone:!0});function Vm(i,a){1&i&&(e.j41(0,"div",24)(1,"section",25)(2,"div",26)(3,"div",27),e.nrm(4,"img",28),e.k0s(),e.j41(5,"h3",29),e.EFF(6,"Ooops!! Nothing Here..."),e.k0s(),e.j41(7,"h5",30),e.EFF(8," Looks like you didn't got timesheet yet...!!! "),e.k0s()()()())}function Bm(i,a){if(1&i&&(e.j41(0,"th"),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.SpI(" ",t.day,""),e.R7$(2),e.SpI(" ",t.date," ")}}function $m(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.hours)}}function Ym(i,a){1&i&&(e.j41(0,"div",63),e.EFF(1," 00:00 "),e.k0s())}function Jm(i,a){if(1&i){const t=e.RV6();e.j41(0,"td")(1,"div",54)(2,"button",55),e.bIt("click",function(){const o=e.eBV(t).index,r=e.XpG().index,s=e.XpG(3);return e.Njj(s.indexValue=r+"_"+o)}),e.DNE(3,$m,2,1,"span",23)(4,Ym,2,0,"div",56),e.k0s(),e.j41(5,"div",57)(6,"form",58)(7,"div",59),e.nrm(8,"input",60,2),e.k0s(),e.nrm(10,"div",61),e.j41(11,"button",62),e.bIt("click",function(){e.eBV(t);const o=e.sdS(9),r=e.XpG(2).index,s=e.XpG(2);return e.Njj(s.add_timesheet_submit(o.value,s.indexValue,r))}),e.EFF(12," Save "),e.k0s()()()()()}if(2&i){const t=a.$implicit,n=e.sdS(9);e.R7$(),e.Y8G("autoClose",!0)("placement","bottom")("display","dynamic"),e.R7$(),e.Y8G("ngClass",e.ziG(7,Lm,"R"==(null==t?null:t.day_type),"H"==(null==t?null:t.day_type),"PH"==(null==t?null:t.day_type),null!=(null==t?null:t.end_date)&&null!=(null==t?null:t.start_date))),e.R7$(),e.Y8G("ngIf","complete"==(null==t?null:t.action)),e.R7$(),e.Y8G("ngIf","create"==(null==t?null:t.action)),e.R7$(7),e.Y8G("disabled",""==n.value)}}function Um(i,a){if(1&i){const t=e.RV6();e.j41(0,"tr")(1,"th",52),e.EFF(2),e.nI1(3,"titlecase"),e.k0s(),e.DNE(4,Jm,13,12,"td",48),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td")(8,"button",53),e.bIt("click",function(){e.eBV(t);const o=e.XpG().index,r=e.XpG(2);return e.Njj(r.final_timesheet_submit(o))}),e.EFF(9," Submit "),e.k0s()()()}if(2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,4,null==t||null==t.timesheet_detail?null:t.timesheet_detail.project_name)," "),e.R7$(2),e.Y8G("ngForOf",null==t?null:t.hours),e.R7$(2),e.JRh(null==t||null==t.timesheet_detail?null:t.timesheet_detail.project_hours),e.R7$(2),e.Y8G("disabled",0==(null==t?null:t.disableSubmit))}}function Xm(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",32)(1,"div",33)(2,"div",34),e.EFF(3," Client: "),e.EFF(4),e.nI1(5,"titlecase"),e.k0s(),e.j41(6,"div",35)(7,"div",36)(8,"div",37),e.nrm(9,"div",38),e.j41(10,"span",39),e.EFF(11,"On Leave"),e.k0s()(),e.j41(12,"div",37),e.nrm(13,"div",40),e.j41(14,"span",39),e.EFF(15,"Public Holiday"),e.k0s()()(),e.j41(16,"div",41)(17,"button",42),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.prev_week())}),e.j41(18,"span",43),e.EFF(19," chevron_left "),e.k0s()(),e.j41(20,"span",44),e.EFF(21),e.k0s(),e.j41(22,"button",42),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.next_week())}),e.j41(23,"span",43),e.EFF(24," chevron_right "),e.k0s()()()()(),e.j41(25,"div",45)(26,"table",46)(27,"thead")(28,"tr")(29,"th",47),e.EFF(30,"Project"),e.k0s(),e.DNE(31,Bm,4,2,"th",48),e.j41(32,"th"),e.EFF(33,"Total"),e.k0s(),e.j41(34,"th"),e.EFF(35,"Action"),e.k0s()()(),e.j41(36,"tbody"),e.DNE(37,Um,10,6,"tr",48),e.k0s()(),e.j41(38,"div",49)(39,"div",50)(40,"button",51),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(2);return e.Njj(r.openTimesheetModal(null==o?null:o.clientData))}),e.EFF(41," Add Approved Timesheet "),e.k0s()()()()()}if(2&i){const t=a.$implicit,n=e.XpG(2);e.R7$(4),e.SpI(" ",e.bMT(5,4,null==t||null==t.clientData[0].timesheet_detail?null:t.clientData[0].timesheet_detail.company_name)," "),e.R7$(17),e.JRh(n.range_date),e.R7$(10),e.Y8G("ngForOf",n.timesheet_data),e.R7$(6),e.Y8G("ngForOf",null==t?null:t.clientData)}}function zm(i,a){if(1&i&&(e.qex(0),e.DNE(1,Xm,42,6,"div",31),e.bVm()),2&i){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.clientTimesheetList)}}function Hm(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",64)(1,"h3",65),e.EFF(2,"Add Description"),e.k0s(),e.j41(3,"button",66),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()(),e.j41(4,"div",67)(5,"div",68),e.nrm(6,"textarea",69),e.k0s()(),e.j41(7,"div",70)(8,"button",71),e.EFF(9,"Save"),e.k0s()()}}function Wm(i,a){1&i&&(e.j41(0,"div",96)(1,"i",97),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Please select project. "),e.k0s())}function Zm(i,a){if(1&i&&(e.j41(0,"div",94),e.DNE(1,Wm,4,0,"div",95),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addTimesheetForm.controls.project.errors.required)}}function Qm(i,a){if(1&i){const t=e.RV6();e.j41(0,"span",98),e.bIt("mouseenter",function(){const o=e.eBV(t).$implicit,r=e.XpG(2);
1return e.Njj(r.dpHoveredDate=o)})("mouseleave",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.dpHoveredDate=null)}),e.EFF(1),e.k0s()}if(2&i){const t=a.$implicit,n=a.focused,o=e.XpG(2);e.AVh("focused",n)("range",o.isRange(t))("faded",o.isHovered(t)||o.isInside(t)),e.R7$(),e.SpI(" ",t.day," ")}}function Km(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",99)(1,"button",100),e.bIt("click",function(){e.eBV(t),e.XpG();const o=e.sdS(15);return e.Njj(o.close())}),e.EFF(2," Apply "),e.k0s(),e.j41(3,"ng-select",101),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.selectedDuration,o)||(r.selectedDuration=o),e.Njj(o)}),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(3),e.Y8G("items",t.duration),e.R50("ngModel",t.selectedDuration),e.Y8G("ngModelOptions",e.lJ4(7,qm))("searchable",!1)("clearable",!1)("clearable",!1)("searchable",!0)}}function eg(i,a){if(1&i){const t=e.RV6();e.j41(0,"span",102),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return o.dpFromDate=null,o.dpToDate=null,e.Njj(o.dp_range_date=null)}),e.EFF(1," close "),e.k0s()}}function tg(i,a){1&i&&(e.j41(0,"div",94)(1,"div",96)(2,"i",97),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Please select date range. "),e.k0s()())}function ig(i,a){1&i&&(e.j41(0,"div",96)(1,"i",97),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Please select total hours. "),e.k0s())}function ng(i,a){1&i&&(e.j41(0,"div",96)(1,"i",97),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum can be hours 800. "),e.k0s())}function og(i,a){if(1&i&&(e.j41(0,"div",96)(1,"i",97),e.EFF(2,"warning"),e.k0s(),e.EFF(3),e.k0s()),2&i){const t=e.XpG(3);e.R7$(3),e.SpI(" ",t.totalHrsErrors," ")}}function rg(i,a){if(1&i&&(e.j41(0,"div",94),e.DNE(1,ig,4,0,"div",95)(2,ng,4,0,"div",95)(3,og,4,1,"div",95),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.addTimesheetForm.controls.totalHrs.errors.required),e.R7$(),e.Y8G("ngIf",t.addTimesheetForm.controls.totalHrs.errors.max),e.R7$(),e.Y8G("ngIf",""!=t.totalHrsErrors)}}function ag(i,a){if(1&i&&(e.j41(0,"h4",103),e.EFF(1),e.j41(2,"button",104)(3,"span",105),e.EFF(4," verified "),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",null==t.uploadTimesheetDocument?null:t.uploadTimesheetDocument.name," ")}}function sg(i,a){1&i&&(e.j41(0,"div",94)(1,"div",96)(2,"i",97),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Please select document. "),e.k0s()())}function lg(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",64)(1,"h3",65),e.EFF(2,"Add Approved Timesheet"),e.k0s(),e.j41(3,"button",66),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()(),e.j41(4,"div",72)(5,"div",68),e.nrm(6,"ng-select",73,3),e.DNE(8,Zm,2,1,"div",74),e.k0s(),e.j41(9,"div",75)(10,"form",76)(11,"div",77)(12,"div",78)(13,"div",79)(14,"input",80,4),e.bIt("dateSelect",function(o){e.eBV(t);const r=e.sdS(15),s=e.XpG();return e.Njj(s.onDateSelection(o,r))}),e.k0s(),e.DNE(16,Qm,2,7,"ng-template",null,5,e.C5r)(18,Km,4,8,"ng-template",null,6,e.C5r),e.k0s()(),e.j41(20,"div",81)(21,"input",82,7),e.bIt("input",function(){e.eBV(t);const o=e.sdS(22),r=e.XpG();return e.Njj(r.dpFromDate=r.validateInput(r.dpFromDate,o.value))}),e.k0s(),e.j41(23,"button",83),e.bIt("click",function(){e.eBV(t);const o=e.sdS(15);return e.Njj(o.toggle())}),e.k0s(),e.DNE(24,eg,2,0,"span",84),e.k0s()(),e.j41(25,"div",85)(26,"div",81)(27,"input",86,8),e.bIt("input",function(){e.eBV(t);const o=e.sdS(28),r=e.XpG();return e.Njj(r.dpToDate=r.validateInput(r.dpToDate,o.value))}),e.k0s(),e.j41(29,"button",83),e.bIt("click",function(){e.eBV(t);const o=e.sdS(15);return e.Njj(o.toggle())}),e.k0s()()()(),e.DNE(30,tg,5,0,"div",74),e.k0s(),e.j41(31,"div",87)(32,"input",88),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.numberOnly(o))}),e.k0s(),e.DNE(33,rg,4,3,"div",74),e.k0s(),e.DNE(34,ag,5,1,"h4",89),e.j41(35,"div",90)(36,"input",91),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.uploadTimesheetDocs(o))}),e.k0s(),e.j41(37,"label",92),e.EFF(38," + Upload Document "),e.k0s()(),e.DNE(39,sg,5,0,"div",74),e.k0s(),e.j41(40,"div",70)(41,"button",93),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.addTimesheetData())}),e.EFF(42," Save "),e.k0s()()}if(2&i){const t=e.sdS(17),n=e.sdS(19),o=e.XpG();e.R7$(4),e.Y8G("formGroup",o.addTimesheetForm),e.R7$(2),e.Y8G("clearable",!1)("searchable",!1)("items",o.timesheetProjects),e.R7$(2),e.Y8G("ngIf",o.addTimesheetForm.controls.project.invali
1d&&(o.addTimesheetForm.controls.project.dirty||o.addTimesheetForm.controls.project.touched)),e.R7$(6),e.Y8G("autoClose",!1)("displayMonths",1)("dayTemplate",t)("startDate",o.dpFromDate)("footerTemplate",n),e.R7$(7),e.Y8G("value",o.dp_range_date),e.R7$(3),e.Y8G("ngIf",null!=o.dp_range_date),e.R7$(3),e.Y8G("value",o.formatter.format(o.toDate)),e.R7$(3),e.Y8G("ngIf",1==o.isShowDateError),e.R7$(3),e.Y8G("ngIf",o.addTimesheetForm.controls.totalHrs.invalid&&(o.addTimesheetForm.controls.totalHrs.dirty||o.addTimesheetForm.controls.totalHrs.touched)),e.R7$(),e.Y8G("ngIf",o.uploadTimesheetDocument),e.R7$(5),e.Y8G("ngIf",o.addTimesheetForm.controls.file.errors&&1==o.addTimesheetForm.controls.file.errors.isRequired)}}let cg=(()=>{class i{modalService;fb;job;globals;errorHandler;calendar;formatter;titleService;meta;toastr;route;common;authService;navigationService;project_name="";company_name="";total_hours="00:00";total_hours_by_project="00:00";start_date;closeResult;timesheet_detail_id;timesheet_data=[];clients_list=[];projects_list=[];range_date_picker_model;selected_project=null;selected_client=null;timesheet_time=[];public_holidays=[];timesheet_status_data=[];assign_clients_list=[];assign_all_clients_name=[];all_projects_timesheet=[];clientTimesheetList=[];timesheetProjects=[];duration=[{id:1,name:"One Week"},{id:2,name:"Two Weeks"},{id:3,name:"Three Weeks"},{id:4,name:"One Month"}];selectedDuration=1;clientId;displayMonths=1;navigation="arrows";showWeekNumbers=!1;outsideDays="visible";maxDate=null;show_submit_timesheet_btn=!0;timesheet_status=null;isShowDateError=!1;add_project_form;addTimesheetForm;show_timesheet_history=!1;timesheet_history_list=[];hoveredDate;fromDate;toDate;dpHoveredDate;dpFromDate;dpToDate;range_date=null;uploadTimesheetDocument;timesheet_hours_list=[];timesheet_modal_data=[];indexValue="";totalHrsErrors="";dp_range_date=null;timesheet_detail;timesheetModal;constructor(t,n,o,r,s,c,u,h,v,g,b,f,R,C){this.modalService=t,this.fb=n,this.job=o,this.globals=r,this.errorHandler=s,this.calendar=c,this.formatter=u,this.titleService=h,this.meta=v,this.toastr=g,this.route=b,this.common=f,this.authService=R,this.navigationService=C}open(t,n){this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n||"medium"}`})}ngOnInit(){this.common.isDeletedUser().subscribe(c=>{1==c.ResponseCode&&(this.toastr.info(c.ResponseText),setTimeout(()=>{this.authService.logout()},1e3))}),JSON.parse(localStorage.getItem("CR_PREF")).profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.route):this.job.getdata().subscribe(c=>{if(1==c.ResponseData.is_client_send_video_interview){let u=Number(c.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:u,jobseeker_id:c.ResponseData.jobseeker_id}})}},c=>{this.globals.loading=!1,this.errorHandler.handleError(c)}),this.add_project_form=this.fb.group({project_name:["",ne.k0.required],client_id:[null,ne.k0.required]}),this.addTimesheetForm=this.fb.group({project:[null,ne.k0.required],totalHrs:[null,ne.k0.required],file:[null]}),this.set_week();var n=new Date,o=n.getMonth()+1,r=n.getDate(),s=n.getFullYear();this.maxDate={year:s,month:o,day:r},this.checkProjectAssignmentAndLoad()}set_week(){let t=Be()().startOf("isoWeek"),n=Be()(t).day(7);this.range_date=Be()(t).format("ll")+" - "+Be()(n).format("ll"),this.create_week(t)}create_week(t){this.timesheet_data=[];var n=Be()(t,"ll");for(let o=0;o<7;o++){let r=Be()(n).format("YYYY-MM-DD"),s={date:Be()(n).format("MMM DD"),day:Be()(n).format("ddd"),hours:"00:00",full_date:r,display_hours:null,action:"create",day_type:"R",is_approved:0,index_no:null};n=Be()(n,"ll").add(1,"days"),this.timesheet_data.push(s)}}get_projects_list(){this.job.get_projects_list().subscribe(t=>{if(this.globals.loading=!1,1==t.ResponseCode){let n=t.ResponseData.project_list.projects;this.projects_list=[],n.forEach(o=>{o.display_name=o.company_name+" - "+o.project_name,this.projects_list.push(o)})}},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}get_assign_project_clients_list(){this.globals.loading=!0,this.job.get_assign_project_clients_list().subscribe(t=>
1{this.globals.loading=!1,1==t.ResponseCode&&(t.ResponseData.clients_list.clients.forEach(n=>{this.assign_all_clients_name.push(n.company_name)}),this.assign_clients_list=t.ResponseData.clients_list.clients)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}client_select(){this.set_week(),this.assign_clients_list.forEach(t=>{t.company_name==this.selected_client&&(this.company_name=t.company_name)}),this.get_timesheet_by_client(),this.show_timesheet_history=!1}get_timesheet_by_client(){var t=this;return(0,et.A)(function*(n={}){t.timesheet_time=[],t.show_submit_timesheet_btn=!0,t.timesheet_status=null;let o=n;yield t.assign_clients_list.forEach(s=>{s.company_name==t.selected_client&&(o.client_id=s.company_id,t.clientId=s.company_id)}),t.globals.loading=!0;let r=JSON.parse(JSON.stringify(t.timesheet_data));t.job.get_timesheet_by_client(o).subscribe(function(){var s=(0,et.A)(function*(c){if(t.globals.loading=!1,1==c.ResponseCode){t.clientTimesheetList=[];let u=c.ResponseData.timesheet.holiday_list,h=c.ResponseData.timesheet.timesheet;if(h){let v=yield h.reduce(function(g,b){let f=r;return u.forEach(R=>{let C=f.findIndex(D=>R.start_date==D.full_date);f.hasOwnProperty(C)&&(f[C].day_type="PH")}),b.timesheet_detail.project_hours="00:00",b.hours=JSON.parse(JSON.stringify(f)),b.hours=b.hours,g[b.timesheet_detail.company_id]=g[b.timesheet_detail.company_id]||[],g[b.timesheet_detail.company_id].push(b),g},Object.create(null));for(const g in v)t.clientTimesheetList.push({clientData:v[g]});t.clientTimesheetList.forEach((g,b)=>{let f="00:00";g.clientData.forEach(R=>{t.total_hours_by_project="00:00",R.timesheet_hours.forEach((C,D)=>{R.hours.forEach((x,M)=>{x.full_date==C.date&&(null==C.start_date&&null==C.end_date?(x.hours=C.hours,x.display_hours=C.hours,t.total_hours_by_project=t.sum_of_hours(t.total_hours_by_project,C.hours?C.hours:x.hours),f=t.sum_of_hours(f,C.hours)):(x.hours=C.hours,x.display_hours=C.hours,t.total_hours_by_project=t.sum_of_hours(t.total_hours_by_project,C.hours?C.hours:x.hours),f=t.sum_of_hours(f,C.hours),f=t.sum_of_hours(f,"00:00")),x.start_date=C.start_date,x.end_date=C.end_date,x.is_approved=C.is_approved,x.submitted_at=C.submitted_at,x.action="complete",("00:00"==C.hours||"00:00:00"==C.hours)&&"R"==x.day_type&&(x.day_type="H"))}),R.timesheet_detail.project_hours=t.total_hours_by_project,R.timesheet_detail.project_status=[]})}),g.totalHrs=f}),t.set_project_wise_status(),t.submit_btn_enable_disable()}}});return function(c){return s.apply(this,arguments)}}(),s=>{t.globals.loading=!1,t.errorHandler.handleError(s)})}).apply(this,arguments)}submit_btn_enable_disable(){this.show_submit_timesheet_btn=!0,this.clientTimesheetList.forEach(t=>{t.isDisableSubmitTimesheet=!0,t.clientData.forEach(n=>{let o=[];n.hours.forEach(c=>{if(0==c.is_approved&&null!=c.display_hours&&"00:00"!=c.display_hours&&(this.show_submit_timesheet_btn=!1,t.isDisableSubmitTimesheet=!1),c.display_hours&&0==c.is_approved&&"H"!=c.day_type){let u=new Object;u.date=c.full_date,u.timesheet_detail_id=n.timesheet_detail.timesheet_detail_id,o.push(u)}});let r=n.hours.filter(c=>"PH"==c.day_type||null!=c.display_hours),s=n.hours.filter(c=>null!=c.start_date&&null!=c.end_date);n.disableSubmit=7==r.length&&0==s,0==o.length&&(n.disableSubmit=!1)})}),console.log("wwwwwww",this.clientTimesheetList)}sum_of_hours(t,n){var o=0,r=0;let s=t.split(":"),c=n.split(":");return o=parseInt(s[0])+parseInt(c[0]),o+=(r=parseInt(s[1])+parseInt(c[1]))/60,r%=60,this.convert_into_two_digit(Math.floor(o))+":"+this.convert_into_two_digit(Math.floor(r))}convert_into_two_digit(t){return t>9?""+t:"0"+t}set_project_wise_status(){for(let t=0;t<this.timesheet_hours_list.length;t++){const n=this.timesheet_hours_list[t];let o=n.timesheet_detail,r=[],s={...r};o.project_status=[],n.hours.forEach((c,u)=>{0!=c.is_approved?(s.start_date?s.is_approved==c.is_approved&&s.submitted_at==c.submitted_at?s.end_date=Be()(c.full_date).format("MMM DD"):(o.project_status.push(s),s={...r},s.start_date=Be()(c.full_date).format("MMM DD"),s.is_approved=c.is_approved,s.submitted_at=c.submitted_at):(s.start_date=Be()(c.full_date).format("MMM DD"),s.is_approved=c.is_approved,s.submitted_at=c.submitted_at),n.hours.length-1==u&&(o.project_status.push(s),s={...r})):0!=Object.keys(s).length&&(o.project_status.push(s),s={...r})})}}next_week(){let t=this.range_date.split("-");t[0]=t[0].trim(),t[1]=t[1].trim();let n=new Date(t[1]).toISOString(),o=Be()(n).day(1),r=Be()(o).day(7);this.range_date=Be()(o).format("ll")+" - "+Be()(r).format("ll"),this.create_week(o),this.get_timesheet_by_client({fromDate:Be()(o).format("YYYY-MM-DD"),toDate:Be()(r).format("YYYY-MM-DD")})}prev_week(){let t=this.range_date.split("-");t[0]=t[0].trim(),t[1]=t[1].trim();let n=new Date(t[0]).toISOString(),o=Be()(n).day(-6),r=Be()(o).day(7);this.range_date=Be()(o).format("ll")+" - "+Be()(r).format("ll"),this.create_week(o),this.get_timesheet_by_client({fromDate:Be()(o).format("YYYY-MM-DD"),toDate:Be()(r).format("YYYY-MM-DD")})}add_timesheet_submit(t,n,o){let r=n.split("_"),s=r[0];if(t){let u=this.clientTimesheetList[o].clientData[s].hours[r[1]],h=this.clientTimesheetList[o].clientData[s].timesheet_detail.timesheet_detail_id,v=t.split(":"),g=null;v[1]=null==v[1]?"00":v[1],g=String(v[0]).padStart(2,"0")+":"+String(v[1]).padStart(2,"0"),this.job.add_timesheet_submit({task_info:"Null",timesheet_date:u.full_date,timesheet_hours:g,timesheet_detail_id:h}).subscribe(f=>{1==f.ResponseCode?(this.toastr.success(f.ResponseText),this.modalService.dismissAll(),this.current_week()):this.toastr.error(f.ResponseText)},f=>{this.globals.loading=!1,this.errorHandler.handleError(f)})}}current_week(){let t=this.range_date.split("-");t[0]=t[0].trim(),t[1]=t[1].trim();let n=new Date(t[0]).toISOString(),o=Be()(n),r=Be()(o).day(7);this.range_date=Be()(o).format("ll")+" - "+Be()(r).format("ll"),this.create_week(o),this.get_timesheet_by_client({fromDate:Be()(o).format("YYYY-MM-DD"),toDate:Be()(r).format("YYYY-MM-DD")})}final_timesheet_submit(t){let n=[];if(this.clientTimesheetList[t].clientData.forEach(r=>
1{r.hours.forEach(s=>{if(s.display_hours&&0==s.is_approved){let c=new Object;c.date=s.full_date,c.timesheet_detail_id=r.timesheet_detail.timesheet_detail_id,n.push(c)}})}),0==n.length)return this.toastr.error("Please, fill timesheet"),!1;let o={timesheet:n};this.globals.loading=!0,this.job.final_timesheet_submit(o).subscribe(r=>{this.globals.loading=!1,1==r.ResponseCode&&(this.toastr.success(r.ResponseText),this.current_week())},r=>{this.globals.loading=!1,this.errorHandler.handleError(r)})}uploadTimesheetDocs(t){let n=new Array("doc","docx","pdf","jpg","jpeg","png","gif"),o=t.target.files[0].name.split(".")[1];if(-1==n.indexOf(o))return this.toastr.error("Invalid file type."),t.target.value=null,!1;this.uploadTimesheetDocument=t.target.files[0],t.target.value=null,this.addTimesheetForm.get("file").setErrors(null)}openTimesheetModal(t){this.addTimesheetForm.get("file").setErrors(null),this.addTimesheetForm.reset(),this.dpFromDate=null,this.dpToDate=null,this.dp_range_date=null,this.isShowDateError=!1,this.uploadTimesheetDocument=null,this.timesheetProjects=[],t.forEach(n=>{this.timesheetProjects.push({id:n.timesheet_detail.timesheet_detail_id,name:n.timesheet_detail.project_name})}),this.modalService.open(this.timesheetModal,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"})}isHovered(t){return this.dpFromDate&&!this.dpToDate&&this.dpHoveredDate&&t.after(this.dpFromDate)&&t.before(this.hoveredDate)}isInside(t){return this.dpToDate&&t.after(this.dpFromDate)&&t.before(this.dpToDate)}isRange(t){return t.equals(this.dpFromDate)||this.dpToDate&&t.equals(this.dpToDate)||this.isInside(t)||this.isHovered(t)}onDateSelection(t,n){const o=new Date(t.year+"-"+t.month+"-"+t.day);let r,s;if(1==this.selectedDuration)r=this.getPreviousMonday(o),s=this.getNextSunday(o);else if(2==this.selectedDuration){r=this.getPreviousMonday(o);const R=Be()(t.year+"-"+t.month+"-"+t.day,"YYYY-MM-DD").add(1,"weeks").day(0);R.add(7,"days"),s=new Date(R.format("YYYY-MM-DD"))}else if(3==this.selectedDuration){r=this.getPreviousMonday(o);const R=Be()(t.year+"-"+t.month+"-"+t.day,"YYYY-MM-DD").add(1,"weeks").day(0);R.add(14,"days"),s=new Date(R.format("YYYY-MM-DD"))}else if(4==this.selectedDuration){const f=Be()(o,"YYYY-MM-DD");r=new Date(f.startOf("month").format("YYYY-MM-DD")),s=new Date(f.endOf("month").format("YYYY-MM-DD"))}let c=this.getDaysDifference(r,o),u=this.getDaysDifference(s,o);this.dpFromDate=this.calendar.getPrev(t,"d",c),this.dpToDate=this.calendar.getNext(t,"d",u);let v=(n._parserFormatter.format(this.dpFromDate)+" - "+n._parserFormatter.format(this.dpToDate)).split(" - "),g=Be()(v[0]).format("YYYY-MM-DD"),b=Be()(v[1]).format("YYYY-MM-DD");this.dp_range_date=g+" - "+b,this.isShowDateError=!1}getPreviousMonday(t){const n=new Date(t);for(;1!==n.getDay();)n.setDate(n.getDate()-1);return n}getNextSunday(t){const n=new Date(t);for(;0!==n.getDay();)n.setDate(n.getDate()+1);return n}getDaysDifference(t,n){return Math.round(Math.abs((t.getTime()-n.getTime())/864e5))}validateInput(t,n){const o=this.formatter.parse(n);return o&&this.calendar.isValid(Ue.gj.from(o))?Ue.gj.from(o):t}filter_remove(t,n=null){"date"==t&&(this.dpFromDate=null,this.dpToDate=null,this.dp_range_date=null)}numberOnly(t){const n=t.target.value;!/^[0-9:]$/.test(t.key)&&"Backspace"!==t.key&&t.preventDefault(),/^[0-9:]*$/.test(n)||t.preventDefault()}addTimesheetData(){if(this.isShowDateError=!1,this.addTimesheetForm.get("totalHrs").value>800)return this.totalHrsErrors=" Maximum can be hours 800.",!1;if(this.totalHrsErrors="",(!this.dpFromDate||!this.dpToDate)&&(this.isShowDateError=!0),null==this.addTimesheetForm.get("file").value&&this.addTimesheetForm.get("file").setErrors({isRequired:!0}
1),this.addTimesheetForm.invalid&&this.addTimesheetForm.markAllAsTouched(),!this.dpFromDate||!this.dpToDate||this.addTimesheetForm.invalid||null==this.addTimesheetForm.get("file").value)return!1;this.globals.loading=!0;let t=[];const n=new Date(this.dpFromDate.year+"-"+this.dpFromDate.month+"-"+this.dpFromDate.day);for(n.setHours(0,0,0,0);n<=new Date(this.dpToDate.year+"-"+this.dpToDate.month+"-"+this.dpToDate.day);)t.push(Be()(n).format("YYYY-MM-DD")),n.setDate(n.getDate()+1);let o=new FormData;o.append("total_hours",this.addTimesheetForm.get("totalHrs").value.includes(":")?this.addTimesheetForm.get("totalHrs").value:this.addTimesheetForm.get("totalHrs").value+":00");for(let r of t)o.append("date_array[]",r);o.append("start_date",this.dpFromDate.year+"-"+this.dpFromDate.month+"-"+this.dpFromDate.day),o.append("end_date",this.dpToDate.year+"-"+this.dpToDate.month+"-"+this.dpToDate.day),o.append("timesheet_detail_id",this.addTimesheetForm.get("project").value),o.append("document",this.uploadTimesheetDocument),this.job.final_timesheet_submit(o).subscribe(r=>{this.globals.loading=!1,1==r.ResponseCode&&(this.toastr.success(r.ResponseText),this.current_week(),this.modalService.dismissAll())},r=>{this.globals.loading=!1,this.errorHandler.handleError(r)})}checkProjectAssignmentAndLoad(){this.globals.loading=!0,this.job.get_assign_project_clients_list().subscribe(t=>{if(this.globals.loading=!1,1==t.ResponseCode){const n=t.ResponseData?.clients_list?.clients;n&&Array.isArray(n)&&n.length>0?(this.assign_clients_list=n,n.forEach(o=>{this.assign_all_clients_name.push(o.company_name)}),this.get_timesheet_by_client()):(this.toastr.info("No project assigned yet. Please wait for a project to be assigned."),this.navigationService.navigate("jobseeker/my-jobs",this.route))}else this.toastr.info("No project assigned yet. Please wait for a project to be assigned."),this.navigationService.navigate("jobseeker/my-jobs",this.route)},t=>{this.globals.loading=!1,this.toastr.info("Unable to check project assignment. Redirecting to My Jobs."),this.navigationService.navigate("jobseeker/my-jobs",this.route),this.errorHandler.handleError(t)})}static \u0275fac=function(n){return new(n||i)(e.rXU(Ue.Bq),e.rXU(ne.ok),e.rXU(Yi.m),e.rXU(Qt.E),e.rXU(ji.c),e.rXU(Ue.iF),e.rXU(Ue.tN),e.rXU(Wi.hE),e.rXU(Wi.W8),e.rXU(Ut.tw),e.rXU(Ve.nX),e.rXU(ni.h),e.rXU(Oi.u),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-timesheets"]],viewQuery:function(n,o){if(1&n&&(e.GBs(Mm,5),e.GBs(Om,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.timesheet_detail=r.first),e.mGM(r=e.lsd())&&(o.timesheetModal=r.first)}},standalone:!0,features:[e.aNF],decls:22,vars:7,consts:[["addDescriptionModal",""],["t
1imesheetModal",""],["ts",""],["selectDropdown",""],["datepicker","ngbDatepicker"],["t",""],["footerTemplate",""],["dFromDate",""],["dToDate",""],[3,"loading"],[1,"main-content-wrap","timesheets-page","cr-body-sm"],["aria-label","breadcrumb",1,"sticky-breadcrumbs"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","javascript:void(0)",3,"countryRouterLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"timesheet-container"],[1,"timesheet-head-bar"],[1,"row","justify-content-between"],[1,"col-lg-2","col-6"],[1,"col-12","d-flex"],["href","javascript:void(0)",1,"cr-btn","cr-btn-blue","ml-auto","d-flex","align-items-center",3,"countryRouterLink"],["style","margin-top: 200px",4,"ngIf"],[4,"ngIf"],[2,"margin-top","200px"],[1,"cr-chat","d-flex","align-items-center","justify-content-center",2,"height","100%"],[1,"text-center"],[1,"cr-chat-noting-img","mb-4"],["src","../../../../assets/images/icons/empty.svg","alt","empty"],[1,"mb-3","fw-600"],[1,"mx-auto","pb-0","cr-chat-noting-description","fw-500","color-gray-2"],["class","cr-card mb-3",4,"ngFor","ngForOf"],[1,"cr-card","mb-3"],[1,"d-flex","justify-content-between","align-items-center","flex-wrap","p-5","gap-10"],[1,"h1","fw-600","mb-lg-0","mb-0"],[1,"d-flex","align-items-center","flex-wrap","leave-status-flex","gap-10"],[1,"timesheet-legends"],[1,"ts-legend"],[1,"legend-colorbox","colorbox-red"],[1,"fw-600"],[1,"legend-colorbox","colorbox-yellow"],[1,"d-flex","align-items-center"],[1,"cr-btn-square",3,"click"],[1,"material-icons-outlined"],[1,"h3","mb-0","mx-3"],[1,"timesheet-table-wrapper"],[1,"timesheet-table","w-100"],[1,"pl-5"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end","p-5"],[1,"d-flex","flex-column"],[1,"cr-btn","cr-btn-blue","cr-btn-md",3,"click"],[1,"ts-project-title","pl-5"],[1,"cr-btn","cr-btn-blue","cr-btn-sm",2,"margin-left","25px",3,"click","disabled"],["ngbDropdown","",1,"d-inline-block","w-100",3,"autoClose","placement","display"],["id","timeslotSelectDropdown","ngbDropdownToggle","",1,"timeslot-dropdown-btn","no-arrow","cr-btn",3,"click","ngClass"],["class","input-group mb-0 d-block",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","timeslotSelectDropdown",1,"timeslot-dropdown"],[1,"p-4"],[1,"cr-input-wrap","mb-3"],["id","timeslotInput","type","text","name","timeslotInput","placeholder","HH : MM","mask","00:00","maxlength","5","autofocus","",1,"cr-form-control","control-small","p-2","text-center","color-dark","fw-600"],[1,"dropdown-divider","my-3"],["type","button",1,"cr-btn","cr-btn-blue","d-block","w-100","mt-4",3,"click","disabled"],[1,"input-group","mb-0","d-block"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-auto",3,"click"],[1,"modal-body","d-flex","justify-content-center"],[1,"cr-input-wrap"],["name","descInput","id","descInput","rows","10","placeholder","Description",1,"cr-form-control"],[1,"modal-footer","d-flex","justify-content-end","p-5"],[1,"cr-btn","cr-btn-blue","mt-0"],[1,"modal-body","add-time-sheet-modal",3,"formGroup"],["bindLabel","name","bindValue","id","placeholder","Select Project","appendTo","body","formControlName","project",1,"cr-select","control-medium","mb-0",3,"clearable","searchable","items"],["class","control-error",4,"ngIf"],[1,"date-picker-wrapper","mb-5"],[1,"row","row-cols-sm-auto"],[1,"col-12"],[1,"dp-hidden","position-relative"],[1,"input-group","border-0",2,"padding","0"],["name","datepicker","ngbDatepicker","","tabindex","-1",1,"form-control",3,"dateSelect","autoClose","displayMonths","dayTemplate","startDate","footerTemplate"],[1,"input-group"],["placeholder","Select Date","name","dpFromDate",1,"form-control",3,"input","value"],["type","button",1,"btn","btn-outline-secondary","bi","bi-calendar3",3,"click"],["class","material-icons-outlined","style","\n                  position: absolute;\n                  right: 11px;\n                  font-size: 14px;\n                  cursor: pointer;\n                  top: 19px;\n                  color: #999;\n                ",3,"click",4,"ngIf"],[1,"col-12","d-none"],["placeholder","yyyy-mm-dd","name","dToDate",1,"form-control","d-none",3,"input","value"],[1,"cr-form-input","mb-5"],["type","text","placeholder","Enter Total Hours","formControlName","totalHrs",1,"cr-form-control","control-medium",3,"keypress"],["class","mb-2 d-flex align-items-center",4,"ngIf"],[1,"custom-file-upload-btn"],["id","addDrivingLicense","type","file","formControlName","file",3,"change"],["for","addDrivingLicense",1,"cr-btn","cr-btn-flushed","mb-0"],[1,"cr-btn","cr-btn-blue","mt-0",3,"click"],[1,"control-error"],["class","err-container",4,"ngIf"],[1,"err-container"],[1,"material-icons","control-error-icon"],[1,"custom-day",3,"mouseenter","mouseleave"],[1,"d-flex","justify-content-between","px-3","mt-2"],[1,"cr-status","bg-teal-blue","mb-3","mr-1",2,"font-weight","400","border","none","padding","6px 14px",3,"click"],["bindLabel","name","bindValue","id","placeholder","One Month","appendTo","body",1,"cr-select","control-small",3,"ngModelChange","items","ngModel","ngModelOptions","searchable","clearable"],[1,"material-icons-outlined",2,"position","absolute","right","11px","font-size","14px","cursor","pointer","top","19px","color","#999",3,"click"],[1,"mb-2","d-flex","align-items-center"],[1,"cr-btn-flushed","ml-4","ng-star-inserted","mb-0","d-flex","align-items-center"],[1,"color-teal-green","material-icons"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",9),e.j41(1,"div",10)(2,"nav",11)(3,"ol",12)(4,"li",13)(5,"a",14),e.EFF(6,"Home"),e.k0s()(),e.j41(7,"li",15),e.EFF(8,"Timesheets"),e.k0s()()(),e.j41(9,"div",16)(10,"div",17)(11,"div",18),e.nrm(12,"div",19),e.j41(13,"div",20)(14,"a",21),e.EFF(15," History "),e.k0s()()()(),e.DNE(16,Vm,9,0,"div",22)(17,zm,2,1,"ng-container",23),e.k0s(),e.DNE(18,Hm,10,0,"ng-template",null,0,e.C5r)(20,lg,43,17,"ng-template",null,1,e.C5r),e.k0s()),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(5),e.Y8G("countryRouterLink",e.lJ4(5,Am)),e.R7$(9),e.Y8G("countryRouterLink",e.lJ4(6,Gm)),e.R7$(2),e.Y8G("ngIf",0==(null==o.clientTimesheetList?null:o.clientTimesheetList.length)),e.R7$(),e.Y8G("ngIf",!o.show_timesheet_history))},dependencies:[qe.MD,qe.YU,qe.Sq,qe.bT,qe.PV,$i.MQ,$i.vr,ne.YN,ne.qT,ne.me,ne.BC,ne.cb,ne.vS,ne.cV,Ue.IQ,Ue.cw,Ue.zH,Ue.tg,Ue.do,Ue.U0,di.N,Ve.iI,ne.X1,ne.j4,ne.JD,Dn.Zr,Ut._B,Fn.l],styles:[".timesheet-
1default[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:50px;max-width:400px;margin:0 auto}.client-select-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100px;height:100px;flex-shrink:0;font-size:40px}.timesheet-head-bar[_ngcontent-%COMP%]{margin-bottom:20px}.timesheet-legends[_ngcontent-%COMP%]{display:flex;align-items:center}.timesheet-legends[_ngcontent-%COMP%]   .ts-legend[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:15px}.legend-colorbox[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:3px;margin-right:8px}.legend-colorbox.colorbox-red[_ngcontent-%COMP%]{background-color:var(--cr-red)}.legend-colorbox.colorbox-yellow[_ngcontent-%COMP%]{background-color:var(--cr-yellow)}.timesheet-table-wrapper[_ngcontent-%COMP%]{overflow-x:auto;width:100%}.timesheet-table[_ngcontent-%COMP%]{width:100%}.timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:5px;font-size:14px;font-weight:600;min-width:160px}.timesheet-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:12px;padding:10px 5px;background-color:var(--cr-gray-tint-5);text-transform:uppercase;font-weight:600}.timesheet-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:not(:first-child), .timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:first-child){text-align:center}.timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-7)}.ts-project-title[_ngcontent-%COMP%]{width:350px}.timeslot-dropdown[_ngcontent-%COMP%]{width:180px;border-radius:15px;padding:0}.timeslot-dropdown-btn[_ngcontent-%COMP%]{border:2px dashed var(--cr-gray-tint-5);padding:15px;border-radius:4px;font-size:14px;color:var(--cr-gray-tint-2);font-weight:600;text-align:center;cursor:pointer;width:100%}.timeslot-dropdown-btn.disabled[_ngcontent-%COMP%]{pointer-events:none;background-color:var(--cr-gray-tint-6)!important;border-color:var(--cr-gray-tint-6);color:var(--cr-gray-tint-2)!important}.timeslot-leave[_ngcontent-%COMP%]{border-style:solid;border-color:var(--cr-red);background-color:var(--cr-red);color:var(--pure-black)}.timeslot_holiday[_ngcontent-%COMP%]{border-style:solid;border-color:var(--cr-yellow);background-color:var(--cr-yellow);color:var(--pure-black)}.holiday[_ngcontent-%COMP%]{border-style:solid;border-color:var(--cr-red);background-color:var(--cr-red);color:var(--pure-black)}.date-picker-wrapper[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{width:100%;border:2px solid var(--cr-gray-tint-6);border-radius:13px;padding:10px 25px;transition:.3s all;background-color:#fff}.dp-hidden[_ngcontent-%COMP%]{width:0;margin:0;border:none;padding:0}.custom-day[_ngcontent-%COMP%]{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused[_ngcontent-%COMP%]{background-color:#e6e6e6}.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover{background-color:var(--cr-teal-blue);color:#fff}.custom-day.faded[_ngcontent-%COMP%]{background-color:var(--cr-teal-blue)}.date-picker-wrapper[_ngcontent-%COMP%]   input.form-control[_ngcontent-%COMP%], .date-picker-wrapper[_ngcontent-%COMP%]   textarea.form-control[_ngcontent-%COMP%]{padding:0;border-radius:0;border:0;transition:.15s ease-in-out}.cr-chat-noting-img[_ngcontent-%COMP%]{width:76px;height:76px;margin:0 auto}.cr-chat-noting-img[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .cr-chat-noting-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.cr-chat-noting-description[_ngcontent-%COMP%]{max-width:390px}@media screen and (max-width: 1799px){.timesheet-table-wrapper[_ngcontent-%COMP%]   .timesheet-table[_ngcontent-%COMP%]{margin-bottom:15px}}@media screen and (max-width: 1366px){.timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{min-width:140px}.timeslot-dropdown-btn[_ngcontent-%COMP%]{padding:12px}.timesheet-table-wrapper[_ngcontent-%COMP%]   .timesheet-table[_ngcontent-%COMP%]{margin-bottom:12px}}@media screen and (max-width: 991px){.leave-status-flex[_ngcontent-%COMP%]{width:100%;justify-content:space-between}}@media screen and (max-width: 767px){.timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .timesheet-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{min-width:140px}.timeslot-dropdown-btn[_ngcontent-%COMP%]{padding:12px}.timesheet-table-wrapper[_ngcontent-%COMP%]   .timesheet-table[_ngcontent-%COMP%]{margin-bottom:10px}}@media screen and (max-width: 575px){.timesheet-table-wrapper[_ngcontent-%COMP%]   .timesheet-table[_ngcontent-%COMP%]{margin-bottom:8px}
1.timesheet-head-bar[_ngcontent-%COMP%]{overflow:hidden}}"]})}return i})();const dg=["mainScreen"],ug=["description"],pg=["jobTitle"],_g=["location"],hg=["checkFulltimeVal"],fg=["checkParttimeVal"],mg=["checkRemoteVal"],gg=["checkontractVal"],vg=["skillModal"],bg=["avaliability"],yg=()=>["(regions)"],kg=i=>({country:i}),wg=(i,a)=>({types:i,componentRestrictions:a}),xg=(i,a,t)=>({itemsPerPage:i,currentPage:a,totalItems:t}),sd=i=>["jobseeker","job-details",i];function Cg(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.clearSearchInput())}),e.j41(1,"span",28),e.EFF(2,"close"),e.k0s()()}}function jg(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.clearLocationInput())}),e.j41(1,"span",28),e.EFF(2,"close"),e.k0s()()}}function Fg(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",36)(1,"input",64),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.isOffshoreChange(o))}),e.k0s(),e.j41(2,"label",65),e.EFF(3," Offshore "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("checked",t.isOffshore)}}function Sg(i,a){if(1&i&&(e.j41(0,"button",85),e.EFF(1," Apply "),e.k0s()),2&i){const t=e.XpG().$implicit;e.Y8G("countryRouterLink",e.eq3(1,sd,t.job_id))}}function Eg(i,a){1&i&&(e.j41(0,"button",86),e.EFF(1," Applied "),e.k0s())}function Rg(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",87),e.bIt("click",function(){e.eBV(t);const o=e.XpG(),r=o.$implicit,s=o.index,c=e.XpG(2);return e.Njj(c.make_fav(r.job_id,!0,s))}),e.EFF(1," star_border "),e.k0s()}}function Tg(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",88),e.bIt("click",function(){e.eBV(t);const o=e.XpG(),r=o.$implicit,s=o.index,c=e.XpG(2);return e.Njj(c.make_fav(r.job_id,!1,s))}),e.EFF(1," star "),e.k0s()}}function Ig(i,a){1&i&&(e.j41(0,"span",77),e.EFF(1," - Remote"),e.k0s())}function Dg(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.job_desc.replace("/<[^> ]*>/g","").slice(0,70)," ")}}function Pg(i,a){if(1&i&&e.nrm(0,"span",89),2&i){const t=e.XpG().$implicit;e.Y8G("innerHtml",t.job_desc,e.npT)}}function Ng(i,a){if(1&i){const t=e.RV6();e.j41(0,"a",90),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(2),s=e.sdS(91);return e.Njj(r.open(s,"small",o))}),e.EFF(1," See More..."),e.k0s()}}function Mg(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",92),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function Og(i,a){if(1&i&&(e.j41(0,"div",91),e.DNE(1,Mg,3,1,"ng-container",69),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.skills)}}function Ag(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",92),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function Gg(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",91),e.DNE(1,Ag,3,1,"ng-container",69),e.j41(2,"a",90),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.openSkillModal(o.skills))}),e.EFF(3," View More..."),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.skills.slice(0,2))}}function Lg(i,a){if(1&i&&(e.j41(0,"tr")(1,"td",67),e.DNE(2,Sg,2,3,"button",70)(3,Eg,2,0,"button",71),e.k0s(),e.j41(4,"td")(5,"div",72),e.DNE(6,Rg,2,0,"button",73)(7,Tg,2,0,"button",74),e.j41(8,"div",75)(9,"a",76),e.EFF(10),e.k0s(),e.j41(11,"span",77),e.EFF(12),e.DNE(13,Ig,2,0,"span",78),e.k0s()()()(),e.j41(14,"td"),e.EFF(15),e.k0s(),e.j41(16,"td"),e.EFF(17),e.k0s(),e.j41(18,"td")(19,"div",79),e.nrm(20,"circle-progress",80),e.k0s()(),e.j41(21,"td"),e.EFF(22),e.k0s(),e.j41(23,"td"),e.DNE(24,Dg,2,1,"span",81)(25,Pg,1,1,"span",82)(26,Ng,2,0,"a",83),e.k0s(),e.j41(27,"td"),e.DNE(28,Og,2,1,"div",84)(29,Gg,4,1,"div",84),e.k0s()()),2&i){const t=a.$implicit;e.R7$(2),e.Y8G("ngIf",0===t.is_applied),e.R7$(),e.Y8G("ngIf",1===t.is_applied),e.R7$(3),e.Y8G("ngIf",0==t.fav),e.R7$(),e.Y8G("ngIf",1==t.fav),e.R7$(2),e.Y8G("countryRouterLink",e.eq3(20,sd,t.job_id)),e.R7$(),e.Lme("(",t.job_id,") ",t.job_title,""),e.R7$(2),e.SpI("",null==t?null:t.job_availability," "),e.R7$(),e.Y8G("ngIf","true"==(null==t?null:t.is_remote)),e.R7$(2),e.JRh(t.date),e.R7$(2),e.JRh(t.jobpost_location),e.R7$(3),e.Y8G("percent",null==t?null:t.skill_matched)("animation",!0)("animationDuration",700),e.R7$(2),e.JRh(null==t?null:t.company_name),e.R7$(2),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>70),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length<70),e.R7$(),e.Y8G("ngIf",t.job_desc.replace("/<[^>]*>/g","").length>70),e.R7$(2),e.Y8G("ngIf",(null==t.skills?null:t.skills.length)<=2),e.R7$(),e.Y8G("ngIf",(null==t.skills?null:t.skills.length)>2)}}function qg(i,a){if(1&i&&(e.qex(0),e.j41(1,"table",66)(2,"thead")(3,"tr")(4,"th",67),e.EFF(5," Action"),e.nrm(6,"span",68),e.k0s(),e.j41(7,"th"),e.EFF(8,"Job Title"),e.nrm(9,"span",68),e.k0s(),e.j41(10,"th"),e.EFF(11,"Posted On"),e.nrm(12,"span",68),e.k0s(),e.j41(13,"th"),e.EFF(14,"Location"),e.nrm(15,"span",68),e.k0s(),e.j41(16,"th"),e.EFF(17,"Matched"),e.nrm(18,"span",68),e.k0s(),e.j41(19,"th"),e.EFF(20,"Client"),e.nrm(21,"span",68),e.k0s(),e.j41(22,"th"),e.EFF(23,"Description"),e.nrm(24,"span",68),e.k0s(),e.j41(25,"th"),e.EFF(26,"Skills"),e.nrm(27,"span",68),e.k0s()()(),e.j41(28,"tbody"),e.DNE(29,Lg,30,22,"tr",69),e.nI1(30,"paginate"),e.k0s()(),e.bVm()),2&i){const t=e.XpG();e.R7$(),e.Y8G("dtOptions",t.dtOptions),e.R7$(28),e.Y8G("ngForOf",e.i5U(30,2,t.jobData,e.sMw(5,xg,t.per_page,t.page,t.total)))}}function Vg(i,a){if(1&i){const t=e.RV6();e.j41(0,"pagination-controls",93),e.bIt("pageChange",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.getPage(o))}),e.k0s()}}function Bg(i,a){1&i&&(e.j41(0,"div",94),e.nrm(1,"app-loading-spinner",10),e.k0s()),2&i&&(e.R7$(),e.Y8G("loading",!0))}function $g(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",95)(1,"h3",96),e.EFF(2,"Job Description"),e.k0s(),e.j41(3,"button",97),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()(),e.j41(4,"div",98)(5,"div",99)(6,"label",100),e.EFF(7,"Job Title"),e.k0s(),e.j41(8,"h3",101),e.EFF(9),e.k0s()(),e.j41(10,"div")(11,"label",102),e.EFF(12,"Job Description"),e.k0s(),e.nrm(13,"p",103),e.k0s()(),e.j41(14,"div",104)(15,"button",105),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.EFF(16,"Close"),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(9),e.SpI(" ",t.descriptionModalData.job_title," "),e.R7$(4),e.Y8G("innerHtml",t.descriptionModalData.job_desc,e.npT)}}function Yg(i,a){if(1&i&&(e.qex(0),e.j41(1,"div",109),e.EFF(2),e.k0s(),e.bVm()),2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.skill_name," ")}}function Jg(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",95)(1,"h3",106),e.EFF(2,"Skills"),e.k0s(),e.j41(3,"button",107),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",108)(5,"div",91),e.DNE(6,Yg,3,1,"ng-container",69),e.k0s()()}if(2&i){const t=e.XpG();
1e.R7$(6),e.Y8G("ngForOf",t.jobseekerSkill)}}let Ug=(()=>{class i{fb;job;toastr;route;location;common;globals;errorHandler;authService;modalService;titleService;meta;countryLocalizeService;navigationService;dtOptions={};dtTrigger;country;filterSidebar=!1;sliderValue=100;sliderOptions={floor:0,ceil:100,showSelectionBar:!0};isCollapsed=!0;_skills="";_location="";_jobtitle="";allskills=[];kmGroup;FilterGroup;htmlStr="";selectedAvaliability=[];upcoming_interview=[];sort_by="DESC";post_date=1;latitude="";longitude="";location_radious=30;location_km=30;viewHeight;selected_filter_job_skill=[];_global_search="";descriptionModalData;jobseekerSkill=[];isOffshore=!1;avaliability;elementView;description;jobTitleInput;locationInput;checkFulltimeVal;checkParttimeVal;checkRemoteVal;checkontractVal;skillModal;avaliability_arr=[{id:1,name:"Full time"},{id:2,name:"Part time"},{id:3,name:"Remote"},{id:4,name:"Contract"}];date_arr=[{id:1,name:"Any Date"},{id:2,name:"Today"},{id:3,name:"Last 3 days"},{id:4,name:"Last 7 days"}];sort_arr=[{id:"ASC",name:"Ascending"},{id:"DESC",name:"Descending"}];jobData=[];skill_arr=[];total;page=1;per_page=12;filter_obj_skill=[];filter_obj_availability={};jobseekers_skill_arr;is_based_on_skill=!1;slider_options={floor:0,ceil:100};applied=0;location_search=!1;is_progress=!1;isShowTableData=!1;showJobTable=!1;is_not_cleared=1;constructor(t,n,o,r,s,c,u,h,v,g,b,f,R,C){this.fb=t,this.job=n,this.toastr=o,this.route=r,this.location=s,this.common=c,this.globals=u,this.errorHandler=h,this.authService=v,this.modalService=g,this.titleService=b,this.meta=f,this.countryLocalizeService=R,this.navigationService=C,this.country=this.countryLocalizeService.getCountryCode(),this.createForm(),this.globals.is_login&&this.get_upcoming_interview();const D=JSON.parse(localStorage.getItem("CR_PREF"));D&&D.profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.route):D&&this.job.getdata().subscribe(x=>{if(1==x.ResponseData.is_client_send_video_interview){let M=Number(x.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:M,jobseeker_id:x.ResponseData.jobseeker_id}})}},x=>{this.globals.loading=!1,this.errorHandler.handleError(x)})}ngOnInit(){if(this.restoreFromQueryParams(),this.GetSkills(),this.common.isDeletedUser().subscribe(o=>{console.log(o),1==o.ResponseCode&&(this.toastr.info(o.ResponseText),setTimeout(()=>{this.authService.logout()},1e3))}),this.dtOptions={info:!1,searching:!1,paging:!1,order:[[2,"desc"]],language:{emptyTable:"No Record Found"},columnDefs:[{targets:"no-sort",orderable:!1},{targets:2,type:"date"}],columns:[{title:"Action",orderable:!1},{title:"Job Title",orderable:!0},{title:"Posted On",orderable:!0},{title:"Location",orderable:!0},{title:"Matched",orderable:!0},{title:"Client",orderable:!0},{title:"Description",orderable:!1},{title:"Skills",orderable:!1}]},this.checkVar(this._skills))this.skill_arr=this._skills.split(";;"),this.FilterGroup.get("filter_skill").setValue(this.skill_arr),this.hideshow_skills();else if(this.globals.is_jobseeker_login&&this.globals.is_login){var t=JSON.parse(localStorage.getItem("CR_PREF"));if(""!=t.skills){let o=Array.isArray(t.skills)?t.skills:Object.keys(t.skills);this.skill_arr=o,this._skills=o.join(";;"),this.jobseekers_skill_arr=this._skills,this.FilterGroup.get("filter_skill").setValue(this.skill_arr),this.hideshow_skills(),this.is_based_on_skill=!0}}this.filter_obj_skill=this.skill_arr,this.filter_obj_availability=this.selectedAvaliability;let n=setInterval(()=>{0!=this.allskills.length&&(new Promise((r,s)=>{r(this.find_search_is_skill({search_text:this._global_search}))}).then(r=>{if(r){let s=r.skill_name;if(s){this.skill_arr=[],this._global_search="";let c=JSON.parse(JSON.stringify(this.skill_arr));c.push(s.skill_name),this._skills=s,this._jobtitle="",this.FilterGroup.get("filter_skill").setValue(c),this.hideshow_skills(),this.GetData()}}}),clearInterval(n))},1e3);this.getPage(this.page)}getPage(t){this.page=t,this.GetData()}GetSkills(){this.common.GetSkills().subscribe({next:t=>this.allskills=t.ResponseData.data||[],error:t=>this.errorHandler.handleError(t)})}checkVar(t){return!(null==typeof t||null==t||"null"==t||null===t||"null"===t||""==t)}ngAfterViewInit(){this.restoreSearchInput()}open(t,n,o){console.log(o),this.descriptionModalData=o,this.modalService.open(t,{centered:!0,scrollable:!0,windowClass:`cr-custom-modal modal-${n||"medium"}`})}toggleFilterSidebar(){this.filterSidebar=!this.filterSidebar}createForm(){this.FilterGroup=this.fb.group({filter_skill:[[]],availability:[""],avaliability:new ne.Yp([]),sort_by:[this.sort_by]}),this.kmGroup=this.fb.group({location_km:[this.location_radious]})}hideshow_skills(){let t=setTimeout(()=>{$(".filter-sidebar .ng-select-container").removeClass("ng-has-value"),$(".filter-sidebar .ng-value").remove(),clearTimeout(t)},20);this.FilterGroup.get("filter_skill").value&&0==this.FilterGroup.get("filter_skill").value.length&&this.FilterGroup.get("filter_skill").setValue(null)}make_fav(t,n,o){console.log(o),this.job.favorite_unfavorite({job:t,o
1p:n}).subscribe(s=>{1==s.ResponseCode&&(this.toastr.success(s.ResponseText),console.log(this.jobData),this.jobData[o].fav=0==n?0:1,this.GetData())},s=>{console.log(s)})}find_search_is_skill(t){return new Promise((n,o)=>{try{n(this.allskills.find(s=>{if(s.hasOwnProperty("skill_name")&&t.hasOwnProperty("search_text"))return s.skill_name.toLowerCase().trim()==t.search_text.toLowerCase().trim()}))}catch{n("")}})}GetData(){this.globals.loading=!0,this.showJobTable=!1,this.is_progress=!0,this.location_search=!!this.checkVar(this._location),this.location_km=this.location_radious;const t={search_text:this._global_search,skill:"",location:this.checkVar(this._location)?this._location:"",jobtitle:this.checkVar(this._jobtitle)?this._jobtitle:"",selectedAvaliability:this.selectedAvaliability,sort:this.sort_by,postDate:this.post_date,page:this.page,latitude:this.latitude,longitude:this.longitude,radious:this.location_radious,km:this.location_km};"in"===this.country&&(t.offshore=this.isOffshore?1:0),console.log("req",t),this.job.get_filtered_data(t).subscribe(n=>{console.log("API Response:",n),this.globals.loading=!1,this.showJobTable=!0,this.is_progress=!1,n&&1==n.Flag&&n.Data&&n.Data.jobs?(this.jobData=n.Data.jobs.data||[],this.total=n.Data.jobs.total||0,this.applied=n.Data.applied||0,console.log("Job data loaded:",this.jobData.length,"jobs")):(this.jobData=[],this.total=0,this.applied=0),Array.isArray(this.jobData)||(this.jobData=[]),this.updateUrl(t)},n=>{this.globals.loading=!1,this.is_progress=!1,this.showJobTable=!0,this.errorHandler.handleError(n)})}openSkillModal(t){console.log(t),this.jobseekerSkill=t,this.modalService.open(this.skillModal,{centered:!0,windowClass:"cr-custom-modal modal-small"})}data(t){""==t.target.value&&(console.log(this.jobData),console.log("blank"),"location"===t.target.name?(this._location="",this.latitude="",this.longitude=""):(this._global_search="",this._jobtitle=""),this.GetData())}get_upcoming_interview(){this.job.get_upcoming_interview().subscribe(t=>{1==t.ResponseCode&&(this.upcoming_interview=t.ResponseData.Data)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}avaliabilityChange(t,n){t.target.checked?this.selectedAvaliability.includes(n)||this.selectedAvaliability.push(n):this.selectedAvaliability=this.selectedAvaliability.filter(o=>o!==n),this.page=1,this.GetData()}isOffshoreChange(t){this.isOffshore=t.target.checked,this.page=1,this.GetData()}searchBar(t){const n=t?.target?.value||"";this._global_search=n,this._jobtitle=n,this.page=1,this.GetData()}searchJob(t){const n="string"==typeof t?t.trim():"string"==typeof t?.target?.value?t.target.value.trim():"";this._global_search=n,this._jobtitle=n,this.page=1,this.GetData()}handleAddressChange(t){this._location=t.formatted_address||"",this.latitude=t.geometry?.location?.lat()?.toString()||"",this.longitude=t.geometry?.location?.lng()?.toString()||"",this.page=1,this.GetData()}clearSearchInput(){this.jobTitleInput&&(this.jobTitleInput.nativeElement.value=""),this._global_search="",this._jobtitle="",this.GetData()}dateChange(t,n){t.target.checked&&(this.page=1,this.post_date=n),this.GetData()}restoreFromQueryParams(){const t=this.route.snapshot.queryParamMap;this._global_search=t.get("search_text")||"",this._jobtitle=t.get("jobtitle")||"",this._location=t.get("location")||"",this.sort_by=t.get("sort")||"DESC";const n=t.get("selectedAvaliability");if(this.selectedAvaliability=n?n.split(",").map(Number).filter(o=>!isNaN(o)):[],this.post_date=Number(t.get("postDate")||1),this.page=Number(t.get("page")||1),this.post_date){const o=String(this.post_date);setTimeout(()=>{document.querySelectorAll('input[name="postedDate"]').forEach(s=>{const c=s.getAttribute("id");let u="";"anyDate"===c?u="1":"postedDate"===c?u="2":"threeDays"===c?u="3":"sevenDays"===c&&(u="4"),s.checked=u===o})},0)}}clearAllVal(){this.selectedAvaliability=[],this.post_date=1,this.page=1,setTimeout(()=>{document.querySelectorAll('input[name="postedDate"]').forEach(n=>{n.checked="anyDate"===n.getAttribute("id")})},0),this.GetData()}restoreSearchInput(){this.jobTitleInput&&(this._global_search||this._jobtitle)&&(this.jobTitleInput.nativeElement.value=this._global_search||this._jobtitle),this.locationInput&&this._location&&(this.locationInput.nativeElement.value=this._location)}updateUrl(t){if(!t||null===t||"object"!=typeof t||Array.isArray(t))return;const n={};Object.keys(t).forEach(o=>{const r=t[o];Array.isArray(r)?r.length&&(n[o]=r.join(",")):null!=r&&""!==r&&(n[o]=String(r))}),this.navigationService.navigate("jobseeker/search-jobs",this.route,{queryParams:n,replaceUrl:!0})}clearLocationInput(){this.locationInput&&(this.locationInput.nativeElement.value=""),this._location="",this.latitude="",this.longitude="",this.GetData()}goBack(){this.location.back()}static \u0275fac=function(n){return new(n||i)(e.rXU(ne.ok),e.rXU(Yi.m),e.rXU(Ut.tw),e.rXU(Ve.nX),e.rXU(qe.aZ),e.rXU(ni.h),e.rXU(Qt.E),e.rXU(ji.c),e.rXU(Oi.u),e.rXU(Ue.Bq),e.rXU(Wi.hE),e.rXU(Wi.W8),e.rXU(cn.z),e.rXU(Mi.o))};static \u0275cmp=e.VBU({type:i,selectors:[["app-search-jobs"]],viewQuery:function(n,o){if(1&n&&(e.GBs(dg,5),e.GBs(ug,5),e.GBs(pg,5),e.GBs(_g,5),e.GBs(hg,5),e.GBs(fg,5),e.GBs(mg,5),e.GBs(gg,5),e.GBs(vg,5),e.GBs(bg,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.elementView=r.first),e.mGM(r=e.lsd())&&(o.description=r.first),e.mGM(r=e.lsd())&&(o.jobTitleInput=r.first),e.mGM(r=e.lsd())&&(o.locationInput=r.first),e.mGM(r=e.lsd())&&(o.checkFulltimeVal=r.first),e.mGM(r=e.lsd())&&(o.checkParttimeVal=r.first),e.mGM(r=e.lsd())&&(o.checkRemoteVal=r.first),e.mGM(r=e.lsd())&&(o.checkontractVal=r.first),e.mGM(r=e.lsd())&&(o.skillMod
vendor: 5,023 bytes, line 1
1al=r.first),e.mGM(r=e.lsd())&&(o.avaliability=r)}},standalone:!0,features:[e.aNF],decls:94,vars:25,consts:[["jobTitle",""],["location",""],["checkFulltimeVal",""],["checkParttimeVal",""],["checkRemoteVal",""],["checkontractVal",""],["avaliability",""],["tableLoading",""],["jobDescriptionModal",""],["skillModal",""],[3,"loading"],[1,"search-jobs-page","cr-body-sm"],[1,"search-jobs-banner"],[1,"container"],[1,"search-banner-content"],[1,"fw-700","mb-4"],[1,"job-searchbar-wrap"],[1,"mr-lg-3","position-relative"],[1,"search-input-wrapper","d-flex","align-items-center"],["type","text","placeholder","Job Title",1,"cr-form-control","control-large","w-100",3,"keyup.enter","keyup","value"],["class","clear-search-btn","type","button","title","Clear Search",3,"click",4,"ngIf"],["type","text","name","location","placeholder","Location","googlePlacesAutocomplete","",1,"cr-form-control","control-large","w-100",3,"onAddressChange","keyup","value","options"],["class","clear-search-btn","type","button","title","Clear Location",3,"click",4,"ngIf"],[1,"cr-btn","cr-btn-black","cr-btn-filled","d-flex","align-items-center",3,"click"],[1,"material-icons-outlined","mr-3"],[1,"main-content-wrap",3,"formGroup"],[1,"panel-togglers","d-xl-none"],["title","Toggle Filter",1,"cr-button-round","flex-shrink-0","mr-2",3,"click"],[1,"material-icons"],[1,"search-jobs-inner"],[1,"filter-head"],[1,"h1","mb-0","fw-600"],[1,"cr-btn-flushed","color-red",3,"click"],[1,"filter-section"],[1,"filter-title"],[1,"filter-options-list"],[1,"custom-check","mb-3"],["id","fullTime","type","checkbox","name","fullTime",1,"uncheckVal",3,"change","checked"],["for","fullTime",1,"color-pure-black","fw-400"],["id","partTime","type","checkbox","name","partTime",1,"uncheckVal",3,"change","checked"],["for","partTime",1,"color-pure-black","fw-400"],["id","RemoteWork","type","checkbox","name","RemoteWork",1,"uncheckVal",3,"change","checked"],["for","RemoteWork",1,"color-pure-black","fw-400"],["id","contractWork","type","checkbox","name","contractWork",1,"uncheckVal",3,"change","checked"],["for","contractWork",1,"color-pure-black","fw-400"],["class","custom-check mb-3",4,"ngIf"],[1,"custom-radio","mb-3"],["id","anyDate","type","radio","name","postedDate",3,"change"],["for","anyDate"],["id","postedDate","type","radio","name","postedDate",3,"change"],["for","postedDate"],["id","threeDays","type","radio","name","postedDate",3,"change"],["for","threeDays"],["id","sevenDays","type","radio","name","postedDate",3,"change"],["for","sevenDays"],[1,"search-jobs-main"],[1,"cr-card"],[1,"p-5"],[1,"mb-0","fw-600"],[1,"table-responsive"],[4,"ngIf","ngIfElse"],["class","custom-pagination paginate-front",3,"pageChange",4,"ngIf"],["type","button","title","Clear Search",1,"clear-search-btn",3,"click"],["type","button","title","Clear Location",1,"clear-search-btn",3,"click"],["id","offshoreWork","type","checkbox","name","offshoreWork",1,"uncheckVal",3,"change","checked"],["for","offshoreWork",1,"color-pure-black","fw-400"],["datatable","",1,"row-border","hover","cr-data-table","w-100","radius-0",3,"dtOptions"],[1,"w-auto","min-w-auto","min-w"],[1,"sorting-arrows"],[4,"ngFor","ngForOf"],["class","cr-btn cr-btn-blue cr-btn-sm",3,"countryRouterLink",4,"ngIf"],["class","cr-btn cr-btn-blue cr-btn-sm disabled",4,"ngIf"],[1,"d-flex","align-items-center"],["class","material-icons-outlined cr-btn-flushed",3,"click",4,"ngIf"],["class","cr-btn-flushed material-icons color-yellow",3,"click",4,"ngIf"],[1,"d-flex","flex-column","ml-3"],["href","javascript:void(0)",1,"fw-500","color-alice-blue",3,"countryRouterLink"],[1,"color-gray-3","paragraph-md"],["class","color-gray-3 paragraph-md",4,"ngIf"],[1,"tbl-profile-progress"],[3,"percent","animation","animationDuration"],[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["class","link color-alice-blue","href","javascript:void(0)",3,"click",4,"ngIf"],["class","cr-skills-wrap",4,"ngIf"],[1,"cr-btn","cr-btn-blue","cr-btn-sm",3,"countryRouterLink"],[1,"cr-btn","cr-btn-blue","cr-btn-sm","disabled"],[1,"material-icons-outlined","cr-btn-flushed",3,"click"],[1,"cr-btn-flushed","material-icons","color-yellow",3,"click"],[3,"innerHtml"],["href","javascript:void(0)",1,"link","color-alice-blue",3,"click"],[1,"cr-skills-wrap"],[1,"cr-skill"],[1,"custom-pagination","paginate-front",3,"pageChange"],[1,"d-flex","justify-content-center","my-5"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],[1,"modal-body"],[1,"d-flex","flex-column","mb-4"],["for","jobtitle",1,"mb-2","color-gray-2","fw-500"],[1,"mb-0","color-dark","fw-700"],["for","jobdesc",1,"mb-2","color-gray-2","fw-500"],[1,"fw-500","word-wrap",3,"innerHtml"],[1,"modal-footer","p-5","d-flex","justify-content-end"],[1,"cr-btn","cr-btn-blue",3,"click"],["id","video-call-modal",1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","text-center"],[1,"cr-skill-details"]],template:function(n,o){if(1&n){const r=e.RV6();
1e.nrm(0,"app-loading-spinner",10),e.j41(1,"section",11)(2,"section",12)(3,"div",13)(4,"div",14)(5,"h1",15),e.EFF(6,"Search Jobs Here"),e.k0s(),e.j41(7,"div",16)(8,"div",17)(9,"div",18)(10,"input",19,0),e.bIt("keyup.enter",function(c){return e.eBV(r),e.Njj(o.searchBar(c))})("keyup",function(c){return e.eBV(r),e.Njj(o.data(c))}),e.k0s(),e.DNE(12,Cg,3,0,"button",20),e.k0s()(),e.j41(13,"div",17)(14,"div",18)(15,"input",21,1),e.bIt("onAddressChange",function(c){return e.eBV(r),e.Njj(o.handleAddressChange(c))})("keyup",function(c){return e.eBV(r),e.Njj(o.data(c))}),e.k0s(),e.DNE(17,jg,3,0,"button",22),e.k0s()(),e.j41(18,"button",23),e.bIt("click",function(){e.eBV(r);const c=e.sdS(11);return e.Njj(o.searchJob(c.value))}),e.j41(19,"span",24),e.EFF(20," search "),e.k0s(),e.EFF(21," Search "),e.k0s()()()()(),e.j41(22,"section",25)(23,"div",26)(24,"button",27),e.bIt("click",function(){return e.eBV(r),e.Njj(o.toggleFilterSidebar())}),e.j41(25,"span",28),e.EFF(26),e.k0s()()(),e.j41(27,"div",29)(28,"aside")(29,"div",30)(30,"div",31),e.EFF(31,"Filter"),e.k0s(),e.j41(32,"button",32),e.bIt("click",function(){return e.eBV(r),e.Njj(o.clearAllVal())}),e.EFF(33," Clear All "),e.k0s()(),e.j41(34,"section",33)(35,"div",34),e.EFF(36,"Availability"),e.k0s(),e.j41(37,"div",35)(38,"div",36)(39,"input",37,2),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.avaliabilityChange(c,1))}),e.k0s(),e.j41(41,"label",38),e.EFF(42," Full Time "),e.k0s()(),e.j41(43,"div",36)(44,"input",39,3),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.avaliabilityChange(c,2))}),e.k0s(),e.j41(46,"label",40),e.EFF(47," Part Time "),e.k0s()(),e.j41(48,"div",36)(49,"input",41,4),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.avaliabilityChange(c,3))}),e.k0s(),e.j41(51,"label",42),e.EFF(52," Remote "),e.k0s()(),e.j41(53,"div",36)(54,"input",43,5),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.avaliabilityChange(c,4))}),e.k0s(),e.j41(56,"label",44),e.EFF(57," Contract "),e.k0s()(),e.DNE(58,Fg,4,1,"div",45),e.k0s()(),e.j41(59,"section",33)(60,"div",34),e.EFF(61,"Posted Date"),e.k0s(),e.j41(62,"div",35)(63,"div",46)(64,"input",47,6),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.dateChange(c,1))}
1),e.k0s(),e.j41(66,"label",48),e.EFF(67," Any Date "),e.k0s()(),e.j41(68,"div",46)(69,"input",49),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.dateChange(c,2))}),e.k0s(),e.j41(70,"label",50),e.EFF(71," Today "),e.k0s()(),e.j41(72,"div",46)(73,"input",51),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.dateChange(c,3))}),e.k0s(),e.j41(74,"label",52),e.EFF(75," Last 3 Days "),e.k0s()(),e.j41(76,"div",46)(77,"input",53),e.bIt("change",function(c){return e.eBV(r),e.Njj(o.dateChange(c,4))}),e.k0s(),e.j41(78,"label",54),e.EFF(79," Last 7 Days "),e.k0s()()()()(),e.j41(80,"div",55)(81,"div",56)(82,"div",57)(83,"h2",58),e.EFF(84),e.k0s()(),e.j41(85,"div",59),e.DNE(86,qg,31,9,"ng-container",60)(87,Vg,1,0,"pagination-controls",61)(88,Bg,2,1,"ng-template",null,7,e.C5r),e.k0s()()()()()(),e.DNE(90,$g,17,2,"ng-template",null,8,e.C5r)(92,Jg,7,1,"ng-template",null,9,e.C5r)}if(2&n){const r=e.sdS(89);e.Y8G("loading",o.globals.loading),e.R7$(10),e.Y8G("value",o._global_search||o._jobtitle),e.R7$(2),e.Y8G("ngIf",o._global_search||o._jobtitle),e.R7$(3),e.Y8G("value",o._location)("options",e.l_i(22,wg,e.lJ4(19,yg),e.eq3(20,kg,o.country))),e.R7$(2),e.Y8G("ngIf",o._location),e.R7$(5),e.Y8G("formGroup",o.FilterGroup),e.R7$(4),e.SpI(" ",o.filterSidebar?"close":"filter_alt"," "),e.R7$(2),e.HbH(o.filterSidebar?"filter-sidebar filter-sidebar-open":"filter-sidebar"),e.R7$(11),e.Y8G("checked",o.selectedAvaliability.includes(1)),e.R7$(5),e.Y8G("checked",o.selectedAvaliability.includes(2)),e.R7$(5),e.Y8G("checked",o.selectedAvaliability.includes(3)),e.R7$(5),e.Y8G("checked",o.selectedAvaliability.includes(4)),e.R7$(4),e.Y8G("ngIf","in"===o.country),e.R7$(26),e.SpI(" All Jobs ",o.total?"( "+o.total+" "+(o.total<2?"Job":"Jobs")+" Found )":""," "),e.R7$(2),e.Y8G("ngIf",o.showJobTable)("ngIfElse",r),e.R7$(),e.Y8G("ngIf",o.total>o.per_page)}},dependencies:[qe.MD,qe.Sq,qe.bT,ne.YN,ne.cb,ne.X1,ne.j4,Ni.H,Ni._,Ve.iI,$i.MQ,so.rz,so.VE,Cn.ed,Cn.kf,Cn.ej,ai.j,ai.P,Ue.Pv,Ut._B,di.N,Fn.l],styles:[".search-jobs-page[_ngcontent-%COMP%]{display:flex;flex-direction:column}.search-jobs-banner[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:370px;max-height:370px;background-image:url(search-banner-bg.2cdbac568cd871d0.jpg);background-size:cover;background-position:right;background-repeat:no-repeat}.job-searchbar-wrap[_ngcontent-%COMP%]{padding:12px;background-color:#ffffff4d;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:12px;display:flex;align-items:stretch;width:max-content}.job-searchbar-wrap[_ngcontent-%COMP%]   .cr-form-control[_ngcontent-%COMP%]{border-color:transparent;font-size:14px;border-radius:8px;padding:8px 12px;height:5.5rem}.job-searchbar-wrap[_ngcontent-%COMP%]   .cr-btn-black[_ngcontent-%COMP%]{border-radius:8px}.search-input-wrapper[_ngcontent-%COMP%]{position:relative;background-color:var(--pure-white);border-radius:8px;padding:0;overflow:hidden;width:100%;display:flex;align-items:center}.search-input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;background:transparent;flex-grow:1;padding:12px 16px}.search-input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.clear-search-btn[_ngcontent-%COMP%]{background:transparent;border:none;padding:8px 12px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--pure-black);opacity:.6;transition:opacity .2s;flex-shrink:0;margin-right:5px}.clear-search-btn[_ngcontent-%COMP%]:hover{opacity:1}.clear-search-btn[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px}.search-jobs-inner[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:250px 1fr;grid-gap:15px}.search-jobs-main[_ngcontent-%COMP%]{overflow-x:auto}.search-jobs-main[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   .cr-btn[_ngcontent-%COMP%]{padding:5px 10px;min-width:auto}.table-col-md-size[_ngcontent-%COMP%]{max-width:300px}.word-wrap[_ngcontent-%COMP%]{word-break:break-word}.text-clamp[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.clamp-3[_ngcontent-%COMP%]{-webkit-line-clamp:3;line-clamp:3}@media screen and (max-width: 1365px){.job-searchbar-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}}@media screen and (max-width: 1199px){.search-jobs-inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}}@media screen and (max-width: 991px){.search-banner-content[_ngcontent-%COMP%]{text-align:center}.job-searchbar-wrap[_ngcontent-%COMP%]{width:100%;gap:10px}.job-searchbar-wrap[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.cr-btn){width:calc(50% - 5px)}.job-searchbar-wrap[_ngcontent-%COMP%]   .cr-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}@media screen and (max-width: 480px){.job-searchbar-wrap[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.cr-btn){width:100%}}"]})}return i})();var Kt=ze(82284),Xt=Uint8Array,pn=Uint16Array,Sa=Int32Array,Ir=new Xt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dr=new Xt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ea=new Xt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cd=function(i,a){for(var t=new pn(31),n=0;n<31;++n)t[n]=a+=1<<i[n-1];var o=new Sa(t[30]);for(n=1;n<30;++n)for(var r=t[n];r<t[n+1];++r)o[r]=r-t[n]<<5|n;return{b:t,r:o}},dd=cd(Ir,2),Vl=dd.b,gs=dd.r;Vl[28]=258,gs[258]=28;for(var ud=cd(Dr,0),pd=ud.b,Bl=ud.r,Ra=new pn(32768),si=0;si<32768;++si){var Vo=(43690&si)>>1|(21845&si)<<1;Ra[si]=((65280&(Vo=(61680&(Vo=(52428&Vo)>>2|(13107&Vo)<<2))>>4|(3855&Vo)<<4))>>8|(255&Vo)<<8)>>1}var Mn=function(i,a,t){for(var n=i.length,o=0,r=new pn(a);o<n;++o)i[o]&&++r[i[o]-1];var c,s=new pn(a);for(o=1;o<a;++o)s[o]=s[o-1]+r[o-1]<<1;if(t){c=new pn(1<<a);var u=15-a;for(o=0;o<n;++o)if(i[o])for(var h=o<<4|i[o],v=a-i[o],g=s[i[o]-1]++<<v,b=g|(1<<v)-1;g<=b;++g)c[Ra[g]>>u]=h}else for(c=new pn(n),o=0;o<n;++o)i[o]&&(c[o]=Ra[s[i[o]-1]++]>>15-i[o]);return c},Eo=new Xt(288);for(si=0;si<144;++si)Eo[si]=8;for(si=144;si<256;++si)Eo[si]=9;for(si=256;si<280;++si)Eo[si]=7;for(si=280;si<288;++si)Eo[si]=8;var Pr=new Xt(32);for(si=0;si<32;++si)Pr[si]=5;
vendor: 4,415 bytes, line 1
1var _d=Mn(Eo,9,0),hd=Mn(Eo,9,1),fd=Mn(Pr,5,0),md=Mn(Pr,5,1),vs=function(i){for(var a=i[0],t=1;t<i.length;++t)i[t]>a&&(a=i[t]);return a},On=function(i,a,t){var n=a/8|0;return(i[n]|i[n+1]<<8)>>(7&a)&t},bs=function(i,a){var t=a/8|0;return(i[t]|i[t+1]<<8|i[t+2]<<16)>>(7&a)},Ta=function(i){return(i+7)/8|0},Bo=function(i,a,t){return(null==a||a<0)&&(a=0),(null==t||t>i.length)&&(t=i.length),new Xt(i.subarray(a,t))},gd=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],At=function(i,a,t){var n=new Error(a||gd[i]);if(n.code=i,Error.captureStackTrace&&Error.captureStackTrace(n,At),!t)throw n;return n},po=function(i,a,t){var n=a/8|0;i[n]|=t<<=7&a,i[n+1]|=t>>8},Nr=function(i,a,t){var n=a/8|0;i[n]|=t<<=7&a,i[n+1]|=t>>8,i[n+2]|=t>>16},ks=function(i,a){for(var t=[],n=0;n<i.length;++n)i[n]&&t.push({s:n,f:i[n]});var o=t.length,r=t.slice();if(!o)return{t:Ul,l:0};if(1==o){var s=new Xt(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(de,je){return de.f-je.f}),t.push({s:-1,f:25001});var c=t[0],u=t[1],h=0,v=1,g=2;for(t[0]={s:-1,f:c.f+u.f,l:c,r:u};v!=o-1;)c=t[t[h].f<t[g].f?h++:g++],u=t[h!=v&&t[h].f<t[g].f?h++:g++],t[v++]={s:-1,f:c.f+u.f,l:c,r:u};var b=r[0].s;for(n=1;n<o;++n)r[n].s>b&&(b=r[n].s);var f=new pn(b+1),R=ws(t[v-1],f,0);if(R>a){n=0;var C=0,D=R-a,x=1<<D;for(r.sort(function(je,ie){return f[ie.s]-f[je.s]||je.f-ie.f});n<o;++n){var M=r[n].s;if(!(f[M]>a))break;C+=x-(1<<R-f[M]),f[M]=a}for(C>>=D;C>0;){var Y=r[n].s;f[Y]<a?C-=1<<a-f[Y]++-1:++n}for(;n>=0&&C;--n){var ee=r[n].s;f[ee]==a&&(--f[ee],++C)}R=a}return{t:new Xt(f),l:R}},ws=function(i,a,t){return-1==i.s?Math.max(ws(i.l,a,t+1),ws(i.r,a,t+1)):a[i.s]=t},$l=function(i){for(var a=i.length;a&&!i[--a];);for(var t=new pn(++a),n=0,o=i[0],r=1,s=function(u){t[n++]=u},c=1;c<=a;++c)if(i[c]==o&&c!=a)++r;else{if(!o&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(o),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(o);r=1,o=i[c]}return{c:t.subarray(0,n),n:a}},Mr=function(i,a){for(var t=0,n=0;n<a.length;++n)t+=i[n]*a[n];return t},Yl=function(i,a,t){var n=t.length,o=Ta(a+2);i[o]=255&n,i[o+1]=n>>8,i[o+2]=255^i[o],i[o+3]=255^i[o+1];for(var r=0;r<n;++r)i[o+r+4]=t[r];return 8*(o+4+n)},Jl=function(i,a,t,n,o,r,s,c,u,h,v){po(a,v++,t),++o[256];for(var g=ks(o,15),b=g.t,f=g.l,R=ks(r,15),C=R.t,D=R.l,x=$l(b),M=x.c,Y=x.n,ee=$l(C),de=ee.c,je=ee.n,ie=new pn(19),q=0;q<M.length;++q)++ie[31&M[q]];for(q=0;q<de.length;++q)++ie[31&de[q]];for(var ae=ks(ie,7),ke=ae.t,I=ae.l,P=19;P>4&&!ke[Ea[P-1]];--P);var pe,ge,se,we,X=h+5<<3,V=Mr(o,Eo)+Mr(r,Pr)+s,he=Mr(o,b)+Mr(r,C)+s+14+3*P+Mr(ie,ke)+2*ie[16]+3*ie[17]+7*ie[18];if(u>=0&&X<=V&&X<=he)return Yl(a,v,i.subarray(u,u+h));if(po(a,v,1+(he<V)),v+=2,he<V){pe=Mn(b,f,0),ge=b,se=Mn(C,D,0),we=C;var Fe=Mn(ke,I,0);for(po(a,v,Y-257),po(a,v+5,je-1),po(a,v+10,P-4),v+=14,q=0;q<P;++q)po(a,v+3*q,ke[Ea[q]]);v+=3*P;for(var it=[M,de],S=0;S<2;++S){var O=it[S];for(q=0;q<O.length;++q)po(a,v,Fe[G=31&O[q]]),v+=ke[G],G>15&&(po(a,v,O[q]>>5&127),v+=O[q]>>12)}}else pe=_d,ge=Eo,se=fd,we=Pr;for(q=0;q<c;++q){var J=n[q];if(J>255){var G;Nr(a,v,pe[257+(G=J>>18&31)]),v+=ge[G+257],G>7&&(po(a,v,J>>23&31),v+=Ir[G]);var K=31&J;Nr(a,v,se[K]),v+=we[K],K>3&&(Nr(a,v,J>>5&8191),v+=Dr[K])}else Nr(a,v,pe[J]),v+=ge[J]}return Nr(a,v,pe[256]),v+ge[256]},vd=new Sa([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ul=new Xt(0),Xl=function(){var i=1,a=0;return{p:function(t){for(var n=i,o=a,r=0|t.length,s=0;s!=r;){for(var c=Math.min(s+2655,r);s<c;++s)o+=n+=t[s];n=(65535&n)+15*(n>>16),o=(65535&o)+15*(o>>16)}i=n,a=o},d:function(){return(255&(i%=65521))<<24|(65280&i)<<8|(255&(a%=65521))<<8|a>>8}}},Cs=function(i,a,t,n,o){if(!o&&(o={l:1},a.dictionary)){var r=a.dictionary.subarray(-32768),s=new Xt(r.length+i.length);s.set(r),s.set(i,r.length),i=s,o.w=r.length}return function(i,a,t,n,o,r){var s=r.z||i.length,c=new Xt(n+s+5*(1+Math.ceil(s/7e3))+o),u=c.subarray(n,c.length-o),h=r.l,v=7&(r.r||0);if(a){v&&(u[0]=r.r>>3);for(var g=vd[a-1],b=g>>13,f=8191&g,R=(1<<t)-1,C=r.p||new pn(32768),D=r.h||new pn(R+1),x=Math.ceil(t/3),M=2*x,Y=function(wt){return(i[wt]^i[wt+1]<<x^i[wt+2]<<M)&R},ee=new Sa(25e3),de=new pn(288),je=new pn(32),ie=0,q=0,ae=r.i||0,ke=0,I=r.w||0,P=0;ae+2<s;
1++ae){var X=Y(ae),V=32767&ae,he=D[X];if(C[V]=he,D[X]=V,I<=ae){var pe=s-ae;if((ie>7e3||ke>24576)&&(pe>423||!h)){v=Jl(i,u,0,ee,de,je,q,ke,P,ae-P,v),ke=ie=q=0,P=ae;for(var ge=0;ge<286;++ge)de[ge]=0;for(ge=0;ge<30;++ge)je[ge]=0}var se=2,we=0,Fe=f,it=V-he&32767;if(pe>2&&X==Y(ae-it))for(var S=Math.min(b,pe)-1,O=Math.min(32767,ae),G=Math.min(258,pe);it<=O&&--Fe&&V!=he;){if(i[ae+se]==i[ae+se-it]){for(var J=0;J<G&&i[ae+J]==i[ae+J-it];++J);if(J>se){if(se=J,we=it,J>S)break;var K=Math.min(it,J-2),ce=0;for(ge=0;ge<K;++ge){var ue=ae-it+ge&32767,Le=ue-C[ue]&32767;Le>ce&&(ce=Le,he=ue)}}}it+=(V=he)-(he=C[V])&32767}if(we){ee[ke++]=268435456|gs[se]<<18|Bl[we];var Ae=31&gs[se],tt=31&Bl[we];q+=Ir[Ae]+Dr[tt],++de[257+Ae],++je[tt],I=ae+se,++ie}else ee[ke++]=i[ae],++de[i[ae]]}}for(ae=Math.max(ae,I);ae<s;++ae)ee[ke++]=i[ae],++de[i[ae]];v=Jl(i,u,h,ee,de,je,q,ke,P,ae-P,v),h||(r.r=7&v|u[v/8|0]<<3,v-=7,r.h=D,r.p=C,r.i=ae,r.w=I)}else{for(ae=r.w||0;ae<s+h;ae+=65535){var Ze=ae+65535;Ze>=s&&(u[v/8|0]=h,Ze=s),v=Yl(u,v+1,i.subarray(ae,Ze))}r.i=s}return Bo(c,0,n+Ta(v)+o)}(i,null==a.level?6:a.level,null==a.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):20:12+a.mem,t,n,o)},li=function(i,a,t){for(;t;++a)i[a]=t,t>>>=8};function Da(i,a){a||(a={});var t=Xl();t.p(i);var n=Cs(i,a,a.dictionary?6:2,4);return function(i,a){var t=a.level,n=0==t?0:t<6?1:9==t?3:2;if(i[0]=120,i[1]=n<<6|(a.dictionary&&32),i[1]|=31-(i[0]<<8|i[1])%31,a.dictionary){var o=Xl();o.p(a.dictionary),li(i,2,o.d())}}(n,a),li(n,n.length-4,t.d()),n}function Es(i,a){return function(i,a,t,n){var o=i.length,r=n?n.length:0;if(!o||a.f&&!a.l)return t||new Xt(0);var s=!t,c=s||2!=a.i,u=a.i;s&&(t=new Xt(3*o));var h=function(Ae){var tt=t.length;if(Ae>tt){var Ze=new Xt(Math.max(2*tt,Ae));Ze.set(t),t=Ze}},v=a.f||0,g=a.p||0,b=a.b||0,f=a.l,R=a.d,C=a.m,D=a.n,x=8*o;do{if(!f){v=On(i,g,1);var M=On(i,g+1,3);if(g+=3,!M){var ee=i[(Y=Ta(g)+4)-4]|i[Y-3]<<8,de=Y+ee;if(de>o){u&&At(0);break}c&&h(b+ee),t.set(i.subarray(Y,de),b),a.b=b+=ee,a.p=g=8*de,a.f=v;continue}if(1==M)f=hd,R=md,C=9,D=5;else if(2==M){var je=On(i,g,31)+257,ie=On(i,g+10,15)+4,q=je+On(i,g+5,31)+1;g+=14;for(var ae=new Xt(q),ke=new Xt(19),I=0;I<ie;++I)ke[Ea[I]]=On(i,g+3*I,7);g+=3*ie;var P=vs(ke),X=(1<<P)-1,V=Mn(ke,P,1);for(I=0;I<q;){var Y,he=V[On(i,g,X)];if(g+=15&he,(Y=he>>4)<16)ae[I++]=Y;else{var pe=0,ge=0;for(16==Y?(ge=3+On(i,g,3),g+=2,pe=ae[I-1]):17==Y?(ge=3+On(i,g,7),g+=3):18==Y&&(ge=11+On(i,g,127),g+=7);ge--;)ae[I++]=pe}}var se=ae.subarray(0,je),we=ae.subarray(je);C=vs(se),D=vs(we),f=Mn(se,C,1),R=Mn(we,D,1)}else At(1);if(g>x){u&&At(0);break}}c&&h(b+131072);for(var Fe=(1<<C)-1,it=(1<<D)-1,S=g;;S=g){var O=(pe=f[bs(i,g)&Fe])>>4;if((g+=15&pe)>x){u&&At(0);break}if(pe||At(2),O<256)t[b++]=O;else{if(256==O){S=g,f=null;break}var G=O-254;O>264&&(G=On(i,g,(1<<(J=Ir[I=O-257]))-1)+Vl[I],g+=J);var K=R[bs(i,g)&it],ce=K>>4;if(K||At(3),g+=15&K,we=pd[ce],ce>3){var J=Dr[ce];we+=bs(i,g)&(1<<J)-1,g+=J}if(g>x){u&&At(0);break}c&&h(b+131072);var ue=b+G;if(b<we){var _e=r-we,Le=Math.min(we,ue);for(_e+b<0&&At(3);b<Le;++b)t[b]=n[_e+b]}for(;b<ue;++b)t[b]=t[b-we]}}a.l=f,a.p=S,a.b=b,a.f=v,f&&(v=1,a.m=C,a.d=R,a.n=D)}while(!v);return b!=t.length&&s?Bo(t,0,b):t.subarray(0,b)}(i.subarray(function(i,a){return(8!=(15&i[0])||i[0]>>4>7||(i[0]<<8|i[1])%31)&&At(6,"invalid zlib data"),(i[1]>>5&1)==+!a&&At(6,"invalid zlib data: "+(32&i[1]?"need":"unexpected")+" dictionary"),2+(i[1]>>3&4)}(i,a&&a.dictionary),-4),{i:2},a&&a.out,a&&a.dictionary)}var ec=typeof TextDecoder<"u"&&new TextDecoder;try{ec.decode(Ul,{stream:!0})}catch{}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var kt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function tc(){kt.console&&"function"==typeof kt.console.log&&kt.console.log.apply(kt.console,arguments)}var ei={log:tc,warn:function(i){kt.console&&("function"==typeof kt.console.warn?kt.console.warn.apply(kt.console,arguments):tc.call(null,arguments))},error:function(i){kt.console&&("function"==typeof kt.console.error?kt.console.error.apply(kt.console,arguments):tc(i))}};function ic(i,a,t){var n=new XMLHttpRequest;n.open("GET",i),n.responseType="blob",n.onload=function(){cr(n.response,a,t)},n.onerror=function(){ei.error("could not download file")},n.send()}function Md(i){var a=new XMLHttpRequest;a.open("HEAD",i,!1);try{a.send()}catch{}return a.status>=200&&a.status<=299}function Ds(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var a=document.createEvent("MouseEvents");
vendor: 3,234 bytes, line 1
1a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(a)}}var Na,nc,cr=kt.saveAs||("object"!==(typeof window>"u"?"undefined":(0,Kt.A)(window))||window!==kt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(i,a,t){var n=kt.URL||kt.webkitURL,o=document.createElement("a");o.download=a=a||i.name||"download",o.rel="noopener","string"==typeof i?(o.href=i,o.origin!==location.origin?Md(o.href)?ic(i,a,t):Ds(o,o.target="_blank"):Ds(o)):(o.href=n.createObjectURL(i),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){Ds(o)},0))}:"msSaveOrOpenBlob"in navigator?function(i,a,t){if(a=a||i.name||"download","string"==typeof i)if(Md(i))ic(i,a,t);else{var n=document.createElement("a");n.href=i,n.target="_blank",setTimeout(function(){Ds(n)})}else navigator.msSaveOrOpenBlob((o=i,void 0===(r=t)?r={autoBom:!1}:"object"!==(0,Kt.A)(r)&&(ei.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\ufeff",o],{type:o.type}):o),a);var o,r}:function(i,a,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof i)return ic(i,a,t);var o="application/octet-stream"===i.type,r=/constructor/i.test(kt.HTMLElement)||kt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r)&&"object"===(typeof FileReader>"u"?"undefined":(0,Kt.A)(FileReader))){var c=new FileReader;c.onloadend=function(){var v=c.result;v=s?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=v:location=v,n=null},c.readAsDataURL(i)}else{var u=kt.URL||kt.webkitURL,h=u.createObjectURL(i);n?n.location=h:location.href=h,n=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});function Od(i){var a;i=i||"",this.ok=!1,"#"==i.charAt(0)&&(i=i.substr(1,6)),i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
10",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[i=(i=i.replace(/ /g,"")).toLowerCase()]||i;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],n=0;n<t.length;n++){var r=t[n].process,s=t[n].re.exec(i);s&&(a=r(s),this.r=a[0],this.g=a[1],this.b=a[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var c=this.r.toString(16),u=this.g.toString(16),h=this.b.toString(16);return 1==c.length&&(c="0"+c),1==u.length&&(u="0"+u),1==h.length&&(h="0"+h),"#"+c+u+h}}function oc(i,a){var t=i[0],n=i[1],o=i[2],r=i[3];t=Ki(t,n,o,r,a[0],7,-680876936),r=Ki(r,t,n,o,a[1],12,-389564586),o=Ki(o,r,t,n,a[2],17,606105819),n=Ki(n,o,r,t,a[3],22,-1044525330),t=Ki(t,n,o,r,a[4],7,-176418897),r=Ki(r,t,n,o,a[5],12,1200080426),o=Ki(o,r,t,n,a[6],17,-1473231341),n=Ki(n,o,r,t,a[7],22,-45705983),t=Ki(t,n,o,r,a[8],7,1770035416),r=Ki(r,t,n,o,a[9],12,-1958414417),o=Ki(o,r,t,n,a[10],17,-42063),n=Ki(n,o,r,t,a[11],22,-1990404162),t=Ki(t,n,o,r,a[12],7,1804603682),r=Ki(r,t,n,o,a[13],12,-40341101),o=Ki(o,r,t,n,a[14],17,-1502002290),t=en(t,n=Ki(n,o,r,t,a[15],22,1236535329),o,r,a[1],5,-165796510),r=en(r,t,n,o,a[6],9,-1069501632),o=en(o,r,t,n,a[11],14,643717713),n=en(n,o,r,t,a[0],20,-373897302),t=en(t,n,o,r,a[5],5,-701558691),r=en(r,t,n,o,a[10],9,38016083),o=en(o,r,t,n,a[15],14,-660478335),n=en(n,o,r,t,a[4],20,-405537848),t=en(t,n,o,r,a[9],5,568446438),r=en(r,t,n,o,a[14],9,-1019803690),o=en(o,r,t,n,a[3],14,-187363961),n=en(n,o,r,t,a[8],20,1163531501),t=en(t,n,o,r,a[13],5,-1444681467),r
vendor: 8,570 bytes, line 1
1=en(r,t,n,o,a[2],9,-51403784),o=en(o,r,t,n,a[7],14,1735328473),t=tn(t,n=en(n,o,r,t,a[12],20,-1926607734),o,r,a[5],4,-378558),r=tn(r,t,n,o,a[8],11,-2022574463),o=tn(o,r,t,n,a[11],16,1839030562),n=tn(n,o,r,t,a[14],23,-35309556),t=tn(t,n,o,r,a[1],4,-1530992060),r=tn(r,t,n,o,a[4],11,1272893353),o=tn(o,r,t,n,a[7],16,-155497632),n=tn(n,o,r,t,a[10],23,-1094730640),t=tn(t,n,o,r,a[13],4,681279174),r=tn(r,t,n,o,a[0],11,-358537222),o=tn(o,r,t,n,a[3],16,-722521979),n=tn(n,o,r,t,a[6],23,76029189),t=tn(t,n,o,r,a[9],4,-640364487),r=tn(r,t,n,o,a[12],11,-421815835),o=tn(o,r,t,n,a[15],16,530742520),t=nn(t,n=tn(n,o,r,t,a[2],23,-995338651),o,r,a[0],6,-198630844),r=nn(r,t,n,o,a[7],10,1126891415),o=nn(o,r,t,n,a[14],15,-1416354905),n=nn(n,o,r,t,a[5],21,-57434055),t=nn(t,n,o,r,a[12],6,1700485571),r=nn(r,t,n,o,a[3],10,-1894986606),o=nn(o,r,t,n,a[10],15,-1051523),n=nn(n,o,r,t,a[1],21,-2054922799),t=nn(t,n,o,r,a[8],6,1873313359),r=nn(r,t,n,o,a[15],10,-30611744),o=nn(o,r,t,n,a[6],15,-1560198380),n=nn(n,o,r,t,a[13],21,1309151649),t=nn(t,n,o,r,a[4],6,-145523070),r=nn(r,t,n,o,a[11],10,-1120210379),o=nn(o,r,t,n,a[2],15,718787259),n=nn(n,o,r,t,a[9],21,-343485551),i[0]=Yo(t,i[0]),i[1]=Yo(n,i[1]),i[2]=Yo(o,i[2]),i[3]=Yo(r,i[3])}function Ps(i,a,t,n,o,r){return a=Yo(Yo(a,i),Yo(n,r)),Yo(a<<o|a>>>32-o,t)}function Ki(i,a,t,n,o,r,s){return Ps(a&t|~a&n,i,a,o,r,s)}function en(i,a,t,n,o,r,s){return Ps(a&n|t&~n,i,a,o,r,s)}function tn(i,a,t,n,o,r,s){return Ps(a^t^n,i,a,o,r,s)}function nn(i,a,t,n,o,r,s){return Ps(t^(a|~n),i,a,o,r,s)}function Ad(i){var a,t=i.length,n=[1732584193,-271733879,-1732584194,271733878];for(a=64;a<=i.length;a+=64)oc(n,a0(i.substring(a-64,a)));i=i.substring(a-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a<i.length;a++)o[a>>2]|=i.charCodeAt(a)<<(a%4<<3);if(o[a>>2]|=128<<(a%4<<3),a>55)for(oc(n,o),a=0;a<16;a++)o[a]=0;return o[14]=8*t,oc(n,o),n}function a0(i){var a,t=[];for(a=0;a<64;a+=4)t[a>>2]=i.charCodeAt(a)+(i.charCodeAt(a+1)<<8)+(i.charCodeAt(a+2)<<16)+(i.charCodeAt(a+3)<<24);return t}Na=kt.atob.bind(kt),nc=kt.btoa.bind(kt);var Gd="0123456789abcdef".split("");function s0(i){for(var a="",t=0;t<4;t++)a+=Gd[i>>8*t+4&15]+Gd[i>>8*t&15];return a}function l0(i){return String.fromCharCode(255&i,(65280&i)>>8,(16711680&i)>>16,(4278190080&i)>>24)}function rc(i){return Ad(i).map(l0).join("")}var c0="5d41402abc4b2a76b9719d911017c592"!=function(i){for(var a=0;a<i.length;a++)i[a]=s0(i[a]);return i.join("")}(Ad("hello"));function Yo(i,a){if(c0){var t=(65535&i)+(65535&a);return(i>>16)+(a>>16)+(t>>16)<<16|65535&t}return i+a&4294967295}function ac(i,a){var t,n,o;if(i!==t){for(var s=(o=i,new Array(1+(256/i.length|0)+1).join(o)),c=[],u=0;u<256;u++)c[u]=u;var h=0;for(u=0;u<256;u++){var v=c[u];h=(h+v+s.charCodeAt(u))%256,c[u]=c[h],c[h]=v}t=i,n=c}else c=n;var g=a.length,b=0,f=0,R="";for(u=0;u<g;u++)f=(f+(v=c[b=(b+1)%256]))%256,c[b]=c[f],c[f]=v,s=c[(c[b]+c[f])%256],R+=String.fromCharCode(a.charCodeAt(u)^s);return R}var Ld={print:4,modify:8,copy:16,"annot-forms":32};function Ar(i,a,t,n){this.v=1,this.r=2;var o=192;i.forEach(function(c){if(void 0!==Ld.perm)throw new Error("Invalid permission: "+c);o+=Ld[c]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var r=(a+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^o)),this.encryptionKey=rc(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=ac(this.encryptionKey,this.padding)}function Gr(i){if(/[^\u0000-\u00ff]/.test(i))throw new Error("Invalid PDF Name Object: "+i+", Only accept ASCII characters.");for(var a="",t=i.length,n=0;n<t;n++){var o=i.charCodeAt(n);a+=o<33||35===o||37===o||40===o||41===o||47===o||60===o||62===o||91===o||93===o||123===o||125===o||o>126?"#"+("0"+o.toString(16)).slice(-2):i[n]}return a}function qd(i){if("object"!==(0,Kt.A)(i))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var a={};this.subscribe=function(t,n,o){if(o=o||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof o)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");a.hasOwnProperty(t)||(a[t]={});var r=Math.random().toString(35);return a[t][r]=[n,!!o],r},this.unsubscribe=function(t){for(var n in a)if(a[n][t])return delete a[n][t],0===Object.keys(a[n]).length&&delete a[n],!0;return!1},this.publish=function(t){if(a.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),o=[];for(var r in a[t]){var s=a[t][r];try{s[0].apply(i,n)}catch(c){kt.console&&ei.error("jsPDF PubSub Error",c.message,c)}s[1]&&o.push(r)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function Ns(i){if(!(this instanceof Ns))return new Ns(i);var a="opacity,stroke-opacity".split(",");for(var t in i)i.hasOwnProperty(t)&&a.indexOf(t)>=0&&(this[t]=i[t]);this.id="",this.objectNumber=-1}function Vd(i,a){this.gState=i,this.matrix=a,this.id="",this.objectNumber=-1}function dr(i,a,t,n,o){if(!(this instanceof dr))return new dr(i,a,t,n,o);this.type="axial"===i?2:3,this.coords=a,this.colors=t,Vd.call(this,n,o)}function Lr(i,a,t,n,o){if(!(this instanceof Lr))return new Lr(i,a,t,n,o);this.boundingBox=i,this.xStep=a,this.yStep=t,this.stream="",this.cloneIndex=0,Vd.call(this,n,o)}function bt(i){var a,t="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],o=arguments[2],r=arguments[3],s=[],c=1,u=16,h="S",v=null;"object"===(0,Kt.A)(i=i||{})&&(t=i.orientation,n=i.unit||n,o=i.format||o,r=i.compress||i.compressPdf||r,null!==(v=i.encryption||null)&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),c="number"==typeof i.userUnit?Math.abs(i.userUnit):1,void 0!==i.precision&&(a=i.precision),void 0!==i.floatPrecision&&(u=i.floatPrecision),h=i.defaultPathOperation||"S"),s=i.filters||(!0===r?["FlateEncode"]:s),n=n||"mm",t=(""+(t||"P")).toLowerCase();var g=i.putOnlyUsedFonts||!1,b={},f={internal:{},__private__:{}};f.__private__.PubSub=qd;var R="1.3",C=f.__private__.getPdfVersion=function(){return R};f.__private__.setPdfVersion=function(p){R=p};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return D};var x=f.__private__.getPageFormat=function(p){return D[p]};o=o||"a4";var Y="compat";function ee(){this.saveGraphicsState(),L(new yt(ot,0,0,-ot,0,Wo()*ot).toString()+" cm"),this.setFontSize(this.getFontSize()/ot),h="n",Y="advanced"}function de(){this.restoreGraphicsState(),h="S",Y="compat"}var je=f.__private__.combineFontStyleAndFontWeight=function(p,w){if("bold"==p&&"normal"==w||"bold"==p&&400==w||"normal"==p&&"italic"==w||"bold"==p&&"italic"==w)throw new Error("Invalid Combination of fontweight and fontstyle");return w&&(p=400==w||"normal"===w?"italic"===p?"italic":"normal":700!=w&&"bold"!==w||"normal"!==p?(700==w?"bold":w)+""+p:"bold"),p};f.advancedAPI=function(p){var w="compat"===Y;return w&&ee.call(this),"function"!=typeof p||(p(this),w&&de.call(this)),this},f.compatAPI=function(p){var w="advanced"===Y;return w&&de.call(this),"function"!=typeof p||(p(this),w&&ee.call(this)),this},f.isAdvancedAPI=function(){return"advanced"===Y};var ie,q=function(p){if("advanced"!==Y)throw new Error(p+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ae=f.roundToPrecision=f.__private__.roundToPrecision=function(p,w){var A=a||w;if(isNaN(p)||isNaN(A))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return p.toFixed(A).replace(/0+$/,"")};ie=f.hpf=f.__private__.hpf="number"==typeof u?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return ae(p,u)}:"smart"===u?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return ae(p,p>-1&&p<1?16:5)}:function(p){if(isNaN(p))throw new Error("Invalid argument passed to 
1jsPDF.hpf");return ae(p,16)};var ke=f.f2=f.__private__.f2=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f2");return ae(p,2)},I=f.__private__.f3=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f3");return ae(p,3)},P=f.scale=f.__private__.scale=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===Y?p*ot:"advanced"===Y?p:void 0},V=function(p){return P(function(p){return"compat"===Y?Wo()-p:"advanced"===Y?p:void 0}(p))};f.__private__.setPrecision=f.setPrecision=function(p){"number"==typeof parseInt(p,10)&&(a=parseInt(p,10))};var he,pe="00000000000000000000000000000000",ge=f.__private__.getFileId=function(){return pe},se=f.__private__.setFileId=function(p){return pe=void 0!==p&&/^[a-fA-F0-9]{32}$/.test(p)?p.toUpperCase():pe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==v&&(rn=new Ar(v.userPermissions,v.userPassword,v.ownerPassword,pe)),pe};f.setFileId=function(p){return se(p),this},f.getFileId=function(){return ge()};var we=f.__private__.convertDateToPDFDate=function(p){var w=p.getTimezoneOffset(),A=w<0?"+":"-",B=Math.floor(Math.abs(w/60)),te=Math.abs(w%60),be=[A,G(B),"'",G(te),"'"].join("");return["D:",p.getFullYear(),G(p.getMonth()+1),G(p.getDate()),G(p.getHours()),G(p.getMinutes()),G(p.getSeconds()),be].join("")},Fe=f.__private__.convertPDFDateToDate=function(p){var w=parseInt(p.substr(2,4),10),A=parseInt(p.substr(6,2),10)-1,B=parseInt(p.substr(8,2),10),te=parseInt(p.substr(10,2),10),be=parseInt(p.substr(12,2),10),De=parseInt(p.substr(14,2),10);return new Date(w,A,B,te,be,De,0)},it=f.__private__.setCreationDate=function(p){var w;if(void 0===p&&(p=new Date),p instanceof Date)w=we(p);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(p))throw new Error("Invalid argument passed to jsPDF.setCreationDate");w=p}return he=w},S=f.__private__.getCreationDate=function(p){var w=he;return"jsDate"===p&&(w=Fe(he)),w};f.setCreationDate=function(p){return it(p),this},f.getCreationDate=function(p){return S(p)};var O,G=f.__private__.padd2=function(p){return("0"+parseInt(p)).slice(-2)},J=f.__private__.padd2Hex=function(p){return("00"+(p=p.toString())).substr(p.length)},K=0,ce=[],ue=[],_e=0,Le=[],Ae=[],tt=!1,Ze=ue;f.__private__.setCustomOutputDestination=function(p){tt=!0,Ze=p};var xe=function(p){tt||(Ze=p)};f.__private__.resetCustomOutputDestination=function(){tt=!1,Ze=ue};var L=f.__private__.out=function(p){return p=p.toString(),_e+=p.length+1,Ze.push(p),Ze},Tt=f.__private__.write=function(p){return L(1===arguments.length?p.toString():Array.prototype.join.call(arguments," "))},_t=f.__private__.getArrayBuffer=function(p){for(var w=p.length,A=new ArrayBuffer(w),B=new Uint8Array(A);w--;)B[w]=p.charCodeAt(w);return A},Oe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Oe};var Ye=i.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(p){return Ye="advanced"===Y?p/ot:p,this};var nt,Ke=f.__private__.getFontSize=f.getFontSize=function(){return"compat"===Y?Ye:Ye*ot},ft=i.R2L||!1;f.__private__.setR2L=f.setR2L=function(p){return ft=p,this},f.__private__.getR2L=f.getR2L=function(){return ft};var St,Pt=f.__private__.setZoomMode=function(p){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(p))nt=p;else if(isNaN(p)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(p))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+p+'" is not recognized.');nt=p}else nt=parseInt(p,10)};f.__private__.getZoomMode=function(){return nt};var Nt,qt=f.__private__.setPageMode=function(p){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+p+'" is not recognized.');St=p};f.__private__.getPageMode=function(){return St};var Wt=f.__private__.setLayoutMode=function(p){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(p))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+p+'" is not recognized.');Nt=p};f.__private__.getLayoutMode=function(){return Nt},f.__private__.setDisplayMode=f.setDisplayMode=function(p,w,A){return Pt(p),Wt(w),qt(A),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(p){if(-1===Object.keys(xt).indexOf(p))throw new Error("Invalid argument passed to 
1jsPDF.getDocumentProperty");return xt[p]},f.__private__.getDocumentProperties=function(){return xt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(p){for(var w in xt)xt.hasOwnProperty(w)&&p[w]&&(xt[w]=p[w]);return this},f.__private__.setDocumentProperty=function(p,w){if(-1===Object.keys(xt).indexOf(p))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[p]=w};var Mt,ot,on,Bt,Wn,ti={},ci={},mo=[],Yt={},_r={},fi={},Zn={},Ro=null,mi=0,Et=[],Jt=new qd(f),hr=i.hotfixes||[],Ui={},go={},vo=[],yt=function p(w,A,B,te,be,De){if(!(this instanceof p))return new p(w,A,B,te,be,De);isNaN(w)&&(w=1),isNaN(A)&&(A=0),isNaN(B)&&(B=0),isNaN(te)&&(te=1),isNaN(be)&&(be=0),isNaN(De)&&(De=0),this._matrix=[w,A,B,te,be,De]};Object.defineProperty(yt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(yt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(yt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(yt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(yt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(yt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(yt.prototype,"a",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(yt.prototype,"b",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(yt.prototype,"c",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(yt.prototype,"d",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(yt.prototype,"e",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(yt.prototype,"f",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(yt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(yt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(yt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(yt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),yt.prototype.join=function(p){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ie).join(p)},yt.prototype.multiply=function(p){return new yt(p.sx*this.sx+p.shy*this.shx,p.sx*this.shy+p.shy*this.sy,p.shx*this.sx+p.sy*this.shx,p.shx*this.shy+p.sy*this.sy,p.tx*this.sx+p.ty*this.shx+this.tx,p.tx*this.shy+p.ty*this.sy+this.ty)},yt.prototype.decompose=function(){var p=this.sx,w=this.shy,A=this.shx,B=this.sy,te=this.tx,be=this.ty,De=Math.sqrt(p*p+w*w),at=(p/=De)*A+(w/=De)*B;A-=p*at,B-=w*at;var mt=Math.sqrt(A*A+B*B);return at/=mt,p*(B/=mt)<w*(A/=mt)&&(p=-p,w=-w,at=-at,De=-De),{scale:new yt(De,0,0,mt,0,0),translate:new yt(1,0,0,1,te,be),rotate:new yt(p,w,-w,p,0,0),skew:new yt(1,0,at,1,0,0)}},yt.prototype.toString=function(p){return this.join(" ")},yt.prototype.inversed=function(){var p=this.sx,w=this.shy,A=this.shx,B=this.sy,te=this.tx,be=this.ty,De=1/(p*B-w*A),at=B*De,mt=-w*De,It=-A*De,Rt=p*De;return new yt(at,mt,It,Rt,-at*te-It*be,-mt*te-Rt*be)},yt.prototype.applyToPoint=function(p){return new ra(p.x*this.sx+p.y*this.shx+this.tx,p.x*this.shy+p.y*this.sy+this.ty)},yt.prototype.applyToRectangle=function(p){var w=this.applyToPoint(p),A=this.applyToPoint(new ra(p.x+p.w,p.y+p.h));return new Ja(w.x,w.y,A.x-w.x,A.y-w.y)},yt.prototype.clone=function(){return new yt(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},f.Matrix=yt;var Qn=f.matrixMult=function(p,w){return w.multiply(p)},bo=new yt(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=bo;var vn=function(p,w){if(!_r[p]){var A=(w instanceof dr?"Sh":"P")+(Object.keys(Yt).length+1).toString(10);w.id=A,_r[p]=A,Yt[A]=w,Jt.publish("addPattern",w)}};f.ShadingPattern=dr,f.TilingPattern=Lr,f.addShadingPattern=function(p,w){return q("addShadingPattern()"),vn(p,w),this},f.beginTilingPattern=function(p){q("beginTilingPattern()"),sl(p.boundingBox[0],p.boundingBox[1],p.boundingBox[2]-p.boundingBox[0],p.boundingBox[3]-p.boundingBox[1],p.matrix
vendor: 17,260 bytes, line 1
1)},f.endTilingPattern=function(p,w){q("endTilingPattern()"),w.stream=Ae[O].join("\n"),vn(p,w),Jt.publish("endTilingPattern",w),vo.pop().restore()};var p,Di=f.__private__.newObject=function(){var p=Si();return Sn(p,!0),p},Si=f.__private__.newObjectDeferred=function(){return K++,ce[K]=function(){return _e},K},Sn=function(p,w){return w="boolean"==typeof w&&w,ce[p]=_e,w&&L(p+" 0 obj"),p},Ur=f.__private__.newAdditionalObject=function(){var p={objId:Si(),content:""};return Le.push(p),p},To=Si(),Kn=Si(),eo=f.__private__.decodeColorString=function(p){var w=p.split(" ");if(2!==w.length||"g"!==w[1]&&"G"!==w[1])5===w.length&&("k"===w[4]||"K"===w[4])&&(w=[(1-w[0])*(1-w[3]),(1-w[1])*(1-w[3]),(1-w[2])*(1-w[3]),"r"]);else{var A=parseFloat(w[0]);w=[A,A,A,"r"]}for(var B="#",te=0;te<3;te++)B+=("0"+Math.floor(255*parseFloat(w[te])).toString(16)).slice(-2);return B},to=f.__private__.encodeColorString=function(p){var w;"string"==typeof p&&(p={ch1:p});var A=p.ch1,B=p.ch2,te=p.ch3,be=p.ch4,De="draw"===p.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof A&&"#"!==A.charAt(0)){var at=new Od(A);if(at.ok)A=at.toHex();else if(!/^\d*\.?\d*$/.test(A))throw new Error('Invalid color "'+A+'" passed to jsPDF.encodeColorString.')}if("string"==typeof A&&/^#[0-9A-Fa-f]{3}$/.test(A)&&(A="#"+A[1]+A[1]+A[2]+A[2]+A[3]+A[3]),"string"==typeof A&&/^#[0-9A-Fa-f]{6}$/.test(A)){var mt=parseInt(A.substr(1),16);A=mt>>16&255,B=mt>>8&255,te=255&mt}if(void 0===B||void 0===be&&A===B&&B===te)w="string"==typeof A?A+" "+De[0]:2===p.precision?ke(A/255)+" "+De[0]:I(A/255)+" "+De[0];else if(void 0===be||"object"===(0,Kt.A)(be)){if(be&&!isNaN(be.a)&&0===be.a)return["1.","1.","1.",De[1]].join(" ");w="string"==typeof A?[A,B,te,De[1]].join(" "):2===p.precision?[ke(A/255),ke(B/255),ke(te/255),De[1]].join(" "):[I(A/255),I(B/255),I(te/255),De[1]].join(" ")}else w="string"==typeof A?[A,B,te,be,De[2]].join(" "):2===p.precision?[ke(A),ke(B),ke(te),ke(be),De[2]].join(" "):[I(A),I(B),I(te),I(be),De[2]].join(" ");return w},yo=f.__private__.getFilters=function(){return s},An=f.__private__.putStream=function(p){var w=(p=p||{}).data||"",A=p.filters||yo(),B=p.alreadyAppliedFilters||[],te=p.addLength1||!1,be=w.length,De=p.objectId,at=function(an){return an};if(null!==v&&void 0===De)throw new Error("ObjectId must be passed to putStream for file encryption");null!==v&&(at=rn.encryptor(De,0));var mt={};!0===A&&(A=["FlateEncode"]);var It=p.additionalKeyValues||[],Rt=(mt=void 0!==bt.API.processDataByFilters?bt.API.processDataByFilters(w,A):{data:w,reverseChain:[]}).reverseChain+(Array.isArray(B)?B.join(" "):B.toString());if(0!==mt.data.length&&(It.push({key:"Length",value:mt.data.length}),!0===te&&It.push({key:"Length1",value:be})),0!=Rt.length)if(Rt.split("/").length-1==1)It.push({key:"Filter",value:Rt});else{It.push({key:"Filter",value:"["+Rt+"]"});for(var Gt=0;Gt<It.length;Gt+=1)if("DecodeParms"===It[Gt].key){for(var ui=[],gi=0;gi<mt.reverseChain.split("/").length-1;gi+=1)ui.push("null");ui.push(It[Gt].value),It[Gt].value="["+ui.join(" ")+"]"}}L("<<");for(var Ei=0;Ei<It.length;Ei++)L("/"+It[Ei].key+" "+It[Ei].value);L(">>"),0!==mt.data.length&&(L("stream"),L(at(mt.data)),L("endstream"))},ko=f.__private__.putPage=function(p){var w=p.number,A=p.data,B=p.objId,te=p.contentsObjId;Sn(B,!0),L("<</Type /Page"),L("/Parent "+p.rootDictionaryObjId+" 0 R"),L("/Resources "+p.resourceDictionaryObjId+" 0 R"),L("/MediaBox ["+parseFloat(ie(p.mediaBox.bottomLeftX))+" "+parseFloat(ie(p.mediaBox.bottomLeftY))+" "+ie(p.mediaBox.topRightX)+" "+ie(p.mediaBox.topRightY)+"]"),null!==p.cropBox&&L("/CropBox ["+ie(p.cropBox.bottomLeftX)+" "+ie(p.cropBox.bottomLeftY)+" "+ie(p.cropBox.topRightX)+" "+ie(p.cropBox.topRightY)+"]"),null!==p.bleedBox&&L("/BleedBox ["+ie(p.bleedBox.bottomLeftX)+" "+ie(p.bleedBox.bottomLeftY)+" "+ie(p.bleedBox.topRightX)+" "+ie(p.bleedBox.topRightY)+"]"),null!==p.trimBox&&L("/TrimBox ["+ie(p.trimBox.bottomLeftX)+" "+ie(p.trimBox.bottomLeftY)+" "+ie(p.trimBox.topRightX)+" "+ie(p.trimBox.topRightY)+"]"),null!==p.artBox&&L("/ArtBox ["+ie(p.artBox.bottomLeftX)+" "+ie(p.artBox.bottomLeftY)+" "+ie(p.artBox.topRightX)+" "+ie(p.artBox.topRightY)+"]"),"number"==typeof p.userUnit&&1!==p.userUnit&&L("/UserUnit "+p.userUnit),Jt.publish("putPage",{objId:B,pageContext:Et[w],pageNumber:w,page:A}),L("/Contents "+te+" 0 R"),L(">>"),L("endobj");var be=A.join("\n");return"advanced"===Y&&(be+="\nQ"),Sn(te,!0),An({data:be,filters:yo(),objectId:te}),L("endobj"),B},fr=f.__private__.putPages=function(){var p,w,A=[];for(p=1;p<=mi;p++)Et[p].objId=Si(),Et[p].contentsObjId=Si();for(p=1;p<=mi;p++)A.push(ko({number:p,data:Ae[p],objId:Et[p].objId,contentsObjId:Et[p].contentsObjId,mediaBox:Et[p].mediaBox,cropBox:Et[p].cropBox,bleedBox:Et[p].bleedBox,trimBox:Et[p].trimBox,artBox:Et[p].artBox,userUnit:Et[p].userUnit,rootDictionaryObjId:To,resourceDictionaryObjId:Kn}));Sn(To,!0),L("<</Type /Pages");var B="/Kids [";for(w=0;w<mi;w++)B+=A[w]+" 0 R ";L(B+"]"),L("/Count "+mi),L(">>"),L("endobj"),Jt.publish("postPutPages")},Xr=function(p){Jt.publish("putFont",{font:p,out:L,newObject:Di,putStream:An}),!0!==p.isAlreadyPutted&&(p.objectNumber=Di(),L("<<"),L("/Type /Font"),L("/BaseFont /"+Gr(p.postScriptName)),L("/Subtype /Type1"),"string"==typeof p.encoding&&L("/Encoding /"+p.encoding),L("/FirstChar 32"),L("/LastChar 255"),L(">>"),L("endobj"))},Hr=function(p){p.objectNumber=Di();var w=[];w.push({key:"Type",value:"/XObject"}),w.push({key:"Subtype",value:"/Form"}),w.push({key:"BBox",value:"["+[ie(p.x),ie(p.y),ie(p.x+p.width),ie(p.y+p.height)].join(" ")+"]"}),w.push({key:"Matrix",value:"["+p.matrix.toString()+"]"});var A=p.pages[1].join("\n");An({data:A,additionalKeyValues:w,objectId:p.objectNumber}),L("endobj")},hc=function(p,w){w||(w=21);var A=Di(),B=function(p,w){var A,B=[],te=1/(w-1);for(A=0;A<1;A+=te)B.push(A);B.push(1),0!=p[0].offset&&p.unshift({offset:0,color:p[0].color}),1!=p[p.length-1].offset&&p.push({offset:1,color:p[p.length-1].color});for(var at="",mt=0,It=0;It<B.length;It++){for(A=B[It];A>p[mt+1].offset;)mt++;var Rt=p[mt].offset,Gt=(A-Rt)/(p[mt+1].offset-Rt),ui=p[mt].color,gi=p[mt+1].color;at+=J(Math.round((1-Gt)*ui[0]+Gt*gi[0]).toString(16))+J(Math.round((1-Gt)*ui[1]+Gt*gi[1]).toString(16))+J(Math.round((1-Gt)*ui[2]+Gt*gi[2]).toString(16))}return at.trim()}(p.colors,w),te=[];te.push({key:"FunctionType",value:"0"}),te.push({key:"Domain",value:"[0.0 1.0]"}),te.push({key:"Size",value:"["+w+"]"}),te.push({key:"BitsPerSample",value:"8"}),te.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),te.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),An({data:B,additionalKeyValues:te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:A}),L("endobj"),p.objectNumber=Di(),L("<< /ShadingType "+p.type),L("/ColorSpace /DeviceRGB");var be="/Coords ["+ie(parseFloat(p.coords[0]))+" "+ie(parseFloat(p.coords[1]))+" ";be+=2===p.type?ie(parseFloat(p.coords[2]))+" "+ie(parseFloat(p.coords[3])):ie(parseFloat(p.coords[2]))+" "+ie(parseFloat(p.coords[3]))+" "+ie(parseFloat(p.coords[4]))+" "+ie(parseFloat(p.coords[5])),L(be+="]"),p.matrix&&L("/Matrix ["+p.matrix.toString()+"]"),L("/Function "+A+" 0 R"),L("/Extend [true true]"),L(">>"),L("endobj")},fc=function(p,w){var A=Si(),B=Di();w.push({resourcesOid:A,objectOid:B}),p.objectNumber=B;var te=[];te.push({key:"Type",value:"/Pattern"}),te.push({key:"PatternType",value:"1"}),te.push({key:"PaintType",value:"1"}),te.push({key:"TilingType",value:"1"}),te.push({key:"BBox",value:"["+p.boundingBox.map(ie).join(" ")+"]"}),te.push({key:"XStep",value:ie(p.xStep)}),te.push({key:"YStep",value:ie(p.yStep)}),te.push({key:"Resources",value:A+" 0 R"}),p.matrix&&te.push({key:"Matrix",value:"["+p.matrix.toString()+"]"}),An({data:p.stream,additionalKeyValues:te,objectId:p.objectNumber}),L("endobj")},Ys=function(p){for(var w in p.objectNumber=Di(),L("<<"),p)switch(w){case"opacity":L("/ca "+ke(p[w]));break;case"stroke-opacity":L("/CA "+ke(p[w]))}L(">>"),L("endobj")},wi=function(p){Sn(p.resourcesOid,!0),L("<<"),L("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var p in L("/Font <<"),ti)ti.hasOwnProperty(p)&&(!1===g||!0===g&&b.hasOwnProperty(p))&&L("/"+p+" "+ti[p].objectNumber+" 0 R");L(">>")}(),function(){if(Object.keys(Yt).length>0){for(var p in L("/Shading <<"),Yt)Yt.hasOwnProperty(p)&&Yt[p]instanceof dr&&Yt[p].objectNumber>=0&&L("/"+p+" "+Yt[p].objectNumber+" 0 R");Jt.publish("putShadingPatternDict"),L(">>")}}(),function(p){if(Object.keys(Yt).length>0){for(var w in L("/Pattern <<"),Yt)Yt.hasOwnProperty(w)&&Yt[w]instanceof f.TilingPattern&&Yt[w].objectNumber>=0&&Yt[w].objectNumber<p&&L("/"+w+" "+Yt[w].objectNumber+" 0 R");Jt.publish("putTilingPatternDict"),L(">>")}}(p.objectOid),function(){if(Object.keys(fi).length>0){var p;for(p in L("/ExtGState <<"),fi)fi.hasOwnProperty(p)&&fi[p].objectNumber>=0&&L("/"+p+" "+fi[p].objectNumber+" 0 R");Jt.publish("putGStateDict"),L(">>")}}(),function(){for(var p in L("/XObject <<"),Ui)Ui.hasOwnProperty(p)&&Ui[p].objectNumber>=0&&L("/"+p+" "+Ui[p].objectNumber+" 0 R");Jt.publish("putXobjectDict"),L(">>")}(),L(">>"),L("endobj")},zs=function(p){ci[p.fontName]=ci[p.fontName]||{},ci[p.fontName][p.fontStyle]=p.id},Oa=function(p,w,A,B,te){var be={id:"F"+(Object.keys(ti).length+1).toString(10),postScriptName:p,fontName:w,fontStyle:A,encoding:B,isStandardFont:te||!1,metadata:{}};return Jt.publish("addFont",{font:be,instance:this}),ti[be.id]=be,zs(be),be.id},bn=f.__private__.pdfEscape=f.pdfEscape=function(p,w){return function(p,w){var A,B,te,be,De,at,mt,It,Rt;if(te=(w=w||{}).sourceEncoding||"Unicode",De=w.outputEncoding,(w.autoencode||De)&&ti[Mt].metadata&&ti[Mt].metadata[te]&&ti[Mt].metadata[te].encoding&&(be=ti[Mt].metadata[te].encoding,!De&&ti[Mt].encoding&&(De=ti[Mt].encoding),!De&&be.codePages&&(De=be.codePages[0]),"string"==typeof De&&(De=be[De]),De)){for(mt=!1,at=[],A=0,B=p.length;A<B;A++)(It=De[p.charCodeAt(A)])?at.push(String.fromCharCode(It)):at.push(p[A]),at[A].charCodeAt(0)>>8&&(mt=!0);p=at.join("")}for(A=p.length;void 0===mt&&0!==A;)p.charCodeAt(A-1)>>8&&(mt=!0),A--;if(!mt)return p;for(at=w.noBOM?[]:[254,255],A=0,B=p.length;A<B;A++){if((Rt=(It=p.charCodeAt(A))>>8)>>8)throw new Error("Character at position "+A+" of string '"+p+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");at.push(Rt),at.push(It-(Rt<<8))}return String.fromCharCode.apply(void 0,at)}(p,w).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Aa=f.__private__.beginPage=function(p){Ae[++mi]=[],Et[mi]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(p[0]),topRightY:Number(p[1])}},Ws(mi),xe(Ae[O])},Hs=function(p,w){var A,B,te;switch(t=w||t,"string"==typeof p&&(A=x(p.toLowerCase()),Array.isArray(A)&&(B=A[0],te=A[1])),Array.isArray(p)&&(B=p[0]*ot,te=p[1]*ot),isNaN(B)&&(B=o[0],te=o[1]),(B>14400||te>14400)&&(ei.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),B=Math.min(14400,B),te=Math.min(14400,te)),o=[B,te],t.substr(0,1)){case"l":te>B&&(o=[te,B]);break;case"p":B>te&&(o=[te,B])}Aa(o),il(Va),L(no),0!==$a&&L($a+" J"),0!==Ya&&L(Ya+" j"),Jt.publish("addPage",{pageNumber:mi})},kc=function(p){p>0&&p<=mi&&(Ae.splice(p,1),Et.splice(p,1),mi--,O>mi&&(O=mi),this.setPage(O))},Ws=function(p){p>0&&p<=mi&&(O=p)},wc=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return Ae.length-1},Zs=function(p,w,A){var B,te=void 0;return A=A||{},w=void 0!==w?w:ti[Mt].fontStyle,B=(p=void 0!==p?p:ti[Mt].fontName).toLowerCase(),void 0!==ci[B]&&void 0!==ci[B][w]?te=ci[B][w]:void 0!==ci[p]&&void 0!==ci[p][w]?te=ci[p][w]:!1===A.disableWarning&&ei.warn("Unable to look up font label for font '"+p+"', '"+w+"'. Refer to getFontList() for available fonts."),te||A.noFallback||null==(te=ci.times[w])&&(te=ci.times.normal),te},xc=f.__private__.putInfo=function(){var p=Di(),w=function(B){return B};for(var A in null!==v&&(w=rn.encryptor(p,0)),L("<<"),L("/Producer ("+bn(w("jsPDF "+bt.version))+")"),xt)xt.hasOwnProperty(A)&&xt[A]&&L("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+bn(w(xt[A]))+")");L("/CreationDate ("+bn(w(he))+")"),L(">>"),L("endobj")},Ga=f.__private__.putCatalog=function(p){var w=(p=p||{}).rootDictionaryObjId||To;switch(Di(),L("<<"),L("/Type /Catalog"),L("/Pages "+w+" 0 R"),nt||(nt="fullwidth"),nt){case"fullwidth":L("/OpenAction [3 0 R /FitH null]");break;case"fullheight":L("/OpenAction [3 0 R /FitV null]");break;case"fullpage":L("/OpenAction [3 0 R /Fit]");break;case"original":L("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+nt;"%"===A.substr(A.length-1)&&(nt=parseInt(nt)/100),"number"==typeof nt&&L("/OpenAction [3 0 R /XYZ null null "+ke(nt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":L("/PageLayout /OneColumn");break;case"single":L("/PageLayout /SinglePage");break;case"two":case"twoleft":L("/PageLayout /TwoColumnLeft");break;case"tworight":L("/PageLayout /TwoColumnRight")}St&&L("/PageMode /"+St),Jt.publish("putCatalog"),L(">>"),L("endobj")},Cc=f.__private__.putTrailer=function(){L("trailer"),L("<<"),L("/Size "+(K+1)),L("/Root "+K+" 0 R"),L("/Info "+(K-1)+" 0 R"),null!==v&&L("/Encrypt "+rn.oid+" 0 R"),L("/ID [ <"+pe+"> <"+pe+"> ]"),L(">>")},jc=f.__private__.putHeader=function(){L("%PDF-"+R),L("%\xba\xdf\xac\xe0")},Fc=f.__private__.putXRef=function(){var p="0000000000";L("xref"),L("0 "+(K+1)),L("0000000000 65535 f ");for(var w=1;w<=K;w++)L("function"==typeof ce[w]?(p+ce[w]()).slice(-10)+" 00000 n ":void 0!==ce[w]?(p+ce[w]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},Io=f.__private__.buildDocument=function(){K=0,_e=0,ue=[],ce=[],Le=[],To=Si(),Kn=Si(),xe(ue),Jt.publish("buildDocument"),jc(),fr(),function(){Jt.publish("putAdditionalObjects");for(var p=0;p<Le.length;p++){var w=Le[p];Sn(w.objId,!0),L(w.content),L("endobj")}Jt.publish("postPutAdditionalObjects")}(),function(){var p=[];(function(){for(var p in ti)ti.hasOwnProperty(p)&&(!1===g||!0===g&&b.hasOwnProperty(p))&&Xr(ti[p])})(),function(){var p;for(p in fi)fi.hasOwnProperty(p)&&Ys(fi[p])}(),function(){for(var p in Ui)Ui.hasOwnProperty(p)&&Hr(Ui[p])}(),function(p){var w;for(w in Yt)Yt.hasOwnProperty(w)&&(Yt[w]instanceof dr?hc(Yt[w]):Yt[w]instanceof Lr&&fc(Yt[w],p))}(p),Jt.publish("putResources"),p.forEach(wi),wi({resourcesOid:Kn,objectOid:Number.MAX_SAFE_INTEGER}),Jt.publish("postPutResources")}(),null!==v&&(rn.oid=Di(),L("<<"),L("/Filter /Standard"),L("/V "+rn.v),L("/R "+rn.r),L("/U <"+rn.toHexString(rn.U)+">"),L("/O <"+rn.toHexString(rn.O)+">"),L("/P "+rn.P),L(">>"),L("endobj")),xc(),Ga();var p=_e;return Fc(),Cc(),L("startxref"),L(""+p),L("%%EOF"),xe(Ae[O]),ue.join("\n")},ea=f.__private__.getBlob=function(p){return new Blob([_t(p)],{type:"application/pdf"})},ta=f.output=f.__private__.output=((p=function(p,w){switch("string"==typeof(w=w||{})?w={filename:w}:w.filename=w.filename||"generated.pdf",p){case void 0:return Io();case"save":f.save(w.filename);break;case"arraybuffer":return _t(Io());case"blob":return ea(Io());case"bloburi":case"bloburl":if(void 0!==kt.URL&&"function"==typeof kt.URL.createObjectURL)return kt.URL&&kt.URL.createObjectURL(ea(Io()))||void 0;ei.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var A="",B=Io();try{A=nc(B)}catch{A=nc(unescape(encodeURIComponent(B)))}return"data:application/pdf;filename="+w.filename+";base64,"+A;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(kt)){var te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",be=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';w.pdfObjectUrl&&(te=w.pdfObjectUrl,be="");var De='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+te+'"'+be+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(w)+");<\/script></body></html>",at=kt.open();return null!==at&&at.document.write(De),at}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(kt)){var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(w.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+w.filename+'" width="500px" height="400px" /></body></html>',It=kt.open();if(null!==It){It.document.write(mt);var Rt=this;It.document.documentElement.querySelector("#pdfViewer").onload=function(){It.document.title=w.filename,It.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Rt.output("bloburl"))}}return It}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(kt))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",w)+'"></iframe></body></html>
1',ui=kt.open();if(null!==ui&&(ui.document.write(Gt),ui.document.title=w.filename),ui||typeof safari>"u")return ui;break;case"datauri":case"dataurl":return kt.document.location.href=this.output("datauristring",w);default:return null}}).foo=function(){try{return p.apply(this,arguments)}catch(B){var w=B.stack||"";~w.indexOf(" at ")&&(w=w.split(" at ")[1]);var A="Error in function "+w.split("\n")[0].split("<")[0]+": "+B.message;if(!kt.console)throw new Error(A);kt.console.error(A,B),kt.alert&&alert(A)}},p.foo.bar=p,p.foo),Qs=function(p){return!0===Array.isArray(hr)&&hr.indexOf(p)>-1};switch(n){case"pt":ot=1;break;case"mm":ot=72/25.4;break;case"cm":ot=72/2.54;break;case"in":ot=72;break;case"px":ot=1==Qs("px_scaling")?.75:96/72;break;case"pc":case"em":ot=12;break;case"ex":ot=6;break;default:if("number"!=typeof n)throw new Error("Invalid unit: "+n);ot=n}var rn=null;it(),se();var Ks=f.__private__.getPageInfo=f.getPageInfo=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Et[p].objId,pageNumber:p,pageContext:Et[p]}},jt=f.__private__.getPageInfoByObjId=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var w in Et)if(Et[w].objId===p)break;return Ks(w)},Ec=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:Et[O].objId,pageNumber:O,pageContext:Et[O]}};f.addPage=function(){return Hs.apply(this,arguments),this},f.setPage=function(){return Ws.apply(this,arguments),xe.call(this,Ae[O]),this},f.insertPage=function(p){return this.addPage(),this.movePage(O,p),this},f.movePage=function(p,w){var A,B;if(p>w){A=Ae[p],B=Et[p];for(var te=p;te>w;te--)Ae[te]=Ae[te-1],Et[te]=Et[te-1];Ae[w]=A,Et[w]=B,this.setPage(w)}else if(p<w){A=Ae[p],B=Et[p];for(var be=p;be<w;be++)Ae[be]=Ae[be+1],Et[be]=Et[be+1];Ae[w]=A,Et[w]=B,this.setPage(w)}return this},f.deletePage=function(){return kc.apply(this,arguments),this},f.__private__.text=f.text=function(p,w,A,B,te){var be,De,at,mt,It,Rt,Gt,ui,gi,Ei=(B=B||{}).scope||this;if("number"==typeof p&&"number"==typeof w&&("string"==typeof A||Array.isArray(A))){var an=A;A=w,w=p,p=an}if(arguments[3]instanceof yt?(q("The transform parameter of text() with a Matrix value"),gi=te):(at=arguments[4],mt=arguments[5],"object"===(0,Kt.A)(Gt=arguments[3])&&null!==Gt||("string"==typeof at&&(mt=at,at=null),"string"==typeof Gt&&(mt=Gt,Gt=null),"number"==typeof Gt&&(at=Gt,Gt=null),B={flags:Gt,angle:at,align:mt})),isNaN(w)||isNaN(A)||null==p)throw new Error("Invalid arguments passed to jsPDF.text");if(0===p.length)return Ei;var oo,qi="",En="number"==typeof B.lineHeightFactor?B.lineHeightFactor:gr,Co=Ei.internal.scaleFactor;function ll(oi){return oi=oi.split("\t").join(Array(B.TabLen||9).join(" ")),bn(oi,Gt)}function Ha(oi){for(var ri,Ci=oi.concat(),Pi=[],Oo=Ci.length;Oo--;)"string"==typeof(ri=Ci.shift())?Pi.push(ri):Array.isArray(oi)&&(1===ri.length||void 0===ri[1]&&void 0===ri[2])?Pi.push(ri[0]):Pi.push([ri[0],ri[1],ri[2]]);return Pi}function Wa(oi,ri){var Ci;if("string"==typeof oi)Ci=ri(oi)[0];else if(Array.isArray(oi)){for(var Pi,Oo,os=oi.concat(),ma=[],_l=os.length;_l--;)"string"==typeof(Pi=os.shift())?ma.push(ri(Pi)[0]):Array.isArray(Pi)&&"string"==typeof Pi[0]&&(Oo=ri(Pi[0],Pi[1],Pi[2]),ma.push([Oo[0],Oo[1],Oo[2]]));Ci=ma}return Ci}var sa=!1,Za=!0;if("string"==typeof p)sa=!0;else if(Array.isArray(p)){var Qa=p.concat();De=[];for(var la,Xi=Qa.length;Xi--;)("string"!=typeof(la=Qa.shift())||Array.isArray(la)&&"string"!=typeof la[0])&&(Za=!1);sa=Za}if(!1===sa)throw new Error('Type of text must be string or Array. "'+p+'" is not recognized.');"string"==typeof p&&(p=p.match(/[\r?\n]/)?p.split(/\r\n|\r|\n/g):[p]);var ca=Ye/Ei.internal.scaleFactor,da=ca*(En-1);switch(B.baseline){case"bottom":A-=da;break;case"top":A+=ca-da;break;case"hanging":A+=ca-2*da;break;case"middle":A+=ca/2-da}if((Rt=B.maxWidth||0)>0&&("string"==typeof p?p=Ei.splitTextToSize(p,Rt):"[object Array]"===Object.prototype.toString.call(p)&&(p=p.reduce(function(oi,ri){return oi.concat(Ei.splitTextToSize(ri,Rt))},[]))),Jt.publish("preProcessText",be={text:p,x:w,y:A,options:B,mutex:{pdfEscape:bn,activeFontKey:Mt,fonts:ti,activeFontSize:Ye}}),p=be.text,at=(B=be.options).angle,gi instanceof yt||!at||"number"!=typeof at)at&&at instanceof yt&&(gi=at);else{at*=Math.PI/180,0===B.rotationDirection&&(at=-at),"advanced"===Y&&(at=-at);var ua=Math.cos(at),Ka=Math.sin(at);gi=new yt(ua,Ka,-Ka,ua,0,0)}"advanced"!==Y||gi||(gi=bo),void 0!==(It=B.charSpace||oa)&&(qi+=ie(P(It))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(ui=B.horizontalScale)&&(qi+=ie(100*ui)+" Tz\n");var yn=-1,Gc=void 0!==B.renderingMode?B.renderingMode:B.stroke,es=Ei.internal.getCurrentPageInfo().pageContext;switch(Gc){case 0:case!1:case"fill":yn=0;break;case 1:case!0:case"stroke":yn=1;break;case 2:case"fillThenStroke":yn=2;break;case 3:case"invisible":yn=3;break;case 4:case"fillAndAddForClipping":yn=4;break;case 5:case"strokeAndAddPathForClipping":yn=5;break;
1case 6:case"fillThenStrokeAndAddToPathForClipping":yn=6;break;case 7:case"addToPathForClipping":yn=7}-1!==yn?qi+=yn+" Tr\n":-1!==(void 0!==es.usedRenderingMode?es.usedRenderingMode:-1)&&(qi+="0 Tr\n"),-1!==yn&&(es.usedRenderingMode=yn),mt=B.align||"left";var Gn,pa=Ye*En,dl=Ei.internal.pageSize.getWidth(),ul=ti[Mt];It=B.charSpace||oa,Rt=B.maxWidth||0,Gt=Object.assign({autoencode:!0,noBOM:!0},B.flags);var Zo=[],yr=function(oi){return Ei.getStringUnitWidth(oi,{font:ul,charSpace:It,fontSize:Ye,doKerning:!1})*Ye/Co};if("[object Array]"===Object.prototype.toString.call(p)){var kn;De=Ha(p),"left"!==mt&&(Gn=De.map(yr));var _n,Qo=0;if("right"===mt){w-=Gn[0],p=[],Xi=De.length;for(var Po=0;Po<Xi;Po++)0===Po?(_n=xo(w),kn=Do(A)):(_n=P(Qo-Gn[Po]),kn=-pa),p.push([De[Po],_n,kn]),Qo=Gn[Po]}else if("center"===mt){w-=Gn[0]/2,p=[],Xi=De.length;for(var No=0;No<Xi;No++)0===No?(_n=xo(w),kn=Do(A)):(_n=P((Qo-Gn[No])/2),kn=-pa),p.push([De[No],_n,kn]),Qo=Gn[No]}else if("left"===mt){p=[],Xi=De.length;for(var _a=0;_a<Xi;_a++)p.push(De[_a])}else if("justify"===mt&&"Identity-H"===ul.encoding){p=[],Xi=De.length,Rt=0!==Rt?Rt:dl;for(var Mo=0,xi=0;xi<Xi;xi++)if(kn=0===xi?Do(A):-pa,_n=0===xi?xo(w):Mo,xi<Xi-1){var ts=P((Rt-Gn[xi])/(De[xi].split(" ").length-1)),hn=De[xi].split(" ");p.push([hn[0]+" ",_n,kn]),Mo=0;for(var Ln=1;Ln<hn.length;Ln++){var ha=(yr(hn[Ln-1]+" "+hn[Ln])-yr(hn[Ln]))*Co+ts;p.push(Ln==hn.length-1?[hn[Ln],ha,0]:[hn[Ln]+" ",ha,0]),Mo-=ha}}else p.push([De[xi],_n,kn]);p.push(["",Mo,0])}else{if("justify"!==mt)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(p=[],Xi=De.length,Rt=0!==Rt?Rt:dl,xi=0;xi<Xi;xi++)kn=0===xi?Do(A):-pa,_n=0===xi?xo(w):0,Zo.push(xi<Xi-1?ie(P((Rt-Gn[xi])/(De[xi].split(" ").length-1))):0),p.push([De[xi],_n,kn])}}!0===("boolean"==typeof B.R2L?B.R2L:ft)&&(p=Wa(p,function(oi,ri,Ci){return[oi.split("").reverse().join(""),ri,Ci]})),Jt.publish("postProcessText",be={text:p,x:w,y:A,options:B,mutex:{pdfEscape:bn,activeFontKey:Mt,fonts:ti,activeFontSize:Ye}}),p=be.text,oo=be.mutex.isHex||!1;var is=ti[Mt].encoding;"WinAnsiEncoding"!==is&&"StandardEncoding"!==is||(p=Wa(p,function(oi,ri,Ci){return[ll(oi),ri,Ci]})),De=Ha(p),p=[];for(var kr,wr,Ko,Cr=Array.isArray(De[0])?1:0,er="",ns=function(oi,ri,Ci){var Pi="";return Ci instanceof yt?(Ci="number"==typeof B.angle?Qn(Ci,new yt(1,0,0,1,oi,ri)):Qn(new yt(1,0,0,1,oi,ri),Ci),"advanced"===Y&&(Ci=Qn(new yt(1,0,0,-1,0,0),Ci)),Pi=Ci.join(" ")+" Tm\n"):Pi=ie(oi)+" "+ie(ri)+" Td\n",Pi},qn=0;qn<De.length;qn++){switch(er="",Cr){case 1:Ko=(oo?"<":"(")+De[qn][0]+(oo?">":")"),kr=parseFloat(De[qn][1]),wr=parseFloat(De[qn][2]);break;case 0:Ko=(oo?"<":"(")+De[qn]+(oo?">":")"),kr=xo(w),wr=Do(A)}void 0!==Zo&&void 0!==Zo[qn]&&(er=Zo[qn]+" Tw\n"),0===qn?p.push(er+ns(kr,wr,gi)+Ko):0===Cr?p.push(er+Ko):1===Cr&&p.push(er+ns(kr,wr,gi)+Ko)}p=p.join(0===Cr?" Tj\nT* ":" Tj\n"),p+=" Tj\n";var Vn="BT\n/";return Vn+=Mt+" "+Ye+" Tf\n",Vn+=ie(Ye*En)+" TL\n",Vn+=vr+"\n",Vn+=qi,Vn+=p,L(Vn+="ET"),b[Mt]=!0,Ei};var Rc=f.__private__.clip=f.clip=function(p){return L("evenodd"===p?"W*":"W"),this};f.clipEvenOdd=function(){return Rc("evenodd")},f.__private__.discardPath=f.discardPath=function(){return L("n"),this};var wo=f.__private__.isValidStyle=function(p){var w=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(p)&&(w=!0),w};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(p){return wo(p)&&(h=p),this};var el=f.__private__.getStyle=f.getStyle=function(p){var w=h;switch(p){case"D":case"S":w="S";break;case"F":w="f";break;case"FD":case"DF":w="B";break;case"f":case"f*":case"B":case"B*":w=p}return w},tl=f.close=function(){return L("h"),this};f.stroke=function(){return L("S"),this},f.fill=function(p){return ia("f",p),this},f.fillEvenOdd=function(p){return ia("f*",p),this},f.fillStroke=function(p){return ia("B",p),this},f.fillStrokeEvenOdd=function(p){return ia("B*",p),this};var ia=function(p,w){"object"===(0,Kt.A)(w)?Ic(w,p):L(p)},La=function(p){null===p||"advanced"===Y&&void 0===p||(p=el(p),L(p))};function Tc(p,w,A,B,te){var be=new Lr(w||this.boundingBox,A||this.xStep,B||this.yStep,this.gState,te||this.matrix
vendor: 17,890 bytes, line 1
1);be.stream=this.stream;var De=p+"$$"+this.cloneIndex+++"$$";return vn(De,be),be}var Ic=function(p,w){var A=_r[p.key],B=Yt[A];if(B instanceof dr)L("q"),L(Dc(w)),B.gState&&f.setGState(B.gState),L(p.matrix.toString()+" cm"),L("/"+A+" sh"),L("Q");else if(B instanceof Lr){var te=new yt(1,0,0,-1,0,Wo());p.matrix&&(te=te.multiply(p.matrix||bo),A=Tc.call(B,p.key,p.boundingBox,p.xStep,p.yStep,te).id),L("q"),L("/Pattern cs"),L("/"+A+" scn"),B.gState&&f.setGState(B.gState),L(w),L("Q")}},Dc=function(p){switch(p){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},qa=f.moveTo=function(p,w){return L(ie(P(p))+" "+ie(V(w))+" m"),this},mr=f.lineTo=function(p,w){return L(ie(P(p))+" "+ie(V(w))+" l"),this},zo=f.curveTo=function(p,w,A,B,te,be){return L([ie(P(p)),ie(V(w)),ie(P(A)),ie(V(B)),ie(P(te)),ie(V(be)),"c"].join(" ")),this};f.__private__.line=f.line=function(p,w,A,B,te){if(isNaN(p)||isNaN(w)||isNaN(A)||isNaN(B)||!wo(te))throw new Error("Invalid arguments passed to jsPDF.line");return"compat"===Y?this.lines([[A-p,B-w]],p,w,[1,1],te||"S"):this.lines([[A-p,B-w]],p,w,[1,1]).stroke()},f.__private__.lines=f.lines=function(p,w,A,B,te,be){var De,at,mt,It,Rt,an,qi,oo;if("number"==typeof p&&(oo=A,A=w,w=p,p=oo),B=B||[1,1],be=be||!1,isNaN(w)||isNaN(A)||!Array.isArray(p)||!Array.isArray(B)||!wo(te)||"boolean"!=typeof be)throw new Error("Invalid arguments passed to jsPDF.lines");for(qa(w,A),De=B[0],at=B[1],It=p.length,an=w,qi=A,mt=0;mt<It;mt++)2===(Rt=p[mt]).length?mr(an=Rt[0]*De+an,qi=Rt[1]*at+qi):zo(Rt[0]*De+an,Rt[1]*at+qi,Rt[2]*De+an,Rt[3]*at+qi,an=Rt[4]*De+an,qi=Rt[5]*at+qi);return be&&tl(),La(te),this},f.path=function(p){for(var w=0;w<p.length;w++){var A=p[w],B=A.c;switch(A.op){case"m":qa(B[0],B[1]);break;case"l":mr(B[0],B[1]);break;case"c":zo.apply(this,B);break;case"h":tl()}}return this},f.__private__.rect=f.rect=function(p,w,A,B,te){if(isNaN(p)||isNaN(w)||isNaN(A)||isNaN(B)||!wo(te))throw new Error("Invalid arguments passed to jsPDF.rect");return"compat"===Y&&(B=-B),L([ie(P(p)),ie(V(w)),ie(P(A)),ie(P(B)),"re"].join(" ")),La(te),this},f.__private__.triangle=f.triangle=function(p,w,A,B,te,be,De){if(isNaN(p)||isNaN(w)||isNaN(A)||isNaN(B)||isNaN(te)||isNaN(be)||!wo(De))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[A-p,B-w],[te-A,be-B],[p-te,w-be]],p,w,[1,1],De,!0),this},f.__private__.roundedRect=f.roundedRect=function(p,w,A,B,te,be,De){if(isNaN(p)||isNaN(w)||isNaN(A)||isNaN(B)||isNaN(te)||isNaN(be)||!wo(De))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var at=4/3*(Math.SQRT2-1);return te=Math.min(te,.5*A),be=Math.min(be,.5*B),this.lines([[A-2*te,0],[te*at,0,te,be-be*at,te,be],[0,B-2*be],[0,be*at,-te*at,be,-te,be],[2*te-A,0],[-te*at,0,-te,-be*at,-te,-be],[0,2*be-B],[0,-be*at,te*at,-be,te,-be]],p+te,w,[1,1],De,!0),this},f.__private__.ellipse=f.ellipse=function(p,w,A,B,te){if(isNaN(p)||isNaN(w)||isNaN(A)||isNaN(B)||!wo(te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var be=4/3*(Math.SQRT2-1)*A,De=4/3*(Math.SQRT2-1)*B;return qa(p+A,w),zo(p+A,w-De,p+be,w-B,p,w-B),zo(p-be,w-B,p-A,w-De,p-A,w),zo(p-A,w+De,p-be,w+B,p,w+B),zo(p+be,w+B,p+A,w+De,p+A,w),La(te),this},f.__private__.circle=f.circle=function(p,w,A,B){if(isNaN(p)||isNaN(w)||isNaN(A)||!wo(B))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(p,w,A,A,B)},f.setFont=function(p,w,A){return A&&(w=je(w,A)),Mt=Zs(p,w,{disableWarning:!1}),this};var Pc=f.__private__.getFont=f.getFont=function(){return ti[Zs.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var p,w,A={};for(p in ci)if(ci.hasOwnProperty(p))for(w in A[p]=[],ci[p])ci[p].hasOwnProperty(w)&&A[p].push(w);return A},f.addFont=function(p,w,A,B,te){var be=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==be.indexOf(arguments[3])?te=arguments[3]:arguments[3]&&-1==be.indexOf(arguments[3])&&(A=je(A,B)),Oa.call(this,p,w,A,te=te||"Identity-H")};var gr,Va=i.lineWidth||.200025,na=f.__private__.getLineWidth=f.getLineWidth=function(){return Va},il=f.__private__.setLineWidth=f.setLineWidth=function(p){return Va=p,L(ie(P(p))+" w"),this};f.__private__.setLineDash=bt.API.setLineDash=bt.API.setLineDashPattern=function(p,w){if(p=p||[],w=w||0,isNaN(w)||!Array.isArray(p))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return p=p.map(function(A){return ie(P(A))}).join(" "),w=ie(P(w)),L("["+p+"] "+w+" d"),this};var nl=f.__private__.getLineHeight=f.getLineHeight=function(){return Ye*gr};f.__private__.getLineHeight=f.getLineHeight=function(){return Ye*gr};var ol=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(p){return"number"==typeof(p=p||1.15)&&(gr=p),this},rl=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return gr};ol(i.lineHeight);var xo=f.__private__.getHorizontalCoordinate=function(p){return P(p)},Do=f.__private__.getVerticalCoordinate=function(p){return"advanced"===Y?p:Et[O].mediaBox.topRightY-Et[O].mediaBox.bottomLeftY-P(p)},Nc=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(p){return ie(xo(p))},Ho=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(p){return ie(Do(p))},no=i.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return eo(no)},f.__private__.setStrokeColor=f.setDrawColor=function(p,w,A,B){return no=to({ch1:p,ch2:w,ch3:A,ch4:B,pdfColorType:"draw",precision:2}),L(no),this};var Ba=i.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return eo(Ba)},f.__private__.setFillColor=f.setFillColor=function(p,w,A,B){return Ba=to({ch1:p,ch2:w,ch3:A,ch4:B,pdfColorType:"fill",precision:2}),L(Ba),this};var vr=i.textColor||"0 g",Mc=f.__private__.getTextColor=f.getTextColor=function(){return eo(vr)};f.__private__.setTextColor=f.setTextColor=function(p,w,A,B){return vr=to({ch1:p,ch2:w,ch3:A,ch4:B,pdfColorType:"text",precision:3}),this};var oa=i.charSpace,Oc=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(oa||0)};f.__private__.setCharSpace=f.setCharSpace=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return oa=p,this};var $a=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(p){var w=f.CapJoinStyles[p];if(void 0===w)throw new Error("Line cap style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return $a=w,L(w+" J"),this};var Ya=0;f.__private__.setLineJoin=f.setLineJoin=function(p){var w=f.CapJoinStyles[p];if(void 0===w)throw new Error("Line join style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ya=w,L(w+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(p){if(p=p||0,isNaN(p))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return L(ie(P(p))+" M"),this},f.GState=Ns,f.setGState=function(p){(p="string"==typeof p?fi[Zn[p]]:al(null,p)).equals(Ro)||(L("/"+p.id+" gs"),Ro=p)};var al=function(p,w){if(!p||!Zn[p]){var A=!1;for(var B in fi)if(fi.hasOwnProperty(B)&&fi[B].equals(w)){A=!0;break}if(A)w=fi[B];else{var te="GS"+(Object.keys(fi).length+1).toString(10);fi[te]=w,w.id=te}return p&&(Zn[p]=w.id),Jt.publish("addGState",w),w}};f.addGState=function(p,w){return al(p,w),this},f.saveGraphicsState=function(){return L("q"),mo.push({key:Mt,size:Ye,color:vr}),this},f.restoreGraphicsState=function(){L("Q");var p=mo.pop();return Mt=p.key,Ye=p.size,vr=p.color,Ro=null,this},f.setCurrentTransformationMatrix=function(p){return L(p.toString()+" cm"),this},f.comment=function(p){return L("#"+p),this};var ra=function(p,w){var A=p||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(be){isNaN(be)||(A=parseFloat(be))}});var B=w||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return B},set:function(be){isNaN(be)||(B=parseFloat(be))}});var te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return te},set:function(be){te=be.toString()}}),this},Ja=function(p,w,A,B){ra.call(this,p,w),this.type="rect";var te=A||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return te},set:function(De){isNaN(De)||(te=parseFloat(De))}});var be=B||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return be},set:function(De){isNaN(De)||(be=parseFloat(De))}}),this},Ua=function(){this.page=mi,this.currentPage=O,this.pages=Ae.slice(0),this.pagesContext=Et.slice(0),this.x=on,this.y=Bt,this.matrix=Wn,this.width=br(O),this.height=Wo(O),this.outputDestination=Ze,this.id="",this.objectNumber=-1};Ua.prototype.restore=function(){mi=this.page,Et=this.pagesContext,Ae=this.pages,on=this.x,Bt=this.y,Wn=this.matrix,Xa(O=this.currentPage,this.width),za(O,this.height),Ze=this.outputDestination};var sl=function(p,w,A,B,te){vo.push(new Ua),mi=O=0,Ae=[],on=p,Bt=w,Wn=te,Aa([A,B])};for(var aa in f.beginFormObject=function(p,w,A,B,te){return sl(p,w,A,B,te),this},f.endFormObject=function(p){return function(p){if(go[p])vo.pop().restore();else{var w=new Ua,A="Xo"+(Object.keys(Ui).length+1).toString(10);w.id=A,go[p]=A,Ui[A]=w,Jt.publish("addFormObject",w),vo.pop().restore()}}(p),this},f.doFormObject=function(p,w){var A=Ui[go[p]];return L("q"),L(w.toString()+" cm"),L("/"+A.id+" Do"),L("Q"),this},f.getFormObject=function(p){var w=Ui[go[p]];return{x:w.x,y:w.y,width:w.width,height:w.height,matrix:w.matrix}},f.save=function(p,w){return p=p||"generated.pdf",(w=w||{}).returnPromise=w.returnPromise||!1,!1===w.returnPromise?(cr(ea(Io()),p),"function"==typeof cr.unload&&kt.setTimeout&&setTimeout(cr.unload,911),this):new Promise(function(A,B){try{var te=cr(ea(Io()),p);"function"==typeof cr.unload&&kt.setTimeout&&setTimeout(cr.unload,911),A(te)}catch(be){B(be.message)}})},bt.API)bt.API.hasOwnProperty(aa)&&("events"===aa&&bt.API.events.length?function(p,w){var B,te;for(te=w.length-1;-1!==te;te--)p.subscribe.apply(p,[w[te][0]].concat("function"==typeof(B=w[te][1])?[B]:B))}(Jt,bt.API.events):f[aa]=bt.API[aa]);var br=f.getPageWidth=function(p){return(Et[p=p||O].mediaBox.topRightX-Et[p].mediaBox.bottomLeftX)/ot},Xa=f.setPageWidth=function(p,w){Et[p].mediaBox.topRightX=w*ot+Et[p].mediaBox.bottomLeftX},Wo=f.getPageHeight=function(p){return(Et[p=p||O].mediaBox.topRightY-Et[p].mediaBox.bottomLeftY)/ot},za=f.setPageHeight=function(p,w){Et[p].mediaBox.topRightY=w*ot+Et[p].mediaBox.bottomLeftY};return f.internal={pdfEscape:bn,getStyle:el,getFont:Pc,getFontSize:Ke,getCharSpace:Oc,getTextColor:Mc,getLineHeight:nl,getLineHeightFactor:rl,getLineWidth:na,write:Tt,getHorizontalCoordinate:xo,getVerticalCoordinate:Do,getCoordinateString:Nc,getVerticalCoordinateString:Ho,collections:{},newObject:Di,newAdditionalObject:Ur,newObjectDeferred:Si,newObjectDeferredBegin:Sn,getFilters:yo,putStream:An,events:Jt,scaleFactor:ot,pageSize:{getWidth:function(){return br(O)},setWidth:function(p){Xa(O,p)},getHeight:function(){return Wo(O)},setHeight:function(p){za(O,p)}},encryptionOptions:v,encryption:rn,getEncryptor:function(p){return null!==v?rn.encryptor(p,0):function(w){return w}},output:ta,getNumberOfPages:wc,pages:Ae,out:L,f2:ke,f3:I,getPageInfo:Ks,getPageInfoByObjId:jt,getCurrentPageInfo:Ec,getPDFVersion:C,Point:ra,Rectangle:Ja,Matrix:yt,hasHotfix:Qs},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return br(O)},set:function(p){Xa(O,p)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Wo(O)},set:function(p){za(O,p)},enumerable:!0,configurable:!0}),function(p){for(var w=0,A=Oe.length;w<A;w++){var B=Oa.call(this,p[w][0],p[w][1],p[w][2],Oe[w][3],!0);!1===g&&(b[B]=!0);var te=p[w][0].split("-");zs({id:B,fontName:te[0],fontStyle:te[1]||""})}Jt.publish("addFonts",{fonts:ti,dictionary:ci})}.call(f,Oe),Mt="F1",Hs(o,t),Jt.publish("initialized"),f}Ar.prototype.lsbFirstWord=function(i){return String.fromCharCode(255&i,i>>8&255,i>>16&255,i>>24&255)},Ar.prototype.toHexString=function(i){return i.split("").map(function(a){return("0"+(255&a.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ar.prototype.hexToBytes=function(i){for(var a=[],t=0;t<i.length;t+=2)a.push(String.fromCharCode(parseInt(i.substr(t,2),16)));return a.join("")},Ar.prototype.processOwnerPassword=function(i,a){return ac(rc(a).substr(0,5),i)},Ar.prototype.encryptor=function(i,a){var t=rc(this.encryptionKey+String.fromCharCode(255&i,i>>8&255,i>>16&255,255&a,a>>8&255)).substr(0,10);return function(n){return ac(t,n)}},Ns.prototype.equals=function(i){var a,t="id,objectNumber,equals";if(!i||(0,Kt.A)(i)!==(0,Kt.A)(this))return!1;var n=0;for(a in this)if(!(t.indexOf(a)>=0)){if(this.hasOwnProperty(a)&&!i.hasOwnProperty(a)||this[a]!==i[a])return!1;n++}for(a in i)i.hasOwnProperty(a)&&t.indexOf(a)<0&&n--;return 0===n},bt.API={events:[]},bt.version="2.5.2";var hi=bt.API,sc=1,ur=function(i){return i.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qr=function(i){return i.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ft=function(i){return i.toFixed(2)},Jo=function(i){return i.toFixed(5)};hi.__acroform__={};var gn=function(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i},Bd=function(i){return i*sc},_o=function(i){var a=new Yd,t=ut.internal.getHeight(i)||0,n=ut.internal.getWidth(i)||0;return a.BBox=[0,0,Number(Ft(n)),Number(Ft(t))],a},d0=hi.__acroform__.setBit=function(i,a){if(i=i||0,a=a||0,isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return i|1<<a},u0=hi.__acroform__.clearBit=function(i,a){if(i=i||0,a=a||0,isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return i&~(1<<a)},p0=hi.__acroform__.getBit=function(i,a){if(isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return i&1<<a?1:0},bi=hi.__acroform__.getBitForPdf=function(i,a){if(isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return p0(i,a-1)},yi=hi.__acroform__.setBitForPdf=function(i,a){if(isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return d0(i,a-1)},ki=hi.__acroform__.clearBitForPdf=function(i,a){if(isNaN(i)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return u0(i,a-1)},_0=hi.__acroform__.calculateCoordinates=function(i,a){var t=a.internal.getHorizontalCoordinate,n=a.internal.getVerticalCoordinate,o=i[0],r=i[1],s=i[2],c=i[3],u={};return u.lowerLeft_X=t(o)||0,u.lowerLeft_Y=n(r+c)||0,u.upperRight_X=t(o+s)||0,u.upperRight_Y=n(r)||0,[Number(Ft(u.lowerLeft_X)),Number(Ft(u.lowerLeft_Y)),Number(Ft(u.upperRight_X)),Number(Ft(u.upperRight_Y))]},h0=function(i){if(i.appearanceStreamContent)return i.appearanceStreamContent;if(i.V||i.DV){var a=[],n=lc(i,i._V||i.DV),o=i.scope.internal.getFont(i.fontName,i.fontStyle).id;a.push("/Tx BMC"),a.push("q"),a.push("BT"),a.push(i.scope.__private__.encodeColorString(i.color)),a.push("/"+o+" "+Ft(n.fontSize)+" Tf"),a.push("1 0 0 1 0 0 Tm"),a.push(n.text),a.push("ET"),a.push("Q"),a.push("EMC");var r=_o(i);return r.scope=i.scope,r.stream=a.join("\n"),r}},lc=function(i,a){var t=0===i.fontSize?i.maxFontSize:i.fontSize,n={text:"",fontSize:""},o=(a=")"==(a="("==a.substr(0,1)?a.substr(1):a).substr(a.length-1)?a.substr(0,a.length-1):a).split(" ");o=o.map(i.multiline?function(I){return I.split("\n")}:function(I){return[I]});var r=t,s=ut.internal.getHeight(i)||0;s=s<0?-s:s;var I,c=ut.internal.getWidth(i)||0;c=c<0?-c:c,r++;e:for(;r>0;){a="",r--;var h,v,g=Ms("3",i,r).height,b=i.multiline?s-r:(s-g)/2,f=b+=2,R=0,C=0,D=0;if(r<=0){a="(...) Tj\n",a+="% Width of Text: "+Ms(a,i,r=12).width+", FieldWidth:"+c+"\n";break}for(var x="",M=0,Y=0;Y<o.length;Y++)if(o.hasOwnProperty(Y)){var ee=!1;if(1!==o[Y].length&&D!==o[Y].length-1){if((g+2)*(M+2)+2>s)continue e;x+=o[Y][D],ee=!0,C=Y,Y--}else{x=" "==(x+=o[Y][D]+" ").substr(x.length-1)?x.substr(0,x.length-1):x;var de=parseInt(Y),je=(I=de)+1<o.length&&Ms(x+" "+o[I+1][0],i,r).width<=c-4,ie=Y>=o.length-1;if(je&&!ie){x+=" ",D=0;continue}if(je||ie){if(ie)C=de;else if(i.multiline&&(g+2)*(M+2)+2>s)continue e}else{if(!i.multiline||(g+2)*(M+2)+2>s)continue e;C=de}}for(var q="",ae=R;ae<=C;ae++){var ke=o[ae];if(i.multiline){if(ae===C){q+=ke[D]+" ",D=(D+1)%ke.length;continue}if(ae===R){q+=ke[ke.length-1]+" ";continue}}q+=ke[0]+" "}switch(q=" "==q.substr(q.length-1)?q.substr(0,q.length-1):q,v=Ms(q,i,r).width,i.textAlign){case"right":h=c-v-2;break;case"center":h=(c-v)/2;break;default:h=2}a+=Ft(h)+" "+Ft(f)+" Td\n",a+="("+ur(q)+") Tj\n",a+=-Ft(h)+" 0 Td\n",f=-(r+2),v=0,R=ee?C:C+1,M++,x=""}break}return n.text=a,n.fontSize=r,n},Ms=function(i,a,t){var n=a.scope.internal.getFont(a.fontName,a.fontStyle),o=a.scope.getStringUnitWidth(i,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:a.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:o}},f0={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},m0=function(i,a){var t={type:"reference",object:i};void 0===a.internal.getPageInfo(i.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})&&a.internal.getPageInfo(i.page).pageContext.annotations.push(t)},$d=hi.__acroform__.arrayToPdfArray=function(i,a,t){var n=function(s){return s};if(Array.isArray(i)){for(var o="[",r=0;r<i.length;r++)switch(0!==r&&(o+=" "),(0,Kt.A)(i[r])){case"boolean":case"number":case"object":o+=i[r].toString();break;case"string":"/"!==i[r].substr(0,1)?(void 0!==a&&t&&(n=t.internal.getEncryptor(a)),o+="("+ur(n(i[r].toString()))+")"):o+=i[r].toString()}return o+"]"}
vendor: 1,683 bytes, line 1
1throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},cc=function(i,a,t){var n=function(o){return o};return void 0!==a&&t&&(n=t.internal.getEncryptor(a)),(i=i||"").toString(),"("+ur(n(i))+")"},ho=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(i){this._objId=i}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ho.prototype.toString=function(){return this.objId+" 0 R"},ho.prototype.putStream=function(){var i=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:i,objectId:this.objId}),this.scope.internal.out("endobj")},ho.prototype.getKeyValueListForStream=function(){var i=[],a=Object.getOwnPropertyNames(this).filter(function(r){return"content"!=r&&"appearanceStreamContent"!=r&&"scope"!=r&&"objId"!=r&&"_"!=r.substring(0,1)});for(var t in a)if(!1===Object.getOwnPropertyDescriptor(this,a[t]).configurable){var n=a[t],o=this[n];o&&(Array.isArray(o)?i.push({key:n,value:$d(o,this.objId,this.scope)}):o instanceof ho?(o.scope=this.scope,i.push({key:n,value:o.objId+" 0 R"})):"function"!=typeof o&&i.push({key:n,value:o}))}return i};var Yd=function(){ho.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var i,a=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return a}
vendor: 15,134 bytes, line 1
1,set:function(t){a=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){i=t.trim()},get:function(){return i||null}})};gn(Yd,ho);var Jd=function(){ho.call(this);var i,a=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return a.length>0?a:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return a}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(i){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+ur(t(i))+")"}},set:function(t){i=t}})};gn(Jd,ho);var Xn=function i(){ho.call(this);var a=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return a},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute F supplied.');a=x}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!bi(a,3)},set:function(x){this.F=x?yi(a,3):ki(a,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute Ff supplied.');t=x}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(x){n=void 0!==x?x:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(x){n[0]=x}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(x){n[1]=x}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(x){n[2]=x}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(x){n[3]=x}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(x){switch(x){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=x;break;default:throw new Error('Invalid value "'+x+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof Gs)return;r="FieldObject"+i.FieldNum++}var x=function(M){return M};return this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),"("+ur(x(r))+")"},set:function(x){r=x.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(x){r=x}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(x){s=x}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(x){c=x}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(x){u=x}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===h?50/sc:h},set:function(x){h=x}});var v="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return v},set:function(x){v=x}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof Gs||this instanceof pr))return cc(g,this.objId,this.scope)},set:function(x){x=x.toString(),g=x}});var b=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof Li?b:cc(b,this.objId,this.scope)},set:function(x){x=x.toString(),b=this instanceof Li?x:"("===x.substr(0,1)?qr(x.substr(1,x.length-2)):qr(x)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Li?qr(b.substr(1,b.length-1)):b},set:function(x){x=x.toString(),b=this instanceof Li?"/"+x:x}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(x){this.V=x}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Li?f:cc(f,this.objId,this.scope)},set:function(x){x=x.toString(),f=this instanceof Li?x:"("===x.substr(0,1)?qr(x.substr(1,x.length-2)):qr(x)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Li?qr(f.substr(1,f.length-1)):f},set:function(x){x=x.toString(),f=this instanceof Li?"/"+x:x}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var R,C=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return C},set:function(x){C=x=!!x}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(R)return R},set:function(x){R=x}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,1)},set:function(x){this.Ff=x?yi(this.Ff,1):ki(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,2)},set:function(x){this.Ff=x?yi(this.Ff,2):ki(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,3)},set:function(x){this.Ff=x?yi(this.Ff,3):ki(this.Ff,3)}});var D=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==D)return D},set:function(x){if(-1===[0,1,2].indexOf(x))throw new Error('Invalid value "'+x+'" for attribute Q supplied.');D=x}}),Object.defineProperty(this,"textAlign",{get:function(){var x;switch(D){case 0:default:x="left";break;case 1:x="center";break;case 2:x="right"}return x},configurable:!0,enumerable:!0,set:function(x){switch(x){case"right":case 2:D=2;break;case"center":case 1:D=1;break;default:D=0}}})};gn(Xn,ho);var Vr=function(){Xn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var i=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return i},set:function(t){i=t}});var a=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return $d(a,this.objId,this.scope)},set:function(t){var n,o;o=[],"string"==typeof(n=t)&&(o=function(r,s,c){c||(c=1);for(var u,h=[];u=s.exec(r);)h.push(u[c]);return h}(n,/\((.*?)\)/g)),a=o}}),this.getOptions=function(){return a},this.setOptions=function(t){a=t,this.sort&&a.sort()},this.addOption=function(t){t=(t=t||"").toString(),a.push(t),this.sort&&a.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==a.indexOf(t)&&(a.splice(a.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,18)},set:function(t){this.Ff=t?yi(this.Ff,18):ki(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,19)},set:function(t){!0===this.combo&&(this.Ff=t?yi(this.Ff,19):ki(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,20)},set:function(t){t?(this.Ff=yi(this.Ff,20),a.sort()):this.Ff=ki(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,22)},set:function(t){this.Ff=t?yi(this.Ff,22):ki(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,23)},set:function(t){this.Ff=t?yi(this.Ff,23):ki(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,27)},set:function(t){this.Ff=t?yi(this.Ff,27):ki(this.Ff,27)}}),this.hasAppearanceStream=!1};gn(Vr,Xn);var Br=function(){Vr.call(this),this.fontName="helvetica",this.combo=!1};gn(Br,Vr);var $r=function(){Br.call(this),this.combo=!0};gn($r,Br);var Os=function(){$r.call(this),this.edit=!0};gn(Os,$r);var Li=function(){Xn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,15)},set:function(t){this.Ff=t?yi(this.Ff,15):ki(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,16)},set:function(t){this.Ff=t?yi(this.Ff,16):ki(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,17)},set:function(t){this.Ff=t?yi(this.Ff,17):ki(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,26)},set:function(t){this.Ff=t?yi(this.Ff,26):ki(this.Ff,26)}});var i,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(r){return r};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(a).length){var n,o=[];for(n in o.push("<<"),a)o.push("/"+n+" ("+ur(t(a[n]))+")");return o.push(">>"),o.join("\n")}},set:function(t){"object"===(0,Kt.A)(t)&&(a=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(t){"string"==typeof t&&(a.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(t){i="/"+t}})};gn(Li,Xn);var As=function(){Li.call(this),this.pushButton=!0};gn(As,Li);var Yr=function(){Li.call(this),this.radio=!0,this.pushButton=!1;var i=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return i},set:function(a){i=void 0!==a?a:[]}})};gn(Yr,Li);var Gs=function(){var i,a;Xn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return i},set:function(o){i=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(o){a=o}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(c){return c};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var r,s=[];for(r in s.push("<<"),n)s.push("/"+r+" ("+ur(o(n[r]))+")");return s.push(">>"),s.join("\n")},set:function(o){"object"===(0,Kt.A)(o)&&(n=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(o){"string"==typeof o&&(n.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(o){t=o}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(o){t="/"+o}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ut.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};gn(Gs,Xn),Yr.prototype.setAppearance=function(i){if(!("createAppearanceStream"in i)||!("getCA"in i))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var a in this.Kids)if(this.Kids.hasOwnProperty(a)){var t=this.Kids[a];t.appearanceStreamContent=i.createAppearanceStream(t.optionName),t.caption=i.getCA()}},Yr.prototype.createOption=function(i){var a=new Gs;return a.Parent=this,a.optionName=i,this.Kids.push(a),b0.call(this.scope,a),a};var Ls=function(){Li.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ut.CheckBox.createAppearanceStream()};gn(Ls,Li);var pr=function(){Xn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,13)},set:function(a){this.Ff=a?yi(this.Ff,13):ki(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,21)},set:function(a){this.Ff=a?yi(this.Ff,21):ki(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,23)},set:function(a){this.Ff=a?yi(this.Ff,23):ki(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,24)},set:function(a){this.Ff=a?yi(this.Ff,24):ki(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,25)},set:function(a){this.Ff=a?yi(this.Ff,25):ki(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,26)},set:function(a){this.Ff=a?yi(this.Ff,26):ki(this.Ff,26)}});var i=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return i},set:function(a){i=a}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return i},set:function(a){Number.isInteger(a)&&(i=a)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};gn(pr,Xn);var qs=function(){pr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!bi(this.Ff,14)},set:function(i){this.Ff=i?yi(this.Ff,14):ki(this.Ff,14)}}),this.password=!0};gn(qs,pr);var ut={CheckBox:{createAppearanceStream:function(){return{N:{On:ut.CheckBox.YesNormal},D:{On:ut.CheckBox.YesPushDown,Off:ut.CheckBox.OffPushDown}}},YesPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=[],n=i.scope.internal.getFont(i.fontName,i.fontStyle).id,o=i.scope.__private__.encodeColorString(i.color),r=lc(i,i.caption);return t.push("0.749023 g"),t.push("0 0 "+Ft(ut.internal.getWidth(i))+" "+Ft(ut.internal.getHeight(i))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+Ft(r.fontSize)+" Tf "+o),t.push("BT"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC"),a.stream=t.join("\n"),a},YesNormal:function(i){var a=_o(i);a.scope=i.scope;var t=i.scope.internal.getFont(i.fontName,i.fontStyle).id,n=i.scope.__private__.encodeColorString(i.color),o=[],r=ut.internal.getHeight(i),s=ut.internal.getWidth(i),c=lc(i,i.caption);return o.push("1 g"),o.push("0 0 "+Ft(s)+" "+Ft(r)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+Ft(s-1)+" "+Ft(r-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+t+" "+Ft(c.fontSize)+" Tf "+n),o.push(c.text),o.push("ET"),o.push("Q"),a.stream=o.join("\n"),a},OffPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ft(ut.internal.getWidth(i))+" "+Ft(ut.internal.getHeight(i))+" re"),t.pu
vendor: 4,794 bytes, line 1
1sh("f"),a.stream=t.join("\n"),a}},RadioButton:{Circle:{createAppearanceStream:function(i){var a={D:{Off:ut.RadioButton.Circle.OffPushDown},N:{}};return a.N[i]=ut.RadioButton.Circle.YesNormal,a.D[i]=ut.RadioButton.Circle.YesPushDown,a},getCA:function(){return"l"},YesNormal:function(i){var a=_o(i);a.scope=i.scope;var t=[],n=ut.internal.getWidth(i)<=ut.internal.getHeight(i)?ut.internal.getWidth(i)/4:ut.internal.getHeight(i)/4;n=Number((.9*n).toFixed(5));var r=Number((n*ut.internal.Bezier_C).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Jo(ut.internal.getWidth(i)/2)+" "+Jo(ut.internal.getHeight(i)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+r+" "+r+" "+n+" 0 "+n+" c"),t.push("-"+r+" "+n+" -"+n+" "+r+" -"+n+" 0 c"),t.push("-"+n+" -"+r+" -"+r+" -"+n+" 0 -"+n+" c"),t.push(r+" -"+n+" "+n+" -"+r+" "+n+" 0 c"),t.push("f"),t.push("Q"),a.stream=t.join("\n"),a},YesPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=[],n=ut.internal.getWidth(i)<=ut.internal.getHeight(i)?ut.internal.getWidth(i)/4:ut.internal.getHeight(i)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),r=Number((o*ut.internal.Bezier_C).toFixed(5)),s=Number((n*ut.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Jo(ut.internal.getWidth(i)/2)+" "+Jo(ut.internal.getHeight(i)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),t.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),t.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),t.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Jo(ut.internal.getWidth(i)/2)+" "+Jo(ut.internal.getHeight(i)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),t.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),t.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),t.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),t.push("f"),t.push("Q"),a.stream=t.join("\n"),a},OffPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=[],n=ut.internal.getWidth(i)<=ut.internal.getHeight(i)?ut.internal.getWidth(i)/4:ut.internal.getHeight(i)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),r=Number((o*ut.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Jo(ut.internal.getWidth(i)/2)+" "+Jo(ut.internal.getHeight(i)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+r+" "+r+" "+o+" 0 "+o+" c"),t.push("-"+r+" "+o+" -"+o+" "+r+" -"+o+" 0 c"),t.push("-"+o+" -"+r+" -"+r+" -"+o+" 0 -"+o+" c"),t.push(r+" -"+o+" "+o+" -"+r+" "+o+" 0 c"),t.push("f"),t.push("Q"),a.stream=t.join("\n"),a}},Cross:{createAppearanceStream:function(i){var a={D:{Off:ut.RadioButton.Cross.OffPushDown},N:{}};return a.N[i]=ut.RadioButton.Cross.YesNormal,a.D[i]=ut.RadioButton.Cross.YesPushDown,a},getCA:function(){return"8"},YesNormal:function(i){var a=_o(i);a.scope=i.scope;var t=[],n=ut.internal.calculateCross(i);return t.push("q"),t.push("1 1 "+Ft(ut.internal.getWidth(i)-2)+" "+Ft(ut.internal.getHeight(i)-2)+" re"),t.push("W"),t.push("n"),t.push(Ft(n.x1.x)+" "+Ft(n.x1.y)+" m"),t.push(Ft(n.x2.x)+" "+Ft(n.x2.y)+" l"),t.push(Ft(n.x4.x)+" "+Ft(n.x4.y)+" m"),t.push(Ft(n.x3.x)+" "+Ft(n.x3.y)+" l"),t.push("s"),t.push("Q"),a.stream=t.join("\n"),a},YesPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=ut.internal.calculateCross(i),n=[];return n.push("0.749023 g"),n.push("0 0 "+Ft(ut.internal.getWidth(i))+" "+Ft(ut.internal.getHeight(i))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Ft(ut.internal.getWidth(i)-2)+" "+Ft(ut.internal.getHeight(i)-2)+" re"),n.push("W"),n.push("n"),n.push(Ft(t.x1.x)+" "+Ft(t.x1.y)+" m"),n.push(Ft(t.x2.x)+" "+Ft(t.x2.y)+" l"),n.push(Ft(t.x4.x)+" "+Ft(t.x4.y)+" m"),n.push(Ft(t.x3.x)+" "+Ft(t.x3.y)+" l"),n.push("s"),n.push("Q"),a.stream=n.join("\n"),a},OffPushDown:function(i){var a=_o(i);a.scope=i.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Ft(ut.internal.getWidth(i))+" "+Ft(ut.internal.getHeight(i))+" re"),t.push("f"),a.stream=t.join("\n"),a}}},createDefaultAppearanceStream:function(i){var a=i.scope.internal.getFont(i.fontName,i.fontStyle).id,t=i.scope.__private__.encodeColorString(i.color);return"/"+a+" "+i.fontSize+" Tf "+t}};ut.internal={Bezier_C:.551915024494,calculateCross:function(i){var a=ut.internal.getWidth(i),t=ut.internal.getHeight(i),n=Math.min(a,t);return{x1:{x:(a-n)/2,y:(t-n)/2+n},x2:{x:(a-n)/2+n,y:(t-n)/2},x3:{x:(a-n)/2,y:(t-n)/2},x4:{x:(a-n)/2+n,y:(t-n)/2+n}}}},ut.internal.getWidth=function(i){var a=0;return"object"===(0,Kt.A)(i)&&(a=Bd(i.Rect[2])),a},ut.internal.getHeight=function(i){var a=0;return"object"===(0,Kt.A)(i)&&(a=Bd(i.Rect[3])),a};var i,a,b0=hi.addField=function(i){if(function(i,a){if(a.scope=i,void 0!==i.internal&&(void 0===i.internal.acroformPlugin||!1===i.internal.acroformPlugin.isInitialized)){if(Xn.FieldNum=0,i.internal.acroformPlugin=JSON.parse(JSON.stringify(f0
vendor: 15,188 bytes, lines 1-9
1)),i.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");sc=i.internal.scaleFactor,i.internal.acroformPlugin.acroFormDictionaryRoot=new Jd,i.internal.acroformPlugin.acroFormDictionaryRoot.scope=i,i.internal.acroformPlugin.acroFormDictionaryRoot._eventID=i.internal.events.subscribe("postPutResources",function(){var t;(t=i).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),i.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in n)if(n.hasOwnProperty(o)){var r=n[o];r.objId=void 0,r.hasAnnotation&&m0(r,t)}}(i)}),i.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(i)}),i.internal.events.subscribe("postPutPages",function(t){!function(n,o){var r=!n;for(var s in n||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var c=n[s],u=[],h=c.Rect;if(c.Rect&&(c.Rect=_0(c.Rect,o)),o.internal.newObjectDeferredBegin(c.objId,!0),c.DA=ut.createDefaultAppearanceStream(c),"object"===(0,Kt.A)(c)&&"function"==typeof c.getKeyValueListForStream&&(u=c.getKeyValueListForStream()),c.Rect=h,c.hasAppearanceStream&&!c.appearanceStreamContent){var v=h0(c);u.push({key:"AP",value:"<</N "+v+">>"}),o.internal.acroformPlugin.xForms.push(v)}if(c.appearanceStreamContent){var g="";for(var b in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(b)){var f=c.appearanceStreamContent[b];if(g+="/"+b+" ",g+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var s in f)if(f.hasOwnProperty(s)){var R=f[s];"function"==typeof R&&(R=R.call(o,c)),g+="/"+s+" "+R+" ",o.internal.acroformPlugin.xForms.indexOf(R)>=0||o.internal.acroformPlugin.xForms.push(R)}}else"function"==typeof(R=f)&&(R=R.call(o,c)),g+="/"+s+" "+R,o.internal.acroformPlugin.xForms.indexOf(R)>=0||o.internal.acroformPlugin.xForms.push(R);g+=">>"}u.push({key:"AP",value:"<<\n"+g+">>"})}o.internal.putStream({additionalKeyValues:u,objectId:c.objId}),o.internal.out("endobj")}r&&function(i,a){for(var t in i)if(i.hasOwnProperty(t)){var n=t,o=i[t];a.internal.newObjectDeferredBegin(o.objId,!0),"object"===(0,Kt.A)(o)&&"function"==typeof o.putStream&&o.putStream(),delete i[n]}}(o.internal.acroformPlugin.xForms,o)}(t,i)}),i.internal.acroformPlugin.isInitialized=!0}}(this,i),!(i instanceof Xn))throw new Error("Invalid argument passed to jsPDF.addField.");var a;return(a=i).scope.internal.acroformPlugin.printedOut&&(a.scope.internal.acroformPlugin.printedOut=!1,a.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),a.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(a),i.page=i.scope.internal.getCurrentPageInfo().pageNumber,this};function Ud(i){return i.reduce(function(a,t,n){return a[t]=n,a},{})}hi.AcroFormChoiceField=Vr,hi.AcroFormListBox=Br,hi.AcroFormComboBox=$r,hi.AcroFormEditBox=Os,hi.AcroFormButton=Li,hi.AcroFormPushButton=As,hi.AcroFormRadioButton=Yr,hi.AcroFormCheckBox=Ls,hi.AcroFormTextField=pr,hi.AcroFormPasswordField=qs,hi.AcroFormAppearance=ut,hi.AcroForm={ChoiceField:Vr,ListBox:Br,ComboBox:$r,EditBox:Os,Button:Li,PushButton:As,RadioButton:Yr,CheckBox:Ls,TextField:pr,PasswordField:qs,Appearance:ut},bt.AcroForm={ChoiceField:Vr,ListBox:Br,ComboBox:$r,EditBox:Os,Button:Li,PushButton:As,RadioButton:Yr,CheckBox:Ls,TextField:pr,PasswordField:qs,Appearance:ut},function(i){i.__addimage__={};var a="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=i.__addimage__.getImageFileTypeByImageData=function(I,P){var X,V,he,pe,ge,se=a;if("RGBA"===(P=P||a)||void 0!==I.data&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(je(I))for(ge in t)for(he=t[ge],X=0;X<he.length;X+=1){for(pe=!0,V=0;V<he[X].length;V+=1)if(void 0!==he[X][V]&&he[X][V]!==I[V]){pe=!1;break}if(!0===pe){se=ge;break}}else for(ge in t)for(he=t[ge],X=0;X<he.length;X+=1){for(pe=!0,V=0;V<he[X].length;V+=1)if(void 0!==he[X][V]&&he[X][V]!==I.charCodeAt(V)){pe=!1;break}if(!0===pe){se=ge;break}}return se===a&&P!==a&&(se=P),se},o=function I(P){for(var X=this.internal.write,V=this.internal.putStream,he=(0,this.internal.getFilters)();-1!==he.indexOf("FlateEncode");)he.splice(he.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var pe=[];if(pe.push({key:"Type",value:"/XObject"}),pe.push({key:"Subtype",value:"/Image"}),pe.push({key:"Width",value:P.width}),pe.push({key:"Height",value:P.height}),P.colorSpace===D.INDEXED?pe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(P.palette.length/3-1)+" "+("sMask"in P&&void 0!==P.sMask?P.objectId+2:P.objectId+1)+" 0 R]"}):(pe.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===D.DEVICE_CMYK&&pe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),pe.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&void 0!==P.decodeParameters&&pe.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)){for(var ge="",se=0,we=P.transparency.length;se<we;se++)ge+=P.transparency[se]+" "+P.transparency[se]+" ";pe.push({key:"Mask",value:"["+ge+"]"})}if(void 0!==P.sMask&&pe.push({key:"SMask",value:P.objectId+1+" 0 R"}),V({data:P.data,additionalKeyValues:pe,alreadyAppliedFilters:void 0!==P.filter?["/"+P.filter]:void 0,objectId:P.objectId}),X("endobj"),"sMask"in P&&void 0!==P.sMask){var S={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:P.bitsPerComponent,decodeParameters:"/Predictor "+P.predictor+" /Colors 1 /BitsPerComponent "+P.bitsPerComponent+" /Columns "+P.width,data:P.sMask};"filter"in P&&(S.filter=P.filter),I.call(this,S)}if(P.colorSpace===D.INDEXED){var O=this.internal.newObject();V({data:q(new Uint8Array(P.palette)),objectId:O}),X("endobj")}},r=function(){var I=this.internal.collections.addImage_images;for(var P in I)o.call(this,I[P])},s=function(){var I,P=this.internal.collections.addImage_images,X=this.internal.write;for(var V in P)X("/I"+(I=P[V]).index,I.objectId,"0","R")},c=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var I=this.internal.collections.addImage_images;return c.call(this),I},h=function(){return Object.keys(this.internal.collections.addImage_images).length},v=function(I){return"function"==typeof i["process"+I.toUpperCase()]},g=function(I){return"object"===(0,Kt.A)(I)&&1===I.nodeType},b=function(I,P){if("IMG"===I.nodeName&&I.hasAttribute("src")){var X=""+I.getAttribute("src");if(0===X.indexOf("data:image/"))return Na(unescape(X).split("base64,").pop());var V=i.loadFile(X,!0);if(void 0!==V)return V}if("CANVAS"===I.nodeName){if(0===I.width||0===I.height)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var he;switch(P){case"PNG":he="image/png";break;case"WEBP":he="image/webp";break;default:he="image/jpeg"}return Na(I.toDataURL(he,1).split("base64,").pop())}},f=function(I){var P=this.internal.collections.addImage_images;if(P)for(var X in P)if(I===P[X].alias)return P[X]},R=function(I,P,X){return I||P||(I=-96,P=-96),I<0&&(I=-1*X.width*72/I/this.internal.scaleFactor),P<0&&(P=-1*X.height*72/P/this.internal.scaleFactor),0===I&&(I=P*X.width/X.height),0===P&&(P=I*X.height/X.width),[I,P]},C=function(I,P,X,V,he,pe){var ge=R.call(this,X,V,he),se=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,Fe=u.call(this);if(X=ge[0],V=ge[1],Fe[he.index]=he,pe){pe*=Math.PI/180;var it=Math.cos(pe),S=Math.sin(pe),O=function(J){return J.toFixed(4)},G=[O(it),O(S),O(-1*S),O(it),0,0,"cm"]}this.internal.write("q"),pe?(this.internal.write([1,"0","0",1,se(I),we(P+V),"cm"].join(" ")),this.internal.write(G.join(" ")),this.internal.write([se(X),"0","0",se(V),"0","0","cm"].join(" "))):this.internal.write([se(X),"0","0",se(V),se(I),we(P+V),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+he.index+" Do"),this.internal.write("Q")},D=i.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};i.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=i.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},M=i.__addimage__.sHashCode=function(I){var P,X,V=0;if("string"==typeof I)for(X=I.length,P=0;P<X;P++)V=(V<<5)-V+I.charCodeAt(P),V|=0;else if(je(I))for(X=I.byteLength/2,P=0;P<X;P++)V=(V<<5)-V+I[P],V|=0;return V},Y=i.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var P=!0;return 0===I.length&&(P=!1),I.length%4!=0&&(P=!1),!1===/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))&&(P=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))&&(P=!1),P},ee=i.__addimage__.extractImageFromDataUrl=function(I){var P=(I=I||"").split("base64,"),X=null;if(2===P.length){var V=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(P[0]);Array.isArray(V)&&(X={mimeType:V[1],charset:V[2],data:P[1]})}return X},de=i.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};i.__addimage__.isArrayBuffer=function(I){return de()&&I instanceof ArrayBuffer};var je=i.__addimage__.isArrayBufferView=function(I){return de()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},ie=i.__addimage__.binaryStringToUint8Array=function(I){for(var P=I.length,X=new Uint8Array(P),V=0;V<P;V++)X[V]=I.charCodeAt(V);return X},q=i.__addimage__.arrayBufferToBinaryString=function(I){for(var P="",X=je(I)?I:new Uint8Array(I),V=0;V<X.length;V+=8192)P+=String.fromCharCode.apply(null,X.subarray(V,V+8192));return P};i.addImage=function(){var I,P,X,V,he,pe,ge,se,we;if("number"==typeof arguments[1]?(P=a,X=arguments[1],V=arguments[2],he=arguments[3],pe=arguments[4],ge=arguments[5],se=arguments[6],we=arguments[7]):(P=arguments[1],X=arguments[2],V=arguments[3],he=arguments[4],pe=arguments[5],ge=arguments[6],se=arguments[7],we=arguments[8]),"object"===(0,Kt.A)(I=arguments[0])&&!g(I)&&"imageData"in I){var Fe=I;I=Fe.imageData,P=Fe.format||P||a,X=Fe.x||X||0,V=Fe.y||V||0,he=Fe.w||Fe.width||he,pe=Fe.h||Fe.height||pe,ge=Fe.alias||ge,se=Fe.compression||se,we=Fe.rotation||Fe.angle||we}var it=this.internal.getFilters();if(void 0===se&&-1!==it.indexOf("FlateEncode")&&(se="SLOW"),isNaN(X)||isNaN(V))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var S=ae.call(this,I,P,ge,se);return C.call(this,X,V,he,pe,S,we),this};var ae=function(I,P,X,V){var he,pe,ge,we;if("string"==typeof I&&n(I)===a){I=unescape(I);var se=ke(I,!1);(""!==se||void 0!==(se=i.loadFile(I,!0)))&&(I=se)}if(g(I)&&(I=b(I,P)),P=n(I,P),!v(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if((null==(ge=X)||0===ge.length)&&(X="string"==typeof(we=I)||je(we)?M(we):je(we.data)?M(we.data):null),(he=f.call(this,X))||(de()&&(I instanceof Uint8Array||"RGBA"===P||(pe=I,I=ie(I))),he=this["process"+P.toUpperCase()](I,h.call(this),X,function(we){return we&&"string"==typeof we&&(we=we.toUpperCase()),we in i.image_compression?we:x.NONE}(V),pe)),!he)throw new Error("An unknown error occurred whilst processing the image.");return he},ke=i.__addimage__.convertBase64ToBinaryString=function(I,P){var X;P="boolean"!=typeof P||P;var V,he="";if("string"==typeof I){V=null!==(X=ee(I))?X.data:I;try{he=Na(V)}catch(pe){if(P)throw Y(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+pe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return he};i.getImageProperties=function(I){var P,X,V="";if(g(I)&&(I=b(I)),"string"==typeof I&&n(I)===a&&(""===(V=ke(I,!1))&&(V=i.loadFile(I)||""),I=V),X=n(I),!v(X))throw new Error("addImage does not support files of type '"+X+"', please ensure that a plugin for '"+X+"' support is added.");if(!de()||I instanceof Uint8Array||(I=ie(I)),!(P=this["process"+X.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=X,P}}(bt.API),
2/**
3       * @license
4       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
5       *
6       * Licensed under the MIT License.
7       * http://opensource.org/licenses/mit-license
8       */
9i=bt.API,a=function(t){if(void 0!==t&&""!=t)return!0},bt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),i.events.push(["putPage",function(t){for(var n,o,r,s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(t.objId),h=t.pageContext.annotations,v=!1,g=0;g<h.length&&!v;g++)switch((n=h[g]).type){case"link":(a(n.options.url)||a(n.options.pageNumber))&&(v=!0);break;case"reference":case"text":case"freetext":v=!0}if(0!=v){this.internal.write("/Annots [");for(var b=0;b<h.length;b++){n=h[b];var f=this.internal.pdfEscape,R=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var C=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),x=this.internal.getEncryptor(C.objId),M=n.title||"Note";r="<</Type /Annot /Subtype /Text "+(o="/Rect ["+s(n.bounds.x)+" "+c(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+c(n.bounds.y)+"] ")+"/Contents ("+f(x(n.contents))+")",r+=" /Popup "+D.objId+" 0 R",r+=" /P "+u.objId+" 0 R",r+=" /T ("+f(x(M))+") >>",C.content=r;var Y=C.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+s(n.bounds.x+30)+" "+c(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+c(n.bounds.y)+"] ")+" /Parent "+Y,n.open&&(r+=" /Open true"),D.content=r+=" >>
9",this.internal.write(C.objId,"0 R",D.objId,"0 R");break;case"freetext":o="/Rect ["+s(n.bounds.x)+" "+c(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+c(n.bounds.y+n.bounds.h)+"] ";var ee=n.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+f(R(n.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ee+")",r+=" /Border [0 0 0]",this.internal.write(r+=" >>");break;case"link":if(n.options.name){var de=this.annotations._nameMap[n.options.name];n.options.pageNumber=de.page,n.options.top=de.y}else n.options.top||(n.options.top=0);if(o="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",r="",n.options.url)r="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+f(R(n.options.url))+") >>";else if(n.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,r+=" /FitV "+n.options.left+"]";break;default:var je=c(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),r+=" /XYZ "+n.options.left+" "+je+" "+n.options.zoom+"]"}""!=r&&this.internal.write(r+=" >>")}}this.internal.write("]")}}]),i.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},i.link=function(t,n,o,r,s){var c=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;c.pageContext.annotations.push({finalBounds:{x:u(t),y:h(n),w:u(t+o),h:h(n+r)},options:s,type:"link"})},i.textWithLink=function(t,n,o,r){var s,c,u=this.getTextWidth(t),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){var v=this.splitTextToSize(t,c=r.maxWidth).length;s=Math.ceil(h*v)}else c=u,s=h;return this.text(t,n,o,r),"center"===r.align&&(n-=u/2),"right"===r.align&&(n-=u),this.link(n,(o+=.2*h)-h,c,s,r),u},i.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor},
10/**
11       * @license
12       * Copyright (c) 2017 Aras Abbasi
13       *
14       * Licensed under the MIT License.
15       * http://opensource.org/licenses/mit-license
16       */
17function(i){var a={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
vendor: 1,425 bytes, line 17
177],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];i.__arabicParser__={};var r=i.__arabicParser__.isInArabicSubstitutionA=function(C){return void 0!==a[C.charCodeAt(0)]},s=i.__arabicParser__.isArabicLetter=function(C){return"string"==typeof C&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(C)},c=i.__arabicParser__.isArabicEndLetter=function(C){return s(C)&&r(C)&&a[C.charCo
vendor: 22,889 bytes, lines 17-25
17deAt(0)].length<=2},u=i.__arabicParser__.isArabicAlfLetter=function(C){return s(C)&&o.indexOf(C.charCodeAt(0))>=0};i.__arabicParser__.arabicLetterHasIsolatedForm=function(C){return s(C)&&r(C)&&a[C.charCodeAt(0)].length>=1};var h=i.__arabicParser__.arabicLetterHasFinalForm=function(C){return s(C)&&r(C)&&a[C.charCodeAt(0)].length>=2};i.__arabicParser__.arabicLetterHasInitialForm=function(C){return s(C)&&r(C)&&a[C.charCodeAt(0)].length>=3};var v=i.__arabicParser__.arabicLetterHasMedialForm=function(C){return s(C)&&r(C)&&4==a[C.charCodeAt(0)].length},g=i.__arabicParser__.resolveLigatures=function(C){var D=0,x=t,M="",Y=0;for(D=0;D<C.length;D+=1)void 0!==x[C.charCodeAt(D)]?(Y++,"number"==typeof(x=x[C.charCodeAt(D)])&&(M+=String.fromCharCode(x),x=t,Y=0),D===C.length-1&&(x=t,M+=C.charAt(D-(Y-1)),D-=Y-1,Y=0)):(x=t,M+=C.charAt(D-Y),D-=Y,Y=0);return M};i.__arabicParser__.isArabicDiacritic=function(C){return void 0!==C&&void 0!==n[C.charCodeAt(0)]};var b=i.__arabicParser__.getCorrectForm=function(C,D,x){return s(C)?!1===r(C)?-1:!h(C)||!s(D)&&!s(x)||!s(x)&&c(D)||c(C)&&!s(D)||c(C)&&u(D)||c(C)&&c(D)?0:v(C)&&s(D)&&!c(D)&&s(x)&&h(x)?3:c(C)||!s(x)?1:2:-1},f=function(C){var D=0,x=0,M=0,Y="",ee="",de="",je=(C=C||"").split("\\s+"),ie=[];for(D=0;D<je.length;D+=1){for(ie.push(""),x=0;x<je[D].length;x+=1)ee=je[D][x-1],de=je[D][x+1],s(Y=je[D][x])?(M=b(Y,ee,de),ie[D]+=-1!==M?String.fromCharCode(a[Y.charCodeAt(0)][M]):Y):ie[D]+=Y;ie[D]=g(ie[D])}return ie.join(" ")},R=i.__arabicParser__.processArabic=i.processArabic=function(){var C,D="string"==typeof arguments[0]?arguments[0]:arguments[0].text,x=[];if(Array.isArray(D)){var M=0;for(x=[],M=0;M<D.length;M+=1)Array.isArray(D[M])?x.push([f(D[M][0]),D[M][1],D[M][2]]):x.push([f(D[M])]);C=x}else C=f(D);return"string"==typeof arguments[0]?C:(arguments[0].text=C,arguments[0])};i.events.push(["preProcessText",R])}(bt.API),bt.API.autoPrint=function(i){var a;return"javascript"===((i=i||{}).variant=i.variant||"non-conform",i.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){a=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+a+" 0 R")})),this},
18/**
19       * @license
20       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
21       *
22       * Licensed under the MIT License.
23       * http://opensource.org/licenses/mit-license
24       */
25function(i){var a=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(c){t=c}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(c){n=isNaN(c)||!1===Number.isInteger(c)||c<0?150:c,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(c){o=isNaN(c)||!1===Number.isInteger(c)||c<0?300:c,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(c){r=c}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(c){s=c}}),Object.defineProperty(this,"parentNode",{})};a.prototype.getContext=function(t,n){var o;if("2d"!==(t=t||"2d"))return null;for(o in n)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=n[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},a.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},i.events.push(["initialized",function(){this.canvas=new a,this.canvas.pdf=this}])}(bt.API),function(i){var a={left:0,top:0,bottom:0,right:0},t=!1,n=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},a),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(C){u=C}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(C){h=C}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(C){v=C}});var g=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return g},set:function(C){g=C}});var b=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return b},set:function(C){b=C}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(C){f=C}});var R=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return R},set:function(C){R=C}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},i.setHeaderFunction=function(u){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof u?u:void 0,this},i.getTextDimensions=function(u,h){n.call(this);var v=(h=h||{}).fontSize||this.getFontSize(),g=h.font||this.getFont(),b=h.scaleFactor||this.internal.scaleFactor,f=0,R=0,C=0,D=this;if(!Array.isArray(u)&&"string"!=typeof u){if("number"!=typeof u)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var x=h.maxWidth;x>0?"string"==typeof u?u=this.splitTextToSize(u,x):"[object Array]"===Object.prototype.toString.call(u)&&(u=u.reduce(function(Y,ee){return Y.concat(D.splitTextToSize(ee,x))},[])):u=Array.isArray(u)?u:[u];for(var M=0;M<u.length;M++)f<(C=this.getStringUnitWidth(u[M],{font:g})*v)&&(f=C);return 0!==f&&(R=u.length),{w:f/=b,h:Math.max((R*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/b,0)}},i.cellAddPage=function(){n.call(this),this.addPage();var u=this.internal.__cell__.margins||a;return this.internal.__cell__.lastCell=new r(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=i.cell=function(){var u;u=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var h=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,g=this.internal.__cell__.margins||a,b=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return void 0!==h.lineNumber&&(h.lineNumber===u.lineNumber?(u.x=(h.x||0)+(h.width||0),u.y=h.y||0):h.y+h.height+u.height+g.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=g.top,f&&b&&(this.printHeaderRow(u.lineNumber,!0),u.y+=b[0].height)):u.y=h.y+h.height||u.y),void 0!==u.text[0]&&(this.rect(u.x,u.y,u.width,u.height,!0===t?"FD":void 0),"right"===u.align?this.text(u.text,u.x+u.width-v,u.y+v,{align:"right",baseline:"top"}):"center"===u.align?this.text(u.text,u.x+u.width/2,u.y+v,{align:"center",baseline:"top",maxWidth:u.width-v-v}):this.text(u.text,u.x+v,u.y+v,{align:"left",baseline:"top",maxWidth:u.width-v-v})),this.internal.__cell__.lastCell=u,this};i.table=function(u,h,v,g,b){if(n.call(this),!v)throw new Error("No data for PDF table.");var f,R,C,D,x=[],M=[],Y=[],ee={},de={},je=[],ie=[],q=(b=b||{}).autoSize||!1,ae=!1!==b.printHeaders,ke=b.css&&void 0!==b.css["font-size"]?16*b.css["font-size"]:b.fontSize||12,I=b.margins||Object.assign({width:this.getPageWidth()},a),P="number"==typeof b.padding?b.padding:3,X=b.headerBackgroundColor||"#c8c8c8",V=b.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=ae,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=ke,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=X,this.internal.__cell__.headerTextColor=V,this.setFontSize(ke),null==g)M=x=Object.keys(v[0]),Y=x.map(function(){return"left"});else if(Array.isArray(g)&&"object"===(0,Kt.A)(g[0]))for(x=g.map(function(Fe){return Fe.name}),M=g.map(function(Fe){return Fe.prompt||Fe.name||""}),Y=g.map(function(Fe){return Fe.align||"left"}),f=0;f<g.length;f+=1)de[g[f].name]=g[f].width*(19.049976/25.4);else Array.isArray(g)&&"string"==typeof g[0]&&(M=x=g,Y=x.map(function(){return"left"}));if(q||Array.isArray(g)&&"string"==typeof g[0])for(f=0;f<x.length;f+=1){for(ee[D=x[f]]=v.map(function(Fe){return Fe[D]}),this.setFont(void 0,"bold"),je.push(this.getTextDimensions(M[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),R=ee[D],this.setFont(void 0,"normal"),C=0;C<R.length;C+=1)je.push(this.getTextDimensions(R[C],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);de[D]=Math.max.apply(null,je)+P+P,je=[]}if(ae){var he={};for(f=0;f<x.length;f+=1)he[x[f]]={},he[x[f]].text=M[f],he[x[f]].align=Y[f];var pe=c.call(this,he,de);ie=x.map(function(Fe){return new r(u,h,de[Fe],pe,he[Fe].text,void 0,he[Fe].align)}),this.setTableHeaderRow(ie),this.printHeaderRow(1,!1)}var ge=g.reduce(function(Fe,it){return Fe[it.name]=it.align,Fe},{});for(f=0;f<v.length;f+=1){"rowStart"in b&&b.rowStart instanceof Function&&b.rowStart({row:f,data:v[f]},this);var se=c.call(this,v[f],de);for(C=0;C<x.length;C+=1){var we=v[f][x[C]];"cellStart"in b&&b.cellStart instanceof Function&&b.cellStart({row:f,col:C,data:we},this),s.call(this,new r(u,h,de[x[C]],se,we,f+2,ge[x[C]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=h,this};var c=function(u,h){var v=this.internal.__cell__.padding,g=this.internal.__cell__.table_font_size,b=this.internal.scaleFactor;return Object.keys(u).map(function(f){var R=u[f];return this.splitTextToSize(R.hasOwnProperty("text")?R.text:R,h[f]-v-v)},this).map(function(f){return this.getLineHeightFactor()*f.length*g/b+v+v},this).reduce(function(f,R){return Math.max(f,R)},0)};i.setTableHeaderRow=function(u){n.call(this),this.internal.__cell__.tableHeaderRow=u},i.printHeaderRow=function(u,h){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(t=!0,"function"==typeof this.internal.__cell__.headerFunction){var g=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(g[0],g[1],g[2],g[3],void 0,-1)}this.setFont(void 0,"bold");for(var b=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){v=this.internal.__cell__.tableHeaderRow[f].clone(),h&&(v.y=this.internal.__cell__.margins.top||0,b.push(v)),v.lineNumber=u;var R=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,v),this.setTextColor(R)}b.length>0&&this.setTableHeaderRow(b),this.setFont(void 0,"normal"),t=!1}}(bt.API);var Xd={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},zd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],dc=Ud(zd),Hd=[100,200,300,400,500,600,700,800,900],y0=Ud(Hd);function uc(i){var r,a=i.family.replace(/"|'/g,"").toLowerCase(),t=Xd[r=(r=i.style)||"normal"]?r:"normal",n=function(r){return r?"number"==typeof r?r>=100&&r<=900&&r%100==0?r:400:/^\d00$/.test(r)?parseInt(r):"bold"===r?700:400:400}(i.weight),o=function(r){return"number"==typeof dc[r=r||"normal"]?r:"normal"}(i.stretch);return{family:a,style:t,weight:n,stretch:o,src:i.src||[],ref:i.ref||{name:a,style:[o,t,n].join(" ")}}}function Wd(i,a,t,n){var o;for(o=t;o>=0&&o<a.length;o+=n)if(i[a[o]])return i[a[o]];for(o=t;o>=0&&o<a.length;o-=n)if(i[a[o]])return i[a[o]]}var k0={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Zd={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Qd(i){return[i.stretch,i.style,i.weight,i.family].join(" ")}function Kd(i){return i.trimLeft()}function x0(i,a){for(var t=0;t<i.length;){if(i.charAt(t)===a)return[i.substring(0,t),i.substring(t+1)];t+=1}return null}function C0(i){var a=i.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===a?null:[a[0],i.substring(a[0].length)]}var Vs,eu,tu,pc=["times"];(function(i){var a,t,n,o,r,s,c,u,h,v=function(S){return this.isStrokeTransparent=(S=S||{}).isStrokeTransparent||!1,this.strokeOpacity=S.strokeOpacity||1,this.strokeStyle=S.strokeStyle||"#000000",this.fillStyle=S.fillStyle||"#000000",this.isFillTransparent=S.isFillTransparent||!1,this.fillOpacity=S.fillOpacity||1,this.font=S.font||"10px sans-serif",this.textBaseline=S.textBaseline||"alphabetic",this.textAlign=S.textAlign||"left",this.lineWidth=S.lineWidth||1,this.lineJoin=S.lineJoin||"miter",this.lineCap=S.lineCap||"butt",this.path=S.path||[],this.transform=void 0!==S.transform?S.transform.clone():new u,this.globalCompositeOperation=S.globalCompositeOperation||"normal",this.globalAlpha=S.globalAlpha||1,this.clip_path=S.clip_path||[],this.currentPoint=S.currentPoint||new s,this.miterLimit=S.miterLimit||10,this.lastPoint=S.lastPoint||new s,this.lineDashOffset=S.lineDashOffset||0,this.lineDash=S.lineDash||[],this.margin=S.margin||[0,0,0,0],this.prevPageLastElemOffset=S.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof S.ignoreClearRect||S.ignoreClearRect,this};i.events.push(["initialized",function(){this.context2d=new g(this),a=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,u=this.internal.Matrix,h=new v}]);var g=function(S){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=S;Object.defineProperty(this,"pdf",{get:function(){return O}});var G=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return G},set:function(xe){G=!!xe}});var J=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return J},set:function(xe){J=!!xe}});var K=0;Object.defineProperty(this,"posX",{get:function(){return K},set:function(xe){isNaN(xe)||(K=xe)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(xe){isNaN(xe)||(ce=xe)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(xe){var L;"number"==typeof xe?L=[xe,xe,xe,xe]:((L=new Array(4))[0]=xe[0],L[1]=xe.length>=2?xe[1]:L[0],L[2]=xe.length>=3?xe[2]:L[0],L[3]=xe.length>=4?xe[3]:L[1]),h.margin=L}});var ue=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ue},set:function(xe){ue=xe}});var _e=0;Object.defineProperty(this,"lastBreak",{get:function(){return _e},set:function(xe){_e=xe}});var Le=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Le},set:function(xe){Le=xe}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(xe){xe instanceof v&&(h=xe)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(xe){h.path=xe}});var Ae=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ae},set:function(xe){Ae=xe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(xe){var L;L=b(xe),this.ctx.fillStyle=L.style,this.ctx.isFillTransparent=0===L.a,this.ctx.fillOpacity=L.a,this.pdf.setFillColor(L.r,L.g,L.b,{a:L.a}),this.pdf.setTextColor(L.r,L.g,L.b,{a:L.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(xe){var L=b(xe);this.ctx.strokeStyle=L.style,this.ctx.isStrokeTransparent=0===L.a,this.ctx.strokeOpacity=L.a,0===L.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(L.r,L.g,L.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(xe){-1!==["butt","round","square"].indexOf(xe)&&(this.ctx.lineCap=xe,this.pdf.setLineCap(xe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(xe){isNaN(xe)||(this.ctx.lineWidth=xe,this.pdf.setLineWidth(xe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(xe){-1!==["bevel","round","miter"].indexOf(xe)&&(this.ctx.lineJoin=xe,this.pdf.setLineJoin(xe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(xe){isNaN(xe)||(this.ctx.miterLimit=xe,this.pdf.setMiterLimit(xe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(xe){this.ctx.textBaseline=xe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(xe){-1!==["right","end","center","left","start"].indexOf(xe)&&(this.ctx.textAlign=xe)}});var tt=null,wt=null;Object.defineProperty(this,"fontFaces",{get:function(){return wt},set:function(xe){tt=null,wt=xe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(xe){var L;if(this.ctx.font=xe,null!==(L=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(xe))){var Tt=L[1],_t=L[3],Oe=L[4],Ye=L[6],nt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Oe)[2];Oe=Math.floor("px"===nt?parseFloat(Oe)*this.pdf.internal.scaleFactor:"em"===nt?parseFloat(Oe)*this.pdf.getFontSize():parseFloat(Oe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Oe);var Ke=function(xt){var Mt,ot,on=[],Bt=xt.trim();if(""===Bt)return pc;if(Bt in Zd)return[Zd[Bt]];for(;""!==Bt;){switch(ot=null,Mt=(Bt=Kd(Bt)).charAt(0)){case'"':case"'":ot=x0(Bt.substring(1),Mt);break;default:ot=C0(Bt)}if(null===ot||(on.push(ot[0]),""!==(Bt=Kd(ot[1]))&&","!==Bt.charAt(0)))return pc;Bt=Bt.replace(/^,/,"")}return on}(Ye);if(this.fontFaces){var ft=function w0(i,a,t){for(var n=(t=t||{}).defaultFontFamily||"times",o=Object.assign({},k0,t.genericFontFamilies||{}),r=null,s=null,c=0;c<a.length;++c)if(o[(r=uc(a[c])).family]&&(r.family=o[r.family]),i.hasOwnProperty(r.family)){s=i[r.family];break}if(!(s=s||i[n]))throw new Error("Could not find a font-family for the rule '"+Qd(r)+"' and default family '"+n+"'.");if(s=function(u,h){if(h[u])return h[u];var v=dc[u],b=Wd(h,zd,v,v<=dc.normal?-1:1);if(!b)throw new Error("Could not find a matching font-stretch value for "+u);return b}(r.stretch,s),s=function(u,h){if(h[u])return h[u];for(var v=Xd[u],g=0;g<v.length;++g)if(h[v[g]])return h[v[g]];throw new Error("Could not find a matching font-style for "+u)}(r.style,s),!(s=function(u,h){if(h[u])return h[u];if(400===u&&h[500])return h[500];if(500===u&&h[400])return h[400];var g=Wd(h,Hd,y0[u],u<400?-1:1);if(!g)throw new Error("Could not find a matching font-weight for value "+u);return g}(r.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Qd(r)+"'.");return s}(function Ze(xe,L){if(null===tt){var Tt=(_t=xe.getFontList(),Oe=[],Object.keys(_t).forEach(function(Ye){_t[Ye].forEach(function(nt){var Ke=null;switch(nt){case"bold":Ke={family:Ye,weight:"bold"};break;case"italic":Ke={family:Ye,style:"italic"};break;case"bolditalic":Ke={family:Ye,weight:"bold",style:"italic"};break;case"":case"normal":Ke={family:Ye}}null!==Ke&&(Ke.ref={name:Ye,style:nt},Oe.push(Ke))})}),Oe);tt=function(_t){for(var Oe={},Ye=0;Ye<_t.length;++Ye){var nt=uc(_t[Ye]),Ke=nt.family,ft=nt.stretch,St=nt.style,Pt=nt.weight;Oe[Ke]=Oe[Ke]||{},Oe[Ke][ft]=Oe[Ke][ft]||{},Oe[Ke][ft][St]=Oe[Ke][ft][St]||{},Oe[Ke][ft][St][Pt]=nt}return Oe}(Tt.concat(L))}var _t,Oe;return tt}(this.pdf,this.fontFaces),Ke.map(function(xt){return{family:xt,stretch:"normal",weight:_t,style:Tt}}));this.pdf.setFont(ft.ref.name,ft.ref.style)}else{var St="";("bold"===_t||parseInt(_t,10)>=700||"bold"===Tt)&&(St="bold"),"italic"===Tt&&(St+="italic"),0===St.length&&(St="normal");for(var Pt="",Nt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},qt=0;qt<Ke.length;qt++){if(void 0!==this.pdf.internal.getFont(Ke[qt],St,{noFallback:!0,disableWarning:!0})){Pt=Ke[qt];break}if("bolditalic"===St&&void 0!==this.pdf.internal.getFont(Ke[qt],"bold",{noFallback:!0,disableWarning:!0}))Pt=Ke[qt],St="bold";else if(void 0!==this.pdf.internal.getFont(Ke[qt],"normal",{noFallback:!0,disableWarning:!0})){Pt=Ke[qt],St="normal";break}}if(""===Pt)for(var Wt=0;Wt<Ke.length;Wt++)if(Nt[Ke[Wt]]){Pt=Nt[Ke[Wt]];break}this.pdf.setFont(Pt=""===Pt?"Times":Pt,St)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(xe){this.ctx.globalCompositeOperation=xe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(xe){this.ctx.globalAlpha=xe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(xe){this.ctx.lineDashOffset=xe,it.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(xe){this.ctx.lineDash=xe,it.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(xe){this.ctx.ignoreClearRect=!!xe}})};g.prototype.setLineDash=function(S){this.lineDash=S},g.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},g.prototype.fill=function(){ee.call(this,"fill",!1)},g.prototype.stroke=function(){ee.call(this,"stroke",!1)},g.prototype.beginPath=function(){this.path=[{type:"begin"}]},g.prototype.moveTo=function(S,O){if(isNaN(S)||isNaN(O))throw ei.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var G=this.ctx.transform.applyToPoint(new s(S,O));this.path.push({type:"mt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(S,O)},g.prototype.closePath=function(){var S=new s(0,0),O=0;for(O=this.path.length-1;-1!==O;O--)if("begin"===this.path[O].type&&"object"===(0,Kt.A)(this.path[O+1])&&"number"==typeof this.path[O+1].x){S=new s(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(S.x,S.y)},g.prototype.lineTo=function(S,O){if(isNaN(S)||isNaN(O))throw ei.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
25jsPDF.context2d.lineTo");var G=this.ctx.transform.applyToPoint(new s(S,O));this.path.push({type:"lt",x:G.x,y:G.y}),this.ctx.lastPoint=new s(G.x,G.y)},g.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ee.call(this,null,!0)},g.prototype.quadraticCurveTo=function(S,O,G,J){if(isNaN(G)||isNaN(J)||isNaN(S)||isNaN(O))throw ei.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var K=this.ctx.transform.applyToPoint(new s(G,J)),ce=this.ctx.transform.applyToPoint(new s(S,O));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:K.x,y:K.y}),this.ctx.lastPoint=new s(K.x,K.y)},g.prototype.bezierCurveTo=function(S,O,G,J,K,ce){if(isNaN(K)||isNaN(ce)||isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J))throw ei.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ue=this.ctx.transform.applyToPoint(new s(K,ce)),_e=this.ctx.transform.applyToPoint(new s(S,O)),Le=this.ctx.transform.applyToPoint(new s(G,J));this.path.push({type:"bct",x1:_e.x,y1:_e.y,x2:Le.x,y2:Le.y,x:ue.x,y:ue.y}),this.ctx.lastPoint=new s(ue.x,ue.y)},g.prototype.arc=function(S,O,G,J,K,ce){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J)||isNaN(K))throw ei.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var ue=this.ctx.transform.applyToPoint(new s(S,O));S=ue.x,O=ue.y;var _e=this.ctx.transform.applyToPoint(new s(0,G)),Le=this.ctx.transform.applyToPoint(new s(0,0));G=Math.sqrt(Math.pow(_e.x-Le.x,2)+Math.pow(_e.y-Le.y,2))}Math.abs(K-J)>=2*Math.PI&&(J=0,K=2*Math.PI),this.path.push({type:"arc",x:S,y:O,radius:G,startAngle:J,endAngle:K,counterclockwise:ce})},g.prototype.arcTo=function(S,O,G,J,K){throw new Error("arcTo not implemented.")},g.prototype.rect=function(S,O,G,J){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J))throw ei.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(S,O),this.lineTo(S+G,O),this.lineTo(S+G,O+J),this.lineTo(S,O+J),this.lineTo(S,O),this.lineTo(S+G,O),this.lineTo(S,O)},g.prototype.fillRect=function(S,O,G,J){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J))throw ei.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var K={};"butt"!==this.lineCap&&(K.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(K.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(S,O,G,J),this.fill(),K.hasOwnProperty("lineCap")&&(this.lineCap=K.lineCap),K.hasOwnProperty("lineJoin")&&(this.lineJoin=K.lineJoin)}},g.prototype.strokeRect=function(S,O,G,J){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J))throw ei.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");R.call(this)||(this.beginPath(),this.rect(S,O,G,J),this.stroke())},g.prototype.clearRect=function(S,O,G,J){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J))throw ei.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(S,O,G,J))},g.prototype.save=function(S){S="boolean"!=typeof S||S;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),S){this.ctx.fontSize=this.pdf.internal.getFontSize();var J=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=J}},g.prototype.restore=function(S){S="boolean"!=typeof S||S;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,G=0;G<this.pdf.internal.getNumberOfPages();G++)this.pdf.setPage(G+1),this.pdf.internal.out("Q");this.pdf.setPage(O),S&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},g.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var b=function(S){var O,G,J,K;if(!0===S.isCanvasGradient&&(S=S.getColor()),!S)return{r:0,g:0,b:0,a:0,style:S};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(S))O=0,G=0,J=0,K=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(S);if(null!==ce)O=parseInt(ce[1]),G=parseInt(ce[2]),J=parseInt(ce[3]),K=1;else if(null!==(ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(S)))O=parseInt(ce[1]),G=parseInt(ce[2]),J=parseInt(ce[3]),K=parseFloat(ce[4]);else{if(K=1,"string"==typeof S&&"#"!==S.charAt(0)){var ue=new Od(S);S=ue.ok?ue.toHex():"#000000"}4===S.length?(O=S.substring(1,2),O+=O,G=S.substring(2,3),G+=G,J=S.substring(3,4),J+=J):(O=S.substring(1,3),G=S.substring(3,5),J=S.substring(5,7)),O=parseInt(O,16),G=parseInt(G,16),J=parseInt(J,16)}}return{r:O,g:G,b:J,a:K,style:S}},f=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},R=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};g.prototype.fillText=function(S,O,G,J){if(isNaN(O)||isNaN(G)||"string"!=typeof S)throw ei.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
25jsPDF.context2d.fillText");if(J=isNaN(J)?void 0:J,!f.call(this)){var K=se(this.ctx.transform.rotation);P.call(this,{text:S,x:O,y:G,scale:this.ctx.transform.scaleX,angle:K,align:this.textAlign,maxWidth:J})}},g.prototype.strokeText=function(S,O,G,J){if(isNaN(O)||isNaN(G)||"string"!=typeof S)throw ei.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!R.call(this)){J=isNaN(J)?void 0:J;var K=se(this.ctx.transform.rotation);P.call(this,{text:S,x:O,y:G,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:K,align:this.textAlign,maxWidth:J})}},g.prototype.measureText=function(S){if("string"!=typeof S)throw ei.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,G=this.pdf.internal.scaleFactor,J=O.internal.getFontSize(),K=O.getStringUnitWidth(S)*J/O.internal.scaleFactor;return new function(ue){var _e=(ue=ue||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return _e}}),this}({width:K*=Math.round(96*G/72*1e4)/1e4})},g.prototype.scale=function(S,O){if(isNaN(S)||isNaN(O))throw ei.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var G=new u(S,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(G)},g.prototype.rotate=function(S){if(isNaN(S))throw ei.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new u(Math.cos(S),Math.sin(S),-Math.sin(S),Math.cos(S),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},g.prototype.translate=function(S,O){if(isNaN(S)||isNaN(O))throw ei.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var G=new u(1,0,0,1,S,O);this.ctx.transform=this.ctx.transform.multiply(G)},g.prototype.transform=function(S,O,G,J,K,ce){if(isNaN(S)||isNaN(O)||isNaN(G)||isNaN(J)||isNaN(K)||isNaN(ce))throw ei.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ue=new u(S,O,G,J,K,ce);this.ctx.transform=this.ctx.transform.multiply(ue)},g.prototype.setTransform=function(S,O,G,J,K,ce){S=isNaN(S)?1:S,O=isNaN(O)?0:O,G=isNaN(G)?0:G,J=isNaN(J)?1:J,K=isNaN(K)?0:K,ce=isNaN(ce)?0:ce,this.ctx.transform=new u(S,O,G,J,K,ce)};var C=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};g.prototype.drawImage=function(S,O,G,J,K,ce,ue,_e,Le){var Ae=this.pdf.getImageProperties(S),tt=1,Ze=1,wt=1,xe=1;void 0!==J&&void 0!==_e&&(wt=_e/J,xe=Le/K,tt=Ae.width/J*_e/J,Ze=Ae.height/K*Le/K),void 0===ce&&(ce=O,ue=G,O=0,G=0),void 0!==J&&void 0===_e&&(_e=J,Le=K),void 0===J&&void 0===_e&&(_e=Ae.width,Le=Ae.height);for(var L,Tt=this.ctx.transform.decompose(),_t=se(Tt.rotate.shx),Oe=new u,Ye=(Oe=(Oe=(Oe=Oe.multiply(Tt.translate)).multiply(Tt.skew)).multiply(Tt.scale)).applyToRectangle(new c(ce-O*wt,ue-G*xe,J*tt,K*Ze)),nt=D.call(this,Ye),Ke=[],ft=0;ft<nt.length;ft+=1)-1===Ke.indexOf(nt[ft])&&Ke.push(nt[ft]);if(Y(Ke),this.autoPaging)for(var St=Ke[0],Pt=Ke[Ke.length-1],Nt=St;Nt<Pt+1;Nt++){this.pdf.setPage(Nt);var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Wt=1===Nt?this.posY+this.margin[0]:this.margin[0],Mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ot=1===Nt?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Nt-2)*Mt;if(0!==this.ctx.clip_path.length){var on=this.path;L=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(L,this.posX+this.margin[3],-ot+Wt+this.ctx.prevPageLastElemOffset),de.call(this,"fill",!0),this.path=on}var Bt=JSON.parse(JSON.stringify(Ye));Bt=M([Bt],this.posX+this.margin[3],-ot+Wt+this.ctx.prevPageLastElemOffset)[0];var Wn=(Nt>St||Nt<Pt)&&C.call(this);Wn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,Mt,null).clip().discardPath()),this.pdf.addImage(S,"JPEG",Bt.x,Bt.y,Bt.w,Bt.h,null,null,_t),Wn&&this.pdf.restoreGraphicsState()}
vendor: 48,107 bytes, lines 25-58
25else this.pdf.addImage(S,"JPEG",Ye.x,Ye.y,Ye.w,Ye.h,null,null,_t)};var D=function(S,O,G){var J=[];O=O||this.pdf.internal.pageSize.width,G=G||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var K=this.posY+this.ctx.prevPageLastElemOffset;switch(S.type){default:case"mt":case"lt":J.push(Math.floor((S.y+K)/G)+1);break;case"arc":J.push(Math.floor((S.y+K-S.radius)/G)+1),J.push(Math.floor((S.y+K+S.radius)/G)+1);break;case"qct":var ce=we(this.ctx.lastPoint.x,this.ctx.lastPoint.y,S.x1,S.y1,S.x,S.y);J.push(Math.floor((ce.y+K)/G)+1),J.push(Math.floor((ce.y+ce.h+K)/G)+1);break;case"bct":var ue=Fe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,S.x1,S.y1,S.x2,S.y2,S.x,S.y);J.push(Math.floor((ue.y+K)/G)+1),J.push(Math.floor((ue.y+ue.h+K)/G)+1);break;case"rect":J.push(Math.floor((S.y+K)/G)+1),J.push(Math.floor((S.y+S.h+K)/G)+1)}for(var _e=0;_e<J.length;_e+=1)for(;this.pdf.internal.getNumberOfPages()<J[_e];)x.call(this);return J},x=function(){var S=this.fillStyle,O=this.strokeStyle,G=this.font,J=this.lineCap,K=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=S,this.strokeStyle=O,this.font=G,this.lineCap=J,this.lineWidth=K,this.lineJoin=ce},M=function(S,O,G){for(var J=0;J<S.length;J++)switch(S[J].type){case"bct":S[J].x2+=O,S[J].y2+=G;case"qct":S[J].x1+=O,S[J].y1+=G;default:S[J].x+=O,S[J].y+=G}return S},Y=function(S){return S.sort(function(O,G){return O-G})},ee=function(S,O){for(var G,J,K=this.fillStyle,ce=this.strokeStyle,ue=this.lineCap,_e=this.lineWidth,Le=Math.abs(_e*this.ctx.transform.scaleX),Ae=this.lineJoin,tt=JSON.parse(JSON.stringify(this.path)),Ze=JSON.parse(JSON.stringify(this.path)),wt=[],xe=0;xe<Ze.length;xe++)if(void 0!==Ze[xe].x)for(var L=D.call(this,Ze[xe]),Tt=0;Tt<L.length;Tt+=1)-1===wt.indexOf(L[Tt])&&wt.push(L[Tt]);for(var _t=0;_t<wt.length;_t++)for(;this.pdf.internal.getNumberOfPages()<wt[_t];)x.call(this);if(Y(wt),this.autoPaging)for(var Oe=wt[0],Ye=wt[wt.length-1],nt=Oe;nt<Ye+1;nt++){this.pdf.setPage(nt),this.fillStyle=K,this.strokeStyle=ce,this.lineCap=ue,this.lineWidth=Le,this.lineJoin=Ae;var Ke=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ft=1===nt?this.posY+this.margin[0]:this.margin[0],Pt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Nt=1===nt?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(nt-2)*Pt;if(0!==this.ctx.clip_path.length){var qt=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(G,this.posX+this.margin[3],-Nt+ft+this.ctx.prevPageLastElemOffset),de.call(this,S,!0),this.path=qt}if(J=JSON.parse(JSON.stringify(tt)),this.path=M(J,this.posX+this.margin[3],-Nt+ft+this.ctx.prevPageLastElemOffset),!1===O||0===nt){var Wt=(nt>Oe||nt<Ye)&&C.call(this);Wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ke,Pt,null).clip().discardPath()),de.call(this,S,O),Wt&&this.pdf.restoreGraphicsState()}this.lineWidth=_e}else this.lineWidth=Le,de.call(this,S,O),this.lineWidth=_e;this.path=tt},de=function(S,O){if(("stroke"!==S||O||!R.call(this))&&("stroke"===S||O||!f.call(this))){for(var G,J,K=[],ce=this.path,ue=0;ue<ce.length;ue++){var _e=ce[ue];switch(_e.type){case"begin":K.push({begin:!0});break;case"close":K.push({close:!0});break;case"mt":K.push({start:_e,deltas:[],abs:[]});break;case"lt":var Le=K.length;if(ce[ue-1]&&!isNaN(ce[ue-1].x)&&(G=[_e.x-ce[ue-1].x,_e.y-ce[ue-1].y],Le>0))for(;Le>=0;Le--)if(!0!==K[Le-1].close&&!0!==K[Le-1].begin){K[Le-1].deltas.push(G),K[Le-1].abs.push(_e);break}break;case"bct":K[K.length-1].deltas.push(G=[_e.x1-ce[ue-1].x,_e.y1-ce[ue-1].y,_e.x2-ce[ue-1].x,_e.y2-ce[ue-1].y,_e.x-ce[ue-1].x,_e.y-ce[ue-1].y]);break;case"qct":K[K.length-1].deltas.push(G=[ce[ue-1].x+2/3*(_e.x1-ce[ue-1].x)-ce[ue-1].x,ce[ue-1].y+2/3*(_e.y1-ce[ue-1].y)-ce[ue-1].y,_e.x+2/3*(_e.x1-_e.x)-ce[ue-1].x,_e.y+2/3*(_e.y1-_e.y)-ce[ue-1].y,_e.x-ce[ue-1].x,_e.y-ce[ue-1].y]);break;case"arc":K.push({deltas:[],abs:[],arc:!0}),Array.isArray(K[K.length-1].abs)&&K[K.length-1].abs.push(_e)}}J=O?null:"stroke"===S?"stroke":"fill";for(var Tt=!1,_t=0;_t<K.length;_t++)if(K[_t].arc)for(var Oe=K[_t].abs,Ye=0;Ye<Oe.length;Ye++){var nt=Oe[Ye];"arc"===nt.type?q.call(this,nt.x,nt.y,nt.radius,nt.startAngle,nt.endAngle,nt.counterclockwise,void 0,O,!Tt):X.call(this,nt.x,nt.y),Tt=!0}else!0===K[_t].close?(this.pdf.internal.out("h"),Tt=!1):!0!==K[_t].begin&&(V.call(this,K[_t].deltas,K[_t].start.x,K[_t].start.y),Tt=!0);J&&ae.call(this,J),O&&ke.call(this)}},je=function(S){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,G=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return S-G;case"top":return S+O-G;case"hanging":return S+O-2*G;case"middle":return S+O/2-G;default:return S}},ie=function(S){return S+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};g.prototype.createLinearGradient=function(){var S=function(){};return S.colorStops=[],S.addColorStop=function(O,G){this.colorStops.push([O,G])},S.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},S.isCanvasGradient=!0,S},g.prototype.createPattern=function(){return this.createLinearGradient()},g.prototype.createRadialGradient=function(){return this.createLinearGradient()};var q=function(S,O,G,J,K,ce,ue,_e,Le){for(var Ae=pe.call(this,G,J,K,ce),tt=0;tt<Ae.length;tt++){var Ze=Ae[tt];0===tt&&(Le?I.call(this,Ze.x1+S,Ze.y1+O):X.call(this,Ze.x1+S,Ze.y1+O)),he.call(this,S,O,Ze.x2,Ze.y2,Ze.x3,Ze.y3,Ze.x4,Ze.y4)}_e?ke.call(this):ae.call(this,ue)},ae=function(S){switch(S){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ke=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(S,O){this.pdf.internal.out(t(S)+" "+n(O)+" m")},P=function(S){var O;switch(S.align){case"right":case"end":O="right";break;case"center":O="center";break;default:O="left"}var G=this.pdf.getTextDimensions(S.text),J=je.call(this,S.y),K=ie.call(this,J)-G.h,ce=this.ctx.transform.applyToPoint(new s(S.x,J)),ue=this.ctx.transform.decompose(),_e=new u;_e=(_e=(_e=_e.multiply(ue.translate)).multiply(ue.skew)).multiply(ue.scale);for(var Le,Ae,tt,Ze=this.ctx.transform.applyToRectangle(new c(S.x,J,G.w,G.h)),wt=_e.applyToRectangle(new c(S.x,K,G.w,G.h)),xe=D.call(this,wt),L=[],Tt=0;Tt<xe.length;Tt+=1)-1===L.indexOf(xe[Tt])&&L.push(xe[Tt]);if(Y(L),this.autoPaging)for(var _t=L[0],Oe=L[L.length-1],Ye=_t;Ye<Oe+1;Ye++){this.pdf.setPage(Ye);var nt=1===Ye?this.posY+this.margin[0]:this.margin[0],ft=this.pdf.internal.pageSize.height-this.margin[2],St=ft-this.margin[0],Pt=this.pdf.internal.pageSize.width-this.margin[1],Nt=Pt-this.margin[3],qt=1===Ye?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Ye-2)*St;if(0!==this.ctx.clip_path.length){var Wt=this.path;Le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=M(Le,this.posX+this.margin[3],-1*qt+nt),de.call(this,"fill",!0),this.path=Wt}var xt=M([JSON.parse(JSON.stringify(wt))],this.posX+this.margin[3],-qt+nt+this.ctx.prevPageLastElemOffset)[0];S.scale>=.01&&(Ae=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ae*S.scale),this.lineWidth=(tt=this.lineWidth)*S.scale);var Mt="text"!==this.autoPaging;if(Mt||xt.y+xt.h<=ft){if(Mt||xt.y>=nt&&xt.x<=Pt){var ot=Mt?S.text:this.pdf.splitTextToSize(S.text,S.maxWidth||Pt-xt.x)[0],on=M([JSON.parse(JSON.stringify(Ze))],this.posX+this.margin[3],-qt+nt+this.ctx.prevPageLastElemOffset)[0],Bt=Mt&&(Ye>_t||Ye<Oe)&&C.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Nt,St,null).clip().discardPath()),this.pdf.text(ot,on.x,on.y,{angle:S.angle,align:O,renderingMode:S.renderingMode}),Bt&&this.pdf.restoreGraphicsState()}}else xt.y<ft&&(this.ctx.prevPageLastElemOffset+=ft-xt.y);S.scale>=.01&&(this.pdf.setFontSize(Ae),this.lineWidth=tt)}else S.scale>=.01&&(Ae=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ae*S.scale),this.lineWidth=(tt=this.lineWidth)*S.scale),this.pdf.text(S.text,ce.x+this.posX,ce.y+this.posY,{angle:S.angle,align:O,renderingMode:S.renderingMode,maxWidth:S.maxWidth}),S.scale>=.01&&(this.pdf.setFontSize(Ae),this.lineWidth=tt)},X=function(S,O,G,J){J=J||0,this.pdf.internal.out(t(S+(G=G||0))+" "+n(O+J)+" l")},V=function(S,O,G){return this.pdf.lines(S,O,G,null,null)},he=function(S,O,G,J,K,ce,ue,_e){this.pdf.internal.out([a(o(G+S)),a(r(J+O)),a(o(K+S)),a(r(ce+O)),a(o(ue+S)),a(r(_e+O)),"c"].join(" "))},pe=function(S,O,G,J){for(var K=2*Math.PI,ce=Math.PI/2;O>G;)O-=K;var ue=Math.abs(G-O);ue<K&&J&&(ue=K-ue);for(var _e=[],Le=J?-1:1,Ae=O;ue>1e-5;){var tt=Ae+Le*Math.min(ue,ce);_e.push(ge.call(this,S,Ae,tt)),ue-=Math.abs(tt-Ae),Ae=tt}return _e},ge=function(S,O,G){var J=(G-O)/2,K=S*Math.cos(J),ce=S*Math.sin(J),ue=K,_e=-ce,Le=ue*ue+_e*_e,Ae=Le+ue*K+_e*ce,tt=4/3*(Math.sqrt(2*Le*Ae)-Ae)/(ue*ce-_e*K),Ze=ue-tt*_e,wt=_e+tt*ue,xe=Ze,L=-wt,Tt=J+O,_t=Math.cos(Tt),Oe=Math.sin(Tt);return{x1:S*Math.cos(O),y1:S*Math.sin(O),x2:Ze*_t-wt*Oe,y2:Ze*Oe+wt*_t,x3:xe*_t-L*Oe,y3:xe*Oe+L*_t,x4:S*Math.cos(G),y4:S*Math.sin(G)}},se=function(S){return 180*S/Math.PI},we=function(S,O,G,J,K,ce){var ue=S+.5*(G-S),_e=O+.5*(J-O),Le=K+.5*(G-K),Ae=ce+.5*(J-ce),tt=Math.min(S,K,ue,Le),Ze=Math.max(S,K,ue,Le),wt=Math.min(O,ce,_e,Ae),xe=Math.max(O,ce,_e,Ae);return new c(tt,wt,Ze-tt,xe-wt)},Fe=function(S,O,G,J,K,ce,ue,_e){var Le,Ae,tt,Ze,wt,xe,L,Tt,_t,Oe,Ye,nt,Ke,ft,St=G-S,Pt=J-O,Nt=K-G,qt=ce-J,Wt=ue-K,xt=_e-ce;for(Ae=0;Ae<41;Ae++)_t=(L=(tt=S+(Le=Ae/40)*St)+Le*((wt=G+Le*Nt)-tt))+Le*(wt+Le*(K+Le*Wt-wt)-L),Oe=(Tt=(Ze=O+Le*Pt)+Le*((xe=J+Le*qt)-Ze))+Le*(xe+Le*(ce+Le*xt-xe)-Tt),0==Ae?(Ye=_t,nt=Oe,Ke=_t,ft=Oe):(Ye=Math.min(Ye,_t),nt=Math.min(nt,Oe),Ke=Math.max(Ke,_t),ft=Math.max(ft,Oe));return new c(Math.round(Ye),Math.round(nt),Math.round(Ke-Ye),Math.round(ft-nt))},it=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var G=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==G&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=G)}}})(bt.API),
26/**
27       * @license
28       * jsPDF filters PlugIn
29       * Copyright (c) 2014 Aras Abbasi
30       *
31       * Licensed under the MIT License.
32       * http://opensource.org/licenses/mit-license
33       */
34function(i){var a=function(r){var s,c,u,h,v,g,b,f,R,C;for(/[^\x00-\xFF]/.test(r),c=[],u=0,h=(r+=s="\0\0\0\0".slice(r.length%4||4)).length;h>u;u+=4)0!==(v=(r.charCodeAt(u)<<24)+(r.charCodeAt(u+1)<<16)+(r.charCodeAt(u+2)<<8)+r.charCodeAt(u+3))?(g=(v=((v=((v=((v=(v-(C=v%85))/85)-(R=v%85))/85)-(f=v%85))/85)-(b=v%85))/85)%85,c.push(g+33,b+33,f+33,R+33,C+33)):c.push(122);return function(D,x){for(var M=x;M>0;M--)D.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},t=function(r){var s,c,u,h,v,g=String,b="length",f=255,R="charCodeAt",C="slice",D="replace";for(r[C](-2),r=r[C](0,-2)[D](/\s/g,"")[D]("z","!!!!!"),u=[],h=0,v=(r+=s="uuuuu"[C](r[b]%5||5))[b];v>h;h+=5)c=52200625*(r[R](h)-33)+614125*(r[R](h+1)-33)+7225*(r[R](h+2)-33)+85*(r[R](h+3)-33)+(r[R](h+4)-33),u.push(f&c>>24,f&c>>16,f&c>>8,f&c);return function(x,M){for(var Y=M;Y>0;Y--)x.pop()}(u,s[b]),g.fromCharCode.apply(g,u)},n=function(r){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(r=r.replace(/\s/g,"")).indexOf(">")&&(r=r.substr(0,r.indexOf(">"))),r.length%2&&(r+="0"),!1===s.test(r))return"";for(var c="",u=0;u<r.length;u+=2)c+=String.fromCharCode("0x"+(r[u]+r[u+1]));return c},o=function(r){for(var s=new Uint8Array(r.length),c=r.length;c--;)s[c]=r.charCodeAt(c);return(s=Da(s)).reduce(function(u,h){return u+String.fromCharCode(h)},"")};i.processDataByFilters=function(r,s){var c=0,u=r||"",h=[];for("string"==typeof(s=s||[])&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":u=t(u),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=a(u),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=n(u),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=u.split("").map(function(v){return("0"+v.charCodeAt().toString(16)).slice(-2)}).join("")+">",h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=o(u),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:u,reverseChain:h.reverse().join(" ")}}}(bt.API),
35/**
36       * @license
37       * jsPDF fileloading PlugIn
38       * Copyright (c) 2018 Aras Abbasi ([email protected])
39       *
40       * Licensed under the MIT License.
41       * http://opensource.org/licenses/mit-license
42       */
43function(i){i.loadFile=function(a,t,n){return function(o,r,s){r=!1!==r,s="function"==typeof s?s:function(){};var c=void 0;try{c=function(u,h,v){var g=new XMLHttpRequest,b=0,f=function(R){var C=R.length,D=[],x=String.fromCharCode;for(b=0;b<C;b+=1)D.push(x(255&R.charCodeAt(b)));return D.join("")};if(g.open("GET",u,!h),g.overrideMimeType("text/plain; charset=x-user-defined"),!1===h&&(g.onload=function(){v(200===g.status?f(this.responseText):void 0)}),g.send(null),h&&200===g.status)return f(g.responseText)}(o,r,s)}catch{}return c}(a,t,n)},i.loadImageFile=i.loadFile}(bt.API),function(i){function a(){return(kt.html2canvas?Promise.resolve(kt.html2canvas):ze.e(7239).then(ze.t.bind(ze,7239,23))).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(kt.DOMPurify?Promise.resolve(kt.DOMPurify):ze.e(1973).then(ze.t.bind(ze,91973,23))).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var n=function(s){var c=(0,Kt.A)(s);return"undefined"===c?"undefined":"string"===c||s instanceof String?"string":"number"===c||s instanceof Number?"number":"function"===c||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&1===s.nodeType?"element":"object"===c?"object":"unknown"},o=function(s,c){var u=document.createElement(s);for(var h in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[h]=c.style[h];return u},r=function s(c){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),h=s.convert(Promise.resolve(),u);return(h=h.setProgress(1,s,1,[s])).set(c)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(s,c){return s.__proto__=c||r.prototype,s},r.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},r.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(u){switch(n(u)){case"string":return"string";case"element":return"canvas"===u.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(t).then(function(u){return this.set({src:o("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},r.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=function u(h,v){for(var g=3===h.nodeType?document.createTextNode(h.nodeValue):h.cloneNode(!1),b=h.firstChild;b;b=b.nextSibling)!0!==v&&1===b.nodeType&&"SCRIPT"===b.nodeName||g.appendChild(u(b,v));return 1===h.nodeType&&("CANVAS"===h.nodeName?(g.width=h.width,g.height=h.height,g.getContext("2d").drawImage(h,0,0)):"TEXTAREA"!==h.nodeName&&"SELECT"!==h.nodeName||(g.value=h.value),g.addEventListener("load",function(){g.scrollTop=h.scrollTop,g.scrollLeft=h.scrollLeft},!0)),g}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===c.tagName&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},r.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(a).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},r.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(a).then(function(c){var u=this.opt.jsPDF,h=this.opt.fontFaces,v="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,g=Object.assign({async:!0,allowTaint:!0,scale:v,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete g.onrendered,u.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=h,h)for(var b=0;b<h.length;++b){var f=h[b],R=f.src.find(function(C){return"truetype"===C.format});R&&u.addFont(R.url,f.ref.name,f.ref.style)}return g.windowHeight=g.windowHeight||0,g.windowHeight=0==g.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,u.context2d.save(!0),c(this.prop.container,g)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},r.prototype.output=function(s,c,u){return"img"===(u=u||"pdf").toLowerCase()||"image"===u.toLowerCase()?this.outputImg(s,c):this.outputPdf(s,c)},r.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},r.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},r.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},r.prototype.set=function(s){if("object"!==n(s))return this;var c=Object.keys(s||{}).map(function(u){if(u in r.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(c)})},r.prototype.get=function(s,c){return this.then(function(){var u=s in r.template.prop?this.prop[s]:this.opt[s];return c?c(u):u})},r.prototype.setMargin=function(s){return this.then(function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(2===s.length&&(s=[s[0],s[1],s[0],s[1]]),4===s.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},r.prototype.setPageSize=function(s){function c(u,h){return Math.floor(u*h/72*96)}return this.then(function(){(s=s||bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},r.prototype.setProgress=function(s,c,u,h){return null!=s&&(this.progress.val=s),null!=c&&(this.progress.state=c),null!=u&&(this.progress.n=u),null!=h&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(s,c,u,h){return this.setProgress(s?this.progress.val+s:null,c||null,u?this.progress.n+u:null,h?this.progress.stack.concat(h):null)},r.prototype.then=function(s,c){var u=this;return this.thenCore(s,c,function(h,v){return u.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(g){return u.updateProgress(null,h),g}).then(h,v).then(function(g){return u.updateProgress(1),g})})},r.prototype.thenCore=function(s,c,u){u=u||Promise.prototype.then,s&&(s=s.bind(this)),c&&(c=c.bind(this));var h=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:r.convert(Object.assign({},this),Promise.prototype),v=u.call(h,s,c);return r.convert(v,this.__proto__)},r.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},r.prototype.thenList=function(s){var c=this;return s.forEach(function(u){c=c.thenCore(u)}),c},r.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return r.convert(c,this)},r.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},r.prototype.error=function(s){return this.then(function(){throw new Error(s)})},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,bt.getPageSize=function(s,c,u){if("object"===(0,Kt.A)(s)){var h=s;s=h.orientation,c=h.unit||c,u=h.format||u}c=c||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var v,g=(""+u).toLowerCase(),b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+c}var f,R=0,C=0;if(b.hasOwnProperty(g))R=b[g][1]/v,C=b[g][0]/v;else try{R=u[1],C=u[0]}catch{throw new Error("Invalid format: "+u)}if("p"===s||"portrait"===s)s="p",C>R&&(f=C,C=R,R=f);else{if("l"!==s&&"landscape"!==s)throw"Invalid orientation: "+s;s="l",R>C&&(f=C,C=R,R=f)}return{width:C,height:R,unit:c,k:v,orientation:s}},i.html=function(s,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(uc):null;var u=new r(c);return c.worker?u:u.from(s).doCallback()}}(bt.API),bt.API.addJS=function(i){return tu=i,this.internal.events.subscribe("postPutResources",function(){Vs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Vs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),eu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+tu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==Vs&&void 0!==eu&&this.internal.out("/Names <</JavaScript "+Vs+" 0 R>>")}),this},
44/**
45       * @license
46       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
47       *
48       * Licensed under the MIT License.
49       * http://opensource.org/licenses/mit-license
50       */
51function(i){var a;i.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=t.outline.render().split(/\r\n/),r=0;r<o.length;r++){var s=o[r],c=n.exec(s);null!=c&&t.internal.newObjectDeferredBegin(c[1],!1),t.internal.write(s)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,v=[];for(r=0;r<h;r++){var g=t.internal.newObject();v.push(g);var b=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+b.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<v.length;r++)t.internal.write("(page_"+(r+1)+")"+v[r]+" 0 R");t.internal.write(" ] >>","endobj"),a=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),i.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+a+" 0 R"))}]),i.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,o,r){var s={title:o,options:r,children:[]};return null==n&&(n=this.root),n.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var o=0;o<n.children.length;o++)this.genIds_r(n.children[o])},t.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<n.children.length;r++){var s=n.children[r];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(n)),r>0&&this.line("/Prev "+this.makeRef(n.children[r-1])),r<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[r+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var c=this.count=this.count_r({count:0},s);if(c>0&&this.line("/Count "+c),s.options&&s.options.pageNumber){var u=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var h=0;h<n.children.length;h++)this.renderItems(n.children[h])},t.outline.line=function(n){this.ctx.val+=n+"\r\n"},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+="\r\n"+n.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(n,o){for(var r=0;r<o.children.length;r++)n.count++,this.count_r(n,o.children[r]);return n.count}}])}(bt.API),
52/**
53       * @license
54       *
55       * Licensed under the MIT License.
56       * http://opensource.org/licenses/mit-license
57       */
58function(i){var a=[192,193,194,195,196,197,198,199];i.processJPEG=function(t,n,o,r,s,c){var u,h=this.decode.DCT_DECODE,v=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=this.__addimage__.isArrayBuffer(t=s||t)?new Uint8Array(t):t,(u=function(g){for(var b,f=256*g.charCodeAt(4)+g.charCodeAt(5),R=g.length,C={width:0,height:0,numcomponents:1},D=4;D<R;D+=2){if(-1!==a.indexOf(g.charCodeAt((D+=f)+1))){b=256*g.charCodeAt(D+5)+g.charCodeAt(D+6),C={width:256*g.charCodeAt(D+7)+g.charCodeAt(D+8),height:b,numcomponents:g.charCodeAt(D+9)};break}f=256*g.charCodeAt(D+2)+g.charCodeAt(D+3)}return C}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}v={data:t,width:u.width,height:u.height,colorSpace:c,bitsPerComponent:8,filter:h,index:n,alias:o}}return v}}(bt.API);var Jr,Bs,iu,nu,ou,j0=function(){var i,a,t;function n(r){var s,u,h,v,g,b,f,R,C,D,x,M,Y;for(this.data=r,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},g=null;;){switch(s=this.readUInt32(),R=function(){var ee,de;for(de=[],ee=0;ee<4;++ee)de.push(String.fromCharCode(this.data[this.pos++]));return de}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":g&&this.animation.frames.push(g),this.pos+=4,g={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},v=this.readUInt16(),h=this.readUInt16()||100,g.delay=1e3*v/h,g.disposeOp=this.data[this.pos++],g.blendOp=this.data[this.pos++],g.data=[];break;case"IDAT":case"fdAT":for("fdAT"===R&&(this.pos+=4,s-=4),r=g?.data||this.imgData,x=0;0<=s?x<s:x>s;0<=s?++x:--x)r.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((C=u-this.transparency.indexed.length)>0)for(M=0;0<=C?M<C:M>C;0<=C?++M:--M)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":b=(D=this.read(s)).indexOf(0),f=String.fromCharCode.apply(String,D.slice(0,b)),this.text[f]=String.fromCharCode.apply(String,D.slice(b+1));break;case"IEND":return g&&this.animation.frames.push(g),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(Y=this.colorType)||6===Y,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(r){var s,c;for(c=[],s=0;0<=r?s<r:s>r;0<=r?++s:--s)c.push(this.data[this.pos++]);return c},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(r){var s=this.pixelBitlength/8,c=new Uint8Array(this.width*this.height*s),u=0,h=this;if(null==r&&(r=this.imgData),0===r.length)return new Uint8Array(0);function v(g,b,f,R){var C,D,x,M,Y,ee,de,je,q,ae,ke,I,P,X,V,he,pe,ge,se,we,Fe=Math.ceil((h.width-g)/f),it=Math.ceil((h.height-b)/R),S=h.width==Fe&&h.height==it;for(P=s*Fe,ke=S?c:new Uint8Array(P*it),ee=r.length,I=0,D=0;I<it&&u<ee;){switch(r[u++]){case 0:for(M=he=0;he<P;M=he+=1)ke[D++]=r[u++];break;case 1:for(M=pe=0;pe<P;M=pe+=1)C=r[u++],Y=M<s?0:ke[D-s],ke[D++]=(C+Y)%256;break;case 2:for(M=ge=0;ge<P;M=ge+=1)C=r[u++],x=(M-M%s)/s,ke[D++]=((X=I&&ke[(I-1)*P+x*s+M%s])+C)%256;break;case 3:for(M=se=0;se<P;M=se+=1)C=r[u++],x=(M-M%s)/s,Y=M<s?0:ke[D-s],X=I&&ke[(I-1)*P+x*s+M%s],ke[D++]=(C+Math.floor((Y+X)/2))%256;break;case 4:for(M=we=0;we<P;M=we+=1)C=r[u++],x=(M-M%s)/s,0===I?X=V=0:(X=ke[(I-1)*P+x*s+M%s],V=x&&ke[(I-1)*P+(x-1)*s+M%s]),de=(Y=M<s?0:ke[D-s])+X-V,je=Math.abs(de-Y),q=Math.abs(de-X),ae=Math.abs(de-V),ke[D++]=(C+(je<=q&&je<=ae?Y:q<=ae?X:V))%256;break;default:throw new Error("Invalid filter algorithm: "+r[u-1])}if(!S){var O=((b+I*R)*h.width+g)*s,G=I*P;for(M=0;M<Fe;M+=1){for(var J=0;J<s;J+=1)c[O++]=ke[G++];O+=(f-1)*s}}I++}}return r=Es(r),1==h.interlaceMethod?(v(0,0,8,8),v(4,0,8,8),v(0,4,4,8),v(2,0,4,4),v(0,2,2,4),v(1,0,2,2),v(0,1,1,2)):v(0,0,1,1),c},n.prototype.decodePalette=function(){var r,s,c,u,h,v,g,b,f;for(c=this.palette,v=this.transparency.indexed||[],h=new Uint8Array((v.length||0)+c.length),u=0,r=0,s=g=0,b=c.length;g<b;s=g+=3)h[u++]=c[s],h[u++]=c[s+1],h[u++]=c[s+2],h[u++]=null!=(f=v[r++])?f:255;return h},n.prototype.copyToImageData=function(r,s){var c,u,h,v,g,b,f,R,C,D,x;if(u=this.colors,C=null,c=this.hasAlphaChannel,this.palette.length&&(C=null!=(x=this._decodedPalette)?x:this._decodedPalette=this.decodePalette(),u=4,c=!0),R=(h=r.data||r).length,g=C||s,v=b=0,1===u)for(;v<R;)f=C?4*s[v/4]:b,D=g[f++],h[v++]=D,h[v++]=D,h[v++]=D,h[v++]=c?g[f++]:255,b=f;else for(;v<R;)f=C?4*s[v/4]:b,h[v++]=g[f++],h[v++]=g[f++],h[v++]=g[f++],h[v++]=c?g[f++]:255,b=f},n.prototype.decode=function(){var r;return r=new Uint8Array(this.width*this.height*4),this.copyToImageData(r,this.decodePixels()),r};var o=function(){if("[object Window]"===Object.prototype.toString.call(kt)){try{a=kt.document.createElement("canvas"),t=a.getContext("2d")}catch{return!1}return!0}return!1};return o(),i=function(r){var s;if(!0===o())return t.width=r.width,t.height=r.height,t.clearRect(0,0,r.width,r.height),t.putImageData(r,0,0),(s=new Image).src=a.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(r){var s,c,u,h,v,g,b,f;if(this.animation){for(f=[],c=v=0,g=(b=this.animation.frames).length;v<g;c=++v)u=r.createImageData((s=b[c]).width,s.height),h=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(u,h),s.imageData=u,f.push(s.image=i(u));return f}},n.prototype.renderFrame=function(r,s){var c,u,h;return c=(u=this.animation.frames)[s],h=u[s-1],0===s&&r.clearRect(0,0,this.width,this.height),1===h?.disposeOp?r.clearRect(h.xOffset,h.yOffset,h.width,h.height):2===h?.disposeOp&&r.putImageData(h.imageData,h.xOffset,h.yOffset),0===c.blendOp&&r.clearRect(c.xOffset,c.yOffset,c.width,c.height),r.drawImage(c.image,c.xOffset,c.yOffset)},n.prototype.animate=function(r){var s,c,u,h,v,g,b=this;return c=0,h=(g=this.animation).numFrames,u=g.frames,v=g.numPlays,(s=function(){var f,R;if(f=c++%h,R=u[f],b.renderFrame(r,f),h>1&&c/h<v)return b.animation._timeout=setTimeout(s,R.delay)})()},n.prototype.stopAnimation=function(){var r;return clearTimeout(null!=(r=this.animation)?r._timeout:void 0)},n.prototype.render=function(r){var s,c;return r._png&&r._png.stopAnimation(),r._png=this,r.width=this.width,r.height=this.height,s=r.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(c=s.createImageData(this.width,this.height),this.copyToImageData(c,this.decodePixels()),s.putImageData(c,0,0))},n}();function F0(i){var a=0;if(71!==i[a++]||73!==i[a++]||70!==i[a++]||56!==i[a++]||56!=(i[a++]+1&253)||97!==i[a++])throw new Error("Invalid GIF 87a/89a header.");var t=i[a++]|i[a++]<<8,n=i[a++]|i[a++]<<8,o=i[a++],s=1<<1+(7&o);a++,a++;var c=null,u=null;o>>7&&(c=a,u=s,a+=3*s);var h=!0,v=[],g=0,b=null,f=0,R=null;for(this.width=t,this.height=n;h&&a<i.length;)switch(i[a++]){case 33:switch(i[a++]){case 255:if(11!==i[a]||78==i[a+1]&&69==i[a+2]&&84==i[a+3]&&83==i[a+4]&&67==i[a+5]&&65==i[a+6]&&80==i[a+7]&&69==i[a+8]&&50==i[a+9]&&46==i[a+10]&&48==i[a+11]&&3==i[a+12]&&1==i[a+13]&&0==i[a+16])a+=14,R=i[a++]|i[a++]<<8,a++;else for(a+=12;;){if(!((I=i[a++])>=0))throw Error("Invalid block size");if(0===I)break;a+=I}break;case 249:if(4!==i[a++]||0!==i[a+4])throw new Error("Invalid graphics extension block.");var C=i[a++];g=i[a++]|i[a++]<<8,b=i[a++],!(1&C)&&(b=null),f=C>>2&7,a++;break;case 254:for(;;){if(!((I=i[a++])>=0))throw Error("Invalid block size");if(0===I)break;a+=I}break;default:throw new Error("Unknown graphic control label: 0x"+i[a-1].toString(16))}break;case 44:var D=i[a++]|i[a++]<<8,x=i[a++]|i[a++]<<8,M=i[a++]|i[a++]<<8,Y=i[a++]|i[a++]<<8,ee=i[a++],de=ee>>6&1,je=1<<1+(7&ee),ie=c,q=u,ae=!1;ee>>7&&(ae=!0,ie=a,q=je,a+=3*je);var ke=a;for(a++;;){var I;if(!((I=i[a++])>=0))throw Error("Invalid block size");if(0===I)break;a+=I}v.push({x:D,y:x,width:M,height:Y,has_local_palette:ae,palette_offset:ie,palette_size:q,data_offset:ke,data_length:a-ke,transparent_index:b,interlaced:!!de,delay:g,disposal:f});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+i[a-1].toString(16))}this.numFrames=function(){return v.length},this.loopCount=function(){return R},this.frameInfo=function(P){if(P<0||P>=v.length)throw new Error("Frame index out of range.");return v[P]},this.decodeAndBlitFrameBGRA=function(P,X){var V=this.frameInfo(P),he=V.width*V.height,pe=new Uint8Array(he);ru(i,V.data_offset,pe,he);var ge=V.palette_offset,se=V.transparent_index;null===se&&(se=256);var we=V.width,Fe=t-we,it=we,S=4*(V.y*t+V.x),O=4*((V.y+V.height)*t+V.x),G=S,J=4*Fe;!0===V.interlaced&&(J+=4*t*7);for(var K=8,ce=0,ue=pe.length;ce<ue;++ce){var _e=pe[ce];if(0===it&&(it=we,(G+=J)>=O&&(J=4*Fe+4*t*(K-1),G=S+(we+Fe)*(K<<1),K>>=1)),_e===se)G+=4;else{var Le=i[ge+3*_e],Ae=i[ge+3*_e+1];X[G++]=i[ge+3*_e+2],X[G++]=Ae,X[G++]=Le,X[G++]=255}--it}},this.decodeAndBlitFrameRGBA=function(P,X){var V=this.frameInfo(P),he=V.width*V.height,pe=new Uint8Array(he);ru(i,V.data_offset,pe,he);var ge=V.palette_offset,se=V.transparent_index;null===se&&(se=256);var we=V.width,Fe=t-we,it=we,S=4*(V.y*t+V.x),O=4*((V.y+V.height)*t+V.x),G=S,J=4*Fe;!0===V.interlaced&&(J+=4*t*7);for(var K=8,ce=0,ue=pe.length;ce<ue;++ce){var _e=pe[ce];if(0===it&&(it=we,(G+=J)>=O&&(J=4*Fe+4*t*(K-1),G=S+(we+Fe)*(K<<1),K>>=1)),_e===se)G+=4;else{var Ae=i[ge+3*_e+1],tt=i[ge+3*_e+2];X[G++]=i[ge+3*_e],X[G++]=Ae,X[G++]=tt,X[G++]=255}--it}}}function ru(i,a,t,n){for(var o=i[a++],r=1<<o,s=r+1,c=s+1,u=o+1,h=(1<<u)-1,v=0,g=0,b=0,f=i[a++],R=new Int32Array(4096),C=null;;){for(;v<16&&0!==f;)g|=i[a++]<<v,v+=8,1===f?f=i[a++]:--f;if(v<u)break;var D=g&h;if(g>>=u,v-=u,D!==r){if(D===s)break;for(var x=D<c?D:C,M=0,Y=x;Y>r;)Y=R[Y]>>8,++M;var ee=Y;if(b+M+(x!==D?1:0)>n)return void ei.log("Warning, gif stream longer than expected.");t[b++]=ee;var de=b+=M;for(x!==D&&(t[b++]=ee),Y=x;M--;)t[--de]=255&(Y=R[Y]),Y>>=8;null!==C&&c<4096&&(R[c++]=C<<8|ee,c>=h+1&&u<12&&(++u,h=h<<1|1)),C=D}else c=s+1,h=(1<<(u=o+1))-1,C=null}return b!==n&&ei.log("Warning, gif stream shorter than expected."),t}function _c(i){var a,t,n,o,r,s=Math.floor,c=new Array(64),u=new Array(64),h=new Array(64),v=new Array(64),g=new Array(65535),b=new Array(65535),f=new Array(64),R=new Array(64),C=[],D=0,x=7,M=new Array(64),Y=new Array(64),ee=new Array(64),de=new Array(256),je=new Array(2048),ie=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ae=[0,1,2,3,4,5,6,7,8,9,10,11],ke=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],he=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function pe(S,O){for(var G=0,J=0,K=new Array,ce=1;ce<=16;ce++){for(var ue=1;ue<=S[ce];ue++)K[O[J]]=[],K[O[J]][0]=G,K[O[J]][1]=ce,J++,G++;G*=2}return K}function ge(S){for(var O=S[0],G=S[1]-1;G>=0;)O&1<<G&&(D|=1<<x),G--,--x<0&&(255==D?(se(255),se(0)):se(D),x=7,D=0)}function se(S){C.push(S)}function we(S){se(S>>8&255),se(255&S)}function Fe(S,O,G,J,K){for(var ce,ue=K[0],_e=K[240],Le=function(Oe,Ye){var nt,Ke,ft,St,Pt,Nt,qt,Wt,xt,Mt,ot=0;for(xt=0;xt<8;++xt){var on=(nt=Oe[ot])+(Wt=Oe[ot+7]),Bt=nt-Wt,Wn=(Ke=Oe[ot+1])+(qt=Oe[ot+6]),ti=Ke-qt,ci=(ft=Oe[ot+2])+(Nt=Oe[ot+5]),mo=ft-Nt,Yt=(St=Oe[ot+3])+(Pt=Oe[ot+4]),_r=St-Pt,fi=on+Yt,Zn=on-Yt,Ro=Wn+ci,mi=Wn-ci;Oe[ot]=fi+Ro,Oe[ot+4]=fi-Ro;var Et=.707106781*(mi+Zn);Oe[ot+2]=Zn+Et,Oe[ot+6]=Zn-Et;var Jt=.382683433*((fi=_r+mo)-(mi=ti+Bt)),hr=.5411961*fi+Jt,Ui=1.306562965*mi+Jt,go=.707106781*(Ro=mo+ti),vo=Bt+go,yt=Bt-go;Oe[ot+5]=yt+hr,Oe[ot+3]=yt-hr,Oe[ot+1]=vo+Ui,Oe[ot+7]=vo-Ui,ot+=8}for(ot=0,xt=0;xt<8;++xt){var Qn=(nt=Oe[ot])+(Wt=Oe[ot+56]),bo=nt-Wt,vn=(Ke=Oe[ot+8])+(qt=Oe[ot+48]),Di=Ke-qt,Si=(ft=Oe[ot+16])+(Nt=Oe[ot+40]),Sn=ft-Nt,Ur=(St=Oe[ot+24])+(Pt=Oe[ot+32]),To=St-Pt,Kn=Qn+Ur,eo=Qn-Ur,to=vn+Si,yo=vn-Si;Oe[ot]=Kn+to,Oe[ot+32]=Kn-to;var An=.707106781*(yo+eo);Oe[ot+16]=eo+An,Oe[ot+48]=eo-An;var ko=.382683433*((Kn=To+Sn)-(yo=Di+bo)),fr=.5411961*Kn+ko,Xr=1.306562965*yo+ko,zr=.707106781*(to=Sn+Di),Hr=bo+zr,Wr=bo-zr;Oe[ot+40]=Wr+fr,Oe[ot+24]=Wr-fr,Oe[ot+8]=Hr+Xr,Oe[ot+56]=Hr-Xr,ot++}for(xt=0;xt<64;++xt)f[xt]=(Mt=Oe[xt]*Ye[xt])>0?Mt+.5|0:Mt-.5|0;return f}(S,O),Ae=0;Ae<64;++Ae)R[ie[Ae]]=Le[Ae];var tt=R[0]-G;G=R[0],0==tt?ge(J[0]):(ge(J[b[ce=32767+tt]]),ge(g[ce]));for(var Ze=63;Ze>0&&0==R[Ze];)Ze--;if(0==Ze)return ge(ue),G;for(var wt,xe=1;xe<=Ze;){for(var L=xe;0==R[xe]&&xe<=Ze;)++xe;var Tt=xe-L;if(Tt>=16){wt=Tt>>4;for(var _t=1;_t<=wt;++_t)ge(_e);Tt&=15}ge(K[(Tt<<4)+b[ce=32767+R[xe]]]),ge(g[ce]),xe++}return 63!=Ze&&ge(ue),G}function it(S){S=Math.min(Math.max(S,1),100),r!=S&&(function(O){for(var G=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],J=0;J<64;J++){var K=s((G[J]*O+50)/100);K=Math.min(Math.max(K,1),255),c[ie[J]]=K}for(var ce=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ue=0;ue<64;ue++){var _e=s((ce[ue]*O+50)/100);_e=Math.min(Math.max(_e,1),255),u[ie[ue]]=_e}for(var Le=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ae=0,tt=0;tt<8;tt++)for(var Ze=0;Ze<8;Ze++)h[Ae]=1/(c[ie[Ae]]*Le[tt]*Le[Ze]*8),v[Ae]=1/(u[ie[Ae]]*Le[tt]*Le[Ze]*8),Ae++}(S<50?Math.floor(5e3/S):Math.floor(200-2*S)),r=S)}this.encode=function(S,O){var Ke,ft;O&&it(O),C=new Array,D=0,x=7,we(65496),we(65504),we(16),se(74),se(70),se(73),se(70),se(0),se(1),se(1),se(0),we(1),we(1),se(0),se(0),function(){we(65499),we(132),se(0);for(var Ke=0;Ke<64;Ke++)se(c[Ke]);se(1);for(var ft=0;ft<64;ft++)se(u[ft])}(),Ke=S.width,ft=S.height,we(65472),we(17),se(8),we(ft),we(Ke),se(3),se(1),se(17),se(0),se(2),se(17),se(1),se(3),se(17),se(1),function(){we(65476),we(418),se(0);for(var Ke=0;Ke<16;Ke++)se(q[Ke+1]);for(var ft=0;ft<=11;ft++)se(ae[ft]);se(16);for(var St=0;St<16;St++)se(ke[St+1]);for(var Pt=0;Pt<=161;Pt++)se(I[Pt]);se(1);for(var Nt=0;Nt<16;Nt++)se(P[Nt+1]);for(var qt=0;qt<=11;qt++)se(X[qt]);se(17);for(var Wt=0;Wt<16;Wt++)se(V[Wt+1]);for(var xt=0;xt<=161;xt++)se(he[xt])}(),we(65498),we(12),se(3),se(1),se(0),se(2),se(17),se(3),se(17),se(0),se(63),se(0);var G=0,J=0,K=0;D=0,x=7,this.encode.displayName="_encode_";for(var ce,ue,_e,Le,Ae,tt,Ze,wt,xe,L=S.data,_t=S.height,Oe=4*S.width,Ye=0;Ye<_t;){for(ce=0;ce<Oe;){for(Ae=Oe*Ye+ce,Ze=-1,wt=0,xe=0;xe<64;xe++)tt=Ae+(wt=xe>>3)*Oe+(Ze=4*(7&xe)),Ye+wt>=_t&&(tt-=Oe*(Ye+1+wt-_t)),ce+Ze>=Oe&&(tt-=ce+Ze-Oe+4),ue=L[tt++],_e=L[tt++],Le=L[tt++],M[xe]=(je[ue]+je[_e+256|0]+je[Le+512|0]>>16)-128,Y[xe]=(je[ue+768|0]+je[_e+1024|0]+je[Le+1280|0]>>16)-128,ee[xe]=(je[ue+1280|0]+je[_e+1536|0]+je[Le+1792|0]>>16)-128;G=Fe(M,h,G,a,n),J=Fe(Y,v,J,t,o),K=Fe(ee,v,K,t,o),ce+=32}Ye+=8}if(x>=0){var nt=[];nt[1]=x+1,nt[0]=(1<<x+1)-1,ge(nt)}return we(65497),new Uint8Array(C)},i=i||50,function(){for(var S=String.fromCharCode,O=0;O<256;O++)de[O]=S(O)}(),a=pe(q,ae),t=pe(P,X),n=pe(ke,I),o=pe(V,he),function(){for(var S=1,O=2,G=1;G<=15;G++){for(var J=S;J<O;J++)b[32767+J]=G,g[32767+J]=[],g[32767+J][1]=G,g[32767+J][0]=J;for(var K=-(O-1);K<=-S;K++)b[32767+K]=G,g[32767+K]=[],g[32767+K][1]=G,g[32767+K][0]=O-1+K;S<<=1,O<<=1}}(),function(){for(var S=0;S<256;S++)je[S]=19595*S,je[S+256|0]=38470*S,je[S+512|0]=7471*S+32768,je[S+768|0]=-11059*S,je[S+1024|0]=-21709*S,je[S+1280|0]=32768*S+8421375,je[S+1536|0]=-27439*S,je[S+1792|0]=-5329*S}(),it(i)}function zn(i,a){if(this.pos=0,this.buffer=i,this.datav=new DataView(i.buffer),this.is_with_alpha=!!a,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function au(i){function a(q){if(!q)throw Error("assert :P")}function t(q,ae,ke){for(var I=0;4>I;I++)if(q[ae+I]!=ke.charCodeAt(I))return!0;return!1}function n(q,ae,ke,I,P){for(var X=0;X<P;X++)q[ae+X]=ke[I+X]}function o(q,ae,ke,I){for(var P=0;P<I;P++)q[ae+P]=ke}function r(q){return new Int32Array(q)}function s(q,ae){for(var ke=[],I=0;I<q;I++)ke.push(new ae);return ke}function c(q,ae){var ke=[];
vendor: 4,519 bytes, line 58
58return function I(P,X,V){for(var he=V[X],pe=0;pe<he&&(P.push(V.length>X+1?[]:new ae),!(V.length<X+1));pe++)I(P[pe],X+1,V)}(ke,0,q),ke}var u=function(){var q=this;function ae(l,d){for(var _=1<<d-1>>>0;l&_;)_>>>=1;return _?(l&_-1)+_:l}function ke(l,d,_,m,y){a(!(m%_));do{l[d+(m-=_)]=y}while(0<m)}function I(l,d,_,m,y){if(a(2328>=y),512>=y)var j=r(512);else if(null==(j=r(y)))return 0;return function(F,E,T,N,U,oe){var re,Q,Re=E,fe=1<<T,z=r(16),W=r(16);for(a(0!=U),a(null!=N),a(null!=F),a(0<T),Q=0;Q<U;++Q){if(15<N[Q])return 0;++z[N[Q]]}if(z[0]==U)return 0;for(W[1]=0,re=1;15>re;++re){if(z[re]>1<<re)return 0;W[re+1]=W[re]+z[re]}for(Q=0;Q<U;++Q)re=N[Q],0<N[Q]&&(oe[W[re]++]=Q);if(1==W[15])return(N=new P).g=0,N.value=oe[0],ke(F,Re,1,fe,N),fe;var Se,Ie=-1,Ee=fe-1,ct=0,Je=1,gt=1,Qe=1<<T;for(Q=0,re=1,U=2;re<=T;++re,U<<=1){if(Je+=gt<<=1,0>(gt-=z[re]))return 0;for(;0<z[re];--z[re])(N=new P).g=re,N.value=oe[Q++],ke(F,Re+ct,U,Qe,N),ct=ae(ct,re)}for(re=T+1,U=2;15>=re;++re,U<<=1){if(Je+=gt<<=1,0>(gt-=z[re]))return 0;for(;0<z[re];--z[re]){if(N=new P,(ct&Ee)!=Ie){for(Re+=Qe,Se=1<<(Ie=re)-T;15>Ie&&!(0>=(Se-=z[Ie]));)++Ie,Se<<=1;fe+=Qe=1<<(Se=Ie-T),F[E+(Ie=ct&Ee)].g=Se+T,F[E+Ie].value=Re-E-Ie}N.g=re-T,N.value=oe[Q++],ke(F,Re+(ct>>T),U,Qe,N),ct=ae(ct,re)}}return Je!=2*W[15]-1?0:fe}(l,d,_,m,y,j)}function P(){this.value=this.g=0}function X(){this.value=this.g=0}function V(){this.G=s(5,P),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Xi,X)}function he(l,d,_,m){a(null!=l),a(null!=d),a(2147483648>m),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=d,l.pa=_,l.Jd=d,l.Yc=_+m,l.Zc=4<=m?_+m-4+1:_,ce(l)}function pe(l,d){for(var _=0;0<d--;)_|=_e(l,128)<<d;return _}function ge(l,d){var _=pe(l,d);return ue(l)?-_:_}function se(l,d,_,m){var y,j=0;for(a(null!=l),a(null!=d),a(4294967288>m),l.Sb=m,l.Ra=0,l.u=0,l.h=0,4<m&&(m=4),y=0;y<m;++y)j+=d[_+y]<<8*y;l.Ra=j,l.bb=m,l.oa=d,l.pa=_}function we(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<ua-8>>>0,++l.bb,l.u-=8;G(l)&&(l.h=1,l.u=0)}function Fe(l,d){if(a(0<=d),!l.h&&d<=da){var _=O(l)&ca[d];return l.u+=d,we(l),_}return l.h=1,l.u=0}function it(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function S(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function O(l){return l.Ra>>>(l.u&ua-1)>>>0}function G(l){return a(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>ua}function J(l,d){l.u=d,l.h=G(l)}function K(l){l.u>=Ka&&(a(l.u>=Ka),we(l))}function ce(l){a(null!=l&&null!=l.oa),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(a(null!=l&&null!=l.oa),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function ue(l){return pe(l,1)}function _e(l,d){var _=l.Ca;0>l.b&&ce(l);var m=l.b,y=_*d>>>8,j=(l.I>>>m>y)+0;for(j?(_-=y,l.I-=y+1<<m>>>0):_=y+1,m=_,y=0;256<=m;)y+=8,m>>=8;return l.b-=m=7^y+yn[m],l.Ca=(_<<m)-1,j}function Le(l,d,_){l[d+0]=_>>24&255,l[d+1]=_>>16&255,l[d+2]=_>>8&255,l[d+3]=255&_}function Ae(l,d){return l[d+0]|l[d+1]<<8}function tt(l,d){return Ae(l,d)|l[d+2]<<16}function Ze(l,d){return Ae(l,d)|Ae(l,d+2)<<16}function wt(l,d){var _=1<<d;return a(null!=l),a(0<d),l.X=r(_),null==l.X?0:(l.Mb=32-d,l.Xa=d,1)}function xe(l,d){a(null!=l),a(null!=d),a(l.Xa==d.Xa),n(d.X,0,l.X,0,1<<d.Xa)}function L(){this.X=[],this.Xa=this.Mb=0}function Tt(l,d,_,m){a(null!=_),a(null!=m);var y=_[0],j=m[0];return 0==y&&(y=(l*j+d/2)/d),0==j&&(j=(d*y+l/2)/l),0>=y||0>=j?0:(_[0]=y,m[0]=j,1)}function _t(l,d){return l+(1<<d)-1>>>d}function Oe(l,d){return((4278255360&l)+(4278255360&d)>>>0&4278255360)+((16711935&l)+(16711935&d)>>>0&16711935)>>>0}function Ye(l,d){q[d]=function(_,m,y,j,F,E,T){var N;for(N=0;N<F;++N){var U=q[l](E[T+N-1],y,j+N);E[T+N]=Oe(_[m+N],U)}}}function nt(){this.ud=this.hd=this.jd=0}function Ke(l,d){return((4278124286&(l^d))>>>1)+(l&d)>>>0}function ft(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function St(l,d){return ft(l+(l-d+.5>>1))}function Pt(l,d,_){return Math.abs(d-_)-Math.abs(l-_)}function Nt(l,d,_,m,y,j,F){for(m=j[F-1],_=0;_<y;++_)j[F+_]=m=Oe(l[d+_],m)}function qt(l,d,_,m,y){var j;for(j=0;j<_;++j){var F=l[d+j],E=F>>8&255,T=16711935&(T=(T=16711935&F)+((E<<16)+E));m[y+j]=(4278255360&F)+T>>>0}}function Wt(l,d){d.jd=255&l,d.hd=l>>8&255,d.ud=l>>16&255}function xt(l,d,_,m,y,j){var F;for(F=0;F<m;++F){var E=d[_+F],T=E>>>8,N=E,U=255&(U=(U=E>>>16)+((l.jd<<24>>24)*(T<<24>>24)>>>5));N=255&(N=(N+=(l.hd<<24>>24)*(T<<24>>24)>>>5)+((l.ud<<24>>24)*(U<<24>>24)>>>5)),y[j+F]=(4278255360&E)+(U<<16)+N}}function Mt(l,d,_,m,y){q[d]=function(j,F,E,T,N,U,oe,re,Q){for(T=oe;T<re;++T)for(oe=0;oe<Q;
vendor: 40,281 bytes, line 58
58++oe)N[U++]=y(E[m(j[F++])])},q[l]=function(j,F,E,T,N,U,oe){var re=8>>j.b,Q=j.Ea,Re=j.K[0],fe=j.w;if(8>re)for(j=(1<<j.b)-1,fe=(1<<re)-1;F<E;++F){var z,W=0;for(z=0;z<Q;++z)z&j||(W=m(T[N++])),U[oe++]=y(Re[W&fe]),W>>=re}else q["VP8LMapColor"+_](T,N,Re,fe,U,oe,F,E,Q)}}function ot(l,d,_,m,y){for(_=d+_;d<_;){var j=l[d++];m[y++]=j>>16&255,m[y++]=j>>8&255,m[y++]=255&j}}function on(l,d,_,m,y){for(_=d+_;d<_;){var j=l[d++];m[y++]=j>>16&255,m[y++]=j>>8&255,m[y++]=255&j,m[y++]=j>>24&255}}function Bt(l,d,_,m,y){for(_=d+_;d<_;){var j=(F=l[d++])>>16&240|F>>12&15,F=240&F|F>>28&15;m[y++]=j,m[y++]=F}}function Wn(l,d,_,m,y){for(_=d+_;d<_;){var j=(F=l[d++])>>16&248|F>>13&7,F=F>>5&224|F>>3&31;m[y++]=j,m[y++]=F}}function ti(l,d,_,m,y){for(_=d+_;d<_;){var j=l[d++];m[y++]=255&j,m[y++]=j>>8&255,m[y++]=j>>16&255}}function ci(l,d,_,m,y,j){if(0==j)for(_=d+_;d<_;)Le(m,((j=l[d++])[0]>>24|j[1]>>8&65280|j[2]<<8&16711680|j[3]<<24)>>>0),y+=32;else n(m,y,l,d,_)}function mo(l,d){q[d][0]=q[l+"0"],q[d][1]=q[l+"1"],q[d][2]=q[l+"2"],q[d][3]=q[l+"3"],q[d][4]=q[l+"4"],q[d][5]=q[l+"5"],q[d][6]=q[l+"6"],q[d][7]=q[l+"7"],q[d][8]=q[l+"8"],q[d][9]=q[l+"9"],q[d][10]=q[l+"10"],q[d][11]=q[l+"11"],q[d][12]=q[l+"12"],q[d][13]=q[l+"13"],q[d][14]=q[l+"0"],q[d][15]=q[l+"0"]}function Yt(l){return l==Vc||l==Bc||l==bl||l==$c}function _r(){this.eb=[],this.size=this.A=this.fb=0}function fi(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Zn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new _r,this.f.kb=new fi,this.sd=null}function Ro(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function mi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Et(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Jt(l,d){var _=l.T,m=d.ba.f.RGBA,y=m.eb,j=m.fb+l.ka*m.A,F=$n[d.ba.S],E=l.y,T=l.O,N=l.f,U=l.N,oe=l.ea,re=l.W,Q=d.cc,Re=d.dc,fe=d.Mc,z=d.Nc,W=l.ka,Se=l.ka+l.T,Ie=l.U,Ee=Ie+1>>1;for(0==W?F(E,T,null,null,N,U,oe,re,N,U,oe,re,y,j,null,null,Ie):(F(d.ec,d.fc,E,T,Q,Re,fe,z,N,U,oe,re,y,j-m.A,y,j,Ie),++_);W+2<Se;W+=2)F(E,(T+=2*l.fa)-l.fa,E,T,Q=N,Re=U,fe=oe,z=re,N,U+=l.Rc,oe,re+=l.Rc,y,(j+=2*m.A)-m.A,y,j,Ie);return T+=l.fa,l.j+Se<l.o?(n(d.ec,d.fc,E,T,Ie),n(d.cc,d.dc,N,U,Ee),n(d.Mc,d.Nc,oe,re,Ee),_--):1&Se||F(E,T,null,null,N,U,oe,re,N,U,oe,re,y,j+m.A,null,null,Ie),_}function hr(l,d,_){var m=l.F,y=[l.J];if(null!=m){var j=l.U,F=d.ba.S,E=F==vl||F==bl;d=d.ba.f.RGBA;var T=[0],N=l.ka;T[0]=l.T,l.Kb&&(0==N?--T[0]:(--N,y[0]-=l.width),l.j+l.ka+l.T==l.o&&(T[0]=l.o-l.j-N));var U=d.eb;l=ri(m,y[0],l.width,j,T,U,(N=d.fb+N*d.A)+(E?0:3),d.A),a(_==T),l&&Yt(F)&&Vn(U,N,E,j,T,d.A)}return 0}function Ui(l){var d=l.ma,_=d.ba.S,m=11>_,y=_==ml||_==gl||_==vl||_==qc||12==_||Yt(_);if(d.memory=null,d.Ib=null,d.Jb=null,d.Nd=null,!Za(d.Oa,l,y?11:12))return 0;if(y&&Yt(_)&&De(),l.da)alert("todo:use_scaling");else{if(m){if(d.Ib=Et,l.Kb){if(d.memory=r(l.U+2*(_=l.U+1>>1)),null==d.memory)return 0;d.ec=d.memory,d.fc=0,d.cc=d.ec,d.dc=d.fc+l.U,d.Mc=d.cc,d.Nc=d.dc+_,d.Ib=Jt,De()}}else alert("todo:EmitYUV");y&&(d.Jb=hr,m&&te())}if(m&&!xu){for(l=0;256>l;++l)gy[l]=89858*(l-128)+kl>>yl,yy[l]=-22014*(l-128)+kl,by[l]=-45773*(l-128),vy[l]=113618*(l-128)+kl>>yl;for(l=as;l<Uc;++l)ky[l-as]=En(d=76283*(l-16)+kl>>yl,255),wy[l-as]=En(d+8>>4,15);xu=1}return 1}function go(l){var d=l.ma,_=l.U,m=l.T;return a(!(1&l.ka)),0>=_||0>=m?0:(_=d.Ib(l,d),null!=d.Jb&&d.Jb(l,d,_),d.Dc+=_,1)}function vo(l){l.ma.memory=null}function yt(l,d,_,m){return 47!=Fe(l,8)?0:(d[0]=Fe(l,14)+1,_[0]=Fe(l,14)+1,m[0]=Fe(l,1),0!=Fe(l,3)?0:!l.h)}function Qn(l,d){if(4>l)return l+1;var _=l-2>>1;return(2+(1&l)<<_)+Fe(d,_)+1}function bo(l,d){return 120<d?d-120:1<=(_=((_=ny[d-1])>>4)*l+(8-(15&_)))?_:1;var _}function vn(l,d,_){var m=O(_),y=l[d+=255&m].g-8;return 0<y&&(J(_,_.u+8),m=O(_),d+=l[d].value,d+=m&(1<<y)-1),J(_,_.u+l[d].g),l[d].value}function Di(l,d,_){return _.g+=l.g,_.value+=l.value<<d>>>0,a(8>=_.g),l.g}function Si(l,d,_){var m=l.xc;return a((d=0==m?0:l.vc[l.md*(_>>m)+(d>>m)])<l.Wb),l.Ya[d]}function Sn(l,d,_,m){var y=l.ab,j=l.c*d,F=l.C;d=F+d;var E=_,T=m;for(m=l.Ta,_=l.Ua;0<y--;){var N=l.gc[y],U=F,oe=d,re=E,Q=T,Re=(T=m,E=_,N.Ea);switch(a(U<oe),a(oe<=N.nc),N.hc){case 2:cl(re,Q,(oe-U)*Re,T,E);break;case 0:var fe=U,z=oe,W=T,Se=E,Ie=(Qe=N).Ea;0==fe&&(Gc(re,Q,null,null,1,W,Se),Nt(re,Q+1,0,0,Ie-1,W,Se+1),Q+=Ie,Se+=Ie,++fe);for(var Ee=1<<Qe.b,ct=Ee-1,Je=_t(Ie,Qe.b),gt=Qe.K,Qe=Qe.w+(fe>>Qe.b)*Je;fe<z;){var $t=gt,zt=Qe,Vt=1;for(es(re,Q,W,Se-Ie,1,W,Se);Vt<Ie;){var Ot=(Vt&~ct)+Ee;Ot>Ie&&(Ot=Ie),(0,Zo[$t[zt++]>>8&15])(re,Q+ +Vt,W,Se+Vt-Ie,Ot-Vt,W,Se+Vt),Vt=Ot}Q+=Ie,Se+=Ie,++fe&ct||(Qe+=Je)}oe!=N.nc&&n(T,E-Re,T,E+(oe-U-1)*Re,Re);break;case 1:for(Re=re,z=Q,Ie=(re=N.Ea)-(Se=re&~(W=(Q=1<<N.b)-1)),fe=_t(re,N.b),Ee=N.K,N=N.w+(U>>N.b)*fe;U<oe;){for(ct=Ee,Je=N,gt=new nt,Qe=z+Se,$t=z+re;z<Qe;)Wt(ct[Je++],gt),yr(gt,Re,z,Q,T,E),z+=Q,E+=Q;z<$t&&(Wt(ct[Je++],gt),yr(gt,Re,z,Ie,T,E),z+=Ie,E+=Ie),++U&W||(N+=fe)}break;case 3:if(re==T&&Q==E&&0<N.b){for(z=T,re=Re=E+(oe-U)*Re-(Se=(oe-U)*_t(N.Ea,N.b)),Q=T,W=E,fe=[],Se=(Ie=Se)-1;0<=Se;--Se)fe[Se]=Q[W+Se];for(Se=Ie-1;0<=Se;--Se)z[re+Se]=fe[Se];Gn(N,U,oe,T,Re,T,E)}else Gn(N,U,oe,re,Q,T,E)}E=m,T=_}T!=_&&n(m,_,E,T,j)}function Ur(l,d){var _=l.V,m=l.Ba+l.c*l.C,y=d-l.C;if(a(d<=l.l.o),a(16>=y),0<y){var j=l.l,F=l.Ta,E=l.Ua,T=j.width;if(Sn(l,y,_,m),y=E=[E],a((_=l.C)<(m=d)),a(j.v<j.va),m>j.o&&(m=j.o),_<j.j){var N=j.j-_;_=j.j,y[0]+=N*T}if(_>=m?_=0:(y[0]+=4*j.v,j.ka=_-j.j,j.U=j.va-j.v,j.T=m-_,_=1),_){if(E=E[0],11>(_=l.ca).S){var U=_.f.RGBA,oe=(m=_.S,y=j.U,j=j.T,N=U.eb,U.A),re=j;for(U=U.fb+l.Ma*U.A;0<re--;){var Q=F,Re=E,fe=y,z=N,W=U;switch(m){case fl:kn(Q,Re,fe,z,W);break;case ml:_n(Q,Re,fe,z,W);break;case Vc:_n(Q,Re,fe,z,W),Vn(z,W,0,fe,1,0);break;case _u:No(Q,Re,fe,z,W);break;case gl:ci(Q,Re,fe,z,W,1);break;case Bc:ci(Q,Re,fe,z,W,1),Vn(z,W,0,fe,1,0);break;case vl:ci(Q,Re,fe,z,W,0);break;case bl:ci(Q,Re,fe,z,W,0),Vn(z,W,1,fe,1,0);break;case qc:Qo(Q,Re,fe,z,W);break;case $c:Qo(Q,Re,fe,z,W),oi(z,W,fe,1,0);break;case hu:Po(Q,Re,fe,z,W);break;default:a(0)}E+=T,U+=oe}l.Ma+=j}else alert("todo:EmitRescaledRowsYUVA");a(l.Ma<=_.height)}}l.C=d,a(l.C<=l.i)}function To(l){var d;if(0<l.ua)return 0;for(d=0;d<l.Wb;++d){var _=l.Ya[d].G,m=l.Ya[d].H;if(0<_[1][m[1]+0].g||0<_[2][m[2]+0].g||0<_[3][m[3]+0].g)return 0}return 1}function Kn(l,d,_,m,y,j){if(0!=l.Z){var F=l.qd,E=l.rd;for(a(null!=ir[l.Z]);d<_;++d)ir[l.Z](F,E,m,y,m,y,j),F=m,E=y,y+=j;l.qd=F,l.rd=E}}function eo(l,d){var _=l.l.ma,m=0==_.Z||1==_.Z?l.l.j:l.C;if(m=l.C<m?m:l.C,a(d<=l.l.o),d>m){var y=l.l.width,j=_.ca,F=_.tb+y*m,E=l.V,T=l.Ba+l.c*m,N=l.gc;a(1==l.ab),a(3==N[0].hc),dl(N[0],m,d,E,T,j,F),Kn(_,m,d,j,F,y)}l.C=l.Ma=d}function to(l,d,_,m,y,j,F){var E=l.$/m,T=l.$%m,N=l.m,U=l.s,oe=_+l.$,re=oe;y=_+m*y;var Q=_+m*j,Re=280+U.ua,fe=l.Pb?E:16777216,z=0<U.ua?U.Wa:null,W=U.wc,Se=oe<Q?Si(U,T,E):null;a(l.C<j),a(Q<=y);var Ie=!1;e:for(;;){for(;Ie||oe<Q;){var Ee=0;if(E>=fe){var ct=oe-_;a((fe=l).Pb),fe.wd=fe.m,fe.xd=ct,0<fe.s.ua&&xe(fe.s.Wa,fe.s.vb),fe=E+ry}if(T&W||(Se=Si(U,T,E)),a(null!=Se),Se.Qb&&(d[oe]=Se.qb,Ie=!0),!Ie)if(K(N),Se.jc){ct=d;var Je=oe,gt=Se.pd[O(Ee=N)&Xi-1];a(Se.jc),256>gt.g?(J(Ee,Ee.u+gt.g),ct[Je]=gt.value,Ee=0):(J(Ee,Ee.u+gt.g-256),a(256<=gt.value),Ee=gt.value),0==Ee&&(Ie=!0)}else Ee=vn(Se.G[0],Se.H[0],N);if(N.h)break;if(Ie||256>Ee){if(!Ie)if(Se.nd)d[oe]=(Se.qb|Ee<<8)>>>0;else{if(K(N),Ie=vn(Se.G[1],Se.H[1],N),K(N),ct=vn(Se.G[2],Se.H[2],N),Je=vn(Se.G[3],Se.H[3],N),N.h)break;d[oe]=(Je<<24|Ie<<16|Ee<<8|ct)>>>0}if(Ie=!1,++oe,++T>=m&&(T=0,++E,null!=F&&E<=j&&!(E%16)&&F(l,E),null!=z))for(;re<oe;)Ee=d[re++],z.X[(506832829*Ee&4294967295)>>>z.Mb]=Ee}else if(280>Ee){if(Ee=Qn(Ee-256,N),ct=vn(Se.G[4],Se.H[4],N),K(N),ct=bo(m,ct=Qn(ct,N)),N.h)break;if(oe-_<ct||y-oe<Ee)break e;for(Je=0;Je<Ee;++Je)d[oe+Je]=d[oe+Je-ct];for(oe+=Ee,T+=Ee;T>=m;)T-=m,++E,null!=F&&E<=j&&!(E%16)&&F(l,E);if(a(oe<=y),T&W&&(Se=Si(U,T,E)),null!=z)for(;re<oe;)Ee=d[re++],z.X[(506832829*Ee&4294967295)>>>z.Mb]=Ee}else{if(!(Ee<Re))break e;for(Ie=Ee-280,a(null!=z);re<oe;)Ee=d[re++],z.X[(506832829*Ee&4294967295)>>>z.Mb]=Ee;Ee=oe,a(!(Ie>>>(ct=z).Xa)),d[Ee]=ct.X[Ie],Ie=!0}Ie||a(N.h==G(N))}if(l.Pb&&N.h&&oe<y)a(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&xe(l.s.vb,l.s.Wa);else{if(N.h)break e;F?.(l,E>j?j:E),l.a=0,l.$=oe-_}return 1}return l.a=3,0}function yo(l){a(null!=l),l.vc=null,l.yc=null,l.Ya=null;var d=l.Wa;null!=d&&(d.X=null),l.vb=null,a(null!=l)}function An(){var l=new Ac;return null==l?null:(l.a=0,l.xb=gu,mo("Predictor","VP8LPredictors"),mo("Predictor","VP8LPredictors_C"),mo("PredictorAdd","VP8LPredictorsAdd"),mo("PredictorAdd","VP8LPredictorsAdd_C"),cl=qt,yr=xt,kn=ot,_n=on,Qo=Bt,Po=Wn,No=ti,q.VP8LMapColor32b=pa,q.VP8LMapColor8b=ul,l)}function ko(l,d,_,m,y){var j=1,F=[l],E=[d],T=m.m,N=m.s,U=null,oe=0;e:for(;;){if(_)for(;j&&Fe(T,1);){var re=F,Q=E,Re=m,fe=1,z=Re.m,W=Re.gc[Re.ab],Se=Fe(z,2);if(Re.Oc&1<<Se)j=0;else{switch(Re.Oc|=1<<Se,W.hc=Se,W.Ea=re[0],W.nc=Q[0],W.K=[null],++Re.ab,a(4>=Re.ab),Se){case 0:case 1:W.b=Fe(z,3)+2,fe=ko(_t(W.Ea,W.b),_t(W.nc,W.b),0,Re,W.K),W.K=W.K[0];break;case 3:var Ie,Ee=Fe(z,8)+1,ct=16<Ee?0:4<Ee?1:2<Ee?2:3;if(re[0]=_t(W.Ea,ct),W.b=ct,Ie=fe=ko(Ee,1,0,Re,W.K)){var Je,gt=Ee,Qe=W,$t=1<<(8>>Qe.b),zt=r($t);if(null==zt)Ie=0;else{var Vt=Qe.K[0],Ot=Qe.w;for(zt[0]=Qe.K[0][0],Je=1;Je<1*gt;++Je)zt[Je]=Oe(Vt[Ot+Je],zt[Je-1]);for(;Je<4*$t;++Je)zt[Je]=0;Qe.K[0]=null,Qe.K[0]=zt,Ie=1}}fe=Ie;break;case 2:break;default:a(0)}j=fe}}if(F=F[0],E=E[0],j&&Fe(T,1)&&!(j=1<=(oe=Fe(T,4))&&11>=oe)){m.a=3;break e}var ii;if(ii=j)t:{var Zt,Dt,Ri,wn=m,Ti=F,xn=E,Ht=oe,Tn=_,In=wn.m,Vi=wn.s,zi=[null],fn=1,Yn=0,jo=oy[Ht];i:for(;;){if(Tn&&Fe(In,1)){var Bi=Fe(In,3)+2,Go=_t(Ti,Bi),jr=_t(xn,Bi),ga=Go*jr;if(!ko(Go,jr,0,wn,zi))break i;for(zi=zi[0],Vi.xc=Bi,Zt=0;Zt<ga;++Zt){var nr=zi[Zt]>>8&65535;zi[Zt]=nr,nr>=fn&&(fn=nr+1)}}if(In.h)break i;for(Dt=0;5>Dt;++Dt){var vi=fu[Dt];!Dt&&0<Ht&&(vi+=1<<Ht),Yn<vi&&(Yn=vi)}var Xc=s(fn*jo,P),Fu=fn,Su=s(Fu,V);if(null==Su)var xl=null;else a(65536>=Fu),xl=Su;var ss=r(Yn);if(null==xl||null==ss||null==Xc){wn.a=1;break i}var Cl=Xc;for(Zt=Ri=0;Zt<fn;++Zt){var ao=xl[Zt],va=ao.G,ba=ao.H,Eu=0,jl=1,Ru=0;for(Dt=0;5>Dt;++Dt){vi=fu[Dt],va[Dt]=Cl,ba[Dt]=Ri,!Dt&&0<Ht&&(vi+=1<<Ht);o:{var Fl,zc=vi,Sl=wn,ls=ss,jy=Cl,Fy=Ri,Hc=0,or=Sl.m,Sy=Fe(or,1);if(o(ls,0,0,zc),Sy){var Ey=Fe(or,1)+1,Ry=Fe(or,1),Tu=Fe(or,0==Ry?1:8);ls[Tu]=1,2==Ey&&(ls[Tu=Fe(or,8)]=1);var El=1}else{var Iu=r(19),Du=Fe(or,4)+4;if(19<Du){Sl.a=3;var Rl=0;break o}for(Fl=0;Fl<Du;++Fl)Iu[iy[Fl]]=Fe(or,3);var Wc=void 0,cs=void 0,Pu=Sl,Ty=Iu,Tl=zc,Nu=ls,Zc=0,rr=Pu.m,Mu=8,Ou=s(128,P);n:for(;I(Ou,0,7,Ty,19);){if(Fe(rr,1)){var Iy=2+2*Fe(rr,3);if((Wc=2+Fe(rr,Iy))>Tl)break n}else Wc=Tl;for(cs=0;cs<Tl&&Wc--;){K(rr);var Au=Ou[0+(127&O(rr))];J(rr,rr.u+Au.g);var ya=Au.value;if(16>ya)Nu[cs++]=ya,0!=ya&&(Mu=ya);else{var Dy=16==ya,Gu=ya-16,Py=ey[Gu],Lu=Fe(rr,K4[Gu])+Py;if(cs+Lu>Tl)break n;for(var Ny=Dy?Mu:0;0<Lu--;)Nu[cs++]=Ny}}Zc=1;break n}Zc||(Pu.a=3),El=Zc}(El=El&&!or.h)&&(Hc=I(jy,Fy,8,ls,zc)),El&&0!=Hc?Rl=Hc:(Sl.a=3,Rl=0)}if(0==Rl)break i;if(jl&&1==ty[Dt]&&(jl=0==Cl[Ri].g),Eu+=Cl[Ri].g,Ri+=Rl,3>=Dt){var ds,Qc=ss[0];for(ds=1;ds<vi;++ds)ss[ds]>Qc&&(Qc=ss[ds]);Ru+=Qc}}if(ao.nd=jl,ao.Qb=0,jl&&(ao.qb=(va[3][ba[3]+0].value<<24|va[1][ba[1]+0].value<<16|va[2][ba[2]+0].value)>>>0,0==Eu&&256>va[0][ba[0]+0].value&&(ao.Qb=1,ao.qb+=va[0][ba[0]+0].value<<8)),ao.jc=!ao.Qb&&6>Ru,ao.jc){var Il,Lo=ao;for(Il=0;Il<Xi;++Il){var ar=Il,sr=Lo.pd[ar],Dl=Lo.G[0][Lo.H[0]+ar];256<=Dl.value?(sr.g=Dl.g+256,sr.value=Dl.value):(sr.g=0,sr.value=0,ar>>=Di(Dl,8,sr),ar>>=Di(Lo.G[1][Lo.H[1]+ar],16,sr),ar>>=Di(Lo.G[2][Lo.H[2]+ar],0,sr),Di(Lo.G[3][Lo.H[3]+ar],24,sr))}}}Vi.vc=zi,Vi.Wb=fn,Vi.Ya=xl,Vi.yc=Xc,ii=1;break t}ii=0}if(!(j=ii)){m.a=3;break e}if(0<oe){if(N.ua=1<<oe,!wt(N.Wa,oe)){m.a=1,j=0;break e}}else N.ua=0;var Kc=m,qu=F,My=E,ed=Kc.s,td=ed.xc;if(Kc.c=qu,Kc.i=My,ed.md=_t(qu,td),ed.wc=0==td?-1:(1<<td)-1,_){m.xb=py;break e}if(null==(U=r(F*E))){m.a=1,j=0;break e}j=(j=to(m,U,0,F,E,E,null))&&!T.h;break e}return j?(null!=y?y[0]=U:(a(null==U),a(_)),m.$=0,_||yo(N)):yo(N),j}function fr(l,d){var _=l.c*l.i,m=_+d+16*d;return a(l.c<=d),l.V=r(m),null==l.V?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+_+d,1)}function Xr(l,d){var _=l.C,m=d-_,y=l.V,j=l.Ba+l.c*_;for(a(d<=l.l.o);0<m;){var F=16<m?16:m,E=l.l.ma,T=l.l.width,N=T*F,U=E.ca,oe=E.tb+T*_,re=l.Ta,Q=l.Ua;Sn(l,F,y,j),Ci(re,Q,U,oe,N),Kn(E,_,_+F,U,oe,T),m-=F,y+=F*l.c,_+=F}a(_==d),l.C=l.Ma=d}function zr(){this.ub=this.yd=this.td=this.Rb=0}function Hr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Wr(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function $s(){var l;this.Yb=(function d(_,m,y){for(var j=y[m],F=0;F<j&&(_.push(y.length>m+1?[]:0),!(y.length<m+1));F++)d(_[F],m+1,y)}(l=[],0,[3,11]),l)}function hc(){this.jb=r(3),this.Wc=c([4,8],$s),this.Xc=c([4,17],$s)}function fc(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function Zr(){this.ld=this.La=this.dd=this.tc=0}function Ys(){this.Na=this.la=0}function mc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ma(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function gc(){this.uc=this.M=this.Nb=0,this.wa=Array(new Zr),this.Y=0,this.ya=Array(new Ma),this.aa=0,this.l=new Qr}function Js(){this.y=r(16),this.f=r(8),this.ea=r(8)}function vc(){this.cb=this.a=0,this.sc="",this.m=new it,this.Od=new zr,this.Kc=new Hr,this.ed=new fc,this.Qa=new Wr,this.Ic=this.$c=this.Aa=0,this.D=new gc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,it),this.ia=0,this.pb=s(4,mc),this.Pa=new hc,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Js),this.Hd=0,this.rb=Array(new Ys),this.sb=0,this.wa=Array(new Zr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ma),this.L=this.aa=0,this.gd=c([4,2],Zr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Qr(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function bc(){var l=new vc;return null!=l&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,rs||(rs=zs)),l}function wi(l,d,_){return 0==l.a&&(l.a=d,l.sc=_,l.cb=0),0}function Us(l,d,_){return 3<=_&&157==l[d+0]&&1==l[d+1]&&42==l[d+2]}function Xs(l,d){if(null==l)return 0;if(l.a=0,l.sc="OK",null==d)return wi(l,2,"null VP8Io passed to VP8GetHeaders()");var _=d.data,m=d.w,y=d.ha;if(4>y)return wi(l,7,"Truncated header.");var j=_[m+0]|_[m+1]<<8|_[m+2]<<16,F=l.Od;if(F.Rb=!(1&j),F.td=j>>1&7,F.yd=j>>4&1,F.ub=j>>5,3<F.td)return wi(l,3,"Incorrect keyframe parameters.");if(!F.yd)return wi(l,4,"Frame not displayable.");m+=3,y-=3;var E=l.Kc;if(F.Rb){if(7>y)return wi(l,7,"cannot parse picture header");if(!Us(_,m,y))return wi(l,3,"Bad code word");E.c=16383&(_[m+4]<<8|_[m+3]),E.Td=_[m+4]>>6,E.i=16383&(_[m+6]<<8|_[m+5]),E.Ud=_[m+6]>>6,m+=7,y-=7,l.za=E.c+15>>4,l.Ub=E.i+15>>4,d.width=E.c,d.height=E.i,d.Da=0,d.j=0,d.v=0,d.va=d.width,d.o=d.height,d.da=0,d.ib=d.width,d.hb=d.height,d.U=d.width,d.T=d.height,o((j=l.Pa).jb,0,255,j.jb.length),a(null!=(j=l.Qa)),j.Cb=0,j.Bb=0,j.Fb=1,o(j.Zb,0,0,j.Zb.length),o(j.Lb,0,0,j.Lb)}if(F.ub>y)return wi(l,7,"bad partition length");he(j=l.m,_,m,F.ub),m+=F.ub,y-=F.ub,F.Rb&&(E.Ld=ue(j),E.Kd=ue(j)),E=l.Qa;var T,N=l.Pa;if(a(null!=j),a(null!=E),E.Cb=ue(j),E.Cb){if(E.Bb=ue(j),ue(j)){for(E.Fb=ue(j),T=0;4>T;++T)E.Zb[T]=ue(j)?ge(j,7):0;for(T=0;4>T;++T)E.Lb[T]=ue(j)?ge(j,6):0}if(E.Bb)for(T=0;3>T;++T)N.jb[T]=ue(j)?pe(j,8):255}else E.Bb=0;if(j.Ka)return wi(l,3,"cannot parse segment header");if((E=l.ed).zd=ue(j),E.Tb=pe(j,6),E.wb=pe(j,3),E.Pc=ue(j),E.Pc&&ue(j)){for(N=0;4>N;++N)ue(j)&&(E.vd[N]=ge(j,6));for(N=0;4>N;++N)ue(j)&&(E.od[N]=ge(j,6))}if(l.L=0==E.Tb?0:E.zd?1:2,j.Ka)return wi(l,3,"cannot parse filter header");var U=y;if(y=T=m,m=T+U,E=U,l.Xb=(1<<pe(l.m,2))-1,U<3*(N=l.Xb))_=7;else{for(T+=3*N,E-=3*N,U=0;U<N;++U){var oe=_[y+0]|_[y+1]<<8|_[y+2]<<16;oe>E&&(oe=E),he(l.Jc[+U],_,T,oe),T+=oe,E-=oe,y+=3}he(l.Jc[+N],_,T,E),_=T<m?0:5}if(0!=_)return wi(l,_,"cannot parse partitions");for(_=pe(T=l.m,7),y=ue(T)?ge(T,4):0,m=ue(T)?ge(T,4):0,E=ue(T)?ge(T,4):0,N=ue(T)?ge(T,4):0,T=ue(T)?ge(T,4):0,U=l.Qa,oe=0;4>oe;++oe){if(U.Cb){var re=U.Zb[oe];U.Fb||(re+=_)}else{if(0<oe){l.pb[oe]=l.pb[0];continue}re=_}var Q=l.pb[oe];Q.Sc[0]=Yc[En(re+y,127)],Q.Sc[1]=Jc[En(re+0,127)],Q.Eb[0]=2*Yc[En(re+m,127)],Q.Eb[1]=101581*Jc[En(re+E,127)]>>16,8>Q.Eb[1]&&(Q.Eb[1]=8),Q.Qc[0]=Yc[En(re+N,117)],Q.Qc[1]=Jc[En(re+T,127)],Q.lc=re+T}if(!F.Rb)return wi(l,4,"Not a key frame.");for(ue(j),F=l.Pa,_=0;4>_;++_){for(y=0;8>y;++y)for(m=0;3>m;++m)for(E=0;11>E;++E)N=_e(j,dy[_][y][m][E])?pe(j,8):ly[_][y][m][E],F.Wc[_][y].Yb[m][E]=N;for(y=0;17>y;++y)F.Xc[_][y]=F.Wc[_][uy[y]]}return l.kc=ue(j),l.kc&&(l.Bd=pe(j,8)),l.cb=1}function zs(l,d,_,m,y,j,F){var E=d[y].Yb[_];for(_=0;16>y;++y){if(!_e(l,E[_+0]))return y;for(;!_e(l,E[_+1]);)if(E=d[++y].Yb[0],_=0,16==y)return 16;var T=d[y+1].Yb;if(_e(l,E[_+2])){var N=l,U=0;if(_e(N,(re=E)[(oe=_)+3]))if(_e(N,re[oe+6])){for(E=0,oe=2*(U=_e(N,re[oe+8]))+(re=_e(N,re[oe+9+U])),U=0,re=ay[oe];re[E];++E)U+=U+_e(N,re[E]);U+=3+(8<<oe)}else _e(N,re[oe+7])?(U=7+2*_e(N,165),U+=_e(N,145)):U=5+_e(N,159);else U=_e(N,re[oe+4])?3+_e(N,re[oe+5]):2;E=T[2]}else U=1,E=T[1];T=F+sy[y],0>(N=l).b&&ce(N);var oe,re=N.b,Q=(oe=N.Ca>>1)-(N.I>>re)>>31;--N.b,N.Ca+=Q,N.Ca|=1,N.I-=(oe+1&Q)<<re,j[T]=((U^Q)-Q)*m[(0<y)+0]}return 16}function Oa(l){var d=l.rb[l.sb-1];d.la=0,d.Na=0,o(l.zc,0,0,l.zc.length),l.ja=0}function io(l,d,_,m,y){l[d+_+32*m]=-256&(y=l[d+_+32*m]+(y>>3))?0>y?0:255:y}function Kr(l,d,_,m,y,j){io(l,d,0,_,m+y),io(l,d,1,_,m+j),io(l,d,2,_,m-j),io(l,d,3,_,m-y)}function bn(l){return(20091*l>>16)+l}function Aa(l,d,_,m){var y,j=0,F=r(16);for(y=0;4>y;++y){var E=l[d+0]+l[d+8],T=l[d+0]-l[d+8],N=(35468*l[d+4]>>16)-bn(l[d+12]),U=bn(l[d+4])+(35468*l[d+12]>>16);F[j+0]=E+U,F[j+1]=T+N,F[j+2]=T-N,F[j+3]=E-U,j+=4,d++}for(y=j=0;4>y;++y)E=(l=F[j+0]+4)+F[j+8],T=l-F[j+8],N=(35468*F[j+4]>>16)-bn(F[j+12]),io(_,m,0,0,E+(U=bn(F[j+4])+(35468*F[j+12]>>16))),io(_,m,1,0,T+N),io(_,m,2,0,T-N),io(_,m,3,0,E-U),j++,m+=32}function Hs(l,d,_,m){var y=l[d+0]+4,j=35468*l[d+4]>>16,F=bn(l[d+4]),E=35468*l[d+1]>>16;Kr(_,m,0,y+F,l=bn(l[d+1]),E),Kr(_,m,1,y+j,l,E),Kr(_,m,2,y-j,l,E),Kr(_,m,3,y-F,l,E)}function kc(l,d,_,m,y){Aa(l,d,_,m),y&&Aa(l,d+16,_,m+4)}function Ws(l,d,_,m){Mo(l,d+0,_,m,1),Mo(l,d+32,_,m+128,1)}function wc(l,d,_,m){var y;for(l=l[d+0]+4,y=0;4>y;++y)for(d=0;4>d;++d)io(_,m,d,y,l)}function Zs(l,d,_,m){l[d+0]&&hn(l,d+0,_,m),l[d+16]&&hn(l,d+16,_,m+4),l[d+32]&&hn(l,d+32,_,m+128),l[d+48]&&hn(l,d+48,_,m+128+4)}function xc(l,d,_,m){var y,j=r(16);for(y=0;4>y;++y){var F=l[d+0+y]+l[d+12+y],E=l[d+4+y]+l[d+8+y],T=l[d+4+y]-l[d+8+y],N=l[d+0+y]-l[d+12+y];j[0+y]=F+E,j[8+y]=F-E,j[4+y]=N+T,j[12+y]=N-T}for(y=0;4>y;++y)F=(l=j[0+4*y]+3)+j[3+4*y],T=j[1+4*y]-j[2+4*y],N=l-j[3+4*y],_[m+0]=F+(E=j[1+4*y]+j[2+4*y])>>3,_[m+16]=N+T>>3,_[m+32]=F-E>>3,_[m+48]=N-T>>3,m+=64}function Ga(l,d,_){var m,y=d-32,j=Rn,F=255-l[y-1];for(m=0;m<_;++m){var E,T=j,N=F+l[d-1];for(E=0;E<_;++E)l[d+E]=T[N+l[y+E]];d+=32}}function Cc(l,d){Ga(l,d,4)}function jc(l,d){Ga(l,d,8)}function Fc(l,d){Ga(l,d,16)}function Io(l,d){var _;for(_=0;16>_;++_)n(l,d+32*_,l,d-32,16)}function ea(l,d){var _;for(_=16;0<_;--_)o(l,d,l[d-1],16),d+=32}function ta(l,d,_){var m;for(m=0;16>m;++m)o(d,_+32*m,l,16)}function Qs(l,d){var _,m=16;for(_=0;16>_;++_)m+=l[d-1+32*_]+l[d+_-32];ta(m>>5,l,d)}function rn(l,d){var _,m=8;for(_=0;16>_;++_)m+=l[d-1+32*_];ta(m>>4,l,d)}function Sc(l,d){var _,m=8;for(_=0;16>_;++_)m+=l[d+_-32];ta(m>>4,l,d)}function Ks(l,d){ta(128,l,d)}function jt(l,d,_){return l+2*d+_+2>>2}function Ec(l,d){var _,m=d-32;for(m=new Uint8Array([jt(l[m-1],l[m+0],l[m+1]),jt(l[m+0],l[m+1],l[m+2]),jt(l[m+1],l[m+2],l[m+3]),jt(l[m+2],l[m+3],l[m+4])]),_=0;4>_;++_)n(l,d+32*_,m,0,m.length)}function Rc(l,d){var _=l[d-1],m=l[d-1+32],y=l[d-1+64],j=l[d-1+96];Le(l,d+0,16843009*jt(l[d-1-32],_,m)),Le(l,d+32,16843009*jt(_,m,y)),Le(l,d+64,16843009*jt(m,y,j)),Le(l,d+96,16843009*jt(y,j,j))}function wo(l,d){var _,m=4;for(_=0;4>_;++_)m+=l[d+_-32]+l[d-1+32*_];for(m>>=3,_=0;4>_;++_)o(l,d+32*_,m,4)}function el(l,d){var _=l[d-1+0],m=l[d-1+32],y=l[d-1+64],j=l[d-1-32],F=l[d+0-32],E=l[d+1-32],T=l[d+2-32],N=l[d+3-32];l[d+0+96]=jt(m,y,l[d-1+96]),l[d+1+96]=l[d+0+64]=jt(_,m,y),l[d+2+96]=l[d+1+64]=l[d+0+32]=jt(j,_,m),l[d+3+96]=l[d+2+64]=l[d+1+32]=l[d+0+0]=jt(F,j,_),l[d+3+64]=l[d+2+32]=l[d+1+0]=jt(E,F,j),l[d+3+32]=l[d+2+0]=jt(T,E,F),l[d+3+0]=jt(N,T,E)}function tl(l,d){var _=l[d+1-32],m=l[d+2-32],y=l[d+3-32],j=l[d+4-32],F=l[d+5-32],E=l[d+6-32],T=l[d+7-32];l[d+0+0]=jt(l[d+0-32],_,m),l[d+1+0]=l[d+0+32]=jt(_,m,y),l[d+2+0]=l[d+1+32]=l[d+0+64]=jt(m,y,j),l[d+3+0]=l[d+2+32]=l[d+1+64]=l[d+0+96]=jt(y,j,F),l[d+3+32]=l[d+2+64]=l[d+1+96]=jt(j,F,E),l[d+3+64]=l[d+2+96]=jt(F,E,T),l[d+3+96]=jt(E,T,T)}function ia(l,d){var _=l[d-1+0],m=l[d-1+32],y=l[d-1+64],j=l[d-1-32],F=l[d+0-32],E=l[d+1-32],T=l[d+2-32],N=l[d+3-32];l[d+0+0]=l[d+1+64]=j+F+1>>1,l[d+1+0]=l[d+2+64]=F+E+1>>1,l[d+2+0]=l[d+3+64]=E+T+1>>1,l[d+3+0]=T+N+1>>1,l[d+0+96]=jt(y,m,_),l[d+0+64]=jt(m,_,j),l[d+0+32]=l[d+1+96]=jt(_,j,F),l[d+1+32]=l[d+2+96]=jt(j,F,E),l[d+2+32]=l[d+3+96]=jt(F,E,T),l[d+3+32]=jt(E,T,N)}function La(l,d){var _=l[d+0-32],m=l[d+1-32],y=l[d+2-32],j=l[d+3-32],F=l[d+4-32],E=l[d+5-32],T=l[d+6-32],N=l[d+7-32];l[d+0+0]=_+m+1>>1,l[d+1+0]=l[d+0+64]=m+y+1>>1,l[d+2+0]=l[d+1+64]=y+j+1>>1,l[d+3+0]=l[d+2+64]=j+F+1>>1,l[d+0+32]=jt(_,m,y),l[d+1+32]=l[d+0+96]=jt(m,y,j),l[d+2+32]=l[d+1+96]=jt(y,j,F),l[d+3+32]=l[d+2+96]=jt(j,F,E),l[d+3+64]=jt(F,E,T),l[d+3+96]=jt(E,T,N)}function Tc(l,d){var _=l[d-1+0],m=l[d-1+32],y=l[d-1+64],j=l[d-1+96];l[d+0+0]=_+m+1>>1,l[d+2+0]=l[d+0+32]=m+y+1>>1,l[d+2+32]=l[d+0+64]=y+j+1>>1,l[d+1+0]=jt(_,m,y),l[d+3+0]=l[d+1+32]=jt(m,y,j),l[d+3+32]=l[d+1+64]=jt(y,j,j),l[d+3+64]=l[d+2+64]=l[d+0+96]=l[d+1+96]=l[d+2+96]=l[d+3+96]=j}function Ic(l,d){var _=l[d-1+0],m=l[d-1+32],y=l[d-1+64],j=l[d-1+96],F=l[d-1-32],E=l[d+0-32],T=l[d+1-32],N=l[d+2-32];l[d+0+0]=l[d+2+32]=_+F+1>>1,l[d+0+32]=l[d+2+64]=m+_+1>>1,l[d+0+64]=l[d+2+96]=y+m+1>>1,l[d+0+96]=j+y+1>>1,l[d+3+0]=jt(E,T,N),l[d+2+0]=jt(F,E,T),l[d+1+0]=l[d+3+32]=jt(_,F,E),l[d+1+32]=l[d+3+64]=jt(m,_,F),l[d+1+64]=l[d+3+96]=jt(y,m,_),l[d+1+96]=jt(j,y,m)}function Dc(l,d){var _;for(_=0;8>_;++_)n(l,d+32*_,l,d-32,8)}function qa(l,d){var _;for(_=0;8>_;++_)o(l,d,l[d-1],8),d+=32}function mr(l,d,_){var m;for(m=0;8>m;++m)o(d,_+32*m,l,8)}function zo(l,d){var _,m=8;for(_=0;8>_;++_)m+=l[d+_-32]+l[d-1+32*_];mr(m>>4,l,d)}function Pc(l,d){var _,m=4;for(_=0;8>_;++_)m+=l[d+_-32];mr(m>>3,l,d)}function gr(l,d){var _,m=4;for(_=0;8>_;++_)m+=l[d-1+32*_];mr(m>>3,l,d)}function Va(l,d){mr(128,l,d)}function na(l,d,_){var m=l[d-_],y=l[d+0],j=3*(y-m)+Lc[1020+l[d-2*_]-l[d+_]],F=hl[112+(j+4>>3)];l[d-_]=Rn[255+m+hl[112+(j+3>>3)]],l[d+0]=Rn[255+y-F]}function il(l,d,_,m){return Bn[255+l[d-2*_]-l[d-_]]>m||Bn[255+l[d+_]-l[d+0]]>m}function nl(l,d,_,m){return 4*Bn[255+l[d-_]-l[d+0]]+Bn[255+l[d-2*_]-l[d+_]]<=m}function ol(l,d,_,m,y){var j=l[d-3*_],F=l[d-2*_],E=l[d-_],T=l[d+0],N=l[d+_],U=l[d+2*_];return 4*Bn[255+E-T]+Bn[255+F-N]>m?0:Bn[255+l[d-4*_]-j]<=y&&Bn[255+j-F]<=y&&Bn[255+F-E]<=y&&Bn[255+l[d+3*_]-U]<=y&&Bn[255+U-N]<=y&&Bn[255+N-T]<=y}function rl(l,d,_,m){var y=2*m+1;for(m=0;16>m;++m)nl(l,d+m,_,y)&&na(l,d+m,_)}function xo(l,d,_,m){var y=2*m+1;for(m=0;16>m;++m)nl(l,d+m*_,1,y)&&na(l,d+m*_,1)}function Do(l,d,_,m){var y;for(y=3;0<y;--y)rl(l,d+=4*_,_,m)}function Nc(l,d,_,m){var y;for(y=3;0<y;--y)xo(l,d+=4,_,m)}function Ho(l,d,_,m,y,j,F,E){for(j=2*j+1;0<y--;){if(ol(l,d,_,j,F))if(il(l,d,_,E))na(l,d,_);else{var T=l,N=d,U=_,oe=T[N-2*U],re=T[N-U],Q=T[N+0],Re=T[N+U],fe=T[N+2*U],z=27*(Se=Lc[1020+3*(Q-re)+Lc[1020+oe-Re]])+63>>7,W=18*Se+63>>7,Se=9*Se+63>>7;T[N-3*U]=Rn[255+T[N-3*U]+Se],T[N-2*U]=Rn[255+oe+W],T[N-U]=Rn[255+re+z],T[N+0]=Rn[255+Q-z],T[N+U]=Rn[255+Re-W],T[N+2*U]=Rn[255+fe-Se]}d+=m}}function no(l,d,_,m,y,j,F,E){for(j=2*j+1;0<y--;){if(ol(l,d,_,j,F))if(il(l,d,_,E))na(l,d,_);else{var T=l,N=d,U=_,oe=T[N-U],re=T[N+0],Q=T[N+U],Re=hl[112+(4+(fe=3*(re-oe))>>3)],fe=hl[112+(fe+3>>3)],z=Re+1>>1;T[N-2*U]=Rn[255+T[N-2*U]+z],T[N-U]=Rn[255+oe+fe],T[N+0]=Rn[255+re-Re],T[N+U]=Rn[255+Q-z]}d+=m}}function Ba(l,d,_,m,y,j){Ho(l,d,_,1,16,m,y,j)}function vr(l,d,_,m,y,j){Ho(l,d,1,_,16,m,y,j)}function Mc(l,d,_,m,y,j){var F;for(F=3;0<F;--F)no(l,d+=4*_,_,1,16,m,y,j)}function oa(l,d,_,m,y,j){var F;for(F=3;0<F;--F)no(l,d+=4,1,_,16,m,y,j)}function Oc(l,d,_,m,y,j,F,E){Ho(l,d,y,1,8,j,F,E),Ho(_,m,y,1,8,j,F,E)}function $a(l,d,_,m,y,j,F,E){Ho(l,d,1,y,8,j,F,E),Ho(_,m,1,y,8,j,F,E)}function Ya(l,d,_,m,y,j,F,E){no(l,d+4*y,y,1,8,j,F,E),no(_,m+4*y,y,1,8,j,F,E)}function al(l,d,_,m,y,j,F,E){no(l,d+4,1,y,8,j,F,E),no(_,m+4,1,y,8,j,F,E)}function ra(){this.ba=new Zn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new mi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ja(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ua(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function sl(){this.ua=0,this.Wa=new L,this.vb=new L,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new V,this.yc=new P}function Ac(){this.xb=this.a=0,this.l=new Qr,this.ca=new Zn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new S,this.Pb=0,this.wd=new S,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new sl,this.ab=0,this.gc=s(4,Ua),this.Oc=0}function aa(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Qr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function br(l,d,_,m,y,j,F){for(l=null==l?0:l[d+0],d=0;d<F;++d)y[j+d]=l+_[m+d]&255,l=y[j+d]}function Xa(l,d,_,m,y,j,F){var E;if(null==l)br(null,null,_,m,y,j,F);else for(E=0;E<F;++E)y[j+E]=l[d+E]+_[m+E]&255}function Wo(l,d,_,m,y,j,F){if(null==l)br(null,null,_,m,y,j,F);else{var E,T=l[d+0],N=T,U=T;for(E=0;E<F;++E)N=U+(T=l[d+E])-N,U=_[m+E]+(-256&N?0>N?0:255:N)&255,N=T,y[j+E]=U}}function za(l,d,_,m){var y=d.width,j=d.o;if(a(null!=l&&null!=d),0>_||0>=m||_+m>j)return null;if(!l.Cc){if(null==l.ga){var F;if(l.ga=new aa,(F=null==l.ga)||(F=d.width*d.o,a(0==l.Gb.length),l.Gb=r(F),l.Uc=0,null==l.Gb?F=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,F=1),F=!F),!F){var E=l.Fa,T=l.P,N=l.qc,U=l.mb,oe=l.nb,re=T+1,Q=N-1,Re=(F=l.ga).l;if(a(null!=E&&null!=U&&null!=d),ir[0]=null,ir[1]=br,ir[2]=Xa,ir[3]=Wo,F.ca=U,F.tb=oe,F.c=d.width,F.i=d.height,a(0<F.c&&0<F.i),1>=N)d=0;else if(F.$a=3&E[T+0],F.Z=E[T+0]>>2&3,F.Lc=E[T+0]>>4&3,T=E[T+0]>>6&3,0>F.$a||1<F.$a||4<=F.Z||1<F.Lc||T)d=0;else if(Re.put=go,Re.ac=Ui,Re.bc=vo,Re.ma=F,Re.width=d.width,Re.height=d.height,Re.Da=d.Da,Re.v=d.v,Re.va=d.va,Re.j=d.j,Re.o=d.o,F.$a)e:{a(1==F.$a),d=An();t:for(;;){if(null==d){d=0;break e}if(a(null!=F),F.mc=d,d.c=F.c,d.i=F.i,d.l=F.l,d.l.ma=F,d.l.width=F.c,d.l.height=F.i,d.a=0,se(d.m,E,re,Q),!ko(F.c,F.i,1,d,null)||(1==d.ab&&3==d.gc[0].hc&&To(d.s)?(F.ic=1,E=d.c*d.i,d.Ta=null,d.Ua=0,d.V=r(E),d.Ba=0,null==d.V?(d.a=1,d=0):d=1):(F.ic=0,d=fr(d,F.c)),!d))break t;d=1;break e}F.mc=null,d=0}else d=Q>=F.c*F.i;F=!d}if(F)return null;1!=l.ga.Lc?l.Ga=0:m=j-_}a(null!=l.ga),a(_+m<=j);e:{if(d=(E=l.ga).c,j=E.l.o,0==E.$a){if(re=l.rc,Q=l.Vc,Re=l.Fa,N=l.mb,U=l.nb+_*d,a((T=l.P+1+_*d)<=l.P+l.qc),0!=E.Z)for(a(null!=ir[E.Z]),F=0;F<m;++F)ir[E.Z](re,Q,Re,T,N,U,d),re=N,Q=U,U+=d,T+=d;else for(F=0;F<m;++F)n(N,U,Re,T,d),re=N,Q=U,U+=d,T+=d;l.rc=re,l.Vc=Q}else{if(a(null!=E.mc),d=_+m,a(null!=(F=E.mc)),a(d<=F.i),F.C>=d)d=1;else if(E.ic||te(),E.ic){E=F.V,re=F.Ba;var fe=F.i,z=(Re=1,T=F.$/(Q=F.c),N=F.$%Q,U=F.m,oe=F.s,F.$),W=Q*fe,Se=Q*d,Ie=oe.wc,Ee=z<Se?Si(oe,N,T):null;a(z<=W),a(d<=fe),a(To(oe));t:for(;;){for(;!U.h&&z<Se;){if(N&Ie||(Ee=Si(oe,N,T)),a(null!=Ee),K(U),256>(fe=vn(Ee.G[0],Ee.H[0],U)))E[re+z]=fe,++z,++N>=Q&&(N=0,++T<=d&&!(T%16)&&eo(F,T));else{if(!(280>fe)){Re=0;break t}fe=Qn(fe-256,U);var ct,Je=vn(Ee.G[4],Ee.H[4],U);if(K(U),!(z>=(Je=bo(Q,Je=Qn(Je,U)))&&W-z>=fe)){Re=0;break t}for(ct=0;ct<fe;++ct)E[re+z+ct]=E[re+z+ct-Je];for(z+=fe,N+=fe;N>=Q;)N-=Q,++T<=d&&!(T%16)&&eo(F,T);z<Se&&N&Ie&&(Ee=Si(oe,N,T))}a(U.h==G(U))}eo(F,T>d?d:T);break t}!Re||U.h&&z<W?(Re=0,F.a=U.h?5:3):F.$=z,d=Re}else d=to(F,F.V,F.Ba,F.c,F.i,d,Xr);if(!d){m=0;break e}}_+m>=j&&(l.Cc=1),m=1}if(!m)return null;if(l.Cc&&(null!=(m=l.ga)&&(m.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+_*y}function p(l,d,_,m,y,j){for(;0<y--;){var F,E=l,T=d+(_?1:0),N=l,U=d+(_?0:3);for(F=0;F<m;++F){var oe=N[U+4*F];255!=oe&&(E[T+4*F+0]=E[T+4*F+0]*(oe*=32897)>>23,E[T+4*F+1]=E[T+4*F+1]*oe>>23,E[T+4*F+2]=E[T+4*F+2]*oe>>23)}d+=j}}function w(l,d,_,m,y){for(;0<m--;){var j;for(j=0;j<_;++j){var F=l[d+2*j+0],E=15&(N=l[d+2*j+1]),T=4369*E,N=(240&N|N>>4)*T>>16;l[d+2*j+0]=(240&F|F>>4)*T>>16&240|(15&F|F<<4)*T>>16>>4&15,l[d+2*j+1]=240&N|E}d+=y}}function A(l,d,_,m,y,j,F,E){var T,N,U=255;for(N=0;N<y;++N){for(T=0;T<m;++T){var oe=l[d+T];j[F+4*T]=oe,U&=oe}d+=_,F+=E}return 255!=U}function B(l,d,_,m,y){var j;for(j=0;j<y;++j)_[m+j]=l[d+j]>>8}function te(){Vn=p,oi=w,ri=A,Ci=B}function be(l,d,_){q[l]=function(m,y,j,F,E,T,N,U,oe,re,Q,Re,fe,z,W,Se,Ie){var Ee,ct=Ie-1>>1,Je=E[T+0]|N[U+0]<<16,gt=oe[re+0]|Q[Re+0]<<16;a(null!=m);var Qe=3*Je+gt+131074>>2;for(d(m[y+0],255&Qe,Qe>>16,fe,z),null!=j&&d(j[F+0],255&(Qe=3*gt+Je+131074>>2),Qe>>16,W,Se),Ee=1;Ee<=ct;++Ee){var $t=E[T+Ee]|N[U+Ee]<<16,zt=oe[re+Ee]|Q[Re+Ee]<<16,Vt=Je+$t+gt+zt+524296,Ot=Vt+2*($t+gt)>>3;Qe=Ot+Je>>1,Je=(Vt=Vt+2*(Je+zt)>>3)+$t>>1,d(m[y+2*Ee-1],255&Qe,Qe>>16,fe,z+(2*Ee-1)*_),d(m[y+2*Ee-0],255&Je,Je>>16,fe,z+(2*Ee-0)*_),null!=j&&(Je=Ot+zt>>1,d(j[F+2*Ee-1],255&(Qe=Vt+gt>>1),Qe>>16,W,Se+(2*Ee-1)*_),d(j[F+2*Ee+0],255&Je,Je>>16,W,Se+(2*Ee+0)*_)),Je=$t,gt=zt}1&Ie||(d(m[y+Ie-1],255&(Qe=3*Je+gt+131074>>2),Qe>>16,fe,z+(Ie-1)*_),null!=j&&d(j[F+Ie-1],255&(Qe=3*gt+Je+131074>>2),Qe>>16,W,Se+(Ie-1)*_))}}function De(){$n[fl]=_y,$n[ml]=vu,$n[_u]=hy,$n[gl]=bu,$n[vl]=yu,$n[qc]=ku,$n[hu]=fy,$n[Vc]=vu,$n[Bc]=bu,$n[bl]=yu,$n[$c]=ku}function at(l){return l&~my?0>l?0:255:l>>wu}function mt(l,d){return at((19077*l>>8)+(26149*d>>8)-14234)}function It(l,d,_){return at((19077*l>>8)-(6419*d>>8)-(13320*_>>8)+8708)}function Rt(l,d){return at((19077*l>>8)+(33050*d>>8)-17685)}function Gt(l,d,_,m,y){m[y+0]=mt(l,_),m[y+1]=It(l,d,_),m[y+2]=Rt(l,d)}function ui(l,d,_,m,y){m[y+0]=Rt(l,d),m[y+1]=It(l,d,_),m[y+2]=mt(l,_)}function gi(l,d,_,m,y){var j=It(l,d,_);d=j<<3&224|Rt(l,d)>>3,m[y+0]=248&mt(l,_)|j>>5,m[y+1]=d}function Ei(l,d,_,m,y){var j=240&Rt(l,d)|15;m[y+0]=240&mt(l,_)|It(l,d,_)>>4,m[y+1]=j}function an(l,d,_,m,y){m[y+0]=255,Gt(l,d,_,m,y+1)}function qi(l,d,_,m,y){ui(l,d,_,m,y),m[y+3]=255}function oo(l,d,_,m,y){Gt(l,d,_,m,y),m[y+3]=255}function En(l,d){return 0>l?0:l>d?d:l}function Co(l,d,_){q[l]=function(m,y,j,F,E,T,N,U,oe){for(var re=U+(-2&oe)*_;U!=re;)d(m[y+0],j[F+0],E[T+0],N,U),d(m[y+1],j[F+0],E[T+0],N,U+_),y+=2,++F,++T,U+=2*_;1&oe&&d(m[y+0],j[F+0],E[T+0],N,U)}}function ll(l,d,_){return 0==_?0==l?0==d?6:5:0==d?4:0:_}function Ha(l,d,_,m,y){switch(l>>>30){case 3:Mo(d,_,m,y,0);break;case 2:xi(d,_,m,y);break;case 1:hn(d,_,m,y)}}function Wa(l,d){var _,m,y=d.M,j=d.Nb,F=l.oc,E=l.pc+40,T=l.oc,N=l.pc+584,U=l.oc,oe=l.pc+600;for(_=0;16>_;++_)F[E+32*_-1]=129;for(_=0;8>_;++_)T[N+32*_-1]=129,U[oe+32*_-1]=129;for(0<y?F[E-1-32]=T[N-1-32]=U[oe-1-32]=129:(o(F,E-32-1,127,21),o(T,N-32-1,127,9),o(U,oe-32-1,127,9)),m=0;m<l.za;++m){var re=d.ya[d.aa+m];if(0<m){for(_=-1;16>_;++_)n(F,E+32*_-4,F,E+32*_+12,4);for(_=-1;8>_;++_)n(T,N+32*_-4,T,N+32*_+4,4),n(U,oe+32*_-4,U,oe+32*_+4,4)}var Q=l.Gd,Re=l.Hd+m,fe=re.ad,z=re.Hc;if(0<y&&(n(F,E-32,Q[Re].y,0,16),n(T,N-32,Q[Re].f,0,8),n(U,oe-32,Q[Re].ea,0,8)),re.Za){var W=F,Se=E-32+16;for(0<y&&(m>=l.za-1?o(W,Se,Q[Re].y[15],4):n(W,Se,Q[Re+1].y,0,4)),_=0;4>_;_++)W[Se+128+_]=W[Se+256+_]=W[Se+384+_]=W[Se+0+_];for(_=0;16>_;++_,z<<=2)ro[re.Ob[_]](W=F,Se=E+Cu[_]),Ha(z,fe,16*+_,W,Se)}else if(W=ll(m,y,re.Ob[0]),tr[W](F,E),0!=z)for(_=0;16>_;++_,z<<=2)Ha(z,fe,16*+_,F,E+Cu[_]);for(_=re.Gc,W=ll(m,y,re.Dd),Ao[W](T,N),Ao[W](U,oe),z=fe,W=T,Se=N,255&(re=0|_)&&(170&re?ts(z,256,W,Se):Ln(z,256,W,Se)),re=U,z=oe,255&(_>>=8)&&(170&_?ts(fe,320,re,z):Ln(fe,320,re,z)),y<l.Ub-1&&(n(Q[Re].y,0,F,E+480,16),n(Q[Re].f,0,T,N+224,8),n(Q[Re].ea,0,U,oe+224,8)),Q=l.sa,Re=l.ta+16*m+16*j*l.R,fe=l.qa,re=l.ra+8*m+(_=8*j*l.B),z=l.Ha,W=l.Ia+8*m+_,_=0;16>_;++_)n(Q,Re+_*l.R,F,E+32*_,16);for(_=0;8>_;++_)n(fe,re+_*l.B,T,N+32*_,8),n(z,W+_*l.B,U,oe+32*_,8)}}function sa(l,d,_,m,y,j,F,E,T){var N=[0],U=[0],oe=0,re=null!=T?T.kd:0,Q=T??new Ja;if(null==l||12>_)return 7;Q.data=l,Q.w=d,Q.ha=_,d=[d],_=[_],Q.gb=[Q.gb];e:{var Re=d,fe=_,z=Q.gb;if(a(null!=l),a(null!=fe),a(null!=z),z[0]=0,12<=fe[0]&&!t(l,Re[0],"RIFF")){if(t(l,Re[0]+8,"WEBP")){z=3;break e}var W=Ze(l,Re[0]+4);if(12>W||4294967286<W){z=3;break e}if(re&&W>fe[0]-8){z=7;break e}z[0]=W,Re[0]+=12,fe[0]-=12}z=0}if(0!=z)return z;for(W=0<Q.gb[0],_=_[0];;){e:{var Se=l;fe=d,z=_;var Ie=N,Ee=U,ct=Re=[0];if((Qe=oe=[oe])[0]=0,8>z[0])z=7;else{if(!t(Se,fe[0],"VP8X")){if(10!=Ze(Se,fe[0]+4)){z=3;break e}if(18>z[0]){z=7;break e}var Je=Ze(Se,fe[0]+8),gt=1+tt(Se,fe[0]+12);if(2147483648<=gt*(Se=1+tt(Se,fe[0]+15))){z=3;break e}null!=ct&&(ct[0]=Je),null!=Ie&&(Ie[0]=gt),null!=Ee&&(Ee[0]=Se),fe[0]+=18,z[0]-=18,Qe[0]=1}z=0}}if(oe=oe[0],0!=z)return z;if(fe=!!(2&(Re=Re[0])),!W&&oe)return 3;if(null!=j&&(j[0]=!!(16&Re)),null!=F&&(F[0]=fe),null!=E&&(E[0]=0),F=N[0],Re=U[0],oe&&fe&&null==T){z=0;break}if(4>_){z=7;break}if(W&&oe||!W&&!oe&&!t(l,d[0],"ALPH")){_=[_],Q.na=[Q.na],Q.P=[Q.P],Q.Sa=[Q.Sa];e:{z=d,W=_;var Qe=Q.gb;Ie=Q.na,Ee=Q.P,ct=Q.Sa,gt=22,a(null!=(Je=l)),a(null!=W),Se=z[0];var $t=W[0];for(a(null!=Ie),a(null!=ct),Ie[0]=null,Ee[0]=null,ct[0]=0;;){if(z[0]=Se,W[0]=$t,8>$t){z=7;break e}var zt=Ze(Je,Se+4);if(4294967286<zt){z=3;break e}var Vt=8+zt+1&-2;if(gt+=Vt,0<Qe&&gt>Qe){z=3;break e}if(!t(Je,Se,"VP8 ")||!t(Je,Se,"VP8L")){z=0;break e}if($t[0]<Vt){z=7;break e}t(Je,Se,"ALPH")||(Ie[0]=Je,Ee[0]=Se+8,ct[0]=zt),Se+=Vt,$t-=Vt}}if(_=_[0],Q.na=Q.na[0],Q.P=Q.P[0],Q.Sa=Q.Sa[0],0!=z)break}_=[_],Q.Ja=[Q.Ja],Q.xa=[Q.xa];e:if(Qe=l,z=d,W=_,Ie=Q.gb[0],Ee=Q.Ja,ct=Q.xa,Je=z[0],Se=!t(Qe,Je,"VP8 "),gt=!t(Qe,Je,"VP8L"),a(null!=Qe),a(null!=W),a(null!=Ee),a(null!=ct),8>W[0])z=7;else{if(Se||gt){if(Qe=Ze(Qe,Je+4),12<=Ie&&Qe>Ie-12){z=3;break e}if(re&&Qe>W[0]-8){z=7;break e}Ee[0]=Qe,z[0]+=8,W[0]-=8,ct[0]=gt}else ct[0]=5<=W[0]&&47==Qe[Je+0]&&!(Qe[Je+4]>>5),Ee[0]=W[0];z=0}if(_=_[0],Q.Ja=Q.Ja[0],Q.xa=Q.xa[0],d=d[0],0!=z)break;if(4294967286<Q.Ja)return 3;if(null==E||fe||(E[0]=Q.xa?2:1),F=[F],Re=[Re],Q.xa){if(5>_){z=7;break}E=F,re=Re,fe=j,null==l||5>_?l=0:5<=_&&47==l[d+0]&&!(l[d+4]>>5)?(W=[0],Qe=[0],Ie=[0],se(Ee=new S,l,d,_),yt(Ee,W,Qe,Ie)?(null!=E&&(E[0]=W[0]),null!=re&&(re[0]=Qe[0]),null!=fe&&(fe[0]=Ie[0]),l=1):l=0):l=0}else{if(10>_){z=7;break}E=Re,null==l||10>_||!Us(l,d+3,_-3)?l=0:(re=l[d+0]|l[d+1]<<8|l[d+2]<<16,fe=16383&(l[d+7]<<8|l[d+6]),l=16383&(l[d+9]<<8|l[d+8]),1&re||3<(re>>1&7)||!(re>>4&1)||re>>5>=Q.Ja||!fe||!l?l=0:(F&&(F[0]=fe),E&&(E[0]=l),l=1))}if(!l||(F=F[0],Re=Re[0],oe&&(N[0]!=F||U[0]!=Re)))return 3;null!=T&&(T[0]=Q,T.offset=d-T.w,a(4294967286>d-T.w),a(T.offset==T.ha-_));break}return 0==z||7==z&&oe&&null==T?(null!=j&&(j[0]|=null!=Q.na&&0<Q.na.length),null!=m&&(m[0]=F),null!=y&&(y[0]=Re),0):z}function Za(l,d,_){var m=d.width,y=d.height,j=0,F=0,E=m,T=y;if(d.Da=null!=l&&0<l.Da,d.Da&&(E=l.cd,T=l.bd,j=l.v,F=l.j,11>_||(j&=-2,F&=-2),0>j||0>F||0>=E||0>=T||j+E>m||F+T>y))return 0;if(d.v=j,d.j=F,d.va=j+E,d.o=F+T,d.U=E,d.T=T,d.da=null!=l&&0<l.da,d.da){if(!Tt(E,T,_=[l.ib],j=[l.hb]))return 0;d.ib=_[0],d.hb=j[0]}return d.ob=null!=l&&l.ob,d.Kb=null==l||!l.Sd,d.da&&(d.ob=d.ib<3*m/4&&d.hb<3*y/4,d.Kb=0),1}function Qa(l){if(null==l)return 2;if(11>l.S){var d=l.f.RGBA;d.fb+=(l.height-1)*d.A,d.A=-d.A}else(d=l.f.kb).O+=((l=l.height)-1)*d.fa,d.fa=-d.fa,d.N+=(l-1>>1)*d.Ab,d.Ab=-d.Ab,d.W+=(l-1>>1)*d.Db,d.Db=-d.Db,null!=d.F&&(d.J+=(l-1)*d.lb,d.lb=-d.lb);return 0}function la(l,d,_,m){if(null==m||0>=l||0>=d)return 2;if(null!=_){if(_.Da){var y=_.cd,j=_.bd,F=-2&_.v,E=-2&_.j;if(0>F||0>E||0>=y||0>=j||F+y>l||E+j>d)return 2;l=y,d=j}if(_.da){if(!Tt(l,d,y=[_.ib],j=[_.hb]))return 2;l=y[0],d=j[0]}}m.width=l,m.height=d;e:{var T=m.width,N=m.height;if(l=m.S,0>=T||0>=N||!(l>=fl&&13>l))l=2;else{if(0>=m.Rd&&null==m.sd){F=j=y=d=0;var U=(E=T*ju[l])*N;if(11>l||(j=(N+1)/2*(d=(T+1)/2),12==l&&(F=(y=T)*N)),null==(N=r(U+2*j+F))){l=1;break e}m.sd=N,11>l?((T=m.f.RGBA).eb=N,T.fb=0,T.A=E,T.size=U):((T=m.f.kb).y=N,T.O=0,T.fa=E,T.Fd=U,T.f=N,T.N=0+U,T.Ab=d,T.Cd=j,T.ea=N,T.W=0+U+j,T.Db=d,T.Ed=j,12==l&&(T.F=N,T.J=0+U+2*j),T.Tc=F,T.lb=y)}if(d=1,j=m.width,F=m.height,(y=m.S)>=fl&&13>y)if(11>y)l=m.f.RGBA,d&=(E=Math.abs(l.A))*(F-1)+j<=l.size,d&=E>=j*ju[y],d&=null!=l.eb;else{l=m.f.kb,E=(j+1)/2,U=(F+1)/2,T=Math.abs(l.fa),N=Math.abs(l.Ab);var oe=Math.abs(l.Db),re=Math.abs(l.lb);d&=T*(F-1)+j<=l.Fd,d&=N*(U-1)+E<=l.Cd,d=(d&=oe*(U-1)+E<=l.Ed)&T>=j&N>=E&oe>=E,d&=null!=l.y,d&=null!=l.f,d&=null!=l.ea,12==y&&(d&=re>=j,d&=re*(F-1)+j<=l.Tc,d&=null!=l.F)}else d=0;l=d?0:2}}return 0!=l||null!=_&&_.fd&&(l=Qa(m)),l}var Xi=64,ca=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],da=24,ua=32,Ka=8,yn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ye("Predictor0","PredictorAdd0"),q.Predictor0=function(){return 4278190080},q.Predictor1=function(l){return l},q.Predictor2=function(l,d,_){return d[_+0]},q.Predictor3=function(l,d,_){return d[_+1]},q.Predictor4=function(l,d,_){return d[_-1]},q.Predictor5=function(l,d,_){return Ke(Ke(l,d[_+1]),d[_+0])},q.Predictor6=function(l,d,_){return Ke(l,d[_-1])},q.Predictor7=function(l,d,_){return Ke(l,d[_+0])},q.Predictor8=function(l,d,_){return Ke(d[_-1],d[_+0])},q.Predictor9=function(l,d,_){return Ke(d[_+0],d[_+1])},q.Predictor10=function(l,d,_){return Ke(Ke(l,d[_-1]),Ke(d[_+0],d[_+1]))},q.Predictor11=function(l,d,_){var m=d[_+0];return 0>=Pt(m>>24&255,l>>24&255,(d=d[_-1])>>24&255)+Pt(m>>16&255,l>>16&255,d>>16&255)+Pt(m>>8&255,l>>8&255,d>>8&255)+Pt(255&m,255&l,255&d)?m:l},q.Predictor12=function(l,d,_){var m=d[_+0];return(ft((l>>24&255)+(m>>24&255)-((d=d[_-1])>>24&255))<<24|ft((l>>16&255)+(m>>16&255)-(d>>16&255))<<16|ft((l>>8&255)+(m>>8&255)-(d>>8&255))<<8|ft((255&l)+(255&m)-(255&d)))>>>0},q.Predictor13=function(l,d,_){var m=d[_-1];return(St((l=Ke(l,d[_+0]))>>24&255,m>>24&255)<<24|St(l>>16&255,m>>16&255)<<16|St(l>>8&255,m>>8&255)<<8|St(255&l,255&m))>>>0};var Gc=q.PredictorAdd0;q.PredictorAdd1=Nt,Ye("Predictor2","PredictorAdd2"),Ye("Predictor3","PredictorAdd3"),Ye("Predictor4","PredictorAdd4"),Ye("Predictor5","PredictorAdd5"),Ye("Predictor6","PredictorAdd6"),Ye("Predictor7","PredictorAdd7"),Ye("Predictor8","PredictorAdd8"),Ye("Predictor9","PredictorAdd9"),Ye("Predictor10","PredictorAdd10"),Ye("Predictor11","PredictorAdd11"),Ye("Predictor12","PredictorAdd12"),Ye("Predictor13","PredictorAdd13");var es=q.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var cl,Gn=q.ColorIndexInverseTransform,pa=q.MapARGB,dl=q.VP8LColorIndexInverseTransformAlpha,ul=q.MapAlpha,Zo=q.VP8LPredictorsAdd=[];Zo.length=16,(q.VP8LPredictors=[]).length=16,(q.VP8LPredictorsAdd_C=[]).length=16,(q.VP8LPredictors_C=[]).length=16;var yr,kn,_n,Qo,Po,No,_a,Mo,xi,ts,hn,Ln,ha,pl,is,kr,wr,Ko,xr,fa,Cr,er,ns,qn,Vn,oi,ri,Ci,Pi=r(511),Oo=r(2041),os=r(225),ma=r(767),_l=0,Lc=Oo,hl=os,Rn=ma,Bn=Pi,fl=0,ml=1,_u=2,gl=3,vl=4,qc=5,hu=6,Vc=7,Bc=8,bl=9,$c=10,K4=[2,3,7],ey=[3,3,11],fu=[280,256,256,256,40],ty=[0,1,1,1,0],iy=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ny=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 58
586,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],oy=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ry=8,Yc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Jc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],rs=null,ay=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],sy=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],mu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ly=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
585,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],cy=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
581,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],dy=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 2,705 bytes, line 58
585,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],uy=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],tr=[],ro=[],Ao=[],py=1,gu=2,ir=[],$n=[];be("UpsampleRgbLinePair",Gt,3),be("UpsampleBgrLinePair",ui,3),be("UpsampleRgbaLinePair",oo,4),be("UpsampleBgraLinePair",qi,4),be("UpsampleArgbLinePair",an,4),be("UpsampleRgba4444LinePair",Ei,2),be("UpsampleRgb565LinePair",gi,2);var _y=q.UpsampleRgbLinePair,hy=q.UpsampleBgrLinePair,vu=q.UpsampleRgbaLinePair,bu=q.UpsampleBgraLinePair,yu=q.UpsampleArgbLinePair,ku=q.UpsampleRgba4444LinePair,fy=q.UpsampleRgb565LinePair,yl=16,kl=1<<yl-1,as=-227,Uc=482,wu=6,my=(256<<wu)-1,xu=0,gy=r(256),vy=r(256),by=r(256),yy=r(256),ky=r(Uc-as),wy=r(Uc-as);Co("YuvToRgbRow",Gt,3),Co("YuvToBgrRow",ui,3),Co("YuvToRgbaRow",oo,4),Co("YuvToBgraRow",qi,4),Co("YuvToArgbRow",an,4),Co("YuvToRgba4444Row",Ei,2),Co("YuvToRgb565Row",gi,2);var Cu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],wl=[0,2,8],xy=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(l,d,_,m,y){var j=ml,F=new ra,E=new Zn;F.ba=E,E.S=j,E.width=[E.width],E.height=[E.height];var T=E.width,N=E.height,U=new Ro;if(null==U||null==l)var oe=2;else a(null!=U),oe=sa(l,d,_,U.width,U.height,U.Pd,U.Qd,U.format,null);if(0!=oe?T=0:(null!=T&&(T[0]=U.width[0]),null!=N&&(N[0]=U.height[0]),T=1),T){E.width=E.width[0],E.height=E.height[0],null!=m&&(m[0]=E.width),null!=y&&(y[0]=E.height);e:{if(m=new Qr,(y=new Ja).data=l,y.w=d,y.ha=_,y.kd=1,d=[0],a(null!=y),(0==(l=sa(y.data,y.w,y.ha,null,null,null,d,null,y))||7==l)&&d[0]&&(l=4),0==(d=l)){if(a(null!=F),m.data=y.data,m.w=y.w+y.offset,m.ha=y.ha-y.offset,m.put=go,m.ac=Ui,m.bc=vo,m.ma=F,y.xa){if(null==(l=An())){F=1;break e}if(function(re,Q){var Re=[0],fe=[0],z=[0];t:for(;;){if(null==re)return 0;if(null==Q)return re.a=2,0;if(re.l=Q,re.a=0,se(re.m,Q.data,Q.w,Q.ha),!yt(re.m,Re,fe,z)){re.a=3;break t}if(re.xb=gu,Q.width=Re[0],Q.height=fe[0],!ko(Re[0],fe[0],1,re,null))break t;return 1}return a(0!=re.a),0}
vendor: 27,897 bytes, lines 58-83
58(l,m)){if(m=0==(d=la(m.width,m.height,F.Oa,F.ba))){t:{m=l;i:for(;;){if(null==m){m=0;break t}if(a(null!=m.s.yc),a(null!=m.s.Ya),a(0<m.s.Wb),a(null!=(_=m.l)),a(null!=(y=_.ma)),0!=m.xb){if(m.ca=y.ba,m.tb=y.tb,a(null!=m.ca),!Za(y.Oa,_,gl)){m.a=2;break i}if(!fr(m,_.width)||_.da)break i;if((_.da||Yt(m.ca.S))&&te(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=m.ca.f.kb.F&&te()),m.Pb&&0<m.s.ua&&null==m.s.vb.X&&!wt(m.s.vb,m.s.Wa.Xa)){m.a=1;break i}m.xb=0}if(!to(m,m.V,m.Ba,m.c,m.i,_.o,Ur))break i;y.Dc=m.Ma,m=1;break t}a(0!=m.a),m=0}m=!m}m&&(d=l.a)}else d=l.a}else{if(null==(l=new bc)){F=1;break e}if(l.Fa=y.na,l.P=y.P,l.qc=y.Sa,Xs(l,m)){if(0==(d=la(m.width,m.height,F.Oa,F.ba))){if(l.Aa=0,_=F.Oa,a(null!=(y=l)),null!=_){if(0<(T=0>(T=_.Md)?0:100<T?255:255*T/100)){for(N=U=0;4>N;++N)12>(oe=y.pb[N]).lc&&(oe.ia=T*xy[0>oe.lc?0:oe.lc]>>3),U|=oe.ia;U&&(alert("todo:VP8InitRandom"),y.ia=1)}y.Ga=_.Id,100<y.Ga?y.Ga=100:0>y.Ga&&(y.Ga=0)}(function yc(l,d){if(null==l)return 0;if(null==d)return wi(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!Xs(l,d))return 0;if(a(l.cb),null==d.ac||d.ac(d)){d.ob&&(l.L=0);var _=wl[l.L];if(2==l.L?(l.yb=0,l.zb=0):(l.yb=d.v-_>>4,l.zb=d.j-_>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=d.o+15+_>>4,l.Hb=d.va+15+_>>4,l.Hb>l.za&&(l.Hb=l.za),l.Va>l.Ub&&(l.Va=l.Ub),0<l.L){var m=l.ed;for(_=0;4>_;++_){var y;if(l.Qa.Cb){var j=l.Qa.Lb[_];l.Qa.Fb||(j+=m.Tb)}else j=m.Tb;for(y=0;1>=y;++y){var F=l.gd[_][y],E=j;if(m.Pc&&(E+=m.vd[0],y&&(E+=m.od[0])),0<(E=0>E?0:63<E?63:E)){var T=E;0<m.wb&&(T=4<m.wb?T>>2:T>>1)>9-m.wb&&(T=9-m.wb),1>T&&(T=1),F.dd=T,F.tc=2*E+T,F.ld=40<=E?2:15<=E?1:0}else F.tc=0;F.La=y}}}_=0}else wi(l,6,"Frame setup failed"),_=l.a;if(_=0==_){if(_){l.$c=0,0<l.Aa||(l.Ic=1);e:{m=4*(T=l.za);var N=32*T,U=T+1,oe=0<l.L?T*(0<l.Aa?2:1):0,re=(2==l.Aa?2:1)*T;if((F=m+832+(y=3*(16*(_=l.Ic)+wl[l.L])/2*N)+(j=null!=l.Fa&&0<l.Fa.length?l.Kc.c*l.Kc.i:0))!=F)_=0;else{if(F>l.Vb){if(l.Vb=0,l.Ec=r(F),l.Fc=0,null==l.Ec){_=wi(l,1,"no memory during frame initialization.");break e}l.Vb=F}E=l.Fc,l.Ac=F=l.Ec,l.Bc=E,E+=m,l.Gd=s(N,Js),l.Hd=0,l.rb=s(U+1,Ys),l.sb=1,l.wa=oe?s(oe,Zr):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=T),a(!0),l.oc=F,l.pc=E,E+=832,l.ya=s(re,Ma),l.aa=0,l.D.ya=l.ya,l.D.aa=l.aa,2==l.Aa&&(l.D.aa+=T),l.R=16*T,l.B=8*T,T=(N=wl[l.L])*l.R,N=N/2*l.B,l.sa=F,l.ta=E+T,l.qa=l.sa,l.ra=l.ta+16*_*l.R+N,l.Ha=l.qa,l.Ia=l.ra+8*_*l.B+N,l.$c=0,E+=y,l.mb=j?F:null,l.nb=j?E:null,a(E+j<=l.Fc+l.Vb),Oa(l),o(l.Ac,l.Bc,0,m),_=1}}if(_){if(d.ka=0,d.y=l.sa,d.O=l.ta,d.f=l.qa,d.N=l.ra,d.ea=l.Ha,d.Vd=l.Ia,d.fa=l.R,d.Rc=l.B,d.F=null,d.J=0,!_l){for(_=-255;255>=_;++_)Pi[255+_]=0>_?-_:_;for(_=-1020;1020>=_;++_)Oo[1020+_]=-128>_?-128:127<_?127:_;for(_=-112;112>=_;++_)os[112+_]=-16>_?-16:15<_?15:_;for(_=-255;510>=_;++_)ma[255+_]=0>_?0:255<_?255:_;_l=1}_a=xc,Mo=kc,ts=Ws,hn=wc,Ln=Zs,xi=Hs,ha=Ba,pl=vr,is=Oc,kr=$a,wr=Mc,Ko=oa,xr=Ya,fa=al,Cr=rl,er=xo,ns=Do,qn=Nc,ro[0]=wo,ro[1]=Cc,ro[2]=Ec,ro[3]=Rc,ro[4]=el,ro[5]=ia,ro[6]=tl,ro[7]=La,ro[8]=Ic,ro[9]=Tc,tr[0]=Qs,tr[1]=Fc,tr[2]=Io,tr[3]=ea,tr[4]=rn,tr[5]=Sc,tr[6]=Ks,Ao[0]=zo,Ao[1]=jc,Ao[2]=Dc,Ao[3]=qa,Ao[4]=gr,Ao[5]=Pc,Ao[6]=Va,_=1}else _=0}_&&(_=function(Q,Re){for(Q.M=0;Q.M<Q.Va;++Q.M){var fe,z=Q.Jc[Q.M&Q.Xb],W=Q.m,Se=Q;for(fe=0;fe<Se.za;++fe){var Ie=W,Ee=Se,ct=Ee.Ac,Je=Ee.Bc+4*fe,gt=Ee.zc,Qe=Ee.ya[Ee.aa+fe];if(Qe.$b=Ee.Qa.Bb?_e(Ie,Ee.Pa.jb[0])?2+_e(Ie,Ee.Pa.jb[2]):_e(Ie,Ee.Pa.jb[1]):0,Ee.kc&&(Qe.Ad=_e(Ie,Ee.Bd)),Qe.Za=!_e(Ie,145)+0,Qe.Za){var $t=Qe.Ob,zt=0;for(Ee=0;4>Ee;++Ee){var Vt,Ot=gt[0+Ee];for(Vt=0;4>Vt;++Vt){for(var ii=mu[_e(Ie,(Ot=cy[ct[Je+Vt]][Ot])[0])];0<ii;)ii=mu[2*ii+_e(Ie,Ot[ii])];ct[Je+Vt]=Ot=-ii}n($t,zt,ct,Je,4),zt+=4,gt[0+Ee]=Ot}}else Ot=_e(Ie,156)?_e(Ie,128)?1:3:_e(Ie,163)?2:0,Qe.Ob[0]=Ot,o(ct,Je,Ot,4),o(gt,0,Ot,4);Qe.Dd=_e(Ie,142)?_e(Ie,114)?_e(Ie,183)?1:3:2:0}if(Se.m.Ka)return wi(Q,7,"Premature end-of-partition0 encountered.");for(;Q.ja<Q.za;++Q.ja){if(Se=z,Ie=(W=Q).rb[W.sb-1],ct=W.rb[W.sb+W.ja],fe=W.ya[W.aa+W.ja],Je=W.kc?fe.Ad:0)Ie.la=ct.la=0,fe.Za||(Ie.Na=ct.Na=0),fe.Hc=0,fe.Gc=0,fe.ia=0;else{var Zt,Dt;if(Ie=ct,ct=Se,Je=W.Pa.Xc,Qe=W.pb[(gt=W.ya[W.aa+W.ja]).$b],zt=W.rb[W.sb-1],Ot=Vt=0,o(Ee=gt.ad,$t=0,0,384),gt.Za)var Ri=0,wn=Je[3];else{ii=r(16);var Ti=Ie.Na+zt.Na;if(Ti=rs(ct,Je[1],Ti,Qe.Eb,0,ii,0),Ie.Na=zt.Na=(0<Ti)+0,1<Ti)_a(ii,0,Ee,$t);else{var xn=ii[0]+3>>3;for(ii=0;256>ii;ii+=16)Ee[$t+ii]=xn}Ri=1,wn=Je[0]}var Ht=15&Ie.la,Tn=15&zt.la;for(ii=0;4>ii;++ii){var In=1&Tn;for(xn=Dt=0;4>xn;++xn)Ht=Ht>>1|(In=(Ti=rs(ct,wn,Ti=In+(1&Ht),Qe.Sc,Ri,Ee,$t))>Ri)<<7,Dt=Dt<<2|(3<Ti?3:1<Ti?2:0!=Ee[$t+0]),$t+=16;Ht>>=4,Tn=Tn>>1|In<<7,Vt=(Vt<<8|Dt)>>>0}for(wn=Ht,Ri=Tn>>4,Zt=0;4>Zt;Zt+=2){for(Dt=0,Ht=Ie.la>>4+Zt,Tn=zt.la>>4+Zt,ii=0;2>ii;++ii){for(In=1&Tn,xn=0;2>xn;++xn)Ht=Ht>>1|(In=0<(Ti=rs(ct,Je[2],Ti=In+(1&Ht),Qe.Qc,0,Ee,$t)))<<3,Dt=Dt<<2|(3<Ti?3:1<Ti?2:0!=Ee[$t+0]),$t+=16;Ht>>=2,Tn=Tn>>1|In<<5}Ot|=Dt<<4*Zt,wn|=Ht<<4<<Zt,Ri|=(240&Tn)<<Zt}Ie.la=wn,zt.la=Ri,gt.Hc=Vt,gt.Gc=Ot,gt.ia=43690&Ot?0:Qe.ia,Je=!(Vt|Ot)}if(0<W.L&&(W.wa[W.Y+W.ja]=W.gd[fe.$b][fe.Za],W.wa[W.Y+W.ja].La|=!Je),Se.Ka)return wi(Q,7,"Premature end-of-file encountered.")}if(Oa(Q),W=Re,Se=1,fe=(z=Q).D,Ie=0<z.L&&z.M>=z.zb&&z.M<=z.Va,0==z.Aa)e:{if(fe.M=z.M,fe.uc=Ie,Wa(z,fe),Se=1,fe=(Dt=z.D).Nb,Ie=(Ot=wl[z.L])*z.R,Je=z.sa,gt=z.ta-Ie+(ii=16*fe*z.R),Qe=z.qa,Ee=z.ra-(ct=Ot/2*z.B)+(xn=8*fe*z.B),$t=z.Ha,zt=z.Ia-ct+xn,Tn=0==(Ht=Dt.M),Vt=Ht>=z.Va-1,2==z.Aa&&Wa(z,Dt),Dt.uc)for(In=(Ti=z).D.M,a(Ti.D.uc),Dt=Ti.yb;Dt<Ti.Hb;++Dt){wn=In;var Vi=(zi=(vi=Ti).D).Nb,zi=zi.wa[zi.Y+(Ri=Dt)],fn=vi.sa,Yn=vi.ta+16*Vi*(Zt=vi.R)+16*Ri,jo=zi.dd,Bi=zi.tc;if(0!=Bi)if(a(3<=Bi),1==vi.L)0<Ri&&er(fn,Yn,Zt,Bi+4),zi.La&&qn(fn,Yn,Zt,Bi),0<wn&&Cr(fn,Yn,Zt,Bi+4),zi.La&&ns(fn,Yn,Zt,Bi);else{var Go=vi.B,jr=vi.qa,ga=vi.ra+8*Vi*Go+8*Ri,nr=vi.Ha,vi=vi.Ia+8*Vi*Go+8*Ri;Vi=zi.ld,0<Ri&&(pl(fn,Yn,Zt,Bi+4,jo,Vi),kr(jr,ga,nr,vi,Go,Bi+4,jo,Vi)),zi.La&&(Ko(fn,Yn,Zt,Bi,jo,Vi),fa(jr,ga,nr,vi,Go,Bi,jo,Vi)),0<wn&&(ha(fn,Yn,Zt,Bi+4,jo,Vi),is(jr,ga,nr,vi,Go,Bi+4,jo,Vi)),zi.La&&(wr(fn,Yn,Zt,Bi,jo,Vi),xr(jr,ga,nr,vi,Go,Bi,jo,Vi))}}if(z.ia&&alert("todo:DitherRow"),null!=W.put){if(Dt=16*Ht,Ht=16*(Ht+1),Tn?(W.y=z.sa,W.O=z.ta+ii,W.f=z.qa,W.N=z.ra+xn,W.ea=z.Ha,W.W=z.Ia+xn):(Dt-=Ot,W.y=Je,W.O=gt,W.f=Qe,W.N=Ee,W.ea=$t,W.W=zt),Vt||(Ht-=Ot),Ht>W.o&&(Ht=W.o),W.F=null,W.J=null,null!=z.Fa&&0<z.Fa.length&&Dt<Ht&&(W.J=za(z,W,Dt,Ht-Dt),W.F=z.mb,null==W.F&&0==W.F.length)){Se=wi(z,3,"Could not decode alpha data.");break e}Dt<W.j&&(Ot=W.j-Dt,Dt=W.j,a(!(1&Ot)),W.O+=z.R*Ot,W.N+=z.B*(Ot>>1),W.W+=z.B*(Ot>>1),null!=W.F&&(W.J+=W.width*Ot)),Dt<Ht&&(W.O+=W.v,W.N+=W.v>>1,W.W+=W.v>>1,null!=W.F&&(W.J+=W.v),W.ka=Dt-W.j,W.U=W.va-W.v,W.T=Ht-Dt,Se=W.put(W))}fe+1!=z.Ic||Vt||(n(z.sa,z.ta-Ie,Je,gt+16*z.R,Ie),n(z.qa,z.ra-ct,Qe,Ee+8*z.B,ct),n(z.Ha,z.Ia-ct,$t,zt+8*z.B,ct))}if(!Se)return wi(Q,6,"Output aborted.")}return 1}(l,d)),null!=d.bc&&d.bc(d),_&=1}return _?(l.cb=0,_):0})(l,m)||(d=l.a)}}else d=l.a}0==d&&null!=F.Oa&&F.Oa.fd&&(d=Qa(F.ba))}F=d}j=0!=F?null:11>j?E.f.RGBA.eb:E.f.kb.y}else j=null;return j};var ju=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(q,ae){for(var ke="",I=0;I<4;I++)ke+=String.fromCharCode(q[ae++]);return ke}function v(q,ae){return(q[ae+0]|q[ae+1]<<8|q[ae+2]<<16)>>>0}function g(q,ae){return(q[ae+0]|q[ae+1]<<8|q[ae+2]<<16|q[ae+3]<<24)>>>0}new u;var b=[0],f=[0],R=[],C=new u,D=i,x=function(q,ae){var ke={},I=0,P=!1,X=0,V=0;if(ke.frames=[],!
59/** @license
60             * Copyright (c) 2017 Dominik Homberger
61            Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
62            The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
63            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64            https://webpjs.appspot.com
65            WebPRiffParser [email protected]
66            */
67function(O,G,J,K){for(var ce=0;ce<4;ce++)if(O[G+ce]!="RIFF".charCodeAt(ce))return!0;return!1}(q,ae)){var he,pe;for(g(q,ae+=4),ae+=8;ae<q.length;){var ge=h(q,ae),se=g(q,ae+=4);ae+=4;var we=se+(1&se);switch(ge){case"VP8 ":case"VP8L":void 0===ke.frames[I]&&(ke.frames[I]={}),(S=ke.frames[I]).src_off=P?V:ae-8,S.src_size=X+se+8,I++,P&&(P=!1,X=0,V=0);break;case"VP8X":(S=ke.header={}).feature_flags=q[ae];var Fe=ae+4;S.canvas_width=1+v(q,Fe),S.canvas_height=1+v(q,Fe+=3),Fe+=3;break;case"ALPH":P=!0,X=we+8,V=ae-8;break;case"ANIM":(S=ke.header).bgcolor=g(q,ae),S.loop_count=(he=q)[(pe=Fe=ae+4)+0]|he[pe+1]<<8,Fe+=2;break;case"ANMF":var it,S;(S=ke.frames[I]={}).offset_x=2*v(q,ae),S.offset_y=2*v(q,ae+=3),S.width=1+v(q,ae+=3),S.height=1+v(q,ae+=3),S.duration=v(q,ae+=3),ae+=3,it=q[ae++],S.dispose=1&it,S.blend=it>>1&1}"ANMF"!=ge&&(ae+=we)}return ke}}(D,0);x.response=D,x.rgbaoutput=!0,x.dataurl=!1;var M=x.header?x.header:null,Y=x.frames?x.frames:null;if(M){M.loop_counter=M.loop_count,b=[M.canvas_height],f=[M.canvas_width];for(var ee=0;ee<Y.length&&0!=Y[ee].blend;ee++);}var de=Y[0],je=C.WebPDecodeRGBA(D,de.src_off,de.src_size,f,b);de.rgba=je,de.imgwidth=f[0],de.imgheight=b[0];for(var ie=0;ie<f[0]*b[0]*4;ie++)R[ie]=je[ie];return this.width=f,this.height=b,this.data=R,this}(function(i){var t=function(b,f,R,C){var D=4,x=s;switch(C){case i.image_compression.FAST:D=1,x=r;break;case i.image_compression.MEDIUM:D=6,x=c;break;case i.image_compression.SLOW:D=9,x=u}var M=Da(b=n(b,f,R,x),{level:D});return i.__addimage__.arrayBufferToBinaryString(M)},n=function(b,f,R,C){for(var D,x,M,Y=b.length/f,ee=new Uint8Array(b.length+Y),de=v(),je=0;je<Y;je+=1){if(D=b.subarray(M=je*f,M+f),C)ee.set(C(D,R,x),M+je);else{for(var ie,q=de.length,ae=[];ie<q;ie+=1)ae[ie]=de[ie](D,R,x);var ke=g(ae.concat());ee.set(ae[ke],M+je)}x=D}return ee},o=function(b){var f=Array.apply([],b);return f.unshift(0),f},r=function(b,f){var C=[],D=b.length;C[0]=1;for(var x=0;x<D;x+=1)C[x+1]=b[x]-(b[x-f]||0)+256&255;return C},s=function(b,f,R){var D=[],x=b.length;D[0]=2;for(var M=0;M<x;M+=1)D[M+1]=b[M]-(R&&R[M]||0)+256&255;return D},c=function(b,f,R){var x=[],M=b.length;x[0]=3;for(var Y=0;Y<M;Y+=1)x[Y+1]=b[Y]+256-((b[Y-f]||0)+(R&&R[Y]||0)>>>1)&255;return x},u=function(b,f,R){var M,Y=[],ee=b.length;Y[0]=4;for(var de=0;de<ee;de+=1)M=h(b[de-f]||0,R&&R[de]||0,R&&R[de-f]||0),Y[de+1]=b[de]-M+256&255;return Y},h=function(b,f,R){if(b===f&&f===R)return b;var C=Math.abs(f-R),D=Math.abs(b-R),x=Math.abs(b+f-R-R);return C<=D&&C<=x?b:D<=x?f:R},v=function(){return[o,r,s,c,u]},g=function(b){var f=b.map(function(R){return R.reduce(function(C,D){return C+Math.abs(D)},0)});return f.indexOf(Math.min.apply(null,f))};i.processPNG=function(b,f,R,C){var D,x,M,Y,ee,de,je,ie,q,ae,ke,I,P,X,V,he=this.decode.FLATE_DECODE,pe="";if(this.__addimage__.isArrayBuffer(b)&&(b=new Uint8Array(b)),this.__addimage__.isArrayBufferView(b)){if(b=(M=new j0(b)).imgData,x=M.bits,D=M.colorSpace,ee=M.colors,-1!==[4,6].indexOf(M.colorType)){if(8===M.bits){q=(ie=32==M.pixelBitlength?new Uint32Array(M.decodePixels().buffer):16==M.pixelBitlength?new Uint16Array(M.decodePixels().buffer):new Uint8Array(M.decodePixels().buffer)).length,ke=new Uint8Array(q*M.colors),ae=new Uint8Array(q);var ge,se=M.pixelBitlength-M.bits;for(X=0,V=0;X<q;X++){for(P=ie[X],ge=0;ge<se;)ke[V++]=P>>>ge&255,ge+=M.bits;ae[X]=P>>>ge&255}}if(16===M.bits){q=(ie=new Uint32Array(M.decodePixels().buffer)).length,ke=new Uint8Array(q*(32/M.pixelBitlength)*M.colors),ae=new Uint8Array(q*(32/M.pixelBitlength)),I=M.colors>1,X=0,V=0;for(var we=0;X<q;)P=ie[X++],ke[V++]=P>>>0&255,I&&(ke[V++]=P>>>16&255,P=ie[X++],ke[V++]=P>>>0&255),ae[we++]=P>>>16&255;x=8}C!==i.image_compression.NONE?(b=t(ke,M.width*M.colors,M.colors,C),je=t(ae,M.width,1,C)):(b=ke,je=ae,he=void 0)}if(3===M.colorType&&(D=this.color_spaces.INDEXED,de=M.palette,M.transparency.indexed)){var Fe=M.transparency.indexed,it=0;for(X=0,q=Fe.length;X<q;++X)it+=Fe[X];if((it/=255)==q-1&&-1!==Fe.indexOf(0))Y=[Fe.indexOf(0)];else if(it!==q){for(ie=M.decodePixels(),ae=new Uint8Array(ie.length),X=0,q=ie.length;X<q;X++)ae[X]=Fe[ie[X]];je=t(ae,M.width,1)}}var S=function(O){var G;switch(O){case i.image_compression.FAST:G=11;break;case i.image_compression.MEDIUM:G=13;break;case i.image_compression.SLOW:G=14;break;default:G=12}return G}(C);return he===this.decode.FLATE_DECODE&&(pe="/Predictor "+S+" "),pe+="/Colors "+ee+" /BitsPerComponent "+x+" /Columns "+M.width,(this.__addimage__.isArrayBuffer(b)||this.__addimage__.isArrayBufferView(b))&&(b=this.__addimage__.arrayBufferToBinaryString(b)),(je&&this.__addimage__.isArrayBuffer(je)||this.__addimage__.isArrayBufferView(je))&&(je=this.__addimage__.arrayBufferToBinaryString(je)),{alias:R,data:b,index:f,filter:he,decodeParameters:pe,transparency:Y,palette:de,sMask:je,predictor:S,width:M.width,height:M.height,bitsPerComponent:x,colorSpace:D}}}})(bt.API),function(i){i.processGIF89A=function(a,t,n,o){var r=new F0(a),s=r.width,c=r.height,u=[];r.decodeAndBlitFrameRGBA(0,u);var h={data:u,width:s,height:c},v=new _c(100).encode(h,100);return i.processJPEG.call(this,v,t,n,o)},i.processGIF87A=i.processGIF89A}(bt.API),zn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var i=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(i);for(var a=0;a<i;a++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[a]={red:o,green:n,blue:t,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zn.prototype.parseBGR=function(){this.pos=this.offset;try{var i="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[i]()}catch(t){ei.log("bit decode error:"+t)}},zn.prototype.bit1=function(){var i,a=Math.ceil(this.width/8),t=a%4;for(i=this.height-1;i>=0;i--){for(var n=this.bottom_up?i:this.height-1-i,o=0;o<a;o++)for(var r=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*o*4,c=0;c<8&&8*o+c<this.width;c++){var u=this.palette[r>>7-c&1];this.data[s+4*c]=u.blue,this.data[s+4*c+1]=u.green,this.data[s+4*c+2]=u.red,this.data[s+4*c+3]=255}0!==t&&(this.pos+=4-t)}},zn.prototype.bit4=function(){for(var i=Math.ceil(this.width/2),a=i%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,o=0;o<i;o++){var r=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*o*4,u=15&r,h=this.palette[r>>4];if(this.data[s]=h.blue,this.data[s+1]=h.green,this.data[s+2]=h.red,this.data[s+3]=255,2*o+1>=this.width)break;this.data[s+4]=(h=this.palette[u]).blue,this.data[s+4+1]=h.green,this.data[s+4+2]=h.red,this.data[s+4+3]=255}0!==a&&(this.pos+=4-a)}},zn.prototype.bit8=function(){for(var i=this.width%4,a=this.height-1;a>=0;a--){for(var t=this.bottom_up?a:this.height-1-a,n=0;n<this.width;n++){var o=this.datav.getUint8(this.pos++,!0),r=t*this.width*4+4*n;if(o<this.palette.length){var s=this.palette[o];this.data[r]=s.red,this.data[r+1]=s.green,this.data[r+2]=s.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!==i&&(this.pos+=4-i)}},zn.prototype.bit15=function(){for(var i=this.width%3,a=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,o=0;o<this.width;o++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&a)/a*255|0,c=(r>>5&a)/a*255|0,h=r>>15?255:0,v=n*this.width*4+4*o;this.data[v]=(r>>10&a)/a*255|0,this.data[v+1]=c,this.data[v+2]=s,this.data[v+3]=h}this.pos+=i}},zn.prototype.bit16=function(){for(var i=this.width%3,a=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(s&a)/a*255|0,u=(s>>5&t)/t*255|0,v=o*this.width*4+4*r;this.data[v]=(s>>11)/a*255|0,this.data[v+1]=u,this.data[v+2]=c,this.data[v+3]=255}this.pos+=i}},zn.prototype.bit24=function(){for(var i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=a*this.width*4+4*t;this.data[s]=r,this.data[s+1]=o,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},zn.prototype.bit32=function(){for(var i=this.height-1;i>=0;i--)for(var a=this.bottom_up?i:this.height-1-i,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=a*this.width*4+4*t;this.data[c]=r,this.data[c+1]=o,this.data[c+2]=n,this.data[c+3]=s}},zn.prototype.getData=function(){return this.data},
68/**
69       * @license
70       * Copyright (c) 2018 Aras Abbasi
71       *
72       * Licensed under the MIT License.
73       * http://opensource.org/licenses/mit-license
74       */
75function(i){i.processBMP=function(a,t,n,o){var r=new zn(a,!1),s=r.width,c=r.height,u={data:r.getData(),width:s,height:c},h=new _c(100).encode(u,100);return i.processJPEG.call(this,h,t,n,o)}}(bt.API),au.prototype.getData=function(){return this.data},
76/**
77       * @license
78       * Copyright (c) 2019 Aras Abbasi
79       *
80       * Licensed under the MIT License.
81       * http://opensource.org/licenses/mit-license
82       */
83function(i){i.processWEBP=function(a,t,n,o){var r=new au(a,!1),s=r.width,c=r.height,u={data:r.getData(),width:s,height:c},h=new _c(100).encode(u,100);return i.processJPEG.call(this,h,t,n,o)}}(bt.API),bt.API.processRGBA=function(i,a,t){for(var n=i.data,o=n.length,r=new Uint8Array(o/4*3),s=new Uint8Array(o/4),c=0,u=0,h=0;h<o;h+=4){var g=n[h+1],b=n[h+2],f=n[h+3];r[c++]=n[h],r[c++]=g,r[c++]=b,s[u++]=f}var R=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:R,index:a,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:i.width,height:i.height}},bt.API.setLanguage=function(i){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[i]&&(this.internal.languageSettings.languageCode=i,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Bs=(Jr=bt.API).getCharWidthsArray=function(i,a){var t,n,o=(a=a||{}).font||this.internal.getFont(),r=a.fontSize||this.internal.getFontSize(),s=a.charSpace||this.internal.getCharSpace(),c=a.widths?a.widths:o.metadata.Unicode.widths,u=c.fof?c.fof:1,h=a.kerning?a.kerning:o.metadata.Unicode.kerning,v=h.fof?h.fof:1,g=!1!==a.doKerning,b=0,f=i.length,R=0,C=c[0]||u,D=[];for(t=0;t<f;t++)n=i.charCodeAt(t),"function"==typeof o.metadata.widthOfString?D.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(n))+s*(1e3/r)||0)/1e3):(b=g&&"object"===(0,Kt.A)(h[n])&&!isNaN(parseInt(h[n][R],10))?h[n][R]/v:0,D.push((c[n]||C)/u+b)),R=n;return D},iu=Jr.getStringUnitWidth=function(i,a){var t=(a=a||{}).fontSize||this.internal.getFontSize(),n=a.font||this.internal.getFont(),o=a.charSpace||this.internal.getCharSpace();return Jr.processArabic&&(i=Jr.processArabic(i)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(i,t,o)/t:Bs.apply(this,arguments).reduce(function(r,s){return r+s},0)},nu=function(i,a,t,n){for(var o=[],r=0,s=i.length,c=0;r!==s&&c+a[r]<t;)c+=a[r],r++;o.push(i.slice(0,r));var u=r;for(c=0;r!==s;)c+a[r]>n&&(o.push(i.slice(u,r)),c=0,u=r),c+=a[r],r++;return u!==r&&o.push(i.slice(u,r)),o},ou=function(i,a,t){t||(t={});var n,o,r,s,c,u,v=[],g=[v],b=t.textIndent||0,f=0,R=0,C=i.split(" "),D=Bs.apply(this,[" ",t])[0];if(u=-1===t.lineIndent?C[0].length+2:t.lineIndent||0){var x=Array(u).join(" "),M=[];C.map(function(ee){(ee=ee.split(/\s*\n/)).length>1?M=M.concat(ee.map(function(de,je){return(je&&de.length?"\n":"")+de})):M.push(ee[0])}),C=M,u=iu.apply(this,[x,t])}for(r=0,s=C.length;r<s;r++){var Y=0;if(n=C[r],u&&"\n"==n[0]&&(n=n.substr(1),Y=1),b+f+(R=(o=Bs.apply(this,[n,t])).reduce(function(ee,de){return ee+de},0))>a||Y){if(R>a){for(c=nu.apply(this,[n,o,a-(b+f),a]),v.push(c.shift()),v=[c.pop()];c.length;)g.push([c.shift()]);R=o.slice(n.length-(v[0]?v[0].length:0)).reduce(function(ee,de){return ee+de},0)}else v=[n];g.push(v),b=R+u,f=D}else v.push(n),b+=f+R,f=D}return g.map(u?function(ee,de){return(de?x:"")+ee.join(" ")}:function(ee){return ee.join(" ")})},Jr.splitTextToSize=function(i,a,t){var n,o=(t=t||{}).fontSize||this.internal.getFontSize(),r=function(v){if(v.widths&&v.kerning)return{widths:v.widths,kerning:v.kerning};var g=this.internal.getFont(v.fontName,v.fontStyle);return g.metadata.Unicode?{widths:g.metadata.Unicode.widths||{0:1},kerning:g.metadata.Unicode.kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);n=Array.isArray(i)?i:String(i).split(/\r?\n/);var s=1*this.internal.scaleFactor*a/o;r.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/o:0,r.lineIndent=t.lineIndent;var c,u,h=[];for(c=0,u=n.length;c<u;c++)h=h.concat(ou.apply(this,[n[c],s,r]));return h},function(i){i.__fontmetrics__=i.__fontmetrics__||{};for(var a="klmnopqrstuvwxyz",t={},n={},o=0;o<16;o++)t[a[o]]="0123456789abcdef"[o],n["0123456789abcdef"[o]]=a[o];var r=function(g){return"0x"+parseInt(g,10).toString(16)},s=i.__fontmetrics__.compress=function(g){var b,f,R,C,D=["{"];for(var x in g){if(b=g[x],isNaN(parseInt(x,10))?f="'"+x+"'":(x=parseInt(x,10),f=(f=r(x).slice(2)).slice(0,-1)+n[f.slice(-1)]),"number"==typeof b)b<0?(R=r(b).slice(3),C="-"):(R=r(b).slice(2),C=""),R=C+R.slice(0,-1)+n[R.slice(-1)];else{if("object"!==(0,Kt.A)(b))throw new Error("Don't know what to do with value type "+(0,Kt.A)(b)+".");R=s(b)}D.push(f+R)}return D.push("}"),D.join("")},c=i.__fontmetrics__.uncompress=function(g){if("string"!=typeof g)throw new Error("Invalid argument passed to uncompress.");for(var b,f,R,C,D={},x=1,M=D,Y=[],ee="",de="",je=g.length-1,ie=1;ie<je;ie+=1)"'"==(C=g[ie])?b?(R=b.join(""),b=void 0):b=[]:b?b.push(C):"{"==C?(Y.push([M,R]),M={},R=void 0):"}"==C?((f=Y.pop())[0][f[1]]=M,R=void 0,M=f[0]):"-"==C?x=-1:void 0===R?t.hasOwnProperty(C)?(ee+=t[C],R=parseInt(ee,16)*x,x=1,ee=""):ee+=C:t.hasOwnProperty(C)?(de+=t[C],M[R]=parseInt(de,16)*x,x=1,R=void 0,de=""):de+=C;return D},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},v
vendor: 14,693 bytes, line 83
83={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};
vendor: 10,828 bytes, lines 83-115
83i.events.push(["addFont",function(g){var b=g.font,f=v.Unicode[b.postScriptName];f&&(b.metadata.Unicode={},b.metadata.Unicode.widths=f.widths,b.metadata.Unicode.kerning=f.kerning);var R=h.Unicode[b.postScriptName];R&&(b.metadata.Unicode.encoding=R,b.encoding=R.codePages[0])}])}(bt.API),
84/**
85       * @license
86       * Licensed under the MIT License.
87       * http://opensource.org/licenses/mit-license
88       */
89function(i){var a=function(t){for(var n=t.length,o=new Uint8Array(n),r=0;r<n;r++)o[r]=t.charCodeAt(r);return o};i.API.events.push(["addFont",function(t){var s,c,n=void 0,o=t.font,r=t.instance;if(!o.isStandardFont){if(void 0===r)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(n=!1===r.existsFileInVFS(o.postScriptName)?r.loadFile(o.postScriptName):r.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");s=o,c=/^\x00\x01\x00\x00/.test(c=n)?a(c):a(Na(c)),s.metadata=i.API.TTFFont.open(c),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]}}])}(bt),bt.API.addSvgAsImage=function(t,n,o,r,s,c,u,h){if(isNaN(n)||isNaN(o))throw ei.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(s))throw ei.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var v=document.createElement("canvas");v.width=r,v.height=s;var g=v.getContext("2d");g.fillStyle="#fff",g.fillRect(0,0,v.width,v.height);var b={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return function a(){return(kt.canvg?Promise.resolve(kt.canvg):ze.e(147).then(ze.bind(ze,20147))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}().then(function(R){return R.fromString(g,t,b)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(R){return R.render(b)}).then(function(){f.addImage(v.toDataURL("image/jpeg",1),n,o,r,s,u,h)})},bt.API.putTotalPages=function(i){var a,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(a=new RegExp(i,"g"),t=this.internal.getNumberOfPages()):(a=new RegExp(this.pdfEscape16(i,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var o=0;o<this.internal.pages[n].length;o++)this.internal.pages[n][o]=this.internal.pages[n][o].replace(a,t);return this},bt.API.viewerPreferences=function(i,a){var t;i=i||{},a=a||!1;var n,o,r,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,v=0,g=0;function b(R,C){var D,x=!1;for(D=0;D<R.length;D+=1)R[D]===C&&(x=!0);return x}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,"reset"===i||!0===a){var f=c.length;for(g=0;g<f;g+=1)t[c[g]].value=t[c[g]].defaultValue,t[c[g]].explicitSet=!1}if("object"===(0,Kt.A)(i))for(o in i)if(r=i[o],b(c,o)&&void 0!==r){if("boolean"===t[o].type&&"boolean"==typeof r)t[o].value=r;else if("name"===t[o].type&&b(t[o].valueSet,r))t[o].value=r;else if("integer"===t[o].type&&Number.isInteger(r))t[o].value=r;else if("array"===t[o].type){for(h=0;h<r.length;h+=1)if(n=!0,1===r[h].length&&"number"==typeof r[h][0])u.push(String(r[h]-1));else if(r[h].length>1){for(v=0;v<r[h].length;v+=1)"number"!=typeof r[h][v]&&(n=!1);!0===n&&u.push([r[h][0]-1,r[h][1]-1].join(" "))}t[o].value="["+u.join(" ")+"]"}else t[o].value=t[o].defaultValue;t[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var R,C=[];for(R in t)!0===t[R].explicitSet&&C.push("name"===t[R].type?"/"+R+" /"+t[R].value:"/"+R+" "+t[R].value);0!==C.length&&this.internal.write("/ViewerPreferences\n<<\n"+C.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},
90/** ====================================================================
91       * @license
92       * jsPDF XMP metadata plugin
93       * Copyright (c) 2016 Jussi Utunen, [email protected]
94       *
95       * Permission is hereby granted, free of charge, to any person obtaining
96       * a copy of this software and associated documentation files (the
97       * "Software"), to deal in the Software without restriction, including
98       * without limitation the rights to use, copy, modify, merge, publish,
99       * distribute, sublicense, and/or sell copies of the Software, and to
100       * permit persons to whom the Software is furnished to do so, subject to
101       * the following conditions:
102       *
103       * The above copyright notice and this permission notice shall be
104       * included in all copies or substantial portions of the Software.
105       *
106       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
107       * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
108       * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
109       * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
110       * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
111       * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
112       * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
113       * ====================================================================
114       */
115function(i){var a=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',o=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(n)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),c=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),h=r.length+s.length+c.length+o.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+h+" >>"),this.internal.write("stream"),this.internal.write(o+r+s+c+u),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};i.addMetadata=function(n,o){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:n,namespaceuri:o||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",a)),this}}(bt.API),function(i){var a=i.API,t=a.pdfEscape16=function(r,s){for(var c,u=s.metadata.Unicode.widths,h=["","0","00","000","0000"],v=[""],g=0,b=r.length;g<b;++g){if(c=s.metadata.characterToGlyph(r.charCodeAt(g)),s.metadata.glyIdsUsed.push(c),s.metadata.toUnicode[c]=r.charCodeAt(g),-1==u.indexOf(c)&&(u.push(c),u.push([parseInt(s.metadata.widthOfGlyph(c),10)])),"0"==c)return v.join("");c=c.toString(16),v.push(h[4-c.length],c)}return v.join("")},n=function(r){var s,c,u,h,v,g,b;for(v="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",u=[],g=0,b=(c=Object.keys(r).sort(function(f,R){return f-R})).length;g<b;g++)s=c[g],u.length>=100&&(v+="\n"+u.length+" beginbfchar\n"+u.join("\n")+"\nendbfchar",u=[]),null!=r[s]&&"function"==typeof r[s].toString&&(h=("0000"+r[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),u.push("<"+s+"><"+h+">"));return u.length&&(v+="\n"+u.length+" beginbfchar\n"+u.join("\n")+"\nendbfchar\n"),v+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};a.events.push(["putFont",function(r){!function(s){var c=s.font,u=s.out,h=s.newObject,v=s.putStream;if(c.metadata instanceof i.API.TTFFont&&"Identity-H"===c.encoding){for(var g=c.metadata.Unicode.widths,b=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),f="",R=0;R<b.length;R++)f+=String.fromCharCode(b[R]);var C=h();v({data:f,addLength1:!0,objectId:C}),u("endobj");var D=h();v({data:n(c.metadata.toUnicode),addLength1:!0,objectId:D}),u("endobj");var x=h();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Gr(c.fontName)),u("/
115FontFile2 "+C+" 0 R"),u("/FontBBox "+i.API.PDFObject.convert(c.metadata.bbox)),u("/Flags "+c.metadata.flags),u("/StemV "+c.metadata.stemV),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u(">>"),u("endobj");var M=h();u("<<"),u("/Type /Font"),u("/BaseFont /"+Gr(c.fontName)),u("/FontDescriptor "+x+" 0 R"),u("/W "+i.API.PDFObject.convert(g)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+c.encoding+")"),u(">>"),u(">>"),u("endobj"),c.objectNumber=h(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+D+" 0 R"),u("/BaseFont /"+Gr(c.fontName)),u("/Encoding /"+c.encoding),u("/DescendantFonts ["+M+" 0 R]"),u(">>"),u("endobj"),c.isAlreadyPutted=!0}}(r)}]),a.events.push(["putFont",function(r){!function(s){var c=s.font,u=s.out,h=s.newObject,v=s.putStream;if(c.metadata instanceof i.API.TTFFont&&"WinAnsiEncoding"===c.encoding){for(var g=c.metadata.rawData,b="",f=0;f<g.length;f++)b+=String.fromCharCode(g[f]);var R=h();v({data:b,addLength1:!0,objectId:R}),u("endobj");var C=h();v({data:n(c.metadata.toUnicode),addLength1:!0,objectId:C}),u("endobj");var D=h();u("<<"),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u("/StemV "+c.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+R+" 0 R"),u("/Flags 96"),u("/FontBBox "+i.API.PDFObject.convert(c.metadata.bbox)),u("/FontName /"+Gr(c.fontName)),u("/ItalicAngle "+c.metadata.italicAngle),u("/Asce
vendor: 36,313 bytes, lines 115-129
115nt "+c.metadata.ascender),u(">>"),u("endobj"),c.objectNumber=h();for(var x=0;x<c.metadata.hmtx.widths.length;x++)c.metadata.hmtx.widths[x]=parseInt(c.metadata.hmtx.widths[x]*(1e3/c.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+C+" 0 R/BaseFont/"+Gr(c.fontName)+"/FontDescriptor "+D+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+i.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),u("endobj"),c.isAlreadyPutted=!0}}(r)}]);var o=function(r){var s,c=r.text||"",u=r.x,h=r.y,v=r.options||{},g=r.mutex||{},b=g.pdfEscape,f=g.activeFontKey,R=g.fonts,C=f,D="",x=0,M="",Y=R[C].encoding;if("Identity-H"!==R[C].encoding)return{text:c,x:u,y:h,options:v,mutex:g};for(M=c,C=f,Array.isArray(c)&&(M=c[0]),x=0;x<M.length;x+=1)R[C].metadata.hasOwnProperty("cmap")&&(s=R[C].metadata.cmap.unicode.codeMap[M[x].charCodeAt(0)]),s||M[x].charCodeAt(0)<256&&R[C].metadata.hasOwnProperty("Unicode")?D+=M[x]:D+="";var ee="";return parseInt(C.slice(1))<14||"WinAnsiEncoding"===Y?ee=b(D,C).split("").map(function(de){return de.charCodeAt(0).toString(16)}).join(""):"Identity-H"===Y&&(ee=t(D,R[C])),g.isHex=!0,{text:ee,x:u,y:h,options:v,mutex:g}};a.events.push(["postProcessText",function(r){var s=r.text||"",c=[],u={text:s,x:r.x,y:r.y,options:r.options,mutex:r.mutex};if(Array.isArray(s)){var h=0;for(h=0;h<s.length;h+=1)Array.isArray(s[h])&&3===s[h].length?c.push([o(Object.assign({},u,{text:s[h][0]})).text,s[h][1],s[h][2]]):c.push(o(Object.assign({},u,{text:s[h]})).text);r.text=c}else r.text=o(Object.assign({},u,{text:s})).text}])}(bt),
116/**
117       * @license
118       * jsPDF virtual FileSystem functionality
119       *
120       * Licensed under the MIT License.
121       * http://opensource.org/licenses/mit-license
122       */
123function(i){var a=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};i.existsFileInVFS=function(t){return a.call(this),void 0!==this.internal.vFS[t]},i.addFileToVFS=function(t,n){return a.call(this),this.internal.vFS[t]=n,this},i.getFileFromVFS=function(t){return a.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(bt.API),
124/**
125       * @license
126       * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
127       * MIT License
128       */
129function(i){i.__bidiEngine__=i.prototype.__bidiEngine__=function(n){var o,r,s,c,u,h,v,g=a,b=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],R={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},C={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},D=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],x=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),M=!1,Y=0;this.__bidiEngine__={};var ee=function(I){var P=I.charCodeAt(),X=P>>8,V=C[X];return void 0!==V?g[256*V+(255&P)]:252===X||253===X?"AL":x.test(X)?"L":8===X?"R":"N"},de=function(I){for(var P,X=0;X<I.length;X++){if("L"===(P=ee(I.charAt(X))))return!1;if("R"===P)return!0}return!1},je=function(I,P,X,V){var he,pe,ge,se,we=P[V];switch(we){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":M=!1;break;case"N":case"AN":break;case"EN":M&&(we="AN");break;case"AL":M=!0,we="R";break;case"WS":case"BN":we="N";break;case"CS":V<1||V+1>=P.length||"EN"!==(he=X[V-1])&&"AN"!==he||"EN"!==(pe=P[V+1])&&"AN"!==pe?we="N":M&&(pe="AN"),we=pe===he?pe:"N";break;case"ES":we="EN"===(he=V>0?X[V-1]:"B")&&V+1<P.length&&"EN"===P[V+1]?"EN":"N";break;case"ET":if(V>0&&"EN"===X[V-1]){we="EN";break}if(M){we="N";break}for(ge=V+1,se=P.length;ge<se&&"ET"===P[ge];)ge++;we=ge<se&&"EN"===P[ge]?"EN":"N";break;case"NSM":if(s&&!c){for(se=P.length,ge=V+1;ge<se&&"NSM"===P[ge];)ge++;if(ge<se){var Fe=I[V];if(he=P[ge],(Fe>=1425&&Fe<=2303||64286===Fe)&&("R"===he||"AL"===he)){we="R";break}}}we=V<1||"B"===(he=P[V-1])?"N":X[V-1];break;case"B":M=!1,o=!0,we=Y;break;case"S":r=!0,we="N"}return we},ie=function(I,P,X){var V=I.split("");return X&&q(V,X,{hiLevel:Y}),V.reverse(),P&&P.reverse(),V.join("")},q=function(I,P,X){var V,he,pe,ge,se,we=-1,Fe=I.length,it=0,S=[],O=Y?f:b,G=[];for(M=!1,o=!1,r=!1,he=0;he<Fe;he++)G[he]=ee(I[he]);for(pe=0;pe<Fe;pe++){if(se=it,S[pe]=je(I,G,S,pe),V=240&(it=O[se][R[S[pe]]]),P[pe]=ge=O[it&=15][5],V>0)if(16===V){for(he=we;he<pe;he++)P[he]=1;we=-1}else we=-1;if(O[it][6])-1===we&&(we=pe);else if(we>-1){for(he=we;he<pe;he++)P[he]=ge;we=-1}"B"===G[pe]&&(P[pe]=0),X.hiLevel|=ge}r&&function(J,K,ce){for(var ue=0;ue<ce;ue++)if("S"===J[ue]){K[ue]=Y;for(var _e=ue-1;_e>=0&&"WS"===J[_e];_e--)K[_e]=Y}}(G,P,Fe)},ae=function(I,P,X,V,he){if(!(he.hiLevel<I)){if(1===I&&1===Y&&!o)return P.reverse(),void(X&&X.reverse());for(var pe,ge,se,we,Fe=P.length,it=0;it<Fe;){if(V[it]>=I){for(se=it+1;se<Fe&&V[se]>=I;)se++;for(we=it,ge=se-1;we<ge;we++,ge--)pe=P[we],P[we]=P[ge],P[ge]=pe,X&&(pe=X[we],X[we]=X[ge],X[ge]=pe);it=se}it++}}},ke=function(I,P,X){var V=I.split(""),he={hiLevel:Y};return X||(X=[]),q(V,X,he),function(pe,ge,se){if(0!==se.hiLevel&&v)for(var we,Fe=0;Fe<pe.length;Fe++)1===ge[Fe]&&(we=D.indexOf(pe[Fe]))>=0&&(pe[Fe]=D[we+1])}(V,X,he),ae(2,V,P,X,he),ae(1,V,P,X,he),V.join("")};return this.__bidiEngine__.doBidiReorder=function(I,P,X){if(function(he,pe){if(pe)for(var ge=0;ge<he.length;ge++)pe[ge]=ge;void 0===c&&(c=de(he)),void 0===h&&(h=de(he))}(I,P),s||!u||h)if(s&&u&&c^h)Y=c?1:0,I=ie(I,P,X);else if(!s&&u&&h)Y=c?1:0,I=ke(I,P,X),I=ie(I,P);else if(!s||c||u||h){if(s&&!u&&c^h)I=ie(I,P),c?(Y=0,I=ke(I,P,X)):(Y=1,I=ke(I,P,X),I=ie(I,P));else if(s&&c&&!u&&h)Y=1,I=ke(I,P,X),I=ie(I,P);else if(!s&&!u&&c^h){var V=v;c?(Y=1,I=ke(I,P,X),Y=0,v=!1,I=ke(I,P,X),v=V):(Y=0,I=ke(I,P,X),I=ie(I,P),Y=1,v=!1,I=ke(I,P,X),v=V,I=ie(I,P))}}else Y=0,I=ke(I,P,X);else Y=c?1:0,I=ke(I,P,X);return I},this.__bidiEngine__.setOptions=function(I){I&&(s=I.isInputVisual,u=I.isOutputVisual,c=I.isInputRtl,h=I.isOutputRtl,v=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new i.__bidiEngine__({isInputVisual:!0});i.API.events.push(["postProcessText",function(n){var o=n.text,r=n.options||{},s=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,t.setOptions(r),"[object Array]"===Object.prototype.toString.call(o)){var c=0;for(s=[],c=0;c<o.length;c+=1)"[object Array]"===Object.prototype.toString.call(o[c])?s.push([t.doBidiReorder(o[c][0]),o[c][1],o[c][2]]):s.push([t.doBidiReorder(o[c])]);n.text=s}else n.text=t.doBidiReorder(o);t.setOptions({isInputVisual:!0})}])}(bt),bt.API.TTFFont=function(){function i(a){var t;if(this.rawData=a,t=this.contents=new Uo(a),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new V0(this),this.registerTTF()}return i.open=function(a){return new i(a)},i.prototype.parse=function(){return this.directory=new S0(this.contents),this.head=new R0(this),this.name=new N0(this),this.cmap=new lu(this),this.toUnicode={},this.hhea=new T0(this),this.maxp=new M0(this),this.hmtx=new O0(this),this.post=new D0(this),this.os2=new I0(this),this.loca=new q0(this),this.glyf=new A0(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},i.prototype.registerTTF=function(){var t,n,o,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var s,c,u,h;for(h=[],s=0,c=(u=this.bbox).length;s<c;s++)h.push(Math.round(u[s]*this.scaleFactor));return h}.call(this),this.stemV=0,this.post.exists?(n=255&(o=this.post.italic_angle),32768&(t=o>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},i.prototype.characterToGlyph=function(a){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[a]:void 0)||0},i.prototype.widthOfGlyph=function(a){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(a).advance*t},i.prototype.widthOfString=function(a,t,n){var o,r,s,c;for(s=0,r=0,c=(a=""+a).length;0<=c?r<c:r>c;r=0<=c?++r:--r)o=a.charCodeAt(r),s+=this.widthOfGlyph(this.characterToGlyph(o))+n*(1e3/t)||0;return s*(t/1e3)},i.prototype.lineHeight=function(a,t){return null==t&&(t=!1),(this.ascender+(t?this.lineGap:0)-this.decender)/1e3*a},i}();var Hn,Uo=function(){function i(a){this.data=a??[],this.pos=0,this.length=this.data.length}return i.prototype.readByte=function(){return this.data[this.pos++]},i.prototype.writeByte=function(a){return this.data[this.pos++]=a},i.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},i.prototype.writeUInt32=function(a){return this.writeByte(a>>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},i.prototype.readInt32=function(){var a;return(a=this.readUInt32())>=2147483648?a-4294967296:a},i.prototype.writeInt32=function(a){return a<0&&(a+=4294967296),this.writeUInt32(a)},i.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},i.prototype.writeUInt16=function(a){return this.writeByte(a>>8&255),this.writeByte(255&a)},i.prototype.readInt16=function(){var a;return(a=this.readUInt16())>=32768?a-65536:a},i.prototype.writeInt16=function(a){return a<0&&(a+=65536),this.writeUInt16(a)},i.prototype.readString=function(a){var t,n;for(n=[],t=0;0<=a?t<a:t>a;t=0<=a?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},i.prototype.writeString=function(a){var t,n,o;for(o=[],t=0,n=a.length;0<=n?t<n:t>n;t=0<=n?++t:--t)o.push(this.writeByte(a.charCodeAt(t)));return o},i.prototype.readShort=function(){return this.readInt16()},i.prototype.writeShort=function(a){return this.writeInt16(a)},i.prototype.readLongLong=function(){var a,t,n,o,r,s,c,u;return a=this.readByte(),t=this.readByte(),n=this.readByte(),o=this.readByte(),r=this.readByte(),s=this.readByte(),c=this.readByte(),u=this.readByte(),128&a?-1*(72057594037927940*(255^a)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^o)+16777216*(255^r)+65536*(255^s)+256*(255^c)+(255^u)+1):72057594037927940*a+281474976710656*t+1099511627776*n+4294967296*o+16777216*r+65536*s+256*c+u},i.prototype.writeLongLong=function(a){var t,n;return t=Math.floor(a/4294967296),n=4294967295&a,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},i.prototype.readInt=function(){return this.readInt32()},i.prototype.writeInt=function(a){return this.writeInt32(a)},i.prototype.read=function(a){var t,n;for(t=[],n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)t.push(this.readByte());return t},i.prototype.write=function(a){var n,o,r;for(r=[],n=0,o=a.length;n<o;n++)r.push(this.writeByte(a[n]));return r},i}(),S0=function(){var i;function a(t){var n,o,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},o=0,r=this.tableCount;0<=r?o<r:o>r;o=0<=r?++o:--o)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return a.prototype.encode=function(t){var n,o,s,c,u,h,v,g,b,f,R,C;for(C in f=Object.keys(t).length,u=Math.log(2),g=16*Math.floor(Math.log(f)/u),s=Math.floor(g/u),v=16*f-g,(o=new Uo).writeInt(this.scalarType),o.writeShort(f),o.writeShort(g),o.writeShort(s),o.writeShort(v),h=o.pos+16*f,c=null,R=[],t)for(b=t[C],o.writeString(C),o.writeInt(i(b)),o.writeInt(h),o.writeInt(b.length),R=R.concat(b),"head"===C&&(c=h),h+=b.length;h%4;)R.push(0),h++;return o.write(R),n=2981146554-i(o.data),o.pos=c+8,o.writeUInt32(n),o.data},i=function(t){var n,o,r,s;for(t=cu.call(t);t.length%4;)t.push(0);for(r=new Uo(t),o=0,n=0,s=t.length;n<s;n=n+=4)o+=r.readUInt32();return 4294967295&o},a}(),E0={}.hasOwnProperty,fo=function(i,a){for(var t in a)E0.call(a,t)&&(i[t]=a[t]);function n(){this.constructor=i}return n.prototype=a.prototype,i.prototype=new n,i.__super__=a.prototype,i};Hn=function(){function i(a){var t;this.file=a,this.exists=!!(t=this.file.directory.tables[this.tag]),t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return i.prototype.parse=function(){},i.prototype.encode=function(){},i.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},i}();var R0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="head",a.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},a.prototype.encode=function(t){var n;return(n=new Uo).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},a}(),su=function(){function i(a,t){var n,o,r,s,c,u,h,v,g,b,f,R,C,D,x,M,Y;switch(this.platformID=a.readUInt16(),this.encodingID=a.readShort(),this.offset=t+a.readInt(),g=a.pos,a.pos=this.offset,this.format=a.readUInt16(),this.length=a.readUInt16(),this.language=a.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(u=0;u<256;++u)this.codeMap[u]=a.readByte();break;case 4:for(f=a.readUInt16(),b=f/2,a.pos+=6,r=function(){var ee,de;for(de=[],u=ee=0;0<=b?ee<b:ee>b;u=0<=b?++ee:--ee)de.push(a.readUInt16());return de}(),a.pos+=2,C=function(){var ee,de;for(de=[],u=ee=0;0<=b?ee<b:ee>b;u=0<=b?++ee:--ee)de.push(a.readUInt16());return de}(),h=function(){var ee,de;for(de=[],u=ee=0;0<=b?ee<b:ee>b;u=0<=b?++ee:--ee)de.push(a.readUInt16());return de}(),v=function(){var ee,de;for(de=[],u=ee=0;0<=b?ee<b:ee>b;u=0<=b?++ee:--ee)de.push(a.readUInt16());return de}(),o=(this.length-a.pos+this.offset)/2,c=function(){var ee,de;for(de=[],u=ee=0;0<=o?ee<o:ee>o;u=0<=o?++ee:--ee)de.push(a.readUInt16());return de}(),u=x=0,Y=r.length;x<Y;u=++x)for(D=r[u],n=M=R=C[u];R<=D?M<=D:M>=D;n=R<=D?++M:--M)0===v[u]?s=n+h[u]:0!==(s=c[v[u]/2+(n-R)-(b-u)]||0)&&(s+=h[u]),this.codeMap[n]=65535&s}a.pos=g}return i.encode=function(a,t){var n,o,r,s,c,u,h,v,g,b,f,R,C,D,x,M,Y,de,je,ie,q,ae,ke,I,P,X,V,he,pe,ge,se,we,Fe,it,S,O,G,J,K,ce,ue,_e,Le,Ae,tt;switch(V=new Uo,s=Object.keys(a).sort(function(Ze,wt){return Ze-wt}),t){case"macroman":for(C=0,D=function(){var Ze=[];for(R=0;R<256;++R)Ze.push(0);return Ze}(),M={0:0},r={},he=0,we=s.length;he<we;he++)null==M[_e=a[o=s[he]]]&&(M[_e]=++C),r[o]={old:a[o],new:M[a[o]]},D[o]=M[a[o]];return V.writeUInt16(1),V.writeUInt16(0),V.writeUInt32(12),V.writeUInt16(0),V.writeUInt16(262),V.writeUInt16(0),V.write(D),{charMap:r,subtable:V.data,maxGlyphID:C+1};case"unicode":for(P=[],g=[],Y=0,M={},n={},x=h=null,pe=0,Fe=s.length;pe<Fe;pe++)null==M[de=a[o=s[pe]]]&&(M[de]=++Y),n[o]={old:de,new:M[de]},c=M[de]-o,null!=x&&c===h||(x&&g.push(x),P.push(o),h=c),x=o;for(x&&g.push(x),g.push(65535),P.push(65535),ke=2*(ae=P.length),q=2*Math.pow(Math.log(ae)/Math.LN2,2),b=Math.log(q/2)/Math.LN2,ie=2*ae-q,u=[],je=[],f=[],R=ge=0,it=P.length;ge<it;R=++ge){if(v=g[R],65535===(I=P[R])){u.push(0),je.push(0);break}if(I-(X=n[I].new)>=32768)for(u.push(0),je.push(2*(f.length+ae-R)),o=se=I;I<=v?se<=v:se>=v;o=I<=v?++se:--se)f.push(n[o].new);else u.push(X-I),je.push(0)}for(V.writeUInt16(3),V.writeUInt16(1),V.writeUInt32(12),V.writeUInt16(4),V.writeUInt16(16+8*ae+2*f.length),V.writeUInt16(0),V.writeUInt16(ke),V.writeUInt16(q),V.writeUInt16(b),V.writeUInt16(ie),ce=0,S=g.length;ce<S;ce++)V.writeUInt16(o=g[ce]);for(V.writeUInt16(0),ue=0,O=P.length;ue<O;ue++)V.writeUInt16(o=P[ue]);for(Le=0,G=u.length;Le<G;Le++)V.writeUInt16(c=u[Le]);for(Ae=0,J=je.length;Ae<J;Ae++)V.writeUInt16(je[Ae]);for(tt=0,K=f.length;tt<K;tt++)V.writeUInt16(C=f[tt]);return{charMap:n,subtable:V.data,maxGlyphID:Y+1}}},i}(),lu=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="cmap",a.prototype.parse=function(t){var n,o,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)n=new su(t,this.offset),this.tables.push(n),n.isUnicode&&null==this.unicode&&(this.unicode=n);return!0},a.encode=function(t,n){var o,r;return null==n&&(n="macroman"),o=su.encode(t,n),(r=new Uo).writeUInt16(0),r.writeUInt16(1),o.table=r.data.concat(o.subtable),o},a}(),T0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="hhea",a.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},a}(),I0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="OS/2",a.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,o;for(o=[],n=0;n<10;++n)o.push(t.readByte());return o}(),this.charRange=function(){var n,o;for(o=[],n=0;n<4;++n)o.push(t.readInt());return o}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,o;for(o=[],n=0;n<2;n=++n)o.push(t.readInt());return o}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},a}(),D0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="post",a.prototype.parse=function(t){var n,o,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(o=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=o?s<o:s>o;s=0<=o?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)n=t.readByte(),r.push(this.names.push(t.readString(n)));return r;case 151552:return o=t.readUInt16(),this.offsets=t.read(o);case 262144:return this.map=function(){var c,u,h;for(h=[],s=c=0,u=this.file.maxp.numGlyphs;0<=u?c<u:c>u;s=0<=u?++c:--c)h.push(t.readUInt32());return h}.call(this)}},a}(),P0=function(i,a){this.raw=i,this.length=i.length,this.platformID=a.platformID,this.encodingID=a.encodingID,this.languageID=a.languageID},N0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="name",a.prototype.parse=function(t){var n,o,r,s,c,u,h,v,g,b,f;for(t.pos=this.offset,t.readShort(),n=t.readShort(),u=t.readShort(),o=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)o.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+u+t.readShort()});for(h={},s=g=0,b=o.length;g<b;s=++g)t.pos=(r=o[s]).offset,v=t.readString(r.length),c=new P0(v,r),null==h[f=r.nameID]&&(h[f]=[]),h[r.nameID].push(c);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},a}(),M0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="maxp",a.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},a}(),O0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="hmtx",a.prototype.parse=function(t){var n,o,r,c,u,h;for(t.pos=this.offset,this.metrics=[],n=0,u=this.file.hhea.numberOfMetrics;0<=u?n<u:n>u;n=0<=u?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var v,g;for(g=[],n=v=0;0<=r?v<r:v>r;n=0<=r?++v:--v)g.push(t.readInt16());return g}(),this.widths=function(){var v,g,b,f;for(f=[],v=0,g=(b=this.metrics).length;v<g;v++)f.push(b[v].advance);return f}.call(this),o=this.widths[this.widths.length-1],h=[],n=c=0;0<=r?c<r:c>r;n=0<=r?++c:--c)h.push(this.widths.push(o));return h},a.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},a}(),cu=[].slice,A0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="glyf",a.prototype.parse=function(){return this.cache={}},a.prototype.glyphFor=function(t){var n,o,r,s,c,u,h,v,g,b;return t in this.cache?this.cache[t]:(n=this.file.contents,o=(s=this.file.loca).indexOf(t),0===(r=s.lengthOf(t))?this.cache[t]=null:(n.pos=this.offset+o,c=(u=new Uo(n.read(r))).readShort(),v=u.readShort(),b=u.readShort(),h=u.readShort(),g=u.readShort(),this.cache[t]=-1===c?new L0(u,v,b,h,g):new G0(u,c,v,b,h,g),this.cache[t]))},a.prototype.encode=function(t,n,o){var r,s,c,u,h;for(c=[],s=[],u=0,h=n.length;u<h;u++)r=t[n[u]],s.push(c.length),r&&(c=c.concat(r.encode(o)));return s.push(c.length),{table:c,offsets:s}},a}(),G0=function(){function i(a,t,n,o,r,s){this.raw=a,this.numberOfContours=t,this.xMin=n,this.yMin=o,this.xMax=r,this.yMax=s,this.compound=!1}return i.prototype.encode=function(){return this.raw.data},i}(),L0=function(){function i(a,t,n,o,r){var s,c;for(this.raw=a,this.xMin=t,this.yMin=n,this.xMax=o,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;c=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&c;)s.pos+=1&c?4:2,128&c?s.pos+=8:64&c?s.pos+=4:8&c&&(s.pos+=2)}return i.prototype.encode=function(){var a,t,n;for(t=new Uo(cu.call(this.raw.data)),a=0,n=this.glyphIDs.length;a<n;++a)t.pos=this.glyphOffsets[a];return t.data},i}(),q0=function(i){function a(){return a.__super__.constructor.apply(this,arguments)}return fo(a,Hn),a.prototype.tag="loca",a.prototype.parse=function(t){var o;return t.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var r,s;for(s=[],o=0,r=this.length;o<r;o+=2)s.push(2*t.readUInt16());return s}.call(this):function(){var r,s;for(s=[],o=0,r=this.length;o<r;o+=4)s.push(t.readUInt32());return s}.call(this)},a.prototype.indexOf=function(t){return this.offsets[t]},a.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},a.prototype.encode=function(t,n){for(var o=new Uint32Array(this.offsets.length),r=0,s=0,c=0;c<o.length;++c)if(o[c]=r,s<n.length&&n[s]==c){++s,o[c]=r;var h=this.offsets[c+1]-this.offsets[c];h>0&&(r+=h)}for(var v=new Array(4*o.length),g=0;g<o.length;++g)v[4*g+3]=255&o[g],v[4*g+2]=(65280&o[g])>>8,v[4*g+1]=(16711680&o[g])>>16,v[4*g]=(4278190080&o[g])>>24;return v},a}(),V0=function(){function i(a){this.font=a,this.subset={},this.unicodes={},this.next=33}return i.prototype.generateCmap=function(){var a,t,o,r;for(t in o=this.font.cmap.tables[0].codeMap,a={},r=this.subset)a[t]=o[r[t]];return a},i.prototype.glyphsFor=function(a){var t,n,o,r,s,c,u;for(o={},s=0,c=a.length;s<c;s++)o[r=a[s]]=this.font.glyf.glyphFor(r);
129for(r in t=[],o)null!=(n=o[r])&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(r in u=this.glyphsFor(t))o[r]=n=u[r];return o},i.prototype.encode=function(a,t){var n,o,r,s,u,h,v,g,b,f,R,C,D,x;for(o in n=lu.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(a),f={0:0},x=n.charMap)f[(u=x[o]).old]=u.new;for(R in b=n.maxGlyphID,s)R in f||(f[R]=b++);return v=function(M){var Y,ee;for(Y in ee={},M)ee[M[Y]]=Y;return ee}(f),g=Object.keys(v).sort(function(M,Y){return M-Y}),C=function(){var M,Y,ee;for(ee=[],M=0,Y=g.length;M<Y;M++)ee.push(v[g[M]]);return ee}(),r=this.font.glyf.encode(s,C,f),h=this.font.loca.encode(r.offsets,C),D={cmap:this.font.cmap.raw(),glyf:r.table,loca:h,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(D["OS/2"]=this.font.os2.raw()),this.font.directory.encode(D)},i}();bt.API.PDFObject=function(){var i;function a(){}return i=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},a.convert=function(t){var o,r;if(Array.isArray(t))return"["+function(){var c,u,h;for(h=[],c=0,u=t.length;c<u;c++)h.push(a.convert(t[c]));return h}().join(" ")+"]";if("string"==typeof t)return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+i(t.getUTCFullYear(),4)+i(t.getUTCMonth(),2)+i(t.getUTCDate(),2)+i(t.getUTCHours(),2)+i(t.getUTCMinutes(),2)+i(t.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(t)){for(o in r=["<<"],t)r.push("/"+o+" "+a.convert(t[o]));return r.push(">>"),r.join("\n")}return""+t},a}();const B0=bt,$0=["visa_proof_show"],Y0=["showDocsModal"],J0=["myTable"],U0=()=>["jobseeker","my-jobs"],X0=()=>["jobseeker","timesheets"];function z0(i,a){1&i&&(e.j41(0,"span",25),e.EFF(1,"Pending"),e.k0s())}function H0(i,a){1&i&&(e.j41(0,"span",26),e.EFF(1,"Approved"),e.k0s())}function W0(i,a){1&i&&(e.j41(0,"span",27),e.EFF(1,"Rejected"),e.k0s())}function Z0(i,a){if(1&i){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.DNE(6,z0,2,0,"span",21)(7,H0,2,0,"span",22)(8,W0,2,0,"span",23),e.k0s(),e.j41(9,"td")(10,"a",24),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(2),s=e.sdS(16);return e.Njj(r.open(s,"medium",o,null==o?null:o.timesheet[0].ts_start_date,null==o?null:o.timesheet[0].ts_end_date))}),e.EFF(11),e.k0s()()()}if(2&i){const t=a.$implicit;e.R7$(2),e.SpI(" ",(null==t?null:t.display_date[0])+" - "+(null==t?null:t.display_date[1])," "),e.R7$(2),e.JRh(null==t?null:t.total_hours),e.R7$(2),e.Y8G("ngIf",2==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",1==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.status)),e.R7$(3),e.SpI(" ",null!=(null==t?null:t.timesheet[0].ts_start_date)&&null!=(null==t?null:t.timesheet[0].ts_end_date)?"View Document":"View Hours"," ")}}function Q0(i,a){if(1&i&&(e.j41(0,"div",14)(1,"div",15)(2,"div",16),e.EFF(3),e.nI1(4,"titlecase"),e.k0s()(),e.j41(5,"div",17)(6,"table",18)(7,"thead")(8,"tr")(9,"th"),e.EFF(10,"Week"),e.nrm(11,"span",19),e.k0s(),e.j41(12,"th"),e.EFF(13,"Total Hours"),e.nrm(14,"span",19),e.k0s(),e.j41(15,"th"),e.EFF(16,"Status"),e.nrm(17,"span",19),e.k0s(),e.j41(18,"th"),e.EFF(19,"View"),e.nrm(20,"span",19),e.k0s()()(),e.j41(21,"tbody"),e.DNE(22,Z0,12,6,"tr",20),e.k0s()()()()),2&i){const t=a.$implicit,n=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,3,null==t?null:t.project_name)," "),e.R7$(3),e.Y8G("dtOptions",n.dtOptionsMain),e.R7$(16),e.Y8G("ngForOf",null==t?null:t.project_data)}}function K0(i,a){1&i&&(e.j41(0,"section",28)(1,"div",29)(2,"div",30),e.nrm(3,"img",31),e.k0s(),e.j41(4,"h3",32),e.EFF(5,"Ooops!! Nothing Here..."),e.k0s(),e.j41(6,"h5",33),e.EFF(7," Looks like you haven\u2019t submit timesheet yet...!!! "),e.k0s()()())}function e2(i,a){if(1&i&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"slice"),e.k0s()()),2&i){const t=a.$implicit;e.R7$(2),e.JRh(e.i5U(3,3,null==t?null:t.date,"mediumDate")),e.R7$(3),e.JRh(e.i5U(6,6,null==t?null:t.date,"EEEE")),e.R7$(3),e.SpI("",e.brH(9,9,null==t?null:t.hours,0,5)," Hours")}}function t2(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",34)(1,"h3",35),e.EFF(2,"Timesheet Details"),e.k0s(),e.j41(3,"div",36)(4,"button",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.generatePdf())}),e.j41(5,"span",38),e.EFF(6," file_download "),e.k0s()(),e.j41(7,"button",39),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()()(),e.j41(8,"div",40)(9,"div",17)(10,"table",18,3)(12,"thead")(13,"tr")(14,"th"),e.EFF(15,"Date"),e.nrm(16,"span",19),e.k0s(),e.j41(17,"th"),e.EFF(18,"Day"),e.nrm(19,"span",19),e.k0s(),e.j41(20,"th"),e.EFF(21,"Hours"),e.nrm(22,"span",19),e.k0s()()(),e.j41(23,"tbody"),e.DNE(24,e2,10,13,"tr",20),e.k0s()()()(),e.j41(25,"div",41)(26,"h2",42)(27,"span",43),e.EFF(28," Total Time:"),e.k0s(),e.EFF(29),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(10),e.Y8G("dtOptions",t.dtOptionsModal),e.R7$(14),e.Y8G("ngForOf",null==t.timesheet_modal_data?null:t.timesheet_modal_data.timesheets),e.R7$(5),e.Lme(" ",t.totalHours[0]," hrs ",t.totalHours[1]," minutes ")}}function i2(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",34)(1,"h3",44),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",45),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.visa_proof_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",38),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",46),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",47)(8,"div",48),e.nrm(9,"iframe",49),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(9),e.Y8G("src",t.safeVisaProofSrc,e.f$h)}}function n2(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",34)(1,"h3",44),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",50),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.resume_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",38),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",46),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",47),e.nrm(8,"ngx-doc-viewer",51),e.k0s()}if(2&i){const t=e.XpG();e.R7$(8),e.Y8G("url",t.resume_src)}}let o2=(()=>{class i{modalService;activateRoute;globals;job;errorHandler;sanitizer;dtOptions={};dtOptionsMain={};dtOptionsModal={};timesheet_history_list=[];timesheet_modal_data=[];totalHours=[];resume_src="";safeResumeSrc;visa_proof_src="";safeVisaProofSrc;currentTimesheetData=null;visa_proof_show;showDocsModal;myTable;constructor(t,n,o,r,s,c){this.modalService=t,this.activateRoute=n,this.globals=o,this.job=r,this.errorHandler=s,this.sanitizer=c}open(t,n,o,r,s){if(console.log("start_date",r,s,o,o.timesheet[0].document),null!=r&&null!=s&&o.timesheet[0].document){const c=o.timesheet[0].document,u=c.lastIndexOf("."),h=u>-1?c.slice(u+1).toLowerCase():"",v=["doc","docx","pdf"];console.log("dd",h),-1!=v.indexOf(h)?(this.resume_src=c,this.safeResumeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(c),this.modalService.open(this.showDocsModal,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"})):(this.visa_proof_src=c,this.safeVisaProofSrc=this.sanitizer.bypassSecurityTrustResourceUrl(c),this.modalService.open(this.visa_proof_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}))}else this.totalHours=o.total_hours.split(":"),this.timesheet_modal_data.timesheets=o.timesheet,this.currentTimesheetData=o,this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n||"medium"}`})}ngOnInit(){this.dtOptions={info:!1,searching:!1,paging:!1},this.dtOptionsMain={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Week"},{title:"Total Hours"},{title:"Status"},{title:"View"}]},this.dtOptionsModal={info:!1,searching:!1,paging:!1,language:{emptyTable:"No Record Found"},columns:[{title:"Date"},{title:"Day"},{title:"Hours"}]},this.get_timesheet_history()}get_timesheet_history(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,t.job.get_timesheet_history({}).subscribe(n=>{if(t.globals.loading=!1,1==n.ResponseCode){let o=n.ResponseData.timesheet_history.data;console.log("list",n.ResponseData),t.timesheet_history_list=JSON.parse(JSON.stringify([]));let r=0;for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const c=o[s];for(const u in c){const h=c[u];
129let v="00:00";h.timesheet.forEach(g=>{v=null==g.ts_start_date&&null==g.ts_end_date?t.sum_of_hours(v,g.hours):g.hours.split(":")[0]+":"+g.hours.split(":")[1]}),h.total_hours=v}t.timesheet_history_list[r]=JSON.parse(JSON.stringify([])),t.timesheet_history_list[r].project_name=c[0].project_name,t.timesheet_history_list[r].project_data=c,r+=1}console.log("timesheet_history_list",t.timesheet_history_list)}},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}sum_of_hours(t,n){var o=0,r=0;let s=t.split(":"),c=n.split(":");return o=parseInt(s[0])+parseInt(c[0]),o+=(r=parseInt(s[1])+parseInt(c[1]))/60,r%=60,this.convert_into_two_digit(Math.floor(o))+":"+this.convert_into_two_digit(Math.floor(r))}convert_into_two_digit(t){return t>9?""+t:"0"+t}contentLoaded(){const t=document.getElementById("progressBar1");t&&(t.style.display="none")}download(t){if(!t)return void console.error("No file URL provided");const n=t.split("/").pop()||"document.pdf",o=document.createElement("a");o.href=t,o.download=n,o.target="_blank",o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}generatePdf(){if(!this.currentTimesheetData)return void console.error("No timesheet data available");const t=new B0;let n=15;const o=t.internal.pageSize.getWidth(),r=15,s=o-30,h=this.currentTimesheetData.timesheet?.[0]?.jobseeker_name||"N/A",v=this.currentTimesheetData.project_name||"N/A",g=this.currentTimesheetData.total_hours||"00:00",b=g.includes("Hours")?g:`${g} Hours`;let f="N/A";this.currentTimesheetData.timesheet?.[0]?.submitted_at&&(f=new Date(this.currentTimesheetData.timesheet[0].submitted_at).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})),t.setFontSize(10),t.setFont("helvetica","normal"),t.text("Jobseeker :",r,n),t.text(h,55,n),n+=7,t.text("Project Name :",r,n),t.text(v,55,n),n+=7,t.text("Submitted on :",r,n),t.text(f,55,n),n+=7,t.text("Total Hours :",r,n),t.text(b,55,n),n+=10,t.setLineWidth(.3),t.line(r,n,o-r,n),n+=8,t.setFontSize(8),t.setFont("helvetica","bold");const R=s/3,D=r+R,x=r+2*R;t.text("Date",15,n),t.text("Day",D,n),t.text("Hours",x,n),n+=5,t.setLineWidth(.2),t.line(r,n,o-r,n),n+=6,t.setFontSize(8),t.setFont("helvetica","normal"),(this.currentTimesheetData.timesheet||[]).forEach(ee=>{n>t.internal.pageSize.getHeight()-20&&(t.addPage(),n=15,t.setFontSize(8),t.setFont("helvetica","bold"),t.text("Date",15,n),t.text("Day",D,n),t.text("Hours",x,n),n+=5,t.setLineWidth(.2),t.line(r,n,o-r,n),n+=6,t.setFont("helvetica","normal"));const de=new Date(ee.date),je=de.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),ie=de.toLocaleDateString("en-US",{weekday:"long"}),q=ee.hours?ee.hours.substring(0,5):"00:00",ae=q.includes("Hours")?q:`${q} Hours`;t.text(je,15,n),t.text(ie,D,n),t.text(ae,x,n),n+=6});const Y=`timesheet_${h.replace(/\s+/g,"_")}_${this.currentTimesheetData.display_date?.[0]?.replace(/\s+/g,"_")||"timesheet"}.pdf`;t.save(Y)}static \u0275fac=function(n){return new(n||i)(e.rXU(Ue.Bq),e.rXU(Ve.nX),e.rXU(Qt.E),e.rXU(Yi.m),e.rXU(ji.c),e.rXU(Wi.up))};static \u0275cmp=e.VBU({type:i,selectors:[["app-timesheet-history"]],viewQuery:function(n,o){if(1&n&&(e.GBs($0,5),e.GBs(Y0,5),e.GBs(J0,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.visa_proof_show=r.first),e.mGM(r=e.lsd())&&(o.showDocsModal=r.first),e.mGM(r=e.lsd())&&(o.myTable=r.first)}},standalone:!0,features:[e.aNF],decls:21,vars:7,consts:[["timesheetHoursModal",""],["visa_proof_show",""],["showDocsModal",""],["myTable",""],[3,"loading"],[1,"main-content-wrap","timesheets-page",2,"height","100%"],["aria-label","breadcrumb",1,"sticky-breadcrumbs"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","javascript:void(0)",3,"countryRouterLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"timesheet-container",2,"height","calc(100% - 33px)"],["class","cr-card mb-3",4,"ngFor","ngForOf"],["class","cr-chat d-flex align-items-center justify-content-center","style","height: 100%",4,"ngIf"],[1,"cr-card","mb-3"],[1,"d-flex","justify-content-between","align-items-center","p-5"],[1,"h1","fw-600","mb-0"],[1,"table-responsive"],["datatable","",1,"row-border","hover","cr-data-table","w-100","radius-0",3,"dtOptions"],[1,"sorting-arrows"],[4,"ngFor","ngForOf"],["class","cr-status status-yellow d-inline-block",4,"ngIf"],["class","cr-status status-green d-inline-block",4,"ngIf"],["class","cr-status status-red d-inline-block",4,"ngIf"],["href","javascript:void(0)",1,"link","color-alice-blue",3,"click"],[1,"cr-status","status-yellow","d-inline-block"],[1,"cr-status","status-green","d-inline-block"],[1,"cr-status","status-red","d-inline-block"],[1,"cr-chat","d-flex","align-items-center","justify-content-center",2,"height","100%"],[1,"text-center"],[1,"cr-chat-noting-img","mb-4"],["src","../../../../assets/images/icons/empty.svg","alt","empty"],[1,"mb-3","fw-600"],[1,"mx-auto","pb-0","cr-chat-noting-description","fw-500","color-gray-2"],[1,"modal-header"],[1,"modal-title"],[1,"d-flex","justify-content-end"],["type","button","title","See Report",1,"cr-modal-head-button","mr-3",3,"click"],[1,"material-icons-outlined"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],["id","myTable",1,"modal-body","p-0"],[1,"modal-footer","p-5","d-flex","justify-content-center"],[1,"fw-700"],[1,"color-gray-2"],["id","document-preview-modal",1,"modal-title"],[1,"cr-modal-head-button","ml-auto","mr-3",3,"click"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","p-4","pt-0","overflow-auto"],[1,"prev-wrap"],["width","100%","height","100%",2,"height","100%",3,"src"],["href","javascript:void(0)",1,"cr-modal-head-button","ml-auto","mr-3",3,"click"],["viewer","google","googleCheckContentLoaded","true","googleCheckInterval","3000","googleMaxChecks","1",1,"doc-viewer",2,"width","100%","height","600px",3,"url"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",4),e.j41(1,"div",5)(2,"nav",6)(3,"ol",7)(4,"li",8)(5,"a",9),e.EFF(6,"Home"),e.k0s()(),e.j41(7,"li",8)(8,"a",9),e.EFF(9,"Client Details"),e.k0s()(),e.j41(10,"li",10),e.EFF(11,"History"),e.k0s()()(),e.j41(12,"div",11),e.DNE(13,Q0,23,5,"div",12)(14,K0,8,0,"section",13),e.k0s()(),e.DNE(15,t2,30,4,"ng-template",null,0,e.C5r)(17,i2,10,1,"ng-template",null,1,e.C5r)(19,n2,9,1,"ng-template",null,2,e.C5r)),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(5),e.Y8G("countryRouterLink",e.lJ4(5,U0)),e.R7$(3),e.Y8G("countryRouterLink",e.lJ4(6,X0)),e.R7$(5),e.Y8G("ngForOf",o.timesheet_history_list),e.R7$(),e.Y8G("ngIf",0==o.timesheet_history_list.length))},dependencies:[qe.MD,qe.Sq,qe.bT,qe.P9,qe.PV,qe.vh,Hi.EE,Hi.$j,Ni.H,Ni._,di.N,Ve.iI,Fn.l],styles:[".cr-chat-noting-img[_ngcontent-%COMP%]{width:76px;height:76px;margin:0 auto}.cr-chat-noting-img[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .cr-chat-noting-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.cr-chat-noting-description[_ngcontent-%COMP%]{max-width:390px}"]})}return i})();const r2=["videoElement"];function a2(i,a){if(1&i){const t=e.RV6();e.j41(0,"ul",21)(1,"li",22),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(4);return e.Njj(r.show_video(o.id,o))}
129),e.j41(2,"div",23),e.EFF(3),e.k0s(),e.j41(4,"div",24)(5,"div",25),e.EFF(6),e.k0s(),e.j41(7,"div",26),e.EFF(8),e.k0s()()()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(4);e.R7$(),e.AVh("vid-active",o.activeQuestion==t.id),e.R7$(2),e.SpI("",n+1,"."),e.R7$(3),e.SpI(" ",null==t?null:t.question_name," "),e.R7$(2),e.SpI(" Answer Length: ",null==t?null:t.video_time," minutes ")}}function s2(i,a){if(1&i&&e.DNE(0,a2,9,5,"ul",20),2&i){const t=e.XpG().$implicit;e.Y8G("ngForOf",t.value)}}function l2(i,a){if(1&i&&(e.j41(0,"div",10)(1,"div",11)(2,"h2",12)(3,"button",13)(4,"div",14)(5,"span",15),e.EFF(6,"keyboard_arrow_down"),e.k0s(),e.j41(7,"div",16)(8,"h6",17),e.EFF(9),e.k0s()()()()(),e.j41(10,"div",18)(11,"div",19),e.DNE(12,s2,1,1,"ng-template"),e.k0s()()()()),2&i){const t=a.$implicit,n=a.index;e.Y8G("closeOthers",!0)("activeIds","submitted-qn-"+(n+1)),e.R7$(),e.Y8G("id","submitted-qn-"+(n+1)),e.R7$(8),e.SpI(" ",t.key," ")}}function c2(i,a){if(1&i&&(e.j41(0,"div",8)(1,"div"),e.DNE(2,l2,13,4,"div",9),e.nI1(3,"keyvalue"),e.k0s()()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,t.allQueData))}}function d2(i,a){if(1&i&&(e.j41(0,"div",27)(1,"div",28)(2,"a",29),e.nrm(3,"img",30),e.k0s()(),e.EFF(4),e.j41(5,"video",31,0),e.nrm(7,"source",32),e.k0s()()),2&i){const t=e.XpG();e.R7$(4),e.SpI(" ",t.video_path," "),e.R7$(3),e.Y8G("src",t.video_path,e.B4B)}}let u2=(()=>{class i{route;jobseekerService;location;globals;jobseeker_id;completed_video;job_title;video_path;activeQuestion;allQueData=[];data;jobId;skillId=[];videoElement;constructor(t,n,o,r){this.route=t,this.jobseekerService=n,this.location=o,this.globals=r}ngOnInit(){this.route.queryParams.subscribe(t=>{t.skill_id&&(this.skillId=t.skill_id.split(",")),t.job_id&&(this.jobId=t.job_id)}),this.route.paramMap.subscribe(t=>{let n=+t.get("jobseeker_id");this.getAllClientVideo(n)})}getAllClientVideo(t){var n=this;return(0,et.A)(function*(){let o={jobseeker_id:t};0!=n.skillId.length&&(o.skill_id=n.skillId),n.jobId&&(o.job_id=n.jobId),n.globals.loading=!0,yield n.jobseekerService.getAllVideoDetails(o).subscribe(function(){var r=(0,et.A)(function*(s){n.globals.loading=!1,console.log(s.ResponseData),n.allQueData=s.ResponseData,Object.keys(n.allQueData),n.data=[];for(let u in n.allQueData)n.data.push(u);n.data.sort(),n.video_path=n.allQueData[n.data[0]][0].video,n.activeQuestion=n.allQueData[n.data[0]][0].id});return function(s){return r.apply(this,arguments)}}())})()}show_video(t,n){console.log(n.video),this.activeQuestion=t,this.video_path=n.video,this.videoElement.nativeElement.load()}back(){this.location.back()}static \u0275fac=function(n){return new(n||i)(e.rXU(Ve.nX),e.rXU(Yi.m),e.rXU(qe.aZ),e.rXU(Qt.E))};static \u0275cmp=e.VBU({type:i,selectors:[["app-js-review-video"]],viewQuery:function(n,o){if(1&n&&e.GBs(r2,5),2&n){let r;e.mGM(r=e.lsd())&&(o.videoElement=r.first)}},standalone:!0,features:[e.aNF],decls:9,vars:3,consts:[["videoElement",""],[3,"loading"],[1,"video-interview-page","main-content-wrap"],[1,"interview-grid"],[1,"qn-panel"],["class","qn-panel-body",4,"ngIf"],[1,"cr-btn","cr-btn-blue","mt-auto","d-inline-block","mr-auto",3,"click"],["class","cam-container",4,"ngIf"],[1,"qn-panel-body"],["ngbAccordion","","class","sub-qn-acc",3,"closeOthers","activeIds",4,"ngFor","ngForOf"],["ngbAccordion","",1,"sub-qn-acc",3,"closeOthers","activeIds"],["ngbAccordionItem","",3,"id"],["ngbAccordionHeader",""],["ngbAccordionButton","",1,"custom-acc-head","sub-qn-head","w-100"],[1,"d-flex","align-items-center"],[1,"custom-acc-arrow","material-icons-outlined","mr-2"],[1,"submitted-qn-title"],[1,"mb-0",2,"font-weight","bold","font-size","16px"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["class","sub-qn-list",4,"ngFor","ngForOf"],[1,"sub-qn-list"],[1,"h4",3,"click"],[1,"sub-qn-num"],[1,"sub-qn-wrap"],[1,"sub-qn"],[1,"color-gray-3","paragraph-md"],[1,"cam-container"],[1,"logo-wrapper","logo-wrapper-video"],[1,"f-logo"],["alt","Cloud Rek","src","../../../../assets/front-assets/images/logo.svg",1,"img-fluid"],["controls","","autoplay","",1,"cam-video",2,"border-radius","15px"],["type","video/mp4",3,"src"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",1),e.j41(1,"section",2)(2,"div",3)(3,"div",4),e.qex(4),e.DNE(
1295,c2,4,3,"div",5),e.j41(6,"button",6),e.bIt("click",function(){return o.back()}),e.EFF(7," Back "),e.k0s(),e.bVm(),e.k0s(),e.DNE(8,d2,8,2,"div",7),e.k0s()()),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(5),e.Y8G("ngIf",0!=(null==o.allQueData?null:o.allQueData.length)),e.R7$(3),e.Y8G("ngIf",o.video_path))},dependencies:[qe.MD,qe.Sq,qe.bT,qe.lG,di.N,Ue._f,Ue.WP,Ue.r6,Ue.tW,Ue.x7,Ue.UA,Ue.$R],styles:['.video-interview-page[_ngcontent-%COMP%]{height:100%}.interview-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:700px 1fr;grid-gap:15px;height:100%}.interview-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%;border-radius:10px}.qn-panel[_ngcontent-%COMP%]{background-color:var(--pure-white);padding:30px 25px;border:1px solid var(--cr-gray-tint-8);overflow-y:auto;display:flex;flex-direction:column}.qn-panel-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:40px}.qn-panel-body[_ngcontent-%COMP%]{overflow-y:auto}.qn-count[_ngcontent-%COMP%]{margin-bottom:20px}.skill-qn-options[_ngcontent-%COMP%]{margin:30px 0;display:flex;align-items:center}.skill-qn-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:15px}ul.skill-qn-list[_ngcontent-%COMP%]{margin-top:30px;position:relative}ul.skill-qn-list[_ngcontent-%COMP%]:after{content:"";width:100%;height:100%;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#ffffff80;z-index:1}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-weight:500;padding:5px 10px;-webkit-user-select:none;user-select:none}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}ul.skill-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid var(--cr-gray-tint-8)}.sub-qn-head[_ngcontent-%COMP%]{border:none;background:transparent;display:flex;align-items:center}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:flex-start;padding:8px;margin-bottom:0}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--cr-gray-tint-8);cursor:pointer}.sub-qn-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-8)}.sub-qn-list[_ngcontent-%COMP%]   li.vid-active[_ngcontent-%COMP%]{background-color:var(--cr-gray-tint-7)}.sub-qn-list[_ngcontent-%COMP%]   .sub-qn-wrap[_ngcontent-%COMP%]{margin-left:20px}.sub-qn[_ngcontent-%COMP%]{margin-bottom:5px}.cam-container[_ngcontent-%COMP%]{position:relative}.cam-blur[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background-color:#031d1f33;z-index:2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:inherit}.cam-placeholder[_ngcontent-%COMP%]{height:100%;border-radius:10px;overflow:hidden}.cam-placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.cam-options-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.cam-video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0;-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px)}.interview-countdown[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;font-size:12rem;transform:translate(-50%,-50%);color:var(--pure-white);width:20rem;height:20rem;display:flex;align-items:center;justify-content:center;background-color:#ffffff80;border-radius:50%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-weight:700;-webkit-user-select:none;user-select:none}.cam-actions[_ngcontent-%COMP%]{position:absolute;bottom:20px;width:100%;display:flex;justify-content:center;align-items:center;padding:0 20px}.remaining-time[_ngcontent-%COMP%]{width:80px;height:80px}.cam-action-btn[_ngcontent-%COMP%]{width:70px;height:70px;display:flex;align-items:center;justify-content:center;transition:.3s all;background-color:var(--pure-white);border:1px solid transparent;font-size:30px}.cam-action-btn[_ngcontent-%COMP%]:hover{background-color:#e3e3e3}.logo-wrapper-video[_ngcontent-%COMP%]{position:absolute;right:40px;top:30px;z-index:6}']})}return i})();const p2=["resume"],_2=["profile"],h2=["video"],f2=["visa_proof"],m2=["image_crop"],g2=["resume_show"],v2=["visa_proof_show"],b2=["showDocsModal"],y2=["tabset"],k2=["employer_not_exist"],w2=["resumeCheck"],x2=["visaProofCheck"],C2=["licenceCheck"],j2=["idProofCheck"],F2=["docVal"],S2=["deleteDocModal"],E2=["resumeUrl"],du=()=>["(regions)"],uu=i=>({country:i}),pu=(i,a)=>({types:i,componentRestrictions:a});function R2(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",35)(1,"input",36,6),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.profileUpdate(o))}),e.k0s(),e.j41(3,"div",37)(4,"img",38),e.bIt("error",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.globals.handleImageFailed(o))}),e.k0s()(),e.j41(5,"label",39)(6,"img",38),e.bIt("error",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.globals.handleImageFailed(o))}),e.k0s(),e.j41(7,"div",40)(8,"span",41),e.EFF(9," photo_camera "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(4),e.FS9("src",null==t.globals?null:t.globals.profile,e.B4B),e.R7$(2),e.FS9("src",null==t.globals?null:t.globals.profile,e.B4B)}}function T2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," First name is required. "),e.k0s())}function I2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,T2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.first_name.errors.required)}}function D2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Last name is required. "),e.k0s())}function P2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,D2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.last_name.errors.required)}}function N2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Phone is required. "),e.k0s())}function M2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Number is already in use. "),e.k0s())}function O2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,N2,4,0,"div",76)(2,M2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.phone.errors.required),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.phone.errors.isUnique)}}function A2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Current location is required. "),e.k0s())}function G2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,A2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.location.errors.required)}}function L2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Visa status is required. "),e.k0s())}function q2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,L2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.visa.errors.required)}}function V2(i,a){if(1&i&&(e.j41(0,"div",79),e.nrm(1,"ng-select",80),e.DNE(2,q2,2,1,"div",52),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("items",t.visa_status)("searchable",!1)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.visa.invalid&&(t.jobInfoGroup.controls.visa.dirty||t.jobInfoGroup.controls.visa.touched))}}function B2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Job title is required. "),e.k0s())}function $2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,B2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.job_title.errors.required)}}function Y2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Job location is required. "),e.k0s())}function J2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Y2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.address.errors.required)}}function U2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum 1 Skill is required. "),e.k0s())}function X2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,U2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.skills.errors.required)}}function z2(i,a){if(1&i&&(e.j41(0,"div",49)(1,"div",81),e.EFF(2),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.SpI(" External Rec: ",t.jobseeker_profile.external_recruiter_details.name," ")}}function H2(i,a){1&i&&(e.j41(0,"div",75)(1,"div",77)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Employer Type is required. "),e.k0s()())}function W2(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",90)(1,"div",91)(2,"input",92,9),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return r.change_is_vendor_info(),e.Njj(r.vendorChange(o))}),e.k0s(),e.j41(4,"label",93)(5,"h4"),e.EFF(6," Employer not Found? "),e.k0s()()()()}}function Z2(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor is required. "),e.k0s())}function Q2(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Z2,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor.errors.required)}}function K2(i,a){if(1&i&&(e.j41(0,"div",86)(1,"div",87),e.nrm(2,"ng-select",88,8),e.DNE(4,W2,7,0,"div",89),e.k0s(),e.DNE(5,Q2,2,1,"div",52),e.k0s()),2&i){const t=e.XpG(3);e.R7$(2),e.Y8G("items",t.allvendor)("clearable",!1),e.R7$(2),e.Y8G("ngIf",!t.isVendorDisabled),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor.invali
129d&&(t.jobInfoGroup.controls.vendor.dirty||t.jobInfoGroup.controls.vendor.touched))}}function ev(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor company name is required. "),e.k0s())}function tv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,ev,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_comp.errors.required)}}function iv(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor contact name is required. "),e.k0s())}function nv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,iv,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_name.errors.required)}}function ov(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor contact email is required. "),e.k0s())}function rv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,ov,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_email.errors.required)}}function av(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor contact phone is required. "),e.k0s())}function sv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,av,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_phone.errors.required)}}function lv(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Vendor fein is required. "),e.k0s())}function cv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,lv,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(5);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_fein.errors.required)}}function dv(i,a){if(1&i&&(e.j41(0,"div",49)(1,"div",50),e.nrm(2,"input",100),e.DNE(3,cv,2,1,"div",52),e.k0s()()),2&i){const t=e.XpG(4);e.R7$(3),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_fein.invalid&&(t.jobInfoGroup.controls.vendor_fein.dirty||t.jobInfoGroup.controls.vendor_fein.touched))}}function uv(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Designation is required. "),e.k0s())}function pv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,uv,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.designation.errors.required)}}function _v(i,a){if(1&i&&(e.j41(0,"div",94)(1,"div",49)(2,"div",50),e.nrm(3,"input",95),e.DNE(4,tv,2,1,"div",52),e.k0s()(),e.j41(5,"div",49)(6,"div",50),e.nrm(7,"input",96),e.DNE(8,nv,2,1,"div",52),e.k0s()(),e.j41(9,"div",49)(10,"div",50),e.nrm(11,"input",97),e.DNE(12,rv,2,1,"div",52),e.k0s()(),e.j41(13,"div",49)(14,"div",50),e.nrm(15,"input",98),e.DNE(16,sv,2,1,"div",52),e.k0s()(),e.DNE(17,dv,4,1,"div",66),e.j41(18,"div",49)(19,"div",50),e.nrm(20,"input",99),e.DNE(21,pv,2,1,"div",52),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_comp.invalid&&(t.jobInfoGroup.controls.vendor_comp.dirty||t.jobInfoGroup.controls.vendor_comp.touched)),e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_name.invalid&&(t.jobInfoGroup.controls.vendor_name.dirty||t.jobInfoGroup.controls.vendor_name.touched)),e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_email.invalid&&(t.jobInfoGroup.controls.vendor_email.dirty||t.jobInfoGroup.controls.vendor_email.touched)),e.R7$(3),e.Y8G("prefix","in"==t.country?"+91 ":"+1 "),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.vendor_phone.invalid&&(t.jobInfoGroup.controls.vendor_phone.dirty||t.jobInfoGroup.controls.vendor_phone.touched)),e.R7$(),e.Y8G("ngIf","us"==t.country),e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.designation.invalid&&(t.jobInfoGroup.controls.designation.dirty||t.jobInfoGroup.controls.designation.touched))}}function hv(i,a){if(1&i&&(e.j41(0,"div")(1,"h6",82),e.EFF(2,"Employer Information"),e.k0s(),e.j41(3,"div",83),e.DNE(4,K2,6,4,"div",84),e.k0s(),e.DNE(5,_v,22,7,"div",85),e.k0s()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngIf",!t.showVendorInfo),e.R7$(),e.Y8G("ngIf",t.showVendorInfo)}}function fv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",42)(1,"div",43)(2,"h1",44),e.EFF(3,"My Account"),e.k0s()(),e.j41(4,"form",45)(5,"div",46)(6,"div",47)(7,"h6",48),e.EFF(8,"Personal Information"),e.k0s()(),e.j41(9,"div",49)(10,"div",50)(11,"input",51),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.charactersOnly(o))}),e.k0s()(),e.DNE(12,I2,2,1,"div",52),e.k0s(),e.j41(13,"div",49)(14,"div",50)(15,"input",53),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.charactersOnly(o))}),e.k0s()(),e.DNE(16,P2,2,1,"div",52),e.k0s(),e.j41(17,"div",49)(18,"div",50),e.nrm(19,"input",54),e.k0s()(),e.j41(20,"div",49)(21,"div",55)(22,"div",56),e.nrm(23,"ng-select",57),e.k0s(),e.j41(24,"div",58)(25,"input",59,7),e.bIt("focusout",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.checkUniqPhone(o,r.jobInfoGroup))}),e.k0s()()(),e.DNE(27,O2,3,2,"div",52),e.k0s(),e.j41(28,"div",49)(29,"div",50)(30,"input",60),e.bIt("onAddressChange",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.addAddressChange(o))})("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(31,G2,2,1,"div",52),e.k0s()(),e.j41(32,"div",49),e.DNE(33,V2,3,4,"div",61),e.k0s()(),e.j41(34,"div",62)(35,"div",47)(36,"h6",48),e.EFF(37,"Job Information"),e.k0s()(),e.j41(38,"div",49)(39,"div",50)(40,"input",63),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(41,$2,2,1,"div",52),e.k0s()(),e.j41(42,"div",49)(43,"div",50)(44,"input",64),e.bIt("onAddressChange",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.locationAddressChange(o))})("keypress",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(45,J2,2,1,"div",52),e.k0s()(),e.j41(46,"div",49)(47,"div",50),e.nrm(48,"ng-select",65),e.DNE(49,X2,2,1,"div",52),e.k0s()(),e.DNE(50,z2,3,1,"div",66),e.k0s(),e.j41(51,"div",67)(52,"div",68)(53,"input",69),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return o.showVendor=!1,e.Njj(o.change_is_vendor_info())}),e.k0s(),e.j41(54,"label",70),e.EFF(55,"Looking for new employer?"),e.k0s()(),e.j41(56,"div",68)(57,"input",71),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return o.showVendor=!0,o.change_is_vendor_info(),e.Njj(o.reset_employer())}),e.k0s(),e.j41(58,"label",72),e.EFF(59," Have an employer?"),e.k0s()(),e.DNE(60,H2,5,0,"div",52),e.k0s(),e.DNE(61,hv,6,2,"div",73),e.j41(62,"button",74),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.update_job_info())}),e.EFF(63," Next "),e.k0s()()()}if(2&i){const t=e.XpG();e.R7$(4),e.Y8G("formGroup",t.jobInfoGroup),e.R7$(8),e.Y8G("ngIf",t.jobInfoGroup.controls.first_name.invali
129d&&(t.jobInfoGroup.controls.first_name.dirty||t.jobInfoGroup.controls.first_name.touched)),e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.last_name.invalid&&(t.jobInfoGroup.controls.last_name.dirty||t.jobInfoGroup.controls.last_name.touched)),e.R7$(3),e.Y8G("readonly",!0),e.R7$(4),e.FS9("placeholder","in"==t.country?"+91":"+1"),e.Y8G("items",t.phone_code_data)("hideSelected",!0)("clearable",!1)("searchable",!1),e.R7$(4),e.Y8G("ngIf",t.jobInfoGroup.controls.phone.invalid&&(t.jobInfoGroup.controls.phone.dirty||t.jobInfoGroup.controls.phone.touched)),e.R7$(3),e.Y8G("options",e.l_i(30,pu,e.lJ4(27,du),e.eq3(28,uu,t.country))),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.location.invalid&&(t.jobInfoGroup.controls.location.dirty||t.jobInfoGroup.controls.location.touched)),e.R7$(2),e.Y8G("ngIf","in"!==t.country),e.R7$(8),e.Y8G("ngIf",t.jobInfoGroup.controls.job_title.invalid&&(t.jobInfoGroup.controls.job_title.dirty||t.jobInfoGroup.controls.job_title.touched)),e.R7$(3),e.Y8G("options",e.l_i(36,pu,e.lJ4(33,du),e.eq3(34,uu,t.country))),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.address.invalid&&(t.jobInfoGroup.controls.address.dirty||t.jobInfoGroup.controls.address.touched)),e.R7$(3),e.Y8G("searchable",!0)("clearable",!1)("items",t.allskills)("multiple",!0)("addTag",!0),e.R7$(),e.Y8G("ngIf",t.jobInfoGroup.controls.skills.invalid&&(t.jobInfoGroup.controls.skills.dirty||t.jobInfoGroup.controls.skills.touched)),e.R7$(),e.Y8G("ngIf",t.isShowExtRecSelect),e.R7$(3),e.BMQ("disabled",t.isVendorDisabled?"":null),e.R7$(7),e.Y8G("ngIf",t.employeementTypeError),e.R7$(),e.Y8G("ngIf",t.showVendor),e.R7$(),e.Y8G("disabled",!t.isEnableNext)}}function mv(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Overview is required. "),e.k0s())}function gv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,mv,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.overviewGroup.controls.overview.errors.required)}}function vv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",42)(1,"div",43)(2,"h1",44),e.EFF(3,"Overview"),e.k0s()(),e.j41(4,"form")(5,"div",101),e.nrm(6,"textarea",102),e.DNE(7,gv,2,1,"div",52),e.k0s(),e.j41(8,"div",103)(9,"button",104),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.backLocation())}),e.EFF(10," Back "),e.k0s(),e.j41(11,"button",105),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.update_overview())}),e.EFF(12," Next "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(5),e.Y8G("formGroup",t.overviewGroup),e.R7$(2),e.Y8G("ngIf",t.overviewGroup.controls.overview.invalid&&(t.overviewGroup.controls.overview.dirty||t.overviewGroup.controls.overview.touched))}}function bv(i,a){1&i&&e.nrm(0,"img",131)}function yv(i,a){1&i&&e.nrm(0,"img",132)}function kv(i,a){1&i&&e.nrm(0,"img",133)}function wv(i,a){1&i&&e.nrm(0,"img",134)}function xv(i,a){1&i&&e.nrm(0,"img",135)}function Cv(i,a){1&i&&e.nrm(0,"img",136)}function jv(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Link "),e.k0s())}function Fv(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Resume "),e.k0s())}function Sv(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Visa Proof "),e.k0s())}function Ev(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Driving Licence "),e.k0s())}function Rv(i,a){1&i&&(e.j41(0,"span"),e.EFF(1," Id Proof "),e.k0s())}function Tv(i,a){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.document_name," ")}}function Iv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",117),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.openPdfViwer("view_doc",r,o))}),e.j41(1,"div",118),e.DNE(2,bv,1,0,"img",119)(3,yv,1,0,"img",120)(4,kv,1,0,"img",121)(5,wv,1,0,"img",122)(6,xv,1,0,"img",123)(7,Cv,1,0,"img",124),e.k0s(),e.j41(8,"div",125)(9,"div",126)(10,"h6",127),e.DNE(11,jv,2,0,"span",73)(12,Fv,2,0,"span",73)(13,Sv,2,0,"span",73)(14,Ev,2,0,"span",73)(15,Rv,2,0,"span",73)(16,Tv,2,1,"span",73),e.k0s(),e.j41(17,"p",128),e.EFF(18),e.k0s()(),e.j41(19,"button",129)(20,"span",130),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.document_clicked("delete_doc",r,o))}),e.EFF(21," delete "),e.k0s()()()()}if(2&i){const t=a.$implicit;e.R7$(2),e.Y8G("ngIf","svg"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","docx"==(null==t?null:t.extension)||"doc"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","jpg"==(null==t?null:t.extension)||"jpeg"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","png"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","pdf"==(null==t?null:t.extension)),e.R7$(),e.Y8G("ngIf","Video url"==(null==t?null:t.display_name)||1==(null==t?null:t.document_type)),e.R7$(4),e.Y8G("ngIf",1==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",4==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",5==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf",6==(null==t?null:t.document_type)),e.R7$(2),e.JRh(null==t?null:t.file_size)}}function Dv(i,a){if(1&i&&(e.j41(0,"div",62)(1,"div",86)(2,"div",115),e.DNE(3,Iv,22,13,"div",116),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(3),e.Y8G("ngForOf",t.preview_documents)}}function Pv(i,a){1&i&&(e.j41(0,"div",137),e.EFF(1,"Note:- Resume is mandatory for jobseeker profile completion."),e.k0s())}function Nv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",140)(3,"div",141)(4,"input",142),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(5,"label",143),e.EFF(6," + Upload Resume "),e.k0s()()()()()}}function Mv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",140)(3,"div",141)(4,"input",144),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(5,"label",145),e.EFF(6," + Upload Visa proof "),e.k0s()()()()()}}function Ov(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",140)(3,"div",141)(4,"input",146),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(5,"label",147),e.EFF(6," + Upload Driving-licence "),e.k0s()()()()()}}function Av(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",140)(3,"div",141)(4,"input",148),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(5,"label",149),e.EFF(6," + Upload ID Proof "),e.k0s()()()()()}}function Gv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",140)(3,"div",150),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.isShowHideOtherDoc=!0)}),e.j41(4,"label",151),e.EFF(5," + Upload Other Document "),e.k0s()()()()()}}function Lv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",138)(1,"div",139)(2,"div",152)(3,"div",50)(4,"input",153,12),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.other_document_name,o)||(r.other_document_name=o),e.Njj(o)}
129),e.k0s()()(),e.j41(6,"div",140)(7,"div",141)(8,"input",154),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onOtherDocumentChange(o))}),e.k0s(),e.j41(9,"label",155),e.EFF(10," + Upload Other Document "),e.k0s()()()()()}if(2&i){const t=e.XpG(2);e.R7$(4),e.R50("ngModel",t.other_document_name)}}function qv(i,a){1&i&&(e.j41(0,"div",137),e.EFF(1,"Note:- Only allow git hub, git lab, linkedin, etc. urls."),e.k0s())}function Vv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",94)(1,"div",156),e.nrm(2,"input",157,13),e.k0s(),e.j41(4,"div",140)(5,"button",158),e.bIt("click",function(){e.eBV(t);const o=e.sdS(3),r=e.XpG(2);return e.Njj(r.add_document_url(o.value))}),e.EFF(6," Submit "),e.k0s()()()}}function Bv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",42)(1,"div",43)(2,"h1",44),e.EFF(3,"Documents"),e.k0s()(),e.j41(4,"form")(5,"div",94)(6,"div",106),e.DNE(7,Dv,4,1,"div",107),e.j41(8,"div",94)(9,"div",47)(10,"div",108)(11,"input",109,10),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.isShowUrlDoc,o)||(r.isShowUrlDoc=o),e.Njj(o)}),e.k0s(),e.j41(13,"label",110),e.EFF(14," Documents "),e.k0s()()(),e.DNE(15,Pv,2,0,"div",111)(16,Nv,7,0,"div",112)(17,Mv,7,0,"div",112)(18,Ov,7,0,"div",112)(19,Av,7,0,"div",112)(20,Gv,6,0,"div",112)(21,Lv,11,1,"div",112),e.k0s(),e.j41(22,"div",94)(23,"div",47)(24,"div",108)(25,"input",113,11),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.isShowUrlDoc,o)||(r.isShowUrlDoc=o),e.Njj(o)}),e.k0s(),e.j41(27,"label",114),e.EFF(28," Url "),e.k0s()()(),e.DNE(29,qv,2,0,"div",111)(30,Vv,7,0,"div",85),e.k0s()()(),e.j41(31,"div",103)(32,"button",104),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.backLocation())}),e.EFF(33," Back "),e.k0s(),e.j41(34,"button",105),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.submitDocument())}),e.EFF(35," Next "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(7),e.Y8G("ngIf",0!=t.preview_documents.length),e.R7$(4),e.Y8G("value",1),e.R50("ngModel",t.isShowUrlDoc),e.R7$(4),e.Y8G("ngIf",1==t.isShowUrlDoc),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc&&"in"!==t.country),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc&&!t.isShowHideOtherDoc),e.R7$(),e.Y8G("ngIf",1==t.isShowUrlDoc&&t.isShowHideOtherDoc),e.R7$(4),e.Y8G("value",0),e.R50("ngModel",t.isShowUrlDoc),e.R7$(4),e.Y8G("ngIf",0==t.isShowUrlDoc),e.R7$(),e.Y8G("ngIf",0==t.isShowUrlDoc)}}function $v(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required "),e.k0s())}function Yv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,$v,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.f_min.errors.required)}}function Jv(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required "),e.k0s())}function Uv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Jv,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.f_max.errors.required)}}function Xv(i,a){1&i&&(e.j41(0,"div",75)(1,"div",193)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function zv(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",83)(1,"div",188)(2,"div",94)(3,"div",188)(4,"div",50)(5,"input",189),e.bIt("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}),e.k0s()(),e.DNE(6,Yv,2,1,"div",52),e.k0s(),e.j41(7,"div",188)(8,"div",50)(9,"input",190),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkMinRate(o))})("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}),e.k0s()(),e.DNE(10,Uv,2,1,"div",52),e.k0s(),e.DNE(11,Xv,5,0,"div",52),e.k0s()()()}if(2&i){const t=e.XpG(3);e.R7$(5),e.Y8G("placeholder","Min. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.f_min.invalid&&(t.avaliabilityGroup.controls.f_min.dirty||t.avaliabilityGroup.controls.f_min.touched)),e.R7$(3),e.Y8G("placeholder","Max. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.f_max.invalid&&(t.avaliabilityGroup.controls.f_max.dirty||t.avaliabilityGroup.controls.f_max.touched)),e.R7$(),e.Y8G("ngIf",t.setMaxValueErr)}}function Hv(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required "),e.k0s())}function Wv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Hv,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.c_min.errors.required)}}function Zv(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required "),e.k0s())}function Qv(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Zv,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.c_max.errors.required)}}function Kv(i,a){1&i&&(e.j41(0,"div",75)(1,"div",193)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function eb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",83)(1,"div",188)(2,"div",94)(3,"div",188)(4,"div",50)(5,"input",194),e.bIt("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkContractMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}),e.k0s()(),e.DNE(6,Wv,2,1,"div",52),e.k0s(),e.j41(7,"div",188)(8,"div",50)(9,"input",195),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkContractMinRate(o))})("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}),e.k0s()(),e.DNE(10,Qv,2,1,"div",52),e.k0s(),e.DNE(11,Kv,5,0,"div",52),e.k0s()()()}if(2&i){const t=e.XpG(3);e.R7$(5),e.Y8G("placeholder","Min. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.c_min.invalid&&(t.avaliabilityGroup.controls.c_min.dirty||t.avaliabilityGroup.controls.c_min.touched)),e.R7$(3),e.Y8G("placeholder","Max. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.c_max.invalid&&(t.avaliabilityGroup.controls.c_max.dirty||t.avaliabilityGroup.controls.c_max.touched)),e.R7$(),e.Y8G("ngIf",t.setContractMaxValueErr)}}function tb(i,a){1&i&&(e.j41(0,"div",77)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Minimum rate is required "),e.k0s())}function ib(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,tb,4,0,"div",76),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.p_min.errors.required)}}function nb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Maximum rate is required "),e.k0s())}function ob(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,nb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.c_max.errors.required)}}function rb(i,a){1&i&&(e.j41(0,"div",75)(1,"div",193)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," Minimum rate must be less than maximum rate "),e.k0s()())}function ab(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",83)(1,"div",188)(2,"div",94)(3,"div",188)(4,"div",50)(5,"input",196),e.bIt("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkParttimeMinRateFirst(o))})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}),e.k0s()(),e.DNE(6,ib,2,1,"div",52),e.k0s(),e.j41(7,"div",188)(8,"div",50)(9,"input",197),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.checkParttimeMinRate(o))})("change",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.check_required_rates())})("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.numberOnly(o))}
129),e.k0s()(),e.DNE(10,ob,2,1,"div",52),e.k0s(),e.DNE(11,rb,5,0,"div",52),e.k0s()()()}if(2&i){const t=e.XpG(3);e.R7$(5),e.Y8G("placeholder","Min. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.p_min.invalid&&(t.avaliabilityGroup.controls.p_min.dirty||t.avaliabilityGroup.controls.p_min.touched)),e.R7$(3),e.Y8G("placeholder","Max. Salary ("+t.currencySymbol+")"),e.R7$(),e.Y8G("ngIf",t.avaliabilityGroup.controls.p_max.invalid&&(t.avaliabilityGroup.controls.p_max.dirty||t.avaliabilityGroup.controls.p_max.touched)),e.R7$(),e.Y8G("ngIf",t.setParttimeMaxValueErr)}}function sb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",176)(1,"div",177)(2,"div",178)(3,"input",179),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(4,"label",180),e.EFF(5," Full Time "),e.k0s()()(),e.DNE(6,zv,12,5,"div",181),e.j41(7,"div",177)(8,"div",178)(9,"input",182),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(10,"label",183),e.EFF(11," Contract "),e.k0s()()(),e.DNE(12,eb,12,5,"div",181),e.j41(13,"div",177)(14,"div",178)(15,"input",184),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(16,"label",185),e.EFF(17," Part Time "),e.k0s()()(),e.DNE(18,ab,12,5,"div",181),e.j41(19,"div",177)(20,"div",178)(21,"input",186),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.is_avaliable_change(o))}),e.k0s(),e.j41(22,"label",187),e.EFF(23," Remote "),e.k0s()()()()}if(2&i){const t=e.XpG(2);e.R7$(3),e.Y8G("checked","1"==t.Fulltime),e.R7$(3),e.Y8G("ngIf",t.rates_h_s_arry.f_m_x),e.R7$(3),e.Y8G("checked","5"==t.Constract),e.R7$(3),e.Y8G("ngIf",t.rates_h_s_arry.c_m_x),e.R7$(3),e.Y8G("checked","2"==t.Parttime),e.R7$(3),e.Y8G("ngIf",t.rates_h_s_arry.p_m_x),e.R7$(3),e.Y8G("checked","3"==t.Remote)}}function lb(i,a){1&i&&(e.j41(0,"div",198)(1,"div",178),e.nrm(2,"input",199),e.j41(3,"label",180),e.EFF(4," Will Move For Right Project "),e.k0s()()())}function cb(i,a){1&i&&(e.j41(0,"div",75)(1,"div",192)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," City is required "),e.k0s()())}function db(i,a){if(1&i&&(e.j41(0,"div",200),e.nrm(1,"ng-select",201,14),e.DNE(3,cb,5,0,"div",52),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("items",t.allcity)("virtualScroll",!0)("multiple",!0)("hideSelected",!0),e.R7$(2),e.Y8G("ngIf",null==t.avaliabilityGroup.controls.city.errors?null:t.avaliabilityGroup.controls.city.errors.required)}}function ub(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",42)(1,"div",43)(2,"h1",44),e.EFF(3,"Availability"),e.k0s()(),e.j41(4,"form",45)(5,"div",159)(6,"div",160)(7,"input",161),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onAvailabilityChange(o))}),e.k0s(),e.j41(8,"label",162),e.EFF(9,"Available "),e.k0s()(),e.DNE(10,sb,24,7,"div",163),e.k0s(),e.j41(11,"div",159)(12,"div",160)(13,"input",164),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onAvailabilityChange(o))}),e.k0s(),e.j41(14,"label",165),e.EFF(15," Not Available "),e.k0s()()(),e.j41(16,"div",159)(17,"div",160)(18,"input",166),e.bIt("change",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.onAvailabilityChange(o))}),e.k0s(),e.j41(19,"label",167),e.EFF(20," In Project but looking for better opportunity "),e.k0s()(),e.DNE(21,lb,5,0,"div",168),e.k0s(),e.j41(22,"div",159)(23,"div",169),e.nrm(24,"input",170),e.j41(25,"label",171),e.EFF(26," Willing to travel "),e.k0s()(),e.j41(27,"div",94),e.DNE(28,db,4,5,"div",172),e.k0s()(),e.j41(29,"div",173)(30,"button",174),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.backLocation())}),e.EFF(31," Back "),e.k0s(),e.j41(32,"button",175),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.update_avaliability())}),e.EFF(33," Next "),e.k0s()()()()}if(2&i){const t=e.XpG();e.R7$(4),e.Y8G("formGroup",t.avaliabilityGroup),e.R7$(6),e.Y8G("ngIf",t.is_avaliable),e.R7$(11),e.Y8G("ngIf",3==t.avaliabilityGroup.value.avaliability),e.R7$(7),e.Y8G("ngIf",1==t.avaliabilityGroup.value.travel)}}function pb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Education Institute is required "),e.k0s())}function _b(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,pb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.school.errors.required)}}function hb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Academic Degree is required "),e.k0s())}function fb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,hb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.degree.errors.required)}}function mb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Area of study is required "),e.k0s())}function gb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,mb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.area_of_study.errors.required)}}function vb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Start Year is required "),e.k0s())}function bb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,vb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_from.errors.required)}}function yb(i,a){1&i&&(e.j41(0,"div",75)(1,"div",192)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," End year should be greater than start year "),e.k0s()())}function kb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," End Year is required "),e.k0s())}function wb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,kb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_to.errors.required)}}function xb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"div",50)(3,"input",213),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(4,_b,2,1,"div",52),e.k0s()(),e.j41(5,"div",49)(6,"div",50)(7,"input",214),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(8,fb,2,1,"div",52),e.k0s()(),e.j41(9,"div",49)(10,"div",50)(11,"input",215),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(12,gb,2,1,"div",52),e.k0s()(),e.j41(13,"div",49)(14,"div",50)(15,"ng-select",216),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.changeToDate(o))}),e.k0s(),e.DNE(16,bb,2,1,"div",52)(17,yb,5,0,"div",52),e.k0s()(),e.j41(18,"div",49)(19,"div",50)(20,"ng-select",217),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.changeDate(o))}),e.k0s(),e.DNE(21,wb,2,1,"div",52),e.k0s()()()}if(2&i){const t=e.XpG(3);e.Y8G("formGroup",t.addEducation),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.school.invalid&&(t.addEducation.controls.school.dirty||t.addEducation.controls.school.touched)),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.degree.invali
129d&&(t.addEducation.controls.degree.dirty||t.addEducation.controls.degree.touched)),e.R7$(4),e.Y8G("ngIf",t.addEducation.controls.area_of_study.invalid&&(t.addEducation.controls.area_of_study.dirty||t.addEducation.controls.area_of_study.touched)),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_from.invalid&&(t.addEducation.controls.date_from.dirty||t.addEducation.controls.date_from.touched)),e.R7$(),e.Y8G("ngIf",t.showEducationYearErr),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.addEducation.controls.date_to.invalid&&(t.addEducation.controls.date_to.dirty||t.addEducation.controls.date_to.touched))}}function Cb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Education Institute is required "),e.k0s())}function jb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Cb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editEducation.controls.school.errors.required)}}function Fb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Academic Degree is required "),e.k0s())}function Sb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Fb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editEducation.controls.degree.errors.required)}}function Eb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Area of study is required "),e.k0s())}function Rb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Eb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editEducation.controls.area_of_study.errors.required)}}function Tb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," Start year is required "),e.k0s())}function Ib(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Tb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editEducation.controls.date_from.errors.required)}}function Db(i,a){1&i&&(e.j41(0,"div",75)(1,"div",192)(2,"i",78),e.EFF(3,"warning"),e.k0s(),e.EFF(4," End year is greater than Start year "),e.k0s()())}function Pb(i,a){1&i&&(e.j41(0,"div",192)(1,"i",78),e.EFF(2,"warning"),e.k0s(),e.EFF(3," End year is required "),e.k0s())}function Nb(i,a){if(1&i&&(e.j41(0,"div",75),e.DNE(1,Pb,4,0,"div",191),e.k0s()),2&i){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.editEducation.controls.date_to.errors.required)}}function Mb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"div",50)(3,"input",213),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(4,jb,2,1,"div",52),e.k0s()(),e.j41(5,"div",49)(6,"div",50)(7,"input",214),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(8,Sb,2,1,"div",52),e.k0s()(),e.j41(9,"div",49)(10,"div",50)(11,"input",215),e.bIt("keypress",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.alphaNumberOnly(o))}),e.k0s(),e.DNE(12,Rb,2,1,"div",52),e.k0s()(),e.j41(13,"div",49)(14,"div",50)(15,"ng-select",218),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.changeToDate(o))}),e.k0s(),e.DNE(16,Ib,2,1,"div",52)(17,Db,5,0,"div",52),e.k0s()(),e.j41(18,"div",49)(19,"div",50)(20,"ng-select",219),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.changeDate(o))}),e.k0s(),e.DNE(21,Nb,2,1,"div",52),e.k0s()(),e.nrm(22,"input",220),e.k0s()}if(2&i){const t=e.XpG(3);e.Y8G("formGroup",t.editEducation),e.R7$(4),e.Y8G("ngIf",t.editEducation.controls.school.invalid&&(t.editEducation.controls.school.dirty||t.editEducation.controls.school.touched)),e.R7$(4),e.Y8G("ngIf",t.editEducation.controls.degree.invali
129d&&(t.editEducation.controls.degree.dirty||t.editEducation.controls.degree.touched)),e.R7$(4),e.Y8G("ngIf",t.editEducation.controls.area_of_study.invalid&&(t.editEducation.controls.area_of_study.dirty||t.editEducation.controls.area_of_study.touched)),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.editEducation.controls.date_from.invalid&&(t.editEducation.controls.date_from.dirty||t.editEducation.controls.date_from.touched)),e.R7$(),e.Y8G("ngIf",t.showEducationYearErr),e.R7$(3),e.Y8G("items",t.year_dropdown)("clearable",!1),e.R7$(),e.Y8G("ngIf",t.editEducation.controls.date_to.invalid&&(t.editEducation.controls.date_to.dirty||t.editEducation.controls.date_to.touched))}}function Ob(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",221)(1,"div",118)(2,"span",222),e.EFF(3," school "),e.k0s()(),e.j41(4,"div",125)(5,"div",126)(6,"h6",127),e.EFF(7),e.k0s(),e.j41(8,"p",128),e.EFF(9),e.k0s()(),e.j41(10,"div",223)(11,"a",224)(12,"span",225),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return r.edit_education(o.id),e.Njj(r.edit_education_div=!0)}),e.EFF(13," edit "),e.k0s()(),e.j41(14,"a",226)(15,"span",227),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3),s=e.sdS(42);return e.Njj(r.openModal(s,"small",o.id))}),e.EFF(16," delete "),e.k0s()()()()()}if(2&i){const t=a.$implicit;e.R7$(7),e.SpI(" ",t.school," "),e.R7$(2),e.Lme(" ",t.date_from," - ",t.date_to," ")}}function Ab(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",175),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.addEduction())}),e.EFF(1," Save "),e.k0s()}}function Gb(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",175),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.update_eduction())}),e.EFF(1," Update "),e.k0s()}}function Lb(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",175),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.submitWholeProfile())}),e.EFF(1," Finish "),e.k0s()}}function qb(i,a){if(1&i){const t=e.RV6();e.j41(0,"form"),e.DNE(1,xb,22,11,"div",202)(2,Mb,23,11,"div",202),e.j41(3,"button",203),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return o.add_education=!0,e.Njj(o.edit_education_div=!1)}),e.EFF(4," +Add One more institute "),e.k0s(),e.j41(5,"div",204)(6,"div",115),e.DNE(7,Ob,17,3,"div",205),e.k0s()(),e.j41(8,"div",206)(9,"div",207)(10,"button",208),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.backLocation())}),e.EFF(11," Back "),e.k0s(),e.DNE(12,Ab,2,0,"button",209)(13,Gb,2,0,"button",209),e.k0s()(),e.j41(14,"div",210),e.DNE(15,Lb,2,0,"button",209),e.k0s()()}if(2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.add_education),e.R7$(),e.Y8G("ngIf",t.edit_education_div),e.R7$(5),e.Y8G("ngForOf",t.education_arr),e.R7$(5),e.Y8G("ngIf",0==t.edit_education_div),e.R7$(),e.Y8G("ngIf",1==t.edit_education_div),e.R7$(2),e.Y8G("ngIf",0==t.edit_education_div)}}function Vb(i,a){if(1&i&&(e.j41(0,"div",42)(1,"div",43)(2,"h1",44),e.EFF(3,"Add Education"),e.k0s()(),e.DNE(4,qb,16,6,"form",73),e.k0s()),2&i){const t=e.XpG();e.R7$(4),e.Y8G("ngIf",t.showEducationForm)}}function Bb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",229),e.EFF(2,"Update Profile"),e.k0s(),e.j41(3,"button",230),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(4,"div",231)(5,"image-cropper",232),e.bIt("imageCropped",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.imageCropped(o))})("loadImageFailed",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.loadImageFailed())}),e.k0s(),e.j41(6,"button",233),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.getImage())}),e.EFF(7," Submit "),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(5),e.Y8G("imageChangedEvent",t.imageChangedEvent)("maintainAspectRatio",!0)("aspectRatio",1)("resizeToWidth",128)}}function $b(i,a){if(1&i&&e.nrm(0,"iframe",242),2&i){const t=e.XpG(2);e.Y8G("src",t.resume_src,e.f$h)}}function Yb(i,a){if(1&i&&e.nrm(0,"img",243),2&i){const t=e.XpG(2);e.FS9("src",t.resume_src,e.B4B)}}function Jb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",234),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",235),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.resume_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",236),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",237),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",238)(8,"div",239),e.DNE(9,$b,1,1,"iframe",240)(10,Yb,1,1,"img",241),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.resume_src,e.B4B),e.R7$(6),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function Ub(i,a){if(1&i&&e.nrm(0,"iframe",242),2&i){const t=e.XpG(2);e.Y8G("src",t.visa_proof_src,e.f$h)}}function Xb(i,a){if(1&i&&e.nrm(0,"img",243),2&i){const t=e.XpG(2);e.FS9("src",t.visa_proof_src,e.B4B)}}function zb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",234),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",235),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.visa_proof_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",236),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",237),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",238)(8,"div",239),e.DNE(9,Ub,1,1,"iframe",240)(10,Xb,1,1,"img",241),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.visa_proof_src,e.B4B),e.R7$(6),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function Hb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",234),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",235),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.download(o.resume_src))}),e.j41(4,"i",236),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",237),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",238),e.nrm(8,"ngx-doc-viewer",244),e.k0s()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.resume_src,e.B4B),e.R7$(5),e.Y8G("url",t.resume_src)}}function Wb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",229),e.EFF(2,"Are you sure you want to delete?"),e.k0s(),e.j41(3,"button",245),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.modalClose())}),e.k0s()(),e.j41(4,"div",246)(5,"button",247),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.modalClose())}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",248),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteEducation())}),e.EFF(8," Yes "),e.k0s()()}}function Zb(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",228)(1,"h3",229),e.EFF(2,"Are you sure you want to delete?"),e.k0s(),e.j41(3,"button",245),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.modalClose())}),e.k0s()(),e.j41(4,"div",246)(5,"button",247),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.modalClose())}),e.EFF(6," Cancel "),e.k0s(),e.j41(7,"button",248),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deteteDocument())}),e.EFF(8," Yes "),e.k0s()()}}let Qb=(()=>{class i{fb;route;job;globals;modalService;toastr;errorHandler;common;NotificationService;countryLocalizeService;navigationService;currencyService;show_hide_card="myAccount";country="";_baseURL;status=!1;jobInfoGroup;overviewGroup;docGroup;avaliabilityGroup;educationGroup;addEducation;editEducation;other_document_name=null;isupload=!0;activeTab=1;setUrlDoc=null;resume;profile;video;visa_proof;image_crop;resume_show;visa_proof_show;showDocsModal;tabset;employer_not_exist;resumeCheck;visaProofCheck;licenceCheck;idProofCheck;docVal;deleteDocModal;resumeUrl;allskills=[];allvendor=[];allrec=[];allstates="";allcity=[];visa_status=[];avaliable_change=[];showVendor=!1;showVendorInfo=!1;modalReference=null;profile_img=!1;profile_url=!1;is_avaliable=!1;is_travel=!1;is_visa_proof=!1;add_education=!1;edit_education_div=!1;isShowHideOtherDoc=!1;showEducationYearErr=!1;showEducationForm=!0;employeementTypeError=!1;showOtherUrlLabel=!1;profile_img_disp="";profile_url_disp="";video_file="";visa_proof_file="";education_obj={};education_arr=[];education_index=0;user_data="";Fulltime=0;Parttime=0;Remote=0;Constract=0;resume_file="";resume_file_base64="";visa_proof_base64="";imageChangedEvent="";croppedImage="";resumeLabel="No file selected";visaproofLabel="No file selected";videoLabel="No file selected";progress=0;current_year;add_skill;docExtension;isShowProfile=!1;savedProfile="";rates_h_s_arry={f_m_x:!1,p_m_x:!1,r_m_x:!1,c_m_x:!1};year_dropdown=[];other_document_files=[];preview_documents=[];jobseeker_profile=null;upload_doc_prev_div_toggle=!1;uploaded_document_type=null;isShowUrlDoc=1;documentId;document_div_toggle=!1;document_type_array=["doc","docx","pdf"];resume_src="https://calibre-ebook.com/downloads/demos/demo.docx";visa_proof_src="";phone_code_data=[];eduId;skillData;check_phone=0;getAllSkillData=[];getAllRec=[];getAllVisa=[];getAllCityData=[];setMaxValueErr=!1;setRemoteMaxValueErr=!1;setContractMaxValueErr=!1;setParttimeMaxValueErr=!1;isResumeShow=!0;isShowExtRecSelect=!1;isEnableNext=!1;isVendorDisabled=!1;constructor(t,n,o,r,s,c,u,h,v,g,b,f){this.fb=t,this.route=n,this.job=o,this.globals=r,this.modalService=s,this.toastr=c,this.errorHandler=u,this.common=h,this.NotificationService=v,this.countryLocalizeService=g,this.navigationService=b,this.currencyService=f,this.country=this.countryLocalizeService.getCountryCode(),this.phone_code_data=[{name:"in"==this.country?"+91":"+1"}],this._baseURL=id.D.baseURL,JSON.parse(localStorage.getItem("CR_PREF"))}get currencySymbol(){return this.currencyService.getCurrencySymbol()}get availabilityTypeArray(){return this.avaliabilityGroup.get("avaliability_type")}ngOnInit(){var t=this;return(0,et.A)(function*(){t.jobInfoGroup=t.fb.group({first_name:["",ne.k0.required],last_name:["",ne.k0.required],email:["",ne.k0.required],phone_code:["in"==t.country?"+91":"+1"],phone:["",ne.k0.required],profile:[null],vendor:[null],address:["",ne.k0.required],location:["",ne.k0.required],job_title:["",ne.k0.required],visa:[""],skills:["",ne.k0.required],rec:[""],vendor_comp:[null],vendor_name:[null],vendor_email:[null],vendor_phone:[null],vendor_fein:[null],designation:[null],is_employer:[""],notavlvendor:[!1]}),t.avaliabilityGroup=t.fb.group({avaliability:[""],avaliability_type:t.fb.array([]),f_min:["",ne.k0.required],f_max:["",ne.k0.required],c_min:["",ne.k0.required],c_max:["",ne.k0.required],p_min:["",ne.k0.required],p_max:["",ne.k0.required],r_min:["",ne.k0.required],r_max:["",ne.k0.required],travel:["",ne.k0.required],city:["",ne.k0.required],will_move_project:[!1]}),t.overviewGroup=t.fb.group({overview:["",ne.k0.required],hour_rate:[""],max_hour_rate:[""]}),t.addEducation=t.fb.group({school:["",ne.k0.required],degree:["",ne.k0.required],area_of_study:["",ne.k0.required],date_from:["",ne.k0.required],date_to:["",ne.k0.required]}),t.editEducation=t.fb.group({school:["",ne.k0.required],degree:["",ne.k0.required],area_of_study:["",ne.k0.required],date_from:["",ne.k0.required],date_to:["",ne.k0.required],id:[""]}),$(".roller1").addClass("active"),yield t.GetVendors(),yield t.GetRec(),yield t.get_visa_status(),yield t.GetSkills(),yield t.get_city();var n=(new Date).getFullYear(),o=n;n-=73;for(var r=0;r<74;r++)t.year_dropdown.push(n+r);t.current_year=o,t.addEducation.get("date_from").setValue(t.current_year-10),t.addEducation.get("date_to").setValue(t.current_year),"us"==t.country?t.j
129obInfoGroup.get("visa").setValidators([ne.k0.required]):(t.jobInfoGroup.get("visa").setValidators(null),t.jobInfoGroup.get("visa").setValue(null)),yield t.get_jobseeker_profile()})()}keyPressNumbers(t){var n=t.which?t.which:t.keyCode;return!(n<48||n>57)||(t.preventDefault(),!1)}checkUniqPhone(t,n=null){let o=this.jobInfoGroup.get("phone"),r=localStorage.getItem("CR_PREF");r=JSON.parse(r);let s={phone:t.target.value.replace(/-/g,""),code:this.jobInfoGroup.get("phone_code").value};r.hasOwnProperty("user_id")&&(s.id=r.user_id),o.valid&&this.common.checkUniqPhone(s).subscribe(c=>{0==c.ResponseCode&&o.setErrors({isUnique:!0}),this.check_phone=c.ResponseCode},c=>{this.errorHandler.handleError(c)})}change_is_vendor_info(){this.employeementTypeError=!1;const t=this.jobInfoGroup,n=t.get("is_employer")?.value,o=t.get("notavlvendor")?.value,r=t.get("vendor"),s=["vendor_comp","vendor_name","vendor_email","vendor_phone","vendor_fein","designation"],c=()=>{s.forEach(u=>{const h=t.get(u);h?.clearValidators(),h?.setValue(null),h?.updateValueAndValidity()})};if("HAE"!==n)return r?.clearValidators(),r?.setValue(null),c(),void r?.updateValueAndValidity();o?(r?.clearValidators(),r?.setValue(null),s.forEach(u=>{const h=t.get(u);h?.setValidators("vendor_email"===u?[ne.k0.required,ne.k0.email]:[ne.k0.required]),h?.updateValueAndValidity()})):(r?.setValidators([ne.k0.required]),c()),r?.updateValueAndValidity()}update_job_info(){var t=this;return(0,et.A)(function*(){if(t.jobInfoGroup.invalid)return t.employeementTypeError=null==t.user_data.is_looking_new_employer&&""==t.jobInfoGroup.get("is_employer").value,void t.jobInfoGroup.markAllAsTouched();const n=t.jobInfoGroup.value.rec,o=t.jobInfoGroup.value.visa,r=t.jobInfoGroup.value.skills,s={...t.jobInfoGroup.value};s.vendor=t.jobInfoGroup.get("vendor").value;let u,c=[];yield t.getAllSkillData.forEach(function(){var v=(0,et.A)(function*(g){yield r.forEach(b=>{b==g.skill_name&&c.push(g.id)})});return function(g){return v.apply(this,arguments)}}()),yield r.forEach(v=>{t.allskills.includes(v)||c.push("ADD_"+v)}
129),"number"==typeof n?u=n:yield t.getAllRec.forEach(function(){var v=(0,et.A)(function*(g){n==g.name&&(u=g.id)});return function(g){return v.apply(this,arguments)}}());let h=null;if(o&&(h="number"==typeof o?o:t.getAllVisa.find(g=>g.visa_type===o)?.id??null),s.skills=c,s.rec=u,s.visa=h,console.log(t.jobInfoGroup),""!=t.savedProfile&&(s.profile=t.savedProfile),t.jobInfoGroup.controls.address.valid&&t.jobInfoGroup.controls.email.valid&&t.jobInfoGroup.controls.first_name.valid&&t.jobInfoGroup.controls.is_employer.valid&&t.jobInfoGroup.controls.job_title.valid&&t.jobInfoGroup.controls.last_name.valid&&t.jobInfoGroup.controls.location.valid&&t.jobInfoGroup.controls.rec.valid&&t.jobInfoGroup.controls.skills.valid&&""!=t.jobInfoGroup.controls.is_employer.value)if(null!=t.jobInfoGroup.controls.phone.errors)t.toastr.error("Phone Number must be 10 digits");else{t.employeementTypeError=!1,t.globals.loading=!0;let v={data:s,op:"jobInfo"};v.data.profile=t.profile_img_disp,yield t.job.profile_complete(v).subscribe(function(){var g=(0,et.A)(function*(b){if(console.log({res:b}),t.globals.loading=!1,1==b.ResponseCode){t.show_hide_card="overview",$(".data-steps").removeClass("active"),$(".roller1").addClass("complete"),$(".roller2").addClass("active"),t.toastr.success(b.ResponseText);const f=b.ResponseData;t.NotificationService.sendNotificationUnauth({type:"assign_recruiter_by_jobseeker",jobseeker_id:b.ResponseData.jobseeker_data}),t.progress=f.progress,t.set_ratio_in_localstorage(),yield t.get_jobseeker_profile()}});return function(b){return g.apply(this,arguments)}}(),g=>{t.globals.loading=!1,t.errorHandler.handleError(g)})}else t.jobInfoGroup.markAllAsTouched()})()}get_city(){var t=this;return(0,et.A)(function*(){yield("in"===t.country?t.common.get_city_in():t.common.get_city()).subscribe(o=>{t.allcity=[],o.ResponseData.forEach(r=>{t.allcity.push(r.name)}),t.getAllCityData=o.ResponseData},o=>{t.globals.loading=!1,t.errorHandler.handleError(o)})})()}locationAddressChange(t){const n=t.formatted_address||"";this.jobInfoGroup.get("address")?.setValue(n),t.geometry?.location&&console.log("Lat:",t.geometry.location.lat(),"Lng:",t.geometry.location.lng())}addAddressChange(t){const n=t.formatted_address||"";this.jobInfoGroup.get("location")?.setValue(n),t.geometry?.location&&console.log("Lat:",t.geometry.location.lat(),"Lng:",t.geometry.location.lng())}set_ratio_in_localstorage(){const t=JSON.parse(localStorage.getItem("CR_PREF"));t.profile_ratio=this.progress,localStorage.setItem("CR_PREF",JSON.stringify(t))}submitWholeProfile(){this.addEducation.valid?this.toastr.error("Please submit education details"):100==this.progress?(this.globals.loading=!0,this.job.getdata().subscribe(t=>{this.globals.loading=!1,localStorage.setItem("CR_PREF",JSON.stringify(t.ResponseData)),this.route.queryParams.subscribe(n=>{if(n.job)this.navigationService.navigate(`job-details/${n.job}`,this.route);else if(null!=t.ResponseData.applied_job_id)this.navigationService.navigate(`job-details/${t.ResponseData.applied_job_id}`,this.route);else if(1==t.ResponseData.is_client_send_video_interview){let o=Number(t.ResponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:o,jobseeker_id:t.ResponseData.jobseeker_id}})}else this.navigationService.navigate("jobseeker/my-jobs",this.route)})})):this.toastr.error("Please fill before or above details")}reset_employer(){this.showVendorInfo&&(this.showVendorInfo=!1)}openModal(t,n,o){this.eduId=o,this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n}`})}GetRec(){var t=this;return(0,et.A)(function*(){yield t.common.GetRec().subscribe(n=>{t.allrec=[],n.ResponseData.data.forEach(o=>{t.allrec.push(o.name)}),t.getAllRec=n.ResponseData.data},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}submitDocument(){var t=this;return(0,et.A)(function*(){t.isResumeShow=!0,yield t.preview_documents.forEach(n=>{2==n.document_type&&(t.isResumeShow=!1)}),0==t.preview_documents.length?t.toastr.error("Please upload your resume"):t.isResumeShow?t.toastr.error("Resume is compulsary"):(t.show_hide_card="availability",$(".data-steps").removeClass("active"),$(".roller3").addClass("complete"),$(".roller4").addClass("active"))})()}backLocation(){"overview"==this.show_hide_card&&(this.show_hide_card="myAccount"),"documents"==this.show_hide_card&&(this.show_hide_card="overview"),"availability"==this.show_hide_card&&(this.show_hide_card="documents"),"education"==this.show_hide_card&&(this.show_hide_card="availability")}vendorChange(t){t.target.checked&&(this.showVendorInfo=!0),t.target.checked||(this.showVendorInfo=!1)}changeDate(t){this.showEducationYearErr=this.addEducation.controls.date_from.value>t}changeToDate(t){this.showEducationYearErr=this.addEducation.controls.date_to.value<t}fileChangeEvent(t){this.imageChangedEvent=t;let n=["image/jpeg","image/jpg","image/png","image/gif","jpg","jpeg","png","gif"];this.imageChangedEvent.target.files[0].size/1024/1024<5?n.includes(this.imageChangedEvent.target.files[0].type)?this.modalService.open(this.image_crop,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}):-1==n.indexOf(this.imageChangedEvent.target.files[0].type)?(this.jobInfoGroup.get("profile").setErrors({type:!0}),this.loadImageFailed("type")):this.modalService.open(this.image_crop,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}):(this.jobInfoGroup.get("profile").setErrors({size:!0}),this.loadImageFailed("size"))}profileUpdate(t){this.imageChangedEvent=t;let n=["image/jpeg","image/jpg","image/png","image/gif","jpg","jpeg","png","gif"];this.imageChangedEvent.target.files[0].size<=2e6?n.includes(this.imageChangedEvent.target.files[0].type)?this.modalService.open(this.image_crop,{centered:!0,windowClass:"cr-custom-modal modal-small"}):-1==n.indexOf(this.imageChangedEvent.target.files[0].type)?this.toastr.error("Only jpeg, gif, png image allowed."):this.modalService.open(this.image_crop,{centered:!0,windowClass:"cr-custom-modal modal-small"}):this.toastr.error("Only 2MB image allowed.")}get_visa_status(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,yield t.common.get_visa_status().subscribe(n=>{t.globals.loading=!1,t.visa_status=[],n.ResponseData.data.forEach(o=>{t.visa_status.push(o.visa_type)}),t.getAllVisa=n.ResponseData.data},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}GetVendors(){var t=this;return(0,et.A)(function*(){yield t.common.GetVendors().subscribe(n=>{t.allvendor=n.ResponseData.data},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}loadImageFailed(t=null,n="Image must be jpeg."){"size"==t||"type"==t||this.toastr.error(n),this.profile.nativeElement.value=""}document_clicked(t,n,o){"delete_doc"==t&&(o.stopPropagation(),o.preventDefault(),this.modalService.open(this.deleteDocModal,{centered:!0,windowClass:"cr-custom-modal modal-small"}),this.documentId=n.doc_id)}imageCropped(t){this.croppedImage=t.base64}getImage(){this.profile_img=!0,this.profile_url=!1,this.profile_img_disp=this.croppedImage,this.user_data.profile=this.croppedImage,this.modalService.dismissAll(),this.savedProfile=this.croppedImage;const t={profile:this.croppedImage};console.log(t),this.globals.loading=!0,this.job.upload_profile(t).subscribe(n=>{if(this.globals.loading=!1,1==n.ResponseCode){this.toastr.success(n.ResponseText),this.globals.profile=this.job.upload_profile_url(n.Data);var o=JSON.parse(localStorage.getItem("CR_PREF"));o.profile=this.globals.profile,localStorage.setItem("CR_PREF",JSON.stringify(o)),this.modalService.dismissAll()}else this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}get_jobseeker_profile(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,yield t.job.get_jobseeker_profile().subscribe(function(){var n=(0,et.A)(function*(o){t.globals.loading=!1;const r=o.ResponseData;t.jobseeker_profile=r,t.progress=r.profile_ratio,t.user_data=r,console.log("getpro",r);var s=[];for(var c of Object.values(o.ResponseData.skills))s.push(c);const h=[];if(s.forEach(function(v,g){h.push(parseInt(v))}
129),r.external_recruiter_data?null!=r.recruiter?t.jobInfoGroup.get("rec").setValue(r.recruiter):t.allrec.push(r.external_recruiter_details):t.jobInfoGroup.get("rec").setValue(r.recruiter_name),1==r.is_client_send_video_interview&&t.jobInfoGroup.get("rec").setValue("devi mangarai"),r.external_recruiter_details&&(t.isShowExtRecSelect=!0),t.jobInfoGroup.get("first_name").setValue(r.first_name),t.jobInfoGroup.get("last_name").setValue(r.last_name),t.jobInfoGroup.get("email").setValue(r.email),null!=r.phone_code?t.jobInfoGroup.get("phone_code").setValue(r.phone_code):t.jobInfoGroup.get("phone_code").setValue("+1"),t.jobInfoGroup.get("phone").setValue(r.phone),t.jobInfoGroup.get("location").setValue(r.current_location),t.jobInfoGroup.get("address").setValue(r.address),t.jobInfoGroup.get("job_title").setValue(r.current_job_title),t.jobInfoGroup.get("visa").setValue(r.visa_status_name),t.jobInfoGroup.get("skills").setValue(r.skill_name),t.preview_documents=t.jobseeker_profile.documents,0==t.preview_documents.length&&(t.upload_doc_prev_div_toggle=!0,t.document_div_toggle=!1),r.vendor_assign_by_admin?(t.isVendorDisabled=!0,t.jobInfoGroup.get("vendor").disable()):(t.isVendorDisabled=!1,t.jobInfoGroup.get("vendor").enable()),0==r.is_looking_new_employer&&0!=r.vendor)t.showVendor=!0,t.jobInfoGroup.get("vendor").setValue(r.vendor);else if(0==r.is_looking_new_employer&&0==r.vendor){t.showVendor=!0,t.showVendorInfo=!0;const v=r.vendor_sugg;t.jobInfoGroup.get("vendor_comp").setValue(v.vendor_comp),t.jobInfoGroup.get("vendor_name").setValue(v.vendor_name),t.jobInfoGroup.get("vendor_email").setValue(v.vendor_email),t.jobInfoGroup.get("vendor_phone").setValue(v.vendor_phone)}if(0!=r.vendor&&null!=r.vendor&&(t.jobInfoGroup.get("vendor").setValue(r.vendor),r.is_looking_new_employer=0,t.showVendor=!0,t.showVendorInfo=!1,t.jobInfoGroup.get("vendor").setValue(r.vendor)),0==r.is_looking_new_employer?t.jobInfoGroup.get("is_employer").setValue("HAE"):1==r.is_looking_new_employer&&t.jobInfoGroup.get("is_employer").setValue("LNE"),t.overviewGroup.get("overview").setValue(r.overview),r.rate_per_hour&&(t.overviewGroup.get("hour_rate").setValue(r.rate_per_hour),t.overviewGroup.get("max_hour_rate").setValue(r.max_rate_per_hour)),""!=r.profile&&(t.globals.profile=r.profile),t.isShowProfile=!0,t.avaliabilityGroup.get("avaliability").setValue(String(r.avaliability)),1==r.avaliability){t.is_avaliable=!0;const v=r.avaliability_opt,g=r.avaliability_opt_range,b=v.findIndex(x=>1==x),f=v.findIndex(x=>2==x),R=v.findIndex(x=>3==x),C=v.findIndex(x=>5==x);t.Fulltime=-1!=b?1:0,t.Parttime=-1!=f?2:0,t.Remote=-1!=R?3:0,t.Constract=-1!=C?5:0,t.rates_h_s_arry.f_m_x=-1!=b,t.rates_h_s_arry.p_m_x=-1!=f,t.rates_h_s_arry.r_m_x=-1!=R,t.rates_h_s_arry.c_m_x=-1!=C;const D=t.availabilityTypeArray;D.clear(),v.forEach(x=>{D.push(t.fb.control(x))}),g.forEach(x=>{1==x.opt&&(t.avaliabilityGroup.controls.f_min.setValue(x.from),t.avaliabilityGroup.controls.f_max.setValue(x.to)),2==x.opt&&(t.avaliabilityGroup.controls.p_min.setValue(x.from),t.avaliabilityGroup.controls.p_max.setValue(x.to)),3==x.opt&&(t.avaliabilityGroup.controls.r_min.setValue(x.from),t.avaliabilityGroup.controls.r_max.setValue(x.to)),5==x.opt&&(t.avaliabilityGroup.controls.c_min.setValue(x.from),t.avaliabilityGroup.controls.c_max.setValue(x.to))}),t.avaliable_change=v}if(3==r.avaliability&&4==r.avaliability_opt[0]&&t.avaliabilityGroup.get("will_move_project").setValue(!0),t.is_travel=r.willing_to_travel,t.avaliabilityGroup.get("travel").setValue(r.willing_to_travel),1==r.willing_to_travel){let v=[];yield r.willing_city.forEach(function(){var g=(0,et.A)(function*(b){yield t.getAllCityData.forEach(f=>{f.id==b&&v.push(f.name)})});return function(b){return g.apply(this,arguments)}}()),console.log("c",v),t.avaliabilityGroup.get("city").setValue(v)}r.education.length?t.education_arr=r.education:(t.education_arr=[],t.add_education=!0,t.edit_education_div=!1),t.update_localstorage(r)});return function(o){return n.apply(this,arguments)}}(),n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}GetSkills(){var t=this;return(0,et.A)(function*(){t.globals.loading=!0,yield t.common.GetSkills().subscribe(n=>{t.globals.loading=!1,console.log(n),t.allskills=[],t.isEnableNext=!0,n.ResponseData.data.forEach(o=>{t.allskills.push(o.skill_name)}),t.getAllSkillData=n.ResponseData.data},n=>{t.globals.loading=!1,t.errorHandler.handleError(n)})})()}onOtherDocumentChange(t){let n=t.target.getAttribute("data-id");if(this.uploaded_document_type=n,6==this.uploaded_document_type&&1==this.isShowUrlDoc&&(null==this.other_document_name||""==this.other_document_name))return this.toastr.error("Please enter document name"),t.target.value=null,!1;if(null==this.uploaded_document_type)this.toastr.error("Please, select document type");else if(t.target.files.length>0){let s=t.target.files,c=new Array("application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","image/jpeg","image/jpg","image/png"),u=new Array("doc","docx","pdf","jpg","jpeg","png","gif");const h=s[0];console.log(c,s);let v=h.name.split(".")[1];if(-1==c.indexOf(h.type))if(-1==u.indexOf(v))this.toastr.error("File type is invali
129d.");else{var o;this.preview_documents=this.jobseeker_profile.documents,(o=new FileReader).onload=g=>{let f={document_type:this.uploaded_document_type,document:h.name,real_name:h.name,display_name:h.name,extension:/(?:\.([^.]+))?$/.exec(h.name)[1],document_url:g.target.result};this.preview_documents.push(f)},o.readAsDataURL(h),this.handleOtherFileInput(s),this.uploadOtherDocuments()}else this.preview_documents=this.jobseeker_profile.documents,(o=new FileReader).onload=b=>{let R={document_type:this.uploaded_document_type,document:h.name,real_name:h.name,display_name:h.name,extension:/(?:\.([^.]+))?$/.exec(h.name)[1],document_url:b.target.result};this.preview_documents.push(R)},o.readAsDataURL(h),this.handleOtherFileInput(s),this.uploadOtherDocuments()}}handleOtherFileInput(t){this.other_document_files=[],this.other_document_files.push(t.item(0))}inputFocus(t){const n=this.currencyService.getCurrencySymbol();String(t.target.value).includes(n)||(t.target.value=t.target.value)}functionOut(t){t.target.value.length>=2||(t.target.value="")}addEduction(){1==this.showEducationYearErr?this.toastr.error("Please do correct year format."):(Object.keys(this.addEducation.controls).forEach(t=>{const n=this.addEducation.get(t);"string"==typeof n?.value&&n.setValue(n.value.trim())}),this.addEducation.valid?(this.globals.loading=!0,this.job.add_eduction(this.addEducation.value).subscribe(n=>{1==n.ResponseCode?(this.globals.loading=!1,this.toastr.success(n.ResponseText),this.education_arr=n.ResponseData.education,this.modalService.dismissAll(),this.addEducation.reset(),this.progress=n.ResponseData.progress,this.set_ratio_in_localstorage(),this.get_jobseeker_profile(),$(".data-steps").removeClass("active"),$(".roller5").addClass("complete"),this.add_education=!1):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})):this.toastr.error("Please fill above fields"))}deleteEducation(){let t=this.eduId;this.globals.loading=!0,this.job.delete_education(t).subscribe(n=>{1==n.ResponseCode?(this.globals.loading=!1,this.toastr.success(n.ResponseText),this.education_arr=n.ResponseData,this.modalService.dismissAll()):this.toastr.error(n.ResponseText)},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}uploadOtherDocuments(){var t=this;const n=new FormData;n.append("file",this.other_document_files[0]),n.append("file_type",this.uploaded_document_type),n.append("op","documents"),6==this.uploaded_document_type&&(n.append("document_name",this.other_document_name),null==this.other_document_name||null==this.other_document_name?(this.isupload=!1,this.toastr.error("Please, enter document name")):this.isupload=!0),1==this.isupload&&(this.globals.loading=!0,this.job.reupload_resume(n).subscribe(function(){var o=(0,et.A)(function*(r){t.globals.loading=!1,1==r.ResponseCode?(yield t.get_jobseeker_profile(),t.toastr.success(r.ResponseText),t.progress=r.ResponseData.progress,t.set_ratio_in_localstorage()):t.toastr.error(r.ResponseText),t.other_document_name=null,t.globals.loading=!1});return function(r){return o.apply(this,arguments)}}(),o=>{this.globals.loading=!1,this.errorHandler.handleError(o)}))}modalClose(){this.modalService.dismissAll()}deteteDocument(){this.job.delete_document({doc_id:this.documentId}).subscribe(n=>{this.globals.loading=!1,1==n.ResponseCode?(this.toastr.success(n.ResponseText),this.get_jobseeker_profile(),this.modalService.dismissAll()):(this.toastr.error(n.ResponseText),this.modalService.dismissAll())},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})}openPdfViwer(t,n,o){"view_doc"==t&&(1==n.document_type?window.open(n.document_url,"_blank").focus():"docx"==n.extension?(this.resume_src=n.document_url,this.modalService.open(this.showDocsModal,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"})):-1!=this.document_type_array.indexOf(n.extension)?(this.modalService.open(this.resume_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.document_url):(this.visa_proof_src=n.document_url,this.modalService.open(this.visa_proof_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.document_url))}contentLoaded(){document.getElementById("progressBar1").style.display="none"}download(t){const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove()}update_overview(){this.overviewGroup.get("overview").setValue(this.overviewGroup.value.overview.trim()),this.overviewGroup.valid?(this.globals.loading=!0,this.job.profile_complete({data:this.overviewGroup.value,op:"overview"}).subscribe(n=>{this.show_hide_card="documents",$(".data-steps").removeClass("active"),$(".roller2").addClass("complete"),$(".roller3").addClass("active"),this.globals.loading=!1,1==n.ResponseCode&&(console.log({notif:n.ResponseData}),this.toastr.success(n.ResponseText),this.progress=n.ResponseData.progress,this.set_ratio_in_localstorage(),this.get_jobseeker_profile())},n=>{this.globals.loading=!1,this.errorHandler.handleError(n)})):this.overviewGroup.markAllAsTouched()}
129add_document_url(t){const n=new FormData;n.append("document_url",t),n.append("file_type","1"),n.append("op","resume_url"),this.globals.loading=!0,this.job.reupload_resume(n).subscribe(o=>{1==o.ResponseCode?(this.toastr.success(o.ResponseText),this.resumeUrl.nativeElement.value="",this.get_jobseeker_profile(),this.upload_doc_prev_div_toggle=!1,this.document_div_toggle=!1,this.progress=o.ResponseData.progress,this.set_ratio_in_localstorage()):this.toastr.error(o.ResponseText),this.globals.loading=!1},o=>{this.globals.loading=!1,this.errorHandler.handleError(o)})}is_avaliable_change(t){const n=this.availabilityTypeArray,o=parseInt(t.target.value);if(t.target.checked)1==o?(this.rates_h_s_arry.f_m_x=!0,this.Fulltime=1):2==o?(this.rates_h_s_arry.p_m_x=!0,this.Parttime=2):3==o?(this.rates_h_s_arry.r_m_x=!0,this.Remote=3):5==o&&(this.rates_h_s_arry.c_m_x=!0,this.Constract=5),n.value.includes(o)||n.push(this.fb.control(o)),this.avaliable_change.includes(o)||this.avaliable_change.push(o);else{1==o?(this.rates_h_s_arry.f_m_x=!1,this.Fulltime=0):2==o?(this.rates_h_s_arry.p_m_x=!1,this.Parttime=0):3==o?(this.rates_h_s_arry.r_m_x=!1,this.Remote=0):5==o&&(this.rates_h_s_arry.c_m_x=!1,this.Constract=0);const r=n.value.findIndex(c=>c==o);-1!==r&&n.removeAt(r);const s=this.avaliable_change.findIndex(c=>c==o);-1!==s&&this.avaliable_change.splice(s,1)}this.avaliable_change=this.avaliable_change.filter((r,s)=>this.avaliable_change.indexOf(r)==s),this.check_required_rates()}onAvailabilityChange(t){const n=t.target.value;this.is_avaliable="1"==n,this.user_data.avaliability=n,"3"!=n?this.avaliabilityGroup.get("will_move_project").setValue(!1):3==this.user_data.avaliability&&this.user_data.avaliability_opt&&4==this.user_data.avaliability_opt[0]&&this.avaliabilityGroup.get("will_move_project").setValue(!0)}check_required_rates(){(0==this.jobInfoGroup.get("vendor").value||null==this.jobInfoGroup.get("vendor").value)&&setTimeout(()=>{0!=this.Fulltime?this.set_validation("f"):this.remove_validation("f"),0!=this.Parttime?this.set_validation("p"):this.remove_validation("p"),0!=this.Remote?this.set_validation("r"):this.remove_validation("r"),0!=this.Constract?this.set_validation("c"):this.remove_validation("c")},200)}update_avaliability(){var t=this;return(0,et.A)(function*(){if(0==t.user_data.avaliability||null==t.user_data.avaliability)t.toastr.error("Please select availability");else if(1==t.avaliabilityGroup.value.avaliability&&0==t.Fulltime&&0==t.Parttime&&0==t.Constract&&0==t.Remote)t.toastr.error("Availability type is required");else if(0!=t.Fulltime&&(""==t.avaliabilityGroup.value.f_max||""==t.avaliabilityGroup.value.f_min)||0!=t.Fulltime&&(null==t.avaliabilityGroup.value.f_max||null==t.avaliabilityGroup.value.f_min)||0!=t.Parttime&&(""==t.avaliabilityGroup.value.p_max||""==t.avaliabilityGroup.value.p_min)||0!=t.Parttime&&(null==t.avaliabilityGroup.value.p_max||null==t.avaliabilityGroup.value.p_min)||0!=t.Constract&&(""==t.avaliabilityGroup.value.c_max||""==t.avaliabilityGroup.value.c_min)||0!=t.Constract&&(null==t.avaliabilityGroup.value.c_max||null==t.avaliabilityGroup.value.c_min))t.toastr.error("Please fill min or max salary");else if(!(t.setMaxValueErr||t.setContractMaxValueErr||t.setParttimeMaxValueErr||1==t.is_travel&&""==t.avaliabilityGroup.controls.city.value))if("1"==t.avaliabilityGroup.value.travel&&""==t.avaliabilityGroup.value.city)t.avaliabilityGroup.get("city").markAsTouched(),t.avaliabilityGroup.get("city").setErrors({required:!0});else{if("1"==t.Fulltime&&(0==Number(t.avaliabilityGroup.value.f_min)||0==Number(t.avaliabilityGroup.value.f_max)))return t.toastr.error("Salary must not be zero"),!1;if("2"==t.Parttime&&(0==Number(t.avaliabilityGroup.value.p_min)||0==Number(t.avaliabilityGroup.value.p_max)))return t.toastr.error("Salary must not be zero"),!1;if("5"==t.Constract&&(0==Number(t.avaliabilityGroup.value.c_min)||0==Number(t.avaliabilityGroup.value.c_max)))return t.toastr.error("Salary must not be zero"),!1;{const n=t.availabilityTypeArray.value,o={data:t.avaliabilityGroup.value,checkbox:n.length>0?n:t.avaliable_change,op:"avaliability"};if(o.data.avaliability_type=n,3==t.avaliabilityGroup.get("avaliability").value&&(t.avaliabilityGroup.value.will_move_project=t.avaliabilityGroup.get("will_move_project").value),o.salay_range={},1==o.data.avaliability?(n.length>0?n:t.avaliable_change).forEach(s=>{1==s&&(o.salay_range[s]=t.avaliabilityGroup.get("f_min").value+","+t.avaliabilityGroup.get("f_max").value),2==s&&(o.salay_range[s]=t.avaliabilityGroup.get("p_min").value+","+t.avaliabilityGroup.get("p_max").value),3==s&&(o.salay_range[s]=t.avaliabilityGroup.get("r_min").value+","+t.avaliabilityGroup.get("r_max").value),5==s&&(o.salay_range[s]=t.avaliabilityGroup.get("c_min").value+","+t.avaliabilityGroup.get("c_max").value)}):(t.avaliabilityGroup.controls.f_min.setValue(""),t.avaliabilityGroup.controls.f_max.setValue(""),t.avaliabilityGroup.controls.p_min.setValue(""),t.avaliabilityGroup.controls.p_max.setValue(""),t.avaliabilityGroup.controls.r_min.setValue(""),t.avaliabilityGroup.controls.r_max.setValue(""),t.avaliabilityGroup.controls.c_min.setValue(""),t.avaliabilityGroup.controls.c_max.setValue(""),t.Fulltime=0,t.Parttime=0,t.Remote=0,t.Constract=0,t.rates_h_s_arry={f_m_x:!1,p_m_x:!1,r_m_x:!1,c_m_x:!1},t.availabilityTypeArray.clear(),t.avaliable_change=[]),1==t.avaliabilityGroup.get("travel").value){if(t.avaliabilityGroup.value.city){let r=[];
129yield t.avaliabilityGroup.value.city.forEach(function(){var s=(0,et.A)(function*(c){yield t.getAllCityData.forEach(function(){var u=(0,et.A)(function*(h){c==h.name&&r.push(h.id)});return function(h){return u.apply(this,arguments)}}())});return function(c){return s.apply(this,arguments)}}()),t.avaliabilityGroup.value.city=r}}else t.avaliabilityGroup.value.city="";o.data=t.avaliabilityGroup.value,t.globals.loading=!0,t.job.profile_complete(o).subscribe(r=>{t.globals.loading=!1,1==r.ResponseCode&&(t.progress=r.ResponseData.progress,t.set_ratio_in_localstorage(),t.show_hide_card="education",$(".data-steps").removeClass("active"),$(".roller4").addClass("complete"),$(".roller5").addClass("active"),t.toastr.success(r.ResponseText),t.get_jobseeker_profile())},r=>{t.globals.loading=!1,t.errorHandler.handleError(r)})}}})()}checkMinRate(t){let n=this.avaliabilityGroup.controls.f_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setMaxValueErr=Number(o)>Number(r)}checkMinRateFirst(t){let n=this.avaliabilityGroup.controls.f_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setMaxValueErr=Number(o)<Number(r)}checkRemoteMinRate(t){let n=this.avaliabilityGroup.controls.r_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setRemoteMaxValueErr=Number(o)>Number(r)}checkContractMinRate(t){let n=this.avaliabilityGroup.controls.c_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setContractMaxValueErr=Number(o)>Number(r)}checkContractMinRateFirst(t){let n=this.avaliabilityGroup.controls.c_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setContractMaxValueErr=Number(o)<Number(r)}checkParttimeMinRate(t){let n=this.avaliabilityGroup.controls.p_min.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setParttimeMaxValueErr=Number(o)>Number(r)}checkParttimeMinRateFirst(t){let n=this.avaliabilityGroup.controls.p_max.value;if(String(n).includes(this.currencySymbol))var o=String(n).replace(this.currencySymbol,"");else o=String(n);if(String(t.target.value).includes(this.currencySymbol))var r=String(t.target.value).replace(this.currencySymbol,"");else r=String(t.target.value);this.setParttimeMaxValueErr=Number(o)<Number(r)}set_validation(t){this.avaliabilityGroup.get(t+"_max").value||this.avaliabilityGroup.get(t+"_max").setErrors({required:!0}),this.avaliabilityGroup.get(t+"_min").value||this.avaliabilityGroup.get(t+"_min").setErrors({required:!0})}remove_validation(t){this.avaliabilityGroup.get(t+"_min").setErrors(null),this.avaliabilityGroup.get(t+"_max").setErrors(null)}edit_education(t){this.add_education=!1;const n=this.education_arr.findIndex(r=>
129r.id===t),o=this.education_arr[n];this.editEducation.get("school").setValue(o.school),this.editEducation.get("degree").setValue(o.degree),this.editEducation.get("area_of_study").setValue(o.area_of_study),this.editEducation.get("date_from").setValue(o.date_from),this.editEducation.get("date_to").setValue(o.date_to),this.editEducation.get("id").setValue(o.id)}update_eduction(){var t=this;return(0,et.A)(function*(){if(1==t.showEducationYearErr)t.toastr.error("Please do correct year format.");else{t.globals.loading=!0;const n=t.editEducation.value;yield t.job.update_eduction(n).subscribe(function(){var o=(0,et.A)(function*(r){1==r.ResponseCode?(t.globals.loading=!1,t.toastr.success(r.ResponseText),t.education_arr=r.ResponseData,t.edit_education_div=!1,t.add_education=!1):t.toastr.error(r.ResponseText)});return function(r){return o.apply(this,arguments)}}(),o=>{t.globals.loading=!1,t.errorHandler.handleError(o)})}})()}update_localstorage(t){let n=JSON.parse(localStorage.getItem("CR_PREF"));n.first_name=t.first_name,n.last_name=t.last_name,n.visa_status=t.visa_status,n.recruiter=t.recruiter,n.address=t.address,n.current_location=t.current_location,n.avaliability=t.avaliability,n.overview=t.overview,n.skills=t.skill_name,localStorage.setItem("CR_PREF",JSON.stringify(n)),""!=t.profile&&(n.profile=t.profile,this.globals.profile=t.profile)}numberOnly(t){const n=t.which?t.which:t.keyCode;return!(n>31&&(n<48||n>57))}alphaNumberOnly(t){var n=new RegExp("^[a-zA-Z0-9 ]+$"),o=String.fromCharCode(t.charCode?t.charCode:t.which);return!!n.test(o)||(t.preventDefault(),!1)}charactersOnly(t){var n=new RegExp("^[a-zA-Z]+$"),o=String.fromCharCode(t.charCode?t.charCode:t.which);return!!n.test(o)||(t.preventDefault(),!1)}static \u0275fac=function(n){return new(n||i)(e.rXU(ne.ok),e.rXU(Ve.nX),e.rXU(Yi.m),e.rXU(Qt.E),e.rXU(Ue.Bq),e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(ni.h),e.rXU(uo.J),e.rXU(cn.z),e.rXU(Mi.o),e.rXU(Zi.P))};static \u0275cmp=e.VBU({type:i,selectors:[["app-profile-complete"]],viewQuery:function(n,o){if(1&n&&(e.GBs(p2,5),e.GBs(_2,5),e.GBs(h2,5),e.GBs(f2,5),e.GBs(m2,5),e.GBs(g2,5),e.GBs(v2,5),e.GBs(b2,5),e.GBs(y2,5),e.GBs(k2,5),e.GBs(w2,5),e.GBs(x2,5),e.GBs(C2,5),e.GBs(j2,5),e.GBs(F2,5),e.GBs(S2,5),e.GBs(E2,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.resume=r.first),e.mGM(r=e.lsd())&&(o.profile=r.first),e.mGM(r=e.lsd())&&(o.video=r.first),e.mGM(r=e.lsd())&&(o.visa_proof=r.first),e.mGM(r=e.lsd())&&(o.image_crop=r.first),e.mGM(r=e.lsd())&&(o.resume_show=r.first),e.mGM(r=e.lsd())&&(o.visa_proof_show=r.first),e.mGM(r=e.lsd())&&(o.showDocsModal=r.first),e.mGM(r=e.lsd())&&(o.tabset=r.first),e.mGM(r=e.lsd())&&(o.employer_not_exist=r.first),e.mGM(r=e.lsd())&&(o.resumeCheck=r.first),e.mGM(r=e.lsd())&&(o.visaProofCheck=r.first),e.mGM(r=e.lsd())&&(o.licenceCheck=r.first),e.mGM(r=e.lsd())&&(o.idProofCheck=r.first),e.mGM(r=e.lsd())&&(o.docVal=r.first),e.mGM(r=e.lsd())&&(o.deleteDocModal=r.first),e.mGM(r=e.lsd())&&(o.resumeUrl=r.first)}},standalone:!0,features:[e.aNF],decls:45,vars:16,consts:[["image_crop",""],["resume_show",""],["visa_proof_show",""],["showDocsModal",""],["deleteEducationModal",""],["deleteDocModal",""],["profile",""],["phone",""],["vendor",""],["fullTimeCheckbox",""],["resumeCheck",""],["showUrl",""],["docVal",""],["resumeUrl",""],["city",""],[3,"loading"],[1,"jobseeker-profile-wrap","js-reg-layout"],[1,"profile-sidebar"],[1,"profile-side-header"],[1,"profile-cover"],["src","https://picsum.photos/seed/picsum/500/150","alt",""],["class","position-relative round",4,"ngIf"],[1,"text-center","px-3"],[1,"fw-600"],[1,"color-teal-blue","fw-400",3,"href"],[1,"w-100"],[1,"reg-steps"],[1,"reg-step","data-steps","roller1"],[1,"reg-step","data-steps","roller2"],[1,"reg-step","data-steps","roller3"],[1,"reg-step","data-steps","roller4"],[1,"reg-step","data-steps","roller5"],[1,"profile-side-content"],[1,"profile-main"],["class","settings-inner-content",4,"ngIf"],[1,"position-relative","round"],["id","profilePicSetting","type","file","name","profilePicSetting","accept","image/*",1,"custom-hidden-input",3,"change"],[1,"jobseeker-def-img"],["alt","",1,"img-cover","round","img-inherit",3,"error","src"],["for","profilePicSetting",1,"jobseeker-def-img","d-block",2,"position","absolute","top","0"],[1,"edit-profile-img-icon"],[1,"material-icons"],[1,"settings-inner-content"],[1,"js-reg-form-title"],[1,"setting-inner-title","fw-600","mb-5"],[3,"formGroup"],[1,"row","mb-2"],[1,"col-12","mb-3"],[1,"text-uppercase","fw-600","mb-0"],[1,"col-6","mb-4"],[1,"cr-input-wrap"],["type","text","placeholder","First Name","formControlName","first_name",1,"cr-form-control","control-medium",3,"keypress"],["class","control-error",4,"ngIf"],["type","text","placeholder","Last Name","formControlName","last_name",1,"cr-form-control","control-medium",3,"keypress"],["type","email","formControlName","email","placeholder","Email",1,"cr-form-control","control-medium",2,"background-color","var(--cr-gray-tint-6)","pointer-events","none",3,"readonly"],[1,"cr-input-wrap","phone-input-wrap"],[1,"cr-country-input"],["bindLabel","name","bindValue","name","placeholder","Code","formControlName","phone_code","appendTo","body",1,"cr-select","control-medium","country-code-disable",3,"items","hideSelected","clearable","searchable","placeholder"],[1,"cr-input-wrap","ml-4"],["placeholder","Phone Number","mask","000-000-0000","formControlName","phone","mobMask","","type","tel","autocomplete","new-phone",1,"cr-form-control","control-medium",3,"focusout"],["type","text","placeholder","Current Location","formControlName","location","googlePlacesAutocomplete","",1,"cr-form-control","control-medium",3,"onAddressChange","keypress","options"],["class","cr-input-wrap mb-5",4,"ngIf"],[1,"row","mb-5"],["type","text","placeholder","Present Job Title","formControlName","job_title",1,"cr-form-control","control-medium",3,"keypress"],["type","text","placeholder","Job location","formControlName","address","googlePlacesAutocomplete","",1,"cr-form-control","control-medium",3,"onAddressChange","keypress","options"],["appendTo","body","placeholder","Select Your Skills","bindLabel","name","bindValue","name","formControlName","skills","appendTo","body",1,"cr-select","control-medium",3,"searchable","clearable","items","multiple","addTag"],["class","col-6 mb-4",4,"ngIf"],[1,"emp-avail-wrap","mb
129-5","d-flex"],[1,"avail-radio"],["type","radio","id","emp-available","value","LNE","formControlName","is_employer",3,"change"],["for","emp-available"],["type","radio","formControlName","is_employer","id","emp-not-available","value","HAE",3,"change"],["for","emp-not-available"],[4,"ngIf"],["type","submit",1,"cr-btn","cr-btn-blue",3,"click","disabled"],[1,"control-error"],["class","err-container",4,"ngIf"],[1,"err-container"],[1,"material-icons","control-error-icon"],[1,"cr-input-wrap","mb-5"],["formControlName","visa","placeholder","Visa Status","bindLabel","name","bindValue","name","appendTo","body",1,"cr-select","ng-select","control-medium",3,"items","searchable","clearable"],[1,"col-md-auto","cr-form-control","control-medium",2,"border","2px solid rgba(21, 44, 40, 0.1)","border-radius","12px","padding-top","13px"],[1,"text-uppercase","fw-600","mb-3"],[1,"row","mb-3"],["class","col-12",4,"ngIf"],["class","row",4,"ngIf"],[1,"col-12"],[1,"d-flex","gap-5"],["formControlName","vendor","bindLabel","vendor_company_name","bindValue","id","placeholder","Search vendor",1,"cr-select","ng-select","control-medium",3,"items","clearable"],["class","col-6 d-flex align-items-end",4,"ngIf"],[1,"col-6","d-flex","align-items-end"],[1,"custom-check","mb-2"],["id","fullTimeCheckbox","type","checkbox","name","fullTimeCheckbox","value","HAE","formControlName","notavlvendor",3,"change"],["for","fullTimeCheckbox"],[1,"row"],["type","text","placeholder","Company Name","formControlName","vendor_comp",1,"cr-form-control","control-medium"],["type","text","placeholder","Contact Name","formControlName","vendor_name",1,"cr-form-control","control-medium"],["type","text","placeholder","Contact email","formControlName","vendor_email",1,"cr-form-control","control-medium"],["type","text","placeholder","Company Name","mask","000-000-0000","placeholder","Phone Number","formControlName","vendor_phone",1,"cr-form-control","control-medium",3,"prefix"],["type","text","placeholder","Designation","formControlName","designation",1,"cr-form-control","control-medium"],["type","text","placeholder","Vendor Fein","formControlName","vendor_fein",1,"cr-form-control","control-medium"],[1,"cr-input-wrap",3,"formGroup"],["name","overviewInput","rows","8","placeholder","Type your overview here","formControlName","overview",1,"cr-form-control","control-medium"],[1,"d-flex","align-iteme-center","mt-5"],[1,"cr-btn","cr-btn-blue","mr-3",3,"click"],[1,"cr-btn","cr-btn-blue","cr-btn-filled",3,"click"],[1,"col-10"],["class","row mb-5",4,"ngIf"],[1,"custom-radio"],["id","showDocument","type","radio","name","availability",3,"ngModelChange","value","ngModel"],["for","showDocument"],["class","col-12 mb-3 text-danger",4,"ngIf"],["class","col-12 mb-5",4,"ngIf"],["id","showUrl","type","radio","name","availability",3,"ngModelChange","value","ngModel"],["for","showUrl"],[1,"documents-grid"],["class","document-item",3,"click",4,"ngFor","ngForOf"],[1,"document-item",3,"click"],[1,"doctype-img","flex-shrink-0"],["src","assets/images/icons/doctype-svg.svg","alt","SVG Document","class","img-contain","style","width: 32px; height: 40px",4,"ngIf"],["src","assets/images/icons/doctype-docx.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-jpg.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-png.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-pdf.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-url.svg","alt","","class","img-contain",4,"ngIf"],[1,"docinfo-wrap"],[1,"docinfo"],[1,"small","fw-500","color-dark","clamp-1"],[1,"paragraph-sm","color-gray-3","mb-0"],[1,"link","color-red","cr-btn-flushed","flex-shrink-0"],[1,"material-icons-outlined",3,"click"],["src","assets/images/icons/doctype-svg.svg","alt","SVG Document",1,"img-contain",2,"width","32px","height","40px"],["src","assets/images/icons/doctype-docx.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-jpg.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-png.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-pdf.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-url.svg","alt","",1,"img-contain"],[1,"col-12","mb-3","text-danger"],[1,"col-12","mb-5"],[1,"row","align-items-center"],[1,"col-4"],[1,"custom-file-upload-btn"],["id","addDrivingLicense","type","file","data-id","2",3,"change"],["for","addDrivingLicense",1,"cr-btn","cr-btn-flushed","mb-0"],["
129id","addPassportFile","type","file","data-id","3",3,"change"],["for","addPassportFile",1,"cr-btn","cr-btn-flushed","mb-0"],["id","addVisaFile","type","file","data-id","4",3,"change"],["for","addVisaFile",1,"cr-btn","cr-btn-flushed","mb-0"],["id","addIDProofFile","type","file","data-id","5",3,"change"],["for","addIDProofFile",1,"cr-btn","cr-btn-flushed","mb-0"],[1,"custom-file-upload-btn",3,"click"],[1,"cr-btn","cr-btn-flushed","mb-0"],[1,"col-5"],["type","url","name","IDProofUrl","placeholder","Enter document name",1,"cr-form-control","control-small",3,"ngModelChange","ngModel"],["id","addOtherFile","type","file","data-id","6",3,"change"],["for","addOtherFile",1,"cr-btn","cr-btn-flushed","mb-0"],[1,"col-8"],["type","text","placeholder","Enter Url",1,"cr-form-control","control-medium"],[1,"cr-btn","cr-btn-blue","mr-3","control-medium",3,"click"],[1,"mb-4"],[1,"custom-radio","mb-3"],["id","available","type","radio","formControlName","avaliability","value","1",3,"change"],["for","available"],["class","ml-5",4,"ngIf"],["id","notAvailable","type","radio","value","2","formControlName","avaliability",3,"change"],["for","notAvailable"],["id","inProject","type","radio","value","3","formControlName","avaliability","autocomplete","new-avaliability",3,"change"],["for","inProject"],["class","mb-3","style","margin-left: 31px",4,"ngIf"],[1,"custom-check","mb-3"],["id","willingTravel","type","checkbox","name","willingTravel","value","1","formControlName","travel","autocomplete","new-travel"],["for","willingTravel",1,"color-pure-black","fw-400"],["class","col-lg-12",4,"ngIf"],[1,"d-flex","align-items-center","mt-5"],["type","submit",1,"cr-btn","cr-btn-blue","mr-3",3,"click"],["type","submit",1,"cr-btn","cr-btn-blue","cr-btn-filled",3,"click"],[1,"ml-5"],[1,"mb-3"],[1,"custom-check"],["id","fullTime","type","checkbox","name","fullTime","value","1",3,"change","checked"],["for","fullTime",1,"color-pure-black","fw-400"],["class","row mb-3",4,"ngIf"],["id","contract","type","checkbox","name","contract","value","5","autocomplete","new-avaliability_type",3,"change","checked"],["for","contract",1,"color-pure-black","fw-400"],["id","partTime","type","checkbox","name","partTime","value","2",3,"change","checked"],["for","partTime",1,"color-pure-black","fw-400"],["id","remote","type","checkbox","name","remote","value","3",3,"change","checked"],["for","remote",1,"color-pure-black","fw-400"],[1,"col-6"],["type","text","name","minSalary","id","minSalary","formControlName","f_min",1,"cr-form-control","control-small",3,"change","keyup","keypress","placeholder"],["type","text","name","maxSalary","id","maxSalary","formControlName","f_max",1,"cr-form-control","control-small",3,"keyup","change","keypress","placeholder"],["class","err-container","style","white-space: nowrap",4,"ngIf"],[1,"err-container",2,"white-space","nowrap"],[1,"err-container","ml-4"],["type","text","name","minSalary","id","minSalary","formControlName","c_min",1,"cr-form-control","control-small",3,"change","keyup","keypress","placeholder"],["type","text","name","maxSalary","id","maxSalary","formControlName","c_max",1,"cr-form-control","control-small",3,"keyup","change","keypress","placeholder"],["type","text","name","minSalary","id","minSalary","formControlName","p_min",1,"cr-form-control","control-small",3,"change","keyup","keypress","placeholder"],["type","text","name","maxSalary","id","maxSalary","formControlName","p_max",1,"cr-form-control","control-small",3,"keyup","change","keypress","placeholder"],[1,"mb-3",2,"margin-left","31px"],["id","fullTime","type","checkbox","name","fullTime","formControlName","will_move_project"],[1,"col-lg-12"],["placeholder","Search City","formControlName","city","bindLabel","name","bindValue","id","placeholder","Search city",1,"cr-select","control-medium",3,"items","virtualScroll","multiple","hideSelected"],["class","row mb-2",3,"formGroup",4,"ngIf"],[1,"h6","link","cr-btn-flushed","d-block","color-alice-blue","text-uppercase",3,"click"],[1,"mt-5"],["class","document-item cursor-default",4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","mt-5",2,"justify-content","space-between"],[1,"d-flex","align-items-center","flex-wrap","gap-3"],["type","submit",1,"cr-btn","cr-btn-blue",3,"click"],["type","submit","class","cr-btn cr-btn-blue cr-btn-filled",3,"click",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-end","mt-2"],[1,"row","mb-2",3,"formGroup"],[1,"col-12","mb-4"],["type","text","placeholder","Educational Institute name","formControlName","school",1,"cr-form-control","control-medium",3,"keypress"],["type","text","placeholder","Academic Degree","formControlName","degree",1,"cr-form-control","control-medium",3,"keypress"],["type","text","placeholder","Area of Study","formControlName","area_of_study",1,"cr-form-control","control-medium",3,"keypress"],["bindLabel","name","bindValue","name","placeholder","Start Year","formControlName","date_from","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["bindLabel","name","formControlName","date_to","bindValue","name","placeholder","End Year","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["bindLabel","name","bindValue","name","placeholder","Start year","formControlName","date_from","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["bindLabel","name","formControlName","date_to","bindValue","name","placeholder","End Date","appendTo","body",1,"cr-select","control-medium",3,"change","items","clearable"],["type","hidden","name","id","formControlName","id","autocomplete","new-id"],[1,"document-item","cursor-default"],[1,"material-icons-outlined","color-alice-blue"],[1,"d-flex","align-items-center"],["href","javascript:void(0)",1,"cr-btn-round","flex-shrink-0"],[1,"material-icons-outlined","color-alice-blue","h5","mb-0",3,"click"],["href","javascript:void(0)",1,"cr-btn-round","flex-shrink-0","ml-2"],[1,"material-icons-outlined","color-red","h5","mb-0",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],[1,"modal-body"],["format","png",3,"imageCropped","loadImageFailed","imageChangedEvent","maintainAspectRatio","aspectRatio","resizeToWidth"],["type","button",1,"cr-btn","cr-btn-blue","d-block","ml-auto","mt-5",3,"click"],["id","document-preview-modal",1,"modal-title"],[1,"cr-modal-head-button","ml-auto","mr-3",3,"click","href"],[1,"material-icons-outlined"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","p-4","pt-0","overflow-auto"],[1,"prev-wrap"],["width","100%","height","100%","style","height: 100%",3,"src",4,"ngIf"],["alt","document preview","class","img-contain img-fluid",3,"src",4,"ngIf"],["width","100%","height","100%",2,"height","100%",3,"src"],["alt","document preview",1,"img-contain","img-fluid",3,"src"],["viewer","google","googleCheckContentLoaded","true","googleCheckInterval","3000","googleMaxChecks","1",1,"doc-viewer",2,"width","100%","height","600px",3,"url"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-auto",3,"click"],[1,"modal-body","d-flex","justify-content-center"],["type","button",1,"cr-btn","cr-btn-red",3,"click"],["type","button",1,"cr-btn","cr-btn-blue","ml-4",3,"click"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",15),e.j41(1,"section",16)(2,"aside",17)(3,"div",18)(4,"div",19),e.nrm(5,"img",20),e.k0s(),e.DNE(6,R2,10,2,"div",21),e.j41(7,"div",22)(8,"h3",23),e.
129EFF(9),e.nI1(10,"titlecase"),e.nI1(11,"titlecase"),e.k0s(),e.j41(12,"a",24),e.EFF(13),e.k0s()(),e.j41(14,"div",25)(15,"ul",26)(16,"li",27),e.EFF(17,"My Account"),e.k0s(),e.j41(18,"li",28),e.EFF(19,"Overview"),e.k0s(),e.j41(20,"li",29),e.EFF(21,"Documents"),e.k0s(),e.j41(22,"li",30),e.EFF(23,"Availability"),e.k0s(),e.j41(24,"li",31),e.EFF(25,"Education"),e.k0s()()()(),e.nrm(26,"div",32),e.k0s(),e.j41(27,"div",33),e.DNE(28,fv,64,39,"div",34)(29,vv,13,2,"div",34)(30,Bv,36,14,"div",34)(31,ub,34,4,"div",34)(32,Vb,5,1,"div",34),e.k0s()(),e.DNE(33,Bb,8,4,"ng-template",null,0,e.C5r)(35,Jb,11,3,"ng-template",null,1,e.C5r)(37,zb,11,3,"ng-template",null,2,e.C5r)(39,Hb,9,2,"ng-template",null,3,e.C5r)(41,Wb,9,0,"ng-template",null,4,e.C5r)(43,Zb,9,0,"ng-template",null,5,e.C5r)),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(6),e.Y8G("ngIf",o.isShowProfile),e.R7$(3),e.Lme(" ",e.bMT(10,12,o.user_data.first_name)," ",e.bMT(11,14,o.user_data.last_name)," "),e.R7$(3),e.Mz_("href","mailTo:",o.user_data.email,"",e.B4B),e.R7$(),e.JRh(o.user_data.email),e.R7$(15),e.Y8G("ngIf","myAccount"==o.show_hide_card),e.R7$(),e.Y8G("ngIf","overview"==o.show_hide_card),e.R7$(),e.Y8G("ngIf","documents"==o.show_hide_card),e.R7$(),e.Y8G("ngIf","availability"==o.show_hide_card),e.R7$(),e.Y8G("ngIf","education"==o.show_hide_card))},dependencies:[qe.MD,qe.Sq,qe.bT,qe.PV,lo.xv,lo._D,Hi.EE,Hi.$j,$i.MQ,$i.vr,ne.YN,ne.qT,ne.me,ne.Zm,ne.Fm,ne.BC,ne.cb,ne.vS,ne.cV,ne.X1,ne.j4,ne.JD,di.N,ai.j,ai.P,Ut._B,Dn.Zr],styles:['.js-reg-layout[_ngcontent-%COMP%]{padding-block:15px}.emp-avail-wrap[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.avail-radio[_ngcontent-%COMP%]{position:relative}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{position:absolute;left:0;top:0;opacity:0}.avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{min-width:250px;border-radius:12px;border:2px solid var(--cr-gray-tint-7);padding:15px 30px 15px 55px;font-size:18px;font-weight:500;margin-bottom:0;transition:.3s all}.emp-avail-wrap[_ngcontent-%COMP%]   .avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:18px}.avail-radio[_ngcontent-%COMP%]:not(:last-child){margin-right:15px}.avail-radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{content:"";position:absolute;left:25px;height:20px;border-radius:50%;border:2px solid var(--cr-gray-tint-2);width:20px;top:50%;transform:translateY(-50%);transition:.3s all;box-shadow:0 0 #fff inset}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:var(--cr-teal-blue-tint-9);border-color:var(--cr-teal-blue)}.avail-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{background-color:var(--cr-teal-blue);border-color:var(--cr-teal-blue);box-shadow:0 0 0 2px #fff inset}ul.reg-steps[_ngcontent-%COMP%]{padding-left:60px}.reg-step[_ngcontent-%COMP%]{font-size:12px;color:var(--cr-navy-blue);font-weight:600;text-transform:uppercase;padding-block:20px;padding-right:20px;position:relative}.reg-step[_ngcontent-%COMP%]:before{position:absolute;content:"";left:-30px;height:100%;width:1px;background-color:var(--cr-gray-tint-8);top:50%}.reg-step[_ngcontent-%COMP%]:first-child:before{top:50%}.reg-step[_ngcontent-%COMP%]:last-child:before{top:0;height:0}.reg-step.complete[_ngcontent-%COMP%]:before{background-color:var(--cr-teal-blue)}.reg-step[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;transform:translateY(-50%);width:20px;height:20px;background-color:var(--pure-white);z-index:2;left:-36px;border-radius:50%;border:2px solid var(--cr-gray-tint-5);box-shadow:0 0 0 2px #fff;font-family:Material Icons;color:#fff}.reg-step[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--cr-gray-tint-5)}.reg-step.active[_ngcontent-%COMP%]:after, .reg-step.complete[_ngcontent-%COMP%]:after{content:"\\e876";background-color:var(--cr-teal-blue);border-color:var(--cr-teal-blue);font-size:16px;line-height:1}']})}return i})();const Kb=(i,a,t,n,o,r,s,c)=>({"video-call-page":!0,"two-video-call alternate-call":i,"three-video-call":a,"four-video-call":t,"five-video-call":n,"six-video-call":o,"eighth-video-call":r,"twelve-video-call":s,"sixteen-video-call":c});function e5(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.videoOff())}),e.j41(1,"span",9),e.EFF(2," videocam "),e.k0s()()}}let t5=(()=>{class i{toastr;errorHandler;globals;common;chatservice;calling_data;user_data;name="";apiKey;sessionId;token;session;subscriberOptions;subscriber;publisherOptions;publisher;connectionCount=0;is_video=!1;time=0;waiting=!0;constructor(t,n,o,r,s){this.toastr=t,this.errorHandler=n,this.globals=o,this.common=r,this.chatservice=s}ngOnInit(){let t=localStorage.getItem("calling_data");null!=t&&(this.calling_data=JSON.parse(t));let n=localStorage.getItem("CR_PREF");null!=n&&(this.user_data=JSON.parse(n),this.user_data.hasOwnProperty("first_name")&&(this.name=this.user_data.first_name+" "+this.user_data.last_name+" (Job Seeker)")),this.calling_data&&this.user_data&&(this.sessionId=this.calling_data.calling_data.call_data.session_id,this.calling_data.calling_data.call_data.tokens.forEach(r=>{this.user_data.user_id==r.user_id&&(this.token=r.token,this.initializeSession())}),this.request_to_receiver_call_action(),this.get_receiver_call_action(),this.get_receiver_reject_action(),this.get_receiver_not_answered_action())}initializeSession(){this.apiKey=this.globals.apiKey,this.session=sn.initSession(this.apiKey,this.sessionId),this.session.on("streamCreated",t=>{this.subscriberOptions={insertMode:"append"},this.subscriber=this.session.subscribe(t.stream,"subscriber",this.subscriberOptions,n=>{console.log("streamCreated"),n&&console.log(n)})}),this.publisherOptions={insertMode:"append",width:"100%",height:"100%",
129name:this.name,publishVideo:"1"!=this.calling_data.calling_data.call_data.call_type},this.publisher=sn.initPublisher("subscriber",this.publisherOptions,t=>{t&&console.log(t)}),this.session.connect(this.token,t=>{t?console.log(t):this.session.publish(this.publisher,n=>{n&&console.log(n)})}),this.session.on({connectionCreated:t=>{0==this.connectionCount&&this.call_response_timer(),this.connectionCount++,t.connection.connectionId!=this.session.connection.connectionId&&(console.log("Another client connected. "+this.connectionCount+" total."),this.connectionCount>1&&(this.waiting=!1))},connectionDestroyed:t=>{this.connectionCount--,console.log("A client disconnected. "+this.connectionCount+" total."),(1==this.connectionCount||this.connectionCount<=1)&&setTimeout(()=>{this.disconnectSession()},2e3)}}),this.session.on("signal:message",t=>{console.log(t),console.log(t.data)}),this.session.on("signal:disconnect_by_receiver",t=>{console.log(t),console.log(t.data)})}call_response_timer(){this.time=0;let t=setInterval(()=>{this.time=this.time+1,console.log("time",this.time),this.time>30?(this.toastr.error("Nobody Answered the call."),setTimeout(()=>{this.disconnectCall()},1e3),clearInterval(t)):this.connectionCount>1&&clearInterval(t)},1e3)}request_to_receiver_call_action(){this.chatservice.ot_request_receiver_call_action({calling_id:this.calling_data.calling_data.call_data.calling_id})}get_receiver_call_action(){this.chatservice.ot_get_receiver_call_action().subscribe(t=>{"no_receiver_action"==t.type?setTimeout(()=>{this.connectionCount<=1&&this.request_to_receiver_call_action()},2e3):"single_reject"==t.type?setTimeout(()=>{this.connectionCount<=1?(this.toastr.error(t.receiver_detail.first_name+" "+t.receiver_detail.last_name+" rejected call"),this.request_to_receiver_call_action()):(this.toastr.error(t.receiver_detail.first_name+" "+t.receiver_detail.last_name+" rejected call"),this.disconnectCall())},1e3):"all_reject"==t.type&&(this.toastr.error("Nobody Answered the call."),setTimeout(()=>{this.disconnectCall()},1e3))},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}get_receiver_reject_action(){this.chatservice.ot_receiver_reject_action().subscribe(t=>{"single_reject"==t.type&&t.calling_id==this.calling_data.calling_data.call_data.calling_id?(this.toastr.error(1==t.receiver_detail.is_received?this.connectionCount<2?t.receiver_detail.first_name+" disconnected the call.":t.receiver_detail.first_name+" has left the call.":t.receiver_detail.first_name+" rejected the call."),setTimeout(()=>this.disconnectCall(),1e3)):"all_reject"==t.type&&t.calling_id==this.calling_data.calling_data.call_data.calling_id&&(this.toastr.error("Everyone rejected your call"),setTimeout(()=>this.disconnectCall(),1e3))})}get_receiver_not_answered_action(){this.chatservice.ot_get_receiver_not_answered_action().subscribe(t=>{t.calling_id==this.calling_data.calling_data.call_data.calling_id&&this.connectionCount>1&&this.toastr.error(t.user_details+" not answered the call.")})}call_btn(){}disconnectCall(){let t=this.calling_data.calling_data.call_data.calling_id,n=this.calling_data.calling_data.call_data.caller_id,o=this.calling_data.calling_data.call_data.tokens;this.connectionCount<=2||n==this.user_data.user_id?this.common.call_disconnect_by_host({calling_id:t}).subscribe(s=>{0!=o.length&&o.forEach(c=>{c.user_id!=n&&this.chatservice.ot_cancel_call_by_host({data:{user_id:c.user_id,calling_id:t}})}),this.disconnectSession()},s=>{this.globals.loading=!1,this.errorHandler.handleError(s)}):this.session.signal({type:"message",data:{type:"disconnect",data:this.calling_data}},s=>{s?console.log("Error sending signal:",s.name,s.message):this.disconnectSession()})}videoOff(){this.is_video=!this.is_video,this.publisher.publishVideo(this.is_video)}disconnectSession(){console.log("disconnectSession"),this.session.disconnect(),this.clear_localData();var t=window.self;t.opener=window.self,t.close()}clear_localData(){localStorage.removeItem("calling_data")}static \u0275fac=function(n){return new(n||i)(e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(Qt.E),e.rXU(ni.h),e.rXU(Fo.m))};static \u0275cmp=e.VBU({type:i,selectors:[["app-j-calling"]],standalone:!0,features:[e.aNF],decls:15,vars:14,consts:[[1,"call-wrap",2,"margin-top","-65px"],[1,"",3,"hidden"],["id","subscriber",3,"ngClass"],[1,"call-content"],[1,"call-text",3,"hidden"],[1,"dot-flashing"],[1,"h1","mb-0"],[1,"call-button-list"],[1,"call-btn","call-end",3,"click"],[1,"material-icons"],["class","call-btn",3,"click",4,"ngIf"],[1,"call-btn",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2),e.k0s(),e.j41(3,"div",3)(4,"div",4)(5,"h3"),e.EFF(6," Waiting for reciever to pick up the call "),e.nrm(7,"div",5),e.k0s(),e.j41(8,"p",6),e.EFF(9),e.k0s()(),e.j41(10,"div",7)(11,"button",8),e.bIt("click",function(){return o.disconnectCall()}),e.j41(12,"span",9),e.EFF(13," call_end "),e.k0s()(),e.DNE(14,e5,3,0,"button",10),e.k0s()()()),2&n&&(e.R7$(),e.Y8G("hidden",o.connectionCount<=1),e.R7$(),e.Y8G("ngClass",e.lV(5,Kb,0==o.connectionCount||2==o.connectionCount,3==o.connectionCount,4==o.connectionCount,5==o.connectionCount,6==o.connectionCount,o.connectionCount>6&&o.connectionCount<=8,o.connectionCount>8&&o.connectionCount<=16,o.connectionCount>16)),e.R7$(2),e.Y8G("hidden",o.connectionCount>1||!o.waiting),e.R7$(5),e.SpI(" (If call doesn't connect in ",o.time>30?"0":30-o.time," seconds, it will automatically disconnect.) "),e.R7$(5),e.Y8G("ngIf","1"!=(null==o.calling_data||null==o.calling_data.calling_data||null==o.calling_data.calling_data.call_data?null:o.calling_data.calling_data.call_data.call_type)))},dependencies:[qe.MD,qe.YU,qe.bT,Ut._B],styles:['.call-wrap[_ngcontent-%COMP%]{width:100%;height:100vh;position:relative;overflow:hidden;background-color:var(--cr-gray-tint-3)}.call-screen[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.call-content[_ngcontent-%COMP%]{position:absolute;text-align:center;top:50%;left:50%;transform:translate(-50%,-50%);
129height:100%;display:flex;flex-direction:column;justify-content:center;width:100%;z-index:100}.call-text[_ngcontent-%COMP%]{color:#fff}.call-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:40px;font-weight:800;margin-bottom:25px;display:flex;align-items:baseline;justify-content:center}.call-button-list[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:20px;position:absolute;left:50%;transform:translate(-50%);bottom:5%}.call-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:50px;height:50px;border:none;box-shadow:0 4px 10px #0000007f;transition:.3s all}.call-btn[_ngcontent-%COMP%]:hover{background-color:#d8d8d8}.call-btn[_ngcontent-%COMP%]:active{background-color:silver;box-shadow:0 2px 10px #0000007f}.call-btn.call-end[_ngcontent-%COMP%]{background-color:red;color:#fff}.call-btn.call-end[_ngcontent-%COMP%]:hover{background-color:#e60000}.call-btn.call-end[_ngcontent-%COMP%]:active{background-color:#c00}.dot-flashing[_ngcontent-%COMP%]{position:relative;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite linear alternate;animation-delay:.5s;margin-left:20px}.dot-flashing[_ngcontent-%COMP%]:before, .dot-flashing[_ngcontent-%COMP%]:after{content:"";display:inline-block;position:absolute;top:0}.dot-flashing[_ngcontent-%COMP%]:before{left:-15px;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite alternate;animation-delay:0s}.dot-flashing[_ngcontent-%COMP%]:after{left:15px;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite alternate;animation-delay:1s}@keyframes _ngcontent-%COMP%_dotFlashing{0%{background-color:#f4f4f4}50%,to{background-color:#c2c2c2}}']})}return i})();const i5=(i,a,t,n,o,r,s,c)=>({"video-call-page":!0,"two-video-call alternate-call":i,"three-video-call":a,"four-video-call":t,"five-video-call":n,"six-video-call":o,"eighth-video-call":r,"twelve-video-call":s,"sixteen-video-call":c});function n5(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.videoOff())}),e.j41(1,"span",7),e.EFF(2," videocam "),e.k0s()()}}let o5=(()=>{class i{toastr;errorHandler;globals;common;chatservice;calling_data;user_data;name="";apiKey;sessionId;token;session;subscriberOptions;subscriber;publisherOptions;publisher;connectionCount=0;is_video=!1;waiting=!0;constructor(t,n,o,r,s){this.toastr=t,this.errorHandler=n,this.globals=o,this.common=r,this.chatservice=s}ngOnInit(){let t=localStorage.getItem("calling_data");null!=t&&(this.calling_data=JSON.parse(t));let n=localStorage.getItem("CR_PREF");null!=n&&(this.user_data=JSON.parse(n),this.user_data.hasOwnProperty("first_name")&&(this.name=this.user_data.first_name+" "+this.user_data.last_name+" (Job Seeker)")),this.calling_data&&this.user_data&&(this.sessionId=this.calling_data.session_id,this.calling_data.tokens.forEach(r=>{this.user_data.user_id==r.user_id&&(this.token=r.token,this.initializeSession(),setTimeout(()=>{let s=this.chatservice.ot_get_socket_data(),c={action:1,calling_id:this.calling_data.calling_id,socket_id:s.id};this.common.action_call(c).subscribe(u=>{console.log("res",u),console.log("obj",c)},u=>{this.globals.loading=!1,this.errorHandler.handleError(u)})},500))})),this.ot_cancel_call_by_host_receiving(),this.ot_get_cancel_call_by_host()}initializeSession(){this.apiKey=this.globals.apiKey,this.session=OT.initSession(this.apiKey,this.sessionId),this.session.on("streamCreated",t=>{console.log("stream created event",t),this.subscriberOptions={insertMode:"append"},this.subscriber=this.session.subscribe(t.stream,"subscriber",this.subscriberOptions,n=>{n&&console.log(n)})}),this.session.on("streamDestroyed",t=>{this.calling_data.caller_id!=t.stream.connection.data&&this.toastr.error("error",t.stream.name+" has left the call.")}),this.publisherOptions={insertMode:"append",width:"100%",height:"100%",name:this.name,publishVideo:"1"
129!=this.calling_data.call_type},this.publisher=OT.initPublisher("subscriber",this.publisherOptions,t=>{t&&console.log(t)}),this.session.connect(this.token,t=>{t?console.log(t):this.session.publish(this.publisher,n=>{n&&console.log(n)})}),this.session.on("signal:message",t=>{console.log(176),this.toastr.success("Call disconnected by host"),setTimeout(()=>{this.disconnectSession()},2e3)}),this.session.on({connectionCreated:t=>{this.connectionCount++,t.connection.connectionId!=this.session.connection.connectionId&&(console.log("Another client connected. "+this.connectionCount+" total."),this.connectionCount>1&&(this.waiting=!1))},connectionDestroyed:t=>{this.connectionCount--,(1==this.connectionCount||this.connectionCount<=1)&&setTimeout(()=>{this.disconnectSession()},2e3)}})}call_btn(){}ot_cancel_call_by_host_receiving(){this.chatservice.ot_cancel_call_by_host_receiving().subscribe(t=>{this.toastr.success("Call disconnected by host"),setTimeout(()=>{this.disconnectSession()},2e3)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}disconnectCall(){let t=this.calling_data.calling_id,n=this.calling_data.caller_id,o=this.calling_data.tokens;null!=t&&localStorage.setItem("call_ended_by_me",String(t));const r={calling_id:t},s={action:2,calling_id:t};let c=!1;const u=()=>{c||(c=!0,this.disconnectSession())},h=setTimeout(u,5e3);2==this.connectionCount?(this.session.signal({type:"disconnect_by_receiver",data:{type:"disconnect_by_receiver"}},g=>{g&&console.log("Error sending signal:",g.name,g.message)}),this.common.call_disconnect_by_host(r).subscribe(g=>{0!=o.length&&o.forEach(b=>{b.user_id!=n&&3==b.device_type&&this.chatservice.ot_cancel_call_by_host({data:{user_id:b.user_id,calling_id:t}})})},g=>{this.globals.loading=!1,this.errorHandler.handleError(g)}),this.common.action_call(s).subscribe(g=>{clearTimeout(h),this.chatservice.ot_request_receiver_reject_action(r),u()},g=>{clearTimeout(h),this.globals.loading=!1,this.errorHandler.handleError(g),u()})):this.common.action_call(s).subscribe(v=>{clearTimeout(h),this.chatservice.ot_request_receiver_reject_action(r),u()},v=>{clearTimeout(h),this.globals.loading=!1,this.errorHandler.handleError(v),u()})}videoOff(){this.publisher.publishVideo(this.is_video),this.is_video=!this.is_video}disconnectSession(){this.session.disconnect(),this.clear_localData();var t=window.self;t.opener=window.self,t.close()}ot_get_cancel_call_by_host(){this.chatservice.ot_get_cancel_call_by_host().subscribe(t=>{this.toastr.success("Call disconnected by host"),setTimeout(()=>{this.disconnectSession()},2e3)},t=>{this.globals.loading=!1,this.errorHandler.handleError(t)})}clear_localData(){localStorage.removeItem("calling_data")}static \u0275fac=function(n){return new(n||i)(e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(Qt.E),e.rXU(ni.h),e.rXU(Fo.m))};static \u0275cmp=e.VBU({type:i,selectors:[["app-j-receiving"]],standalone:!0,features:[e.aNF],decls:10,vars:13,consts:[[1,"call-wrap",2,"margin-top","-65px"],[1,"",3,"hidden"],["id","subscriber",3,"ngClass"],[1,"call-content"],[1,"call-text",3,"hidden"],[1,"call-button-list"],[1,"call-btn","call-end",3,"click"],[1,"material-icons"],["class","call-btn",3,"click",4,"ngIf"],[1,"call-btn",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2),e.k0s(),e.j41(3,"div",3),e.nrm(4,"div",4),e.j41(5,"div",5)(6,"button",6),e.bIt("click",function(){return o.disconnectCall()}),e.j41(7,"span",7),e.EFF(8," call_end "),e.k0s()(),e.DNE(9,n5,3,0,"button",8),e.k0s()()()),2&n&&(e.R7$(),e.Y8G("hidden",o.connectionCount<=1),e.R7$(),e.Y8G("ngClass",e.lV(4,i5,0==o.connectionCount||2==o.connectionCount,3==o.connectionCount,4==o.connectionCount,5==o.connectionCount,6==o.connectionCount,o.connectionCount>6&&o.connectionCount<=8,o.connectionCount>8&&o.connectionCount<=16,o.connectionCount>16)),e.R7$(2),e.Y8G("hidden",o.connectionCount>1||!o.waiting),e.R7$(5),e.Y8G("ngIf","1"!=(null==o.calling_data||null==o.calling_data.calling_data||null==o.calling_data.calling_data.call_data?null:o.calling_data.calling_data.call_data.call_type)))},dependencies:[qe.MD,qe.YU,qe.bT,Ut._B],styles:['.call-wrap[_ngcontent-%COMP%]{width:100%;height:100vh;position:relative;overflow:hidden;background-color:var(--cr-gray-tint-3)}.call-screen[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.call-content[_ngcontent-%COMP%]{position:absolute;text-align:center;top:50%;left:50%;transform:translate(-50%,-50%);
129height:100%;display:flex;flex-direction:column;justify-content:center;width:100%;z-index:100}.call-text[_ngcontent-%COMP%]{color:#fff}.call-text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:40px;font-weight:800;margin-bottom:25px;display:flex;align-items:baseline;justify-content:center}.call-button-list[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:20px;position:absolute;left:50%;transform:translate(-50%);bottom:5%}.call-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:50px;height:50px;border:none;box-shadow:0 4px 10px #0000007f;transition:.3s all}.call-btn[_ngcontent-%COMP%]:hover{background-color:#d8d8d8}.call-btn[_ngcontent-%COMP%]:active{background-color:silver;box-shadow:0 2px 10px #0000007f}.call-btn.call-end[_ngcontent-%COMP%]{background-color:red;color:#fff}.call-btn.call-end[_ngcontent-%COMP%]:hover{background-color:#e60000}.call-btn.call-end[_ngcontent-%COMP%]:active{background-color:#c00}.dot-flashing[_ngcontent-%COMP%]{position:relative;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite linear alternate;animation-delay:.5s;margin-left:20px}.dot-flashing[_ngcontent-%COMP%]:before, .dot-flashing[_ngcontent-%COMP%]:after{content:"";display:inline-block;position:absolute;top:0}.dot-flashing[_ngcontent-%COMP%]:before{left:-15px;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite alternate;animation-delay:0s}.dot-flashing[_ngcontent-%COMP%]:after{left:15px;width:10px;height:10px;border-radius:5px;background-color:#fff;color:#fff;animation:_ngcontent-%COMP%_dotFlashing 1s infinite alternate;animation-delay:1s}@keyframes _ngcontent-%COMP%_dotFlashing{0%{background-color:#f4f4f4}50%,to{background-color:#c2c2c2}}']})}return i})();var r5=ze(63353);const a5=["stepAnsModal"],s5=["resume_show"],l5=["visa_proof_show"],c5=["showDocsModal"],d5=(i,a,t,n,o)=>({"a-bg-white":i,"a-bg-green":a,"a-bg-red":t,"a-bg-yellow":n,"a-bg-purple":o});function u5(i,a){if(1&i&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"h6",15),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.SpI(" ",null==t.onboardData||null==t.onboardData.jobpostData?null:t.onboardData.jobpostData.job_title," "),e.R7$(2),e.SpI(" ",e.bMT(5,2,null==t.onboardData||null==t.onboardData.jobpostData?null:t.onboardData.jobpostData.company_name)," ")}}function p5(i,a){1&i&&(e.j41(0,"div",40)(1,"span",41),e.EFF(2," check_circle "),e.k0s()())}function _5(i,a){1&i&&(e.j41(0,"span",42),e.EFF(1,"Rejected"),e.k0s())}function h5(i,a){1&i&&(e.j41(0,"span",43),e.EFF(1,"Inprogress"),e.k0s())}function f5(i,a){1&i&&(e.j41(0,"span",44),e.EFF(1,"Completed"),e.k0s())}function m5(i,a){1&i&&(e.j41(0,"span",45),e.EFF(1,"Pending"),e.k0s())}function g5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Jobseeker"),e.k0s())}function v5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Ext. Rec."),e.k0s())}function b5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Int. Rec."),e.k0s())}function y5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Vendor"),e.k0s())}function k5(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",19),e.bIt("click",function(){const o=e.eBV(t),r=o.$implicit,s=o.index,c=e.XpG(3),u=e.sdS(3);return e.Njj(c.openQuestionModal(u,"medium",r,s+1))}),e.j41(1,"div",20)(2,"div",21)(3,"div",22),e.DNE(4,p5,3,0,"div",23),e.j41(5,"div",24),e.EFF(6),e.k0s()(),e.DNE(7,_5,2,0,"span",25)(8,h5,2,0,"span",26)(9,f5,2,0,"span",27)(10,m5,2,0,"span",28),e.k0s()(),e.nrm(11,"div",29),e.j41(12,"div",30)(13,"h6",31),e.EFF(14),e.k0s(),e.j41(15,"div",32)(16,"div",33)(17,"span",34),e.EFF(18," schedule "),e.k0s(),e.j41(19,"span",35),e.EFF(20),e.k0s()(),e.j41(21,"div",36)(22,"span",34),e.EFF(23," calendar_today "),e.k0s(),e.j41(24,"span",35),e.EFF(25),e.k0s()()(),e.j41(26,"h6",37),e.EFF(27," Assign to: "),e.DNE(28,g5,2,0,"span",38)(29,v5,2,0,"span",38)(30,b5,2,0,"span",38)(31,y5,2,0,"span",38),e.j41(32,"span",39),e.EFF(33),e.k0s()()()()}if(2&i){const t=a.$implicit,n=a.index;e.Y8G("ngClass",e.s1E(15,d5,0==(null==t?null:t.status),2==(null==t?null:t.status)||1==(null==t?null:t.status),3==(null==t?null:t.status),4==(null==t?null:t.status),1==(null==t?null:t.isPending))),e.R7$(4),e.Y8G("ngIf",2==(null==t?null:t.status)),e.R7$(2),e.SpI("step ",n+1,""),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",4==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",1==(null==t?null:t.status)||2==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf",1==(null==t?null:t.isPending)),e.R7$(4),e.JRh(null==t?null:t.question),e.R7$(6),e.JRh(null==t?null:t.agoTime),e.R7$(5),e.JRh(null==t?null:t.createdDate),e.R7$(3),e.Y8G("ngIf",1==(null==t?null:t.assign_to)),e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.assign_to)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.assign_to)),e.R7$(),e.Y8G("ngIf",4==(null==t?null:t.assign_to)),e.R7$(2),e.SpI(" ",1==(null==t?null:t.assign_to)?(null==t?null:t.jobseeker_name.length)<20?"("+(null==t?null:t.jobseeker_name)+")":"("+(null==t?null:t.jobseeker_name.slice(0,20))+"...)":2==(null==t?null:t.assign_to)?(null==t?null:t.ext_rec_name.length)<20?"("+(null==t?null:t.ext_rec_name)+")":"("+(null==t?null:t.ext_rec_name.slice(0,20))+"...)":3==(null==t?null:t.assign_to)?(null==t?null:t.rec_name.length)<20?"("+(null==t?null:t.rec_name)+")":"("+(null==t?null:t.rec_name.slice(0,20))+"...)":4==(null==t?null:t.assign_to)?(null==t?null:t.vendor_name.length)<20?"("+(null==t?null:t.vendor_name)+")":"("+(null==t?null:t.vendor_name.slice(0,20))+"...)":""," ")}}function w5(i,a){1&i&&(e.j41(0,"div",46)(1,"div",47)(2,"span",48),e.EFF(3,"handshake"),e.k0s(),e.j41(4,"div",49),e.EFF(5,"Onboarded"),e.k0s()()())}function x5(i,a){if(1&i&&(e.j41(0,"div",16),e.DNE(1,k5,34,21,"div",17)(2,w5,6,0,"div",18),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==t.onboardData?null:t.onboardData.questionList),e.R7$(),e.Y8G("ngIf",1==(null==t.onboardData?null:t.onboardData.isCompleted))}}function C5(i,a){1&i&&(e.j41(0,"div")(1,"div",50)(2,"div",51)(3,"div",52),e.nrm(4,"img",53),e.k0s(),e.j41(5,"h3",54),e.EFF(6,"No Onboarding yet"),e.k0s(),e.j41(7,"h5",55),e.EFF(8," Your onboarding list is currently empty. "),e.k0s(),e.j41(9,"p",56),e.EFF(10," Once a client initiates onboarding, it will appear here automatically. "),e.k0s()()()())}function j5(i,a){if(1&i&&(e.j41(0,"div",8)(1,"div",9),e.DNE(2,u5,6,4,"div",10),e.nI1(3,"json"),e.DNE(4,x5,3,2,"div",11),e.nI1(5,"json"),e.DNE(6,C5,11,0,"div",12),e.nI1(7,"json"),e.k0s()()),2&i){const t=e.XpG();e.R7$(2),e.Y8G("ngIf","{}"!=e.bMT(3,3,t.onboardData)),e.R7$(2),e.Y8G("ngIf","{}"!=e.bMT(5,5,t.onboardData)),e.R7$(2),e.Y8G("ngIf","{}"==e.bMT(7,7,t.onboardData))}}function F5(i,a){1&i&&(e.j41(0,"span",42),e.EFF(1,"Rejected"),e.k0s())}function S5(i,a){1&i&&(e.j41(0,"span",43),e.EFF(1,"Inprogress"),e.k0s())}function E5(i,a){1&i&&(e.j41(0,"span",44),e.EFF(1,"Completed"),e.k0s())}function R5(i,a){1&i&&(e.j41(0,"span",45),e.EFF(1,"Pending"),e.k0s())}function T5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Jobseeker"),e.k0s())}function I5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"External Recruiter"),e.k0s())}function D5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Internal Recruiter"),e.k0s())}function P5(i,a){1&i&&(e.j41(0,"span",39),e.EFF(1,"Vendor"),e.k0s())}function N5(i,a){1&i&&(e.j41(0,"div",86),e.EFF(1," Completed "),e.k0s())}function M5(i,a){1&i&&(e.j41(0,"div",88),e.EFF(1," Rejected "),e.k0s())}function O5(i,a){if(1&i&&e.DNE(0,M5,2,0,"div",87),2&i){const t=e.XpG().$implicit,n=e.sdS(5);e.Y8G("ngIf",3==(null==t?null:t.response_status))("ngIfElse",n)}}function A5(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending Approval "),e.k0s())}function G5(i,a){if(1&i&&e.DNE(0,A5,2,0,"div",89),2&i){const t=e.XpG().$implicit;e.Y8G("ngIf",1==(null==t?null:t.response_status))}}function L5(i,a){if(1&i&&(e.j41(0,"h6",91),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.reject_reason," ")}}function q5(i,a){if(1&i&&(e.j41(0,"div",73),e.DNE(1,N5,2,0,"div",74)(2,O5,1,2,"ng-template",null,4,e.C5r)(4,G5,1,1,"ng-template",null,5,e.C5r),e.j41(6,"div",75)(7,"div",76),e.nrm(8,"div",77)(9,"div",78),e.k0s()(),e.j41(10,"div",79)(11,"div",80)(12,"div",81)(13,"span",82),e.EFF(14,"schedule"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.j41(17,"div",83)(18,"span",82),e.EFF(19,"calendar_today"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.k0s()()(),e.j41(22,"div")(23,"h5",84)(24,"span",39),e.EFF(25," Ans: "),e.k0s(),e.EFF(26),e.k0s()(),e.DNE(27,L5,2,1,"h6",85),e.k0s()()),2&i){const t=a.$implicit,n=e.sdS(3);e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.response_status))("ngIfElse",n),e.R7$(6),e.Y8G("ngClass",2==(null==t?null:t.response_status)?"green":3==(null==t?null:t.response_status)?"red":""),e.R7$(9),e.JRh(null==t?null:t.agoTime),e.R7$(5),e.JRh(null==t?null:t.createdDate),e.R7$(5),e.SpI("",null==t?null:t.response," "),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.response_status))}}function V5(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending "),e.k0s())}function B5(i,a){1&i&&(e.j41(0,"div",75)(1,"div",94),e.nrm(2,"div",77)(3,"div",78),e.k0s()())}function $5(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",73),e.DNE(1,V5,2,0,"div",89)(2,B5,4,0,"div",92),e.j41(3,"div",79)(4,"div",80)(5,"div",81)(6,"span",82),e.EFF(7,"schedule"),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s()(),e.j41(10,"div",83)(11,"span",82),e.EFF(12,"calendar_today"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()()(),e.j41(15,"textarea",93),e.bIt("keyup",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.textfieldAnswer=o.target.value)}),e.k0s()()()}if(2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(7),e.JRh(null==t.questionData?null:t.questionData.agoTime),e.R7$(5),e.JRh(null==t.questionData?null:t.questionData.createdDate),e.R7$(),e.Y8G("disabled",1==(null==t.questionData?null:t.questionData.isDisabeSubmit))}}function Y5(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,q5,28,7,"div",71)(2,$5,16,5,"div",72),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.jobseeker_responses),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isShowField))}}function J5(i,a){1&i&&(e.j41(0,"div",86),e.EFF(1," Completed "),e.k0s())}function U5(i,a){1&i&&(e.j41(0,"div",88),e.EFF(1," Rejected "),e.k0s())}function X5(i,a){if(1&i&&e.DNE(0,U5,2,0,"div",87),2&i){const t=e.XpG().$implicit,n=e.sdS(5);e.Y8G("ngIf",3==(null==t?null:t.response_status))("ngIfElse",n)}}function z5(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending Approval "),e.k0s())}function H5(i,a){if(1&i&&e.DNE(0,z5,2,0,"div",89),2&i){const t=e.XpG().$implicit;e.Y8G("ngIf",1==(null==t?null:t.response_status))}}function W5(i,a){1&i&&e.nrm(0,"img",109)}function Z5(i,a){1&i&&e.nrm(0,"img",110)}function Q5(i,a){1&i&&e.nrm(0,"img",111)}function K5(i,a){1&i&&(e.j41(0,"a",112)(1,"i",113),e.EFF(2,"close"),e.k0s()())}function e4(i,a){if(1&i&&(e.j41(0,"div",99)(1,"div",100),e.DNE(2,W5,1,0,"img",101)(3,Z5,1,0,"img",102)(4,Q5,1,0,"img",103),e.k0s(),e.j41(5,"div",104)(6,"div",105)(
1297,"h6",106),e.EFF(8),e.k0s(),e.j41(9,"p",107),e.EFF(10),e.k0s()(),e.DNE(11,K5,3,0,"a",108),e.k0s()()),2&i){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("ngIf","docx"==(null==t?null:t.document_type)||"doc"==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf","jpg"==(null==t?null:t.document_type)||"jpeg"==(null==t?null:t.document_type)||"png"==(null==t?null:t.document_type)),e.R7$(),e.Y8G("ngIf","pdf"==(null==t?null:t.document_type)),e.R7$(4),e.SpI(" ",null==t?null:t.response," "),e.R7$(2),e.JRh(null==t?null:t.file_size),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.response_status))}}function t4(i,a){if(1&i&&(e.j41(0,"h6",91),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.reject_reason," ")}}function i4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",73),e.DNE(1,J5,2,0,"div",74)(2,X5,1,2,"ng-template",null,4,e.C5r)(4,H5,1,1,"ng-template",null,5,e.C5r),e.j41(6,"div",75)(7,"div",76),e.nrm(8,"div",77)(9,"div",78),e.k0s()(),e.j41(10,"div",95)(11,"div",80)(12,"div",81)(13,"span",82),e.EFF(14,"schedule"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.j41(17,"div",83)(18,"span",82),e.EFF(19,"calendar_today"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.k0s()()(),e.j41(22,"div",96)(23,"div",97),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.openPdfViwer("view_doc",o))}),e.DNE(24,e4,12,6,"div",98),e.k0s()(),e.DNE(25,t4,2,1,"h6",85),e.k0s()()}if(2&i){const t=a.$implicit,n=e.sdS(3);e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.response_status))("ngIfElse",n),e.R7$(6),e.Y8G("ngClass",2==(null==t?null:t.response_status)?"green":3==(null==t?null:t.response_status)?"red":""),e.R7$(9),e.JRh(null==t?null:t.agoTime),e.R7$(5),e.JRh(null==t?null:t.createdDate),e.R7$(3),e.Y8G("ngIf",null!=(null==t?null:t.document_url)),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.response_status))}}function n4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending "),e.k0s())}function o4(i,a){1&i&&(e.j41(0,"div",75)(1,"div",94),e.nrm(2,"div",77)(3,"div",78),e.k0s()())}function r4(i,a){if(1&i){const t=e.RV6();e.j41(0,"label",116)(1,"span",117),e.EFF(2," image "),e.k0s(),e.j41(3,"input",118),e.bIt("change",function(o){e.eBV(t);const r=e.XpG().$implicit,s=e.XpG(4);return e.Njj(s.documentChoose(o,r))}),e.k0s(),e.j41(4,"span",119),e.EFF(5),e.k0s(),e.j41(6,"div",120)(7,"span",121),e.EFF(8," file_upload "),e.k0s(),e.j41(9,"span"),e.EFF(10,"Upload"),e.k0s()()()}if(2&i){const t=e.XpG(),n=t.$implicit,o=t.index,r=e.XpG(4);e.Mz_("for","upload-document",o,""),e.Y8G("ngClass",1==(null==n?null:n.isDisabled)?"disabled":""),e.R7$(3),e.Mz_("id","upload-document",o,""),e.Y8G("disabled",1==(null==r.questionData?null:r.questionData.isDisabeSubmit)||1==(null==n?null:n.isDisabled)||1!=(null==r.questionData?null:r.questionData.assign_to)),e.R7$(2),e.JRh(null==n?null:n.option_name)}}function a4(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,r4,11,7,"label",115),e.k0s()),2&i){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",1!=(null==t?null:t.isDisabled))}}function s4(i,a){if(1&i&&(e.j41(0,"div",73),e.DNE(1,n4,2,0,"div",89)(2,o4,4,0,"div",92),e.j41(3,"div",79)(4,"div",80)(5,"div",81)(6,"span",82),e.EFF(7,"schedule"),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s()(),e.j41(10,"div",83)(11,"span",82),e.EFF(12,"calendar_today"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()()(),e.DNE(15,a4,2,1,"div",114),e.k0s()()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(7),e.JRh(null==t.questionData?null:t.questionData.agoTime),e.R7$(5),e.JRh(null==t.questionData?null:t.questionData.createdDate),e.R7$(),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.onboard_question_options)}}function l4(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,i4,26,7,"div",71)(2,s4,16,5,"div",72),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.jobseeker_responses),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isShowDoaumentFields)&&(1==(null==t.questionData?null:t.questionData.assign_to)||0==(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)))}}function c4(i,a){1&i&&(e.j41(0,"div",86),e.EFF(1," Completed "),e.k0s())}function d4(i,a){1&i&&(e.j41(0,"div",88),e.EFF(1," Rejected "),e.k0s())}function u4(i,a){if(1&i&&e.DNE(0,d4,2,0,"div",87),2&i){const t=e.XpG().$implicit,n=e.sdS(5);e.Y8G("ngIf",3==(null==t?null:t.response_status))("ngIfElse",n)}}function p4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending Approval "),e.k0s())}function _4(i,a){if(1&i&&e.DNE(0,p4,2,0,"div",89),2&i){const t=e.XpG().$implicit;e.Y8G("ngIf",1==(null==t?null:t.response_status))}}function h4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",125)(1,"input",126),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.checkRadioStatus(o))}),e.k0s(),e.j41(2,"label",127),e.EFF(3),e.k0s()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(),r=o.$implicit,s=o.index;e.R7$(),e.FCK("id","radiobtn-",n,"-",s,""),e.FS9("value",null==t?null:t.id),e.Y8G("disabled",!0)("checked",(null==t?null:t.id)==r.question_option_id),e.R7$(),e.FCK("for","radiobtn-",n,"-",s,""),e.R7$(),e.SpI(" ",null==t?null:t.option_name," ")}}function f4(i,a){if(1&i&&(e.j41(0,"h6",91),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.reject_reason," ")}}function m4(i,a){if(1&i&&(e.j41(0,"div",123),e.DNE(1,c4,2,0,"div",74)(2,u4,1,2,"ng-template",null,4,e.C5r)(4,_4,1,1,"ng-template",null,5,e.C5r),e.j41(6,"div",75)(7,"div",76),e.nrm(8,"div",77)(9,"div",78),e.k0s()(),e.j41(10,"div",79)(11,"div",80)(12,"div",81)(13,"span",82),e.EFF(14,"schedule"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.j41(17,"div",83)(18,"span",82),e.EFF(19,"calendar_today"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.k0s()()(),e.j41(22,"div"),e.DNE(23,h4,4,10,"div",124),e.k0s(),e.DNE(24,f4,2,1,"h6",85),e.k0s()()),2&i){const t=a.$implicit,n=e.sdS(3),o=e.XpG(3);e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.response_status))("ngIfElse",n),e.R7$(6),e.Y8G("ngClass",2==(null==t?null:t.response_status)?"green":3==(null==t?null:t.response_status)?"red":""),e.R7$(9),e.JRh(null==t?null:t.agoTime),e.R7$(5),e.JRh(null==t?null:t.createdDate),e.R7$(2),e.Y8G("ngForOf",null==o.questionData?null:o.questionData.onboard_question_options),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.response_status))}}function g4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending "),e.k0s())}function v4(i,a){1&i&&(e.j41(0,"div",75)(1,"div",94),e.nrm(2,"div",77)(3,"div",78),e.k0s()())}function b4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",125)(1,"input",128),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.checkRadioStatus(o))}),e.k0s(),e.j41(2,"label",127),e.EFF(3),e.k0s()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(4);e.R7$(),e.Mz_("id","designing-",n,""),e.FS9("value",null==t?null:t.id),e.Y8G("disabled",1==(null==o.questionData?null:o.questionData.isDisabeSubmit)),e.R7$(),e.Mz_("for","designing-",n,""),e.R7$(),e.SpI(" ",null==t?null:t.option_name," ")}}function y4(i,a){if(1&i&&(e.j41(0,"div",73),e.DNE(1,g4,2,0,"div",89)(2,v4,4,0,"div",92),e.j41(3,"div",79)(4,"div",80)(5,"div",81)(6,"span",82),e.EFF(7,"schedule"),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s()(),e.j41(10,"div",83)(11,"span",82),e.EFF(12,"calendar_today"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()()(),e.j41(15,"div"),e.DNE(16,b4,4,7,"div",124),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(7),e.JRh(null==t.questionData?null:t.questionData.agoTime),e.R7$(5),e.JRh(null==t.questionData?null:t.questionData.createdDate),e.R7$(2),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.onboard_question_options)}}function k4(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,m4,25,7,"div",122)(2,y4,17,5,"div",72),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.jobseeker_responses),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isShowField))}}function w4(i,a){1&i&&(e.j41(0,"div",86),e.EFF(1," Completed "),e.k0s())}function x4(i,a){1&i&&(e.j41(0,"div",88),e.EFF(1," Rejected "),e.k0s())}function C4(i,a){if(1&i&&e.DNE(0,x4,2,0,"div",87),2&i){const t=e.XpG().$implicit,n=e.sdS(5);e.Y8G("ngIf",3==(null==t?null:t.response_status))("ngIfElse",n)}}function j4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending Approval "),e.k0s())}
129function F4(i,a){if(1&i&&e.DNE(0,j4,2,0,"div",89),2&i){const t=e.XpG().$implicit;e.Y8G("ngIf",1==(null==t?null:t.response_status))}}function S4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",130)(1,"input",131),e.bIt("change",function(o){const r=e.eBV(t).index,s=e.XpG(4);return e.Njj(s.checkboxStatus(o,r))}),e.k0s(),e.j41(2,"label",127),e.EFF(3),e.k0s()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(),r=o.$implicit,s=o.index;e.R7$(),e.FCK("id","questionCheck",n,"-",s,""),e.FS9("value",null==t?null:t.id),e.Y8G("disabled",!0)("checked",!!r.response.includes(null==t?null:t.id)),e.R7$(),e.FCK("for","questionCheck",n,"-",s,""),e.R7$(),e.SpI(" ",null==t?null:t.option_name," ")}}function E4(i,a){if(1&i&&(e.j41(0,"h6",91),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t?null:t.reject_reason," ")}}function R4(i,a){if(1&i&&(e.j41(0,"div",123),e.DNE(1,w4,2,0,"div",74)(2,C4,1,2,"ng-template",null,4,e.C5r)(4,F4,1,1,"ng-template",null,5,e.C5r),e.j41(6,"div",75)(7,"div",76),e.nrm(8,"div",77)(9,"div",78),e.k0s()(),e.j41(10,"div",79)(11,"div",80)(12,"div",81)(13,"span",82),e.EFF(14,"schedule"),e.k0s(),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.j41(17,"div",83)(18,"span",82),e.EFF(19,"calendar_today"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.k0s()()(),e.j41(22,"div"),e.DNE(23,S4,4,10,"div",129),e.k0s(),e.DNE(24,E4,2,1,"h6",85),e.k0s()()),2&i){const t=a.$implicit,n=e.sdS(3),o=e.XpG(3);e.R7$(),e.Y8G("ngIf",2==(null==t?null:t.response_status))("ngIfElse",n),e.R7$(6),e.Y8G("ngClass",2==(null==t?null:t.response_status)?"green":3==(null==t?null:t.response_status)?"red":""),e.R7$(9),e.JRh(null==t?null:t.agoTime),e.R7$(5),e.JRh(null==t?null:t.createdDate),e.R7$(2),e.Y8G("ngForOf",null==o.questionData?null:o.questionData.onboard_question_options),e.R7$(),e.Y8G("ngIf",3==(null==t?null:t.response_status))}}function T4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending "),e.k0s())}function I4(i,a){1&i&&(e.j41(0,"div",75)(1,"div",94),e.nrm(2,"div",77)(3,"div",78),e.k0s()())}function D4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",130)(1,"input",132),e.bIt("change",function(o){const r=e.eBV(t).index,s=e.XpG(4);return e.Njj(s.checkboxStatus(o,r))}),e.k0s(),e.j41(2,"label",127),e.EFF(3),e.k0s()()}if(2&i){const t=a.$implicit,n=a.index,o=e.XpG(4);e.R7$(),e.Mz_("id","questionCheckdata",n,""),e.FS9("value",null==t?null:t.id),e.Y8G("disabled",1==(null==o.questionData?null:o.questionData.isDisabeSubmit)),e.R7$(),e.Mz_("for","questionCheckdata",n,""),e.R7$(),e.SpI(" ",null==t?null:t.option_name," ")}}function P4(i,a){if(1&i&&(e.j41(0,"div",73),e.DNE(1,T4,2,0,"div",89)(2,I4,4,0,"div",92),e.j41(3,"div",79)(4,"div",80)(5,"div",81)(6,"span",82),e.EFF(7,"schedule"),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s()(),e.j41(10,"div",83)(11,"span",82),e.EFF(12,"calendar_today"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()()(),e.j41(15,"div"),e.DNE(16,D4,4,7,"div",129),e.k0s()()()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(),e.Y8G("ngIf",0!=(null==t.questionData||null==t.questionData.jobseeker_responses?null:t.questionData.jobseeker_responses.length)),e.R7$(7),e.JRh(null==t.questionData?null:t.questionData.agoTime),e.R7$(5),e.JRh(null==t.questionData?null:t.questionData.createdDate),e.R7$(2),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.onboard_question_options)}}function N4(i,a){if(1&i&&(e.j41(0,"div"),e.DNE(1,R4,25,7,"div",122)(2,P4,17,5,"div",72),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.jobseeker_responses),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isShowField))}}function M4(i,a){1&i&&(e.j41(0,"div",86),e.EFF(1," Signed "),e.k0s())}function O4(i,a){1&i&&(e.j41(0,"div",90),e.EFF(1," Pending Sign "),e.k0s())}function A4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",73),e.DNE(1,M4,2,0,"div",74)(2,O4,2,0,"ng-template",null,5,e.C5r),e.j41(4,"div",75)(5,"div",76),e.nrm(6,"div",77)(7,"div",78),e.k0s()(),e.j41(8,"div",95)(9,"div",80)(10,"div",81)(11,"span",82),e.EFF(12,"schedule"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()(),e.j41(15,"div",83)(16,"span",82),e.EFF(17,"calendar_today"),e.k0s(),e.j41(18,"span"),e.EFF(19),e.k0s()()(),e.j41(20,"div",96)(21,"div",97),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.openPdfViwer("view_doc",o))}),e.j41(22,"div",99)(23,"div",100),e.nrm(24,"img",111),e.k0s(),e.j41(25,"div",104)(26,"div",105)(27,"h6",106),e.EFF(28),e.k0s(),e.j41(29,"p",107),e.EFF(30),e.k0s()()()()()()()()}if(2&i){const t=a.$implicit,n=e.sdS(3),o=e.XpG(3);e.R7$(),e.Y8G("ngIf",1==(null==t?null:t.envelope_status))("ngIfElse",n),e.R7$(4),e.Y8G("ngClass",1==(null==t?null:t.envelope_status)?"green":""),e.R7$(9),e.JRh(null==o.questionData?null:o.questionData.agoTime),e.R7$(5),e.JRh(null==o.questionData?null:o.questionData.createdDate),e.R7$(9),e.SpI(" ",null==t?null:t.response," "),e.R7$(2),e.JRh(null==t?null:t.file_size)}}function G4(i,a){if(1&i&&(e.j41(0,"div")(1,"div",133)(2,"h3",134),e.EFF(3,"Signed Document"),e.k0s()(),e.DNE(4,A4,31,7,"div",71),e.k0s()),2&i){const t=e.XpG(2);e.R7$(4),e.Y8G("ngForOf",null==t.questionData?null:t.questionData.signedDocuments)}}function L4(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",135),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.submitOnboardingQuestion(0))}),e.EFF(1," Submit "),e.k0s()}if(2&i){const t=e.XpG(2);e.Y8G("disabled",1==(null==t.questionData?null:t.questionData.isDisabeSubmit)||1!=(null==t.questionData?null:t.questionData.assign_to))}}function q4(i,a){if(1&i){const t=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.submitOnboardingQuestion(1))}),e.EFF(1," Update "),e.k0s()}}function V4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",57)(1,"div",58)(2,"div",59)(3,"h3",60),e.EFF(4),e.k0s(),e.DNE(5,F5,2,0,"span",25)(6,S5,2,0,"span",26)(7,E5,2,0,"span",27)(8,R5,2,0,"span",28),e.k0s(),e.j41(9,"button",61),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss())}),e.k0s()(),e.j41(10,"h6",62),e.EFF(11," Assign to: "),e.DNE(12,T5,2,0,"span",38)(13,I5,2,0,"span",38)(14,D5,2,0,"span",38)(15,P5,2,0,"span",38),e.j41(16,"span",39),e.EFF(17),e.k0s()(),e.j41(18,"h5",63),e.EFF(19),e.k0s()(),e.j41(20,"div",64)(21,"div",65)(22,"div",66)(23,"div",67),e.DNE(24,Y5,3,2,"div",12)(25,l4,3,2,"div",12)(26,k4,3,2,"div",12)(27,N4,3,2,"div",12)(28,G4,5,1,"div",12),e.k0s()()()(),e.j41(29,"div",68),e.DNE(30,L4,2,1,"button",69)(31,q4,2,0,"button",70),e.k0s()}if(2&i){const t=e.XpG();e.R7$(4),e.SpI("Step ",t.queIndex,""),e.R7$(),e.Y8G("ngIf",3==(null==t.questionData?null:t.questionData.status)),e.R7$(),e.Y8G("ngIf",4==(null==t.questionData?null:t.questionData.status)),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.status)||2==(null==t.questionData?null:t.questionData.status)),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isPending)),e.R7$(4),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.assign_to)),e.R7$(),e.Y8G("ngIf",2==(null==t.questionData?null:t.questionData.assign_to)),e.R7$(),e.Y8G("ngIf",3==(null==t.questionData?null:t.questionData.assign_to)),e.R7$(),e.Y8G("ngIf",4==(null==t.questionData?null:t.questionData.assign_to)),e.R7$(2),e.SpI(" ",1==(null==t.questionData?null:t.questionData.assign_to)?"("+(null==t.questionData?null:t.questionData.jobseeker_name)+")":2==(null==t.questionData?null:t.questionData.assign_to)?"("+(null==t.questionData?null:t.questionData.ext_rec_name)+")":3==(null==t.questionData?null:t.questionData.assign_to)?"("+(null==t.questionData?null:t.questionData.rec_name)+")":4==(null==t.questionData?null:t.questionData.assign_to)?"("+(null==t.questionData?null:t.questionData.vendor_name)+")":""," "),e.R7$(2),e.SpI(" ",null==t.questionData?null:t.questionData.question," "),e.R7$(5),e.Y8G("ngIf",2==(null==t.questionData?null:t.questionData.question_type)),e.R7$(),e.Y8G("ngIf",4==(null==t.questionData?null:t.questionData.question_type)),e.R7$(),e.Y8G("ngIf",3==(null==t.questionData?null:t.questionData.question_type)),e.R7$(),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.question_type)),e.R7$(),e.Y8G("ngIf",(null==t.questionData?null:t.questionData.signedDocuments)&&0!=(null==t.questionData||null==t.questionData.signedDocuments?null:t.questionData.signedDocuments.length)),e.R7$(2),e.Y8G("ngIf",1==(null==t.questionData?null:t.questionData.isShowField)&&4!=(null==t.questionData?null:t.questionData.question_type)&&2!=(null==t.questionData?null:t.questionData.status)),e.R7$(),e.Y8G("ngIf",2==(null==t.questionData?null:t.questionData.status)&&1==(null==t.questionData?null:t.questionData.isShowField))}}function B4(i,a){if(1&i&&e.nrm(0,"iframe",145),2&i){const t=e.XpG(2);e.Y8G("src",t.resume_src,e.f$h)}}function $4(i,a){if(1&i&&e.nrm(0,"img",146),2&i){const t=e.XpG(2);e.FS9("src",t.resume_src,e.B4B)}}function Y4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",137)(1,"h3",138),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",139),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.resume_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",41),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",140),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",141)(8,"div",142),e.DNE(9,B4,1,1,"iframe",143)(10,$4,1,1,"img",144),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(9),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function J4(i,a){if(1&i&&e.nrm(0,"iframe",145),2&i){const t=e.XpG(2);e.Y8G("src",t.visa_proof_src,e.f$h)}}function U4(i,a){if(1&i&&e.nrm(0,"img",146),2&i){const t=e.XpG(2);e.FS9("src",t.visa_proof_src,e.B4B)}}function X4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",137)(1,"h3",138),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",147),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return r.download(r.visa_proof_src),o.preventDefault(),e.Njj(o.stopPropagation())}),e.j41(4,"i",41),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",140),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",141)(8,"div",142),e.DNE(9,J4,1,1,"iframe",143)(10,U4,1,1,"img",144),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.visa_proof_src,e.B4B),e.R7$(6),e.Y8G("ngIf","png"!=t.docExtension&&"jpg"!=t.docExtension),e.R7$(),e.Y8G("ngIf","png"==t.docExtension||"jpg"==t.docExtension)}}function z4(i,a){if(1&i){const t=e.RV6();e.j41(0,"div",137)(1,"h3",138),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"a",147),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.download(o.resume_src))}),e.j41(4,"i",41),e.EFF(5,"file_download"),e.k0s()(),e.j41(6,"button",140),e.bIt("click",function(){const o=e.eBV(t).$implicit;return e.Njj(o.dismiss("Cross click"))}),e.k0s()(),e.j41(7,"div",141)(8,"ngx-doc-viewer",148),e.bIt("loaded",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.contentLoaded())}),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(3),e.Y8G("href",t.resume_src,e.B4B),e.R7$(5),e.Y8G("url",t.resume_src)}}let H4=(()=>{class i{modalService;globals;jobseekerService;toastr;errorHandler;router;cs;commonService;navigationService;route;onboardData;questionData;textfieldAnswer="";resume_src="";visa_proof_src="";radioValue;queIndex;checkboxValue=[];isFirstLoading=!0;docExtension;document_type_array=["doc","docx","pdf"];stepAnsModal;resume_show;visa_proof_show;showDocsModal;constructor(t,n,o,r,s,c,u,h,v,g){this.modalService=t,this.globals=n,this.jobseekerService=o,this.toastr=r,this.errorHandler=s,this.router=c,this.cs=u,this.commonService=h,this.navigationService=v,this.route=g,JSON.parse(localStorage.getItem("CR_PREF")).profile_ratio<100?this.navigationService.navigate("jobseeker/profile-complete",this.route):this.jobseekerService.getdata().subscribe(f=>{if(1==f.ResponseData.is_client_send_video_interview){let R=Number(f.Re
129sponseData.video_interview_sender_id);this.navigationService.navigate("jobseeker/video-interview",this.route,{queryParams:{client_user:R,jobseeker_id:f.ResponseData.jobseeker_id}})}},f=>{this.globals.loading=!1,this.errorHandler.handleError(f)})}ngOnInit(){this.getOnboardQuestionData(),this.getOnboardSocketReesponse()}openQuestionModal(t,n,o,r){if(this.textfieldAnswer="",this.checkboxValue=[],this.radioValue=null,this.questionData=o,0!=o.jobseeker_responses.length){let s=[];o.jobseeker_responses.forEach((c,u)=>{3==c.response_status&&s.push(u)}),s.length==o.jobseeker_responses.length&&(this.questionData.isShowField=!0)}if(0==o.jobseeker_responses.length&&(this.questionData.isShowField=!0),1==o.question_type&&this.questionData.jobseeker_responses.forEach(s=>{s.response="string"==typeof s.response?JSON.parse(s.response):s.response}),4==o.question_type){let s=0;this.questionData.onboard_question_options.forEach(c=>{0!=this.questionData.jobseeker_responses.filter(h=>h.question_option_id==c.id&&3!=h.response_status).length&&(c.isDisabled=!0,s+=1)}),this.questionData.isShowDoaumentFields=s!=this.questionData.onboard_question_options.length}this.questionData.stepNo=r,this.queIndex=r,console.log(this.radioValue),console.log(this.questionData),this.modalService.open(t,{centered:!0,windowClass:`cr-custom-modal modal-${n}`}),this.questionData.signedDocuments&&0!=this.questionData.signedDocuments.length&&this.questionData.signedDocuments.forEach(s=>{1==s.envelope_status?1!=s.envelope_download_status&&this.commonService.isCheckSignDocument({envelope_id:s.envelope_id,id:s.id,is_sign:1,is_download:0,document_url:s.document_url}).subscribe(u=>{this.getOnboardQuestionData()}):this.commonService.isCheckSignDocument({envelope_id:s.envelope_id,id:s.id,is_sign:0,is_download:0,document_url:s.document_url}).subscribe(u=>{"completed"==u.ResponseData.envelope_status&&this.getOnboardQuestionData()})})}getOnboardQuestionData(){1==this.isFirstLoading&&(this.globals.loading=!0),this.jobseekerService.getOnboardQuestionData().subscribe(t=>{if(this.globals.loading=!1,this.isFirstLoading=!1,1==t.ResponseCode&&(this.onboardData=t.ResponseData,0!=this.onboardData.questionList.length)){console.log("onboardData",this.onboardData),this.onboardData.questionList.forEach(o=>{if(o.isPending=5==o.status,o.isDisabeSubmit=!0,console.log("element.created_at,",o.created_at),o.agoTime=Be()(o.created_at).fromNow(),o.createdDate=Be()(o.created_at).format("DD-MM-YYYY"),0!=o.jobseeker_responses.length){this.questionData&&this.questionData.stepNo&&(this.questionData.stepNo=this.queIndex);let r=[],s=[];o.jobseeker_responses.forEach(c=>{null==c.envelope_id?(r.push(c),c.agoTime=Be()(c.created_at).fromNow(),c.createdDate=Be()(c.created_at).format("DD-MM-YYYY")):s.push(c)}),o.jobseeker_responses=r,o.signedDocuments=s}}),0==this.onboardData.questionList[0].status&&(this.onboardData.questionList[0].isPending=!0);let n=this.onboardData.questionList.findIndex(o=>1==o.assign_to&&(4==o.status||5==o.status||0==o.status||3==o.status));-1!=n&&this.onboardData.questionList.slice(0,n).every(s=>1===s.status||2===s.status)&&(this.onboardData.questionList[n].isDisabeSubmit=!1),this.questionData&&0!=Object.keys(this.questionData).length&&this.onboardData.questionList.forEach(o=>{if(o.id==this.questionData.id){if(this.questionData=o,this.questionData.agoTime=Be()(o.created_at).fromNow(),this.questionData.createdDate=Be()(o.created_at).format("DD-MM-YYYY"),o.onboard_question_options.forEach(r=>{1==r.answer_response&&(this.questionData.isDisableBtn=!0)}),4==this.questionData.question_type){let r=0;this.questionData.onboard_question_options.forEach(s=>{0!=this.questionData.jobseeker_responses.filter(u=>u.question_option_id==s.id&&3!=u.response_status).length&&(s.isDisabled=!0,r+=1)}),this.questionData.isShowDoaumentFields=r!=this.questionData.onboard_question_options.length}if(0!=this.questionData.jobseeker_responses.length){let r=[];this.questionData.jobseeker_responses.forEach((s,c)=>{3==s.response_status&&r.push(c)}),r.length==this.questionData.jobseeker_responses.length&&(this.questionData.isShowField=!0)}0==this.questionData.jobseeker_responses.length&&(this.questionData.isShowField=!0)}})}},t=>{this.toastr.error(t.error.ResponseText),this.globals.loading=!1,this.errorHandler.handleError(t)})}documentChoose(t,n){let o=t.target.files[0].name.substring(t.target.files[0].name.lastIndexOf(".")+1,t.target.files[0].name.length);if(0==new Array("doc","docx","pdf","jpg","jpeg","png","gif").includes(o))return this.toastr.error("Invalid file type"),t.target.value=null,!1;console.log(this.questionData);let s=new FormData;if(s.append("question_type",this.questionData.question_type),s.append("question_id",this.questionData.id),s.append("question_option_id",n.id),s.append("file",t.target.files[0]),s.append("file_type",o),s.append("job_id",this.onboardData.jobpostData.job_id),s.append("next_que_id",this.onboardData.questionList[this.queIndex]?this.onboardData.questionList[this.queIndex].id:null),4==this.questionData.question_type){let c=0;for(let u=0;u<this.questionData.onboard_question_options.length;u++)1==this.questionData.onboard_question_options[u].isDisabled&&(c+=1);s.append(c+1==this.questionData.onboard_question_options.length?"is_completed_status":"is_pending_status",!0)}this.globals.loading=!0,this.jobseekerService.addOnboardResponse(s).subscribe(c=>{if(this.globals.loading=!1,1==c.ResponseCode){this.toastr.success(c.ResponseText),this.modalService.dismissAll();let u={client_id:c.ResponseData.client_id};this.questionData.external_recruiter_id&&0!=this.questionData.external_recruiter_id&&(u.external_recruiter_id=this.questionData.external_recruiter_id),this.questionData.recruiter_id&&0!=this.questionData.recruiter_id&&(u.recruiter_id=this.questionData.recruiter_id),this.questionData.vendor_id&&0!=this.questionData.vendor_id&&(u.vend
129or_id=this.questionData.vendor_id),this.questionData.sales_id&&(u.sales_id=this.questionData.sales_id),this.questionData.client_person_id&&(u.client_person_id=this.questionData.client_person_id),this.cs.sendOnboardingSocketResponse(u),this.getOnboardQuestionData()}},c=>{this.toastr.error(c.error.ResponseText),this.globals.loading=!1,this.errorHandler.handleError(c)})}submitOnboardingQuestion(t){if(2==this.questionData.question_type){if(""==this.textfieldAnswer.trim())return this.toastr.error("Please fill Answer"),!1}else if(3==this.questionData.question_type){if(null==this.radioValue)return this.toastr.error("Please select Answer"),!1}else if(1==this.questionData.question_type&&0==this.checkboxValue.length)return this.toastr.error("Please select Answer"),!1;this.globals.loading=!0;let n={question_type:this.questionData.question_type,question_id:this.questionData.id,next_que_id:this.onboardData.questionList[this.queIndex]?this.onboardData.questionList[this.queIndex].id:null,job_id:this.onboardData.jobpostData.job_id};1==t&&(n.is_update=!0),2==this.questionData.question_type?(n.response=this.textfieldAnswer,n.question_option_id=this.questionData.onboard_question_options[0].id):3==this.questionData.question_type?n.question_option_id=Number(this.radioValue):1==this.questionData.question_type&&(n.response=this.checkboxValue),this.jobseekerService.addOnboardResponse(n).subscribe(o=>{if(this.globals.loading=!1,1==o.ResponseCode){this.modalService.dismissAll(),this.checkboxValue=[],this.toastr.success(o.ResponseText);let r={client_id:o.ResponseData.client_id};this.questionData.external_recruiter_id&&0!=this.questionData.external_recruiter_id&&(r.external_recruiter_id=this.questionData.external_recruiter_id),this.questionData.recruiter_id&&0!=this.questionData.recruiter_id&&(r.recruiter_id=this.questionData.recruiter_id),this.questionData.vendor_id&&0!=this.questionData.vendor_id&&(r.vendor_id=this.questionData.vendor_id),this.questionData.sales_id&&(r.sales_id=this.questionData.sales_id),this.questionData.client_person_id&&(r.client_person_id=this.questionData.client_person_id),this.textfieldAnswer="",this.checkboxValue=[],this.radioValue=null,this.cs.sendOnboardingSocketResponse(r),this.getOnboardQuestionData()}},o=>{this.toastr.error(o.error.ResponseText),this.globals.loading=!1,this.errorHandler.handleError(o)})}checkRadioStatus(t){this.radioValue=t.target.value}checkboxStatus(t,n){if(1==t.target.checked)this.checkboxValue.push(Number(t.target.value));else{const o=this.checkboxValue.findIndex(r=>r==t.target.value);this.checkboxValue.splice(o,1)}console.log(this.checkboxValue)}openPdfViwer(t,n){"view_doc"==t&&("docx"==n.document_type||"doc"==n.document_type?(this.resume_src=n.doc_url,this.modalService.open(this.showDocsModal,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"})):-1!=this.document_type_array.indexOf(n.extension)?(this.modalService.open(this.resume_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.doc_url,console.log("b")):(this.visa_proof_src=n.doc_url,this.modalService.open(this.visa_proof_show,{ariaLabelledBy:"modal-basic-title",centered:!0,windowClass:"cr-custom-modal modal-medium"}),this.resume_src=n.doc_url,console.log("c")))}contentLoaded(){document.getElementById("progressBar1").style.display="none"}download(t){const n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove()}getOnboardSocketReesponse(){this.cs.getOnboardingSocketResponse().subscribe(t=>{1==t.responseCode&&this.getOnboardQuestionData()})}static \u0275fac=function(n){return new(n||i)(e.rXU(Ue.Bq),e.rXU(Qt.E),e.rXU(Yi.m),e.rXU(Ut.tw),e.rXU(ji.c),e.rXU(Ve.Ix),e.rXU(r5.X),e.rXU(ni.h),e.rXU(Mi.o),e.rXU(Ve.nX))};static \u0275cmp=e.VBU({type:i,selectors:[["app-jobseeker-onboarding"]],viewQuery:function(n,o){if(1&n&&(e.GBs(a5,5),e.GBs(s5,5),e.GBs(l5,5),e.GBs(c5,5)),2&n){let r;e.mGM(r=e.lsd())&&(o.stepAnsModal=r.first),e.mGM(r=e.lsd())&&(o.resume_show=r.first),e.mGM(r=e.lsd())&&(o.visa_proof_show=r.first),e.mGM(r=e.lsd())&&(o.showDocsModal=r.first)}},standalone:!0,features:[e.aNF],decls:10,vars:2,consts:[["stepAnsModal",""],["resume_show",""],["visa_proof_show",""],["showDocsModal",""],["statusReject",""],["statusInprogress",""],[3,"loading"],["class","step-display-box-main",4,"ngIf"],[1,"step-display-box-main"],[1,"step-display-box-spacing","bg-white"],["class","mb-5 step-display-box-main-title pb-3",4,"ngIf"],["class","step-display-box-grid",4,"ngIf"],[4,"ngIf"],[1,"mb-5","step-display-box-main-title","pb-3"],[1,"mb-2","h1","fw-600"],[1,"fw-500"],[1,"step-display-box-grid"],["class","step-display-box",3,"ngClass","click",4,"ngFor","ngForOf"],["style","height: 155px",4,"ngIf"],[1,"step-display-box",3,"click","ngClass"],[1,"step-display-box-header"],[1,"d-flex","align-items-center","justify-content-between"],[1,"h5","small","fw-500","mb-0","step-display-title","d-inline-flex","align-items-center"],["class","d-flex align-items-center mr-2",4,"ngIf"],[1,"text-uppercase"],["class","cr-status status-red a-status-display fw-500 text-capitalize fw-500 mx-3",4,"ngIf"],["class","cr-status status-yellow a-status-display fw-500 text-capitalize fw-500 mx-3",4,"ngIf"],["class","cr-status status-green a-status-display fw-500 text-capitalize fw-500 mx-3",4,"ngIf"],["class","cr-status status-purple a-status-display fw-500 text-capitalize fw-500 mx-3",4,"ngIf"],[1,"step-display-box-line","my-3"],[1,"step-display-box-body"],[1,"fw-500","mb-3","color-dark"],[1,"d-flex","align-items-center","mb-3","flex-wrap","gap-5"],[1,"d-flex","align-items-center","mr-3","h6","small","color-gray-2"],[1,"material-icons"],[1,"ml-2","white-space-nowrap"],[1,"d-flex","align-items-center","h6","small","color-gray-2"],[1,"small","fw-400","mb-0","color-gray-2","lh-inherit"],["class","color-dark fw-500",4,"ngIf"],[1,"color-dark","fw-500"],[1,"d-flex","align-items-center","mr-2"],[1,"material-icons-outlined"],[1,"cr-status","status-red","a-status-display","fw-
129500","text-capitalize","fw-500","mx-3"],[1,"cr-status","status-yellow","a-status-display","fw-500","text-capitalize","fw-500","mx-3"],[1,"cr-status","status-green","a-status-display","fw-500","text-capitalize","fw-500","mx-3"],[1,"cr-status","status-purple","a-status-display","fw-500","text-capitalize","fw-500","mx-3"],[2,"height","155px"],[1,"step-display-box","a-bg-powder-blue","d-flex","flex-column","align-items-center","justify-content-center",2,"cursor","default"],[1,"material-icons","onboarded-icon","mb-2","color-teal-blue"],[1,"h5","small","fw-500","mb-0","color-teal-blue"],[1,"text-center","d-flex","align-items-center","justify-content-center","text-center","mt-5","pt-5"],[1,"onboarding-empty"],[1,"mx-auto","onboarding-empty-img-container","mb-5"],["src","../../../../assets/images/icons/empty.svg","alt","empty",1,"img-fluid","d-block","contain"],[1,"fw-600","mb-3"],[1,"fw-500","gray-3","mb-2","pb-2"],[1,"mb-5","gray-3"],[1,"modal-header","flex-column","justify-content-between","pb-4"],[1,"d-flex","w-100","justify-content-between","mb-3"],[1,"d-flex","justify-content-between","max-w-100","w-100","align-items-center"],[1,"modal-title","mb-0"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close",3,"click"],[1,"small","fw-400","mb-3","color-gray-2","align-self-start"],[1,"align-self-start","fw-500","mb-0"],[1,"modal-body",2,"padding-top","15px","padding-bottom","15px"],[1,"row","align-items-stretch"],[1,"col-12"],[1,"custom-radio-step-main-wrapper"],[1,"modal-footer","p-5","d-flex","justify-content-end"],["class","cr-btn cr-btn-blue",3,"disabled","click",4,"ngIf"],["class","cr-btn cr-btn-blue",3,"click",4,"ngIf"],["class","custom-radio-step-wrapper flex-wrap gap-5",4,"ngFor","ngForOf"],["class","custom-radio-step-wrapper flex-wrap gap-5",4,"ngIf"],[1,"custom-radio-step-wrapper","flex-wrap","gap-5"],["class","mr-4 custom-radio-step-title fw-500 text-capitalize color-teal-green-shade-2",4,"ngIf","ngIfElse"],[1,"custom-radio-line","mr-4"],[1,"custom-radio-step",3,"ngClass"],[1,"custom-radio-step-circle"],[1,"custom-radio-step-circle-border"],[1,"custom-radio-step-content","w-auto"],[1,"d-flex","mb-3","align-items-center"],[1,"d-inline-flex","align-items-center","color-gray-2","h6","small","mb-0"],[1,"material-icons-outlined","mr-2","color-rock-gray","h4","mb-0"],[1,"d-inline-flex","align-items-center","color-gray-2","h6","small","mb-0","ml-4"],[1,"fw-500","mb-3","color-gray-2","align-self-start"],["class","color-red mb-0 font-italic fw-400",4,"ngIf"],[1,"mr-4","custom-radio-step-title","fw-500","text-capitalize","color-teal-green-shade-2"],["class","mr-4 custom-radio-step-title fw-500 text-capitalize color-red",4,"ngIf","ngIfElse"],[1,"mr-4","custom-radio-step-title","fw-500","text-capitalize","color-red"],["class","mr-4 custom-radio-step-title fw-500 text-capitalize color-yellow-shade-9",4,"ngIf"],[1,"mr-4","custom-radio-step-title","fw-500","text-capitalize","color-yellow-shade-9"],[1,"color-red","mb-0","font-italic","fw-400"],["class","custom-radio-line mr-4",4,"ngIf"],["rows","2","placeholder","Enter Answer",1,"cr-custom-text-area",3,"keyup","disabled"],[1,"custom-radio-step"],[1,"custom-radio-step-content",2,"padding-bottom","20px"],[1,"documents-grid","custom-radio-step-documents-grid","mb-4",2,"grid-template-columns","none"],[3,"click"],["class","document-item ng-star-inserted",4,"ngIf"],[1,"document-item","ng-star-inserted"],[1,"doctype-img","flex-shrink-0"],["src","assets/images/icons/doctype-docx.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-jpg.svg","alt","","class","img-contain",4,"ngIf"],["src","assets/images/icons/doctype-pdf.svg","alt","","class","img-contain",4,"ngIf"],[1,"docinfo-wrap"],[1,"docinfo"],[1,"small","fw-500","color-dark","clamp-1"],[1,"paragraph-sm","color-gray-3","mb-0"],["class","cr-btn-round flex-shrink-0 bg-white border-0 p-0","title","Download",4,"ngIf"],["src","assets/images/icons/doctype-docx.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-jpg.svg","alt","",1,"img-contain"],["src","assets/images/icons/doctype-pdf.svg","alt","",1,"img-contain"],["title","Download",1,"cr-btn-round","flex-shrink-0","bg-white","border-0","p-0"],[1,"material-icons-outlined","color-red"],[4,"ngFor","ngForOf"],["class","custom-file-input-wrapper d-flex align-items-center justify-content-between",3,"for","ngClass",4,"ngIf"],[1,"custom-file-input-wrapper","d-flex","align-items-center","justify-content-between",3,"for","ngClass"],[1,"material-icons-outlined","mr-2"],["type","file","placeholder","File",1,"d-none",3,"change","disabled","id"],[1,"custom-file-input-title"],[1,"d-flex","flex-column","justify-content-center","upload-icon-wrapper"],[1,"material-icons-outlined","upload-icon","text-center"],["class","custom-radio-step-wrapper mb-3 flex-wrap gap-5",4,"ngFor","ngForOf"],[1,"custom-radio-step-wrapper","mb-3","flex-wrap","gap-5"],["class","custom-radio mb-3",4,"ngFor","ngForOf"],[1,"custom-radio","mb-3"],["type","radio",3,"change","id","disabled","value","checked"],[3,"for"],["type","radio","name","interested-in-designing",3,"change","id","value","disabled"],["class","custom-check mb-3",4,"ngFor","ngForOf"],[1,"custom-check","mb-3"],["type","checkbox",3,"change","id","disabled","checked","value"],["type","checkbox",3,"change","id","value","disabled"],[1,"pt-5","mt-4","pb-2",2,"border-top","1px solid var(--cr-gray-tint-6)"],[2,"font-weight","500"],[1,"cr-btn","cr-btn-blue",3,"click","disabled"],[1,"cr-btn","cr-btn-blue",3,"click"],[1,"modal-header"],["id","document-preview-modal",1,"modal-title"],[1,"cr-modal-head-button","ml-auto","mr-3",3,"click"],["type","button","aria-label","Close",1,"cr-modal-head-button","btn-close","ml-3",3,"click"],[1,"modal-body","p-4","pt-0","overflow-auto"],[1,"prev-wrap"],["width","100%","height","100%","style","height: 100%",3,"src",4,"ngIf"],["alt","document preview","class","img-contain img-fluid",3,"src",4,"ngIf"],["width","100%","height","100%",2,"height","100%",3,"src"],["alt","document preview",1,"img-contain","img-fluid",3,"src"],[1,"cr-modal-head-button","ml-auto","mr-3",3,"click","href"],["viewer","url","googleCheckContentLoaded","true","googleCheckInterval","3000","googleMaxChecks","1",1,"doc-viewer",2,"width","100%","height","600px",3,"loaded","url"]],template:function(n,o){1&n&&(e.nrm(0,"app-loading-spinner",6),e.DNE(1,j5,8,9,"div",7)(2,V4,32,18,"ng-template",null,0,e.C5r)(4,Y4,11,2,"ng-template",null,1,e.C5r)(6,X4,11,3,"ng-template",null,2,e.C5r)(8,z4,9,2,"ng-template",null,3,e.C5r)),2&n&&(e.Y8G("loading",o.globals.loading),e.R7$(),e.Y8G("ngIf",0!=(null==o.onboardData||null==o.onboardData.questionList?null:o.onboardData.questionList.length)))},dependencies:[Hi.EE,Hi.$j,qe.MD,qe.YU,qe.Sq,qe.bT,qe.TG,qe.PV,di.N,Ut._B,Ve.iI],styles:['.step-display-box[_ngcontent-%COMP%]{border-radius:15px;padding:20px;height:100%}.step-display-title[_ngcontent-%COMP%]{width:calc(100% - 100px)}.step-display-box[_ngcontent-%COMP%]   .a-status-display[_ngcontent-%COMP%]{min-width:72px;max-width:100px;height:24px;display:flex;align-items:center;justify-content:center}.step-display-box[_ngcontent-%COMP%]{position:relative}.step-display-box[_ngcontent-%COMP%]:after{content:"";position:absolute;right:0;top:50%;width:30px;height:30px;background:url(arrow.cb45bf50fe4345fd.svg);background-size:contain;background-repeat:no-repeat;transform:translate(100%);display:flex;align-items:center}.step-display-box-grid[_ngcontent-%COMP%]   .step-display-box[_ngcontent-%COMP%]:last-child:after{content:unset}.step-display-box-line[_ngcontent-%COMP%]{display:block;height:1px}.swiper-slide[_ngcontent-%COMP%]{height:auto}.onboarding-list-flex[_ngcontent-%COMP%]{border-bottom:1px solid #eaeaea;padding-bottom:20px;padding-top:20px}.onboarding-list-main-box[_ngcontent-%COMP%]   .onboarding-list-flex[_ngcontent-%COMP%]:last-child{border-bottom:0;padding-bottom:0}.onboarding-list-main-box[_ngcontent-%COMP%]   .onboarding-list-flex[_ngcontent-%COMP%]:first-child{padding-top:0}.onboarding-list-main-box[_ngcontent-%COMP%]{border-radius:26px}.step-display-box[_ngcontent-%COMP%]{cursor:pointer;border:1px solid}.step-display-box.a-bg-powder-blue[_ngcontent-%COMP%]{border-color:#e9f6fd;background:#e9f6fd}.step-display-box.a-bg-white[_ngcontent-%COMP%]{border-color:#e0e0e0}.step-display-box.a-bg-red[_ngcontent-%COMP%]{border-color:var(--cr-red);background:#fff1f1}.step-display-box[_ngcontent-%COMP%]   .onboarded-icon[_ngcontent-%COMP%]{font-size:28px!important}.step-display-box.a-bg-red[_ngcontent-%COMP%]   .step-display-title[_ngcontent-%COMP%]{color:#eb5757}.step-display-box.a-bg-red[_ngcontent-%COMP%]   .step-display-box-line[_ngcontent-%COMP%]{background-color:#fbcccc}.step-display-box.a-bg-green[_ngcontent-%COMP%]{border-color:var(--cr-teal-green);background:#f2fef0}.step-display-box.a-bg-green[_ngcontent-%COMP%]   .step-display-title[_ngcontent-%COMP%]{color:#03706c}.step-display-box.a-bg-green[_ngcontent-%COMP%]   .step-display-box-line[_ngcontent-%COMP%]{background-color:#c6e9c0}.step-display-box.a-bg-yellow[_ngcontent-%COMP%]{border-color:#fbc431;background:#fdf7e9}.step-display-box.a-bg-yellow[_ngcontent-%COMP%]   .step-display-title[_ngcontent-%COMP%]{color:#a36406}.step-display-box.a-bg-yellow[_ngcontent-%COMP%]   .step-display-box-line[_ngcontent-%COMP%]{background-color:#fde298}.step-display-box.a-bg-white[_ngcontent-%COMP%]{border-color:#e0e0e0;background:#fff}.step-display-box.a-bg-white[_ngcontent-%COMP%]   .step-display-title[_ngcontent-%COMP%]{color:#031d1f}.step-display-box.a-bg-purple[_ngcontent-%COMP%]   .step-display-title[_ngcontent-%COMP%]{color:#8536c3}.step-display-box.a-bg-white[_ngcontent-%COMP%]   .step-display-box-line[_ngcontent-%COMP%]{background-color:#eaeaea}.step-display-box.a-bg-purple[_ngcontent-%COMP%]{border-color:#8536c3;background:#e7def369}.step-display-box.a-bg-purple[_ngcontent-%COMP%]   .step-display-box-line[_ngcontent-%COMP%]{background-color:#8536c3}.onBoardListSlider[_ngcontent-%COMP%]   .step-display-box[_ngcontent-%COMP%]:after{content:unset}.white-space-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.step-display-box[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:16px}.step-display-box-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:34px}.step-display-box-spacing[_ngcontent-%COMP%]{padding:4rem}.step-display-box-main[_ngcontent-%COMP%]{background:#fbfbfb;height:100%;padding:4rem;border-radius:32px}.step-display-box-main-title[_ngcontent-%COMP%]{border-bottom:1px solid #eaeaea}.max-w-100[_ngcontent-%COMP%]{max-width:100%}.onboarding-empty-img-container[_ngcontent-%COMP%]{min-width:80px;min-height:80px;max-width:80px;display:flex;justify-content:center;align-items:center}.onboarding-empty-img-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .onboarding-empty-img-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}@media screen and (max-width: 1599px){.step-display-box-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr);grid-gap:30px}.step-display-box-main[_ngcontent-%COMP%]{border-radius:20px}}@media screen and (max-width: 1199px){.step-display-box-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-gap:20px}.step-display-box-main[_ngcontent-%COMP%]{border-radius:18px}.step-display-box-spacing[_ngcontent-%COMP%]{padding:20px 44px}}@media screen and (max-width: 767px){.step-display-box-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-gap:20px}.step-display-box-main[_ngcontent-%COMP%]{padding:15px;border-radius:8px}.step-display-box-spacing[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 575px){.step-display-box-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr);grid-gap:30px}.step-display-box[_ngcontent-%COMP%]:after{right:unset;left:50%;
129top:100%;width:30px;height:30px;transform:translate(-50%) rotate(90deg);justify-content:center;align-items:center}.step-display-box-spacing[_ngcontent-%COMP%]{padding:20px 10px}}.custom-file-input-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0}.custom-file-input-wrapper[_ngcontent-%COMP%]{align-items:center;display:flex;min-height:73px;padding:15px 20px;background-color:#fff;border:1px solid #e0e0e0;border-radius:15px}.custom-file-input-wrapper.disabled[_ngcontent-%COMP%]{background-color:var(--cr-gray-tint-6);color:var(--cr-gray-tint-2);border-color:transparent;cursor:not-allowed;-webkit-user-select:none;user-select:none}.upload-icon-wrapper[_ngcontent-%COMP%], .custom-file-input-wrapper[_ngcontent-%COMP%]   .upload-icon[_ngcontent-%COMP%]{color:var(--cr-alice-blue)}.custom-file-input-wrapper[_ngcontent-%COMP%]   .upload-icon-wrapper[_ngcontent-%COMP%]{border-left:1px solid #e0e0e0;padding-left:20px}.custom-file-input-wrapper[_ngcontent-%COMP%]   .custom-file-input-title[_ngcontent-%COMP%]{width:100%;max-width:100%}']})}return i})(),Xo=(()=>{class i{router;authenticationService;http;toastr;globals;navigationService;constructor(t,n,o,r,s,c){this.router=t,this.authenticationService=n,this.http=o,this.toastr=r,this.globals=s,this.navigationService=c}canActivate(t,n){return localStorage.CR_Tornado?(this.authenticationService.jonseekverifytoken().subscribe(o=>{if(0==o.Flag)return this.authenticationService.logout(),this.navigationService.navigateToHome(),!1}),!0):(this.toastr.error("Invalid token or access."),this.authenticationService.destroy_global_sessions(),this.navigationService.navigateToHome(),!1)}static \u0275fac=function(n){return new(n||i)(e.KVO(Ve.Ix),e.KVO(Oi.u),e.KVO(ad.Qq),e.KVO(Ut.tw),e.KVO(Qt.E),e.KVO(Mi.o))};static \u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const Z4=[{path:"profile-complete",component:Qb,canActivate:[Xo]},{path:"register",component:c1},{path:"settings",component:gf,canActivate:[Xo]},{path:"video-interview",component:Lt},{path:"submitted-video",component:Tf},{path:"messages",component:$1,canActivate:[Xo]},{path:"upcoming-interviews",component:Q1,canActivate:[Xo]},{path:"my-jobs",component:Nm,canActivate:[Xo]},{path:"timesheets",component:cg,canActivate:[Xo]},{path:"preview-interview/:jobseeker_id",component:u2},{path:"timesheets/history",component:o2},{path:"search-jobs",component:Ug},{path:"calling",component:t5,canActivate:[Xo]},{path:"receiving",component:o5,canActivate:[Xo]},{path:"onboarding",component:H4},{path:"job-details/:job_id",component:ze(73251).FrontJobDetailsComponent}];let Q4=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.$C({type:i});static \u0275inj=e.G2t({providers:[qe.vh,(0,Dn.Dw)()],imports:[qe.MD,Ue.UN,Ue._f,$i.MQ,Ni.H,ne.X1,ne.YN,di.N,so.rz.forRoot({renderOnClick:!1,showSubtitle:!1,animation:!1,maxPercent:100,titleFontSize:"55",titleFontWeight:"bold",unitsFontSize:"55",unitsFontWeight:"bold",space:-20,outerStrokeWidth:20,outerStrokeColor:"#10957E",innerStrokeWidth:20,innerStrokeColor:"#F2F2F2",backgroundStrokeWidth:5}),pi.E,Ve.iI.forChild(Z4),lo.xv,Cn.ed,Hi.EE,us.Qs.forRoot(),co.Ph]})}return i})()},34864:(Fr,lr)=>{var qe,Z;function Ve(Z,k){if(!Z)throw"First parameter is required.";k=new ne(Z,k=k||{type:"video"});var H=this;function Te($e){$e&&(k.initCallback=function(){$e(),$e=k.initCallback=null});var Pe=new Ue(Z,k);(Ne=new Pe(Z,k)).record(),st("recording"),k.disableLogs||console.log("Initialized recorderType:",Ne.constructor.name,"for output-type:",k.type)}function me($e){if($e=$e||function(){},Ne){if("paused"===H.state)return H.resumeRecording(),void setTimeout(function(){me($e)},1);"recording"!==H.state&&!k.disableLogs&&console.warn('Recording state should be: "recording", however current state is: ',H.state),k.disableLogs||console.log("Stopped recording "+k.type+" stream."),"gif"!==k.type?Ne.stop(Pe):(Ne.stop(),Pe()),st("stopped")}else He();function Pe(We){if(Ne){Object.keys(Ne).forEach(function(lt){"function"!=typeof Ne[lt]&&(H[lt]=Ne[lt])});var ve=Ne.blob;if(!ve){if(!We)throw"Recording failed.";Ne.blob=ve=We}if(ve&&!k.disableLogs&&console.log(ve.type,"->",Ut(ve.size)),$e){var Ce;try{Ce=pi.createObjectURL(ve)}catch{}"function"==typeof $e.call?$e.call(H,Ce):$e(Ce)}k.autoWriteToDisk&&pt(function(lt){var dt={};dt[k.type+"Blob"]=lt,Qt.Store(dt)})}else"function"==typeof $e.call?$e.call(H,""):$e("")}}function Xe($e){postMessage((new FileReaderSync).readAsDataURL($e))}function pt($e,Pe){if(!$e)throw"Pass a callback function over getDataURL.";var We=Pe?Pe.blob:(Ne||{}).blob;if(!We)return k.disableLogs||console.warn("Blob encoder did not finish its job yet."),void setTimeout(function(){pt($e,Pe)},1e3);if(typeof Worker<"u"&&!navigator.mozGetUserMedia){var ve=function lt(dt){try{var Lt=pi.createObjectURL(new Blob([dt.toString(),"this.onmessage =  function (eee) {"+dt.name+"(eee.data);}"],{type:"application/javascript"})),Ct=new Worker(Lt);return pi.revokeObjectURL(Lt),Ct}catch{}}(Xe);ve.onmessage=function(dt){$e(dt.data)},ve.postMessage(We)}else{var Ce=new FileReader;
129Ce.readAsDataURL(We),Ce.onload=function(dt){$e(dt.target.result)}}}function Ge($e){if($e=$e||0,"paused"!==H.state){if("stopped"!==H.state){if($e>=H.recordingDuration)return void me(H.onRecordingStopped);$e+=1e3,setTimeout(function(){Ge($e)},1e3)}}else setTimeout(function(){Ge($e)},1e3)}function st($e){H&&(H.state=$e,"function"==typeof H.onStateChanged.call?H.onStateChanged.call(H,$e):H.onStateChanged($e))}var rt='It seems that recorder is destroyed or "startRecording" is not invoked for '+k.type+" recorder.";function He(){!0!==k.disableLogs&&console.warn(rt)}var Ne,ht={startRecording:function ye($e){return k.disableLogs||console.log("RecordRTC version: ",H.version),$e&&(k=new ne(Z,$e)),k.disableLogs||console.log("started recording "+k.type+" stream."),Ne?(Ne.clearRecordedData(),Ne.record(),st("recording"),H.recordingDuration&&Ge(),H):(Te(function(){H.recordingDuration&&Ge()}),H)},stopRecording:me,pauseRecording:function Me(){Ne?"recording"===H.state?(st("paused"),Ne.pause(),k.disableLogs||console.log("Paused recording.")):k.disableLogs||console.warn("Unable to pause the recording. Recording state: ",H.state):He()},resumeRecording:function le(){Ne?"paused"===H.state?(st("recording"),Ne.resume(),k.disableLogs||console.log("Resumed recording.")):k.disableLogs||console.warn("Unable to resume the recording. Recording state: ",H.state):He()},initRecorder:Te,setRecordingDuration:function($e,Pe){if(typeof $e>"u")throw"recordingDuration is required.";if("number"!=typeof $e)throw"recordingDuration must be a number.";return H.recordingDuration=$e,H.onRecordingStopped=Pe||function(){},{onRecordingStopped:function(We){H.onRecordingStopped=We}}},clearRecordedData:function(){Ne?(Ne.clearRecordedData(),k.disableLogs||console.log("Cleared old recorded data.")):He()},getBlob:function(){if(Ne)return Ne.blob;He()},getDataURL:pt,toURL:function(){if(Ne)return pi.createObjectURL(Ne.blob);He()},getInternalRecorder:function(){return Ne},save:function($e){Ne?ps(Ne.blob,$e):He()},getFromDisk:function($e){Ne?Ve.getFromDisk(k.type,$e):He()},setAdvertisementArray:function($e){k.advertisement=[];for(var Pe=$e.length,We=0;We<Pe;We++)k.advertisement.push({duration:We,image:$e[We]})},blob:null,bufferSize:0,sampleRate:0,buffer:null,reset:function(){"recording"===H.state&&!k.disableLogs&&console.warn("Stop an active recorder."),Ne&&"function"==typeof Ne.clearRecordedData&&Ne.clearRecordedData(),Ne=null,st("inactive"),H.blob=null},onStateChanged:function($e){k.disableLogs||console.log("Recorder state changed:",$e)},state:"inactive",getState:function(){return H.state},destroy:function(){var $e=k.disableLogs;k={disableLogs:!0},H.reset(),st("destroyed"),ht=H=null,qo.AudioContextConstructor&&(qo.AudioContextConstructor.close(),qo.AudioContextConstructor=null),k.disableLogs=$e,k.disableLogs||console.log("RecordRTC is destroyed.")},version:"5.6.2"};if(!this)return H=ht,ht;for(var vt in ht)this[vt]=ht[vt];return H=this,ht}function ne(Z,k){return!k.recorderType&&!k.type&&(k.audio&&k.video?k.type="video":k.audio&&!k.video&&(k.type="audio")),k.recorderType&&!k.type&&(k.recorderType===Wi||k.recorderType===Sr||k.recorderType===Mi?k.type="video":k.recorderType===uo?k.type="gif":k.recorderType===Be?k.type="audio":k.recorderType===mn&&(e(Z,"audio").length&&e(Z,"video").length||!e(Z,"audio").length&&e(Z,"video").length?k.type="video":e(Z,"audio").length&&!e(Z,"video").length&&(k.type="audio"))),typeof MediaRecorder<"u"&&"requestData"in MediaRecorder.prototype&&(k.mimeType||(k.mimeType="video/webm"),k.type||(k.type=k.mimeType.split("/")[0])),k.type||(k.mimeType&&(k.type=k.mimeType.split("/")[0]),k.type||(k.type="audio")),k}function Ue(Z,k){var H;return(co||lo||Hi)&&(H=Be),typeof MediaRecorder<"u"&&"requestData"in MediaRecorder.prototype&&!co&&(H=mn),"video"===k.type&&(co||Hi)&&(H=Wi,typeof ReadableStream<"u"&&(H=Mi)),"gif"===k.type&&(H=uo),"canvas"===k.type&&(H=Sr),jn()&&H!==Sr&&H!==uo&&typeof MediaRecorder<"u"&&"requestData"in MediaRecorder.prototype&&(e(Z,"video").length||e(Z,"audio").length)&&("audio"===k.type?"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupp
129orted("audio/webm")&&(H=mn):"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported("video/webm")&&(H=mn)),Z instanceof Array&&Z.length&&(H=hs),k.recorderType&&(H=k.recorderType),!k.disableLogs&&H&&H.name&&console.log("Using recorderType:",H.name||H.constructor.name),!H&&et&&(H=mn),H}function $i(Z){this.addStream=function(k){k&&(Z=k)},this.mediaType={audio:!0,video:!0},this.startRecording=function(){var H,k=this.mediaType,ye=this.mimeType||{audio:null,video:null,gif:null};if("function"!=typeof k.audio&&jn()&&!e(Z,"audio").length&&(k.audio=!1),"function"!=typeof k.video&&jn()&&!e(Z,"video").length&&(k.video=!1),"function"!=typeof k.gif&&jn()&&!e(Z,"video").length&&(k.gif=!1),!k.audio&&!k.video&&!k.gif)throw"MediaStream must have either audio or video tracks.";if(k.audio&&(H=null,"function"==typeof k.audio&&(H=k.audio),this.audioRecorder=new Ve(Z,{type:"audio",bufferSize:this.bufferSize,sampleRate:this.sampleRate,numberOfAudioChannels:this.numberOfAudioChannels||2,disableLogs:this.disableLogs,recorderType:H,mimeType:ye.audio,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp}),k.video||this.audioRecorder.startRecording()),k.video){H=null,"function"==typeof k.video&&(H=k.video);var Te=Z;if(jn()&&k.audio&&"function"==typeof k.audio){var me=e(Z,"video")[0];us?((Te=new sn).addTrack(me),H&&H===Wi&&(H=mn)):(Te=new sn).addTrack(me)}this.videoRecorder=new Ve(Te,{type:"video",video:this.video,canvas:this.canvas,frameInterval:this.frameInterval||10,disableLogs:this.disableLogs,recorderType:H,mimeType:ye.video,timeSlice:this.timeSlice,onTimeStamp:this.onTimeStamp,workerPath:this.workerPath,webAssemblyPath:this.webAssemblyPath,frameRate:this.frameRate,bitrate:this.bitrate}),k.audio||this.videoRecorder.startRecording()}if(k.audio&&k.video){var Me=this,le=!0===jn();(k.audio instanceof Be&&k.video||!0!==k.audio&&!0!==k.video&&k.audio!==k.video)&&(le=!1),!0===le?(Me.audioRecorder=null,Me.videoRecorder.startRecording()):Me.videoRecorder.initRecorder(function(){Me.audioRecorder.initRecorder(function(){Me.videoRecorder.startRecording(),Me.audioRecorder.startRecording()})})}k.gif&&(H=null,"function"==typeof k.gif&&(H=k.gif),this.gifRecorder=new Ve(Z,{type:"gif",frameRate:this.frameRate||200,quality:this.quality||10,disableLogs:this.disableLogs,recorderType:H,mimeType:ye.gif}),this.gifRecorder.startRecording())},this.stopRecording=function(k){k=k||function(){},this.audioRecorder&&this.audioRecorder.stopRecording(function(H){k(H,"audio")}),this.videoRecorder&&this.videoRecorder.stopRecording(function(H){k(H,"video")}),this.gifRecorder&&this.gifRecorder.stopRecording(function(H){k(H,"gif")})},this.pauseRecording=function(){this.audioRecorder&&this.audioRecorder.pauseRecording(),this.videoRecorder&&this.videoRecorder.pauseRecording(),this.gifRecorder&&this.gifRecorder.pauseRecording()},this.resumeRecording=function(){this.audioRecorder&&this.audioRecorder.resumeRecording(),this.videoRecorder&&this.videoRecorder.resumeRecording(),this.gifRecorder&&this.gifRecorder.resumeRecording()},this.getBlob=function(k){var H={};return this.audioRecorder&&(H.audio=this.audioRecorder.getBlob()),this.videoRecorder&&(H.video=this.videoRecorder.getBlob()),this.gifRecorder&&(H.gif=this.gifRecorder.getBlob()),k&&k(H),H},this.destroy=function(){this.audioRecorder&&(this.audioRecorder.destroy(),this.audioRecorder=null),this.videoRecorder&&(this.videoRecorder.destroy(),this.videoRecorder=null),this.gifRecorder&&(this.gifRecorder.destroy(),this.gifRecorder=null)},this.getDataURL=function(k){function H(Te,me){if(typeof Worker<"u"){var Me=function ye(Te){var le,me=pi.createObjectURL(new Blob([Te.toString(),"this.onmessage =  function (eee) {"+Te.name+"(eee.data);}"],{type:"application/javascript"})),Me=new Worker(me);if(typeof pi<"u")le=pi;else{if(!(typeof webkitURL<"u"))throw"Neither URL nor webkitURL detected.";le=webkitURL}return le.revokeObjectURL(me),Me}(function(pt){postMessage((new FileReaderSync).readAsDataURL(pt))});Me.onmessage=function(Xe){me(Xe.data)},Me.postMessage(Te)}else{var le=new FileReader;le.readAsDataURL(Te),le.onload=function(Xe){me(Xe.target.result)}}}this.getBlob(function(Te){Te.audio&&Te.video?H(Te.audio,function(me){H(Te.video,function(Me){k({audio:me,video:Me})})}):Te.audio?H(Te.audio,function(me){k({audio:me})}):Te.video&&H(Te.video,function(me){k({video:me})})})},this.writeToDisk=function(){Ve.writeToDisk({audio:this.audioRecorder,video:this.videoRecorder,gif:this.gifRecorder})},this.save=function(k){(k=k||{audio:!0,video:!0,gif:!0}).audio&&this.audioRecorder&&this.audioRecorder.save("string"==typeof k.audio?k.audio:""),k.video&&this.videoRecorder&&this.videoRecorder.save("string"==typeof k.video?k.video:""),k.gif&&this.gifRecorder&&this.gifRecorder.save("string"==typeof k.gif?k.gif:"")}}Ve.version="5.6.2",Fr.exports=Ve,void 0!==(qe=function(){return Ve}.apply(lr,[]))&&(Fr.exports=qe),Ve.getFromDisk=function(Z,k){if(!k)throw"callback is mandatory.";console.log("Getting recorded "+("all"===Z?"blobs":Z+" blob ")+" from disk!"),Qt.Fetch(function(H,ye){"all"!==Z&&ye===Z+"Blob"&&k&&k(H),"all"===Z&&k&&k(H,ye.replace("Blob",""))})},Ve.writeToDisk=function(Z){console.log("Writing recorded blob(s) to disk!"),(Z=Z||{}).audio&&Z.video&&Z.gif?Z.audio.getDataURL(function(k){Z.video.getDataURL(function(H){Z.gif.getDataURL(function(ye){Qt.Store({audio
129Blob:k,videoBlob:H,gifBlob:ye})})})}):Z.audio&&Z.video?Z.audio.getDataURL(function(k){Z.video.getDataURL(function(H){Qt.Store({audioBlob:k,videoBlob:H})})}):Z.audio&&Z.gif?Z.audio.getDataURL(function(k){Z.gif.getDataURL(function(H){Qt.Store({audioBlob:k,gifBlob:H})})}):Z.video&&Z.gif?Z.video.getDataURL(function(k){Z.gif.getDataURL(function(H){Qt.Store({videoBlob:k,gifBlob:H})})}):Z.audio?Z.audio.getDataURL(function(k){Qt.Store({audioBlob:k})}):Z.video?Z.video.getDataURL(function(k){Qt.Store({videoBlob:k})}):Z.gif&&Z.gif.getDataURL(function(k){Qt.Store({gifBlob:k})})},$i.getFromDisk=Ve.getFromDisk,$i.writeToDisk=Ve.writeToDisk,Ve.MRecordRTC=$i,(Z=typeof global<"u"?global:null)&&(typeof window<"u"||typeof global>"u"||(global.navigator={userAgent:"Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45",getUserMedia:function(){}},global.console||(global.console={}),(typeof global.console.log>"u"||typeof global.console.error>"u")&&(global.console.error=global.console.log=global.console.log||function(){console.log(arguments)}),typeof document>"u"&&(Z.document={documentElement:{appendChild:function(){return""}}},document.createElement=document.captureStream=document.mozCaptureStream=function(){var k={getContext:function(){return k},play:function(){},pause:function(){},drawImage:function(){},toDataURL:function(){return""},style:{}};return k},Z.HTMLVideoElement=function(){}),typeof location>"u"&&(Z.location={protocol:"file:",href:"",hash:""}),typeof screen>"u"&&(Z.screen={width:0,height:0}),typeof pi>"u"&&(Z.URL={createObjectURL:function(){return""},revokeObjectURL:function(){return""}}),Z.window=global));var di=window.requestAnimationFrame;if(typeof di>"u")if(typeof webkitRequestAnimationFrame<"u")di=webkitRequestAnimationFrame;else if(typeof mozRequestAnimationFrame<"u")di=mozRequestAnimationFrame;else if(typeof msRequestAnimationFrame<"u")di=msRequestAnimationFrame;else if(typeof di>"u"){var so=0;di=function(Z,k){var H=(new Date).getTime(),ye=Math.max(0,16-(H-so)),Te=setTimeout(function(){Z(H+ye)},ye);return so=H+ye,Te}}var Ni=window.cancelAnimationFrame;typeof Ni>"u"&&(typeof webkitCancelAnimationFrame<"u"?Ni=webkitCancelAnimationFrame:typeof mozCancelAnimationFrame<"u"?Ni=mozCancelAnimationFrame:typeof msCancelAnimationFrame<"u"?Ni=msCancelAnimationFrame:typeof Ni>"u"&&(Ni=function(Z){clearTimeout(Z)}));var Dn=window.AudioContext;typeof Dn>"u"&&(typeof webkitAudioContext<"u"&&(Dn=webkitAudioContext),typeof mozAudioContext<"u"&&(Dn=mozAudioContext));var pi=window.URL;typeof pi>"u"&&typeof webkitURL<"u"&&(pi=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var lo=!(-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveBlob&&!navigator.msSaveOrOpenBlob),Hi=!!window.opera||-1!==navigator.userAgent.indexOf("OPR/"),us=navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),co=!Hi&&!lo&&!!navigator.webkitGetUserMedia||_s()||-1!==navigator.userAgent.toLowerCase().indexOf("chrome/"),et=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);et&&!co&&-1!==navigator.userAgent.indexOf("CriOS")&&(et=!1,co=!0);var sn=window.MediaStream;function Ut(Z){if(0===Z)return"0 Bytes";var ye=parseInt(Math.floor(Math.log(Z)/Math.log(1e3)),10);return(Z/Math.pow(1e3,ye)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB"][ye]}function ps(Z,k){if(!Z)throw"Blob object is required.";if(!Z.type)try{Z.type="video/webm"}catch{}var H=(Z.type||"video/webm").split("/")[1];if(-1!==H.indexOf(";")&&(H=H.split(";")[0]),k&&-1!==k.indexOf(".")){var ye=k.split(".");k=ye[0],H=ye[1]}var Te=(k||Math.round(9999999999*Math.random())+888888888)+"."+H;if(typeof navigator.msSaveOrOpenBlob<"u")return navigator.msSaveOrOpenBlob(Z,Te);if(typeof navigator.msSaveBlob<"u")return navigator.msSaveBlob(Z,Te);var me=document.createElement("a");me.href=pi.createObjectURL(Z),me.download=Te,me.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(me),"function"==typeof me.click?me.click():(me.target="_blank",me.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),pi.revokeObjectURL(me.href)}function _s(){return!!(typeof window<"u"&&"object"==typeof window.process&&"renderer"===window.process.type||typeof process<"u"&&"object"==typeof process.versions&&process.versions.electron||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)}function e(Z,k){return Z&&Z.getTracks?Z.getTracks().filter(function(H){return H.kind===(k||"audio")}):[]}
129function ka(Z,k){"srcObject"in k?k.srcObject=Z:"mozSrcObject"in k?k.mozSrcObject=Z:k.srcObject=Z}typeof sn>"u"&&typeof webkitMediaStream<"u"&&(sn=webkitMediaStream),typeof sn<"u"&&typeof sn.prototype.stop>"u"&&(sn.prototype.stop=function(){this.getTracks().forEach(function(Z){Z.stop()})}),Ve.invokeSaveAsDialog=ps,Ve.getTracks=e,Ve.getSeekableBlob=function Pl(Z,k){if(typeof EBML>"u")throw new Error("Please link: https://www.webrtc-experiment.com/EBML.js");var H=new EBML.Reader,ye=new EBML.Decoder,Te=EBML.tools,me=new FileReader;me.onload=function(Me){ye.decode(this.result).forEach(function(st){H.read(st)}),H.stop();var Xe=Te.makeMetadataSeekable(H.metadatas,H.duration,H.cues),pt=this.result.slice(H.metadataSize),Ge=new Blob([Xe,pt],{type:"video/webm"});k(Ge)},me.readAsArrayBuffer(Z)},Ve.bytesToSize=Ut,Ve.isElectron=_s;var qo={};function jn(){if(us||et||lo)return!0;navigator;var me,Me,k=navigator.userAgent,H=""+parseFloat(navigator.appVersion),ye=parseInt(navigator.appVersion,10);return(co||Hi)&&(me=k.indexOf("Chrome"),H=k.substring(me+7)),-1!==(Me=H.indexOf(";"))&&(H=H.substring(0,Me)),-1!==(Me=H.indexOf(" "))&&(H=H.substring(0,Me)),ye=parseInt(""+H,10),isNaN(ye)&&(H=""+parseFloat(navigator.appVersion),ye=parseInt(navigator.appVersion,10)),ye>=49}function mn(Z,k){var H,Ge=this;if(typeof Z>"u")throw'First argument "MediaStream" is required.';if(typeof MediaRecorder>"u")throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";"audio"===(k=k||{mimeType:"video/webm"}).type&&(e(Z,"video").length&&e(Z,"audio").length&&(navigator.mozGetUserMedia?(H=new sn).addTrack(e(Z,"audio")[0]):H=new sn(e(Z,"audio")),Z=H),(!k.mimeType||-1===k.mimeType.toString().toLowerCase().indexOf("audio"))&&(k.mimeType=co?"audio/webm":"audio/ogg"),k.mimeType&&"audio/ogg"!==k.mimeType.toString().toLowerCase()&&navigator.mozGetUserMedia&&(k.mimeType="audio/ogg"));var le,ye=[];function Te(){Ge.timestamps.push((new Date).getTime()),"function"==typeof k.onTimeStamp&&k.onTimeStamp(Ge.timestamps[Ge.timestamps.length-1],Ge.timestamps)}function me(st){return le&&le.mimeType?le.mimeType:st.mimeType||"video/webm"}function Me(){ye=[],le=null,Ge.timestamps=[]}this.getArrayOfBlobs=function(){return ye},this.record=function(){Ge.blob=null,Ge.clearRecordedData(),Ge.timestamps=[],pt=[],ye=[];var st=k;k.disableLogs||console.log("Passing following config over MediaRecorder API.",st),le&&(le=null),co&&!jn()&&(st="video/vp8"),"function"==typeof MediaRecorder.isTypeSupported&&st.mimeType&&(MediaRecorder.isTypeSupported(st.mimeType)||(k.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",st.mimeType),st.mimeType="audio"===k.type?"audio/webm":"video/webm"));try{le=new MediaRecorder(Z,st),k.mimeType=st.mimeType}catch{le=new MediaRecorder(Z)}st.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in le&&!1===le.canRecordMimeType(st.mimeType)&&(k.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",st.mimeType)),le.ondataavailable=function(rt){if(rt.data&&pt.push("ondataavailable: "+Ut(rt.data.size)),"number"!=typeof k.timeSlice)!rt.data||!rt.data.size||rt.data.size<100||Ge.blob?Ge.recordingCallback&&(Ge.recordingCallback(new Blob([],{type:me(st)})),Ge.recordingCallback=null):(Ge.blob=k.getNativeBlob?rt.data:new Blob([rt.data],{type:me(st)}),Ge.recordingCallback&&(Ge.recordingCallback(Ge.blob),Ge.recordingCallback=null));else if(rt.data&&rt.data.size&&(ye.push(rt.data),Te(),"function"==typeof k.ondataavailable)){var He=k.getNativeBlob?rt.data:new Blob([rt.data],{type:me(st)});k.ondataavailable(He)}},le.onstart=function(){pt.push("started")},le.onpause=function(){pt.push("paused")},le.onresume=function(){pt.push("resumed")},le.onstop=function(){pt.push("stopped")},le.onerror=function(rt){rt&&(rt.name||(rt.name="UnknownError"),pt.push("error: "+rt),k.disableLogs||(-1!==rt.name.toString().toLowerCase().indexOf("invalidstate")?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",rt):-1!==rt.name.toString().toLowerCase().indexOf("notsupported")?console.error("MIME type (",st.mimeType,") is not supported.",rt):-1!==rt.n
vendor: 1,154 bytes, line 129
129ame.toString().toLowerCase().indexOf("security")?console.error("MediaRecorder security error",rt):"OutOfMemory"===rt.name?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",rt):"IllegalStreamModification"===rt.name?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",rt):"OtherRecordingError"===rt.name?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",rt):"GenericError"===rt.name?console.error("The UA cannot provide the codec or recording option that has been requested.",rt):console.error("MediaRecorder Error",rt)),function(He){if(!Ge.manuallyStopped&&le&&"inactive"===le.state)return delete k.timeslice,void le.start(6e5);setTimeout(void 0,1e3)}(),"inactive"!==le.state&&"stopped"!==le.state&&le.stop())}
129,"number"==typeof k.timeSlice?(Te(),le.start(k.timeSlice)):le.start(36e5),k.initCallback&&k.initCallback()},this.timestamps=[],this.stop=function(st){st=st||function(){},Ge.manuallyStopped=!0,le&&(this.recordingCallback=st,"recording"===le.state&&le.stop(),"number"==typeof k.timeSlice&&setTimeout(function(){Ge.blob=new Blob(ye,{type:me(k)}),Ge.recordingCallback(Ge.blob)},100))},this.pause=function(){le&&"recording"===le.state&&le.pause()},this.resume=function(){le&&"paused"===le.state&&le.resume()},this.clearRecordedData=function(){le&&"recording"===le.state&&Ge.stop(Me),Me()},this.getInternalRecorder=function(){return le},this.blob=null,this.getState=function(){return le&&le.state||"inactive"};var pt=[];this.getAllStates=function(){return pt},typeof k.checkForInactiveTracks>"u"&&(k.checkForInactiveTracks=!1),Ge=this,function st(){if(le&&!1!==k.checkForInactiveTracks){if(!1===function Xe(){if("active"in Z){if(!Z.active)return!1}else if("ended"in Z&&Z.ended)return!1;return!0}())return k.disableLogs||console.log("MediaStream seems stopped."),void Ge.stop();setTimeout(st,1e3)}}(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}function Be(Z,k){if(!e(Z,"audio").length)throw"Your stream has no audio tracks.";var le,H=this,ye=[],Te=[],me=!1,Me=0,Xe=2,pt=(k=k||{}).desiredSampRate;function Ge(){if(!1===k.checkForInactiveTracks)return!0;if("active"in Z){if(!Z.active)return!1}else if("ended"in Z&&Z.ended)return!1;return!0}function st(Ct,Ii){function _i(ai,Fn){var Rr,Pn=ai.numberOfAudioChannels,ni=ai.leftBuffers.slice(0),ji=ai.rightBuffers.slice(0),Oi=ai.sampleRate,cn=ai.internalInterleavedLength,Zi=ai.desiredSampRate;function So(Fi,Nn,dn){var un=Math.round(Fi.length*(Nn/dn)),Gi=[],Jn=Number((Fi.length-1)/(un-1));Gi[0]=Fi[0];for(var Qi=1;Qi<un-1;Qi++){var Fa=Qi*Jn,ms=Number(Math.floor(Fa)).toFixed(),Ll=Number(Math.ceil(Fa)).toFixed();Gi[Qi]=wa(Fi[ms],Fi[Ll],Fa-ms)}return Gi[un-1]=Fi[Fi.length-1],Gi}function wa(Fi,Nn,dn){return Fi+(Nn-Fi)*dn}function xa(Fi,Nn){for(var dn=new Float64Array(Nn),un=0,Gi=Fi.length,Jn=0;Jn<Gi;Jn++){var Qi=Fi[Jn];dn.set(Qi,un),un+=Qi.length}return dn}function Er(Fi,Nn,dn){for(var un=dn.length,Gi=0;Gi<un;Gi++)Fi.setUint8(Nn+Gi,dn.charCodeAt(Gi))}2===Pn&&(ni=xa(ni,cn),ji=xa(ji,cn),Zi&&(ni=So(ni,Zi,Oi),ji=So(ji,Zi,Oi))),1===Pn&&(ni=xa(ni,cn),Zi&&(ni=So(ni,Zi,Oi))),Zi&&(Oi=Zi),2===Pn&&(Rr=function Ml(Fi,Nn){for(var dn=Fi.length+Nn.length,un=new Float64Array(dn),Gi=0,Jn=0;Jn<dn;)un[Jn++]=Fi[Gi],un[Jn++]=Nn[Gi],Gi++;return un}(ni,ji)),1===Pn&&(Rr=ni);var Tr=Rr.length,Ca=new ArrayBuffer(44+2*Tr),Ai=new DataView(Ca);Er(Ai,0,"RIFF"),Ai.setUint32(4,36+2*Tr,!0),Er(Ai,8,"WAVE"),Er(Ai,12,"fmt "),Ai.setUint32(16,16,!0),Ai.setUint16(20,1,!0),Ai.setUint16(22,Pn,!0),Ai.setUint32(24,Oi,!0),Ai.setUint32(28,Oi*Pn*2,!0),Ai.setUint16(32,2*Pn,!0),Ai.setUint16(34,16,!0),Er(Ai,36,"data"),Ai.setUint32(40,2*Tr,!0);for(var Al=Tr,fs=44,ja=0;ja<Al;ja++)Ai.setInt16(fs,32767*Rr[ja],!0),fs+=2;if(Fn)return Fn({buffer:Ca,view:Ai});postMessage({buffer:Ca,view:Ai})}if(Ct.noWorker)_i(Ct,function(ai){Ii(ai.buffer,ai.view)});else{var ln=function rt(Ct){var Ii=pi.createObjectURL(new Blob([Ct.toString(),";this.onmessage =  function (eee) {"+Ct.name+"(eee.data);}"],{type:"application/javascript"})),_i=new Worker(Ii);return _i.workerURL=Ii,_i}(_i);ln.onmessage=function(ai){Ii(ai.data.buffer,ai.data.view),pi.revokeObjectURL(ln.workerURL),ln.terminate()},ln.postMessage(Ct)}}!0===k.leftChannel&&(Xe=1),1===k.numberOfAudioChannels&&(Xe=1),(!Xe||Xe<1)&&(Xe=2),k.disableLogs||console.log("StereoAudioRecorder is set to record number of channels: "+Xe),typeof k.checkForInactiveTracks>"u"&&(k.checkForInactiveTracks=!0),this.record=function(){if(!1===Ge())throw"Please make sure MediaStream is active.";We(),Ce=Pe=!1,me=!0,typeof k.timeSlice<"u"&&Lt()},this.stop=function(Ct){Ct=Ct||function(){},me=!1,st({desiredSampRate:pt,sampleRate:$e,numberOfAudioChannels:Xe,internalInterleavedLength:Me,leftBuffers:ye,rightBuffers:1===Xe?[]:Te,noWorker:k.noWorker},function(Ii,_i){H.blob=new Blob([_i],{type:"audio/wav"}),H.buffer=new ArrayBuffer(_i.buffer.byteLength),H.view=_i,H.sampleRate=pt||$e,H.bufferSize=vt,H.length=Me,Ce=!1,Ct&&Ct(H.blob)})},typeof Ve.Storage>"u"&&(Ve.Storage={AudioContextConstructor:null,AudioContext:window.AudioContext||window.webkitAudioContext}),(!Ve.Storage.AudioContextConstructor||"closed"===Ve.Storage.AudioContextConstructor.state)&&(Ve.Storage.AudioContextConstructor=new Ve.Storage.AudioContext);var He=Ve.Storage.AudioContextConstructor,Ne=He.createMediaStreamSource(Z),ht=[0,256,512,1024,2048,4096,8192,16384],vt=typeof k.bufferSize>"u"?4096:k.bufferSize;if(-1===ht.indexOf(vt)&&(k.disableLogs||console.log("Legal values for buffer-size are "+JSON.stringify(ht,null,"\t"))),He.createJavaScriptNode)le=He.createJavaScriptNode(vt,Xe,Xe);else{if(!He.createScriptProcessor)throw"WebAudio API has no support on this browser.";le=He.createScriptProcessor(vt,Xe,Xe)}Ne.connect(le),k.bufferSize||(vt=le.bufferSize);var $e=typeof k.sampleRate<"u"?k.sampleRate:He.sampleRate||44100;($e<22050||$e>96e3)&&(k.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),k.disableLogs||k.desiredSampRate&&console.log("Desired sample-rate: "+k.desiredSampRate);var Pe=!1;function We(){Te=[],Me=0,Ce=!1,me=!1,Pe=!1,He=null,H.leftchannel=ye=[],H.rightchannel=Te,H.numberOfAudioChannels=Xe,H.desiredSampRate=pt,H.sampleRate=$e,H.recordingLength=Me,dt={left:[],r
129ight:[],recordingLength:0}}function ve(){le&&(le.onaudioprocess=null,le.disconnect(),le=null),Ne&&(Ne.disconnect(),Ne=null),We()}this.pause=function(){Pe=!0},this.resume=function(){if(!1===Ge())throw"Please make sure MediaStream is active.";if(!me)return k.disableLogs||console.log("Seems recording has been restarted."),void this.record();Pe=!1},this.clearRecordedData=function(){k.checkForInactiveTracks=!1,me&&this.stop(ve),ve()},this.name="StereoAudioRecorder",this.toString=function(){return this.name};var Ce=!1;le.onaudioprocess=function lt(Ct){if(!Pe){if(!1===Ge()&&(k.disableLogs||console.log("MediaStream seems stopped."),le.disconnect(),me=!1),!me)return void(Ne&&(Ne.disconnect(),Ne=null));Ce||(Ce=!0,k.onAudioProcessStarted&&k.onAudioProcessStarted(),k.initCallback&&k.initCallback());var Ii=Ct.inputBuffer.getChannelData(0),_i=new Float32Array(Ii);if(ye.push(_i),2===Xe){var ln=Ct.inputBuffer.getChannelData(1),ai=new Float32Array(ln);Te.push(ai)}H.recordingLength=Me+=vt,typeof k.timeSlice<"u"&&(dt.recordingLength+=vt,dt.left.push(_i),2===Xe&&dt.right.push(ai))}},le.connect(He.createMediaStreamDestination?He.createMediaStreamDestination():He.destination),this.leftchannel=ye,this.rightchannel=Te,this.numberOfAudioChannels=Xe,this.desiredSampRate=pt,this.sampleRate=$e,H.recordingLength=Me;var dt={left:[],right:[],recordingLength:0};function Lt(){!me||"function"!=typeof k.ondataavailable||typeof k.timeSlice>"u"||(dt.left.length?(st({desiredSampRate:pt,sampleRate:$e,numberOfAudioChannels:Xe,internalInterleavedLength:dt.recordingLength,leftBuffers:dt.left,rightBuffers:1===Xe?[]:dt.right},function(Ct,Ii){var _i=new Blob([Ii],{type:"audio/wav"});k.ondataavailable(_i),setTimeout(Lt,k.timeSlice)}),dt={left:[],right:[],recordingLength:0}):setTimeout(Lt,k.timeSlice))}}function Sr(Z,k){if(typeof html2canvas>"u")throw"Please link: https://www.webrtc-experiment.com/screenshot.js";(k=k||{}).frameInterval||(k.frameInterval=10);var H=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(ht){ht in document.createElement("canvas")&&(H=!0)});var Me,le,Xe,ye=!(!window.webkitRTCPeerConnection&&!window.webkitGetUserMedia||!window.chrome),Te=50,me=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(ye&&me&&me[2]&&(Te=parseInt(me[2],10)),ye&&Te<52&&(H=!1),k.useWhammyRecorder&&(H=!1),H)if(k.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),Z instanceof HTMLCanvasElement)Me=Z;else{if(!(Z instanceof CanvasRenderingContext2D))throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";Me=Z.canvas}else navigator.mozGetUserMedia&&(k.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));this.record=function(){if(Xe=!0,H&&!k.useWhammyRecorder){var ht;"captureStream"in Me?ht=Me.captureStream(25):"mozCaptureStream"in Me?ht=Me.mozCaptureStream(25):"webkitCaptureStream"in Me&&(ht=Me.webkitCaptureStream(25));try{var vt=new sn;vt.addTrack(e(ht,"video")[0]),ht=vt}catch{}if(!ht)throw"captureStream API are NOT available.";(le=new mn(ht,{mimeType:k.mimeType||"video/webm"})).record()}else Ne.frames=[],He=(new Date).getTime(),rt();k.initCallback&&k.initCallback()},this.getWebPImages=function(ht){if("canvas"===Z.nodeName.toLowerCase()){var vt=Ne.frames.length;Ne.frames.forEach(function($e,Pe){var We=vt-Pe;k.disableLogs||console.log(We+"/"+vt+" frames remaining"),k.onEncodingCallback&&k.onEncodingCallback(We,vt);var ve=$e.image.toDataURL("image/webp",1);Ne.frames[Pe].image=ve}),k.disableLogs||console.log("Generating WebM"),ht()}else ht()},this.stop=function(ht){Xe=!1;var vt=this;H&&le?le.stop(ht):this.getWebPImages(function(){Ne.compile(function($e){k.disableLogs||console.log("Recording finished!"),vt.blob=$e,vt.blob.forEach&&(vt.blob=new Blob([],{type:"video/webm"})),ht&&ht(vt.blob),Ne.frames=[]})})};var pt=!1;function Ge(){Ne.frames=[],Xe=!1,pt=!1}function st(){var ht=document.createElement("canvas"),vt=ht.getContext("2d");return ht.width=Z.width,ht.height=Z.height,vt.drawImage(Z,0,0),ht}function rt(){if(pt)return He=(new Date).getTime(),setTimeout(rt,500);if("canvas"===Z.nodeName.toLowerCase()){var ht=(new Date).getTime()-He;return He=(new Date).getTime(),Ne.frames.push({image:st(),duration:ht}),void(Xe&&setTimeout(rt,k.frameInterval))}html2canvas(Z,{grabMouse:typeof k.showMousePointer>"u"||k.showMousePointer,onrendered:function(vt){var $e=(new Date).getTime()-He;if(!$e)return setTimeout(rt,k.frameInterval);He=(new Date).getTime(),Ne.frames.push({image:vt.toDataURL("image/webp",1),duration:$e}),Xe&&setTimeout(rt,k.frameInterval)}})}this.pause=function(){pt=!0,le instanceof mn&&le.pause()},this.resume=function(){pt=!1,le instanceof mn?le.resume():Xe||this.record()},this.clearRecordedData=function(){Xe&&this.stop(Ge),Ge()},this.name="CanvasRecorder",this.toString=function(){return this.name};var He=(new Date).getTime(),Ne=new Yi.Video(100)}function Wi(Z,k){function H(He){He=typeof He<"u"?He:10;var Ne=(new Date).getTime()-st;return Ne?Me?(st=(new Date).getTime(),setTimeout(H,100)):(st=(new Date).getTime(),Ge.paused&&Ge.play(),pt.drawImage(Ge,0,0,Xe.width,Xe.height),rt.frames.push({duration:Ne,image:Xe.toDataURL("image/webp")}),void(me||setTimeout(H,He,He))):setTimeout(H,He,He)}(k=k||{}).frameInterval||(k.frameInterval=10),k.disableLogs||console.log("Using frames-interval:",k.frameInterval),this.record=function(){k.width||(k.width=320),k.height||(k.height=240),k.video||(k.video={width:k.width,height:k.height}),k.canvas||(k.canvas={width:k.width,height:k.height}),Xe.width=k.canvas.width||320,Xe.height=k.canvas.height||240,pt=Xe.getContext("2d"),k.video&&k.video instanceof HTMLVideoElement?(Ge=k.video.cloneNode(),k.initCallback&&k.init
129Callback()):(Ge=document.createElement("video"),ka(Z,Ge),Ge.onloadedmetadata=function(){k.initCallback&&k.initCallback()},Ge.width=k.video.width,Ge.height=k.video.height),Ge.muted=!0,Ge.play(),st=(new Date).getTime(),rt=new Yi.Video,k.disableLogs||(console.log("canvas resolutions",Xe.width,"*",Xe.height),console.log("video width/height",Ge.width||Xe.width,"*",Ge.height||Xe.height)),H(k.frameInterval)};var me=!1;this.stop=function(He){He=He||function(){},me=!0;var Ne=this;setTimeout(function(){!function Te(He,Ne,ht,vt,$e){var Pe=document.createElement("canvas");Pe.width=Xe.width,Pe.height=Xe.height;var We=Pe.getContext("2d"),ve=[],Ce=-1===Ne,lt=Ne&&Ne>0&&Ne<=He.length?Ne:He.length,Lt=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),Ct=ht&&ht>=0&&ht<=1?ht:0,Ii=vt&&vt>=0&&vt<=1?vt:0,_i=!1;!function ye(He){var Ne=-1,ht=He.length;!function vt(){++Ne!==ht?setTimeout(function(){He.functionToLoop(vt,Ne)},1):He.callback()}()}({length:lt,functionToLoop:function(ln,ai){var Fn,Pn,ni,ji=function(){!_i&&ni-Fn<=ni*Ii||(Ce&&(_i=!0),ve.push(He[ai])),ln()};if(_i)ji();else{var Oi=new Image;Oi.onload=function(){We.drawImage(Oi,0,0,Xe.width,Xe.height);var cn=We.getImageData(0,0,Xe.width,Xe.height);Fn=0,Pn=cn.data.length,ni=cn.data.length/4;for(var Zi=0;Zi<Pn;Zi+=4){var So={r:cn.data[Zi],g:cn.data[Zi+1],b:cn.data[Zi+2]};Math.sqrt(Math.pow(So.r-0,2)+Math.pow(So.g-0,2)+Math.pow(So.b-0,2))<=Lt*Ct&&Fn++}ji()},Oi.src=He[ai].image}},callback:function(){(ve=ve.concat(He.slice(lt))).length<=0&&ve.push(He[He.length-1]),$e(ve)}})}(rt.frames,-1,null,null,function(ht){rt.frames=ht,k.advertisement&&k.advertisement.length&&(rt.frames=k.advertisement.concat(rt.frames)),rt.compile(function(vt){Ne.blob=vt,Ne.blob.forEach&&(Ne.blob=new Blob([],{type:"video/webm"})),He&&He(Ne.blob)})})},10)};var Me=!1;function le(){rt.frames=[],me=!0,Me=!1}this.pause=function(){Me=!0},this.resume=function(){Me=!1,me&&this.record()},this.clearRecordedData=function(){me||this.stop(le),le()},this.name="WhammyRecorder",this.toString=function(){return this.name};var Ge,st,rt,Xe=document.createElement("canvas"),pt=Xe.getContext("2d")}typeof Dn<"u"?qo.AudioContext=Dn:typeof webkitAudioContext<"u"&&(qo.AudioContext=webkitAudioContext),Ve.Storage=qo,Ve.MediaStreamRecorder=mn,Ve.StereoAudioRecorder=Be,Ve.CanvasRecorder=Sr,Ve.WhammyRecorder=Wi;var Yi=function(){function Z(ye){this.frames=[],this.duration=ye||1,this.quality=.8}function H(ye){function me(Pe,We,ve){return[{data:Pe,id:231}].concat(ve.map(function(Ce){var lt=function rt(Pe){var We=0;
129if(Pe.keyframe&&(We|=128),Pe.invisible&&(We|=8),Pe.lacing&&(We|=Pe.lacing<<1),Pe.discardable&&(We|=1),Pe.trackNum>127)throw"TrackNumber > 127 not supported";var ve=[128|Pe.trackNum,Pe.timecode>>8,255&Pe.timecode,We].map(function(Ce){return String.fromCharCode(Ce)}).join("")+Pe.frame;return ve}({discardable:0,frame:Ce.data.slice(4),invisible:0,keyframe:1,lacing:0,trackNum:1,timecode:Math.round(We)});return We+=Ce.duration,{data:lt,id:163}}))}function le(Pe){for(var We=[];Pe>0;)We.push(255&Pe),Pe>>=8;return new Uint8Array(We.reverse())}function Xe(Pe){return new Uint8Array(Pe.split("").map(function(We){return We.charCodeAt(0)}))}function pt(Pe){var We=[];Pe=(Pe.length%8?new Array(9-Pe.length%8).join("0"):"")+Pe;for(var Ce=0;Ce<Pe.length;Ce+=8)We.push(parseInt(Pe.substr(Ce,8),2));return new Uint8Array(We)}function Ge(Pe){for(var We=[],ve=0;ve<Pe.length;ve++){var Ce=Pe[ve].data;"object"==typeof Ce&&(Ce=Ge(Ce)),"number"==typeof Ce&&(Ce=pt(Ce.toString(2))),"string"==typeof Ce&&(Ce=Xe(Ce));var lt=Ce.size||Ce.byteLength||Ce.length,dt=Math.ceil(Math.ceil(Math.log(lt)/Math.log(2))/8),Lt=lt.toString(2),Ct=new Array(7*dt+7+1-Lt.length).join("0")+Lt,Ii=new Array(dt).join("0")+"1"+Ct;We.push(le(Pe[ve].id)),We.push(pt(Ii)),We.push(Ce)}return new Blob(We,{type:"video/webm"})}function Ne(Pe,We){return parseInt(Pe.substr(We+4,4).split("").map(function(ve){var Ce=ve.charCodeAt(0).toString(2);return new Array(8-Ce.length+1).join("0")+Ce}).join(""),2)}function ht(Pe){for(var We=0,ve={};We<Pe.length;){var Ce=Pe.substr(We,4),lt=Ne(Pe,We),dt=Pe.substr(We+4+4,lt);We+=8+lt,ve[Ce]=ve[Ce]||[],ve[Ce].push("RIFF"===Ce||"LIST"===Ce?ht(dt):dt)}return ve}function vt(Pe){return[].slice.call(new Uint8Array(new Float64Array([Pe]).buffer),0).map(function(We){return String.fromCharCode(We)}).reverse().join("")}var $e=new function Te(Pe){var We=function Me(Pe){if(Pe[0]){for(var We=Pe[0].width,ve=Pe[0].height,Ce=Pe[0].duration,lt=1;lt<Pe.length;lt++)Ce+=Pe[lt].duration;return{duration:Ce,width:We,height:ve}}postMessage({error:"Something went wrong. Maybe WebP format is not supported in the current browser."})}(Pe);if(!We)return[];for(var Ce=[{id:440786851,data:[{data:1,id:17030},{data:1,id:17143},{data:4,id:17138},{data:8,id:17139},{data:"webm",id:17026},{data:2,id:17031},{data:2,id:17029}]},{id:408125543,data:[{id:357149030,data:[{data:1e6,id:2807729},{data:"whammy",id:19840},{data:"whammy",id:22337},{data:vt(We.duration),id:17545}]},{id:374648427,data:[{id:174,data:[{data:1,id:215},{data:1,id:29637},{data:0,id:156},{data:"und",id:2274716},{data:"V_VP8",id:134},{data:"VP8",id:2459272},{data:1,id:131},{id:224,data:[{data:We.width,id:176},{data:We.height,id:186}]}]}]}]}],lt=0,dt=0;lt<Pe.length;){var Lt=[],Ct=0;do{Lt.push(Pe[lt]),Ct+=Pe[lt].duration,lt++}while(lt<Pe.length&&Ct<3e4);var _i={id:524531317,data:me(dt,0,Lt)};Ce[1].data.push(_i),dt+=Ct}return Ge(Ce)}(ye.map(function(Pe){var We=function He(Pe){for(var We=Pe.RIFF[0].WEBP[0],ve=We.indexOf("\x9d\x01*"),Ce=0,lt=[];Ce<4;Ce++)lt[Ce]=We.charCodeAt(ve+3+Ce);return{width:16383&(lt[1]<<8|lt[0]),height:16383&(lt[3]<<8|lt[2]),data:We,riff:Pe}}(ht(atob(Pe.image.slice(23))));return We.duration=Pe.duration,We}));postMessage($e)}return Z.prototype.add=function(ye,Te){if("canvas"in ye&&(ye=ye.canvas),"toDataURL"in ye&&(ye=ye.toDataURL("image/webp",this.quality)),!/^data:image\/webp;base64,/gi.test(ye))throw"Input must be formatted properly as a base64 encoded DataURI of type image/webp";this.frames.push({image:ye,duration:Te||this.duration})},Z.prototype.compile=function(ye){var Te=function k(ye){var Te=pi.createObjectURL(new Blob([ye.toString(),"this.onmessage =  function (eee) {"+ye.name+"(eee.data);}"],{type:"application/javascript"})),me=new Worker(Te);return pi.revokeObjectURL(Te),me}(H);Te.onmessage=function(me){me.data.error?console.error(me.data.error):ye(me.data)},Te.postMessage(this.frames)},{Video:Z}}();Ve.Whammy=Yi;var Qt={init:function(){var Z=this;if(typeof indexedDB>"u"||typeof indexedDB.open>"u")console.error("IndexedDB API are not available in this browser.");else{var ye,H=this.dbName||location.href.replace(/\/|:|#|%|\.|\[|\]/g,""),Te=indexedDB.open(H,1);Te.onerror=Z.onError,Te.onsuccess=function(){(ye=Te.result).onerror=Z.onError,ye.setVersion&&1!==ye.version?ye.setVersion(1).onsuccess=function(){me(ye),Me()}:Me()},Te.onupgradeneeded=function(le){me(le.target.result)}}function me(le){le.createObjectStore(Z.dataStoreName)}function Me(){var le=ye.transaction([Z.dataStoreName],"readwrite");function Xe(pt){le.objectStore(Z.dataStoreName).get(pt).onsuccess=function(Ge){Z.callback&&Z.callback(Ge.target.result,pt)}}Z.videoBlob&&le.objectStore(Z.dataStoreName).put(Z.videoBlob,"videoBlob"),Z.gifBlob&&le.objectStore(Z.dataStoreName).put(Z.gifBlob,"gifBlob"),Z.audioBlob&&le.objectStore(Z.dataStoreName).put(Z.audioBlob,"audio
129Blob"),Xe("audioBlob"),Xe("videoBlob"),Xe("gifBlob")}},Fetch:function(Z){return this.callback=Z,this.init(),this},Store:function(Z){return this.audioBlob=Z.audioBlob,this.videoBlob=Z.videoBlob,this.gifBlob=Z.gifBlob,this.init(),this},onError:function(Z){console.error(JSON.stringify(Z,null,"\t"))},dataStoreName:"recordRTC",dbName:null};function uo(Z,k){if(typeof GIFEncoder>"u"){var H=document.createElement("script");H.src="https://www.webrtc-experiment.com/gif-recorder.js",(document.body||document.documentElement).appendChild(H)}k=k||{};var ye=Z instanceof CanvasRenderingContext2D||Z instanceof HTMLCanvasElement;this.record=function(){typeof GIFEncoder>"u"?setTimeout(ht.record,1e3):Xe?(ye||(k.width||(k.width=pt.offsetWidth||320),k.height||(k.height=pt.offsetHeight||240),k.video||(k.video={width:k.width,height:k.height}),k.canvas||(k.canvas={width:k.width,height:k.height}),Me.width=k.canvas.width||320,Me.height=k.canvas.height||240,pt.width=k.video.width||320,pt.height=k.video.height||240),(Ne=new GIFEncoder).setRepeat(0),Ne.setDelay(k.frameRate||200),Ne.setQuality(k.quality||10),Ne.start(),"function"==typeof k.onGifRecordingStarted&&k.onGifRecordingStarted(),Date.now(),Ge=di(function vt($e){if(!0!==ht.clearedRecordedData){if(Te)return setTimeout(function(){vt($e)},100);Ge=di(vt),void 0===typeof He&&(He=$e),!($e-He<90)&&(!ye&&pt.paused&&pt.play(),ye||le.drawImage(pt,0,0,Me.width,Me.height),k.onGifPreview&&k.onGifPreview(Me.toDataURL("image/png")),Ne.addFrame(le),He=$e)}}),k.initCallback&&k.initCallback()):setTimeout(ht.record,1e3)},this.stop=function(vt){vt=vt||function(){},Ge&&Ni(Ge),Date.now(),this.blob=new Blob([new Uint8Array(Ne.stream().bin)],{type:"image/gif"}),vt(this.blob),Ne.stream().bin=[]};var Te=!1;this.pause=function(){Te=!0},this.resume=function(){Te=!1},this.clearRecordedData=function(){ht.clearedRecordedData=!0,function me(){Ne&&(Ne.stream().bin=[])}()},this.name="GifRecorder",this.toString=function(){return this.name};var Me=document.createElement("canvas"),le=Me.getContext("2d");ye&&(Z instanceof CanvasRenderingContext2D?Me=(le=Z).canvas:Z instanceof HTMLCanvasElement&&(le=Z.getContext("2d"),Me=Z));var Xe=!0;if(!ye){var pt=document.createElement("video");pt.muted=!0,pt.autoplay=!0,pt.playsInline=!0,Xe=!1,pt.onloadedmetadata=function(){Xe=!0},ka(Z,pt),pt.play()}var He,Ne,Ge=null,ht=this}function Fo(Z,k){typeof global<"u"&&global,k=k||"multi-streams-mixer";var ye=[],Te=!1,me=document.createElement("canvas"),Me=me.getContext("2d");me.style.opacity=0,me.style.position="absolute",me.style.zIndex=-1,me.style.top="-1000em",me.style.left="-1000em",me.className=k,(document.body||document.documentElement).appendChild(me),this.disableLogs=!1,this.frameInterval=10,this.width=360,this.height=240,this.useGainNode=!0;var le=this,Xe=window.AudioContext;typeof Xe>"u"&&(typeof webkitAudioContext<"u"&&(Xe=webkitAudioContext),typeof mozAudioContext<"u"&&(Xe=mozAudioContext));var pt=window.URL;typeof pt>"u"&&typeof webkitURL<"u"&&(pt=webkitURL),typeof navigator<"u"&&typeof navigator.getUserMedia>"u"&&(typeof navigator.webkitGetUserMedia<"u"&&(navigator.getUserMedia=navigator.webkitGetUserMedia),typeof navigator.mozGetUserMedia<"u"&&(navigator.getUserMedia=navigator.mozGetUserMedia));var Ge=window.MediaStream;typeof Ge>"u"&&typeof webkitMediaStream<"u"&&(Ge=webkitMediaStream),typeof Ge<"u"&&typeof Ge.prototype.stop>"u"&&(Ge.prototype.stop=function(){this.getTracks().forEach(function(ve){ve.stop()})});var st={};function He(){if(!Te){var ve=ye.length,Ce=!1,lt=[];if(ye.forEach(function(Lt){Lt.stream||(Lt.stream={}),Lt.stream.fullcanvas?Ce=Lt:lt.push(Lt)}),Ce)me.width=Ce.stream.width,me.height=Ce.stream.height;else if(lt.length){me.width=ve>1?2*lt[0].width:lt[0].width;var dt=1;(3===ve||4===ve)&&(dt=2),(5===ve||6===ve)&&(dt=3),(7===ve||8===ve)&&(dt=4),(9===ve||10===ve)&&(dt=5),me.height=lt[0].height*dt}else me.width=le.width||360,me.height=le.height||240;Ce&&Ce instanceof HTMLVideoElement&&Ne(Ce),lt.forEach(function(Lt,Ct){Ne(Lt,Ct)}),setTimeout(He,le.frameInterval)}}function Ne(ve,Ce){if(!Te){var lt=0,dt=0,Lt=ve.width,Ct=ve.height;1===Ce&&(lt=ve.width),2===Ce&&(dt=ve.height),3===Ce&&(lt=ve.width,dt=ve.height),4
129===Ce&&(dt=2*ve.height),5===Ce&&(lt=ve.width,dt=2*ve.height),6===Ce&&(dt=3*ve.height),7===Ce&&(lt=ve.width,dt=3*ve.height),typeof ve.stream.left<"u"&&(lt=ve.stream.left),typeof ve.stream.top<"u"&&(dt=ve.stream.top),typeof ve.stream.width<"u"&&(Lt=ve.stream.width),typeof ve.stream.height<"u"&&(Ct=ve.stream.height),Me.drawImage(ve,lt,dt,Lt,Ct),"function"==typeof ve.stream.onRender&&ve.stream.onRender(Me,lt,dt,Lt,Ct,Ce)}}function Pe(ve){var Ce=document.createElement("video");return function rt(ve,Ce){"srcObject"in Ce?Ce.srcObject=ve:"mozSrcObject"in Ce?Ce.mozSrcObject=ve:Ce.srcObject=ve}(ve,Ce),Ce.className=k,Ce.muted=!0,Ce.volume=0,Ce.width=ve.width||le.width||360,Ce.height=ve.height||le.height||240,Ce.play(),Ce}function We(ve){ye=[],(ve=ve||Z).forEach(function(Ce){if(Ce.getTracks().filter(function(dt){return"video"===dt.kind}).length){var lt=Pe(Ce);lt.stream=Ce,ye.push(lt)}})}typeof Xe<"u"?st.AudioContext=Xe:typeof webkitAudioContext<"u"&&(st.AudioContext=webkitAudioContext),this.startDrawingFrames=function(){He()},this.appendStreams=function(ve){if(!ve)throw"First parameter is required.";ve instanceof Array||(ve=[ve]),ve.forEach(function(Ce){var lt=new Ge;if(Ce.getTracks().filter(function(Ct){return"video"===Ct.kind}).length){var dt=Pe(Ce);dt.stream=Ce,ye.push(dt),lt.addTrack(Ce.getTracks().filter(function(Ct){return"video"===Ct.kind})[0])}if(Ce.getTracks().filter(function(Ct){return"audio"===Ct.kind}).length){var Lt=le.audioContext.createMediaStreamSource(Ce);le.audioDestination=le.audioContext.createMediaStreamDestination(),Lt.connect(le.audioDestination),lt.addTrack(le.audioDestination.stream.getTracks().filter(function(Ct){return"audio"===Ct.kind})[0])}Z.push(lt)})},this.releaseStreams=function(){ye=[],Te=!0,le.gainNode&&(le.gainNode.disconnect(),le.gainNode=null),le.audioSources.length&&(le.audioSources.forEach(function(ve){ve.disconnect()}),le.audioSources=[]),le.audioDestination&&(le.audioDestination.disconnect(),le.audioDestination=null),le.audioContext&&le.audioContext.close(),le.audioContext=null,Me.clearRect(0,0,me.width,me.height),me.stream&&(me.stream.stop(),me.stream=null)},this.resetVideoStreams=function(ve){ve&&!(ve instanceof Array)&&(ve=[ve]),We(ve)},this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=function ht(){Te=!1;var ve=function vt(){var ve;We(),"captureStream"in me?ve=me.captureStream():"mozCaptureStream"in me?ve=me.mozCaptureStream():le.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var Ce=new Ge;return ve.getTracks().filter(function(lt){return"video"===lt.kind}).forEach(function(lt){Ce.addTrack(lt)}),me.stream=Ce,Ce}(),Ce=function $e(){st.AudioContextConstructor||(st.AudioContextConstructor=new st.AudioContext),le.audioContext=st.AudioContextConstructor,le.audioSources=[],!0===le.useGainNode&&(le.gainNode=le.audioContext.createGain(),le.gainNode.connect(le.audioContext.destination),le.gainNode.gain.value=0);var ve=0;if(Z.forEach(function(Ce){if(Ce.getTracks().filter(function(dt){return"audio"===dt.kind}).length){ve++;var lt=le.audioContext.createMediaStreamSource(Ce);!0===le.useGainNode&&lt.connect(le.gainNode),le.audioSources.push(lt)}}),ve)return le.audioDestination=le.audioContext.createMediaStreamDestination(),le.audioSources.forEach(function(Ce){Ce.connect(le.audioDestination)}),le.audioDestination.stream}();return Ce&&Ce.getTracks().filter(function(dt){return"audio"===dt.kind}).forEach(function(dt){ve.addTrack(dt)}),Z.forEach(function(dt){}),ve}}function hs(Z,k){Z=Z||[];var ye,Te,H=this;(k=k||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}}).frameInterval||(k.frameInterval=10),k.video||(k.video={}),k.video.width||(k.video.width=360),k.video.height||(k.video.height=240),this.record=function(){ye=new Fo(Z,k.elementClass||"multi-streams-mixer"),function me(){var Me=[];return Z.forEach(function(le){e(le,"video").forEach(function(Xe){Me.push(Xe)})}),Me}().length&&(ye.frameInterval=k.frameInterval||10,ye.width=k.video.width||360,ye.height=k.video.height||240,ye.startDrawingFrames()),k.previewStream&&"function"==typeof k.previewStream&&k.previewStream(ye.getMixedStream()),(Te=new mn(ye.getMixedStream(),k)).record()},this.stop=function(Me){Te&&Te.stop(function(le){H.blob=le,Me(le),H.clearRecordedData()})},this.pause=function(){Te&&Te.pause()},this.resume=function(){Te&&Te.resume()},this.clearRecordedData=function(){Te&&(Te.clearRecordedData(),Te=null),ye&&(ye.releaseStreams(),ye=null)},this.addStreams=function(Me){if(!Me)throw"First parameter is required.";Me instanceof Array||(Me=[Me]),Z.concat(Me),Te&&ye&&(ye.appendStreams(Me),k.previewStream&&"function"==typeof k.previewStream&&k.previewStream(ye.getMixedStream()))},this.resetVideoStreams=function(Me){ye&&(Me&&!(Me instanceof Array)&&(Me=[Me]),ye.resetVideoStreams(Me))},this.getMixer=function(){return ye},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}function Mi(Z,k){var ye,me,le;function Me(Ge,st){if(!k.workerPath&&!st)return ye=!1,void fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(He){He.arrayBuffer().then(function(Ne){Me(Ge,Ne)}
129)});if(!k.workerPath&&st instanceof ArrayBuffer){var rt=new Blob([st],{type:"text/javascript"});k.workerPath=pi.createObjectURL(rt)}k.workerPath||console.error("workerPath parameter is missing."),(me=new Worker(k.workerPath)).postMessage(k.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),me.addEventListener("message",function(He){"READY"===He.data?(me.postMessage({width:k.width,height:k.height,bitrate:k.bitrate||1200,timebaseDen:k.frameRate||30,realtime:k.realtime}),function Te(){return new ReadableStream({start:function(Ge){var st=document.createElement("canvas"),rt=document.createElement("video"),He=!0;rt.srcObject=Z,rt.muted=!0,rt.height=k.height,rt.width=k.width,rt.volume=0,rt.onplaying=function(){st.width=k.width,st.height=k.height;var Ne=st.getContext("2d"),vt=setInterval(function(){if(ye&&(clearInterval(vt),Ge.close()),He&&(He=!1,k.onVideoProcessStarted&&k.onVideoProcessStarted()),Ne.drawImage(rt,0,0),"closed"!==Ge._controlledReadableStream.state)try{Ge.enqueue(Ne.getImageData(0,0,k.width,k.height))}catch{}},1e3/k.frameRate)},rt.play()}})}().pipeTo(new WritableStream({write:function(Ne){ye?console.error("Got image, but recorder is finished!"):me.postMessage(Ne.data.buffer,[Ne.data.buffer])}}))):He.data&&(le||pt.push(He.data))})}(typeof ReadableStream>"u"||typeof WritableStream>"u")&&console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),(k=k||{}).width=k.width||640,k.height=k.height||480,k.frameRate=k.frameRate||30,k.bitrate=k.bitrate||1200,k.realtime=k.realtime||!0,this.record=function(){pt=[],le=!1,this.blob=null,Me(Z),"function"==typeof k.initCallback&&k.initCallback()},this.pause=function(){le=!0},this.resume=function(){le=!1};var pt=[];this.stop=function(Ge){ye=!0;var st=this;!function Xe(Ge){me?(me.addEventListener("message",function(st){null===st.data&&(me.terminate(),me=null,Ge&&Ge())}),me.postMessage(null)):Ge&&Ge()}(function(){st.blob=new Blob(pt,{type:"video/webm"}),Ge(st.blob)})},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){pt=[],le=!1,this.blob=null},this.blob=null}Ve.DiskStorage=Qt,Ve.GifRecorder=uo,Ve.MultiStreamRecorder=hs,Ve.RecordRTCPromisesHandler=function Nl(Z,k){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(typeof Z>"u")throw'First argument "MediaStream" is required.';var H=this;H.recordRTC=new Ve(Z,k),this.startRecording=function(){return new Promise(function(ye,Te){try{H.recordRTC.startRecording(),ye()}catch(me){Te(me)}})},this.stopRecording=function(){return new Promise(function(ye,Te){try{H.recordRTC.stopRecording(function(me){H.blob=H.recordRTC.getBlob(),H.blob&&H.blob.size?ye(me):Te("Empty blob.",H.blob)})}catch(me){Te(me)}})},this.pauseRecording=function(){return new Promise(function(ye,Te){try{H.recordRTC.pauseRecording(),ye()}catch(me){Te(me)}})},this.resumeRecording=function(){return new Promise(function(ye,Te){try{H.recordRTC.resumeRecording(),ye()}catch(me){Te(me)}})},this.getDataURL=function(ye){return new Promise(function(Te,me){try{H.recordRTC.getDataURL(function(Me){Te(Me)})}catch(Me){me(Me)}})},this.getBlob=function(){return new Promise(function(ye,Te){try{ye(H.recordRTC.getBlob())}catch(me){Te(me)}})},this.getInternalRecorder=function(){return new Promise(function(ye,Te){try{ye(H.recordRTC.getInternalRecorder())}catch(me){Te(me)}})},this.reset=function(){return new Promise(function(ye,Te){try{ye(H.recordRTC.reset())}catch(me){Te(me)}})},this.destroy=function(){return new Promise(function(ye,Te){try{ye(H.recordRTC.destroy())}catch(me){Te(me)}})},this.getState=function(){return new Promise(function(ye,Te){try{ye(H.recordRTC.getState())}catch(me){Te(me)}})},this.blob=null,this.version="5.6.2"},Ve.WebAssemblyRecorder=Mi},82284:(Fr,lr,ze)=>{function qe(Ve){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ne){return typeof ne}:function(ne){return ne&&"function"==typeof Symbol&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne})(Ve)}ze.d(lr,{A:()=>qe})}}]);

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.