index-legacy-5d0d4968.js 36 KB

12345
  1. <<<<<<<< Updated upstream:dist/assets/index-legacy-5d0d4968.js
  2. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(N){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),l=new C(r||[]);return i(a,"_invoke",{value:S(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}n.wrap=f;var p={};function v(){}function y(){}function h(){}var g={};s(g,l,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(I([])));b&&b!==r&&o.call(b,l)&&(g=b);var w=h.prototype=v.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,n){function r(i,a,l,u){var c=d(t[i],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):n.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=L(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function L(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return y.prototype=h,i(w,"constructor",{value:h,configurable:!0}),i(h,"constructor",{value:y,configurable:!0}),y.displayName=s(h,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},x(k.prototype),s(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new k(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,c,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},n}function n(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(c){return void n(c)}l.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,u,"next",e)}function u(e){n(a,o,i,l,u,"throw",e)}l(void 0)}))}}function o(t,n,r){return(n=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(s){c=!0,o=s}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy-1797056f.js","./index-legacy-ccbf2477.js","./index.module-legacy-4d06d08a.js","./index-legacy-f62abc4d.js","./index-legacy-ec312598.js","./index-legacy-bd9b05ef.js","./index-legacy-8de5cade.js"],(function(e,n){"use strict";var a,l,u,c,s,f,d,p,v,y,h,g,m,b,w,x,k,S,L,E,j,C,I,O,N,A,P,T,_,R,V,D,G,B,U,q,z,F,J,K,M,Y,H,$,Q;return{setters:[function(e){a=e.c,l=e.d,u=e.a7,c=e.X,s=e.a,f=e.a8,d=e.t,p=e.k,v=e.a9,y=e.n,h=e.r,g=e.aa,m=e.e,b=e.ab,w=e.w,x=e.ac,k=e.z,S=e.ad,L=e.ae,E=e.h,j=e.g,C=e.v,I=e.x,O=e.y,N=e.af,A=e.V,P=e.A,T=e.F,_=e.C,R=e.q,V=e.U,D=e.S,G=e.a0,B=e.a1,U=e.D,q=e.E},function(e){z=e.M},function(e){F=e.s},function(e){J=e.u,K=e.a},function(e){M=e.g,Y=e.s},function(e){H=e.c,$=e.C},function(e){Q=e.I}],execute:function(){var W=i(a("collapse"),2),X=W[0],Z=W[1],ee=Symbol(X),te={border:d,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var ne=l({name:X,props:te,emits:["change","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,i=u(ee),a=i.linkChildren,l=i.children,d=function(e){n("change",e),n("update:modelValue",e)};return c({toggleAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.accordion){"boolean"==typeof t&&(t={expanded:t});var n=t,r=n.expanded,o=n.skipDisabled,i=l.filter((function(e){return e.disabled&&o?e.expanded.value:null!=r?r:!e.expanded.value})).map((function(e){return e.itemName.value}));d(i)}}}),a({toggle:function(t,n){var r=e.accordion,o=e.modelValue;d(r?t===o?"":t:n?o.concat(t):o.filter((function(e){return e!==t})))},isExpanded:function(t){var n=e.accordion,r=e.modelValue;return!!function(e,t){return t&&Array.isArray(e)?(console.error('[Vant] Collapse: "v-model" should not be Array in accordion mode'),!1):!(!t&&!Array.isArray(e)&&(console.error('[Vant] Collapse: "v-model" should be Array in non-accordion mode'),1))}(r,n)&&(n?r===t:r.includes(t))}}),function(){var t;return s("div",{class:[Z(),o({},f,e.border)]},[null==(t=r.default)?void 0:t.call(r)])}}}),re=p(ne),oe=i(a("collapse-item"),2),ie=oe[0],ae=oe[1],le=["icon","title","value","label","right-icon"],ue=v({},H,{name:y,isLink:d,disabled:Boolean,readonly:Boolean,lazyRender:d}),ce=l({name:ie,props:ue,setup:function(e,t){var n=t.slots,r=h(),o=h(),i=g(ee),a=i.parent,l=i.index;if(a){var u=m((function(){var t;return null!=(t=e.name)?t:l.value})),f=m((function(){return a.isExpanded(u.value)})),d=h(f.value),p=b((function(){return d.value||!e.lazyRender})),v=function(){f.value?r.value&&(r.value.style.height=""):d.value=!1};w(f,(function(e,t){null!==t&&(e&&(d.value=!0),(e?k:S)((function(){if(o.value&&r.value){var t=o.value.offsetHeight;if(t){var n="".concat(t,"px");r.value.style.height=e?"0":n,x((function(){r.value&&(r.value.style.height=e?n:"0")}))}else v()}})))}));var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!f.value;a.toggle(u.value,e)},I=function(){e.disabled||e.readonly||y()},O=p((function(){var e;return j(s("div",{ref:r,class:ae("wrapper"),onTransitionend:v},[s("div",{ref:o,class:ae("content")},[null==(e=n.default)?void 0:e.call(n)])]),[[C,d.value]])}));return c({toggle:y,expanded:f,itemName:u}),function(){return s("div",{class:[ae({border:l.value&&e.border})]},[(t=e.border,r=e.disabled,o=e.readonly,i=L(e,Object.keys(H)),o&&(i.isLink=!1),(r||o)&&(i.clickable=!1),s($,E({role:"button",class:ae("title",{disabled:r,expanded:f.value,borderless:!t}),"aria-expanded":String(f.value),onClick:I},i),L(n,le))),O()]);var t,r,o,i}}console.error("[Vant] <CollapseItem> must be a child component of <Collapse>.")}}),se=p(ce),fe=""+new URL("library-1-96754f77.png",n.meta.url).href,de=""+new URL("library-2-18c7f885.png",n.meta.url).href,pe=""+new URL("library-3-784f5dd5.png",n.meta.url).href,ve=l({name:"knowledge-guide",emits:["close"],setup:function(e,t){t.emit;var n=I({box:{},show:!1,steps:[{ele:"",eleRect:{},img:M("knowledge1.png"),handStyle:{top:"1.3rem",left:"1.5rem"},imgStyle:{top:"1.9rem"},btnsStyle:{top:"4.5rem",left:"1rem"}},{ele:"",eleRect:{},img:M("knowledge2.png"),handStyle:{top:"1.3rem",left:"1.5rem"},imgStyle:{top:"1.9rem",left:"-1.5rem"},btnsStyle:{top:"4.5rem"},boxStyle:{transform:"scale(1)"}},{ele:"",img:M("knowledge3.png"),handStyle:{top:"4.1rem",left:"3.6rem"},imgStyle:{top:"4.8rem",left:"1.2rem"},btnsStyle:{top:"7.5rem",left:"1.3rem"},boxStyle:{transform:"scale(1)"}}],step:0}),r=h(!1),o=function(){var e=document.getElementById("knowledge-".concat(n.step));if(e){var t=e.getBoundingClientRect();n.box={left:t.x+"px",top:t.y+"px",width:t.width+"px",height:t.height+"px"}}else a()};O((function(){var e=localStorage.getItem("guideInfo");e&&JSON.parse(e).knowledge?r.value=!1:r.value=!0,o(),window.addEventListener("resize",i)}));var i=function(){o()};N((function(){window.removeEventListener("resize",i)}));var a=function(){n.step>=3?l():(n.step=n.step+1,o())},l=function(){var e=JSON.parse(localStorage.getItem("guideInfo")||"{}");e?e.knowledge=!0:e={knowledge:!0},localStorage.setItem("guideInfo",JSON.stringify(e)),r.value=!1};return function(){return s(A,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Y.guidePopup],show:r.value,"onUpdate:show":function(e){return r.value=e}},{default:function(){return[s("div",{class:Y.content,onClick:function(){return a()}},[n.step!=n.steps.length-1&&s("div",{class:Y.backBtn,onClick:function(e){e.stopPropagation(),l()}},[P("跳过")]),s("div",{class:Y.box,style:n.box,id:"modeType-".concat(n.step)},[n.steps.map((function(e,t){var r,i;return s("div",{onClick:function(e){return e.stopPropagation()},class:Y.item,style:{display:t===n.step?"":"none",left:"".concat(null===(r=e.eleRect)||void 0===r?void 0:r.left,"px"),top:"".concat(null===(i=e.eleRect)||void 0===i?void 0:i.top,"px")}},[s("img",{class:Y.img,style:e.imgStyle,src:e.img},null),s("img",{class:Y.iconHead,style:e.handStyle,src:M("indexDot.png")},null),s("div",{class:Y.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(T,null,[s(_,{class:Y.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){n.step=0,o()}},{default:function(){return[P("再看一遍")]}}),s(_,{class:[Y.btn,Y.endBtn],round:!0,type:"primary",onClick:function(){return l()}},{default:function(){return[P("完成")]}})]):s(_,{class:Y.btn,round:!0,type:"primary",onClick:function(){return a()}},{default:function(){return[P("下一步 ("),n.step+1,P("/"),n.steps.length,P(")")]}})])])}))])])]}})}}});e("default",l({name:"knowledge-ligrary",setup:function(){var e=R(),n=V(),o=h(),i=I({cid:n.query.cid,list:[],activeNames:sessionStorage.getItem("knowledge-ligrary-key")?Number(sessionStorage.getItem("knowledge-ligrary-key")):0,background:"transparent",color:"#fff"}),a=function(){var e=r(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,U.post("/edu-app/lessonCourseware/queryStudentLessonDetail",{requestType:"form",data:{lessonCoursewareId:i.cid}});case 3:n=e.sent,r=n.data,i.list=r,o.value=!0,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),l=function(e){return e%3==1?fe:e%3==2?de:e%3==0?pe:void 0},u=function(){var n=r(t().mark((function n(r){var o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,U.get("/edu-app/studentUnitExamination/checkKnowledgePointIds",{params:{lessonCoursewareId:i.cid}});case 3:if(o=t.sent,o.data){t.next=8;break}return setTimeout((function(){q("暂无题目")}),100),t.abrupt("return");case 8:"TEST"===r?e.push({path:"/examination-mode",query:{lessonCoursewareId:i.cid}}):e.push({path:"/practice-mode",query:{lessonCoursewareId:i.cid}}),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),n,null,[[0,11]])})));return function(e){return n.apply(this,arguments)}}();return O((function(){J(document,"scroll",(function(){K().y.value>52?(i.background="#fff",i.color="#323333"):(i.background="transparent",i.color="#fff")})),a()})),function(){var t,n;return s("div",{class:F.knowledgeLibrary},[s(z,{position:"top"},{default:function(){return[s(D,{border:!1,background:i.background,color:i.color},{right:function(){return s("div",{class:[F.wroingBtn],onClick:function(){return e.push("/wroing-book")}},[s("i",{class:F.iconWroing},null),P("错题本")])}})]}}),s("div",{class:F.btnGroup},[s("div",{id:"knowledge-0",class:F.btnPractice,onClick:function(){return u("PRACTICE")}},null),s("div",{id:"knowledge-1",class:F.btnTest,onClick:function(){return u("TEST")}},null)]),s("div",{class:[F.containerSection,F.librarySection]},[s(re,{modelValue:i.activeNames,"onUpdate:modelValue":function(e){return i.activeNames=e},accordion:!0,border:!1,onChange:function(e){sessionStorage.setItem("knowledge-ligrary-key",e)}},(n=t=i.list.map((function(t,n){return s(se,{title:t.lessonCoursewareDetailName,name:n,value:i.activeNames===n?"收起":"展开",border:!1},{default:function(){return[t.knowledgeDetails&&t.knowledgeDetails.map((function(t,n){return s("div",{class:F.unitItem,onClick:function(){return e.push({path:"/unit-detail",query:{detailId:t.lessonCoursewareKnowledgeDetailId}})}},[s(Q,E({id:0==n?"knowledge-2":""},{class:F.unitImg,lazyLoad:!0,src:l(n)}),null),s("p",{class:F.name},[s("span",null,[t.name])])])})),t.knowledgeDetails&&t.knowledgeDetails.length<=0&&s(G,{description:"暂无章节"},null)]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!B(n)?t:{default:function(){return[t]}}))]),o.value&&s(ve,null,null)])}}}))}}}))}();
  3. ========
  4. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(N){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),l=new C(r||[]);return i(a,"_invoke",{value:S(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}n.wrap=f;var p={};function v(){}function h(){}function y(){}var g={};s(g,l,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(I([])));b&&b!==r&&o.call(b,l)&&(g=b);var w=y.prototype=v.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,n){function r(i,a,l,u){var c=d(t[i],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==e(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):n.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=L(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function L(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:h,configurable:!0}),h.displayName=s(y,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},n.awrap=function(e){return{__await:e}},x(k.prototype),s(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new k(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),s(w,c,"Generator"),s(w,l,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},n}function n(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(c){return void n(c)}l.done?t(u):Promise.resolve(u).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,u,"next",e)}function u(e){n(a,o,i,l,u,"throw",e)}l(void 0)}))}}function o(t,n,r){return(n=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(s){c=!0,o=s}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./index-legacy-d8ca04f1.js","./index-legacy-c5b52584.js","./index.module-legacy-680ba922.js","./index-legacy-fd4bf8dd.js","./index-legacy-ec312598.js","./index-legacy-cf1d5192.js","./index-legacy-d56e1bc5.js"],(function(e,n){"use strict";var a,l,u,c,s,f,d,p,v,h,y,g,m,b,w,x,k,S,L,E,j,C,I,O,N,A,P,T,_,R,V,D,G,B,U,q,z,F,J,K,M,Y,H,$,Q;return{setters:[function(e){a=e.c,l=e.d,u=e.a7,c=e.X,s=e.a,f=e.a8,d=e.t,p=e.k,v=e.a9,h=e.n,y=e.r,g=e.aa,m=e.e,b=e.ab,w=e.w,x=e.ac,k=e.z,S=e.ad,L=e.ae,E=e.h,j=e.g,C=e.v,I=e.x,O=e.y,N=e.af,A=e.V,P=e.A,T=e.F,_=e.C,R=e.q,V=e.U,D=e.S,G=e.a0,B=e.a1,U=e.D,q=e.E},function(e){z=e.M},function(e){F=e.s},function(e){J=e.u,K=e.a},function(e){M=e.g,Y=e.s},function(e){H=e.c,$=e.C},function(e){Q=e.I}],execute:function(){var W=i(a("collapse"),2),X=W[0],Z=W[1],ee=Symbol(X),te={border:d,accordion:Boolean,modelValue:{type:[String,Number,Array],default:""}};var ne=l({name:X,props:te,emits:["change","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,i=u(ee),a=i.linkChildren,l=i.children,d=function(e){n("change",e),n("update:modelValue",e)};return c({toggleAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.accordion){"boolean"==typeof t&&(t={expanded:t});var n=t,r=n.expanded,o=n.skipDisabled,i=l.filter((function(e){return e.disabled&&o?e.expanded.value:null!=r?r:!e.expanded.value})).map((function(e){return e.itemName.value}));d(i)}}}),a({toggle:function(t,n){var r=e.accordion,o=e.modelValue;d(r?t===o?"":t:n?o.concat(t):o.filter((function(e){return e!==t})))},isExpanded:function(t){var n=e.accordion,r=e.modelValue;return!!function(e,t){return t&&Array.isArray(e)?(console.error('[Vant] Collapse: "v-model" should not be Array in accordion mode'),!1):!(!t&&!Array.isArray(e)&&(console.error('[Vant] Collapse: "v-model" should be Array in non-accordion mode'),1))}(r,n)&&(n?r===t:r.includes(t))}}),function(){var t;return s("div",{class:[Z(),o({},f,e.border)]},[null==(t=r.default)?void 0:t.call(r)])}}}),re=p(ne),oe=i(a("collapse-item"),2),ie=oe[0],ae=oe[1],le=["icon","title","value","label","right-icon"],ue=v({},H,{name:h,isLink:d,disabled:Boolean,readonly:Boolean,lazyRender:d}),ce=l({name:ie,props:ue,setup:function(e,t){var n=t.slots,r=y(),o=y(),i=g(ee),a=i.parent,l=i.index;if(a){var u=m((function(){var t;return null!=(t=e.name)?t:l.value})),f=m((function(){return a.isExpanded(u.value)})),d=y(f.value),p=b((function(){return d.value||!e.lazyRender})),v=function(){f.value?r.value&&(r.value.style.height=""):d.value=!1};w(f,(function(e,t){null!==t&&(e&&(d.value=!0),(e?k:S)((function(){if(o.value&&r.value){var t=o.value.offsetHeight;if(t){var n="".concat(t,"px");r.value.style.height=e?"0":n,x((function(){r.value&&(r.value.style.height=e?n:"0")}))}else v()}})))}));var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!f.value;a.toggle(u.value,e)},I=function(){e.disabled||e.readonly||h()},O=p((function(){var e;return j(s("div",{ref:r,class:ae("wrapper"),onTransitionend:v},[s("div",{ref:o,class:ae("content")},[null==(e=n.default)?void 0:e.call(n)])]),[[C,d.value]])}));return c({toggle:h,expanded:f,itemName:u}),function(){return s("div",{class:[ae({border:l.value&&e.border})]},[(t=e.border,r=e.disabled,o=e.readonly,i=L(e,Object.keys(H)),o&&(i.isLink=!1),(r||o)&&(i.clickable=!1),s($,E({role:"button",class:ae("title",{disabled:r,expanded:f.value,borderless:!t}),"aria-expanded":String(f.value),onClick:I},i),L(n,le))),O()]);var t,r,o,i}}console.error("[Vant] <CollapseItem> must be a child component of <Collapse>.")}}),se=p(ce),fe=""+new URL("library-1-96754f77.png",n.meta.url).href,de=""+new URL("library-2-18c7f885.png",n.meta.url).href,pe=""+new URL("library-3-784f5dd5.png",n.meta.url).href,ve=l({name:"knowledge-guide",emits:["close"],setup:function(e,t){t.emit;var n=I({box:{},show:!1,steps:[{ele:"",eleRect:{},img:M("knowledge1.png"),handStyle:{top:"1.3rem",left:"1.5rem"},imgStyle:{top:"1.9rem"},btnsStyle:{top:"4.5rem",left:"1rem"}},{ele:"",eleRect:{},img:M("knowledge2.png"),handStyle:{top:"1.3rem",left:"1.5rem"},imgStyle:{top:"1.9rem",left:"-1.5rem"},btnsStyle:{top:"4.5rem"}},{ele:"",img:M("knowledge3.png"),handStyle:{top:"4.1rem",left:"3.6rem"},imgStyle:{top:"4.8rem",left:"1.2rem"},btnsStyle:{top:"7.5rem",left:"1.3rem"}}],step:0}),r=y(!1),o=function(){var e=document.getElementById("knowledge-".concat(n.step));if(e){var t=e.getBoundingClientRect();n.box={left:t.x+"px",top:t.y+"px",width:t.width+"px",height:t.height+"px"}}else a()};O((function(){setTimeout((function(){var e=localStorage.getItem("guideInfo");e&&JSON.parse(e).knowledge?r.value=!1:r.value=!0,o()}),300),window.addEventListener("resize",i)}));var i=function(){o()};N((function(){window.removeEventListener("resize",i)}));var a=function(){n.step>=3?l():(n.step=n.step+1,o())},l=function(){var e=JSON.parse(localStorage.getItem("guideInfo")||"{}");e?e.knowledge=!0:e={knowledge:!0},localStorage.setItem("guideInfo",JSON.stringify(e)),r.value=!1};return function(){return s(A,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Y.guidePopup],show:r.value,"onUpdate:show":function(e){return r.value=e}},{default:function(){return[s("div",{class:Y.content,onClick:function(){return a()}},[s("div",{class:[Y.backBtn,Y.right],onClick:function(e){e.stopPropagation(),l()}},[P("跳过")]),s("div",{class:Y.box,style:n.box,id:"modeType-".concat(n.step)},[n.steps.map((function(e,t){var r,i;return s("div",{onClick:function(e){return e.stopPropagation()},class:Y.item,style:{display:t===n.step?"":"none",left:"".concat(null===(r=e.eleRect)||void 0===r?void 0:r.left,"px"),top:"".concat(null===(i=e.eleRect)||void 0===i?void 0:i.top,"px")}},[s("img",{class:Y.img,style:e.imgStyle,src:e.img},null),s("img",{class:Y.iconHead,style:e.handStyle,src:M("indexDot.png")},null),s("div",{class:Y.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(T,null,[s(_,{class:Y.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){n.step=0,o()}},{default:function(){return[P("再看一遍")]}}),s(_,{class:[Y.btn,Y.endBtn],round:!0,type:"primary",onClick:function(){return l()}},{default:function(){return[P("完成")]}})]):s(_,{class:Y.btn,round:!0,type:"primary",onClick:function(){return a()}},{default:function(){return[P("下一步 ("),n.step+1,P("/"),n.steps.length,P(")")]}})])])}))])])]}})}}});e("default",l({name:"knowledge-ligrary",setup:function(){var e=R(),n=V(),o=I({cid:n.query.cid,list:[],activeNames:sessionStorage.getItem("knowledge-ligrary-key")?Number(sessionStorage.getItem("knowledge-ligrary-key")):0,background:"transparent",color:"#fff"}),i=function(){var e=r(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,U.post("/edu-app/lessonCourseware/queryStudentLessonDetail",{requestType:"form",data:{lessonCoursewareId:o.cid}});case 3:n=e.sent,r=n.data,o.list=r,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),a=function(e){return e%3==1?fe:e%3==2?de:e%3==0?pe:void 0},l=function(){var n=r(t().mark((function n(r){var i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,U.get("/edu-app/studentUnitExamination/checkKnowledgePointIds",{params:{lessonCoursewareId:o.cid}});case 3:if(i=t.sent,i.data){t.next=8;break}return setTimeout((function(){q("暂无题目")}),100),t.abrupt("return");case 8:"TEST"===r?e.push({path:"/examination-mode",query:{lessonCoursewareId:o.cid}}):e.push({path:"/practice-mode",query:{lessonCoursewareId:o.cid}}),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),n,null,[[0,11]])})));return function(e){return n.apply(this,arguments)}}();return O((function(){J(document,"scroll",(function(){K().y.value>52?(o.background="#fff",o.color="#323333"):(o.background="transparent",o.color="#fff")})),i()})),function(){var t,n;return s("div",{class:F.knowledgeLibrary},[s(z,{position:"top"},{default:function(){return[s(D,{border:!1,background:o.background,color:o.color},{right:function(){return s("div",{class:[F.wroingBtn],onClick:function(){return e.push("/wroing-book")}},[s("i",{class:F.iconWroing},null),P("错题本")])}})]}}),s("div",{class:F.btnGroup},[s("div",{id:"knowledge-0",class:F.btnPractice,onClick:function(){return l("PRACTICE")}},null),s("div",{id:"knowledge-1",class:F.btnTest,onClick:function(){return l("TEST")}},null)]),s("div",{class:[F.containerSection,F.librarySection]},[s(re,{modelValue:o.activeNames,"onUpdate:modelValue":function(e){return o.activeNames=e},accordion:!0,border:!1,onChange:function(e){sessionStorage.setItem("knowledge-ligrary-key",e)}},(n=t=o.list.map((function(t,n){return s(se,{title:t.lessonCoursewareDetailName,name:n,value:o.activeNames===n?"收起":"展开",border:!1},{default:function(){return[t.knowledgeDetails&&t.knowledgeDetails.map((function(t,n){return s("div",{class:F.unitItem,onClick:function(){return e.push({path:"/unit-detail",query:{detailId:t.lessonCoursewareKnowledgeDetailId}})}},[s(Q,E({id:0==n?"knowledge-2":""},{class:F.unitImg,lazyLoad:!0,src:a(n)}),null),s("p",{class:F.name},[s("span",null,[t.name])])])})),t.knowledgeDetails&&t.knowledgeDetails.length<=0&&s(G,{description:"暂无章节"},null)]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!B(n)?t:{default:function(){return[t]}}))]),s(ve,null,null)])}}}))}}}))}();
  5. >>>>>>>> Stashed changes:dist/assets/index-legacy-8899d6e2.js