/*!
* Version:1.0.0
* 优考试-更智能的在线考试系统( https://www.baisikao.com )
* OnlineExamMaker (http://www.onlineexammaker.com)
* LAN Exam Maker (http://www.smlme.com)
* Copyright (c) 2015-2025 GzHaozhi CO. LTD. All Rights Reserved.
*/
webpackJsonp([1],[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){return g++},t.logError=function(){for(var e=[],t=0;t=5?999==h.DecodedParams.audio_play_times?999:5:h.DecodedParams.audio_play_times,j=d.ver,U=h.DecodedParams.hasOwnProperty("open_watermark")&&1==h.DecodedParams.open_watermark,H=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("pc_video_record")&&1==h.DecodedParams.pc_video_record,Q=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("mobile_video_record")&&1==h.DecodedParams.mobile_video_record,z=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("screenRecord")&&1==h.DecodedParams.screenRecord,q=h.DecodedParams&&h.DecodedParams.hasOwnProperty("need_signature")&&1==h.DecodedParams.need_signature,G=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("need_take_photo")&&1==h.DecodedParams.need_take_photo,W=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("advanced_video")&&1==h.DecodedParams.advanced_video.advanced_pc_video||H,V=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("advanced_video")&&1==h.DecodedParams.advanced_video.advanced_mobile_video||Q,X=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("advanced_video")&&1==h.DecodedParams.advanced_video.advanced_screen_video||z,Y=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("webRTCPermission")&&1==h.DecodedParams.webRTCPermission.webrtc_pc_video,K=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("webRTCPermission")&&1==h.DecodedParams.webRTCPermission.webrtc_mobile_video,$=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("webRTCPermission")&&1==h.DecodedParams.webRTCPermission.webrtc_screen_video,J=5!=p&&(G||W||Y)&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("take_photo_count")&&h.DecodedParams.take_photo_count>0,Z=5!=p&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("open_take_photo")&&1==h.DecodedParams.open_take_photo&&h.DecodedParams.hasOwnProperty("take_photo_count")&&h.DecodedParams.take_photo_count>0,ee=J||Z,te=h.DecodedParams.hasOwnProperty("force_switching_part")&&1==h.DecodedParams.force_switching_part,ne=M&&R&&h.DecodedParams.hasOwnProperty("skip_face_check")&&1==h.DecodedParams.skip_face_check,ie=h&&1==h.is_strict,re=5!=p&&h.DecodedParams.hasOwnProperty("mobile_video_env_check")&&1==h.DecodedParams.mobile_video_env_check,ae=h.DecodedParams.hasOwnProperty("new_serious_process")&&1==h.DecodedParams.new_serious_process;window.localStorage.getItem("lower_"+h.eid)&&(M=!1);var oe=G||W||R||L||M||ee||Y,se=I||V||K,ce=G||W||M||ee||Y,le=$||z||X,ue=!1,de=ie?h.DecodedParams.hasOwnProperty("exam_devices")?h.DecodedParams.exam_devices:1:3;null==h.DecodedParams&&(h.DecodedParams={}),[2,3].indexOf(p)>-1&&(l.submited=!0,g.wrongs||(g.wrongs=[]),g.rights||(g.rights=[]),g.undo||(g.undo=[]),l.submitedState=g),h.img.indexOf("://")<0&&(h.img="https://www.baisikao.com"+h.img);var he=window.cdnBase?window.cdnBase:"/",fe=null,pe=null,ge=null,me=null;2!=h.testtype&&3!=h.testtype||(fe=function(){var e=new Audio;return e.src=h.DecodedParams.hasOwnProperty("advance_setting")&&h.DecodedParams.advance_setting.hasOwnProperty("music_theme")&&""!=h.DecodedParams.advance_setting.music_theme?h.DecodedParams.advance_setting.music_theme:he+"static/images/advance-bg-music.mp3",e.load(),e}(),pe=function(){var e=new Audio;return e.src=he+"static/images/noMore.mp3",e.load(),e}(),ge=function(){var e=new Audio;return e.src=h.DecodedParams.hasOwnProperty("advance_setting")&&h.DecodedParams.advance_setting.hasOwnProperty("wrong_music_theme")&&""!=h.DecodedParams.advance_setting.wrong_music_theme?h.DecodedParams.advance_setting.wrong_music_theme:he+"static/images/gdown.wav",e.load(),e}(),me=function(){var e=new Audio;return e.src=h.DecodedParams.hasOwnProperty("advance_setting")&&h.DecodedParams.advance_setting.hasOwnProperty("right_music_theme")&&""!=h.DecodedParams.advance_setting.right_music_theme?h.DecodedParams.advance_setting.right_music_theme:he+"static/images/gon.wav",e.load(),e}());var ve="en-gb"==x?"en-gb":"zh-cn",Ae=!1;if(h.DecodedParams.hasOwnProperty("lang_setting")&&"0"!=h.DecodedParams.lang_setting&&("1"==h.DecodedParams.lang_setting?(ve=localStorage.getItem("yksLang"+h.eid)?localStorage.getItem("yksLang"+h.eid):"en-gb"==x?"en-gb":"zh-cn",Ae=!0):ve=h.DecodedParams.lang_setting?h.DecodedParams.lang_setting:"en-gb"==x?"en-gb":"zh-cn"),h.DecodedParams.hasOwnProperty("lang_switch_setting")&&1==h.DecodedParams.lang_switch_setting){Ae=!0;var ye=localStorage.getItem("yksLang"+h.eid);ye&&(ve=ye)}var be="static/images/before-tips-bg.png";"red"==h.theme&&(be="static/images/before-tips-bg-red.png"),be=he+be;var xe=null,we=(xe="zh-cn"==x?[{key:"zh-cn",name:"简体中文"},{key:"zh-tw",name:"繁體中文"},{key:"en-gb",name:"English"},{key:"es-es",name:"Española"},{key:"fr-fr",name:"Français"},{key:"no-no",name:"Norwegian"}]:[{key:"en-gb",name:"English"},{key:"zh-cn",name:"简体中文"},{key:"zh-tw",name:"繁體中文"},{key:"es-es",name:"Española"},{key:"fr-fr",name:"Français"},{key:"no-no",name:"Norwegian"}]).filter(function(e){return e.key==ve})[0].name,_e="s";h.DecodedParams.hasOwnProperty("init_font_size")&&1==h.DecodedParams.init_font_size?_e="m":h.DecodedParams.hasOwnProperty("init_font_size")&&2==h.DecodedParams.init_font_size&&(_e="b");var Se=h.DecodedParams.hasOwnProperty("hide_question_score")&&h.DecodedParams.hide_question_score,Te=h.DecodedParams.hasOwnProperty("media_allow_pause")&&!h.DecodedParams.media_allow_pause,Ce=h.DecodedParams.hasOwnProperty("open_calculator")&&h.DecodedParams.open_calculator;function ke(e){var t=window.YKSLang;return t.hasOwnProperty(e)?t[e]:e}function Oe(){if(0!=l.thistid)return l.thistid;var e=c.get(s.format("tp{0}",h.eid));return e?(l.thistid=s.base64Decode(e),l.thistid):0}var Ee,Ie,De,Me=0;function Be(e,t,n){var i={eid:e};n&&(i.login="1"),o("/do/gettime",{method:"get",data:i,needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.date):n.hasOwnProperty("data")?t(!1,n.data):t(!1,n.error):t(!1,n)})}function Pe(e){return s.imgSuitableForLAN(e,v,T.filedomain)}function Re(e){o("http://localhost:40360/exam/startup",{needProgress:!1,needOrigin:!0,dataType:"jsonp",method:"GET",timeout:3e3},function(t,n){e(t,n)})}var Le={getCodinRecode:function(){return this.data===undefined&&(this.data=[]),this.data},setCodinRecode:function(e){this.data=e}},Fe={getTaskList:function(){return this.list===undefined&&(this.list=[]),this.list},setTaskList:function(e){this.list=e},pushList:function(e){this.list===undefined&&(this.list=[]),this.list.push(e)},"delete":function(e){this.list!==undefined&&(this.list=this.list.filter(function(t){return!e.includes(t)}))}};v||60013==j||(window.location.href=window.location.protocol+"//"+window.location.host+"/uhome"),t.exports=((r={examDetails:h,defaultDomain:w,error:S,getCollectionDetails:function(e){if(!b)return o("/do/collection",{data:{eid:h.eid}},function(t,n){t?"ok"==n.status?(b=function(e){for(var t=0;t0?JSON.parse(i):{}).hasOwnProperty("type"))n.param=i;else if(""==s.trim(n.field_default_value)&&8!=n.fid)n.param={type:"text",param:i};else{8==n.fid&&(n.field_default_value=ke("man")+","+ke("woman"));var r=n.field_default_value.split(",");r=r.map(function(e,t){return{id:s.format("fromold{0}",t),label:e}}),n.param={type:"select",param:{label:n.field_label,child:null,items:{np:r}}}}n.value=""}return e}(n.data),e(!0,b)):e(!1,n.error):e(!1,n||"networkException")});e(!0,b)},saveFieldsValue:function(e,t,n){o("/do/collection",{method:"post",data:{values:e,code:t,eid:h.eid}},function(e,t){e?"ok"==t.status?n(!0,""):n(!1,t.error):n(!1,t||"networkException")})},startExam:function(t){var n=Math.round(1e4*Math.random());if(1!=p){var i=l.lanFinger,r="",a=window.location.href.split("/");a.length>=5&&a[4].indexOf(".html")<0&&a[4]!=T.eidstr&&(r=a[4]),o("/do/exam/start?t="+n,{data:{eid:h.eid,fingerid:i,startstatus:r}},function(n,i){try{if(n)if("ok"==i.status){var r=5==p?"preview":2==p||3==p?l.submitedState.tid:i.tid,a=u.rc4Decript(i.questions,"yrkcs4"+r),o=JSON.parse(s.base64Decode(a));t(!0,o,i.name,i.wecahtimg,i.examtime,g,i.tid)}else t(!1,i.error,i);else t(!1,i,i)}catch(e){alert("start exam failed:"+e.message)}})}else if(T.sameTakens&&1==T.sameTakens.checkSameTakens){var c={msg:"concurrent-exceed",waiting:T.sameTakens.waiting,concurrent:T.sameTakens.concurrent};try{t(!1,c,"")}catch(e){alert("start exam failed:"+e.message)}}else try{t(!0,g.questions,g.name,"","",g,g.tid)}catch(e){alert("start exam failed:"+e.message)}},brandInfo:f,getGroupLoginInfo:function(e){o("/do/group",{data:{eid:h.eid}},function(t,n){t?"ok"==n.status?(C=n.data.free,e(!0,n.data)):e(!1,n.error):e(!1,n||"networkException")})},login:function(e,t){e.eid=h.eid,o("/do/group",{method:"post",data:e},function(e,n){e?"ok"==n.status?(C=n.data.free,t(!0,n.data)):t(!1,n.error):t(!1,n||"networkException")})},logined:!1,loadQuestions:function(e,t,n){o("/do/exam/questions",{method:"post",data:{qids:e.join(","),eid:h.eid},needProgress:n||!1},function(e,n){if(e)if("ok"==n.status){var i=5==p?"0":2==p||3==p?l.submitedState.tid:Oe(),r=u.rc4Decript(n.data,"yrkcs4"+i),a=JSON.parse(s.base64Decode(r));t(!0,a,i)}else t(!1,n.error);else t(!1,n)})},isResume:function(){return 1==p&&c.get(s.format("tp{0}",h.eid))!==undefined},isViewResult:function(){return 2==p||3==p},adminViewResult:function(){return 3==p},state:g,isDoingExam:!1,checkLicense:function(e,t){o("/do/license",{method:"post",data:{license:e,eid:h.eid}},function(e,n){e?"ok"==n.status?t(!0,""):t(!1,n.error):t(!1,n||"networkException")})},tid:Oe,getFlashMsg:function(){if(""!=m.msg){var e={msg:m.msg,type:m.type};return m.msg="",m.type=0,e}return m},getBackgroundImage:function(){return s.isMobile()&&h.DecodedParams&&h.DecodedParams.hasOwnProperty("mobile_bg")&&""!=h.DecodedParams.mobile_bg?Pe(h.DecodedParams.mobile_bg):h.DecodedParams&&h.DecodedParams.hasOwnProperty("bg")?Pe(h.DecodedParams.bg):""},denyLogin:function(e,t){o("/do/group/deny",{method:"post",data:{tyte:e||0,eid:h.eid}},function(e,n){e?"ok"==n.status?t(!0):t(!1,n.error):t(!1,n)})},studentInfo:void 0,collectInfo:void 0,loadStudentInfo:function(e){o("/do/exam/stuinfo",{method:"get",data:{eid:h.eid},needProgress:!1},function(t,n){t?"ok"==n.status?e(!0,n.info):e(!1,n.error):e(!1,n)})},loadCollectInfo:function(e){o("/do/exam/collectinfo",{method:"get",data:{eid:h.eid},needProgress:!1},function(t,n){t?"ok"==n.status?e(!0,n.info):e(!1,n.error):e(!1,n)})},paySetting:h.DecodedParams&&h.DecodedParams.pay_setting?h.DecodedParams.pay_setting:{},paid:!1,checkPaid:function(e,t){o("/do/checkpaid",{method:"post",data:{dontpay:e?"1":"0",eid:h.eid,payOpenidKey:localStorage.getItem("payOpenidKey"),orderid:T.orderid}},function(e,n){e?(Me=n.haspay,Ee=n.lasttid,Ie=n.paylocal,De=n.resulturl,C=n.free,k=n.sid,"recharge"==n.status?t(!0,"recharge",n.msg):"noOpenid"==n.status?t(!1,"noOpenid",n.msg):"diffOpenid"==n.status?t(!1,"diffOpenid",n.msg):"ok"===n.status?t(!0,"",n.msg):t(!1,"",n.msg)):t(!1,"")})},isHasPay:function(){return Me},GetLastTid:function(){return Ee},GetPayLocal:function(){return Ie},GetResultURL:function(){return De},checkIsFreeGroup:function(e,t){e.eid=h.eid,o("/do/checkpaid/isfree",{method:"post",data:e},function(e,n){e?"ok"==n.status?t(!0,n.data):t(!1,n.error):t(!1,n)})},bindWechat:function(e,t){o("/do/bindwechat",{method:"post",data:{eid:h.eid,state:JSON.stringify(e)},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.data):t(!1,n.error,n):t(!1,n)})},getEssayFileUploadToken:function(e,t){o("/do/exam/getEssayFileUploadToken",{method:"post",data:{eid:h.eid,state:JSON.stringify(e)},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},getManualCheckUploadToken:function(e,t,n){o("/doexamapi/manualCheckUpload/token",{method:"post",data:{eid:e,state:JSON.stringify(t)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t):n(!1,t.error,t):n(!1,t)})},applyForManualCheck:function(e){o("/doexamapi/manualCheck/applyForManualCheck",{method:"post",data:{eid:h.eid},needProgress:!1},function(t,n){t?"ok"==n.status?e(!0,n):e(!1,n.error,n):e(!1,n)})},setManualCheckIdCardUpload:function(e,t){o("/doexamapi/manualCheck/uploadManualCheckIdCard",{method:"post",data:{sid:e.sid,url:e.url,eid:e.eid,mcid:e.mcid},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},getSignatureexamToken:function(e,t){o("/doexamapi/signatureexam/token",{method:"post",data:{eid:h.eid,state:JSON.stringify(e)},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},addFaceRecord:function(e,t){o("/do/exam/addfacerecord",{method:"post",data:{eid:h.eid,tid:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},makeUpRandom:function(e){o("/do/makeuprandom",{method:"post",data:{eid:h.eid}},function(t,n){t?"ok"==n.status?e(!0,n.msg,n.quesAlias):e(!1,n.error):e(!1,n)})},cdnBase:he,uploadCameraImageToServer:function(e,t,n){o("/do/exam/camerapicture",{method:"post",data:{eid:h.eid,imagedata:e,type:t},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.left):n(!1,t.error):n(!1,t)})},needFaceVerify:function(){return!(!R&&!L)&&c.get(s.format("fv{0}",h.eid))===undefined},passFaceVerify:!1,action:p,audiobg:fe,nomore:pe,gOn:me,gDown:ge,isOnline:v,testType:A,edition:x,startRetrain:function(e,t){o("/re/start",{method:"get",data:{sidStr:h.DecodedParams.sid_str,num:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.questions,n.total):t(!1,n.error):t(!1,n)})},loadRetrainQuestions:function(e,t,n){o("/re/loadquestion",{method:"post",data:{sidStr:h.DecodedParams.sid_str,qids:e.join(",")},needProgress:n||!1},function(e,n){e?"ok"==n.status?t(!0,n.data):t(!1,n.error):t(!1,n)})},saveRetrainQuesStatus:function(e,t){o("/re/saveretrainquesstatus",{method:"post",data:{sidStr:h.DecodedParams.sid_str,state:JSON.stringify(e)},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.data):t(!1,n.error,n):t(!1,n)})},checkMonitor:function(e,t,n){o("/do/exam/checkmonitor",{method:"post",data:{eid:h.eid,imglist:e,state:JSON.stringify(t)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data,t.msg,t.needWaring):n(!1,t.error):n(!1,t)})},uploadImage:function(e,t){o("/do/exam/uploadimage",{method:"post",data:{eid:h.eid,imagedata:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.url):t(!1,n.error):t(!1,n)})},getPhoneCode:function(e,t,n){o("/do/phoneverification",{method:"post",data:{eid:h.eid,phone:e,name:t},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data):n(!1,t.error):n(!1,t)})},isMiniprogram:!1,shareInfo:{name:"",img:""},lang:ve,canChangeLang:Ae,canSelect:!0,clozeBlur:0,otherParam:T,mediaLoading:!1,GetIsFreeGroup:function(){return C},GetPaySid:function(){return k},occupyScreen:O,loadStudentInfoInRetrain:function(e,t){o("/re/stuinfo",{method:"get",data:{sidStr:h.DecodedParams.sid_str?h.DecodedParams.sid_str:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.info):t(!1,n.error):t(!1,n)})},ver:j,noPaste:D,cameraEnhancements:M,beforeDoexam:B,phoneVerification:F,insufficientTime:P,getTime:Be,audioLimitTimes:N,ssdModelIsLoaded:!1,cpsStart:1,cameraIsWork:!1,cameraFirstErr:!1,getQrFileUploadToken:function(e,t,n){o("/mobile/getEssayFileUploadToken",{method:"post",data:{eid:h.eid,state:JSON.stringify(e),tid:t},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t):n(!1,t.error,t):n(!1,t)})},isQRUpload:0,mupload:function(e,t){o("/mobile/mupload",{method:"post",data:{eid:h.eid,state:JSON.stringify(e)},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},isWssaveConnected:!1,wechatAuth:function(e){o("/wechat/payWechatAuth",{method:"post",data:{eid:h.eid}},function(t,n){t?(localStorage.setItem("payOpenidKey",n.token),e(!0,n.url)):e(!1,"")})},checkPayAppidScan:function(e){o("/wechat/checkPayAppidScan",{method:"post",data:{payOpenidKey:localStorage.getItem("payOpenidKey")}},function(t,n){t&&"ok"==n.status?e(!0):e(!1)})},getTid:function(){return new Promise(function(e,t){var n=Oe();if(0==n)var i=window.setInterval(function(){0!=(n=Oe())&&(window.clearInterval(i),e(n))},500);else e(n)})},getLocalState:function(e,t,n,i,r){o("/getlocalstate",{method:"post",data:{eid:e,tid:t,localState:n,token:i},needProgress:!1},function(e,t){e?("ok"==t.status?r(!0,t.data):r(!1,t.error),r(!0,t)):r(!1,t)})},openWaterMark:U,getMediaToken:function(e,t,n){o("/doexamapi/getmediaresourceurl",{method:"post",data:{eid:h.eid,url:e,type:t},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.url):n(!1,t.error):n(!1,t)})},miniCamera:I,sock:null,miniUrl:"",imgSuitableForLAN:Pe,authoritative:L,faceRecognition:R,saveSock:null,audioDoing:!1,pcVideoRecord:H,mobileVideoRcord:Q,screenRecord:z,advancedPcVideo:W,advancedMobileVideo:V,advancedScreenVideo:X,oldAdvancedPcVideo:G,openTakeImgInfo:ee,getRoomToken:function(e){return new Promise(function(t,n){o("/do/exam/getwebrtctoken",{method:"post",data:{eid:h.eid,rtcType:e},needProgress:!1},function(e,i){e?"ok"==i.status?t(i):n(i.error):n(i)})})},getP2PRoomId:function(e){return new Promise(function(t,n){o("/do/exam/getP2PWebRtcToken",{method:"post",data:{eid:h.eid,rtcType:e},needProgress:!1},function(e,i){e?"ok"==i.status?t(i):n(i.error):n(i)})})},saveScreenRecord:function(){return new Promise(function(e,t){o("/do/exam/savepublishvedio",{method:"post",data:{eid:h.eid},needProgress:!1},function(n,i){n?"ok"==i.status?e(i):t(i.error):t(i)})})},getPushUrl:function(){return new Promise(function(e,t){o("/do/exam/getpushurl",{method:"post",data:{eid:h.eid},needProgress:!1},function(n,i){n?"ok"==i.status?e(i):t(i.error):t(i)})})},startRec:function(){return new Promise(function(e,t){o("/do/exam/startrec",{method:"post",data:{eid:h.eid},needProgress:!1},function(n,i){n?"ok"==i?e(i):t(i.error):t(i)})})},stopRec:function(){return new Promise(function(e,t){o("/do/exam/stoprec",{method:"post",data:{eid:h.eid},needProgress:!1},function(n,i){n?"ok"==i?e(i):t(i.error):t(i)})})},getStuPhotoBase64:function(){return"base64photo"},preventJump:te,skipFaceCheck:ne,openFaceRecheck:!0,needAndroidFullScreen:E,isServerFaceVerifyBeforeExam:!1,groupAction:"",resumeTid:0,getMuploadStatus:function(e){return new Promise(function(t,n){o("/do/exam/getmuploadimg",{method:"post",data:{eid:h.eid,qid:e},needProgress:!1},function(e,i){e?"ok"==i.status?t(i):n(i.error):n(i)})})},setMuploadToken:function(e){return new Promise(function(t,n){o("/do/exam/setmuploadtoken",{method:"post",data:{eid:h.eid,token:e},timeout:5e3,needProgress:!1},function(e,i){e?"ok"==i.status?t(i):n(i.error):n(i)})})},setFaceverifys:function(e,t,n,i,r){var a={};a.eid=e,a.verifyType=t,n&&(a.msgType=n),i&&(a.imagebase64=i),o("/do/exam/faceverifys",{method:"post",data:a,needProgress:!1},function(e,t){r(!!e,t)})},getAuditCheckStatus:function(e,t){var n={};n.eid=h.eid,n.state=e,o("/do/exam/getAuditCheckStatus",{method:"post",data:n,needProgress:!1},function(e,n){t(!!e,n)})},loginSfid:-1,isStrict:ie,saveExamLogs:function(e,t){o("/do/exam/saveexamlogs",{method:"post",data:{eid:h.eid,state:e.state,log_type:e.type},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},getQuesByFixData:function(e,t){o("/doexamapi/getquesbyfixdata",{method:"post",data:{eid:h.eid,tidstr:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},fixDataSubmit:function(e,t,n){o("/doexamapi/fixdatasubmit",{method:"post",data:{eid:h.eid,tidstr:e,state:JSON.stringify(t)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t):n(!1,t.error,t):n(!1,t)})},recordsNormalScreen:function(e){o("/do/exam/recordsnormalscreen",{method:"post",data:{eid:h.eid},needProgress:!1},function(t,n){t&&"ok"==n.status?e(!0,n):e(!1,n)})},isMock:y,openEnvCheckFlag:re,isOpenPhoneCamera:se,isOpenPcCamera:oe,newSeriousProcess:ae,fullscreenStartupCheck:Re,isOpenVideoCamera:ce,getsignatureSave:function(e,t){o("/doexamapi/signatureexam/save",{method:"post",data:{eid:h.eid,url:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n):t(!1,n.error,n):t(!1,n)})},needSignature:q,savecamerapictureByKey:function(e,t,n){o("/do/exam/savecamerapictureByKey",{method:"post",data:{eid:h.eid,key:e,type:t},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.left):n(!1,t.error):n(!1,t)})}}).fullscreenStartupCheck=Re,r.getWebRTCMobileStatus=function(e,t,n,i){o("/doexamapi/getwebrtcstatus",{method:"get",data:{qrStatus:e,webrtcviStatus:t,code:n},needProgress:!1},function(e,t){e&&"ok"==t.status?i(!0,t):i(!1,t)})},r.setWebRTCMobileStatus=function(e,t,n,i){o("/doexamapi/setwebrtcstatus",{method:"post",data:{qrcode:e,webrtcvicode:t,code:n},needProgress:!1},function(e,t){e&&"ok"==t.status?i(!0,t):i(!1,t)})},r.isPCWebRTCVideoMode=Y,r.pcWebRTCVideoStatus=!1,r.isMobileWebRTCVideoMode=K,r.mobileWebRTCVideoStatus=!1,r.isScreenWebRTCVideoMode=$,r.screenWebRTCVideoStatus=!1,r.homeDomain="https://"+_,r.getExecuteResult=function(e){var t=JSON.parse(JSON.stringify(e));return t.eid=h.eid,t.info=JSON.stringify(t.info),new Promise(function(e,n){o("/do/exam/codingResultApi",{method:"post",data:t,needProgress:!1},function(t,i){t&&"ok"==i.status?e(i):n(i)})})},r.isOnExamBeforeBegin=function(e){1!=h.DecodedParams.exam_before_login||!ie||re?e(!1):Be(h.eid,function(t,n){var i=0;i=t&&n>0?Number(n):Math.round((new Date).getTime()/1e3);var r=h.start_avaliable_date-i;if(r>10&&r<1800)return ue=!0,void e(!0);e(!1)})},r.hasEnvironmentCheck=!1,r.miniEnvironmentUrl="",r.environmentTid="",r.getEssayAnnotations=function(e,t,n,i){o("/doexamapi/getEssayAnnotations",{method:"post",data:{tid:e,eid:t,qid:n},needProgress:!1},function(e,t){e&&"ok"==t.status?i(!0,t):i(!1,t)})},r.codingRecord=Le,r.getNowSetting=function(){var e={};return e.eid=h.eid,new Promise(function(t,n){o("/do/getexamset",{method:"GET",data:e,needProgress:!1},function(e,i){e&&"ok"==i.status?t(i):n(i)})})},r.uploadScratchFile=function(e){return e.eid=h.eid,new Promise(function(t,n){o("/do/exam/uploadstuscratchcode",{method:"POST",data:e,needProgress:!1},function(e,i){e&&"ok"==i.status?t(i):n(i)})})},r.examBeforeBegin=ue,r.newThemeBackImg=be,r.allCodeTaskList=Fe,r.codeTaskErrorTips=["invalid","partiallycorrect","memorylimitexceeded","timelimitexceeded","outputlimitexceeded","fileerror","nonzeroexitstatus","signalled","dangeroussyscall","judgementfailed","invalidinteraction","internalerror"],r.getCodeTaskResult=function(e,t){var n=e.join(",");return new Promise(function(e,i){o("/do/exam/getruncoderesult",{method:"POST",data:{state:t+n,eid:h.eid},needProgress:!1},function(t,n){t?e(n):i(n)})})},r.saveQuesErrCorrect=function(e,t,n){return new Promise(function(i,r){o("/do/exam/addquestionfeedback",{method:"POST",data:{qid:e,content:n,reason:t,eid:h.eid}},function(e,t){e&&"ok"==t.status?i(t):r(t)})})},r.iceServers=d.iceServers,r.langList=xe,r.langName=we,r.isOpenScreenRecord=le,r.setFontSize=_e,r.hideQuesScore=Se,r.canMediaStop=Te,r.quesAliasList=[],r.strictDeviceMode=de,r.faceScanMode=1,r.openCalculator=Ce,r.getCateIdToName=function(e){return new Promise(function(t,n){o("/doexamapi/getquescatetitle",{method:"POST",data:{catids:e,eid:h.eid}},function(e,n){e&&"error"==n.status?t({status:e,resp:n.error}):t(e?{status:e,resp:n}:{status:e,resp:""})})})},r)},function(e,t,n){"use strict";var i="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},r=function(){var e=c(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e={video:{}},!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices){t.next=9;break}return t.next=4,navigator.mediaDevices.enumerateDevices().then(function(e){var t=!1,n=!0,i=!1,r=window.localStorage.getItem("camId"),a=!1,o=0,s=e,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var d=u;"videoinput"==d.kind&&o++,"videoinput"==d.kind&&r&&r==d.deviceId&&(a=!0),"videoinput"==d.kind&&-1==d.label.toLowerCase().indexOf("vcam")&&-1==d.label.indexOf("360")&&-1==d.label.toLowerCase().indexOf("virtual")&&-1==d.label.toLowerCase().indexOf("softcam")&&d.label.toLowerCase().indexOf("front")>-1?i=d.deviceId:"videoinput"==d.kind&&-1==d.label.toLowerCase().indexOf("vcam")&&-1==d.label.indexOf("360")&&-1==d.label.toLowerCase().indexOf("virtual")&&-1==d.label.toLowerCase().indexOf("softcam")?t||(t=d.deviceId):"videoinput"==d.kind&&(n=!0)}return window.camNum=o,r&&a?r:i||(t&&n?t:null)})["catch"](function(e){return console.log("camera get device id error: ",e),null});case 4:return(n=t.sent)?(e.video.deviceId=n,window.localStorage.setItem("camId",n)):e.video.facingMode="user",t.abrupt("return",e);case 9:return t.abrupt("return",e);case 10:case"end":return t.stop()}},t,this)}));return function(){return e.apply(this,arguments)}}(),a=function(){var e=c(regeneratorRuntime.mark(function t(e,n){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){t.next=5;break}return t.next=3,r();case 3:return i=t.sent,t.abrupt("return",new Promise(function(t,r){navigator.mediaDevices.getUserMedia(i).then(function(i){if("srcObject"in e?e.srcObject=i:e.src=window.URL.createObjectURL(i),e.play(),n){var r=document.getElementsByClassName("camera")[0];r&&("srcObject"in r?r.srcObject=i:r.src=window.URL.createObjectURL(i),r.play())}t()})["catch"](function(e){console.log("init error",e),r(e.name)})}));case 5:case"end":return t.stop()}},t,this)}));return function(t,n){return e.apply(this,arguments)}}(),o=function(){var e=c(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices){t.next=3;break}return t.next=3,navigator.mediaDevices.enumerateDevices().then(function(t){var n=[],i=window.localStorage.getItem("camId"),r=0;window.localStorage.setItem("camId","0");var o=t,s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l;"videoinput"==u.kind&&(n.push(u),r++,i&&"0"!=i&&u.deviceId==i&&(S=r))}n[S]?window.localStorage.setItem("camId",n[S].deviceId):n.length>0&&(S=0,window.localStorage.setItem("camId",n[S].deviceId)),S++,e&&a(e,!0)});case 3:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=c(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n="https://file.onlineexammakercdn.com","zh"!=(e="zh-cn"==e?"zh":"en")&&(n="https://file.onlineexammakercdn.com"),f.loadJsModule({innerHTML:'\n import * as monaco from "'+n+'/cdn/monaco-v2/esm/vs/editor/editor.main.js";\n import {unthemedButtonStyles, Button} from "'+n+'/cdn/monaco-v2/esm/vs/base/browser/ui/button/button.js";\n window.monaco = monaco;'}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/actionbar/actionbar.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/aria/aria.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/codicons/codicon/codicon.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/contextview/contextview.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/countBadge/countBadge.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/dialog/dialog.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/dropdown/dropdown.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/findinput/findInput.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/hover/hover.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/iconLabel/iconlabel.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/inputbox/inputBox.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/list/list.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/mouseCursor/mouseCursor.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/progressbar/progressbar.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/sash/sash.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/scrollbar/media/scrollbars.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/selectBox/selectBox.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/selectBox/selectBoxCustom.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/splitview/splitview.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/table/table.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/toggle/toggle.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/toolbar/toolbar.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/base/browser/ui/tree/media/tree.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/controller/textAreaHandler.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/decorations/decorations.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/lines/viewLines.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/margin/margin.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/minimap/minimap.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/rulers/rulers.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/selections/selections.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/viewParts/whitespace/whitespace.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/widget/media/editor.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/widget/media/diffEditor.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/browser/widget/media/diffReview.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/codelens/browser/codelensWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/colorPicker/browser/colorPicker.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/dnd/browser/dnd.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/find/browser/findOptionsWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/find/browser/findWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/folding/browser/folding.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/hover/browser/hover.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/links/browser/links.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/markdownRenderer/browser/renderedMarkdown.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/message/browser/messageController.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/parameterHints/browser/parameterHints.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/peekView/browser/media/peekViewWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/rename/browser/renameInputField.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/snippet/browser/snippetSession.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/stickyScroll/browser/stickyScroll.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/suggest/browser/media/suggest.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/standalone/browser/standalone-tokens.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/platform/actions/browser/menuEntryActionViewItem.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/platform/actionWidget/browser/actionWidget.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/platform/quickinput/browser/media/quickInput.css"}),f.loadCss({src:n+"/cdn/monaco-v2/esm/vs/platform/severityIcon/browser/media/severityIcon.css"});case 93:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}();function c(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,a){try{var o=t[r](a),s=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(s).then(function(e){i("next",e)},function(e){i("throw",e)});e(s)}("next")})}}var l=n(41),u=n(728),d=n(729),h=(n(15).log,m("fm")),f=n(44);function p(){if(0==arguments.length)return this;var e=arguments[0];e+="";for(var t=0;t-1){var i=new RegExp("http(s)?://userfile.youkaoshi.cn","gi");return e.replace(i,n)}var r=p("{0}//{1}",window.location.protocol,window.location.host);return e.replace(/\%host\%/g,r)}function b(e){var t=document.createElement("div");t.innerHTML=e;var n=t.innerText||t.textContent;return t=null,n}function x(e){var t="";try{t=katex.renderToString(e,{throwOnError:!0,displayMode:!1,macros:{$:""}})}catch(err){t="[EQUATION NOT RECOGNIZE]"}return t}function w(e,t,n,i){var r=new Image;r.src=e,r.onload=function(){var e=this.width,r=this.height,a=.2;i&&(e=t.width||295,r=t.height||413);var o=document.createElement("canvas"),s=o.getContext("2d"),c=document.createAttribute("width"),l=document.createAttribute("height");c.nodeValue=e,l.nodeValue=r,o.setAttributeNode(c),o.setAttributeNode(l),s.drawImage(this,0,0,e,r),t.quality&&t.quality<=1&&t.quality>0&&(a=t.quality);var u=o.toDataURL("image/jpeg",a);n(u)}}function _(e,t,n){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");var i=atob(e);n!=undefined&&""!=n&&(19==n.length&&(n+="0"),n&&(i=n+"-check"+i));for(var r=i.length,a=new ArrayBuffer(r),o=new Uint8Array(a),s=0;s'},closeTag:function(e,t){return"
"}},img:{openTag:function(e,t){var n=(e="string"==typeof e?e:"").match(/(\d+)x(\d+)/),i=t;if(i=i.replace(/
/gm,"\n"),n){var r=n[1];return'
"}return'
'},closeTag:function(e,t){return""},displayContent:!1},audio:{openTag:function(e,t){return p('',t)},closeTag:function(e,t){return""},displayContent:!1},video:{openTag:function(e,t){return p('',t)},closeTag:function(e,t){return""},displayContent:!1},br:{openTag:function(e,t){return"
"},closeTag:function(e,t){return""},displayContent:!1},u:{openTag:function(e,t){return""},closeTag:function(e,t){return""}},size:{openTag:function(e,t){return e=e||"",''},closeTag:function(e,t){return""}},em:{openTag:function(e,t){if(""==(e=e||""))return"";e=e.split("=")[1];parseInt(e.substr(1),10);return''},closeTag:function(e,t){return""==(e=e||"")?"":""}},url:{openTag:function(e,t){var n;return-1==(n=e?e.substr(1):t.replace(/<.*?>/g,"")).indexOf("http://")&&-1==n.indexOf("https://")&&(n="http://"+n),''},closeTag:function(e,t){return""}},youtube:{openTag:function(e,t){return p('"},displayContent:!1},font:{openTag:function(e,t){return""==(e=e||"")?"":""},closeTag:function(e,t){return""==(e=e||"")?"":""}}}),window.camNum=0;var S=0;function T(){return navigator.userAgent.indexOf("Android")>-1}function C(){if(!window.location.href)return!1;var e=window.location.href.split("/");return e.length>=6&&"takeexam"==e[3]&&"mock"==e[4]}function k(){return l.getInfo()}e.exports={format:p,isMobile:g,isSpecialBroswer:function(){var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+/),n=t&&/ QQ/i.test(e),i=t&&e.split("UCBrowser/").length>1;return n||i},isTablet:function(){return l.tablet()},trim:function(e){return e?"object"==(void 0===e?"undefined":i(e))?"":e.trim?e.trim():e.replace(/^\s+|\s+$/gm,""):""},copy:function(e,t){for(var n in e)t[n]=e[n];return t},goToElement:function(e){"number"==typeof e?g()&&document.getElementsByClassName("mobile-questions-bt")&&document.getElementsByClassName("mobile-questions-bt")[0]?document.getElementsByClassName("mobile-questions-bt")[0].scrollTop=e:document.body.scrollTop=document.documentElement.scrollTop=e:"object"==(void 0===e?"undefined":i(e))&&e.scrollIntoView&&e.scrollIntoView({behavior:"smooth",block:"end"})},isWechat:function(){var e=window.navigator.userAgent.toLowerCase();return"micromessenger"==e.match(/MicroMessenger/i)&&"wxwork"!=e.match(/wxwork/i)},base64Decode:function(e){return u.decode(e)},base64Encode:function(e){return u.encode(e)},unSupportIE:function(){var e=v(6),t=v(7);return v(5)||e||t},isIE:v,IEVersion:function(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);var r=parseFloat(RegExp.$1);return 7==r?7:8==r?8:9==r?9:10==r?10:6}return n?12:i?11:-1},addClassToHTML:function(e){var t=null;(function(e){return A.className.match(new RegExp(e,"i"))})(e)||(t=A.className.replace(/^\s+|\s+$/g,""),A.className=t+" "+e)},copyToClipboard:function(e){if(window.clipboardData&&window.clipboardData.setData)return clipboardData.setData("Text",e);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var t=document.createElement("span"),n=window.getSelection();t.innerText=e,t.style.opacity=0,document.body.appendChild(t),n.rangeCount>0&&n.removeAllRanges();var i=document.createRange();i.selectNode(t),n.addRange(i);try{return document.execCommand("copy")}catch(r){return console.warn("Copy to clipboard failed.",r),!1}finally{document.body.removeChild(t)}return!1}},getLanguage:function(){var e=navigator.language;return e||(e=navigator.browserLanguage),e},htmlspecialchars:function(e){var t="";if(0==e.length)return"";for(var n=0;n":t+=">";break;case"&":t+="&";break;case" ":" "==e.substr(n+1,1)?(t+=" ",n++):t+=" ";break;case'"':t+=""";break;case"\n":t+="
";break;default:t+=e.substr(n,1)}return t},loadJs:function(e,t){var n=window.document.getElementsByTagName("script")[0],i=window.document.createElement("script");return i.src=e,i.async=!0,n.parentNode.insertBefore(i,n),t&&"function"==typeof t&&(i.onload=t),i},bbcodeToHtml:function(e,t,n){var i=function(e){var t=new RegExp("(\\[\\/?("+["ul","ol","li","p","div","h1","h2","h3","h4","h5","h6","table","center","left","right"].join("|")+")\\])\\s*\\r?\\n","g");return e.replace(t,function(e,t){return t})}(e=function(e){var t=/(\[table\])((?:\\.|[\s\S])*?)(\[\/table\])/,n=[],i=e;if(!i)return"";for(var r=i.match(t);null!==r;)n.push(i.substring(0,r.index)),n.push(r[0].replace(new RegExp("\n","gm"),"")),i=i.substr(r.index+r[0].length),r=i.match(t);return n.push(i),n.join("")}(e)).replace(new RegExp("\n","gm"),"[br][/br]"),r=d.process({text:i,removeMisalignedTags:!1,addInLineBreaks:!1});return p("{0}//{1}",window.location.protocol,window.location.host),y(r.html,t,n)},ParamFromURL:function(e){var t=location.href;e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^]*)").exec(t);return null==n?null:n[1]},imgSuitableForLAN:y,loadCssCode:function(e){var t=document.createElement("style");t.type="text/css",t.rel="stylesheet",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)},checkFormula:function(e){for(var t=/(\${1,2})(\s)((?:\\.|[\s\S])*?)(\${1,2})/,n=[],i=e,r=i.match(t);null!==r;)n.push(i.substring(0,r.index)),n.push(x(b(r[0]))),r=(i=i.substr(r.index+r[0].length)).match(t);return n.push(i),n.join("")},getImgNaturalDimensions:function(e,t,n){var i=new Image;i.onload=function(){var r=i.width,a=i.height;n(e,t,{w:r,h:a})},i.onerror=function(i){n(e,t,{w:0,h:0})},i.src=e},toCDB:function(e){var t="";if("string"!=typeof e||""==e)return"";for(var n=0;n65280&&e.charCodeAt(n)<65375?t+=String.fromCharCode(e.charCodeAt(n)-65248):t+=String.fromCharCode(e.charCodeAt(n)):t+=String.fromCharCode(e.charCodeAt(n)-12256);return t},ifForceMobile:h,isFullScreenTrueVersion:function(){if(window.androidFullScreen)return 10001;try{if(0==Object.keys(window.external).length)var e=window.fullscreenexam.GetVersion();else e=window.external.GetVersion();return e}catch(t){return 0}},SHA1:function(e){function t(e,t){return e<>>32-t}function n(e){var t,n="";for(t=7;t>=0;t--)n+=(e>>>4*t&15).toString(16);return n}var i,r,a,o,s,c,l,u,d,h=new Array(80),f=1732584193,p=4023233417,g=2562383102,m=271733878,v=3285377520,A=(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t}(e)).length,y=new Array;for(r=0;r>>29),y.push(A<<3&4294967295),i=0;i-1},convertBase64UrlToBlob:function(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],i=atob(t[1]),r=i.length,a=new Uint8Array(r);r--;)a[r]=i.charCodeAt(r);return new Blob([a],{type:n})},photoCompress:w,imageCompress:function(e,t,n){var i=new FileReader;i.readAsDataURL(e),i.onload=function(){var e=this.result,i=0;l.ios()&&(i=function(e){var t=new DataView(e),n=0,i=t.byteLength;if(65496!=t.getUint16(0,!1))return 0;for(;n=i)return 0;var r=n+4;if(1165519206!=t.getUint32(r,!1))return 0;for(var a=r+6,o=18761==t.getUint16(a,!1),s=a+t.getUint32(a+4),c=t.getUint16(s,o),l=s+2,u=0;u0?o=t.quality:.1==t&&(o=.2);var s=document.createElement("canvas"),c=s.getContext("2d"),u=document.createAttribute("width"),d=document.createAttribute("height"),h=l.getIosVersion();(h=h?Number(h.substring(0,4)):0)<=13.4&&6==n?(u.nodeValue=r,d.nodeValue=e):(u.nodeValue=e,d.nodeValue=r),s.setAttributeNode(u),s.setAttributeNode(d),h<=13.4&&6==n?c.transform(0,1,-1,0,r,0):h<=13.4&&3==n&&c.transform(-1,0,0,-1,e,r),c.drawImage(this,0,0,e,r);var f=s.toDataURL("image/jpeg",o);i(f)}}(e,t,i,n)}},enterFullScreen:function(){try{0==Object.keys(window.external).length&&window.fullscreenexam.EnterFullscreen()}catch(e){alert(e)}},exitFullscreen:function(){if(!window.androidFullScreen)try{0==Object.keys(window.external).length&&window.fullscreenexam.ExitFullscreen()}catch(e){alert(e)}},getCameraId:r,cameraInit:a,randomString:function(e){e=e||32;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n=t.length,i="",r=0;r40960?function a(e,t,n,i,r){var o=0;w(e,{quality:.5,width:n,height:i},function(e){o++,e.length>t&&o<3?a(e,t,n,i,r):r&&r(e)},!1)}(e,40960,i,r,t):t&&t(e)}},toggleCamera:o,base64ToArrayBuffer:_,parseLink:function(e,t,n,i){return i=-1!=(i=i.replace("eid={eid}","eid="+e).replace("sid={sid}","sid="+t).replace("tid={tid}","tid="+n)).indexOf("http")?i:"http://"+i},isAndroid:T,getQueryString:m,getCountersTime:function(e){var t=undefined;if(e>-1){var n=Math.floor(e/3600),i=Math.floor(e/60)%60,r=e%60;t=n<10?"0"+n+":":n+":",t+=(i>10?"":"0")+i+":",t=(t+=(r>10?"":"0")+r.toFixed(2)+":").substring(0,t.length-4)}return t},getCameraList:function(){return new Promise(function(e,t){if(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices){var n={};navigator.mediaDevices.enumerateDevices().then(function(t){var i=t,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o;"videoinput"==s.kind&&s.deviceId&&-1==s.label.toLowerCase().indexOf("vcam")&&-1==s.label.indexOf("360")&&-1==s.label.toLowerCase().indexOf("virtual")&&-1==s.label.toLowerCase().indexOf("softcam")&&(n[s.deviceId]=s.label)}e(n)})["catch"](function(t){console.log("get media list error: ",t),e({})})}else e({})})},isLoadJs:function(e){for(var t=!1,n=document.getElementsByTagName("script"),i=0;i0&&(t=e[5].split(".")[0]),t},isMockExam:C,elCapture:function(e,t){return!!e&&(t||(t=document.createElement("canvas")),t.width=e.clientWidth,t.height=e.clientHeight,t.getContext("2d").drawImage(e,0,0,t.width,t.height),t.toDataURL("image/jpeg"))},getNowFormatDate:function(){var e=new Date,t=e.getMonth()+1,n=e.getDate();return t=t<10?"0"+t:t,n=n<10?"0"+n:n,e.getFullYear()+"-"+t+"-"+n+" "+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")},testDelay:function(){return new Promise(function(e,t){var n=0,i=Math.ceil((new Date).getTime()/1e3),r=new Image,a=0,o=setInterval(function(){++n>100&&(a=100,clearInterval(o),e(a))},100);r.src="http://www.gzhaozhi.com/images/bg_contact.jpg?t="+i,r.onload=function(){n>100||(a=n/1e4>=100?100:n/1e4,clearInterval(o),e(a))},r.onerror=function(t){n>100||(a=100,clearInterval(o),e(a))}})},formatTime:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=e%60,r=n<10?"0"+n:n,a=i<10?"0"+i:i;return t>0?(t<10?"0"+t:t)+":"+r+":"+a:r+":"+a},loadMonaco:s,filterXSS:function(e){var t={"<":"<",">":">","{":"{","}":"}"};return e.replace(/[\{\}\<\>]/g,function(e){return t[e]})},timeSleep:function(e){return new Promise(function(t){setTimeout(function(){t()},1e3*e)})},formatTimestamp:function(e){var t=new Date(1e3*e);return t.getFullYear()+"-"+String(t.getMonth()+1).padStart(2,"0")+"-"+String(t.getDate()).padStart(2,"0")+" "+String(t.getHours()).padStart(2,"0")+":"+String(t.getMinutes()).padStart(2,"0")+":"+String(t.getSeconds()).padStart(2,"0")},divideAndFormatAsPercentage:function(e,t){return parseFloat((e/t*100).toFixed(2))},getDeviceInfo:k,isLowerIOS15:function(){if(!g())return!1;var e=k();if(!e.os||!e.os||!e.os.IOS)return!1;var t=e.os.IOS.replace&&e.os.IOS.replace("_",".");return(t=Number(t))<15}}},function(e,t,n){"use strict";t.r=l,t.f=function(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;iMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},t.groupTransition=function(e,t,n){if(!e||!t)return;function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(E.extend)({},e.shape)),t}var r=function(e){var t={};return e.traverse(function(e){z(e)&&e.anid&&(t[e.anid]=e)}),t}(e);t.traverse(function(e){if(z(e)&&e.anid){var t=r[e.anid];if(t){var a=i(e);e.attr(i(t)),Object(D.h)(e,a,n,Object(I.a)(e).dataIndex)}}})},t.clipPointsByRect=function(e,t){return Object(E.map)(e,function(e){var n=e[0];n=M(n,t.x),n=B(n,t.x+t.width);var i=e[1];return i=M(i,t.y),i=B(i,t.y+t.height),[n,i]})},t.clipRectByRect=function(e,t){var n=M(e.x,t.x),i=B(e.x+e.width,t.x+t.width),r=M(e.y,t.y),a=B(e.y+e.height,t.y+t.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}},t.createIcon=function(e,t,n){var i=Object(E.extend)({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(E.defaults)(r,n),new c.a(i)):F(e.replace("path://",""),i,n,"center")},t.linePolygonIntersect=function(e,t,n,i,r){for(var a=0,o=r[r.length-1];a=-1e-6}(h))return!1;var f=e-r,p=t-a,g=G(f,p,c,l)/h;if(g<0||g>1)return!1;var m=G(f,p,u,d)/h;return!(m<0||m>1)}function G(e,t,n,i){return e*i-n*t}function W(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}L("circle",d.a),L("ellipse",h.a),L("sector",f.a),L("ring",p.a),L("polygon",g.a),L("polyline",m.a),L("rect",v.a),L("line",A.a),L("bezierCurve",y.a),L("arc",b.a)},function(e,t,n){"use strict";var i=n(10),r=n(4),a=n(14),o=i.extend({i18n:a.i18n,i18nf:a.i18nf,i18IsCn:a.iscn,r:function(e){return window.RPrefix===undefined?e:(e=window.RPrefix+e).replace("//","/")},rf:function(){for(var e=arguments[0],t=[],n=1;n0){if(e<=r)return o;if(e>=a)return s}else{if(e>=r)return o;if(e<=a)return s}else{if(e===r)return o;if(e===a)return s}return(e-r)/c*l+o},t.q=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}if(i.isString(e))return function(e){return e.replace(/^\s+|\s+$/g,"")}(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e);return null==e?NaN:+e},t.w=o,t.c=function(e){return e.sort(function(e,t){return e-t}),e},t.h=s,t.i=c,t.g=function(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),a=Math.round(n(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},t.f=function(e,t,n){if(!e[t])return 0;return l(e,n)[t]||0},t.e=l,t.b=function(e,t){var n=Math.max(s(e),s(t)),i=e+t;return n>a?i:o(i,n)},n.d(t,"a",function(){return u}),t.v=function(e){var t=2*Math.PI;return(e%t+t)%t},t.l=function(e){return e>-r&&e=-20?+e.toFixed(i<0?-i:0):e},t.r=function(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],a=n-i;return a?r+a*(e[i]-r):r},t.u=function(e){e.sort(function(e,t){return function n(e,t,i){return e.interval[i]1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return c(e)}function c(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:r-1-a;return Math.max(0,o-i)}function l(e,t){var n=i.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===n)return[];for(var r=Math.pow(10,t),a=i.map(e,function(e){return(isNaN(e)?0:e)/n*r*100}),o=100*r,s=i.map(a,function(e){return Math.floor(e)}),c=i.reduce(s,function(e,t){return e+t},0),l=i.map(a,function(e,t){return e-s[t]});cu&&(u=l[h],d=h);++s[d],l[d]=0,++c}return i.map(s,function(e){return e/r})}var u=9007199254740991;var d=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function h(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function f(e){var t=parseFloat(e);return t==e&&(0!==t||!i.isString(e)||e.indexOf("x")<=0)?t:NaN}},,function(e,t,n){var i=n(173),r=n(125),a=e.exports=n(147),o=a.Parser,s=a.Lexer;n(721),n(724),n(725),a.dom=n(82),a.env=i,a.util=n(15),a.parse=function(e,t){((t=t||{}).BEGIN||t.END)&&(t.BEGIN&&(r.BEGIN=t.BEGIN),t.END&&(r.END=t.END),s.setup());var n=new o(e).parse();return t.stringify?JSON.stringify(n):n},a.Cursor=n(279),a.isServer=i.node,a.isRegular=function(e){return e.prototype instanceof a}},,,function(e,t,n){var i=n(23);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var i=n(4),r=window.YKSLang;e.exports={i18n:function(e){var t=r;return t.hasOwnProperty(e)?t[e]:e},i18nf:function(){for(var e=arguments[0],t=[],n=1;n3){i.sort(function(e,t){return t.length-e.length}),n+="switch(str.length){";for(r=0;rs&&(l=s);var u=e.slice(c,l),d="["+(a+1)+"] "+(c>0?"..":""),h=lt.length-1&&(n=t.length-1),e.lastIndex=0;var r=function(e,t){for(var n=0,i=0,r=e.length;it)return{num:i,line:e[i],start:t-n,prev:e[i-1],next:e[i+1]};n=n+a+1}}(t.split(e),n),a=r.start,o=r.num;return(r.prev?i(r.prev,a,o-1)+"\n":"")+i(r.line,a,o,!0)+"\n"+(r.next?i(r.next,a,o+1)+"\n":"")}}();var c=/\((\?\!|\?\:|\?\=)/g;r.findSubCapture=function(e){var t=0,n=0,i=e.length,r=e.match(c);for(r=r?r.length:0;i--;){var a=e.charAt(i);0!==i&&"\\"===e.charAt(i-1)||("("===a&&t++,")"===a&&n++)}if(t!==n)throw"RegExp: "+e+"'s bracket is not marched";return t-r},r.escapeRegExp=function(e){return e.replace(/[-[\]{}()*+?.\\^$|,#\s]/g,function(e){return"\\"+e})};var l=new RegExp("&(?:(#x[0-9a-fA-F]+)|(#[0-9]+)|("+r.keys(a).join("|")+"));","gi");r.convertEntity=function(e){return(""+e).replace(l,function(e,t,n,i){var r;return r=n?parseInt(n.slice(1),10):t?parseInt(t.slice(2),16):a[i],String.fromCharCode(r)})},r.createObject=Object.create?function(e){return Object.create(e||null)}:function(){function e(){}return function(t){if(!t)return{};e.prototype=t;var n=new e;return e.prototype=null,n}}(),r.createProto=function(e,t){function n(){this.constructor=e}return n.prototype=t,e.prototype=new n},r.removeOne=function(e,t){for(var n=e.length;n--;)if(t(e[n]))return void e.splice(n,1)},r.clone=function(e){if(!e||"object"!=typeof e)return e;if(Array.isArray(e)){for(var t=[],n=0,i=e.length;nt?(clearTimeout(a),a=null,o=c,r=e.apply(n,i),n=i=null):a||(a=setTimeout(s,l)),r}},r.escape=function(){var e=/&/g,t=//g,i=/\'/g,r=/\"/g,a=/[&<>\"\']/;return function(o){return a.test(o)?o.replace(e,"&").replace(t,"<").replace(n,">").replace(i,"'").replace(r,"""):o}}(),r.cache=function(e){var t=[],n={};return{set:function(e,i){return t.length>this.max&&(n[t.shift()]=undefined),n[e]===undefined&&t.push(e),n[e]=i,i},get:function(e){return e===undefined?n:n[e]},max:e=e||1e3,len:function(){return t.length}}},r.handleEvent=function(e,t){var n,i=this;return"expression"===e.type&&(n=e.get),n?function(e){var t=this;i.$update(function(){var r=this.data;r.$event=e,r.$sender=t,!1===n(i)&&e&&e.preventDefault&&e.preventDefault(),r.$event=undefined,r.$sender=undefined})}:function(){var t=r.slice(arguments);t.unshift(e),i.$update(function(){i.$emit.apply(i,t)})}},r.once=function(e){var t=0;return function(){0==t++&&e.apply(this,arguments)}},r.fixObjStr=function(e){return 0!==e.trim().indexOf("{")?"{"+e+"}":e},r.map=function(e,t){for(var n=[],i=0,r=e.length;i/g,i=/\'/g,r=/\"/g,a=/[&<>\"\']/;return function(o){return o=function(e){return String(e===undefined||null==e?"":e)}(o),a.test(o)?o.replace(e,"&").replace(t,"<").replace(n,">").replace(i,"'").replace(r,"""):o}}(),r.simpleDiff=function(e,t){var n=e.length;if(n!==t.length)return!0;for(var i=0;i0){var a={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(a.dataType=i),t.push(a)}})}),t},t.o=Y,t.J=function(e,t,n,i){i?function(e){Z(e,!1)}(e):Y(e,t,n)},t.p=K,t.I=function(e,t,n,i){n=n||"itemStyle";for(var r=0;r<$.length;r++){var a=$[r],o=t.getModel([a,n]),s=e.ensureState(a);s.style=i?i(o):o[J[n]]()}},t.F=Z,t.y=function(e){return!(!e||!e.__highDownDispatcher)},t.n=function(e,t,n){var i=Object(a.a)(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n},t.v=function(e){var t=u[e];null==t&&l<=32&&(t=u[e]=l++);return t},t.A=ee,t.z=function(e){var t=e.type;return t===b||t===x},t.E=function(e){var t=d(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null};var i=n(185),r=n(0),a=n(22),o=n(58),s=n(5),c=n(28),l=(n(19),1),u={},d=Object(s.o)(),h=Object(s.o)(),f=0,p=1,g=2,m=["emphasis","blur","select"],v=["normal","emphasis","blur","select"],A=10,y=9,b="highlight",x="downplay",w="select",_="unselect",S="toggleSelect";function T(e){return null!=e&&"none"!==e}var C=new i.a(100);function k(e){if(Object(r.isString)(e)){var t=C.get(e);return t||(t=o.lift(e,-.1),C.put(e,t)),t}if(Object(r.isGradientObject)(e)){var n=Object(r.extend)({},e);return n.colorStops=Object(r.map)(e.colorStops,function(e){return{offset:e.offset,color:o.lift(e.color,-.1)}}),n}return e}function O(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function E(e){O(e,"emphasis",g)}function I(e){e.hoverState===g&&O(e,"normal",f)}function D(e){O(e,"blur",p)}function M(e){e.hoverState===p&&O(e,"normal",f)}function B(e){e.selected=!0}function P(e){e.selected=!1}function R(e,t,n){t(e,n)}function L(e,t,n){R(e,t,n),e.isGroup&&e.traverse(function(e){R(e,t,n)})}function F(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var a=n&&Object(r.indexOf)(n,"select")>=0,o=!1;if(e instanceof c.b){var s=d(e),l=a&&s.selectFill||s.normalFill,u=a&&s.selectStroke||s.normalStroke;if(T(l)||T(u)){var h=(i=i||{}).style||{};"inherit"===h.fill?(o=!0,i=Object(r.extend)({},i),(h=Object(r.extend)({},h)).fill=l):!T(h.fill)&&T(l)?(o=!0,i=Object(r.extend)({},i),(h=Object(r.extend)({},h)).fill=k(l)):!T(h.stroke)&&T(u)&&(o||(i=Object(r.extend)({},i),h=Object(r.extend)({},h)),h.stroke=k(u)),i.style=h}}if(i&&null==i.z2){o||(i=Object(r.extend)({},i));var f=e.z2EmphasisLift;i.z2=e.z2+(null!=f?f:A)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=Object(r.indexOf)(e.currentStates,t)>=0,a=e.style.opacity,o=i?null:function(e,t,n,i){for(var r=e.style,a={},o=0;o{confirmText||this.i18n("confirm")}'}});o.$on("confirm",function(e){o.hide(),n(e.accept),o.destroy()}),o.show()},confirm:function(e,t,n){t=t||function(){};var r=new i({$body:e,data:{title:a.brandInfo.title,"class":n,foot:' '}});r.$on("confirm",function(e){r.hide(),t(e.accept),r.destroy()}),r.show()},showDialog:function(e,t,n,o,s,c,l){n=n||function(){return!0},t=t||[],o=o===undefined||o,s=s===undefined||s,c=c!==undefined&&c;var u=function(e){if(e.length<1)return"";for(var t=[],n=0;n{2}',e[n].cls&&""!=e[n].cls?e[n].cls:"btn btn-default",e[n].value,e[n].label));return t.join(" ")},d=new i({$body:e,data:{title:a.brandInfo.title,foot:u(t),noClose:!o,needntIcon:!s,needNewIcon:c,nowTime:Math.ceil((new Date).getTime()/1e3),"class":l}});d.$on("confirm",function(e){n(e.accept)&&(d.hide(),d.destroy())}),d.show();var h={close:function(){return d.hide(),h},show:function(){return d.show(),h},destory:function(){d.destroy()},setContent:function(e){return d.$body=e,d.$update(),h},setButtons:function(e){return d.$update("foot",u(e)),h},setCallback:function(e){return n=e,h},setTitle:function(e){return d.$update("title",e),h},setNewIcon:function(e){return d.$update("needNewIcon",e),h},getContent:function(){return d.$body}};return h}}},function(e,t,n){"use strict";t.d=function(e,t){o("warn",e,t)},t.b=function(e,t){o("error",e,t)},t.a=s,t.c=function(e){throw new Error(e)};n(0);var i="[ECharts] ",r={},a="undefined"!=typeof console&&console.warn&&console.log;function o(e,t,n){if(a){if(n){if(r[t])return;r[t]=!0}console[e](i+t)}}function s(e){0}},function(e,t,n){"use strict";n.d(t,"g",function(){return d}),t.e=function(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i=2)return a;for(var h=0;hi||c.newline?(a=0,u=g,o+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(p?-p.y+h.y:0);(d=o+m)>r||c.newline?(a+=s+n,o=0,d=m,s=h.width):s=Math.max(s,h.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),"horizontal"===e?a=u+n:o=d+n)})}var d=u;i.curry(u,"vertical"),i.curry(u,"horizontal");function h(e,t,n){n=o.k(n||0);var i=t.width,s=t.height,c=Object(a.q)(e.left,i),l=Object(a.q)(e.top,s),u=Object(a.q)(e.right,i),d=Object(a.q)(e.bottom,s),h=Object(a.q)(e.width,i),f=Object(a.q)(e.height,s),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(h)&&(h=i-u-g-c),isNaN(f)&&(f=s-d-p-l),null!=m&&(isNaN(h)&&isNaN(f)&&(m>i/s?h=.8*i:f=.8*s),isNaN(h)&&(h=m*f),isNaN(f)&&(f=h/m)),isNaN(c)&&(c=i-u-h-g),isNaN(l)&&(l=s-d-f-p),e.left||e.right){case"center":c=i/2-h/2-n[3];break;case"right":c=i-h-g}switch(e.top||e.bottom){case"middle":case"center":l=s/2-f/2-n[0];break;case"bottom":l=s-f-p}c=c||0,l=l||0,isNaN(h)&&(h=i-g-c-(u||0)),isNaN(f)&&(f=s-p-l-(d||0));var v=new r.a(c+n[3],l+n[0],h,f);return v.margin=n,v}function f(e,t){return t&&e&&s(c,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}},function(e,t,n){"use strict";var i,r=n(91),a=n(4),o=n(148),s=!1,c={scoreCode:"",total:0,ranking:0},l=!1,u={skillAssessment:0,se:1,lowerCI:0,upperCI:0,isPass:0},d=[];function h(e,t,n,i){r("/do/exam/submit",{method:"post",data:{eid:n,state:JSON.stringify(e),localState:t},needProgress:!1},function(e,t){if(e)if("ok"==t.status){if(s=!0,l=!0,"{}"===JSON.stringify(t.result.answers)&&""!=t.result.answerStr){var n=o.rc4Decript(t.result.answerStr,"yrkcs4"+t.result.tid);t.result.answers=JSON.parse(a.base64Decode(n))}if(t.result&&t.result.questions&&0==t.result.questions.length&&""!=t.result.questionStr){n=o.rc4Decript(t.result.questionStr,"yrkcs4"+t.result.tid);t.result.questions=JSON.parse(a.base64Decode(n))}a.copy(t.result,c),c.wrongs||(c.wrongs=[]),c.rights||(c.rights=[]),c.undo||(c.undo=[]),i(!0,c)}else i(!1,t.error);else i(!1,t)})}function f(e,t){r("/asynSubmitCheck",{method:"post",data:{eid:e},needProgress:!1},function(e,n){e?"ok"==n.status?t(!0,n.certificateURL):t(!1,n.error):t(!1,n)})}e.exports=((i={saveDoExamState:function(e,t,n,i){r("/do/exam/savestate",{method:"post",data:{eid:n,state:JSON.stringify(e),localState:t},needProgress:!1},function(e,t){e?"ok"==t.status?i(!0,t.data,undefined,t.thisTime,t.serverSecondsTaken):i(!1,t.error,t):i(!1,t)})},wxUploadMedia:function(e,t,n){r("/do/exam/wxUploadMedia",{method:"post",data:{eid:t,state:JSON.stringify(e)},needProgress:!1},function(e,t){e&&"ok"==t.status?n(!0,t):n(!1,t)})},getAward:function(e,t,n){r("/do/exam/getAward",{method:"post",data:{eid:t,state:JSON.stringify(e)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data):n(!1,t.error,t):n(!1,t)})},getRewards:function(e,t,n){r("/do/exam/getRewards",{method:"post",data:{eid:t,state:JSON.stringify(e)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data):n(!1,t.error,t):n(!1,t)})},saveReceiveInfo:function(e,t,n){r("/saveReceiveInfo",{method:"post",data:{eid:t,state:JSON.stringify(e)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data):n(!1,t.error,t):n(!1,t)})},submit:h}).submit=h,i.submited=s,i.isSubmitViewResult=l,i.submitedState=c,i.questionsDetails={},i.getRewardAfterExam=function(e,t,n){r("/getRewardAfterExam",{method:"post",data:{eid:t,state:JSON.stringify(e)},needProgress:!1},function(e,t){e?"ok"==t.status?n(!0,t.data):n(!1,t.error,t):n(!1,t)})},i.asynSubmitCheck=f,i.asynSubmitCheck=f,i.submitAction={saNormal:1,saTimeup:2,saForceSubmit:3,saSystemSubmit:4,saCorrectToContinueFailed:5,saSwitchApplication:6,saCheatApplication:7,saInterrupt:8},i.isResultView=!1,i.lanFinger="",i.stuPhotoBase64="",i.thistid=0,i.adaptiveDetails=u,i.setAdaptiveDetails=function(e){"undefined"!=typeof e.skillAssessment&&(u.skillAssessment=e.skillAssessment),"undefined"!=typeof e.se&&(u.se=e.se),"undefined"!=typeof e.lowerCI&&(u.lowerCI=e.lowerCI),"undefined"!=typeof e.upperCI&&(u.upperCI=e.upperCI),"undefined"!=typeof e.isPass&&(u.isPass=e.isPass)},i.realAdaptiveQuestionsList=d,i.setRealAdaptiveQuestionsList=function(e){d.length=0,Array.prototype.push.apply(d,e)},i.pushRealAdaptiveQuestionsList=function(e){d.push(e)},i.getRealAdaptiveQuestionsList=function(){return d},i)},function(e,t,n){"use strict";var i=n(46),r=n(220),a=Math.min,o=Math.max,s=new r.a,c=new r.a,l=new r.a,u=new r.a,d=new r.a,h=new r.a,f=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=a(e.x,this.x),n=a(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=o(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=o(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,a=i.create();return i.translate(a,a,[-t.x,-t.y]),i.scale(a,a,[n,r]),i.translate(a,a,[e.x,e.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,a=i.x,o=i.x+i.width,s=i.y,c=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,p=t.y+t.height,g=!(ov&&(v=w,Av&&(v=_,b=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],d=i[3],h=i[4],f=i[5];return t.x=n.x*r+h,t.y=n.y*d+f,t.width=n.width*r,t.height=n.height*d,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=l.x=n.x,s.y=u.y=n.y,c.x=u.x=n.x+n.width,c.y=l.y=n.y+n.height,s.transform(i),u.transform(i),c.transform(i),l.transform(i),t.x=a(s.x,c.x,l.x,u.x),t.y=a(s.y,c.y,l.y,u.y);var p=o(s.x,c.x,l.x,u.x),g=o(s.y,c.y,l.y,u.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();t.a=f},function(e,t,n){"use strict";function i(e){return Math.sqrt(a(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.create=function(e,t){null==e&&(e=0);null==t&&(t=0);return[e,t]},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){return[e[0],e[1]]},t.set=function(e,t,n){return e[0]=t,e[1]=n,e},t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},t.scaleAndAdd=function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e},t.sub=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},t.len=i,n.d(t,"length",function(){return r}),t.lenSquare=a,n.d(t,"lengthSquare",function(){return o}),t.mul=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},t.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},t.normalize=function(e,t){var n=i(t);0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n);return e},t.distance=s,n.d(t,"dist",function(){return c}),t.distanceSquare=l,n.d(t,"distSquare",function(){return u}),t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e},t.applyTransform=function(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e};var r=i;function a(e){return e[0]*e[0]+e[1]*e[1]}var o=a;function s(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var c=s;function l(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var u=l},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(31),r=n(67),a=n(86),o=n(1050),s=n(0),c=n(58),l=n(155),u=n(136),d=n(108),h=Object(s.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.b),f={style:Object(s.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.a.style)},p=d.a.concat(["invisible","culling","z","z2","zlevel","parent"]),g=function(e){function t(t){return e.call(this,t)||this}return Object(i.a)(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?l.a:t>.2?l.c:l.d}if(e)return l.d}return l.a},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(s.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(c.lum)(e,0)0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&u.b)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,null==c?4:c)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path;if(this.hasStroke()){var s=r.lineWidth,c=r.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.b(a,s/c,e,t)))return!0}if(this.hasFill())return o.a(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=u.b,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(s.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&u.b)},t.prototype.createStyle=function(e){return Object(s.createObject)(h,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(s.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,a,o){e.prototype._applyStateObj.call(this,t,n,i,r,a,o);var c,l=!(n&&r);if(n&&n.shape?a?r?c=n.shape:(c=Object(s.extend)({},i.shape),Object(s.extend)(c,n.shape)):(c=Object(s.extend)({},r?this.shape:i.shape),Object(s.extend)(c,n.shape)):l&&(c=i.shape),c)if(a){this.shape=Object(s.extend)({},this.shape);for(var u={},d=Object(s.keys)(c),h=0;h=0;c--)o=r.merge(o,n[c],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Object(c.v)(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(a.a);Object(s.e)(d,a.a),Object(s.c)(d),o.a(d),o.b(d,function(e){var t=[];r.each(d.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=r.map(t,function(e){return Object(s.f)(e).main}),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t}),t.a=d},function(e,t,n){var i=n(168)("wks"),r=n(115),a=n(17).Symbol,o="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))}).store=i},function(e,t,n){"use strict";t.a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;Object.create},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(1),r=n(0),a=n(42),o=n(5),s=n(29),c=n(226),l=n(227),u=n(24),d=n(307),h=n(97),f=n(438),p=n(440),g=o.o();function m(e,t){return e.getName(t)||e.getId(t)}var v="__universalTransitionEnabled",A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Object(i.a)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(d.a)({count:b,reset:x}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(g(this).sourceManager=new f.a(this)).prepareSource();var i=this.getInitialData(e,n);_(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,y(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(u.d)(this),i=n?Object(u.f)(e):{},a=this.subType;s.a.hasClass(a)&&(a+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),o.f(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(u.h)(e,i,n)},t.prototype.mergeOption=function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(u.d)(this);n&&Object(u.h)(this.option,e,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(e,t);_(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,g(this).dataBeforeProcessed=a,y(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=c.a.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a=0&&n.push(a)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[m(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,a=this.option,o=a.selectedMode,s=t.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){r.isObject(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s.a.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(s.a);function y(e){var t=e.name;o.n(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return r.each(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)}),i.join(" ")}(e)||t)}function b(e){return e.model.getRawData().count()}function x(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),w}function w(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _(e,t){r.each(r.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,r.curry(S,t))})}function S(e,t){var n=T(e);return n&&n.setOutputEnd((t||this).count()),t}function T(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(A,l.a),r.mixin(A,c.a),Object(h.e)(A,s.a),t.b=A},function(e,t,n){"use strict";var i=n(0),r=n(137),a=n(51),o=n(97),s=n(5),c=n(16),l=n(307),u=n(159),d=n(6),h=(n(19),s.o()),f=Object(u.a)(),p=function(){function e(){this.group=new r.a,this.uid=a.c("viewChart"),this.renderTask=Object(l.a)({plan:v,reset:A}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&m(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&m(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){Object(d.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){h(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function g(e,t,n){e&&Object(c.y)(e)&&("emphasis"===t?c.r:c.C)(e,n)}function m(e,t,n){var r=s.u(e,t),a=t&&null!=t.highlightKey?Object(c.v)(t.highlightKey):null;null!=r?Object(i.each)(s.r(r),function(t){g(e.getItemGraphicEl(t),n,a)}):e.eachItemGraphicEl(function(e){g(e,n,a)})}function v(e){return f(e.model)}function A(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&h(r).updateMethod,c=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==c&&o[c](t,n,i,r),y[c]}o.b(p,["dispose"]),o.c(p);var y={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t.a=p},function(e,t,n){var i=n(73),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=n(137),r=n(51),a=n(97),o=function(){function e(){this.group=new i.a,this.uid=r.c("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();a.b(o),a.c(o),t.a=o},function(e,t,n){e.exports=!n(21)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports={MultipleChoice:1,MultipleResponse:2,TrueFalse:3,FillInBlank:4,Essay:5,Package:6,Uncertain:7,Sorting:8,Matching:9,Cloze:10,SelectType:[1,2,3,7],Coding:11,Classified:12}},function(e,t,n){"use strict";var i=n(42),r=n(97),a=n(1048),o=n(1049),s=n(434),c=n(435),l=n(0),u=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r0)},a.android=function(){return!a.windows()&&u("android")},a.androidPhone=function(){return a.android()&&u("mobile")},a.androidTablet=function(){return a.android()&&!u("mobile")},a.blackberry=function(){return u("blackberry")||u("bb10")||u("rim")},a.blackberryPhone=function(){return a.blackberry()&&!u("tablet")},a.blackberryTablet=function(){return a.blackberry()&&u("tablet")},a.windows=function(){return u("windows")},a.windowsPhone=function(){return a.windows()&&u("phone")},a.windowsTablet=function(){return a.windows()&&u("touch")&&!a.windowsPhone()},a.fxos=function(){return(u("(mobile")||u("(tablet"))&&u(" rv:")},a.fxosPhone=function(){return a.fxos()&&u("mobile")},a.fxosTablet=function(){return a.fxos()&&u("tablet")},a.meego=function(){return u("meego")},a.cordova=function(){return window.cordova&&"file:"===location.protocol},a.nodeWebkit=function(){return"object"===i(window.process)},a.miniprogram=function(){return u("miniprogram")},a.harmonyMobile=function(){return u("openharmony")&&u("mobile")},a.mobile=function(){return a.androidPhone()||a.androidTablet()||a.iphone()||a.ipad()||a.ipod()||a.windowsPhone()||a.blackberryPhone()||a.fxosPhone()||a.meego()||a.miniprogram()||a.harmonyMobile()},a.tablet=function(){return a.ipad()||a.androidTablet()||a.blackberryTablet()||a.windowsTablet()||a.fxosTablet()},a.desktop=function(){return!a.tablet()&&!a.mobile()},a.television=function(){for(var e=0;e1},a.landscape=function(){return window.innerHeight/window.innerWidth<1},a.getIosVersion=function(){if(!this.macos)return undefined;var e=this.getInfo().os.IOS;return e?e=e.replace(/_/g,"."):undefined},a.noConflict=function(){return window.device=r,this},a.ios()?a.ipad()?h("ios ipad tablet mobile"):a.iphone()?h("ios iphone mobile"):a.ipod()&&h("ios ipod mobile"):a.macos()?h("macos desktop"):a.android()?a.androidTablet()?h("android tablet mobile"):h("android mobile"):a.harmonyMobile()?h("harmony android mobile"):a.blackberry()?a.blackberryTablet()?h("blackberry tablet mobile"):h("blackberry mobile"):a.windows()?a.windowsTablet()?h("windows tablet mobile"):a.windowsPhone()?h("windows mobile"):a.miniprogram()?h("windows miniprogram mobile"):h("windows desktop"):a.fxos()?a.fxosTablet()?h("fxos tablet mobile"):h("fxos mobile"):a.meego()?h("meego mobile"):a.nodeWebkit()?h("node-webkit"):a.television()?h("television"):a.desktop()?h("desktop"):a.miniprogram()&&h("miniprogram mobile"),a.cordova()&&h("cordova"),a.onChangeOrientation=function(e){"function"==typeof e&&o.push(e)};var m="resize";function v(e){for(var t=0;t-1){var s=e.indexOf("NetType");n.netType=e.substr(s,e.indexOf(" ",s)-s).replace("NetType/","")}return n},a.getIcon=function(e,t){var n;switch(e){case"PC":n='';break;case"Linux":n='';break;case"Windows":n='';break;case"Android":n="";break;case"iPhone":n='';break;case"iPad":n='';break;case"Wecat":case"wechat":n='';break;case"IE":n='';break;case"Chrome":n='';break;case"Edge":n='';break;case"Firefox":n='';break;case"Safari":n='';break;default:n=e===undefined?'':e.indexOf("Mac")>-1?'':''}return n=n.replace("{0}","fa-"+t+"x")},e.exports=a},function(e,t,n){"use strict";var i=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),r=new(function(){return function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator?(r.node=!0,r.svgSupported=!0):function(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r),t.a=r},function(e,t,n){"use strict";n.d(t,"d",function(){return p}),t.a=function(e,t,n,i,o,s,c){var l,u=0===e.indexOf("empty");u&&(e=e.substr(5,1).toLowerCase()+e.substr(6));l=0===e.indexOf("image://")?r.makeImage(e.slice(8),new a.a(t,n,i,o),c?"center":"cover"):0===e.indexOf("path://")?r.makePath(e.slice(7),{},new a.a(t,n,i,o),c?"center":"cover"):new g({shape:{symbolType:e,x:t,y:n,width:i,height:o}});l.__isEmptyBrush=u,l.setColor=m,s&&l.setColor(s);return l},t.c=function(e){Object(i.isArray)(e)||(e=[+e,+e]);return[e[0]||0,e[1]||0]},t.b=function(e,t){if(null==e)return;Object(i.isArray)(e)||(e=[e,e]);return[Object(s.q)(e[0],t[0])||0,Object(s.q)(Object(i.retrieve2)(e[1],e[0]),t[1])||0]};var i=n(0),r=n(6),a=n(26),o=n(50),s=n(8),c=r.Path.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),l=r.Path.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),u=r.Path.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),c=i-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),h=Math.cos(l),f=.6*o,p=.7*o;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,2*Math.PI+l),e.bezierCurveTo(n+u-d*f,c+s+h*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-u+d*f,c+s+h*f,n-u,c+s),e.closePath()}}),d=r.Path.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),h={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:l,pin:u,arrow:d,triangle:c},f={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},p={};Object(i.each)(h,function(e,t){p[t]=new e});var g=r.Path.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=Object(o.c)(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=p[i];r||(r=p[i="rect"]),f[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function m(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}},function(e,t,n){"use strict";function i(e){var t=document.createElement("script"),n=e.src||e.path||e.href,i=e.callback;(t.async=!!e.async||!1,t.src=n,e.attrs&&a(t,e.attrs),"function"==typeof i)&&(("onload"in t?o:s)(t,i),t.onload||o(t,i));c().appendChild(t)}function r(e){var t=document.createElement("link"),n=e.href||e.path||e.src,i=e.callback;if(t.rel="stylesheet",t.href=n,e.attrs&&a(t,e.attrs),c().appendChild(t),"function"==typeof i){var r=document.createElement("img");r.onerror=function(e){i(e,t)},r.onload=function(){i(null,t)},r.src=n}}function a(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}function o(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function s(e,t){e.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(this.onreadystatechange=null,t(null,e))}}function c(){return document.head||document.getElementsByTagName("head")[0]}e.exports.loadJs=i,e.exports.loadCss=r,e.exports.loadList=function l(e,t){for(var n,a=0,o=(t=t||{}).delayScripts||!1,s=[];a=0)return;d.push(e);Object(c.isFunction)(e)&&(e={install:e});e.install(h)};var i=n(153),r=n(35),a=n(33),o=n(29),s=n(32),c=n(0),l=n(442),u=n(300),d=[],h={registerPreprocessor:i.u,registerProcessor:i.v,registerPostInit:i.s,registerPostUpdate:i.t,registerUpdateLifecycle:i.y,registerAction:i.m,registerCoordinateSystem:i.n,registerLayout:i.o,registerVisual:i.z,registerTransform:i.x,registerLoading:i.p,registerMap:i.r,registerImpl:l.b,PRIORITY:i.a,ComponentModel:o.a,ComponentView:r.a,SeriesModel:s.b,ChartView:a.a,registerComponentModel:function(e){o.a.registerClass(e)},registerComponentView:function(e){r.a.registerClass(e)},registerSeriesModel:function(e){s.b.registerClass(e)},registerChartView:function(e){a.a.registerClass(e)},registerSubTypeDefaulter:function(e,t){o.a.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u.registerPainter)(e,t)}}},function(e,t,n){"use strict";function i(){return[1,0,0,1,0,0]}function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}Object.defineProperty(t,"__esModule",{value:!0}),t.create=i,t.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},t.copy=r,t.mul=function(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e},t.translate=function(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e},t.rotate=function(e,t,n){var i=t[0],r=t[2],a=t[4],o=t[1],s=t[3],c=t[5],l=Math.sin(n),u=Math.cos(n);return e[0]=i*u+o*l,e[1]=-i*l+o*u,e[2]=r*u+s*l,e[3]=-r*l+u*s,e[4]=u*a+l*c,e[5]=u*c-l*a,e},t.scale=function(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e},t.invert=function(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*i;if(!c)return null;return c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-i*c,e[3]=n*c,e[4]=(i*s-o*r)*c,e[5]=(a*r-n*s)*c,e},t.clone=function(e){var t=[1,0,0,1,0,0];return r(t,e),t}},function(e,t,n){"use strict";t.a=o,n.d(t,"h",function(){return c}),t.c=function(e,t,n,i,r,a){s("enter",e,t,n,i,r,a)},t.d=l,t.e=u,t.f=function(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||d(e,t,n,i)}):d(e,t,n,i)},t.g=function(e){a(e).oldStyle=e.style},t.b=function(e){return a(e).oldStyle};var i=n(0),r=n(5),a=Object(r.o)();function o(e,t,n,r,a){var o;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();o=s&&s.animation}var c="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,d=void 0;return r?(l=Object(i.retrieve2)(r.duration,200),u=Object(i.retrieve2)(r.easing,"cubicOut"),d=0):(l=t.getShallow(c?"animationDurationUpdate":"animationDuration"),u=t.getShallow(c?"animationEasingUpdate":"animationEasing"),d=t.getShallow(c?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(d=o.delay)),Object(i.isFunction)(d)&&(d=d(n,a)),Object(i.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function s(e,t,n,r,a,s,c){var l,u=!1;Object(i.isFunction)(a)?(c=s,s=a,a=null):Object(i.isObject)(a)&&(s=a.cb,c=a.during,u=a.isFrom,l=a.removeOpt,a=a.dataIndex);var d="leave"===e;d||t.stopAnimation("leave");var h=o(e,r,a,d?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(h&&h.duration>0){var f=h.duration,p=h.delay,g=h.easing,m={duration:f,delay:p||0,easing:g,done:s,force:!!s||!!c,setToFinal:!d,scope:e,during:c};u?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!u&&t.attr(n),c&&c(1),s&&s()}function c(e,t,n,i,r,a){s("update",e,t,n,i,r,a)}function l(e){if(!e.__zr)return!0;for(var t=0;t':'';var c=n.markerId||"markerX";return{renderMode:s,content:"{"+c+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}},t.e=function(e,t,n){0;"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=Object(a.p)(t),r=n?"getUTC":"get",s=i[r+"FullYear"](),c=i[r+"Month"]()+1,l=i[r+"Date"](),u=i[r+"Hours"](),d=i[r+"Minutes"](),h=i[r+"Seconds"](),f=i[r+"Milliseconds"]();return e=e.replace("MM",Object(o.y)(c,2)).replace("M",c).replace("yyyy",s).replace("yy",Object(o.y)(s%100+"",2)).replace("dd",Object(o.y)(l,2)).replace("d",l).replace("hh",Object(o.y)(u,2)).replace("h",u).replace("mm",Object(o.y)(d,2)).replace("m",d).replace("ss",Object(o.y)(h,2)).replace("s",h).replace("SSS",Object(o.y)(f,3))},t.b=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.c=function(e,t){return t=t||"transparent",i.isString(e)?e:i.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t},t.n=function(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)};var i=n(0),r=n(219),a=n(8),o=n(224);n(19);n.d(t,"d",function(){return r.a});var s=n(421);n.d(t,"m",function(){return s.c});var c=n(1064);function l(e){if(!Object(a.k)(e))return i.isString(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}n.d(t,"h",function(){return c.a});var u=i.normalizeCssArray;var d=["a","b","c","d","e","f","g"],h=function(e,t){return"{"+e+(null==t?"":t)+"}"}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";t.f=s,t.d=function(e,t,n,r){var a=((e||"")+"").split("\n");if(1===a.length)return c(a[0],t,n,r);for(var o=new i.a(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}},function(e,t,n){"use strict";t.c=function(e){return[e||"",a++].join("_")},t.a=function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=Object(r.f)(e);t[i.main]=n},e.determineSubType=function(n,i){var a=i.type;if(!a){var o=Object(r.f)(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](i))}return a}},t.b=function(e,t){function n(e){var n={},a=[];return i.each(e,function(o){var s=r(n,o),c=s.originalDeps=t(o),l=function(e,t){var n=[];return i.each(e,function(e){i.indexOf(t,e)>=0&&n.push(e)}),n}(c,e);s.entryCount=l.length,0===s.entryCount&&a.push(o),i.each(l,function(e){i.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);i.indexOf(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,t,r,a){if(e.length){var o=n(t),s=o.graph,c=o.noEntryList,l={};for(i.each(e,function(e){l[e]=!0});c.length;){var u=c.pop(),d=s[u],h=!!l[u];h&&(r.call(a,u,d.originalDeps.slice()),delete l[u]),i.each(d.successor,h?p:f)}i.each(l,function(){var e="";throw new Error(e)})}function f(e){s[e].entryCount--,0===s[e].entryCount&&c.push(e)}function p(e){l[e]=!0,f(e)}}},t.d=function(e,t){return i.merge(i.merge({},e,!0),t,!0)};var i=n(0),r=n(97),a=(n(19),Math.round(10*Math.random()))},function(e,t,n){"use strict";t.c=function(e,t){return t.type=e,t},t.b=function(e,t,n,i,r,a){if(!e)return;var o=h(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)},t.e=function(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return Object(i.c)(n)},t.d=function(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10},n.d(t,"a",function(){return v});var i=n(48),r=n(0),a=n(138),o=n(8),s="line-height:1";function c(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",s=e.fontSize||14,c=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(i.d)(r+"")+"px;color:"+Object(i.d)(n)+";font-weight:"+Object(i.d)(a+""),valueStyle:"font-size:"+Object(i.d)(s+"")+"px;color:"+Object(i.d)(o)+";font-weight:"+Object(i.d)(c+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:c}}}var l=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function d(e){return"section"===e.type}function h(e){return d(e)?f:p}function f(e,t,n,o){var f=t.noHeader,p=function(e){return{html:l[e],richText:u[e]}}(function T(e){if(d(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return Object(r.each)(e.blocks,function(e){var n=T(e);n>=t&&(t=n+ +(i&&(!n||d(e)&&!e.noHeader)))}),t}return 0}(t)),v=[],A=t.blocks||[];Object(r.assert)(!A||Object(r.isArray)(A)),A=A||[];var y=e.orderMode;if(t.sortBlocks&&y){A=A.slice();var b={valueAsc:"asc",valueDesc:"desc"};if(Object(r.hasOwn)(b,y)){var x=new a.a(b[y],null);A.sort(function(e,t){return x.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===y&&A.reverse()}Object(r.each)(A,function(n,i){var a=t.valueFormatter,s=h(n)(a?Object(r.extend)(Object(r.extend)({},e),{valueFormatter:a}):e,n,i>0?p.html:0,o);null!=s&&v.push(s)});var w="richText"===e.renderMode?v.join(p.richText):g(v.join(""),f?n:p.html);if(f)return w;var _=Object(i.j)(t.header,"ordinal",e.useUTC),S=c(o,e.renderMode).nameStyle;return"richText"===e.renderMode?m(e,_,S)+p.richText+w:g(''+Object(i.d)(_)+"
"+w,n)}function p(e,t,n,a){var o=e.renderMode,s=t.noName,l=t.noValue,u=!t.markerType,d=t.name,h=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(e){return e=Object(r.isArray)(e)?e:[e],Object(r.map)(e,function(e,t){return Object(i.j)(e,Object(r.isArray)(A)?A[t]:A,h)})};if(!s||!l){var p=u?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),v=s?"":Object(i.j)(d,"ordinal",h),A=t.valueType,y=l?[]:f(t.value),b=!u||!s,x=!u&&s,w=c(a,o),_=w.nameStyle,S=w.valueStyle;return"richText"===o?(u?"":p)+(s?"":m(e,v,_))+(l?"":function(e,t,n,i,a){var o=[a],s=i?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(r.isArray)(t)?t.join(" "):t,o)}(e,y,b,x,S)):g((u?"":p)+(s?"":function(e,t,n){return''+Object(i.d)(e)+""}(v,!u,_))+(l?"":function(e,t,n,a){var o=t?"float:right;margin-left:"+(n?"10px":"20px"):"";return e=Object(r.isArray)(e)?e:[e],''+Object(r.map)(e,function(e){return Object(i.d)(e)}).join(" ")+""}(y,b,x,S)),n)}}function g(e,t){return''}function m(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}var v=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(o.j)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var a="richText"===n?this._generateStyleName():null,o=Object(i.i)({color:t,type:e,renderMode:n,markerId:a});return Object(r.isString)(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(r.isArray)(t)?Object(r.each)(t,function(e){return Object(r.extend)(n,e)}):Object(r.extend)(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}()},function(e,t,n){var i=n(39),r=n(114);e.exports=n(36)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(17),r=n(53),a=n(59),o=n(115)("src"),s=n(509),c=(""+s).split("toString");n(70).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(a(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},function(e,t,n){var i=n(2),r=n(21),a=n(79),o=/"/g,s=function(e,t,n,i){var r=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,""")+'"'),s+">"+r+""+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){"use strict";n.d(t,"u",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"s",function(){return a}),n.d(t,"l",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"t",function(){return l}),n.d(t,"k",function(){return u}),n.d(t,"j",function(){return d}),n.d(t,"w",function(){return h}),n.d(t,"p",function(){return f}),n.d(t,"r",function(){return p}),n.d(t,"v",function(){return g}),n.d(t,"o",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"q",function(){return A}),n.d(t,"b",function(){return y}),n.d(t,"f",function(){return b}),n.d(t,"m",function(){return x}),n.d(t,"a",function(){return w}),n.d(t,"h",function(){return _}),n.d(t,"x",function(){return S}),n.d(t,"c",function(){return T}),n.d(t,"n",function(){return C});var i="top",r="bottom",a="right",o="left",s="auto",c=[i,r,a,o],l="start",u="end",d="clippingParents",h="viewport",f="popper",p="reference",g=c.reduce(function(e,t){return e.concat([t+"-"+l,t+"-"+u])},[]),m=[].concat(c,[s]).reduce(function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])},[]),v="beforeRead",A="read",y="afterRead",b="beforeMain",x="main",w="afterMain",_="beforeWrite",S="write",T="afterWrite",C=[v,A,y,b,x,w,_,S,T]},function(e,t,n){"use strict";t.a=g,t.b=function(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)},t.f=function(e,t,n,i,o,s){var u=i+3*(t-n)-e,d=3*(n-2*t+e),h=3*(t-e),p=e-o,g=d*d-3*u*h,m=d*h-9*u*p,v=h*h-3*d*p,A=0;if(f(g)&&f(m))if(f(d))s[0]=0;else{var y=-h/d;y>=0&&y<=1&&(s[A++]=y)}else{var b=m*m-4*g*v;if(f(b)){var x=m/g,y=-d/u+x,w=-x/2;y>=0&&y<=1&&(s[A++]=y),w>=0&&w<=1&&(s[A++]=w)}else if(b>0){var _=a(b),S=g*d+1.5*u*(-m+_),T=g*d+1.5*u*(-m-_);S=S<0?-r(-S,l):r(S,l),T=T<0?-r(-T,l):r(T,l);var y=(-d-(S+T))/(3*u);y>=0&&y<=1&&(s[A++]=y)}else{var C=(2*g*d-3*u*m)/(2*a(g*g*g)),k=Math.acos(C)/3,O=a(g),E=Math.cos(k),y=(-d-2*O*E)/(3*u),w=(-d+O*(E+c*Math.sin(k)))/(3*u),I=(-d+O*(E-c*Math.sin(k)))/(3*u);y>=0&&y<=1&&(s[A++]=y),w>=0&&w<=1&&(s[A++]=w),I>=0&&I<=1&&(s[A++]=I)}}return A},t.c=function(e,t,n,i,r){var o=6*n-12*t+6*e,s=9*t+3*i-3*e-9*n,c=3*t-3*e,l=0;if(f(s)){if(p(o)){var u=-c/o;u>=0&&u<=1&&(r[l++]=u)}}else{var d=o*o-4*s*c;if(f(d))r[0]=-o/(2*s);else if(d>0){var h=a(d),u=(-o+h)/(2*s),g=(-o-h)/(2*s);u>=0&&u<=1&&(r[l++]=u),g>=0&&g<=1&&(r[l++]=g)}}return l},t.g=function(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,c=(i-n)*r+n,l=(s-o)*r+o,u=(c-s)*r+s,d=(u-l)*r+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=i},t.e=function(e,t,n,r,o,c,l,f,p,m,v){var A,y,b,x,w,_=.005,S=Infinity;u[0]=p,u[1]=m;for(var T=0;T<1;T+=.05)d[0]=g(e,n,o,l,T),d[1]=g(t,r,c,f,T),(x=Object(i.distSquare)(u,d))=0&&x=0&&u<=1&&(r[l++]=u)}}else{var d=s*s-4*o*c;if(f(d)){var u=-s/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(d>0){var h=a(d),u=(-s+h)/(2*o),g=(-s-h)/(2*o);u>=0&&u<=1&&(r[l++]=u),g>=0&&g<=1&&(r[l++]=g)}}return l},t.j=function(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i},t.n=function(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n},t.l=function(e,t,n,r,o,c,l,f,p){var g,v=.005,A=Infinity;u[0]=l,u[1]=f;for(var y=0;y<1;y+=.05){d[0]=m(e,n,o,y),d[1]=m(t,r,c,y);var b=Object(i.distSquare)(u,d);b=0&&b-o&&eo||e<-o}function g(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function m(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=g,t.lift=function(e,t){var n=g(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return x(n,4===n.length?"rgba":"rgb")}},t.toHex=function(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},t.fastLerp=v,n.d(t,"fastMapToColor",function(){return A}),t.lerp=y,n.d(t,"mapToColor",function(){return b}),t.modifyHSL=function(e,t,n,i){var r=g(e);if(e)return r=function(e){if(!e)return;var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),c=s-o,l=(s+o)/2;if(0===c)t=0,n=0;else{n=l<.5?c/(s+o):c/(2-s-o);var u=((s-i)/6+c/2)/c,d=((s-r)/6+c/2)/c,h=((s-a)/6+c/2)/c;i===s?t=h-d:r===s?t=1/3+u-h:a===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,l];null!=e[3]&&f.push(e[3]);return f}(r),null!=t&&(r[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(r[1]=s(n)),null!=i&&(r[2]=s(i)),x(m(r),"rgba")},t.modifyAlpha=function(e,t){var n=g(e);if(n&&null!=t)return n[3]=a(t),x(n,"rgba")},t.stringify=x,t.lum=function(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0},t.random=function(){return x([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")};var i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return e<0?0:e>1?1:e}function o(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?r(parseFloat(t)/100*255):r(parseInt(t,10))}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100):a(parseFloat(t))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){return e+(t-e)*n}function u(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var h=new(n(185).a)(20),f=null;function p(e,t){f&&d(f,t),f=h.put(e,f||t.slice())}function g(e,t){if(e){t=t||[];var n=h.get(e);if(n)return d(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in i)return d(t,i[r]),p(e,t),t;var a,c=r.length;if("#"===r.charAt(0))return 4===c||5===c?(a=parseInt(r.slice(1,4),16))>=0&&a<=4095?(u(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===c?parseInt(r.slice(4),16)/15:1),p(e,t),t):void u(t,0,0,0,1):7===c||9===c?(a=parseInt(r.slice(1,7),16))>=0&&a<=16777215?(u(t,(16711680&a)>>16,(65280&a)>>8,255&a,9===c?parseInt(r.slice(7),16)/255:1),p(e,t),t):void u(t,0,0,0,1):void 0;var l=r.indexOf("("),f=r.indexOf(")");if(-1!==l&&f+1===c){var g=r.substr(0,l),v=r.substr(l+1,f-(l+1)).split(","),A=1;switch(g){case"rgba":if(4!==v.length)return 3===v.length?u(t,+v[0],+v[1],+v[2],1):u(t,0,0,0,1);A=s(v.pop());case"rgb":return v.length>=3?(u(t,o(v[0]),o(v[1]),o(v[2]),3===v.length?A:s(v[3])),p(e,t),t):void u(t,0,0,0,1);case"hsla":return 4!==v.length?void u(t,0,0,0,1):(v[3]=s(v[3]),m(v,t),p(e,t),t);case"hsl":return 3!==v.length?void u(t,0,0,0,1):(m(v,t),p(e,t),t);default:return}}u(t,0,0,0,1)}}function m(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=s(e[1]),a=s(e[2]),o=a<=.5?a*(i+1):a+i-a*i,l=2*a-o;return u(t=t||[],r(255*c(l,o,n+1/3)),r(255*c(l,o,n)),r(255*c(l,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function v(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),o=Math.floor(i),s=Math.ceil(i),c=t[o],u=t[s],d=i-o;return n[0]=r(l(c[0],u[0],d)),n[1]=r(l(c[1],u[1],d)),n[2]=r(l(c[2],u[2],d)),n[3]=a(l(c[3],u[3],d)),n}}var A=v;function y(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),o=Math.floor(i),s=Math.ceil(i),c=g(t[o]),u=g(t[s]),d=i-o,h=x([r(l(c[0],u[0],d)),r(l(c[1],u[1],d)),r(l(c[2],u[2],d)),a(l(c[3],u[3],d))],"rgba");return n?{color:h,leftIndex:o,rightIndex:s,value:i}:h}}var b=y;function x(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(169),r=n(79);e.exports=function(e){return i(r(e))}},function(t,n,i){var r=i(170),a=i(114),o=i(60),s=i(78),c=i(59),l=i(336),u=Object.getOwnPropertyDescriptor;n.f=i(36)?u:function(t,n){if(t=o(t),n=s(n,!0),l)try{return u(t,n)}catch(e){}if(c(t,n))return a(!r.f.call(t,n),t[n])}},function(e,t,n){var i=n(59),r=n(40),a=n(248)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(t,n,i){"use strict";t.exports=function(){var t=this;window.Promise||console.log("Promise isn't available at this browser");var n=function(e,t){return function(){return e.apply(t,arguments)}};function i(e){e&&e.storage&&(this.storage=e.storage),this.async.set=n(this.async.set,this),this.async.get=n(this.async.get,this)}i.prototype.VERSION="VERSION-PLACEHOLDER";var r=i.prototype.supportsLocalStorage=function(){try{var n="___locache___";return t.localStorage.setItem(n,n),t.localStorage.getItem(n),t.localStorage.removeItem(n),!0}catch(e){return!1}}(),a=i.prototype.supportsSessionStorage=function(){try{var n="___locache___";return t.sessionStorage.setItem(n,n),t.sessionStorage.getItem(n),t.sessionStorage.removeItem(n),!0}catch(e){return!1}}(),o=i.prototype.supportsNativeJSON=!!t.JSON;i.prototype.supportsPostMessage=!!window.postMessage;i.prototype.cachePrefix="___locache___",i.prototype.expirePrefix="___locacheExpire___",i.prototype.backends={local:{set:function(n,i){try{return t.localStorage.setItem(n,i),!0}catch(e){console.log(e)}return!1},get:function(e){return t.localStorage.getItem(e)},remove:function(e){return t.localStorage.removeItem(e)},length:function(e){return t.localStorage.length},key:function(e){if(!(e<0||e>=this.length()))return t.localStorage.key(e)},enabled:function(){return o&&r}},session:{set:function(e,n){return t.sessionStorage.setItem(e,n)},get:function(e){return t.sessionStorage.getItem(e)},remove:function(e){return t.sessionStorage.removeItem(e)},length:function(e){return t.sessionStorage.length},key:function(e){if(!(e<0||e>=this.length()))return t.sessionStorage.key(e)},enabled:function(){return o&&a}}},i.prototype.storage=i.prototype.backends.local;var s=function(){return(new Date).getTime()};i.prototype.key=function(e){return this.cachePrefix+e},i.prototype.expirekey=function(e){return this.expirePrefix+e},i.prototype.hasExpired=function(e){var t=this.expirekey(e),n=parseInt(this.storage.get(t),10);return!!(n&&n=0;n--){var i=this.storage.key(n);if(i&&0===i.indexOf(t)){var r=i.substring(t.length,i.length);this.remove(r)}}},i.prototype.length=function(){if(!this.storage.enabled())return 0;for(var e=0,t=this.storage.length(),n=this.cachePrefix,i=0;i=0;n--){var i=this.storage.key(n);if(i&&0===i.indexOf(t)){var r=i.substring(t.length,i.length);this.hasExpired(r)&&this.remove(r)}}},i.prototype.createCache=function(e){return new i(e)};var c=new i;return c.session=new i({storage:c.backends.session}),t.locache=c,c}.call(window)},function(e,t,n){"use strict";var i=n(4),r=n(91),a=n(3),o={title:a.examDetails.title,desc:a.examDetails.description,url:""},s=null;e.exports={initWechatShare:function(e){i.isWechat()&&(s&&clearTimeout(s),s=setTimeout(function(){r("/wechat/jssdksignpack",{data:{url:window.location.href.split("#")[0]},needProgress:!1},function(t,n){if(t)if("ok"==n.status){var r=n.data;i.loadJs("https://res.wx.qq.com/open/js/jweixin-1.3.2.js",function(t){wx.config({debug:!1,appId:r.appid,timestamp:r.timestamp,nonceStr:r.nonceStr,signature:r.signature,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}),wx.ready(function(){if(2==a.examDetails.testtype||3==a.examDetails.testtype){var t=a.audiobg,n=a.nomore;t.play(),n.play(),n.pause(),t.addEventListener("ended",function(){null!=t&&t.play()},!1)}a.examDetails.DecodedParams.hasOwnProperty("prohibit_sharing")&&1==a.examDetails.DecodedParams.prohibit_sharing&&wx.hideOptionMenu(),wx.onMenuShareAppMessage({title:o.title,desc:o.desc,link:""==o.url?r.url:o.url,imgUrl:a.examDetails.img,trigger:function(e){},success:function(e){},cancel:function(e){},fail:function(e){alert(JSON.stringify(e))}}),wx.onMenuShareTimeline({title:o.desc,desc:o.desc,link:""==o.url?r.url:o.url,imgUrl:a.examDetails.img,trigger:function(e){},success:function(e){},cancel:function(e){},fail:function(e){alert(JSON.stringify(e))}}),"miniprogram"===window.__wxjs_environment?(a.isMiniprogram=!0,e&&wx.miniProgram.navigateTo({url:"/pages/focus/focus"})):wx.miniProgram.getEnv(function(e){a.isMiniprogram=e.miniprogram})}),wx.error(function(e){console.log("load wechat js sdk failed: ",e)})})}else console.log("load wechat js sdk sign pack failed: ",n.error);else console.log("load wechat js sdk sign pack failed: ",n)})},200))},shareContext:o}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o});var i=n(84);function r(e){return e instanceof Object(i.a)(e).Element||e instanceof Element}function a(e){return e instanceof Object(i.a)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Object(i.a)(e).ShadowRoot||e instanceof ShadowRoot)}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a}),n.d(t,"d",function(){return l}),t.e=function(e){for(var t in l)e[t]&&(l[t]=e[t])};var i=12,r="sans-serif",a=i+"px "+r,o=20,s=100;var c=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n=0)d=u*n.length;else for(var h=0;h=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList;if(n.getSource().sourceFormat===m.f&&!n.pure)for(var o=[],s=e;s0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),u.isArray(r)?r=r.slice():w(r)&&(r=u.extend({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,w(t)?u.extend(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){w(e)?u.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?u.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Object(A.b)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){u.each(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_(this.dimensions,this._getDimInfo,this),this.hostModel)),s(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];u.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(u.slice(arguments)))})},e.internalField=(i=function(e){var t=e._invertedIndicesMap;u.each(t,function(n,i){var r=e._dimInfos[i],a=r.ordinalMeta,o=e._store;if(a){n=t[i]=new S(a.categories.length);for(var s=0;s1&&(c+="__ec__"+u),i[t]=c}})),e}();t.a=k},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(49);e.exports=function(e,t,n){if(i(e),t===undefined)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){"use strict";var i=n(21);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var i=n(31),r=n(67),a=n(26),o=n(0),s=Object(o.defaults)({x:0,y:0},r.b),c={style:Object(o.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.a.style)};var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.a)(t,e),t.prototype.createStyle=function(e){return Object(o.createObject)(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=function(e){return!!(e&&"string"!=typeof e&&e.width&&e.height)}(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",a=t[r];return null==a?i[e]:i[e]/i[r]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return c},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a.a(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(r.c);l.prototype.type="image",t.a=l},function(e,t,n){"use strict";t.f=f,t.i=function(e,t){var n=t,i=f(e,n),r=i.extent,a=n.get("splitNumber");e instanceof u.a&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),c="interval"===o||"time"===o;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)},t.a=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new r.a({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[Infinity,-Infinity]});case"time":return new l.a({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(o.a.getClass(t)||a.a)}},t.g=function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)},t.h=p,t.c=g,t.b=function(e){var t,n,i=e.model,a=e.scale;if(!i.get(["axisLabel","show"])||a.isBlank())return;var o=a.getExtent();a instanceof r.a?n=a.count():(t=a.getTicks(),n=t.length);var s,c=e.getLabelModel(),l=p(e),u=1;n>40&&(u=Math.ceil(n/40));for(var d=0;de[1]&&(e[1]=i[1])})};var i=n(0),r=n(444),a=n(162),o=n(190),s=n(232),c=n(26),l=n(446),u=n(1084),d=n(100),h=n(447);function f(e,t){var n=e.type,r=Object(h.a)(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,o=r.max,c=t.ecModel;if(c&&"time"===n){var l=Object(s.e)("bar",c),u=!1;if(i.each(l,function(e){u=u||e.getBaseAxis()===t.axis}),u){var d=Object(s.d)(l),f=function(e,t,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],c=Object(s.f)(r,n.axis);if(c===undefined)return{min:e,max:t};var l=Infinity;i.each(c,function(e){l=Math.min(e.offset,l)});var u=-Infinity;i.each(c,function(e){u=Math.max(e.offset+e.width,u)}),l=Math.abs(l),u=Math.abs(u);var d=l+u,h=t-e,f=h/(1-(l+u)/o)-h;return{min:e-=f*(l/d),max:t+=f*(u/d)}}(a,o,t,d);a=f.min,o=f.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function p(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):i.isString(t)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(t):i.isFunction(t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(g(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function g(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function m(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,a=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),o=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new c.a(e.x,e.y,a,o)}function v(e){var t=e.get("interval");return null==t?"auto":t}function A(e,t){var n={};return i.each(e.mapDimensionsAll(t),function(t){n[Object(d.b)(e,t)]=!0}),i.keys(n)}},function(t,n){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}t.exports=i},function(e,t,n){var i=n(23);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(2),r=n(70),a=n(21);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),i(i.S+i.F*a(function(){n(1)}),"Object",o)}},function(e,t,n){var i=n(71),r=n(169),a=n(40),o=n(34),s=n(264);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var g,m,v=a(t),A=r(v),y=i(s,p,3),b=o(A.length),x=0,w=n?f(t,b):c?f(t,0):undefined;b>x;x++)if((h||x in A)&&(m=y(g=A[x],x,v),e))if(n)w[x]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:w.push(g)}else if(u)return!1;return d?-1:l||u?u:w}}},function(t,n,i){if("undefined"!=typeof window){var r,a,o=t.exports,s=i(173),c=i(15),l=i(126),u=document.createElement("div"),d=l.NAMESPACE;o.body=document.body,o.doc=document,o.tNode=u;u.addEventListener?(r=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)}):(r=function(e,t,n){e.attachEvent("on"+t,n)},a=function(e,t,n){e.detachEvent("on"+t,n)}),o.msie=parseInt((/msie (\d+)/.exec(navigator.userAgent.toLowerCase())||[])[1]),isNaN(o.msie)&&(o.msie=parseInt((/trident\/.*; rv:(\d+)/.exec(navigator.userAgent.toLowerCase())||[])[1])),o.find=function(t){if(document.querySelector)try{return document.querySelector(t)}catch(e){}if(-1!==t.indexOf("#"))return document.getElementById(t.slice(1))},o.inject=function(e,t,n){if(n=n||"bottom",e){if(Array.isArray(e)){var i=e;e=o.fragment();for(var r=0,a=i.length;r0&&e[0].remove()}if(!o.isPCWebRTCVideoMode){var t=document.getElementsByClassName("camerabox");t.length>0&&t[0].remove()}},u.prototype.capture=function(){return""},u.prototype.initMiniCam=function(){this.cameraState=!1,l=2;var e=this;if("undefined"!=typeof WebSocket){var t=!1,n=window.location.host,i=window.location.host,r="ws",a=":80";"https"==location.protocol.replace(/:/,"")&&(r="wss",a=":443"),o.isOnline&&"do.youkaoshi.cn"!=n&&(n=o.defaultDomain,i.indexOf(o.defaultDomain)>=0?(r="wss",a=":443"):n=i),n.indexOf(":")>=0&&(a="");var s=r+"://"+n+a+"/ws",u=null;if(o.sock?u=o.sock:((u=new WebSocket(s)).onopen=function(){t=!0,console.log("2 connected to ")},o.sock=u),o.isResume()&&0!=o.tid()&&0!=o.state.eid){var d=("do.youkaoshi.cn"==document.domain?"https://home.baisikao.com":o.homeDomain)+"?tid="+o.tid()+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid;if(d="do.youkaoshi.cn"==document.domain?d+"&wsAddress=test":d,o.advancedMobileVideo||o.isMobileWebRTCVideoMode){d="https://www.baisikao.com/dowload-app.html?tid="+o.tid()+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid,o.advancedMobileVideo&&(d=window.location.protocol+"//"+window.location.host+"/qiniuindex#/pages/qiniumonitor/qiniumonitor?tid="+o.tid()+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid+"&isMock="+o.isMock);d=d+"&wsAddress="+(-1!==document.domain.indexOf("10.0.50.")?"ws://"+document.domain+":9874/ws":"wss://"+document.domain+":443/ws")}o.miniUrl=d}else{var h={type:5,eid:o.examDetails.eid,state:""},f={type:5,eid:o.examDetails.eid,state:"checkRear"},p=0,g=setInterval(function(){p>=100&&(p=0),p++,h.count=p,t&&u.send(JSON.stringify(h))},1e3),m=null;o.openEnvCheckFlag||(m=setInterval(function(){p>=100&&(p=0),p++,f.count=p,t&&u&&u.readyState!=WebSocket.CLOSED&&u.send(JSON.stringify(f))},1e3)),u.onmessage=function(t){if("heartbeat from server"!=t.data){var n=JSON.parse(t.data);if("rearCameraKey"!=n.status&&"checkRear"!=n.status||!n.msg||o.miniUrl)"error"==n.status&&n.msg;else{clearInterval(g);var i=("do.youkaoshi.cn"==document.domain?"https://home.baisikao.com":o.homeDomain)+"?key="+n.msg+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid;if(i="do.youkaoshi.cn"==document.domain?i+"&wsAddress=test":i,o.advancedMobileVideo||o.isMobileWebRTCVideoMode){var r=window.location.protocol+"//"+window.location.host;i="https://www.baisikao.com/dowload-app.html?key="+n.msg+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid,o.advancedMobileVideo&&(i=r+"/qiniuindex#/pages/qiniumonitor/qiniumonitor?key="+n.msg+"&det="+(o.cameraEnhancements?1:0)+"&eid="+o.examDetails.eid+"&isMock="+o.isMock);i=i+"&wsAddress="+(-1!==document.domain.indexOf("10.0.50.")?"ws://"+document.domain+":9874/ws":"wss://"+document.domain+":443/ws")}o.miniUrl=i}"checkRear"==n.status&&(e.changeMiniCamState(!0),m&&clearInterval(m)),c&&c(n)}}}}},u.prototype.changeMiniCamState=function(e){e?(this.cameraState=!0,l=1):(this.cameraState=!1,l=2)},d.prototype=Object.create(u.prototype),d.prototype.init=function(e){u.prototype.init.call(this,e);var t=this;return r.loadJs({src:a.format("{0}static/swfobject.min.js",o.cdnBase),callback:function(e,n){if(null==e){if(window.swfobject){var i={id:"webcam",align:"middle"},r={id:"webcam",width:t.viewWidth,height:t.viewHeight,shutter_url:t.shutterMp3URL};window.flashMsg=function(e){var n=arguments;if("flashError"==e){switch(n[1]){case"nocamera":t.initFail(s.i18n("undetectedOrAccessDenied"))}t.free()}else"flashDebug"==e?console.log(n[1]):"flashPrepared"==e?(t.initSuccess(),t.ready()):"displayAllowTip"==e&&(alert(s.i18n("pleaseAllowFlashAccessWebcam")),t.container.style.right="50%",t.container.style.bottom="50%")};t.createDom(),t.inited=!0,t.show();var a=document.createElement("div");a.id="webcamwebcam",a.style.width="100%",a.style.height="100%",t.container.appendChild(a),swfobject.embedSWF(t.swfURL,a.id,t.viewWidth,t.viewHeight,"9",null,r,{loop:"false",allowScriptAccess:"always",allowFullScreen:"false",quality:"best",wmode:"opaque",menu:"true"},i,function(e){e.success?t.flashObj=e.ref:t.initFail(s.i18n("unsupportMediaDevicesTip"))})}else t.initFail("unsuported flash player")}else t.initFail("load js failed")}}),this},d.prototype.capture=function(){return this.flashObj?this.flashObj.capture():""},h.prototype=Object.create(u.prototype),h.prototype.init=function(e,t){return u.prototype.init.call(this,t),this.createDom(),this.video=document.createElement("video"),this.video.className="camera",this.container.appendChild(this.video),this.video.classList.add("camera"),a.isMobile()?(this.video.setAttribute("playsinline",""),this.video.setAttribute("webkit-playsinline",""),this.video.setAttribute("x5-playsinline",""),this.video.setAttribute("muted",""),this.video.classList.add("mirror")):this.video.style.width=this.viewWidth+"px","srcObject"in this.video?this.video.srcObject=e:this.video.src=window.URL.createObjectURL(e),this.initSuccess(),this.ready(),this.video.play(),this},h.prototype.reInit=function(e,t){return u.prototype.init.call(this,t),e.video&&(this.video=e.video),e.container&&(this.container=e.container),this.initSuccess(),this.ready(),this},h.prototype.capture=function(){if(!this.inited)return"";return this.canvas||(this.canvas=document.createElement("canvas"),this.canvas.width=600,this.canvas.height=450,this.context=this.canvas.getContext("2d")),this.context.drawImage(this.video,0,0,600,450),this.canvas.toDataURL("image/jpeg")},h.prototype.hide=function(){u.prototype.hide.call(this)},h.prototype.toggle=function(e){return this.video&&("srcObject"in this.video?this.video.srcObject=e:this.video.src=window.URL.createObjectURL(e)),this.ready(),this.video.play(),!0},e.exports={Flash:function(){return i=new d},Html5:function(){return i=new h},changeMiniCamState:u.prototype.changeMiniCamState,initMiniCam:u.prototype.initMiniCam,free:u.prototype.free,getInstace:function(){return i},setSocketOnmessage:function(e){c=e},getPhoneCameraStatus:function(){return l}}},function(e,t,n){"use strict";t.a=function(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},function(e,t,n){"use strict";var i=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var o=0;o=x?r=n+x:t&&n-r>=x?r=n-x:!t&&n>r?r=n+(x-S(n-r)):t&&n0&&(this._ux=y(n/a.e/e)||0,this._uy=y(n/a.e/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=y(e-this._xi),i=y(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(c.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,a){return this._drawPendingPt(),this.addData(c.C,e,t,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,a),this._xi=r,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(c.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,a){this._drawPendingPt(),_[0]=i,_[1]=r,T(_,a),i=_[0];var o=(r=_[1])-i;return this.addData(c.A,e,t,n,n,i,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=v(r)*n+e,this._yi=A(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(c.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(c.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!w||(this.data=new Float32Array(t));for(var n=0;nl.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){d[0]=d[1]=f[0]=f[1]=Number.MAX_VALUE,h[0]=h[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,a=0,s=0,l=0;for(e=0;en||y(S)>i||f===t-1)&&(w=Math.sqrt(F*F+S*S),r=_,a=k);break;case c.C:var T=e[f++],C=e[f++],k=(_=e[f++],e[f++]),O=e[f++],E=e[f++];w=Object(s.d)(r,a,T,C,_,k,O,E,10),r=O,a=E;break;case c.Q:T=e[f++],C=e[f++],_=e[f++],k=e[f++];w=Object(s.k)(r,a,T,C,_,k,10),r=_,a=k;break;case c.A:var I=e[f++],D=e[f++],M=e[f++],B=e[f++],P=e[f++],R=e[f++],L=R+P;f+=1;e[f++];b&&(o=v(P)*M+I,l=A(P)*B+D),w=m(M,B)*g(x,Math.abs(R)),r=v(L)*M+I,a=A(L)*B+D;break;case c.R:o=r=e[f++],l=a=e[f++],w=2*e[f++]+2*e[f++];break;case c.Z:var F=o-r;S=l-a;w=Math.sqrt(F*F+S*S),r=o,a=l}w>=0&&(u[h++]=w,d+=w)}return this._pathLen=d,d},e.prototype.rebuildPath=function(e,t){var n,i,r,a,o,d,h,f,p,b,x=this.data,w=this._ux,_=this._uy,S=this._len,T=t<1,C=0,k=0,O=0;if(!T||(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,f=t*this._pathLen))e:for(var E=0;E0&&(e.lineTo(p,b),O=0),I){case c.M:n=r=x[E++],i=a=x[E++],e.moveTo(r,a);break;case c.L:o=x[E++],d=x[E++];var M=y(o-r),B=y(d-a);if(M>w||B>_){if(T){if(C+(ie=h[k++])>f){var P=(f-C)/ie;e.lineTo(r*(1-P)+o*P,a*(1-P)+d*P);break e}C+=ie}e.lineTo(o,d),r=o,a=d,O=0}else{var R=M*M+B*B;R>O&&(p=o,b=d,O=R)}break;case c.C:var L=x[E++],F=x[E++],N=x[E++],j=x[E++],U=x[E++],H=x[E++];if(T){if(C+(ie=h[k++])>f){P=(f-C)/ie;Object(s.g)(r,L,N,U,P,l),Object(s.g)(a,F,j,H,P,u),e.bezierCurveTo(l[1],u[1],l[2],u[2],l[3],u[3]);break e}C+=ie}e.bezierCurveTo(L,F,N,j,U,H),r=U,a=H;break;case c.Q:L=x[E++],F=x[E++],N=x[E++],j=x[E++];if(T){if(C+(ie=h[k++])>f){P=(f-C)/ie;Object(s.n)(r,L,N,P,l),Object(s.n)(a,F,j,P,u),e.quadraticCurveTo(l[1],u[1],l[2],u[2]);break e}C+=ie}e.quadraticCurveTo(L,F,N,j),r=N,a=j;break;case c.A:var Q=x[E++],z=x[E++],q=x[E++],G=x[E++],W=x[E++],V=x[E++],X=x[E++],Y=!x[E++],K=q>G?q:G,$=y(q-G)>.001,J=W+V,Z=!1;if(T)C+(ie=h[k++])>f&&(J=W+V*(f-C)/ie,Z=!0),C+=ie;if($&&e.ellipse?e.ellipse(Q,z,q,G,X,W,J,Y):e.arc(Q,z,K,W,J,Y),Z)break e;D&&(n=v(W)*q+Q,i=A(W)*G+z),r=v(J)*q+Q,a=A(J)*G+z;break;case c.R:n=r=x[E],i=a=x[E+1],o=x[E++],d=x[E++];var ee=x[E++],te=x[E++];if(T){if(C+(ie=h[k++])>f){var ne=f-C;e.moveTo(o,d),e.lineTo(o+g(ne,ee),d),(ne-=ee)>0&&e.lineTo(o+ee,d+g(ne,te)),(ne-=te)>0&&e.lineTo(o+m(ee-ne,0),d+te),(ne-=ee)>0&&e.lineTo(o,d+m(te-ne,0));break e}C+=ie}e.rect(o,d,ee,te);break;case c.Z:if(T){var ie;if(C+(ie=h[k++])>f){P=(f-C)/ie;e.lineTo(r*(1-P)+n*P,a*(1-P)+i*P);break e}C+=ie}e.closePath(),r=n,a=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=c,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t.a=C},function(e,t,n){"use strict";var i=n(0),r=n(69),a=n(161),o=n(231),s=n(5),c=n(188),l=n(1083),u=n(109),d=n(100),h=n(98),f=n(68);t.a=function(e,t,n){n=n||{};var p,g=t.getSourceManager(),m=!1;e?(m=!0,p=Object(u.c)(e)):m=(p=g.getSource()).sourceFormat===f.f;var v=Object(l.a)(t),A=function(e,t){var n,r=e.get("coordinateSystem"),a=c.a.get(r);return t&&t.coordSysDims&&(n=i.map(t.coordSysDims,function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=Object(o.a)(r)}return n})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(t,v),y=n.useEncodeDefaulter,b=i.isFunction(y)?y:y?i.curry(h.c,A,t):null,x={coordDimensions:A,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!m},w=Object(a.b)(p,x),_=function(e,t,n){var r,a;return n&&i.each(e,function(e,i){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=i),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(a=!0)}),a||null==r||(e[r].otherDims.itemName=0),r}(w.dimensions,n.createInvertedIndices,v),S=m?null:g.getSharedDataStore(w),T=Object(d.a)(t,{schema:w,store:S}),C=new r.a(w,t);C.setCalculationInfo(T);var k=null!=_&&function(e){if(e.sourceFormat===f.f){var t=function(e){for(var t=0;tn;)r[n]=t[n++];return r},Ee=function(e,t,n){H(e,t,{get:function(){return this._d[n]}})},Ie=function(e){var t,n,i,r,a,o,s=w(e),c=arguments.length,u=c>1?arguments[1]:undefined,d=u!==undefined,h=k(s);if(h!=undefined&&!_(h)){for(o=h.call(s),i=[],t=0;!(a=o.next()).done;t++)i.push(a.value);s=i}for(d&&c>2&&(u=l(u,arguments[2],2)),t=0,n=g(s.length),r=Ce(this,n);n>t;t++)r[t]=d?u(s[t],t):s[t];return r},De=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!G&&a(function(){fe.call(new G(1))}),Be=function(){return fe.apply(Me?de.call(Te(this)):Te(this),arguments)},Pe={copyWithin:function(e,t){return N.call(Te(this),e,t,arguments.length>2?arguments[2]:undefined)},every:function(e){return J(Te(this),e,arguments.length>1?arguments[1]:undefined)},fill:function(e){return F.apply(Te(this),arguments)},filter:function(e){return ke(this,K(Te(this),e,arguments.length>1?arguments[1]:undefined))},find:function(e){return Z(Te(this),e,arguments.length>1?arguments[1]:undefined)},findIndex:function(e){return ee(Te(this),e,arguments.length>1?arguments[1]:undefined)},forEach:function(e){Y(Te(this),e,arguments.length>1?arguments[1]:undefined)},indexOf:function(e){return ne(Te(this),e,arguments.length>1?arguments[1]:undefined)},includes:function(e){return te(Te(this),e,arguments.length>1?arguments[1]:undefined)},join:function(e){return le.apply(Te(this),arguments)},lastIndexOf:function(e){return oe.apply(Te(this),arguments)},map:function(e){return xe(Te(this),e,arguments.length>1?arguments[1]:undefined)},reduce:function(e){return se.apply(Te(this),arguments)},reduceRight:function(e){return ce.apply(Te(this),arguments)},reverse:function(){for(var e,t=Te(this).length,n=Math.floor(t/2),i=0;i1?arguments[1]:undefined)},sort:function(e){return ue.call(Te(this),e)},subarray:function(e,t){var n=Te(this),i=n.length,r=v(e,i);return new(M(n,n[ve]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((t===undefined?i:v(t,i))-r))}},Re=function(e,t){return ke(this,de.call(Te(this),e,t))},Le=function(e){Te(this);var t=Se(arguments[1],1),n=this.length,i=w(e),r=g(i.length),a=0;if(r+t>n)throw z("Wrong length!");for(;a255?255:255&i),r.v[f](n*t+r.o,i,we)}(this,n,e)},enumerable:!0})};y?(p=n(function(e,n,i,r){u(e,p,l,"_d");var a,o,s,c,d=0,f=0;if(x(n)){if(!(n instanceof V||"ArrayBuffer"==(c=b(n))||"SharedArrayBuffer"==c))return ye in n?Oe(p,n):Ie.call(p,n);a=n,f=Se(i,t);var v=n.byteLength;if(r===undefined){if(v%t)throw z("Wrong length!");if((o=v-f)<0)throw z("Wrong length!")}else if((o=g(r)*t)+f>v)throw z("Wrong length!");s=o/t}else s=m(n),a=new V(o=s*t);for(h(e,"_d",{b:a,o:f,l:o,e:s,v:new X(a)});d1){if("number"==typeof(o=t({path:"/"},r.defaults,o)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*o.expires),o.expires=c}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(a),/^[\{\[]/.test(s)&&(a=s)}catch(e){}a=i.write?i.write(a,n):encodeURIComponent(String(a)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,!0!==o[u]&&(l+="="+o[u]));return document.cookie=n+"="+a+l}n||(s={});for(var d=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,f=0;f-1&&(this.score=e.score)},getOptionDom:function(){},isRight:function(e){return!1},rightAnswerToString:function(){},userAnswerToString:function(e){},getReviewDom:function(){},setAnswer:function(e){this.useranswer=e,s.saveQuestionAnswerToLocal(this.qid,e)},getLocalSavedAnswer:function(){return c.isResultView?undefined:s.getQuestionAnswerToLocal(this.qid)},isAnswered:function(e){return!1},canJumpNext:function(){return!1},getDidScore:function(e){return 0}}),e.exports=l},function(e,t,n){"use strict";t.b=c,t.c=u,t.e=function(e,t,n){if(null!=(t=u(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&c(e,r,t,n)}else{c(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;null==t.which&&s!==undefined&&a.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0);return t},t.a=function(e,t,n,i){e.addEventListener(t,n,i)},t.f=function(e,t,n,i){e.removeEventListener(t,n,i)},n.d(t,"g",function(){return d}),t.d=function(e){return 2===e.which||3===e.which};n(85);var i=n(42),r=n(219),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,o=[],s=i.a.browser.firefox&&+i.a.browser.version.split(".")[0]<39;function c(e,t,n,i){return n=n||{},i?l(e,t,n):s&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):l(e,t,n),n}function l(e,t,n){if(i.a.domSupported&&e.getBoundingClientRect){var a=t.clientX,s=t.clientY;if(Object(r.b)(e)){var c=e.getBoundingClientRect();return n.zrX=a-c.left,void(n.zrY=s-c.top)}if(Object(r.c)(o,e,a,s))return n.zrX=o[0],void(n.zrY=o[1])}n.zrX=n.zrY=0}function u(e){return e||window.event}var d=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}},function(e,t,n){"use strict";t.f=c,t.d=function(e){return!(!e||!e[s])},t.b=function(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return!function(e){return r.isFunction(e)&&/^class\s/.test(Function.prototype.toString.call(e))}(n)?(t=function(){(e.$constructor||n).apply(this,arguments)},r.inherits(t,this)):t=function(e){function t(){return e.apply(this,arguments)||this}return Object(i.a)(t,e),t}(n),r.extend(t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=u,t.superApply=d,t.superClass=n,t}},t.e=function(e,t){e.extend=t.extend},t.a=function(e){var t=["__\0is_clz",l++].join("_");e.prototype[t]=!0,0;e.isInstance=function(e){return!(!e||!e[t])}},t.c=function(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){!function(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}(n),e.prototype.type=n;var i=c(n);if(i.sub){if(i.sub!==o){var a=function(e){var n=t[e.main];n&&n[o]||((n=t[e.main]={})[o]=!0);return n}(i);a[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[o]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=c(e),i=[],a=t[n.main];return a&&a[o]?r.each(a,function(e,t){t!==o&&i.push(e)}):i.push(a),i},e.hasClass=function(e){var n=c(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=c(e),i=t[n.main];return i&&i[o]}};var i=n(1),r=n(0),a=".",o="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function c(e){var t={main:"",sub:""};if(e){var n=e.split(a);t.main=n[0]||"",t.sub=n[1]||""}return t}var l=Math.round(10*Math.random());function u(e,t){for(var n=[],i=2;i=0?d():u=setTimeout(d,-r),c=i};return h.clear=function(){u&&(clearTimeout(u),u=null)},h.debounceNextCall=function(e){s=e},h}},function(e,t,n){"use strict";t.a=function(e,t,n){var a,o,s,c=(n=n||{}).byIndex,l=n.stackedCoordDimension;!function(e){return!Object(r.d)(e.schema)}(t)?(o=t.schema,a=o.dimensions,s=t.store):a=t;var u,d,h,f,p=!(!e||!e.get("stack"));Object(i.each)(a,function(e,t){Object(i.isString)(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(c||u||!e.ordinalMeta||(u=e),d||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(d=e))}),!d||c||u||(c=!0);if(d){h="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var g=d.coordDim,m=d.type,v=0;Object(i.each)(a,function(e){e.coordDim===g&&v++});var A={name:h,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(A.storeDimIndex=s.ensureCalculationDimension(f,m),y.storeDimIndex=s.ensureCalculationDimension(h,m)),o.appendCalculationDimension(A),o.appendCalculationDimension(y)):(a.push(A),a.push(y))}return{stackedDimension:d&&d.name,stackedByDimension:u&&u.name,isStackedByIndex:c,stackedOverDimension:f,stackResultDimension:h}},t.c=a,t.b=function(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t};var i=n(0),r=n(310);function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}},function(e,t){e.exports=!1},function(e,t,n){var i=n(115)("meta"),r=n(23),a=n(59),o=n(39).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(21)(function(){return c(Object.preventExtensions({}))}),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!a(e,i)&&u(e),e}}},function(e,t,n){var i=n(30)("unscopables"),r=Array.prototype;r[i]==undefined&&n(53)(r,i,{}),e.exports=function(e){r[i][e]=!0}},function(t,n,i){var r=i(855),a=i(856),o=i(876),s=i(877);function c(t,n,i,o,s){var c=[].slice.call(arguments,1),l=c.length,u="function"==typeof c[l-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(i=n,n=o=undefined):2!==l||n.getContext||(o=i,i=n,n=undefined),new Promise(function(r,s){try{var c=a.create(i,o);r(t(c,n,o))}catch(e){s(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(s=i,i=n,n=o=undefined):3===l&&(n.getContext&&void 0===s?(s=o,o=undefined):(s=o,o=i,i=n,n=undefined));try{var d=a.create(i,o);s(null,t(d,n,o))}catch(e){s(e)}}n.create=a.create,n.toCanvas=c.bind(null,o.render),n.toDataURL=c.bind(null,o.renderToDataURL),n.toString=c.bind(null,function(e,t,n){return s.render(e,n)})},function(e,t,n){"use strict";var i=n(10),r=n(376),a=i.extend({template:"\n\n {#list messages as msg}\n
\n {/list}\n
\n",iconMap:{error:"remove-circle",success:"ok-sign",warning:"warning-sign",info:"info-sign"},config:function(e){r.extend(e,{messages:[],duration:3e3,position:"right"})},init:function(){this.$root==this&&this.$inject(document.body)},notify:function(e){"string"==typeof e&&(e={message:e}),r.extend(e,{type:"danger",duration:this.data.duration}),this.$update(function(t){t.messages.unshift(e)});var t=this.clear.bind(this,e);return-1!==e.duration&&this.$timeout(t,e.duration),e.isNeedChange?{changeMsgFn:this.changeMsg.bind(this),clearFn:this.clearMsg.bind(this)}:t},show:function(e){return this._clearTotal(),this.notify(e)},clear:function(e){for(var t=this.data.messages,n=t.length;n--;)e===t[n]&&t.splice(n,1);this.$update()},clearMsg:function(e){for(var t=this.data.messages,n=t.length;n--;)e===t[n].message&&t.splice(n,1);this.$update()},changeMsg:function(e,t){for(var n=this.data.messages,i=n.length;i--;)e==n[i].message&&(n[i].message=t);this.$update()},clearInxMsg:function(e){this.data.messages.splice(e,1),this.$update()},_clearTotal:function(){this.data.messages=[]}}).use("$timeout");if(!i.isServer)var o=new a({});e.exports=function(){return o.notify.apply(o,arguments)}},function(t,n,i){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,a){try{var o=t[r](a),s=o.value}catch(c){return void n(c)}if(!o.done)return Promise.resolve(s).then(function(e){i("next",e)},function(e){i("throw",e)});e(s)}("next")})}}var a=i(4),o=i(14),s=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.currentStream=null,this.devices=[],this.virtualKeywords=[/vcam/i,/360/i,/virtual/i,/softcam/i,/obs/i,/droidcam/i,/screen/i],this._disconnectCallbacks=new Set,this._boundOnDeviceDisconnect=this._onDeviceDisconnect.bind(this),this.isInitChangeEvent=!1,this.currentDeviceId=this._loadPersistedDeviceId(),this.initializePromise=null,this._setupInitMediaGet(),"undefined"==typeof MediaStreamTrack.prototype.getCapabilities&&(MediaStreamTrack.prototype.getCapabilities=function(){return{facingMode:this._settings&&this._settings.facingMode?[this._settings.facingMode]:[]}})}return t.prototype.addDisconnectListener=function(e){var t=this;return"function"==typeof e&&this._disconnectCallbacks.add(e),function(){return t.removeDisconnectListener(e)}},t.prototype.removeDisconnectListener=function(e){this._disconnectCallbacks["delete"](e)},t.prototype.initialize=function(){var e=r(regeneratorRuntime.mark(function t(e){var n,i,r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.initializePromise){t.next=3;break}return t.next=3,this.initializePromise;case 3:if(r||!this.currentStream){t.next=5;break}return t.abrupt("return",this.currentStream.clone());case 5:return n=null,this.initializePromise=new Promise(function(e,t){n=e}),t.next=9,this._cleanup();case 9:if(this._isMobile()){t.next=13;break}return t.next=12,this._updateDeviceList();case 12:this.currentDeviceId&&!this._isValidDevice(this.currentDeviceId)&&(this.currentDeviceId=null);case 13:return t.prev=13,i=r&&Object.keys(r).length>0?r:this._buildConstraints(),t.next=17,navigator.mediaDevices.getUserMedia(i);case 17:if(this.currentStream=t.sent,!this._isMobile()){t.next=21;break}return t.next=21,this._updateDeviceList();case 21:return this._addDisconnectListeners(),this._setupEventListeners(),this._attachToVideo(e),this._persistDeviceId(),n(),t.abrupt("return",this.currentStream.clone());case 29:return t.prev=29,t.t0=t["catch"](13),n(),console.log("init error: ",t.t0),t.abrupt("return",this._handleInitError(t.t0,e));case 34:case"end":return t.stop()}},t,this,[[13,29]])}));return function(t){return e.apply(this,arguments)}}(),t.prototype.switchDeviceIdCamera=function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return this.currentDeviceId=e,t.abrupt("return",this.initialize("",{}));case 4:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),t.prototype.switchCamera=function(){var e=r(regeneratorRuntime.mark(function t(e){var n,i,r,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.devices.length<2)){t.next=2;break}return t.abrupt("return");case 2:if(n=this.currentStream&&this.currentStream.getVideoTracks&&this.currentStream.getVideoTracks()[0],i=this._getCurrentFacingMode(n),!this._isMobile()){t.next=10;break}return r="user"===i?"environment":"user",this.currentStream&&this.currentStream.getTracks().forEach(function(e){return e.stop()}),t.abrupt("return",this.initialize(e,{video:{facingMode:r}}));case 10:if(!(a=this._getNextDevice(i))){t.next=14;break}return this.currentDeviceId=a.deviceId,t.abrupt("return",this.initialize(e,{}));case 14:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),t.prototype.getValidDevices=function(){var e=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._updateDeviceList();case 2:return e.abrupt("return",this.devices);case 3:case"end":return e.stop()}},t,this)}));return function(){return e.apply(this,arguments)}}(),t.prototype.stop=function(){var e=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._cleanup();case 2:this.currentDeviceId=null;case 3:case"end":return e.stop()}},t,this)}));return function(){return e.apply(this,arguments)}}(),t.prototype._addDisconnectListeners=function(){var e=this;this.currentStream&&this.currentStream.getVideoTracks().forEach(function(t){t.addEventListener("ended",e._boundOnDeviceDisconnect)})},t.prototype._removeDisconnectListeners=function(){var e=this;this.currentStream&&this.currentStream.getVideoTracks().forEach(function(t){t.removeEventListener("ended",e._boundOnDeviceDisconnect)})},t.prototype._onDeviceDisconnect=function(){var e=this;this._removeDisconnectListeners(),this.currentDeviceId=null,localStorage.removeItem("cameraDeviceId"),this.currentStream=null,this._updateDeviceList()["finally"](function(){e._triggerDisconnectCallbacks({type:"camera_disconnected",message:"camera not available",manager:e})})},t.prototype._triggerDisconnectCallbacks=function(e){this._disconnectCallbacks.forEach(function(t){try{t(e)}catch(n){console.error("disconnet error:",n)}})},t.prototype._setupInitMediaGet=function(){navigator.mediaDevices===undefined&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===undefined&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise(function(n,i){t.call(navigator,e,n,i)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))})},t.prototype._cleanup=function(){var e=r(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this._removeDisconnectListeners(),this.currentStream&&(this.currentStream.getTracks().forEach(function(e){return e.stop()}),this.currentStream=null);case 2:case"end":return e.stop()}},t,this)}));return function(){return e.apply(this,arguments)}}(),t.prototype._buildConstraints=function(){var e={video:{}};return this.currentDeviceId?e.video.deviceId={exact:this.currentDeviceId}:e.video.facingMode=this._preferredFacingMode(),e},t.prototype._updateDeviceList=function(){var e=r(regeneratorRuntime.mark(function t(){var e,n=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.mediaDevices.enumerateDevices();case 2:e=t.sent,this.devices=e.filter(function(e){return"videoinput"===e.kind}).filter(function(e){return!n._isVirtualCamera(e)}).map(function(e){return Object.assign(e,{capabilities:n._getDeviceCapabilities(e)})});case 4:case"end":return t.stop()}},t,this)}));return function(){return e.apply(this,arguments)}}(),t.prototype._isVirtualCamera=function(e){return!!e.label&&this.virtualKeywords.some(function(t){return t.test(e.label)})},t.prototype._getDeviceCapabilities=function(e){if(!e.getCapabilities)return{};var t=e.getCapabilities();return t||{}},t.prototype._getCurrentFacingMode=function(e){if(!e||!e.getCapabilities)return null;var t=e.getCapabilities();return t.facingMode&&t.facingMode[0]},t.prototype._findOppositeFacingDevice=function(e){for(var t="user"===e?"environment":"user",n=0;no||e<-o}var c=[],l=[],u=i.create(),d=Math.abs,h=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||i.create(),t?this.getLocalTransform(n):a(n),e&&(t?i.mul(n,e,n):i.copy(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(a(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(c);var n=c[0]<0?-1:1,r=c[1]<0?-1:1,a=((c[0]-n)*t+n)/c[0]||0,o=((c[1]-r)*t+r)/c[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(i.mul(l,e.invTransform,t),t=l);var n=this.originX,r=this.originY;(n||r)&&(u[4]=n,u[5]=r,i.mul(l,t,u),l[4]-=n,l[5]-=r,t=l),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&r.applyTransform(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&d(e[0]-1)>1e-10&&d(e[3]-1)>1e-10?Math.sqrt(d(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,c=e.anchorY,l=e.rotation||0,u=e.x,d=e.y,h=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||s||c){var p=n+s,g=r+c;t[4]=-p*a-h*g*o,t[5]=-g*o-f*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=f*a,t[2]=h*o,l&&i.rotate(t,t,l),t[4]+=n+u,t[5]+=r+d,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;n1){var u=c.shift();1===c.length&&(n[s]=c[0]),this._update&&this._update(u,o)}else 1===l?(n[s]=null,this._update&&this._update(c,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var s=0;s1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[c]=null;else if(1===d&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[c]=null;else if(1===d&&1===h)this._update&&this._update(u,l),r[c]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[c]=null;else if(d>1)for(var f=0;f1)for(var s=0;s=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(r.g)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&c(n=n.slice(),i.count()),Object(r.m)(e,o,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&c(n=n.slice(),i.count());var a=Object(r.m)(e,n,o,t);return this.scale.scale(a)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=Object(a.c)(this,t).ticks,o=Object(i.map)(n,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,a){var o=t.length;if(!e.onBand||n||!o)return;var s,c,l=e.getExtent();if(1===o)t[0].coord=l[0],s=t[1]={coord:l[1]};else{var u=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/u;Object(i.each)(t,function(e){e.coord-=d/2});var h=e.scale.getExtent();c=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*c},t.push(s)}var f=l[0]>l[1];p(t[0].coord,l[0])&&(a?t[0].coord=l[0]:t.shift());a&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]});p(l[1],s.coord)&&(a?s.coord=l[1]:t.pop());a&&p(s.coord,l[1])&&t.push({coord:l[1]});function p(e,t){return e=Object(r.w)(e),t=Object(r.w)(t),f?e>t:e0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(i.map)(t,function(e){return Object(i.map)(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return Object(a.b)(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Object(a.a)(this)},e}();function c(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}t.a=s},function(e,t,n){"use strict";var i=n(0),r=n(6),a=n(22),o=n(20),s=n(38),c=n(8),l=n(43),u=n(46),d=n(27),h=n(76),f=n(313),p=Math.PI,g=function(){function e(e,t){this.group=new r.Group,this.opt=t,this.axisModel=e,Object(i.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new r.Group({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!m[e]},e.prototype.add=function(e){m[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,a=Object(c.v)(t-e);return Object(c.l)(a)?(r=n>0?"top":"bottom",i="center"):Object(c.l)(a-p)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),m={axisLine:function(e,t,n,a){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var s=t.axis.getExtent(),c=a.transform,u=[s[0],0],h=[s[1],0],f=u[0]>h[0];c&&(Object(d.applyTransform)(u,u,c),Object(d.applyTransform)(h,h,c));var p=Object(i.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),g=new r.Line({shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:p,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});r.subPixelOptimizeLine(g.shape,g.style.lineWidth),g.anid="line",n.add(g);var m=t.get(["axisLine","symbol"]);if(null!=m){var v=t.get(["axisLine","symbolSize"]);Object(i.isString)(m)&&(m=[m,m]),(Object(i.isString)(v)||Object(i.isNumber)(v))&&(v=[v,v]);var A=Object(l.b)(t.get(["axisLine","symbolOffset"])||0,v),y=v[0],b=v[1];Object(i.each)([{rotate:e.rotation+Math.PI/2,offset:A[0],r:0},{rotate:e.rotation-Math.PI/2,offset:A[1],r:Math.sqrt((u[0]-h[0])*(u[0]-h[0])+(u[1]-h[1])*(u[1]-h[1]))}],function(t,i){if("none"!==m[i]&&null!=m[i]){var r=Object(l.a)(m[i],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?h:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(e,t,n,c){var l=function(e,t,n,r){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");"auto"===s&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick"));if(!s||a.scale.isBlank())return;for(var c=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=b(a.getTicksCoords(),t.transform,l,Object(i.defaults)(c.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;dA[1]?-1:1,x=["start"===h?A[0]-b*v:"end"===h?A[1]+b*v:(A[0]+A[1])/2,y(h)?e.labelOffset+f*v:0],w=t.get("nameRotate");null!=w&&(w=w*p/180),y(h)?u=g.innerTextLayout(e.rotation,null!=w?w:e.rotation,f):(u=function(e,t,n,i){var r,a,o=Object(c.v)(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;Object(c.l)(o-p/2)?(a=l?"bottom":"top",r="center"):Object(c.l)(o-1.5*p)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*p&&o>p/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(e.rotation,h,w||0,A),null!=(d=e.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(u.rotation)),!isFinite(d)&&(d=null)));var _=m.getFont(),S=t.get("nameTruncate",!0)||{},T=S.ellipsis,C=Object(i.retrieve)(e.nameTruncateMaxWidth,S.maxWidth,d),k=new r.Text({x:x[0],y:x[1],rotation:u.rotation,silent:g.isLabelSilent(t),style:Object(o.c)(m,{text:l,font:_,overflow:"truncate",width:C,ellipsis:T,fill:m.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:m.get("align")||u.textAlign,verticalAlign:m.get("verticalAlign")||u.textVerticalAlign}),z2:1});if(r.setTooltipConfig({el:k,componentModel:t,itemName:l}),k.__fullText=l,k.anid="name",t.get("triggerEvent")){var O=g.makeAxisEventDataBase(t);O.targetType="axisName",O.name=l,Object(a.a)(k).eventData=O}s.add(k),k.updateTransform(),n.add(k),k.decomposeTransform()}}};function v(e){e&&(e.ignore=!0)}function A(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=u.identity([]);return u.rotate(r,r,-e.rotation),n.applyTransform(u.mul([],r,e.getLocalTransform())),i.applyTransform(u.mul([],r,t.getLocalTransform())),n.intersect(i)}}function y(e){return"middle"===e||"center"===e}function b(e,t,n,i,a){for(var o=[],s=[],c=[],l=0;l=0){var r=n.getData().tree.root,a=e.targetNode;if(i.isString(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=e.targetNodeId;if(null!=o&&(a=r.getNodeById(o)))return{node:a}}},t.b=r,t.a=function(e,t){var n=r(e);return i.indexOf(n,t)>=0},t.d=function(e,t){var n=[];for(;e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n};var i=n(0);function r(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(338),r=n(249);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(73),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t,n){var i=n(13),r=n(339),a=n(249),o=n(248)("IE_PROTO"),s=function(){},c=function(){var e,t=n(246)("iframe"),i=a.length;for(t.style.display="none",n(250).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("