mario-education 2.0.256-staging → 2.0.258-staging
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),N=require("react"),wm=require("./ArrowBack-D3vU8G5E.cjs"),J=require("mario-core"),b=require("./plp.module-BMy_AJUh.cjs"),tn=require("react-redux"),ht=require("./dashboardService-DkmIUleW.cjs"),E=require("./constants-AmXlyc2R.cjs"),Cn=require("./utils-D7z8NQmP.cjs"),tt=require("moment"),Am=require("./OverallDonutChart-BvdmVEAZ.cjs"),_m=require("react-router-dom"),ls=require("./constants-9UnXcqo8.cjs"),uc=require("./classService-CpoyVsbR.cjs"),S=require("@mui/material"),Sc=require("./useAutoCompleteStyle-CZ08v7-d.cjs"),Dn=require("./Loading-CHowA_dQ.cjs"),Sm=require("./Autocomplete-BIZarWvo.cjs"),ri=require("./TeacherConversations-ViMew8lQ.cjs"),Cc=require("./FilterDateRange-eJdNj9MC.cjs"),Cm=require("./ExpandMore-BzCjkz4O.cjs"),yt=require("./ArrowUp-DX4Po1wf.cjs"),fs=require("./CheckBox-CqJRFz_g.cjs"),bm=require("./Clear-BpdL2ChN.cjs"),ao=require("./ArrowForward-CnXLhOwT.cjs"),oo=require("./SimpleDialog-DnPFn_s_.cjs"),dc=require("./ArrowDownward-DH6ig2MX.cjs"),Dm=require("./LastAnswerTable-mKwy4mC0.cjs"),fc=require("./ArrowRightIcon-D2CQJfsL.cjs"),Tm=require("./useEducatorConversationTarget-1gc_aK9B.cjs"),Lm=require("react-apexcharts"),Dt=require("./dashboard.module-AuhSEsc0.cjs"),hc=require("./constantsFn-DEDzy_j8.cjs"),Ja=require("./types-DaH5BbtX.cjs"),Sn=require("reactstrap"),Im=require("jspdf"),un=require("html2canvas"),Nm=require("./constants-CWV8HxZo.cjs"),jm=require("axios"),cs=require("./createSvgIcon-hs3iQF2N.cjs"),He={"note-detail-teacher-container":"_note-detail-teacher-container_806m5_897","note-detail-teacher-container__back-button":"_note-detail-teacher-container__back-button_806m5_906","note-detail-teacher-container__content":"_note-detail-teacher-container__content_806m5_922","title-note-teacher-detail":"_title-note-teacher-detail_806m5_932","title-note-teacher-detail__text":"_title-note-teacher-detail__text_806m5_937","note-teacher-detail":"_note-teacher-detail_806m5_976","note-teacher-detail__left":"_note-teacher-detail__left_806m5_980","note-teacher-detail__left--row":"_note-teacher-detail__left--row_806m5_986","note-teacher-detail__left--row__label":"_note-teacher-detail__left--row__label_806m5_993","note-teacher-detail__left--row__value":"_note-teacher-detail__left--row__value_806m5_1004","note-teacher-detail__right":"_note-teacher-detail__right_806m5_1011","note-teacher-detail__right--row":"_note-teacher-detail__right--row_806m5_1017","note-teacher-detail__right--row__label":"_note-teacher-detail__right--row__label_806m5_1026","note-teacher-detail__right--row__value":"_note-teacher-detail__right--row__value_806m5_1041","note-teacher-detail__right--row-strategy":"_note-teacher-detail__right--row-strategy_806m5_1066","note-teacher-detail__right--row-strategy__label":"_note-teacher-detail__right--row-strategy__label_806m5_1075","note-teacher-detail__right--row-strategy__value":"_note-teacher-detail__right--row-strategy__value_806m5_1090","note-teacher-detail__right--row-text":"_note-teacher-detail__right--row-text_806m5_1112","note-teacher-detail__right--row-text__label":"_note-teacher-detail__right--row-text__label_806m5_1119","note-teacher-detail__right--row-text__value":"_note-teacher-detail__right--row-text__value_806m5_1130"},Fm=({note:a,handleBack:s,backBtnName:r})=>{const{t:o}=J.useTranslation(),{getLabel:u,system:h}=J.useGradeLabel(),g=N.useRef(null),y=()=>{g.current?.scrollIntoView({behavior:"smooth",block:"start"})};return N.useEffect(()=>{y()},[]),c.jsxs("div",{className:He["note-detail-teacher-container"],ref:g,children:[c.jsxs("button",{type:"button",className:He["note-detail-teacher-container__back-button"],onClick:s,children:[c.jsx(wm.ArrowBackIcon,{}),r||o("back_to_notes_and_logs")]}),c.jsxs("div",{className:He["note-detail-teacher-container__content"],children:[c.jsx("div",{className:He["title-note-teacher-detail"],children:c.jsxs("div",{className:He["title-note-teacher-detail__text"],children:["Note for ",a?.studentUserName]})}),c.jsxs("div",{className:He["note-teacher-detail"],children:[c.jsxs("div",{className:He["note-teacher-detail__left"],children:[c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:h==="UK"?"Year":o("grade")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:u(a?.grade)})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("date")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:J.utcToLocalTime(a?.createAt,"dd MMMM yyyy hh:mm a")})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("category")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:"note"})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("note_title")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:a?.fromOneToOne?"-":a?.title})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("other_note")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:a?.text})]})]}),a?.fromOneToOne&&c.jsxs("div",{className:He["note-teacher-detail__right"],children:[c.jsxs("div",{className:He["note-teacher-detail__right--row"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row__label"],children:o("students_review")}),a?.isSkipped?"N/A":c.jsxs("div",{className:He["note-teacher-detail__right--row__value"],children:[c.jsx("strong",{children:a?.helpfulWasThisConversation}),c.jsx("span",{children:"/10"})]})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row-strategy"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row-strategy__label"],children:o("learning_strategy")}),a?.isSkipped?"N/A":c.jsx("div",{className:He["note-teacher-detail__right--row-strategy__value"],children:c.jsx("p",{children:a?.learningStrategies})})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row__label"],children:c.jsx("div",{dangerouslySetInnerHTML:{__html:o("students_perceived_usefulness")}})}),a?.isSkipped?"N/A":c.jsxs("div",{className:He["note-teacher-detail__right--row__value"],children:[c.jsxs("strong",{children:[" ",a?.average]}),c.jsx("span",{children:"/10"})]})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row-text"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row-text__label"],children:o("student_feedback")}),a?.isSkipped?"N/A":c.jsx("div",{className:He["note-teacher-detail__right--row-text__value"],children:a?.mostImportantLearning})]})]})]})]})]})},Rm=(a,s,r,o,u)=>{const h=tn.useDispatch(),g=tn.useSelector(de=>de?.common?.user.roles),[y,x]=N.useState([]),[v,A]=N.useState([]),[D,L]=N.useState(!1),[O,W]=N.useState(null),[Z,K]=N.useState(!1),[U,te]=N.useState(!1),q=async()=>{te(!0),u&&u(de=>({...de,strategyUsage:!1}));try{const de=await ht.getStrategyUsageApi({studentId:a,startDate:s.startDate||E.DEFAULT_START_DATE,endDate:s.endDate||E.DEFAULT_END_DATE,grade:r||[],roles:g,academicYearId:o});de.data&&x(de.data)}catch(de){h(J.setAlert({type:"danger",message:de.response?.data?.title||de.message}))}te(!1),u&&u(de=>({...de,strategyUsage:!0}))},re=async de=>{u&&u(Ge=>({...Ge,qualityFeedback:!1}));try{const Ge=await ht.getQualityFeedbackApi(de,{studentId:a,startDate:s.startDate||E.DEFAULT_START_DATE,endDate:s.endDate||E.DEFAULT_END_DATE,grade:r||[],roles:g,academicYearId:o});Ge.data&&A(Ge.data)}catch(Ge){h(J.setAlert({type:"danger",message:Ge.response?.data?.title||Ge.message}))}u&&u(Ge=>({...Ge,qualityFeedback:!0}))};return N.useEffect(()=>{(a||s?.startDate&&s?.endDate)&&q()},[a,s,r,o]),{strategyUsage:y,getStrategyUsage:q,qualityFeedbackStudents:v,openQualityFeedbackModal:D,handleOpenQualityFeedbackModal:de=>{re(de),L(!0)},handleCloseQualityFeedbackModal:()=>{L(!1)},noteSelected:O,openDetailNote:Z,handleViewDetailNote:de=>{W(de),K(!0)},handleCloseDetailNote:()=>{K(!1)},loading:U}},Pm="Dashboard",Em=()=>{const a=tn.useDispatch(),{t:s}=J.useTranslation(),r=_m.useNavigate(),o=tn.useSelector(T=>T.common?.defaultFontSize),[u,h]=N.useState(E.initFilterDashboard),[g,y]=N.useState(E.concernMetrics),[x,v]=N.useState({pageSize:5,currentPage:1,sortBy:"Date",sortOrder:"DESC"}),A=tn.useSelector(T=>T?.common?.user.roles),[D,L]=N.useState(E.INITIAl_STUDENT_DASHBOARD),[O,W]=N.useState([]),[Z,K]=N.useState(E.LEARNING_STRATEGY_INIT),[U,te]=N.useState([]),q=tn.useSelector(T=>T.common.user),re=tn.useSelector(T=>T.common.language),[We,le]=N.useState(void 0),[Se,ge]=N.useState(E.GRAGE_DEFAULT),[de,Ge]=N.useState(Am.INITIAL_STUDENT_SKILL_QUESTION),[ct,Ee]=N.useState(),[oe,dt]=N.useState(!1),nt=N.useRef([]),[at,wt]=N.useState(!1),[Oe,Te]=N.useState(null),[Be,ve]=N.useState(!1),[z,p]=N.useState([]),ye=tn.useSelector(T=>T?.common?.user?.schoolName),[ie,ce]=N.useState([]),[Ke,Le]=N.useState("Monthly"),[gt,Je]=N.useState([]),[Tt,je]=N.useState([]),[P,B]=N.useState([]),[k,Ae]=N.useState([]),[fe,G]=N.useState(),[Y,ne]=N.useState([]),[H,$]=N.useState({allStudent:!1,dataChart:!1,dataConversationGoal:!1,dataDistribution:!1,dataMetric:!1,dataOverview:!1,dataStatics:!1,dataStudentPressure:!1,gradeList:!1,skillQuestion:!1,summarizeReport:!1,strategyUsage:!1,qualityFeedback:!1,topLearningStrategies:!1,studentConversation:!1}),Q=N.useCallback(async T=>{$(ae=>({...ae,allStudent:!1}));try{const ae=T?await uc.getAllStudents("",T):await uc.getAllStudents();ae.data&&(ce(ae.data),T&&ge(Cn.getUniqueSortedGrades(ae.data)))}catch(ae){a(J.setAlert({type:"danger",message:ae.response?.data?.title||ae.message}))}$(ae=>({...ae,allStudent:!0}))},[]);N.useEffect(()=>{Q()},[]);const Ce=T=>{let ae=[...z];ae?.find(st=>st==T)?ae=ae.filter(st=>st!=T):ae.push(T),p(ae)},pe=T=>{Te(T.currentTarget)},se=()=>{Te(null)},Ne=!!Oe,pt=Ne?"export_popover":void 0,ke=()=>{wt(!at)},Ft=N.useMemo(()=>o==ls.defaultFontLarge?"font-large":o==ls.defaultFontSmall?"font-small":"",[o]),Ue=N.useMemo(()=>o==ls.defaultFontLarge?"18px":o==ls.defaultFontSmall?"10px":"14px",[o]),nn=N.useMemo(()=>U?.find(T=>T.id==u.academicYearId)||null,[U,u.academicYearId]),rn=T=>{nt.current.includes(T)||(nt.current=[...nt.current,T].filter((ae,xe,st)=>st.indexOf(ae)===xe),a(J.initAmplitude({name:q.email,event:`Chart interaction: ${T}`,chart:T,roles:q?.roles})))},Rt=T=>{h({...u,...T})},Ln=T=>{T&&Rt({startDate:T.startOf("day").valueOf(),optionDate:""})},In=T=>{T&&Rt({endDate:T.endOf("day").valueOf(),optionDate:""})},Nn=T=>{v({...x,sortOrder:x.sortOrder==="ASC"||x.sortBy!=T?"DESC":"ASC",sortBy:T})},jn=T=>{T&&Rt({startDate:T.startDate,endDate:T.endDate,optionDate:T.value})},nr=T=>{T.length===0?Rt({grade:[]}):Rt({grade:T})},Cr=async T=>{$(xe=>({...xe,dataChart:!1})),await Q(T?.userId),Yn(T);const ae=T?{studentUserId:void 0,studentId:void 0,grade:void 0}:{};Rt({teacherId:T?.teacherId||T?.generalEducationTeacherId||T?.id,teacherUserId:T?.userId,...ae})},br=(T,ae)=>{r(`/view-session/${T}/${ae}?isReadOnly=true`)},[rr,Un]=N.useState([]),[Dr,Fn]=N.useState([]),[Tr,Lr]=N.useState([]),[qn,dn]=N.useState([]),[gs,ps]=N.useState([]),[Ir,ms]=N.useState([]),[Nr,vs]=N.useState([]),[ys,xs]=N.useState([]),[ir,ii]=N.useState([]),[jr,ws]=N.useState([]),[As,si]=N.useState([]),[_s,Ss]=N.useState([]),ai=T=>{G(T);const ae=Cn.convertDataToDataChart(T?.overviewQuestionChoice),xe=T?.overviewQuestionChoice?.map(Fe=>Fe?.month||"")||[],st=T?.questionChoiceWeeklyResults?.map(Fe=>Fe?.month||"")||[],Ve=Cn.convertToSeriesColumnChartAndPercent(ae,T?.overviewQuestionChoice),At=Cn.convertToSeriesColumnChartAndPercent(ae,T?.questionChoiceWeeklyResults),et=(Ke==="Monthly"&&u.optionDate!=="Today"&&u.optionDate!=="Week"?T.overviewQuestionChoice:T.questionChoiceWeeklyResults).map(Fe=>`${J.utcToLocalTime(Fe.startDate,"dd-MM-yyyy")} - ${J.utcToLocalTime(Fe.endDate,"dd-MM-yyyy")}`);let ze=Ve.filter(Fe=>E.PREPAREDNESS_QUESTION.includes(Fe.name.toLocaleLowerCase()));const Qe=Ve.filter(Fe=>E.SUCCESS_INDICATORS_QUESTION.includes(Fe.name.toLocaleLowerCase())),Pt=At.filter(Fe=>E.SUCCESS_INDICATORS_QUESTION.includes(Fe.name.toLocaleLowerCase()));let ot=At.filter(Fe=>E.PREPAREDNESS_QUESTION.includes(Fe.name.toLocaleLowerCase()));ze.length?ze=ze.sort((Fe,rt)=>Fe.name.toLocaleLowerCase()>rt.name.toLocaleLowerCase()?1:Fe.name.toLocaleLowerCase()<rt.name.toLocaleLowerCase()?-1:0):ze=E.preparednessInitialData,ot.length?ot=ot.sort((Fe,rt)=>Fe.name.toLocaleLowerCase()>rt.name.toLocaleLowerCase()?1:Fe.name.toLocaleLowerCase()<rt.name.toLocaleLowerCase()?-1:0):ot=E.preparednessInitialData,Qe.length>=0&&(ir.filter(Fe=>Fe==!0).length==0||ir.length!=Qe.length)&&ii([!0,...Qe.map(Fe=>!1).splice(0,Qe.length-1)]);const xt=Ve.filter(Fe=>Fe.name.toLocaleLowerCase()==E.STRESS_QUESTION);Je(xt?.[0]?.data),Ss(et),si(xe),ps(st),Un(xt);const Wr=Ve.filter(Fe=>E.SAFETY_QUESTION.includes(Fe.name.toLocaleLowerCase()));je(Wr?.[0]?.data),Fn(Wr);const Rn=["Energy","Happiness","Focus"],Ai=[...ze].sort((Fe,rt)=>Rn.indexOf(Fe.name)-Rn.indexOf(rt.name));B(Rn.map(()=>!0)),Lr(Ai);const Pn=["Growth","Relationships","Productivity","Academics","Self-efficacy","Well-being"],_i=[...Qe].sort((Fe,rt)=>Pn.indexOf(Fe.name)-Pn.indexOf(rt.name));Ae(Pn.map(()=>!0)),dn(_i);const Si=[...Pt].sort((Fe,rt)=>Pn.indexOf(Fe.name)-Pn.indexOf(rt.name));vs(Si);const Et=[...ot].sort((Fe,rt)=>Rn.indexOf(Fe.name)-Rn.indexOf(rt.name));ms(Et),xs(T.overViewQuestionLastMonth)},Cs=(T,ae)=>{if(ae!==s(E.preparednessChartName)){const xe=[...ir];xe[T]=!xe[T],ii(xe)}else{const xe=[...jr];xe[T]=!xe[T],ws(xe)}},[bs,Ds]=N.useState([]),[sr,Ts]=N.useState([]),[ar,Ls]=N.useState([]),[Is,Ns]=N.useState([]),[oi,li]=N.useState([]),[ci,js]=N.useState(0),ui=T=>{Ds(T?.weeks||[]),Ts(T?.months||[]),Ls(T?.metricWeekData||[]),Ns(T?.metricMonthData||[]),li(T?.lowMetricStudents||[]),js(T?.studentMetricPercent||0)},[Fs,di]=N.useState(E.initStudentPressure),[fi,hi]=N.useState(E.initConversationKpi),[gi,or]=N.useState(E.INITIAL_OVERALL_READY_TO_LEARN),Lt=N.useCallback(async(T,ae,xe,st)=>{try{const Ve=st?await T({...u,type:st,language:re}):await T({...u,language:re});st=="academicyear"?Ve?.data&&ae(Ve.data.items.map(At=>({...At,title:`${tt(At.startTime).format("MM/YYYY")} - ${tt(At.endTime).format("MM/YYYY")}`,value:At.id}))):Ve?.data&&ae(Ve.data)}catch(Ve){a(J.setAlert({type:"danger",message:Ve.response?.data?.title||Ve.message})),ae(xe)}},[u,re]),pi=T=>{if(T!=null){le(T),h({...u,gender:[E.LegalGenderType.None,E.LegalGenderType.Male,E.LegalGenderType.Female],studentId:T?T?.studentId:void 0,studentUserId:T?.id});return}le(void 0),h({...u,gender:[E.LegalGenderType.None,E.LegalGenderType.Male,E.LegalGenderType.Female],studentId:void 0,studentUserId:"",grade:[]})},lr=T=>{te(T||[])},mi=T=>{h({...u,...T})},Rs=T=>{h({...u,startDate:tt(T?.startTime).startOf("day").valueOf(),endDate:tt(T?.endTime).endOf("day").valueOf(),academicYearId:T?.id,optionDate:""})},vi=async(T,ae,xe,st)=>{$(Ve=>({...Ve,gradeList:!1}));try{const Ve=await T(xe,u.academicYearId);Ve&&ae(Ve?.data)}catch(Ve){a(J.setAlert({type:"danger",message:Ve.response?.data?.title||Ve.message})),ae(st)}$(Ve=>({...Ve,gradeList:!0}))},It=N.useCallback(async(T,ae)=>{$(xe=>({...xe,[ae]:!1})),await T,$(xe=>({...xe,[ae]:!0}))},[u,re]),Fr=()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),localStorage.setItem(E.activeTabStorage,"open_field_questions"),r(`/admin/summarize-question?startTime=${u.startDate}&endTime=${u.endDate}&gender=${u.gender?.toString()}&grade=${u.grade?.toString()}&academicYearId=${u.academicYearId}&studentId=${u.studentId}`)},Ps=N.useCallback(async()=>{$(T=>({...T,summarizeReport:!1}));try{const T=await ht.getSummarizeReport({...u,...x});T?.data&&Ee(T.data)}catch(T){a(J.setAlert({type:"danger",message:T.message}))}$(T=>({...T,summarizeReport:!0}))},[u,x]),yi=N.useCallback(()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),localStorage.setItem(E.activeTabStorage,g)},[u,g]),Rr=()=>{localStorage.removeItem(E.filterStorage);const T=U?.find(ae=>ae.isCurrent);T&&h({...E.initFilterDashboard,startDate:tt(T?.startTime).startOf("day").valueOf(),endDate:tt(T?.endTime).endOf("day").valueOf(),academicYearId:T?.id}),Yn(null),le(void 0)},Pr=()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),a(J.setAlert({type:"success",message:"Filter saved successfully!"}))},Wt=!!U&&U.length>0&&!!u.academicYearId&&u.academicYearId!=0;N.useEffect(()=>{$(T=>({...T,dataChart:!1,dataConversationGoal:!1,dataDistribution:!1,dataMetric:!1,dataOverview:!1,dataStatics:!1,dataStudentPressure:!1,skillQuestion:!1,summarizeReport:!1,strategyUsage:!1,qualityFeedback:!1,topLearningStrategies:!1,studentConversation:!1}))},[u,re]),N.useEffect(()=>{Wt&&(It(Lt(ht.getAllTotalTime,L,[]),"dataStatics"),It(Lt(ht.getOverviewQuestionChart,ai,[],"OneToOne"),"dataOverview"))},[u,re,U.length]),N.useEffect(()=>{Wt&&g===E.concernMetrics&&(H.dataMetric||It(Lt(ht.getVeryLowMetric,ui,[]),"dataMetric"),H.dataStudentPressure||It(Lt(ht.getStudentPressure,di,E.initStudentPressure),"dataStudentPressure"))},[u,re,U.length,g,H.dataMetric,H.dataStudentPressure]),N.useEffect(()=>{Wt&&g==="readiness_to_learn"&&(H.dataDistribution||It(Lt(ht.getReadinessToLearning,W,[]),"dataDistribution"),H.dataChart||It(Lt(ht.getOverallReadinessToLearn,or,E.INITIAL_OVERALL_READY_TO_LEARN),"dataChart"))},[u,re,U.length,g,H.dataDistribution,H.dataChart]),N.useEffect(()=>{Wt&&g==="conversations"&&!H.dataConversationGoal&&It(Lt(ht.getConversationGoal,hi,E.initConversationKpi),"dataConversationGoal")},[u,re,U.length,g,H.dataConversationGoal]),N.useEffect(()=>{Wt&&g==="learning_strategies"&&!H.strategyUsage&&It(Lt(ht.getTopLearningStrategies,K,[]),"strategyUsage")},[u,re,U.length,g,H.strategyUsage]),N.useEffect(()=>{fe&&H.dataOverview&&ai(fe)},[Ke,H.dataOverview]);const[cr,xi]=N.useState([]),[Es,Yn]=N.useState(null),Er=N.useRef(!1),Or=N.useCallback(async()=>{try{const T=await ht.getAllTeachers();xi(T?.data||[])}catch(T){console.error(T)}Er.current=!0},[]);N.useEffect(()=>{Or()},[Or]),N.useEffect(()=>()=>{sessionStorage.removeItem(E.overviewFilterStorage),localStorage.removeItem(E.overviewFilterStorage)},[]);const Mr=N.useRef(!1);N.useEffect(()=>{const T=()=>{const ae=sessionStorage.getItem(E.overviewFilterStorage)||localStorage.getItem(E.overviewFilterStorage);let xe=null;if(ae){try{xe=JSON.parse(ae)}catch{}sessionStorage.removeItem(E.overviewFilterStorage),localStorage.removeItem(E.overviewFilterStorage)}const st=new URLSearchParams(window.location.search),Ve=st.get("studentId"),At=st.get("studentUserId");if(xe||Ve||At){const et=xe?.studentId||(Ve?Number(Ve):void 0),ze=xe?.studentUserId||At||"",Qe=ie.find(ot=>ze&&ot.studentUserId===ze||et&&ot.studentId===et),Pt=U?.find(ot=>ot.isCurrent)||U?.[0];h({...E.initFilterDashboard,startDate:Pt?tt(Pt?.startTime).startOf("day").valueOf():E.initFilterDashboard.startDate,endDate:Pt?tt(Pt?.endTime).endOf("day").valueOf():E.initFilterDashboard.endDate,academicYearId:Pt?.id,studentId:et,studentUserId:ze,gender:[0,1,2],grade:Qe?.gradeLevel?[Qe.gradeLevel]:xe?.grade||[],optionDate:"Monthly"}),Qe&&le(Qe),Le("Monthly")}else{const et=localStorage.getItem(E.filterStorage);if(et){try{const ze=JSON.parse(et),Qe=ie.find(ot=>ze.studentUserId&&ot.studentUserId===ze.studentUserId||ze.studentId&&ot.studentId===ze.studentId);if(A.includes("Student")){const ot=ie?.find(xt=>xt.studentUserId===q.userId);h({...ze,studentUserId:q.userId,studentId:ot?.studentId}),le(ot)}else{h(ze),Qe&&le(Qe);const ot=cr.find(xt=>ze.teacherUserId&&xt.teacherUserId===ze.teacherUserId||ze.teacherId&&xt.teacherId===ze.teacherId);ot&&Yn(ot)}}catch(ze){console.warn("Error parse filter from storage",ze);const Qe=U?.find(Pt=>Pt.isCurrent)||U?.[0];h(Qe?{...E.initFilterDashboard,startDate:tt(Qe?.startTime).startOf("day").valueOf(),endDate:tt(Qe?.endTime).endOf("day").valueOf(),academicYearId:Qe?.id}:E.initFilterDashboard),le(void 0),Yn(null)}Le("Monthly"),localStorage.removeItem(E.filterStorage)}else{const ze=U?.find(Qe=>Qe.isCurrent)||U?.[0];ze&&(h({...E.initFilterDashboard,startDate:tt(ze?.startTime).startOf("day").valueOf(),endDate:tt(ze?.endTime).endOf("day").valueOf(),academicYearId:ze?.id}),Le("Monthly"))}}const Vn=localStorage.getItem(E.activeTabStorage);Vn&&(y(Vn),localStorage.removeItem(E.activeTabStorage))};H.allStudent&&U.length>0&&Er.current&&(Mr.current||(Mr.current=!0,T()))},[H.allStudent,U,cr,ie]),N.useEffect(()=>{Wt&&g==="open_field_questions"&&(H.summarizeReport||Ps())},[u,x,oe,U.length,g,H.summarizeReport]),N.useEffect(()=>{u.studentUserId?vi(ht.getGrades,ge,u.studentUserId,[]):(ge(E.GRAGE_DEFAULT),$(T=>({...T,gradeList:!0})))},[u.studentUserId,u.academicYearId]),N.useEffect(()=>{document.title=Pm,Lt(ht.getAllAcademicYearApi,lr,[],"academicyear")},[]);const Os=async()=>{$(T=>({...T,skillQuestion:!1}));try{const T=await ht.getStudentQuestionSkillApi(u.studentId,u.startDate,u.endDate,u.grade||[],A,u.academicYearId,u.optionDate,u.teacherId);Ge(T?.data)}catch(T){a(J.setAlert({type:"danger",message:T.message}))}$(T=>({...T,skillQuestion:!0}))};N.useEffect(()=>{Wt&&g===E.concernMetrics&&!H.skillQuestion&&Os()},[u,U.length,g,H.skillQuestion]);const Ms=(T,ae)=>{switch(ae){case E.readinessTrendName:const xe=[...P];xe[T]=!xe[T],B(xe);break;case s("success_indicators"):const st=[...k];st[T]=!st[T],Ae(st);break}},{strategyUsage:Hs,getStrategyUsage:wi,qualityFeedbackStudents:Ws,openQualityFeedbackModal:Bs,handleOpenQualityFeedbackModal:ks,handleCloseQualityFeedbackModal:zs,handleViewDetailNote:Hr,noteSelected:Gs,openDetailNote:Us,handleCloseDetailNote:qs,loading:Ys}=Rm(u.studentId,u,u.grade,u.academicYearId,$),Vs=async()=>{if(p([]),!Be){a(J.setLoading(!0));const T=[];H.dataMetric||T.push(It(Lt(ht.getVeryLowMetric,ui,[]),"dataMetric")),H.dataStudentPressure||T.push(It(Lt(ht.getStudentPressure,di,E.initStudentPressure),"dataStudentPressure")),H.dataDistribution||T.push(It(Lt(ht.getReadinessToLearning,W,[]),"dataDistribution")),H.dataChart||T.push(It(Lt(ht.getOverallReadinessToLearn,or,E.INITIAL_OVERALL_READY_TO_LEARN),"dataChart")),H.strategyUsage||T.push(wi()),H.studentConversation||T.push(It(Lt(ht.getStudentConversation,ne,[]),"studentConversation")),T.length>0&&await Promise.all(T),a(J.setLoading(!1))}ve(!Be)},Ye=T=>T?`"${T.replace(/"/g,'""')}"`:"",Ze=(T,ae,xe)=>{let st="Name of Student,Grade,Name of Educator,Number of Conversations,Conversations Date";(ae||xe)&&(st=`"${tt(ae).isValid()?"From: "+tt(ae).format("DD/MM/YYYY"):""}${tt(ae).isValid()&&tt(xe).isValid()?" - ":""}${tt(xe).isValid()?"To: "+tt(xe).format("DD/MM/YYYY"):""}"
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),N=require("react"),wm=require("./ArrowBack-D3vU8G5E.cjs"),J=require("mario-core"),b=require("./plp.module-BMy_AJUh.cjs"),tn=require("react-redux"),ht=require("./dashboardService-DkmIUleW.cjs"),E=require("./constants-AmXlyc2R.cjs"),Cn=require("./utils-D7z8NQmP.cjs"),tt=require("moment"),Am=require("./OverallDonutChart-BvdmVEAZ.cjs"),_m=require("react-router-dom"),ls=require("./constants-9UnXcqo8.cjs"),uc=require("./classService-CpoyVsbR.cjs"),S=require("@mui/material"),Sc=require("./useAutoCompleteStyle-CZ08v7-d.cjs"),Dn=require("./Loading-CHowA_dQ.cjs"),Sm=require("./Autocomplete-BIZarWvo.cjs"),ri=require("./TeacherConversations-ViMew8lQ.cjs"),Cc=require("./FilterDateRange-eJdNj9MC.cjs"),Cm=require("./ExpandMore-BzCjkz4O.cjs"),yt=require("./ArrowUp-DX4Po1wf.cjs"),fs=require("./CheckBox-CqJRFz_g.cjs"),bm=require("./Clear-BpdL2ChN.cjs"),ao=require("./ArrowForward-CnXLhOwT.cjs"),oo=require("./SimpleDialog-DnPFn_s_.cjs"),dc=require("./ArrowDownward-DH6ig2MX.cjs"),Dm=require("./LastAnswerTable-mKwy4mC0.cjs"),fc=require("./ArrowRightIcon-D2CQJfsL.cjs"),Tm=require("./useEducatorConversationTarget-1gc_aK9B.cjs"),Lm=require("react-apexcharts"),Dt=require("./dashboard.module-AuhSEsc0.cjs"),hc=require("./constantsFn-DEDzy_j8.cjs"),Ja=require("./types-DaH5BbtX.cjs"),Sn=require("reactstrap"),Im=require("jspdf"),un=require("html2canvas"),Nm=require("./constants-CWV8HxZo.cjs"),jm=require("axios"),cs=require("./createSvgIcon-hs3iQF2N.cjs"),He={"note-detail-teacher-container":"_note-detail-teacher-container_806m5_897","note-detail-teacher-container__back-button":"_note-detail-teacher-container__back-button_806m5_906","note-detail-teacher-container__content":"_note-detail-teacher-container__content_806m5_922","title-note-teacher-detail":"_title-note-teacher-detail_806m5_932","title-note-teacher-detail__text":"_title-note-teacher-detail__text_806m5_937","note-teacher-detail":"_note-teacher-detail_806m5_976","note-teacher-detail__left":"_note-teacher-detail__left_806m5_980","note-teacher-detail__left--row":"_note-teacher-detail__left--row_806m5_986","note-teacher-detail__left--row__label":"_note-teacher-detail__left--row__label_806m5_993","note-teacher-detail__left--row__value":"_note-teacher-detail__left--row__value_806m5_1004","note-teacher-detail__right":"_note-teacher-detail__right_806m5_1011","note-teacher-detail__right--row":"_note-teacher-detail__right--row_806m5_1017","note-teacher-detail__right--row__label":"_note-teacher-detail__right--row__label_806m5_1026","note-teacher-detail__right--row__value":"_note-teacher-detail__right--row__value_806m5_1041","note-teacher-detail__right--row-strategy":"_note-teacher-detail__right--row-strategy_806m5_1066","note-teacher-detail__right--row-strategy__label":"_note-teacher-detail__right--row-strategy__label_806m5_1075","note-teacher-detail__right--row-strategy__value":"_note-teacher-detail__right--row-strategy__value_806m5_1090","note-teacher-detail__right--row-text":"_note-teacher-detail__right--row-text_806m5_1112","note-teacher-detail__right--row-text__label":"_note-teacher-detail__right--row-text__label_806m5_1119","note-teacher-detail__right--row-text__value":"_note-teacher-detail__right--row-text__value_806m5_1130"},Rm=({note:a,handleBack:s,backBtnName:r})=>{const{t:o}=J.useTranslation(),{getLabel:u,system:h}=J.useGradeLabel(),g=N.useRef(null),y=()=>{g.current?.scrollIntoView({behavior:"smooth",block:"start"})};return N.useEffect(()=>{y()},[]),c.jsxs("div",{className:He["note-detail-teacher-container"],ref:g,children:[c.jsxs("button",{type:"button",className:He["note-detail-teacher-container__back-button"],onClick:s,children:[c.jsx(wm.ArrowBackIcon,{}),r||o("back_to_notes_and_logs")]}),c.jsxs("div",{className:He["note-detail-teacher-container__content"],children:[c.jsx("div",{className:He["title-note-teacher-detail"],children:c.jsxs("div",{className:He["title-note-teacher-detail__text"],children:["Note for ",a?.studentUserName]})}),c.jsxs("div",{className:He["note-teacher-detail"],children:[c.jsxs("div",{className:He["note-teacher-detail__left"],children:[c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:h==="UK"?"Year":o("grade")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:u(a?.grade)})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("date")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:J.utcToLocalTime(a?.createAt,"dd MMMM yyyy hh:mm a")})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("category")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:"note"})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("note_title")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:a?.fromOneToOne?"-":a?.title})]}),c.jsxs("div",{className:He["note-teacher-detail__left--row"],children:[c.jsx("div",{className:He["note-teacher-detail__left--row__label"],children:o("other_note")}),c.jsx("div",{className:He["note-teacher-detail__left--row__value"],children:a?.text})]})]}),a?.fromOneToOne&&c.jsxs("div",{className:He["note-teacher-detail__right"],children:[c.jsxs("div",{className:He["note-teacher-detail__right--row"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row__label"],children:o("students_review")}),a?.isSkipped?"N/A":c.jsxs("div",{className:He["note-teacher-detail__right--row__value"],children:[c.jsx("strong",{children:a?.helpfulWasThisConversation}),c.jsx("span",{children:"/10"})]})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row-strategy"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row-strategy__label"],children:o("learning_strategy")}),a?.isSkipped?"N/A":c.jsx("div",{className:He["note-teacher-detail__right--row-strategy__value"],children:c.jsx("p",{children:a?.learningStrategies})})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row__label"],children:c.jsx("div",{dangerouslySetInnerHTML:{__html:o("students_perceived_usefulness")}})}),a?.isSkipped?"N/A":c.jsxs("div",{className:He["note-teacher-detail__right--row__value"],children:[c.jsxs("strong",{children:[" ",a?.average]}),c.jsx("span",{children:"/10"})]})]}),c.jsxs("div",{className:He["note-teacher-detail__right--row-text"],children:[c.jsx("div",{className:He["note-teacher-detail__right--row-text__label"],children:o("student_feedback")}),a?.isSkipped?"N/A":c.jsx("div",{className:He["note-teacher-detail__right--row-text__value"],children:a?.mostImportantLearning})]})]})]})]})]})},Fm=(a,s,r,o,u)=>{const h=tn.useDispatch(),g=tn.useSelector(de=>de?.common?.user.roles),[y,x]=N.useState([]),[v,A]=N.useState([]),[D,L]=N.useState(!1),[O,W]=N.useState(null),[Z,K]=N.useState(!1),[U,te]=N.useState(!1),q=async()=>{te(!0),u&&u(de=>({...de,strategyUsage:!1}));try{const de=await ht.getStrategyUsageApi({studentId:a,startDate:s.startDate||E.DEFAULT_START_DATE,endDate:s.endDate||E.DEFAULT_END_DATE,grade:r||[],roles:g,academicYearId:o});de.data&&x(de.data)}catch(de){h(J.setAlert({type:"danger",message:de.response?.data?.title||de.message}))}te(!1),u&&u(de=>({...de,strategyUsage:!0}))},ie=async de=>{u&&u(Ge=>({...Ge,qualityFeedback:!1}));try{const Ge=await ht.getQualityFeedbackApi(de,{studentId:a,startDate:s.startDate||E.DEFAULT_START_DATE,endDate:s.endDate||E.DEFAULT_END_DATE,grade:r||[],roles:g,academicYearId:o});Ge.data&&A(Ge.data)}catch(Ge){h(J.setAlert({type:"danger",message:Ge.response?.data?.title||Ge.message}))}u&&u(Ge=>({...Ge,qualityFeedback:!0}))};return N.useEffect(()=>{(a||s?.startDate&&s?.endDate)&&q()},[a,s,r,o]),{strategyUsage:y,getStrategyUsage:q,qualityFeedbackStudents:v,openQualityFeedbackModal:D,handleOpenQualityFeedbackModal:de=>{ie(de),L(!0)},handleCloseQualityFeedbackModal:()=>{L(!1)},noteSelected:O,openDetailNote:Z,handleViewDetailNote:de=>{W(de),K(!0)},handleCloseDetailNote:()=>{K(!1)},loading:U}},Pm="Dashboard",Em=()=>{const a=tn.useDispatch(),{t:s}=J.useTranslation(),r=_m.useNavigate(),o=tn.useSelector(T=>T.common?.defaultFontSize),[u,h]=N.useState(E.initFilterDashboard),[g,y]=N.useState(E.concernMetrics),[x,v]=N.useState({pageSize:5,currentPage:1,sortBy:"Date",sortOrder:"DESC"}),A=tn.useSelector(T=>T?.common?.user.roles),[D,L]=N.useState(E.INITIAl_STUDENT_DASHBOARD),[O,W]=N.useState([]),[Z,K]=N.useState(E.LEARNING_STRATEGY_INIT),[U,te]=N.useState([]),q=tn.useSelector(T=>T.common.user),ie=tn.useSelector(T=>T.common.language),[We,le]=N.useState(void 0),[Se,ge]=N.useState(E.GRAGE_DEFAULT),[de,Ge]=N.useState(Am.INITIAL_STUDENT_SKILL_QUESTION),[ct,Ee]=N.useState(),[se,ut]=N.useState(!1),nt=N.useRef([]),[at,wt]=N.useState(!1),[Oe,Te]=N.useState(null),[Be,ve]=N.useState(!1),[z,p]=N.useState([]),ye=tn.useSelector(T=>T?.common?.user?.schoolName),[re,ce]=N.useState([]),[Ke,Le]=N.useState("Monthly"),[gt,Je]=N.useState([]),[Tt,je]=N.useState([]),[P,B]=N.useState([]),[k,Ae]=N.useState([]),[fe,G]=N.useState(),[Y,ne]=N.useState([]),[H,$]=N.useState({allStudent:!1,dataChart:!1,dataConversationGoal:!1,dataDistribution:!1,dataMetric:!1,dataOverview:!1,dataStatics:!1,dataStudentPressure:!1,gradeList:!1,skillQuestion:!1,summarizeReport:!1,strategyUsage:!1,qualityFeedback:!1,topLearningStrategies:!1,studentConversation:!1}),Q=N.useCallback(async T=>{$(oe=>({...oe,allStudent:!1}));try{const oe=T?await uc.getAllStudents("",T):await uc.getAllStudents();oe.data&&(ce(oe.data),T&&ge(Cn.getUniqueSortedGrades(oe.data)))}catch(oe){a(J.setAlert({type:"danger",message:oe.response?.data?.title||oe.message}))}$(oe=>({...oe,allStudent:!0}))},[]);N.useEffect(()=>{Q()},[]);const Ce=T=>{let oe=[...z];oe?.find(st=>st==T)?oe=oe.filter(st=>st!=T):oe.push(T),p(oe)},pe=T=>{Te(T.currentTarget)},ae=()=>{Te(null)},Ne=!!Oe,pt=Ne?"export_popover":void 0,ke=()=>{wt(!at)},Rt=N.useMemo(()=>o==ls.defaultFontLarge?"font-large":o==ls.defaultFontSmall?"font-small":"",[o]),Ue=N.useMemo(()=>o==ls.defaultFontLarge?"18px":o==ls.defaultFontSmall?"10px":"14px",[o]),nn=N.useMemo(()=>U?.find(T=>T.id==u.academicYearId)||null,[U,u.academicYearId]),rn=T=>{nt.current.includes(T)||(nt.current=[...nt.current,T].filter((oe,xe,st)=>st.indexOf(oe)===xe),a(J.initAmplitude({name:q.email,event:`Chart interaction: ${T}`,chart:T,roles:q?.roles})))},Ft=T=>{h({...u,...T})},Ln=T=>{T&&Ft({startDate:T.startOf("day").valueOf(),optionDate:""})},In=T=>{T&&Ft({endDate:T.endOf("day").valueOf(),optionDate:""})},Nn=T=>{v({...x,sortOrder:x.sortOrder==="ASC"||x.sortBy!=T?"DESC":"ASC",sortBy:T})},jn=T=>{T&&Ft({startDate:T.startDate,endDate:T.endDate,optionDate:T.value})},nr=T=>{T.length===0?Ft({grade:[]}):Ft({grade:T})},Cr=async T=>{$(xe=>({...xe,dataChart:!1})),await Q(T?.userId),Yn(T);const oe=T?{studentUserId:void 0,studentId:void 0,grade:void 0}:{};Ft({teacherId:T?.teacherId||T?.generalEducationTeacherId||T?.id,teacherUserId:T?.userId,...oe})},br=(T,oe)=>{r(`/view-session/${T}/${oe}?isReadOnly=true`)},[rr,Un]=N.useState([]),[Dr,Rn]=N.useState([]),[Tr,Lr]=N.useState([]),[qn,dn]=N.useState([]),[gs,ps]=N.useState([]),[Ir,ms]=N.useState([]),[Nr,vs]=N.useState([]),[ys,xs]=N.useState([]),[ir,ii]=N.useState([]),[jr,ws]=N.useState([]),[As,si]=N.useState([]),[_s,Ss]=N.useState([]),ai=T=>{G(T);const oe=Cn.convertDataToDataChart(T?.overviewQuestionChoice),xe=T?.overviewQuestionChoice?.map(Re=>Re?.month||"")||[],st=T?.questionChoiceWeeklyResults?.map(Re=>Re?.month||"")||[],Ve=Cn.convertToSeriesColumnChartAndPercent(oe,T?.overviewQuestionChoice),At=Cn.convertToSeriesColumnChartAndPercent(oe,T?.questionChoiceWeeklyResults),et=(Ke==="Monthly"&&u.optionDate!=="Today"&&u.optionDate!=="Week"?T.overviewQuestionChoice:T.questionChoiceWeeklyResults).map(Re=>`${J.utcToLocalTime(Re.startDate,"dd-MM-yyyy")} - ${J.utcToLocalTime(Re.endDate,"dd-MM-yyyy")}`);let ze=Ve.filter(Re=>E.PREPAREDNESS_QUESTION.includes(Re.name.toLocaleLowerCase()));const Qe=Ve.filter(Re=>E.SUCCESS_INDICATORS_QUESTION.includes(Re.name.toLocaleLowerCase())),Pt=At.filter(Re=>E.SUCCESS_INDICATORS_QUESTION.includes(Re.name.toLocaleLowerCase()));let ot=At.filter(Re=>E.PREPAREDNESS_QUESTION.includes(Re.name.toLocaleLowerCase()));ze.length?ze=ze.sort((Re,rt)=>Re.name.toLocaleLowerCase()>rt.name.toLocaleLowerCase()?1:Re.name.toLocaleLowerCase()<rt.name.toLocaleLowerCase()?-1:0):ze=E.preparednessInitialData,ot.length?ot=ot.sort((Re,rt)=>Re.name.toLocaleLowerCase()>rt.name.toLocaleLowerCase()?1:Re.name.toLocaleLowerCase()<rt.name.toLocaleLowerCase()?-1:0):ot=E.preparednessInitialData,Qe.length>=0&&(ir.filter(Re=>Re==!0).length==0||ir.length!=Qe.length)&&ii([!0,...Qe.map(Re=>!1).splice(0,Qe.length-1)]);const xt=Ve.filter(Re=>Re.name.toLocaleLowerCase()==E.STRESS_QUESTION);Je(xt?.[0]?.data),Ss(et),si(xe),ps(st),Un(xt);const Wr=Ve.filter(Re=>E.SAFETY_QUESTION.includes(Re.name.toLocaleLowerCase()));je(Wr?.[0]?.data),Rn(Wr);const Fn=["Energy","Happiness","Focus"],Ai=[...ze].sort((Re,rt)=>Fn.indexOf(Re.name)-Fn.indexOf(rt.name));B(Fn.map(()=>!0)),Lr(Ai);const Pn=["Growth","Relationships","Productivity","Academics","Self-efficacy","Well-being"],_i=[...Qe].sort((Re,rt)=>Pn.indexOf(Re.name)-Pn.indexOf(rt.name));Ae(Pn.map(()=>!0)),dn(_i);const Si=[...Pt].sort((Re,rt)=>Pn.indexOf(Re.name)-Pn.indexOf(rt.name));vs(Si);const Et=[...ot].sort((Re,rt)=>Fn.indexOf(Re.name)-Fn.indexOf(rt.name));ms(Et),xs(T.overViewQuestionLastMonth)},Cs=(T,oe)=>{if(oe!==s(E.preparednessChartName)){const xe=[...ir];xe[T]=!xe[T],ii(xe)}else{const xe=[...jr];xe[T]=!xe[T],ws(xe)}},[bs,Ds]=N.useState([]),[sr,Ts]=N.useState([]),[ar,Ls]=N.useState([]),[Is,Ns]=N.useState([]),[oi,li]=N.useState([]),[ci,js]=N.useState(0),ui=T=>{Ds(T?.weeks||[]),Ts(T?.months||[]),Ls(T?.metricWeekData||[]),Ns(T?.metricMonthData||[]),li(T?.lowMetricStudents||[]),js(T?.studentMetricPercent||0)},[Rs,di]=N.useState(E.initStudentPressure),[fi,hi]=N.useState(E.initConversationKpi),[gi,or]=N.useState(E.INITIAL_OVERALL_READY_TO_LEARN),Lt=N.useCallback(async(T,oe,xe,st)=>{try{const Ve=st?await T({...u,type:st,language:ie}):await T({...u,language:ie});st=="academicyear"?Ve?.data&&oe(Ve.data.items.map(At=>({...At,title:`${tt(At.startTime).format("MM/YYYY")} - ${tt(At.endTime).format("MM/YYYY")}`,value:At.id}))):Ve?.data&&oe(Ve.data)}catch(Ve){a(J.setAlert({type:"danger",message:Ve.response?.data?.title||Ve.message})),oe(xe)}},[u,ie]),pi=T=>{if(T!=null){le(T),h({...u,gender:[E.LegalGenderType.None,E.LegalGenderType.Male,E.LegalGenderType.Female],studentId:T?T?.studentId:void 0,studentUserId:T?.id});return}le(void 0),h({...u,gender:[E.LegalGenderType.None,E.LegalGenderType.Male,E.LegalGenderType.Female],studentId:void 0,studentUserId:"",grade:[]})},lr=T=>{te(T||[])},mi=T=>{h({...u,...T})},Fs=T=>{h({...u,startDate:tt(T?.startTime).startOf("day").valueOf(),endDate:tt(T?.endTime).endOf("day").valueOf(),academicYearId:T?.id,optionDate:""})},vi=async(T,oe,xe,st)=>{$(Ve=>({...Ve,gradeList:!1}));try{const Ve=await T(xe,u.academicYearId);Ve&&oe(Ve?.data)}catch(Ve){a(J.setAlert({type:"danger",message:Ve.response?.data?.title||Ve.message})),oe(st)}$(Ve=>({...Ve,gradeList:!0}))},It=N.useCallback(async(T,oe)=>{$(xe=>({...xe,[oe]:!1})),await T,$(xe=>({...xe,[oe]:!0}))},[u,ie]),Rr=()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),localStorage.setItem(E.activeTabStorage,"open_field_questions"),r(`/admin/summarize-question?startTime=${u.startDate}&endTime=${u.endDate}&gender=${u.gender?.toString()}&grade=${u.grade?.toString()}&academicYearId=${u.academicYearId}&studentId=${u.studentId}`)},Ps=N.useCallback(async()=>{$(T=>({...T,summarizeReport:!1}));try{const T=await ht.getSummarizeReport({...u,...x});T?.data&&Ee(T.data)}catch(T){a(J.setAlert({type:"danger",message:T.message}))}$(T=>({...T,summarizeReport:!0}))},[u,x]),yi=N.useCallback(()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),localStorage.setItem(E.activeTabStorage,g)},[u,g]),Fr=()=>{localStorage.removeItem(E.filterStorage);const T=U?.find(oe=>oe.isCurrent);T&&h({...E.initFilterDashboard,startDate:tt(T?.startTime).startOf("day").valueOf(),endDate:tt(T?.endTime).endOf("day").valueOf(),academicYearId:T?.id}),Yn(null),le(void 0)},Pr=()=>{localStorage.setItem(E.filterStorage,JSON.stringify(u)),a(J.setAlert({type:"success",message:"Filter saved successfully!"}))},Wt=!!U&&U.length>0&&!!u.academicYearId&&u.academicYearId!=0;N.useEffect(()=>{$(T=>({...T,dataChart:!1,dataConversationGoal:!1,dataDistribution:!1,dataMetric:!1,dataOverview:!1,dataStatics:!1,dataStudentPressure:!1,skillQuestion:!1,summarizeReport:!1,strategyUsage:!1,qualityFeedback:!1,topLearningStrategies:!1,studentConversation:!1}))},[u,ie]),N.useEffect(()=>{Wt&&(It(Lt(ht.getAllTotalTime,L,[]),"dataStatics"),It(Lt(ht.getOverviewQuestionChart,ai,[],"OneToOne"),"dataOverview"))},[u,ie,U.length]),N.useEffect(()=>{Wt&&g===E.concernMetrics&&(H.dataMetric||It(Lt(ht.getVeryLowMetric,ui,[]),"dataMetric"),H.dataStudentPressure||It(Lt(ht.getStudentPressure,di,E.initStudentPressure),"dataStudentPressure"))},[u,ie,U.length,g,H.dataMetric,H.dataStudentPressure]),N.useEffect(()=>{Wt&&g==="readiness_to_learn"&&(H.dataDistribution||It(Lt(ht.getReadinessToLearning,W,[]),"dataDistribution"),H.dataChart||It(Lt(ht.getOverallReadinessToLearn,or,E.INITIAL_OVERALL_READY_TO_LEARN),"dataChart"))},[u,ie,U.length,g,H.dataDistribution,H.dataChart]),N.useEffect(()=>{Wt&&g==="conversations"&&!H.dataConversationGoal&&It(Lt(ht.getConversationGoal,hi,E.initConversationKpi),"dataConversationGoal")},[u,ie,U.length,g,H.dataConversationGoal]),N.useEffect(()=>{Wt&&g==="learning_strategies"&&!H.strategyUsage&&It(Lt(ht.getTopLearningStrategies,K,[]),"strategyUsage")},[u,ie,U.length,g,H.strategyUsage]),N.useEffect(()=>{fe&&H.dataOverview&&ai(fe)},[Ke,H.dataOverview]);const[cr,xi]=N.useState([]),[Es,Yn]=N.useState(null),Er=N.useRef(!1),Or=N.useCallback(async()=>{try{const T=await ht.getAllTeachers();xi(T?.data||[])}catch(T){console.error(T)}Er.current=!0},[]);N.useEffect(()=>{Or()},[Or]),N.useEffect(()=>()=>{sessionStorage.removeItem(E.overviewFilterStorage),localStorage.removeItem(E.overviewFilterStorage)},[]);const Mr=N.useRef(!1);N.useEffect(()=>{const T=()=>{const oe=sessionStorage.getItem(E.overviewFilterStorage)||localStorage.getItem(E.overviewFilterStorage);let xe=null;if(oe){try{xe=JSON.parse(oe)}catch{}sessionStorage.removeItem(E.overviewFilterStorage),localStorage.removeItem(E.overviewFilterStorage)}const st=new URLSearchParams(window.location.search),Ve=st.get("studentId"),At=st.get("studentUserId");if(xe||Ve||At){const et=xe?.studentId||(Ve?Number(Ve):void 0),ze=xe?.studentUserId||At||"",Qe=re.find(ot=>ze&&ot.studentUserId===ze||et&&ot.studentId===et),Pt=U?.find(ot=>ot.isCurrent)||U?.[0];h({...E.initFilterDashboard,startDate:Pt?tt(Pt?.startTime).startOf("day").valueOf():E.initFilterDashboard.startDate,endDate:Pt?tt(Pt?.endTime).endOf("day").valueOf():E.initFilterDashboard.endDate,academicYearId:Pt?.id,studentId:et,studentUserId:ze,gender:[0,1,2],grade:Qe?.gradeLevel?[Qe.gradeLevel]:xe?.grade||[],optionDate:"Monthly"}),Qe&&le(Qe),Le("Monthly")}else{const et=localStorage.getItem(E.filterStorage);if(et){try{const ze=JSON.parse(et),Qe=re.find(ot=>ze.studentUserId&&ot.studentUserId===ze.studentUserId||ze.studentId&&ot.studentId===ze.studentId);if(A.includes("Student")){const ot=re?.find(xt=>xt.studentUserId===q.userId);h({...ze,studentUserId:q.userId,studentId:ot?.studentId}),le(ot)}else{h(ze),Qe&&le(Qe);const ot=cr.find(xt=>ze.teacherUserId&&xt.teacherUserId===ze.teacherUserId||ze.teacherId&&xt.teacherId===ze.teacherId);ot&&Yn(ot)}}catch(ze){console.warn("Error parse filter from storage",ze);const Qe=U?.find(Pt=>Pt.isCurrent)||U?.[0];h(Qe?{...E.initFilterDashboard,startDate:tt(Qe?.startTime).startOf("day").valueOf(),endDate:tt(Qe?.endTime).endOf("day").valueOf(),academicYearId:Qe?.id}:E.initFilterDashboard),le(void 0),Yn(null)}Le("Monthly"),localStorage.removeItem(E.filterStorage)}else{const ze=U?.find(Qe=>Qe.isCurrent)||U?.[0];ze&&(h({...E.initFilterDashboard,startDate:tt(ze?.startTime).startOf("day").valueOf(),endDate:tt(ze?.endTime).endOf("day").valueOf(),academicYearId:ze?.id}),Le("Monthly"))}}const Vn=localStorage.getItem(E.activeTabStorage);Vn&&(y(Vn),localStorage.removeItem(E.activeTabStorage))};H.allStudent&&U.length>0&&Er.current&&(Mr.current||(Mr.current=!0,T()))},[H.allStudent,U,cr,re]),N.useEffect(()=>{Wt&&g==="open_field_questions"&&(H.summarizeReport||Ps())},[u,x,se,U.length,g,H.summarizeReport]),N.useEffect(()=>{u.studentUserId?vi(ht.getGrades,ge,u.studentUserId,[]):(ge(E.GRAGE_DEFAULT),$(T=>({...T,gradeList:!0})))},[u.studentUserId,u.academicYearId]),N.useEffect(()=>{document.title=Pm,Lt(ht.getAllAcademicYearApi,lr,[],"academicyear")},[]);const Os=async()=>{$(T=>({...T,skillQuestion:!1}));try{const T=await ht.getStudentQuestionSkillApi(u.studentId,u.startDate,u.endDate,u.grade||[],A,u.academicYearId,u.optionDate,u.teacherId);Ge(T?.data)}catch(T){a(J.setAlert({type:"danger",message:T.message}))}$(T=>({...T,skillQuestion:!0}))};N.useEffect(()=>{Wt&&g===E.concernMetrics&&!H.skillQuestion&&Os()},[u,U.length,g,H.skillQuestion]);const Ms=(T,oe)=>{switch(oe){case E.readinessTrendName:const xe=[...P];xe[T]=!xe[T],B(xe);break;case s("success_indicators"):const st=[...k];st[T]=!st[T],Ae(st);break}},{strategyUsage:Hs,getStrategyUsage:wi,qualityFeedbackStudents:Ws,openQualityFeedbackModal:Bs,handleOpenQualityFeedbackModal:ks,handleCloseQualityFeedbackModal:zs,handleViewDetailNote:Hr,noteSelected:Gs,openDetailNote:Us,handleCloseDetailNote:qs,loading:Ys}=Fm(u.studentId,u,u.grade,u.academicYearId,$),Vs=async()=>{if(p([]),!Be){a(J.setLoading(!0));const T=[];H.dataMetric||T.push(It(Lt(ht.getVeryLowMetric,ui,[]),"dataMetric")),H.dataStudentPressure||T.push(It(Lt(ht.getStudentPressure,di,E.initStudentPressure),"dataStudentPressure")),H.dataDistribution||T.push(It(Lt(ht.getReadinessToLearning,W,[]),"dataDistribution")),H.dataChart||T.push(It(Lt(ht.getOverallReadinessToLearn,or,E.INITIAL_OVERALL_READY_TO_LEARN),"dataChart")),H.strategyUsage||T.push(wi()),H.studentConversation||T.push(It(Lt(ht.getStudentConversation,ne,[]),"studentConversation")),T.length>0&&await Promise.all(T),a(J.setLoading(!1))}ve(!Be)},Ye=T=>T?`"${T.replace(/"/g,'""')}"`:"",Ze=(T,oe,xe)=>{let st="Name of Student,Grade,Name of Educator,Number of Conversations,Conversations Date";(oe||xe)&&(st=`"${tt(oe).isValid()?"From: "+tt(oe).format("DD/MM/YYYY"):""}${tt(oe).isValid()&&tt(xe).isValid()?" - ":""}${tt(xe).isValid()?"To: "+tt(xe).format("DD/MM/YYYY"):""}"
|
|
2
2
|
${st}`);const Ve=T.map(At=>{const Vn=Ye(At.studentName),et=Ye(At.educatorNames.join(`
|
|
3
3
|
`)),ze=Ye(At.gradeLevel),Qe=At.conversationCount,Pt=Ye(At.conversationDates.map(ot=>tt(ot).format("Do MMMM YYYY")).join(`
|
|
4
4
|
`));return`
|
|
5
|
-
${Vn},${ze},${et},${Qe},${Pt}`}).join("");return`${E.CSV_PREFIX}${st}${encodeURIComponent(Ve)}`};return{strategyUsage:Hs,qualityFeedbackStudents:Ws,openQualityFeedbackModal:Bs,handleOpenQualityFeedbackModal:ks,handleCloseQualityFeedbackModal:zs,handleViewDetailNote:Hr,noteSelected:Gs,openDetailNote:Us,handleCloseDetailNote:qs,loadingTopLearningStrategies:Ys,setFilter:h,filter:u,listTotalTime:D,readinessToLearning:O,topLearningStrategies:Z,handleChangeFilters:Rt,handleChangeAcademicYearFilters:Rs,academicYear:U,user:q,studentDefault:We,setStudentDefault:le,handleFilterStudent:pi,onChangeFilters:mi,handleActiveColumnOneToOne:Cs,monthsOneToOne:As,dayOfWeekOneToOne:_s,stressData:rr,safetyData:Dr,preparednessData:Tr,successIndicatorsData:qn,activeColumnSuccessIndicators:ir,activeColumnPreparedness:jr,avgQuestionLastMonth:ys,gradeList:Se,studentPressure:Fs,dataOverallReadyToLearn:gi,studentSkillQuestion:de,summarizeQuestions:ct,handleRedirectAllAnswer:Fr,handleChangeQuestionFilter:Nn,questionFilters:x,goToSession:br,isExistQuestion:oe,setIsExistQuestion:dt,handleChangeFilterCalendar:jn,handleChangeFilterGrade:nr,activeTab:g,setActiveTab:y,handleHoverTooltip:rn,academicYearItem:nn,handleChangeEndDateChart:In,handleChangeStartDateChart:Ln,expandedFilter:at,onToggleChart:ke,classFontSize:Ft,fontSizeInputSelect:Ue,successIndicatorWeeklyData:Nr,weeksOneToOne:gs,preparednessWeeklyData:Ir,metricWeeks:bs,metricDataWeeks:ar,metricMonths:sr,metricDataMonths:Is,lowMetricStudents:oi,handleClick:pe,handleClose:se,anchorEl:Oe,id_export:pt,openPopoverExport:Ne,toggle:Vs,handleSelectToPrint:Ce,selectedToPrint:z,modal:Be,schoolName:ye,onClearFilter:Rr,onSaveFilter:Pr,studentData:ie,studentMetricPercent:ci,setOptionDate:Le,stressValue:gt,conversationKpi:fi,setSelectTeacherUserId:Cr,safetyValue:Tt,activeColumnReadiness:P,activeColumnIndicators:k,handleActiveColumn:Ms,loadingComplete:H,teachers:cr,teacherDefault:Es,studentConversations:Y,onBeforeViewCheckIn:yi,exportStudentConversationCsv:async()=>{a(J.setLoading(!0));try{let T=Y;if((!H.studentConversation||!T||T.length===0)&&(T=(await ht.getStudentConversation(u)).data,ne(T),$(xe=>({...xe,studentConversation:!0}))),T&&T.length>0){const ae=Ze(T,u.startDate,u.endDate),xe=document.createElement("a");xe.href=ae,xe.download=`${ye}_Conversations_Report.csv`,xe.click(),a(J.setAlert({type:"success",message:"Download Completed"}))}else a(J.setAlert({type:"warning",message:"No data to export"}))}catch(T){a(J.setAlert({type:"danger",message:T.response?.data?.title||T.message}))}a(J.setLoading(!1))}}},bc=({student:a,setStudent:s,studentData:r,grades:o,fontSizeInputSelect:u,inputStyleProps:h,disabled:g=!1})=>{const{t:y}=J.useTranslation(),x=Sc.useAutoCompleteStyle(),v=N.useMemo(()=>{if(!o||o.length===0)return r||[];const A=o.filter(D=>D!=="All");return A.length===0?r||[]:(r||[]).filter(D=>D.gradeLevel&&A.includes(D.gradeLevel))},[r,o]);return c.jsx(S.Grid,{children:c.jsx(S.FormControl,{fullWidth:!0,children:c.jsx(Sm.Autocomplete,{id:"tags-outlined",slotProps:{popper:{sx:x.popper}},filterSelectedOptions:!0,options:v,getOptionLabel:A=>`${A?.fullName?A.fullName:""} (${A?.email?A.email:""})`,onChange:(A,D)=>{s(D)},value:a||null,renderInput:A=>c.jsx(S.TextField,{...A,variant:"outlined",label:y("select_student"),placeholder:g?"":y("select_student"),InputProps:{...A.InputProps,startAdornment:c.jsxs(N.Fragment,{children:[g&&c.jsx(Dn.Loading,{defaultColor:!1,size:24}),A.InputProps.endAdornment]}),style:{fontSize:u,...h}},InputLabelProps:{...A.InputLabelProps,style:{fontSize:u}}}),disabled:g})})})},Om=c.jsx(fs.CheckBoxOutlineBlankIcon,{fontSize:"small"}),Mm=c.jsx(fs.CheckBoxIcon,{fontSize:"small"}),Hm=({gradeList:a,onChangeFilterGrade:s,fontSizeInputSelect:r,gradeFilter:o,endDate:u,startDate:h,student:g,onChangeStudent:y,studentData:x,academicYearList:v,valueAcademicYear:A,onChangeAcademicYear:D,onChangeEndDateChart:L,onChangeStartDateChart:O,onChangeFilterCalendar:W,optionDate:Z,expandedFilter:K,onToggleChart:U,setSelectTeacherUserId:te,loadingComplete:q,teacherDefault:re,teachers:We,activeTab:le})=>{const{t:Se}=J.useTranslation(),{getLabel:ge,getGradeListLabel:de,getGradeCompactLabel:Ge,system:ct}=J.useGradeLabel(),Ee=Sc.useAutoCompleteStyle(),[oe,dt]=N.useState(o||[]),[nt,at]=N.useState(!1),wt=N.useMemo(()=>a.map(z=>({label:ge(String(z)),value:String(z)})),[a,ge]);N.useEffect(()=>{dt(o||[])},[o]),N.useEffect(()=>{nt||dt(o||[])},[nt,o]);const Oe=()=>{s(oe),at(!1)},Te=N.useRef(Oe);Te.current=Oe;const Be=N.useMemo(()=>{if(!(q?.allStudent&&q?.gradeList&&q?.dataStatics&&q?.dataOverview))return!1;switch(le){case E.concernMetrics:return q?.dataMetric&&q?.dataStudentPressure&&q?.skillQuestion;case"readiness_to_learn":return q?.dataDistribution&&q?.dataChart;case"conversations":return q?.dataConversationGoal;case"open_field_questions":return q?.summarizeReport;case"learning_strategies":return q?.strategyUsage;default:return!0}},[q,le]),ve=N.useMemo(()=>({children:z,...p})=>c.jsxs(S.Paper,{...p,children:[z,c.jsx("div",{style:{padding:"8px 16px",display:"flex",justifyContent:"flex-end",borderTop:"1px solid #e0e0e0",backgroundColor:"#fff"},children:c.jsx(S.Button,{variant:"contained",size:"small",disabled:!Be,onMouseDown:ye=>{ye.preventDefault(),Te.current()},style:{backgroundColor:"#316CD9",color:"#fff",textTransform:"none",fontWeight:"bold",borderRadius:8},children:"Apply"})})]}),[Be]);return c.jsx(S.Grid,{className:`${b.styles["plp-filter-mobile"]}`,children:c.jsxs(S.Accordion,{expanded:K,className:`${b.styles.accordion} ${!K&&b.styles["oveview-style"]}`,children:[c.jsx(S.AccordionSummary,{onClick:()=>U(),expandIcon:c.jsx(Cm.ExpandMoreIcon,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:`${b.styles["expanded-summary"]}`,children:c.jsx(S.Typography,{className:`${b.styles["expanded-title"]}`,children:"Filter"})}),c.jsxs(S.AccordionDetails,{className:`${b.styles["expanded-detail"]}`,children:[c.jsxs(S.Grid,{item:!0,className:`${b.styles["select-filter-top"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["select-student"]}`,children:c.jsx(bc,{student:g,setStudent:y,studentData:x,fontSizeInputSelect:r,inputStyleProps:{height:48},disabled:!Be})}),c.jsx(S.Autocomplete,{multiple:!0,disableCloseOnSelect:!0,open:nt,onOpen:()=>at(!0),onClose:()=>at(!1),options:wt,value:wt.filter(z=>oe.includes(z.value)),getOptionLabel:z=>z.label,isOptionEqualToValue:(z,p)=>z.value===p.value,onChange:(z,p)=>{dt(p.map(ye=>ye.value))},PaperComponent:ve,disabled:!Be,renderOption:(z,p,{selected:ye})=>N.createElement("li",{...z,key:p.value},c.jsx(S.Checkbox,{icon:Om,checkedIcon:Mm,style:{marginRight:8},checked:ye,color:"primary",disabled:!Be}),p.label),renderTags:z=>{if(z.length===0)return null;const p=z.map(ce=>typeof ce=="object"?ce.value:ce),ye=Ge(p,{maxItems:1,totalCount:a.length}),ie=de(p);return c.jsx(S.Tooltip,{title:ie,arrow:!0,enterDelay:400,disableHoverListener:p.length<=1,slotProps:{tooltip:{sx:{fontSize:"14px"}}},children:c.jsx("span",{style:{fontSize:r||"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",maxWidth:"calc(100% - 55px)"},children:ye})})},renderInput:z=>c.jsx(S.TextField,{...z,label:ct==="UK"?"Year":Se("grade"),placeholder:oe&&oe.length>0?"":ct==="UK"?"Year":Se("grade"),variant:"outlined",InputProps:{...z.InputProps,style:{height:48,fontSize:r,borderRadius:8}},InputLabelProps:{...z.InputLabelProps,shrink:oe&&oe.length>0?!0:void 0,style:{fontSize:r,background:"#fff",paddingLeft:4,paddingRight:4}}}),sx:{width:"100%","& .MuiOutlinedInput-root":{height:48,borderRadius:"8px",padding:"0 8px"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"},"& .MuiAutocomplete-input":{minWidth:"0 !important",padding:"0 !important"}}}),c.jsx(ri.TeacherSelector,{setSelectTeacherUserId:te,isShowDropDownIcon:!0,defaultValue:re,setSelected:dt,disabled:!Be,teachers:We}),c.jsx(ri.AutocompleteField,{fullWidth:!0,slotProps:{popper:{sx:Ee.popper}},options:v,getOptionLabel:z=>z?.title,value:A||null,onChange:(z,p)=>D(p),label:Se("academic_year"),placeholder:Se("select_academic_year"),fontSizeInputSelect:r,disableClearable:!0,disabled:!Be})]}),c.jsxs(S.Grid,{container:!0,spacing:2,className:`${b.styles["filter-box"]}`,children:[c.jsx(Cc.FilterDateRange,{endDate:u,startDate:h,onChangeEndDate:L,onChangeStartDate:O,fontSizeInputSelect:r,disabled:!Be}),c.jsx(S.Grid,{item:!0,xs:12,sm:4,children:c.jsx(yt.CalendarSelect,{options:E.calenderOptions,value:Z,onChange:W,disabled:!Be})})]})]})]})})},Wm=c.jsx(fs.CheckBoxOutlineBlankIcon,{fontSize:"small"}),Bm=c.jsx(fs.CheckBoxIcon,{fontSize:"small"}),km=({gradeList:a,onChangeFilterGrade:s,fontSizeInputSelect:r,gradeFilter:o,endDate:u,startDate:h,student:g,onChangeStudent:y,studentData:x,academicYearList:v,valueAcademicYear:A,onChangeAcademicYear:D,onChangeEndDateChart:L,onChangeStartDateChart:O,optionDate:W,onChangeFilterCalendar:Z,onClearFilter:K,onSaveFilter:U,setSelectTeacherUserId:te,loadingComplete:q,teacherDefault:re,teachers:We,activeTab:le})=>{const{t:Se}=J.useTranslation(),{getLabel:ge,getGradeListLabel:de,getGradeCompactLabel:Ge,system:ct}=J.useGradeLabel(),[Ee,oe]=N.useState(o||[]),[dt,nt]=N.useState(!1),at=N.useMemo(()=>a.map(ve=>({label:ge(String(ve)),value:String(ve)})),[a,ge]);N.useEffect(()=>{oe(o||[])},[o]),N.useEffect(()=>{dt||oe(o||[])},[dt,o]);const wt=()=>{s(Ee),nt(!1)},Oe=N.useRef(wt);Oe.current=wt;const Te=N.useMemo(()=>{if(!(q?.allStudent&&q?.gradeList&&q?.dataStatics&&q?.dataOverview))return!1;switch(le){case E.concernMetrics:return q?.dataMetric&&q?.dataStudentPressure&&q?.skillQuestion;case"readiness_to_learn":return q?.dataDistribution&&q?.dataChart;case"conversations":return q?.dataConversationGoal;case"open_field_questions":return q?.summarizeReport;case"learning_strategies":return q?.strategyUsage;default:return!0}},[q,le]),Be=N.useMemo(()=>({children:ve,...z})=>c.jsxs(S.Paper,{...z,children:[ve,c.jsx("div",{style:{padding:"8px 16px",display:"flex",justifyContent:"flex-end",borderTop:"1px solid #e0e0e0",backgroundColor:"#fff"},children:c.jsx(S.Button,{variant:"contained",size:"small",disabled:!Te,onMouseDown:p=>{p.preventDefault(),Oe.current()},style:{backgroundColor:"#316CD9",color:"#fff",textTransform:"none",fontWeight:"bold",borderRadius:8},children:"Apply"})})]}),[Te]);return c.jsxs(S.Grid,{className:`${b.styles["plp-filter-desktop"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["select-filter-top"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(S.Autocomplete,{multiple:!0,disableCloseOnSelect:!0,open:dt,onOpen:()=>nt(!0),onClose:()=>nt(!1),options:at,value:at.filter(ve=>Ee.includes(ve.value)),getOptionLabel:ve=>ve.label,isOptionEqualToValue:(ve,z)=>ve.value===z.value,onChange:(ve,z)=>{oe(z.map(p=>p.value))},PaperComponent:Be,disabled:!Te,renderOption:(ve,z,{selected:p})=>N.createElement("li",{...ve,key:z.value},c.jsx(S.Checkbox,{icon:Wm,checkedIcon:Bm,style:{marginRight:8},checked:p,color:"primary",disabled:!Te}),z.label),renderTags:ve=>{if(ve.length===0)return null;const z=ve.map(ie=>typeof ie=="object"?ie.value:ie),p=Ge(z,{totalCount:a.length}),ye=de(z);return c.jsx(S.Tooltip,{title:ye,arrow:!0,enterDelay:400,disableHoverListener:z.length<=1,slotProps:{tooltip:{sx:{fontSize:"14px"}}},children:c.jsx("span",{style:{fontSize:r||"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",maxWidth:"calc(100% - 55px)"},children:p})})},renderInput:ve=>c.jsx(S.TextField,{...ve,label:ct==="UK"?"Year":Se("grade"),placeholder:Ee&&Ee.length>0?"":ct==="UK"?"Year":Se("grade"),variant:"outlined",InputProps:{...ve.InputProps,style:{height:48,fontSize:r,borderRadius:8}},InputLabelProps:{...ve.InputLabelProps,shrink:Ee&&Ee.length>0?!0:void 0,style:{fontSize:r,background:"#fff",paddingLeft:4,paddingRight:4}}}),sx:{width:"100%","& .MuiOutlinedInput-root":{height:48,borderRadius:"8px",padding:"0 8px"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"},"& .MuiAutocomplete-input":{minWidth:"0 !important",padding:"0 !important"}}})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(bc,{student:g,grades:o,setStudent:y,studentData:x,fontSizeInputSelect:r,inputStyleProps:{height:48},disabled:!Te})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(ri.TeacherSelector,{setSelectTeacherUserId:te,isShowDropDownIcon:!0,defaultValue:re,setSelected:oe,disabled:!Te,teachers:We})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(ri.AutocompleteField,{fullWidth:!0,options:v,getOptionLabel:ve=>ve?.title,value:A||null,onChange:(ve,z)=>{D(z)},label:Se("academic_year"),placeholder:Se("select_academic_year"),fontSizeInputSelect:r,disableClearable:!0,disabled:!Te})})]}),c.jsxs(S.Grid,{className:`${b.styles["filter-box"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(yt.CalendarSelect,{options:E.calenderOptions,value:W,onChange:Z,disabled:!Te})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(Cc.FilterDateRange,{endDate:u,startDate:h,onChangeEndDate:L,onChangeStartDate:O,fontSizeInputSelect:r,disabled:!Te})}),c.jsx(S.Button,{className:`${b.styles["save-filter"]}`,onClick:()=>U(),children:c.jsx(S.Typography,{className:`${b.styles["save-filter-title"]}`,children:"Save Filters"})}),c.jsx(S.Button,{className:`${b.styles["clear-filter"]}`,onClick:()=>Te&&K(),children:c.jsxs(S.Grid,{className:`${b.styles["clear-filter-content"]}`,children:[c.jsx(bm.ClearIcon,{className:`${b.styles["clear-filter-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["clear-filter-text"]}`,children:"Clear All Filters"})]})})]})]})},Dc=({learningStrategies:a,handleOpenQualityFeedbackModal:s,isPrint:r})=>{const{t:o}=J.useTranslation(),[u,h]=N.useState("desc"),[g,y]=N.useState("timesUsed"),x=A=>{if(r)return;h(g===A&&u==="asc"?"desc":"asc"),y(A)},v=N.useMemo(()=>a?[...a].sort((A,D)=>{const L=A[g],O=D[g];return O<L?u==="desc"?-1:1:O>L?u==="desc"?1:-1:0}):[],[a,u,g]);return c.jsxs(S.Grid,{className:`${b.styles["table-container"]}`,children:[c.jsx(S.Table,{"aria-label":"simple table",children:c.jsx(S.TableHead,{className:`${b.styles["table-head"]}`,children:c.jsxs(S.TableRow,{children:[c.jsx(S.TableCell,{align:"left",width:r?"40%":"37%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="learningStrategyName",direction:g==="learningStrategyName"?u:"asc",onClick:()=>x("learningStrategyName"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:"Learning Strategy Name"})})}),c.jsx(S.TableCell,{align:"center",width:r?"30%":"20%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="timesUsed",direction:g==="timesUsed"?u:"asc",onClick:()=>x("timesUsed"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center justify-content-center",children:"Times Used"})})}),c.jsx(S.TableCell,{align:"left",width:r?"30%":"25%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="studentFeedBackAvg",direction:g==="studentFeedBackAvg"?u:"asc",onClick:()=>x("studentFeedBackAvg"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:o("student_feedback")})})}),!r&&c.jsx(S.TableCell,{align:"left",width:"18%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:o("action")})})]})})}),c.jsx(S.Grid,{className:`${b.styles["table-body-container"]}`,children:c.jsx(S.Table,{children:c.jsx(S.TableBody,{className:`${b.styles["table-body"]}`,children:v?.map(A=>c.jsxs(S.TableRow,{className:`${b.styles["table-row"]}`,children:[c.jsx(S.TableCell,{align:"left",height:52,style:{width:r?"40%":"37%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-start h-100",children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:A.learningStrategyName})})}),c.jsx(S.TableCell,{align:"center",height:52,style:{width:r?"30%":"20%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100 justify-content-center",children:A.timesUsed})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:r?"30%":"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100",children:A.studentFeedBackAvg===0?"Not done yet":c.jsxs(c.Fragment,{children:[A.studentFeedBackAvg," ",c.jsx("span",{className:`${b.styles["tail-average"]}`,children:" / 10"})]})})}),!r&&c.jsx(S.TableCell,{align:"left",height:52,style:{width:"18%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-start h-100",children:c.jsxs(S.Grid,{onClick:()=>s&&s(A.learningStrategyId),className:`d-flex align-items-center ${b.styles["view-response-action"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:"View Students"}),c.jsx(ao.ArrowForwardIcon,{})]})})})]},A.learningStrategyId))})})})]})},zm=a=>{const[s,r]=N.useState({sortBy:"grade",sortOrder:"DESC"}),o=N.useCallback(h=>{r(g=>({sortBy:h,sortOrder:g.sortBy===h&&g.sortOrder==="ASC"?"DESC":"ASC"}))},[]);return{sortedStudents:N.useMemo(()=>a?s.sortBy?[...a].sort((h,g)=>{const{sortBy:y,sortOrder:x}=s;let v=h[y]??"",A=g[y]??"";if(y==="grade"){const D=parseInt(String(v).replace(/\D/g,""),10),L=parseInt(String(A).replace(/\D/g,""),10);!isNaN(D)&&!isNaN(L)&&(v=D,A=L)}return typeof v=="number"&&typeof A=="number"?x==="ASC"?v-A:A-v:v<A?x==="ASC"?-1:1:v>A?x==="ASC"?1:-1:0}):a:[],[a,s]),sortConfig:s,handleSort:o,setSortConfig:r}},Gm=J.getStaticFileUrl("/images/image-default.png");function Um({students:a,openPopoverListStudent:s,handleCloseListStudentModal:r,handleViewDetailNote:o}){const{t:u}=J.useTranslation(),{getLabel:h,system:g}=J.useGradeLabel(),{sortedStudents:y,sortConfig:x,handleSort:v,setSortConfig:A}=zm(a);N.useEffect(()=>{s||A({sortBy:"grade",sortOrder:"DESC"})},[s]);const D=(L,O)=>L?O==="ASC"?c.jsx(dc.ArrowUpwardIcon,{style:{width:16,height:16,marginLeft:4}}):c.jsx(dc.ArrowDownwardIcon,{style:{width:16,height:16,marginLeft:4}}):null;return c.jsx(oo.SimpleDialog,{open:s,onClose:r,scroll:"body",maxWidth:"md",isHiddenIconClose:!0,children:c.jsxs("div",{className:`${b.styles["metric-modal"]} position-relative`,children:[c.jsxs("div",{className:`d-flex justify-content-between align-items-center ${b.styles["metric-modal__title-missed-conversation"]}`,children:[c.jsx("div",{className:b.styles["quality-feedback-title"],children:u("quality_feedback")}),c.jsx("span",{className:b.styles["modal-close-icon"],onClick:r,children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 54 54",fill:"none",children:c.jsx("path",{d:"M49 7L28 28M28 28L49 49M28 28L7 7M28 28L7 49",stroke:"#9E9E9E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),c.jsx("div",{className:b.styles["metric-modal__body"],children:c.jsxs(S.Grid,{className:`${b.styles["table-container"]}`,children:[c.jsx(S.Table,{"aria-label":"simple table",children:c.jsx(S.TableHead,{className:`${b.styles["table-head"]}`,children:c.jsxs(S.TableRow,{children:[c.jsx(S.TableCell,{align:"left",width:"30%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("studentUserName"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[u("student"),D(x?.sortBy==="studentUserName",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"center",width:"20%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("grade"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center justify-content-start",children:[g==="UK"?"Year":u("grade"),D(x?.sortBy==="grade",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"left",width:"25%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("average"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[u("student_feedback"),D(x?.sortBy==="average",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"left",width:"25%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:u("action")})})]})})}),c.jsx(S.Grid,{className:`${b.styles["table-body-container"]}`,children:c.jsx(S.Table,{children:c.jsx(S.TableBody,{className:`${b.styles["table-body"]}`,children:y!=null&&y.length>0?y.map((L,O)=>c.jsxs(S.TableRow,{className:`${b.styles["table-row"]} ${b.styles["quality-feedback-row"]}`,children:[c.jsx(S.TableCell,{align:"left",height:52,style:{width:"30%"},className:`${b.styles["body-cell"]}`,children:c.jsxs(S.Grid,{className:"d-flex align-items-center h-100",children:[c.jsx("img",{src:L.avatarStudent?J.getFileUrl(L.avatarStudent):Gm,alt:"",className:`${b.styles.avatar_user} ${b.styles["quality-feedback-avatar"]}`}),L.studentUserName]})}),c.jsx(S.TableCell,{align:"center",height:52,style:{width:"20%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100 justify-content-start",children:h(L.grade)})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100",children:L.average===0?"Not done yet":c.jsxs(c.Fragment,{children:[L.average," ",c.jsx("span",{className:`${b.styles["tail-average"]}`,children:"/ 10"})]})})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-center h-100",children:c.jsxs(S.Grid,{className:`d-flex align-items-center ${b.styles["view-response-action"]}`,onClick:()=>o(L),children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:u("view_1_1_note")}),c.jsx(ao.ArrowForwardIcon,{})]})})})]},O)):c.jsx(S.TableRow,{children:c.jsx(S.TableCell,{colSpan:4,align:"center",children:u("no_data")})})})})})]})})]})})}const qm=({learningStrategies:a,classFontSize:s,print:r,loadingComplete:o,students:u,openQualityFeedbackModal:h,handleOpenQualityFeedbackModal:g,handleCloseQualityFeedbackModal:y,handleViewDetailNote:x})=>{const{t:v}=J.useTranslation(),D=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<576;return c.jsxs(S.Grid,{children:[!r&&c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:v("the_data_presented_here_comes_from_the_1_1_conversations")})]}),c.jsx(S.Grid,{className:`${b.styles["box-strategy"]} ${b.styles[s]}`,style:r?{flexDirection:"column"}:{},children:c.jsxs(S.Grid,{className:`${b.styles["strategy-bar-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["block-header-chart"]}`,children:c.jsxs(S.Grid,{className:`${b.styles["block-header-name"]}`,children:[c.jsx("p",{className:`${b.styles["title-chart"]}`,children:v("learning_strategies_usage_feedback")}),!r&&c.jsx("p",{className:`${b.styles["description-chart"]}`,children:v("overview_of_learning_strategies_with_usage_stats_and_feedback")})]})}),c.jsx(S.Grid,{className:"w-100 h-100",children:c.jsx(S.Grid,{style:{marginLeft:D?-410:0},children:o?c.jsx(Dc,{learningStrategies:a,handleOpenQualityFeedbackModal:g}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})})})]})}),c.jsx(Um,{students:u,openPopoverListStudent:h,handleCloseListStudentModal:y,handleViewDetailNote:x})]})},Ym=({handleRedirectAllAnswer:a,summarizeQuestions:s,goToSession:r,handleChangeQuestionFilter:o,questionFilters:u,loadingComplete:h=!0})=>{const{t:g}=J.useTranslation();return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:g("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsxs(S.Grid,{className:`${b.styles["plp-box-chart"]} ${b.styles["box-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["title-chart"]}`,children:g("open_field_questions")}),c.jsx(S.Typography,{className:b.styles["description-chart-distribution-stress"],children:g("these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above")}),c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[c.jsxs(S.Typography,{className:`${b.styles["total-text"]}`,children:[g("total_responses"),":"]}),h?c.jsx(S.Typography,{className:`${b.styles["total-value"]}`,children:s?.totalItems??0}):c.jsx(Dn.Loading,{size:24})]}),c.jsxs(S.Grid,{onClick:()=>h&&a(),className:`d-flex align-items-center ${b.styles["view-response-action"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:g("view_all_responses")}),c.jsx(ao.ArrowForwardIcon,{})]})]}),h?c.jsx(Dm.LastAnswerTable,{items:s?.items||[],onOder:o,filter:u,goToSession:r}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})]})]})},Vm=J.getStaticFileUrl("/images/image-default.png"),Qm=({students:a,openPopoverListStudent:s,handleCloseListStudentModal:r})=>{const{t:o}=J.useTranslation(),{getLabel:u,system:h}=J.useGradeLabel();return c.jsx(oo.SimpleDialog,{open:s,onClose:r,scroll:"body",maxWidth:"md",children:c.jsxs("div",{className:b.styles["metric-modal"],children:[c.jsxs("div",{className:b.styles["metric-modal__title-missed-conversation"],children:[o("students_missing_a_conversation")," (",a?.length,")"]}),c.jsxs("div",{className:b.styles["metric-modal__body"],children:[c.jsxs("div",{className:b.styles["metric-modal__body--header"],children:[c.jsx("div",{className:`${b.styles.item} ${b.styles["not-grade"]}`,children:o("student")}),c.jsx("div",{className:`${b.styles.item} ${b.styles.grade}`,style:{maxWidth:"20%"},children:h==="UK"?"Year":o("grade")})]}),c.jsx("div",{className:b.styles["metric-modal__body--content"],children:a?.length&&a.map(g=>c.jsxs("div",{className:b.styles.item,children:[c.jsxs("div",{className:`${b.styles.item__data} ${b.styles["item__not-grade"]} ${b.styles["item__student-information"]}`,children:[c.jsx("img",{src:g?.studentProfileImage?J.getFileUrl(g?.studentProfileImage):Vm,alt:g?.studentName}),g?.studentName]}),c.jsx("div",{className:`${b.styles.item__data} ${b.styles.item__grade}`,style:{maxWidth:"20%"},children:u(g?.grade)})]},g?.studentId))})]})]})})},Xm=({open:a,onClose:s,filterStartDate:r,filterEndDate:o})=>{const{teachers:u,teacherDefault:h,getTeachersData:g,setSelectTeacherUserId:y,setSelected:x,educatorsData:v,loading:A,pagination:D,changeFilters:L,educatorTarget:O,filter:W,handleFilterMonth:Z,handleFilterStatus:K}=Tm.useEducatorConversationTarget(r,o);return c.jsx(oo.SimpleDialog,{open:a,onClose:s,scroll:"body",maxWidth:"lg",isHiddenIconClose:!0,children:c.jsx(ri.TeacherConversations,{educators:v,teachers:u,teacherDefault:h,getTeachersData:g,setSelectTeacherUserId:y,setSelected:x,loading:A,pagination:D,changeFilters:L,onClose:s,educatorTarget:O,filterStartDate:r,filterEndDate:o,filter:W,handleFilterMonth:Z,handleFilterStatus:K})})},$m=({conversationKpi:a,loadingComplete:s=!0,filterStartDate:r,filterEndDate:o})=>{const{t:u}=J.useTranslation(),[h,g]=N.useState(!1),[y,x]=N.useState(!1);return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:u("the_data_presented_here_comes_from_the_conversations_logs")})]}),c.jsxs(S.Grid,{className:`${b.styles["conversation-list-card"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("average_student_review")}),c.jsx("img",{src:"/images/star-icon.png",alt:""})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item-content"]}`,children:[s?c.jsx(S.Typography,{className:`${b.styles["card-item-score"]}`,children:a.avgStudentReview}):c.jsx(Dn.Loading,{size:24}),c.jsx(S.Typography,{className:`${b.styles["rating-scale"]}`,children:"/10"})]})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("monthly_conversation_target")}),c.jsx("img",{src:"/images/target-icon.png",alt:""})]}),c.jsx(S.Grid,{className:`${b.styles["card-item-content"]}`,children:s?c.jsxs(N.Fragment,{children:[c.jsx(S.Typography,{className:`${b.styles["card-item-score"]}`,children:a.conversationTeacherAvg}),c.jsx(S.Typography,{className:`${b.styles["rating-scale"]}`,children:`/${a.conversationTarget}`})]}):c.jsx(Dn.Loading,{size:24})}),a?.educatorConversationsTarget?.length>0&&s&&c.jsxs("button",{type:"button",className:`${b.styles["card-item__view-list"]}`,onClick:()=>x(!0),children:[u("view_list"),c.jsx(fc.ArrowRightIcon,{})]})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("students_missing_a_conversation")}),c.jsx("img",{src:"/images/conversation-icon.png",alt:""})]}),c.jsx(S.Grid,{className:`${b.styles["card-item-content"]}`,children:c.jsxs("div",{className:`${b.styles["card-item-score"]}`,children:[s?c.jsx("span",{className:`${b.styles["card-item-score__kpi"]}`,children:a.sessionReviewSkipped}):c.jsx(Dn.Loading,{size:24}),c.jsx("span",{className:`${b.styles["card-item-score__student"]}`,children:u("students")}),!!a?.sessionReviewSkipped&&s&&c.jsxs("button",{type:"button",className:`${b.styles["card-item-score__view-list"]}`,onClick:()=>g(!0),children:[u("view_list"),c.jsx(fc.ArrowRightIcon,{})]})]})})]})]}),c.jsx(Qm,{students:a.missedReviewStudents,openPopoverListStudent:h,handleCloseListStudentModal:()=>g(!1)}),c.jsx(Xm,{onClose:()=>x(!1),open:y,filterStartDate:r,filterEndDate:o})]})};function Km(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Jm=N.memo($m,Km),Zm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/MAAAFECAYAAABrrG5HAAAqBklEQVR4Ae3dbWycZ3of+ntennkjKZJ68a4cJ147aRzbZ0/XZhBA8eJESY2co+06H1IoHxrgADnF0TnAOemXfi2QKdAPa6DbAgmKoptuExRtgWjTRdebKgi8tdSuq40Bys524XWj3Vh21rZkSdYbJXI4HM507hFHO6KoF1Iczjwzvx8gc8jhDGcea6j5P9d1X3cmAACsU21Vs/HjN7/yUe7qcjHbmFrIxM/r9ULn6yuzl7Pd721cDrnu5dXcjy93tWqNTEhKmbBZK7VWppRv9X4pU09a2dxK89bny4VW7tP1zufJ5dnOx+yNy6387EQrvzDVmi4uN6fOPto6+DuhWc1UmwEARsTm/2EFAFIpBvQYzj8p1HONyzcyzYnZTAzlq+cK2dV8K9cqrGS2HLxTJJNrNHOrYTVezs+G1XgSIJ4AKOU/3eyG/xPVaiMAwBAT5gFgFFSr2ervhPBvf++TpNY4l10uhtzqak9IX81nA5uzUmtls+VmrpFZzeXqzeJyWI2B/7FLe1ZPhNBsH3OVfgAGRpgHgBSJ1fVbgf2xkKtfTBJhfUDaYT+f5Bux1b9UnGhUlournaCvqg/ADhDmAWAIrQ/ty9dCQWBPj+xqu5rfrugL+QD0izAPAAMWg/sf/uF7hRuLN/KNfMg1Vtr/HfF162NprZKfb4TVicpE4zPvf6Yh4AOwVd4oAMBOqlazP7P7k+Rq7lwiuNMb8KdXP73yw0+fa4Tf+NpqAID78OYBAPooVt3/1T97u6hVngcVp+3nFwuNSqO+8jPXnl1RvQdgI8I8AGyjbnhfzBeSlexiourOQ2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Akd1HMAJMKjIJ2ow6nJxvIuh1BLwocD5+TlyxE9HtdpaKg8ynEKyQQAcmpFCLkSPuXRzfh4mCYmNFpa0sqBwwVk0yQA8I9KCH348svxoqYVjEOHckfeeqtIm7Cp8LGdsBkaGtL5zydUNWwNDqqEJXKAwOAtMWGiiFNKiTijoVIpFCo6YVSkY8fM46lUQ6OOVeHDoVL5/Lozkpm/fZsbsyvOMCscjUZDpdlZlTckXR8aUh7fSuaMbjClAgiulSNQEYPDaGiInFGRHe7sNOdN03Lyw9JfeKEcRof37LH+gsozpRJ//RuiiWvv07HsnwAAAABJRU5ErkJggg==",tv=({studentPressure:a,changeLanguage:s,width:r,print:o,handleHoverTooltip:u,loadingComplete:h=!0})=>{const g=N.useRef(null);let y=window.innerWidth;const x=y>=576&&y<1024,{t:v}=J.useTranslation();y<576?y=window.innerWidth-20:x?y=window.innerWidth-80:y=window.innerWidth-340,r&&(y=r);const A=y,D=A<576,L=D?A/1.5:A/3.12,O=["#C44140","#81C935","#0F9655","#FFB04F","#C44140"],W=[{label:"unmotivated",value:a.boreOutStudent,tooltip:"not_enough_challenge_leading_to_boredom_and_lack_of_interest"},{label:"comfort",value:a.comfortStudent,tooltip:"calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best"},{label:"stretch",value:a.stretchStudent,tooltip:"manageable_levels_of_stress_allowing_me_to_perform_at_my_best"},{label:"strain",value:a.strainStudent,tooltip:"still_in_control_but_starting_to_feel_the_pressure"},{label:"overwhelmed",value:a.burnoutStudent,tooltip:"too_much_pressure_and_really_struggling_to_manage_my_workload"}],Z=["low","moderate","high","very_high"],[K,U]=N.useState(""),[te,q]=N.useState(""),[re,We]=N.useState(0),[le,Se]=N.useState(0),[ge,de]=N.useState([]),[Ge,ct]=N.useState(""),Ee=(p,ye,ie,ce,Ke)=>{de(Array.from(new Set(p))),We(D&&ce==W[W.length-1].label?ye-45:ye),Se(ie),U(ce),ct(Ke),u&&u(v(E.studentStressByZone))},oe=(p,ye,ie,ce)=>{U(ce),q(ie),We(D&&ce==W[W.length-1].label?p-15:p),Se(ye)},dt=()=>{U(""),q("")},nt=()=>{U("")};N.useEffect(()=>{const p=g.current;if(p){const ye=async()=>{const ie=document.createElementNS("http://www.w3.org/2000/svg","style");ie.textContent=`
|
|
5
|
+
${Vn},${ze},${et},${Qe},${Pt}`}).join("");return`${E.CSV_PREFIX}${st}${encodeURIComponent(Ve)}`};return{strategyUsage:Hs,qualityFeedbackStudents:Ws,openQualityFeedbackModal:Bs,handleOpenQualityFeedbackModal:ks,handleCloseQualityFeedbackModal:zs,handleViewDetailNote:Hr,noteSelected:Gs,openDetailNote:Us,handleCloseDetailNote:qs,loadingTopLearningStrategies:Ys,setFilter:h,filter:u,listTotalTime:D,readinessToLearning:O,topLearningStrategies:Z,handleChangeFilters:Ft,handleChangeAcademicYearFilters:Fs,academicYear:U,user:q,studentDefault:We,setStudentDefault:le,handleFilterStudent:pi,onChangeFilters:mi,handleActiveColumnOneToOne:Cs,monthsOneToOne:As,dayOfWeekOneToOne:_s,stressData:rr,safetyData:Dr,preparednessData:Tr,successIndicatorsData:qn,activeColumnSuccessIndicators:ir,activeColumnPreparedness:jr,avgQuestionLastMonth:ys,gradeList:Se,studentPressure:Rs,dataOverallReadyToLearn:gi,studentSkillQuestion:de,summarizeQuestions:ct,handleRedirectAllAnswer:Rr,handleChangeQuestionFilter:Nn,questionFilters:x,goToSession:br,isExistQuestion:se,setIsExistQuestion:ut,handleChangeFilterCalendar:jn,handleChangeFilterGrade:nr,activeTab:g,setActiveTab:y,handleHoverTooltip:rn,academicYearItem:nn,handleChangeEndDateChart:In,handleChangeStartDateChart:Ln,expandedFilter:at,onToggleChart:ke,classFontSize:Rt,fontSizeInputSelect:Ue,successIndicatorWeeklyData:Nr,weeksOneToOne:gs,preparednessWeeklyData:Ir,metricWeeks:bs,metricDataWeeks:ar,metricMonths:sr,metricDataMonths:Is,lowMetricStudents:oi,handleClick:pe,handleClose:ae,anchorEl:Oe,id_export:pt,openPopoverExport:Ne,toggle:Vs,handleSelectToPrint:Ce,selectedToPrint:z,modal:Be,schoolName:ye,onClearFilter:Fr,onSaveFilter:Pr,studentData:re,studentMetricPercent:ci,setOptionDate:Le,stressValue:gt,conversationKpi:fi,setSelectTeacherUserId:Cr,safetyValue:Tt,activeColumnReadiness:P,activeColumnIndicators:k,handleActiveColumn:Ms,loadingComplete:H,teachers:cr,teacherDefault:Es,studentConversations:Y,onBeforeViewCheckIn:yi,exportStudentConversationCsv:async()=>{a(J.setLoading(!0));try{let T=Y;if((!H.studentConversation||!T||T.length===0)&&(T=(await ht.getStudentConversation(u)).data,ne(T),$(xe=>({...xe,studentConversation:!0}))),T&&T.length>0){const oe=Ze(T,u.startDate,u.endDate),xe=document.createElement("a");xe.href=oe,xe.download=`${ye}_Conversations_Report.csv`,xe.click(),a(J.setAlert({type:"success",message:"Download Completed"}))}else a(J.setAlert({type:"warning",message:"No data to export"}))}catch(T){a(J.setAlert({type:"danger",message:T.response?.data?.title||T.message}))}a(J.setLoading(!1))}}},bc=({student:a,setStudent:s,studentData:r,grades:o,fontSizeInputSelect:u,inputStyleProps:h,disabled:g=!1})=>{const{t:y}=J.useTranslation(),x=Sc.useAutoCompleteStyle(),v=N.useMemo(()=>{if(!o||o.length===0)return r||[];const A=o.filter(D=>D!=="All");return A.length===0?r||[]:(r||[]).filter(D=>D.gradeLevel&&A.includes(D.gradeLevel))},[r,o]);return c.jsx(S.Grid,{children:c.jsx(S.FormControl,{fullWidth:!0,children:c.jsx(Sm.Autocomplete,{id:"tags-outlined",slotProps:{popper:{sx:x.popper}},filterSelectedOptions:!0,options:v,getOptionLabel:A=>`${A?.fullName?A.fullName:""} (${A?.email?A.email:""})`,onChange:(A,D)=>{s(D)},value:a||null,renderInput:A=>c.jsx(S.TextField,{...A,variant:"outlined",label:y("select_student"),placeholder:g?"":y("select_student"),InputProps:{...A.InputProps,startAdornment:c.jsxs(N.Fragment,{children:[g&&c.jsx(Dn.Loading,{defaultColor:!1,size:24}),A.InputProps.endAdornment]}),style:{fontSize:u,...h}},InputLabelProps:{...A.InputLabelProps,style:{fontSize:u}}}),disabled:g})})})},Om=c.jsx(fs.CheckBoxOutlineBlankIcon,{fontSize:"small"}),Mm=c.jsx(fs.CheckBoxIcon,{fontSize:"small"}),Hm=({gradeList:a,onChangeFilterGrade:s,fontSizeInputSelect:r,gradeFilter:o,endDate:u,startDate:h,student:g,onChangeStudent:y,studentData:x,academicYearList:v,valueAcademicYear:A,onChangeAcademicYear:D,onChangeEndDateChart:L,onChangeStartDateChart:O,onChangeFilterCalendar:W,optionDate:Z,expandedFilter:K,onToggleChart:U,setSelectTeacherUserId:te,loadingComplete:q,teacherDefault:ie,teachers:We,activeTab:le})=>{const{t:Se}=J.useTranslation(),{getLabel:ge,getGradeListLabel:de,getGradeCompactLabel:Ge,system:ct}=J.useGradeLabel(),Ee=Sc.useAutoCompleteStyle(),[se,ut]=N.useState(o||[]),[nt,at]=N.useState(!1),wt=N.useMemo(()=>a.map(z=>({label:ge(String(z)),value:String(z)})),[a,ge]);N.useEffect(()=>{ut(o||[])},[o]),N.useEffect(()=>{nt||ut(o||[])},[nt,o]);const Oe=()=>{s(se),at(!1)},Te=N.useRef(Oe);Te.current=Oe;const Be=N.useMemo(()=>{if(!(q?.allStudent&&q?.gradeList&&q?.dataStatics&&q?.dataOverview))return!1;switch(le){case E.concernMetrics:return q?.dataMetric&&q?.dataStudentPressure&&q?.skillQuestion;case"readiness_to_learn":return q?.dataDistribution&&q?.dataChart;case"conversations":return q?.dataConversationGoal;case"open_field_questions":return q?.summarizeReport;case"learning_strategies":return q?.strategyUsage;default:return!0}},[q,le]),ve=N.useMemo(()=>({children:z,...p})=>c.jsxs(S.Paper,{...p,children:[z,c.jsx("div",{style:{padding:"8px 16px",display:"flex",justifyContent:"flex-end",borderTop:"1px solid #e0e0e0",backgroundColor:"#fff"},children:c.jsx(S.Button,{variant:"contained",size:"small",disabled:!Be,onMouseDown:ye=>{ye.preventDefault(),Te.current()},style:{backgroundColor:"#316CD9",color:"#fff",textTransform:"none",fontWeight:"bold",borderRadius:8},children:"Apply"})})]}),[Be]);return c.jsx(S.Grid,{className:`${b.styles["plp-filter-mobile"]}`,children:c.jsxs(S.Accordion,{expanded:K,className:`${b.styles.accordion} ${!K&&b.styles["oveview-style"]}`,children:[c.jsx(S.AccordionSummary,{onClick:()=>U(),expandIcon:c.jsx(Cm.ExpandMoreIcon,{}),"aria-controls":"panel1a-content",id:"panel1a-header",className:`${b.styles["expanded-summary"]}`,children:c.jsx(S.Typography,{className:`${b.styles["expanded-title"]}`,children:"Filter"})}),c.jsxs(S.AccordionDetails,{className:`${b.styles["expanded-detail"]}`,children:[c.jsxs(S.Grid,{item:!0,className:`${b.styles["select-filter-top"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["select-student"]}`,children:c.jsx(bc,{student:g,setStudent:y,studentData:x,fontSizeInputSelect:r,inputStyleProps:{height:48},disabled:!Be})}),c.jsx(S.Autocomplete,{multiple:!0,disableCloseOnSelect:!0,open:nt,onOpen:()=>at(!0),onClose:()=>at(!1),options:wt,value:wt.filter(z=>se.includes(z.value)),getOptionLabel:z=>z.label,isOptionEqualToValue:(z,p)=>z.value===p.value,onChange:(z,p,ye)=>{if(ye==="clear"){ut([]),s([]);return}ut(p.map(re=>re.value))},PaperComponent:ve,disabled:!Be,renderOption:(z,p,{selected:ye})=>N.createElement("li",{...z,key:p.value},c.jsx(S.Checkbox,{icon:Om,checkedIcon:Mm,style:{marginRight:8},checked:ye,color:"primary",disabled:!Be}),p.label),renderTags:z=>{if(z.length===0)return null;const p=z.map(ce=>typeof ce=="object"?ce.value:ce),ye=Ge(p,{maxItems:1,totalCount:a.length}),re=de(p);return c.jsx(S.Tooltip,{title:re,arrow:!0,enterDelay:400,disableHoverListener:p.length<=1,slotProps:{tooltip:{sx:{fontSize:"14px"}}},children:c.jsx("span",{style:{fontSize:r||"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",maxWidth:"calc(100% - 55px)"},children:ye})})},renderInput:z=>c.jsx(S.TextField,{...z,label:ct==="UK"?"Year":Se("grade"),placeholder:se&&se.length>0?"":ct==="UK"?"Year":Se("grade"),variant:"outlined",InputProps:{...z.InputProps,style:{height:48,fontSize:r,borderRadius:8}},InputLabelProps:{...z.InputLabelProps,shrink:se&&se.length>0?!0:void 0,style:{fontSize:r,background:"#fff",paddingLeft:4,paddingRight:4}}}),sx:{width:"100%","& .MuiOutlinedInput-root":{height:48,borderRadius:"8px",padding:"0 8px"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"},"& .MuiAutocomplete-input":{minWidth:"0 !important",padding:"0 !important"}}}),c.jsx(ri.TeacherSelector,{setSelectTeacherUserId:te,isShowDropDownIcon:!0,defaultValue:ie,setSelected:ut,disabled:!Be,teachers:We}),c.jsx(ri.AutocompleteField,{fullWidth:!0,slotProps:{popper:{sx:Ee.popper}},options:v,getOptionLabel:z=>z?.title,value:A||null,onChange:(z,p)=>D(p),label:Se("academic_year"),placeholder:Se("select_academic_year"),fontSizeInputSelect:r,disableClearable:!0,disabled:!Be})]}),c.jsxs(S.Grid,{container:!0,spacing:2,className:`${b.styles["filter-box"]}`,children:[c.jsx(Cc.FilterDateRange,{endDate:u,startDate:h,onChangeEndDate:L,onChangeStartDate:O,fontSizeInputSelect:r,disabled:!Be}),c.jsx(S.Grid,{item:!0,xs:12,sm:4,children:c.jsx(yt.CalendarSelect,{options:E.calenderOptions,value:Z,onChange:W,disabled:!Be})})]})]})]})})},Wm=c.jsx(fs.CheckBoxOutlineBlankIcon,{fontSize:"small"}),Bm=c.jsx(fs.CheckBoxIcon,{fontSize:"small"}),km=({gradeList:a,onChangeFilterGrade:s,fontSizeInputSelect:r,gradeFilter:o,endDate:u,startDate:h,student:g,onChangeStudent:y,studentData:x,academicYearList:v,valueAcademicYear:A,onChangeAcademicYear:D,onChangeEndDateChart:L,onChangeStartDateChart:O,optionDate:W,onChangeFilterCalendar:Z,onClearFilter:K,onSaveFilter:U,setSelectTeacherUserId:te,loadingComplete:q,teacherDefault:ie,teachers:We,activeTab:le})=>{const{t:Se}=J.useTranslation(),{getLabel:ge,getGradeListLabel:de,getGradeCompactLabel:Ge,system:ct}=J.useGradeLabel(),[Ee,se]=N.useState(o||[]),[ut,nt]=N.useState(!1),at=N.useMemo(()=>a.map(ve=>({label:ge(String(ve)),value:String(ve)})),[a,ge]);N.useEffect(()=>{se(o||[])},[o]),N.useEffect(()=>{ut||se(o||[])},[ut,o]);const wt=()=>{s(Ee),nt(!1)},Oe=N.useRef(wt);Oe.current=wt;const Te=N.useMemo(()=>{if(!(q?.allStudent&&q?.gradeList&&q?.dataStatics&&q?.dataOverview))return!1;switch(le){case E.concernMetrics:return q?.dataMetric&&q?.dataStudentPressure&&q?.skillQuestion;case"readiness_to_learn":return q?.dataDistribution&&q?.dataChart;case"conversations":return q?.dataConversationGoal;case"open_field_questions":return q?.summarizeReport;case"learning_strategies":return q?.strategyUsage;default:return!0}},[q,le]),Be=N.useMemo(()=>({children:ve,...z})=>c.jsxs(S.Paper,{...z,children:[ve,c.jsx("div",{style:{padding:"8px 16px",display:"flex",justifyContent:"flex-end",borderTop:"1px solid #e0e0e0",backgroundColor:"#fff"},children:c.jsx(S.Button,{variant:"contained",size:"small",disabled:!Te,onMouseDown:p=>{p.preventDefault(),Oe.current()},style:{backgroundColor:"#316CD9",color:"#fff",textTransform:"none",fontWeight:"bold",borderRadius:8},children:"Apply"})})]}),[Te]);return c.jsxs(S.Grid,{className:`${b.styles["plp-filter-desktop"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["select-filter-top"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(S.Autocomplete,{multiple:!0,disableCloseOnSelect:!0,open:ut,onOpen:()=>nt(!0),onClose:()=>nt(!1),options:at,value:at.filter(ve=>Ee.includes(ve.value)),getOptionLabel:ve=>ve.label,isOptionEqualToValue:(ve,z)=>ve.value===z.value,onChange:(ve,z,p)=>{if(p==="clear"){se([]),s([]);return}se(z.map(ye=>ye.value))},PaperComponent:Be,disabled:!Te,renderOption:(ve,z,{selected:p})=>N.createElement("li",{...ve,key:z.value},c.jsx(S.Checkbox,{icon:Wm,checkedIcon:Bm,style:{marginRight:8},checked:p,color:"primary",disabled:!Te}),z.label),renderTags:ve=>{if(ve.length===0)return null;const z=ve.map(re=>typeof re=="object"?re.value:re),p=Ge(z,{totalCount:a.length}),ye=de(z);return c.jsx(S.Tooltip,{title:ye,arrow:!0,enterDelay:400,disableHoverListener:z.length<=1,slotProps:{tooltip:{sx:{fontSize:"14px"}}},children:c.jsx("span",{style:{fontSize:r||"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",maxWidth:"calc(100% - 55px)"},children:p})})},renderInput:ve=>c.jsx(S.TextField,{...ve,label:ct==="UK"?"Year":Se("grade"),placeholder:Ee&&Ee.length>0?"":ct==="UK"?"Year":Se("grade"),variant:"outlined",InputProps:{...ve.InputProps,style:{height:48,fontSize:r,borderRadius:8}},InputLabelProps:{...ve.InputLabelProps,shrink:Ee&&Ee.length>0?!0:void 0,style:{fontSize:r,background:"#fff",paddingLeft:4,paddingRight:4}}}),sx:{width:"100%","& .MuiOutlinedInput-root":{height:48,borderRadius:"8px",padding:"0 8px"},"& .MuiAutocomplete-inputRoot":{flexWrap:"nowrap"},"& .MuiAutocomplete-input":{minWidth:"0 !important",padding:"0 !important"}}})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(bc,{student:g,grades:o,setStudent:y,studentData:x,fontSizeInputSelect:r,inputStyleProps:{height:48},disabled:!Te})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(ri.TeacherSelector,{setSelectTeacherUserId:te,isShowDropDownIcon:!0,defaultValue:ie,setSelected:se,disabled:!Te,teachers:We})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(ri.AutocompleteField,{fullWidth:!0,options:v,getOptionLabel:ve=>ve?.title,value:A||null,onChange:(ve,z)=>{D(z)},label:Se("academic_year"),placeholder:Se("select_academic_year"),fontSizeInputSelect:r,disableClearable:!0,disabled:!Te})})]}),c.jsxs(S.Grid,{className:`${b.styles["filter-box"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(yt.CalendarSelect,{options:E.calenderOptions,value:W,onChange:Z,disabled:!Te})}),c.jsx(S.Grid,{className:`${b.styles["filter-item"]}`,children:c.jsx(Cc.FilterDateRange,{endDate:u,startDate:h,onChangeEndDate:L,onChangeStartDate:O,fontSizeInputSelect:r,disabled:!Te})}),c.jsx(S.Button,{className:`${b.styles["save-filter"]}`,onClick:()=>U(),children:c.jsx(S.Typography,{className:`${b.styles["save-filter-title"]}`,children:"Save Filters"})}),c.jsx(S.Button,{className:`${b.styles["clear-filter"]}`,onClick:()=>Te&&K(),children:c.jsxs(S.Grid,{className:`${b.styles["clear-filter-content"]}`,children:[c.jsx(bm.ClearIcon,{className:`${b.styles["clear-filter-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["clear-filter-text"]}`,children:"Clear All Filters"})]})})]})]})},Dc=({learningStrategies:a,handleOpenQualityFeedbackModal:s,isPrint:r})=>{const{t:o}=J.useTranslation(),[u,h]=N.useState("desc"),[g,y]=N.useState("timesUsed"),x=A=>{if(r)return;h(g===A&&u==="asc"?"desc":"asc"),y(A)},v=N.useMemo(()=>a?[...a].sort((A,D)=>{const L=A[g],O=D[g];return O<L?u==="desc"?-1:1:O>L?u==="desc"?1:-1:0}):[],[a,u,g]);return c.jsxs(S.Grid,{className:`${b.styles["table-container"]}`,children:[c.jsx(S.Table,{"aria-label":"simple table",children:c.jsx(S.TableHead,{className:`${b.styles["table-head"]}`,children:c.jsxs(S.TableRow,{children:[c.jsx(S.TableCell,{align:"left",width:r?"40%":"37%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="learningStrategyName",direction:g==="learningStrategyName"?u:"asc",onClick:()=>x("learningStrategyName"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:"Learning Strategy Name"})})}),c.jsx(S.TableCell,{align:"center",width:r?"30%":"20%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="timesUsed",direction:g==="timesUsed"?u:"asc",onClick:()=>x("timesUsed"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center justify-content-center",children:"Times Used"})})}),c.jsx(S.TableCell,{align:"left",width:r?"30%":"25%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.TableSortLabel,{active:g==="studentFeedBackAvg",direction:g==="studentFeedBackAvg"?u:"asc",onClick:()=>x("studentFeedBackAvg"),hideSortIcon:r,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:o("student_feedback")})})}),!r&&c.jsx(S.TableCell,{align:"left",width:"18%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:o("action")})})]})})}),c.jsx(S.Grid,{className:`${b.styles["table-body-container"]}`,children:c.jsx(S.Table,{children:c.jsx(S.TableBody,{className:`${b.styles["table-body"]}`,children:v?.map(A=>c.jsxs(S.TableRow,{className:`${b.styles["table-row"]}`,children:[c.jsx(S.TableCell,{align:"left",height:52,style:{width:r?"40%":"37%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-start h-100",children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:A.learningStrategyName})})}),c.jsx(S.TableCell,{align:"center",height:52,style:{width:r?"30%":"20%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100 justify-content-center",children:A.timesUsed})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:r?"30%":"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100",children:A.studentFeedBackAvg===0?"Not done yet":c.jsxs(c.Fragment,{children:[A.studentFeedBackAvg," ",c.jsx("span",{className:`${b.styles["tail-average"]}`,children:" / 10"})]})})}),!r&&c.jsx(S.TableCell,{align:"left",height:52,style:{width:"18%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-start h-100",children:c.jsxs(S.Grid,{onClick:()=>s&&s(A.learningStrategyId),className:`d-flex align-items-center ${b.styles["view-response-action"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:"View Students"}),c.jsx(ao.ArrowForwardIcon,{})]})})})]},A.learningStrategyId))})})})]})},zm=a=>{const[s,r]=N.useState({sortBy:"grade",sortOrder:"DESC"}),o=N.useCallback(h=>{r(g=>({sortBy:h,sortOrder:g.sortBy===h&&g.sortOrder==="ASC"?"DESC":"ASC"}))},[]);return{sortedStudents:N.useMemo(()=>a?s.sortBy?[...a].sort((h,g)=>{const{sortBy:y,sortOrder:x}=s;let v=h[y]??"",A=g[y]??"";if(y==="grade"){const D=parseInt(String(v).replace(/\D/g,""),10),L=parseInt(String(A).replace(/\D/g,""),10);!isNaN(D)&&!isNaN(L)&&(v=D,A=L)}return typeof v=="number"&&typeof A=="number"?x==="ASC"?v-A:A-v:v<A?x==="ASC"?-1:1:v>A?x==="ASC"?1:-1:0}):a:[],[a,s]),sortConfig:s,handleSort:o,setSortConfig:r}},Gm=J.getStaticFileUrl("/images/image-default.png");function Um({students:a,openPopoverListStudent:s,handleCloseListStudentModal:r,handleViewDetailNote:o}){const{t:u}=J.useTranslation(),{getLabel:h,system:g}=J.useGradeLabel(),{sortedStudents:y,sortConfig:x,handleSort:v,setSortConfig:A}=zm(a);N.useEffect(()=>{s||A({sortBy:"grade",sortOrder:"DESC"})},[s]);const D=(L,O)=>L?O==="ASC"?c.jsx(dc.ArrowUpwardIcon,{style:{width:16,height:16,marginLeft:4}}):c.jsx(dc.ArrowDownwardIcon,{style:{width:16,height:16,marginLeft:4}}):null;return c.jsx(oo.SimpleDialog,{open:s,onClose:r,scroll:"body",maxWidth:"md",isHiddenIconClose:!0,children:c.jsxs("div",{className:`${b.styles["metric-modal"]} position-relative`,children:[c.jsxs("div",{className:`d-flex justify-content-between align-items-center ${b.styles["metric-modal__title-missed-conversation"]}`,children:[c.jsx("div",{className:b.styles["quality-feedback-title"],children:u("quality_feedback")}),c.jsx("span",{className:b.styles["modal-close-icon"],onClick:r,children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 54 54",fill:"none",children:c.jsx("path",{d:"M49 7L28 28M28 28L49 49M28 28L7 7M28 28L7 49",stroke:"#9E9E9E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),c.jsx("div",{className:b.styles["metric-modal__body"],children:c.jsxs(S.Grid,{className:`${b.styles["table-container"]}`,children:[c.jsx(S.Table,{"aria-label":"simple table",children:c.jsx(S.TableHead,{className:`${b.styles["table-head"]}`,children:c.jsxs(S.TableRow,{children:[c.jsx(S.TableCell,{align:"left",width:"30%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("studentUserName"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[u("student"),D(x?.sortBy==="studentUserName",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"center",width:"20%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("grade"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center justify-content-start",children:[g==="UK"?"Year":u("grade"),D(x?.sortBy==="grade",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"left",width:"25%",className:`${b.styles["header-cell"]}`,onClick:()=>v?.("average"),style:{cursor:"pointer"},children:c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[u("student_feedback"),D(x?.sortBy==="average",x?.sortOrder||"ASC")]})}),c.jsx(S.TableCell,{align:"left",width:"25%",className:`${b.styles["header-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center",children:u("action")})})]})})}),c.jsx(S.Grid,{className:`${b.styles["table-body-container"]}`,children:c.jsx(S.Table,{children:c.jsx(S.TableBody,{className:`${b.styles["table-body"]}`,children:y!=null&&y.length>0?y.map((L,O)=>c.jsxs(S.TableRow,{className:`${b.styles["table-row"]} ${b.styles["quality-feedback-row"]}`,children:[c.jsx(S.TableCell,{align:"left",height:52,style:{width:"30%"},className:`${b.styles["body-cell"]}`,children:c.jsxs(S.Grid,{className:"d-flex align-items-center h-100",children:[c.jsx("img",{src:L.avatarStudent?J.getFileUrl(L.avatarStudent):Gm,alt:"",className:`${b.styles.avatar_user} ${b.styles["quality-feedback-avatar"]}`}),L.studentUserName]})}),c.jsx(S.TableCell,{align:"center",height:52,style:{width:"20%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100 justify-content-start",children:h(L.grade)})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-items-center h-100",children:L.average===0?"Not done yet":c.jsxs(c.Fragment,{children:[L.average," ",c.jsx("span",{className:`${b.styles["tail-average"]}`,children:"/ 10"})]})})}),c.jsx(S.TableCell,{align:"left",height:52,style:{width:"25%"},className:`${b.styles["body-cell"]}`,children:c.jsx(S.Grid,{className:"d-flex align-center h-100",children:c.jsxs(S.Grid,{className:`d-flex align-items-center ${b.styles["view-response-action"]}`,onClick:()=>o(L),children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:u("view_1_1_note")}),c.jsx(ao.ArrowForwardIcon,{})]})})})]},O)):c.jsx(S.TableRow,{children:c.jsx(S.TableCell,{colSpan:4,align:"center",children:u("no_data")})})})})})]})})]})})}const qm=({learningStrategies:a,classFontSize:s,print:r,loadingComplete:o,students:u,openQualityFeedbackModal:h,handleOpenQualityFeedbackModal:g,handleCloseQualityFeedbackModal:y,handleViewDetailNote:x})=>{const{t:v}=J.useTranslation(),D=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<576;return c.jsxs(S.Grid,{children:[!r&&c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:v("the_data_presented_here_comes_from_the_1_1_conversations")})]}),c.jsx(S.Grid,{className:`${b.styles["box-strategy"]} ${b.styles[s]}`,style:r?{flexDirection:"column"}:{},children:c.jsxs(S.Grid,{className:`${b.styles["strategy-bar-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["block-header-chart"]}`,children:c.jsxs(S.Grid,{className:`${b.styles["block-header-name"]}`,children:[c.jsx("p",{className:`${b.styles["title-chart"]}`,children:v("learning_strategies_usage_feedback")}),!r&&c.jsx("p",{className:`${b.styles["description-chart"]}`,children:v("overview_of_learning_strategies_with_usage_stats_and_feedback")})]})}),c.jsx(S.Grid,{className:"w-100 h-100",children:c.jsx(S.Grid,{style:{marginLeft:D?-410:0},children:o?c.jsx(Dc,{learningStrategies:a,handleOpenQualityFeedbackModal:g}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})})})]})}),c.jsx(Um,{students:u,openPopoverListStudent:h,handleCloseListStudentModal:y,handleViewDetailNote:x})]})},Ym=({handleRedirectAllAnswer:a,summarizeQuestions:s,goToSession:r,handleChangeQuestionFilter:o,questionFilters:u,loadingComplete:h=!0})=>{const{t:g}=J.useTranslation();return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:g("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsxs(S.Grid,{className:`${b.styles["plp-box-chart"]} ${b.styles["box-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["title-chart"]}`,children:g("open_field_questions")}),c.jsx(S.Typography,{className:b.styles["description-chart-distribution-stress"],children:g("these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above")}),c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[c.jsxs(S.Grid,{className:"d-flex align-items-center",children:[c.jsxs(S.Typography,{className:`${b.styles["total-text"]}`,children:[g("total_responses"),":"]}),h?c.jsx(S.Typography,{className:`${b.styles["total-value"]}`,children:s?.totalItems??0}):c.jsx(Dn.Loading,{size:24})]}),c.jsxs(S.Grid,{onClick:()=>h&&a(),className:`d-flex align-items-center ${b.styles["view-response-action"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["action-text"]}`,children:g("view_all_responses")}),c.jsx(ao.ArrowForwardIcon,{})]})]}),h?c.jsx(Dm.LastAnswerTable,{items:s?.items||[],onOder:o,filter:u,goToSession:r}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})]})]})},Vm=J.getStaticFileUrl("/images/image-default.png"),Qm=({students:a,openPopoverListStudent:s,handleCloseListStudentModal:r})=>{const{t:o}=J.useTranslation(),{getLabel:u,system:h}=J.useGradeLabel();return c.jsx(oo.SimpleDialog,{open:s,onClose:r,scroll:"body",maxWidth:"md",children:c.jsxs("div",{className:b.styles["metric-modal"],children:[c.jsxs("div",{className:b.styles["metric-modal__title-missed-conversation"],children:[o("students_missing_a_conversation")," (",a?.length,")"]}),c.jsxs("div",{className:b.styles["metric-modal__body"],children:[c.jsxs("div",{className:b.styles["metric-modal__body--header"],children:[c.jsx("div",{className:`${b.styles.item} ${b.styles["not-grade"]}`,children:o("student")}),c.jsx("div",{className:`${b.styles.item} ${b.styles.grade}`,style:{maxWidth:"20%"},children:h==="UK"?"Year":o("grade")})]}),c.jsx("div",{className:b.styles["metric-modal__body--content"],children:a?.length&&a.map(g=>c.jsxs("div",{className:b.styles.item,children:[c.jsxs("div",{className:`${b.styles.item__data} ${b.styles["item__not-grade"]} ${b.styles["item__student-information"]}`,children:[c.jsx("img",{src:g?.studentProfileImage?J.getFileUrl(g?.studentProfileImage):Vm,alt:g?.studentName}),g?.studentName]}),c.jsx("div",{className:`${b.styles.item__data} ${b.styles.item__grade}`,style:{maxWidth:"20%"},children:u(g?.grade)})]},g?.studentId))})]})]})})},Xm=({open:a,onClose:s,filterStartDate:r,filterEndDate:o})=>{const{teachers:u,teacherDefault:h,getTeachersData:g,setSelectTeacherUserId:y,setSelected:x,educatorsData:v,loading:A,pagination:D,changeFilters:L,educatorTarget:O,filter:W,handleFilterMonth:Z,handleFilterStatus:K}=Tm.useEducatorConversationTarget(r,o);return c.jsx(oo.SimpleDialog,{open:a,onClose:s,scroll:"body",maxWidth:"lg",isHiddenIconClose:!0,children:c.jsx(ri.TeacherConversations,{educators:v,teachers:u,teacherDefault:h,getTeachersData:g,setSelectTeacherUserId:y,setSelected:x,loading:A,pagination:D,changeFilters:L,onClose:s,educatorTarget:O,filterStartDate:r,filterEndDate:o,filter:W,handleFilterMonth:Z,handleFilterStatus:K})})},$m=({conversationKpi:a,loadingComplete:s=!0,filterStartDate:r,filterEndDate:o})=>{const{t:u}=J.useTranslation(),[h,g]=N.useState(!1),[y,x]=N.useState(!1);return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:u("the_data_presented_here_comes_from_the_conversations_logs")})]}),c.jsxs(S.Grid,{className:`${b.styles["conversation-list-card"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("average_student_review")}),c.jsx("img",{src:"/images/star-icon.png",alt:""})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item-content"]}`,children:[s?c.jsx(S.Typography,{className:`${b.styles["card-item-score"]}`,children:a.avgStudentReview}):c.jsx(Dn.Loading,{size:24}),c.jsx(S.Typography,{className:`${b.styles["rating-scale"]}`,children:"/10"})]})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("monthly_conversation_target")}),c.jsx("img",{src:"/images/target-icon.png",alt:""})]}),c.jsx(S.Grid,{className:`${b.styles["card-item-content"]}`,children:s?c.jsxs(N.Fragment,{children:[c.jsx(S.Typography,{className:`${b.styles["card-item-score"]}`,children:a.conversationTeacherAvg}),c.jsx(S.Typography,{className:`${b.styles["rating-scale"]}`,children:`/${a.conversationTarget}`})]}):c.jsx(Dn.Loading,{size:24})}),a?.educatorConversationsTarget?.length>0&&s&&c.jsxs("button",{type:"button",className:`${b.styles["card-item__view-list"]}`,onClick:()=>x(!0),children:[u("view_list"),c.jsx(fc.ArrowRightIcon,{})]})]}),c.jsxs(S.Grid,{className:`${b.styles["card-item"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["card-item-header"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["card-item-title"]}`,children:u("students_missing_a_conversation")}),c.jsx("img",{src:"/images/conversation-icon.png",alt:""})]}),c.jsx(S.Grid,{className:`${b.styles["card-item-content"]}`,children:c.jsxs("div",{className:`${b.styles["card-item-score"]}`,children:[s?c.jsx("span",{className:`${b.styles["card-item-score__kpi"]}`,children:a.sessionReviewSkipped}):c.jsx(Dn.Loading,{size:24}),c.jsx("span",{className:`${b.styles["card-item-score__student"]}`,children:u("students")}),!!a?.sessionReviewSkipped&&s&&c.jsxs("button",{type:"button",className:`${b.styles["card-item-score__view-list"]}`,onClick:()=>g(!0),children:[u("view_list"),c.jsx(fc.ArrowRightIcon,{})]})]})})]})]}),c.jsx(Qm,{students:a.missedReviewStudents,openPopoverListStudent:h,handleCloseListStudentModal:()=>g(!1)}),c.jsx(Xm,{onClose:()=>x(!1),open:y,filterStartDate:r,filterEndDate:o})]})};function Km(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Jm=N.memo($m,Km),Zm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/MAAAFECAYAAABrrG5HAAAqBklEQVR4Ae3dbWycZ3of+ntennkjKZJ68a4cJ147aRzbZ0/XZhBA8eJESY2co+06H1IoHxrgADnF0TnAOemXfi2QKdAPa6DbAgmKoptuExRtgWjTRdebKgi8tdSuq40Bys524XWj3Vh21rZkSdYbJXI4HM507hFHO6KoF1Iczjwzvx8gc8jhDGcea6j5P9d1X3cmAACsU21Vs/HjN7/yUe7qcjHbmFrIxM/r9ULn6yuzl7Pd721cDrnu5dXcjy93tWqNTEhKmbBZK7VWppRv9X4pU09a2dxK89bny4VW7tP1zufJ5dnOx+yNy6387EQrvzDVmi4uN6fOPto6+DuhWc1UmwEARsTm/2EFAFIpBvQYzj8p1HONyzcyzYnZTAzlq+cK2dV8K9cqrGS2HLxTJJNrNHOrYTVezs+G1XgSIJ4AKOU/3eyG/xPVaiMAwBAT5gFgFFSr2ervhPBvf++TpNY4l10uhtzqak9IX81nA5uzUmtls+VmrpFZzeXqzeJyWI2B/7FLe1ZPhNBsH3OVfgAGRpgHgBSJ1fVbgf2xkKtfTBJhfUDaYT+f5Bux1b9UnGhUlournaCvqg/ADhDmAWAIrQ/ty9dCQWBPj+xqu5rfrugL+QD0izAPAAMWg/sf/uF7hRuLN/KNfMg1Vtr/HfF162NprZKfb4TVicpE4zPvf6Yh4AOwVd4oAMBOqlazP7P7k+Rq7lwiuNMb8KdXP73yw0+fa4Tf+NpqAID78OYBAPooVt3/1T97u6hVngcVp+3nFwuNSqO+8jPXnl1RvQdgI8I8AGyjbnhfzBeSlexiourOQ2tX75NmZUW4B6CXNxgA8DCq1exnHn+vcGPiRr52vlEU3um3WLkvZJZXJrO7V96buLGiLR9gPHnDAQCbNPcvjyRnw9lkKZSSRsgnAQYoTs4vtFZWfio/u3zq//nKSgBgLAjzAHAfsXX+8fdOFP7y7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qqEJXKAwOAtMWGiiFNKiTijoVIpFCo6YVSkY8fM46lUQ6OOVeHDoVL5/Lozkpm/fZsbsyvOMCscjUZDpdlZlTckXR8aUh7fSuaMbjClAgiulSNQEYPDaGiInFGRHe7sNOdN03Lyw9JfeKEcRof37LH+gsozpRJ//RuiiWvv07HsnwAAAABJRU5ErkJggg==",tv=({studentPressure:a,changeLanguage:s,width:r,print:o,handleHoverTooltip:u,loadingComplete:h=!0})=>{const g=N.useRef(null);let y=window.innerWidth;const x=y>=576&&y<1024,{t:v}=J.useTranslation();y<576?y=window.innerWidth-20:x?y=window.innerWidth-80:y=window.innerWidth-340,r&&(y=r);const A=y,D=A<576,L=D?A/1.5:A/3.12,O=["#C44140","#81C935","#0F9655","#FFB04F","#C44140"],W=[{label:"unmotivated",value:a.boreOutStudent,tooltip:"not_enough_challenge_leading_to_boredom_and_lack_of_interest"},{label:"comfort",value:a.comfortStudent,tooltip:"calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best"},{label:"stretch",value:a.stretchStudent,tooltip:"manageable_levels_of_stress_allowing_me_to_perform_at_my_best"},{label:"strain",value:a.strainStudent,tooltip:"still_in_control_but_starting_to_feel_the_pressure"},{label:"overwhelmed",value:a.burnoutStudent,tooltip:"too_much_pressure_and_really_struggling_to_manage_my_workload"}],Z=["low","moderate","high","very_high"],[K,U]=N.useState(""),[te,q]=N.useState(""),[ie,We]=N.useState(0),[le,Se]=N.useState(0),[ge,de]=N.useState([]),[Ge,ct]=N.useState(""),Ee=(p,ye,re,ce,Ke)=>{de(Array.from(new Set(p))),We(D&&ce==W[W.length-1].label?ye-45:ye),Se(re),U(ce),ct(Ke),u&&u(v(E.studentStressByZone))},se=(p,ye,re,ce)=>{U(ce),q(re),We(D&&ce==W[W.length-1].label?p-15:p),Se(ye)},ut=()=>{U(""),q("")},nt=()=>{U("")};N.useEffect(()=>{const p=g.current;if(p){const ye=async()=>{const re=document.createElementNS("http://www.w3.org/2000/svg","style");re.textContent=`
|
|
6
6
|
text {
|
|
7
7
|
font-size: 12px;
|
|
8
8
|
}
|
|
@@ -21,20 +21,20 @@ ${Vn},${ze},${et},${Qe},${Pt}`}).join("");return`${E.CSV_PREFIX}${st}${encodeURI
|
|
|
21
21
|
border-right: 5px solid transparent;
|
|
22
22
|
border-top: 5px solid #242424CC;
|
|
23
23
|
}
|
|
24
|
-
`,p.appendChild(ie);const ce=document.createElementNS("http://www.w3.org/2000/svg","line");ce.setAttribute("x1","50"),ce.setAttribute("y1",`${L}`),ce.setAttribute("x2",`${A-30}`),ce.setAttribute("y2",`${L}`),ce.setAttribute("stroke","#D3D3D3"),p.appendChild(ce);const Ke=document.createElementNS("http://www.w3.org/2000/svg","line");Ke.setAttribute("x1","50"),Ke.setAttribute("y1","50"),Ke.setAttribute("x2","50"),Ke.setAttribute("y2",`${L}`),Ke.setAttribute("stroke","#D3D3D3"),p.appendChild(Ke);const Le=(A-60)/3;for(let G=0;G<Z.length;G++){const Y=v(Z[G]),ne=document.createElementNS("http://www.w3.org/2000/svg","text");ne.setAttribute("x",`${Le*G||50}`),ne.setAttribute("y",`${L+20}`),ne.setAttribute("fill","#D3D3D3"),ne.textContent=Y,p.appendChild(ne)}const gt=document.createElementNS("http://www.w3.org/2000/svg","text");gt.setAttribute("x","15"),gt.setAttribute("y","60"),gt.setAttribute("fill","#D3D3D3"),gt.textContent=v("high"),p.appendChild(gt);const Je=document.createElementNS("http://www.w3.org/2000/svg","text");Je.setAttribute("x","15"),Je.setAttribute("y",`${L}`),Je.setAttribute("fill","#D3D3D3"),Je.textContent=v("low"),p.appendChild(Je);const Tt=document.createElementNS("http://www.w3.org/2000/svg","text");Tt.setAttribute("x","40"),Tt.setAttribute("y",`${(L+100)/2}`),Tt.setAttribute("transform",`rotate(-90, 40, ${(L+100)/2})`),Tt.setAttribute("fill","#242424"),Tt.setAttribute("font-weight","bold"),Tt.textContent=v("performance"),p.appendChild(Tt);const je=document.createElementNS("http://www.w3.org/2000/svg","image");je.setAttribute("x","50"),je.setAttribute("y","50"),je.setAttribute("width",`${A-80}`),je.setAttribute("height",`${L-50}`),je.setAttributeNS("http://www.w3.org/1999/xlink","href",D?ev:Zm),p.appendChild(je);const P=5,B=50,k=(A-B)/(P+1),Ae=D?L-24:L-30,fe=k+B;for(let G=1;G<=W.length;G++){let Y=k*G+B;const ne=D?12:15;switch(G){case 2:Y=Y+.07*fe;break;case 3:Y=Y+.15*fe;break;case 4:Y=Y+.1*fe;break}if(D&&(Y=Y-15),x)switch(G){case 2:Y=Y-.06*fe;break;case 3:Y=Y-.15*fe;break;case 4:Y=Y-.08*fe;break}const H=document.createElementNS("http://www.w3.org/2000/svg","circle");H.setAttribute("cx",`${Y}`),H.setAttribute("cy",`${Ae}`),H.setAttribute("r",`${ne}`),H.setAttribute("fill",O[G-1]),H.style.cursor="pointer",H.addEventListener("mouseenter",()=>{Ee(W[G-1]?.value,Y,Ae,W[G-1]?.label,O[G-1])});const pe=W[G-1]?.value.length*20+30>L-100-(D?69:0);pe&&H.addEventListener("click",nt),p.appendChild(H);const se=document.createElementNS("http://www.w3.org/2000/svg","text");se.setAttribute("x",`${Y}`),se.setAttribute("y",`${Ae}`),se.setAttribute("fill","white"),se.setAttribute("font-weight","bold"),se.setAttribute("text-anchor","middle"),se.setAttribute("dominant-baseline","middle"),se.setAttribute("style","cursor: default"),se.textContent=W[G-1]?.value?.length?.toString(),se.style.cursor="pointer",se.addEventListener("mouseenter",()=>{Ee(W[G-1]?.value,Y,Ae,W[G-1]?.label,O[G-1])}),pe&&se.addEventListener("click",nt),p.appendChild(se);const Ne=v(W[G-1]?.label).toUpperCase(),pt=v(W[G-1]?.tooltip),ke=document.createElementNS("http://www.w3.org/2000/svg","foreignObject"),Ft=document.createElementNS("http://www.w3.org/2000/svg","svg");Ft.innerHTML='<rect width="256" height="256" fill="none"></rect><circle cx="128" cy="128" r="96" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><polyline fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16" points="120 120 128 120 128 176 136 176"></polyline><circle cx="128" cy="84" r="12"></circle>',Ft.setAttribute("width","16"),Ft.setAttribute("height","16"),Ft.setAttribute("viewBox","0 0 256 256"),ke.setAttribute("width","16"),ke.setAttribute("height","20"),ke.style.cursor="pointer",ke.classList.add("info-stress-icon"),ke.appendChild(Ft);const Ue=document.createElementNS("http://www.w3.org/2000/svg","text");Ue.setAttribute("x",`${Y}`),Ue.setAttribute("y",`${Ae-ne-12}`),Ue.setAttribute("fill","#242424"),Ue.setAttribute("font-weight","bold"),Ue.setAttribute("text-anchor",D?"start":"middle"),D&&(Ue.style.fontSize="9px",Ue.setAttribute("transform",`rotate(-90 ${Y+5} ${Ae-ne-10})`)),Ue.textContent=Ne,p.appendChild(Ue);const nn=D?Y-8:Y+8+Ue?.getBoundingClientRect()?.width/2,rn=D?Ae-ne-32-Ue?.getBoundingClientRect()?.height:Ae-ne-20-Ue?.getBoundingClientRect()?.height/2;ke.setAttribute("x",`${nn}`),ke.setAttribute("y",`${rn}`),ke.addEventListener("mouseenter",()=>oe(nn,rn+4,pt,Ne)),ke.addEventListener("mouseleave",dt),o||p.appendChild(ke)}};try{for(;p.firstChild;)p.firstChild.remove();ye()}catch(ie){console.log("err: ",ie)}}},[A,L,JSON.stringify(a),s,h]);const at=64,Oe=ge.length*20,Te=Oe+30>L-100-(D?at:0),Be=Te?L-100-(D?at:0):Oe+30,ve=64,z=N.useRef(null);return N.useEffect(()=>{const p=ye=>{z.current&&!z.current?.contains(ye.target)&&nt()};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]),h?c.jsx("svg",{ref:g,width:A,height:L+50,children:!!K&&c.jsxs("g",{ref:z,transform:`translate(${te?re-81:re-100},${Math.max(0,te?le-ve-30:D?le-Oe-100-at:le-Oe-100)})`,children:[c.jsx("rect",{width:te?162:200,height:te?ve+10:Be+10,fill:"rgba(36, 36, 36, 0.8)",rx:"5"}),c.jsx("text",{x:"20",y:"20",fill:"#fff",fontSize:"12px",textAnchor:"start",children:!te&&`${ge.length} students are ${K}`}),!!te&&c.jsx("foreignObject",{x:"0",y:"10",width:te?162:200,height:ve,children:c.jsx("div",{style:{padding:"0px 5px 5px 10px",color:"#fff",fontSize:"12px"},children:te})}),!te&&c.jsx("foreignObject",{x:"0",y:"30",width:"200",height:Be,children:c.jsx("div",{style:{overflowY:"auto",maxHeight:`${Te?Be-30:Be-20}px`,padding:"5px 5px 5px 10px",color:"#fff",fontSize:"12px"},children:ge.map((p,ye)=>c.jsxs("div",{children:[c.jsx("span",{style:{display:"inline-block",width:"4px",height:"14px",backgroundColor:Ge,borderRadius:"10px",marginRight:"10px"}}),c.jsx("span",{children:p})]},ye))})}),c.jsx("foreignObject",{y:te?ve+10:Math.min(Oe+40,Be+10),x:te?D&&K===W[W.length-1].label?99:84:D&&K==="OVERWHELMED"?139:94,width:10,height:10,children:c.jsx("div",{className:"tooltip-chart"})})]})}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})};function nv(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Tc=N.memo(tv,nv),rv=({studentSkillQuestion:a,classFontSize:s,safetyData:r,stressData:o,monthsOneToOne:u,dayOfWeekOneToOne:h,handleHoverTooltip:g,avgQuestionLastMonth:y,studentPressure:x,timeOfDay:v,metricWeeks:A,lowMetricStudents:D,metricDataMonths:L,metricDataWeeks:O,metricMonths:W,studentMetricPercent:Z,stressValue:K,safetyValue:U,loadingComplete:te,onBeforeViewCheckIn:q})=>{const{t:re}=J.useTranslation(),We=tn.useSelector(de=>de.common.menuBar),le=N.useRef(null),[Se,ge]=N.useState(0);return N.useEffect(()=>{const de=()=>{le.current&&ge(le.current.offsetWidth)};return window.addEventListener("resize",de),de(),()=>{window.removeEventListener("resize",de)}},[We]),c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:re("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsxs(S.Grid,{className:`${b.styles["partition-chart"]} ${b.styles["space-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,colors:["#0F9655"],name:E.averageSafetyName,typeChart:"area",activeColumn:[!0],series:r,months:u,dayOfWeek:h,avgQuestionLastMonth:y,studentCount:a.studentSafetyQuestionCount,studentPercentage:a.studentPercentageUnsafe,responseStudent:a.responseStudentSafety,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,skillClass:"full-width",stressValue:U,loadingComplete:te.dataOverview&&te.skillQuestion,onBeforeViewCheckIn:q})}),c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,min:-100,colors:["#C44140"],name:E.averageStressName,typeChart:"area",activeColumn:[!0],series:o,months:u,dayOfWeek:h,avgQuestionLastMonth:y,studentCount:a.studentStressQuestionCount,studentPercentage:a.studentPercentageStress,responseStudent:a.responseStudentStress,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,skillClass:"full-width",stressValue:K,loadingComplete:te.dataOverview&&te.skillQuestion,onBeforeViewCheckIn:q})})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,colors:["#C4D4F3"],name:E.lowMetricName,description:E.lowMetricDescription,typeChart:"bar",weeks:A,activeColumn:[!0],series:[{name:"",data:L}],weeklySeries:[{name:"",data:O}],months:W,dayOfWeek:h,avgQuestionLastMonth:y,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,lowMetricStudents:D,studentMetricPercent:Z,loadingComplete:te.dataMetric,onBeforeViewCheckIn:q})}),c.jsxs(S.Grid,{className:`${b.styles["plp-box-chart"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["header-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["title-chart"]}`,children:re("student_stress_by_zone")}),c.jsx("div",{className:b.styles["description-chart-distribution-stress"],dangerouslySetInnerHTML:{__html:re("the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in")}})]}),c.jsx(S.Grid,{ref:le,className:`${b.styles["box-chart-pressure"]}`,style:{padding:0},children:c.jsx(Tc,{width:Se,studentPressure:x,changeLanguage:re("student_stress_by_zone"),handleHoverTooltip:g,loadingComplete:te.dataStudentPressure})})]})]})};function iv(a,s){return JSON.stringify(a)===JSON.stringify(s)}const sv=N.memo(rv,iv),av=({data:a,print:s,disableSeriesName:r,hiddenRightLegend:o,hiddenDescription:u,handleHoverTooltip:h,name:g,loadingComplete:y=!0})=>{const{t:x}=J.useTranslation();if(!a)return c.jsx("div",{className:"flex justify-content-center align-items-center",style:{height:450},children:c.jsx("div",{children:x("no_data")})});const v=Cn.seriesNameBubbleChartCustom(a);return c.jsxs("div",{className:`${Dt.styles["size-100"]}`,children:[!s&&c.jsxs(N.Fragment,{children:[c.jsxs("div",{className:`${Dt.styles["header-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${Dt.styles["title-chart"]}`,children:x("student_distribution")}),c.jsx(S.Typography,{className:`${Dt.styles["header-chart-description"]}`,children:x("this_is_the_student_score_from_their_last_check_in")})]}),!u&&c.jsx("div",{className:Dt.styles["description-chart-distribution-stress"],dangerouslySetInnerHTML:{__html:x("the_data_presented_in_this_chart_reflects_the_average_from_the_student_check_ins")}})]}),c.jsx("div",{className:`${Dt.styles["bubble-chart-custom"]}`,children:y?c.jsxs("div",{className:Dt.styles["chart-custom"],children:[!o&&c.jsx("div",{className:`${Dt.styles["list-percent"]} ${r&&Dt.styles["percent-survey"]}`,children:E.PERCENT.map((A,D)=>c.jsxs("div",{className:`${Dt.styles["percent-item"]}`,children:[A,"%"]},D))}),c.jsx("div",{className:Dt.styles["legend-wrap"],children:!r&&v.map((A,D)=>c.jsxs("div",{className:`${Dt.styles.item}`,children:[c.jsx("div",{className:`${Dt.styles["mark-custom"]}`,style:{backgroundColor:E.COLOR_CHART_BUBBLE[D]}}),c.jsx("label",{className:`${Dt.styles["label-legend-custom"]}`,children:x(A.toLocaleLowerCase())})]},D))}),c.jsx("div",{className:Dt.styles["chart-buddle"],children:c.jsx("div",{id:"chart_bubble_custom",children:c.jsx(Lm,{options:Cn.readinesToLearnoptions(v,a,h,g),type:"scatter",series:Cn.convertDataToSeriesBullderChart(a),width:"100%",height:250})})})]}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})})]})};function ov(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Lc=N.memo(av,ov),lv=({dataReadinessOfChart:a,handleHoverTooltip:s,classFontSize:r,dataOverallReadyToLearn:o,dayOfWeekOneToOne:u,monthsOneToOne:h,avgQuestionLastMonth:g,preparednessData:y,preparednessWeeklyData:x,weeksOneToOne:v,setOptionDate:A,activeColumn:D,onActiveColumn:L,timeOfDay:O,loadingComplete:W,onBeforeViewCheckIn:Z})=>{const{t:K}=J.useTranslation(),U=["Energy","Happiness","Focus"],te=[...a].sort((q,re)=>U.indexOf(hc.removeHTMLTags(q.questionText))-U.indexOf(hc.removeHTMLTags(re.questionText)));return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:K("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GenerateTrendQuestion,{avgQuestionLastMonth:g,series:y,timeOfDay:O,icons:["home/energy.png","home/focus.png","home/happiness.png"],trendLabels:["Feeling Okay","Generally focused","More positives than negatives"],className:"trend-item-icon-large",loadingComplete:W.dataOverview})}),c.jsxs(S.Grid,{className:`${b.styles["partition-chart"]} ${b.styles["space-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]} ${b.styles["partition-chart-item-1"]}`,children:c.jsx(yt.GeneratePlpChart,{colors:["#D9EEE4","#FAF0F0"],name:E.overallReadinessToLearnName,typeChart:"donut",months:[],activeColumn:[!0,!0],avgQuestionLastMonth:o.overViewQuestionLastMonth,studentCount:o?.studentNotReadyToLearn?.length||void 0,responseStudent:o?.studentNotReadyToLearn,series:o.resultQuestion,classFontSize:r,handleHoverTooltip:s,kpiClassName:"column-reverse",loadingComplete:W.dataChart,onBeforeViewCheckIn:Z})}),c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]} ${b.styles["partition-chart-item-2"]}`,children:c.jsx(yt.GeneratePlpChart,{colors:["#169490","#316CD9","#FFB04F"],name:E.readinessTrendName,typeChart:"area",activeColumn:D||[!0,!0,!0],onActiveColumn:L,series:y,months:h,dayOfWeek:u,avgQuestionLastMonth:g,classFontSize:r,handleHoverTooltip:s,weeks:v,weeklySeries:x,noGradient:!0,setOptionDate:A,noAvgTotal:!0,loadingComplete:W.dataOverview,onBeforeViewCheckIn:Z})})]}),c.jsx(S.Grid,{className:`${b.styles["plp-box-chart"]} ${b.styles["distribution-chart"]}`,children:c.jsx(Lc,{data:te,handleHoverTooltip:s,hiddenRightLegend:!0,hiddenDescription:!0,loadingComplete:W.dataDistribution})})]})},cv=({successIndicatorsData:a,avgQuestionLastMonth:s,dayOfWeekOneToOne:r,monthsOneToOne:o,timeOfDay:u,classFontSize:h,handleHoverTooltip:g,successIndicatorWeeklyData:y,weeksOneToOne:x,activeColumn:v,onActiveColumn:A,loadingComplete:D,onBeforeViewCheckIn:L})=>{const{t:O}=J.useTranslation();return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:O("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GenerateTrendQuestion,{avgQuestionLastMonth:s,series:a,timeOfDay:u,icons:["well-being-icon.png","growth-icon.png","relationship-icon.png","personal-icon-quests.svg","academic-icon.png","self-efficacy-icon.png"],trendLabels:["Generally okay","Good growth overall","All key relationships are positive","Meeting some deadlines","On target in most areas","Lacking some self-belief"],noAvgText:!0,loadingComplete:D.dataOverview})}),c.jsx(yt.GeneratePlpChart,{colors:["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"],name:O("success_indicators"),typeChart:"area",activeColumn:v,onActiveColumn:A,series:a,weeklySeries:y,months:o,dayOfWeek:r,avgQuestionLastMonth:s,timeOfDay:u,classFontSize:h,handleHoverTooltip:g,weeks:x,noGradient:!0,noAvgTotal:!0,loadingComplete:D.dataOverview,onBeforeViewCheckIn:L})]})},uv=()=>{const a=tn.useDispatch(),r=window.location.hostname.includes("iskenya"),o=tn.useSelector(D=>D?.common?.user?.schoolName)||"",u=async D=>{a(J.setLoading(!0));try{const O=(await ht.getSessionExportCsvApi(D)).data,W=h(O,D.startDate,D.endDate),Z=document.createElement("a");Z.href=W,Z.download=`${o}_CheckIns_Report.csv`,Z.click(),a(J.setAlert({type:"success",message:"Download Completed"}))}catch(L){a(J.setAlert({type:"danger",message:L.response?.data?.title||L.message}))}a(J.setLoading(!1))},h=(D,L,O)=>{let W="Student Name,ID/Email,Question,Answer,Teacher,Start Time";(L||O)&&(W=`"${tt(L).isValid()?"From: "+tt(L).format("DD/MM/YYYY"):""}${tt(L).isValid()&&tt(O).isValid()?" - ":""}${tt(O).isValid()?"To: "+tt(O).format("DD/MM/YYYY"):""}"
|
|
25
|
-
${W}`);const{questions:Z,strategyQuestions:K,sessions:U}=D,te=Z.filter(ge=>ge.type==Ja.QuestionType.Rating&&!!ge.isBeforeSession).slice(0,6),q=Z.filter(ge=>ge.type==Ja.QuestionType.Summarize&&!!ge.isBeforeSession),
|
|
24
|
+
`,p.appendChild(re);const ce=document.createElementNS("http://www.w3.org/2000/svg","line");ce.setAttribute("x1","50"),ce.setAttribute("y1",`${L}`),ce.setAttribute("x2",`${A-30}`),ce.setAttribute("y2",`${L}`),ce.setAttribute("stroke","#D3D3D3"),p.appendChild(ce);const Ke=document.createElementNS("http://www.w3.org/2000/svg","line");Ke.setAttribute("x1","50"),Ke.setAttribute("y1","50"),Ke.setAttribute("x2","50"),Ke.setAttribute("y2",`${L}`),Ke.setAttribute("stroke","#D3D3D3"),p.appendChild(Ke);const Le=(A-60)/3;for(let G=0;G<Z.length;G++){const Y=v(Z[G]),ne=document.createElementNS("http://www.w3.org/2000/svg","text");ne.setAttribute("x",`${Le*G||50}`),ne.setAttribute("y",`${L+20}`),ne.setAttribute("fill","#D3D3D3"),ne.textContent=Y,p.appendChild(ne)}const gt=document.createElementNS("http://www.w3.org/2000/svg","text");gt.setAttribute("x","15"),gt.setAttribute("y","60"),gt.setAttribute("fill","#D3D3D3"),gt.textContent=v("high"),p.appendChild(gt);const Je=document.createElementNS("http://www.w3.org/2000/svg","text");Je.setAttribute("x","15"),Je.setAttribute("y",`${L}`),Je.setAttribute("fill","#D3D3D3"),Je.textContent=v("low"),p.appendChild(Je);const Tt=document.createElementNS("http://www.w3.org/2000/svg","text");Tt.setAttribute("x","40"),Tt.setAttribute("y",`${(L+100)/2}`),Tt.setAttribute("transform",`rotate(-90, 40, ${(L+100)/2})`),Tt.setAttribute("fill","#242424"),Tt.setAttribute("font-weight","bold"),Tt.textContent=v("performance"),p.appendChild(Tt);const je=document.createElementNS("http://www.w3.org/2000/svg","image");je.setAttribute("x","50"),je.setAttribute("y","50"),je.setAttribute("width",`${A-80}`),je.setAttribute("height",`${L-50}`),je.setAttributeNS("http://www.w3.org/1999/xlink","href",D?ev:Zm),p.appendChild(je);const P=5,B=50,k=(A-B)/(P+1),Ae=D?L-24:L-30,fe=k+B;for(let G=1;G<=W.length;G++){let Y=k*G+B;const ne=D?12:15;switch(G){case 2:Y=Y+.07*fe;break;case 3:Y=Y+.15*fe;break;case 4:Y=Y+.1*fe;break}if(D&&(Y=Y-15),x)switch(G){case 2:Y=Y-.06*fe;break;case 3:Y=Y-.15*fe;break;case 4:Y=Y-.08*fe;break}const H=document.createElementNS("http://www.w3.org/2000/svg","circle");H.setAttribute("cx",`${Y}`),H.setAttribute("cy",`${Ae}`),H.setAttribute("r",`${ne}`),H.setAttribute("fill",O[G-1]),H.style.cursor="pointer",H.addEventListener("mouseenter",()=>{Ee(W[G-1]?.value,Y,Ae,W[G-1]?.label,O[G-1])});const pe=W[G-1]?.value.length*20+30>L-100-(D?69:0);pe&&H.addEventListener("click",nt),p.appendChild(H);const ae=document.createElementNS("http://www.w3.org/2000/svg","text");ae.setAttribute("x",`${Y}`),ae.setAttribute("y",`${Ae}`),ae.setAttribute("fill","white"),ae.setAttribute("font-weight","bold"),ae.setAttribute("text-anchor","middle"),ae.setAttribute("dominant-baseline","middle"),ae.setAttribute("style","cursor: default"),ae.textContent=W[G-1]?.value?.length?.toString(),ae.style.cursor="pointer",ae.addEventListener("mouseenter",()=>{Ee(W[G-1]?.value,Y,Ae,W[G-1]?.label,O[G-1])}),pe&&ae.addEventListener("click",nt),p.appendChild(ae);const Ne=v(W[G-1]?.label).toUpperCase(),pt=v(W[G-1]?.tooltip),ke=document.createElementNS("http://www.w3.org/2000/svg","foreignObject"),Rt=document.createElementNS("http://www.w3.org/2000/svg","svg");Rt.innerHTML='<rect width="256" height="256" fill="none"></rect><circle cx="128" cy="128" r="96" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><polyline fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="16" points="120 120 128 120 128 176 136 176"></polyline><circle cx="128" cy="84" r="12"></circle>',Rt.setAttribute("width","16"),Rt.setAttribute("height","16"),Rt.setAttribute("viewBox","0 0 256 256"),ke.setAttribute("width","16"),ke.setAttribute("height","20"),ke.style.cursor="pointer",ke.classList.add("info-stress-icon"),ke.appendChild(Rt);const Ue=document.createElementNS("http://www.w3.org/2000/svg","text");Ue.setAttribute("x",`${Y}`),Ue.setAttribute("y",`${Ae-ne-12}`),Ue.setAttribute("fill","#242424"),Ue.setAttribute("font-weight","bold"),Ue.setAttribute("text-anchor",D?"start":"middle"),D&&(Ue.style.fontSize="9px",Ue.setAttribute("transform",`rotate(-90 ${Y+5} ${Ae-ne-10})`)),Ue.textContent=Ne,p.appendChild(Ue);const nn=D?Y-8:Y+8+Ue?.getBoundingClientRect()?.width/2,rn=D?Ae-ne-32-Ue?.getBoundingClientRect()?.height:Ae-ne-20-Ue?.getBoundingClientRect()?.height/2;ke.setAttribute("x",`${nn}`),ke.setAttribute("y",`${rn}`),ke.addEventListener("mouseenter",()=>se(nn,rn+4,pt,Ne)),ke.addEventListener("mouseleave",ut),o||p.appendChild(ke)}};try{for(;p.firstChild;)p.firstChild.remove();ye()}catch(re){console.log("err: ",re)}}},[A,L,JSON.stringify(a),s,h]);const at=64,Oe=ge.length*20,Te=Oe+30>L-100-(D?at:0),Be=Te?L-100-(D?at:0):Oe+30,ve=64,z=N.useRef(null);return N.useEffect(()=>{const p=ye=>{z.current&&!z.current?.contains(ye.target)&&nt()};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[]),h?c.jsx("svg",{ref:g,width:A,height:L+50,children:!!K&&c.jsxs("g",{ref:z,transform:`translate(${te?ie-81:ie-100},${Math.max(0,te?le-ve-30:D?le-Oe-100-at:le-Oe-100)})`,children:[c.jsx("rect",{width:te?162:200,height:te?ve+10:Be+10,fill:"rgba(36, 36, 36, 0.8)",rx:"5"}),c.jsx("text",{x:"20",y:"20",fill:"#fff",fontSize:"12px",textAnchor:"start",children:!te&&`${ge.length} students are ${K}`}),!!te&&c.jsx("foreignObject",{x:"0",y:"10",width:te?162:200,height:ve,children:c.jsx("div",{style:{padding:"0px 5px 5px 10px",color:"#fff",fontSize:"12px"},children:te})}),!te&&c.jsx("foreignObject",{x:"0",y:"30",width:"200",height:Be,children:c.jsx("div",{style:{overflowY:"auto",maxHeight:`${Te?Be-30:Be-20}px`,padding:"5px 5px 5px 10px",color:"#fff",fontSize:"12px"},children:ge.map((p,ye)=>c.jsxs("div",{children:[c.jsx("span",{style:{display:"inline-block",width:"4px",height:"14px",backgroundColor:Ge,borderRadius:"10px",marginRight:"10px"}}),c.jsx("span",{children:p})]},ye))})}),c.jsx("foreignObject",{y:te?ve+10:Math.min(Oe+40,Be+10),x:te?D&&K===W[W.length-1].label?99:84:D&&K==="OVERWHELMED"?139:94,width:10,height:10,children:c.jsx("div",{className:"tooltip-chart"})})]})}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})};function nv(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Tc=N.memo(tv,nv),rv=({studentSkillQuestion:a,classFontSize:s,safetyData:r,stressData:o,monthsOneToOne:u,dayOfWeekOneToOne:h,handleHoverTooltip:g,avgQuestionLastMonth:y,studentPressure:x,timeOfDay:v,metricWeeks:A,lowMetricStudents:D,metricDataMonths:L,metricDataWeeks:O,metricMonths:W,studentMetricPercent:Z,stressValue:K,safetyValue:U,loadingComplete:te,onBeforeViewCheckIn:q})=>{const{t:ie}=J.useTranslation(),We=tn.useSelector(de=>de.common.menuBar),le=N.useRef(null),[Se,ge]=N.useState(0);return N.useEffect(()=>{const de=()=>{le.current&&ge(le.current.offsetWidth)};return window.addEventListener("resize",de),de(),()=>{window.removeEventListener("resize",de)}},[We]),c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:ie("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsxs(S.Grid,{className:`${b.styles["partition-chart"]} ${b.styles["space-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,colors:["#0F9655"],name:E.averageSafetyName,typeChart:"area",activeColumn:[!0],series:r,months:u,dayOfWeek:h,avgQuestionLastMonth:y,studentCount:a.studentSafetyQuestionCount,studentPercentage:a.studentPercentageUnsafe,responseStudent:a.responseStudentSafety,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,skillClass:"full-width",stressValue:U,loadingComplete:te.dataOverview&&te.skillQuestion,onBeforeViewCheckIn:q})}),c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,min:-100,colors:["#C44140"],name:E.averageStressName,typeChart:"area",activeColumn:[!0],series:o,months:u,dayOfWeek:h,avgQuestionLastMonth:y,studentCount:a.studentStressQuestionCount,studentPercentage:a.studentPercentageStress,responseStudent:a.responseStudentStress,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,skillClass:"full-width",stressValue:K,loadingComplete:te.dataOverview&&te.skillQuestion,onBeforeViewCheckIn:q})})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GeneratePlpChart,{hiddenKpi:!0,colors:["#C4D4F3"],name:E.lowMetricName,description:E.lowMetricDescription,typeChart:"bar",weeks:A,activeColumn:[!0],series:[{name:"",data:L}],weeklySeries:[{name:"",data:O}],months:W,dayOfWeek:h,avgQuestionLastMonth:y,classFontSize:s,handleHoverTooltip:g,timeOfDay:v,lowMetricStudents:D,studentMetricPercent:Z,loadingComplete:te.dataMetric,onBeforeViewCheckIn:q})}),c.jsxs(S.Grid,{className:`${b.styles["plp-box-chart"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["header-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${b.styles["title-chart"]}`,children:ie("student_stress_by_zone")}),c.jsx("div",{className:b.styles["description-chart-distribution-stress"],dangerouslySetInnerHTML:{__html:ie("the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in")}})]}),c.jsx(S.Grid,{ref:le,className:`${b.styles["box-chart-pressure"]}`,style:{padding:0},children:c.jsx(Tc,{width:Se,studentPressure:x,changeLanguage:ie("student_stress_by_zone"),handleHoverTooltip:g,loadingComplete:te.dataStudentPressure})})]})]})};function iv(a,s){return JSON.stringify(a)===JSON.stringify(s)}const sv=N.memo(rv,iv),av=({data:a,print:s,disableSeriesName:r,hiddenRightLegend:o,hiddenDescription:u,handleHoverTooltip:h,name:g,loadingComplete:y=!0})=>{const{t:x}=J.useTranslation();if(!a)return c.jsx("div",{className:"flex justify-content-center align-items-center",style:{height:450},children:c.jsx("div",{children:x("no_data")})});const v=Cn.seriesNameBubbleChartCustom(a);return c.jsxs("div",{className:`${Dt.styles["size-100"]}`,children:[!s&&c.jsxs(N.Fragment,{children:[c.jsxs("div",{className:`${Dt.styles["header-chart-container"]}`,children:[c.jsx(S.Typography,{className:`${Dt.styles["title-chart"]}`,children:x("student_distribution")}),c.jsx(S.Typography,{className:`${Dt.styles["header-chart-description"]}`,children:x("this_is_the_student_score_from_their_last_check_in")})]}),!u&&c.jsx("div",{className:Dt.styles["description-chart-distribution-stress"],dangerouslySetInnerHTML:{__html:x("the_data_presented_in_this_chart_reflects_the_average_from_the_student_check_ins")}})]}),c.jsx("div",{className:`${Dt.styles["bubble-chart-custom"]}`,children:y?c.jsxs("div",{className:Dt.styles["chart-custom"],children:[!o&&c.jsx("div",{className:`${Dt.styles["list-percent"]} ${r&&Dt.styles["percent-survey"]}`,children:E.PERCENT.map((A,D)=>c.jsxs("div",{className:`${Dt.styles["percent-item"]}`,children:[A,"%"]},D))}),c.jsx("div",{className:Dt.styles["legend-wrap"],children:!r&&v.map((A,D)=>c.jsxs("div",{className:`${Dt.styles.item}`,children:[c.jsx("div",{className:`${Dt.styles["mark-custom"]}`,style:{backgroundColor:E.COLOR_CHART_BUBBLE[D]}}),c.jsx("label",{className:`${Dt.styles["label-legend-custom"]}`,children:x(A.toLocaleLowerCase())})]},D))}),c.jsx("div",{className:Dt.styles["chart-buddle"],children:c.jsx("div",{id:"chart_bubble_custom",children:c.jsx(Lm,{options:Cn.readinesToLearnoptions(v,a,h,g),type:"scatter",series:Cn.convertDataToSeriesBullderChart(a),width:"100%",height:250})})})]}):c.jsx("div",{style:{width:"100%",height:400,display:"flex",justifyContent:"center",alignItems:"center"},children:c.jsx(Dn.Loading,{})})})]})};function ov(a,s){return JSON.stringify(a)===JSON.stringify(s)}const Lc=N.memo(av,ov),lv=({dataReadinessOfChart:a,handleHoverTooltip:s,classFontSize:r,dataOverallReadyToLearn:o,dayOfWeekOneToOne:u,monthsOneToOne:h,avgQuestionLastMonth:g,preparednessData:y,preparednessWeeklyData:x,weeksOneToOne:v,setOptionDate:A,activeColumn:D,onActiveColumn:L,timeOfDay:O,loadingComplete:W,onBeforeViewCheckIn:Z})=>{const{t:K}=J.useTranslation(),U=["Energy","Happiness","Focus"],te=[...a].sort((q,ie)=>U.indexOf(hc.removeHTMLTags(q.questionText))-U.indexOf(hc.removeHTMLTags(ie.questionText)));return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:K("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GenerateTrendQuestion,{avgQuestionLastMonth:g,series:y,timeOfDay:O,icons:["home/energy.png","home/focus.png","home/happiness.png"],trendLabels:["Feeling Okay","Generally focused","More positives than negatives"],className:"trend-item-icon-large",loadingComplete:W.dataOverview})}),c.jsxs(S.Grid,{className:`${b.styles["partition-chart"]} ${b.styles["space-chart"]}`,children:[c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]} ${b.styles["partition-chart-item-1"]}`,children:c.jsx(yt.GeneratePlpChart,{colors:["#D9EEE4","#FAF0F0"],name:E.overallReadinessToLearnName,typeChart:"donut",months:[],activeColumn:[!0,!0],avgQuestionLastMonth:o.overViewQuestionLastMonth,studentCount:o?.studentNotReadyToLearn?.length||void 0,responseStudent:o?.studentNotReadyToLearn,series:o.resultQuestion,classFontSize:r,handleHoverTooltip:s,kpiClassName:"column-reverse",loadingComplete:W.dataChart,onBeforeViewCheckIn:Z})}),c.jsx(S.Grid,{className:`${b.styles["partition-chart-item"]} ${b.styles["partition-chart-item-2"]}`,children:c.jsx(yt.GeneratePlpChart,{colors:["#169490","#316CD9","#FFB04F"],name:E.readinessTrendName,typeChart:"area",activeColumn:D||[!0,!0,!0],onActiveColumn:L,series:y,months:h,dayOfWeek:u,avgQuestionLastMonth:g,classFontSize:r,handleHoverTooltip:s,weeks:v,weeklySeries:x,noGradient:!0,setOptionDate:A,noAvgTotal:!0,loadingComplete:W.dataOverview,onBeforeViewCheckIn:Z})})]}),c.jsx(S.Grid,{className:`${b.styles["plp-box-chart"]} ${b.styles["distribution-chart"]}`,children:c.jsx(Lc,{data:te,handleHoverTooltip:s,hiddenRightLegend:!0,hiddenDescription:!0,loadingComplete:W.dataDistribution})})]})},cv=({successIndicatorsData:a,avgQuestionLastMonth:s,dayOfWeekOneToOne:r,monthsOneToOne:o,timeOfDay:u,classFontSize:h,handleHoverTooltip:g,successIndicatorWeeklyData:y,weeksOneToOne:x,activeColumn:v,onActiveColumn:A,loadingComplete:D,onBeforeViewCheckIn:L})=>{const{t:O}=J.useTranslation();return c.jsxs(S.Grid,{children:[c.jsxs(S.Grid,{className:`${b.styles.explain}`,children:[c.jsx("img",{src:E.infoIcon,alt:"",className:`${b.styles["explain-icon"]}`}),c.jsx(S.Typography,{className:`${b.styles["explain-text"]}`,children:O("the_data_presented_here_comes_from_the_check_ins")})]}),c.jsx(S.Grid,{className:`${b.styles["space-chart"]}`,children:c.jsx(yt.GenerateTrendQuestion,{avgQuestionLastMonth:s,series:a,timeOfDay:u,icons:["well-being-icon.png","growth-icon.png","relationship-icon.png","personal-icon-quests.svg","academic-icon.png","self-efficacy-icon.png"],trendLabels:["Generally okay","Good growth overall","All key relationships are positive","Meeting some deadlines","On target in most areas","Lacking some self-belief"],noAvgText:!0,loadingComplete:D.dataOverview})}),c.jsx(yt.GeneratePlpChart,{colors:["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"],name:O("success_indicators"),typeChart:"area",activeColumn:v,onActiveColumn:A,series:a,weeklySeries:y,months:o,dayOfWeek:r,avgQuestionLastMonth:s,timeOfDay:u,classFontSize:h,handleHoverTooltip:g,weeks:x,noGradient:!0,noAvgTotal:!0,loadingComplete:D.dataOverview,onBeforeViewCheckIn:L})]})},uv=()=>{const a=tn.useDispatch(),r=window.location.hostname.includes("iskenya"),o=tn.useSelector(D=>D?.common?.user?.schoolName)||"",u=async D=>{a(J.setLoading(!0));try{const O=(await ht.getSessionExportCsvApi(D)).data,W=h(O,D.startDate,D.endDate),Z=document.createElement("a");Z.href=W,Z.download=`${o}_CheckIns_Report.csv`,Z.click(),a(J.setAlert({type:"success",message:"Download Completed"}))}catch(L){a(J.setAlert({type:"danger",message:L.response?.data?.title||L.message}))}a(J.setLoading(!1))},h=(D,L,O)=>{let W="Student Name,ID/Email,Question,Answer,Teacher,Start Time";(L||O)&&(W=`"${tt(L).isValid()?"From: "+tt(L).format("DD/MM/YYYY"):""}${tt(L).isValid()&&tt(O).isValid()?" - ":""}${tt(O).isValid()?"To: "+tt(O).format("DD/MM/YYYY"):""}"
|
|
25
|
+
${W}`);const{questions:Z,strategyQuestions:K,sessions:U}=D,te=Z.filter(ge=>ge.type==Ja.QuestionType.Rating&&!!ge.isBeforeSession).slice(0,6),q=Z.filter(ge=>ge.type==Ja.QuestionType.Summarize&&!!ge.isBeforeSession),ie=Z.filter(ge=>!!ge.isBeforeSession).slice(7,r?12:13),We=Z.filter(ge=>!ge.isBeforeSession).slice(0,4);let le=[];q.length>0&&le.push(q[0]),le=[...le,...te,...ie];const Se=U.map(ge=>{const{answers:de,isUnlocked:Ge,startTime:ct,studentId:Ee,studentName:se,teacherName:ut,studentEmail:nt,strategyAnswers:at,isOneToOneConversation:wt}=ge,Oe=y(se),Te=y(nt||`${Ee}`),Be=y(ut),ve=J.utcToLocalTime(ct,"dd-MM-yyyy HH:mm:ss"),z=x(le,de,Oe,Te,Be,ve),p=wt?v(K,at,Oe,Te,Be,ve):"",ye=wt&&Ge?x(We,de,Oe,Te,Be,ve):"";return`${z}${p}${ye}`}).join("");return`${E.CSV_PREFIX}${W}${encodeURIComponent(Se)}`},g=D=>{const L=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];let O=D.replace(/<[^>]+>/g,"");return L.forEach(W=>{O=O.replace(new RegExp("&"+W[0]+";","g"),W[1])}),O},y=D=>D?`"${D.replace(/"/g,'""').replaceAll(/\n/g," ")}"`:"",x=(D,L,O,W,Z,K)=>D.map(U=>{const te=L.find(q=>q.questionId===U.id);return`
|
|
26
26
|
${O},${W},${y(g(U.text))},${A(U.type,te?.text)},${Z},${K}`}).join(""),v=(D,L,O,W,Z,K)=>L.map(U=>{const{text:te}=U;return(te?.split(";")||[]).map(We=>{const le=We.split("|"),Se=le.length?D.find(Ge=>`${Ge.id}`==le?.[0]):null,ge=Se?`${Se.text}${Se.questionText?`/${Se.questionText}`:""}`:"",de=le.length>1?le?.[1]:"";return ge?`
|
|
27
|
-
${O},${W},${y(ge)},${de?.length>0?`${de}%`:""},${Z},${K}`:""}).join("")}),A=(D,L)=>D===Ja.QuestionType.Rating?L?.length?`${L}%`:"":y(L||"");return{exportSessionsCsv:u}};function Ic(a,s,r,o,u){o=o||{};var h=1.15,g=u.internal.scaleFactor,y=u.internal.getFontSize()/g,x=u.getLineHeightFactor?u.getLineHeightFactor():h,v=y*x,A=/\r\n|\r|\n/g,D="",L=1;if((o.valign==="middle"||o.valign==="bottom"||o.halign==="center"||o.halign==="right")&&(D=typeof a=="string"?a.split(A):a,L=D.length||1),r+=y*(2-h),o.valign==="middle"?r-=L/2*v:o.valign==="bottom"&&(r-=L*v),o.halign==="center"||o.halign==="right"){var O=y;if(o.halign==="center"&&(O*=.5),D&&L>=1){for(var W=0;W<D.length;W++)u.text(D[W],s-u.getStringUnitWidth(D[W])*O,r),r+=v;return u}s-=u.getStringUnitWidth(a)*O}return o.halign==="justify"?u.text(a,s,r,{maxWidth:o.maxWidth||100,align:"justify"}):u.text(a,s,r),u}var gc={},Sr=(function(){function a(s){this.jsPDFDocument=s,this.userStyles={textColor:s.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:s.internal.getFontSize(),fontStyle:s.internal.getFont().fontStyle,font:s.internal.getFont().fontName,lineWidth:s.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:s.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return a.setDefaults=function(s,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=s:gc=s},a.unifyColor=function(s){return Array.isArray(s)?s:typeof s=="number"?[s,s,s]:typeof s=="string"?[s]:null},a.prototype.applyStyles=function(s,r){var o,u,h;r===void 0&&(r=!1),s.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(s.fontStyle);var g=this.jsPDFDocument.internal.getFont(),y=g.fontStyle,x=g.fontName;if(s.font&&(x=s.font),s.fontStyle){y=s.fontStyle;var v=this.getFontList()[x];v&&v.indexOf(y)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(v[0]),y=v[0])}if(this.jsPDFDocument.setFont(x,y),s.fontSize&&this.jsPDFDocument.setFontSize(s.fontSize),!r){var A=a.unifyColor(s.fillColor);A&&(o=this.jsPDFDocument).setFillColor.apply(o,A),A=a.unifyColor(s.textColor),A&&(u=this.jsPDFDocument).setTextColor.apply(u,A),A=a.unifyColor(s.lineColor),A&&(h=this.jsPDFDocument).setDrawColor.apply(h,A),typeof s.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(s.lineWidth)}},a.prototype.splitTextToSize=function(s,r,o){return this.jsPDFDocument.splitTextToSize(s,r,o)},a.prototype.rect=function(s,r,o,u,h){return this.jsPDFDocument.rect(s,r,o,u,h)},a.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},a.prototype.getTextWidth=function(s){return this.jsPDFDocument.getTextWidth(s)},a.prototype.getDocument=function(){return this.jsPDFDocument},a.prototype.setPage=function(s){this.jsPDFDocument.setPage(s)},a.prototype.addPage=function(){return this.jsPDFDocument.addPage()},a.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},a.prototype.getGlobalOptions=function(){return gc||{}},a.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},a.prototype.pageSize=function(){var s=this.jsPDFDocument.internal.pageSize;return s.width==null&&(s={width:s.getWidth(),height:s.getHeight()}),s},a.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},a.prototype.getLineHeightFactor=function(){var s=this.jsPDFDocument;return s.getLineHeightFactor?s.getLineHeightFactor():1.15},a.prototype.getLineHeight=function(s){return s/this.scaleFactor()*this.getLineHeightFactor()},a.prototype.pageNumber=function(){var s=this.jsPDFDocument.internal.getCurrentPageInfo();return s?s.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},a})(),ro=function(a,s){return ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])},ro(a,s)};function Nc(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");ro(a,s);function r(){this.constructor=a}a.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}var jc=(function(a){Nc(s,a);function s(r){var o=a.call(this)||this;return o._element=r,o}return s})(Array);function dv(a){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/a,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function fv(a){var s={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return s[a]}function us(a,s,r){r.applyStyles(s,!0);var o=Array.isArray(a)?a:[a],u=o.map(function(h){return r.getTextWidth(h)}).reduce(function(h,g){return Math.max(h,g)},0);return u}function
|
|
28
|
-
`),s.innerText||s.textContent||""}function yv(a,s,r){for(var o=0,u=[a,s,r];o<u.length;o++){var h=u[o];h&&typeof h!="object"&&console.error("The options parameter should be of type object, is: "+typeof h),h.startY&&typeof h.startY!="number"&&(console.error("Invalid value for startY option",h.startY),delete h.startY)}}function bn(a,s,r,o,u){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var h=Object(a),g=1;g<arguments.length;g++){var y=arguments[g];if(y!=null)for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(h[x]=y[x])}return h}function Mc(a,s){var r=new Sr(a),o=r.getDocumentOptions(),u=r.getGlobalOptions();yv(u,o,s);var h=bn({},u,o,s),g;typeof window<"u"&&(g=window);var y=xv(u,o,s),x=wv(u,o,s),v=Av(r,h),A=Sv(r,h,g);return{id:s.tableId,content:A,hooks:x,styles:y,settings:v}}function xv(a,s,r){for(var o={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},u=function(x){if(x==="columnStyles"){var v=a[x],A=s[x],D=r[x];o.columnStyles=bn({},v,A,D)}else{var L=[a,s,r],O=L.map(function(W){return W[x]||{}});o[x]=bn({},O[0],O[1],O[2])}},h=0,g=Object.keys(o);h<g.length;h++){var y=g[h];u(y)}return o}function wv(a,s,r){for(var o=[a,s,r],u={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},h=0,g=o;h<g.length;h++){var y=g[h];y.didParseCell&&u.didParseCell.push(y.didParseCell),y.willDrawCell&&u.willDrawCell.push(y.willDrawCell),y.didDrawCell&&u.didDrawCell.push(y.didDrawCell),y.willDrawPage&&u.willDrawPage.push(y.willDrawPage),y.didDrawPage&&u.didDrawPage.push(y.didDrawPage)}return u}function Av(a,s){var r,o,u,h,g,y,x,v,A,D,L,O,W=hs(s.margin,40/a.scaleFactor()),Z=(r=_v(a,s.startY))!==null&&r!==void 0?r:W.top,K;s.showFoot===!0?K="everyPage":s.showFoot===!1?K="never":K=(o=s.showFoot)!==null&&o!==void 0?o:"everyPage";var U;s.showHead===!0?U="everyPage":s.showHead===!1?U="never":U=(u=s.showHead)!==null&&u!==void 0?u:"everyPage";var te=(h=s.useCss)!==null&&h!==void 0?h:!1,q=s.theme||(te?"plain":"striped"),re=!!s.horizontalPageBreak,We=(g=s.horizontalPageBreakRepeat)!==null&&g!==void 0?g:null;return{includeHiddenHtml:(y=s.includeHiddenHtml)!==null&&y!==void 0?y:!1,useCss:te,theme:q,startY:Z,margin:W,pageBreak:(x=s.pageBreak)!==null&&x!==void 0?x:"auto",rowPageBreak:(v=s.rowPageBreak)!==null&&v!==void 0?v:"auto",tableWidth:(A=s.tableWidth)!==null&&A!==void 0?A:"auto",showHead:U,showFoot:K,tableLineWidth:(D=s.tableLineWidth)!==null&&D!==void 0?D:0,tableLineColor:(L=s.tableLineColor)!==null&&L!==void 0?L:200,horizontalPageBreak:re,horizontalPageBreakRepeat:We,horizontalPageBreakBehaviour:(O=s.horizontalPageBreakBehaviour)!==null&&O!==void 0?O:"afterAllRows"}}function _v(a,s){var r=a.getLastAutoTable(),o=a.scaleFactor(),u=a.pageNumber(),h=!1;if(r&&r.startPageNumber){var g=r.startPageNumber+r.pageNumber-1;h=g===u}return typeof s=="number"?s:(s==null||s===!1)&&h&&r?.finalY!=null?r.finalY+20/o:null}function Sv(a,s,r){var o=s.head||[],u=s.body||[],h=s.foot||[];if(s.html){var g=s.includeHiddenHtml;if(r){var y=Oc(a,s.html,r,g,s.useCss)||{};o=y.head||o,u=y.body||o,h=y.foot||o}else console.error("Cannot parse html in non browser environment")}var x=s.columns||Cv(o,u,h);return{columns:x,head:o,body:u,foot:h}}function Cv(a,s,r){var o=a[0]||s[0]||r[0]||[],u=[];return Object.keys(o).filter(function(h){return h!=="_element"}).forEach(function(h){var g=1,y;Array.isArray(o)?y=o[parseInt(h)]:y=o[h],typeof y=="object"&&!Array.isArray(y)&&(g=y?.colSpan||1);for(var x=0;x<g;x++){var v=void 0;Array.isArray(o)?v=u.length:v=h+(x>0?"_".concat(x):"");var A={dataKey:v};u.push(A)}}),u}var io=(function(){function a(s,r,o){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=o,this.doc=s.getDocument()}return a})(),bv=(function(a){Nc(s,a);function s(r,o,u,h,g,y){var x=a.call(this,r,o,y)||this;return x.cell=u,x.row=h,x.column=g,x.section=h.section,x}return s})(io),Dv=(function(){function a(s,r){this.pageNumber=1,this.id=s.id,this.settings=s.settings,this.styles=s.styles,this.hooks=s.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return a.prototype.getHeadHeight=function(s){return this.head.reduce(function(r,o){return r+o.getMaxCellHeight(s)},0)},a.prototype.getFootHeight=function(s){return this.foot.reduce(function(r,o){return r+o.getMaxCellHeight(s)},0)},a.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},a.prototype.callCellHooks=function(s,r,o,u,h,g){for(var y=0,x=r;y<x.length;y++){var v=x[y],A=new bv(s,this,o,u,h,g),D=v(A)===!1;if(o.text=Array.isArray(o.text)?o.text:[o.text],D)return!1}return!0},a.prototype.callEndPageHooks=function(s,r){s.applyStyles(s.userStyles);for(var o=0,u=this.hooks.didDrawPage;o<u.length;o++){var h=u[o];h(new io(s,this,r))}},a.prototype.callWillDrawPageHooks=function(s,r){for(var o=0,u=this.hooks.willDrawPage;o<u.length;o++){var h=u[o];h(new io(s,this,r))}},a.prototype.getWidth=function(s){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(u,h){return u+h.wrappedWidth},0);return r}else{var o=this.settings.margin;return s-o.left-o.right}},a})(),Hc=(function(){function a(s,r,o,u,h){h===void 0&&(h=!1),this.height=0,this.raw=s,s instanceof jc&&(this.raw=s._element,this.element=s._element),this.index=r,this.section=o,this.cells=u,this.spansMultiplePages=h}return a.prototype.getMaxCellHeight=function(s){var r=this;return s.reduce(function(o,u){var h;return Math.max(o,((h=r.cells[u.index])===null||h===void 0?void 0:h.height)||0)},0)},a.prototype.hasRowSpan=function(s){var r=this;return s.filter(function(o){var u=r.cells[o.index];return u?u.rowSpan>1:!1}).length>0},a.prototype.canEntireRowFit=function(s,r){return this.getMaxCellHeight(r)<=s},a.prototype.getMinimumRowHeight=function(s,r){var o=this;return s.reduce(function(u,h){var g=o.cells[h.index];if(!g)return 0;var y=r.getLineHeight(g.styles.fontSize),x=g.padding("vertical"),v=x+y;return v>u?v:u},0)},a})(),Wc=(function(){function a(s,r,o){var u;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=r,this.section=o,this.raw=s;var h=s;s!=null&&typeof s=="object"&&!Array.isArray(s)?(this.rowSpan=s.rowSpan||1,this.colSpan=s.colSpan||1,h=(u=s.content)!==null&&u!==void 0?u:s,s._element&&(this.raw=s._element)):(this.rowSpan=1,this.colSpan=1);var g=h!=null?""+h:"",y=/\r\n|\r|\n/g;this.text=g.split(y)}return a.prototype.getTextPos=function(){var s;if(this.styles.valign==="top")s=this.y+this.padding("top");else if(this.styles.valign==="bottom")s=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");s=this.y+r/2+this.padding("top")}var o;if(this.styles.halign==="right")o=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var u=this.width-this.padding("horizontal");o=this.x+u/2+this.padding("left")}else o=this.x+this.padding("left");return{x:o,y:s}},a.prototype.getContentHeight=function(s,r){r===void 0&&(r=1.15);var o=Array.isArray(this.text)?this.text.length:1,u=this.styles.fontSize/s*r,h=o*u+this.padding("vertical");return Math.max(h,this.styles.minCellHeight)},a.prototype.padding=function(s){var r=hs(this.styles.cellPadding,0);return s==="vertical"?r.top+r.bottom:s==="horizontal"?r.left+r.right:r[s]},a})(),Tv=(function(){function a(s,r,o){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=s,this.raw=r,this.index=o}return a.prototype.getMaxCustomCellWidth=function(s){for(var r=0,o=0,u=s.allRows();o<u.length;o++){var h=u[o],g=h.cells[this.index];g&&typeof g.styles.cellWidth=="number"&&(r=Math.max(r,g.styles.cellWidth))}return r},a})();function Lv(a,s){Iv(a,s);var r=[],o=0;s.columns.forEach(function(h){var g=h.getMaxCustomCellWidth(s);g?h.width=g:(h.width=h.wrappedWidth,r.push(h)),o+=h.width});var u=s.getWidth(a.pageSize().width)-o;u&&(u=so(r,u,function(h){return Math.max(h.minReadableWidth,h.minWidth)})),u&&(u=so(r,u,function(h){return h.minWidth})),u=Math.abs(u),!s.settings.horizontalPageBreak&&u>.1/a.scaleFactor()&&(u=u<1?u:Math.round(u),console.log("Of the table content, ".concat(u," units width could not fit page"))),jv(s),Fv(s,a),Nv(s)}function Iv(a,s){var r=a.scaleFactor(),o=s.settings.horizontalPageBreak,u=Pc(a,s);s.allRows().forEach(function(h){for(var g=0,y=s.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v){var A=s.hooks.didParseCell;s.callCellHooks(a,A,v,h,x,null);var D=v.padding("horizontal");v.contentWidth=us(v.text,v.styles,a)+D;var L=us(v.text.join(" ").split(/[^\S\u00A0]+/),v.styles,a);if(v.minReadableWidth=L+v.padding("horizontal"),typeof v.styles.cellWidth=="number")v.minWidth=v.styles.cellWidth,v.wrappedWidth=v.styles.cellWidth;else if(v.styles.cellWidth==="wrap"||o===!0)v.contentWidth>u?(v.minWidth=u,v.wrappedWidth=u):(v.minWidth=v.contentWidth,v.wrappedWidth=v.contentWidth);else{var O=10/r;v.minWidth=v.styles.minCellWidth||O,v.wrappedWidth=v.contentWidth,v.minWidth>v.wrappedWidth&&(v.wrappedWidth=v.minWidth)}}}}),s.allRows().forEach(function(h){for(var g=0,y=s.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v&&v.colSpan===1)x.wrappedWidth=Math.max(x.wrappedWidth,v.wrappedWidth),x.minWidth=Math.max(x.minWidth,v.minWidth),x.minReadableWidth=Math.max(x.minReadableWidth,v.minReadableWidth);else{var A=s.styles.columnStyles[x.dataKey]||s.styles.columnStyles[x.index]||{},D=A.cellWidth||A.minCellWidth;D&&typeof D=="number"&&(x.minWidth=D,x.wrappedWidth=D)}v&&(v.colSpan>1&&!x.minWidth&&(x.minWidth=v.minWidth),v.colSpan>1&&!x.wrappedWidth&&(x.wrappedWidth=v.minWidth))}})}function so(a,s,r){for(var o=s,u=a.reduce(function(O,W){return O+W.wrappedWidth},0),h=0;h<a.length;h++){var g=a[h],y=g.wrappedWidth/u,x=o*y,v=g.width+x,A=r(g),D=v<A?A:v;s-=D-g.width,g.width=D}if(s=Math.round(s*1e10)/1e10,s){var L=a.filter(function(O){return s<0?O.width>r(O):!0});L.length&&(s=so(L,s,r))}return s}function Nv(a){for(var s={},r=1,o=a.allRows(),u=0;u<o.length;u++)for(var h=o[u],g=0,y=a.columns;g<y.length;g++){var x=y[g],v=s[x.index];if(r>1)r--,delete h.cells[x.index];else if(v)v.cell.height+=h.height,r=v.cell.colSpan,delete h.cells[x.index],v.left--,v.left<=1&&delete s[x.index];else{var A=h.cells[x.index];if(!A)continue;if(A.height=h.height,A.rowSpan>1){var D=o.length-u,L=A.rowSpan>D?D:A.rowSpan;s[x.index]={cell:A,left:L,row:h}}}}}function jv(a){for(var s=a.allRows(),r=0;r<s.length;r++)for(var o=s[r],u=null,h=0,g=0,y=0;y<a.columns.length;y++){var x=a.columns[y];if(g-=1,g>1&&a.columns[y+1])h+=x.width,delete o.cells[x.index];else if(u){var v=u;delete o.cells[x.index],u=null,v.width=x.width+h}else{var v=o.cells[x.index];if(!v)continue;if(g=v.colSpan,h=0,v.colSpan>1){u=v,h+=x.width;continue}v.width=x.width+h}}}function Fv(a,s){for(var r={count:0,height:0},o=0,u=a.allRows();o<u.length;o++){for(var h=u[o],g=0,y=a.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v){s.applyStyles(v.styles,!0);var A=v.width-v.padding("horizontal");if(v.styles.overflow==="linebreak")v.text=s.splitTextToSize(v.text,A+1/s.scaleFactor(),{fontSize:v.styles.fontSize});else if(v.styles.overflow==="ellipsize")v.text=pc(v.text,A,v.styles,s,"...");else if(v.styles.overflow==="hidden")v.text=pc(v.text,A,v.styles,s,"");else if(typeof v.styles.overflow=="function"){var D=v.styles.overflow(v.text,A);typeof D=="string"?v.text=[D]:v.text=D}v.contentHeight=v.getContentHeight(s.scaleFactor(),s.getLineHeightFactor());var L=v.contentHeight/v.rowSpan;v.rowSpan>1&&r.count*r.height<L*v.rowSpan?r={height:L,count:v.rowSpan}:r&&r.count>0&&r.height>L&&(L=r.height),L>h.height&&(h.height=L)}}r.count--}}function pc(a,s,r,o,u){return a.map(function(h){return Rv(h,s,r,o,u)})}function Rv(a,s,r,o,u){var h=1e4*o.scaleFactor();if(s=Math.ceil(s*h)/h,s>=us(a,r,o))return a;for(;s<us(a+u,r,o)&&!(a.length<=1);)a=a.substring(0,a.length-1);return a.trim()+u}function Bc(a,s){var r=new Sr(a),o=Pv(s,r.scaleFactor()),u=new Dv(s,o);return Lv(r,u),r.applyStyles(r.userStyles),u}function Pv(a,s){var r=a.content,o=Ov(r.columns);if(r.head.length===0){var u=mc(o,"head");u&&r.head.push(u)}if(r.foot.length===0){var u=mc(o,"foot");u&&r.foot.push(u)}var h=a.settings.theme,g=a.styles;return{columns:o,head:eo("head",r.head,o,g,h,s),body:eo("body",r.body,o,g,h,s),foot:eo("foot",r.foot,o,g,h,s)}}function eo(a,s,r,o,u,h){var g={},y=s.map(function(x,v){for(var A=0,D={},L=0,O=0,W=0,Z=r;W<Z.length;W++){var K=Z[W];if(g[K.index]==null||g[K.index].left===0)if(O===0){var U=void 0;Array.isArray(x)?U=x[K.index-L-A]:U=x[K.dataKey];var te={};typeof U=="object"&&!Array.isArray(U)&&(te=U?.styles||{});var q=Mv(a,K,v,u,o,h,te),re=new Wc(U,q,a);D[K.dataKey]=re,D[K.index]=re,O=re.colSpan-1,g[K.index]={left:re.rowSpan-1,times:O}}else O--,L++;else g[K.index].left--,O=g[K.index].times,A++}return new Hc(x,v,a,D)});return y}function mc(a,s){var r={};return a.forEach(function(o){if(o.raw!=null){var u=Ev(s,o.raw);u!=null&&(r[o.dataKey]=u)}}),Object.keys(r).length>0?r:null}function Ev(a,s){if(a==="head"){if(typeof s=="object")return s.header||null;if(typeof s=="string"||typeof s=="number")return s}else if(a==="foot"&&typeof s=="object")return s.footer;return null}function Ov(a){return a.map(function(s,r){var o,u;return typeof s=="object"?u=(o=s.dataKey)!==null&&o!==void 0?o:r:u=r,new Tv(u,s,r)})}function Mv(a,s,r,o,u,h,g){var y=fv(o),x;a==="head"?x=u.headStyles:a==="body"?x=u.bodyStyles:a==="foot"&&(x=u.footStyles);var v=bn({},y.table,y[a],u.styles,x),A=u.columnStyles[s.dataKey]||u.columnStyles[s.index]||{},D=a==="body"?A:{},L=a==="body"&&r%2===0?bn({},y.alternateRow,u.alternateRowStyles):{},O=dv(h),W=bn({},O,v,L,D);return bn(W,g)}function Hv(a,s,r){var o;r===void 0&&(r={});var u=Pc(a,s),h=new Map,g=[],y=[],x=[];Array.isArray(s.settings.horizontalPageBreakRepeat)?x=s.settings.horizontalPageBreakRepeat:(typeof s.settings.horizontalPageBreakRepeat=="string"||typeof s.settings.horizontalPageBreakRepeat=="number")&&(x=[s.settings.horizontalPageBreakRepeat]),x.forEach(function(L){var O=s.columns.find(function(W){return W.dataKey===L||W.index===L});O&&!h.has(O.index)&&(h.set(O.index,!0),g.push(O.index),y.push(s.columns[O.index]),u-=O.wrappedWidth)});for(var v=!0,A=(o=r?.start)!==null&&o!==void 0?o:0;A<s.columns.length;){if(h.has(A)){A++;continue}var D=s.columns[A].wrappedWidth;if(v||u>=D)v=!1,g.push(A),y.push(s.columns[A]),u-=D;else break;A++}return{colIndexes:g,columns:y,lastIndex:A-1}}function Wv(a,s){for(var r=[],o=0;o<s.columns.length;o++){var u=Hv(a,s,{start:o});u.columns.length&&(r.push(u),o=u.lastIndex)}return r}function kc(a,s){var r=s.settings,o=r.startY,u=r.margin,h={x:u.left,y:o},g=s.getHeadHeight(s.columns)+s.getFootHeight(s.columns),y=o+u.bottom+g;if(r.pageBreak==="avoid"){var x=s.body,v=x.reduce(function(L,O){return L+O.height},0);y+=v}var A=new Sr(a);(r.pageBreak==="always"||r.startY!=null&&y>A.pageSize().height)&&(Gc(A),h.y=u.top),s.callWillDrawPageHooks(A,h);var D=bn({},h);s.startPageNumber=A.pageNumber(),r.horizontalPageBreak?Bv(A,s,D,h):(A.applyStyles(A.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&s.head.forEach(function(L){return Tn(A,s,L,h,s.columns)}),A.applyStyles(A.userStyles),s.body.forEach(function(L,O){var W=O===s.body.length-1;ds(A,s,L,W,D,h,s.columns)}),A.applyStyles(A.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&s.foot.forEach(function(L){return Tn(A,s,L,h,s.columns)})),Fc(A,s,D,h),s.callEndPageHooks(A,h),s.finalY=h.y,a.lastAutoTable=s,A.applyStyles(A.userStyles)}function Bv(a,s,r,o){var u=Wv(a,s),h=s.settings;if(h.horizontalPageBreakBehaviour==="afterAllRows")u.forEach(function(v,A){a.applyStyles(a.userStyles),A>0?ni(a,s,r,o,v.columns,!0):vc(a,s,o,v.columns),kv(a,s,r,o,v.columns),to(a,s,o,v.columns)});else for(var g=-1,y=u[0],x=function(){var v=g;if(y){a.applyStyles(a.userStyles);var A=y.columns;g>=0?ni(a,s,r,o,A,!0):vc(a,s,o,A),v=yc(a,s,g+1,o,A),to(a,s,o,A)}var D=v-g;u.slice(1).forEach(function(L){a.applyStyles(a.userStyles),ni(a,s,r,o,L.columns,!0),yc(a,s,g+1,o,L.columns,D),to(a,s,o,L.columns)}),g=v};g<s.body.length-1;)x()}function vc(a,s,r,o){var u=s.settings;a.applyStyles(a.userStyles),(u.showHead==="firstPage"||u.showHead==="everyPage")&&s.head.forEach(function(h){return Tn(a,s,h,r,o)})}function kv(a,s,r,o,u){a.applyStyles(a.userStyles),s.body.forEach(function(h,g){var y=g===s.body.length-1;ds(a,s,h,y,r,o,u)})}function yc(a,s,r,o,u,h){a.applyStyles(a.userStyles),h=h??s.body.length;var g=Math.min(r+h,s.body.length),y=-1;return s.body.slice(r,g).forEach(function(x,v){var A=r+v===s.body.length-1,D=zc(a,s,A,o);x.canEntireRowFit(D,u)&&(Tn(a,s,x,o,u),y=r+v)}),y}function to(a,s,r,o){var u=s.settings;a.applyStyles(a.userStyles),(u.showFoot==="lastPage"||u.showFoot==="everyPage")&&s.foot.forEach(function(h){return Tn(a,s,h,r,o)})}function zv(a,s,r){var o=r.getLineHeight(a.styles.fontSize),u=a.padding("vertical"),h=Math.floor((s-u)/o);return Math.max(0,h)}function Gv(a,s,r,o){var u={};a.spansMultiplePages=!0,a.height=0;for(var h=0,g=0,y=r.columns;g<y.length;g++){var x=y[g],v=a.cells[x.index];if(v){Array.isArray(v.text)||(v.text=[v.text]);var A=new Wc(v.raw,v.styles,v.section);A=bn(A,v),A.text=[];var D=zv(v,s,o);v.text.length>D&&(A.text=v.text.splice(D,v.text.length));var L=o.scaleFactor(),O=o.getLineHeightFactor();v.contentHeight=v.getContentHeight(L,O),v.contentHeight>=s&&(v.contentHeight=s,A.styles.minCellHeight-=s),v.contentHeight>a.height&&(a.height=v.contentHeight),A.contentHeight=A.getContentHeight(L,O),A.contentHeight>h&&(h=A.contentHeight),u[x.index]=A}}var W=new Hc(a.raw,-1,a.section,u,!0);W.height=h;for(var Z=0,K=r.columns;Z<K.length;Z++){var x=K[Z],A=W.cells[x.index];A&&(A.height=W.height);var v=a.cells[x.index];v&&(v.height=a.height)}return W}function Uv(a,s,r,o){var u=a.pageSize().height,h=o.settings.margin,g=h.top+h.bottom,y=u-g;s.section==="body"&&(y-=o.getHeadHeight(o.columns)+o.getFootHeight(o.columns));var x=s.getMinimumRowHeight(o.columns,a),v=x<r;if(x>y)return console.log("Will not be able to print row ".concat(s.index," correctly since it's minimum height is larger than page height")),!0;if(!v)return!1;var A=s.hasRowSpan(o.columns),D=s.getMaxCellHeight(o.columns)>y;return D?(A&&console.log("The content of row ".concat(s.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(A||o.settings.rowPageBreak==="avoid")}function ds(a,s,r,o,u,h,g){var y=zc(a,s,o,h);if(r.canEntireRowFit(y,g))Tn(a,s,r,h,g);else if(Uv(a,r,y,s)){var x=Gv(r,y,s,a);Tn(a,s,r,h,g),ni(a,s,u,h,g),ds(a,s,x,o,u,h,g)}else ni(a,s,u,h,g),ds(a,s,r,o,u,h,g)}function Tn(a,s,r,o,u){o.x=s.settings.margin.left;for(var h=0,g=u;h<g.length;h++){var y=g[h],x=r.cells[y.index];if(!x){o.x+=y.width;continue}a.applyStyles(x.styles),x.x=o.x,x.y=o.y;var v=s.callCellHooks(a,s.hooks.willDrawCell,x,r,y,o);if(v===!1){o.x+=y.width;continue}qv(a,x,o);var A=x.getTextPos();Ic(x.text,A.x,A.y,{halign:x.styles.halign,valign:x.styles.valign,maxWidth:Math.ceil(x.width-x.padding("left")-x.padding("right"))},a.getDocument()),s.callCellHooks(a,s.hooks.didDrawCell,x,r,y,o),o.x+=y.width}o.y+=r.height}function qv(a,s,r){var o=s.styles;if(a.getDocument().setFillColor(a.getDocument().getFillColor()),typeof o.lineWidth=="number"){var u=Rc(o.lineWidth,o.fillColor);u&&a.rect(s.x,r.y,s.width,s.height,u)}else typeof o.lineWidth=="object"&&(o.fillColor&&a.rect(s.x,r.y,s.width,s.height,"F"),Yv(a,s,r,o.lineWidth))}function Yv(a,s,r,o){var u,h,g,y;o.top&&(u=r.x,h=r.y,g=r.x+s.width,y=r.y,o.right&&(g+=.5*o.right),o.left&&(u-=.5*o.left),x(o.top,u,h,g,y)),o.bottom&&(u=r.x,h=r.y+s.height,g=r.x+s.width,y=r.y+s.height,o.right&&(g+=.5*o.right),o.left&&(u-=.5*o.left),x(o.bottom,u,h,g,y)),o.left&&(u=r.x,h=r.y,g=r.x,y=r.y+s.height,o.top&&(h-=.5*o.top),o.bottom&&(y+=.5*o.bottom),x(o.left,u,h,g,y)),o.right&&(u=r.x+s.width,h=r.y,g=r.x+s.width,y=r.y+s.height,o.top&&(h-=.5*o.top),o.bottom&&(y+=.5*o.bottom),x(o.right,u,h,g,y));function x(v,A,D,L,O){a.getDocument().setLineWidth(v),a.getDocument().line(A,D,L,O,"S")}}function zc(a,s,r,o){var u=s.settings.margin.bottom,h=s.settings.showFoot;return(h==="everyPage"||h==="lastPage"&&r)&&(u+=s.getFootHeight(s.columns)),a.pageSize().height-o.y-u}function ni(a,s,r,o,u,h){u===void 0&&(u=[]),h===void 0&&(h=!1),a.applyStyles(a.userStyles),s.settings.showFoot==="everyPage"&&!h&&s.foot.forEach(function(y){return Tn(a,s,y,o,u)}),s.callEndPageHooks(a,o);var g=s.settings.margin;Fc(a,s,r,o),Gc(a),s.pageNumber++,o.x=g.left,o.y=g.top,r.y=g.top,s.callWillDrawPageHooks(a,o),s.settings.showHead==="everyPage"&&(s.head.forEach(function(y){return Tn(a,s,y,o,u)}),a.applyStyles(a.userStyles))}function Gc(a){var s=a.pageNumber();a.setPage(s+1);var r=a.pageNumber();return r===s?(a.addPage(),!0):!1}function Vv(a){a.API.autoTable=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];var o=s[0],u=Mc(this,o),h=Bc(this,u);return kc(this,h),this},a.API.lastAutoTable=!1,a.API.autoTableText=function(s,r,o,u){Ic(s,r,o,u,this)},a.API.autoTableSetDefaults=function(s){return Sr.setDefaults(s,this),this},a.autoTableSetDefaults=function(s,r){Sr.setDefaults(s,r)},a.API.autoTableHtmlToJson=function(s,r){var o;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var u=new Sr(this),h=Oc(u,s,window,r,!1),g=h.head,y=h.body,x=((o=g[0])===null||o===void 0?void 0:o.map(function(v){return v.content}))||[];return{columns:x,rows:y,data:y}}}var no;function xc(a,s){var r=Mc(a,s),o=Bc(a,r);kc(a,o)}try{if(typeof window<"u"&&window){var wc=window,Ac=wc.jsPDF||((no=wc.jspdf)===null||no===void 0?void 0:no.jsPDF);Ac&&Vv(Ac)}}catch(a){console.error("Could not apply autoTable plugin",a)}var ti={exports:{}};var Qv=ti.exports,_c;function Xv(){return _c||(_c=1,(function(a,s){(function(){var r,o="4.18.1",u=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",x="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",A=500,D="__lodash_placeholder__",L=1,O=2,W=4,Z=1,K=2,U=1,te=2,q=4,re=8,We=16,le=32,Se=64,ge=128,de=256,Ge=512,ct=30,Ee="...",oe=800,dt=16,nt=1,at=2,wt=3,Oe=1/0,Te=9007199254740991,Be=17976931348623157e292,ve=NaN,z=4294967295,p=z-1,ye=z>>>1,ie=[["ary",ge],["bind",U],["bindKey",te],["curry",re],["curryRight",We],["flip",Ge],["partial",le],["partialRight",Se],["rearg",de]],ce="[object Arguments]",Ke="[object Array]",Le="[object AsyncFunction]",gt="[object Boolean]",Je="[object Date]",Tt="[object DOMException]",je="[object Error]",P="[object Function]",B="[object GeneratorFunction]",k="[object Map]",Ae="[object Number]",fe="[object Null]",G="[object Object]",Y="[object Promise]",ne="[object Proxy]",H="[object RegExp]",$="[object Set]",Q="[object String]",Ce="[object Symbol]",pe="[object Undefined]",se="[object WeakMap]",Ne="[object WeakSet]",pt="[object ArrayBuffer]",ke="[object DataView]",Ft="[object Float32Array]",Ue="[object Float64Array]",nn="[object Int8Array]",rn="[object Int16Array]",Rt="[object Int32Array]",Ln="[object Uint8Array]",In="[object Uint8ClampedArray]",Nn="[object Uint16Array]",jn="[object Uint32Array]",nr=/\b__p \+= '';/g,Cr=/\b(__p \+=) '' \+/g,br=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,Un=/[&<>"']/g,Dr=RegExp(rr.source),Fn=RegExp(Un.source),Tr=/<%-([\s\S]+?)%>/g,Lr=/<%([\s\S]+?)%>/g,qn=/<%=([\s\S]+?)%>/g,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,ms=RegExp(Ir.source),Nr=/^\s+/,vs=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xs=/\{\n\/\* \[wrapped with (.+)\] \*/,ir=/,? & /,ii=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jr=/[()=,{}\[\]\/\s]/,ws=/\\(\\)?/g,As=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,si=/\w*$/,_s=/^[-+]0x[0-9a-f]+$/i,Ss=/^0b[01]+$/i,ai=/^\[object .+?Constructor\]$/,Cs=/^0o[0-7]+$/i,bs=/^(?:0|[1-9]\d*)$/,Ds=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,Ts=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",Ls="\\u0300-\\u036f",Is="\\ufe20-\\ufe2f",Ns="\\u20d0-\\u20ff",oi=Ls+Is+Ns,li="\\u2700-\\u27bf",ci="a-z\\xdf-\\xf6\\xf8-\\xff",js="\\xac\\xb1\\xd7\\xf7",ui="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fs="\\u2000-\\u206f",di=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fi="A-Z\\xc0-\\xd6\\xd8-\\xde",hi="\\ufe0e\\ufe0f",gi=js+ui+Fs+di,or="['’]",Lt="["+ar+"]",pi="["+gi+"]",lr="["+oi+"]",mi="\\d+",Rs="["+li+"]",vi="["+ci+"]",It="[^"+ar+gi+mi+li+ci+fi+"]",Fr="\\ud83c[\\udffb-\\udfff]",Ps="(?:"+lr+"|"+Fr+")",yi="[^"+ar+"]",Rr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+fi+"]",cr="\\u200d",xi="(?:"+vi+"|"+It+")",Es="(?:"+Wt+"|"+It+")",Yn="(?:"+or+"(?:d|ll|m|re|s|t|ve))?",Er="(?:"+or+"(?:D|LL|M|RE|S|T|VE))?",Or=Ps+"?",Mr="["+hi+"]?",Os="(?:"+cr+"(?:"+[yi,Rr,Pr].join("|")+")"+Mr+Or+")*",Ms="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wi=Mr+Or+Os,Ws="(?:"+[Rs,Rr,Pr].join("|")+")"+wi,Bs="(?:"+[yi+lr+"?",lr,Rr,Pr,Lt].join("|")+")",ks=RegExp(or,"g"),zs=RegExp(lr,"g"),Hr=RegExp(Fr+"(?="+Fr+")|"+Bs+wi,"g"),Gs=RegExp([Wt+"?"+vi+"+"+Yn+"(?="+[pi,Wt,"$"].join("|")+")",Es+"+"+Er+"(?="+[pi,Wt+xi,"$"].join("|")+")",Wt+"?"+xi+"+"+Yn,Wt+"+"+Er,Hs,Ms,mi,Ws].join("|"),"g"),Us=RegExp("["+cr+ar+oi+hi+"]"),qs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ys=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vs=-1,Ye={};Ye[Ft]=Ye[Ue]=Ye[nn]=Ye[rn]=Ye[Rt]=Ye[Ln]=Ye[In]=Ye[Nn]=Ye[jn]=!0,Ye[ce]=Ye[Ke]=Ye[pt]=Ye[gt]=Ye[ke]=Ye[Je]=Ye[je]=Ye[P]=Ye[k]=Ye[Ae]=Ye[G]=Ye[H]=Ye[$]=Ye[Q]=Ye[se]=!1;var Ze={};Ze[ce]=Ze[Ke]=Ze[pt]=Ze[ke]=Ze[gt]=Ze[Je]=Ze[Ft]=Ze[Ue]=Ze[nn]=Ze[rn]=Ze[Rt]=Ze[k]=Ze[Ae]=Ze[G]=Ze[H]=Ze[$]=Ze[Q]=Ze[Ce]=Ze[Ln]=Ze[In]=Ze[Nn]=Ze[jn]=!0,Ze[je]=Ze[P]=Ze[se]=!1;var lo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È: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"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},T={"&":"&","<":"<",">":">",'"':""","'":"'"},ae={"&":"&","<":"<",">":">",""":'"',"'":"'"},xe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,Ve=parseInt,At=typeof cs.commonjsGlobal=="object"&&cs.commonjsGlobal&&cs.commonjsGlobal.Object===Object&&cs.commonjsGlobal,Vn=typeof self=="object"&&self&&self.Object===Object&&self,et=At||Vn||Function("return this")(),ze=s&&!s.nodeType&&s,Qe=ze&&!0&&a&&!a.nodeType&&a,Pt=Qe&&Qe.exports===ze,ot=Pt&&At.process,xt=(function(){try{var _=Qe&&Qe.require&&Qe.require("util").types;return _||ot&&ot.binding&&ot.binding("util")}catch{}})(),Wr=xt&&xt.isArrayBuffer,Rn=xt&&xt.isDate,Ai=xt&&xt.isMap,Pn=xt&&xt.isRegExp,_i=xt&&xt.isSet,Si=xt&&xt.isTypedArray;function Et(_,j,I){switch(I.length){case 0:return _.call(j);case 1:return _.call(j,I[0]);case 2:return _.call(j,I[0],I[1]);case 3:return _.call(j,I[0],I[1],I[2])}return _.apply(j,I)}function Fe(_,j,I,X){for(var we=-1,qe=_==null?0:_.length;++we<qe;){var _t=_[we];j(X,_t,I(_t),_)}return X}function rt(_,j){for(var I=-1,X=_==null?0:_.length;++I<X&&j(_[I],I,_)!==!1;);return _}function Uc(_,j){for(var I=_==null?0:_.length;I--&&j(_[I],I,_)!==!1;);return _}function co(_,j){for(var I=-1,X=_==null?0:_.length;++I<X;)if(!j(_[I],I,_))return!1;return!0}function En(_,j){for(var I=-1,X=_==null?0:_.length,we=0,qe=[];++I<X;){var _t=_[I];j(_t,I,_)&&(qe[we++]=_t)}return qe}function Ci(_,j){var I=_==null?0:_.length;return!!I&&ur(_,j,0)>-1}function Qs(_,j,I){for(var X=-1,we=_==null?0:_.length;++X<we;)if(I(j,_[X]))return!0;return!1}function lt(_,j){for(var I=-1,X=_==null?0:_.length,we=Array(X);++I<X;)we[I]=j(_[I],I,_);return we}function On(_,j){for(var I=-1,X=j.length,we=_.length;++I<X;)_[we+I]=j[I];return _}function Xs(_,j,I,X){var we=-1,qe=_==null?0:_.length;for(X&&qe&&(I=_[++we]);++we<qe;)I=j(I,_[we],we,_);return I}function qc(_,j,I,X){var we=_==null?0:_.length;for(X&&we&&(I=_[--we]);we--;)I=j(I,_[we],we,_);return I}function $s(_,j){for(var I=-1,X=_==null?0:_.length;++I<X;)if(j(_[I],I,_))return!0;return!1}var Yc=Ks("length");function Vc(_){return _.split("")}function Qc(_){return _.match(ii)||[]}function uo(_,j,I){var X;return I(_,function(we,qe,_t){if(j(we,qe,_t))return X=qe,!1}),X}function bi(_,j,I,X){for(var we=_.length,qe=I+(X?1:-1);X?qe--:++qe<we;)if(j(_[qe],qe,_))return qe;return-1}function ur(_,j,I){return j===j?au(_,j,I):bi(_,fo,I)}function Xc(_,j,I,X){for(var we=I-1,qe=_.length;++we<qe;)if(X(_[we],j))return we;return-1}function fo(_){return _!==_}function ho(_,j){var I=_==null?0:_.length;return I?Zs(_,j)/I:ve}function Ks(_){return function(j){return j==null?r:j[_]}}function Js(_){return function(j){return _==null?r:_[j]}}function go(_,j,I,X,we){return we(_,function(qe,_t,it){I=X?(X=!1,qe):j(I,qe,_t,it)}),I}function $c(_,j){var I=_.length;for(_.sort(j);I--;)_[I]=_[I].value;return _}function Zs(_,j){for(var I,X=-1,we=_.length;++X<we;){var qe=j(_[X]);qe!==r&&(I=I===r?qe:I+qe)}return I}function ea(_,j){for(var I=-1,X=Array(_);++I<_;)X[I]=j(I);return X}function Kc(_,j){return lt(j,function(I){return[I,_[I]]})}function po(_){return _&&_.slice(0,xo(_)+1).replace(Nr,"")}function Ut(_){return function(j){return _(j)}}function ta(_,j){return lt(j,function(I){return _[I]})}function Br(_,j){return _.has(j)}function mo(_,j){for(var I=-1,X=_.length;++I<X&&ur(j,_[I],0)>-1;);return I}function vo(_,j){for(var I=_.length;I--&&ur(j,_[I],0)>-1;);return I}function Jc(_,j){for(var I=_.length,X=0;I--;)_[I]===j&&++X;return X}var Zc=Js(lo),eu=Js(T);function tu(_){return"\\"+xe[_]}function nu(_,j){return _==null?r:_[j]}function dr(_){return Us.test(_)}function ru(_){return qs.test(_)}function iu(_){for(var j,I=[];!(j=_.next()).done;)I.push(j.value);return I}function na(_){var j=-1,I=Array(_.size);return _.forEach(function(X,we){I[++j]=[we,X]}),I}function yo(_,j){return function(I){return _(j(I))}}function Mn(_,j){for(var I=-1,X=_.length,we=0,qe=[];++I<X;){var _t=_[I];(_t===j||_t===D)&&(_[I]=D,qe[we++]=I)}return qe}function Di(_){var j=-1,I=Array(_.size);return _.forEach(function(X){I[++j]=X}),I}function su(_){var j=-1,I=Array(_.size);return _.forEach(function(X){I[++j]=[X,X]}),I}function au(_,j,I){for(var X=I-1,we=_.length;++X<we;)if(_[X]===j)return X;return-1}function ou(_,j,I){for(var X=I+1;X--;)if(_[X]===j)return X;return X}function fr(_){return dr(_)?cu(_):Yc(_)}function sn(_){return dr(_)?uu(_):Vc(_)}function xo(_){for(var j=_.length;j--&&vs.test(_.charAt(j)););return j}var lu=Js(ae);function cu(_){for(var j=Hr.lastIndex=0;Hr.test(_);)++j;return j}function uu(_){return _.match(Hr)||[]}function du(_){return _.match(Gs)||[]}var fu=(function _(j){j=j==null?et:hr.defaults(et.Object(),j,hr.pick(et,Ys));var I=j.Array,X=j.Date,we=j.Error,qe=j.Function,_t=j.Math,it=j.Object,ra=j.RegExp,hu=j.String,Xt=j.TypeError,Ti=I.prototype,gu=qe.prototype,gr=it.prototype,Li=j["__core-js_shared__"],Ii=gu.toString,Xe=gr.hasOwnProperty,pu=0,wo=(function(){var e=/[^.]+$/.exec(Li&&Li.keys&&Li.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ni=gr.toString,mu=Ii.call(it),vu=et._,yu=ra("^"+Ii.call(Xe).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ji=Pt?j.Buffer:r,Hn=j.Symbol,Fi=j.Uint8Array,Ao=ji?ji.allocUnsafe:r,Ri=yo(it.getPrototypeOf,it),_o=it.create,So=gr.propertyIsEnumerable,Pi=Ti.splice,Co=Hn?Hn.isConcatSpreadable:r,kr=Hn?Hn.iterator:r,Qn=Hn?Hn.toStringTag:r,Ei=(function(){try{var e=Zn(it,"defineProperty");return e({},"",{}),e}catch{}})(),xu=j.clearTimeout!==et.clearTimeout&&j.clearTimeout,wu=X&&X.now!==et.Date.now&&X.now,Au=j.setTimeout!==et.setTimeout&&j.setTimeout,Oi=_t.ceil,Mi=_t.floor,ia=it.getOwnPropertySymbols,_u=ji?ji.isBuffer:r,bo=j.isFinite,Su=Ti.join,Cu=yo(it.keys,it),St=_t.max,Nt=_t.min,bu=X.now,Du=j.parseInt,Do=_t.random,Tu=Ti.reverse,sa=Zn(j,"DataView"),zr=Zn(j,"Map"),aa=Zn(j,"Promise"),pr=Zn(j,"Set"),Gr=Zn(j,"WeakMap"),Ur=Zn(it,"create"),Hi=Gr&&new Gr,mr={},Lu=er(sa),Iu=er(zr),Nu=er(aa),ju=er(pr),Fu=er(Gr),Wi=Hn?Hn.prototype:r,qr=Wi?Wi.valueOf:r,To=Wi?Wi.toString:r;function d(e){if(ft(e)&&!_e(e)&&!(e instanceof Pe)){if(e instanceof $t)return e;if(Xe.call(e,"__wrapped__"))return Ll(e)}return new $t(e)}var vr=(function(){function e(){}return function(t){if(!ut(t))return{};if(_o)return _o(t);e.prototype=t;var n=new e;return e.prototype=r,n}})();function Bi(){}function $t(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}d.templateSettings={escape:Tr,evaluate:Lr,interpolate:qn,variable:"",imports:{_:d}},d.prototype=Bi.prototype,d.prototype.constructor=d,$t.prototype=vr(Bi.prototype),$t.prototype.constructor=$t;function Pe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Ru(){var e=new Pe(this.__wrapped__);return e.__actions__=Bt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bt(this.__views__),e}function Pu(){if(this.__filtered__){var e=new Pe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Eu(){var e=this.__wrapped__.value(),t=this.__dir__,n=_e(e),i=t<0,l=n?e.length:0,f=Vd(0,l,this.__views__),m=f.start,w=f.end,C=w-m,F=i?w:m-1,R=this.__iteratees__,M=R.length,V=0,ee=Nt(C,this.__takeCount__);if(!n||!i&&l==C&&ee==C)return Ko(e,this.__actions__);var me=[];e:for(;C--&&V<ee;){F+=t;for(var De=-1,ue=e[F];++De<M;){var Re=R[De],Me=Re.iteratee,Vt=Re.type,Ht=Me(ue);if(Vt==at)ue=Ht;else if(!Ht){if(Vt==nt)continue e;break e}}me[V++]=ue}return me}Pe.prototype=vr(Bi.prototype),Pe.prototype.constructor=Pe;function Xn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ou(){this.__data__=Ur?Ur(null):{},this.size=0}function Mu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Hu(e){var t=this.__data__;if(Ur){var n=t[e];return n===v?r:n}return Xe.call(t,e)?t[e]:r}function Wu(e){var t=this.__data__;return Ur?t[e]!==r:Xe.call(t,e)}function Bu(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ur&&t===r?v:t,this}Xn.prototype.clear=Ou,Xn.prototype.delete=Mu,Xn.prototype.get=Hu,Xn.prototype.has=Wu,Xn.prototype.set=Bu;function pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ku(){this.__data__=[],this.size=0}function zu(e){var t=this.__data__,n=ki(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Pi.call(t,n,1),--this.size,!0}function Gu(e){var t=this.__data__,n=ki(t,e);return n<0?r:t[n][1]}function Uu(e){return ki(this.__data__,e)>-1}function qu(e,t){var n=this.__data__,i=ki(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}pn.prototype.clear=ku,pn.prototype.delete=zu,pn.prototype.get=Gu,pn.prototype.has=Uu,pn.prototype.set=qu;function mn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yu(){this.size=0,this.__data__={hash:new Xn,map:new(zr||pn),string:new Xn}}function Vu(e){var t=Zi(this,e).delete(e);return this.size-=t?1:0,t}function Qu(e){return Zi(this,e).get(e)}function Xu(e){return Zi(this,e).has(e)}function $u(e,t){var n=Zi(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}mn.prototype.clear=Yu,mn.prototype.delete=Vu,mn.prototype.get=Qu,mn.prototype.has=Xu,mn.prototype.set=$u;function $n(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new mn;++t<n;)this.add(e[t])}function Ku(e){return this.__data__.set(e,v),this}function Ju(e){return this.__data__.has(e)}$n.prototype.add=$n.prototype.push=Ku,$n.prototype.has=Ju;function an(e){var t=this.__data__=new pn(e);this.size=t.size}function Zu(){this.__data__=new pn,this.size=0}function ed(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function td(e){return this.__data__.get(e)}function nd(e){return this.__data__.has(e)}function rd(e,t){var n=this.__data__;if(n instanceof pn){var i=n.__data__;if(!zr||i.length<u-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new mn(i)}return n.set(e,t),this.size=n.size,this}an.prototype.clear=Zu,an.prototype.delete=ed,an.prototype.get=td,an.prototype.has=nd,an.prototype.set=rd;function Lo(e,t){var n=_e(e),i=!n&&tr(e),l=!n&&!i&&Gn(e),f=!n&&!i&&!l&&Ar(e),m=n||i||l||f,w=m?ea(e.length,hu):[],C=w.length;for(var F in e)(t||Xe.call(e,F))&&!(m&&(F=="length"||l&&(F=="offset"||F=="parent")||f&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||xn(F,C)))&&w.push(F);return w}function Io(e){var t=e.length;return t?e[va(0,t-1)]:r}function id(e,t){return es(Bt(e),Kn(t,0,e.length))}function sd(e){return es(Bt(e))}function oa(e,t,n){(n!==r&&!ln(e[t],n)||n===r&&!(t in e))&&fn(e,t,n)}function Yr(e,t,n){var i=e[t];(!(Xe.call(e,t)&&ln(i,n))||n===r&&!(t in e))&&fn(e,t,n)}function ki(e,t){for(var n=e.length;n--;)if(ln(e[n][0],t))return n;return-1}function ad(e,t,n,i){return Wn(e,function(l,f,m){t(i,l,n(l),m)}),i}function No(e,t){return e&&gn(t,Ct(t),e)}function od(e,t){return e&&gn(t,zt(t),e)}function fn(e,t,n){t=="__proto__"&&Ei?Ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function la(e,t){for(var n=-1,i=t.length,l=I(i),f=e==null;++n<i;)l[n]=f?r:Ga(e,t[n]);return l}function Kn(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Kt(e,t,n,i,l,f){var m,w=t&L,C=t&O,F=t&W;if(n&&(m=l?n(e,i,l,f):n(e)),m!==r)return m;if(!ut(e))return e;var R=_e(e);if(R){if(m=Xd(e),!w)return Bt(e,m)}else{var M=jt(e),V=M==P||M==B;if(Gn(e))return el(e,w);if(M==G||M==ce||V&&!l){if(m=C||V?{}:xl(e),!w)return C?Hd(e,od(m,e)):Md(e,No(m,e))}else{if(!Ze[M])return l?e:{};m=$d(e,M,w)}}f||(f=new an);var ee=f.get(e);if(ee)return ee;f.set(e,m),Ql(e)?e.forEach(function(ue){m.add(Kt(ue,t,n,ue,e,f))}):Yl(e)&&e.forEach(function(ue,Re){m.set(Re,Kt(ue,t,n,Re,e,f))});var me=F?C?La:Ta:C?zt:Ct,De=R?r:me(e);return rt(De||e,function(ue,Re){De&&(Re=ue,ue=e[Re]),Yr(m,Re,Kt(ue,t,n,Re,e,f))}),m}function ld(e){var t=Ct(e);return function(n){return jo(n,e,t)}}function jo(e,t,n){var i=n.length;if(e==null)return!i;for(e=it(e);i--;){var l=n[i],f=t[l],m=e[l];if(m===r&&!(l in e)||!f(m))return!1}return!0}function Fo(e,t,n){if(typeof e!="function")throw new Xt(g);return Zr(function(){e.apply(r,n)},t)}function Vr(e,t,n,i){var l=-1,f=Ci,m=!0,w=e.length,C=[],F=t.length;if(!w)return C;n&&(t=lt(t,Ut(n))),i?(f=Qs,m=!1):t.length>=u&&(f=Br,m=!1,t=new $n(t));e:for(;++l<w;){var R=e[l],M=n==null?R:n(R);if(R=i||R!==0?R:0,m&&M===M){for(var V=F;V--;)if(t[V]===M)continue e;C.push(R)}else f(t,M,i)||C.push(R)}return C}var Wn=sl(hn),Ro=sl(ua,!0);function cd(e,t){var n=!0;return Wn(e,function(i,l,f){return n=!!t(i,l,f),n}),n}function zi(e,t,n){for(var i=-1,l=e.length;++i<l;){var f=e[i],m=t(f);if(m!=null&&(w===r?m===m&&!Yt(m):n(m,w)))var w=m,C=f}return C}function ud(e,t,n,i){var l=e.length;for(n=be(n),n<0&&(n=-n>l?0:l+n),i=i===r||i>l?l:be(i),i<0&&(i+=l),i=n>i?0:$l(i);n<i;)e[n++]=t;return e}function Po(e,t){var n=[];return Wn(e,function(i,l,f){t(i,l,f)&&n.push(i)}),n}function bt(e,t,n,i,l){var f=-1,m=e.length;for(n||(n=Jd),l||(l=[]);++f<m;){var w=e[f];t>0&&n(w)?t>1?bt(w,t-1,n,i,l):On(l,w):i||(l[l.length]=w)}return l}var ca=al(),Eo=al(!0);function hn(e,t){return e&&ca(e,t,Ct)}function ua(e,t){return e&&Eo(e,t,Ct)}function Gi(e,t){return En(t,function(n){return wn(e[n])})}function Jn(e,t){t=kn(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[on(t[n++])];return n&&n==i?e:r}function Oo(e,t,n){var i=t(e);return _e(e)?i:On(i,n(e))}function Ot(e){return e==null?e===r?pe:fe:Qn&&Qn in it(e)?Yd(e):af(e)}function da(e,t){return e>t}function dd(e,t){return e!=null&&Xe.call(e,t)}function fd(e,t){return e!=null&&t in it(e)}function hd(e,t,n){return e>=Nt(t,n)&&e<St(t,n)}function fa(e,t,n){for(var i=n?Qs:Ci,l=e[0].length,f=e.length,m=f,w=I(f),C=1/0,F=[];m--;){var R=e[m];m&&t&&(R=lt(R,Ut(t))),C=Nt(R.length,C),w[m]=!n&&(t||l>=120&&R.length>=120)?new $n(m&&R):r}R=e[0];var M=-1,V=w[0];e:for(;++M<l&&F.length<C;){var ee=R[M],me=t?t(ee):ee;if(ee=n||ee!==0?ee:0,!(V?Br(V,me):i(F,me,n))){for(m=f;--m;){var De=w[m];if(!(De?Br(De,me):i(e[m],me,n)))continue e}V&&V.push(me),F.push(ee)}}return F}function gd(e,t,n,i){return hn(e,function(l,f,m){t(i,n(l),f,m)}),i}function Qr(e,t,n){t=kn(t,e),e=Sl(e,t);var i=e==null?e:e[on(Zt(t))];return i==null?r:Et(i,e,n)}function Mo(e){return ft(e)&&Ot(e)==ce}function pd(e){return ft(e)&&Ot(e)==pt}function md(e){return ft(e)&&Ot(e)==Je}function Xr(e,t,n,i,l){return e===t?!0:e==null||t==null||!ft(e)&&!ft(t)?e!==e&&t!==t:vd(e,t,n,i,Xr,l)}function vd(e,t,n,i,l,f){var m=_e(e),w=_e(t),C=m?Ke:jt(e),F=w?Ke:jt(t);C=C==ce?G:C,F=F==ce?G:F;var R=C==G,M=F==G,V=C==F;if(V&&Gn(e)){if(!Gn(t))return!1;m=!0,R=!1}if(V&&!R)return f||(f=new an),m||Ar(e)?ml(e,t,n,i,l,f):Ud(e,t,C,n,i,l,f);if(!(n&Z)){var ee=R&&Xe.call(e,"__wrapped__"),me=M&&Xe.call(t,"__wrapped__");if(ee||me){var De=ee?e.value():e,ue=me?t.value():t;return f||(f=new an),l(De,ue,n,i,f)}}return V?(f||(f=new an),qd(e,t,n,i,l,f)):!1}function yd(e){return ft(e)&&jt(e)==k}function ha(e,t,n,i){var l=n.length,f=l,m=!i;if(e==null)return!f;for(e=it(e);l--;){var w=n[l];if(m&&w[2]?w[1]!==e[w[0]]:!(w[0]in e))return!1}for(;++l<f;){w=n[l];var C=w[0],F=e[C],R=w[1];if(m&&w[2]){if(F===r&&!(C in e))return!1}else{var M=new an;if(i)var V=i(F,R,C,e,t,M);if(!(V===r?Xr(R,F,Z|K,i,M):V))return!1}}return!0}function Ho(e){if(!ut(e)||ef(e))return!1;var t=wn(e)?yu:ai;return t.test(er(e))}function xd(e){return ft(e)&&Ot(e)==H}function wd(e){return ft(e)&&jt(e)==$}function Ad(e){return ft(e)&&as(e.length)&&!!Ye[Ot(e)]}function Wo(e){return typeof e=="function"?e:e==null?Gt:typeof e=="object"?_e(e)?zo(e[0],e[1]):ko(e):lc(e)}function ga(e){if(!Jr(e))return Cu(e);var t=[];for(var n in it(e))Xe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _d(e){if(!ut(e))return sf(e);var t=Jr(e),n=[];for(var i in e)i=="constructor"&&(t||!Xe.call(e,i))||n.push(i);return n}function pa(e,t){return e<t}function Bo(e,t){var n=-1,i=kt(e)?I(e.length):[];return Wn(e,function(l,f,m){i[++n]=t(l,f,m)}),i}function ko(e){var t=Na(e);return t.length==1&&t[0][2]?Al(t[0][0],t[0][1]):function(n){return n===e||ha(n,e,t)}}function zo(e,t){return Fa(e)&&wl(t)?Al(on(e),t):function(n){var i=Ga(n,e);return i===r&&i===t?Ua(n,e):Xr(t,i,Z|K)}}function Ui(e,t,n,i,l){e!==t&&ca(t,function(f,m){if(l||(l=new an),ut(f))Sd(e,t,m,n,Ui,i,l);else{var w=i?i(Pa(e,m),f,m+"",e,t,l):r;w===r&&(w=f),oa(e,m,w)}},zt)}function Sd(e,t,n,i,l,f,m){var w=Pa(e,n),C=Pa(t,n),F=m.get(C);if(F){oa(e,n,F);return}var R=f?f(w,C,n+"",e,t,m):r,M=R===r;if(M){var V=_e(C),ee=!V&&Gn(C),me=!V&&!ee&&Ar(C);R=C,V||ee||me?_e(w)?R=w:mt(w)?R=Bt(w):ee?(M=!1,R=el(C,!0)):me?(M=!1,R=tl(C,!0)):R=[]:ei(C)||tr(C)?(R=w,tr(w)?R=Kl(w):(!ut(w)||wn(w))&&(R=xl(C))):M=!1}M&&(m.set(C,R),l(R,C,i,f,m),m.delete(C)),oa(e,n,R)}function Go(e,t){var n=e.length;if(n)return t+=t<0?n:0,xn(t,n)?e[t]:r}function Uo(e,t,n){t.length?t=lt(t,function(f){return _e(f)?function(m){return Jn(m,f.length===1?f[0]:f)}:f}):t=[Gt];var i=-1;t=lt(t,Ut(he()));var l=Bo(e,function(f,m,w){var C=lt(t,function(F){return F(f)});return{criteria:C,index:++i,value:f}});return $c(l,function(f,m){return Od(f,m,n)})}function Cd(e,t){return qo(e,t,function(n,i){return Ua(e,i)})}function qo(e,t,n){for(var i=-1,l=t.length,f={};++i<l;){var m=t[i],w=Jn(e,m);n(w,m)&&$r(f,kn(m,e),w)}return f}function bd(e){return function(t){return Jn(t,e)}}function ma(e,t,n,i){var l=i?Xc:ur,f=-1,m=t.length,w=e;for(e===t&&(t=Bt(t)),n&&(w=lt(e,Ut(n)));++f<m;)for(var C=0,F=t[f],R=n?n(F):F;(C=l(w,R,C,i))>-1;)w!==e&&Pi.call(w,C,1),Pi.call(e,C,1);return e}function Yo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var l=t[n];if(n==i||l!==f){var f=l;xn(l)?Pi.call(e,l,1):wa(e,l)}}return e}function va(e,t){return e+Mi(Do()*(t-e+1))}function Dd(e,t,n,i){for(var l=-1,f=St(Oi((t-e)/(n||1)),0),m=I(f);f--;)m[i?f:++l]=e,e+=n;return m}function ya(e,t){var n="";if(!e||t<1||t>Te)return n;do t%2&&(n+=e),t=Mi(t/2),t&&(e+=e);while(t);return n}function Ie(e,t){return Ea(_l(e,t,Gt),e+"")}function Td(e){return Io(_r(e))}function Ld(e,t){var n=_r(e);return es(n,Kn(t,0,n.length))}function $r(e,t,n,i){if(!ut(e))return e;t=kn(t,e);for(var l=-1,f=t.length,m=f-1,w=e;w!=null&&++l<f;){var C=on(t[l]),F=n;if(C==="__proto__"||C==="constructor"||C==="prototype")return e;if(l!=m){var R=w[C];F=i?i(R,C,w):r,F===r&&(F=ut(R)?R:xn(t[l+1])?[]:{})}Yr(w,C,F),w=w[C]}return e}var Vo=Hi?function(e,t){return Hi.set(e,t),e}:Gt,Id=Ei?function(e,t){return Ei(e,"toString",{configurable:!0,enumerable:!1,value:Ya(t),writable:!0})}:Gt;function Nd(e){return es(_r(e))}function Jt(e,t,n){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var f=I(l);++i<l;)f[i]=e[i+t];return f}function jd(e,t){var n;return Wn(e,function(i,l,f){return n=t(i,l,f),!n}),!!n}function qi(e,t,n){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=ye){for(;i<l;){var f=i+l>>>1,m=e[f];m!==null&&!Yt(m)&&(n?m<=t:m<t)?i=f+1:l=f}return l}return xa(e,t,Gt,n)}function xa(e,t,n,i){var l=0,f=e==null?0:e.length;if(f===0)return 0;t=n(t);for(var m=t!==t,w=t===null,C=Yt(t),F=t===r;l<f;){var R=Mi((l+f)/2),M=n(e[R]),V=M!==r,ee=M===null,me=M===M,De=Yt(M);if(m)var ue=i||me;else F?ue=me&&(i||V):w?ue=me&&V&&(i||!ee):C?ue=me&&V&&!ee&&(i||!De):ee||De?ue=!1:ue=i?M<=t:M<t;ue?l=R+1:f=R}return Nt(f,p)}function Qo(e,t){for(var n=-1,i=e.length,l=0,f=[];++n<i;){var m=e[n],w=t?t(m):m;if(!n||!ln(w,C)){var C=w;f[l++]=m===0?0:m}}return f}function Xo(e){return typeof e=="number"?e:Yt(e)?ve:+e}function qt(e){if(typeof e=="string")return e;if(_e(e))return lt(e,qt)+"";if(Yt(e))return To?To.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Bn(e,t,n){var i=-1,l=Ci,f=e.length,m=!0,w=[],C=w;if(n)m=!1,l=Qs;else if(f>=u){var F=t?null:zd(e);if(F)return Di(F);m=!1,l=Br,C=new $n}else C=t?[]:w;e:for(;++i<f;){var R=e[i],M=t?t(R):R;if(R=n||R!==0?R:0,m&&M===M){for(var V=C.length;V--;)if(C[V]===M)continue e;t&&C.push(M),w.push(R)}else l(C,M,n)||(C!==w&&C.push(M),w.push(R))}return w}function wa(e,t){t=kn(t,e);var n=-1,i=t.length;if(!i)return!0;for(;++n<i;){var l=on(t[n]);if(l==="__proto__"&&!Xe.call(e,"__proto__")||(l==="constructor"||l==="prototype")&&n<i-1)return!1}var f=Sl(e,t);return f==null||delete f[on(Zt(t))]}function $o(e,t,n,i){return $r(e,t,n(Jn(e,t)),i)}function Yi(e,t,n,i){for(var l=e.length,f=i?l:-1;(i?f--:++f<l)&&t(e[f],f,e););return n?Jt(e,i?0:f,i?f+1:l):Jt(e,i?f+1:0,i?l:f)}function Ko(e,t){var n=e;return n instanceof Pe&&(n=n.value()),Xs(t,function(i,l){return l.func.apply(l.thisArg,On([i],l.args))},n)}function Aa(e,t,n){var i=e.length;if(i<2)return i?Bn(e[0]):[];for(var l=-1,f=I(i);++l<i;)for(var m=e[l],w=-1;++w<i;)w!=l&&(f[l]=Vr(f[l]||m,e[w],t,n));return Bn(bt(f,1),t,n)}function Jo(e,t,n){for(var i=-1,l=e.length,f=t.length,m={};++i<l;){var w=i<f?t[i]:r;n(m,e[i],w)}return m}function _a(e){return mt(e)?e:[]}function Sa(e){return typeof e=="function"?e:Gt}function kn(e,t){return _e(e)?e:Fa(e,t)?[e]:Tl($e(e))}var Fd=Ie;function zn(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Jt(e,t,n)}var Zo=xu||function(e){return et.clearTimeout(e)};function el(e,t){if(t)return e.slice();var n=e.length,i=Ao?Ao(n):new e.constructor(n);return e.copy(i),i}function Ca(e){var t=new e.constructor(e.byteLength);return new Fi(t).set(new Fi(e)),t}function Rd(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Pd(e){var t=new e.constructor(e.source,si.exec(e));return t.lastIndex=e.lastIndex,t}function Ed(e){return qr?it(qr.call(e)):{}}function tl(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function nl(e,t){if(e!==t){var n=e!==r,i=e===null,l=e===e,f=Yt(e),m=t!==r,w=t===null,C=t===t,F=Yt(t);if(!w&&!F&&!f&&e>t||f&&m&&C&&!w&&!F||i&&m&&C||!n&&C||!l)return 1;if(!i&&!f&&!F&&e<t||F&&n&&l&&!i&&!f||w&&n&&l||!m&&l||!C)return-1}return 0}function Od(e,t,n){for(var i=-1,l=e.criteria,f=t.criteria,m=l.length,w=n.length;++i<m;){var C=nl(l[i],f[i]);if(C){if(i>=w)return C;var F=n[i];return C*(F=="desc"?-1:1)}}return e.index-t.index}function rl(e,t,n,i){for(var l=-1,f=e.length,m=n.length,w=-1,C=t.length,F=St(f-m,0),R=I(C+F),M=!i;++w<C;)R[w]=t[w];for(;++l<m;)(M||l<f)&&(R[n[l]]=e[l]);for(;F--;)R[w++]=e[l++];return R}function il(e,t,n,i){for(var l=-1,f=e.length,m=-1,w=n.length,C=-1,F=t.length,R=St(f-w,0),M=I(R+F),V=!i;++l<R;)M[l]=e[l];for(var ee=l;++C<F;)M[ee+C]=t[C];for(;++m<w;)(V||l<f)&&(M[ee+n[m]]=e[l++]);return M}function Bt(e,t){var n=-1,i=e.length;for(t||(t=I(i));++n<i;)t[n]=e[n];return t}function gn(e,t,n,i){var l=!n;n||(n={});for(var f=-1,m=t.length;++f<m;){var w=t[f],C=i?i(n[w],e[w],w,n,e):r;C===r&&(C=e[w]),l?fn(n,w,C):Yr(n,w,C)}return n}function Md(e,t){return gn(e,ja(e),t)}function Hd(e,t){return gn(e,vl(e),t)}function Vi(e,t){return function(n,i){var l=_e(n)?Fe:ad,f=t?t():{};return l(n,e,he(i,2),f)}}function yr(e){return Ie(function(t,n){var i=-1,l=n.length,f=l>1?n[l-1]:r,m=l>2?n[2]:r;for(f=e.length>3&&typeof f=="function"?(l--,f):r,m&&Mt(n[0],n[1],m)&&(f=l<3?r:f,l=1),t=it(t);++i<l;){var w=n[i];w&&e(t,w,i,f)}return t})}function sl(e,t){return function(n,i){if(n==null)return n;if(!kt(n))return e(n,i);for(var l=n.length,f=t?l:-1,m=it(n);(t?f--:++f<l)&&i(m[f],f,m)!==!1;);return n}}function al(e){return function(t,n,i){for(var l=-1,f=it(t),m=i(t),w=m.length;w--;){var C=m[e?w:++l];if(n(f[C],C,f)===!1)break}return t}}function Wd(e,t,n){var i=t&U,l=Kr(e);function f(){var m=this&&this!==et&&this instanceof f?l:e;return m.apply(i?n:this,arguments)}return f}function ol(e){return function(t){t=$e(t);var n=dr(t)?sn(t):r,i=n?n[0]:t.charAt(0),l=n?zn(n,1).join(""):t.slice(1);return i[e]()+l}}function xr(e){return function(t){return Xs(ac(sc(t).replace(ks,"")),e,"")}}function Kr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=vr(e.prototype),i=e.apply(n,t);return ut(i)?i:n}}function Bd(e,t,n){var i=Kr(e);function l(){for(var f=arguments.length,m=I(f),w=f,C=wr(l);w--;)m[w]=arguments[w];var F=f<3&&m[0]!==C&&m[f-1]!==C?[]:Mn(m,C);if(f-=F.length,f<n)return fl(e,t,Qi,l.placeholder,r,m,F,r,r,n-f);var R=this&&this!==et&&this instanceof l?i:e;return Et(R,this,m)}return l}function ll(e){return function(t,n,i){var l=it(t);if(!kt(t)){var f=he(n,3);t=Ct(t),n=function(w){return f(l[w],w,l)}}var m=e(t,n,i);return m>-1?l[f?t[m]:m]:r}}function cl(e){return yn(function(t){var n=t.length,i=n,l=$t.prototype.thru;for(e&&t.reverse();i--;){var f=t[i];if(typeof f!="function")throw new Xt(g);if(l&&!m&&Ji(f)=="wrapper")var m=new $t([],!0)}for(i=m?i:n;++i<n;){f=t[i];var w=Ji(f),C=w=="wrapper"?Ia(f):r;C&&Ra(C[0])&&C[1]==(ge|re|le|de)&&!C[4].length&&C[9]==1?m=m[Ji(C[0])].apply(m,C[3]):m=f.length==1&&Ra(f)?m[w]():m.thru(f)}return function(){var F=arguments,R=F[0];if(m&&F.length==1&&_e(R))return m.plant(R).value();for(var M=0,V=n?t[M].apply(this,F):R;++M<n;)V=t[M].call(this,V);return V}})}function Qi(e,t,n,i,l,f,m,w,C,F){var R=t&ge,M=t&U,V=t&te,ee=t&(re|We),me=t&Ge,De=V?r:Kr(e);function ue(){for(var Re=arguments.length,Me=I(Re),Vt=Re;Vt--;)Me[Vt]=arguments[Vt];if(ee)var Ht=wr(ue),Qt=Jc(Me,Ht);if(i&&(Me=rl(Me,i,l,ee)),f&&(Me=il(Me,f,m,ee)),Re-=Qt,ee&&Re<F){var vt=Mn(Me,Ht);return fl(e,t,Qi,ue.placeholder,n,Me,vt,w,C,F-Re)}var cn=M?n:this,_n=V?cn[e]:e;return Re=Me.length,w?Me=of(Me,w):me&&Re>1&&Me.reverse(),R&&C<Re&&(Me.length=C),this&&this!==et&&this instanceof ue&&(_n=De||Kr(_n)),_n.apply(cn,Me)}return ue}function ul(e,t){return function(n,i){return gd(n,e,t(i),{})}}function Xi(e,t){return function(n,i){var l;if(n===r&&i===r)return t;if(n!==r&&(l=n),i!==r){if(l===r)return i;typeof n=="string"||typeof i=="string"?(n=qt(n),i=qt(i)):(n=Xo(n),i=Xo(i)),l=e(n,i)}return l}}function ba(e){return yn(function(t){return t=lt(t,Ut(he())),Ie(function(n){var i=this;return e(t,function(l){return Et(l,i,n)})})})}function $i(e,t){t=t===r?" ":qt(t);var n=t.length;if(n<2)return n?ya(t,e):t;var i=ya(t,Oi(e/fr(t)));return dr(t)?zn(sn(i),0,e).join(""):i.slice(0,e)}function kd(e,t,n,i){var l=t&U,f=Kr(e);function m(){for(var w=-1,C=arguments.length,F=-1,R=i.length,M=I(R+C),V=this&&this!==et&&this instanceof m?f:e;++F<R;)M[F]=i[F];for(;C--;)M[F++]=arguments[++w];return Et(V,l?n:this,M)}return m}function dl(e){return function(t,n,i){return i&&typeof i!="number"&&Mt(t,n,i)&&(n=i=r),t=An(t),n===r?(n=t,t=0):n=An(n),i=i===r?t<n?1:-1:An(i),Dd(t,n,i,e)}}function Ki(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=en(t),n=en(n)),e(t,n)}}function fl(e,t,n,i,l,f,m,w,C,F){var R=t&re,M=R?m:r,V=R?r:m,ee=R?f:r,me=R?r:f;t|=R?le:Se,t&=~(R?Se:le),t&q||(t&=-4);var De=[e,t,l,ee,M,me,V,w,C,F],ue=n.apply(r,De);return Ra(e)&&Cl(ue,De),ue.placeholder=i,bl(ue,e,t)}function Da(e){var t=_t[e];return function(n,i){if(n=en(n),i=i==null?0:Nt(be(i),292),i&&bo(n)){var l=($e(n)+"e").split("e"),f=t(l[0]+"e"+(+l[1]+i));return l=($e(f)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(n)}}var zd=pr&&1/Di(new pr([,-0]))[1]==Oe?function(e){return new pr(e)}:Xa;function hl(e){return function(t){var n=jt(t);return n==k?na(t):n==$?su(t):Kc(t,e(t))}}function vn(e,t,n,i,l,f,m,w){var C=t&te;if(!C&&typeof e!="function")throw new Xt(g);var F=i?i.length:0;if(F||(t&=-97,i=l=r),m=m===r?m:St(be(m),0),w=w===r?w:be(w),F-=l?l.length:0,t&Se){var R=i,M=l;i=l=r}var V=C?r:Ia(e),ee=[e,t,n,i,l,R,M,f,m,w];if(V&&rf(ee,V),e=ee[0],t=ee[1],n=ee[2],i=ee[3],l=ee[4],w=ee[9]=ee[9]===r?C?0:e.length:St(ee[9]-F,0),!w&&t&(re|We)&&(t&=-25),!t||t==U)var me=Wd(e,t,n);else t==re||t==We?me=Bd(e,t,w):(t==le||t==(U|le))&&!l.length?me=kd(e,t,n,i):me=Qi.apply(r,ee);var De=V?Vo:Cl;return bl(De(me,ee),e,t)}function gl(e,t,n,i){return e===r||ln(e,gr[n])&&!Xe.call(i,n)?t:e}function pl(e,t,n,i,l,f){return ut(e)&&ut(t)&&(f.set(t,e),Ui(e,t,r,pl,f),f.delete(t)),e}function Gd(e){return ei(e)?r:e}function ml(e,t,n,i,l,f){var m=n&Z,w=e.length,C=t.length;if(w!=C&&!(m&&C>w))return!1;var F=f.get(e),R=f.get(t);if(F&&R)return F==t&&R==e;var M=-1,V=!0,ee=n&K?new $n:r;for(f.set(e,t),f.set(t,e);++M<w;){var me=e[M],De=t[M];if(i)var ue=m?i(De,me,M,t,e,f):i(me,De,M,e,t,f);if(ue!==r){if(ue)continue;V=!1;break}if(ee){if(!$s(t,function(Re,Me){if(!Br(ee,Me)&&(me===Re||l(me,Re,n,i,f)))return ee.push(Me)})){V=!1;break}}else if(!(me===De||l(me,De,n,i,f))){V=!1;break}}return f.delete(e),f.delete(t),V}function Ud(e,t,n,i,l,f,m){switch(n){case ke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pt:return!(e.byteLength!=t.byteLength||!f(new Fi(e),new Fi(t)));case gt:case Je:case Ae:return ln(+e,+t);case je:return e.name==t.name&&e.message==t.message;case H:case Q:return e==t+"";case k:var w=na;case $:var C=i&Z;if(w||(w=Di),e.size!=t.size&&!C)return!1;var F=m.get(e);if(F)return F==t;i|=K,m.set(e,t);var R=ml(w(e),w(t),i,l,f,m);return m.delete(e),R;case Ce:if(qr)return qr.call(e)==qr.call(t)}return!1}function qd(e,t,n,i,l,f){var m=n&Z,w=Ta(e),C=w.length,F=Ta(t),R=F.length;if(C!=R&&!m)return!1;for(var M=C;M--;){var V=w[M];if(!(m?V in t:Xe.call(t,V)))return!1}var ee=f.get(e),me=f.get(t);if(ee&&me)return ee==t&&me==e;var De=!0;f.set(e,t),f.set(t,e);for(var ue=m;++M<C;){V=w[M];var Re=e[V],Me=t[V];if(i)var Vt=m?i(Me,Re,V,t,e,f):i(Re,Me,V,e,t,f);if(!(Vt===r?Re===Me||l(Re,Me,n,i,f):Vt)){De=!1;break}ue||(ue=V=="constructor")}if(De&&!ue){var Ht=e.constructor,Qt=t.constructor;Ht!=Qt&&"constructor"in e&&"constructor"in t&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof Qt=="function"&&Qt instanceof Qt)&&(De=!1)}return f.delete(e),f.delete(t),De}function yn(e){return Ea(_l(e,r,jl),e+"")}function Ta(e){return Oo(e,Ct,ja)}function La(e){return Oo(e,zt,vl)}var Ia=Hi?function(e){return Hi.get(e)}:Xa;function Ji(e){for(var t=e.name+"",n=mr[t],i=Xe.call(mr,t)?n.length:0;i--;){var l=n[i],f=l.func;if(f==null||f==e)return l.name}return t}function wr(e){var t=Xe.call(d,"placeholder")?d:e;return t.placeholder}function he(){var e=d.iteratee||Va;return e=e===Va?Wo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zi(e,t){var n=e.__data__;return Zd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Na(e){for(var t=Ct(e),n=t.length;n--;){var i=t[n],l=e[i];t[n]=[i,l,wl(l)]}return t}function Zn(e,t){var n=nu(e,t);return Ho(n)?n:r}function Yd(e){var t=Xe.call(e,Qn),n=e[Qn];try{e[Qn]=r;var i=!0}catch{}var l=Ni.call(e);return i&&(t?e[Qn]=n:delete e[Qn]),l}var ja=ia?function(e){return e==null?[]:(e=it(e),En(ia(e),function(t){return So.call(e,t)}))}:$a,vl=ia?function(e){for(var t=[];e;)On(t,ja(e)),e=Ri(e);return t}:$a,jt=Ot;(sa&&jt(new sa(new ArrayBuffer(1)))!=ke||zr&&jt(new zr)!=k||aa&&jt(aa.resolve())!=Y||pr&&jt(new pr)!=$||Gr&&jt(new Gr)!=se)&&(jt=function(e){var t=Ot(e),n=t==G?e.constructor:r,i=n?er(n):"";if(i)switch(i){case Lu:return ke;case Iu:return k;case Nu:return Y;case ju:return $;case Fu:return se}return t});function Vd(e,t,n){for(var i=-1,l=n.length;++i<l;){var f=n[i],m=f.size;switch(f.type){case"drop":e+=m;break;case"dropRight":t-=m;break;case"take":t=Nt(t,e+m);break;case"takeRight":e=St(e,t-m);break}}return{start:e,end:t}}function Qd(e){var t=e.match(xs);return t?t[1].split(ir):[]}function yl(e,t,n){t=kn(t,e);for(var i=-1,l=t.length,f=!1;++i<l;){var m=on(t[i]);if(!(f=e!=null&&n(e,m)))break;e=e[m]}return f||++i!=l?f:(l=e==null?0:e.length,!!l&&as(l)&&xn(m,l)&&(_e(e)||tr(e)))}function Xd(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function xl(e){return typeof e.constructor=="function"&&!Jr(e)?vr(Ri(e)):{}}function $d(e,t,n){var i=e.constructor;switch(t){case pt:return Ca(e);case gt:case Je:return new i(+e);case ke:return Rd(e,n);case Ft:case Ue:case nn:case rn:case Rt:case Ln:case In:case Nn:case jn:return tl(e,n);case k:return new i;case Ae:case Q:return new i(e);case H:return Pd(e);case $:return new i;case Ce:return Ed(e)}}function Kd(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ys,`{
|
|
27
|
+
${O},${W},${y(ge)},${de?.length>0?`${de}%`:""},${Z},${K}`:""}).join("")}),A=(D,L)=>D===Ja.QuestionType.Rating?L?.length?`${L}%`:"":y(L||"");return{exportSessionsCsv:u}};function Ic(a,s,r,o,u){o=o||{};var h=1.15,g=u.internal.scaleFactor,y=u.internal.getFontSize()/g,x=u.getLineHeightFactor?u.getLineHeightFactor():h,v=y*x,A=/\r\n|\r|\n/g,D="",L=1;if((o.valign==="middle"||o.valign==="bottom"||o.halign==="center"||o.halign==="right")&&(D=typeof a=="string"?a.split(A):a,L=D.length||1),r+=y*(2-h),o.valign==="middle"?r-=L/2*v:o.valign==="bottom"&&(r-=L*v),o.halign==="center"||o.halign==="right"){var O=y;if(o.halign==="center"&&(O*=.5),D&&L>=1){for(var W=0;W<D.length;W++)u.text(D[W],s-u.getStringUnitWidth(D[W])*O,r),r+=v;return u}s-=u.getStringUnitWidth(a)*O}return o.halign==="justify"?u.text(a,s,r,{maxWidth:o.maxWidth||100,align:"justify"}):u.text(a,s,r),u}var gc={},Sr=(function(){function a(s){this.jsPDFDocument=s,this.userStyles={textColor:s.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:s.internal.getFontSize(),fontStyle:s.internal.getFont().fontStyle,font:s.internal.getFont().fontName,lineWidth:s.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:s.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return a.setDefaults=function(s,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=s:gc=s},a.unifyColor=function(s){return Array.isArray(s)?s:typeof s=="number"?[s,s,s]:typeof s=="string"?[s]:null},a.prototype.applyStyles=function(s,r){var o,u,h;r===void 0&&(r=!1),s.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(s.fontStyle);var g=this.jsPDFDocument.internal.getFont(),y=g.fontStyle,x=g.fontName;if(s.font&&(x=s.font),s.fontStyle){y=s.fontStyle;var v=this.getFontList()[x];v&&v.indexOf(y)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(v[0]),y=v[0])}if(this.jsPDFDocument.setFont(x,y),s.fontSize&&this.jsPDFDocument.setFontSize(s.fontSize),!r){var A=a.unifyColor(s.fillColor);A&&(o=this.jsPDFDocument).setFillColor.apply(o,A),A=a.unifyColor(s.textColor),A&&(u=this.jsPDFDocument).setTextColor.apply(u,A),A=a.unifyColor(s.lineColor),A&&(h=this.jsPDFDocument).setDrawColor.apply(h,A),typeof s.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(s.lineWidth)}},a.prototype.splitTextToSize=function(s,r,o){return this.jsPDFDocument.splitTextToSize(s,r,o)},a.prototype.rect=function(s,r,o,u,h){return this.jsPDFDocument.rect(s,r,o,u,h)},a.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},a.prototype.getTextWidth=function(s){return this.jsPDFDocument.getTextWidth(s)},a.prototype.getDocument=function(){return this.jsPDFDocument},a.prototype.setPage=function(s){this.jsPDFDocument.setPage(s)},a.prototype.addPage=function(){return this.jsPDFDocument.addPage()},a.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},a.prototype.getGlobalOptions=function(){return gc||{}},a.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},a.prototype.pageSize=function(){var s=this.jsPDFDocument.internal.pageSize;return s.width==null&&(s={width:s.getWidth(),height:s.getHeight()}),s},a.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},a.prototype.getLineHeightFactor=function(){var s=this.jsPDFDocument;return s.getLineHeightFactor?s.getLineHeightFactor():1.15},a.prototype.getLineHeight=function(s){return s/this.scaleFactor()*this.getLineHeightFactor()},a.prototype.pageNumber=function(){var s=this.jsPDFDocument.internal.getCurrentPageInfo();return s?s.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},a})(),ro=function(a,s){return ro=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])},ro(a,s)};function Nc(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");ro(a,s);function r(){this.constructor=a}a.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}var jc=(function(a){Nc(s,a);function s(r){var o=a.call(this)||this;return o._element=r,o}return s})(Array);function dv(a){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/a,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function fv(a){var s={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return s[a]}function us(a,s,r){r.applyStyles(s,!0);var o=Array.isArray(a)?a:[a],u=o.map(function(h){return r.getTextWidth(h)}).reduce(function(h,g){return Math.max(h,g)},0);return u}function Rc(a,s,r,o){var u=s.settings.tableLineWidth,h=s.settings.tableLineColor;a.applyStyles({lineWidth:u,lineColor:h});var g=Fc(u,!1);g&&a.rect(r.x,r.y,s.getWidth(a.pageSize().width),o.y-r.y,g)}function Fc(a,s){var r=a>0,o=s||s===0;return r&&o?"DF":r?"S":o?"F":null}function hs(a,s){var r,o,u,h;if(a=a||s,Array.isArray(a)){if(a.length>=4)return{top:a[0],right:a[1],bottom:a[2],left:a[3]};if(a.length===3)return{top:a[0],right:a[1],bottom:a[2],left:a[1]};if(a.length===2)return{top:a[0],right:a[1],bottom:a[0],left:a[1]};a.length===1?a=a[0]:a=s}return typeof a=="object"?(typeof a.vertical=="number"&&(a.top=a.vertical,a.bottom=a.vertical),typeof a.horizontal=="number"&&(a.right=a.horizontal,a.left=a.horizontal),{left:(r=a.left)!==null&&r!==void 0?r:s,top:(o=a.top)!==null&&o!==void 0?o:s,right:(u=a.right)!==null&&u!==void 0?u:s,bottom:(h=a.bottom)!==null&&h!==void 0?h:s}):(typeof a!="number"&&(a=s),{top:a,right:a,bottom:a,left:a})}function Pc(a,s){var r=hs(s.settings.margin,0);return a.pageSize().width-(r.left+r.right)}function hv(a,s,r,o,u){var h={},g=1.3333333333333333,y=Za(s,function(q){return u.getComputedStyle(q).backgroundColor});y!=null&&(h.fillColor=y);var x=Za(s,function(q){return u.getComputedStyle(q).color});x!=null&&(h.textColor=x);var v=pv(o,r);v&&(h.cellPadding=v);var A="borderTopColor",D=g*r,L=o.borderTopWidth;if(o.borderBottomWidth===L&&o.borderRightWidth===L&&o.borderLeftWidth===L){var O=(parseFloat(L)||0)/D;O&&(h.lineWidth=O)}else h.lineWidth={top:(parseFloat(o.borderTopWidth)||0)/D,right:(parseFloat(o.borderRightWidth)||0)/D,bottom:(parseFloat(o.borderBottomWidth)||0)/D,left:(parseFloat(o.borderLeftWidth)||0)/D},h.lineWidth.top||(h.lineWidth.right?A="borderRightColor":h.lineWidth.bottom?A="borderBottomColor":h.lineWidth.left&&(A="borderLeftColor"));var W=Za(s,function(q){return u.getComputedStyle(q)[A]});W!=null&&(h.lineColor=W);var Z=["left","right","center","justify"];Z.indexOf(o.textAlign)!==-1&&(h.halign=o.textAlign),Z=["middle","bottom","top"],Z.indexOf(o.verticalAlign)!==-1&&(h.valign=o.verticalAlign);var K=parseInt(o.fontSize||"");isNaN(K)||(h.fontSize=K/g);var U=gv(o);U&&(h.fontStyle=U);var te=(o.fontFamily||"").toLowerCase();return a.indexOf(te)!==-1&&(h.font=te),h}function gv(a){var s="";return(a.fontWeight==="bold"||a.fontWeight==="bolder"||parseInt(a.fontWeight)>=700)&&(s="bold"),(a.fontStyle==="italic"||a.fontStyle==="oblique")&&(s+="italic"),s}function Za(a,s){var r=Ec(a,s);if(!r)return null;var o=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!o||!Array.isArray(o))return null;var u=[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])],h=parseInt(o[4]);return h===0||isNaN(u[0])||isNaN(u[1])||isNaN(u[2])?null:u}function Ec(a,s){var r=s(a);return r==="rgba(0, 0, 0, 0)"||r==="transparent"||r==="initial"||r==="inherit"?a.parentElement==null?null:Ec(a.parentElement,s):r}function pv(a,s){var r=[a.paddingTop,a.paddingRight,a.paddingBottom,a.paddingLeft],o=96/(72/s),u=(parseInt(a.lineHeight)-parseInt(a.fontSize))/s/2,h=r.map(function(y){return parseInt(y||"0")/o}),g=hs(h,0);return u>g.top&&(g.top=u),u>g.bottom&&(g.bottom=u),g}function Oc(a,s,r,o,u){var h,g;o===void 0&&(o=!1),u===void 0&&(u=!1);var y;typeof s=="string"?y=r.document.querySelector(s):y=s;var x=Object.keys(a.getFontList()),v=a.scaleFactor(),A=[],D=[],L=[];if(!y)return console.error("Html table could not be found with input: ",s),{head:A,body:D,foot:L};for(var O=0;O<y.rows.length;O++){var W=y.rows[O],Z=(g=(h=W?.parentElement)===null||h===void 0?void 0:h.tagName)===null||g===void 0?void 0:g.toLowerCase(),K=mv(x,v,r,W,o,u);K&&(Z==="thead"?A.push(K):Z==="tfoot"?L.push(K):D.push(K))}return{head:A,body:D,foot:L}}function mv(a,s,r,o,u,h){for(var g=new jc(o),y=0;y<o.cells.length;y++){var x=o.cells[y],v=r.getComputedStyle(x);if(u||v.display!=="none"){var A=void 0;h&&(A=hv(a,x,s,v,r)),g.push({rowSpan:x.rowSpan,colSpan:x.colSpan,styles:A,_element:x,content:vv(x)})}}var D=r.getComputedStyle(o);if(g.length>0&&(u||D.display!=="none"))return g}function vv(a){var s=a.cloneNode(!0);return s.innerHTML=s.innerHTML.replace(/\n/g,"").replace(/ +/g," "),s.innerHTML=s.innerHTML.split(/<br.*?>/).map(function(r){return r.trim()}).join(`
|
|
28
|
+
`),s.innerText||s.textContent||""}function yv(a,s,r){for(var o=0,u=[a,s,r];o<u.length;o++){var h=u[o];h&&typeof h!="object"&&console.error("The options parameter should be of type object, is: "+typeof h),h.startY&&typeof h.startY!="number"&&(console.error("Invalid value for startY option",h.startY),delete h.startY)}}function bn(a,s,r,o,u){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var h=Object(a),g=1;g<arguments.length;g++){var y=arguments[g];if(y!=null)for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(h[x]=y[x])}return h}function Mc(a,s){var r=new Sr(a),o=r.getDocumentOptions(),u=r.getGlobalOptions();yv(u,o,s);var h=bn({},u,o,s),g;typeof window<"u"&&(g=window);var y=xv(u,o,s),x=wv(u,o,s),v=Av(r,h),A=Sv(r,h,g);return{id:s.tableId,content:A,hooks:x,styles:y,settings:v}}function xv(a,s,r){for(var o={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},u=function(x){if(x==="columnStyles"){var v=a[x],A=s[x],D=r[x];o.columnStyles=bn({},v,A,D)}else{var L=[a,s,r],O=L.map(function(W){return W[x]||{}});o[x]=bn({},O[0],O[1],O[2])}},h=0,g=Object.keys(o);h<g.length;h++){var y=g[h];u(y)}return o}function wv(a,s,r){for(var o=[a,s,r],u={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},h=0,g=o;h<g.length;h++){var y=g[h];y.didParseCell&&u.didParseCell.push(y.didParseCell),y.willDrawCell&&u.willDrawCell.push(y.willDrawCell),y.didDrawCell&&u.didDrawCell.push(y.didDrawCell),y.willDrawPage&&u.willDrawPage.push(y.willDrawPage),y.didDrawPage&&u.didDrawPage.push(y.didDrawPage)}return u}function Av(a,s){var r,o,u,h,g,y,x,v,A,D,L,O,W=hs(s.margin,40/a.scaleFactor()),Z=(r=_v(a,s.startY))!==null&&r!==void 0?r:W.top,K;s.showFoot===!0?K="everyPage":s.showFoot===!1?K="never":K=(o=s.showFoot)!==null&&o!==void 0?o:"everyPage";var U;s.showHead===!0?U="everyPage":s.showHead===!1?U="never":U=(u=s.showHead)!==null&&u!==void 0?u:"everyPage";var te=(h=s.useCss)!==null&&h!==void 0?h:!1,q=s.theme||(te?"plain":"striped"),ie=!!s.horizontalPageBreak,We=(g=s.horizontalPageBreakRepeat)!==null&&g!==void 0?g:null;return{includeHiddenHtml:(y=s.includeHiddenHtml)!==null&&y!==void 0?y:!1,useCss:te,theme:q,startY:Z,margin:W,pageBreak:(x=s.pageBreak)!==null&&x!==void 0?x:"auto",rowPageBreak:(v=s.rowPageBreak)!==null&&v!==void 0?v:"auto",tableWidth:(A=s.tableWidth)!==null&&A!==void 0?A:"auto",showHead:U,showFoot:K,tableLineWidth:(D=s.tableLineWidth)!==null&&D!==void 0?D:0,tableLineColor:(L=s.tableLineColor)!==null&&L!==void 0?L:200,horizontalPageBreak:ie,horizontalPageBreakRepeat:We,horizontalPageBreakBehaviour:(O=s.horizontalPageBreakBehaviour)!==null&&O!==void 0?O:"afterAllRows"}}function _v(a,s){var r=a.getLastAutoTable(),o=a.scaleFactor(),u=a.pageNumber(),h=!1;if(r&&r.startPageNumber){var g=r.startPageNumber+r.pageNumber-1;h=g===u}return typeof s=="number"?s:(s==null||s===!1)&&h&&r?.finalY!=null?r.finalY+20/o:null}function Sv(a,s,r){var o=s.head||[],u=s.body||[],h=s.foot||[];if(s.html){var g=s.includeHiddenHtml;if(r){var y=Oc(a,s.html,r,g,s.useCss)||{};o=y.head||o,u=y.body||o,h=y.foot||o}else console.error("Cannot parse html in non browser environment")}var x=s.columns||Cv(o,u,h);return{columns:x,head:o,body:u,foot:h}}function Cv(a,s,r){var o=a[0]||s[0]||r[0]||[],u=[];return Object.keys(o).filter(function(h){return h!=="_element"}).forEach(function(h){var g=1,y;Array.isArray(o)?y=o[parseInt(h)]:y=o[h],typeof y=="object"&&!Array.isArray(y)&&(g=y?.colSpan||1);for(var x=0;x<g;x++){var v=void 0;Array.isArray(o)?v=u.length:v=h+(x>0?"_".concat(x):"");var A={dataKey:v};u.push(A)}}),u}var io=(function(){function a(s,r,o){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=o,this.doc=s.getDocument()}return a})(),bv=(function(a){Nc(s,a);function s(r,o,u,h,g,y){var x=a.call(this,r,o,y)||this;return x.cell=u,x.row=h,x.column=g,x.section=h.section,x}return s})(io),Dv=(function(){function a(s,r){this.pageNumber=1,this.id=s.id,this.settings=s.settings,this.styles=s.styles,this.hooks=s.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return a.prototype.getHeadHeight=function(s){return this.head.reduce(function(r,o){return r+o.getMaxCellHeight(s)},0)},a.prototype.getFootHeight=function(s){return this.foot.reduce(function(r,o){return r+o.getMaxCellHeight(s)},0)},a.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},a.prototype.callCellHooks=function(s,r,o,u,h,g){for(var y=0,x=r;y<x.length;y++){var v=x[y],A=new bv(s,this,o,u,h,g),D=v(A)===!1;if(o.text=Array.isArray(o.text)?o.text:[o.text],D)return!1}return!0},a.prototype.callEndPageHooks=function(s,r){s.applyStyles(s.userStyles);for(var o=0,u=this.hooks.didDrawPage;o<u.length;o++){var h=u[o];h(new io(s,this,r))}},a.prototype.callWillDrawPageHooks=function(s,r){for(var o=0,u=this.hooks.willDrawPage;o<u.length;o++){var h=u[o];h(new io(s,this,r))}},a.prototype.getWidth=function(s){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(u,h){return u+h.wrappedWidth},0);return r}else{var o=this.settings.margin;return s-o.left-o.right}},a})(),Hc=(function(){function a(s,r,o,u,h){h===void 0&&(h=!1),this.height=0,this.raw=s,s instanceof jc&&(this.raw=s._element,this.element=s._element),this.index=r,this.section=o,this.cells=u,this.spansMultiplePages=h}return a.prototype.getMaxCellHeight=function(s){var r=this;return s.reduce(function(o,u){var h;return Math.max(o,((h=r.cells[u.index])===null||h===void 0?void 0:h.height)||0)},0)},a.prototype.hasRowSpan=function(s){var r=this;return s.filter(function(o){var u=r.cells[o.index];return u?u.rowSpan>1:!1}).length>0},a.prototype.canEntireRowFit=function(s,r){return this.getMaxCellHeight(r)<=s},a.prototype.getMinimumRowHeight=function(s,r){var o=this;return s.reduce(function(u,h){var g=o.cells[h.index];if(!g)return 0;var y=r.getLineHeight(g.styles.fontSize),x=g.padding("vertical"),v=x+y;return v>u?v:u},0)},a})(),Wc=(function(){function a(s,r,o){var u;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=r,this.section=o,this.raw=s;var h=s;s!=null&&typeof s=="object"&&!Array.isArray(s)?(this.rowSpan=s.rowSpan||1,this.colSpan=s.colSpan||1,h=(u=s.content)!==null&&u!==void 0?u:s,s._element&&(this.raw=s._element)):(this.rowSpan=1,this.colSpan=1);var g=h!=null?""+h:"",y=/\r\n|\r|\n/g;this.text=g.split(y)}return a.prototype.getTextPos=function(){var s;if(this.styles.valign==="top")s=this.y+this.padding("top");else if(this.styles.valign==="bottom")s=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");s=this.y+r/2+this.padding("top")}var o;if(this.styles.halign==="right")o=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var u=this.width-this.padding("horizontal");o=this.x+u/2+this.padding("left")}else o=this.x+this.padding("left");return{x:o,y:s}},a.prototype.getContentHeight=function(s,r){r===void 0&&(r=1.15);var o=Array.isArray(this.text)?this.text.length:1,u=this.styles.fontSize/s*r,h=o*u+this.padding("vertical");return Math.max(h,this.styles.minCellHeight)},a.prototype.padding=function(s){var r=hs(this.styles.cellPadding,0);return s==="vertical"?r.top+r.bottom:s==="horizontal"?r.left+r.right:r[s]},a})(),Tv=(function(){function a(s,r,o){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=s,this.raw=r,this.index=o}return a.prototype.getMaxCustomCellWidth=function(s){for(var r=0,o=0,u=s.allRows();o<u.length;o++){var h=u[o],g=h.cells[this.index];g&&typeof g.styles.cellWidth=="number"&&(r=Math.max(r,g.styles.cellWidth))}return r},a})();function Lv(a,s){Iv(a,s);var r=[],o=0;s.columns.forEach(function(h){var g=h.getMaxCustomCellWidth(s);g?h.width=g:(h.width=h.wrappedWidth,r.push(h)),o+=h.width});var u=s.getWidth(a.pageSize().width)-o;u&&(u=so(r,u,function(h){return Math.max(h.minReadableWidth,h.minWidth)})),u&&(u=so(r,u,function(h){return h.minWidth})),u=Math.abs(u),!s.settings.horizontalPageBreak&&u>.1/a.scaleFactor()&&(u=u<1?u:Math.round(u),console.log("Of the table content, ".concat(u," units width could not fit page"))),jv(s),Rv(s,a),Nv(s)}function Iv(a,s){var r=a.scaleFactor(),o=s.settings.horizontalPageBreak,u=Pc(a,s);s.allRows().forEach(function(h){for(var g=0,y=s.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v){var A=s.hooks.didParseCell;s.callCellHooks(a,A,v,h,x,null);var D=v.padding("horizontal");v.contentWidth=us(v.text,v.styles,a)+D;var L=us(v.text.join(" ").split(/[^\S\u00A0]+/),v.styles,a);if(v.minReadableWidth=L+v.padding("horizontal"),typeof v.styles.cellWidth=="number")v.minWidth=v.styles.cellWidth,v.wrappedWidth=v.styles.cellWidth;else if(v.styles.cellWidth==="wrap"||o===!0)v.contentWidth>u?(v.minWidth=u,v.wrappedWidth=u):(v.minWidth=v.contentWidth,v.wrappedWidth=v.contentWidth);else{var O=10/r;v.minWidth=v.styles.minCellWidth||O,v.wrappedWidth=v.contentWidth,v.minWidth>v.wrappedWidth&&(v.wrappedWidth=v.minWidth)}}}}),s.allRows().forEach(function(h){for(var g=0,y=s.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v&&v.colSpan===1)x.wrappedWidth=Math.max(x.wrappedWidth,v.wrappedWidth),x.minWidth=Math.max(x.minWidth,v.minWidth),x.minReadableWidth=Math.max(x.minReadableWidth,v.minReadableWidth);else{var A=s.styles.columnStyles[x.dataKey]||s.styles.columnStyles[x.index]||{},D=A.cellWidth||A.minCellWidth;D&&typeof D=="number"&&(x.minWidth=D,x.wrappedWidth=D)}v&&(v.colSpan>1&&!x.minWidth&&(x.minWidth=v.minWidth),v.colSpan>1&&!x.wrappedWidth&&(x.wrappedWidth=v.minWidth))}})}function so(a,s,r){for(var o=s,u=a.reduce(function(O,W){return O+W.wrappedWidth},0),h=0;h<a.length;h++){var g=a[h],y=g.wrappedWidth/u,x=o*y,v=g.width+x,A=r(g),D=v<A?A:v;s-=D-g.width,g.width=D}if(s=Math.round(s*1e10)/1e10,s){var L=a.filter(function(O){return s<0?O.width>r(O):!0});L.length&&(s=so(L,s,r))}return s}function Nv(a){for(var s={},r=1,o=a.allRows(),u=0;u<o.length;u++)for(var h=o[u],g=0,y=a.columns;g<y.length;g++){var x=y[g],v=s[x.index];if(r>1)r--,delete h.cells[x.index];else if(v)v.cell.height+=h.height,r=v.cell.colSpan,delete h.cells[x.index],v.left--,v.left<=1&&delete s[x.index];else{var A=h.cells[x.index];if(!A)continue;if(A.height=h.height,A.rowSpan>1){var D=o.length-u,L=A.rowSpan>D?D:A.rowSpan;s[x.index]={cell:A,left:L,row:h}}}}}function jv(a){for(var s=a.allRows(),r=0;r<s.length;r++)for(var o=s[r],u=null,h=0,g=0,y=0;y<a.columns.length;y++){var x=a.columns[y];if(g-=1,g>1&&a.columns[y+1])h+=x.width,delete o.cells[x.index];else if(u){var v=u;delete o.cells[x.index],u=null,v.width=x.width+h}else{var v=o.cells[x.index];if(!v)continue;if(g=v.colSpan,h=0,v.colSpan>1){u=v,h+=x.width;continue}v.width=x.width+h}}}function Rv(a,s){for(var r={count:0,height:0},o=0,u=a.allRows();o<u.length;o++){for(var h=u[o],g=0,y=a.columns;g<y.length;g++){var x=y[g],v=h.cells[x.index];if(v){s.applyStyles(v.styles,!0);var A=v.width-v.padding("horizontal");if(v.styles.overflow==="linebreak")v.text=s.splitTextToSize(v.text,A+1/s.scaleFactor(),{fontSize:v.styles.fontSize});else if(v.styles.overflow==="ellipsize")v.text=pc(v.text,A,v.styles,s,"...");else if(v.styles.overflow==="hidden")v.text=pc(v.text,A,v.styles,s,"");else if(typeof v.styles.overflow=="function"){var D=v.styles.overflow(v.text,A);typeof D=="string"?v.text=[D]:v.text=D}v.contentHeight=v.getContentHeight(s.scaleFactor(),s.getLineHeightFactor());var L=v.contentHeight/v.rowSpan;v.rowSpan>1&&r.count*r.height<L*v.rowSpan?r={height:L,count:v.rowSpan}:r&&r.count>0&&r.height>L&&(L=r.height),L>h.height&&(h.height=L)}}r.count--}}function pc(a,s,r,o,u){return a.map(function(h){return Fv(h,s,r,o,u)})}function Fv(a,s,r,o,u){var h=1e4*o.scaleFactor();if(s=Math.ceil(s*h)/h,s>=us(a,r,o))return a;for(;s<us(a+u,r,o)&&!(a.length<=1);)a=a.substring(0,a.length-1);return a.trim()+u}function Bc(a,s){var r=new Sr(a),o=Pv(s,r.scaleFactor()),u=new Dv(s,o);return Lv(r,u),r.applyStyles(r.userStyles),u}function Pv(a,s){var r=a.content,o=Ov(r.columns);if(r.head.length===0){var u=mc(o,"head");u&&r.head.push(u)}if(r.foot.length===0){var u=mc(o,"foot");u&&r.foot.push(u)}var h=a.settings.theme,g=a.styles;return{columns:o,head:eo("head",r.head,o,g,h,s),body:eo("body",r.body,o,g,h,s),foot:eo("foot",r.foot,o,g,h,s)}}function eo(a,s,r,o,u,h){var g={},y=s.map(function(x,v){for(var A=0,D={},L=0,O=0,W=0,Z=r;W<Z.length;W++){var K=Z[W];if(g[K.index]==null||g[K.index].left===0)if(O===0){var U=void 0;Array.isArray(x)?U=x[K.index-L-A]:U=x[K.dataKey];var te={};typeof U=="object"&&!Array.isArray(U)&&(te=U?.styles||{});var q=Mv(a,K,v,u,o,h,te),ie=new Wc(U,q,a);D[K.dataKey]=ie,D[K.index]=ie,O=ie.colSpan-1,g[K.index]={left:ie.rowSpan-1,times:O}}else O--,L++;else g[K.index].left--,O=g[K.index].times,A++}return new Hc(x,v,a,D)});return y}function mc(a,s){var r={};return a.forEach(function(o){if(o.raw!=null){var u=Ev(s,o.raw);u!=null&&(r[o.dataKey]=u)}}),Object.keys(r).length>0?r:null}function Ev(a,s){if(a==="head"){if(typeof s=="object")return s.header||null;if(typeof s=="string"||typeof s=="number")return s}else if(a==="foot"&&typeof s=="object")return s.footer;return null}function Ov(a){return a.map(function(s,r){var o,u;return typeof s=="object"?u=(o=s.dataKey)!==null&&o!==void 0?o:r:u=r,new Tv(u,s,r)})}function Mv(a,s,r,o,u,h,g){var y=fv(o),x;a==="head"?x=u.headStyles:a==="body"?x=u.bodyStyles:a==="foot"&&(x=u.footStyles);var v=bn({},y.table,y[a],u.styles,x),A=u.columnStyles[s.dataKey]||u.columnStyles[s.index]||{},D=a==="body"?A:{},L=a==="body"&&r%2===0?bn({},y.alternateRow,u.alternateRowStyles):{},O=dv(h),W=bn({},O,v,L,D);return bn(W,g)}function Hv(a,s,r){var o;r===void 0&&(r={});var u=Pc(a,s),h=new Map,g=[],y=[],x=[];Array.isArray(s.settings.horizontalPageBreakRepeat)?x=s.settings.horizontalPageBreakRepeat:(typeof s.settings.horizontalPageBreakRepeat=="string"||typeof s.settings.horizontalPageBreakRepeat=="number")&&(x=[s.settings.horizontalPageBreakRepeat]),x.forEach(function(L){var O=s.columns.find(function(W){return W.dataKey===L||W.index===L});O&&!h.has(O.index)&&(h.set(O.index,!0),g.push(O.index),y.push(s.columns[O.index]),u-=O.wrappedWidth)});for(var v=!0,A=(o=r?.start)!==null&&o!==void 0?o:0;A<s.columns.length;){if(h.has(A)){A++;continue}var D=s.columns[A].wrappedWidth;if(v||u>=D)v=!1,g.push(A),y.push(s.columns[A]),u-=D;else break;A++}return{colIndexes:g,columns:y,lastIndex:A-1}}function Wv(a,s){for(var r=[],o=0;o<s.columns.length;o++){var u=Hv(a,s,{start:o});u.columns.length&&(r.push(u),o=u.lastIndex)}return r}function kc(a,s){var r=s.settings,o=r.startY,u=r.margin,h={x:u.left,y:o},g=s.getHeadHeight(s.columns)+s.getFootHeight(s.columns),y=o+u.bottom+g;if(r.pageBreak==="avoid"){var x=s.body,v=x.reduce(function(L,O){return L+O.height},0);y+=v}var A=new Sr(a);(r.pageBreak==="always"||r.startY!=null&&y>A.pageSize().height)&&(Gc(A),h.y=u.top),s.callWillDrawPageHooks(A,h);var D=bn({},h);s.startPageNumber=A.pageNumber(),r.horizontalPageBreak?Bv(A,s,D,h):(A.applyStyles(A.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&s.head.forEach(function(L){return Tn(A,s,L,h,s.columns)}),A.applyStyles(A.userStyles),s.body.forEach(function(L,O){var W=O===s.body.length-1;ds(A,s,L,W,D,h,s.columns)}),A.applyStyles(A.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&s.foot.forEach(function(L){return Tn(A,s,L,h,s.columns)})),Rc(A,s,D,h),s.callEndPageHooks(A,h),s.finalY=h.y,a.lastAutoTable=s,A.applyStyles(A.userStyles)}function Bv(a,s,r,o){var u=Wv(a,s),h=s.settings;if(h.horizontalPageBreakBehaviour==="afterAllRows")u.forEach(function(v,A){a.applyStyles(a.userStyles),A>0?ni(a,s,r,o,v.columns,!0):vc(a,s,o,v.columns),kv(a,s,r,o,v.columns),to(a,s,o,v.columns)});else for(var g=-1,y=u[0],x=function(){var v=g;if(y){a.applyStyles(a.userStyles);var A=y.columns;g>=0?ni(a,s,r,o,A,!0):vc(a,s,o,A),v=yc(a,s,g+1,o,A),to(a,s,o,A)}var D=v-g;u.slice(1).forEach(function(L){a.applyStyles(a.userStyles),ni(a,s,r,o,L.columns,!0),yc(a,s,g+1,o,L.columns,D),to(a,s,o,L.columns)}),g=v};g<s.body.length-1;)x()}function vc(a,s,r,o){var u=s.settings;a.applyStyles(a.userStyles),(u.showHead==="firstPage"||u.showHead==="everyPage")&&s.head.forEach(function(h){return Tn(a,s,h,r,o)})}function kv(a,s,r,o,u){a.applyStyles(a.userStyles),s.body.forEach(function(h,g){var y=g===s.body.length-1;ds(a,s,h,y,r,o,u)})}function yc(a,s,r,o,u,h){a.applyStyles(a.userStyles),h=h??s.body.length;var g=Math.min(r+h,s.body.length),y=-1;return s.body.slice(r,g).forEach(function(x,v){var A=r+v===s.body.length-1,D=zc(a,s,A,o);x.canEntireRowFit(D,u)&&(Tn(a,s,x,o,u),y=r+v)}),y}function to(a,s,r,o){var u=s.settings;a.applyStyles(a.userStyles),(u.showFoot==="lastPage"||u.showFoot==="everyPage")&&s.foot.forEach(function(h){return Tn(a,s,h,r,o)})}function zv(a,s,r){var o=r.getLineHeight(a.styles.fontSize),u=a.padding("vertical"),h=Math.floor((s-u)/o);return Math.max(0,h)}function Gv(a,s,r,o){var u={};a.spansMultiplePages=!0,a.height=0;for(var h=0,g=0,y=r.columns;g<y.length;g++){var x=y[g],v=a.cells[x.index];if(v){Array.isArray(v.text)||(v.text=[v.text]);var A=new Wc(v.raw,v.styles,v.section);A=bn(A,v),A.text=[];var D=zv(v,s,o);v.text.length>D&&(A.text=v.text.splice(D,v.text.length));var L=o.scaleFactor(),O=o.getLineHeightFactor();v.contentHeight=v.getContentHeight(L,O),v.contentHeight>=s&&(v.contentHeight=s,A.styles.minCellHeight-=s),v.contentHeight>a.height&&(a.height=v.contentHeight),A.contentHeight=A.getContentHeight(L,O),A.contentHeight>h&&(h=A.contentHeight),u[x.index]=A}}var W=new Hc(a.raw,-1,a.section,u,!0);W.height=h;for(var Z=0,K=r.columns;Z<K.length;Z++){var x=K[Z],A=W.cells[x.index];A&&(A.height=W.height);var v=a.cells[x.index];v&&(v.height=a.height)}return W}function Uv(a,s,r,o){var u=a.pageSize().height,h=o.settings.margin,g=h.top+h.bottom,y=u-g;s.section==="body"&&(y-=o.getHeadHeight(o.columns)+o.getFootHeight(o.columns));var x=s.getMinimumRowHeight(o.columns,a),v=x<r;if(x>y)return console.log("Will not be able to print row ".concat(s.index," correctly since it's minimum height is larger than page height")),!0;if(!v)return!1;var A=s.hasRowSpan(o.columns),D=s.getMaxCellHeight(o.columns)>y;return D?(A&&console.log("The content of row ".concat(s.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(A||o.settings.rowPageBreak==="avoid")}function ds(a,s,r,o,u,h,g){var y=zc(a,s,o,h);if(r.canEntireRowFit(y,g))Tn(a,s,r,h,g);else if(Uv(a,r,y,s)){var x=Gv(r,y,s,a);Tn(a,s,r,h,g),ni(a,s,u,h,g),ds(a,s,x,o,u,h,g)}else ni(a,s,u,h,g),ds(a,s,r,o,u,h,g)}function Tn(a,s,r,o,u){o.x=s.settings.margin.left;for(var h=0,g=u;h<g.length;h++){var y=g[h],x=r.cells[y.index];if(!x){o.x+=y.width;continue}a.applyStyles(x.styles),x.x=o.x,x.y=o.y;var v=s.callCellHooks(a,s.hooks.willDrawCell,x,r,y,o);if(v===!1){o.x+=y.width;continue}qv(a,x,o);var A=x.getTextPos();Ic(x.text,A.x,A.y,{halign:x.styles.halign,valign:x.styles.valign,maxWidth:Math.ceil(x.width-x.padding("left")-x.padding("right"))},a.getDocument()),s.callCellHooks(a,s.hooks.didDrawCell,x,r,y,o),o.x+=y.width}o.y+=r.height}function qv(a,s,r){var o=s.styles;if(a.getDocument().setFillColor(a.getDocument().getFillColor()),typeof o.lineWidth=="number"){var u=Fc(o.lineWidth,o.fillColor);u&&a.rect(s.x,r.y,s.width,s.height,u)}else typeof o.lineWidth=="object"&&(o.fillColor&&a.rect(s.x,r.y,s.width,s.height,"F"),Yv(a,s,r,o.lineWidth))}function Yv(a,s,r,o){var u,h,g,y;o.top&&(u=r.x,h=r.y,g=r.x+s.width,y=r.y,o.right&&(g+=.5*o.right),o.left&&(u-=.5*o.left),x(o.top,u,h,g,y)),o.bottom&&(u=r.x,h=r.y+s.height,g=r.x+s.width,y=r.y+s.height,o.right&&(g+=.5*o.right),o.left&&(u-=.5*o.left),x(o.bottom,u,h,g,y)),o.left&&(u=r.x,h=r.y,g=r.x,y=r.y+s.height,o.top&&(h-=.5*o.top),o.bottom&&(y+=.5*o.bottom),x(o.left,u,h,g,y)),o.right&&(u=r.x+s.width,h=r.y,g=r.x+s.width,y=r.y+s.height,o.top&&(h-=.5*o.top),o.bottom&&(y+=.5*o.bottom),x(o.right,u,h,g,y));function x(v,A,D,L,O){a.getDocument().setLineWidth(v),a.getDocument().line(A,D,L,O,"S")}}function zc(a,s,r,o){var u=s.settings.margin.bottom,h=s.settings.showFoot;return(h==="everyPage"||h==="lastPage"&&r)&&(u+=s.getFootHeight(s.columns)),a.pageSize().height-o.y-u}function ni(a,s,r,o,u,h){u===void 0&&(u=[]),h===void 0&&(h=!1),a.applyStyles(a.userStyles),s.settings.showFoot==="everyPage"&&!h&&s.foot.forEach(function(y){return Tn(a,s,y,o,u)}),s.callEndPageHooks(a,o);var g=s.settings.margin;Rc(a,s,r,o),Gc(a),s.pageNumber++,o.x=g.left,o.y=g.top,r.y=g.top,s.callWillDrawPageHooks(a,o),s.settings.showHead==="everyPage"&&(s.head.forEach(function(y){return Tn(a,s,y,o,u)}),a.applyStyles(a.userStyles))}function Gc(a){var s=a.pageNumber();a.setPage(s+1);var r=a.pageNumber();return r===s?(a.addPage(),!0):!1}function Vv(a){a.API.autoTable=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];var o=s[0],u=Mc(this,o),h=Bc(this,u);return kc(this,h),this},a.API.lastAutoTable=!1,a.API.autoTableText=function(s,r,o,u){Ic(s,r,o,u,this)},a.API.autoTableSetDefaults=function(s){return Sr.setDefaults(s,this),this},a.autoTableSetDefaults=function(s,r){Sr.setDefaults(s,r)},a.API.autoTableHtmlToJson=function(s,r){var o;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var u=new Sr(this),h=Oc(u,s,window,r,!1),g=h.head,y=h.body,x=((o=g[0])===null||o===void 0?void 0:o.map(function(v){return v.content}))||[];return{columns:x,rows:y,data:y}}}var no;function xc(a,s){var r=Mc(a,s),o=Bc(a,r);kc(a,o)}try{if(typeof window<"u"&&window){var wc=window,Ac=wc.jsPDF||((no=wc.jspdf)===null||no===void 0?void 0:no.jsPDF);Ac&&Vv(Ac)}}catch(a){console.error("Could not apply autoTable plugin",a)}var ti={exports:{}};var Qv=ti.exports,_c;function Xv(){return _c||(_c=1,(function(a,s){(function(){var r,o="4.18.1",u=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",x="Invalid `imports` option passed into `_.template`",v="__lodash_hash_undefined__",A=500,D="__lodash_placeholder__",L=1,O=2,W=4,Z=1,K=2,U=1,te=2,q=4,ie=8,We=16,le=32,Se=64,ge=128,de=256,Ge=512,ct=30,Ee="...",se=800,ut=16,nt=1,at=2,wt=3,Oe=1/0,Te=9007199254740991,Be=17976931348623157e292,ve=NaN,z=4294967295,p=z-1,ye=z>>>1,re=[["ary",ge],["bind",U],["bindKey",te],["curry",ie],["curryRight",We],["flip",Ge],["partial",le],["partialRight",Se],["rearg",de]],ce="[object Arguments]",Ke="[object Array]",Le="[object AsyncFunction]",gt="[object Boolean]",Je="[object Date]",Tt="[object DOMException]",je="[object Error]",P="[object Function]",B="[object GeneratorFunction]",k="[object Map]",Ae="[object Number]",fe="[object Null]",G="[object Object]",Y="[object Promise]",ne="[object Proxy]",H="[object RegExp]",$="[object Set]",Q="[object String]",Ce="[object Symbol]",pe="[object Undefined]",ae="[object WeakMap]",Ne="[object WeakSet]",pt="[object ArrayBuffer]",ke="[object DataView]",Rt="[object Float32Array]",Ue="[object Float64Array]",nn="[object Int8Array]",rn="[object Int16Array]",Ft="[object Int32Array]",Ln="[object Uint8Array]",In="[object Uint8ClampedArray]",Nn="[object Uint16Array]",jn="[object Uint32Array]",nr=/\b__p \+= '';/g,Cr=/\b(__p \+=) '' \+/g,br=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,Un=/[&<>"']/g,Dr=RegExp(rr.source),Rn=RegExp(Un.source),Tr=/<%-([\s\S]+?)%>/g,Lr=/<%([\s\S]+?)%>/g,qn=/<%=([\s\S]+?)%>/g,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ir=/[\\^$.*+?()[\]{}|]/g,ms=RegExp(Ir.source),Nr=/^\s+/,vs=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xs=/\{\n\/\* \[wrapped with (.+)\] \*/,ir=/,? & /,ii=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jr=/[()=,{}\[\]\/\s]/,ws=/\\(\\)?/g,As=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,si=/\w*$/,_s=/^[-+]0x[0-9a-f]+$/i,Ss=/^0b[01]+$/i,ai=/^\[object .+?Constructor\]$/,Cs=/^0o[0-7]+$/i,bs=/^(?:0|[1-9]\d*)$/,Ds=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,Ts=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",Ls="\\u0300-\\u036f",Is="\\ufe20-\\ufe2f",Ns="\\u20d0-\\u20ff",oi=Ls+Is+Ns,li="\\u2700-\\u27bf",ci="a-z\\xdf-\\xf6\\xf8-\\xff",js="\\xac\\xb1\\xd7\\xf7",ui="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rs="\\u2000-\\u206f",di=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fi="A-Z\\xc0-\\xd6\\xd8-\\xde",hi="\\ufe0e\\ufe0f",gi=js+ui+Rs+di,or="['’]",Lt="["+ar+"]",pi="["+gi+"]",lr="["+oi+"]",mi="\\d+",Fs="["+li+"]",vi="["+ci+"]",It="[^"+ar+gi+mi+li+ci+fi+"]",Rr="\\ud83c[\\udffb-\\udfff]",Ps="(?:"+lr+"|"+Rr+")",yi="[^"+ar+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",Pr="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+fi+"]",cr="\\u200d",xi="(?:"+vi+"|"+It+")",Es="(?:"+Wt+"|"+It+")",Yn="(?:"+or+"(?:d|ll|m|re|s|t|ve))?",Er="(?:"+or+"(?:D|LL|M|RE|S|T|VE))?",Or=Ps+"?",Mr="["+hi+"]?",Os="(?:"+cr+"(?:"+[yi,Fr,Pr].join("|")+")"+Mr+Or+")*",Ms="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wi=Mr+Or+Os,Ws="(?:"+[Fs,Fr,Pr].join("|")+")"+wi,Bs="(?:"+[yi+lr+"?",lr,Fr,Pr,Lt].join("|")+")",ks=RegExp(or,"g"),zs=RegExp(lr,"g"),Hr=RegExp(Rr+"(?="+Rr+")|"+Bs+wi,"g"),Gs=RegExp([Wt+"?"+vi+"+"+Yn+"(?="+[pi,Wt,"$"].join("|")+")",Es+"+"+Er+"(?="+[pi,Wt+xi,"$"].join("|")+")",Wt+"?"+xi+"+"+Yn,Wt+"+"+Er,Hs,Ms,mi,Ws].join("|"),"g"),Us=RegExp("["+cr+ar+oi+hi+"]"),qs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ys=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vs=-1,Ye={};Ye[Rt]=Ye[Ue]=Ye[nn]=Ye[rn]=Ye[Ft]=Ye[Ln]=Ye[In]=Ye[Nn]=Ye[jn]=!0,Ye[ce]=Ye[Ke]=Ye[pt]=Ye[gt]=Ye[ke]=Ye[Je]=Ye[je]=Ye[P]=Ye[k]=Ye[Ae]=Ye[G]=Ye[H]=Ye[$]=Ye[Q]=Ye[ae]=!1;var Ze={};Ze[ce]=Ze[Ke]=Ze[pt]=Ze[ke]=Ze[gt]=Ze[Je]=Ze[Rt]=Ze[Ue]=Ze[nn]=Ze[rn]=Ze[Ft]=Ze[k]=Ze[Ae]=Ze[G]=Ze[H]=Ze[$]=Ze[Q]=Ze[Ce]=Ze[Ln]=Ze[In]=Ze[Nn]=Ze[jn]=!0,Ze[je]=Ze[P]=Ze[ae]=!1;var lo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ: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'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,Ve=parseInt,At=typeof cs.commonjsGlobal=="object"&&cs.commonjsGlobal&&cs.commonjsGlobal.Object===Object&&cs.commonjsGlobal,Vn=typeof self=="object"&&self&&self.Object===Object&&self,et=At||Vn||Function("return this")(),ze=s&&!s.nodeType&&s,Qe=ze&&!0&&a&&!a.nodeType&&a,Pt=Qe&&Qe.exports===ze,ot=Pt&&At.process,xt=(function(){try{var _=Qe&&Qe.require&&Qe.require("util").types;return _||ot&&ot.binding&&ot.binding("util")}catch{}})(),Wr=xt&&xt.isArrayBuffer,Fn=xt&&xt.isDate,Ai=xt&&xt.isMap,Pn=xt&&xt.isRegExp,_i=xt&&xt.isSet,Si=xt&&xt.isTypedArray;function Et(_,j,I){switch(I.length){case 0:return _.call(j);case 1:return _.call(j,I[0]);case 2:return _.call(j,I[0],I[1]);case 3:return _.call(j,I[0],I[1],I[2])}return _.apply(j,I)}function Re(_,j,I,X){for(var we=-1,qe=_==null?0:_.length;++we<qe;){var _t=_[we];j(X,_t,I(_t),_)}return X}function rt(_,j){for(var I=-1,X=_==null?0:_.length;++I<X&&j(_[I],I,_)!==!1;);return _}function Uc(_,j){for(var I=_==null?0:_.length;I--&&j(_[I],I,_)!==!1;);return _}function co(_,j){for(var I=-1,X=_==null?0:_.length;++I<X;)if(!j(_[I],I,_))return!1;return!0}function En(_,j){for(var I=-1,X=_==null?0:_.length,we=0,qe=[];++I<X;){var _t=_[I];j(_t,I,_)&&(qe[we++]=_t)}return qe}function Ci(_,j){var I=_==null?0:_.length;return!!I&&ur(_,j,0)>-1}function Qs(_,j,I){for(var X=-1,we=_==null?0:_.length;++X<we;)if(I(j,_[X]))return!0;return!1}function lt(_,j){for(var I=-1,X=_==null?0:_.length,we=Array(X);++I<X;)we[I]=j(_[I],I,_);return we}function On(_,j){for(var I=-1,X=j.length,we=_.length;++I<X;)_[we+I]=j[I];return _}function Xs(_,j,I,X){var we=-1,qe=_==null?0:_.length;for(X&&qe&&(I=_[++we]);++we<qe;)I=j(I,_[we],we,_);return I}function qc(_,j,I,X){var we=_==null?0:_.length;for(X&&we&&(I=_[--we]);we--;)I=j(I,_[we],we,_);return I}function $s(_,j){for(var I=-1,X=_==null?0:_.length;++I<X;)if(j(_[I],I,_))return!0;return!1}var Yc=Ks("length");function Vc(_){return _.split("")}function Qc(_){return _.match(ii)||[]}function uo(_,j,I){var X;return I(_,function(we,qe,_t){if(j(we,qe,_t))return X=qe,!1}),X}function bi(_,j,I,X){for(var we=_.length,qe=I+(X?1:-1);X?qe--:++qe<we;)if(j(_[qe],qe,_))return qe;return-1}function ur(_,j,I){return j===j?au(_,j,I):bi(_,fo,I)}function Xc(_,j,I,X){for(var we=I-1,qe=_.length;++we<qe;)if(X(_[we],j))return we;return-1}function fo(_){return _!==_}function ho(_,j){var I=_==null?0:_.length;return I?Zs(_,j)/I:ve}function Ks(_){return function(j){return j==null?r:j[_]}}function Js(_){return function(j){return _==null?r:_[j]}}function go(_,j,I,X,we){return we(_,function(qe,_t,it){I=X?(X=!1,qe):j(I,qe,_t,it)}),I}function $c(_,j){var I=_.length;for(_.sort(j);I--;)_[I]=_[I].value;return _}function Zs(_,j){for(var I,X=-1,we=_.length;++X<we;){var qe=j(_[X]);qe!==r&&(I=I===r?qe:I+qe)}return I}function ea(_,j){for(var I=-1,X=Array(_);++I<_;)X[I]=j(I);return X}function Kc(_,j){return lt(j,function(I){return[I,_[I]]})}function po(_){return _&&_.slice(0,xo(_)+1).replace(Nr,"")}function Ut(_){return function(j){return _(j)}}function ta(_,j){return lt(j,function(I){return _[I]})}function Br(_,j){return _.has(j)}function mo(_,j){for(var I=-1,X=_.length;++I<X&&ur(j,_[I],0)>-1;);return I}function vo(_,j){for(var I=_.length;I--&&ur(j,_[I],0)>-1;);return I}function Jc(_,j){for(var I=_.length,X=0;I--;)_[I]===j&&++X;return X}var Zc=Js(lo),eu=Js(T);function tu(_){return"\\"+xe[_]}function nu(_,j){return _==null?r:_[j]}function dr(_){return Us.test(_)}function ru(_){return qs.test(_)}function iu(_){for(var j,I=[];!(j=_.next()).done;)I.push(j.value);return I}function na(_){var j=-1,I=Array(_.size);return _.forEach(function(X,we){I[++j]=[we,X]}),I}function yo(_,j){return function(I){return _(j(I))}}function Mn(_,j){for(var I=-1,X=_.length,we=0,qe=[];++I<X;){var _t=_[I];(_t===j||_t===D)&&(_[I]=D,qe[we++]=I)}return qe}function Di(_){var j=-1,I=Array(_.size);return _.forEach(function(X){I[++j]=X}),I}function su(_){var j=-1,I=Array(_.size);return _.forEach(function(X){I[++j]=[X,X]}),I}function au(_,j,I){for(var X=I-1,we=_.length;++X<we;)if(_[X]===j)return X;return-1}function ou(_,j,I){for(var X=I+1;X--;)if(_[X]===j)return X;return X}function fr(_){return dr(_)?cu(_):Yc(_)}function sn(_){return dr(_)?uu(_):Vc(_)}function xo(_){for(var j=_.length;j--&&vs.test(_.charAt(j)););return j}var lu=Js(oe);function cu(_){for(var j=Hr.lastIndex=0;Hr.test(_);)++j;return j}function uu(_){return _.match(Hr)||[]}function du(_){return _.match(Gs)||[]}var fu=(function _(j){j=j==null?et:hr.defaults(et.Object(),j,hr.pick(et,Ys));var I=j.Array,X=j.Date,we=j.Error,qe=j.Function,_t=j.Math,it=j.Object,ra=j.RegExp,hu=j.String,Xt=j.TypeError,Ti=I.prototype,gu=qe.prototype,gr=it.prototype,Li=j["__core-js_shared__"],Ii=gu.toString,Xe=gr.hasOwnProperty,pu=0,wo=(function(){var e=/[^.]+$/.exec(Li&&Li.keys&&Li.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Ni=gr.toString,mu=Ii.call(it),vu=et._,yu=ra("^"+Ii.call(Xe).replace(Ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ji=Pt?j.Buffer:r,Hn=j.Symbol,Ri=j.Uint8Array,Ao=ji?ji.allocUnsafe:r,Fi=yo(it.getPrototypeOf,it),_o=it.create,So=gr.propertyIsEnumerable,Pi=Ti.splice,Co=Hn?Hn.isConcatSpreadable:r,kr=Hn?Hn.iterator:r,Qn=Hn?Hn.toStringTag:r,Ei=(function(){try{var e=Zn(it,"defineProperty");return e({},"",{}),e}catch{}})(),xu=j.clearTimeout!==et.clearTimeout&&j.clearTimeout,wu=X&&X.now!==et.Date.now&&X.now,Au=j.setTimeout!==et.setTimeout&&j.setTimeout,Oi=_t.ceil,Mi=_t.floor,ia=it.getOwnPropertySymbols,_u=ji?ji.isBuffer:r,bo=j.isFinite,Su=Ti.join,Cu=yo(it.keys,it),St=_t.max,Nt=_t.min,bu=X.now,Du=j.parseInt,Do=_t.random,Tu=Ti.reverse,sa=Zn(j,"DataView"),zr=Zn(j,"Map"),aa=Zn(j,"Promise"),pr=Zn(j,"Set"),Gr=Zn(j,"WeakMap"),Ur=Zn(it,"create"),Hi=Gr&&new Gr,mr={},Lu=er(sa),Iu=er(zr),Nu=er(aa),ju=er(pr),Ru=er(Gr),Wi=Hn?Hn.prototype:r,qr=Wi?Wi.valueOf:r,To=Wi?Wi.toString:r;function d(e){if(ft(e)&&!_e(e)&&!(e instanceof Pe)){if(e instanceof $t)return e;if(Xe.call(e,"__wrapped__"))return Ll(e)}return new $t(e)}var vr=(function(){function e(){}return function(t){if(!dt(t))return{};if(_o)return _o(t);e.prototype=t;var n=new e;return e.prototype=r,n}})();function Bi(){}function $t(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}d.templateSettings={escape:Tr,evaluate:Lr,interpolate:qn,variable:"",imports:{_:d}},d.prototype=Bi.prototype,d.prototype.constructor=d,$t.prototype=vr(Bi.prototype),$t.prototype.constructor=$t;function Pe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Fu(){var e=new Pe(this.__wrapped__);return e.__actions__=Bt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bt(this.__views__),e}function Pu(){if(this.__filtered__){var e=new Pe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Eu(){var e=this.__wrapped__.value(),t=this.__dir__,n=_e(e),i=t<0,l=n?e.length:0,f=Vd(0,l,this.__views__),m=f.start,w=f.end,C=w-m,R=i?w:m-1,F=this.__iteratees__,M=F.length,V=0,ee=Nt(C,this.__takeCount__);if(!n||!i&&l==C&&ee==C)return Ko(e,this.__actions__);var me=[];e:for(;C--&&V<ee;){R+=t;for(var De=-1,ue=e[R];++De<M;){var Fe=F[De],Me=Fe.iteratee,Vt=Fe.type,Ht=Me(ue);if(Vt==at)ue=Ht;else if(!Ht){if(Vt==nt)continue e;break e}}me[V++]=ue}return me}Pe.prototype=vr(Bi.prototype),Pe.prototype.constructor=Pe;function Xn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ou(){this.__data__=Ur?Ur(null):{},this.size=0}function Mu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Hu(e){var t=this.__data__;if(Ur){var n=t[e];return n===v?r:n}return Xe.call(t,e)?t[e]:r}function Wu(e){var t=this.__data__;return Ur?t[e]!==r:Xe.call(t,e)}function Bu(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ur&&t===r?v:t,this}Xn.prototype.clear=Ou,Xn.prototype.delete=Mu,Xn.prototype.get=Hu,Xn.prototype.has=Wu,Xn.prototype.set=Bu;function pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ku(){this.__data__=[],this.size=0}function zu(e){var t=this.__data__,n=ki(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Pi.call(t,n,1),--this.size,!0}function Gu(e){var t=this.__data__,n=ki(t,e);return n<0?r:t[n][1]}function Uu(e){return ki(this.__data__,e)>-1}function qu(e,t){var n=this.__data__,i=ki(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}pn.prototype.clear=ku,pn.prototype.delete=zu,pn.prototype.get=Gu,pn.prototype.has=Uu,pn.prototype.set=qu;function mn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yu(){this.size=0,this.__data__={hash:new Xn,map:new(zr||pn),string:new Xn}}function Vu(e){var t=Zi(this,e).delete(e);return this.size-=t?1:0,t}function Qu(e){return Zi(this,e).get(e)}function Xu(e){return Zi(this,e).has(e)}function $u(e,t){var n=Zi(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}mn.prototype.clear=Yu,mn.prototype.delete=Vu,mn.prototype.get=Qu,mn.prototype.has=Xu,mn.prototype.set=$u;function $n(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new mn;++t<n;)this.add(e[t])}function Ku(e){return this.__data__.set(e,v),this}function Ju(e){return this.__data__.has(e)}$n.prototype.add=$n.prototype.push=Ku,$n.prototype.has=Ju;function an(e){var t=this.__data__=new pn(e);this.size=t.size}function Zu(){this.__data__=new pn,this.size=0}function ed(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function td(e){return this.__data__.get(e)}function nd(e){return this.__data__.has(e)}function rd(e,t){var n=this.__data__;if(n instanceof pn){var i=n.__data__;if(!zr||i.length<u-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new mn(i)}return n.set(e,t),this.size=n.size,this}an.prototype.clear=Zu,an.prototype.delete=ed,an.prototype.get=td,an.prototype.has=nd,an.prototype.set=rd;function Lo(e,t){var n=_e(e),i=!n&&tr(e),l=!n&&!i&&Gn(e),f=!n&&!i&&!l&&Ar(e),m=n||i||l||f,w=m?ea(e.length,hu):[],C=w.length;for(var R in e)(t||Xe.call(e,R))&&!(m&&(R=="length"||l&&(R=="offset"||R=="parent")||f&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||xn(R,C)))&&w.push(R);return w}function Io(e){var t=e.length;return t?e[va(0,t-1)]:r}function id(e,t){return es(Bt(e),Kn(t,0,e.length))}function sd(e){return es(Bt(e))}function oa(e,t,n){(n!==r&&!ln(e[t],n)||n===r&&!(t in e))&&fn(e,t,n)}function Yr(e,t,n){var i=e[t];(!(Xe.call(e,t)&&ln(i,n))||n===r&&!(t in e))&&fn(e,t,n)}function ki(e,t){for(var n=e.length;n--;)if(ln(e[n][0],t))return n;return-1}function ad(e,t,n,i){return Wn(e,function(l,f,m){t(i,l,n(l),m)}),i}function No(e,t){return e&&gn(t,Ct(t),e)}function od(e,t){return e&&gn(t,zt(t),e)}function fn(e,t,n){t=="__proto__"&&Ei?Ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function la(e,t){for(var n=-1,i=t.length,l=I(i),f=e==null;++n<i;)l[n]=f?r:Ga(e,t[n]);return l}function Kn(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Kt(e,t,n,i,l,f){var m,w=t&L,C=t&O,R=t&W;if(n&&(m=l?n(e,i,l,f):n(e)),m!==r)return m;if(!dt(e))return e;var F=_e(e);if(F){if(m=Xd(e),!w)return Bt(e,m)}else{var M=jt(e),V=M==P||M==B;if(Gn(e))return el(e,w);if(M==G||M==ce||V&&!l){if(m=C||V?{}:xl(e),!w)return C?Hd(e,od(m,e)):Md(e,No(m,e))}else{if(!Ze[M])return l?e:{};m=$d(e,M,w)}}f||(f=new an);var ee=f.get(e);if(ee)return ee;f.set(e,m),Ql(e)?e.forEach(function(ue){m.add(Kt(ue,t,n,ue,e,f))}):Yl(e)&&e.forEach(function(ue,Fe){m.set(Fe,Kt(ue,t,n,Fe,e,f))});var me=R?C?La:Ta:C?zt:Ct,De=F?r:me(e);return rt(De||e,function(ue,Fe){De&&(Fe=ue,ue=e[Fe]),Yr(m,Fe,Kt(ue,t,n,Fe,e,f))}),m}function ld(e){var t=Ct(e);return function(n){return jo(n,e,t)}}function jo(e,t,n){var i=n.length;if(e==null)return!i;for(e=it(e);i--;){var l=n[i],f=t[l],m=e[l];if(m===r&&!(l in e)||!f(m))return!1}return!0}function Ro(e,t,n){if(typeof e!="function")throw new Xt(g);return Zr(function(){e.apply(r,n)},t)}function Vr(e,t,n,i){var l=-1,f=Ci,m=!0,w=e.length,C=[],R=t.length;if(!w)return C;n&&(t=lt(t,Ut(n))),i?(f=Qs,m=!1):t.length>=u&&(f=Br,m=!1,t=new $n(t));e:for(;++l<w;){var F=e[l],M=n==null?F:n(F);if(F=i||F!==0?F:0,m&&M===M){for(var V=R;V--;)if(t[V]===M)continue e;C.push(F)}else f(t,M,i)||C.push(F)}return C}var Wn=sl(hn),Fo=sl(ua,!0);function cd(e,t){var n=!0;return Wn(e,function(i,l,f){return n=!!t(i,l,f),n}),n}function zi(e,t,n){for(var i=-1,l=e.length;++i<l;){var f=e[i],m=t(f);if(m!=null&&(w===r?m===m&&!Yt(m):n(m,w)))var w=m,C=f}return C}function ud(e,t,n,i){var l=e.length;for(n=be(n),n<0&&(n=-n>l?0:l+n),i=i===r||i>l?l:be(i),i<0&&(i+=l),i=n>i?0:$l(i);n<i;)e[n++]=t;return e}function Po(e,t){var n=[];return Wn(e,function(i,l,f){t(i,l,f)&&n.push(i)}),n}function bt(e,t,n,i,l){var f=-1,m=e.length;for(n||(n=Jd),l||(l=[]);++f<m;){var w=e[f];t>0&&n(w)?t>1?bt(w,t-1,n,i,l):On(l,w):i||(l[l.length]=w)}return l}var ca=al(),Eo=al(!0);function hn(e,t){return e&&ca(e,t,Ct)}function ua(e,t){return e&&Eo(e,t,Ct)}function Gi(e,t){return En(t,function(n){return wn(e[n])})}function Jn(e,t){t=kn(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[on(t[n++])];return n&&n==i?e:r}function Oo(e,t,n){var i=t(e);return _e(e)?i:On(i,n(e))}function Ot(e){return e==null?e===r?pe:fe:Qn&&Qn in it(e)?Yd(e):af(e)}function da(e,t){return e>t}function dd(e,t){return e!=null&&Xe.call(e,t)}function fd(e,t){return e!=null&&t in it(e)}function hd(e,t,n){return e>=Nt(t,n)&&e<St(t,n)}function fa(e,t,n){for(var i=n?Qs:Ci,l=e[0].length,f=e.length,m=f,w=I(f),C=1/0,R=[];m--;){var F=e[m];m&&t&&(F=lt(F,Ut(t))),C=Nt(F.length,C),w[m]=!n&&(t||l>=120&&F.length>=120)?new $n(m&&F):r}F=e[0];var M=-1,V=w[0];e:for(;++M<l&&R.length<C;){var ee=F[M],me=t?t(ee):ee;if(ee=n||ee!==0?ee:0,!(V?Br(V,me):i(R,me,n))){for(m=f;--m;){var De=w[m];if(!(De?Br(De,me):i(e[m],me,n)))continue e}V&&V.push(me),R.push(ee)}}return R}function gd(e,t,n,i){return hn(e,function(l,f,m){t(i,n(l),f,m)}),i}function Qr(e,t,n){t=kn(t,e),e=Sl(e,t);var i=e==null?e:e[on(Zt(t))];return i==null?r:Et(i,e,n)}function Mo(e){return ft(e)&&Ot(e)==ce}function pd(e){return ft(e)&&Ot(e)==pt}function md(e){return ft(e)&&Ot(e)==Je}function Xr(e,t,n,i,l){return e===t?!0:e==null||t==null||!ft(e)&&!ft(t)?e!==e&&t!==t:vd(e,t,n,i,Xr,l)}function vd(e,t,n,i,l,f){var m=_e(e),w=_e(t),C=m?Ke:jt(e),R=w?Ke:jt(t);C=C==ce?G:C,R=R==ce?G:R;var F=C==G,M=R==G,V=C==R;if(V&&Gn(e)){if(!Gn(t))return!1;m=!0,F=!1}if(V&&!F)return f||(f=new an),m||Ar(e)?ml(e,t,n,i,l,f):Ud(e,t,C,n,i,l,f);if(!(n&Z)){var ee=F&&Xe.call(e,"__wrapped__"),me=M&&Xe.call(t,"__wrapped__");if(ee||me){var De=ee?e.value():e,ue=me?t.value():t;return f||(f=new an),l(De,ue,n,i,f)}}return V?(f||(f=new an),qd(e,t,n,i,l,f)):!1}function yd(e){return ft(e)&&jt(e)==k}function ha(e,t,n,i){var l=n.length,f=l,m=!i;if(e==null)return!f;for(e=it(e);l--;){var w=n[l];if(m&&w[2]?w[1]!==e[w[0]]:!(w[0]in e))return!1}for(;++l<f;){w=n[l];var C=w[0],R=e[C],F=w[1];if(m&&w[2]){if(R===r&&!(C in e))return!1}else{var M=new an;if(i)var V=i(R,F,C,e,t,M);if(!(V===r?Xr(F,R,Z|K,i,M):V))return!1}}return!0}function Ho(e){if(!dt(e)||ef(e))return!1;var t=wn(e)?yu:ai;return t.test(er(e))}function xd(e){return ft(e)&&Ot(e)==H}function wd(e){return ft(e)&&jt(e)==$}function Ad(e){return ft(e)&&as(e.length)&&!!Ye[Ot(e)]}function Wo(e){return typeof e=="function"?e:e==null?Gt:typeof e=="object"?_e(e)?zo(e[0],e[1]):ko(e):lc(e)}function ga(e){if(!Jr(e))return Cu(e);var t=[];for(var n in it(e))Xe.call(e,n)&&n!="constructor"&&t.push(n);return t}function _d(e){if(!dt(e))return sf(e);var t=Jr(e),n=[];for(var i in e)i=="constructor"&&(t||!Xe.call(e,i))||n.push(i);return n}function pa(e,t){return e<t}function Bo(e,t){var n=-1,i=kt(e)?I(e.length):[];return Wn(e,function(l,f,m){i[++n]=t(l,f,m)}),i}function ko(e){var t=Na(e);return t.length==1&&t[0][2]?Al(t[0][0],t[0][1]):function(n){return n===e||ha(n,e,t)}}function zo(e,t){return Ra(e)&&wl(t)?Al(on(e),t):function(n){var i=Ga(n,e);return i===r&&i===t?Ua(n,e):Xr(t,i,Z|K)}}function Ui(e,t,n,i,l){e!==t&&ca(t,function(f,m){if(l||(l=new an),dt(f))Sd(e,t,m,n,Ui,i,l);else{var w=i?i(Pa(e,m),f,m+"",e,t,l):r;w===r&&(w=f),oa(e,m,w)}},zt)}function Sd(e,t,n,i,l,f,m){var w=Pa(e,n),C=Pa(t,n),R=m.get(C);if(R){oa(e,n,R);return}var F=f?f(w,C,n+"",e,t,m):r,M=F===r;if(M){var V=_e(C),ee=!V&&Gn(C),me=!V&&!ee&&Ar(C);F=C,V||ee||me?_e(w)?F=w:mt(w)?F=Bt(w):ee?(M=!1,F=el(C,!0)):me?(M=!1,F=tl(C,!0)):F=[]:ei(C)||tr(C)?(F=w,tr(w)?F=Kl(w):(!dt(w)||wn(w))&&(F=xl(C))):M=!1}M&&(m.set(C,F),l(F,C,i,f,m),m.delete(C)),oa(e,n,F)}function Go(e,t){var n=e.length;if(n)return t+=t<0?n:0,xn(t,n)?e[t]:r}function Uo(e,t,n){t.length?t=lt(t,function(f){return _e(f)?function(m){return Jn(m,f.length===1?f[0]:f)}:f}):t=[Gt];var i=-1;t=lt(t,Ut(he()));var l=Bo(e,function(f,m,w){var C=lt(t,function(R){return R(f)});return{criteria:C,index:++i,value:f}});return $c(l,function(f,m){return Od(f,m,n)})}function Cd(e,t){return qo(e,t,function(n,i){return Ua(e,i)})}function qo(e,t,n){for(var i=-1,l=t.length,f={};++i<l;){var m=t[i],w=Jn(e,m);n(w,m)&&$r(f,kn(m,e),w)}return f}function bd(e){return function(t){return Jn(t,e)}}function ma(e,t,n,i){var l=i?Xc:ur,f=-1,m=t.length,w=e;for(e===t&&(t=Bt(t)),n&&(w=lt(e,Ut(n)));++f<m;)for(var C=0,R=t[f],F=n?n(R):R;(C=l(w,F,C,i))>-1;)w!==e&&Pi.call(w,C,1),Pi.call(e,C,1);return e}function Yo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var l=t[n];if(n==i||l!==f){var f=l;xn(l)?Pi.call(e,l,1):wa(e,l)}}return e}function va(e,t){return e+Mi(Do()*(t-e+1))}function Dd(e,t,n,i){for(var l=-1,f=St(Oi((t-e)/(n||1)),0),m=I(f);f--;)m[i?f:++l]=e,e+=n;return m}function ya(e,t){var n="";if(!e||t<1||t>Te)return n;do t%2&&(n+=e),t=Mi(t/2),t&&(e+=e);while(t);return n}function Ie(e,t){return Ea(_l(e,t,Gt),e+"")}function Td(e){return Io(_r(e))}function Ld(e,t){var n=_r(e);return es(n,Kn(t,0,n.length))}function $r(e,t,n,i){if(!dt(e))return e;t=kn(t,e);for(var l=-1,f=t.length,m=f-1,w=e;w!=null&&++l<f;){var C=on(t[l]),R=n;if(C==="__proto__"||C==="constructor"||C==="prototype")return e;if(l!=m){var F=w[C];R=i?i(F,C,w):r,R===r&&(R=dt(F)?F:xn(t[l+1])?[]:{})}Yr(w,C,R),w=w[C]}return e}var Vo=Hi?function(e,t){return Hi.set(e,t),e}:Gt,Id=Ei?function(e,t){return Ei(e,"toString",{configurable:!0,enumerable:!1,value:Ya(t),writable:!0})}:Gt;function Nd(e){return es(_r(e))}function Jt(e,t,n){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var f=I(l);++i<l;)f[i]=e[i+t];return f}function jd(e,t){var n;return Wn(e,function(i,l,f){return n=t(i,l,f),!n}),!!n}function qi(e,t,n){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=ye){for(;i<l;){var f=i+l>>>1,m=e[f];m!==null&&!Yt(m)&&(n?m<=t:m<t)?i=f+1:l=f}return l}return xa(e,t,Gt,n)}function xa(e,t,n,i){var l=0,f=e==null?0:e.length;if(f===0)return 0;t=n(t);for(var m=t!==t,w=t===null,C=Yt(t),R=t===r;l<f;){var F=Mi((l+f)/2),M=n(e[F]),V=M!==r,ee=M===null,me=M===M,De=Yt(M);if(m)var ue=i||me;else R?ue=me&&(i||V):w?ue=me&&V&&(i||!ee):C?ue=me&&V&&!ee&&(i||!De):ee||De?ue=!1:ue=i?M<=t:M<t;ue?l=F+1:f=F}return Nt(f,p)}function Qo(e,t){for(var n=-1,i=e.length,l=0,f=[];++n<i;){var m=e[n],w=t?t(m):m;if(!n||!ln(w,C)){var C=w;f[l++]=m===0?0:m}}return f}function Xo(e){return typeof e=="number"?e:Yt(e)?ve:+e}function qt(e){if(typeof e=="string")return e;if(_e(e))return lt(e,qt)+"";if(Yt(e))return To?To.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Bn(e,t,n){var i=-1,l=Ci,f=e.length,m=!0,w=[],C=w;if(n)m=!1,l=Qs;else if(f>=u){var R=t?null:zd(e);if(R)return Di(R);m=!1,l=Br,C=new $n}else C=t?[]:w;e:for(;++i<f;){var F=e[i],M=t?t(F):F;if(F=n||F!==0?F:0,m&&M===M){for(var V=C.length;V--;)if(C[V]===M)continue e;t&&C.push(M),w.push(F)}else l(C,M,n)||(C!==w&&C.push(M),w.push(F))}return w}function wa(e,t){t=kn(t,e);var n=-1,i=t.length;if(!i)return!0;for(;++n<i;){var l=on(t[n]);if(l==="__proto__"&&!Xe.call(e,"__proto__")||(l==="constructor"||l==="prototype")&&n<i-1)return!1}var f=Sl(e,t);return f==null||delete f[on(Zt(t))]}function $o(e,t,n,i){return $r(e,t,n(Jn(e,t)),i)}function Yi(e,t,n,i){for(var l=e.length,f=i?l:-1;(i?f--:++f<l)&&t(e[f],f,e););return n?Jt(e,i?0:f,i?f+1:l):Jt(e,i?f+1:0,i?l:f)}function Ko(e,t){var n=e;return n instanceof Pe&&(n=n.value()),Xs(t,function(i,l){return l.func.apply(l.thisArg,On([i],l.args))},n)}function Aa(e,t,n){var i=e.length;if(i<2)return i?Bn(e[0]):[];for(var l=-1,f=I(i);++l<i;)for(var m=e[l],w=-1;++w<i;)w!=l&&(f[l]=Vr(f[l]||m,e[w],t,n));return Bn(bt(f,1),t,n)}function Jo(e,t,n){for(var i=-1,l=e.length,f=t.length,m={};++i<l;){var w=i<f?t[i]:r;n(m,e[i],w)}return m}function _a(e){return mt(e)?e:[]}function Sa(e){return typeof e=="function"?e:Gt}function kn(e,t){return _e(e)?e:Ra(e,t)?[e]:Tl($e(e))}var Rd=Ie;function zn(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Jt(e,t,n)}var Zo=xu||function(e){return et.clearTimeout(e)};function el(e,t){if(t)return e.slice();var n=e.length,i=Ao?Ao(n):new e.constructor(n);return e.copy(i),i}function Ca(e){var t=new e.constructor(e.byteLength);return new Ri(t).set(new Ri(e)),t}function Fd(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Pd(e){var t=new e.constructor(e.source,si.exec(e));return t.lastIndex=e.lastIndex,t}function Ed(e){return qr?it(qr.call(e)):{}}function tl(e,t){var n=t?Ca(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function nl(e,t){if(e!==t){var n=e!==r,i=e===null,l=e===e,f=Yt(e),m=t!==r,w=t===null,C=t===t,R=Yt(t);if(!w&&!R&&!f&&e>t||f&&m&&C&&!w&&!R||i&&m&&C||!n&&C||!l)return 1;if(!i&&!f&&!R&&e<t||R&&n&&l&&!i&&!f||w&&n&&l||!m&&l||!C)return-1}return 0}function Od(e,t,n){for(var i=-1,l=e.criteria,f=t.criteria,m=l.length,w=n.length;++i<m;){var C=nl(l[i],f[i]);if(C){if(i>=w)return C;var R=n[i];return C*(R=="desc"?-1:1)}}return e.index-t.index}function rl(e,t,n,i){for(var l=-1,f=e.length,m=n.length,w=-1,C=t.length,R=St(f-m,0),F=I(C+R),M=!i;++w<C;)F[w]=t[w];for(;++l<m;)(M||l<f)&&(F[n[l]]=e[l]);for(;R--;)F[w++]=e[l++];return F}function il(e,t,n,i){for(var l=-1,f=e.length,m=-1,w=n.length,C=-1,R=t.length,F=St(f-w,0),M=I(F+R),V=!i;++l<F;)M[l]=e[l];for(var ee=l;++C<R;)M[ee+C]=t[C];for(;++m<w;)(V||l<f)&&(M[ee+n[m]]=e[l++]);return M}function Bt(e,t){var n=-1,i=e.length;for(t||(t=I(i));++n<i;)t[n]=e[n];return t}function gn(e,t,n,i){var l=!n;n||(n={});for(var f=-1,m=t.length;++f<m;){var w=t[f],C=i?i(n[w],e[w],w,n,e):r;C===r&&(C=e[w]),l?fn(n,w,C):Yr(n,w,C)}return n}function Md(e,t){return gn(e,ja(e),t)}function Hd(e,t){return gn(e,vl(e),t)}function Vi(e,t){return function(n,i){var l=_e(n)?Re:ad,f=t?t():{};return l(n,e,he(i,2),f)}}function yr(e){return Ie(function(t,n){var i=-1,l=n.length,f=l>1?n[l-1]:r,m=l>2?n[2]:r;for(f=e.length>3&&typeof f=="function"?(l--,f):r,m&&Mt(n[0],n[1],m)&&(f=l<3?r:f,l=1),t=it(t);++i<l;){var w=n[i];w&&e(t,w,i,f)}return t})}function sl(e,t){return function(n,i){if(n==null)return n;if(!kt(n))return e(n,i);for(var l=n.length,f=t?l:-1,m=it(n);(t?f--:++f<l)&&i(m[f],f,m)!==!1;);return n}}function al(e){return function(t,n,i){for(var l=-1,f=it(t),m=i(t),w=m.length;w--;){var C=m[e?w:++l];if(n(f[C],C,f)===!1)break}return t}}function Wd(e,t,n){var i=t&U,l=Kr(e);function f(){var m=this&&this!==et&&this instanceof f?l:e;return m.apply(i?n:this,arguments)}return f}function ol(e){return function(t){t=$e(t);var n=dr(t)?sn(t):r,i=n?n[0]:t.charAt(0),l=n?zn(n,1).join(""):t.slice(1);return i[e]()+l}}function xr(e){return function(t){return Xs(ac(sc(t).replace(ks,"")),e,"")}}function Kr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=vr(e.prototype),i=e.apply(n,t);return dt(i)?i:n}}function Bd(e,t,n){var i=Kr(e);function l(){for(var f=arguments.length,m=I(f),w=f,C=wr(l);w--;)m[w]=arguments[w];var R=f<3&&m[0]!==C&&m[f-1]!==C?[]:Mn(m,C);if(f-=R.length,f<n)return fl(e,t,Qi,l.placeholder,r,m,R,r,r,n-f);var F=this&&this!==et&&this instanceof l?i:e;return Et(F,this,m)}return l}function ll(e){return function(t,n,i){var l=it(t);if(!kt(t)){var f=he(n,3);t=Ct(t),n=function(w){return f(l[w],w,l)}}var m=e(t,n,i);return m>-1?l[f?t[m]:m]:r}}function cl(e){return yn(function(t){var n=t.length,i=n,l=$t.prototype.thru;for(e&&t.reverse();i--;){var f=t[i];if(typeof f!="function")throw new Xt(g);if(l&&!m&&Ji(f)=="wrapper")var m=new $t([],!0)}for(i=m?i:n;++i<n;){f=t[i];var w=Ji(f),C=w=="wrapper"?Ia(f):r;C&&Fa(C[0])&&C[1]==(ge|ie|le|de)&&!C[4].length&&C[9]==1?m=m[Ji(C[0])].apply(m,C[3]):m=f.length==1&&Fa(f)?m[w]():m.thru(f)}return function(){var R=arguments,F=R[0];if(m&&R.length==1&&_e(F))return m.plant(F).value();for(var M=0,V=n?t[M].apply(this,R):F;++M<n;)V=t[M].call(this,V);return V}})}function Qi(e,t,n,i,l,f,m,w,C,R){var F=t&ge,M=t&U,V=t&te,ee=t&(ie|We),me=t&Ge,De=V?r:Kr(e);function ue(){for(var Fe=arguments.length,Me=I(Fe),Vt=Fe;Vt--;)Me[Vt]=arguments[Vt];if(ee)var Ht=wr(ue),Qt=Jc(Me,Ht);if(i&&(Me=rl(Me,i,l,ee)),f&&(Me=il(Me,f,m,ee)),Fe-=Qt,ee&&Fe<R){var vt=Mn(Me,Ht);return fl(e,t,Qi,ue.placeholder,n,Me,vt,w,C,R-Fe)}var cn=M?n:this,_n=V?cn[e]:e;return Fe=Me.length,w?Me=of(Me,w):me&&Fe>1&&Me.reverse(),F&&C<Fe&&(Me.length=C),this&&this!==et&&this instanceof ue&&(_n=De||Kr(_n)),_n.apply(cn,Me)}return ue}function ul(e,t){return function(n,i){return gd(n,e,t(i),{})}}function Xi(e,t){return function(n,i){var l;if(n===r&&i===r)return t;if(n!==r&&(l=n),i!==r){if(l===r)return i;typeof n=="string"||typeof i=="string"?(n=qt(n),i=qt(i)):(n=Xo(n),i=Xo(i)),l=e(n,i)}return l}}function ba(e){return yn(function(t){return t=lt(t,Ut(he())),Ie(function(n){var i=this;return e(t,function(l){return Et(l,i,n)})})})}function $i(e,t){t=t===r?" ":qt(t);var n=t.length;if(n<2)return n?ya(t,e):t;var i=ya(t,Oi(e/fr(t)));return dr(t)?zn(sn(i),0,e).join(""):i.slice(0,e)}function kd(e,t,n,i){var l=t&U,f=Kr(e);function m(){for(var w=-1,C=arguments.length,R=-1,F=i.length,M=I(F+C),V=this&&this!==et&&this instanceof m?f:e;++R<F;)M[R]=i[R];for(;C--;)M[R++]=arguments[++w];return Et(V,l?n:this,M)}return m}function dl(e){return function(t,n,i){return i&&typeof i!="number"&&Mt(t,n,i)&&(n=i=r),t=An(t),n===r?(n=t,t=0):n=An(n),i=i===r?t<n?1:-1:An(i),Dd(t,n,i,e)}}function Ki(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=en(t),n=en(n)),e(t,n)}}function fl(e,t,n,i,l,f,m,w,C,R){var F=t&ie,M=F?m:r,V=F?r:m,ee=F?f:r,me=F?r:f;t|=F?le:Se,t&=~(F?Se:le),t&q||(t&=-4);var De=[e,t,l,ee,M,me,V,w,C,R],ue=n.apply(r,De);return Fa(e)&&Cl(ue,De),ue.placeholder=i,bl(ue,e,t)}function Da(e){var t=_t[e];return function(n,i){if(n=en(n),i=i==null?0:Nt(be(i),292),i&&bo(n)){var l=($e(n)+"e").split("e"),f=t(l[0]+"e"+(+l[1]+i));return l=($e(f)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(n)}}var zd=pr&&1/Di(new pr([,-0]))[1]==Oe?function(e){return new pr(e)}:Xa;function hl(e){return function(t){var n=jt(t);return n==k?na(t):n==$?su(t):Kc(t,e(t))}}function vn(e,t,n,i,l,f,m,w){var C=t&te;if(!C&&typeof e!="function")throw new Xt(g);var R=i?i.length:0;if(R||(t&=-97,i=l=r),m=m===r?m:St(be(m),0),w=w===r?w:be(w),R-=l?l.length:0,t&Se){var F=i,M=l;i=l=r}var V=C?r:Ia(e),ee=[e,t,n,i,l,F,M,f,m,w];if(V&&rf(ee,V),e=ee[0],t=ee[1],n=ee[2],i=ee[3],l=ee[4],w=ee[9]=ee[9]===r?C?0:e.length:St(ee[9]-R,0),!w&&t&(ie|We)&&(t&=-25),!t||t==U)var me=Wd(e,t,n);else t==ie||t==We?me=Bd(e,t,w):(t==le||t==(U|le))&&!l.length?me=kd(e,t,n,i):me=Qi.apply(r,ee);var De=V?Vo:Cl;return bl(De(me,ee),e,t)}function gl(e,t,n,i){return e===r||ln(e,gr[n])&&!Xe.call(i,n)?t:e}function pl(e,t,n,i,l,f){return dt(e)&&dt(t)&&(f.set(t,e),Ui(e,t,r,pl,f),f.delete(t)),e}function Gd(e){return ei(e)?r:e}function ml(e,t,n,i,l,f){var m=n&Z,w=e.length,C=t.length;if(w!=C&&!(m&&C>w))return!1;var R=f.get(e),F=f.get(t);if(R&&F)return R==t&&F==e;var M=-1,V=!0,ee=n&K?new $n:r;for(f.set(e,t),f.set(t,e);++M<w;){var me=e[M],De=t[M];if(i)var ue=m?i(De,me,M,t,e,f):i(me,De,M,e,t,f);if(ue!==r){if(ue)continue;V=!1;break}if(ee){if(!$s(t,function(Fe,Me){if(!Br(ee,Me)&&(me===Fe||l(me,Fe,n,i,f)))return ee.push(Me)})){V=!1;break}}else if(!(me===De||l(me,De,n,i,f))){V=!1;break}}return f.delete(e),f.delete(t),V}function Ud(e,t,n,i,l,f,m){switch(n){case ke:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pt:return!(e.byteLength!=t.byteLength||!f(new Ri(e),new Ri(t)));case gt:case Je:case Ae:return ln(+e,+t);case je:return e.name==t.name&&e.message==t.message;case H:case Q:return e==t+"";case k:var w=na;case $:var C=i&Z;if(w||(w=Di),e.size!=t.size&&!C)return!1;var R=m.get(e);if(R)return R==t;i|=K,m.set(e,t);var F=ml(w(e),w(t),i,l,f,m);return m.delete(e),F;case Ce:if(qr)return qr.call(e)==qr.call(t)}return!1}function qd(e,t,n,i,l,f){var m=n&Z,w=Ta(e),C=w.length,R=Ta(t),F=R.length;if(C!=F&&!m)return!1;for(var M=C;M--;){var V=w[M];if(!(m?V in t:Xe.call(t,V)))return!1}var ee=f.get(e),me=f.get(t);if(ee&&me)return ee==t&&me==e;var De=!0;f.set(e,t),f.set(t,e);for(var ue=m;++M<C;){V=w[M];var Fe=e[V],Me=t[V];if(i)var Vt=m?i(Me,Fe,V,t,e,f):i(Fe,Me,V,e,t,f);if(!(Vt===r?Fe===Me||l(Fe,Me,n,i,f):Vt)){De=!1;break}ue||(ue=V=="constructor")}if(De&&!ue){var Ht=e.constructor,Qt=t.constructor;Ht!=Qt&&"constructor"in e&&"constructor"in t&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof Qt=="function"&&Qt instanceof Qt)&&(De=!1)}return f.delete(e),f.delete(t),De}function yn(e){return Ea(_l(e,r,jl),e+"")}function Ta(e){return Oo(e,Ct,ja)}function La(e){return Oo(e,zt,vl)}var Ia=Hi?function(e){return Hi.get(e)}:Xa;function Ji(e){for(var t=e.name+"",n=mr[t],i=Xe.call(mr,t)?n.length:0;i--;){var l=n[i],f=l.func;if(f==null||f==e)return l.name}return t}function wr(e){var t=Xe.call(d,"placeholder")?d:e;return t.placeholder}function he(){var e=d.iteratee||Va;return e=e===Va?Wo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zi(e,t){var n=e.__data__;return Zd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Na(e){for(var t=Ct(e),n=t.length;n--;){var i=t[n],l=e[i];t[n]=[i,l,wl(l)]}return t}function Zn(e,t){var n=nu(e,t);return Ho(n)?n:r}function Yd(e){var t=Xe.call(e,Qn),n=e[Qn];try{e[Qn]=r;var i=!0}catch{}var l=Ni.call(e);return i&&(t?e[Qn]=n:delete e[Qn]),l}var ja=ia?function(e){return e==null?[]:(e=it(e),En(ia(e),function(t){return So.call(e,t)}))}:$a,vl=ia?function(e){for(var t=[];e;)On(t,ja(e)),e=Fi(e);return t}:$a,jt=Ot;(sa&&jt(new sa(new ArrayBuffer(1)))!=ke||zr&&jt(new zr)!=k||aa&&jt(aa.resolve())!=Y||pr&&jt(new pr)!=$||Gr&&jt(new Gr)!=ae)&&(jt=function(e){var t=Ot(e),n=t==G?e.constructor:r,i=n?er(n):"";if(i)switch(i){case Lu:return ke;case Iu:return k;case Nu:return Y;case ju:return $;case Ru:return ae}return t});function Vd(e,t,n){for(var i=-1,l=n.length;++i<l;){var f=n[i],m=f.size;switch(f.type){case"drop":e+=m;break;case"dropRight":t-=m;break;case"take":t=Nt(t,e+m);break;case"takeRight":e=St(e,t-m);break}}return{start:e,end:t}}function Qd(e){var t=e.match(xs);return t?t[1].split(ir):[]}function yl(e,t,n){t=kn(t,e);for(var i=-1,l=t.length,f=!1;++i<l;){var m=on(t[i]);if(!(f=e!=null&&n(e,m)))break;e=e[m]}return f||++i!=l?f:(l=e==null?0:e.length,!!l&&as(l)&&xn(m,l)&&(_e(e)||tr(e)))}function Xd(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function xl(e){return typeof e.constructor=="function"&&!Jr(e)?vr(Fi(e)):{}}function $d(e,t,n){var i=e.constructor;switch(t){case pt:return Ca(e);case gt:case Je:return new i(+e);case ke:return Fd(e,n);case Rt:case Ue:case nn:case rn:case Ft:case Ln:case In:case Nn:case jn:return tl(e,n);case k:return new i;case Ae:case Q:return new i(e);case H:return Pd(e);case $:return new i;case Ce:return Ed(e)}}function Kd(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ys,`{
|
|
29
29
|
/* [wrapped with `+t+`] */
|
|
30
|
-
`)}function Jd(e){return _e(e)||tr(e)||!!(Co&&e&&e[Co])}function xn(e,t){var n=typeof e;return t=t??Te,!!t&&(n=="number"||n!="symbol"&&bs.test(e))&&e>-1&&e%1==0&&e<t}function Mt(e,t,n){if(!ut(n))return!1;var i=typeof t;return(i=="number"?kt(n)&&xn(t,n.length):i=="string"&&t in n)?ln(n[t],e):!1}function Fa(e,t){if(_e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Yt(e)?!0:gs.test(e)||!dn.test(e)||t!=null&&e in it(t)}function Zd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ra(e){var t=Ji(e),n=d[t];if(typeof n!="function"||!(t in Pe.prototype))return!1;if(e===n)return!0;var i=Ia(n);return!!i&&e===i[0]}function ef(e){return!!wo&&wo in e}var tf=Li?wn:Ka;function Jr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gr;return e===n}function wl(e){return e===e&&!ut(e)}function Al(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in it(n))}}function nf(e){var t=is(e,function(i){return n.size===A&&n.clear(),i}),n=t.cache;return t}function rf(e,t){var n=e[1],i=t[1],l=n|i,f=l<(U|te|ge),m=i==ge&&n==re||i==ge&&n==de&&e[7].length<=t[8]||i==(ge|de)&&t[7].length<=t[8]&&n==re;if(!(f||m))return e;i&U&&(e[2]=t[2],l|=n&U?0:q);var w=t[3];if(w){var C=e[3];e[3]=C?rl(C,w,t[4]):w,e[4]=C?Mn(e[3],D):t[4]}return w=t[5],w&&(C=e[5],e[5]=C?il(C,w,t[6]):w,e[6]=C?Mn(e[5],D):t[6]),w=t[7],w&&(e[7]=w),i&ge&&(e[8]=e[8]==null?t[8]:Nt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function sf(e){var t=[];if(e!=null)for(var n in it(e))t.push(n);return t}function af(e){return Ni.call(e)}function _l(e,t,n){return t=St(t===r?e.length-1:t,0),function(){for(var i=arguments,l=-1,f=St(i.length-t,0),m=I(f);++l<f;)m[l]=i[t+l];l=-1;for(var w=I(t+1);++l<t;)w[l]=i[l];return w[t]=n(m),Et(e,this,w)}}function Sl(e,t){return t.length<2?e:Jn(e,Jt(t,0,-1))}function of(e,t){for(var n=e.length,i=Nt(t.length,n),l=Bt(e);i--;){var f=t[i];e[i]=xn(f,n)?l[f]:r}return e}function Pa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Cl=Dl(Vo),Zr=Au||function(e,t){return et.setTimeout(e,t)},Ea=Dl(Id);function bl(e,t,n){var i=t+"";return Ea(e,Kd(i,lf(Qd(i),n)))}function Dl(e){var t=0,n=0;return function(){var i=bu(),l=dt-(i-n);if(n=i,l>0){if(++t>=oe)return arguments[0]}else t=0;return e.apply(r,arguments)}}function es(e,t){var n=-1,i=e.length,l=i-1;for(t=t===r?i:t;++n<t;){var f=va(n,l),m=e[f];e[f]=e[n],e[n]=m}return e.length=t,e}var Tl=nf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ps,function(n,i,l,f){t.push(l?f.replace(ws,"$1"):i||n)}),t});function on(e){if(typeof e=="string"||Yt(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function er(e){if(e!=null){try{return Ii.call(e)}catch{}try{return e+""}catch{}}return""}function lf(e,t){return rt(ie,function(n){var i="_."+n[0];t&n[1]&&!Ci(e,i)&&e.push(i)}),e.sort()}function Ll(e){if(e instanceof Pe)return e.clone();var t=new $t(e.__wrapped__,e.__chain__);return t.__actions__=Bt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function cf(e,t,n){(n?Mt(e,t,n):t===r)?t=1:t=St(be(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,f=0,m=I(Oi(i/t));l<i;)m[f++]=Jt(e,l,l+=t);return m}function uf(e){for(var t=-1,n=e==null?0:e.length,i=0,l=[];++t<n;){var f=e[t];f&&(l[i++]=f)}return l}function df(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return On(_e(n)?Bt(n):[n],bt(t,1))}var ff=Ie(function(e,t){return mt(e)?Vr(e,bt(t,1,mt,!0)):[]}),hf=Ie(function(e,t){var n=Zt(t);return mt(n)&&(n=r),mt(e)?Vr(e,bt(t,1,mt,!0),he(n,2)):[]}),gf=Ie(function(e,t){var n=Zt(t);return mt(n)&&(n=r),mt(e)?Vr(e,bt(t,1,mt,!0),r,n):[]});function pf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),Jt(e,t<0?0:t,i)):[]}function mf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),t=i-t,Jt(e,0,t<0?0:t)):[]}function vf(e,t){return e&&e.length?Yi(e,he(t,3),!0,!0):[]}function yf(e,t){return e&&e.length?Yi(e,he(t,3),!0):[]}function xf(e,t,n,i){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&Mt(e,t,n)&&(n=0,i=l),ud(e,t,n,i)):[]}function Il(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:be(n);return l<0&&(l=St(i+l,0)),bi(e,he(t,3),l)}function Nl(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return n!==r&&(l=be(n),l=n<0?St(i+l,0):Nt(l,i-1)),bi(e,he(t,3),l,!0)}function jl(e){var t=e==null?0:e.length;return t?bt(e,1):[]}function wf(e){var t=e==null?0:e.length;return t?bt(e,Oe):[]}function Af(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:be(t),bt(e,t)):[]}function _f(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var l=e[t];fn(i,l[0],l[1])}return i}function Fl(e){return e&&e.length?e[0]:r}function Sf(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:be(n);return l<0&&(l=St(i+l,0)),ur(e,t,l)}function Cf(e){var t=e==null?0:e.length;return t?Jt(e,0,-1):[]}var bf=Ie(function(e){var t=lt(e,_a);return t.length&&t[0]===e[0]?fa(t):[]}),Df=Ie(function(e){var t=Zt(e),n=lt(e,_a);return t===Zt(n)?t=r:n.pop(),n.length&&n[0]===e[0]?fa(n,he(t,2)):[]}),Tf=Ie(function(e){var t=Zt(e),n=lt(e,_a);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?fa(n,r,t):[]});function Lf(e,t){return e==null?"":Su.call(e,t)}function Zt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function If(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i;return n!==r&&(l=be(n),l=l<0?St(i+l,0):Nt(l,i-1)),t===t?ou(e,t,l):bi(e,fo,l,!0)}function Nf(e,t){return e&&e.length?Go(e,be(t)):r}var jf=Ie(Rl);function Rl(e,t){return e&&e.length&&t&&t.length?ma(e,t):e}function Ff(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,he(n,2)):e}function Rf(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,r,n):e}var Pf=yn(function(e,t){var n=e==null?0:e.length,i=la(e,t);return Yo(e,lt(t,function(l){return xn(l,n)?+l:l}).sort(nl)),i});function Ef(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,l=[],f=e.length;for(t=he(t,3);++i<f;){var m=e[i];t(m,i,e)&&(n.push(m),l.push(i))}return Yo(e,l),n}function Oa(e){return e==null?e:Tu.call(e)}function Of(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&Mt(e,t,n)?(t=0,n=i):(t=t==null?0:be(t),n=n===r?i:be(n)),Jt(e,t,n)):[]}function Mf(e,t){return qi(e,t)}function Hf(e,t,n){return xa(e,t,he(n,2))}function Wf(e,t){var n=e==null?0:e.length;if(n){var i=qi(e,t);if(i<n&&ln(e[i],t))return i}return-1}function Bf(e,t){return qi(e,t,!0)}function kf(e,t,n){return xa(e,t,he(n,2),!0)}function zf(e,t){var n=e==null?0:e.length;if(n){var i=qi(e,t,!0)-1;if(ln(e[i],t))return i}return-1}function Gf(e){return e&&e.length?Qo(e):[]}function Uf(e,t){return e&&e.length?Qo(e,he(t,2)):[]}function qf(e){var t=e==null?0:e.length;return t?Jt(e,1,t):[]}function Yf(e,t,n){return e&&e.length?(t=n||t===r?1:be(t),Jt(e,0,t<0?0:t)):[]}function Vf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),t=i-t,Jt(e,t<0?0:t,i)):[]}function Qf(e,t){return e&&e.length?Yi(e,he(t,3),!1,!0):[]}function Xf(e,t){return e&&e.length?Yi(e,he(t,3)):[]}var $f=Ie(function(e){return Bn(bt(e,1,mt,!0))}),Kf=Ie(function(e){var t=Zt(e);return mt(t)&&(t=r),Bn(bt(e,1,mt,!0),he(t,2))}),Jf=Ie(function(e){var t=Zt(e);return t=typeof t=="function"?t:r,Bn(bt(e,1,mt,!0),r,t)});function Zf(e){return e&&e.length?Bn(e):[]}function eh(e,t){return e&&e.length?Bn(e,he(t,2)):[]}function th(e,t){return t=typeof t=="function"?t:r,e&&e.length?Bn(e,r,t):[]}function Ma(e){if(!(e&&e.length))return[];var t=0;return e=En(e,function(n){if(mt(n))return t=St(n.length,t),!0}),ea(t,function(n){return lt(e,Ks(n))})}function Pl(e,t){if(!(e&&e.length))return[];var n=Ma(e);return t==null?n:lt(n,function(i){return Et(t,r,i)})}var nh=Ie(function(e,t){return mt(e)?Vr(e,t):[]}),rh=Ie(function(e){return Aa(En(e,mt))}),ih=Ie(function(e){var t=Zt(e);return mt(t)&&(t=r),Aa(En(e,mt),he(t,2))}),sh=Ie(function(e){var t=Zt(e);return t=typeof t=="function"?t:r,Aa(En(e,mt),r,t)}),ah=Ie(Ma);function oh(e,t){return Jo(e||[],t||[],Yr)}function lh(e,t){return Jo(e||[],t||[],$r)}var ch=Ie(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Pl(e,n)});function El(e){var t=d(e);return t.__chain__=!0,t}function uh(e,t){return t(e),e}function ts(e,t){return t(e)}var dh=yn(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,l=function(f){return la(f,e)};return t>1||this.__actions__.length||!(i instanceof Pe)||!xn(n)?this.thru(l):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ts,args:[l],thisArg:r}),new $t(i,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function fh(){return El(this)}function hh(){return new $t(this.value(),this.__chain__)}function gh(){this.__values__===r&&(this.__values__=Xl(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function ph(){return this}function mh(e){for(var t,n=this;n instanceof Bi;){var i=Ll(n);i.__index__=0,i.__values__=r,t?l.__wrapped__=i:t=i;var l=i;n=n.__wrapped__}return l.__wrapped__=e,t}function vh(){var e=this.__wrapped__;if(e instanceof Pe){var t=e;return this.__actions__.length&&(t=new Pe(this)),t=t.reverse(),t.__actions__.push({func:ts,args:[Oa],thisArg:r}),new $t(t,this.__chain__)}return this.thru(Oa)}function yh(){return Ko(this.__wrapped__,this.__actions__)}var xh=Vi(function(e,t,n){Xe.call(e,n)?++e[n]:fn(e,n,1)});function wh(e,t,n){var i=_e(e)?co:cd;return n&&Mt(e,t,n)&&(t=r),i(e,he(t,3))}function Ah(e,t){var n=_e(e)?En:Po;return n(e,he(t,3))}var _h=ll(Il),Sh=ll(Nl);function Ch(e,t){return bt(ns(e,t),1)}function bh(e,t){return bt(ns(e,t),Oe)}function Dh(e,t,n){return n=n===r?1:be(n),bt(ns(e,t),n)}function Ol(e,t){var n=_e(e)?rt:Wn;return n(e,he(t,3))}function Ml(e,t){var n=_e(e)?Uc:Ro;return n(e,he(t,3))}var Th=Vi(function(e,t,n){Xe.call(e,n)?e[n].push(t):fn(e,n,[t])});function Lh(e,t,n,i){e=kt(e)?e:_r(e),n=n&&!i?be(n):0;var l=e.length;return n<0&&(n=St(l+n,0)),os(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&ur(e,t,n)>-1}var Ih=Ie(function(e,t,n){var i=-1,l=typeof t=="function",f=kt(e)?I(e.length):[];return Wn(e,function(m){f[++i]=l?Et(t,m,n):Qr(m,t,n)}),f}),Nh=Vi(function(e,t,n){fn(e,n,t)});function ns(e,t){var n=_e(e)?lt:Bo;return n(e,he(t,3))}function jh(e,t,n,i){return e==null?[]:(_e(t)||(t=t==null?[]:[t]),n=i?r:n,_e(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var Fh=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Rh(e,t,n){var i=_e(e)?Xs:go,l=arguments.length<3;return i(e,he(t,4),n,l,Wn)}function Ph(e,t,n){var i=_e(e)?qc:go,l=arguments.length<3;return i(e,he(t,4),n,l,Ro)}function Eh(e,t){var n=_e(e)?En:Po;return n(e,ss(he(t,3)))}function Oh(e){var t=_e(e)?Io:Td;return t(e)}function Mh(e,t,n){(n?Mt(e,t,n):t===r)?t=1:t=be(t);var i=_e(e)?id:Ld;return i(e,t)}function Hh(e){var t=_e(e)?sd:Nd;return t(e)}function Wh(e){if(e==null)return 0;if(kt(e))return os(e)?fr(e):e.length;var t=jt(e);return t==k||t==$?e.size:ga(e).length}function Bh(e,t,n){var i=_e(e)?$s:jd;return n&&Mt(e,t,n)&&(t=r),i(e,he(t,3))}var kh=Ie(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Mt(e,t[0],t[1])?t=[]:n>2&&Mt(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,bt(t,1),[])}),rs=wu||function(){return et.Date.now()};function zh(e,t){if(typeof t!="function")throw new Xt(g);return e=be(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hl(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,vn(e,ge,r,r,r,r,t)}function Wl(e,t){var n;if(typeof t!="function")throw new Xt(g);return e=be(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ha=Ie(function(e,t,n){var i=U;if(n.length){var l=Mn(n,wr(Ha));i|=le}return vn(e,i,t,n,l)}),Bl=Ie(function(e,t,n){var i=U|te;if(n.length){var l=Mn(n,wr(Bl));i|=le}return vn(t,i,e,n,l)});function kl(e,t,n){t=n?r:t;var i=vn(e,re,r,r,r,r,r,t);return i.placeholder=kl.placeholder,i}function zl(e,t,n){t=n?r:t;var i=vn(e,We,r,r,r,r,r,t);return i.placeholder=zl.placeholder,i}function Gl(e,t,n){var i,l,f,m,w,C,F=0,R=!1,M=!1,V=!0;if(typeof e!="function")throw new Xt(g);t=en(t)||0,ut(n)&&(R=!!n.leading,M="maxWait"in n,f=M?St(en(n.maxWait)||0,t):f,V="trailing"in n?!!n.trailing:V);function ee(vt){var cn=i,_n=l;return i=l=r,F=vt,m=e.apply(_n,cn),m}function me(vt){return F=vt,w=Zr(Re,t),R?ee(vt):m}function De(vt){var cn=vt-C,_n=vt-F,cc=t-cn;return M?Nt(cc,f-_n):cc}function ue(vt){var cn=vt-C,_n=vt-F;return C===r||cn>=t||cn<0||M&&_n>=f}function Re(){var vt=rs();if(ue(vt))return Me(vt);w=Zr(Re,De(vt))}function Me(vt){return w=r,V&&i?ee(vt):(i=l=r,m)}function Vt(){w!==r&&Zo(w),F=0,i=C=l=w=r}function Ht(){return w===r?m:Me(rs())}function Qt(){var vt=rs(),cn=ue(vt);if(i=arguments,l=this,C=vt,cn){if(w===r)return me(C);if(M)return Zo(w),w=Zr(Re,t),ee(C)}return w===r&&(w=Zr(Re,t)),m}return Qt.cancel=Vt,Qt.flush=Ht,Qt}var Gh=Ie(function(e,t){return Fo(e,1,t)}),Uh=Ie(function(e,t,n){return Fo(e,en(t)||0,n)});function qh(e){return vn(e,Ge)}function is(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xt(g);var n=function(){var i=arguments,l=t?t.apply(this,i):i[0],f=n.cache;if(f.has(l))return f.get(l);var m=e.apply(this,i);return n.cache=f.set(l,m)||f,m};return n.cache=new(is.Cache||mn),n}is.Cache=mn;function ss(e){if(typeof e!="function")throw new Xt(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yh(e){return Wl(2,e)}var Vh=Fd(function(e,t){t=t.length==1&&_e(t[0])?lt(t[0],Ut(he())):lt(bt(t,1),Ut(he()));var n=t.length;return Ie(function(i){for(var l=-1,f=Nt(i.length,n);++l<f;)i[l]=t[l].call(this,i[l]);return Et(e,this,i)})}),Wa=Ie(function(e,t){var n=Mn(t,wr(Wa));return vn(e,le,r,t,n)}),Ul=Ie(function(e,t){var n=Mn(t,wr(Ul));return vn(e,Se,r,t,n)}),Qh=yn(function(e,t){return vn(e,de,r,r,r,t)});function Xh(e,t){if(typeof e!="function")throw new Xt(g);return t=t===r?t:be(t),Ie(e,t)}function $h(e,t){if(typeof e!="function")throw new Xt(g);return t=t==null?0:St(be(t),0),Ie(function(n){var i=n[t],l=zn(n,0,t);return i&&On(l,i),Et(e,this,l)})}function Kh(e,t,n){var i=!0,l=!0;if(typeof e!="function")throw new Xt(g);return ut(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),Gl(e,t,{leading:i,maxWait:t,trailing:l})}function Jh(e){return Hl(e,1)}function Zh(e,t){return Wa(Sa(t),e)}function eg(){if(!arguments.length)return[];var e=arguments[0];return _e(e)?e:[e]}function tg(e){return Kt(e,W)}function ng(e,t){return t=typeof t=="function"?t:r,Kt(e,W,t)}function rg(e){return Kt(e,L|W)}function ig(e,t){return t=typeof t=="function"?t:r,Kt(e,L|W,t)}function sg(e,t){return t==null||jo(e,t,Ct(t))}function ln(e,t){return e===t||e!==e&&t!==t}var ag=Ki(da),og=Ki(function(e,t){return e>=t}),tr=Mo((function(){return arguments})())?Mo:function(e){return ft(e)&&Xe.call(e,"callee")&&!So.call(e,"callee")},_e=I.isArray,lg=Wr?Ut(Wr):pd;function kt(e){return e!=null&&as(e.length)&&!wn(e)}function mt(e){return ft(e)&&kt(e)}function cg(e){return e===!0||e===!1||ft(e)&&Ot(e)==gt}var Gn=_u||Ka,ug=Rn?Ut(Rn):md;function dg(e){return ft(e)&&e.nodeType===1&&!ei(e)}function fg(e){if(e==null)return!0;if(kt(e)&&(_e(e)||typeof e=="string"||typeof e.splice=="function"||Gn(e)||Ar(e)||tr(e)))return!e.length;var t=jt(e);if(t==k||t==$)return!e.size;if(Jr(e))return!ga(e).length;for(var n in e)if(Xe.call(e,n))return!1;return!0}function hg(e,t){return Xr(e,t)}function gg(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?Xr(e,t,r,n):!!i}function Ba(e){if(!ft(e))return!1;var t=Ot(e);return t==je||t==Tt||typeof e.message=="string"&&typeof e.name=="string"&&!ei(e)}function pg(e){return typeof e=="number"&&bo(e)}function wn(e){if(!ut(e))return!1;var t=Ot(e);return t==P||t==B||t==Le||t==ne}function ql(e){return typeof e=="number"&&e==be(e)}function as(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Te}function ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ft(e){return e!=null&&typeof e=="object"}var Yl=Ai?Ut(Ai):yd;function mg(e,t){return e===t||ha(e,t,Na(t))}function vg(e,t,n){return n=typeof n=="function"?n:r,ha(e,t,Na(t),n)}function yg(e){return Vl(e)&&e!=+e}function xg(e){if(tf(e))throw new we(h);return Ho(e)}function wg(e){return e===null}function Ag(e){return e==null}function Vl(e){return typeof e=="number"||ft(e)&&Ot(e)==Ae}function ei(e){if(!ft(e)||Ot(e)!=G)return!1;var t=Ri(e);if(t===null)return!0;var n=Xe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ii.call(n)==mu}var ka=Pn?Ut(Pn):xd;function _g(e){return ql(e)&&e>=-Te&&e<=Te}var Ql=_i?Ut(_i):wd;function os(e){return typeof e=="string"||!_e(e)&&ft(e)&&Ot(e)==Q}function Yt(e){return typeof e=="symbol"||ft(e)&&Ot(e)==Ce}var Ar=Si?Ut(Si):Ad;function Sg(e){return e===r}function Cg(e){return ft(e)&&jt(e)==se}function bg(e){return ft(e)&&Ot(e)==Ne}var Dg=Ki(pa),Tg=Ki(function(e,t){return e<=t});function Xl(e){if(!e)return[];if(kt(e))return os(e)?sn(e):Bt(e);if(kr&&e[kr])return iu(e[kr]());var t=jt(e),n=t==k?na:t==$?Di:_r;return n(e)}function An(e){if(!e)return e===0?e:0;if(e=en(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*Be}return e===e?e:0}function be(e){var t=An(e),n=t%1;return t===t?n?t-n:t:0}function $l(e){return e?Kn(be(e),0,z):0}function en(e){if(typeof e=="number")return e;if(Yt(e))return ve;if(ut(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ut(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=po(e);var n=Ss.test(e);return n||Cs.test(e)?Ve(e.slice(2),n?2:8):_s.test(e)?ve:+e}function Kl(e){return gn(e,zt(e))}function Lg(e){return e?Kn(be(e),-Te,Te):e===0?e:0}function $e(e){return e==null?"":qt(e)}var Ig=yr(function(e,t){if(Jr(t)||kt(t)){gn(t,Ct(t),e);return}for(var n in t)Xe.call(t,n)&&Yr(e,n,t[n])}),Jl=yr(function(e,t){gn(t,zt(t),e)}),Zl=yr(function(e,t,n,i){gn(t,zt(t),e,i)}),za=yr(function(e,t,n,i){gn(t,Ct(t),e,i)}),Ng=yn(la);function jg(e,t){var n=vr(e);return t==null?n:No(n,t)}var Fg=Ie(function(e,t){e=it(e);var n=-1,i=t.length,l=i>2?t[2]:r;for(l&&Mt(t[0],t[1],l)&&(i=1);++n<i;)for(var f=t[n],m=zt(f),w=-1,C=m.length;++w<C;){var F=m[w],R=e[F];(R===r||ln(R,gr[F])&&!Xe.call(e,F))&&(e[F]=f[F])}return e}),Rg=Ie(function(e){return e.push(r,pl),Et(ec,r,e)});function Pg(e,t){return uo(e,he(t,3),hn)}function Eg(e,t){return uo(e,he(t,3),ua)}function Og(e,t){return e==null?e:ca(e,he(t,3),zt)}function Mg(e,t){return e==null?e:Eo(e,he(t,3),zt)}function Hg(e,t){return e&&hn(e,he(t,3))}function Wg(e,t){return e&&ua(e,he(t,3))}function Bg(e){return e==null?[]:Gi(e,Ct(e))}function kg(e){return e==null?[]:Gi(e,zt(e))}function Ga(e,t,n){var i=e==null?r:Jn(e,t);return i===r?n:i}function zg(e,t){return e!=null&&yl(e,t,dd)}function Ua(e,t){return e!=null&&yl(e,t,fd)}var Gg=ul(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ni.call(t)),e[t]=n},Ya(Gt)),Ug=ul(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ni.call(t)),Xe.call(e,t)?e[t].push(n):e[t]=[n]},he),qg=Ie(Qr);function Ct(e){return kt(e)?Lo(e):ga(e)}function zt(e){return kt(e)?Lo(e,!0):_d(e)}function Yg(e,t){var n={};return t=he(t,3),hn(e,function(i,l,f){fn(n,t(i,l,f),i)}),n}function Vg(e,t){var n={};return t=he(t,3),hn(e,function(i,l,f){fn(n,l,t(i,l,f))}),n}var Qg=yr(function(e,t,n){Ui(e,t,n)}),ec=yr(function(e,t,n,i){Ui(e,t,n,i)}),Xg=yn(function(e,t){var n={};if(e==null)return n;var i=!1;t=lt(t,function(f){return f=kn(f,e),i||(i=f.length>1),f}),gn(e,La(e),n),i&&(n=Kt(n,L|O|W,Gd));for(var l=t.length;l--;)wa(n,t[l]);return n});function $g(e,t){return tc(e,ss(he(t)))}var Kg=yn(function(e,t){return e==null?{}:Cd(e,t)});function tc(e,t){if(e==null)return{};var n=lt(La(e),function(i){return[i]});return t=he(t),qo(e,n,function(i,l){return t(i,l[0])})}function Jg(e,t,n){t=kn(t,e);var i=-1,l=t.length;for(l||(l=1,e=r);++i<l;){var f=e==null?r:e[on(t[i])];f===r&&(i=l,f=n),e=wn(f)?f.call(e):f}return e}function Zg(e,t,n){return e==null?e:$r(e,t,n)}function ep(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:$r(e,t,n,i)}var nc=hl(Ct),rc=hl(zt);function tp(e,t,n){var i=_e(e),l=i||Gn(e)||Ar(e);if(t=he(t,4),n==null){var f=e&&e.constructor;l?n=i?new f:[]:ut(e)?n=wn(f)?vr(Ri(e)):{}:n={}}return(l?rt:hn)(e,function(m,w,C){return t(n,m,w,C)}),n}function np(e,t){return e==null?!0:wa(e,t)}function rp(e,t,n){return e==null?e:$o(e,t,Sa(n))}function ip(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:$o(e,t,Sa(n),i)}function _r(e){return e==null?[]:ta(e,Ct(e))}function sp(e){return e==null?[]:ta(e,zt(e))}function ap(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=en(n),n=n===n?n:0),t!==r&&(t=en(t),t=t===t?t:0),Kn(en(e),t,n)}function op(e,t,n){return t=An(t),n===r?(n=t,t=0):n=An(n),e=en(e),hd(e,t,n)}function lp(e,t,n){if(n&&typeof n!="boolean"&&Mt(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=An(e),t===r?(t=e,e=0):t=An(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var l=Do();return Nt(e+l*(t-e+st("1e-"+((l+"").length-1))),t)}return va(e,t)}var cp=xr(function(e,t,n){return t=t.toLowerCase(),e+(n?ic(t):t)});function ic(e){return qa($e(e).toLowerCase())}function sc(e){return e=$e(e),e&&e.replace(Ds,Zc).replace(zs,"")}function up(e,t,n){e=$e(e),t=qt(t);var i=e.length;n=n===r?i:Kn(be(n),0,i);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function dp(e){return e=$e(e),e&&Fn.test(e)?e.replace(Un,eu):e}function fp(e){return e=$e(e),e&&ms.test(e)?e.replace(Ir,"\\$&"):e}var hp=xr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gp=xr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),pp=ol("toLowerCase");function mp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return $i(Mi(l),n)+e+$i(Oi(l),n)}function vp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;return t&&i<t?e+$i(t-i,n):e}function yp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;return t&&i<t?$i(t-i,n)+e:e}function xp(e,t,n){return n||t==null?t=0:t&&(t=+t),Du($e(e).replace(Nr,""),t||0)}function wp(e,t,n){return(n?Mt(e,t,n):t===r)?t=1:t=be(t),ya($e(e),t)}function Ap(){var e=arguments,t=$e(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var _p=xr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function Sp(e,t,n){return n&&typeof n!="number"&&Mt(e,t,n)&&(t=n=r),n=n===r?z:n>>>0,n?(e=$e(e),e&&(typeof t=="string"||t!=null&&!ka(t))&&(t=qt(t),!t&&dr(e))?zn(sn(e),0,n):e.split(t,n)):[]}var Cp=xr(function(e,t,n){return e+(n?" ":"")+qa(t)});function bp(e,t,n){return e=$e(e),n=n==null?0:Kn(be(n),0,e.length),t=qt(t),e.slice(n,n+t.length)==t}function Dp(e,t,n){var i=d.templateSettings;n&&Mt(e,t,n)&&(t=r),e=$e(e),t=za({},t,i,gl);var l=za({},t.imports,i.imports,gl),f=Ct(l),m=ta(l,f);rt(f,function(ue){if(jr.test(ue))throw new we(x)});var w,C,F=0,R=t.interpolate||sr,M="__p += '",V=ra((t.escape||sr).source+"|"+R.source+"|"+(R===qn?As:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),ee="//# sourceURL="+(Xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vs+"]")+`
|
|
31
|
-
`;e.replace(V,function(ue,
|
|
32
|
-
__e(`+
|
|
30
|
+
`)}function Jd(e){return _e(e)||tr(e)||!!(Co&&e&&e[Co])}function xn(e,t){var n=typeof e;return t=t??Te,!!t&&(n=="number"||n!="symbol"&&bs.test(e))&&e>-1&&e%1==0&&e<t}function Mt(e,t,n){if(!dt(n))return!1;var i=typeof t;return(i=="number"?kt(n)&&xn(t,n.length):i=="string"&&t in n)?ln(n[t],e):!1}function Ra(e,t){if(_e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Yt(e)?!0:gs.test(e)||!dn.test(e)||t!=null&&e in it(t)}function Zd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fa(e){var t=Ji(e),n=d[t];if(typeof n!="function"||!(t in Pe.prototype))return!1;if(e===n)return!0;var i=Ia(n);return!!i&&e===i[0]}function ef(e){return!!wo&&wo in e}var tf=Li?wn:Ka;function Jr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gr;return e===n}function wl(e){return e===e&&!dt(e)}function Al(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in it(n))}}function nf(e){var t=is(e,function(i){return n.size===A&&n.clear(),i}),n=t.cache;return t}function rf(e,t){var n=e[1],i=t[1],l=n|i,f=l<(U|te|ge),m=i==ge&&n==ie||i==ge&&n==de&&e[7].length<=t[8]||i==(ge|de)&&t[7].length<=t[8]&&n==ie;if(!(f||m))return e;i&U&&(e[2]=t[2],l|=n&U?0:q);var w=t[3];if(w){var C=e[3];e[3]=C?rl(C,w,t[4]):w,e[4]=C?Mn(e[3],D):t[4]}return w=t[5],w&&(C=e[5],e[5]=C?il(C,w,t[6]):w,e[6]=C?Mn(e[5],D):t[6]),w=t[7],w&&(e[7]=w),i&ge&&(e[8]=e[8]==null?t[8]:Nt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function sf(e){var t=[];if(e!=null)for(var n in it(e))t.push(n);return t}function af(e){return Ni.call(e)}function _l(e,t,n){return t=St(t===r?e.length-1:t,0),function(){for(var i=arguments,l=-1,f=St(i.length-t,0),m=I(f);++l<f;)m[l]=i[t+l];l=-1;for(var w=I(t+1);++l<t;)w[l]=i[l];return w[t]=n(m),Et(e,this,w)}}function Sl(e,t){return t.length<2?e:Jn(e,Jt(t,0,-1))}function of(e,t){for(var n=e.length,i=Nt(t.length,n),l=Bt(e);i--;){var f=t[i];e[i]=xn(f,n)?l[f]:r}return e}function Pa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Cl=Dl(Vo),Zr=Au||function(e,t){return et.setTimeout(e,t)},Ea=Dl(Id);function bl(e,t,n){var i=t+"";return Ea(e,Kd(i,lf(Qd(i),n)))}function Dl(e){var t=0,n=0;return function(){var i=bu(),l=ut-(i-n);if(n=i,l>0){if(++t>=se)return arguments[0]}else t=0;return e.apply(r,arguments)}}function es(e,t){var n=-1,i=e.length,l=i-1;for(t=t===r?i:t;++n<t;){var f=va(n,l),m=e[f];e[f]=e[n],e[n]=m}return e.length=t,e}var Tl=nf(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ps,function(n,i,l,f){t.push(l?f.replace(ws,"$1"):i||n)}),t});function on(e){if(typeof e=="string"||Yt(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function er(e){if(e!=null){try{return Ii.call(e)}catch{}try{return e+""}catch{}}return""}function lf(e,t){return rt(re,function(n){var i="_."+n[0];t&n[1]&&!Ci(e,i)&&e.push(i)}),e.sort()}function Ll(e){if(e instanceof Pe)return e.clone();var t=new $t(e.__wrapped__,e.__chain__);return t.__actions__=Bt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function cf(e,t,n){(n?Mt(e,t,n):t===r)?t=1:t=St(be(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,f=0,m=I(Oi(i/t));l<i;)m[f++]=Jt(e,l,l+=t);return m}function uf(e){for(var t=-1,n=e==null?0:e.length,i=0,l=[];++t<n;){var f=e[t];f&&(l[i++]=f)}return l}function df(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return On(_e(n)?Bt(n):[n],bt(t,1))}var ff=Ie(function(e,t){return mt(e)?Vr(e,bt(t,1,mt,!0)):[]}),hf=Ie(function(e,t){var n=Zt(t);return mt(n)&&(n=r),mt(e)?Vr(e,bt(t,1,mt,!0),he(n,2)):[]}),gf=Ie(function(e,t){var n=Zt(t);return mt(n)&&(n=r),mt(e)?Vr(e,bt(t,1,mt,!0),r,n):[]});function pf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),Jt(e,t<0?0:t,i)):[]}function mf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),t=i-t,Jt(e,0,t<0?0:t)):[]}function vf(e,t){return e&&e.length?Yi(e,he(t,3),!0,!0):[]}function yf(e,t){return e&&e.length?Yi(e,he(t,3),!0):[]}function xf(e,t,n,i){var l=e==null?0:e.length;return l?(n&&typeof n!="number"&&Mt(e,t,n)&&(n=0,i=l),ud(e,t,n,i)):[]}function Il(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:be(n);return l<0&&(l=St(i+l,0)),bi(e,he(t,3),l)}function Nl(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return n!==r&&(l=be(n),l=n<0?St(i+l,0):Nt(l,i-1)),bi(e,he(t,3),l,!0)}function jl(e){var t=e==null?0:e.length;return t?bt(e,1):[]}function wf(e){var t=e==null?0:e.length;return t?bt(e,Oe):[]}function Af(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:be(t),bt(e,t)):[]}function _f(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var l=e[t];fn(i,l[0],l[1])}return i}function Rl(e){return e&&e.length?e[0]:r}function Sf(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=n==null?0:be(n);return l<0&&(l=St(i+l,0)),ur(e,t,l)}function Cf(e){var t=e==null?0:e.length;return t?Jt(e,0,-1):[]}var bf=Ie(function(e){var t=lt(e,_a);return t.length&&t[0]===e[0]?fa(t):[]}),Df=Ie(function(e){var t=Zt(e),n=lt(e,_a);return t===Zt(n)?t=r:n.pop(),n.length&&n[0]===e[0]?fa(n,he(t,2)):[]}),Tf=Ie(function(e){var t=Zt(e),n=lt(e,_a);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?fa(n,r,t):[]});function Lf(e,t){return e==null?"":Su.call(e,t)}function Zt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function If(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var l=i;return n!==r&&(l=be(n),l=l<0?St(i+l,0):Nt(l,i-1)),t===t?ou(e,t,l):bi(e,fo,l,!0)}function Nf(e,t){return e&&e.length?Go(e,be(t)):r}var jf=Ie(Fl);function Fl(e,t){return e&&e.length&&t&&t.length?ma(e,t):e}function Rf(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,he(n,2)):e}function Ff(e,t,n){return e&&e.length&&t&&t.length?ma(e,t,r,n):e}var Pf=yn(function(e,t){var n=e==null?0:e.length,i=la(e,t);return Yo(e,lt(t,function(l){return xn(l,n)?+l:l}).sort(nl)),i});function Ef(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,l=[],f=e.length;for(t=he(t,3);++i<f;){var m=e[i];t(m,i,e)&&(n.push(m),l.push(i))}return Yo(e,l),n}function Oa(e){return e==null?e:Tu.call(e)}function Of(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&Mt(e,t,n)?(t=0,n=i):(t=t==null?0:be(t),n=n===r?i:be(n)),Jt(e,t,n)):[]}function Mf(e,t){return qi(e,t)}function Hf(e,t,n){return xa(e,t,he(n,2))}function Wf(e,t){var n=e==null?0:e.length;if(n){var i=qi(e,t);if(i<n&&ln(e[i],t))return i}return-1}function Bf(e,t){return qi(e,t,!0)}function kf(e,t,n){return xa(e,t,he(n,2),!0)}function zf(e,t){var n=e==null?0:e.length;if(n){var i=qi(e,t,!0)-1;if(ln(e[i],t))return i}return-1}function Gf(e){return e&&e.length?Qo(e):[]}function Uf(e,t){return e&&e.length?Qo(e,he(t,2)):[]}function qf(e){var t=e==null?0:e.length;return t?Jt(e,1,t):[]}function Yf(e,t,n){return e&&e.length?(t=n||t===r?1:be(t),Jt(e,0,t<0?0:t)):[]}function Vf(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:be(t),t=i-t,Jt(e,t<0?0:t,i)):[]}function Qf(e,t){return e&&e.length?Yi(e,he(t,3),!1,!0):[]}function Xf(e,t){return e&&e.length?Yi(e,he(t,3)):[]}var $f=Ie(function(e){return Bn(bt(e,1,mt,!0))}),Kf=Ie(function(e){var t=Zt(e);return mt(t)&&(t=r),Bn(bt(e,1,mt,!0),he(t,2))}),Jf=Ie(function(e){var t=Zt(e);return t=typeof t=="function"?t:r,Bn(bt(e,1,mt,!0),r,t)});function Zf(e){return e&&e.length?Bn(e):[]}function eh(e,t){return e&&e.length?Bn(e,he(t,2)):[]}function th(e,t){return t=typeof t=="function"?t:r,e&&e.length?Bn(e,r,t):[]}function Ma(e){if(!(e&&e.length))return[];var t=0;return e=En(e,function(n){if(mt(n))return t=St(n.length,t),!0}),ea(t,function(n){return lt(e,Ks(n))})}function Pl(e,t){if(!(e&&e.length))return[];var n=Ma(e);return t==null?n:lt(n,function(i){return Et(t,r,i)})}var nh=Ie(function(e,t){return mt(e)?Vr(e,t):[]}),rh=Ie(function(e){return Aa(En(e,mt))}),ih=Ie(function(e){var t=Zt(e);return mt(t)&&(t=r),Aa(En(e,mt),he(t,2))}),sh=Ie(function(e){var t=Zt(e);return t=typeof t=="function"?t:r,Aa(En(e,mt),r,t)}),ah=Ie(Ma);function oh(e,t){return Jo(e||[],t||[],Yr)}function lh(e,t){return Jo(e||[],t||[],$r)}var ch=Ie(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Pl(e,n)});function El(e){var t=d(e);return t.__chain__=!0,t}function uh(e,t){return t(e),e}function ts(e,t){return t(e)}var dh=yn(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,l=function(f){return la(f,e)};return t>1||this.__actions__.length||!(i instanceof Pe)||!xn(n)?this.thru(l):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ts,args:[l],thisArg:r}),new $t(i,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function fh(){return El(this)}function hh(){return new $t(this.value(),this.__chain__)}function gh(){this.__values__===r&&(this.__values__=Xl(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function ph(){return this}function mh(e){for(var t,n=this;n instanceof Bi;){var i=Ll(n);i.__index__=0,i.__values__=r,t?l.__wrapped__=i:t=i;var l=i;n=n.__wrapped__}return l.__wrapped__=e,t}function vh(){var e=this.__wrapped__;if(e instanceof Pe){var t=e;return this.__actions__.length&&(t=new Pe(this)),t=t.reverse(),t.__actions__.push({func:ts,args:[Oa],thisArg:r}),new $t(t,this.__chain__)}return this.thru(Oa)}function yh(){return Ko(this.__wrapped__,this.__actions__)}var xh=Vi(function(e,t,n){Xe.call(e,n)?++e[n]:fn(e,n,1)});function wh(e,t,n){var i=_e(e)?co:cd;return n&&Mt(e,t,n)&&(t=r),i(e,he(t,3))}function Ah(e,t){var n=_e(e)?En:Po;return n(e,he(t,3))}var _h=ll(Il),Sh=ll(Nl);function Ch(e,t){return bt(ns(e,t),1)}function bh(e,t){return bt(ns(e,t),Oe)}function Dh(e,t,n){return n=n===r?1:be(n),bt(ns(e,t),n)}function Ol(e,t){var n=_e(e)?rt:Wn;return n(e,he(t,3))}function Ml(e,t){var n=_e(e)?Uc:Fo;return n(e,he(t,3))}var Th=Vi(function(e,t,n){Xe.call(e,n)?e[n].push(t):fn(e,n,[t])});function Lh(e,t,n,i){e=kt(e)?e:_r(e),n=n&&!i?be(n):0;var l=e.length;return n<0&&(n=St(l+n,0)),os(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&ur(e,t,n)>-1}var Ih=Ie(function(e,t,n){var i=-1,l=typeof t=="function",f=kt(e)?I(e.length):[];return Wn(e,function(m){f[++i]=l?Et(t,m,n):Qr(m,t,n)}),f}),Nh=Vi(function(e,t,n){fn(e,n,t)});function ns(e,t){var n=_e(e)?lt:Bo;return n(e,he(t,3))}function jh(e,t,n,i){return e==null?[]:(_e(t)||(t=t==null?[]:[t]),n=i?r:n,_e(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var Rh=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Fh(e,t,n){var i=_e(e)?Xs:go,l=arguments.length<3;return i(e,he(t,4),n,l,Wn)}function Ph(e,t,n){var i=_e(e)?qc:go,l=arguments.length<3;return i(e,he(t,4),n,l,Fo)}function Eh(e,t){var n=_e(e)?En:Po;return n(e,ss(he(t,3)))}function Oh(e){var t=_e(e)?Io:Td;return t(e)}function Mh(e,t,n){(n?Mt(e,t,n):t===r)?t=1:t=be(t);var i=_e(e)?id:Ld;return i(e,t)}function Hh(e){var t=_e(e)?sd:Nd;return t(e)}function Wh(e){if(e==null)return 0;if(kt(e))return os(e)?fr(e):e.length;var t=jt(e);return t==k||t==$?e.size:ga(e).length}function Bh(e,t,n){var i=_e(e)?$s:jd;return n&&Mt(e,t,n)&&(t=r),i(e,he(t,3))}var kh=Ie(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Mt(e,t[0],t[1])?t=[]:n>2&&Mt(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,bt(t,1),[])}),rs=wu||function(){return et.Date.now()};function zh(e,t){if(typeof t!="function")throw new Xt(g);return e=be(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hl(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,vn(e,ge,r,r,r,r,t)}function Wl(e,t){var n;if(typeof t!="function")throw new Xt(g);return e=be(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ha=Ie(function(e,t,n){var i=U;if(n.length){var l=Mn(n,wr(Ha));i|=le}return vn(e,i,t,n,l)}),Bl=Ie(function(e,t,n){var i=U|te;if(n.length){var l=Mn(n,wr(Bl));i|=le}return vn(t,i,e,n,l)});function kl(e,t,n){t=n?r:t;var i=vn(e,ie,r,r,r,r,r,t);return i.placeholder=kl.placeholder,i}function zl(e,t,n){t=n?r:t;var i=vn(e,We,r,r,r,r,r,t);return i.placeholder=zl.placeholder,i}function Gl(e,t,n){var i,l,f,m,w,C,R=0,F=!1,M=!1,V=!0;if(typeof e!="function")throw new Xt(g);t=en(t)||0,dt(n)&&(F=!!n.leading,M="maxWait"in n,f=M?St(en(n.maxWait)||0,t):f,V="trailing"in n?!!n.trailing:V);function ee(vt){var cn=i,_n=l;return i=l=r,R=vt,m=e.apply(_n,cn),m}function me(vt){return R=vt,w=Zr(Fe,t),F?ee(vt):m}function De(vt){var cn=vt-C,_n=vt-R,cc=t-cn;return M?Nt(cc,f-_n):cc}function ue(vt){var cn=vt-C,_n=vt-R;return C===r||cn>=t||cn<0||M&&_n>=f}function Fe(){var vt=rs();if(ue(vt))return Me(vt);w=Zr(Fe,De(vt))}function Me(vt){return w=r,V&&i?ee(vt):(i=l=r,m)}function Vt(){w!==r&&Zo(w),R=0,i=C=l=w=r}function Ht(){return w===r?m:Me(rs())}function Qt(){var vt=rs(),cn=ue(vt);if(i=arguments,l=this,C=vt,cn){if(w===r)return me(C);if(M)return Zo(w),w=Zr(Fe,t),ee(C)}return w===r&&(w=Zr(Fe,t)),m}return Qt.cancel=Vt,Qt.flush=Ht,Qt}var Gh=Ie(function(e,t){return Ro(e,1,t)}),Uh=Ie(function(e,t,n){return Ro(e,en(t)||0,n)});function qh(e){return vn(e,Ge)}function is(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xt(g);var n=function(){var i=arguments,l=t?t.apply(this,i):i[0],f=n.cache;if(f.has(l))return f.get(l);var m=e.apply(this,i);return n.cache=f.set(l,m)||f,m};return n.cache=new(is.Cache||mn),n}is.Cache=mn;function ss(e){if(typeof e!="function")throw new Xt(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Yh(e){return Wl(2,e)}var Vh=Rd(function(e,t){t=t.length==1&&_e(t[0])?lt(t[0],Ut(he())):lt(bt(t,1),Ut(he()));var n=t.length;return Ie(function(i){for(var l=-1,f=Nt(i.length,n);++l<f;)i[l]=t[l].call(this,i[l]);return Et(e,this,i)})}),Wa=Ie(function(e,t){var n=Mn(t,wr(Wa));return vn(e,le,r,t,n)}),Ul=Ie(function(e,t){var n=Mn(t,wr(Ul));return vn(e,Se,r,t,n)}),Qh=yn(function(e,t){return vn(e,de,r,r,r,t)});function Xh(e,t){if(typeof e!="function")throw new Xt(g);return t=t===r?t:be(t),Ie(e,t)}function $h(e,t){if(typeof e!="function")throw new Xt(g);return t=t==null?0:St(be(t),0),Ie(function(n){var i=n[t],l=zn(n,0,t);return i&&On(l,i),Et(e,this,l)})}function Kh(e,t,n){var i=!0,l=!0;if(typeof e!="function")throw new Xt(g);return dt(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),Gl(e,t,{leading:i,maxWait:t,trailing:l})}function Jh(e){return Hl(e,1)}function Zh(e,t){return Wa(Sa(t),e)}function eg(){if(!arguments.length)return[];var e=arguments[0];return _e(e)?e:[e]}function tg(e){return Kt(e,W)}function ng(e,t){return t=typeof t=="function"?t:r,Kt(e,W,t)}function rg(e){return Kt(e,L|W)}function ig(e,t){return t=typeof t=="function"?t:r,Kt(e,L|W,t)}function sg(e,t){return t==null||jo(e,t,Ct(t))}function ln(e,t){return e===t||e!==e&&t!==t}var ag=Ki(da),og=Ki(function(e,t){return e>=t}),tr=Mo((function(){return arguments})())?Mo:function(e){return ft(e)&&Xe.call(e,"callee")&&!So.call(e,"callee")},_e=I.isArray,lg=Wr?Ut(Wr):pd;function kt(e){return e!=null&&as(e.length)&&!wn(e)}function mt(e){return ft(e)&&kt(e)}function cg(e){return e===!0||e===!1||ft(e)&&Ot(e)==gt}var Gn=_u||Ka,ug=Fn?Ut(Fn):md;function dg(e){return ft(e)&&e.nodeType===1&&!ei(e)}function fg(e){if(e==null)return!0;if(kt(e)&&(_e(e)||typeof e=="string"||typeof e.splice=="function"||Gn(e)||Ar(e)||tr(e)))return!e.length;var t=jt(e);if(t==k||t==$)return!e.size;if(Jr(e))return!ga(e).length;for(var n in e)if(Xe.call(e,n))return!1;return!0}function hg(e,t){return Xr(e,t)}function gg(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?Xr(e,t,r,n):!!i}function Ba(e){if(!ft(e))return!1;var t=Ot(e);return t==je||t==Tt||typeof e.message=="string"&&typeof e.name=="string"&&!ei(e)}function pg(e){return typeof e=="number"&&bo(e)}function wn(e){if(!dt(e))return!1;var t=Ot(e);return t==P||t==B||t==Le||t==ne}function ql(e){return typeof e=="number"&&e==be(e)}function as(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Te}function dt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ft(e){return e!=null&&typeof e=="object"}var Yl=Ai?Ut(Ai):yd;function mg(e,t){return e===t||ha(e,t,Na(t))}function vg(e,t,n){return n=typeof n=="function"?n:r,ha(e,t,Na(t),n)}function yg(e){return Vl(e)&&e!=+e}function xg(e){if(tf(e))throw new we(h);return Ho(e)}function wg(e){return e===null}function Ag(e){return e==null}function Vl(e){return typeof e=="number"||ft(e)&&Ot(e)==Ae}function ei(e){if(!ft(e)||Ot(e)!=G)return!1;var t=Fi(e);if(t===null)return!0;var n=Xe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ii.call(n)==mu}var ka=Pn?Ut(Pn):xd;function _g(e){return ql(e)&&e>=-Te&&e<=Te}var Ql=_i?Ut(_i):wd;function os(e){return typeof e=="string"||!_e(e)&&ft(e)&&Ot(e)==Q}function Yt(e){return typeof e=="symbol"||ft(e)&&Ot(e)==Ce}var Ar=Si?Ut(Si):Ad;function Sg(e){return e===r}function Cg(e){return ft(e)&&jt(e)==ae}function bg(e){return ft(e)&&Ot(e)==Ne}var Dg=Ki(pa),Tg=Ki(function(e,t){return e<=t});function Xl(e){if(!e)return[];if(kt(e))return os(e)?sn(e):Bt(e);if(kr&&e[kr])return iu(e[kr]());var t=jt(e),n=t==k?na:t==$?Di:_r;return n(e)}function An(e){if(!e)return e===0?e:0;if(e=en(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*Be}return e===e?e:0}function be(e){var t=An(e),n=t%1;return t===t?n?t-n:t:0}function $l(e){return e?Kn(be(e),0,z):0}function en(e){if(typeof e=="number")return e;if(Yt(e))return ve;if(dt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=po(e);var n=Ss.test(e);return n||Cs.test(e)?Ve(e.slice(2),n?2:8):_s.test(e)?ve:+e}function Kl(e){return gn(e,zt(e))}function Lg(e){return e?Kn(be(e),-Te,Te):e===0?e:0}function $e(e){return e==null?"":qt(e)}var Ig=yr(function(e,t){if(Jr(t)||kt(t)){gn(t,Ct(t),e);return}for(var n in t)Xe.call(t,n)&&Yr(e,n,t[n])}),Jl=yr(function(e,t){gn(t,zt(t),e)}),Zl=yr(function(e,t,n,i){gn(t,zt(t),e,i)}),za=yr(function(e,t,n,i){gn(t,Ct(t),e,i)}),Ng=yn(la);function jg(e,t){var n=vr(e);return t==null?n:No(n,t)}var Rg=Ie(function(e,t){e=it(e);var n=-1,i=t.length,l=i>2?t[2]:r;for(l&&Mt(t[0],t[1],l)&&(i=1);++n<i;)for(var f=t[n],m=zt(f),w=-1,C=m.length;++w<C;){var R=m[w],F=e[R];(F===r||ln(F,gr[R])&&!Xe.call(e,R))&&(e[R]=f[R])}return e}),Fg=Ie(function(e){return e.push(r,pl),Et(ec,r,e)});function Pg(e,t){return uo(e,he(t,3),hn)}function Eg(e,t){return uo(e,he(t,3),ua)}function Og(e,t){return e==null?e:ca(e,he(t,3),zt)}function Mg(e,t){return e==null?e:Eo(e,he(t,3),zt)}function Hg(e,t){return e&&hn(e,he(t,3))}function Wg(e,t){return e&&ua(e,he(t,3))}function Bg(e){return e==null?[]:Gi(e,Ct(e))}function kg(e){return e==null?[]:Gi(e,zt(e))}function Ga(e,t,n){var i=e==null?r:Jn(e,t);return i===r?n:i}function zg(e,t){return e!=null&&yl(e,t,dd)}function Ua(e,t){return e!=null&&yl(e,t,fd)}var Gg=ul(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ni.call(t)),e[t]=n},Ya(Gt)),Ug=ul(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ni.call(t)),Xe.call(e,t)?e[t].push(n):e[t]=[n]},he),qg=Ie(Qr);function Ct(e){return kt(e)?Lo(e):ga(e)}function zt(e){return kt(e)?Lo(e,!0):_d(e)}function Yg(e,t){var n={};return t=he(t,3),hn(e,function(i,l,f){fn(n,t(i,l,f),i)}),n}function Vg(e,t){var n={};return t=he(t,3),hn(e,function(i,l,f){fn(n,l,t(i,l,f))}),n}var Qg=yr(function(e,t,n){Ui(e,t,n)}),ec=yr(function(e,t,n,i){Ui(e,t,n,i)}),Xg=yn(function(e,t){var n={};if(e==null)return n;var i=!1;t=lt(t,function(f){return f=kn(f,e),i||(i=f.length>1),f}),gn(e,La(e),n),i&&(n=Kt(n,L|O|W,Gd));for(var l=t.length;l--;)wa(n,t[l]);return n});function $g(e,t){return tc(e,ss(he(t)))}var Kg=yn(function(e,t){return e==null?{}:Cd(e,t)});function tc(e,t){if(e==null)return{};var n=lt(La(e),function(i){return[i]});return t=he(t),qo(e,n,function(i,l){return t(i,l[0])})}function Jg(e,t,n){t=kn(t,e);var i=-1,l=t.length;for(l||(l=1,e=r);++i<l;){var f=e==null?r:e[on(t[i])];f===r&&(i=l,f=n),e=wn(f)?f.call(e):f}return e}function Zg(e,t,n){return e==null?e:$r(e,t,n)}function ep(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:$r(e,t,n,i)}var nc=hl(Ct),rc=hl(zt);function tp(e,t,n){var i=_e(e),l=i||Gn(e)||Ar(e);if(t=he(t,4),n==null){var f=e&&e.constructor;l?n=i?new f:[]:dt(e)?n=wn(f)?vr(Fi(e)):{}:n={}}return(l?rt:hn)(e,function(m,w,C){return t(n,m,w,C)}),n}function np(e,t){return e==null?!0:wa(e,t)}function rp(e,t,n){return e==null?e:$o(e,t,Sa(n))}function ip(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:$o(e,t,Sa(n),i)}function _r(e){return e==null?[]:ta(e,Ct(e))}function sp(e){return e==null?[]:ta(e,zt(e))}function ap(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=en(n),n=n===n?n:0),t!==r&&(t=en(t),t=t===t?t:0),Kn(en(e),t,n)}function op(e,t,n){return t=An(t),n===r?(n=t,t=0):n=An(n),e=en(e),hd(e,t,n)}function lp(e,t,n){if(n&&typeof n!="boolean"&&Mt(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=An(e),t===r?(t=e,e=0):t=An(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var l=Do();return Nt(e+l*(t-e+st("1e-"+((l+"").length-1))),t)}return va(e,t)}var cp=xr(function(e,t,n){return t=t.toLowerCase(),e+(n?ic(t):t)});function ic(e){return qa($e(e).toLowerCase())}function sc(e){return e=$e(e),e&&e.replace(Ds,Zc).replace(zs,"")}function up(e,t,n){e=$e(e),t=qt(t);var i=e.length;n=n===r?i:Kn(be(n),0,i);var l=n;return n-=t.length,n>=0&&e.slice(n,l)==t}function dp(e){return e=$e(e),e&&Rn.test(e)?e.replace(Un,eu):e}function fp(e){return e=$e(e),e&&ms.test(e)?e.replace(Ir,"\\$&"):e}var hp=xr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gp=xr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),pp=ol("toLowerCase");function mp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return $i(Mi(l),n)+e+$i(Oi(l),n)}function vp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;return t&&i<t?e+$i(t-i,n):e}function yp(e,t,n){e=$e(e),t=be(t);var i=t?fr(e):0;return t&&i<t?$i(t-i,n)+e:e}function xp(e,t,n){return n||t==null?t=0:t&&(t=+t),Du($e(e).replace(Nr,""),t||0)}function wp(e,t,n){return(n?Mt(e,t,n):t===r)?t=1:t=be(t),ya($e(e),t)}function Ap(){var e=arguments,t=$e(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var _p=xr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function Sp(e,t,n){return n&&typeof n!="number"&&Mt(e,t,n)&&(t=n=r),n=n===r?z:n>>>0,n?(e=$e(e),e&&(typeof t=="string"||t!=null&&!ka(t))&&(t=qt(t),!t&&dr(e))?zn(sn(e),0,n):e.split(t,n)):[]}var Cp=xr(function(e,t,n){return e+(n?" ":"")+qa(t)});function bp(e,t,n){return e=$e(e),n=n==null?0:Kn(be(n),0,e.length),t=qt(t),e.slice(n,n+t.length)==t}function Dp(e,t,n){var i=d.templateSettings;n&&Mt(e,t,n)&&(t=r),e=$e(e),t=za({},t,i,gl);var l=za({},t.imports,i.imports,gl),f=Ct(l),m=ta(l,f);rt(f,function(ue){if(jr.test(ue))throw new we(x)});var w,C,R=0,F=t.interpolate||sr,M="__p += '",V=ra((t.escape||sr).source+"|"+F.source+"|"+(F===qn?As:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),ee="//# sourceURL="+(Xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vs+"]")+`
|
|
31
|
+
`;e.replace(V,function(ue,Fe,Me,Vt,Ht,Qt){return Me||(Me=Vt),M+=e.slice(R,Qt).replace(Ts,tu),Fe&&(w=!0,M+=`' +
|
|
32
|
+
__e(`+Fe+`) +
|
|
33
33
|
'`),Ht&&(C=!0,M+=`';
|
|
34
34
|
`+Ht+`;
|
|
35
35
|
__p += '`),Me&&(M+=`' +
|
|
36
36
|
((__t = (`+Me+`)) == null ? '' : __t) +
|
|
37
|
-
'`),
|
|
37
|
+
'`),R=Qt+ue.length,ue}),M+=`';
|
|
38
38
|
`;var me=Xe.call(t,"variable")&&t.variable;if(!me)M=`with (obj) {
|
|
39
39
|
`+M+`
|
|
40
40
|
}
|
|
@@ -44,7 +44,7 @@ __p += '`),Me&&(M+=`' +
|
|
|
44
44
|
function print() { __p += __j.call(arguments, '') }
|
|
45
45
|
`:`;
|
|
46
46
|
`)+M+`return __p
|
|
47
|
-
}`;var De=oc(function(){return qe(f,ee+"return "+M).apply(r,m)});if(De.source=M,Ba(De))throw De;return De}function Tp(e){return $e(e).toLowerCase()}function Lp(e){return $e(e).toUpperCase()}function Ip(e,t,n){if(e=$e(e),e&&(n||t===r))return po(e);if(!e||!(t=qt(t)))return e;var i=sn(e),l=sn(t),f=mo(i,l),m=vo(i,l)+1;return zn(i,f,m).join("")}function Np(e,t,n){if(e=$e(e),e&&(n||t===r))return e.slice(0,xo(e)+1);if(!e||!(t=qt(t)))return e;var i=sn(e),l=vo(i,sn(t))+1;return zn(i,0,l).join("")}function jp(e,t,n){if(e=$e(e),e&&(n||t===r))return e.replace(Nr,"");if(!e||!(t=qt(t)))return e;var i=sn(e),l=mo(i,sn(t));return zn(i,l).join("")}function Fp(e,t){var n=ct,i=Ee;if(ut(t)){var l="separator"in t?t.separator:l;n="length"in t?be(t.length):n,i="omission"in t?qt(t.omission):i}e=$e(e);var f=e.length;if(dr(e)){var m=sn(e);f=m.length}if(n>=f)return e;var w=n-fr(i);if(w<1)return i;var C=m?zn(m,0,w).join(""):e.slice(0,w);if(l===r)return C+i;if(m&&(w+=C.length-w),ka(l)){if(e.slice(w).search(l)){var F,R=C;for(l.global||(l=ra(l.source,$e(si.exec(l))+"g")),l.lastIndex=0;F=l.exec(R);)var M=F.index;C=C.slice(0,M===r?w:M)}}else if(e.indexOf(qt(l),w)!=w){var V=C.lastIndexOf(l);V>-1&&(C=C.slice(0,V))}return C+i}function Rp(e){return e=$e(e),e&&Dr.test(e)?e.replace(rr,lu):e}var Pp=xr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),qa=ol("toUpperCase");function ac(e,t,n){return e=$e(e),t=n?r:t,t===r?ru(e)?du(e):Qc(e):e.match(t)||[]}var oc=Ie(function(e,t){try{return Et(e,r,t)}catch(n){return Ba(n)?n:new we(n)}}),Ep=yn(function(e,t){return rt(t,function(n){n=on(n),fn(e,n,Ha(e[n],e))}),e});function Op(e){var t=e==null?0:e.length,n=he();return e=t?lt(e,function(i){if(typeof i[1]!="function")throw new Xt(g);return[n(i[0]),i[1]]}):[],Ie(function(i){for(var l=-1;++l<t;){var f=e[l];if(Et(f[0],this,i))return Et(f[1],this,i)}})}function Mp(e){return ld(Kt(e,L))}function Ya(e){return function(){return e}}function Hp(e,t){return e==null||e!==e?t:e}var Wp=cl(),Bp=cl(!0);function Gt(e){return e}function Va(e){return Wo(typeof e=="function"?e:Kt(e,L))}function kp(e){return ko(Kt(e,L))}function zp(e,t){return zo(e,Kt(t,L))}var Gp=Ie(function(e,t){return function(n){return Qr(n,e,t)}}),Up=Ie(function(e,t){return function(n){return Qr(e,n,t)}});function Qa(e,t,n){var i=Ct(t),l=Gi(t,i);n==null&&!(ut(t)&&(l.length||!i.length))&&(n=t,t=e,e=this,l=Gi(t,Ct(t)));var f=!(ut(n)&&"chain"in n)||!!n.chain,m=wn(e);return rt(l,function(w){var C=t[w];e[w]=C,m&&(e.prototype[w]=function(){var F=this.__chain__;if(f||F){var R=e(this.__wrapped__),M=R.__actions__=Bt(this.__actions__);return M.push({func:C,args:arguments,thisArg:e}),R.__chain__=F,R}return C.apply(e,On([this.value()],arguments))})}),e}function qp(){return et._===this&&(et._=vu),this}function Xa(){}function Yp(e){return e=be(e),Ie(function(t){return Go(t,e)})}var Vp=ba(lt),Qp=ba(co),Xp=ba($s);function lc(e){return Fa(e)?Ks(on(e)):bd(e)}function $p(e){return function(t){return e==null?r:Jn(e,t)}}var Kp=dl(),Jp=dl(!0);function $a(){return[]}function Ka(){return!1}function Zp(){return{}}function em(){return""}function tm(){return!0}function nm(e,t){if(e=be(e),e<1||e>Te)return[];var n=z,i=Nt(e,z);t=he(t),e-=z;for(var l=ea(i,t);++n<e;)t(n);return l}function rm(e){return _e(e)?lt(e,on):Yt(e)?[e]:Bt(Tl($e(e)))}function im(e){var t=++pu;return $e(e)+t}var sm=Xi(function(e,t){return e+t},0),am=Da("ceil"),om=Xi(function(e,t){return e/t},1),lm=Da("floor");function cm(e){return e&&e.length?zi(e,Gt,da):r}function um(e,t){return e&&e.length?zi(e,he(t,2),da):r}function dm(e){return ho(e,Gt)}function fm(e,t){return ho(e,he(t,2))}function hm(e){return e&&e.length?zi(e,Gt,pa):r}function gm(e,t){return e&&e.length?zi(e,he(t,2),pa):r}var pm=Xi(function(e,t){return e*t},1),mm=Da("round"),vm=Xi(function(e,t){return e-t},0);function ym(e){return e&&e.length?Zs(e,Gt):0}function xm(e,t){return e&&e.length?Zs(e,he(t,2)):0}return d.after=zh,d.ary=Hl,d.assign=Ig,d.assignIn=Jl,d.assignInWith=Zl,d.assignWith=za,d.at=Ng,d.before=Wl,d.bind=Ha,d.bindAll=Ep,d.bindKey=Bl,d.castArray=eg,d.chain=El,d.chunk=cf,d.compact=uf,d.concat=df,d.cond=Op,d.conforms=Mp,d.constant=Ya,d.countBy=xh,d.create=jg,d.curry=kl,d.curryRight=zl,d.debounce=Gl,d.defaults=Fg,d.defaultsDeep=Rg,d.defer=Gh,d.delay=Uh,d.difference=ff,d.differenceBy=hf,d.differenceWith=gf,d.drop=pf,d.dropRight=mf,d.dropRightWhile=vf,d.dropWhile=yf,d.fill=xf,d.filter=Ah,d.flatMap=Ch,d.flatMapDeep=bh,d.flatMapDepth=Dh,d.flatten=jl,d.flattenDeep=wf,d.flattenDepth=Af,d.flip=qh,d.flow=Wp,d.flowRight=Bp,d.fromPairs=_f,d.functions=Bg,d.functionsIn=kg,d.groupBy=Th,d.initial=Cf,d.intersection=bf,d.intersectionBy=Df,d.intersectionWith=Tf,d.invert=Gg,d.invertBy=Ug,d.invokeMap=Ih,d.iteratee=Va,d.keyBy=Nh,d.keys=Ct,d.keysIn=zt,d.map=ns,d.mapKeys=Yg,d.mapValues=Vg,d.matches=kp,d.matchesProperty=zp,d.memoize=is,d.merge=Qg,d.mergeWith=ec,d.method=Gp,d.methodOf=Up,d.mixin=Qa,d.negate=ss,d.nthArg=Yp,d.omit=Xg,d.omitBy=$g,d.once=Yh,d.orderBy=jh,d.over=Vp,d.overArgs=Vh,d.overEvery=Qp,d.overSome=Xp,d.partial=Wa,d.partialRight=Ul,d.partition=Fh,d.pick=Kg,d.pickBy=tc,d.property=lc,d.propertyOf=$p,d.pull=jf,d.pullAll=Rl,d.pullAllBy=Ff,d.pullAllWith=Rf,d.pullAt=Pf,d.range=Kp,d.rangeRight=Jp,d.rearg=Qh,d.reject=Eh,d.remove=Ef,d.rest=Xh,d.reverse=Oa,d.sampleSize=Mh,d.set=Zg,d.setWith=ep,d.shuffle=Hh,d.slice=Of,d.sortBy=kh,d.sortedUniq=Gf,d.sortedUniqBy=Uf,d.split=Sp,d.spread=$h,d.tail=qf,d.take=Yf,d.takeRight=Vf,d.takeRightWhile=Qf,d.takeWhile=Xf,d.tap=uh,d.throttle=Kh,d.thru=ts,d.toArray=Xl,d.toPairs=nc,d.toPairsIn=rc,d.toPath=rm,d.toPlainObject=Kl,d.transform=tp,d.unary=Jh,d.union=$f,d.unionBy=Kf,d.unionWith=Jf,d.uniq=Zf,d.uniqBy=eh,d.uniqWith=th,d.unset=np,d.unzip=Ma,d.unzipWith=Pl,d.update=rp,d.updateWith=ip,d.values=_r,d.valuesIn=sp,d.without=nh,d.words=ac,d.wrap=Zh,d.xor=rh,d.xorBy=ih,d.xorWith=sh,d.zip=ah,d.zipObject=oh,d.zipObjectDeep=lh,d.zipWith=ch,d.entries=nc,d.entriesIn=rc,d.extend=Jl,d.extendWith=Zl,Qa(d,d),d.add=sm,d.attempt=oc,d.camelCase=cp,d.capitalize=ic,d.ceil=am,d.clamp=ap,d.clone=tg,d.cloneDeep=rg,d.cloneDeepWith=ig,d.cloneWith=ng,d.conformsTo=sg,d.deburr=sc,d.defaultTo=Hp,d.divide=om,d.endsWith=up,d.eq=ln,d.escape=dp,d.escapeRegExp=fp,d.every=wh,d.find=_h,d.findIndex=Il,d.findKey=Pg,d.findLast=Sh,d.findLastIndex=Nl,d.findLastKey=Eg,d.floor=lm,d.forEach=Ol,d.forEachRight=Ml,d.forIn=Og,d.forInRight=Mg,d.forOwn=Hg,d.forOwnRight=Wg,d.get=Ga,d.gt=ag,d.gte=og,d.has=zg,d.hasIn=Ua,d.head=Fl,d.identity=Gt,d.includes=Lh,d.indexOf=Sf,d.inRange=op,d.invoke=qg,d.isArguments=tr,d.isArray=_e,d.isArrayBuffer=lg,d.isArrayLike=kt,d.isArrayLikeObject=mt,d.isBoolean=cg,d.isBuffer=Gn,d.isDate=ug,d.isElement=dg,d.isEmpty=fg,d.isEqual=hg,d.isEqualWith=gg,d.isError=Ba,d.isFinite=pg,d.isFunction=wn,d.isInteger=ql,d.isLength=as,d.isMap=Yl,d.isMatch=mg,d.isMatchWith=vg,d.isNaN=yg,d.isNative=xg,d.isNil=Ag,d.isNull=wg,d.isNumber=Vl,d.isObject=ut,d.isObjectLike=ft,d.isPlainObject=ei,d.isRegExp=ka,d.isSafeInteger=_g,d.isSet=Ql,d.isString=os,d.isSymbol=Yt,d.isTypedArray=Ar,d.isUndefined=Sg,d.isWeakMap=Cg,d.isWeakSet=bg,d.join=Lf,d.kebabCase=hp,d.last=Zt,d.lastIndexOf=If,d.lowerCase=gp,d.lowerFirst=pp,d.lt=Dg,d.lte=Tg,d.max=cm,d.maxBy=um,d.mean=dm,d.meanBy=fm,d.min=hm,d.minBy=gm,d.stubArray=$a,d.stubFalse=Ka,d.stubObject=Zp,d.stubString=em,d.stubTrue=tm,d.multiply=pm,d.nth=Nf,d.noConflict=qp,d.noop=Xa,d.now=rs,d.pad=mp,d.padEnd=vp,d.padStart=yp,d.parseInt=xp,d.random=lp,d.reduce=Rh,d.reduceRight=Ph,d.repeat=wp,d.replace=Ap,d.result=Jg,d.round=mm,d.runInContext=_,d.sample=Oh,d.size=Wh,d.snakeCase=_p,d.some=Bh,d.sortedIndex=Mf,d.sortedIndexBy=Hf,d.sortedIndexOf=Wf,d.sortedLastIndex=Bf,d.sortedLastIndexBy=kf,d.sortedLastIndexOf=zf,d.startCase=Cp,d.startsWith=bp,d.subtract=vm,d.sum=ym,d.sumBy=xm,d.template=Dp,d.times=nm,d.toFinite=An,d.toInteger=be,d.toLength=$l,d.toLower=Tp,d.toNumber=en,d.toSafeInteger=Lg,d.toString=$e,d.toUpper=Lp,d.trim=Ip,d.trimEnd=Np,d.trimStart=jp,d.truncate=Fp,d.unescape=Rp,d.uniqueId=im,d.upperCase=Pp,d.upperFirst=qa,d.each=Ol,d.eachRight=Ml,d.first=Fl,Qa(d,(function(){var e={};return hn(d,function(t,n){Xe.call(d.prototype,n)||(e[n]=t)}),e})(),{chain:!1}),d.VERSION=o,rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),rt(["drop","take"],function(e,t){Pe.prototype[e]=function(n){n=n===r?1:St(be(n),0);var i=this.__filtered__&&!t?new Pe(this):this.clone();return i.__filtered__?i.__takeCount__=Nt(n,i.__takeCount__):i.__views__.push({size:Nt(n,z),type:e+(i.__dir__<0?"Right":"")}),i},Pe.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),rt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==nt||n==wt;Pe.prototype[e]=function(l){var f=this.clone();return f.__iteratees__.push({iteratee:he(l,3),type:n}),f.__filtered__=f.__filtered__||i,f}}),rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Pe.prototype[e]=function(){return this[n](1).value()[0]}}),rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Pe.prototype[e]=function(){return this.__filtered__?new Pe(this):this[n](1)}}),Pe.prototype.compact=function(){return this.filter(Gt)},Pe.prototype.find=function(e){return this.filter(e).head()},Pe.prototype.findLast=function(e){return this.reverse().find(e)},Pe.prototype.invokeMap=Ie(function(e,t){return typeof e=="function"?new Pe(this):this.map(function(n){return Qr(n,e,t)})}),Pe.prototype.reject=function(e){return this.filter(ss(he(e)))},Pe.prototype.slice=function(e,t){e=be(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=be(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(z)},hn(Pe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],f=i||/^find/.test(t);l&&(d.prototype[t]=function(){var m=this.__wrapped__,w=i?[1]:arguments,C=m instanceof Pe,F=w[0],R=C||_e(m),M=function(Re){var Me=l.apply(d,On([Re],w));return i&&V?Me[0]:Me};R&&n&&typeof F=="function"&&F.length!=1&&(C=R=!1);var V=this.__chain__,ee=!!this.__actions__.length,me=f&&!V,De=C&&!ee;if(!f&&R){m=De?m:new Pe(this);var ue=e.apply(m,w);return ue.__actions__.push({func:ts,args:[M],thisArg:r}),new $t(ue,V)}return me&&De?e.apply(this,w):(ue=this.thru(M),me?i?ue.value()[0]:ue.value():ue)})}),rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ti[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var f=this.value();return t.apply(_e(f)?f:[],l)}return this[n](function(m){return t.apply(_e(m)?m:[],l)})}}),hn(Pe.prototype,function(e,t){var n=d[t];if(n){var i=n.name+"";Xe.call(mr,i)||(mr[i]=[]),mr[i].push({name:t,func:n})}}),mr[Qi(r,te).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=Ru,Pe.prototype.reverse=Pu,Pe.prototype.value=Eu,d.prototype.at=dh,d.prototype.chain=fh,d.prototype.commit=hh,d.prototype.next=gh,d.prototype.plant=mh,d.prototype.reverse=vh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=yh,d.prototype.first=d.prototype.head,kr&&(d.prototype[kr]=ph),d}),hr=fu();Qe?((Qe.exports=hr)._=hr,ze._=hr):et._=hr}).call(Qv)})(ti,ti.exports)),ti.exports}var $v=Xv();const Kv="/images/horizontal-logo-blue.svg",Jv=a=>{const{startTime:s,endTime:r,selectedToPDF:o,avgQuestionLastMonth:u,dayOfWeekOneToOne:h,monthsOneToOne:g,preparednessData:y,safetyData:x,stressData:v,successIndicatorsData:A,readinessToLearning:D,studentPressure:L,dataOverallReadyToLearn:O,schoolName:W,metricWeeks:Z,metricDataWeeks:K,metricMonths:U,metricDataMonths:te,lowMetricStudents:q,studentMetricPercent:re,weeksOneToOne:We,preparednessWeeklyData:le,successIndicatorWeeklyData:Se,learningStrategiesUsage:ge,optionDate:de,onClose:Ge,studentConversations:ct}=a,Ee=de||"Monthly",{t:oe}=J.useTranslation(),{getLabel:dt,system:nt}=J.useGradeLabel(),at=tn.useDispatch(),wt=(z,p,ye)=>{const ie=document.createElement("span");ie.style.visibility="hidden",ie.style.position="absolute",ie.style.whiteSpace="nowrap",ie.style.fontSize=p,ie.style.fontWeight=ye,ie.innerHTML=z,document.body.appendChild(ie);const ce=ie.offsetWidth;return document.body.removeChild(ie),ce},Oe=async(z,p)=>{try{const ie=(await jm.get(z,{responseType:"blob",timeout:8e3})).data,ce=URL.createObjectURL(ie);return await new Promise(Ke=>{const Le=new Image;Le.onload=()=>{const Je=document.createElement("canvas");Je.width=32,Je.height=32,Je.getContext("2d").drawImage(Le,0,0,32,32),URL.revokeObjectURL(ce),Ke(Je.toDataURL("image/jpeg",.7))},Le.onerror=()=>{URL.revokeObjectURL(ce),Ke(p)},Le.src=ce})}catch{return p}},Te=async(z,p,ye=5)=>{const ie=[];for(let ce=0;ce<z.length;ce+=ye){const Ke=z.slice(ce,ce+ye),Le=await Promise.all(Ke.map(({url:gt})=>gt?Oe(gt,p):Promise.resolve(p)));ie.push(...Le)}return ie},Be=z=>!z||typeof z!="string"||!z.startsWith("data:image")?null:z?.startsWith("data:image/png")?"PNG":z?.startsWith("data:image/jpeg")||z?.startsWith("data:image/jpg")?"JPEG":null,ve=async()=>{at(J.setLoading(!0)),await new Promise(z=>setTimeout(z,100));try{const z=await Oe(J.getStaticFileUrl(Nm.DEFAULT_USER_AVATAR),""),p=new Im({orientation:"p",unit:"px",format:"a4"}),ye=p.internal.pageSize.width,ie=p.internal.pageSize.height,ce=200,Ke=p.splitTextToSize(W,120);let Le=0;const gt=W.length<=18?wt(W,"18px","bold"):wt(Ke.join(""),"18px","bold");let Je=null;const Tt=async()=>{if(Je)return Je;const k=document.getElementById("header-logo");return k?(Je=(await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:fe=>{const G=fe.getElementsByTagName("script");for(let Y=G.length-1;Y>=0;Y--)G[Y].parentNode?.removeChild(G[Y])}})).toDataURL("image/png",1),Je):null},je=async()=>{const k=await Tt();k&&p.addImage(k,"PNG",10,20,90,25),p.setFontSize(18),p.setFont("Helvetica","normal","bold"),p.text(W.length<=18?W:`${Ke[0]}...`,(ye-gt)/2+15,40),p.setFontSize(10),p.setFont("Helvetica","italic","normal"),p.text(`From: ${tt(s).format("DD/MM/YYYY")}`,310,40),p.text(`To: ${tt(r).format("DD/MM/YYYY")}`,380,40),p.setDrawColor(128,128,128),p.line(0,50,ye,50),p.setLineWidth(.1)};let P=85,B=20;if(o.includes("average_safety")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe("average_safety"),B,70);const k=document.getElementById("average_safety"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:H=>{const $=H.getElementsByTagName("script");for(let Q=$.length-1;Q>=0;Q--)$[Q].parentNode?.removeChild($[Q])}});P+=20;let fe=P;p.setFontSize(8);const G=x.map(H=>H.name);for(let H=0;H<g.length;H++){let $=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(g[H],B,$),p.setFontSize(8);for(let Q=0;Q<x?.length;Q++){const Ce=x[Q].data[H];if(Ce!=0){const pe=G[Q];pe!=""&&(p.setDrawColor(0),p.setFillColor("#0F9655"),p.roundedRect(B,$+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${pe}:`,B+8,$+10),p.setFont("Helvetica","normal","normal"),p.text(`${Ce?.toFixed(2)}%`,B+pe?.length*2.5+20.5,$+10)),$+=10,$>fe&&(fe=$)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>ie&&(p.addPage(),await je(),P=80,B=20)}B=20;const Y=420,ne=k&&k.clientWidth?Y*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P+20,Y,ne),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("average_stress")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.averageStudentStressName),B,P),P+=20;const k=document.getElementById("average_stress"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:H=>{const $=H.getElementsByTagName("script");for(let Q=$.length-1;Q>=0;Q--)$[Q].parentNode?.removeChild($[Q])}});P+=20;let fe=P;p.setFontSize(8);const G=v.map(H=>H.name);for(let H=0;H<g.length;H++){let $=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(g[H],B,$),p.setFontSize(8);for(let Q=0;Q<v?.length;Q++){const Ce=v[Q].data[H];if(Ce!=0){const pe=G[Q];pe!=""&&(p.setDrawColor(0),p.setFillColor("#C44140"),p.roundedRect(B,$+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${pe}:`,B+8,$+10),p.setFont("Helvetica","normal","normal"),p.text(`${Ce?.toFixed(2)}%`,B+pe?.length*2.5+20.5,$+10)),$+=10,$>fe&&(fe=$)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>ie&&(p.addPage(),await je(),P=80,B=20)}B=20;const Y=420,ne=k&&k.clientWidth?Y*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P+20,Y,ne),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("number_of_students_with_at_least_one_very_low_metric")){P>ie/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe("number_of_students_with_at_least_one_very_low_metric"),B,P<=85?70:P);const k=document.getElementById("metric"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}});p.setFontSize(8),B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;if(p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),P+=G+10,q?.length>0&&(P+100>ie&&(p.addPage(),await je(),P=80),q?.length>0)){const Y=$v.uniq(q?.map(Q=>Q.studentName)).length||0;p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","normal","bold"),p.text(oe("students_with_at_least_one_concerned_metric",{number:Y}),B,P+15);const ne=q.map(Q=>[Q?.studentName||"-",Q?.grade?dt(Q.grade):"-",Q?.matchedGroupNames?Cn.formatLowMetricLabels(Q?.matchedGroupNames):"-",Q?.metrics?.filter(Boolean).join(", ")||"-",tt(Q?.startTime).format("DD MMMM YYYY hh:mm A")]),H={};(await Te(q.map(Q=>({url:Q?.profileImage?J.getFileUrl(Q?.profileImage):null})),z)).forEach((Q,Ce)=>{H[Ce]=Be(Q)?Q:z}),xc(p,{startY:P+30,margin:{left:16},head:[[oe("student"),nt==="UK"?"Year":oe("grade"),oe("concerned_metrics"),oe("metrics"),oe("check_in_date")]],body:ne,didDrawCell:Q=>{if(Q.section==="body"&&Q.column.index===0){const Ce=H[Q.row.index],pe=Be(Ce);Ce&&pe&&p.addImage(Ce,pe,Q.cell.x+6,Q.cell.y+6,12,12)}},styles:{fontSize:9,cellPadding:{top:8,left:8,right:8,bottom:8},valign:"top"},headStyles:{fillColor:[240,240,240],textColor:0,fontStyle:"bold"},columnStyles:{0:{cellWidth:100,cellPadding:{top:8,left:22,right:8,bottom:8}},1:{cellWidth:40,halign:"center"},2:{cellWidth:90},3:{cellWidth:90},4:{cellWidth:85}},theme:"grid"}),P=p.lastAutoTable.finalY+20}Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.preparednessChartName)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe("readiness_to_learn"),B,P),P+=20;const k=document.getElementById("preparedness"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Ce=>{const pe=Ce.getElementsByTagName("script");for(let se=pe.length-1;se>=0;se--)pe[se].parentNode?.removeChild(pe[se])}});P+=20;const fe=Ee!=="Monthly";let G=P;p.setFontSize(8);const Y=y.map(Ce=>Ce.name),ne=fe?We:g,H=fe?le:y;if(H?.length)for(let Ce=0;Ce<ne.length;Ce++){let pe=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[Ce],B,pe),p.setFontSize(8);const se=["#169490","#316CD9","#FFB04F"];for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[Ce];if(pt!=0){const ke=Y[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor(se[Ne]),p.roundedRect(B,pe+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,pe+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,pe+10)),pe+=10,pe>G&&(G=pe)}}B+=100,B+105>ye&&(B=20,P=G+20),P+150>ie&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=Y.length*10;const $=420,Q=k&&k.clientWidth?$*k.clientHeight/k.clientWidth:ce;P+Q+20>ie&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe("readiness_to_learn"),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,$,Q),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.overallReadinessToLearn)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.overallReadinessToLearn),B,70);const k=document.getElementById(E.overallReadinessToLearn),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}});B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,P+=ce+20}if(o.includes(E.studentAverageScore)){P>ie/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.studentAverageScore),B,P<=85?70:P);const k=document.getElementById(E.studentAverageScore),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}}),fe=420;P+=20;const G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,P+=ce,Le<o.length&&!o.includes(E.studentStressByZone)&&(p.addPage(),P=80,B=20)}if(o.includes(E.studentStressByZone)){P>ie/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.studentStressByZone),B,P<=85?70:P),P+=20;const k=document.getElementById("student_stress_by_zone"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}}),fe=460,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.successIndicatorsName)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.successIndicatorsName),B,P),P+=40;const k=document.getElementById("success_indicators"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:pe=>{const se=pe.getElementsByTagName("script");for(let Ne=se.length-1;Ne>=0;Ne--)se[Ne].parentNode?.removeChild(se[Ne])}});let fe=P;p.setFontSize(8);const G=A.map(pe=>pe.name),Y=Ee!=="Monthly",ne=Y?We:g,H=Y?Se:A,$=["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"];if(H?.length)for(let pe=0;pe<ne.length;pe++){let se=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[pe],B,se),p.setFontSize(8);for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[pe];if(pt!=0){const ke=G[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor($[Ne]),p.roundedRect(B,se+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,se+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,se+10)),se+=10,se>fe&&(fe=se)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>ie&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=G.length*10;const Q=420,Ce=k&&k.clientWidth?Q*k.clientHeight/k.clientWidth:ce;P+Ce+20>ie&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.successIndicatorsName),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,Q,Ce),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("readiness_trends")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe("readiness_trends"),B,P),P+=40;const k=document.getElementById("readiness_trends"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:pe=>{const se=pe.getElementsByTagName("script");for(let Ne=se.length-1;Ne>=0;Ne--)se[Ne].parentNode?.removeChild(se[Ne])}});let fe=P;p.setFontSize(8);const G=y.map(pe=>pe.name),Y=Ee!=="Monthly",ne=Y?We:g,H=Y?le:y,$=["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"];if(H?.length)for(let pe=0;pe<ne.length;pe++){let se=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[pe],B,se),p.setFontSize(8);for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[pe];if(pt!=0){const ke=G[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor($[Ne]),p.roundedRect(B,se+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,se+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,se+10)),se+=10,se>fe&&(fe=se)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>ie&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=G.length*10;const Q=420,Ce=k&&k.clientWidth?Q*k.clientHeight/k.clientWidth:ce;P+Ce+20>ie&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(oe(E.successIndicatorsName),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,Q,Ce),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.topLearningStrategyName)){await je(),p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","normal","bold"),p.text(oe(E.topLearningStrategyName),B,70),p.setFontSize(12),p.setTextColor("#3D3D3D"),p.setFont("Helvetica","normal","normal"),p.text(oe("Learning Strategies Usage & Feedback"),B,P+4);const k=document.getElementById("learning_strategies_table_pdf"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:$=>{const Q=$.getElementsByTagName("script");for(let Ce=Q.length-1;Ce>=0;Ce--)Q[Ce].parentNode?.removeChild(Q[Ce])}});P+=12,B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:300;let Y=G;const ne=P;p.addImage(Ae.toDataURL("image/png"),10,ne,fe,G),Y-=p.internal.pageSize.height-ne;let H=p.internal.pageSize.height-ne;for(;Y>0;)p.addPage(),p.addImage(Ae.toDataURL("image/png"),10,80-H,fe,G),p.setFillColor(255,255,255),p.rect(0,0,p.internal.pageSize.width,80,"F"),await je(),H+=p.internal.pageSize.height-80,Y-=p.internal.pageSize.height-80;Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.studentConversation)){await je(),p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","bold"),p.text(oe(E.studentConversation),B,70),p.setFontSize(12),p.setTextColor("#3D3D3D"),p.setFont("Helvetica","normal"),p.text(oe("Student Conversations"),B,P+4);const k=ct.map(G=>[G.studentName,G.gradeLevel?dt(G.gradeLevel):"",G.educatorNames.join(`
|
|
47
|
+
}`;var De=oc(function(){return qe(f,ee+"return "+M).apply(r,m)});if(De.source=M,Ba(De))throw De;return De}function Tp(e){return $e(e).toLowerCase()}function Lp(e){return $e(e).toUpperCase()}function Ip(e,t,n){if(e=$e(e),e&&(n||t===r))return po(e);if(!e||!(t=qt(t)))return e;var i=sn(e),l=sn(t),f=mo(i,l),m=vo(i,l)+1;return zn(i,f,m).join("")}function Np(e,t,n){if(e=$e(e),e&&(n||t===r))return e.slice(0,xo(e)+1);if(!e||!(t=qt(t)))return e;var i=sn(e),l=vo(i,sn(t))+1;return zn(i,0,l).join("")}function jp(e,t,n){if(e=$e(e),e&&(n||t===r))return e.replace(Nr,"");if(!e||!(t=qt(t)))return e;var i=sn(e),l=mo(i,sn(t));return zn(i,l).join("")}function Rp(e,t){var n=ct,i=Ee;if(dt(t)){var l="separator"in t?t.separator:l;n="length"in t?be(t.length):n,i="omission"in t?qt(t.omission):i}e=$e(e);var f=e.length;if(dr(e)){var m=sn(e);f=m.length}if(n>=f)return e;var w=n-fr(i);if(w<1)return i;var C=m?zn(m,0,w).join(""):e.slice(0,w);if(l===r)return C+i;if(m&&(w+=C.length-w),ka(l)){if(e.slice(w).search(l)){var R,F=C;for(l.global||(l=ra(l.source,$e(si.exec(l))+"g")),l.lastIndex=0;R=l.exec(F);)var M=R.index;C=C.slice(0,M===r?w:M)}}else if(e.indexOf(qt(l),w)!=w){var V=C.lastIndexOf(l);V>-1&&(C=C.slice(0,V))}return C+i}function Fp(e){return e=$e(e),e&&Dr.test(e)?e.replace(rr,lu):e}var Pp=xr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),qa=ol("toUpperCase");function ac(e,t,n){return e=$e(e),t=n?r:t,t===r?ru(e)?du(e):Qc(e):e.match(t)||[]}var oc=Ie(function(e,t){try{return Et(e,r,t)}catch(n){return Ba(n)?n:new we(n)}}),Ep=yn(function(e,t){return rt(t,function(n){n=on(n),fn(e,n,Ha(e[n],e))}),e});function Op(e){var t=e==null?0:e.length,n=he();return e=t?lt(e,function(i){if(typeof i[1]!="function")throw new Xt(g);return[n(i[0]),i[1]]}):[],Ie(function(i){for(var l=-1;++l<t;){var f=e[l];if(Et(f[0],this,i))return Et(f[1],this,i)}})}function Mp(e){return ld(Kt(e,L))}function Ya(e){return function(){return e}}function Hp(e,t){return e==null||e!==e?t:e}var Wp=cl(),Bp=cl(!0);function Gt(e){return e}function Va(e){return Wo(typeof e=="function"?e:Kt(e,L))}function kp(e){return ko(Kt(e,L))}function zp(e,t){return zo(e,Kt(t,L))}var Gp=Ie(function(e,t){return function(n){return Qr(n,e,t)}}),Up=Ie(function(e,t){return function(n){return Qr(e,n,t)}});function Qa(e,t,n){var i=Ct(t),l=Gi(t,i);n==null&&!(dt(t)&&(l.length||!i.length))&&(n=t,t=e,e=this,l=Gi(t,Ct(t)));var f=!(dt(n)&&"chain"in n)||!!n.chain,m=wn(e);return rt(l,function(w){var C=t[w];e[w]=C,m&&(e.prototype[w]=function(){var R=this.__chain__;if(f||R){var F=e(this.__wrapped__),M=F.__actions__=Bt(this.__actions__);return M.push({func:C,args:arguments,thisArg:e}),F.__chain__=R,F}return C.apply(e,On([this.value()],arguments))})}),e}function qp(){return et._===this&&(et._=vu),this}function Xa(){}function Yp(e){return e=be(e),Ie(function(t){return Go(t,e)})}var Vp=ba(lt),Qp=ba(co),Xp=ba($s);function lc(e){return Ra(e)?Ks(on(e)):bd(e)}function $p(e){return function(t){return e==null?r:Jn(e,t)}}var Kp=dl(),Jp=dl(!0);function $a(){return[]}function Ka(){return!1}function Zp(){return{}}function em(){return""}function tm(){return!0}function nm(e,t){if(e=be(e),e<1||e>Te)return[];var n=z,i=Nt(e,z);t=he(t),e-=z;for(var l=ea(i,t);++n<e;)t(n);return l}function rm(e){return _e(e)?lt(e,on):Yt(e)?[e]:Bt(Tl($e(e)))}function im(e){var t=++pu;return $e(e)+t}var sm=Xi(function(e,t){return e+t},0),am=Da("ceil"),om=Xi(function(e,t){return e/t},1),lm=Da("floor");function cm(e){return e&&e.length?zi(e,Gt,da):r}function um(e,t){return e&&e.length?zi(e,he(t,2),da):r}function dm(e){return ho(e,Gt)}function fm(e,t){return ho(e,he(t,2))}function hm(e){return e&&e.length?zi(e,Gt,pa):r}function gm(e,t){return e&&e.length?zi(e,he(t,2),pa):r}var pm=Xi(function(e,t){return e*t},1),mm=Da("round"),vm=Xi(function(e,t){return e-t},0);function ym(e){return e&&e.length?Zs(e,Gt):0}function xm(e,t){return e&&e.length?Zs(e,he(t,2)):0}return d.after=zh,d.ary=Hl,d.assign=Ig,d.assignIn=Jl,d.assignInWith=Zl,d.assignWith=za,d.at=Ng,d.before=Wl,d.bind=Ha,d.bindAll=Ep,d.bindKey=Bl,d.castArray=eg,d.chain=El,d.chunk=cf,d.compact=uf,d.concat=df,d.cond=Op,d.conforms=Mp,d.constant=Ya,d.countBy=xh,d.create=jg,d.curry=kl,d.curryRight=zl,d.debounce=Gl,d.defaults=Rg,d.defaultsDeep=Fg,d.defer=Gh,d.delay=Uh,d.difference=ff,d.differenceBy=hf,d.differenceWith=gf,d.drop=pf,d.dropRight=mf,d.dropRightWhile=vf,d.dropWhile=yf,d.fill=xf,d.filter=Ah,d.flatMap=Ch,d.flatMapDeep=bh,d.flatMapDepth=Dh,d.flatten=jl,d.flattenDeep=wf,d.flattenDepth=Af,d.flip=qh,d.flow=Wp,d.flowRight=Bp,d.fromPairs=_f,d.functions=Bg,d.functionsIn=kg,d.groupBy=Th,d.initial=Cf,d.intersection=bf,d.intersectionBy=Df,d.intersectionWith=Tf,d.invert=Gg,d.invertBy=Ug,d.invokeMap=Ih,d.iteratee=Va,d.keyBy=Nh,d.keys=Ct,d.keysIn=zt,d.map=ns,d.mapKeys=Yg,d.mapValues=Vg,d.matches=kp,d.matchesProperty=zp,d.memoize=is,d.merge=Qg,d.mergeWith=ec,d.method=Gp,d.methodOf=Up,d.mixin=Qa,d.negate=ss,d.nthArg=Yp,d.omit=Xg,d.omitBy=$g,d.once=Yh,d.orderBy=jh,d.over=Vp,d.overArgs=Vh,d.overEvery=Qp,d.overSome=Xp,d.partial=Wa,d.partialRight=Ul,d.partition=Rh,d.pick=Kg,d.pickBy=tc,d.property=lc,d.propertyOf=$p,d.pull=jf,d.pullAll=Fl,d.pullAllBy=Rf,d.pullAllWith=Ff,d.pullAt=Pf,d.range=Kp,d.rangeRight=Jp,d.rearg=Qh,d.reject=Eh,d.remove=Ef,d.rest=Xh,d.reverse=Oa,d.sampleSize=Mh,d.set=Zg,d.setWith=ep,d.shuffle=Hh,d.slice=Of,d.sortBy=kh,d.sortedUniq=Gf,d.sortedUniqBy=Uf,d.split=Sp,d.spread=$h,d.tail=qf,d.take=Yf,d.takeRight=Vf,d.takeRightWhile=Qf,d.takeWhile=Xf,d.tap=uh,d.throttle=Kh,d.thru=ts,d.toArray=Xl,d.toPairs=nc,d.toPairsIn=rc,d.toPath=rm,d.toPlainObject=Kl,d.transform=tp,d.unary=Jh,d.union=$f,d.unionBy=Kf,d.unionWith=Jf,d.uniq=Zf,d.uniqBy=eh,d.uniqWith=th,d.unset=np,d.unzip=Ma,d.unzipWith=Pl,d.update=rp,d.updateWith=ip,d.values=_r,d.valuesIn=sp,d.without=nh,d.words=ac,d.wrap=Zh,d.xor=rh,d.xorBy=ih,d.xorWith=sh,d.zip=ah,d.zipObject=oh,d.zipObjectDeep=lh,d.zipWith=ch,d.entries=nc,d.entriesIn=rc,d.extend=Jl,d.extendWith=Zl,Qa(d,d),d.add=sm,d.attempt=oc,d.camelCase=cp,d.capitalize=ic,d.ceil=am,d.clamp=ap,d.clone=tg,d.cloneDeep=rg,d.cloneDeepWith=ig,d.cloneWith=ng,d.conformsTo=sg,d.deburr=sc,d.defaultTo=Hp,d.divide=om,d.endsWith=up,d.eq=ln,d.escape=dp,d.escapeRegExp=fp,d.every=wh,d.find=_h,d.findIndex=Il,d.findKey=Pg,d.findLast=Sh,d.findLastIndex=Nl,d.findLastKey=Eg,d.floor=lm,d.forEach=Ol,d.forEachRight=Ml,d.forIn=Og,d.forInRight=Mg,d.forOwn=Hg,d.forOwnRight=Wg,d.get=Ga,d.gt=ag,d.gte=og,d.has=zg,d.hasIn=Ua,d.head=Rl,d.identity=Gt,d.includes=Lh,d.indexOf=Sf,d.inRange=op,d.invoke=qg,d.isArguments=tr,d.isArray=_e,d.isArrayBuffer=lg,d.isArrayLike=kt,d.isArrayLikeObject=mt,d.isBoolean=cg,d.isBuffer=Gn,d.isDate=ug,d.isElement=dg,d.isEmpty=fg,d.isEqual=hg,d.isEqualWith=gg,d.isError=Ba,d.isFinite=pg,d.isFunction=wn,d.isInteger=ql,d.isLength=as,d.isMap=Yl,d.isMatch=mg,d.isMatchWith=vg,d.isNaN=yg,d.isNative=xg,d.isNil=Ag,d.isNull=wg,d.isNumber=Vl,d.isObject=dt,d.isObjectLike=ft,d.isPlainObject=ei,d.isRegExp=ka,d.isSafeInteger=_g,d.isSet=Ql,d.isString=os,d.isSymbol=Yt,d.isTypedArray=Ar,d.isUndefined=Sg,d.isWeakMap=Cg,d.isWeakSet=bg,d.join=Lf,d.kebabCase=hp,d.last=Zt,d.lastIndexOf=If,d.lowerCase=gp,d.lowerFirst=pp,d.lt=Dg,d.lte=Tg,d.max=cm,d.maxBy=um,d.mean=dm,d.meanBy=fm,d.min=hm,d.minBy=gm,d.stubArray=$a,d.stubFalse=Ka,d.stubObject=Zp,d.stubString=em,d.stubTrue=tm,d.multiply=pm,d.nth=Nf,d.noConflict=qp,d.noop=Xa,d.now=rs,d.pad=mp,d.padEnd=vp,d.padStart=yp,d.parseInt=xp,d.random=lp,d.reduce=Fh,d.reduceRight=Ph,d.repeat=wp,d.replace=Ap,d.result=Jg,d.round=mm,d.runInContext=_,d.sample=Oh,d.size=Wh,d.snakeCase=_p,d.some=Bh,d.sortedIndex=Mf,d.sortedIndexBy=Hf,d.sortedIndexOf=Wf,d.sortedLastIndex=Bf,d.sortedLastIndexBy=kf,d.sortedLastIndexOf=zf,d.startCase=Cp,d.startsWith=bp,d.subtract=vm,d.sum=ym,d.sumBy=xm,d.template=Dp,d.times=nm,d.toFinite=An,d.toInteger=be,d.toLength=$l,d.toLower=Tp,d.toNumber=en,d.toSafeInteger=Lg,d.toString=$e,d.toUpper=Lp,d.trim=Ip,d.trimEnd=Np,d.trimStart=jp,d.truncate=Rp,d.unescape=Fp,d.uniqueId=im,d.upperCase=Pp,d.upperFirst=qa,d.each=Ol,d.eachRight=Ml,d.first=Rl,Qa(d,(function(){var e={};return hn(d,function(t,n){Xe.call(d.prototype,n)||(e[n]=t)}),e})(),{chain:!1}),d.VERSION=o,rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),rt(["drop","take"],function(e,t){Pe.prototype[e]=function(n){n=n===r?1:St(be(n),0);var i=this.__filtered__&&!t?new Pe(this):this.clone();return i.__filtered__?i.__takeCount__=Nt(n,i.__takeCount__):i.__views__.push({size:Nt(n,z),type:e+(i.__dir__<0?"Right":"")}),i},Pe.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),rt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==nt||n==wt;Pe.prototype[e]=function(l){var f=this.clone();return f.__iteratees__.push({iteratee:he(l,3),type:n}),f.__filtered__=f.__filtered__||i,f}}),rt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Pe.prototype[e]=function(){return this[n](1).value()[0]}}),rt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Pe.prototype[e]=function(){return this.__filtered__?new Pe(this):this[n](1)}}),Pe.prototype.compact=function(){return this.filter(Gt)},Pe.prototype.find=function(e){return this.filter(e).head()},Pe.prototype.findLast=function(e){return this.reverse().find(e)},Pe.prototype.invokeMap=Ie(function(e,t){return typeof e=="function"?new Pe(this):this.map(function(n){return Qr(n,e,t)})}),Pe.prototype.reject=function(e){return this.filter(ss(he(e)))},Pe.prototype.slice=function(e,t){e=be(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=be(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pe.prototype.toArray=function(){return this.take(z)},hn(Pe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],f=i||/^find/.test(t);l&&(d.prototype[t]=function(){var m=this.__wrapped__,w=i?[1]:arguments,C=m instanceof Pe,R=w[0],F=C||_e(m),M=function(Fe){var Me=l.apply(d,On([Fe],w));return i&&V?Me[0]:Me};F&&n&&typeof R=="function"&&R.length!=1&&(C=F=!1);var V=this.__chain__,ee=!!this.__actions__.length,me=f&&!V,De=C&&!ee;if(!f&&F){m=De?m:new Pe(this);var ue=e.apply(m,w);return ue.__actions__.push({func:ts,args:[M],thisArg:r}),new $t(ue,V)}return me&&De?e.apply(this,w):(ue=this.thru(M),me?i?ue.value()[0]:ue.value():ue)})}),rt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ti[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var f=this.value();return t.apply(_e(f)?f:[],l)}return this[n](function(m){return t.apply(_e(m)?m:[],l)})}}),hn(Pe.prototype,function(e,t){var n=d[t];if(n){var i=n.name+"";Xe.call(mr,i)||(mr[i]=[]),mr[i].push({name:t,func:n})}}),mr[Qi(r,te).name]=[{name:"wrapper",func:r}],Pe.prototype.clone=Fu,Pe.prototype.reverse=Pu,Pe.prototype.value=Eu,d.prototype.at=dh,d.prototype.chain=fh,d.prototype.commit=hh,d.prototype.next=gh,d.prototype.plant=mh,d.prototype.reverse=vh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=yh,d.prototype.first=d.prototype.head,kr&&(d.prototype[kr]=ph),d}),hr=fu();Qe?((Qe.exports=hr)._=hr,ze._=hr):et._=hr}).call(Qv)})(ti,ti.exports)),ti.exports}var $v=Xv();const Kv="/images/horizontal-logo-blue.svg",Jv=a=>{const{startTime:s,endTime:r,selectedToPDF:o,avgQuestionLastMonth:u,dayOfWeekOneToOne:h,monthsOneToOne:g,preparednessData:y,safetyData:x,stressData:v,successIndicatorsData:A,readinessToLearning:D,studentPressure:L,dataOverallReadyToLearn:O,schoolName:W,metricWeeks:Z,metricDataWeeks:K,metricMonths:U,metricDataMonths:te,lowMetricStudents:q,studentMetricPercent:ie,weeksOneToOne:We,preparednessWeeklyData:le,successIndicatorWeeklyData:Se,learningStrategiesUsage:ge,optionDate:de,onClose:Ge,studentConversations:ct}=a,Ee=de||"Monthly",{t:se}=J.useTranslation(),{getLabel:ut,system:nt}=J.useGradeLabel(),at=tn.useDispatch(),wt=(z,p,ye)=>{const re=document.createElement("span");re.style.visibility="hidden",re.style.position="absolute",re.style.whiteSpace="nowrap",re.style.fontSize=p,re.style.fontWeight=ye,re.innerHTML=z,document.body.appendChild(re);const ce=re.offsetWidth;return document.body.removeChild(re),ce},Oe=async(z,p)=>{try{const re=(await jm.get(z,{responseType:"blob",timeout:8e3})).data,ce=URL.createObjectURL(re);return await new Promise(Ke=>{const Le=new Image;Le.onload=()=>{const Je=document.createElement("canvas");Je.width=32,Je.height=32,Je.getContext("2d").drawImage(Le,0,0,32,32),URL.revokeObjectURL(ce),Ke(Je.toDataURL("image/jpeg",.7))},Le.onerror=()=>{URL.revokeObjectURL(ce),Ke(p)},Le.src=ce})}catch{return p}},Te=async(z,p,ye=5)=>{const re=[];for(let ce=0;ce<z.length;ce+=ye){const Ke=z.slice(ce,ce+ye),Le=await Promise.all(Ke.map(({url:gt})=>gt?Oe(gt,p):Promise.resolve(p)));re.push(...Le)}return re},Be=z=>!z||typeof z!="string"||!z.startsWith("data:image")?null:z?.startsWith("data:image/png")?"PNG":z?.startsWith("data:image/jpeg")||z?.startsWith("data:image/jpg")?"JPEG":null,ve=async()=>{at(J.setLoading(!0)),await new Promise(z=>setTimeout(z,100));try{const z=await Oe(J.getStaticFileUrl(Nm.DEFAULT_USER_AVATAR),""),p=new Im({orientation:"p",unit:"px",format:"a4"}),ye=p.internal.pageSize.width,re=p.internal.pageSize.height,ce=200,Ke=p.splitTextToSize(W,120);let Le=0;const gt=W.length<=18?wt(W,"18px","bold"):wt(Ke.join(""),"18px","bold");let Je=null;const Tt=async()=>{if(Je)return Je;const k=document.getElementById("header-logo");return k?(Je=(await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:fe=>{const G=fe.getElementsByTagName("script");for(let Y=G.length-1;Y>=0;Y--)G[Y].parentNode?.removeChild(G[Y])}})).toDataURL("image/png",1),Je):null},je=async()=>{const k=await Tt();k&&p.addImage(k,"PNG",10,20,90,25),p.setFontSize(18),p.setFont("Helvetica","normal","bold"),p.text(W.length<=18?W:`${Ke[0]}...`,(ye-gt)/2+15,40),p.setFontSize(10),p.setFont("Helvetica","italic","normal"),p.text(`From: ${tt(s).format("DD/MM/YYYY")}`,310,40),p.text(`To: ${tt(r).format("DD/MM/YYYY")}`,380,40),p.setDrawColor(128,128,128),p.line(0,50,ye,50),p.setLineWidth(.1)};let P=85,B=20;if(o.includes("average_safety")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se("average_safety"),B,70);const k=document.getElementById("average_safety"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:H=>{const $=H.getElementsByTagName("script");for(let Q=$.length-1;Q>=0;Q--)$[Q].parentNode?.removeChild($[Q])}});P+=20;let fe=P;p.setFontSize(8);const G=x.map(H=>H.name);for(let H=0;H<g.length;H++){let $=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(g[H],B,$),p.setFontSize(8);for(let Q=0;Q<x?.length;Q++){const Ce=x[Q].data[H];if(Ce!=0){const pe=G[Q];pe!=""&&(p.setDrawColor(0),p.setFillColor("#0F9655"),p.roundedRect(B,$+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${pe}:`,B+8,$+10),p.setFont("Helvetica","normal","normal"),p.text(`${Ce?.toFixed(2)}%`,B+pe?.length*2.5+20.5,$+10)),$+=10,$>fe&&(fe=$)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>re&&(p.addPage(),await je(),P=80,B=20)}B=20;const Y=420,ne=k&&k.clientWidth?Y*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P+20,Y,ne),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("average_stress")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.averageStudentStressName),B,P),P+=20;const k=document.getElementById("average_stress"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:H=>{const $=H.getElementsByTagName("script");for(let Q=$.length-1;Q>=0;Q--)$[Q].parentNode?.removeChild($[Q])}});P+=20;let fe=P;p.setFontSize(8);const G=v.map(H=>H.name);for(let H=0;H<g.length;H++){let $=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(g[H],B,$),p.setFontSize(8);for(let Q=0;Q<v?.length;Q++){const Ce=v[Q].data[H];if(Ce!=0){const pe=G[Q];pe!=""&&(p.setDrawColor(0),p.setFillColor("#C44140"),p.roundedRect(B,$+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${pe}:`,B+8,$+10),p.setFont("Helvetica","normal","normal"),p.text(`${Ce?.toFixed(2)}%`,B+pe?.length*2.5+20.5,$+10)),$+=10,$>fe&&(fe=$)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>re&&(p.addPage(),await je(),P=80,B=20)}B=20;const Y=420,ne=k&&k.clientWidth?Y*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P+20,Y,ne),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("number_of_students_with_at_least_one_very_low_metric")){P>re/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se("number_of_students_with_at_least_one_very_low_metric"),B,P<=85?70:P);const k=document.getElementById("metric"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}});p.setFontSize(8),B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;if(p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),P+=G+10,q?.length>0&&(P+100>re&&(p.addPage(),await je(),P=80),q?.length>0)){const Y=$v.uniq(q?.map(Q=>Q.studentName)).length||0;p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","normal","bold"),p.text(se("students_with_at_least_one_concerned_metric",{number:Y}),B,P+15);const ne=q.map(Q=>[Q?.studentName||"-",Q?.grade?ut(Q.grade):"-",Q?.matchedGroupNames?Cn.formatLowMetricLabels(Q?.matchedGroupNames):"-",Q?.metrics?.filter(Boolean).join(", ")||"-",tt(Q?.startTime).format("DD MMMM YYYY hh:mm A")]),H={};(await Te(q.map(Q=>({url:Q?.profileImage?J.getFileUrl(Q?.profileImage):null})),z)).forEach((Q,Ce)=>{H[Ce]=Be(Q)?Q:z}),xc(p,{startY:P+30,margin:{left:16},head:[[se("student"),nt==="UK"?"Year":se("grade"),se("concerned_metrics"),se("metrics"),se("check_in_date")]],body:ne,didDrawCell:Q=>{if(Q.section==="body"&&Q.column.index===0){const Ce=H[Q.row.index],pe=Be(Ce);Ce&&pe&&p.addImage(Ce,pe,Q.cell.x+6,Q.cell.y+6,12,12)}},styles:{fontSize:9,cellPadding:{top:8,left:8,right:8,bottom:8},valign:"top"},headStyles:{fillColor:[240,240,240],textColor:0,fontStyle:"bold"},columnStyles:{0:{cellWidth:100,cellPadding:{top:8,left:22,right:8,bottom:8}},1:{cellWidth:40,halign:"center"},2:{cellWidth:90},3:{cellWidth:90},4:{cellWidth:85}},theme:"grid"}),P=p.lastAutoTable.finalY+20}Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.preparednessChartName)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se("readiness_to_learn"),B,P),P+=20;const k=document.getElementById("preparedness"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Ce=>{const pe=Ce.getElementsByTagName("script");for(let ae=pe.length-1;ae>=0;ae--)pe[ae].parentNode?.removeChild(pe[ae])}});P+=20;const fe=Ee!=="Monthly";let G=P;p.setFontSize(8);const Y=y.map(Ce=>Ce.name),ne=fe?We:g,H=fe?le:y;if(H?.length)for(let Ce=0;Ce<ne.length;Ce++){let pe=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[Ce],B,pe),p.setFontSize(8);const ae=["#169490","#316CD9","#FFB04F"];for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[Ce];if(pt!=0){const ke=Y[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor(ae[Ne]),p.roundedRect(B,pe+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,pe+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,pe+10)),pe+=10,pe>G&&(G=pe)}}B+=100,B+105>ye&&(B=20,P=G+20),P+150>re&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=Y.length*10;const $=420,Q=k&&k.clientWidth?$*k.clientHeight/k.clientWidth:ce;P+Q+20>re&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se("readiness_to_learn"),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,$,Q),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.overallReadinessToLearn)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.overallReadinessToLearn),B,70);const k=document.getElementById(E.overallReadinessToLearn),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}});B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,P+=ce+20}if(o.includes(E.studentAverageScore)){P>re/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.studentAverageScore),B,P<=85?70:P);const k=document.getElementById(E.studentAverageScore),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}}),fe=420;P+=20;const G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,P+=ce,Le<o.length&&!o.includes(E.studentStressByZone)&&(p.addPage(),P=80,B=20)}if(o.includes(E.studentStressByZone)){P>re/2&&(P=80,B=20,p.addPage()),P<=85&&await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.studentStressByZone),B,P<=85?70:P),P+=20;const k=document.getElementById("student_stress_by_zone"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:Y=>{const ne=Y.getElementsByTagName("script");for(let H=ne.length-1;H>=0;H--)ne[H].parentNode?.removeChild(ne[H])}}),fe=460,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:ce;p.addImage(Ae.toDataURL("image/png"),10,P,fe,G),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.successIndicatorsName)){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.successIndicatorsName),B,P),P+=40;const k=document.getElementById("success_indicators"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:pe=>{const ae=pe.getElementsByTagName("script");for(let Ne=ae.length-1;Ne>=0;Ne--)ae[Ne].parentNode?.removeChild(ae[Ne])}});let fe=P;p.setFontSize(8);const G=A.map(pe=>pe.name),Y=Ee!=="Monthly",ne=Y?We:g,H=Y?Se:A,$=["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"];if(H?.length)for(let pe=0;pe<ne.length;pe++){let ae=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[pe],B,ae),p.setFontSize(8);for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[pe];if(pt!=0){const ke=G[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor($[Ne]),p.roundedRect(B,ae+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,ae+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,ae+10)),ae+=10,ae>fe&&(fe=ae)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>re&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=G.length*10;const Q=420,Ce=k&&k.clientWidth?Q*k.clientHeight/k.clientWidth:ce;P+Ce+20>re&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.successIndicatorsName),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,Q,Ce),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes("readiness_trends")){await je(),p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se("readiness_trends"),B,P),P+=40;const k=document.getElementById("readiness_trends"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:pe=>{const ae=pe.getElementsByTagName("script");for(let Ne=ae.length-1;Ne>=0;Ne--)ae[Ne].parentNode?.removeChild(ae[Ne])}});let fe=P;p.setFontSize(8);const G=y.map(pe=>pe.name),Y=Ee!=="Monthly",ne=Y?We:g,H=Y?le:y,$=["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"];if(H?.length)for(let pe=0;pe<ne.length;pe++){let ae=P;p.setFontSize(12),p.setFont("Helvetica","normal","bold"),p.text(ne[pe],B,ae),p.setFontSize(8);for(let Ne=0;Ne<H?.length;Ne++){const pt=H[Ne].data[pe];if(pt!=0){const ke=G[Ne];ke!=""&&(p.setDrawColor(0),p.setFillColor($[Ne]),p.roundedRect(B,ae+5,5,5,1,1,"F"),p.setFont("Helvetica","normal","bold"),p.text(`${ke}:`,B+8,ae+10),p.setFont("Helvetica","normal","normal"),p.text(`${pt?.toFixed(2)}%`,B+ke?.length*2.5+20.5,ae+10)),ae+=10,ae>fe&&(fe=ae)}}B+=100,B+105>ye&&(B=20,P=fe+20),P+150>re&&(p.addPage(),await je(),P=80,B=20)}B=20,P+=G.length*10;const Q=420,Ce=k&&k.clientWidth?Q*k.clientHeight/k.clientWidth:ce;P+Ce+20>re&&(p.addPage(),await je(),P=80,B=20,p.setFontSize(14),p.setFont("Helvetica","normal","bold"),p.text(se(E.successIndicatorsName),B,P),P+=10),p.addImage(Ae.toDataURL("image/png"),10,P+20,Q,Ce),Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.topLearningStrategyName)){await je(),p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","normal","bold"),p.text(se(E.topLearningStrategyName),B,70),p.setFontSize(12),p.setTextColor("#3D3D3D"),p.setFont("Helvetica","normal","normal"),p.text(se("Learning Strategies Usage & Feedback"),B,P+4);const k=document.getElementById("learning_strategies_table_pdf"),Ae=await un(k,{scale:2,useCORS:!0,allowTaint:!1,logging:!1,imageTimeout:0,onclone:$=>{const Q=$.getElementsByTagName("script");for(let Ce=Q.length-1;Ce>=0;Ce--)Q[Ce].parentNode?.removeChild(Q[Ce])}});P+=12,B=20;const fe=420,G=k&&k.clientWidth?fe*k.clientHeight/k.clientWidth:300;let Y=G;const ne=P;p.addImage(Ae.toDataURL("image/png"),10,ne,fe,G),Y-=p.internal.pageSize.height-ne;let H=p.internal.pageSize.height-ne;for(;Y>0;)p.addPage(),p.addImage(Ae.toDataURL("image/png"),10,80-H,fe,G),p.setFillColor(255,255,255),p.rect(0,0,p.internal.pageSize.width,80,"F"),await je(),H+=p.internal.pageSize.height-80,Y-=p.internal.pageSize.height-80;Le++,Le<o.length&&(p.addPage(),P=80,B=20)}if(o.includes(E.studentConversation)){await je(),p.setFontSize(14),p.setTextColor("#000"),p.setFont("Helvetica","bold"),p.text(se(E.studentConversation),B,70),p.setFontSize(12),p.setTextColor("#3D3D3D"),p.setFont("Helvetica","normal"),p.text(se("Student Conversations"),B,P+4);const k=ct.map(G=>[G.studentName,G.gradeLevel?ut(G.gradeLevel):"",G.educatorNames.join(`
|
|
48
48
|
`),G.conversationCount,G.conversationDates.map(Y=>J.utcToLocalTime(Y,"do MMMM yyyy").toString()).join(`
|
|
49
|
-
`)]),Ae={};(await Te(ct.map(G=>({url:G.profileImage?J.getFileUrl(G.profileImage):null})),z)).forEach((G,Y)=>{Ae[Y]=Be(G)?G:z}),xc(p,{startY:P+20,head:[["Name of Student",nt==="UK"?"Year":
|
|
50
|
-
Conversations`,"Conversations Date"]],body:k,didDrawCell:G=>{if(G.section==="body"&&G.column.index===0){const Y=Ae[G.row.index],ne=Be(Y);Y&&ne&&p.addImage(Y,ne,G.cell.x+6,G.cell.y+6,12,12)}},styles:{fontSize:9,cellPadding:{top:8,left:8,right:8,bottom:8},valign:"top"},headStyles:{fillColor:[240,240,240],textColor:0,fontStyle:"bold"},columnStyles:{0:{cellWidth:100,cellPadding:{top:8,left:22,right:8,bottom:8}},1:{cellWidth:40,halign:"center"},2:{cellWidth:90},3:{cellWidth:70,halign:"center"},4:{cellWidth:85}},theme:"grid"})}p.save("DashBoard.pdf"),Ge?.(),at(J.setAlert({type:"success",message:"Download Completed"}))}catch(z){at(J.setAlert({type:"danger",message:z.message}))}at(J.setLoading(!1))};return c.jsxs("div",{children:[c.jsxs("div",{className:`${Dt.styles["chart-to-canvas"]}`,children:[c.jsx("div",{id:"average_safety",children:c.jsx(yt.GeneratePlpChart,{colors:["#0F9655"],typeChart:"area",activeColumn:[!0],series:x,months:g,dayOfWeek:h,avgQuestionLastMonth:u,skillClass:"full-width",print:!0,name:E.averageSafetyName,optionDate:Ee})}),c.jsx("div",{id:"average_stress",children:c.jsx(yt.GeneratePlpChart,{min:-100,colors:["#C44140"],typeChart:"area",activeColumn:[!0],series:v,months:g,dayOfWeek:h,avgQuestionLastMonth:u,skillClass:"full-width",print:!0,name:E.averageStressName,optionDate:Ee})}),c.jsx("div",{id:"metric",children:c.jsx(yt.GeneratePlpChart,{colors:["#C4D4F3"],name:E.lowMetricName,typeChart:"bar",weeks:Z,activeColumn:[!0],series:[{name:"",data:te}],weeklySeries:[{name:"",data:K}],months:U,dayOfWeek:h,avgQuestionLastMonth:u,print:!0,optionDate:Ee,lowMetricStudents:q,studentMetricPercent:re})}),c.jsx("div",{id:"success_indicators",children:c.jsx(yt.GeneratePlpChart,{colors:["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"],name:oe("success_indicators"),typeChart:"area",activeColumn:[!0,!0,!0,!0,!0,!0],series:A,weeklySeries:Se,months:g,dayOfWeek:h,avgQuestionLastMonth:u,weeks:We,print:!0,optionDate:Ee})}),c.jsx("div",{id:E.overallReadinessToLearn,children:c.jsx(yt.GeneratePlpChart,{colors:["#D9EEE4","#FAF0F0"],name:E.overallReadinessToLearnName,typeChart:"donut",months:[],activeColumn:[!0,!0],avgQuestionLastMonth:O.overViewQuestionLastMonth,studentCount:O?.studentNotReadyToLearn?.length||void 0,responseStudent:O?.studentNotReadyToLearn,series:O.resultQuestion,print:!0,optionDate:Ee})}),c.jsx("div",{id:"readiness_trends",children:c.jsx(yt.GeneratePlpChart,{colors:["#169490","#316CD9","#FFB04F"],name:E.readinessTrendName,typeChart:"area",activeColumn:[!0,!0,!0],series:y,months:g,dayOfWeek:h,avgQuestionLastMonth:u,weeks:We,weeklySeries:le,print:!0,optionDate:Ee})}),c.jsx("div",{id:E.studentAverageScore,children:c.jsx(Lc,{data:D,print:!0})}),c.jsx("div",{id:"student_stress_by_zone",style:{width:"175%"},children:c.jsx(Tc,{studentPressure:L,width:1280,print:!0})}),c.jsx("div",{id:"learning_strategies_table_pdf",style:{width:800,border:"1px solid #dcdcdc",borderRadius:"8px",overflow:"hidden"},children:c.jsx(Dc,{learningStrategies:ge,isPrint:!0})})]}),c.jsx("div",{className:`${Dt.styles["image-logo"]}`,id:"header-logo",children:c.jsx("img",{src:J.getStaticFileUrl(Kv),alt:""})}),c.jsx(Sn.Button,{color:"success",onClick:()=>{o.length>0&&ve()},children:oe("export")})]})},Zv=({modal:a,toggle:s,selectedToPrint:r,handleSelectToPrint:o,safetyData:u,stressData:h,monthsOneToOne:g,dayOfWeekOneToOne:y,studentPressure:x,metricWeeks:v,metricDataWeeks:A,metricMonths:D,metricDataMonths:L,lowMetricStudents:O,studentMetricPercent:W,dataReadinessOfChart:Z,dataOverallReadyToLearn:K,preparednessData:U,preparednessWeeklyData:te,weeksOneToOne:q,avgQuestionLastMonth:re,successIndicatorsData:We,successIndicatorWeeklyData:le,learningStrategies:Se,filter:ge,schoolName:de,learningStrategiesUsage:Ge,studentConversations:ct})=>{const{t:Ee}=J.useTranslation();return c.jsxs(Sn.Modal,{isOpen:a,toggle:s,style:{overflow:"hidden"},centered:!0,zIndex:1201,children:[c.jsxs(Sn.ModalHeader,{children:[c.jsx("p",{className:`${b.styles["title-modal"]}`,children:Ee("export_to_pdf")}),c.jsxs("p",{className:`${b.styles["header-desc-modal"]}`,children:[Ee("the_data_is_taken_from_the_home_screen"),"."]}),c.jsx("p",{className:`${b.styles["header-desc-modal"]}`,children:Ee("make_sure_everything_is_set_correctly_before_exporting")})]}),c.jsx(Sn.ModalBody,{children:E.chartNames?.map(oe=>c.jsxs(Sn.FormGroup,{check:!0,className:`${b.styles["form-checkbox"]}`,children:[c.jsx(Sn.Input,{type:"checkbox",checked:r.includes(oe),onChange:()=>o(oe)}),c.jsx(Sn.Label,{check:!0,className:`${b.styles["checkbox-content"]}`,children:Ee(`${oe}`)})]}))}),c.jsxs(Sn.ModalFooter,{children:[c.jsx(Sn.Button,{color:"light",onClick:s,children:Ee("cancel")}),c.jsx(Jv,{startTime:ge?.startDate,endTime:ge?.endDate,selectedToPDF:r,avgQuestionLastMonth:re,dayOfWeekOneToOne:y,monthsOneToOne:g,preparednessData:U,safetyData:u,stressData:h,successIndicatorsData:We,studentPressure:x,dataOverallReadyToLearn:K,schoolName:de,metricWeeks:v,metricDataWeeks:A,metricDataMonths:L,metricMonths:D,lowMetricStudents:O,studentMetricPercent:W,preparednessWeeklyData:te,weeksOneToOne:q,successIndicatorWeeklyData:le,topLearningStrategies:Se,readinessToLearning:Z,onClose:s,learningStrategiesUsage:Ge,optionDate:ge?.optionDate,studentConversations:ct})]})]})},e0=()=>{const{t:a}=J.useTranslation(),{studentDefault:s,stressData:r,safetyData:o,preparednessData:u,successIndicatorsData:h,monthsOneToOne:g,gradeList:y,handleChangeFilterGrade:x,handleChangeStartDateChart:v,handleChangeEndDateChart:A,filter:D,dayOfWeekOneToOne:L,avgQuestionLastMonth:O,handleChangeFilterCalendar:W,dataOverallReadyToLearn:Z,studentSkillQuestion:K,academicYear:U,handleChangeAcademicYearFilters:te,academicYearItem:q,studentPressure:re,expandedFilter:We,onToggleChart:le,classFontSize:Se,fontSizeInputSelect:ge,readinessToLearning:de,handleFilterStudent:Ge,activeTab:ct,setActiveTab:Ee,summarizeQuestions:oe,goToSession:dt,questionFilters:nt,handleChangeQuestionFilter:at,handleRedirectAllAnswer:wt,handleHoverTooltip:Oe,successIndicatorWeeklyData:Te,topLearningStrategies:Be,weeksOneToOne:ve,preparednessWeeklyData:z,metricWeeks:p,listTotalTime:ye,metricDataWeeks:ie,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,handleClick:gt,handleClose:Je,anchorEl:Tt,id_export:je,openPopoverExport:P,toggle:B,handleSelectToPrint:k,selectedToPrint:Ae,modal:fe,schoolName:G,onClearFilter:Y,onSaveFilter:ne,studentData:H,studentMetricPercent:$,setOptionDate:Q,stressValue:Ce,conversationKpi:pe,setSelectTeacherUserId:se,safetyValue:Ne,activeColumnReadiness:pt,activeColumnIndicators:ke,handleActiveColumn:Ft,loadingComplete:Ue,teacherDefault:nn,teachers:rn,strategyUsage:Rt,qualityFeedbackStudents:Ln,openQualityFeedbackModal:In,handleOpenQualityFeedbackModal:Nn,handleCloseQualityFeedbackModal:jn,handleViewDetailNote:nr,noteSelected:Cr,openDetailNote:br,handleCloseDetailNote:rr,loadingTopLearningStrategies:Un,studentConversations:Dr,onBeforeViewCheckIn:Fn,exportStudentConversationCsv:Tr}=Em(),{exportSessionsCsv:Lr}=uv(),qn=N.useMemo(()=>[{label:E.concernMetrics,component:c.jsx(sv,{studentSkillQuestion:K,classFontSize:Se,safetyData:o,stressData:r,monthsOneToOne:g,dayOfWeekOneToOne:L,handleHoverTooltip:Oe,avgQuestionLastMonth:O,studentPressure:re,timeOfDay:D.optionDate,metricWeeks:p,metricDataWeeks:ie,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,studentMetricPercent:$,stressValue:Ce,safetyValue:Ne,loadingComplete:Ue,onBeforeViewCheckIn:Fn})},{label:"conversations",component:c.jsx(Jm,{conversationKpi:pe,loadingComplete:Ue.dataConversationGoal,filterStartDate:D.startDate,filterEndDate:D.endDate})},{label:"readiness_to_learn",component:c.jsx(lv,{dataReadinessOfChart:de,handleHoverTooltip:Oe,classFontSize:Se,dataOverallReadyToLearn:Z,avgQuestionLastMonth:O,preparednessData:u,monthsOneToOne:g,dayOfWeekOneToOne:L,preparednessWeeklyData:z,weeksOneToOne:ve,setOptionDate:Q,onActiveColumn:Ft,activeColumn:pt,timeOfDay:D.optionDate,loadingComplete:Ue,onBeforeViewCheckIn:Fn})},{label:"open_field_questions",component:c.jsx(Ym,{goToSession:dt,handleChangeQuestionFilter:at,handleRedirectAllAnswer:wt,questionFilters:nt,summarizeQuestions:oe,loadingComplete:Ue.summarizeReport})},{label:E.successIndicatorsName,component:c.jsx(cv,{avgQuestionLastMonth:O,dayOfWeekOneToOne:L,monthsOneToOne:g,successIndicatorsData:h,timeOfDay:D.optionDate,classFontSize:Se,handleHoverTooltip:Oe,successIndicatorWeeklyData:Te,weeksOneToOne:ve,onActiveColumn:Ft,activeColumn:ke,loadingComplete:Ue,onBeforeViewCheckIn:Fn})},{label:"learning_strategies",component:c.jsx(qm,{learningStrategies:Rt,classFontSize:Se,handleHoverTooltip:Oe,loadingComplete:!Un,students:Ln,openQualityFeedbackModal:In,handleOpenQualityFeedbackModal:Nn,handleCloseQualityFeedbackModal:jn,handleViewDetailNote:nr})}],[K,Se,o,r,g,L,Oe,O,re,D.optionDate,D.startDate,D.endDate,p,ie,ce,Ke,Le,$,Ce,Ne,Ue,Fn,pe,de,Z,u,z,ve,Q,Ft,pt,dt,at,wt,nt,oe,h,Te,ke,Rt,Un,Ln,In,Nn,jn,nr]);return br?c.jsx(Fm,{note:Cr,backBtnName:"Back to Dashboard",handleBack:rr}):c.jsxs(S.Grid,{className:`${b.styles["plp-container"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["plp-header"]}`,children:[c.jsxs(S.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:1},children:[c.jsx(S.Grid,{className:`${b.styles["header-top"]}`,children:c.jsx(S.Typography,{className:`${b.styles["plp-title"]} pb-0`,children:a("data_dashboard")})}),c.jsxs(S.Button,{className:`${b.styles["plp-export"]}`,onClick:gt,children:[c.jsx("div",{children:a("export")}),c.jsx(yt.ArrowUp,{opacity:.56,color:"#316CD9"})]}),c.jsx(S.Popover,{id:je,open:P,anchorEl:Tt,onClose:Je,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsxs(S.Box,{p:2,display:"flex",flexDirection:"column",style:{gap:8},children:[c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{Lr(D),Je()},children:a("export_check_ins_to_csv")}),c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{Tr(),Je()},children:a("export_conversations_to_csv")}),c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{B(),Je()},children:a("export_to_pdf")})]})})]}),c.jsx(S.Typography,{className:`${b.styles["plp-description"]}`,children:a("understand_the_metrics_about_the_students_wellness_and_environment")}),c.jsx(km,{gradeList:y,onChangeFilterGrade:x,fontSizeInputSelect:ge,gradeFilter:D.grade,endDate:D.endDate||null,startDate:D.startDate||null,student:s,onChangeStudent:Ge,studentData:H,academicYearList:U,valueAcademicYear:q,onChangeAcademicYear:te,onChangeFilterCalendar:W,onChangeEndDateChart:A,onChangeStartDateChart:v,expandedFilter:We,onToggleChart:le,optionDate:D.optionDate,onClearFilter:Y,onSaveFilter:ne,setSelectTeacherUserId:se,teacherDefault:nn,loadingComplete:Ue,teachers:rn,activeTab:ct}),c.jsx(Hm,{gradeList:y,onChangeFilterGrade:x,fontSizeInputSelect:ge,gradeFilter:D.grade,endDate:D.endDate||null,startDate:D.startDate||null,student:s,onChangeStudent:Ge,studentData:H,academicYearList:U,valueAcademicYear:q,onChangeAcademicYear:te,onChangeFilterCalendar:W,onChangeEndDateChart:A,onChangeStartDateChart:v,expandedFilter:We,onToggleChart:le,optionDate:D.optionDate,onClearFilter:Y,onSaveFilter:ne,setSelectTeacherUserId:se,teacherDefault:nn,loadingComplete:Ue,teachers:rn,activeTab:ct}),c.jsxs(S.Grid,{className:`${b.styles["list-total"]}`,children:[c.jsx(yt.TotalCard,{iconSrc:"total-checkin-icon.png",label:"Total Check-ins",value:ye.totalCheckIn,loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-conversation-icon.png",label:"Total 1-1 Conversations",value:ye.totalOneToOne,loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-time-icon.png",label:"Total 1-1 Time",value:Cn.getConvertMinuteToHour(ye.totalTimeOneToOne),loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-conference-icon.png",label:"Total Conferences",value:ye.totalConference,loadingComplete:Ue.dataStatics})]})]}),c.jsx(S.Grid,{className:`${b.styles["plp-content"]} ${b.styles[Se]}`,children:c.jsxs(S.Grid,{className:b.styles["content-container"],children:[c.jsx(S.Grid,{className:b.styles["content-navigation"],children:qn.map(dn=>c.jsx(S.Typography,{onClick:()=>Ee(dn.label),className:`${b.styles["nav-item"]} ${b.styles[ct===dn.label?"nav-item-active":"nav-label"]}`,children:a(dn.label)},dn.label))}),c.jsx(S.Grid,{className:b.styles["content-component"],children:qn.find(dn=>dn.label===ct)?.component})]})}),c.jsx(Zv,{toggle:B,modal:fe,selectedToPrint:Ae,handleSelectToPrint:k,safetyData:o,stressData:r,monthsOneToOne:g,dayOfWeekOneToOne:L,studentPressure:re,metricWeeks:p,metricDataWeeks:ie,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,studentMetricPercent:$,dataReadinessOfChart:de,dataOverallReadyToLearn:Z,preparednessData:u,preparednessWeeklyData:z,weeksOneToOne:ve,avgQuestionLastMonth:O,successIndicatorsData:h,successIndicatorWeeklyData:Te,learningStrategies:Be,studentConversations:Dr,filter:D,schoolName:G,learningStrategiesUsage:Rt})]})};exports.default=e0;
|
|
49
|
+
`)]),Ae={};(await Te(ct.map(G=>({url:G.profileImage?J.getFileUrl(G.profileImage):null})),z)).forEach((G,Y)=>{Ae[Y]=Be(G)?G:z}),xc(p,{startY:P+20,head:[["Name of Student",nt==="UK"?"Year":se("grade"),"Name of Educator",`Number of
|
|
50
|
+
Conversations`,"Conversations Date"]],body:k,didDrawCell:G=>{if(G.section==="body"&&G.column.index===0){const Y=Ae[G.row.index],ne=Be(Y);Y&&ne&&p.addImage(Y,ne,G.cell.x+6,G.cell.y+6,12,12)}},styles:{fontSize:9,cellPadding:{top:8,left:8,right:8,bottom:8},valign:"top"},headStyles:{fillColor:[240,240,240],textColor:0,fontStyle:"bold"},columnStyles:{0:{cellWidth:100,cellPadding:{top:8,left:22,right:8,bottom:8}},1:{cellWidth:40,halign:"center"},2:{cellWidth:90},3:{cellWidth:70,halign:"center"},4:{cellWidth:85}},theme:"grid"})}p.save("DashBoard.pdf"),Ge?.(),at(J.setAlert({type:"success",message:"Download Completed"}))}catch(z){at(J.setAlert({type:"danger",message:z.message}))}at(J.setLoading(!1))};return c.jsxs("div",{children:[c.jsxs("div",{className:`${Dt.styles["chart-to-canvas"]}`,children:[c.jsx("div",{id:"average_safety",children:c.jsx(yt.GeneratePlpChart,{colors:["#0F9655"],typeChart:"area",activeColumn:[!0],series:x,months:g,dayOfWeek:h,avgQuestionLastMonth:u,skillClass:"full-width",print:!0,name:E.averageSafetyName,optionDate:Ee})}),c.jsx("div",{id:"average_stress",children:c.jsx(yt.GeneratePlpChart,{min:-100,colors:["#C44140"],typeChart:"area",activeColumn:[!0],series:v,months:g,dayOfWeek:h,avgQuestionLastMonth:u,skillClass:"full-width",print:!0,name:E.averageStressName,optionDate:Ee})}),c.jsx("div",{id:"metric",children:c.jsx(yt.GeneratePlpChart,{colors:["#C4D4F3"],name:E.lowMetricName,typeChart:"bar",weeks:Z,activeColumn:[!0],series:[{name:"",data:te}],weeklySeries:[{name:"",data:K}],months:U,dayOfWeek:h,avgQuestionLastMonth:u,print:!0,optionDate:Ee,lowMetricStudents:q,studentMetricPercent:ie})}),c.jsx("div",{id:"success_indicators",children:c.jsx(yt.GeneratePlpChart,{colors:["#73C8E5","#FFB04F","#D7B0DE","#E56362","#5A7F05","#D3D3D3"],name:se("success_indicators"),typeChart:"area",activeColumn:[!0,!0,!0,!0,!0,!0],series:A,weeklySeries:Se,months:g,dayOfWeek:h,avgQuestionLastMonth:u,weeks:We,print:!0,optionDate:Ee})}),c.jsx("div",{id:E.overallReadinessToLearn,children:c.jsx(yt.GeneratePlpChart,{colors:["#D9EEE4","#FAF0F0"],name:E.overallReadinessToLearnName,typeChart:"donut",months:[],activeColumn:[!0,!0],avgQuestionLastMonth:O.overViewQuestionLastMonth,studentCount:O?.studentNotReadyToLearn?.length||void 0,responseStudent:O?.studentNotReadyToLearn,series:O.resultQuestion,print:!0,optionDate:Ee})}),c.jsx("div",{id:"readiness_trends",children:c.jsx(yt.GeneratePlpChart,{colors:["#169490","#316CD9","#FFB04F"],name:E.readinessTrendName,typeChart:"area",activeColumn:[!0,!0,!0],series:y,months:g,dayOfWeek:h,avgQuestionLastMonth:u,weeks:We,weeklySeries:le,print:!0,optionDate:Ee})}),c.jsx("div",{id:E.studentAverageScore,children:c.jsx(Lc,{data:D,print:!0})}),c.jsx("div",{id:"student_stress_by_zone",style:{width:"175%"},children:c.jsx(Tc,{studentPressure:L,width:1280,print:!0})}),c.jsx("div",{id:"learning_strategies_table_pdf",style:{width:800,border:"1px solid #dcdcdc",borderRadius:"8px",overflow:"hidden"},children:c.jsx(Dc,{learningStrategies:ge,isPrint:!0})})]}),c.jsx("div",{className:`${Dt.styles["image-logo"]}`,id:"header-logo",children:c.jsx("img",{src:J.getStaticFileUrl(Kv),alt:""})}),c.jsx(Sn.Button,{color:"success",onClick:()=>{o.length>0&&ve()},children:se("export")})]})},Zv=({modal:a,toggle:s,selectedToPrint:r,handleSelectToPrint:o,safetyData:u,stressData:h,monthsOneToOne:g,dayOfWeekOneToOne:y,studentPressure:x,metricWeeks:v,metricDataWeeks:A,metricMonths:D,metricDataMonths:L,lowMetricStudents:O,studentMetricPercent:W,dataReadinessOfChart:Z,dataOverallReadyToLearn:K,preparednessData:U,preparednessWeeklyData:te,weeksOneToOne:q,avgQuestionLastMonth:ie,successIndicatorsData:We,successIndicatorWeeklyData:le,learningStrategies:Se,filter:ge,schoolName:de,learningStrategiesUsage:Ge,studentConversations:ct})=>{const{t:Ee}=J.useTranslation();return c.jsxs(Sn.Modal,{isOpen:a,toggle:s,style:{overflow:"hidden"},centered:!0,zIndex:1201,children:[c.jsxs(Sn.ModalHeader,{children:[c.jsx("p",{className:`${b.styles["title-modal"]}`,children:Ee("export_to_pdf")}),c.jsxs("p",{className:`${b.styles["header-desc-modal"]}`,children:[Ee("the_data_is_taken_from_the_home_screen"),"."]}),c.jsx("p",{className:`${b.styles["header-desc-modal"]}`,children:Ee("make_sure_everything_is_set_correctly_before_exporting")})]}),c.jsx(Sn.ModalBody,{children:E.chartNames?.map(se=>c.jsxs(Sn.FormGroup,{check:!0,className:`${b.styles["form-checkbox"]}`,children:[c.jsx(Sn.Input,{type:"checkbox",checked:r.includes(se),onChange:()=>o(se)}),c.jsx(Sn.Label,{check:!0,className:`${b.styles["checkbox-content"]}`,children:Ee(`${se}`)})]}))}),c.jsxs(Sn.ModalFooter,{children:[c.jsx(Sn.Button,{color:"light",onClick:s,children:Ee("cancel")}),c.jsx(Jv,{startTime:ge?.startDate,endTime:ge?.endDate,selectedToPDF:r,avgQuestionLastMonth:ie,dayOfWeekOneToOne:y,monthsOneToOne:g,preparednessData:U,safetyData:u,stressData:h,successIndicatorsData:We,studentPressure:x,dataOverallReadyToLearn:K,schoolName:de,metricWeeks:v,metricDataWeeks:A,metricDataMonths:L,metricMonths:D,lowMetricStudents:O,studentMetricPercent:W,preparednessWeeklyData:te,weeksOneToOne:q,successIndicatorWeeklyData:le,topLearningStrategies:Se,readinessToLearning:Z,onClose:s,learningStrategiesUsage:Ge,optionDate:ge?.optionDate,studentConversations:ct})]})]})},e0=()=>{const{t:a}=J.useTranslation(),{studentDefault:s,stressData:r,safetyData:o,preparednessData:u,successIndicatorsData:h,monthsOneToOne:g,gradeList:y,handleChangeFilterGrade:x,handleChangeStartDateChart:v,handleChangeEndDateChart:A,filter:D,dayOfWeekOneToOne:L,avgQuestionLastMonth:O,handleChangeFilterCalendar:W,dataOverallReadyToLearn:Z,studentSkillQuestion:K,academicYear:U,handleChangeAcademicYearFilters:te,academicYearItem:q,studentPressure:ie,expandedFilter:We,onToggleChart:le,classFontSize:Se,fontSizeInputSelect:ge,readinessToLearning:de,handleFilterStudent:Ge,activeTab:ct,setActiveTab:Ee,summarizeQuestions:se,goToSession:ut,questionFilters:nt,handleChangeQuestionFilter:at,handleRedirectAllAnswer:wt,handleHoverTooltip:Oe,successIndicatorWeeklyData:Te,topLearningStrategies:Be,weeksOneToOne:ve,preparednessWeeklyData:z,metricWeeks:p,listTotalTime:ye,metricDataWeeks:re,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,handleClick:gt,handleClose:Je,anchorEl:Tt,id_export:je,openPopoverExport:P,toggle:B,handleSelectToPrint:k,selectedToPrint:Ae,modal:fe,schoolName:G,onClearFilter:Y,onSaveFilter:ne,studentData:H,studentMetricPercent:$,setOptionDate:Q,stressValue:Ce,conversationKpi:pe,setSelectTeacherUserId:ae,safetyValue:Ne,activeColumnReadiness:pt,activeColumnIndicators:ke,handleActiveColumn:Rt,loadingComplete:Ue,teacherDefault:nn,teachers:rn,strategyUsage:Ft,qualityFeedbackStudents:Ln,openQualityFeedbackModal:In,handleOpenQualityFeedbackModal:Nn,handleCloseQualityFeedbackModal:jn,handleViewDetailNote:nr,noteSelected:Cr,openDetailNote:br,handleCloseDetailNote:rr,loadingTopLearningStrategies:Un,studentConversations:Dr,onBeforeViewCheckIn:Rn,exportStudentConversationCsv:Tr}=Em(),{exportSessionsCsv:Lr}=uv(),qn=N.useMemo(()=>[{label:E.concernMetrics,component:c.jsx(sv,{studentSkillQuestion:K,classFontSize:Se,safetyData:o,stressData:r,monthsOneToOne:g,dayOfWeekOneToOne:L,handleHoverTooltip:Oe,avgQuestionLastMonth:O,studentPressure:ie,timeOfDay:D.optionDate,metricWeeks:p,metricDataWeeks:re,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,studentMetricPercent:$,stressValue:Ce,safetyValue:Ne,loadingComplete:Ue,onBeforeViewCheckIn:Rn})},{label:"conversations",component:c.jsx(Jm,{conversationKpi:pe,loadingComplete:Ue.dataConversationGoal,filterStartDate:D.startDate,filterEndDate:D.endDate})},{label:"readiness_to_learn",component:c.jsx(lv,{dataReadinessOfChart:de,handleHoverTooltip:Oe,classFontSize:Se,dataOverallReadyToLearn:Z,avgQuestionLastMonth:O,preparednessData:u,monthsOneToOne:g,dayOfWeekOneToOne:L,preparednessWeeklyData:z,weeksOneToOne:ve,setOptionDate:Q,onActiveColumn:Rt,activeColumn:pt,timeOfDay:D.optionDate,loadingComplete:Ue,onBeforeViewCheckIn:Rn})},{label:"open_field_questions",component:c.jsx(Ym,{goToSession:ut,handleChangeQuestionFilter:at,handleRedirectAllAnswer:wt,questionFilters:nt,summarizeQuestions:se,loadingComplete:Ue.summarizeReport})},{label:E.successIndicatorsName,component:c.jsx(cv,{avgQuestionLastMonth:O,dayOfWeekOneToOne:L,monthsOneToOne:g,successIndicatorsData:h,timeOfDay:D.optionDate,classFontSize:Se,handleHoverTooltip:Oe,successIndicatorWeeklyData:Te,weeksOneToOne:ve,onActiveColumn:Rt,activeColumn:ke,loadingComplete:Ue,onBeforeViewCheckIn:Rn})},{label:"learning_strategies",component:c.jsx(qm,{learningStrategies:Ft,classFontSize:Se,handleHoverTooltip:Oe,loadingComplete:!Un,students:Ln,openQualityFeedbackModal:In,handleOpenQualityFeedbackModal:Nn,handleCloseQualityFeedbackModal:jn,handleViewDetailNote:nr})}],[K,Se,o,r,g,L,Oe,O,ie,D.optionDate,D.startDate,D.endDate,p,re,ce,Ke,Le,$,Ce,Ne,Ue,Rn,pe,de,Z,u,z,ve,Q,Rt,pt,ut,at,wt,nt,se,h,Te,ke,Ft,Un,Ln,In,Nn,jn,nr]);return br?c.jsx(Rm,{note:Cr,backBtnName:"Back to Dashboard",handleBack:rr}):c.jsxs(S.Grid,{className:`${b.styles["plp-container"]}`,children:[c.jsxs(S.Grid,{className:`${b.styles["plp-header"]}`,children:[c.jsxs(S.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:1},children:[c.jsx(S.Grid,{className:`${b.styles["header-top"]}`,children:c.jsx(S.Typography,{className:`${b.styles["plp-title"]} pb-0`,children:a("data_dashboard")})}),c.jsxs(S.Button,{className:`${b.styles["plp-export"]}`,onClick:gt,children:[c.jsx("div",{children:a("export")}),c.jsx(yt.ArrowUp,{opacity:.56,color:"#316CD9"})]}),c.jsx(S.Popover,{id:je,open:P,anchorEl:Tt,onClose:Je,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsxs(S.Box,{p:2,display:"flex",flexDirection:"column",style:{gap:8},children:[c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{Lr(D),Je()},children:a("export_check_ins_to_csv")}),c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{Tr(),Je()},children:a("export_conversations_to_csv")}),c.jsx("button",{className:`${b.styles["plp-export__btn"]}`,type:"button",onClick:()=>{B(),Je()},children:a("export_to_pdf")})]})})]}),c.jsx(S.Typography,{className:`${b.styles["plp-description"]}`,children:a("understand_the_metrics_about_the_students_wellness_and_environment")}),c.jsx(km,{gradeList:y,onChangeFilterGrade:x,fontSizeInputSelect:ge,gradeFilter:D.grade,endDate:D.endDate||null,startDate:D.startDate||null,student:s,onChangeStudent:Ge,studentData:H,academicYearList:U,valueAcademicYear:q,onChangeAcademicYear:te,onChangeFilterCalendar:W,onChangeEndDateChart:A,onChangeStartDateChart:v,expandedFilter:We,onToggleChart:le,optionDate:D.optionDate,onClearFilter:Y,onSaveFilter:ne,setSelectTeacherUserId:ae,teacherDefault:nn,loadingComplete:Ue,teachers:rn,activeTab:ct}),c.jsx(Hm,{gradeList:y,onChangeFilterGrade:x,fontSizeInputSelect:ge,gradeFilter:D.grade,endDate:D.endDate||null,startDate:D.startDate||null,student:s,onChangeStudent:Ge,studentData:H,academicYearList:U,valueAcademicYear:q,onChangeAcademicYear:te,onChangeFilterCalendar:W,onChangeEndDateChart:A,onChangeStartDateChart:v,expandedFilter:We,onToggleChart:le,optionDate:D.optionDate,onClearFilter:Y,onSaveFilter:ne,setSelectTeacherUserId:ae,teacherDefault:nn,loadingComplete:Ue,teachers:rn,activeTab:ct}),c.jsxs(S.Grid,{className:`${b.styles["list-total"]}`,children:[c.jsx(yt.TotalCard,{iconSrc:"total-checkin-icon.png",label:"Total Check-ins",value:ye.totalCheckIn,loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-conversation-icon.png",label:"Total 1-1 Conversations",value:ye.totalOneToOne,loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-time-icon.png",label:"Total 1-1 Time",value:Cn.getConvertMinuteToHour(ye.totalTimeOneToOne),loadingComplete:Ue.dataStatics}),c.jsx(yt.TotalCard,{iconSrc:"total-conference-icon.png",label:"Total Conferences",value:ye.totalConference,loadingComplete:Ue.dataStatics})]})]}),c.jsx(S.Grid,{className:`${b.styles["plp-content"]} ${b.styles[Se]}`,children:c.jsxs(S.Grid,{className:b.styles["content-container"],children:[c.jsx(S.Grid,{className:b.styles["content-navigation"],children:qn.map(dn=>c.jsx(S.Typography,{onClick:()=>Ee(dn.label),className:`${b.styles["nav-item"]} ${b.styles[ct===dn.label?"nav-item-active":"nav-label"]}`,children:a(dn.label)},dn.label))}),c.jsx(S.Grid,{className:b.styles["content-component"],children:qn.find(dn=>dn.label===ct)?.component})]})}),c.jsx(Zv,{toggle:B,modal:fe,selectedToPrint:Ae,handleSelectToPrint:k,safetyData:o,stressData:r,monthsOneToOne:g,dayOfWeekOneToOne:L,studentPressure:ie,metricWeeks:p,metricDataWeeks:re,metricMonths:ce,metricDataMonths:Ke,lowMetricStudents:Le,studentMetricPercent:$,dataReadinessOfChart:de,dataOverallReadyToLearn:Z,preparednessData:u,preparednessWeeklyData:z,weeksOneToOne:ve,avgQuestionLastMonth:O,successIndicatorsData:h,successIndicatorWeeklyData:Te,learningStrategies:Be,studentConversations:Dr,filter:D,schoolName:G,learningStrategiesUsage:Ft})]})};exports.default=e0;
|