PageSourceSearch

https://madchemclasses.online/_next/static/chunks/pages/quiz/[id]/attempt-4ecf3984a15ac9ee.js

js madchemclasses.online collected 2026-09-26 16:42:26 UTC 19,074 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9006],{77119:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("alarm-clock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]])},60962:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("bookmark-plus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]])},9589:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},60201:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("circle-pause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]])},76439:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("circle-play",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},61108:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},45077:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},9404:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},92509:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},27057:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("layout-list",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]])},81914:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},1470:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});const r=(0,n(91373).Z)("trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]])},22654:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz/[id]/attempt",function(){return n(48950)}])},48950:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(47568),i=n(26042),o=n(29815),s=n(97582),a=n(85893),c=n(47041),u=n(96486),l=n(67294),d=n(41136),f=n(89327),h=n(96076),p=n(3751),m=n(11163),g=n(58907),y=n(89885),x=n(73716),v=n(4027),w=n(19201),_=n(35739),b=n(84298),k=n(29474),S=n(47973),Z=n(83609),N=n(98814),z=n(64998),q=n(44898),j=n(13348);function C(e){if(!e)return"00";var t=e>=10?e.toString()[0]:"0",n=e>=10?e.toString()[1]:e.toString();return"".concat(t).concat(n)}function E(e){var t=e.questions,n=e.quiz,E=e.lcId,M=e.baseUrl,I=e.userId,R=(0,l.useState)(0),Q=R[0],T=R[1],P=(0,l.useState)(t),J=P[0],O=P[1],U=(0,l.useState)(),D=U[0],A=U[1],B=(0,l.useState)(),H=B[0],L=B[1],V=(0,l.useState)(!1),F=V[0],X=V[1],G=(0,l.useState)(0),W=G[0],K=G[1],Y=(0,m.useRouter)(),$=(0,l.useState)(),ee=$[0],te=$[1],ne=function(){return te(!ee)},re=(0,l.useContext)(y.Z).appConfig,ie=(0,l.useState)(!1),oe=ie[0],se=ie[1],ae="quiz_attempt_".concat(n.id),ce=(0,l.useRef)(oe);(0,l.useEffect)((function(){ce.current=oe}),[oe]);var ue=(0,p.useTimer)({expiryTimestamp:new Date,autoStart:!1,onExpire:function(){"1"!==n.show_instant_solution&&(A(!1),xe())}}),le=(0,p.useTimer)({expiryTimestamp:function(){if(!(n.time>0))return(0,q.tO)(n,n.time);try{var e=localStorage.getItem(ae),t=e?JSON.parse(e):null;
1if((null===t||void 0===t?void 0:t.timeRemaining)>0)return(0,q.tO)(n,t.timeRemaining)}catch(r){console.error("Error reading stored quiz attempt",r)}return(0,q.tO)(n,n.time)}(),autoStart:function(){if(!(n.time>0))return n.time>0;try{var e=localStorage.getItem(ae),t=e?JSON.parse(e):null;if(t)return!t.isPaused}catch(r){console.error("Error reading stored quiz attempt",r)}return n.time>0}(),onExpire:function(){ve()}});(0,l.useEffect)((function(){if((0,x.Dc)(),n.time>0){var e=null;try{var t=localStorage.getItem(ae);e=t?JSON.parse(t):null}catch(r){console.error("Error reading stored quiz attempt",r)}e&&("number"===typeof e.activeQuestion&&T(e.activeQuestion),e.timeRemaining>0?e.isPaused&&se(!0):ve())}}),[]),(0,l.useEffect)((function(){if(n.time>0&&le.seconds%2===0){var e=le.seconds+60*le.minutes+3600*le.hours;try{localStorage.setItem(ae,JSON.stringify({activeQuestion:Q,timeRemaining:e,isPaused:oe}))}catch(t){console.error("Error saving quiz attempt to localStorage",t)}}}),[le.seconds,Q,oe]),(0,l.useEffect)((function(){return function(){if(n.time>0&&!ce.current)try{localStorage.removeItem(ae)}catch(e){console.error("Error clearing quiz attempt on unmount",e)}}}),[]),(0,l.useEffect)((function(){window.MathJax&&window.MathJax.typeset&&window.MathJax.typeset()}),[J]),(0,l.useEffect)((function(){if(!ee){var e=setInterval((function(){K((function(e){return e+1}))}),1e3);return function(){return clearInterval(e)}}}),[ee]);var de=(0,l.useMemo)((function(){return J.filter((function(e){return null!=e.selected})).length}),[J]),fe=(0,l.useMemo)((function(){var e="1"===n.show_solutions||"1"===n.show_instant_solution;return J.map((function(t){return null==t.selected?"default":e?String(t.selected)===String(t.answer)?"correct":"incorrect":"answered"}))}),[J,n.show_solutions,n.show_instant_solution]),he=3600*le.hours+60*le.minutes+le.seconds,pe=Number(n.time)||0,me=le.isRunning||oe?"".concat(C(le.hours),":").concat(C(le.minutes),":").concat(C(le.seconds)):null,ge=(le.isRunning||oe)&&pe>0?he/pe:null,ye=function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return"".concat(C(t),":").concat(C(n),":").concat(C(r))},xe=function(){A(!1),Q<J.length-1?T(Q+1):ve()},ve=function(){var e=(0,r.Z)((function(){var e,t,o,a,l,f,p,m,y,x,v;return(0,s.__generator)(this,(function(_){switch(_.label){case 0:if(F)return[2];X(!0),_.label=1;case 1:return _.trys.push([1,5,,6]),e=J.filter((function(e){return null!=e.selected})),t=J.filter((function(e){return e.selected==e.answer})),o=J.filter((function(e){return null!=e.selected&&e.selected!=e.answer})),a=(0,u.sumBy)(t,(function(e){return Number(e.correct_score)})),l=(0,u.sumBy)(t,(function(e){return Number(e.negative_score)})),f={score:a-l,correctCount:t.length,incorrectCount:o.length,attemptedCount:e.length,unattemptedCount:J.length-e.length,canDoBetter:t.length<J.length/2,timeTaken:ye(W)},"1"!=n.show_rank&&"1"!=re.web_isfitnessclient?[3,3]:(p=J.map((function(e){return{qid:e.id,answer:e.answer,option:e.selected}})),m=new Blob([JSON.stringify(p)],{type:"application/json"}),y=(0,c.getCookie)(h.JR),[4,(0,g.c)({fileName:"result".concat(Date.now(),".json"),file:m,path:"quiz/".concat(n.id,"/results"),cb:function(){var e=(0,r.Z)((function(e,t){var r,o,a;return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return r=(0,c.getCookie)(h.z1),[4,(0,d.JQ)(M,n.id,y,t.Location,E,r)];case 1:return e.sent(),[4,(0,d.xr)(M,n.id,J.length,f.correctCount,y,E,r)];case 2:return o=e.sent(),f.rank=o.rank,f.participants=o.total,L((0,i.Z)({},f)),a={attempt:J,results:f},localStorage.setItem("quiz_attempt",JSON.stringify(a)),localStorage.removeItem(ae),ne(),X(!1),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}(),isTest:!0},{maxRetries:3})]);case 2:return _.sent(),[3,4];case 3:L((0,i.Z)({},f)),x={attempt:J,results:f},localStorage.setItem("quiz_attempt",JSON.stringify(x)),localStorage.removeItem(ae),ne(),X(!1),_.label=4;case 4:return[3,6];case 5:return v=_.sent(),console.error(v),w.A.error("Error occured while submitting the quiz"),X(!1),[3,6];case 6:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),we=J[Q],_e=function(e,t){var n=(0,l.useContext)(y.Z).appConfig,r=(0,j.y)(e,t),i=r.loading,o=r.isSaved,s=r.handleSaveQuizQuestion;return{canSave:!(0,u.isEmpty)(n.web_menuitems)&&(0,u.some)(n.web_menuitems,{type:"SAVED_QUESTION"}),loading:i,isSaved:o,handleSaveQuizQuestion:s}}(null===we||void 0===we?void 0:we.id,n.id),be=_e.canSave,ke=_e.loading,Se=_e.isSaved,Ze=_e.handleSaveQuizQuestion,Ne=Boolean(D),ze=Ne&&("1"===n.show_solutions||"1"===n.show_instant_solution),qe=Ne&&"1"===n.show_instant_solution,je=Q===J.length-1,Ce=0===Q;return ee&&H?(0,a.jsx)("div",{className:"no-copy min-h-screen bg-background",children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6 lg:gap-12 lg:py-12",children:[(0,a.jsx)(Z.Z,{breadcrumbs:[{label:"Home"},{label:"Quiz"},{label:n.title},{label:"Quiz Results"}],onBack:function(){return Y.back()},showCategoryRow:!1}),(0,a.jsx)(S.Z,{className:"max-w-5xl mx-auto",result:H,totalQuestions:J.length,showRank:"1"===n.show_rank,showResults:"1"===n.show_results,onBackToQuiz:function(){return Y.push("/quiz")},onViewSolutions:function(){Y.replace({pathname:"/quiz/".concat(n.id,"/solutions"),query:E?{baseUrl:M,lcId:E}:{}})}})]})}):(0,a.jsx)("main",{className:"no-copy min-h-screen bg-background",children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6 lg:gap-8 lg:py-12",children:[(0,a.jsx)(Z.Z,{breadcrumbs:[{label:"Home"},{label:"Quiz"},{label:n.title}],onBack:function(){return Y.back()},showCategoryRow:!1}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[320px_minmax(0,1fr)] lg:gap-8",children:[(0,a.jsx)("div",{className:"lg:sticky lg:top-24 lg:self-start",children:(0,a.jsx)(k.Z,{className:"max-w-5xl mx-auto",total:t.length,activeIndex:Q,answeredCount:de,onSelect:function(e){A(!1),T(e)},questionStatuses:fe,timerLabel:me,timerProgress:ge,showPause:(0,v.Z)(n.show_pause)&&n.time>0,isPaused:oe,onPause:function(){if((0,v.Z)(n.show_pause)&&(se(!0),le.pause(),n.time>0)){var e=le.seconds+60*le.minutes+3600*le.hours;try{localStorage.setItem(ae,JSON.stringify({activeQuestion:Q,timeRemaining:e,isPaused:!0}))}catch(t){console.error("Error saving quiz attempt to localStorage",t)}}},onResume:function(){(0,v.Z)(n.show_pause)&&(se(!1),le.resume())},showSave:be,onSave:Ze,saveLabel:ke?"Saving...":Se?"Saved":"Save",saveDisabled:ke})}),(0,a.jsx)("div",{className:"flex min-w-0 flex-col",children:(0,a.jsxs)("div",{className:"quiz-attempt-surface flex flex-col rounded-2xl border border-border",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between p-5 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsxs)("span",{className:"text-xs font-semibold uppercase tracking-wider text-primary",children:["Question ",Q+1," of ",t.length]}),(0,a.jsx)("div",{className:"text-lg lg:text-xl font-extrabold leading-relaxed tracking-tight text-balance text-foreground [&_*]:!break-normal [&_p]:!m-0 [&_p+p]:!mt-3",dangerouslySetInnerHTML:{__html:(0,f.I)(we.question)}}),we.question_image&&(0,a.jsx)("img",{src:we.question_image,alt:"",className:"h-auto max-w-full rounded"}),["image_link_1","image_link_2","image_link_3"].map((function(e){return we[e]&&(0,a.jsx)("img",{src:we[e],alt:"",className:"h-auto max-w-full rounded"},e)}))]}),(0,a.jsx)("div",{className:"flex shrink-0 items-center",children:(0,a.jsx)(b.Z,{test_id:n.id,question_id:we.id,user_id:I,isQuiz:!0})})]}),(0,a.jsx)("div",{className:"flex flex-col gap-2 rounded-2xl border border-border bg-popover p-5",children:(0,a.jsx)(f.Z,{question:we,setAnswer:function(e){var r=t[Q];if(null==r.selected&&(r.options.forEach((function(t){t.option_number==e.option_number?t.selected=!0:t.selected=!1})),r.selected=e.option_number,J[Q]=r,O((0,o.Z)(J)),"1"!=n.show_solutions&&"1"!=n.show_instant_solution||A(!0),"1"!=n.show_instant_solution)){var i=(new Date).setSeconds((new Date).getSeconds()+1);ue.restart(i)}},showSolution:ze,showSolutionSection:qe,showAnswerFeedback:Ne,showQuestionNumber:!1,showQuestionText:!1,layout:"GRID"})}),(0,a.jsxs)("div",{className:"flex flex-col-reverse gap-3 p-5 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,a.jsx)(_.z,{onClick:ve,disabled:F,size:"lg",children:F?"Submitting...":"Submit Quiz"}),!je&&(0,a.jsx)(_.z,{size:"lg",variant:"outline",onClick:xe,children:"Skip"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2.5",children:[(0,a.jsxs)(_.z,{variant:"outline",onClick:function(){A(!1),T((function(e){return e>0?e-1:e}))},disabled:Ce,size:"lg",children:[(0,a.jsx)(N.Z,{className:"size-4 shrink-0"}),"Previous"]}),!je&&(0,a.jsxs)(_.z,{onClick:xe,size:"lg",children:["Next",(0,a.jsx)(z.Z,{className:"size-4 shrink-0"})]})]})]})]})})]})]})})}E.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,a,l,f;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return t=e.query,n=t.baseUrl||(0,c.getCookie)(h.z1,e),r=(0,c.getCookie)(h.JR,e),a=e.query.id,r?[4,(0,d.ZT)(n,a)]:[2,{statusCode:401}];case 1:if(0==(null===(l=s.sent())||void 0===l?void 0:l.length))return[2,{statusCode:404}];s.label=2;case 2:return s.trys.push([2,4,,5]),[4,(0,d.k6)(n,a,r)];case 3:return f=s.sent(),[3,5];case 4:return s.sent(),[2,{statusCode:404}];case 5:return(0,v.Z)(f.shuffle_questions)&&(l.forEach((function(e){e.sort=Math.random()})),(l=l.sort((function(e,t){return e.sort-t.sort}
1))).forEach((function(e){delete e.sort}))),l.forEach((function(e,t){var n=(0,o.Z)(new Array(10).keys()).map((function(t){if(!(0,u.isEmpty)(e["option_".concat(t)])||!(0,u.isEmpty)(e["option_image_".concat(t)]))return{option:e["option_".concat(t)],option_number:t,option_image:e["option_image_".concat(t)]||"",optionval:"",selected:!1}})).filter((function(e){return null!=e}));e.options=n,e.question_number=t+1})),[2,(0,i.Z)({userId:r,quiz:f,questions:l,quizId:a},t)]}}))}));return function(t){return e.apply(this,arguments)}}()},58907:function(e,t,n){"use strict";n.d(t,{c:function(){return _},s:function(){return b}});var r=n(47568),i=n(51438),o=n(28668),s=n(25892),a=n(76166),c=n(97582),u=n(29061),l=n(27432),d=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o;return(0,i.Z)(this,n),(o=t.call(this,e)).name="UploadError",o.status=r,o}return n}((0,s.Z)(Error)),f=function(e){return new Promise((function(t){return setTimeout(t,e)}))},h=function(e){return{400:"Invalid request format",401:"Unauthorized access",403:"Permission denied",404:"Resource not found",408:"Request timeout",413:"File too large",422:"File format not supported",429:"Too many requests",500:"Server error",503:"Service unavailable"}[e]||"Unknown error occurred"};function p(e){return m.apply(this,arguments)}function m(){return m=(0,r.Z)((function(e){var t,n,r,i,o,s,a,u,l,p,m,g,y,x,v=arguments;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:t=v.length>1&&void 0!==v[1]?v[1]:{},n=t.maxRetries,r=void 0===n?3:n,i=t.baseDelay,o=void 0===i?1e3:i,s=t.retryStatusCodes,a=void 0===s?[408,413,422,429,500,503]:s,l=0,c.label=1;case 1:if(!(l<=r))return[3,7];c.label=2;case 2:return c.trys.push([2,4,,6]),[4,e()];case 3:return[2,c.sent()];case 4:if(p=c.sent(),u=p,g=(null===(m=p.response)||void 0===m?void 0:m.status)||500,!a.includes(g)||l===r)throw y="".concat(h(g)," (Status: ").concat(g,")"),new d(y,g);return x=o*Math.pow(2,l),[4,f(x)];case 5:return c.sent(),[3,6];case 6:return l++,[3,1];case 7:throw u}}))})),m.apply(this,arguments)}var g=function(e){return e.replaceAll(" ","-").replaceAll("&","and").replaceAll("+","-")};function y(e,t,n){return x.apply(this,arguments)}function x(){return x=(0,r.Z)((function(e,t,n){var r,i,o=arguments;return(0,c.__generator)(this,(function(s){switch(s.label){case 0:return r=o.length>3&&void 0!==o[3]?o[3]:"",i={filePath:e},n?i.type="test":r&&(i.type=r),[4,u.Z.post("/post/generateTencentWebsitePresignedUrl",i,{headers:{"Content-Type":t}})];case 1:return[2,s.sent().data.data]}}))})),x.apply(this,arguments)}function v(e,t,n,r){return w.apply(this,arguments)}function w(){return(w=(0,r.Z)((function(e,t,n,r){return(0,c.__generator)(this,(function(i){return[2,u.Z.put(e,t,{headers:{"Content-Type":n},onUploadProgress:r})]}))}))).apply(this,arguments)}var _=function(){var e=(0,r.Z)((function(e){var t,n,i,o,s,a,u,d,f,h,m,x,w,_,b,k,S,Z=arguments;return(0,c.__generator)(this,(function(N){switch(N.label){case 0:t=e.fileName,n=e.file,i=e.path,o=e.cb,s=e.progressCb,a=void 0===s?void 0:s,u=e.isTest,d=void 0!==u&&u,f=e.type,h=void 0===f?"":f,m=Z.length>1&&void 0!==Z[1]?Z[1]:{maxRetries:0},N.label=1;case 1:return N.trys.push([1,3,,4]),x=g(t),w="".concat(i,"/").concat(x),_=l.Z.getType(t),b=function(){var e=(0,r.Z)((function(){var e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,y(w,_,d,h)];case 1:return[4,v((e=t.sent()).presignedUrl,n,_,a?function(e){a({loaded:e.loaded,total:e.total,lengthComputable:!0})}:void 0)];case 2:return t.sent(),[2,{Location:e.actualUrl}]}}))}));return function(){return e.apply(this,arguments)}}(),[4,p(b,m)];case 2:return k=N.sent(),o(null,k),[2,k];case 3:throw S=N.sent(),console.error("Error in uploadFile:",S),o(S,null),S;case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();function b(e){return k.apply(this,arguments)}function k(){return k=(0,r.Z)((function(e){var t,n,r,i,o,s,a,u,l,d=arguments;return(0,c.__generator)(this,(function(c){return t=e.fileName,n=e.file,r=e.path,i=e.progressCb,o=void 0===i?void 0:i,s=e.isTest,a=void 0!==s&&s,u=e.type,l=void 0===u?"":u,[2,p((function(){return new Promise((function(e,i){_({fileName:t,file:n,path:r,cb:function(t,n){if(t)return console.error(t),void i(t);e(n)},progressCb:o,isTest:a,type:l})}))}),d.length>1&&void 0!==d[1]?d[1]:{maxRetries:0})]}))})),k.apply(this,arguments)}}},function(e){e.O(0,[4885,8534,7432,614,5675,8404,8769,3609,4898,3469,9327,8667,9774,2888,179],(function(){return t=22654,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.