|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[138,5,6,7,9,11,14],{"1vsH":function(dt,ge,$){"use strict";$.d(ge,"i",function(){return h}),$.d(ge,"m",function(){return E}),$.d(ge,"e",function(){return _}),$.d(ge,"h",function(){return v}),$.d(ge,"c",function(){return D}),$.d(ge,"f",function(){return R}),$.d(ge,"g",function(){return y}),$.d(ge,"a",function(){return U}),$.d(ge,"F",function(){return W}),$.d(ge,"E",function(){return k}),$.d(ge,"G",function(){return V}),$.d(ge,"H",function(){return G}),$.d(ge,"u",function(){return H}),$.d(ge,"t",function(){return ne}),$.d(ge,"r",function(){return X}),$.d(ge,"q",function(){return ie}),$.d(ge,"C",function(){return Z}),$.d(ge,"l",function(){return B}),$.d(ge,"k",function(){return z}),$.d(ge,"B",function(){return Y}),$.d(ge,"w",function(){return J}),$.d(ge,"n",function(){return fe}),$.d(ge,"z",function(){return _e}),$.d(ge,"p",function(){return te}),$.d(ge,"d",function(){return ee}),$.d(ge,"b",function(){return se}),$.d(ge,"v",function(){return q}),$.d(ge,"A",function(){return re}),$.d(ge,"y",function(){return he}),$.d(ge,"o",function(){return C}),$.d(ge,"x",function(){return n}),$.d(ge,"s",function(){return O}),$.d(ge,"j",function(){return b}),$.d(ge,"D",function(){return x});var Ue=$("sRBo"),ue=$("kaz8"),pe=$("WmNS"),t=$.n(pe),i=$("14J3"),S=$("BMrR"),m=$("jCWc"),g=$("kPKH"),o=$("2qtc"),l=$("kLXV"),p=$("9og8"),u=$("jrin"),e=$("q1tI"),a=$.n(e),r=$("xKgJ"),d=$("s8TD"),f=$("V0Rq"),c=$("bntm"),A=$("aCH8"),w=$.n(A),h=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],P=function(T){var Q={\u5DF2\u622A\u6B62:{class:"tag-style bg-pink ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"}};return T.data&&T.data.map(function(ae,de){return a.a.createElement("span",{key:de,className:Q[ae]&&Q[ae].class},ae)})},E=function(T){var Q,ae=(Q={},Object(u.a)(Q,-1,"\u91CD\u505A\u4E2D"),Object(u.a)(Q,0,"\u672A\u5F00\u542F"),Object(u.a)(Q,1,"\u672A\u901A\u5173"),Object(u.a)(Q,2,"\u6309\u65F6\u901A\u5173"),Q);return ae[T]||"\u8FDF\u4EA4\u901A\u5173"},_=function(T){var Q,ae,de,me=(Q={},Object(u.a)(Q,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(u.a)(Q,0,{name:"\u672A\u5F00\u542F",class:"c-black"}),Object(u.a)(Q,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(u.a)(Q,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(u.a)(Q,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Q);return a.a.createElement("span",{className:me==null||((ae=me[T.status])===null||ae===void 0)?void 0:ae.class},me==null||((de=me[T.status])===null||de===void 0)?void 0:de.name)},v=function(T){var Q=T.status,ae={0:{class:"tag-style bg-blue ml10",name:"\u5F85\u9009\u4E2D"},1:{class:"tag-style bg-blue ml10",name:"\u5F85\u786E\u8BA4"},2:{class:"tag-style bg-pink ml10",name:"\u5DF2\u786E\u8BA4"}};try{return a.a.createElement("span",{className:ae[Q].class},ae[Q].name)}catch(de){console.log("utils.StatusGraduationProjectTags",T.status)}},D={1:"\u672A\u53D1\u5E03",2:"\u8003\u8BD5\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},R={1:"\u672A\u53D1\u5E03",2:"\u63D0\u4EA4\u4E2D",3:"\u5DF2\u622A\u6B62",4:"\u5DF2\u7ED3\u675F"},y=function(T){var Q={\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A:{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},\u516C\u5F00:{class:"tag-style bg-blue ml10"},\u5DF2\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-green ml10"},\u672A\u5F00\u542F\u8865\u4EA4:{class:"tag-style bg-pink ml10"},\u672A\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u533F\u540D\u4F5C\u54C1:{class:"tag-style bg-cyan ml10"},\u5DF2\u9009\u62E9:{class:"tag-style bg-grey-ede ml10"},\u5DF2\u7ED3\u675F:{class:"tag-style bg-grey-ede ml10"},\u63D0\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u533F\u8BC4\u4E2D:{class:"tag-style bg-blue ml10"},\u7533\u8BC9\u4E2D:{class:"tag-style bg-blue ml10"},\u8003\u8BD5\u4E2D:{class:"tag-style bg-light-blue ml10"},\u8865\u4EA4\u4E2D:{class:"tag-style bg-blue ml10"},\u8BC4\u9605\u4E2D:{class:"tag-style bg-blue ml10"},\u5F85\u9009\u4E2D:{class:"tag-style bg-blue ml10"},\u4EA4\u53C9\u8BC4\u9605\u4E2D:{class:"tag-style bg-light-orange ml10"},\u5DF2\u5F00\u542F\u4EA4\u53C9\u8BC4\u9605:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u786E\u8BA4:{class:"tag-style bg-lightblue-purple ml10"},\u5F85\u5904\u7406:{class:"tag-style bg-lightblue-purple ml10"},\u79C1\u6709:{class:"tag-style bg-lightblue-purple ml10"},\u672A\u63D0\u4EA4:{class:"tag-style bg-lightblue-purple ml10"},\u5DF2\u786E\u8BA4:{class:"tag-style bg-light-pink ml10"},\u5DF2\u53D1\u5E03:{class:"tag-style bg-light-blue ml10"},\u5DF2\u622A\u6B62:{class:"tag-style bg-light-pink ml10"},\u5F00\u53D1\u8BFE\u7A0B:{class:"tag-style bg-orange ml10"},\u5DF2\u5F00\u64AD:{class:"tag-style-border border-green c-green ml10"},\u672A\u5F00\u64AD:{class:"tag-style-border border-light-black ml10"},\u6309\u65F6\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u8FDF\u4EA4\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u901A\u5173:{class:"tag-style-border border-light-black ml10"},\u672A\u5F00\u542F:{class:"tag-style-border border-light-black ml10"}},ae=[];T.is_random&&ae.push(a.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968F\u673A"));try{T.status&&T.status.map(function(de,me){ae.push(a.a.createElement("span",{key:me,className:Q[de]&&Q[de].class},de))})}catch(de){console.log("utils.status.tag:",de,T.status)}return ae},j=function(T){var Q,ae,de,me=(Q={},Object(u.a)(Q,-1,{name:"\u91CD\u505A\u4E2D",class:"c-orange"}),Object(u.a)(Q,0,{name:"\u672A\u63D0\u4EA4",class:"c-black"}),Object(u.a)(Q,1,{name:"\u672A\u901A\u5173",class:"c-red"}),Object(u.a)(Q,2,{name:"\u6309\u65F6\u901A\u5173",class:"c-green"}),Object(u.a)(Q,3,{name:"\u8FDF\u4EA4\u901A\u5173",class:"c-orange"}),Q);return a.a.createElement("span",{className:(ae=me[T.status])===null||ae===void 0?void 0:ae.class},(de=me[T.status])===null||de===void 0?void 0:de.name)},U=function(T){var Q,ae,de={0:{name:"\u672A\u63D0\u4EA4",class:"c-black"},1:{name:"\u6309\u65F6\u63D0\u4EA4",class:"c-green"},2:{name:"\u5EF6\u65F6\u63D0\u4EA4",class:"c-red"}};return a.a.createElement("span",{className:(Q=de[T.status])===null||Q===void 0?void 0:Q.class},(ae=de[T.status])===null||ae===void 0?void 0:ae.name)},W=function(T){T=new Date(T).getTime();var Q=1e3*60,ae=Q*60,de=ae*24,me="",be=new Date().getTime(),xe=be-T;if(xe<0)return console.log("\u65F6\u95F4\u4E0D\u5BF9\u52B2,\u670D\u52A1\u5668\u521B\u5EFA\u65F6\u95F4\u4E0E\u5F53\u524D\u65F6\u95F4\u4E0D\u540C\u6B65"),me="\u521A\u521A";var le=parseInt(xe/de,10),Fe=parseInt(xe/ae,10),Ie=parseInt(xe/Q,10);return le>30?me=""+k(T,"yyyy-MM-dd"):le>1?me=""+le+"\u5929\u524D":le==1?me="\u6628\u5929":Fe>=1?me=""+Fe+"\u5C0F\u65F6\u524D":Ie>=5?me=""+Ie+"\u5206\u949F\u524D":me="\u521A\u521A",me},k=function(T,Q){typeof T=="string"&&(T.indexOf("T")>=0&&(T=T.replace("T"," ")),T=new Date(Date.parse(T.replace(/-/g,"/")))),T=new Date(T);var ae={"M+":T.getMonth()+1,"d+":T.getDate(),"h+":T.getHours(),"m+":T.getMinutes(),"s+":T.getSeconds(),"q+":Math.floor((T.getMonth()+3)/3),S:T.getMilliseconds()},de=[["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]];/(y+)/.test(Q)&&(Q=Q.replace(RegExp.$1,(T.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(Q)&&(Q=Q.replace(RegExp.$1,de[RegExp.$1.length-1][T.getDay()]));for(var me in ae)new RegExp("("+me+")").test(Q)&&(Q=Q.replace(RegExp.$1,RegExp.$1.length==1?ae[me]:("00"+ae[me]).substr((""+ae[me]).length)));return Q},V=function(T){if(!T||T<0)return"0\u79D2";console.log("time:",T);var Q=60,ae=Q*60,de=ae*24,me=T/de,be=T/ae,xe=T/Q,le=T%60;return me>=1?parseInt(me.toString())+"\u5929"+Math.floor(be%24)+"\u65F6"+Math.floor(xe%60)+"\u5206"+Math.floor(T%60)+"\u79D2":be>1?parseInt(be.toString())+"\u65F6"+Math.floor(xe%60)+"\u5206"+Math.floor(T%60)+"\u79D2":xe>=1?parseInt(xe.toString())+"\u5206"+Math.floor(T%60)+"\u79D2":Math.ceil(T)+"\u79D2"},G=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,ae=0;if(T){ae=T.length;for(var de=0;de<ae;de++){var me=T.charCodeAt(de);me>=55296&&me<=56319&&(ae--,de++)}}return ae<=Q},H=function(T,Q,ae){if(Q){var de=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、]/im,me=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,be=me.test(Q),xe=de.test(Q);(be===!0||xe===!0||(Q.length<2||Q.length>=21))&&ae("2-20\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57\u53CA\u4E0B\u5212\u7EBF")}ae()},ne=function(T,Q,ae){if(Q){var de=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&()——\-+={}|《》?:“”【】、;‘’,。、]/im,me=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/ig,be=me.test(Q),xe=de.test(Q);(be===!0||xe===!0||(Q.length<2||Q.length>=11))&&ae("2-10\u4F4D\u4E2D\u82F1\u6587\u3001\u6570\u5B57")}ae()},X=function(T){if(!T)return"";for(var Q=T.length-1,ae="",de=0;de<Q;de++)ae+="*";var me=T.substr(0,1)+ae;return me},ie=function(T,Q){var ae=new FileReader;ae.addEventListener("load",function(){return Q(ae.result)}),ae.readAsDataURL(T)};function Z(F){var T="79e33abd4b6588941ab7622aed1e67e8";return w()(T+F)}var K=function(T){var Q,ae=RegExp("(^| )"+T+"=([^;]+)(;|$)");return(Q=document.cookie.match(ae))?decodeURIComponent(Q[2]):null};function M(F,T,Q){var ae=new Date;ae.setTime(ae.getTime()+Q*24*60*60*1e3);var de="expires="+ae.toUTCString();document.cookie=F+"="+T+"; "+de}var I=function(T){document.cookie=T+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function B(F,T){var Q=document.createElement("a");document.body.appendChild(Q),Q.href=T,Q.download=F;var ae=document.createEvent("MouseEvents");ae.initEvent("click",!1,!1),Q.dispatchEvent(ae),document.body.removeChild(Q)}function z(F,T){return new Promise(function(Q,ae){var de=T,me=document.createElement("iframe"),be;console.log("downloadFileUrl",de),document.body.appendChild(me),me.src=de,me.style.display="none",be=setInterval(function(){K("fileDownload")&&(I("fileDownload"),clearInterval(be),Q())},1e3)})}var Y=function(T){var Q=T.url,ae=T.query;return Q?(ae&&function(){var de=[],me=function(le){ae.hasOwnProperty(le)&&!n(ae[le])&&(typeof ae[le]=="object"?ae[le].map(function(Fe){de.push("".concat(le,"[]=").concat(Fe))}):de.push("".concat(le,"=").concat(ae[le])))};for(var be in ae)me(be);Q.indexOf("?")!==-1?Q="".concat(Q,"&").concat(de.join("&")):Q="".concat(Q,"?").concat(de.join("&")),console.log("url1111",Q)}(),Q):""};function J(){for(var F=navigator.userAgent,T=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],Q=!0,ae=0;ae<T.length;ae++)if(F.indexOf(T[ae])>0){Q=!1;break}return Q}function ce(){var F=navigator.userAgent,T=["Chrome"];return T.some(function(Q){return F.indexOf(Q)>-1})}function oe(){var F=navigator.userAgent,T=["Chrome","Firefox"];return T.some(function(Q){return F.indexOf(Q)>-1})}var fe=function(){var T,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Q==null||((T=Q.toString())===null||T===void 0)?void 0:T.replace(/\B(?=(\d{3})+(?!\d))/g,",")},_e=function(T){var Q=document.createElement("a");Q.target="_blank",document.body.appendChild(Q),Q.href=T;var ae=document.createEvent("MouseEvents");ae.initEvent("click",!1,!1),Q.dispatchEvent(ae),document.body.removeChild(Q)},te=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return T.length<=6?T:"".concat(T.substring(0,3),"...").concat(T.substring(T.length-3,T.length))},ee=function(){var T=new Date().getHours(),Q=new Date().getMinutes();return Q>=30?(T++,Q="00"):Q="30",T+":"+Q},se=function(){var T=new Date().getHours(),Q=new Date().getMinutes();return Q>=30?(T++,Q="00"):Q="30",new Date().toLocaleDateString().replace(/\//g,"-")+" "+T+":"+Q},L;(function(F){F.Number="Number",F.String="String",F.Boolean="Boolean",F.Object="Object",F.Array="Array",F.Function="Function"})(L||(L={}));var N=function(T){var Q=Object.prototype.toString.call(T);return Q.substring(8,Q.length-1)},q=function(T){return N(T)===L.Array?T.length===0:N(T)===L.Object?Object.keys(T).length===0:!T},re=function(T,Q){for(var ae=[],de=T;de<Q;de++)ae.push(de);return ae},he=function(T){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:12,ae=Q/2-2,de=Q/2+3;return T.length>Q?T.substr(0,ae)+"..."+T.substr(de,Q):T},C=function(T){return T>4.5?5:T>4&&T<=4.5?4.5:T>3.5&&T<=4?4:T>3&&T<=3.5?3.5:T>2.5&&T<=3?3:T>2&&T<=2.5?2.5:T>1.5&&T<=2?2:T>1&&T<=1.5?1.5:T>.5&&T<=1?1:T>0&&T<=.5?.5:0},n=function(T){return T==null};function s(F,T){var Q=new RegExp("(^|&)".concat(F,"=([^&]*)(&|$)"),"i"),ae=T.substr(1).match(Q);return ae!=null?decodeURIComponent(ae[2]):null}var O=function(T){switch(T.container_type){case"ApplyUserAuthentication":if(T.tiding_type==="Apply"){if(T.auth_type===1)return window.open("/admins/identity_authentications");if(T.auth_type===2)return window.open("/admins/professional_authentications")}return T.tiding_type==="System"?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return T.tiding_type==="Apply"?window.open("/admins/department_applies"):T.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAddSchools":return T.tiding_type==="Apply"?window.open("/admins/unit_applies"):T.tiding_type==="System"?window.open("/account/profile"):void 0;case"ApplyAction":switch(T.parent_container_type){case"ApplyShixun":if(T.tiding_type==="Apply")return window.open("/admins/shixun_authorizations");if(T.tiding_type==="System")return window.open("/shixuns/".concat(T.identifier,"/challenges"));case"ApplySubject":if(T.tiding_type==="Apply")return window.open("/admins/subject_authorizations");if(T.tiding_type==="System")return window.open("/paths/".concat(T.parent_container_id));case"TrialAuthorization":if(T.tiding_type==="Apply")return window.open("/managements/trial_authorization");if(T.tiding_type==="System")return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(T.belong_container_id,"/teachers"));case"StudentJoinCourse":if(T.tiding_type==="Apply")return window.open("/classrooms/".concat(T.belong_container_id,"/teachers"));if(T.tiding_type==="System")return window.open("/classrooms/".concat(T.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/"));case"Course":return T.tiding_type==="Delete"?void 0:window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(T.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(T.container_id));case"JournalsForMessage":switch(T.parent_container_type){case"Principal":return"";case"HomeworkCommon":return T.homework_type==="normal"?window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/question")):T.homework_type==="group"?window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/question")):T.homework_type==="practice"?window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_topics/").concat(T.parent_container_id,"/detail"));case"StudentWorksScore":return T.homework_type==="normal"?window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/question")):T.homework_type==="group"?window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/question")):T.homework_type==="practice"?window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(T.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(T.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(T.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(T.container_id));case"DealProject":return window.open("/projects/".concat(T.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(T.container_id));case"Poll":switch(T.parent_container_type){case"CommitPoll":return window.open(" /classrooms/".concat(T.belong_container_id,"/poll/").concat(T.container_id,"/detail"));default:return window.open(" /classrooms/".concat(T.belong_container_id,"/poll/").concat(T.container_id,"/detail"))}case"Exercise":switch(T.parent_container_type){case"CommitExercise":return window.open(" /classrooms/".concat(T.belong_container_id,"/exercise/").concat(T.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open(" /classrooms/".concat(T.belong_container_id,"/exercise/").concat(T.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(T.belong_container_id,"/exercise/").concat(T.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_topics/").concat(T.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_topics/").concat(T.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_tasks/").concat(T.container_id));case"GraduationWork":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_tasks/").concat(T.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(T.belong_container_id,"/graduation_tasks/").concat(T.parent_container_id));case"HomeworkCommon":switch(T.parent_container_type){case"AnonymousCommentFail":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="practice")return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="practice")return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="practice")return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=0"));default:if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/detail"));if(T.homework_type==="practice")return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/review/").concat(T.container_id));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/review/").concat(T.container_id));if(T.homework_type==="practice")return window.open("/classrooms/".concat(T.belong_container_id,"/shixun_homework/").concat(T.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.trigger_user.id,"/review/").concat(T.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.trigger_user.id,"/review/").concat(T.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(T.parent_container_id));case"Issue":return window.open("/issues/".concat(T.container_id));case"PullRequest":return window.open("/projects/".concat(T.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if(T.tiding_type==="Apply")return window.open("/admins/library_applies");if(T.tiding_type==="System")return window.open("/moop_cases/".concat(T.container_id));case"ProjectPackage":return T.tiding_type==="Destroyed"||T.tiding_type==="Destroyed_end"?void 0:T.tiding_type==="Apply"?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(T.container_id));case"Discuss":return T.parent_container_type==="Hack"&&T.extra?window.open("/myproblems/".concat(T.extra,"/comment")):window.open("/shixuns/".concat(T.identifier,"/shixun_discuss"));case"Video":if(T.tiding_type==="Apply")return window.open("/admins/video_applies");if(T.tiding_type==="System"){var Q;return window.open("/users/".concat((Q=Object(r.t)())===null||Q===void 0?void 0:Q.login,"/videos"))}return"";case"PublicCourseStart":return window.open("/classrooms/".concat(T.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(T.container_id));case"ResubmitStudentWork":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id,"/").concat(T.container_id,"/appraise"));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id,"/").concat(T.container_id,"/appraise"));case"AdjustScore":if(T.homework_type==="normal")return window.open("/classrooms/".concat(T.belong_container_id,"/common_homework/").concat(T.parent_container_id));if(T.homework_type==="group")return window.open("/classrooms/".concat(T.belong_container_id,"/group_homework/").concat(T.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(T.belong_container_id,"/course_videos?open=live"));case"Hack":if(T.extra&&T.parent_container_type!=="HackDelete")return window.open("/problems/".concat(T.extra,"/edit"));default:return}},b=function(T){var Q,ae;return new Promise(function(){var de=Object(p.a)(t.a.mark(function me(be,xe){var le;return t.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!(T.ip_limit==="inner")){Ie.next=4;break}return Ie.next=3,Object(d.a)({ip_limit:T==null?void 0:T.ip_limit});case 3:Q=Ie.sent;case 4:return Ie.next=6,Object(f.e)({id:T.exerciseId,ip:Q});case 6:if(le=Ie.sent,le.status===0?be(le):xe(le),!T.errmsgHide){Ie.next=10;break}return Ie.abrupt("return",!0);case 10:if(!(le.status===-1)){Ie.next=15;break}return ae=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u63D0\u793A"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ae.destroy()}}))),icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),okText:"\u6211\u77E5\u9053\u4E86"}),Ie.abrupt("return",!1);case 15:if(!(le.status===-2)){Ie.next=18;break}return ae=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u63D0\u793A"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ae.destroy()}}))),icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",a.a.createElement("span",{className:"c-red"},le.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),okText:"\u6211\u77E5\u9053\u4E86"}),Ie.abrupt("return",!1);case 18:case"end":return Ie.stop()}},me)}));return function(me,be){return de.apply(this,arguments)}}())},x=function(){var F=Object(p.a)(t.a.mark(function T(Q){var ae;return t.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(!(Q.ip_limit!=="no")){me.next=4;break}return me.next=3,b(Q);case 3:ce()||l.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:a.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3002",a.a.createElement("br",null),"\u8BF7\u4F7F\u7528",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")});case 4:if(!(Q.open_camera||Q.screen_open)){me.next=12;break}if(oe()){me.next=9;break}return l.a.info({icon:null,okText:"\u786E\u5B9A",width:500,content:a.a.createElement("div",{className:"font16"},"\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u4EC5\u652F\u6301",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",a.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u3002",a.a.createElement("br",null),"\u8BF7\u4F7F\u7528",a.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C"),"\u3001",a.a.createElement("span",{className:"c-red"},"\u706B\u72D0"),"\u6D4F\u89C8\u5668\u5F00\u59CB\u8003\u8BD5\u3002")}),me.abrupt("return",!1);case 9:ae=l.a.info({title:a.a.createElement(S.a,null,a.a.createElement(g.a,{flex:"1"},"\u8003\u8BD5\u8BF4\u660E"),a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return ae.destroy()}}))),width:700,icon:null,className:"custom-modal-divider",content:a.a.createElement("div",{className:"font16 p20"},Q.open_camera&&a.a.createElement(S.a,{align:"middle",justify:"start",className:"mt20"},a.a.createElement(g.a,null,a.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),a.a.createElement(g.a,null,"\u8FDB\u5165\u8003\u8BD5\u540E\uFF0C\u8BF7\u5141\u8BB8\u6444\u50CF\u5934\u6388\u6743\uFF0C\u6388\u6743\u540E\u6253\u5F00\u6444\u50CF\u5934\u65B9\u53EF\u4F5C\u7B54\uFF01",a.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4459"},"\u65E0\u6CD5\u8C03\u7528\u6444\u50CF\u5934\uFF1F"))),Q.screen_open&&a.a.createElement(S.a,{justify:"start",className:"mt20"},a.a.createElement(g.a,{flex:"24px",className:"mr20"},a.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),a.a.createElement(g.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\uFF0C\u5207\u5C4F\u8D85\u8FC7",Q.screen_num,"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377\u3002\uFF08\u9000\u51FA\u5168\u5C4F\u5C06\u5224\u5B9A\u4E3A\u5207\u5C4F\u4E00\u6B21\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u8BF7\u52FF\u9000\u51FA\u5168\u5C4F\uFF09",a.a.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/4460"},"\u6D4F\u89C8\u5668\u65E0\u6CD5\u81EA\u52A8\u5168\u5C4F\uFF1F"))),Q.ip_bind&&a.a.createElement(S.a,{justify:"start",className:"mt20"},a.a.createElement(g.a,{flex:"24px",className:"mr20"},a.a.createElement("span",{className:"iconfont icon-IP c-blue font24"})),a.a.createElement(g.a,{flex:"1"},"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u8003\u8BD5\u671F\u95F4IP\u7ED1\u5B9A\u3002\u5F53\u60A8\u5F00\u59CB\u8003\u8BD5\u540E\uFF0C\u5C06\u81EA\u52A8\u7ED1\u5B9AIP\uFF0C\u8003\u8BD5\u671F\u95F4\u53EA\u5141\u8BB8\u4F7F\u7528\u552F\u4E00\u7684IP\u8FDB\u5165\u8003\u8BD5\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u5411\u8001\u5E08\u7533\u8BF7\u89E3\u9664IP\u7ED1\u5B9A\u3002")),a.a.createElement("p",{className:"ml40 mt40"},a.a.createElement(ue.a,{onChange:function(xe){return ae.update({okButtonProps:{disabled:!xe.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){var xe;Object(c.d)(document.body),Q.history.push("/classrooms/".concat(Q.coursesId,"/exercise/").concat(Q.exerciseId,"/users/").concat((xe=Object(r.t)())===null||xe===void 0?void 0:xe.login))},okText:"\u8FDB\u5165\u8003\u8BD5",okButtonProps:{disabled:!0}}),me.next=13;break;case 12:Q.history.push("/classrooms/".concat(Q.coursesId,"/exercise/").concat(Q.exerciseId,"/users/").concat(Q.login));case 13:case"end":return me.stop()}},T)}));return function(Q){return F.apply(this,arguments)}}()},"8Bcu":function(dt,ge,$){dt.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK"}},"9Bee":function(dt,ge,$){"use strict";var Ue=$("q1tI"),ue=$.n(Ue),pe=$("vg9a"),t=$("tJVT"),i=$("DlQD"),S=$.n(i),m=$("rUJ1");function g(H,ne){var X=H.match(/^(\s+)(?:```)/);if(X===null)return ne;var ie=X[1];return ne.split(`
|
|
|
`).map(function(Z){var K=Z.match(/^\s+/);if(K===null)return Z;var M=Object(t.a)(K,1),I=M[0];return I.length>=ie.length?Z.slice(ie.length):Z}).join(`
|
|
|
`)}var o=[],l=["<ul>"],p=new S.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){o.length=0,l=["<ul>"]}function a(H,ne,X,ie){if(ne>=H.length||H[ne].level<=X)return ne;var Z=H[ne];ie.push("<li><a href='#"+Z.anchor+"'>"+Z.text+"</a>"),ne++;var K=[];return ne=a(H,ne,Z.level,K),K.length>0&&(ie.push("<ul>"),K.forEach(function(M){ie.push(M)}),ie.push("</ul>")),ie.push("</li>"),ne=a(H,ne,X,ie),ne}function r(){return a(o,0,0,l),l.push("</ul>"),l.join("")}var d={heading:function(ne){var X=u.exec(ne);if(X)return{type:"heading",raw:X[0],depth:X[1].length,text:X[2]}},fences:function(ne){var X=this.rules.block.fences.exec(ne);if(X){var ie=X[0],Z=g(ie,X[3]||""),K=X[2]?X[2].trim():X[2];if(["latex","katex","math"].indexOf(K)>=0){var M=A(),I=Z;Z=M,w[M]={type:"block",expression:I}}return{type:"code",raw:ie,lang:K,text:Z}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,A=function(){return"__special_katext_id_".concat(c++,"__")},w={};function h(){return w}function P(){c=0,w={}}function E(H){return H=H.replace(f,function(ne,X){var ie=A();return w[ie]={type:"inline",expression:X},ie}),H}var _=p.listitem;p.listitem=function(H){return _(E(H))};var v=p.paragraph;p.paragraph=function(H){return v(E(H))};var D=p.tablecell;p.tablecell=function(H,ne){return D(E(H),ne)},p.code=function(H,ne,X){var ie=(ne||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"<p class='editormd-tex'>".concat(H,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(ne,'">').concat(X?H:Object(m.escape)(H,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(X?H:Object(m.escape)(H,!0))+"</code></pre>"},p.heading=function(H,ne,X){var ie=this.options.headerPrefix+X.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:ie,level:ne,text:H}),"<h"+ne+' id="'+ie+'">'+H+"</h"+ne+">"},S.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),S.a.use({tokenizer:d,renderer:p});var R=S.a,y=$("SJMd"),j=$("wMS7"),U=$.n(j),W=$("Oy/b"),k=/<pre[^>]*>/g;function V(H){var ne=document.createElement("div");return ne.innerHTML=H,ne.childNodes.length===0?"":ne.childNodes[0].nodeValue}var G=ge.a=function(H){var ne=H.value,X=ne===void 0?"":ne,ie=H.className,Z=H.style,K=Z===void 0?{}:Z,M=String(X),I=Object(Ue.useMemo)(function(){var Y=R(M),J=h();return M.match(/\[TOC\]/)&&(Y=Y.replace("<p>[TOC]</p>",r()),e()),Y=Y.replace(/(__special_katext_id_\d+__)/g,function(ce,oe){var fe=J[oe],_e=fe.type,te=fe.expression;return Object(W.renderToString)(V(te)||"",{displayMode:_e==="block",throwOnError:!1,output:"html"})}),Y=Y.replace(/▁/g,"\u2581\u2581\u2581"),P(),U.a.sanitize(Y)},[M]),B=Object(Ue.useRef)();function z(Y){var J=Y.target;if(J.tagName.toUpperCase()==="A"){var ce=J.getAttribute("href");if(ce.startsWith("#")){Y.preventDefault();var oe=document.getElementById(ce.replace("#",""));oe&&oe.scrollIntoView(!0)}}}return Object(Ue.useEffect)(function(){if(B.current&&I&&(I.match(k)&&window.PR.prettyPrint()),B.current)return B.current.addEventListener("click",z),function(){B.current.removeEventListener("click",z),P(),e()}},[I,B.current,z]),ue.a.createElement("div",{ref:B,style:K,className:"".concat(ie||""," markdown-body"),dangerouslySetInnerHTML:{__html:I}})}},AZ8Y:function(dt,ge,$){"use strict";$.r(ge);var Ue=$("T2oS"),ue=$("W9HT"),pe=$("PpiC"),t=$("q1tI"),i=$.n(t),S=$("Ty5D"),m=$("9kvl"),g=$("qVdP"),o=$("jsC+"),l=$("lUTK"),p=$("BvKs"),u=$("5Dmo"),e=$("3S7+"),a=$("+L6B"),r=$("2/Rp"),d=$("+BJd"),f=$("mr32"),c=$("pC0b"),A=$("GzdX"),w=$("7Kak"),h=$("9yH6"),P=$("2qtc"),E=$("kLXV"),_=$("WmNS"),v=$.n(_),D=$("miYZ"),R=$("tsqr"),y=$("9og8"),j=$("tJVT"),U=$("0NbB"),W=$("JTSX"),k=$.n(W),V=$("xKgJ"),G=$("Mgx3"),H=$("ozfa"),ne=$("MJZm"),X=$("sRBo"),ie=$("kaz8"),Z=$("14J3"),K=$("BMrR"),M=$("jCWc"),I=$("kPKH"),B=$("k1fw"),z=$("OaEy"),Y=$("2fM7"),J=$("wd/R"),ce=$.n(J),oe=$("kNP/"),fe=$.n(oe),_e=Y.a.Option,te=function(Ce){var Ve=Ce.pathsDetail,We=Ce.globalSetting,nt=Ce.loading,Et=Ce.dispatch,Nt=Object(pe.a)(Ce,["pathsDetail","globalSetting","loading","dispatch"]),mt=Object(S.m)(),Ut=Object(t.useState)(),pt=Object(j.a)(Ut,2),Wt=pt[0],Qt=pt[1],Gt=Object(t.useState)([]),De=Object(j.a)(Gt,2),wt=De[0],gt=De[1],Ht=Object(t.useState)([]),Re=Object(j.a)(Ht,2),Ke=Re[0],kt=Re[1],Kt=Object(t.useState)([]),Xt=Object(j.a)(Kt,2),st=Xt[0],It=Xt[1],Lt=Object(t.useState)(),Ne=Object(j.a)(Lt,2),Le=Ne[0],xt=Ne[1],At=Object(t.useState)(),yt=Object(j.a)(At,2),Pt=yt[0],Tt=yt[1],bt=Object(t.useState)(!0),Ct=Object(j.a)(bt,2),Mt=Ct[0],Dt=Ct[1];Object(t.useEffect)(function(){Ve.actionTabs.key==="PathsDetail-SendToClass"&&Ft()},[Ve.actionTabs.key]);var Ft=function(){var ft=Object(y.a)(v.a.mark(function lt(){var ct,Be,ye;return v.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(G.v)({id:mt.pathId});case 2:ct=Se.sent,ct&&(gt((ct==null?void 0:ct.courses)||[]),ye=(Be=ct.stages)===null||Be===void 0?void 0:Be.map(function(Pe,Me){var Qe;return{title:Pe.state_name||"",key:Me,children:(Qe=Pe.shixuns)===null||Qe===void 0?void 0:Qe.map(function(it,rn){return Object(B.a)(Object(B.a)({},it),{},{title:it.item_type==="Shixun"?it.name:i.a.createElement("span",null,i.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),it.name),key:"".concat(Me,"-").concat(rn)})})}}),kt(ye||[]));case 4:case"end":return Se.stop()}},lt)}));return function(){return ft.apply(this,arguments)}}(),tn=function(lt,ct){It(lt)},nn=function(lt){var ct=lt.target.checked,Be=[];Ke==null||Ke.map(function(ye,Ee){var Se;Be.push(Ee),ye==null||((Se=ye.children)===null||Se===void 0)||Se.map(function(Pe,Me){Be.push("".concat(Ee,"-").concat(Me))})}),It(ct?Be:[])},Yt=function(){var lt=st.filter(function(Ee){return typeof Ee=="string"}),ct=[],Be=[],ye=[];return Ke==null||Ke.map(function(Ee,Se){var Pe;Ee==null||((Pe=Ee.children)===null||Pe===void 0)||Pe.map(function(Me,Qe){lt.includes("".concat(Se,"-").concat(Qe))&&(ye.push(Me.stage_item_id),Me.item_type==="Shixun"?ct.push(Me.id):Be.push(Me.id))})}),{shixunIds:ct,videoItemIds:Be,stageItemIds:ye}},Jt=function(){var ft=Object(y.a)(v.a.mark(function lt(){var ct,Be,ye;return v.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(ct=Yt(),Be=ct.stageItemIds,Wt){Se.next=4;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Se.abrupt("return");case 4:if(!(!zt.length&&!en.length)){Se.next=7;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Se.abrupt("return");case 7:return Tt(!0),Se.next=10,Object(G.E)({id:mt.pathId,course_id:Wt,stage_item_id:Be,sync_catelog:Mt?1:0}).catch(function(Pe){return Tt(!1)});case 10:ye=Se.sent,Tt(!1),ln(),(ye==null?void 0:ye.status)===1&&E.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},ye.message),onOk:function(){var Me,Qe=ye==null||((Me=ye.url.split("/"))===null||Me===void 0)?void 0:Me[2];m.c.push("/classrooms/".concat(Qe,"/shixun_homework"))}});case 14:case"end":return Se.stop()}},lt)}));return function(){return ft.apply(this,arguments)}}(),ln=function(){Et({type:"pathsDetail/setActionTabs",payload:{}}),Qt(null),It([]),xt(null)},Zt=Yt(),qt=Zt.shixunIds,zt=qt===void 0?[]:qt,cn=Zt.videoItemIds,en=cn===void 0?[]:cn;return i.a.createElement(E.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ve.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Pt,width:600,onOk:Jt,onCancel:ln},i.a.createElement("div",{className:fe.a.wrap},i.a.createElement("div",{className:"mb10"},i.a.createElement(Y.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:Wt,style:{width:"100%"},onSelect:function(lt){return Qt(lt)},optionLabelProp:"lable"},wt==null?void 0:wt.map(function(ft,lt){return i.a.createElement(_e,{key:ft.course_id,value:ft.course_id,lable:ft.course_name},i.a.createElement(K.a,{justify:"space-between"},i.a.createElement(I.a,null,ft.course_name),i.a.createElement(I.a,null,ce()(ft.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),i.a.createElement("div",{className:fe.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),i.a.createElement("div",{className:fe.a.radioWrap},i.a.createElement("div",null,i.a.createElement(ie.a,{value:Le,onChange:nn,className:"font14 ml20"},"\u5168\u9009")),!!(Ke==null?void 0:Ke.length)&&i.a.createElement(ne.a,{className:fe.a.tree,checkable:!0,defaultExpandAll:!0,treeData:Ke,checkedKeys:st,onCheck:function(lt,ct){return tn(lt,ct)}})),i.a.createElement("div",{className:fe.a.createMkdir},i.a.createElement(ie.a,{checked:Mt,onChange:function(lt){return Dt(lt.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(zt.length+en.length)&&i.a.createElement("span",null,i.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!zt.length&&i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"c-light-primary"},zt.length," "),i.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!en.length&&i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"c-purple-8C1 ml5"},en.length," "),i.a.createElement("span",null,"\u4E2A\u89C6\u9891"))))))},ee=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.loading,We=Ze.globalSetting;return{pathsDetail:Ce,globalSetting:We,loading:Ve.effects}})(te),se=$("1vsH"),L=$("NLgs"),N=function(Ce){var Ve,We,nt,Et,Nt,mt,Ut,pt,Wt,Qt,Gt,De,wt,gt,Ht,Re,Ke,kt,Kt,Xt,st,It,Lt,Ne,Le,xt,At,yt,Pt,Tt,bt,Ct,Mt,Dt,Ft,tn,nn,Yt,Jt,ln,Zt,qt,zt,cn,en,ft,lt,ct,Be,ye,Ee,Se,Pe,Me,Qe,it,rn,an,sn,En,wn,dn,An,Tn,In,Ye,ve,Ae,ke,Oe,Xe,Ge,je,$t,St,pn,fn,jt,Bt,Vt,hn,mn,_n,Sn,Bn,Vn,we=Ce.pathsDetail,qn=Ce.user,Dr=Ce.globalSetting,Or=Ce.loading,Cn=Ce.dispatch,Rr=Object(pe.a)(Ce,["pathsDetail","user","globalSetting","loading","dispatch"]),on=Object(S.m)(),_r=Object(t.useState)({}),$n=Object(j.a)(_r,2),Te=$n[0],Qn=$n[1],Jn=Object(t.useRef)(1),vr=Object(t.useState)(),Zn=Object(j.a)(vr,2),Wn=Zn[0],gr=Zn[1];Object(t.useEffect)(function(){var rt,et,_t,qe,Je=(rt=we.detail)===null||rt===void 0||((et=rt.courses)===null||et===void 0)?void 0:et.length;if(!Je)return;var vt;if((_t=we.detail)===null||_t===void 0?void 0:_t.has_start){var Ot,$e,vn=(Ot=we.detail)===null||Ot===void 0||(($e=Ot.courses)===null||$e===void 0)?void 0:$e.findIndex(function(Nn){var gn;return((gn=Nn.course_status)===null||gn===void 0?void 0:gn.status)===1});vt=vn>-1?vn:0}else{var at,Gn,Hn,Kn,Yn,jn=(at=we.detail)===null||at===void 0||((Gn=at.courses)===null||Gn===void 0||((Hn=Gn.map(function(Nn){var gn;return(gn=Nn.course_status)===null||gn===void 0?void 0:gn.status}))===null||Hn===void 0))?void 0:Hn.lastIndexOf(2);vt=jn>-1?jn:0,jn=(Kn=we.detail)===null||Kn===void 0||((Yn=Kn.courses)===null||Yn===void 0)?void 0:Yn.findIndex(function(Nn){var gn;return((gn=Nn.course_status)===null||gn===void 0?void 0:gn.status)===0}),vt=jn>-1?jn:vt}Qn(((qe=we.detail)===null||qe===void 0?void 0:qe.courses[vt])||{})},[we.detail]);var yr=function(et){var _t,qe,Je=(_t=we.detail)===null||_t===void 0||((qe=_t.courses)===null||qe===void 0)?void 0:qe.find(function(vt){return vt.course_id===et});Qn(Je||{})},br=function(){var rt=Object(y.a)(v.a.mark(function et(){var _t;return v.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(G.g)({container_id:on.pathId,container_type:"Subject"});case 2:_t=Je.sent,_t.status===0&&(Dn(),R.b.success(_t.message));case 4:case"end":return Je.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),Er=function(){var rt=Object(y.a)(v.a.mark(function et(){var _t;return v.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Object(G.j)({container_id:on.pathId,container_type:"Subject"});case 2:_t=Je.sent,_t.status===0&&(Dn(),R.b.success(_t.message));case 4:case"end":return Je.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),wr=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u8DEF\u5F84?"),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){var $e;return v.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(G.l)({id:on.pathId});case 2:$e=at.sent,$e.status===1&&m.c.push("/paths");case 4:case"end":return at.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),xr=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:i.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){var $e;return v.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(G.e)({id:on.pathId});case 2:$e=at.sent,($e==null?void 0:$e.status)===0&&(Dn(),R.b.success($e.message));case 4:case"end":return at.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),Ar=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){var $e;return v.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(G.i)({id:on.pathId});case 2:$e=at.sent,($e==null?void 0:$e.status)===1&&(Dn(),R.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"));case 4:case"end":return at.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),Sr=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:i.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",i.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",i.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",i.a.createElement("br",null)),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){var $e;return v.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(G.d)({id:on.pathId});case 2:$e=at.sent,(($e==null?void 0:$e.status)===0||($e==null?void 0:$e.status)===1)&&(Dn(),R.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 4:case"end":return at.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),er=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){var $e;return v.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(G.h)({id:on.pathId});case 2:$e=at.sent,($e==null?void 0:$e.status)===0&&(Dn(),R.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return at.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),Pr=function(){var rt=Object(y.a)(v.a.mark(function et(){return v.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"ml20"},i.a.createElement(h.a.Group,{defaultValue:1,onChange:function(vt){return Jn.current=vt.target.value}},i.a.createElement(h.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",i.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),i.a.createElement(h.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",i.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var Je=Object(y.a)(v.a.mark(function Ot(){return v.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:Object(se.z)("/classrooms/news/".concat(on.pathId,"/newgold/").concat(Jn.current));case 1:case"end":return vn.stop()}},Ot)}));function vt(){return Je.apply(this,arguments)}return vt}()});case 1:case"end":return qe.stop()}},et)}));return function(){return rt.apply(this,arguments)}}(),tr=function(){E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var et=Object(y.a)(v.a.mark(function qe(){var Je;return v.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(G.f)({id:on.pathId});case 2:Je=Ot.sent,Je.status===0&&(gr(!0),R.b.success(Je.message));case 4:case"end":return Ot.stop()}},qe)}));function _t(){return et.apply(this,arguments)}return _t}()})},nr=function(){if(!Object(L.c)(Cn))return;E.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var et=Object(y.a)(v.a.mark(function qe(){var Je,vt;return v.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return $e.next=2,Object(G.z)({id:Te==null?void 0:Te.course_id});case 2:Je=$e.sent,Je.status===0&&(R.b.success(Je.message),Cn({type:"pathsDetail/getPathsDetail",payload:{id:on.pathId}}),((vt=Te.course_status)===null||vt===void 0?void 0:vt.status)===1&&Object(se.z)("/classrooms/".concat(Te==null?void 0:Te.course_id,"/")));case 4:case"end":return $e.stop()}},qe)}));function _t(){return et.apply(this,arguments)}return _t}()})},Tr=function(){if(!Object(L.c)(Cn))return;Cn({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},Dn=function(){Cn({type:"pathsDetail/getPathsDetail",payload:{id:on.pathId}}),Cn({type:"pathsDetail/getRightData",payload:{id:on.pathId}})},Xn=!!((Ve=we.detail)===null||Ve===void 0?void 0:Ve.participant_count)&&!((We=we.detail)===null||We===void 0?void 0:We.allow_statistics),rr=((nt=we.detail)===null||nt===void 0||((Et=nt.courses)===null||Et===void 0)?void 0:Et.findIndex(function(rt){return(rt==null?void 0:rt.course_id)===(Te==null?void 0:Te.course_id)}))+1,zn=rr===((Nt=we.detail)===null||Nt===void 0||((mt=Nt.courses)===null||mt===void 0)?void 0:mt.length);return i.a.createElement("section",null,i.a.createElement("aside",{className:k.a.banner,style:{marginBottom:((Ut=we.detail)===null||Ut===void 0||((pt=Ut.courses)===null||pt===void 0)?void 0:pt.length)?70:30}},i.a.createElement("aside",{className:k.a.wrp},((Wt=we.detail)===null||Wt===void 0?void 0:Wt.subject_score)>=0&&i.a.createElement("span",{className:"".concat(k.a.ratingWrap," font14 c-white")},i.a.createElement("span",null,"\u8BC4\u5206\uFF1A"),i.a.createElement(A.a,{allowHalf:!0,value:Object(se.o)((Qt=we.detail)===null||Qt===void 0?void 0:Qt.averge_star),disabled:!0,className:k.a.rating})),i.a.createElement("p",{className:k.a.titleWrap},i.a.createElement("span",{className:k.a.title},(Gt=we.detail)===null||Gt===void 0?void 0:Gt.name),((De=we.detail)===null||De===void 0?void 0:De.excellent)&&i.a.createElement(f.a,{className:"".concat(k.a.openCourseTag," font14")},"\u5F00\u653E\u8BFE\u7A0B")),i.a.createElement("div",{className:k.a.contentWrap},i.a.createElement("div",{className:k.a.contentLeftWrap},!!((wt=we.detail)===null||wt===void 0?void 0:wt.stages_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u7AE0\u8282"),i.a.createElement("p",{className:"mt3"},(gt=we.detail)===null||gt===void 0?void 0:gt.stages_count)),!!((Ht=we.detail)===null||Ht===void 0?void 0:Ht.shixuns_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B9E\u8BAD"),i.a.createElement("p",{className:"mt3"},(Re=we.detail)===null||Re===void 0?void 0:Re.shixuns_count)),!!((Ke=we.detail)===null||Ke===void 0?void 0:Ke.challenge_choose_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u9009\u62E9\u9898\u4EFB\u52A1"),i.a.createElement("p",{className:"mt3"},(kt=we.detail)===null||kt===void 0?void 0:kt.challenge_choose_count)),!!((Kt=we.detail)===null||Kt===void 0?void 0:Kt.challenges_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B9E\u8DF5\u4EFB\u52A1"),i.a.createElement("p",{className:"mt3"},(Xt=we.detail)===null||Xt===void 0?void 0:Xt.challenges_count)),!!((st=we.detail)===null||st===void 0?void 0:st.videos_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u89C6\u9891"),i.a.createElement("p",{className:"mt3"},(It=we.detail)===null||It===void 0?void 0:It.videos_count)),((Lt=we.detail)===null||Lt===void 0?void 0:Lt.publish_status)!==0&&!!((Ne=we.detail)===null||Ne===void 0?void 0:Ne.subject_score)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),i.a.createElement("p",{className:"mt3"},(Le=we.detail)===null||Le===void 0?void 0:Le.subject_score)),((xt=we.detail)===null||xt===void 0?void 0:xt.publish_status)!==0&&!!((At=we.detail)===null||At===void 0?void 0:At.member_count)&&i.a.createElement("div",{className:"mr30"},i.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),i.a.createElement("p",{className:"mt3"},(yt=we.detail)===null||yt===void 0?void 0:yt.member_count))),i.a.createElement("div",{className:k.a.operationWrap},((Pt=qn.userInfo)===null||Pt===void 0?void 0:Pt.login)&&((Tt=we.detail)===null||Tt===void 0?void 0:Tt.is_collect)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:br},"\u53D6\u6D88\u6536\u85CF"),((bt=qn.userInfo)===null||bt===void 0?void 0:bt.login)&&!((Ct=we.detail)===null||Ct===void 0?void 0:Ct.is_collect)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Er},"\u6536\u85CF"),((Mt=we.detail)===null||Mt===void 0?void 0:Mt.allow_statistics)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:function(){return m.c.push("/paths/".concat(on.pathId,"/edit"))}},"\u7F16\u8F91"),((Dt=we.detail)===null||Dt===void 0?void 0:Dt.allow_delete)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:wr},"\u5220\u9664"),((Ft=we.detail)===null||Ft===void 0?void 0:Ft.allow_add_member)&&((tn=we.detail)===null||tn===void 0?void 0:tn.publish_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:xr},"\u7533\u8BF7\u53D1\u5E03"),((nn=we.detail)===null||nn===void 0?void 0:nn.allow_statistics)&&((Yt=we.detail)===null||Yt===void 0?void 0:Yt.publish_status)===2&&((Jt=we.detail)===null||Jt===void 0?void 0:Jt.public_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Ar},"\u64A4\u9500\u53D1\u5E03"),((ln=we.detail)===null||ln===void 0?void 0:ln.allow_statistics)&&((Zt=we.detail)===null||Zt===void 0?void 0:Zt.publish_status)===2&&((qt=we.detail)===null||qt===void 0?void 0:qt.public_status)===0&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Sr},"\u7533\u8BF7\u516C\u5F00"),((zt=we.detail)===null||zt===void 0?void 0:zt.allow_statistics)&&((cn=we.detail)===null||cn===void 0?void 0:cn.public_status)===1&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:er},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(V.c)()&&((en=we.detail)===null||en===void 0?void 0:en.allow_statistics)&&((ft=we.detail)===null||ft===void 0?void 0:ft.public_status)===2&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:er},"\u64A4\u9500\u516C\u5F00"),((lt=we.detail)===null||lt===void 0?void 0:lt.courses)&&((ct=we.detail)===null||ct===void 0?void 0:ct.is_creator)&&i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Pr},"\u5F00\u8BFE"),((Be=we.detail)===null||Be===void 0?void 0:Be.publish_status)!==0&&(((ye=we.detail)===null||ye===void 0?void 0:ye.allow_add_member)||!Object(V.k)())&&i.a.createElement(e.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},i.a.createElement(r.a,{className:"".concat(k.a.button," ").concat(k.a.buttonTransparent," mr15"),onClick:Tr},"\u53D1\u9001\u81F3")),((Ee=we.detail)===null||Ee===void 0?void 0:Ee.allow_statistics)&&((Se=we.detail)===null||Se===void 0?void 0:Se.public_status)===2&&i.a.createElement(r.a,{className:"".concat(k.a.buttonLearnStatistics," mr15"),onClick:function(){return m.c.push("/paths/".concat(on.pathId,"/statistics"))}},"\u5B66\u4E60\u7EDF\u8BA1"))),!!((Pe=we.detail)===null||Pe===void 0||((Me=Pe.courses)===null||Me===void 0)?void 0:Me.length)&&i.a.createElement("aside",{className:k.a.nav},i.a.createElement("div",{className:k.a.navLeft},Te.course_identity<4&&i.a.createElement(e.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},i.a.createElement("a",{href:"/classrooms/".concat(Te==null?void 0:Te.course_id,"/newgolds/settings"),target:"_blank"},i.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(k.a.navLeftIcon)}))),i.a.createElement(o.a,{overlay:i.a.createElement(p.a,null,(Qe=we.detail)===null||Qe===void 0||((it=Qe.courses)===null||it===void 0)?void 0:it.map(function(rt,et){return i.a.createElement(p.a.Item,{key:rt.course_id},i.a.createElement("span",{className:"font14",onClick:function(){return yr(rt.course_id)}},"\u7B2C",et+1,"\u6B21\u5F00\u8BFE"))}))},i.a.createElement("div",null,i.a.createElement("span",{className:"font14 current"},"\u7B2C",i.a.createElement("span",{className:k.a.colorOrange},rr),"\u6B21\u5F00\u8BFE "),i.a.createElement(U.a,null))),i.a.createElement("div",{className:k.a.navContent},i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Te==null?void 0:Te.start_date)),i.a.createElement("div",{className:k.a.verticalLine}),i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Te==null?void 0:Te.end_date)),i.a.createElement("div",{className:k.a.verticalLine}),i.a.createElement("div",{className:k.a.contentItem},i.a.createElement("div",{className:k.a.contentItemTitle},"\u62A5\u540D\u4EBA\u6570\uFF1A"),i.a.createElement("div",{className:k.a.contentItemText},Te==null?void 0:Te.student_count," \u4EBA")))),i.a.createElement("div",{className:k.a.navRight},i.a.createElement("div",{className:k.a.flexRow},(Te==null||((rn=Te.course_status)===null||rn===void 0)?void 0:rn.status)===1&&i.a.createElement("div",{className:"mr20 c-red-ee4"},Te==null||((an=Te.course_status)===null||an===void 0)?void 0:an.time),(Te==null||((sn=Te.course_status)===null||sn===void 0)?void 0:sn.status)===2&&Te.course_identity<6&&i.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((En=Te.course_status)===null||En===void 0?void 0:En.status)===2&&(Te.course_identity<6?i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Te==null||((wn=Te.first_category_url)===null||wn===void 0||((dn=wn.split("/"))===null||dn===void 0))?void 0:dn[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):i.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((An=Te.course_status)===null||An===void 0?void 0:An.status)===1&&Te.course_identity>5&&i.a.createElement("div",{className:k.a.classButton,onClick:nr},"\u7ACB\u5373\u52A0\u5165"),((Tn=Te.course_status)===null||Tn===void 0?void 0:Tn.status)===1&&Te.course_identity===5&&i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Te==null||((In=Te.first_category_url)===null||In===void 0||((Ye=In.split("/"))===null||Ye===void 0))?void 0:Ye[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((ve=Te.course_status)===null||ve===void 0?void 0:ve.status)===0&&Te.course_identity>5&&i.a.createElement("div",{className:k.a.classButton,onClick:nr},"\u7ACB\u5373\u62A5\u540D"),((Ae=Te.course_status)===null||Ae===void 0?void 0:Ae.status)===0&&Te.course_identity===5&&i.a.createElement("div",{className:k.a.classButton},"\u62A5\u540D\u6210\u529F"),((Te==null||((ke=Te.course_status)===null||ke===void 0)?void 0:ke.status)===0||(Te==null||((Oe=Te.course_status)===null||Oe===void 0)?void 0:Oe.status)===1)&&Te.course_identity<5&&i.a.createElement("a",{className:k.a.classButton,href:"/classrooms/".concat(Te==null||((Xe=Te.first_category_url)===null||Xe===void 0||((Ge=Xe.split("/"))===null||Ge===void 0))?void 0:Ge[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Xn&&zn&&((je=we.detail)===null||je===void 0?void 0:je.has_participate)&&i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Xn&&zn&&!(($t=we.detail)===null||$t===void 0?void 0:$t.has_participate)&&(Wn?i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bg28e),onClick:tr},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),i.a.createElement("div",{className:k.a.flexRow},Xn&&!!((St=we.detail)===null||St===void 0||((pn=St.courses)===null||pn===void 0)?void 0:pn.length)&&zn&&i.a.createElement("span",{className:"mt20"},i.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(fn=we.detail)===null||fn===void 0?void 0:fn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),i.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",i.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((jt=we.detail)===null||jt===void 0?void 0:jt.participant_count)+1:(Bt=we.detail)===null||Bt===void 0?void 0:Bt.participant_count),"\u4EBA")),Xn&&!((Vt=we.detail)===null||Vt===void 0||((hn=Vt.courses)===null||hn===void 0)?void 0:hn.length)&&zn&&i.a.createElement("span",null,!((mn=we.detail)===null||mn===void 0?void 0:mn.has_participate)&&(Wn===!0?i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):i.a.createElement("a",{className:"".concat(k.a.classButton," ").concat(k.a.bg28e),onClick:tr},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((_n=we.detail)===null||_n===void 0?void 0:_n.has_participate)&&i.a.createElement("span",{className:"".concat(k.a.classButton," ").concat(k.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),i.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Sn=we.detail)===null||Sn===void 0?void 0:Sn.student_count," \u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),i.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",i.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((Bn=we.detail)===null||Bn===void 0?void 0:Bn.participant_count)+1:(Vn=we.detail)===null||Vn===void 0?void 0:Vn.participant_count),"\u4EBA"))))))),i.a.createElement(ee,null))},q=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.user,We=Ze.loading,nt=Ze.globalSetting;return{pathsDetail:Ce,user:Ve,globalSetting:nt,loading:We.models.index}})(N),re=$("9Bee"),he=$("MXD1"),C=$("CFYs"),n=$("Q9mQ"),s=$("diRs"),O=$("5NDa"),b=$("5rEg"),x=$("m3rI"),F=$("8Bcu"),T=$.n(F),Q=$("g9YV"),ae=$("wCAj"),de=$("O3gP"),me=$("lrIw"),be=$("oBTY"),xe=$("y8nQ"),le=$("Vl3Y"),Fe=$("RotF"),Ie=$.n(Fe),ze=$("oUNq"),He=$("55Ip"),ut=function(Ce){var Ve=Ce.pathsDetail,We=Ce.loading,nt=Ce.dispatch,Et=Ce.onReloadData,Nt=Et===void 0?function(){}:Et,mt=Object(S.m)(),Ut=Object(t.useState)([]),pt=Object(j.a)(Ut,2),Wt=pt[0],Qt=pt[1],Gt=Object(t.useState)(!0),De=Object(j.a)(Gt,2),wt=De[0],gt=De[1],Ht=Object(t.useState)(!1),Re=Object(j.a)(Ht,2),Ke=Re[0],kt=Re[1],Kt=le.a.useForm(),Xt=Object(j.a)(Kt,1),st=Xt[0],It=Object(t.useState)([]),Lt=Object(j.a)(It,2),Ne=Lt[0],Le=Lt[1],xt=Object(t.useState)(1),At=Object(j.a)(xt,2),yt=At[0],Pt=At[1],Tt=Object(t.useState)([]),bt=Object(j.a)(Tt,2),Ct=bt[0],Mt=bt[1],Dt=Object(t.useState)(!0),Ft=Object(j.a)(Dt,2),tn=Ft[0],nn=Ft[1],Yt=Object(t.useState)(!1),Jt=Object(j.a)(Yt,2),ln=Jt[0],Zt=Jt[1];Object(t.useEffect)(function(){Ve.actionTabs.key==="Collaborators-AddCollaborator"&&(nn(!0),gt(!0),qt())},[Ve.actionTabs.key]);var qt=function(){var Be=Object(y.a)(v.a.mark(function ye(){var Ee;return v.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,nt({type:"classroomList/getSchoolList",payload:{}});case 2:Ee=Pe.sent,Qt(Ee.map(function(Me){return{value:Me}}));case 4:case"end":return Pe.stop()}},ye)}));return function(){return Be.apply(this,arguments)}}(),zt=function(){var ye,Ee;if(!((ye=st.getFieldValue())===null||ye===void 0||((Ee=ye.keyword)===null||Ee===void 0)?void 0:Ee.trim())){R.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),Le([]);return}nn(!1),gt(!0),kt(!1),Pt(1),Mt([]),en(!0)},cn=function(ye){ye=String(ye);var Ee=Ct.indexOf(ye);Ee<0?Ct.push(ye):Ct.splice(Ee,1),Mt(Object(be.a)(Ct))},en=function(){var Be=Object(y.a)(v.a.mark(function ye(){var Ee,Se,Pe,Me,Qe,it=arguments;return v.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Ee=it.length>0&&it[0]!==void 0?it[0]:!1,!(wt&&!Ke||Ee)){an.next=11;break}return Me=st.getFieldValue(),kt(!0),Pt(Ee?1:yt+1),an.next=7,Object(ze.pb)({page:Ee?1:yt+1,container_id:mt.pathId,container_type:3,school_name:(Me==null?void 0:Me.school_name)||null,keyword:(Me==null||((Se=Me.keyword)===null||Se===void 0)?void 0:Se.trim())||null});case 7:Qe=an.sent,Le(Ee?Object(be.a)(Qe.users):[].concat(Object(be.a)(Ne),Object(be.a)(Qe.users))),kt(!1),((Pe=Qe.users)===null||Pe===void 0?void 0:Pe.length)<10&>(!1);case 11:case"end":return an.stop()}},ye)}));return function(){return Be.apply(this,arguments)}}(),ft=function(){var Be=Object(y.a)(v.a.mark(function ye(){var Ee;return v.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Ct==null?void 0:Ct.length){Pe.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),Pe.next=10;break;case 4:return Zt(!0),Pe.next=7,Object(G.b)({id:mt.pathId,user_ids:Ct});case 7:Ee=Pe.sent,Zt(!1),Ee&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),lt(),Nt&&Nt());case 10:case"end":return Pe.stop()}},ye)}));return function(){return Be.apply(this,arguments)}}(),lt=function(){st.setFieldsValue({keyword:""}),nt({type:"pathsDetail/setActionTabs",payload:{}})},ct=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ye,Ee){return i.a.createElement(ie.a,{value:Ee.numid,checked:Ct.includes(String(Ee.numid)),disabled:!!ye})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(ye,Ee){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement(He.Link,{className:"bold c-black",to:"/users/".concat(Ee.login),target:"_blank"},ye||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement("span",null,ye||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement("span",null,ye||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement("span",null,ye||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement("span",null,ye||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye},i.a.createElement("span",null,ye||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(ye){return ye?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(ye){return i.a.createElement(e.a,{placement:"bottom",title:ye&&ce()(ye).format("YYYY-MM-DD HH:mm")},i.a.createElement("span",null,ye&&ce()(ye).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(ye){if(ye===1)return i.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return i.a.createElement(E.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Ve.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:ln,onOk:ft,onCancel:lt},i.a.createElement(le.a,{layout:"inline",form:st,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:zt},i.a.createElement(le.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},i.a.createElement(b.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),i.a.createElement(le.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},i.a.createElement(me.a,{allowClear:!0,defaultOpen:!1,options:Wt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(ye,Ee){return Ee.value.toUpperCase().indexOf(ye.toUpperCase())!==-1}})),i.a.createElement(le.a.Item,null,i.a.createElement(r.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),tn&&i.a.createElement("div",{className:"tc font16 c-light-black mt40"},i.a.createElement("img",{src:$("E7E6"),width:"100",alt:""}),i.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!tn&&i.a.createElement("section",null,i.a.createElement("div",{className:"flexd-table-header mt20"},i.a.createElement(ae.a,{pagination:!1,dataSource:[],columns:ct})),i.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},i.a.createElement(Ie.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(ye){en()},hasMore:wt,useWindow:!1},i.a.createElement(ae.a,{loading:Ke,showHeader:!1,pagination:!1,dataSource:Ne,columns:ct,onRow:function(ye){return{onClick:function(Se){Se.currentTarget.querySelector("input").disabled||cn(Se.currentTarget.querySelector("input").value)}}}})))))},tt=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.loading;return{pathsDetail:Ce,loading:Ve}})(ut),ot=function(Ce){var Ve,We,nt,Et,Nt,mt,Ut,pt,Wt,Qt,Gt,De,wt,gt,Ht,Re,Ke,kt,Kt,Xt,st,It,Lt,Ne,Le=Ce.pathsDetail,xt=Ce.user,At=Ce.globalSetting,yt=Ce.loading,Pt=Ce.dispatch,Tt=Object(pe.a)(Ce,["pathsDetail","user","globalSetting","loading","dispatch"]),bt=Object(S.m)(),Ct=Object(t.useState)(!0),Mt=Object(j.a)(Ct,2),Dt=Mt[0],Ft=Mt[1],tn=Object(t.useState)(),nn=Object(j.a)(tn,2),Yt=nn[0],Jt=nn[1],ln=Object(t.useState)(),Zt=Object(j.a)(ln,2),qt=Zt[0],zt=Zt[1],cn=function(){var Ee=Object(y.a)(v.a.mark(function Se(){var Pe;return v.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(qt==null?void 0:qt.trim()){Qe.next=3;break}return R.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Qe.abrupt("return");case 3:return Qe.next=5,Object(G.I)({id:bt.pathId,team_title:qt.trim()});case 5:Pe=Qe.sent,Jt(!Yt),(Pe==null?void 0:Pe.status)===0&&(zt(null),R.b.success(Pe.message),Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}}));case 8:case"end":return Qe.stop()}},Se)}));return function(){return Ee.apply(this,arguments)}}(),en=function(){var Ee=Object(y.a)(v.a.mark(function Se(Pe){return v.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:E.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var it=Object(y.a)(v.a.mark(function an(){var sn,En;return v.a.wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:return dn.next=2,Object(G.k)({id:bt.pathId,user_id:Pe});case 2:sn=dn.sent,(sn==null?void 0:sn.status)===1&&(((En=xt.userInfo)===null||En===void 0?void 0:En.user_id)===Pe&&m.c.push("/paths"),R.b.info(sn==null?void 0:sn.message),Be());case 4:case"end":return dn.stop()}},an)}));function rn(){return it.apply(this,arguments)}return rn}()});case 1:case"end":return Qe.stop()}},Se)}));return function(Pe){return Ee.apply(this,arguments)}}(),ft=function(){var Ee=Object(y.a)(v.a.mark(function Se(Pe){var Me;return v.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(G.B)({id:bt.pathId,user_id:Pe});case 2:Me=it.sent,Me&&Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}});case 4:case"end":return it.stop()}},Se)}));return function(Pe){return Ee.apply(this,arguments)}}(),lt=function(){var Ee=Object(y.a)(v.a.mark(function Se(Pe){var Me;return v.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(G.A)({id:bt.pathId,user_id:Pe});case 2:Me=it.sent,Me&&Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}});case 4:case"end":return it.stop()}},Se)}));return function(Pe){return Ee.apply(this,arguments)}}(),ct=function(){Pt({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},Be=function(){Pt({type:"pathsDetail/getPathsDetail",payload:{id:bt.pathId}}),Pt({type:"pathsDetail/getRightData",payload:{id:bt.pathId}})},ye=function(){var Se;return Yt?i.a.createElement("div",{className:T.a.flexRow},i.a.createElement(b.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:qt,onChange:function(Me){return zt(Me.target.value)}}),i.a.createElement(r.a,{className:"ml5",onClick:function(){return Jt(!Yt)}},"\u53D6\u6D88"),i.a.createElement(r.a,{className:"ml5",type:"primary",onClick:cn},"\u786E\u5B9A")):i.a.createElement("div",{className:T.a.flexRowAbout},i.a.createElement("p",{className:"font16 current",onDoubleClick:function(){var Me;((Me=Le.detail)===null||Me===void 0?void 0:Me.allow_add_member)&&Jt(!Yt)}},(Se=Le.rightData)===null||Se===void 0?void 0:Se.team_title),i.a.createElement(s.a,{placement:"right",content:i.a.createElement("div",{className:"current"},i.a.createElement("div",{onClick:function(){return Jt(!Yt)}},"\u91CD\u547D\u540D")),trigger:"hover"},i.a.createElement("i",{className:"iconfont icon-sandian c-light-black font18 current"})))};return i.a.createElement("section",{className:T.a.rightWrap},((Ve=Le.rightData)===null||Ve===void 0?void 0:Ve.qrcode_img)&&i.a.createElement("div",{className:T.a.qrCode},i.a.createElement("img",{src:(We=Le.rightData)===null||We===void 0?void 0:We.qrcode_img})),i.a.createElement("div",{className:T.a.card},i.a.createElement("p",{className:"mb30"},i.a.createElement("span",{className:"font16"},"\u8BFE\u7A0B\u987B\u77E5")),i.a.createElement(re.a,{className:"fon16",value:(nt=Le.detail)===null||nt===void 0?void 0:nt.learning_notes})),((Et=Le.rightData)===null||Et===void 0?void 0:Et.progress)&&i.a.createElement("div",{className:T.a.card},i.a.createElement("p",{className:"mb20"},i.a.createElement("span",{className:"font16 mr5"},"\u5B66\u4E60\u8FDB\u5EA6"),i.a.createElement(e.a,{placement:"bottom",title:"\u5DF2\u901A\u5173\u6570/\u5173\u5361\u603B\u6570"},i.a.createElement("span",{className:"c-light-green"},(Nt=Le.rightData)===null||Nt===void 0?void 0:Nt.progress.my_score," / ",(mt=Le.rightData)===null||mt===void 0?void 0:mt.progress.all_score))),i.a.createElement("p",{className:"mb10 ".concat(T.a.flexRowAbout)},i.a.createElement("span",{className:"c-light-green font14"},"\u5DF2\u5B66",(Ut=Le.rightData)===null||Ut===void 0?void 0:Ut.progress.learned,"%"),i.a.createElement("span",{className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(se.G)((pt=Le.rightData)===null||pt===void 0?void 0:pt.progress.time)," ")),i.a.createElement(C.a,{percent:(Wt=Le.rightData)===null||Wt===void 0?void 0:Wt.progress.learned,showInfo:!1,status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}}),i.a.createElement("span",{className:"font14 c-grey-888 mt5"},"\u6CE8: \u201C\u6211\u7684\u8FDB\u5C55\u201D\u4EE5\u5DF2\u53D1\u5E03\u7684\u5B9E\u8BAD\u8BE6\u60C5\u5173\u5361\u6570\u4E3A\u51C6\u3002")),!!((Qt=Le.rightData)===null||Qt===void 0||((Gt=Qt.tags)===null||Gt===void 0)?void 0:Gt.length)&&i.a.createElement("div",{className:T.a.skillWrap},i.a.createElement("p",{className:"".concat(T.a.skillTopWrap," font16 mb20")},i.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",i.a.createElement("span",{className:"ml5 c-grey-c"},(De=Le.rightData)===null||De===void 0||((wt=De.tags)===null||wt===void 0)?void 0:wt.length))),i.a.createElement("div",{className:"".concat(T.a.skillContentWrap," ").concat(Dt?T.a.skillContentWrapMin:T.a.skillContentWrapMax)},(gt=Le.rightData)===null||gt===void 0||((Ht=gt.tags)===null||Ht===void 0)?void 0:Ht.map(function(Ee,Se){return i.a.createElement(i.a.Fragment,{key:Se},Ee.tag_name&&i.a.createElement("span",{className:Ee.status?T.a.skillContentIcon:T.a.skillContentIconNoStatus},Ee.tag_name))})),((Re=Le.rightData)===null||Re===void 0||((Ke=Re.tags)===null||Ke===void 0)?void 0:Ke.length)>15&&i.a.createElement(i.a.Fragment,null,Dt?i.a.createElement("div",{className:T.a.skillExpandAllWrap,onClick:function(){return Ft(!Dt)}},i.a.createElement("span",{className:"mr8 current"},i.a.createElement("div",null,i.a.createElement("p",{className:"".concat(T.a.skillExpandAllContent," font12")},"\u5C55\u5F00\u5168\u90E8"),i.a.createElement("p",{className:"".concat(T.a.skillExpandAllContent," font12")},i.a.createElement("i",{className:"iconfont icon-jiantou9"}))))):i.a.createElement("div",{className:T.a.skillExpandAllWrap,onClick:function(){return Ft(!Dt)}},i.a.createElement("span",{className:"mr8 current"},i.a.createElement("div",null,i.a.createElement("p",{className:"".concat(T.a.skillExpandAllContent," font12")},i.a.createElement("i",{className:"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu-"})),i.a.createElement("p",{className:"".concat(T.a.skillExpandAllContent," font12")},"\u6536\u8D77\u5168\u90E8")))))),!!((kt=Le.rightData)===null||kt===void 0||((Kt=kt.members)===null||Kt===void 0)?void 0:Kt.length)&&i.a.createElement("div",{className:"".concat(T.a.card," pb0")},((Xt=Le.detail)===null||Xt===void 0?void 0:Xt.allow_add_member)?ye():i.a.createElement("p",{className:"font16"},(st=Le.rightData)===null||st===void 0?void 0:st.team_title),(It=Le.rightData)===null||It===void 0||((Lt=It.members)===null||Lt===void 0)?void 0:Lt.map(function(Ee,Se){var Pe,Me,Qe,it;return i.a.createElement("div",{key:Ee.id,className:"".concat(T.a.memberItem," ").concat(T.a.flexRowAbout)},i.a.createElement("a",{href:Ee.user_url,target:"_blank"},i.a.createElement("img",{height:"80",width:"80",className:T.a.radius,src:"".concat(x.a.IMG_SERVER,"/images/").concat(Ee.image_url)})),i.a.createElement("div",{className:T.a.memberItemContent},i.a.createElement("span",{className:"".concat(T.a.flexRowAbout," mb10 mt5")},i.a.createElement("span",{className:"multi_ellipsis1"},Ee.name),((Pe=Le.detail)===null||Pe===void 0?void 0:Pe.allow_add_member)&&Ee.role===2&&i.a.createElement("a",{onClick:function(){return en(Ee.id)}},i.a.createElement("i",{className:"iconfont icon-shanchu c-grey-c font14"}))),i.a.createElement("span",{className:"".concat(T.a.flexRowAbout," mb10 mt20")},i.a.createElement("span",{className:"multi_ellipsis1"},Ee.school),((Me=Le.detail)===null||Me===void 0?void 0:Me.allow_add_member)&&i.a.createElement("span",null,Se<((Qe=Le.rightData)===null||Qe===void 0||((it=Qe.members)===null||it===void 0)?void 0:it.length)-1&&i.a.createElement("a",{onClick:function(){return lt(Ee.id)}},i.a.createElement(e.a,{placement:"top",title:"\u4E0B\u79FB"},i.a.createElement("i",{className:"iconfont icon-xiangxiayi c-light-green font18"}))),Se!==0&&i.a.createElement("a",{className:"ml5",onClick:function(){return ft(Ee.id)}},i.a.createElement(e.a,{placement:"top",title:"\u4E0A\u79FB"},i.a.createElement("i",{className:"iconfont icon-xiangshangyi c-light-green font18"})))))))}),((Ne=Le.detail)===null||Ne===void 0?void 0:Ne.allow_add_member)&&i.a.createElement(K.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},i.a.createElement(I.a,{className:"c-blue current",onClick:ct},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),i.a.createElement(tt,{onReloadData:Be}))},ht=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.user,We=Ze.loading,nt=Ze.globalSetting;return{pathsDetail:Ce,user:Ve,globalSetting:nt,loading:We.models.index}})(ot),Rt=$("0Owb"),yn=$("ngQI"),xn=$("HBuW"),On=$("VlDO"),un=$.n(On),Ln=$("bbsP"),Mn=$("/wGt"),Pn=$("DjyN"),Rn=$("NUBc"),Fn=$("/zsF"),Un=$("PArb"),ar=$("cCSd"),bn=$.n(ar),ir=b.a.Search,or=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],sr=function(Ce){var Ve,We=Ce.classroomList,nt=Ce.loading,Et=Ce.dispatch,Nt=Ce.cb,mt=Ce.shixunIds,Ut=mt===void 0?[]:mt,pt=Object(S.m)(),Wt=Object(S.l)(),Qt=We.actionTabs,Gt=le.a.useForm(),De=Object(j.a)(Gt,1),wt=De[0],gt=We.shixunLists,Ht=Object(t.useState)([]),Re=Object(j.a)(Ht,2),Ke=Re[0],kt=Re[1],Kt=Object(t.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),Xt=Object(j.a)(Kt,2),st=Xt[0],It=Xt[1];Object(t.useEffect)(function(){We.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"&&(st.page=1,Et({type:"classroomList/getShixunLists",payload:Object(B.a)({},st)}))},[We.actionTabs.key]);var Lt=function(){Et({type:"classroomList/setActionTabs",payload:{}}),It({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return We.actionTabs.key!=="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"?null:i.a.createElement(Mn.a,{placement:"bottom",height:"100%",closable:!1,visible:We.actionTabs.key==="\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",key:"bottom",className:bn.a.drawer,footer:i.a.createElement("div",{className:"tc"},i.a.createElement(r.a,{size:"large",onClick:function(){Lt(),kt([])},style:{marginRight:8}},"\u53D6\u6D88"),i.a.createElement(r.a,{size:"large",onClick:Object(y.a)(v.a.mark(function Ne(){var Le,xt,At,yt;return v.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:Le=function(Ct){var Mt=Ke[Ct];if(Ut.includes(Mt)){var Dt,Ft;return R.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(gt==null||((Dt=gt.shixun_list)===null||Dt===void 0||((Ft=Dt.find(function(tn){return tn.id===Mt}))===null||Ft===void 0))?void 0:Ft.title)),{v:void 0}}},xt=0;case 2:if(!(xt<(Ke==null?void 0:Ke.length))){Tt.next=9;break}if(At=Le(xt),!(typeof At=="object")){Tt.next=6;break}return Tt.abrupt("return",At.v);case 6:xt++,Tt.next=2;break;case 9:return Tt.next=11,Object(G.D)({id:We.actionTabs.id,subject_id:We.actionTabs.subject_id,shixun_ids:Object(be.a)(Ke)});case 11:yt=Tt.sent,kt([]),(yt==null?void 0:yt.shixuns_list)&&(Lt(),Nt(yt.shixuns_list));case 14:case"end":return Tt.stop()}},Ne)})),type:"primary"},"\u786E\u5B9A"))},i.a.createElement("section",{className:"tc"},i.a.createElement(ir,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:bn.a.search,onSearch:function(Le){st.keyword=Le,st.page=1,Et({type:"classroomList/getShixunLists",payload:Object(B.a)({},st)})}})),i.a.createElement("section",{className:"edu-container"},or.map(function(Ne,Le){var xt;return i.a.createElement("ul",{className:bn.a.menu,key:Le},i.a.createElement("li",null,Ne.name),Ne==null||((xt=Ne.children)===null||xt===void 0)?void 0:xt.map(function(At,yt){return i.a.createElement("li",{className:st[Ne.id]==At.id?bn.a.actived:"",onClick:function(){st[Ne.id]=At.id,It(Object(B.a)({},st)),Et({type:"classroomList/getShixunLists",payload:Object(B.a)({},st)})}},i.a.createElement("strong",null,At.name))}))}),gt==null||((Ve=gt.shixun_list)===null||Ve===void 0)?void 0:Ve.map(function(Ne,Le){return i.a.createElement("div",{className:bn.a.listItem,key:Le},i.a.createElement(ie.a,{checked:Ke.includes(Ne.id),value:Ne.id,onChange:function(At){var yt=Ke.indexOf(Ne.id);Ke.indexOf(Ne.id)>-1?kt(Ke.filter(function(Pt){return Pt!==Ne.id})):kt(Ke.concat(Ne.id))}}),i.a.createElement("div",{className:bn.a.info},i.a.createElement("div",{className:bn.a.title},i.a.createElement("div",{className:bn.a.titleLeft},i.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Ne==null?void 0:Ne.identifier,"/challenges"),target:"_blank"},i.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Ne.title}})))),i.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},i.a.createElement("span",{className:bn.a.description,dangerouslySetInnerHTML:{__html:Ne.description}})),i.a.createElement("div",{className:" mt15"},Ne.challenge_names.map(function(xt,At){return i.a.createElement("span",{key:At,className:"mr30 font12"},"\u7B2C",At+1,"\u5173 ",xt," ")})),i.a.createElement(Un.a,{dashed:!0}),i.a.createElement("div",{className:"c-light-black mt20 font12"},i.a.createElement("span",null,Ne.author_name),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,Ne.author_school_name),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Ne.level),i.a.createElement("span",{className:"ml15 mr15"},"|"),i.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),i.a.createElement("span",null,Ne.study_count))))}),i.a.createElement("p",null)),i.a.createElement("div",{className:"tc"},i.a.createElement(Rn.a,{current:st.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:gt==null?void 0:gt.shixuns_count,onChange:function(Le){st.page=Le,Et({type:"classroomList/getShixunLists",payload:Object(B.a)({},st)})}})))},ur=Object(m.a)(function(Ze){var Ce=Ze.classroomList,Ve=Ze.loading;return{classroomList:Ce,loading:Ve}})(sr),lr=$("V0Rq"),cr=$("sBCT"),dr=$("qdXH"),pr=function(Ce){var Ve,We=Ce.pathsDetail,nt=Ce.user,Et=Ce.globalSetting,Nt=Ce.loading,mt=Ce.dispatch,Ut=Object(pe.a)(Ce,["pathsDetail","user","globalSetting","loading","dispatch"]),pt=Object(S.m)(),Wt=We.stageData,Qt=Object(t.useState)([]),Gt=Object(j.a)(Qt,2),De=Gt[0],wt=Gt[1],gt=Object(t.useState)(-1),Ht=Object(j.a)(gt,2),Re=Ht[0],Ke=Ht[1],kt=Object(t.useState)(!1),Kt=Object(j.a)(kt,2),Xt=Kt[0],st=Kt[1],It=Object(t.useState)({name:"",is_jupyter:!1}),Lt=Object(j.a)(It,2),Ne=Lt[0],Le=Lt[1],xt=le.a.useForm(),At=Object(j.a)(xt,1),yt=At[0],Pt=le.a.useForm(),Tt=Object(j.a)(Pt,1),bt=Tt[0],Ct=Object(t.useState)(),Mt=Object(j.a)(Ct,2),Dt=Mt[0],Ft=Mt[1],tn=Object(t.useState)([]),nn=Object(j.a)(tn,2),Yt=nn[0],Jt=nn[1],ln=Object(t.useState)(),Zt=Object(j.a)(ln,2),qt=Zt[0],zt=Zt[1];Object(t.useEffect)(function(){wt(Object(be.a)(Wt))},[Wt]);var cn=function(){var Ye=Object(y.a)(v.a.mark(function ve(Ae,ke){var Oe;return v.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(mt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!ke){Ge.next=7;break}return Ge.next=4,Object(xn.v)({id:Ae});case 4:Ge.t0=Ge.sent,Ge.next=10;break;case 7:return Ge.next=9,Object(xn.w)({id:Ae});case 9:Ge.t0=Ge.sent;case 10:if(Oe=Ge.t0,mt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((Oe==null?void 0:Oe.game_identifier)||(Oe==null?void 0:Oe.identifier))){Ge.next=15;break}return Object(se.z)(ke?"/tasks/".concat(Oe==null?void 0:Oe.identifier,"/jupyter"):"/tasks/".concat(Oe.game_identifier)),Ge.abrupt("return");case 15:(Oe==null?void 0:Oe.status)===2?en(Oe==null?void 0:Oe.message):(Oe==null?void 0:Oe.status)===3&&ft(Oe==null?void 0:Oe.message);case 16:case"end":return Ge.stop()}},ve)}));return function(Ae,ke){return Ye.apply(this,arguments)}}(),en=function Ye(ve){var Ae;ve=((Ae=ve)===null||Ae===void 0?void 0:Ae.includes(".json"))?ve:"".concat(ve,".json"),E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var ke=Object(y.a)(v.a.mark(function Xe(){var Ge,je;return v.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,Object(lr.K)({url:ve});case 2:if(Ge=St.sent,Ge){St.next=5;break}return St.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),St.next=8,Object(xn.w)({id:Ge.shixun_identifier});case 8:if(je=St.sent,!(je==null?void 0:je.game_identifier)){St.next=12;break}return Object(se.z)("/tasks/".concat(je.game_identifier)),St.abrupt("return");case 12:(je==null?void 0:je.status)===2?Ye(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&ft(je==null?void 0:je.message);case 13:case"end":return St.stop()}},Xe)}));function Oe(){return ke.apply(this,arguments)}return Oe}()})},ft=function(ve){E.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:i.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ve,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},lt=function(){var ve={shixuns_list:[]};Be(De.length,ve),wt([].concat(Object(be.a)(De),[ve])),Ft(!0)},ct=function(){Re===De.length-1&&Dt&&(An(),wt(De.filter(function(ve,Ae){return Ae!==De.length-1}))),Se(),Ke(-1)},Be=function(ve,Ae){if(!wn())return;Ke(ve),yt.setFieldsValue({name:Ae.stage_name,description:Ae.stage_description})},ye=function(ve){De[Re].shixuns_list=De[Re].shixuns_list.concat(ve),wt(Object(be.a)(De))},Ee=function(){var Ye=Object(y.a)(v.a.mark(function ve(Ae){var ke,Oe;return v.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(G.c)(Object(B.a)({id:De[Re].stage_id,subject_id:pt.pathId},Ae));case 2:return ke=Ge.sent,ke.id&&(zt(!1),Oe=[Object(B.a)({},ke)],De[Re].shixuns_list=De[Re].shixuns_list.concat(Oe),wt(Object(be.a)(De))),Ge.abrupt("return",ke);case 5:case"end":return Ge.stop()}},ve)}));return function(Ae){return Ye.apply(this,arguments)}}(),Se=function(){mt({type:"pathsDetail/getStageData",payload:{subject_id:pt.pathId}}),mt({type:"pathsDetail/getPathsDetail",payload:{id:pt.pathId}}),mt({type:"pathsDetail/getRightData",payload:{id:pt.pathId}}),An(),Ke(-1)},Pe=function(){var Ye=Object(y.a)(v.a.mark(function ve(Ae){var ke,Oe,Xe;return v.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Ae==null?void 0:Ae.name){je.next=2;break}return je.abrupt("return",R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(An(),ke=[],De[Re].shixuns_list.map(function($t){$t.item_type==="Shixun"?ke.push({type:"Shixun",id:$t.id}):ke.push({type:"VideoItem",id:$t.id})}),!Dt){je.next=12;break}return je.next=8,Object(G.a)(Object(B.a)(Object(B.a)({},Ae),{},{pathId:pt.pathId,list:ke}));case 8:Oe=je.sent,(Oe==null?void 0:Oe.subject_id)&&(De[Re]=Object(B.a)(Object(B.a)({},De[Re]),Oe)),je.next=16;break;case 12:return je.next=14,Object(G.H)(Object(B.a)(Object(B.a)({},Ae),{},{id:De[Re].stage_id,list:ke}));case 14:Xe=je.sent,(Xe==null?void 0:Xe.subject_id)&&(De[Re]=Object(B.a)(Object(B.a)({},De[Re]),Xe));case 16:case"end":return je.stop()}},ve)}));return function(Ae){return Ye.apply(this,arguments)}}(),Me=function(ve,Ae,ke){var Oe=Array.from(ve),Xe=Oe.splice(Ae,1),Ge=Object(j.a)(Xe,1),je=Ge[0];return Oe.splice(ke,0,je),Oe},Qe=function(ve){E.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){De[Re].shixuns_list.splice(ve,1),R.b.success("\u5220\u9664\u6210\u529F"),wt(Object(be.a)(De)),Pe(yt.getFieldsValue())}})},it=function(ve){E.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Ae=Object(y.a)(v.a.mark(function Oe(){var Xe;return v.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,Object(G.m)({id:ve});case 2:Xe=je.sent,Xe.status===1&&(Ke(-1),R.b.success("\u5220\u9664\u6210\u529F"),Se());case 4:case"end":return je.stop()}},Oe)}));function ke(){return Ae.apply(this,arguments)}return ke}()})},rn=function(){Le({name:"",is_jupyter:!1}),bt.setFieldsValue({name:"",is_jupyter:!1}),st(!1)},an=function(ve){var Ae;if(!ve.destination)return;var ke=Me((Ae=De[Re])===null||Ae===void 0?void 0:Ae.shixuns_list,ve.source.index,ve.destination.index);De[Re].shixuns_list=ke,wt(Object(be.a)(De)),Pe(yt.getFieldsValue())},sn=function(){var Ye=Object(y.a)(v.a.mark(function ve(Ae){var ke;return v.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(wn()){Xe.next=2;break}return Xe.abrupt("return");case 2:return Xe.next=4,Object(G.G)({id:Ae});case 4:ke=Xe.sent,ke.status===1&&Se();case 6:case"end":return Xe.stop()}},ve)}));return function(Ae){return Ye.apply(this,arguments)}}(),En=function(){var Ye=Object(y.a)(v.a.mark(function ve(Ae){var ke;return v.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(wn()){Xe.next=2;break}return Xe.abrupt("return");case 2:return Xe.next=4,Object(G.n)({id:Ae});case 4:ke=Xe.sent,ke.status===1&&Se();case 6:case"end":return Xe.stop()}},ve)}));return function(Ae){return Ye.apply(this,arguments)}}(),wn=function(){return Re!==-1?(E.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var Ae="Edit_".concat(Re),ke=document.getElementById(Ae);ke&&setTimeout(function(){return ke.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},dn=function(){Pe(yt.getFieldsValue())},An=function(){Ft(!1)},Tn=function(ve,Ae,ke){var Oe,Xe,Ge,je,$t,St,pn,fn,jt,Bt,Vt;return i.a.createElement(K.a,{className:"list-item-row",align:"middle",key:Ae,gutter:[5,10]},i.a.createElement(I.a,null,ve.item_type==="Shixun"?i.a.createElement("i",{className:"iconfont icon-shixun2 c-light-primary font20"}):i.a.createElement("i",{className:"iconfont icon-shipin c-purple-8C1 font20"})),i.a.createElement(I.a,{flex:1,className:!ve.allow_visit&&!ve.to_be_built&&(ve.shixun_status==="\u6682\u672A\u516C\u5F00"||ve.shixun_status==="\u5DF2\u5220\u9664")?un.a.color204:""},ke+1,"-",Ae+1,"\xA0\xA0",ve.name,Re===-1&&ve.complete_status===1&&i.a.createElement("span",{className:un.a.completed},i.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),i.a.createElement(I.a,null,Re===ke&&i.a.createElement("div",null,i.a.createElement(e.a,{title:"\u5220\u9664"},i.a.createElement("span",{onClick:function(){Qe(Ae)},className:"iconfont icon-shanchu c-grey-c"}))),(((Oe=nt.userInfo)===null||Oe===void 0?void 0:Oe.admin)||((Xe=nt.userInfo)===null||Xe===void 0?void 0:Xe.business)||!(!((Ge=We.detail)===null||Ge===void 0?void 0:Ge.allow_statistics)&&((je=nt.userInfo)===null||je===void 0?void 0:je.user_identity)==="\u5B66\u751F"&&(($t=We.detail)===null||$t===void 0?void 0:$t.allow_visit)&&((St=We.detail)===null||St===void 0?void 0:St.courses)))&&Re!==ke&&ve.item_type==="VideoItem"&&i.a.createElement("aside",null,i.a.createElement(r.a,{type:"primary",onClick:function(){var mn,_n;if(!((mn=nt.userInfo)===null||mn===void 0?void 0:mn.admin)&&!((_n=nt.userInfo)===null||_n===void 0?void 0:_n.business)&&!ve.can_view)return E.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:i.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});ve.link&&Object(dr.n)({is_f:1,id:ve.id,point:0,total:0}),Object(se.z)(ve.link||"/video/".concat(ve.id,"?subject_id=").concat(pt.pathId))}},ve.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((pn=nt.userInfo)===null||pn===void 0?void 0:pn.admin)||(ve.allow_visit||ve.to_be_built||ve.shixun_status!=="\u6682\u672A\u516C\u5F00"&&ve.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((fn=We.detail)===null||fn===void 0?void 0:fn.allow_statistics)&&((jt=nt.userInfo)===null||jt===void 0?void 0:jt.user_identity)==="\u5B66\u751F"&&((Bt=We.detail)===null||Bt===void 0?void 0:Bt.allow_visit)&&((Vt=We.detail)===null||Vt===void 0?void 0:Vt.courses)))&&Re!==ke&&ve.item_type==="Shixun"&&i.a.createElement("aside",null,i.a.createElement(He.Link,{to:"/shixuns/".concat(ve.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),ve.shixun_status!=="\u6682\u672A\u516C\u5F00"&&i.a.createElement(r.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(L.c)(mt))return;cn(ve.identifier,ve.is_jupyter)}},"\u5F00\u59CB\u5B9E\u6218")),Re===-1&&!ve.allow_visit&&!ve.to_be_built&&ve.shixun_status==="\u6682\u672A\u516C\u5F00"&&i.a.createElement("span",{className:un.a.color204},"\u6682\u672A\u516C\u5F00"),Re===-1&&!ve.allow_visit&&!ve.to_be_built&&ve.shixun_status==="\u5DF2\u5220\u9664"&&i.a.createElement("span",{className:un.a.color204},"\u5DF2\u5220\u9664"),Re===-1&&ve.item_type==="Shixun"&&i.a.createElement("span",{className:"experiment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",ve.challenges_count)))},In=function(ve,Ae){var ke,Oe,Xe,Ge,je,$t,St,pn,fn;return i.a.createElement("section",{key:Ae,className:"bg-white mt20 pt30"},i.a.createElement("aside",{className:"pl20 pr20"},i.a.createElement(K.a,{gutter:[5,20],align:"middle"},i.a.createElement(I.a,{flex:"22px"},i.a.createElement("i",{className:"iconfont icon-zhangjie mr5 c-light-primary font18"})),i.a.createElement(I.a,{flex:1,className:"tl font18 bold c-grey-333"},ve.stage_name||"\u7B2C".concat(De==null?void 0:De.length,"\u90E8\u5206")),i.a.createElement(I.a,null,(((ke=nt.userInfo)===null||ke===void 0?void 0:ke.admin)||((Oe=nt.userInfo)===null||Oe===void 0?void 0:Oe.business)||((Xe=We.detail)===null||Xe===void 0?void 0:Xe.allow_statistics))&&Re===Ae&&!Dt&&i.a.createElement(e.a,{title:"\u5220\u9664"},i.a.createElement("span",{onClick:function(){it(ve.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),(((Ge=nt.userInfo)===null||Ge===void 0?void 0:Ge.admin)||((je=nt.userInfo)===null||je===void 0?void 0:je.business)||(($t=We.detail)===null||$t===void 0?void 0:$t.allow_statistics))&&Re!==Ae&&i.a.createElement("div",null,Ae>0&&i.a.createElement(e.a,{title:"\u5411\u4E0A\u79FB\u52A8"},i.a.createElement("span",{onClick:function(){return sn(ve.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),Ae<De.length-1&&i.a.createElement(e.a,{title:"\u5411\u4E0B\u79FB\u52A8"},i.a.createElement("span",{onClick:function(){return En(ve.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),!Dt&&i.a.createElement(e.a,{title:"\u7F16\u8F91"},i.a.createElement("span",{onClick:function(){return Be(Ae,ve)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),i.a.createElement(K.a,{gutter:[5,20]},i.a.createElement(I.a,{span:24},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:(St=ve.stage_description)===null||St===void 0?void 0:St.replace(/[\r|\n]/gi,"<br/>")}})))),Re===Ae&&i.a.createElement("div",{className:"pl20 pr20"},i.a.createElement("aside",null,i.a.createElement(le.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(b.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(De==null?void 0:De.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:dn})),i.a.createElement(le.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},i.a.createElement(b.a.TextArea,{rows:5,maxLength:300,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(De==null?void 0:De.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:dn}))),i.a.createElement("aside",null,i.a.createElement(r.a,{size:"large",className:"mt20",ghost:!0,type:"primary",onClick:function(){if(!De[Re].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(L.c)(mt))return;if(!Object(L.a)())return;st(!0),bt.setFieldsValue({name:"",is_jupyter:!1})}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE"),i.a.createElement("br",null),i.a.createElement(r.a,{size:"large",className:"mt10",ghost:!0,type:"primary",onClick:function(){var Bt;if(!De[Re].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");mt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE",id:De[Re].stage_id,subject_id:pt.pathId}}),Jt(ve==null||((Bt=ve.shixuns_list)===null||Bt===void 0)?void 0:Bt.map(function(Vt){return Vt.id}))}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8BAD\u9879\u76EE"),i.a.createElement("br",null),!(Et==null||((pn=Et.setting)===null||pn===void 0)?void 0:pn.is_local)&&i.a.createElement(r.a,{size:"large",className:"mt10",ghost:!0,type:"primary",onClick:function(){var Bt,Vt;if(!De[Re].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Bt=nt.userInfo)===null||Bt===void 0?void 0:Bt.admin)||((Vt=nt.userInfo)===null||Vt===void 0?void 0:Vt.is_teacher)&&Object(L.b)())&&zt(!0)}},i.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),i.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(Ae)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),i.a.createElement("aside",{className:un.a.shixuns},Re>-1?i.a.createElement(yn.a,{onDragEnd:an},i.a.createElement(yn.c,{droppableId:"droppable-id"},function(jt,Bt){var Vt;return i.a.createElement("div",Object(Rt.a)({className:"mt20",ref:jt.innerRef},jt.droppableProps,{onScroll:function(){}}),(Vt=ve.shixuns_list)===null||Vt===void 0?void 0:Vt.map(function(hn,mn){var _n;return i.a.createElement(yn.b,{draggableId:"".concat((_n=hn.id)===null||_n===void 0?void 0:_n.toString(),"-").concat(Ae,"-").concat(mn),index:mn,key:hn.id},function(Sn,Bn){return i.a.createElement("div",Object(Rt.a)({ref:Sn.innerRef},Sn.draggableProps,Sn.dragHandleProps),Tn(hn,mn,Ae))})}))})):i.a.createElement("div",{className:"mt20"},(fn=ve.shixuns_list)===null||fn===void 0?void 0:fn.map(function(jt,Bt){return i.a.createElement("div",null,Tn(jt,Bt,Ae))}))),Re===Ae&&i.a.createElement("aside",{className:un.a.buttons},i.a.createElement(r.a,{onClick:ct,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),i.a.createElement(r.a,{onClick:ct,size:"large",type:"primary"},"\u4FDD\u5B58")))};return i.a.createElement("section",null,i.a.createElement(le.a,{form:yt,onFinish:Pe},De==null?void 0:De.map(function(Ye,ve){return i.a.createElement("div",{key:ve},In(Ye,ve))})),((Ve=We.detail)===null||Ve===void 0?void 0:Ve.allow_statistics)&&!Dt&&Re===-1&&i.a.createElement("div",{className:un.a.addStage,onClick:lt},i.a.createElement("span",{className:un.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"),i.a.createElement(E.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8BAD\u9879\u76EE",visible:Xt,onOk:Object(y.a)(v.a.mark(function Ye(){var ve;return v.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,bt.validateFields();case 2:return ke.next=4,Object(G.C)(Object(B.a)({id:De[Re].stage_id,subject_id:pt.pathId},Ne));case 4:ve=ke.sent,rn(),ve.id&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),ye([ve]));case 7:case"end":return ke.stop()}},Ye)})),onCancel:rn},i.a.createElement(le.a,{form:bt,onValuesChange:function(ve){Le(Object(B.a)(Object(B.a)({},Ne),ve))}},i.a.createElement(le.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},i.a.createElement(h.a.Group,null,i.a.createElement(h.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),i.a.createElement(h.a,{value:!0},"jupyter\u5B9E\u8BAD"))),i.a.createElement(le.a.Item,{label:"\u5B9E\u8BAD\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},i.a.createElement(b.a,{suffix:i.a.createElement("span",null,Ne.name.length,"/60")})))),i.a.createElement(ur,{shixunIds:Yt,cb:ye}),i.a.createElement(cr.a,{visible:qt,onCancel:function(){return zt(!1)},onOk:Ee}))},fr=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.user,We=Ze.loading,nt=Ze.globalSetting;return{pathsDetail:Ce,user:Ve,globalSetting:nt,loading:We.models.index}})(pr),hr=$("XzQ7"),kn=$.n(hr),mr=function(Ce){var Ve,We=Ce.pathsDetail,nt=Ce.globalSetting,Et=Ce.loading,Nt=Ce.dispatch,mt=Object(pe.a)(Ce,["pathsDetail","globalSetting","loading","dispatch"]),Ut=Object(S.m)();return Object(t.useEffect)(function(){if(!Ut.pathId)return;Nt({type:"pathsDetail/getPathsDetail",payload:{id:Ut.pathId}}),Nt({type:"pathsDetail/getRightData",payload:{id:Ut.pathId}}),Nt({type:"pathsDetail/getStageData",payload:{subject_id:Ut.pathId}})},[Ut.pathId]),Object(t.useEffect)(function(){var pt;document.title=((pt=We.detail)===null||pt===void 0?void 0:pt.name)||"EduCoder"},[We]),i.a.createElement(ue.a,{spinning:!1},i.a.createElement("section",{className:kn.a.bg},i.a.createElement(q,null),i.a.createElement("section",{className:"edu-container mb80 ".concat(kn.a.wrap)},i.a.createElement("aside",{className:kn.a.content},i.a.createElement("div",{className:kn.a.intro},i.a.createElement("div",{className:kn.a.introTitle},i.a.createElement("span",{className:"font16"},"\u7B80\u4ECB")),i.a.createElement(re.a,{value:(Ve=We.detail)===null||Ve===void 0?void 0:Ve.description})),i.a.createElement(fr,null)),i.a.createElement(ht,null))))},Cr=ge.default=Object(m.a)(function(Ze){var Ce=Ze.pathsDetail,Ve=Ze.loading,We=Ze.globalSetting;return{pathsDetail:Ce,globalSetting:We,loading:Ve}})(mr)},Aky1:function(dt,ge,$){"use strict";$.d(ge,"a",function(){return g});var Ue=$("ErOA"),ue=$("qGJc"),pe=$.n(ue),t="",i;function S(o){m(o)}function m(o){debugger;i=new pe.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(p){console.log("addFileSuccess: "+p.file.name),o.addFileSuccess&&o.addFileSuccess(p),i.startUpload()},onUploadstarted:function(p){var u=p.file.name;if(p.videoId){var r="/api/users/".concat(t,"/video_auths.json");Object(Ue.a)(r,{method:"put",body:{video_id:p.videoId,title:u,file_name:u}}).then(function(d){if(d.status==-1){o.onUploadError&&o.onUploadError(p);return}var f=d.data,c=f.UploadAuth,A=f.UploadAddress,w=f.VideoId;i.setUploadAuthAndAddress(p,c,A)}).catch(function(d){i.deleteFile(i._curIndex),i.nextUpload(),console.log(d)})}else{var e="/api/users/".concat(t,"/video_auths.json"),a="";Object(Ue.a)(e,{method:"Post",body:{title:a+u,file_name:a+u}}).then(function(d){if(d){var f=d.data,c=f.UploadAuth,A=f.UploadAddress,w=f.VideoId;i.setUploadAuthAndAddress(p,c,A,w)}}).catch(function(d){i.deleteFile(i._curIndex),i.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(p){o.onUploadSucceed&&o.onUploadSucceed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(p,u,e){o.onUploadFailed&&o.onUploadFailed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(p,u,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(p,u,e){o.onUploadProgress&&o.onUploadProgress(p,u,e);var a=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(p){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var u="/api/users/".concat(t,"/video_auths.json");Object(Ue.a)(u,{method:"put",body:{video_id:p.videoId}}).then(function(e){var a=e.data,r=a.UploadAuth;i.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(p){o.onUploadEnd&&o.onUploadEnd(p),console.log("onUploadEnd: uploaded all the files")}}),o.gotUploader&&o.gotUploader(i)}function g(o,l){o&&(t=o),S(l);debugger}},E7E6:function(dt,ge){dt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},JTSX:function(dt,ge,$){dt.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},NLgs:function(dt,ge,$){"use strict";$.d(ge,"c",function(){return o}),$.d(ge,"d",function(){return l}),$.d(ge,"b",function(){return u}),$.d(ge,"a",function(){return e});var Ue=$("2qtc"),ue=$("kLXV"),pe=$("q1tI"),t=$.n(pe),i=$("9kvl"),S=$("xKgJ"),m=$("1vsH"),g=$("m3rI"),o=function(r){return!!(l(r)&&p())},l=function(r){return Object(S.n)()?!0:(r({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},p=function(){var r,d=Object(i.b)()._store.getState(),f=d.user;return((r=f.userInfo)===null||r===void 0?void 0:r.profile_completed)?!0:(ue.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:t.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){i.c.push("/account/profile/edit")}}),!1)},u=function(){var r,d=Object(i.b)()._store.getState(),f=d.user;return((r=f.userInfo)===null||r===void 0?void 0:r.professional_certification)?!0:(ue.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(m.z)("/account/certification")}}),!1)},e=function(){return Object(S.a)()?!0:(ue.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"},t.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),t.a.createElement("img",{src:"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),t.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(m.z)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)}},VlDO:function(dt,ge,$){dt.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj"}},XzQ7:function(dt,ge,$){dt.exports={flex_box_center:"flex_box_center___N67ls",flex_space_between:"flex_space_between___2XYCO",flex_box_vertical_center:"flex_box_vertical_center___1LsqB",flex_box_center_end:"flex_box_center_end___3WDUW",flex_box_column:"flex_box_column___MIvMP",bg:"bg___1FRP8",wrap:"wrap___3ESp_",content:"content___2BtE3",intro:"intro___3Wt0Q",introTitle:"introTitle___3vQWN"}},bntm:function(dt,ge,$){"use strict";$.d(ge,"d",function(){return Ue}),$.d(ge,"b",function(){return ue}),$.d(ge,"c",function(){return pe}),$.d(ge,"a",function(){return t});function Ue(i){try{i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullScreen&&i.webkitRequestFullScreen()}catch(S){console.log(S,":e")}}function ue(){document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()}var pe=function(){if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function t(){var i=document.fullscreenElement||document.mozFullscreenElement||document.webkitFullscreenElement,S=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return!(i==null)}},cCSd:function(dt,ge,$){dt.exports={flex_box_center:"flex_box_center___3Q6yG",flex_space_between:"flex_space_between___S_CUk",flex_box_vertical_center:"flex_box_vertical_center___2Gdbl",flex_box_center_end:"flex_box_center_end___1xrL5",flex_box_column:"flex_box_column___16e2L",wrp:"wrp___3ZwBI",drawer:"drawer___1PTh9",menu:"menu___DFNiI",actived:"actived___1sNU9",actived2:"actived2___2BWt2",listItem:"listItem___1ylrh",info:"info___F7JZE",title:"title___2kNmP",titleLeft:"titleLeft___1h-DH",titleRight:"titleRight___hT8FM",search:"search___1KEgc",description:"description___31f06",menuCourse:"menuCourse___3RVET"}},dfu6:function(dt,ge,$){"use strict";$.d(ge,"a",function(){return Ue});var Ue=function(t){var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return i.test(t)},ue=function(t){var i=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.$/;return i.test(t)}},"kNP/":function(dt,ge,$){dt.exports={wrap:"wrap___2juS_",title:"title___2CLX2",radioWrap:"radioWrap___1FMiJ",checkboxWrap:"checkboxWrap___dPm6N",radio:"radio___2vIMS",colorFF0000:"colorFF0000___2Bu8m",pagination:"pagination___2bx8C",createMkdir:"createMkdir___2Zwt9",tree:"tree___2NdBt"}},kwm0:function(dt,ge,$){dt.exports={modal:"modal___1jX7c",uploadWrap:"uploadWrap___3-sVK",upload:"upload___2LemY",uploadLink:"uploadLink___j9Fsx",fileProgress:"fileProgress___11p3K",fileCancel:"fileCancel___3Mx9l",videoName:"videoName___2a-ZN",contentItem:"contentItem___1gUuj"}},qGJc:function(dt,ge,$){(function(Ue){var ue,ue;!function(pe){if(!0)window.OSS=pe(),dt.exports=pe();else var t}(function(){var pe;return function(){function t(i,S,m){function g(p,u){if(!S[p]){if(!i[p]){var e=typeof ue=="function"&&ue;if(!u&&e)return ue(p,!0);if(o)return o(p,!0);var a=new Error("Cannot find module '"+p+"'");throw a.code="MODULE_NOT_FOUND",a}var r=S[p]={exports:{}};i[p][0].call(r.exports,function(d){return g(i[p][1][d]||d)},r,r.exports,t,i,S,m)}return S[p].exports}for(var o=typeof ue=="function"&&ue,l=0;l<m.length;l++)g(m[l]);return g}return t}()({1:[function(t,i,S){"use strict";var m=t("./browser/client");m.Buffer=t("buffer").Buffer,m.co=t("co"),m.urllib=t("../shims/xhr"),m.version=t("./browser/version").version,i.exports=m},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(t,i,S){(function(m,g){"use strict";function o(K){return K&&K.__esModule?K:{default:K}}function l(K,M){return K[M]||K[M.toLowerCase()]}function p(K,M){var I=y.parse(K);if(!I.protocol){var B=M?"https://":"http://";I=y.parse(B+K)}if(I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}function u(K,M,I){var B=I?"https://":"http://",z=M?"-internal.aliyuncs.com":".aliyuncs.com";return K.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(z=".aliyuncs.com"),y.parse(B+K+z)}function e(){return document&&document.location&&document.location.protocol==="https:"}function a(K,M){if(!(this instanceof a))return new a(K,M);K&&K.inited?this.options=K:this.options=a.initOptions(K),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=k,this.agent=this.options.agent||ie),this.ctx=M,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=t("babel-runtime/regenerator"),d=o(r),f=t("babel-runtime/core-js/object/keys"),c=o(f),A=t("debug")("ali-oss"),w=t("./../../shims/crypto/crypto.js"),h=t("path"),P=t("copy-to"),E=t("mime"),_=t("xml2js"),v=t("humanize-ms"),D=t("agentkeepalive"),R=t("merge-descriptors"),y=t("url"),j=t("is-type-of"),U=t("platform"),W=t("utility"),k=t("urllib"),V=t("./version"),G=t("dateformat"),H=t("bowser"),ne=t("../common/signUtils"),X=t("../common/utils"),ie=new D;i.exports=a,a.initOptions=function(K){if(!K||!K.accessKeyId||!K.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var M=e(),I={region:"oss-cn-hangzhou",internal:!1,secure:M,bucket:null,endpoint:null,cname:!1};if((0,c.default)(K).forEach(function(B){K[B]!==void 0&&(I[B]=K[B])}),I.accessKeyId=I.accessKeyId.trim(),I.accessKeySecret=I.accessKeySecret.trim(),I.timeout&&(I.timeout=v(I.timeout)),I.endpoint)I.endpoint=p(I.endpoint,I.secure);else{if(!I.region)throw new Error("require options.endpoint or options.region");I.endpoint=u(I.region,I.internal,I.secure)}return I.inited=!0,I};var Z=a.prototype;R(Z,t("./object")),R(Z,t("./managed_upload")),R(Z,t("../common/multipart")),R(Z,t("../common/thunkpool.js")),a.Wrapper=t("./wrapper"),Z.signature=function(K){return A("authorization stringToSign: %s",K),ne.computeSignature(this.options.accessKeySecret,K)},Z.authorization=function(K,M,I,B){var z=ne.buildCanonicalString(K.toUpperCase(),M,{headers:B,parameters:I});return ne.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},Z.createRequest=function(K){var M={"x-oss-date":G(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(M["x-oss-security-token"]=this.options.stsToken),P(K.headers).to(M),l(M,"Content-Type")||(K.mime===E.default_type&&(K.mime=""),K.mime&&K.mime.indexOf("/")>0?M["Content-Type"]=K.mime:M["Content-Type"]=E.getType(K.mime||h.extname(K.object||""))||"application/octet-stream"),K.content&&(M["Content-Md5"]=w.createHash("md5").update(new g(K.content,"utf8")).digest("base64"),M["Content-Length"]||(M["Content-Length"]=K.content.length));var I=this._getResource(K);M.authorization=this.authorization(K.method,I,K.subres,M);var B=this._getReqUrl(K);A("request %s %s, with headers %j, !!stream: %s",K.method,B,M,!!K.stream);var z=K.timeout||this.options.timeout;return{url:B,params:{agent:this.agent,method:K.method,content:K.content,stream:K.stream,headers:M,timeout:z,writeStream:K.writeStream,customResponse:K.customResponse,ctx:K.ctx||this.ctx}}},Z.request=d.default.mark(function K(M){var I,B,z,Y;return d.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return I=this.createRequest(M),B=void 0,z=void 0,J.prev=3,J.next=6,this.urllib.request(I.url,I.params);case 6:B=J.sent,A("response %s %s, got %s, headers: %j",M.method,I.url,B.status,B.headers),J.next=13;break;case 10:J.prev=10,J.t0=J.catch(3),z=J.t0;case 13:if(Y=void 0,!B||!M.successStatuses||M.successStatuses.indexOf(B.status)!==-1){J.next=26;break}return J.next=17,this.requestError(B);case 17:if(Y=J.sent,Y.code!=="RequestTimeTooSkewed"){J.next=23;break}return this.options.amendTimeSkewed=+new Date(Y.serverTime)-new Date,J.next=22,this.request(M);case 22:return J.abrupt("return",J.sent);case 23:Y.params=M,J.next=30;break;case 26:if(!z){J.next=30;break}return J.next=29,this.requestError(z);case 29:Y=J.sent;case 30:if(!Y){J.next=32;break}throw Y;case 32:if(!M.xmlResponse){J.next=36;break}return J.next=35,this.parseXML(B.data);case 35:B.data=J.sent;case 36:return J.abrupt("return",B);case 37:case"end":return J.stop()}},K,this,[[3,10]])}),Z._getResource=function(K){var M="/";return K.bucket&&(M+=K.bucket+"/"),K.object&&(M+=K.object),M},Z._isIP=function(K){return X._isIP(K)},Z._escape=function(K){return W.encodeURIComponent(K).replace(/%2F/g,"/")},Z._getReqUrl=function(K){var M={};P(this.options.endpoint).to(M);var I=this._isIP(M.hostname),B=this.options.cname;!K.bucket||B||I||(M.host=K.bucket+"."+M.host);var z="/";K.bucket&&I&&(z+=K.bucket+"/"),K.object&&(z+=this._escape(K.object).replace(/\+/g,"%2B")),M.pathname=z;var Y={};if(K.query&&R(Y,K.query),K.subres){var J={};j.string(K.subres)?J[K.subres]="":j.array(K.subres)?K.subres.forEach(function(ce){J[ce]=""}):J=K.subres,R(Y,J)}return M.query=Y,y.format(M)},Z._getUserAgent=function(){var K=m&&m.browser?"js":"nodejs",M="aliyun-sdk-"+K+"/"+V.version,I=U.description;return!I&&m&&(I="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(M+" "+I)},Z._checkUserAgent=function(K){return K.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},Z.checkBrowserAndVersion=function(K,M){return H.name===K&&H.version.split(".")[0]===M},Z.parseXML=function(K){return function(M){g.isBuffer(K)&&(K=K.toString()),_.parseString(K,{explicitRoot:!1,explicitArray:!1},M)}},Z.requestError=d.default.mark(function K(M){var I,B,z,Y;return d.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(I=null,M.data&&M.data.length){J.next=5;break}M.status===-1||M.status===-2?(I=new Error(M.message),I.name=M.name,I.status=M.status,I.code=M.name):(M.status===404?(I=new Error("Object not exists"),I.name="NoSuchKeyError",I.status=404,I.code="NoSuchKey"):M.status===412?(I=new Error("Pre condition failed"),I.name="PreconditionFailedError",I.status=412,I.code="PreconditionFailed"):(I=new Error("Unknow error, status: "+M.status),I.name="UnknowError",I.status=M.status),I.requestId=M.headers["x-oss-request-id"],I.host=""),J.next=30;break;case 5:return B=String(M.data),A("request response error data: %s",B),z=void 0,J.prev=8,J.next=11,this.parseXML(B)||{};case 11:z=J.sent,J.next=21;break;case 14:return J.prev=14,J.t0=J.catch(8),A(B),J.t0.message+=`
|
|
|
raw xml: `+B,J.t0.status=M.status,J.t0.requestId=M.headers["x-oss-request-id"],J.abrupt("return",J.t0);case 21:Y=z.Message||"unknow request error, status: "+M.status,z.Condition&&(Y+=" (condition: "+z.Condition+")"),I=new Error(Y),I.name=z.Code?z.Code+"Error":"UnknowError",I.status=M.status,I.code=z.Code,I.requestId=z.RequestId,I.hostId=z.HostId,I.serverTime=z.ServerTime;case 30:return A("generate error %j",I),J.abrupt("return",I);case 32:case"end":return J.stop()}},K,this,[[8,14]])})}).call(this,t("_process"),t("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(t,i,S){(function(m){"use strict";function g(P){return P&&P.__esModule?P:{default:P}}function o(P,E){if(!(this instanceof o))return new o(P,E);h.call(this,E),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var l=t("babel-runtime/core-js/array/from"),p=g(l),u=t("babel-runtime/regenerator"),e=g(u),a=t("is-type-of"),r=t("util"),d=t("path"),f=t("mime"),c=t("copy-to"),A=S;A.multipartUpload=e.default.mark(function P(E,_,v){var D,R,y,j,U,W,k,V,G;return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),v=v||{},!v.checkpoint||!v.checkpoint.uploadId){H.next=6;break}return H.next=5,this._resumeMultipart(v.checkpoint,v);case 5:return H.abrupt("return",H.sent);case 6:return D=102400,v.mime||(a.file(_)?v.mime=f.getType(d.extname(_.name)):a.blob(_)?v.mime=_.type:v.mime=f.getType(d.extname(_))),v.headers=v.headers||{},this._convertMetaToHeaders(v.meta,v.headers),H.next=12,this._getFileSize(_);case 12:if(!((R=H.sent)<D)){H.next=25;break}return y=this._createStream(_,0,R),v.contentLength=R,H.next=18,this.putStream(E,y,v);case 18:if(j=H.sent,!v||!v.progress){H.next=22;break}return H.next=22,v.progress(1);case 22:return U={res:j.res,bucket:this.options.bucket,name:E,etag:j.res.headers.etag},(v.headers&&v.headers["x-oss-callback"]||v.callback)&&(U.data=j.data),H.abrupt("return",U);case 25:if(!(v.partSize&&v.partSize<D)){H.next=27;break}throw new Error("partSize must not be smaller than "+D);case 27:return H.next=29,this.initMultipartUpload(E,v);case 29:if(W=H.sent,k=W.uploadId,V=this._getPartSize(R,v.partSize),G={file:_,name:E,fileSize:R,partSize:V,uploadId:k,doneParts:[]},!v||!v.progress){H.next=36;break}return H.next=36,v.progress(0,G,W.res);case 36:return H.next=38,this._resumeMultipart(G,v);case 38:return H.abrupt("return",H.sent);case 39:case"end":return H.stop()}},P,this)}),A._resumeMultipart=e.default.mark(function P(E,_){var v,D,R,y,j,U,W,k,V,G,H,ne,X,ie,Z,K,M,I,B,z,Y;return e.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(!this.isCancel()){J.next=2;break}throw this._makeCancelEvent();case 2:if(v=E.file,D=E.fileSize,R=E.partSize,y=E.uploadId,j=E.doneParts,U=E.name,W=[],j.length>0&&c(j).to(W),k=this._divideParts(D,R),V=k.length,G=!1,H=e.default.mark(function ce(oe,fe){var _e,te,ee;return e.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(oe.isCancel()){se.next=21;break}return se.prev=1,_e=k[fe-1],te={stream:oe._createStream(v,_e.start,_e.end),size:_e.end-_e.start},se.next=6,oe._uploadPart(U,y,fe,te);case 6:if(ee=se.sent,oe.isCancel()||G){se.next=13;break}if(E.doneParts.push({number:fe,etag:ee.res.headers.etag}),W.push({number:fe,etag:ee.res.headers.etag}),!_||!_.progress){se.next=13;break}return se.next=13,_.progress(j.length/V,E,ee.res);case 13:se.next=21;break;case 15:if(se.prev=15,se.t0=se.catch(1),oe.isCancel()){se.next=21;break}throw oe.cancel(),se.t0.partNum=fe,se.t0;case 21:case"end":return se.stop()}},ce,this,[[1,15]])}),ne=(0,p.default)(new Array(V),function(ce,oe){return oe+1}),X=W.map(function(ce){return ce.number}),ie=ne.filter(function(ce){return X.indexOf(ce)<0}),Z=5,K=_.parallel||Z,!this.checkBrowserAndVersion("Internet Explorer","10")&&K!==1){J.next=26;break}M=0;case 16:if(!(M<ie.length)){J.next=24;break}if(!this.isCancel()){J.next=19;break}throw this._makeCancelEvent();case 19:return J.next=21,H(this,ie[M]);case 21:M++,J.next=16;break;case 24:J.next=40;break;case 26:for(I=[],B=0;B<ie.length;B++)I.push(H(this,ie[B]));return J.next=30,this._thunkPool(I,K);case 30:if(z=J.sent,G=!0,!(z&&z.length>0)){J.next=37;break}throw this.resetCancelFlag(),Y=z[0],Y.message="Failed to upload some parts with error: "+Y.toString()+" part_num: "+Y.partNum,Y;case 37:if(!this.isCancel()){J.next=40;break}throw I=null,this._makeCancelEvent();case 40:return J.next=42,this.completeMultipartUpload(U,y,W,_);case 42:return J.abrupt("return",J.sent);case 43:case"end":return J.stop()}},P,this)}),a.file=function(P){return typeof File!="undefined"&&P instanceof File},a.blob=function(P){return typeof Blob!="undefined"&&P instanceof Blob},A._getFileSize=e.default.mark(function P(E){var _;return e.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!a.buffer(E)){v.next=4;break}return v.abrupt("return",E.length);case 4:if(!a.blob(E)&&!a.file(E)){v.next=6;break}return v.abrupt("return",E.size);case 6:if(!a.string(E)){v.next=11;break}return v.next=9,this._statFile(E);case 9:return _=v.sent,v.abrupt("return",_.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return v.stop()}},P,this)});var w=t("stream"),h=w.Readable;r.inherits(o,h),o.prototype.readFileAndPush=function(P){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,v=_+P;v=v>this.fileBuffer.length?this.fileBuffer.length:v,this.start=v,E=this.push(this.fileBuffer.slice(_,v))}},o.prototype._read=function(P){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);P=P||16384;var E=this;this.reader.onload=function(_){E.fileBuffer=new m(new Uint8Array(_.target.result)),E.file=null,E.readFileAndPush(P)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(P)},A._createStream=function(P,E,_){if(a.blob(P)||a.file(P))return new o(P.slice(E,_));throw new Error("_createStream requires File/String.")},A._getPartSize=function(P,E){return E?Math.max(Math.ceil(P/1e4),E):1048576},A._divideParts=function(P,E){for(var _=Math.ceil(P/E),v=[],D=0;D<_;D++){var R=E*D,y=Math.min(R+E,P);v.push({start:R,end:y})}return v},A._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(t,i,S){"use strict";function m(E){return E&&E.__esModule?E:{default:E}}var g=t("babel-runtime/core-js/object/keys"),o=m(g),l=t("babel-runtime/regenerator"),p=m(l),u=t("debug")("ali-oss:object"),e=t("utility"),a=t("fs"),r=t("is-type-of"),d=t("url"),f=t("copy-to"),c=t("path"),A=t("mime"),w=t("../common/callback"),h=t("../common/signUtils"),P=S;P.append=p.default.mark(function E(_,v,D){var R;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return D=D||{},D.position===void 0&&(D.position="0"),D.subres={append:"",position:D.position},D.method="POST",y.next=6,this.put(_,v,D);case 6:return R=y.sent,R.nextAppendPosition=R.res.headers["x-oss-next-append-position"],y.abrupt("return",R);case 9:case"end":return y.stop()}},E,this)}),P.put=p.default.mark(function E(_,v,D){var R,y,j,U,W,k;return p.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(R=void 0,D=D||{},!r.buffer(v)){V.next=6;break}R=v,V.next=18;break;case 6:if(!r.blob(v)&&!r.file(v)){V.next=17;break}return D.mime||(r.file(v)?D.mime=A.getType(c.extname(v.name)):D.mime=v.type),y=this._createStream(v,0,v.size),V.next=11,this._getFileSize(v);case 11:return D.contentLength=V.sent,V.next=14,this.putStream(_,y,D);case 14:return V.abrupt("return",V.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return D.headers=D.headers||{},this._convertMetaToHeaders(D.meta,D.headers),j=D.method||"PUT",U=this._objectRequestParams(j,_,D),w.encodeCallback(U,D),U.mime=D.mime,U.content=R,U.successStatuses=[200],V.next=28,this.request(U);case 28:return W=V.sent,k={name:_,url:this._objectUrl(_),res:W.res},U.headers&&U.headers["x-oss-callback"]&&(k.data=JSON.parse(W.data.toString())),V.abrupt("return",k);case 32:case"end":return V.stop()}},E,this)}),P.putStream=p.default.mark(function E(_,v,D){var R,y,j,U;return p.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return D=D||{},D.headers=D.headers||{},D.contentLength?D.headers["Content-Length"]=D.contentLength:D.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(D.meta,D.headers),R=D.method||"PUT",y=this._objectRequestParams(R,_,D),w.encodeCallback(y,D),y.mime=D.mime,y.stream=v,y.successStatuses=[200],W.next=12,this.request(y);case 12:return j=W.sent,U={name:_,url:this._objectUrl(_),res:j.res},y.headers&&y.headers["x-oss-callback"]&&(U.data=JSON.parse(j.data.toString())),W.abrupt("return",U);case 16:case"end":return W.stop()}},E,this)}),P.head=p.default.mark(function E(_,v){var D,R,y;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return D=this._objectRequestParams("HEAD",_,v),D.successStatuses=[200,304],j.next=4,this.request(D);case 4:return R=j.sent,y={meta:null,res:R.res,status:R.status},R.status===200&&(0,o.default)(R.headers).forEach(function(U){U.indexOf("x-oss-meta-")===0&&(y.meta||(y.meta={}),y.meta[U.substring(11)]=R.headers[U])}),j.abrupt("return",y);case 8:case"end":return j.stop()}},E,this)}),P.get=p.default.mark(function E(_,v,D){var R,y,j,U;return p.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return R=null,y=!1,r.writableStream(v)?R=v:r.string(v)?(R=a.createWriteStream(v),y=!0):D=v,D=D||{},D.process&&(D.subres=D.subres||{},D.subres["x-oss-process"]=D.process),j=void 0,W.prev=6,U=this._objectRequestParams("GET",_,D),U.writeStream=R,U.successStatuses=[200,206,304],W.next=12,this.request(U);case 12:j=W.sent,y&&R.destroy(),W.next=24;break;case 16:if(W.prev=16,W.t0=W.catch(6),!y){W.next=23;break}return R.destroy(),u("get error: %s, delete the exists file %s",W.t0,v),W.next=23,this._deleteFileSafe(v);case 23:throw W.t0;case 24:return W.abrupt("return",{res:j.res,content:j.data});case 25:case"end":return W.stop()}},E,this,[[6,16]])}),P.getStream=p.default.mark(function E(_,v){var D,R;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return v=v||{},D=this._objectRequestParams("GET",_,v),D.customResponse=!0,D.successStatuses=[200,206,304],y.next=6,this.request(D);case 6:return R=y.sent,y.abrupt("return",{stream:R.res,res:{status:R.status,headers:R.headers}});case 8:case"end":return y.stop()}},E,this)}),P.delete=p.default.mark(function E(_,v){var D,R;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return D=this._objectRequestParams("DELETE",_,v),D.successStatuses=[204],y.next=4,this.request(D);case 4:return R=y.sent,y.abrupt("return",{res:R.res});case 6:case"end":return y.stop()}},E,this)}),P.deleteMulti=p.default.mark(function E(_,v){var D,R,y,j,U,W;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:for(v=v||{},D=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,v.quiet?D+=` <Quiet>true</Quiet>
|
|
|
`:D+=` <Quiet>false</Quiet>
|
|
|
`,R=0;R<_.length;R++)D+=" <Object><Key>"+e.escape(this._objectName(_[R]))+`</Key></Object>
|
|
|
`;return D+="</Delete>",u("delete multi objects: %s",D),v.subres="delete",y=this._objectRequestParams("POST","",v),y.mime="xml",y.content=D,y.xmlResponse=!0,y.successStatuses=[200],k.next=14,this.request(y);case 14:return j=k.sent,U=j.data,W=U&&U.Deleted||null,W&&(Array.isArray(W)||(W=[W]),W=W.map(function(V){return V.Key})),k.abrupt("return",{res:j.res,deleted:W});case 19:case"end":return k.stop()}},E,this)}),P.copy=p.default.mark(function E(_,v,D){var R,y,j;return p.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return D=D||{},D.headers=D.headers||{},(0,o.default)(D.headers).forEach(function(W){D.headers["x-oss-copy-source-"+W.toLowerCase()]=D.headers[W]}),D.meta&&(D.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(D.meta,D.headers),v=v[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(v):"/"+encodeURIComponent(v.slice(1)),D.headers["x-oss-copy-source"]=v,R=this._objectRequestParams("PUT",_,D),R.xmlResponse=!0,R.successStatuses=[200,304],U.next=12,this.request(R);case 12:return y=U.sent,j=y.data,j&&(j={etag:j.ETag,lastModified:j.LastModified}),U.abrupt("return",{data:j,res:y.res});case 16:case"end":return U.stop()}},E,this)}),P.putMeta=p.default.mark(function E(_,v,D){return p.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,this.copy(_,_,{meta:v||{},timeout:D&&D.timeout,ctx:D&&D.ctx});case 2:return R.abrupt("return",R.sent);case 3:case"end":return R.stop()}},E,this)}),P.list=p.default.mark(function E(_,v){var D,R,y,j,U;return p.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return D=this._objectRequestParams("GET","",v),D.query=_,D.xmlResponse=!0,D.successStatuses=[200],W.next=6,this.request(D);case 6:return R=W.sent,y=R.data.Contents,j=this,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(k){return{name:k.Key,url:j._objectUrl(k.Key),lastModified:k.LastModified,etag:k.ETag,type:k.Type,size:Number(k.Size),storageClass:k.StorageClass,owner:{id:k.Owner.ID,displayName:k.Owner.DisplayName}}})),U=R.data.CommonPrefixes||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(k){return k.Prefix})),W.abrupt("return",{res:R.res,objects:y,prefixes:U,nextMarker:R.data.NextMarker||null,isTruncated:R.data.IsTruncated==="true"});case 13:case"end":return W.stop()}},E,this)}),P.putACL=p.default.mark(function E(_,v,D){var R,y;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return D=D||{},D.subres="acl",D.headers=D.headers||{},D.headers["x-oss-object-acl"]=v,_=this._objectName(_),R=this._objectRequestParams("PUT",_,D),R.successStatuses=[200],j.next=9,this.request(R);case 9:return y=j.sent,j.abrupt("return",{res:y.res});case 11:case"end":return j.stop()}},E,this)}),P.getACL=p.default.mark(function E(_,v){var D,R;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return v=v||{},v.subres="acl",_=this._objectName(_),D=this._objectRequestParams("GET",_,v),D.successStatuses=[200],D.xmlResponse=!0,y.next=8,this.request(D);case 8:return R=y.sent,y.abrupt("return",{acl:R.data.AccessControlList.Grant,owner:{id:R.data.Owner.ID,displayName:R.data.Owner.DisplayName},res:R.res});case 10:case"end":return y.stop()}},E,this)}),P.restore=p.default.mark(function E(_,v){var D,R;return p.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return v=v||{},v.subres="restore",D=this._objectRequestParams("POST",_,v),D.successStatuses=[202],y.next=6,this.request(D);case 6:return R=y.sent,y.abrupt("return",{res:R.res});case 8:case"end":return y.stop()}},E,this)}),P.signatureUrl=function(E,_){_=_||{},E=this._objectName(E),_.method=_.method||"GET";var v=e.timestamp()+(_.expires||1800),D={bucket:this.options.bucket,object:E},R=this._getResource(D);this.options.stsToken&&(_["security-token"]=this.options.stsToken);var y=h._signatureForURL(this.options.accessKeySecret,_,R,v),j=d.parse(this._getReqUrl(D));return j.query={OSSAccessKeyId:this.options.accessKeyId,Expires:v,Signature:y.Signature},f(y.subResource).to(j.query),j.format()},P.getObjectUrl=function(E,_){return _?_[_.length-1]!=="/"&&(_+="/"):_=this.options.endpoint.format(),_+this._escape(this._objectName(E))},P._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},P.generateObjectUrl=function(E,_){if(_)_[_.length-1]!=="/"&&(_+="/");else{_=this.options.endpoint.format();var v=d.parse(_),D=this.options.bucket;v.hostname=D+"."+v.hostname,v.host=D+"."+v.host,_=v.format()}return _+this._escape(this._objectName(E))},P._objectRequestParams=function(E,_,v){if(!this.options.bucket)throw new Error("Please create a bucket first");v=v||{},_=this._objectName(_);var D={object:_,bucket:this.options.bucket,method:E,subres:v&&v.subres,timeout:v&&v.timeout,ctx:v&&v.ctx};return v.headers&&(D.headers={},f(v.headers).to(D.headers)),D},P._objectName=function(E){return E.replace(/^\/+/,"")},P._statFile=function(E){return function(_){a.stat(E,_)}},P._convertMetaToHeaders=function(E,_){E&&(0,o.default)(E).forEach(function(v){_["x-oss-meta-"+v]=E[v]})},P._deleteFileSafe=function(E){return function(_){a.exists(E,function(v){v?a.unlink(E,function(D){D&&u("unlink %j error: %s",E,D),_()}):_()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(t,i,S){"use strict";S.version="5.3.1"},{}],6:[function(t,i,S){"use strict";function m(c){return c&&c.__esModule?c:{default:c}}function g(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function o(c){if(!c)return!1;var A=c.constructor;return!!A&&(A.name==="GeneratorFunction"||A.displayName==="GeneratorFunction"||g(A.prototype)||g(c.prototype))}function l(c,A){var w=new c(A),h=(0,r.default)(w),P=(0,r.default)((0,e.default)(w));h.concat(P).forEach(function(E){o(w[E])?this[E]=d.wrap(w[E]).bind(w):this[E]=w[E]},this)}function p(c){if(!(this instanceof p))return new p(c);l.call(this,f,c)}var u=t("babel-runtime/core-js/object/get-prototype-of"),e=m(u),a=t("babel-runtime/core-js/object/keys"),r=m(a),d=t("co"),f=t("./client");i.exports=p,p.STS=function c(A){if(!(this instanceof c))return new c(A);l.call(this,f.STS,A)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(t,i,S){(function(m){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}var o=t("babel-runtime/core-js/object/keys"),l=g(o),p=t("babel-runtime/core-js/json/stringify"),u=g(p);S.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var d=new m((0,u.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=d,a.callback.customValue){var f={};(0,l.default)(a.callback.customValue).forEach(function(c){f["x:"+c]=a.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new m((0,u.default)(f)).toString("base64")}}}}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(t,i,S){"use strict";var m=t("babel-runtime/regenerator"),g=function(u){return u&&u.__esModule?u:{default:u}}(m),o=t("copy-to"),l=t("./callback"),p=S;p.listUploads=g.default.mark(function u(e,a){var r,d,f,c;return g.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return a=a||{},r={},o(a).to(r),r.subres="uploads",d=this._objectRequestParams("GET","",r),d.query=e,d.xmlResponse=!0,d.successStatuses=[200],A.next=10,this.request(d);case 10:return f=A.sent,c=f.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(w){return{name:w.Key,uploadId:w.UploadId,initiated:w.Initiated}}),A.abrupt("return",{res:f.res,uploads:c,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return A.stop()}},u,this)}),p.listParts=g.default.mark(function u(e,a,r,d){var f,c,A;return g.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return d=d||{},f={},o(d).to(f),f.subres={uploadId:a},c=this._objectRequestParams("GET",e,f),c.query=r,c.xmlResponse=!0,c.successStatuses=[200],w.next=10,this.request(c);case 10:return A=w.sent,w.abrupt("return",{res:A.res,uploadId:A.data.UploadId,bucket:A.data.Bucket,name:A.data.Key,partNumberMarker:A.data.PartNumberMarker,nextPartNumberMarker:A.data.NextPartNumberMarker,maxParts:A.data.MaxParts,isTruncated:A.data.IsTruncated,parts:A.data.Part||[]});case 12:case"end":return w.stop()}},u,this)}),p.abortMultipartUpload=g.default.mark(function u(e,a,r){var d,f,c;return g.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return this.cancel(),r=r||{},d={},o(r).to(d),d.subres={uploadId:a},f=this._objectRequestParams("DELETE",e,d),f.successStatuses=[204],A.next=9,this.request(f);case 9:return c=A.sent,A.abrupt("return",{res:c.res});case 11:case"end":return A.stop()}},u,this)}),p.initMultipartUpload=g.default.mark(function u(e,a){var r,d,f;return g.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return a=a||{},r={},o(a).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(a.meta,r.headers),r.subres="uploads",d=this._objectRequestParams("POST",e,r),d.mime=a.mime,d.xmlResponse=!0,d.successStatuses=[200],c.next=12,this.request(d);case 12:return f=c.sent,c.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return c.stop()}},u,this)}),p.uploadPart=g.default.mark(function u(e,a,r,d,f,c,A){var w;return g.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return w={stream:this._createStream(d,f,c),size:c-f},h.next=3,this._uploadPart(e,a,r,w,A);case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},u,this)}),p.completeMultipartUpload=g.default.mark(function u(e,a,r,d){var f,c,A,w,h,P,E,_;return g.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:for(f=r.concat().sort(function(D,R){return D.number-R.number}).filter(function(D,R,y){return!R||D.number!==y[R-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,A=0;A<f.length;A++)w=f[A],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+w.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+w.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",d=d||{},h={},o(d).to(h),h.subres={uploadId:a},P=this._objectRequestParams("POST",e,h),l.encodeCallback(P,h),P.mime="xml",P.content=c,P.headers&&P.headers["x-oss-callback"]||(P.xmlResponse=!0),P.successStatuses=[200],v.next=16,this.request(P);case 16:return E=v.sent,_={res:E.res,bucket:P.bucket,name:e,etag:E.res.headers.etag},P.headers&&P.headers["x-oss-callback"]&&(_.data=JSON.parse(E.data.toString())),v.abrupt("return",_);case 20:case"end":return v.stop()}},u,this)}),p._uploadPart=g.default.mark(function u(e,a,r,d,f){var c,A,w;return g.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return f=f||{},c={},o(f).to(c),c.headers={"Content-Length":d.size},c.subres={partNumber:r,uploadId:a},A=this._objectRequestParams("PUT",e,c),A.mime=c.mime,A.stream=d.stream,A.successStatuses=[200],h.next=11,this.request(A);case 11:return w=h.sent,d.stream=null,A.stream=null,h.abrupt("return",{name:e,etag:w.res.headers.etag,res:w.res});case 15:case"end":return h.stop()}},u,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(t,i,S){(function(m){"use strict";function g(r){return r&&r.__esModule?r:{default:r}}var o=t("babel-runtime/core-js/json/stringify"),l=g(o),p=t("babel-runtime/core-js/object/keys"),u=g(p),e=t("./../../shims/crypto/crypto.js"),a=t("is-type-of");S.buildCanonicalizedResource=function(r,d){var f=""+r,c="?";if(a.string(d)&&d.trim()!=="")f+=c+d;else if(a.array(d))d.sort(),f+=c+d.join("&");else if(d){var A=function(P,E){return P[0]>E[0]?1:P[0]<E[0]?-1:0},w=function(P){f+=c+P,d[P]&&(f+="="+d[P]),c="&"};(0,u.default)(d).sort(A).forEach(w)}return f},S.buildCanonicalString=function(r,d,f,c){f=f||{};var A=f.headers||{},w=[],h={},P=[r.toUpperCase(),A["Content-Md5"]||"",A["Content-Type"]||A["Content-Type".toLowerCase()],c||A["x-oss-date"]];return(0,u.default)(A).forEach(function(E){var _=E.toLowerCase();_.indexOf("x-oss-")===0&&(h[_]=String(A[E]).trim())}),(0,u.default)(h).sort().forEach(function(E){w.push(E+":"+h[E])}),P=P.concat(w),P.push(this.buildCanonicalizedResource(d,f.parameters)),P.join(`
|
|
|
`)},S.computeSignature=function(r,d){return e.createHmac("sha1",r).update(new m(d,"utf8")).digest("base64")},S.authorization=function(r,d,f){return"OSS "+r+":"+this.computeSignature(d,f)},S._signatureForURL=function(r,d,f,c){var A={},w={};if(d.process&&(w["x-oss-process"]=d.process),d.response&&(0,u.default)(d.response).forEach(function(_){var v="response-"+_.toLowerCase();w[v]=d.response[_]}),(0,u.default)(d).forEach(function(_){var v=_.toLowerCase(),D=d[_];v.indexOf("x-oss-")===0?A[v]=D:v.indexOf("content-md5")===0||v.indexOf("content-type")===0?A[_]=D:v!=="expires"&&v!=="response"&&v!=="process"&&v!=="method"&&(w[v]=D)}),Object.prototype.hasOwnProperty.call(d,"security-token")&&(w["security-token"]=d["security-token"]),Object.prototype.hasOwnProperty.call(d,"callback")){var h={callbackUrl:encodeURI(d.callback.url),callbackBody:d.callback.body};if(d.callback.host&&(h.callbackHost=d.callback.host),d.callback.contentType&&(h.callbackBodyType=d.callback.contentType),w.callback=new m((0,l.default)(h)).toString("base64"),d.callback.customValue){var P={};(0,u.default)(d.callback.customValue).forEach(function(_){P["x:"+_]=d.callback.customValue[_]}),w["callback-var"]=new m((0,l.default)(P)).toString("base64")}}var E=this.buildCanonicalString(d.method,f,{headers:A,parameters:w},c.toString());return{Signature:this.computeSignature(r,E),subResource:w}}}).call(this,t("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(t,i,S){"use strict";var m=t("babel-runtime/regenerator"),g=function(e){return e&&e.__esModule?e:{default:e}}(m),o=t("co"),l=t("co-priority-queue"),p=t("any-promise"),u=S;u._thunkPool=function(e,a){function r(w,h){++c===w.length&&h(A)}function d(w,h){function P(){var y;return g.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:y=void 0;case 1:if(f.isCancel()){j.next=9;break}return j.next=4,v.next();case 4:return y=j.sent,j.next=7,y();case 7:j.next=1;break;case 9:D+=1,D===w&&(v.fns=[],v.buffer=[],h(A));case 11:case"end":return j.stop()}},_,this)}function E(y){console.error(y.stack)}for(var _=g.default.mark(P),v=new l,D=0,R=0;R<w;R++)o(P).catch(E);return function(y,j){return function(U){v.push(g.default.mark(function W(){return g.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.prev=0,k.t0=U,k.next=4,y;case 4:k.t1=k.sent,(0,k.t0)(null,k.t1),k.next=11;break;case 8:k.prev=8,k.t2=k.catch(0),U(k.t2);case 11:case"end":return k.stop()}},W,this,[[0,8]])}),j)}}}var f=this,c=0,A=[];return new p(function(w){function h(D){return g.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,_(e[D]);case 2:r(e,w);case 3:case"end":return R.stop()}},E,this)}function P(D){A.push(D),r(e,w)}for(var E=g.default.mark(h),_=new d(a,w),v=0;v<e.length;v++)o(h(v)).catch(P)})},u.cancel=function(){this.options.cancelFlag=!0},u.isCancel=function(){return this.options.cancelFlag},u.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(t,i,S){"use strict";S._isIP=function(m){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,o=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return g.test(m)||o.test(m)}},{}],12:[function(t,i,S){function m(){}i.exports=m,i.exports.HttpsAgent=m},{}],13:[function(t,i,S){i.exports=t("./register")().Promise},{"./register":15}],14:[function(t,i,S){"use strict";var m=null;i.exports=function(g,o){return function(l,p){l=l||null,p=p||{};var u=p.global!==!1;if(m===null&&u&&(m=g["@@any-promise/REGISTRATION"]||null),m!==null&&l!==null&&m.implementation!==l)throw new Error('any-promise already defined as "'+m.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return m===null&&(m=l!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:l}:o(l),u&&(g["@@any-promise/REGISTRATION"]=m)),m}}},{}],15:[function(t,i,S){"use strict";function m(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}i.exports=t("./loader")(window,m)},{"./loader":14}],16:[function(t,i,S){i.exports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(t,i,S){i.exports={default:t("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(t,i,S){i.exports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(t,i,S){i.exports={default:t("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(t,i,S){i.exports={default:t("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(t,i,S){i.exports={default:t("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(t,i,S){i.exports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(t,i,S){"use strict";S.__esModule=!0,S.default=function(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(t,i,S){"use strict";S.__esModule=!0;var m=t("../core-js/object/define-property"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);S.default=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,g.default)(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}()},{"../core-js/object/define-property":20}],32:[function(t,i,S){"use strict";function m(e){return e&&e.__esModule?e:{default:e}}S.__esModule=!0;var g=t("../core-js/symbol/iterator"),o=m(g),l=t("../core-js/symbol"),p=m(l),u=typeof p.default=="function"&&typeof o.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":typeof e};S.default=typeof p.default=="function"&&u(o.default)==="symbol"?function(e){return e===void 0?"undefined":u(e)}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":e===void 0?"undefined":u(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(t,i,S){i.exports=t("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(t,i,S){"use strict";function m(w){var h=w.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var P=w.indexOf("=");return P===-1&&(P=h),[P,P===h?0:4-P%4]}function g(w){var h=m(w),P=h[0],E=h[1];return 3*(P+E)/4-E}function o(w,h,P){return 3*(h+P)/4-P}function l(w){for(var h,P=m(w),E=P[0],_=P[1],v=new d(o(w,E,_)),D=0,R=_>0?E-4:E,y=0;y<R;y+=4)h=r[w.charCodeAt(y)]<<18|r[w.charCodeAt(y+1)]<<12|r[w.charCodeAt(y+2)]<<6|r[w.charCodeAt(y+3)],v[D++]=h>>16&255,v[D++]=h>>8&255,v[D++]=255&h;return _===2&&(h=r[w.charCodeAt(y)]<<2|r[w.charCodeAt(y+1)]>>4,v[D++]=255&h),_===1&&(h=r[w.charCodeAt(y)]<<10|r[w.charCodeAt(y+1)]<<4|r[w.charCodeAt(y+2)]>>2,v[D++]=h>>8&255,v[D++]=255&h),v}function p(w){return a[w>>18&63]+a[w>>12&63]+a[w>>6&63]+a[63&w]}function u(w,h,P){for(var E,_=[],v=h;v<P;v+=3)E=(w[v]<<16&16711680)+(w[v+1]<<8&65280)+(255&w[v+2]),_.push(p(E));return _.join("")}function e(w){for(var h,P=w.length,E=P%3,_=[],v=0,D=P-E;v<D;v+=16383)_.push(u(w,v,v+16383>D?D:v+16383));return E===1?(h=w[P-1],_.push(a[h>>2]+a[h<<4&63]+"==")):E===2&&(h=(w[P-2]<<8)+w[P-1],_.push(a[h>>10]+a[h>>4&63]+a[h<<2&63]+"=")),_.join("")}S.byteLength=g,S.toByteArray=l,S.fromByteArray=e;for(var a=[],r=[],d=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,A=f.length;c<A;++c)a[c]=f[c],r[f.charCodeAt(c)]=c;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(t,i,S){!function(m,g,o){i!==void 0&&i.exports?i.exports=o():typeof pe=="function"&&pe.amd?pe("bowser",o):m.bowser=o()}(this,0,function(){function m(r){function d(K){var M=r.match(K);return M&&M.length>1&&M[1]||""}function f(K){var M=r.match(K);return M&&M.length>1&&M[2]||""}var c,A=d(/(ipod|iphone|ipad)/i).toLowerCase(),w=/like android/i.test(r),h=!w&&/android/i.test(r),P=/nexus\s*[0-6]\s*/i.test(r),E=!P&&/nexus\s*[0-9]+/i.test(r),_=/CrOS/.test(r),v=/silk/i.test(r),D=/sailfish/i.test(r),R=/tizen/i.test(r),y=/(web|hpw)os/i.test(r),j=/windows phone/i.test(r),U=(/SamsungBrowser/i.test(r),!j&&/windows/i.test(r)),W=!A&&!v&&/macintosh/i.test(r),k=!h&&!D&&!R&&!y&&/linux/i.test(r),V=f(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=d(/version\/(\d+(\.\d+)?)/i),H=/tablet/i.test(r)&&!/tablet pc/i.test(r),ne=!H&&/[^-]mobi/i.test(r),X=/xbox/i.test(r);/opera/i.test(r)?c={name:"Opera",opera:e,version:G||d(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?c={name:"Opera",opera:e,version:d(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(r)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:G||d(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?c={name:"Opera Coast",coast:e,version:G||d(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?c={name:"Yandex Browser",yandexbrowser:e,version:G||d(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?c={name:"UC Browser",ucbrowser:e,version:d(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?c={name:"Maxthon",maxthon:e,version:d(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?c={name:"Epiphany",epiphany:e,version:d(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?c={name:"Puffin",puffin:e,version:d(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?c={name:"Sleipnir",sleipnir:e,version:d(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?c={name:"K-Meleon",kMeleon:e,version:d(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:j?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},V?(c.msedge=e,c.version=V):(c.msie=e,c.version=d(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?c={name:"Internet Explorer",msie:e,version:d(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:_?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?c={name:"Microsoft Edge",msedge:e,version:V}:/vivaldi/i.test(r)?c={name:"Vivaldi",vivaldi:e,version:d(/vivaldi\/(\d+(\.\d+)?)/i)||G}:D?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:d(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?c={name:"SeaMonkey",seamonkey:e,version:d(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(c={name:"Firefox",firefox:e,version:d(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(c.firefoxos=e,c.osname="Firefox OS")):v?c={name:"Amazon Silk",silk:e,version:d(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?c={name:"PhantomJS",phantom:e,version:d(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?c={name:"SlimerJS",slimer:e,version:d(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:G||d(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:y?(c={name:"WebOS",osname:"WebOS",webos:e,version:G||d(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(c.touchpad=e)):/bada/i.test(r)?c={name:"Bada",osname:"Bada",bada:e,version:d(/dolfin\/(\d+(\.\d+)?)/i)}:R?c={name:"Tizen",osname:"Tizen",tizen:e,version:d(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(r)?c={name:"QupZilla",qupzilla:e,version:d(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(r)?c={name:"Chromium",chromium:e,version:d(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(r)?c={name:"Chrome",chrome:e,version:d(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:h?c={name:"Android",version:G}:/safari|applewebkit/i.test(r)?(c={name:"Safari",safari:e},G&&(c.version=G)):A?(c={name:A=="iphone"?"iPhone":A=="ipad"?"iPad":"iPod"},G&&(c.version=G)):c=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:d(/googlebot\/(\d+(\.\d+))/i)||G}:{name:d(/^(.*)\/(.*) /),version:f(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&G&&(c.version=G)):!c.opera&&/gecko\//i.test(r)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||d(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!h&&!c.silk?!c.windowsphone&&A?(c[A]=e,c.ios=e,c.osname="iOS"):W?(c.mac=e,c.osname="macOS"):X?(c.xbox=e,c.osname="Xbox"):U?(c.windows=e,c.osname="Windows"):k&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ie="";c.windows?ie=function(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(d(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ie=d(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ie=d(/Mac OS X (\d+([_\.\s]\d+)*)/i),ie=ie.replace(/[_\s]/g,".")):A?(ie=d(/os (\d+([_\s]\d+)*) like mac os x/i),ie=ie.replace(/[_\s]/g,".")):h?ie=d(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ie=d(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ie=d(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ie=d(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ie=d(/tizen[\/\s](\d+(\.\d+)*)/i)),ie&&(c.osversion=ie);var Z=!c.windows&&ie.split(".")[0];return H||E||A=="ipad"||h&&(Z==3||Z>=4&&!ne)||c.silk?c.tablet=e:(ne||A=="iphone"||A=="ipod"||h||P||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function g(r){return r.split(".").length}function o(r,d){var f,c=[];if(Array.prototype.map)return Array.prototype.map.call(r,d);for(f=0;f<r.length;f++)c.push(d(r[f]));return c}function l(r){for(var d=Math.max(g(r[0]),g(r[1])),f=o(r,function(c){var A=d-g(c);return c+=new Array(A+1).join(".0"),o(c.split("."),function(w){return new Array(20-w.length).join("0")+w}).reverse()});--d>=0;){if(f[0][d]>f[1][d])return 1;if(f[0][d]!==f[1][d])return-1;if(d===0)return 0}}function p(r,d,f){var c=a;typeof d=="string"&&(f=d,d=void 0),d===void 0&&(d=!1),f&&(c=m(f));var A=""+c.version;for(var w in r)if(r.hasOwnProperty(w)&&c[w]){if(typeof r[w]!="string")throw new Error("Browser version in the minVersion map should be a string: "+w+": "+String(r));return l([A,r[w]])<0}return d}function u(r,d,f){return!p(r,d,f)}var e=!0,a=m(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(r){for(var d=0;d<r.length;++d){var f=r[d];if(typeof f=="string"&&f in a)return!0}return!1},a.isUnsupportedBrowser=p,a.compareVersions=l,a.check=u,a._detect=m,a.detect=m,a})},{}],36:[function(t,i,S){},{}],37:[function(t,i,S){function m(a){if(a&&!u(a))throw new Error("Unknown encoding: "+a)}function g(a){return a.toString(this.encoding)}function o(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function l(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var p=t("buffer").Buffer,u=p.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},e=S.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),m(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=l;break;default:return void(this.write=g)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(a){for(var r="";this.charLength;){var d=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,d),this.charReceived+=d,this.charReceived<this.charLength)return"";a=a.slice(d,a.length),r=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=r.charCodeAt(r.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(a);var f=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,f),f-=this.charReceived),r+=a.toString(this.encoding,0,f);var f=r.length-1,c=r.charCodeAt(f);if(c>=55296&&c<=56319){var A=this.surrogateSize;return this.charLength+=A,this.charReceived+=A,this.charBuffer.copy(this.charBuffer,A,0,A),a.copy(this.charBuffer,0,0,A),r.substring(0,f)}return r},e.prototype.detectIncompleteChar=function(a){for(var r=a.length>=3?3:a.length;r>0;r--){var d=a[a.length-r];if(r==1&&d>>5==6){this.charLength=2;break}if(r<=2&&d>>4==14){this.charLength=3;break}if(r<=3&&d>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(a){var r="";if(a&&a.length&&(r=this.write(a)),this.charReceived){var d=this.charReceived,f=this.charBuffer,c=this.encoding;r+=f.slice(0,d).toString(c)}return r}},{buffer:38}],38:[function(t,i,S){(function(m){"use strict";function g(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(n,s){if(g()<s)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(s),n.__proto__=l.prototype):(n===null&&(n=new l(s)),n.length=s),n}function l(n,s,O){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(n,s,O);if(typeof n=="number"){if(typeof s=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,n)}return p(this,n,s,O)}function p(n,s,O,b){if(typeof s=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&s instanceof ArrayBuffer?f(n,s,O,b):typeof s=="string"?r(n,s,O):c(n,s)}function u(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function e(n,s,O,b){return u(s),s<=0?o(n,s):O!==void 0?typeof b=="string"?o(n,s).fill(O,b):o(n,s).fill(O):o(n,s)}function a(n,s){if(u(s),n=o(n,s<0?0:0|A(s)),!l.TYPED_ARRAY_SUPPORT)for(var O=0;O<s;++O)n[O]=0;return n}function r(n,s,O){if(typeof O=="string"&&O!==""||(O="utf8"),!l.isEncoding(O))throw new TypeError('"encoding" must be a valid string encoding');var b=0|h(s,O);n=o(n,b);var x=n.write(s,O);return x!==b&&(n=n.slice(0,x)),n}function d(n,s){var O=s.length<0?0:0|A(s.length);n=o(n,O);for(var b=0;b<O;b+=1)n[b]=255&s[b];return n}function f(n,s,O,b){if(s.byteLength,O<0||s.byteLength<O)throw new RangeError("'offset' is out of bounds");if(s.byteLength<O+(b||0))throw new RangeError("'length' is out of bounds");return s=O===void 0&&b===void 0?new Uint8Array(s):b===void 0?new Uint8Array(s,O):new Uint8Array(s,O,b),l.TYPED_ARRAY_SUPPORT?(n=s,n.__proto__=l.prototype):n=d(n,s),n}function c(n,s){if(l.isBuffer(s)){var O=0|A(s.length);return n=o(n,O),n.length===0||s.copy(n,0,0,O),n}if(s){if(typeof ArrayBuffer!="undefined"&&s.buffer instanceof ArrayBuffer||"length"in s)return typeof s.length!="number"||L(s.length)?o(n,0):d(n,s);if(s.type==="Buffer"&&re(s.data))return d(n,s.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function A(n){if(n>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return 0|n}function w(n){return+n!=n&&(n=0),l.alloc(+n)}function h(n,s){if(l.isBuffer(n))return n.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var O=n.length;if(O===0)return 0;for(var b=!1;;)switch(s){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":case void 0:return fe(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*O;case"hex":return O>>>1;case"base64":return ee(n).length;default:if(b)return fe(n).length;s=(""+s).toLowerCase(),b=!0}}function P(n,s,O){var b=!1;if((s===void 0||s<0)&&(s=0),s>this.length)return"";if((O===void 0||O>this.length)&&(O=this.length),O<=0)return"";if(O>>>=0,s>>>=0,O<=s)return"";for(n||(n="utf8");;)switch(n){case"hex":return X(this,s,O);case"utf8":case"utf-8":return V(this,s,O);case"ascii":return H(this,s,O);case"latin1":case"binary":return ne(this,s,O);case"base64":return k(this,s,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,s,O);default:if(b)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),b=!0}}function E(n,s,O){var b=n[s];n[s]=n[O],n[O]=b}function _(n,s,O,b,x){if(n.length===0)return-1;if(typeof O=="string"?(b=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,isNaN(O)&&(O=x?0:n.length-1),O<0&&(O=n.length+O),O>=n.length){if(x)return-1;O=n.length-1}else if(O<0){if(!x)return-1;O=0}if(typeof s=="string"&&(s=l.from(s,b)),l.isBuffer(s))return s.length===0?-1:v(n,s,O,b,x);if(typeof s=="number")return s&=255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?x?Uint8Array.prototype.indexOf.call(n,s,O):Uint8Array.prototype.lastIndexOf.call(n,s,O):v(n,[s],O,b,x);throw new TypeError("val must be string, number or Buffer")}function v(n,s,O,b,x){function F(le,Fe){return T===1?le[Fe]:le.readUInt16BE(Fe*T)}var T=1,Q=n.length,ae=s.length;if(b!==void 0&&((b=String(b).toLowerCase())==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(n.length<2||s.length<2)return-1;T=2,Q/=2,ae/=2,O/=2}var de;if(x){var me=-1;for(de=O;de<Q;de++)if(F(n,de)===F(s,me===-1?0:de-me)){if(me===-1&&(me=de),de-me+1===ae)return me*T}else me!==-1&&(de-=de-me),me=-1}else for(O+ae>Q&&(O=Q-ae),de=O;de>=0;de--){for(var be=!0,xe=0;xe<ae;xe++)if(F(n,de+xe)!==F(s,xe)){be=!1;break}if(be)return de}return-1}function D(n,s,O,b){O=Number(O)||0;var x=n.length-O;b?(b=Number(b))>x&&(b=x):b=x;var F=s.length;if(F%2!=0)throw new TypeError("Invalid hex string");b>F/2&&(b=F/2);for(var T=0;T<b;++T){var Q=parseInt(s.substr(2*T,2),16);if(isNaN(Q))return T;n[O+T]=Q}return T}function R(n,s,O,b){return se(fe(s,n.length-O),n,O,b)}function y(n,s,O,b){return se(_e(s),n,O,b)}function j(n,s,O,b){return y(n,s,O,b)}function U(n,s,O,b){return se(ee(s),n,O,b)}function W(n,s,O,b){return se(te(s,n.length-O),n,O,b)}function k(n,s,O){return s===0&&O===n.length?N.fromByteArray(n):N.fromByteArray(n.slice(s,O))}function V(n,s,O){O=Math.min(n.length,O);for(var b=[],x=s;x<O;){var F=n[x],T=null,Q=F>239?4:F>223?3:F>191?2:1;if(x+Q<=O){var ae,de,me,be;switch(Q){case 1:F<128&&(T=F);break;case 2:ae=n[x+1],(192&ae)==128&&(be=(31&F)<<6|63&ae)>127&&(T=be);break;case 3:ae=n[x+1],de=n[x+2],(192&ae)==128&&(192&de)==128&&(be=(15&F)<<12|(63&ae)<<6|63&de)>2047&&(be<55296||be>57343)&&(T=be);break;case 4:ae=n[x+1],de=n[x+2],me=n[x+3],(192&ae)==128&&(192&de)==128&&(192&me)==128&&(be=(15&F)<<18|(63&ae)<<12|(63&de)<<6|63&me)>65535&&be<1114112&&(T=be)}}T===null?(T=65533,Q=1):T>65535&&(T-=65536,b.push(T>>>10&1023|55296),T=56320|1023&T),b.push(T),x+=Q}return G(b)}function G(n){var s=n.length;if(s<=he)return String.fromCharCode.apply(String,n);for(var O="",b=0;b<s;)O+=String.fromCharCode.apply(String,n.slice(b,b+=he));return O}function H(n,s,O){var b="";O=Math.min(n.length,O);for(var x=s;x<O;++x)b+=String.fromCharCode(127&n[x]);return b}function ne(n,s,O){var b="";O=Math.min(n.length,O);for(var x=s;x<O;++x)b+=String.fromCharCode(n[x]);return b}function X(n,s,O){var b=n.length;(!s||s<0)&&(s=0),(!O||O<0||O>b)&&(O=b);for(var x="",F=s;F<O;++F)x+=oe(n[F]);return x}function ie(n,s,O){for(var b=n.slice(s,O),x="",F=0;F<b.length;F+=2)x+=String.fromCharCode(b[F]+256*b[F+1]);return x}function Z(n,s,O){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+s>O)throw new RangeError("Trying to access beyond buffer length")}function K(n,s,O,b,x,F){if(!l.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>x||s<F)throw new RangeError('"value" argument is out of bounds');if(O+b>n.length)throw new RangeError("Index out of range")}function M(n,s,O,b){s<0&&(s=65535+s+1);for(var x=0,F=Math.min(n.length-O,2);x<F;++x)n[O+x]=(s&255<<8*(b?x:1-x))>>>8*(b?x:1-x)}function I(n,s,O,b){s<0&&(s=4294967295+s+1);for(var x=0,F=Math.min(n.length-O,4);x<F;++x)n[O+x]=s>>>8*(b?x:3-x)&255}function B(n,s,O,b,x,F){if(O+b>n.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function z(n,s,O,b,x){return x||B(n,s,O,4,34028234663852886e22,-34028234663852886e22),q.write(n,s,O,b,23,4),O+4}function Y(n,s,O,b,x){return x||B(n,s,O,8,17976931348623157e292,-17976931348623157e292),q.write(n,s,O,b,52,8),O+8}function J(n){if(n=ce(n).replace(C,""),n.length<2)return"";for(;n.length%4!=0;)n+="=";return n}function ce(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function oe(n){return n<16?"0"+n.toString(16):n.toString(16)}function fe(n,s){s=s||1/0;for(var O,b=n.length,x=null,F=[],T=0;T<b;++T){if((O=n.charCodeAt(T))>55295&&O<57344){if(!x){if(O>56319){(s-=3)>-1&&F.push(239,191,189);continue}if(T+1===b){(s-=3)>-1&&F.push(239,191,189);continue}x=O;continue}if(O<56320){(s-=3)>-1&&F.push(239,191,189),x=O;continue}O=65536+(x-55296<<10|O-56320)}else x&&(s-=3)>-1&&F.push(239,191,189);if(x=null,O<128){if((s-=1)<0)break;F.push(O)}else if(O<2048){if((s-=2)<0)break;F.push(O>>6|192,63&O|128)}else if(O<65536){if((s-=3)<0)break;F.push(O>>12|224,O>>6&63|128,63&O|128)}else{if(!(O<1114112))throw new Error("Invalid code point");if((s-=4)<0)break;F.push(O>>18|240,O>>12&63|128,O>>6&63|128,63&O|128)}}return F}function _e(n){for(var s=[],O=0;O<n.length;++O)s.push(255&n.charCodeAt(O));return s}function te(n,s){for(var O,b,x,F=[],T=0;T<n.length&&!((s-=2)<0);++T)O=n.charCodeAt(T),b=O>>8,x=O%256,F.push(x),F.push(b);return F}function ee(n){return N.toByteArray(J(n))}function se(n,s,O,b){for(var x=0;x<b&&!(x+O>=s.length||x>=n.length);++x)s[x+O]=n[x];return x}function L(n){return n!==n}var N=t("base64-js"),q=t("ieee754"),re=t("isarray");S.Buffer=l,S.SlowBuffer=w,S.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:function(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},n.foo()===42&&typeof n.subarray=="function"&&n.subarray(1,1).byteLength===0}catch(s){return!1}}(),S.kMaxLength=g(),l.poolSize=8192,l._augment=function(n){return n.__proto__=l.prototype,n},l.from=function(n,s,O){return p(null,n,s,O)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(n,s,O){return e(null,n,s,O)},l.allocUnsafe=function(n){return a(null,n)},l.allocUnsafeSlow=function(n){return a(null,n)},l.isBuffer=function(n){return!(n==null||!n._isBuffer)},l.compare=function(n,s){if(!l.isBuffer(n)||!l.isBuffer(s))throw new TypeError("Arguments must be Buffers");if(n===s)return 0;for(var O=n.length,b=s.length,x=0,F=Math.min(O,b);x<F;++x)if(n[x]!==s[x]){O=n[x],b=s[x];break}return O<b?-1:b<O?1:0},l.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(n,s){if(!re(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return l.alloc(0);var O;if(s===void 0)for(s=0,O=0;O<n.length;++O)s+=n[O].length;var b=l.allocUnsafe(s),x=0;for(O=0;O<n.length;++O){var F=n[O];if(!l.isBuffer(F))throw new TypeError('"list" argument must be an Array of Buffers');F.copy(b,x),x+=F.length}return b},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<n;s+=2)E(this,s,s+1);return this},l.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<n;s+=4)E(this,s,s+3),E(this,s+1,s+2);return this},l.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<n;s+=8)E(this,s,s+7),E(this,s+1,s+6),E(this,s+2,s+5),E(this,s+3,s+4);return this},l.prototype.toString=function(){var n=0|this.length;return n===0?"":arguments.length===0?V(this,0,n):P.apply(this,arguments)},l.prototype.equals=function(n){if(!l.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||l.compare(this,n)===0},l.prototype.inspect=function(){var n="",s=S.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(n+=" ... ")),"<Buffer "+n+">"},l.prototype.compare=function(n,s,O,b,x){if(!l.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(s===void 0&&(s=0),O===void 0&&(O=n?n.length:0),b===void 0&&(b=0),x===void 0&&(x=this.length),s<0||O>n.length||b<0||x>this.length)throw new RangeError("out of range index");if(b>=x&&s>=O)return 0;if(b>=x)return-1;if(s>=O)return 1;if(s>>>=0,O>>>=0,b>>>=0,x>>>=0,this===n)return 0;for(var F=x-b,T=O-s,Q=Math.min(F,T),ae=this.slice(b,x),de=n.slice(s,O),me=0;me<Q;++me)if(ae[me]!==de[me]){F=ae[me],T=de[me];break}return F<T?-1:T<F?1:0},l.prototype.includes=function(n,s,O){return this.indexOf(n,s,O)!==-1},l.prototype.indexOf=function(n,s,O){return _(this,n,s,O,!0)},l.prototype.lastIndexOf=function(n,s,O){return _(this,n,s,O,!1)},l.prototype.write=function(n,s,O,b){if(s===void 0)b="utf8",O=this.length,s=0;else if(O===void 0&&typeof s=="string")b=s,O=this.length,s=0;else{if(!isFinite(s))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");s|=0,isFinite(O)?(O|=0,b===void 0&&(b="utf8")):(b=O,O=void 0)}var x=this.length-s;if((O===void 0||O>x)&&(O=x),n.length>0&&(O<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var F=!1;;)switch(b){case"hex":return D(this,n,s,O);case"utf8":case"utf-8":return R(this,n,s,O);case"ascii":return y(this,n,s,O);case"latin1":case"binary":return j(this,n,s,O);case"base64":return U(this,n,s,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,n,s,O);default:if(F)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),F=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;l.prototype.slice=function(n,s){var O=this.length;n=~~n,s=s===void 0?O:~~s,n<0?(n+=O)<0&&(n=0):n>O&&(n=O),s<0?(s+=O)<0&&(s=0):s>O&&(s=O),s<n&&(s=n);var b;if(l.TYPED_ARRAY_SUPPORT)b=this.subarray(n,s),b.__proto__=l.prototype;else{var x=s-n;b=new l(x,void 0);for(var F=0;F<x;++F)b[F]=this[F+n]}return b},l.prototype.readUIntLE=function(n,s,O){n|=0,s|=0,O||Z(n,s,this.length);for(var b=this[n],x=1,F=0;++F<s&&(x*=256);)b+=this[n+F]*x;return b},l.prototype.readUIntBE=function(n,s,O){n|=0,s|=0,O||Z(n,s,this.length);for(var b=this[n+--s],x=1;s>0&&(x*=256);)b+=this[n+--s]*x;return b},l.prototype.readUInt8=function(n,s){return s||Z(n,1,this.length),this[n]},l.prototype.readUInt16LE=function(n,s){return s||Z(n,2,this.length),this[n]|this[n+1]<<8},l.prototype.readUInt16BE=function(n,s){return s||Z(n,2,this.length),this[n]<<8|this[n+1]},l.prototype.readUInt32LE=function(n,s){return s||Z(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},l.prototype.readUInt32BE=function(n,s){return s||Z(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},l.prototype.readIntLE=function(n,s,O){n|=0,s|=0,O||Z(n,s,this.length);for(var b=this[n],x=1,F=0;++F<s&&(x*=256);)b+=this[n+F]*x;return x*=128,b>=x&&(b-=Math.pow(2,8*s)),b},l.prototype.readIntBE=function(n,s,O){n|=0,s|=0,O||Z(n,s,this.length);for(var b=s,x=1,F=this[n+--b];b>0&&(x*=256);)F+=this[n+--b]*x;return x*=128,F>=x&&(F-=Math.pow(2,8*s)),F},l.prototype.readInt8=function(n,s){return s||Z(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},l.prototype.readInt16LE=function(n,s){s||Z(n,2,this.length);var O=this[n]|this[n+1]<<8;return 32768&O?4294901760|O:O},l.prototype.readInt16BE=function(n,s){s||Z(n,2,this.length);var O=this[n+1]|this[n]<<8;return 32768&O?4294901760|O:O},l.prototype.readInt32LE=function(n,s){return s||Z(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},l.prototype.readInt32BE=function(n,s){return s||Z(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},l.prototype.readFloatLE=function(n,s){return s||Z(n,4,this.length),q.read(this,n,!0,23,4)},l.prototype.readFloatBE=function(n,s){return s||Z(n,4,this.length),q.read(this,n,!1,23,4)},l.prototype.readDoubleLE=function(n,s){return s||Z(n,8,this.length),q.read(this,n,!0,52,8)},l.prototype.readDoubleBE=function(n,s){return s||Z(n,8,this.length),q.read(this,n,!1,52,8)},l.prototype.writeUIntLE=function(n,s,O,b){(n=+n,s|=0,O|=0,!b)&&K(this,n,s,O,Math.pow(2,8*O)-1,0);var x=1,F=0;for(this[s]=255&n;++F<O&&(x*=256);)this[s+F]=n/x&255;return s+O},l.prototype.writeUIntBE=function(n,s,O,b){(n=+n,s|=0,O|=0,!b)&&K(this,n,s,O,Math.pow(2,8*O)-1,0);var x=O-1,F=1;for(this[s+x]=255&n;--x>=0&&(F*=256);)this[s+x]=n/F&255;return s+O},l.prototype.writeUInt8=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,1,255,0),l.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[s]=255&n,s+1},l.prototype.writeUInt16LE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8):M(this,n,s,!0),s+2},l.prototype.writeUInt16BE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>8,this[s+1]=255&n):M(this,n,s,!1),s+2},l.prototype.writeUInt32LE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[s+3]=n>>>24,this[s+2]=n>>>16,this[s+1]=n>>>8,this[s]=255&n):I(this,n,s,!0),s+4},l.prototype.writeUInt32BE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=255&n):I(this,n,s,!1),s+4},l.prototype.writeIntLE=function(n,s,O,b){if(n=+n,s|=0,!b){var x=Math.pow(2,8*O-1);K(this,n,s,O,x-1,-x)}var F=0,T=1,Q=0;for(this[s]=255&n;++F<O&&(T*=256);)n<0&&Q===0&&this[s+F-1]!==0&&(Q=1),this[s+F]=(n/T>>0)-Q&255;return s+O},l.prototype.writeIntBE=function(n,s,O,b){if(n=+n,s|=0,!b){var x=Math.pow(2,8*O-1);K(this,n,s,O,x-1,-x)}var F=O-1,T=1,Q=0;for(this[s+F]=255&n;--F>=0&&(T*=256);)n<0&&Q===0&&this[s+F+1]!==0&&(Q=1),this[s+F]=(n/T>>0)-Q&255;return s+O},l.prototype.writeInt8=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,1,127,-128),l.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[s]=255&n,s+1},l.prototype.writeInt16LE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8):M(this,n,s,!0),s+2},l.prototype.writeInt16BE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>8,this[s+1]=255&n):M(this,n,s,!1),s+2},l.prototype.writeInt32LE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[s]=255&n,this[s+1]=n>>>8,this[s+2]=n>>>16,this[s+3]=n>>>24):I(this,n,s,!0),s+4},l.prototype.writeInt32BE=function(n,s,O){return n=+n,s|=0,O||K(this,n,s,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),l.TYPED_ARRAY_SUPPORT?(this[s]=n>>>24,this[s+1]=n>>>16,this[s+2]=n>>>8,this[s+3]=255&n):I(this,n,s,!1),s+4},l.prototype.writeFloatLE=function(n,s,O){return z(this,n,s,!0,O)},l.prototype.writeFloatBE=function(n,s,O){return z(this,n,s,!1,O)},l.prototype.writeDoubleLE=function(n,s,O){return Y(this,n,s,!0,O)},l.prototype.writeDoubleBE=function(n,s,O){return Y(this,n,s,!1,O)},l.prototype.copy=function(n,s,O,b){if(O||(O=0),b||b===0||(b=this.length),s>=n.length&&(s=n.length),s||(s=0),b>0&&b<O&&(b=O),b===O)return 0;if(n.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("sourceStart out of bounds");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),n.length-s<b-O&&(b=n.length-s+O);var x,F=b-O;if(this===n&&O<s&&s<b)for(x=F-1;x>=0;--x)n[x+s]=this[x+O];else if(F<1e3||!l.TYPED_ARRAY_SUPPORT)for(x=0;x<F;++x)n[x+s]=this[x+O];else Uint8Array.prototype.set.call(n,this.subarray(O,O+F),s);return F},l.prototype.fill=function(n,s,O,b){if(typeof n=="string"){if(typeof s=="string"?(b=s,s=0,O=this.length):typeof O=="string"&&(b=O,O=this.length),n.length===1){var x=n.charCodeAt(0);x<256&&(n=x)}if(b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!l.isEncoding(b))throw new TypeError("Unknown encoding: "+b)}else typeof n=="number"&&(n&=255);if(s<0||this.length<s||this.length<O)throw new RangeError("Out of range index");if(O<=s)return this;s>>>=0,O=O===void 0?this.length:O>>>0,n||(n=0);var F;if(typeof n=="number")for(F=s;F<O;++F)this[F]=n;else{var T=l.isBuffer(n)?n:fe(new l(n,b).toString()),Q=T.length;for(F=0;F<O-s;++F)this[F+s]=T[F%Q]}return this};var C=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(t,i,S){i.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(t,i,S){"use strict";var m=function(){this.buffer=[],this.fns=[]};m.prototype.push=function(o,l){if(this.fns.length)return this.fns.shift()(null,o);var p={data:o,priority:l},u=g(this.buffer,p,function(e){return e.priority});this.buffer.splice(u,0,p)},m.prototype.next=function(){var o=this;return function(l){if(o.buffer.length)return l(null,o.buffer.pop().data);o.fns.push(l)}};var g=function(l,p,u){p=u(p);for(var e=0,a=l?l.length:e;e<a;){var r=e+a>>>1;u(l[r])<p?e=r+1:a=r}return e};i.exports=m},{}],41:[function(t,i,S){function m(f){var c=this,A=d.call(arguments,1);return new Promise(function(w,h){function P(v){var D;try{D=f.next(v)}catch(R){return h(R)}_(D)}function E(v){var D;try{D=f.throw(v)}catch(R){return h(R)}_(D)}function _(v){if(v.done)return w(v.value);var D=g.call(c,v.value);return D&&u(D)?D.then(P,E):E(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(v.value)+'"'))}if(typeof f=="function"&&(f=f.apply(c,A)),!f||typeof f.next!="function")return w(f);P()})}function g(f){return f&&(u(f)?f:a(f)||e(f)?m.call(this,f):typeof f=="function"?o.call(this,f):Array.isArray(f)?l.call(this,f):r(f)?p.call(this,f):f)}function o(f){var c=this;return new Promise(function(A,w){f.call(c,function(h,P){if(h)return w(h);arguments.length>2&&(P=d.call(arguments,1)),A(P)})})}function l(f){return Promise.all(f.map(g,this))}function p(f){for(var c=new f.constructor,A=Object.keys(f),w=[],h=0;h<A.length;h++){var P=A[h],E=g.call(this,f[P]);E&&u(E)?function(_,v){c[v]=void 0,w.push(_.then(function(D){c[v]=D}))}(E,P):c[P]=f[P]}return Promise.all(w).then(function(){return c})}function u(f){return typeof f.then=="function"}function e(f){return typeof f.next=="function"&&typeof f.throw=="function"}function a(f){var c=f.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function r(f){return Object==f.constructor}var d=Array.prototype.slice;i.exports=m.default=m.co=m,m.wrap=function(f){function c(){return m.call(this,f.apply(this,arguments))}return c.__generatorFunction__=f,c}},{}],42:[function(t,i,S){i.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(t,i,S){"use strict";function m(l,p){if(!(this instanceof m))return new m(l,p);this.src=l,this._withAccess=p}function g(l,p){return l[p]===void 0&&l.__lookupGetter__(p)===void 0&&l.__lookupSetter__(p)===void 0}var o=Array.prototype.slice;i.exports=m,m.prototype.withAccess=function(l){return this._withAccess=l!==!1,this},m.prototype.pick=function(l){return Array.isArray(l)||(l=o.call(arguments)),l.length&&(this.keys=l),this},m.prototype.to=function(l){if(l=l||{},!this.src)return l;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<p.length;u++)e=p[u],l[e]===void 0&&(l[e]=this.src[e]);return l}for(var u=0;u<p.length;u++){var e=p[u];if(g(l,e)){var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&l.__defineGetter__(e,a),r&&l.__defineSetter__(e,r),a||r||(l[e]=this.src[e])}}return l},m.prototype.toCover=function(l){for(var p=this.keys||Object.keys(this.src),u=0;u<p.length;u++){var e=p[u];delete l[e];var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&l.__defineGetter__(e,a),r&&l.__defineSetter__(e,r),a||r||(l[e]=this.src[e])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(l){var p={};return this.to(p),this.src=l,this.to(p),this.src=p,this}},{}],44:[function(t,i,S){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),i.exports=t("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(t,i,S){var m=t("../../modules/_core"),g=m.JSON||(m.JSON={stringify:JSON.stringify});i.exports=function(o){return g.stringify.apply(g,arguments)}},{"../../modules/_core":65}],46:[function(t,i,S){t("../../modules/es6.object.assign"),i.exports=t("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(t,i,S){t("../../modules/es6.object.create");var m=t("../../modules/_core").Object;i.exports=function(g,o){return m.create(g,o)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(t,i,S){t("../../modules/es6.object.define-property");var m=t("../../modules/_core").Object;i.exports=function(g,o,l){return m.defineProperty(g,o,l)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(t,i,S){t("../../modules/es6.object.get-own-property-names");var m=t("../../modules/_core").Object;i.exports=function(g){return m.getOwnPropertyNames(g)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(t,i,S){t("../../modules/es6.object.get-prototype-of"),i.exports=t("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(t,i,S){t("../../modules/es6.object.keys"),i.exports=t("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(t,i,S){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),t("../modules/es7.promise.finally"),t("../modules/es7.promise.try"),i.exports=t("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(t,i,S){t("../modules/web.immediate"),i.exports=t("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(t,i,S){t("../../modules/es6.string.from-code-point"),i.exports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(t,i,S){t("../../modules/es6.function.has-instance"),i.exports=t("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(t,i,S){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),i.exports=t("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(t,i,S){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),i.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(t,i,S){i.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],59:[function(t,i,S){i.exports=function(){}},{}],60:[function(t,i,S){i.exports=function(m,g,o,l){if(!(m instanceof g)||l!==void 0&&l in m)throw TypeError(o+": incorrect invocation!");return m}},{}],61:[function(t,i,S){var m=t("./_is-object");i.exports=function(g){if(!m(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":85}],62:[function(t,i,S){var m=t("./_to-iobject"),g=t("./_to-length"),o=t("./_to-absolute-index");i.exports=function(l){return function(p,u,e){var a,r=m(p),d=g(r.length),f=o(e,d);if(l&&u!=u){for(;d>f;)if((a=r[f++])!=a)return!0}else for(;d>f;f++)if((l||f in r)&&r[f]===u)return l||f||0;return!l&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(t,i,S){var m=t("./_cof"),g=t("./_wks")("toStringTag"),o=m(function(){return arguments}())=="Arguments",l=function(u,e){try{return u[e]}catch(a){}};i.exports=function(p){var u,e,a;return p===void 0?"Undefined":p===null?"Null":typeof(e=l(u=Object(p),g))=="string"?e:o?m(u):(a=m(u))=="Object"&&typeof u.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(t,i,S){var m={}.toString;i.exports=function(g){return m.call(g).slice(8,-1)}},{}],65:[function(t,i,S){var m=i.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(t,i,S){"use strict";var m=t("./_object-dp"),g=t("./_property-desc");i.exports=function(o,l,p){l in o?m.f(o,l,g(0,p)):o[l]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(t,i,S){var m=t("./_a-function");i.exports=function(g,o,l){if(m(g),o===void 0)return g;switch(l){case 1:return function(p){return g.call(o,p)};case 2:return function(p,u){return g.call(o,p,u)};case 3:return function(p,u,e){return g.call(o,p,u,e)}}return function(){return g.apply(o,arguments)}}},{"./_a-function":58}],68:[function(t,i,S){i.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(t,i,S){i.exports=!t("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(t,i,S){var m=t("./_is-object"),g=t("./_global").document,o=m(g)&&m(g.createElement);i.exports=function(l){return o?g.createElement(l):{}}},{"./_global":76,"./_is-object":85}],71:[function(t,i,S){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(t,i,S){var m=t("./_object-keys"),g=t("./_object-gops"),o=t("./_object-pie");i.exports=function(l){var p=m(l),u=g.f;if(u)for(var e,a=u(l),r=o.f,d=0;a.length>d;)r.call(l,e=a[d++])&&p.push(e);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(t,i,S){var m=t("./_global"),g=t("./_core"),o=t("./_ctx"),l=t("./_hide"),p=t("./_has"),u=function e(a,r,d){var f,c,A,w=a&e.F,h=a&e.G,P=a&e.S,E=a&e.P,_=a&e.B,v=a&e.W,D=h?g:g[r]||(g[r]={}),R=D.prototype,y=h?m:P?m[r]:(m[r]||{}).prototype;h&&(d=r);for(f in d)(c=!w&&y&&y[f]!==void 0)&&p(D,f)||(A=c?y[f]:d[f],D[f]=h&&typeof y[f]!="function"?d[f]:_&&c?o(A,m):v&&y[f]==A?function(j){var U=function(k,V,G){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(k);case 2:return new j(k,V)}return new j(k,V,G)}return j.apply(this,arguments)};return U.prototype=j.prototype,U}(A):E&&typeof A=="function"?o(Function.call,A):A,E&&((D.virtual||(D.virtual={}))[f]=A,a&e.R&&R&&!R[f]&&l(R,f,A)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,i.exports=u},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(t,i,S){i.exports=function(m){try{return!!m()}catch(g){return!0}}},{}],75:[function(t,i,S){var m=t("./_ctx"),g=t("./_iter-call"),o=t("./_is-array-iter"),l=t("./_an-object"),p=t("./_to-length"),u=t("./core.get-iterator-method"),e={},a={},S=i.exports=function(r,d,f,c,A){var w,h,P,E,_=A?function(){return r}:u(r),v=m(f,c,d?2:1),D=0;if(typeof _!="function")throw TypeError(r+" is not iterable!");if(o(_)){for(w=p(r.length);w>D;D++)if((E=d?v(l(h=r[D])[0],h[1]):v(r[D]))===e||E===a)return E}else for(P=_.call(r);!(h=P.next()).done;)if((E=g(P,v,h.value,d))===e||E===a)return E};S.BREAK=e,S.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(t,i,S){var m=i.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=m)},{}],77:[function(t,i,S){var m={}.hasOwnProperty;i.exports=function(g,o){return m.call(g,o)}},{}],78:[function(t,i,S){var m=t("./_object-dp"),g=t("./_property-desc");i.exports=t("./_descriptors")?function(o,l,p){return m.f(o,l,g(1,p))}:function(o,l,p){return o[l]=p,o}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(t,i,S){var m=t("./_global").document;i.exports=m&&m.documentElement},{"./_global":76}],80:[function(t,i,S){i.exports=!t("./_descriptors")&&!t("./_fails")(function(){return Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(t,i,S){i.exports=function(m,g,o){var l=o===void 0;switch(g.length){case 0:return l?m():m.call(o);case 1:return l?m(g[0]):m.call(o,g[0]);case 2:return l?m(g[0],g[1]):m.call(o,g[0],g[1]);case 3:return l?m(g[0],g[1],g[2]):m.call(o,g[0],g[1],g[2]);case 4:return l?m(g[0],g[1],g[2],g[3]):m.call(o,g[0],g[1],g[2],g[3])}return m.apply(o,g)}},{}],82:[function(t,i,S){var m=t("./_cof");i.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return m(g)=="String"?g.split(""):Object(g)}},{"./_cof":64}],83:[function(t,i,S){var m=t("./_iterators"),g=t("./_wks")("iterator"),o=Array.prototype;i.exports=function(l){return l!==void 0&&(m.Array===l||o[g]===l)}},{"./_iterators":91,"./_wks":131}],84:[function(t,i,S){var m=t("./_cof");i.exports=Array.isArray||function(g){return m(g)=="Array"}},{"./_cof":64}],85:[function(t,i,S){i.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(t,i,S){var m=t("./_an-object");i.exports=function(g,o,l,p){try{return p?o(m(l)[0],l[1]):o(l)}catch(e){var u=g.return;throw u!==void 0&&m(u.call(g)),e}}},{"./_an-object":61}],87:[function(t,i,S){"use strict";var m=t("./_object-create"),g=t("./_property-desc"),o=t("./_set-to-string-tag"),l={};t("./_hide")(l,t("./_wks")("iterator"),function(){return this}),i.exports=function(p,u,e){p.prototype=m(l,{next:g(1,e)}),o(p,u+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(t,i,S){"use strict";var m=t("./_library"),g=t("./_export"),o=t("./_redefine"),l=t("./_hide"),p=t("./_iterators"),u=t("./_iter-create"),e=t("./_set-to-string-tag"),a=t("./_object-gpo"),r=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};i.exports=function(c,A,w,h,P,E,_){u(w,A,h);var v,D,R,y=function(ie){if(!d&&ie in k)return k[ie];switch(ie){case"keys":case"values":return function(){return new w(this,ie)}}return function(){return new w(this,ie)}},j=A+" Iterator",U=P=="values",W=!1,k=c.prototype,V=k[r]||k["@@iterator"]||P&&k[P],G=V||y(P),H=P?U?y("entries"):G:void 0,ne=A=="Array"&&k.entries||V;if(ne&&(R=a(ne.call(new c)))!==Object.prototype&&R.next&&(e(R,j,!0),m||typeof R[r]=="function"||l(R,r,f)),U&&V&&V.name!=="values"&&(W=!0,G=function(){return V.call(this)}),m&&!_||!d&&!W&&k[r]||l(k,r,G),p[A]=G,p[j]=f,P)if(v={values:U?G:y("values"),keys:E?G:y("keys"),entries:H},_)for(D in v)D in k||o(k,D,v[D]);else g(g.P+g.F*(d||W),A,v);return v}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(t,i,S){var m=t("./_wks")("iterator"),g=!1;try{var o=[7][m]();o.return=function(){g=!0},Array.from(o,function(){throw 2})}catch(l){}i.exports=function(l,p){if(!p&&!g)return!1;var u=!1;try{var e=[7],a=e[m]();a.next=function(){return{done:u=!0}},e[m]=function(){return a},l(e)}catch(r){}return u}},{"./_wks":131}],90:[function(t,i,S){i.exports=function(m,g){return{value:g,done:!!m}}},{}],91:[function(t,i,S){i.exports={}},{}],92:[function(t,i,S){i.exports=!0},{}],93:[function(t,i,S){var m=t("./_uid")("meta"),g=t("./_is-object"),o=t("./_has"),l=t("./_object-dp").f,p=0,u=Object.isExtensible||function(){return!0},e=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),a=function(w){l(w,m,{value:{i:"O"+ ++p,w:{}}})},r=function(w,h){if(!g(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!o(w,m)){if(!u(w))return"F";if(!h)return"E";a(w)}return w[m].i},d=function(w,h){if(!o(w,m)){if(!u(w))return!0;if(!h)return!1;a(w)}return w[m].w},f=function(w){return e&&c.NEED&&u(w)&&!o(w,m)&&a(w),w},c=i.exports={KEY:m,NEED:!1,fastKey:r,getWeak:d,onFreeze:f}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(t,i,S){var m=t("./_global"),g=t("./_task").set,o=m.MutationObserver||m.WebKitMutationObserver,l=m.process,p=m.Promise,u=t("./_cof")(l)=="process";i.exports=function(){var e,a,r,d=function(){var h,P;for(u&&(h=l.domain)&&h.exit();e;){P=e.fn,e=e.next;try{P()}catch(E){throw e?r():a=void 0,E}}a=void 0,h&&h.enter()};if(u)r=function(){l.nextTick(d)};else if(!o||m.navigator&&m.navigator.standalone)if(p&&p.resolve){var f=p.resolve(void 0);r=function(){f.then(d)}}else r=function(){g.call(m,d)};else{var c=!0,A=document.createTextNode("");new o(d).observe(A,{characterData:!0}),r=function(){A.data=c=!c}}return function(w){var h={fn:w,next:void 0};a&&(a.next=h),e||(e=h,r()),a=h}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(t,i,S){"use strict";function m(o){var l,p;this.promise=new o(function(u,e){if(l!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");l=u,p=e}),this.resolve=g(l),this.reject=g(p)}var g=t("./_a-function");i.exports.f=function(o){return new m(o)}},{"./_a-function":58}],96:[function(t,i,S){"use strict";var m=t("./_object-keys"),g=t("./_object-gops"),o=t("./_object-pie"),l=t("./_to-object"),p=t("./_iobject"),u=Object.assign;i.exports=!u||t("./_fails")(function(){var e={},a={},r=Symbol(),d="abcdefghijklmnopqrst";return e[r]=7,d.split("").forEach(function(f){a[f]=f}),u({},e)[r]!=7||Object.keys(u({},a)).join("")!=d})?function(e,a){for(var r=l(e),d=arguments.length,f=1,c=g.f,A=o.f;d>f;)for(var w,h=p(arguments[f++]),P=c?m(h).concat(c(h)):m(h),E=P.length,_=0;E>_;)A.call(h,w=P[_++])&&(r[w]=h[w]);return r}:u},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(t,i,S){var m=t("./_an-object"),g=t("./_object-dps"),o=t("./_enum-bug-keys"),l=t("./_shared-key")("IE_PROTO"),p=function(){},u=function(){var a,r=t("./_dom-create")("iframe"),d=o.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",a=r.contentWindow.document,a.open(),a.write("<script>document.F=Object</script>"),a.close(),u=a.F;d--;)delete u.prototype[o[d]];return u()};i.exports=Object.create||function(e,a){var r;return e!==null?(p.prototype=m(e),r=new p,p.prototype=null,r[l]=e):r=u(),a===void 0?r:g(r,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(t,i,S){var m=t("./_an-object"),g=t("./_ie8-dom-define"),o=t("./_to-primitive"),l=Object.defineProperty;S.f=t("./_descriptors")?Object.defineProperty:function(p,u,e){if(m(p),u=o(u,!0),m(e),g)try{return l(p,u,e)}catch(a){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(p[u]=e.value),p}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(t,i,S){var m=t("./_object-dp"),g=t("./_an-object"),o=t("./_object-keys");i.exports=t("./_descriptors")?Object.defineProperties:function(l,p){g(l);for(var u,e=o(p),a=e.length,r=0;a>r;)m.f(l,u=e[r++],p[u]);return l}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(t,i,S){var m=t("./_object-pie"),g=t("./_property-desc"),o=t("./_to-iobject"),l=t("./_to-primitive"),p=t("./_has"),u=t("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;S.f=t("./_descriptors")?e:function(a,r){if(a=o(a),r=l(r,!0),u)try{return e(a,r)}catch(d){}if(p(a,r))return g(!m.f.call(a,r),a[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(t,i,S){var m=t("./_to-iobject"),g=t("./_object-gopn").f,o={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(e){try{return g(e)}catch(a){return l.slice()}};i.exports.f=function(u){return l&&o.call(u)=="[object Window]"?p(u):g(m(u))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(t,i,S){var m=t("./_object-keys-internal"),g=t("./_enum-bug-keys").concat("length","prototype");S.f=Object.getOwnPropertyNames||function(o){return m(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(t,i,S){S.f=Object.getOwnPropertySymbols},{}],104:[function(t,i,S){var m=t("./_has"),g=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),l=Object.prototype;i.exports=Object.getPrototypeOf||function(p){return p=g(p),m(p,o)?p[o]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?l:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(t,i,S){var m=t("./_has"),g=t("./_to-iobject"),o=t("./_array-includes")(!1),l=t("./_shared-key")("IE_PROTO");i.exports=function(p,u){var e,a=g(p),r=0,d=[];for(e in a)e!=l&&m(a,e)&&d.push(e);for(;u.length>r;)m(a,e=u[r++])&&(~o(d,e)||d.push(e));return d}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(t,i,S){var m=t("./_object-keys-internal"),g=t("./_enum-bug-keys");i.exports=Object.keys||function(o){return m(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(t,i,S){S.f={}.propertyIsEnumerable},{}],108:[function(t,i,S){var m=t("./_export"),g=t("./_core"),o=t("./_fails");i.exports=function(l,p){var u=(g.Object||{})[l]||Object[l],e={};e[l]=p(u),m(m.S+m.F*o(function(){u(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(t,i,S){i.exports=function(m){try{return{e:!1,v:m()}}catch(g){return{e:!0,v:g}}}},{}],110:[function(t,i,S){var m=t("./_an-object"),g=t("./_is-object"),o=t("./_new-promise-capability");i.exports=function(l,p){if(m(l),g(p)&&p.constructor===l)return p;var u=o.f(l);return(0,u.resolve)(p),u.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(t,i,S){i.exports=function(m,g){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:g}}},{}],112:[function(t,i,S){var m=t("./_hide");i.exports=function(g,o,l){for(var p in o)l&&g[p]?g[p]=o[p]:m(g,p,o[p]);return g}},{"./_hide":78}],113:[function(t,i,S){i.exports=t("./_hide")},{"./_hide":78}],114:[function(t,i,S){"use strict";var m=t("./_global"),g=t("./_core"),o=t("./_object-dp"),l=t("./_descriptors"),p=t("./_wks")("species");i.exports=function(u){var e=typeof g[u]=="function"?g[u]:m[u];l&&e&&!e[p]&&o.f(e,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(t,i,S){var m=t("./_object-dp").f,g=t("./_has"),o=t("./_wks")("toStringTag");i.exports=function(l,p,u){l&&!g(l=u?l:l.prototype,o)&&m(l,o,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(t,i,S){var m=t("./_shared")("keys"),g=t("./_uid");i.exports=function(o){return m[o]||(m[o]=g(o))}},{"./_shared":117,"./_uid":127}],117:[function(t,i,S){var m=t("./_core"),g=t("./_global"),o=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(i.exports=function(l,p){return o[l]||(o[l]=p!==void 0?p:{})})("versions",[]).push({version:m.version,mode:t("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(t,i,S){var m=t("./_an-object"),g=t("./_a-function"),o=t("./_wks")("species");i.exports=function(l,p){var u,e=m(l).constructor;return e===void 0||(u=m(e)[o])==null?p:g(u)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(t,i,S){var m=t("./_to-integer"),g=t("./_defined");i.exports=function(o){return function(l,p){var u,e,a=String(g(l)),r=m(p),d=a.length;return r<0||r>=d?o?"":void 0:(u=a.charCodeAt(r),u<55296||u>56319||r+1===d||(e=a.charCodeAt(r+1))<56320||e>57343?o?a.charAt(r):u:o?a.slice(r,r+2):e-56320+(u-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(t,i,S){var m,g,o,l=t("./_ctx"),p=t("./_invoke"),u=t("./_html"),e=t("./_dom-create"),a=t("./_global"),r=a.process,d=a.setImmediate,f=a.clearImmediate,c=a.MessageChannel,A=a.Dispatch,w=0,h={},P=function(){var v=+this;if(h.hasOwnProperty(v)){var D=h[v];delete h[v],D()}},E=function(v){P.call(v.data)};d&&f||(d=function(v){for(var D=[],R=1;arguments.length>R;)D.push(arguments[R++]);return h[++w]=function(){p(typeof v=="function"?v:Function(v),D)},m(w),w},f=function(v){delete h[v]},t("./_cof")(r)=="process"?m=function(v){r.nextTick(l(P,v,1))}:A&&A.now?m=function(v){A.now(l(P,v,1))}:c?(g=new c,o=g.port2,g.port1.onmessage=E,m=l(o.postMessage,o,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(m=function(v){a.postMessage(v+"","*")},a.addEventListener("message",E,!1)):m="onreadystatechange"in e("script")?function(_){u.appendChild(e("script")).onreadystatechange=function(){u.removeChild(this),P.call(_)}}:function(_){setTimeout(l(P,_,1),0)}),i.exports={set:d,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(t,i,S){var m=t("./_to-integer"),g=Math.max,o=Math.min;i.exports=function(l,p){return l=m(l),l<0?g(l+p,0):o(l,p)}},{"./_to-integer":122}],122:[function(t,i,S){var m=Math.ceil,g=Math.floor;i.exports=function(o){return isNaN(o=+o)?0:(o>0?g:m)(o)}},{}],123:[function(t,i,S){var m=t("./_iobject"),g=t("./_defined");i.exports=function(o){return m(g(o))}},{"./_defined":68,"./_iobject":82}],124:[function(t,i,S){var m=t("./_to-integer"),g=Math.min;i.exports=function(o){return o>0?g(m(o),9007199254740991):0}},{"./_to-integer":122}],125:[function(t,i,S){var m=t("./_defined");i.exports=function(g){return Object(m(g))}},{"./_defined":68}],126:[function(t,i,S){var m=t("./_is-object");i.exports=function(g,o){if(!m(g))return g;var l,p;if(o&&typeof(l=g.toString)=="function"&&!m(p=l.call(g)))return p;if(typeof(l=g.valueOf)=="function"&&!m(p=l.call(g)))return p;if(!o&&typeof(l=g.toString)=="function"&&!m(p=l.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(t,i,S){var m=0,g=Math.random();i.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++m+g).toString(36))}},{}],128:[function(t,i,S){var m=t("./_global"),g=m.navigator;i.exports=g&&g.userAgent||""},{"./_global":76}],129:[function(t,i,S){var m=t("./_global"),g=t("./_core"),o=t("./_library"),l=t("./_wks-ext"),p=t("./_object-dp").f;i.exports=function(u){var e=g.Symbol||(g.Symbol=o?{}:m.Symbol||{});u.charAt(0)=="_"||u in e||p(e,u,{value:l.f(u)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(t,i,S){S.f=t("./_wks")},{"./_wks":131}],131:[function(t,i,S){var m=t("./_shared")("wks"),g=t("./_uid"),o=t("./_global").Symbol,l=typeof o=="function";(i.exports=function(p){return m[p]||(m[p]=l&&o[p]||(l?o:g)("Symbol."+p))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(t,i,S){var m=t("./_classof"),g=t("./_wks")("iterator"),o=t("./_iterators");i.exports=t("./_core").getIteratorMethod=function(l){if(l!=null)return l[g]||l["@@iterator"]||o[m(l)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(t,i,S){"use strict";var m=t("./_ctx"),g=t("./_export"),o=t("./_to-object"),l=t("./_iter-call"),p=t("./_is-array-iter"),u=t("./_to-length"),e=t("./_create-property"),a=t("./core.get-iterator-method");g(g.S+g.F*!t("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(d){var f,c,A,w,h=o(d),P=typeof this=="function"?this:Array,E=arguments.length,_=E>1?arguments[1]:void 0,v=_!==void 0,D=0,R=a(h);if(v&&(_=m(_,E>2?arguments[2]:void 0,2)),R==null||P==Array&&p(R))for(f=u(h.length),c=new P(f);f>D;D++)e(c,D,v?_(h[D],D):h[D]);else for(w=R.call(h),c=new P;!(A=w.next()).done;D++)e(c,D,v?l(w,_,[A.value,D],!0):A.value);return c.length=D,c}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(t,i,S){"use strict";var m=t("./_add-to-unscopables"),g=t("./_iter-step"),o=t("./_iterators"),l=t("./_to-iobject");i.exports=t("./_iter-define")(Array,"Array",function(p,u){this._t=l(p),this._i=0,this._k=u},function(){var p=this._t,u=this._k,e=this._i++;return!p||e>=p.length?(this._t=void 0,g(1)):u=="keys"?g(0,e):u=="values"?g(0,p[e]):g(0,[e,p[e]])},"values"),o.Arguments=o.Array,m("keys"),m("values"),m("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(t,i,S){"use strict";var m=t("./_is-object"),g=t("./_object-gpo"),o=t("./_wks")("hasInstance"),l=Function.prototype;o in l||t("./_object-dp").f(l,o,{value:function(u){if(typeof this!="function"||!m(u))return!1;if(!m(this.prototype))return u instanceof this;for(;u=g(u);)if(this.prototype===u)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(t,i,S){var m=t("./_export");m(m.S+m.F,"Object",{assign:t("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(t,i,S){var m=t("./_export");m(m.S,"Object",{create:t("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(t,i,S){var m=t("./_export");m(m.S+m.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(t,i,S){t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(t,i,S){var m=t("./_to-object"),g=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(o){return g(m(o))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(t,i,S){var m=t("./_to-object"),g=t("./_object-keys");t("./_object-sap")("keys",function(){return function(o){return g(m(o))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(t,i,S){arguments[4][36][0].apply(S,arguments)},{dup:36}],143:[function(t,i,S){"use strict";var m,g,o,l,p=t("./_library"),u=t("./_global"),e=t("./_ctx"),a=t("./_classof"),r=t("./_export"),d=t("./_is-object"),f=t("./_a-function"),c=t("./_an-instance"),A=t("./_for-of"),w=t("./_species-constructor"),h=t("./_task").set,P=t("./_microtask")(),E=t("./_new-promise-capability"),_=t("./_perform"),v=t("./_user-agent"),D=t("./_promise-resolve"),R=u.TypeError,y=u.process,j=y&&y.versions,U=j&&j.v8||"",W=u.Promise,k=a(y)=="process",V=function(){},G=g=E.f,H=!!function(){try{var B=W.resolve(1),z=(B.constructor={})[t("./_wks")("species")]=function(Y){Y(V,V)};return(k||typeof PromiseRejectionEvent=="function")&&B.then(V)instanceof z&&U.indexOf("6.6")!==0&&v.indexOf("Chrome/66")===-1}catch(Y){}}(),ne=function(z){var Y;return!(!d(z)||typeof(Y=z.then)!="function")&&Y},X=function(z,Y){if(!z._n){z._n=!0;var J=z._c;P(function(){for(var ce=z._v,oe=z._s==1,fe=0;J.length>fe;)!function(_e){var te,ee,se,L=oe?_e.ok:_e.fail,N=_e.resolve,q=_e.reject,re=_e.domain;try{L?(oe||(z._h==2&&K(z),z._h=1),L===!0?te=ce:(re&&re.enter(),te=L(ce),re&&(re.exit(),se=!0)),te===_e.promise?q(R("Promise-chain cycle")):(ee=ne(te))?ee.call(te,N,q):N(te)):q(ce)}catch(he){re&&!se&&re.exit(),q(he)}}(J[fe++]);z._c=[],z._n=!1,Y&&!z._h&&ie(z)})}},ie=function(z){h.call(u,function(){var Y,J,ce,oe=z._v,fe=Z(z);if(fe&&(Y=_(function(){k?y.emit("unhandledRejection",oe,z):(J=u.onunhandledrejection)?J({promise:z,reason:oe}):(ce=u.console)&&ce.error&&ce.error("Unhandled promise rejection",oe)}),z._h=k||Z(z)?2:1),z._a=void 0,fe&&Y.e)throw Y.v})},Z=function(z){return z._h!==1&&(z._a||z._c).length===0},K=function(z){h.call(u,function(){var Y;k?y.emit("rejectionHandled",z):(Y=u.onrejectionhandled)&&Y({promise:z,reason:z._v})})},M=function(z){var Y=this;Y._d||(Y._d=!0,Y=Y._w||Y,Y._v=z,Y._s=2,Y._a||(Y._a=Y._c.slice()),X(Y,!0))},I=function B(z){var Y,J=this;if(!J._d){J._d=!0,J=J._w||J;try{if(J===z)throw R("Promise can't be resolved itself");(Y=ne(z))?P(function(){var ce={_w:J,_d:!1};try{Y.call(z,e(B,ce,1),e(M,ce,1))}catch(oe){M.call(ce,oe)}}):(J._v=z,J._s=1,X(J,!1))}catch(ce){M.call({_w:J,_d:!1},ce)}}};H||(W=function(z){c(this,W,"Promise","_h"),f(z),m.call(this);try{z(e(I,this,1),e(M,this,1))}catch(Y){M.call(this,Y)}},m=function(z){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=t("./_redefine-all")(W.prototype,{then:function(z,Y){var J=G(w(this,W));return J.ok=typeof z!="function"||z,J.fail=typeof Y=="function"&&Y,J.domain=k?y.domain:void 0,this._c.push(J),this._a&&this._a.push(J),this._s&&X(this,!1),J.promise},catch:function(z){return this.then(void 0,z)}}),o=function(){var z=new m;this.promise=z,this.resolve=e(I,z,1),this.reject=e(M,z,1)},E.f=G=function(z){return z===W||z===l?new o(z):g(z)}),r(r.G+r.W+r.F*!H,{Promise:W}),t("./_set-to-string-tag")(W,"Promise"),t("./_set-species")("Promise"),l=t("./_core").Promise,r(r.S+r.F*!H,"Promise",{reject:function(z){var Y=G(this);return(0,Y.reject)(z),Y.promise}}),r(r.S+r.F*(p||!H),"Promise",{resolve:function(z){return D(p&&this===l?W:this,z)}}),r(r.S+r.F*!(H&&t("./_iter-detect")(function(B){W.all(B).catch(V)})),"Promise",{all:function(z){var Y=this,J=G(Y),ce=J.resolve,oe=J.reject,fe=_(function(){var _e=[],te=0,ee=1;A(z,!1,function(se){var L=te++,N=!1;_e.push(void 0),ee++,Y.resolve(se).then(function(q){N||(N=!0,_e[L]=q,--ee||ce(_e))},oe)}),--ee||ce(_e)});return fe.e&&oe(fe.v),J.promise},race:function(z){var Y=this,J=G(Y),ce=J.reject,oe=_(function(){A(z,!1,function(fe){Y.resolve(fe).then(J.resolve,ce)})});return oe.e&&ce(oe.v),J.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(t,i,S){var m=t("./_export"),g=t("./_to-absolute-index"),o=String.fromCharCode,l=String.fromCodePoint;m(m.S+m.F*(!!l&&l.length!=1),"String",{fromCodePoint:function(u){for(var e,a=[],r=arguments.length,d=0;r>d;){if(e=+arguments[d++],g(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(t,i,S){"use strict";var m=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,o=this._t,l=this._i;return l>=o.length?{value:void 0,done:!0}:(g=m(o,l),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(t,i,S){"use strict";var m=t("./_global"),g=t("./_has"),o=t("./_descriptors"),l=t("./_export"),p=t("./_redefine"),u=t("./_meta").KEY,e=t("./_fails"),a=t("./_shared"),r=t("./_set-to-string-tag"),d=t("./_uid"),f=t("./_wks"),c=t("./_wks-ext"),A=t("./_wks-define"),w=t("./_enum-keys"),h=t("./_is-array"),P=t("./_an-object"),E=t("./_is-object"),_=t("./_to-iobject"),v=t("./_to-primitive"),D=t("./_property-desc"),R=t("./_object-create"),y=t("./_object-gopn-ext"),j=t("./_object-gopd"),U=t("./_object-dp"),W=t("./_object-keys"),k=j.f,V=U.f,G=y.f,H=m.Symbol,ne=m.JSON,X=ne&&ne.stringify,ie=f("_hidden"),Z=f("toPrimitive"),K={}.propertyIsEnumerable,M=a("symbol-registry"),I=a("symbols"),B=a("op-symbols"),z=Object.prototype,Y=typeof H=="function",J=m.QObject,ce=!J||!J.prototype||!J.prototype.findChild,oe=o&&e(function(){return R(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a!=7})?function(O,b,x){var F=k(z,b);F&&delete z[b],V(O,b,x),F&&O!==z&&V(z,b,F)}:V,fe=function(b){var x=I[b]=R(H.prototype);return x._k=b,x},_e=Y&&typeof H.iterator=="symbol"?function(O){return typeof O=="symbol"}:function(O){return O instanceof H},te=function O(b,x,F){return b===z&&O(B,x,F),P(b),x=v(x,!0),P(F),g(I,x)?(F.enumerable?(g(b,ie)&&b[ie][x]&&(b[ie][x]=!1),F=R(F,{enumerable:D(0,!1)})):(g(b,ie)||V(b,ie,D(1,{})),b[ie][x]=!0),oe(b,x,F)):V(b,x,F)},ee=function(b,x){P(b);for(var F,T=w(x=_(x)),Q=0,ae=T.length;ae>Q;)te(b,F=T[Q++],x[F]);return b},se=function(b,x){return x===void 0?R(b):ee(R(b),x)},L=function(b){var x=K.call(this,b=v(b,!0));return!(this===z&&g(I,b)&&!g(B,b))&&(!(x||!g(this,b)||!g(I,b)||g(this,ie)&&this[ie][b])||x)},N=function(b,x){if(b=_(b),x=v(x,!0),b!==z||!g(I,x)||g(B,x)){var F=k(b,x);return!F||!g(I,x)||g(b,ie)&&b[ie][x]||(F.enumerable=!0),F}},q=function(b){for(var x,F=G(_(b)),T=[],Q=0;F.length>Q;)g(I,x=F[Q++])||x==ie||x==u||T.push(x);return T},re=function(b){for(var x,F=b===z,T=G(F?B:_(b)),Q=[],ae=0;T.length>ae;)!g(I,x=T[ae++])||F&&!g(z,x)||Q.push(I[x]);return Q};Y||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var b=d(arguments.length>0?arguments[0]:void 0),x=function F(T){this===z&&F.call(B,T),g(this,ie)&&g(this[ie],b)&&(this[ie][b]=!1),oe(this,b,D(1,T))};return o&&ce&&oe(z,b,{configurable:!0,set:x}),fe(b)},p(H.prototype,"toString",function(){return this._k}),j.f=N,U.f=te,t("./_object-gopn").f=y.f=q,t("./_object-pie").f=L,t("./_object-gops").f=re,o&&!t("./_library")&&p(z,"propertyIsEnumerable",L,!0),c.f=function(O){return fe(f(O))}),l(l.G+l.W+l.F*!Y,{Symbol:H});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),C=0;he.length>C;)f(he[C++]);for(var n=W(f.store),s=0;n.length>s;)A(n[s++]);l(l.S+l.F*!Y,"Symbol",{for:function(b){return g(M,b+="")?M[b]:M[b]=H(b)},keyFor:function(b){if(!_e(b))throw TypeError(b+" is not a symbol!");for(var x in M)if(M[x]===b)return x},useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),l(l.S+l.F*!Y,"Object",{create:se,defineProperty:te,defineProperties:ee,getOwnPropertyDescriptor:N,getOwnPropertyNames:q,getOwnPropertySymbols:re}),ne&&l(l.S+l.F*(!Y||e(function(){var O=H();return X([O])!="[null]"||X({a:O})!="{}"||X(Object(O))!="{}"})),"JSON",{stringify:function(b){for(var x,F,T=[b],Q=1;arguments.length>Q;)T.push(arguments[Q++]);if(F=x=T[1],(E(x)||b!==void 0)&&!_e(b))return h(x)||(x=function(de,me){if(typeof F=="function"&&(me=F.call(this,de,me)),!_e(me))return me}),T[1]=x,X.apply(ne,T)}}),H.prototype[Z]||t("./_hide")(H.prototype,Z,H.prototype.valueOf),r(H,"Symbol"),r(Math,"Math",!0),r(m.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(t,i,S){"use strict";var m=t("./_export"),g=t("./_core"),o=t("./_global"),l=t("./_species-constructor"),p=t("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(e){var a=l(this,g.Promise||o.Promise),r=typeof e=="function";return this.then(r?function(d){return p(a,e()).then(function(){return d})}:e,r?function(d){return p(a,e()).then(function(){throw d})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(t,i,S){"use strict";var m=t("./_export"),g=t("./_new-promise-capability"),o=t("./_perform");m(m.S,"Promise",{try:function(p){var u=g.f(this),e=o(p);return(e.e?u.reject:u.resolve)(e.v),u.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(t,i,S){t("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(t,i,S){t("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(t,i,S){t("./es6.array.iterator");for(var m=t("./_global"),g=t("./_hide"),o=t("./_iterators"),l=t("./_wks")("toStringTag"),p="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<p.length;u++){var e=p[u],a=m[e],r=a&&a.prototype;r&&!r[l]&&g(r,l,e),o[e]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(t,i,S){var m=t("./_export"),g=t("./_task");m(m.G+m.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":73,"./_task":120}],153:[function(t,i,S){(function(m){"use strict";function g(v){return Array.isArray?Array.isArray(v):P(v)==="[object Array]"}function o(v){return typeof v=="boolean"}function l(v){return v===null}function p(v){return v==null}function u(v){return typeof v=="number"}function e(v){return typeof v=="string"}function a(v){return(v===void 0?"undefined":(0,_.default)(v))==="symbol"}function r(v){return v===void 0}function d(v){return P(v)==="[object RegExp]"}function f(v){return(v===void 0?"undefined":(0,_.default)(v))==="object"&&v!==null}function c(v){return P(v)==="[object Date]"}function A(v){return P(v)==="[object Error]"||v instanceof Error}function w(v){return typeof v=="function"}function h(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||(v===void 0?"undefined":(0,_.default)(v))==="symbol"||v===void 0}function P(v){return Object.prototype.toString.call(v)}var E=t("babel-runtime/helpers/typeof"),_=function(v){return v&&v.__esModule?v:{default:v}}(E);S.isArray=g,S.isBoolean=o,S.isNull=l,S.isNullOrUndefined=p,S.isNumber=u,S.isString=e,S.isSymbol=a,S.isUndefined=r,S.isRegExp=d,S.isObject=f,S.isDate=c,S.isError=A,S.isFunction=w,S.isPrimitive=h,S.isBuffer=m.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(t,i,S){"use strict";var m=t("babel-runtime/helpers/typeof"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);!function(o){function l(r,d){for(r=String(r),d=d||2;r.length<d;)r="0"+r;return r}function p(r){var d=new Date(r.getFullYear(),r.getMonth(),r.getDate());d.setDate(d.getDate()-(d.getDay()+6)%7+3);var f=new Date(d.getFullYear(),0,4);f.setDate(f.getDate()-(f.getDay()+6)%7+3);var c=d.getTimezoneOffset()-f.getTimezoneOffset();d.setHours(d.getHours()-c);var A=(d-f)/6048e5;return 1+Math.floor(A)}function u(r){var d=r.getDay();return d===0&&(d=7),d}function e(r){return r===null?"null":r===void 0?"undefined":(r===void 0?"undefined":(0,g.default)(r))!=="object"?r===void 0?"undefined":(0,g.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}var a=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,d=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g;return function(c,A,w,h){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(A=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");A=String(a.masks[A]||A||a.masks.default);var P=A.slice(0,4);P!=="UTC:"&&P!=="GMT:"||(A=A.slice(4),w=!0,P==="GMT:"&&(h=!0));var E=w?"getUTC":"get",_=c[E+"Date"](),v=c[E+"Day"](),D=c[E+"Month"](),R=c[E+"FullYear"](),y=c[E+"Hours"](),j=c[E+"Minutes"](),U=c[E+"Seconds"](),W=c[E+"Milliseconds"](),k=w?0:c.getTimezoneOffset(),V=p(c),G=u(c),H={d:_,dd:l(_),ddd:a.i18n.dayNames[v],dddd:a.i18n.dayNames[v+7],m:D+1,mm:l(D+1),mmm:a.i18n.monthNames[D],mmmm:a.i18n.monthNames[D+12],yy:String(R).slice(2),yyyy:R,h:y%12||12,hh:l(y%12||12),H:y,HH:l(y),M:j,MM:l(j),s:U,ss:l(U),l:l(W,3),L:l(Math.round(W/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:h?"GMT":w?"UTC":(String(c).match(d)||[""]).pop().replace(f,""),o:(k>0?"-":"+")+l(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][_%10>3?0:(_%100-_%10!=10)*_%10],W:V,N:G};return A.replace(r,function(ne){return ne in H?H[ne]:ne.slice(1,ne.length-1)})}}();a.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},a.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof pe=="function"&&pe.amd?pe(function(){return a}):(S===void 0?"undefined":(0,g.default)(S))==="object"?i.exports=a:o.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(t,i,S){(function(m){function g(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+S.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var d=0,f=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(d++,c==="%c"&&(f=d))}),e.splice(f,0,r)}}function l(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(e){try{e==null?S.storage.removeItem("debug"):S.storage.debug=e}catch(a){}}function u(){var e;try{e=S.storage.debug}catch(a){}return!e&&m!==void 0&&"env"in m&&(e=m.env.DEBUG),e}S=i.exports=t("./debug"),S.log=l,S.formatArgs=o,S.save=p,S.load=u,S.useColors=g,S.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),S.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],S.formatters.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},S.enable(u())}).call(this,t("_process"))},{"./debug":156,_process:173}],156:[function(t,i,S){function m(a){var r,d=0;for(r in a)d=(d<<5)-d+a.charCodeAt(r),d|=0;return S.colors[Math.abs(d)%S.colors.length]}function g(a){function r(){if(r.enabled){var d=r,f=+new Date,c=f-(e||f);d.diff=c,d.prev=e,d.curr=f,e=f;for(var A=new Array(arguments.length),w=0;w<A.length;w++)A[w]=arguments[w];A[0]=S.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");var h=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,function(P,E){if(P==="%%")return P;h++;var _=S.formatters[E];if(typeof _=="function"){var v=A[h];P=_.call(d,v),A.splice(h,1),h--}return P}),S.formatArgs.call(d,A),(r.log||S.log||console.log.bind(console)).apply(d,A)}}return r.namespace=a,r.enabled=S.enabled(a),r.useColors=S.useColors(),r.color=m(a),typeof S.init=="function"&&S.init(r),r}function o(a){S.save(a),S.names=[],S.skips=[];for(var r=(typeof a=="string"?a:"").split(/[\s,]+/),d=r.length,f=0;f<d;f++)r[f]&&(a=r[f].replace(/\*/g,".*?"),a[0]==="-"?S.skips.push(new RegExp("^"+a.substr(1)+"$")):S.names.push(new RegExp("^"+a+"$")))}function l(){S.enable("")}function p(a){var r,d;for(r=0,d=S.skips.length;r<d;r++)if(S.skips[r].test(a))return!1;for(r=0,d=S.names.length;r<d;r++)if(S.names[r].test(a))return!0;return!1}function u(a){return a instanceof Error?a.stack||a.message:a}S=i.exports=g.debug=g.default=g,S.coerce=u,S.disable=l,S.enable=o,S.enabled=p,S.humanize=t("ms"),S.names=[],S.skips=[],S.formatters={};var e},{ms:169}],157:[function(t,i,S){"use strict";function m(o){var l=""+o,p=g.exec(l);if(!p)return l;var u,e="",a=0,r=0;for(a=p.index;a<l.length;a++){switch(l.charCodeAt(a)){case 34:u=""";break;case 38:u="&";break;case 39:u="'";break;case 60:u="<";break;case 62:u=">";break;default:continue}r!==a&&(e+=l.substring(r,a)),r=a+1,e+=u}return r!==a?e+l.substring(r,a):e}var g=/["'&<>]/;i.exports=m},{}],158:[function(t,i,S){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function g(u){return typeof u=="function"}function o(u){return typeof u=="number"}function l(u){return typeof u=="object"&&u!==null}function p(u){return u===void 0}i.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(u){if(!o(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},m.prototype.emit=function(u){var e,a,r,d,f,c;if(this._events||(this._events={}),u==="error"&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var A=new Error('Uncaught, unspecified "error" event. ('+e+")");throw A.context=e,A}if(a=this._events[u],p(a))return!1;if(g(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:d=Array.prototype.slice.call(arguments,1),a.apply(this,d)}else if(l(a))for(d=Array.prototype.slice.call(arguments,1),c=a.slice(),r=c.length,f=0;f<r;f++)c[f].apply(this,d);return!0},m.prototype.addListener=function(u,e){var a;if(!g(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,g(e.listener)?e.listener:e),this._events[u]?l(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,l(this._events[u])&&!this._events[u].warned&&(a=p(this._maxListeners)?m.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[u].length>a&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace()),this},m.prototype.on=m.prototype.addListener,m.prototype.once=function(u,e){function a(){this.removeListener(u,a),r||(r=!0,e.apply(this,arguments))}if(!g(e))throw TypeError("listener must be a function");var r=!1;return a.listener=e,this.on(u,a),this},m.prototype.removeListener=function(u,e){var a,r,d,f;if(!g(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(a=this._events[u],d=a.length,r=-1,a===e||g(a.listener)&&a.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(l(a)){for(f=d;f-- >0;)if(a[f]===e||a[f].listener&&a[f].listener===e){r=f;break}if(r<0)return this;a.length===1?(a.length=0,delete this._events[u]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},m.prototype.removeAllListeners=function(u){var e,a;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[u],g(a))this.removeListener(u,a);else if(a)for(;a.length;)this.removeListener(u,a[a.length-1]);return delete this._events[u],this},m.prototype.listeners=function(u){return this._events&&this._events[u]?g(this._events[u])?[this._events[u]]:this._events[u].slice():[]},m.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(g(e))return 1;if(e)return e.length}return 0},m.listenerCount=function(u,e){return u.listenerCount(e)}},{}],159:[function(t,i,S){var m=t("http"),g=i.exports;for(var o in m)m.hasOwnProperty(o)&&(g[o]=m[o]);g.request=function(l,p){return l||(l={}),l.scheme="https",l.protocol="https:",m.request.call(this,l,p)}},{http:196}],160:[function(t,i,S){"use strict";var m=t("util"),g=t("ms");i.exports=function(o){if(typeof o=="number")return o;var l=g(o);if(l===void 0){var p=new Error(m.format("humanize-ms(%j) result undefined",o));console.warn(p.stack)}return l}},{ms:169,util:207}],161:[function(t,i,S){S.read=function(m,g,o,l,p){var u,e,a=8*p-l-1,r=(1<<a)-1,d=r>>1,f=-7,c=o?p-1:0,A=o?-1:1,w=m[g+c];for(c+=A,u=w&(1<<-f)-1,w>>=-f,f+=a;f>0;u=256*u+m[g+c],c+=A,f-=8);for(e=u&(1<<-f)-1,u>>=-f,f+=l;f>0;e=256*e+m[g+c],c+=A,f-=8);if(u===0)u=1-d;else{if(u===r)return e?NaN:1/0*(w?-1:1);e+=Math.pow(2,l),u-=d}return(w?-1:1)*e*Math.pow(2,u-l)},S.write=function(m,g,o,l,p,u){var e,a,r,d=8*u-p-1,f=(1<<d)-1,c=f>>1,A=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=l?0:u-1,h=l?1:-1,P=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(a=isNaN(g)?1:0,e=f):(e=Math.floor(Math.log(g)/Math.LN2),g*(r=Math.pow(2,-e))<1&&(e--,r*=2),g+=e+c>=1?A/r:A*Math.pow(2,1-c),g*r>=2&&(e++,r/=2),e+c>=f?(a=0,e=f):e+c>=1?(a=(g*r-1)*Math.pow(2,p),e+=c):(a=g*Math.pow(2,c-1)*Math.pow(2,p),e=0));p>=8;m[o+w]=255&a,w+=h,a/=256,p-=8);for(e=e<<p|a,d+=p;d>0;m[o+w]=255&e,w+=h,e/=256,d-=8);m[o+w-h]|=128*P}},{}],162:[function(t,i,S){typeof Object.create=="function"?i.exports=function(m,g){m.super_=g,m.prototype=Object.create(g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(m,g){m.super_=g;var o=function(){};o.prototype=g.prototype,m.prototype=new o,m.prototype.constructor=m}},{}],163:[function(t,i,S){function m(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function g(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&m(o.slice(0,0))}i.exports=function(o){return o!=null&&(m(o)||g(o)||!!o._isBuffer)}},{}],164:[function(t,i,S){!function(m){function g(p){return l.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(l.call(p))||/^.*classCallCheck\(/.test(g(p)))}var l=Function.prototype.toString;S!==void 0?(i!==void 0&&i.exports&&(S=i.exports=o),S.isClass=o):typeof pe=="function"&&pe.amd?pe([],function(){return o}):m.isClass=o}(this)},{}],165:[function(t,i,S){"use strict";function m(u){var e=u.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var g=t("core-util-is"),o=t("isstream"),l=t("is-class");Object.keys(g).map(function(u){S[m(u)]=g[u]}),S.stream=o,S.readableStream=o.isReadable,S.writableStream=o.isWritable,S.duplexStream=o.isDuplex,S.class=l,S.finite=function(u){return Number.isFinite(u)},S.NaN=function(u){return Number.isNaN(u)},S.generator=function(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"},S.generatorFunction=function(u){return u&&u.constructor&&u.constructor.name==="GeneratorFunction"},S.asyncFunction=function(u){return u&&u.constructor&&u.constructor.name==="AsyncFunction"},S.promise=function(u){return u&&typeof u.then=="function"};var p=Math.pow(2,31);S.int=function(u){return g.isNumber(u)&&u%1==0},S.int32=function(u){return S.int(u)&&u<p&&u>=-p},S.long=function(u){return S.int(u)&&(u>=p||u<-p)},S.Long=function(u){return S.object(u)&&S.number(u.high)&&S.number(u.low)},S.double=function(u){return g.isNumber(u)&&!isNaN(u)&&u%1!=0},S.date=function(u){return u instanceof Date},S.regExp=function(u){return u instanceof RegExp},S.regexp=S.regExp,S.error=function(u){return u instanceof Error},S.array=function(u){return Array.isArray(u)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(t,i,S){var m={}.toString;i.exports=Array.isArray||function(g){return m.call(g)=="[object Array]"}},{}],167:[function(t,i,S){function m(u){return u instanceof p.Stream}function g(u){return m(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function o(u){return m(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function l(u){return g(u)&&o(u)}var p=t("stream");i.exports=m,i.exports.isReadable=g,i.exports.isWritable=o,i.exports.isDuplex=l},{stream:195}],168:[function(t,i,S){"use strict";function m(o,l,p){if(!o)throw new TypeError("argument dest is required");if(!l)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(l).forEach(function(u){if(p||!g.call(o,u)){var e=Object.getOwnPropertyDescriptor(l,u);Object.defineProperty(o,u,e)}}),o}i.exports=m;var g=Object.prototype.hasOwnProperty},{}],169:[function(t,i,S){function m(d){if(d=String(d),!(d.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(d);if(f){var c=parseFloat(f[1]);switch((f[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*u;case"seconds":case"second":case"secs":case"sec":case"s":return c*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function g(d){return d>=a?Math.round(d/a)+"d":d>=e?Math.round(d/e)+"h":d>=u?Math.round(d/u)+"m":d>=p?Math.round(d/p)+"s":d+"ms"}function o(d){return l(d,a,"day")||l(d,e,"hour")||l(d,u,"minute")||l(d,p,"second")||d+" ms"}function l(d,f,c){if(!(d<f))return d<1.5*f?Math.floor(d/f)+" "+c:Math.ceil(d/f)+" "+c+"s"}var p=1e3,u=60*p,e=60*u,a=24*e,r=365.25*a;i.exports=function(d,f){f=f||{};var c=typeof d;if(c==="string"&&d.length>0)return m(d);if(c==="number"&&isNaN(d)===!1)return f.long?o(d):g(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},{}],170:[function(t,i,S){(function(m){function g(u,e){for(var a=0,r=u.length-1;r>=0;r--){var d=u[r];d==="."?u.splice(r,1):d===".."?(u.splice(r,1),a++):a&&(u.splice(r,1),a--)}if(e)for(;a--;a)u.unshift("..");return u}function o(u){typeof u!="string"&&(u+="");var e,a=0,r=-1,d=!0;for(e=u.length-1;e>=0;--e)if(u.charCodeAt(e)===47){if(!d){a=e+1;break}}else r===-1&&(d=!1,r=e+1);return r===-1?"":u.slice(a,r)}function l(u,e){if(u.filter)return u.filter(e);for(var a=[],r=0;r<u.length;r++)e(u[r],r,u)&&a.push(u[r]);return a}S.resolve=function(){for(var u="",e=!1,a=arguments.length-1;a>=-1&&!e;a--){var r=a>=0?arguments[a]:m.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(u=r+"/"+u,e=r.charAt(0)==="/")}return u=g(l(u.split("/"),function(d){return!!d}),!e).join("/"),(e?"/":"")+u||"."},S.normalize=function(u){var e=S.isAbsolute(u),a=p(u,-1)==="/";return u=g(l(u.split("/"),function(r){return!!r}),!e).join("/"),u||e||(u="."),u&&a&&(u+="/"),(e?"/":"")+u},S.isAbsolute=function(u){return u.charAt(0)==="/"},S.join=function(){var u=Array.prototype.slice.call(arguments,0);return S.normalize(l(u,function(e,a){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},S.relative=function(u,e){function a(h){for(var P=0;P<h.length&&h[P]==="";P++);for(var E=h.length-1;E>=0&&h[E]==="";E--);return P>E?[]:h.slice(P,E-P+1)}u=S.resolve(u).substr(1),e=S.resolve(e).substr(1);for(var r=a(u.split("/")),d=a(e.split("/")),f=Math.min(r.length,d.length),c=f,A=0;A<f;A++)if(r[A]!==d[A]){c=A;break}for(var w=[],A=c;A<r.length;A++)w.push("..");return w=w.concat(d.slice(c)),w.join("/")},S.sep="/",S.delimiter=":",S.dirname=function(u){if(typeof u!="string"&&(u+=""),u.length===0)return".";for(var e=u.charCodeAt(0),a=e===47,r=-1,d=!0,f=u.length-1;f>=1;--f)if((e=u.charCodeAt(f))===47){if(!d){r=f;break}}else d=!1;return r===-1?a?"/":".":a&&r===1?"/":u.slice(0,r)},S.basename=function(u,e){var a=o(u);return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},S.extname=function(u){typeof u!="string"&&(u+="");for(var e=-1,a=0,r=-1,d=!0,f=0,c=u.length-1;c>=0;--c){var A=u.charCodeAt(c);if(A!==47)r===-1&&(d=!1,r=c+1),A===46?e===-1?e=c:f!==1&&(f=1):e!==-1&&(f=-1);else if(!d){a=c+1;break}}return e===-1||r===-1||f===0||f===1&&e===r-1&&e===a+1?"":u.slice(e,r)};var p="ab".substr(-1)==="b"?function(u,e,a){return u.substr(e,a)}:function(u,e,a){return e<0&&(e=u.length+e),u.substr(e,a)}}).call(this,t("_process"))},{_process:173}],171:[function(t,i,S){(function(m){(function(){"use strict";function g(U){return U=String(U),U.charAt(0).toUpperCase()+U.slice(1)}function o(U,W,k){var V={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return W&&k&&/^Win/i.test(U)&&!/^Windows Phone /i.test(U)&&(V=V[/[\d.]+$/.exec(U)])&&(U="Windows "+V),U=String(U),W&&k&&(U=U.replace(RegExp(W,"i"),k)),U=p(U.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function l(U,W){var k=-1,V=U?U.length:0;if(typeof V=="number"&&V>-1&&V<=_)for(;++k<V;)W(U[k],k,U);else u(U,W)}function p(U){return U=f(U),/^(?:webOS|i(?:OS|P))/.test(U)?U:g(U)}function u(U,W){for(var k in U)R.call(U,k)&&W(U[k],k,U)}function e(U){return U==null?g(U):y.call(U).slice(8,-1)}function a(U,W){var k=U!=null?typeof U[W]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(k)||k=="object"&&!U[W])}function r(U){return String(U).replace(/([ -])(?!$)/g,"$1?")}function d(U,W){var k=null;return l(U,function(V,G){k=W(k,V,G,U)}),k}function f(U){return String(U).replace(/^ +| +$/g,"")}function c(U){function W(O){return d(O,function(b,x){var F=x.pattern||r(x);return!b&&(b=RegExp("\\b"+F+" *\\d+[.\\w_]*","i").exec(U)||RegExp("\\b"+F+" *\\w+-[\\w]*","i").exec(U)||RegExp("\\b"+F+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(U))&&((b=String(x.label&&!RegExp(F,"i").test(x.label)?x.label:b).split("/"))[1]&&!/[\d.]+/.test(b[0])&&(b[0]+=" "+b[1]),x=x.label||x,b=p(b[0].replace(RegExp(F,"i"),x).replace(RegExp("; *(?:"+x+"[_-])?","i")," ").replace(RegExp("("+x+")[-_.]?(\\w)","i"),"$1 $2"))),b})}function k(){return this.description||""}var V=w,G=U&&typeof U=="object"&&e(U)!="String";G&&(V=U,U=null);var H=V.navigator||{},ne=H.userAgent||"";U||(U=ne);var X,ie,Z=G?!!H.likeChrome:/\bChrome\b/.test(U)&&!/internal|\n/i.test(y.toString()),K=G?"Object":"ScriptBridgingProxyObject",M=G?"Object":"Environment",I=G&&V.java?"JavaPackage":e(V.java),B=G?"Object":"RuntimeObject",z=/\bJava/.test(I)&&V.java,Y=z&&e(V.environment)==M,J=z?"a":"\u4F2A",ce=z?"b":"\u5C3E",oe=V.document||{},fe=V.operamini||V.opera,_e=v.test(_e=G&&fe?fe["[[Class]]"]:e(fe))?_e:fe=null,te=U,ee=[],se=null,L=U==ne,N=L&&fe&&typeof fe.version=="function"&&fe.version(),q=function(O){return d(O,function(b,x){return b||RegExp("\\b"+(x.pattern||r(x))+"\\b","i").exec(U)&&(x.label||x)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),re=function(O){return d(O,function(b,x){return b||RegExp("\\b"+(x.pattern||r(x))+"\\b","i").exec(U)&&(x.label||x)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),he=W([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),C=function(O){return d(O,function(b,x,F){return b||(x[he]||x[/^[a-z]+(?: +[a-z]+\b)*/i.exec(he)]||RegExp("\\b"+r(F)+"(?:\\b|\\w*\\d)","i").exec(U))&&F})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),n=function(O){return d(O,function(b,x){var F=x.pattern||r(x);return!b&&(b=RegExp("\\b"+F+"(?:/[\\d.]+|[ \\w.]*)","i").exec(U))&&(b=o(b,F,x.label||x)),b})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(q&&(q=[q]),C&&!he&&(he=W([C])),(X=/\bGoogle TV\b/.exec(he))&&(he=X[0]),/\bSimulator\b/i.test(U)&&(he=(he?he+" ":"")+"Simulator"),re=="Opera Mini"&&/\bOPiOS\b/.test(U)&&ee.push("running in Turbo/Uncompressed mode"),re=="IE"&&/\blike iPhone OS\b/.test(U)?(X=c(U.replace(/like iPhone OS/,"")),C=X.manufacturer,he=X.product):/^iP/.test(he)?(re||(re="Safari"),n="iOS"+((X=/ OS ([\d_]+)/i.exec(U))?" "+X[1].replace(/_/g,"."):"")):re!="Konqueror"||/buntu/i.test(n)?C&&C!="Google"&&(/Chrome/.test(re)&&!/\bMobile Safari\b/i.test(U)||/\bVita\b/.test(he))||/\bAndroid\b/.test(n)&&/^Chrome/.test(re)&&/\bVersion\//i.test(U)?(re="Android Browser",n=/\bAndroid\b/.test(n)?n:"Android"):re=="Silk"?(/\bMobi/i.test(U)||(n="Android",ee.unshift("desktop mode")),/Accelerated *= *true/i.test(U)&&ee.unshift("accelerated")):re=="PaleMoon"&&(X=/\bFirefox\/([\d.]+)\b/.exec(U))?ee.push("identifying as Firefox "+X[1]):re=="Firefox"&&(X=/\b(Mobile|Tablet|TV)\b/i.exec(U))?(n||(n="Firefox OS"),he||(he=X[1])):!re||(X=!/\bMinefield\b/i.test(U)&&/\b(?:Firefox|Safari)\b/.exec(re))?(re&&!he&&/[\/,]|^[^(]+?\)/.test(U.slice(U.indexOf(X+"/")+8))&&(re=null),(X=he||C||n)&&(he||C||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(n))&&(re=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(n)?n:X)+" Browser")):re=="Electron"&&(X=(/\bChrome\/([\d.]+)\b/.exec(U)||0)[1])&&ee.push("Chromium "+X):n="Kubuntu",N||(N=function(O){return d(O,function(b,x){return b||(RegExp(x+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(U)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(re),"(?:Firefox|Minefield|NetFront)"])),(X=q=="iCab"&&parseFloat(N)>3&&"WebKit"||/\bOpera\b/.test(re)&&(/\bOPR\b/.test(U)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(U)&&!/^(?:Trident|EdgeHTML)$/.test(q)&&"WebKit"||!q&&/\bMSIE\b/i.test(U)&&(n=="Mac OS"?"Tasman":"Trident")||q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(re)&&"NetFront")&&(q=[X]),re=="IE"&&(X=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(U)||0)[1])?(re+=" Mobile",n="Windows Phone "+(/\+$/.test(X)?X:X+".x"),ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(U)?(re="IE Mobile",n="Windows Phone 8.x",ee.unshift("desktop mode"),N||(N=(/\brv:([\d.]+)/.exec(U)||0)[1])):re!="IE"&&q=="Trident"&&(X=/\brv:([\d.]+)/.exec(U))&&(re&&ee.push("identifying as "+re+(N?" "+N:"")),re="IE",N=X[1]),L){if(a(V,"global"))if(z&&(X=z.lang.System,te=X.getProperty("os.arch"),n=n||X.getProperty("os.name")+" "+X.getProperty("os.version")),Y){try{N=V.require("ringo/engine").version.join("."),re="RingoJS"}catch(O){(X=V.system)&&X.global.system==V.system&&(re="Narwhal",n||(n=X[0].os||null))}re||(re="Rhino")}else typeof V.process=="object"&&!V.process.browser&&(X=V.process)&&(typeof X.versions=="object"&&(typeof X.versions.electron=="string"?(ee.push("Node "+X.versions.node),re="Electron",N=X.versions.electron):typeof X.versions.nw=="string"&&(ee.push("Chromium "+N,"Node "+X.versions.node),re="NW.js",N=X.versions.nw)),re||(re="Node.js",te=X.arch,n=X.platform,N=/[\d.]+/.exec(X.version),N=N?N[0]:null));else e(X=V.runtime)==K?(re="Adobe AIR",n=X.flash.system.Capabilities.os):e(X=V.phantom)==B?(re="PhantomJS",N=(X=X.version||null)&&X.major+"."+X.minor+"."+X.patch):typeof oe.documentMode=="number"&&(X=/\bTrident\/(\d+)/i.exec(U))?(N=[N,oe.documentMode],(X=+X[1]+4)!=N[1]&&(ee.push("IE "+N[1]+" mode"),q&&(q[1]=""),N[1]=X),N=re=="IE"?String(N[1].toFixed(1)):N[0]):typeof oe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(re)&&(ee.push("masking as "+re+" "+N),re="IE",N="11.0",q=["Trident"],n="Windows");n=n&&p(n)}if(N&&(X=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(N)||/(?:alpha|beta)(?: ?\d)?/i.exec(U+";"+(L&&H.appMinorVersion))||/\bMinefield\b/i.test(U)&&"a")&&(se=/b/i.test(X)?"beta":"alpha",N=N.replace(RegExp(X+"\\+?$"),"")+(se=="beta"?ce:J)+(/\d+\+?/.exec(X)||"")),re=="Fennec"||re=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(n))re="Firefox Mobile";else if(re=="Maxthon"&&N)N=N.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))he=="Xbox 360"&&(n=null),he=="Xbox 360"&&/\bIEMobile\b/.test(U)&&ee.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(re)&&(!re||he||/Browser|Mobi/.test(re))||n!="Windows CE"&&!/Mobi/i.test(U))if(re=="IE"&&L)try{V.external===null&&ee.unshift("platform preview")}catch(O){ee.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test(U))&&(X=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec(U)||0)[1]||N)?(X=[X,/BB10/.test(U)],n=(X[1]?(he=null,C="BlackBerry"):"Device Software")+" "+X[0],N=null):this!=u&&he!="Wii"&&(L&&fe||/Opera/.test(re)&&/\b(?:MSIE|Firefox)\b/i.test(U)||re=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(n)||re=="IE"&&(n&&!/^Win/.test(n)&&N>5.5||/\bWindows XP\b/.test(n)&&N>8||N==8&&!/\bTrident\b/.test(U)))&&!v.test(X=c.call(u,U.replace(v,"")+";"))&&X.name&&(X="ing as "+X.name+((X=X.version)?" "+X:""),v.test(re)?(/\bIE\b/.test(X)&&n=="Mac OS"&&(n=null),X="identify"+X):(X="mask"+X,re=_e?p(_e.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(X)&&(n=null),L||(N=null)),q=["Presto"],ee.push(X));else re+=" Mobile";(X=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(U)||0)[1])&&(X=[parseFloat(X.replace(/\.(\d)$/,".0$1")),X],re=="Safari"&&X[1].slice(-1)=="+"?(re="WebKit Nightly",se="alpha",N=X[1].slice(0,-1)):N!=X[1]&&N!=(X[2]=(/\bSafari\/([\d.]+\+?)/i.exec(U)||0)[1])||(N=null),X[1]=(/\bChrome\/([\d.]+)/i.exec(U)||0)[1],X[0]==537.36&&X[2]==537.36&&parseFloat(X[1])>=28&&q=="WebKit"&&(q=["Blink"]),L&&(Z||X[1])?(q&&(q[1]="like Chrome"),X=X[1]||(X=X[0],X<530?1:X<532?2:X<532.05?3:X<533?4:X<534.03?5:X<534.07?6:X<534.1?7:X<534.13?8:X<534.16?9:X<534.24?10:X<534.3?11:X<535.01?12:X<535.02?"13+":X<535.07?15:X<535.11?16:X<535.19?17:X<536.05?18:X<536.1?19:X<537.01?20:X<537.11?"21+":X<537.13?23:X<537.18?24:X<537.24?25:X<537.36?26:q!="Blink"?"27":"28")):(q&&(q[1]="like Safari"),X=X[0],X=X<400?1:X<500?2:X<526?3:X<533?4:X<534?"4+":X<535?5:X<537?6:X<538?7:X<601?8:"8"),q&&(q[1]+=" "+(X+=typeof X=="number"?".x":/[.+]/.test(X)?"":"+")),re=="Safari"&&(!N||parseInt(N)>45)&&(N=X)),re=="Opera"&&(X=/\bzbov|zvav$/.exec(n))?(re+=" ",ee.unshift("desktop mode"),X=="zvav"?(re+="Mini",N=null):re+="Mobile",n=n.replace(RegExp(" *"+X+"$"),"")):re=="Safari"&&/\bChrome\b/.exec(q&&q[1])&&(ee.unshift("desktop mode"),re="Chrome Mobile",N=null,/\bOS X\b/.test(n)?(C="Apple",n="iOS 4.3+"):n=null),N&&N.indexOf(X=/[\d.]+$/.exec(n))==0&&U.indexOf("/"+X+"-")>-1&&(n=f(n.replace(X,""))),q&&!/\b(?:Avant|Nook)\b/.test(re)&&(/Browser|Lunascape|Maxthon/.test(re)||re!="Safari"&&/^iOS/.test(n)&&/\bSafari\b/.test(q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(re)&&q[1])&&(X=q[q.length-1])&&ee.push(X),ee.length&&(ee=["("+ee.join("; ")+")"]),C&&he&&he.indexOf(C)<0&&ee.push("on "+C),he&&ee.push((/^on /.test(ee[ee.length-1])?"":"on ")+he),n&&(X=/ ([\d.+]+)$/.exec(n),ie=X&&n.charAt(n.length-X[0].length-1)=="/",n={architecture:32,family:X&&!ie?n.replace(X[0],""):n,version:X?X[1]:null,toString:function(){var b=this.version;return this.family+(b&&!ie?" "+b:"")+(this.architecture==64?" 64-bit":"")}}),(X=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(te))&&!/\bi686\b/i.test(te)?(n&&(n.architecture=64,n.family=n.family.replace(RegExp(" *"+X),"")),re&&(/\bWOW64\b/i.test(U)||L&&/\w(?:86|32)$/.test(H.cpuClass||H.platform)&&!/\bWin64; x64\b/i.test(U))&&ee.unshift("32-bit")):n&&/^OS X/.test(n.family)&&re=="Chrome"&&parseFloat(N)>=39&&(n.architecture=64),U||(U=null);var s={};return s.description=U,s.layout=q&&q[0],s.manufacturer=C,s.name=re,s.prerelease=se,s.product=he,s.ua=U,s.version=re&&N,s.os=n||{architecture:null,family:null,version:null,toString:function(){return"null"}},s.parse=c,s.toString=k,s.version&&ee.unshift(N),s.name&&ee.unshift(re),n&&re&&(n!=String(n).split(" ")[0]||n!=re.split(" ")[0]&&!he)&&ee.push(he?"("+n+")":"on "+n),ee.length&&(s.description=ee.join(" ")),s}var A={function:!0,object:!0},w=A[typeof window]&&window||this,h=A[typeof S]&&S,P=A[typeof i]&&i&&!i.nodeType&&i,E=h&&P&&typeof m=="object"&&m;!E||E.global!==E&&E.window!==E&&E.self!==E||(w=E);var _=Math.pow(2,53)-1,v=/\bOpera/,D=Object.prototype,R=D.hasOwnProperty,y=D.toString,j=c();typeof pe=="function"&&typeof pe.amd=="object"&&pe.amd?(w.platform=j,pe(function(){return j})):h&&P?u(j,function(U,W){h[W]=U}):w.platform=j}).call(this)}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(t,i,S){(function(m){"use strict";function g(o,l,p,u){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var e,a,r=arguments.length;switch(r){case 0:case 1:return m.nextTick(o);case 2:return m.nextTick(function(){o.call(null,l)});case 3:return m.nextTick(function(){o.call(null,l,p)});case 4:return m.nextTick(function(){o.call(null,l,p,u)});default:for(e=new Array(r-1),a=0;a<e.length;)e[a++]=arguments[a];return m.nextTick(function(){o.apply(null,e)})}}!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?i.exports={nextTick:g}:i.exports=m}).call(this,t("_process"))},{_process:173}],173:[function(t,i,S){function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function o(P){if(r===setTimeout)return setTimeout(P,0);if((r===m||!r)&&setTimeout)return r=setTimeout,setTimeout(P,0);try{return r(P,0)}catch(E){try{return r.call(null,P,0)}catch(_){return r.call(this,P,0)}}}function l(P){if(d===clearTimeout)return clearTimeout(P);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(P);try{return d(P)}catch(E){try{return d.call(null,P)}catch(_){return d.call(this,P)}}}function p(){w&&c&&(w=!1,c.length?A=c.concat(A):h=-1,A.length&&u())}function u(){if(!w){var P=o(p);w=!0;for(var E=A.length;E;){for(c=A,A=[];++h<E;)c&&c[h].run();h=-1,E=A.length}c=null,w=!1,l(P)}}function e(P,E){this.fun=P,this.array=E}function a(){}var r,d,f=i.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:m}catch(P){r=m}try{d=typeof clearTimeout=="function"?clearTimeout:g}catch(P){d=g}}();var c,A=[],w=!1,h=-1;f.nextTick=function(P){var E=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)E[_-1]=arguments[_];A.push(new e(P,E)),A.length!==1||w||o(u)},e.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=a,f.addListener=a,f.once=a,f.off=a,f.removeListener=a,f.removeAllListeners=a,f.emit=a,f.prependListener=a,f.prependOnceListener=a,f.listeners=function(P){return[]},f.binding=function(P){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(P){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],174:[function(t,i,S){(function(m){!function(g){function o(I){throw new RangeError(ie[I])}function l(I,B){for(var z=I.length,Y=[];z--;)Y[z]=B(I[z]);return Y}function p(I,B){var z=I.split("@"),Y="";return z.length>1&&(Y=z[0]+"@",I=z[1]),I=I.replace(X,"."),Y+l(I.split("."),B).join(".")}function u(I){for(var B,z,Y=[],J=0,ce=I.length;J<ce;)B=I.charCodeAt(J++),B>=55296&&B<=56319&&J<ce?(z=I.charCodeAt(J++),(64512&z)==56320?Y.push(((1023&B)<<10)+(1023&z)+65536):(Y.push(B),J--)):Y.push(B);return Y}function e(I){return l(I,function(B){var z="";return B>65535&&(B-=65536,z+=M(B>>>10&1023|55296),B=56320|1023&B),z+=M(B)}).join("")}function a(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:R}function r(I,B){return I+22+75*(I<26)-((B!=0)<<5)}function d(I,B,z){var Y=0;for(I=z?K(I/W):I>>1,I+=K(I/B);I>Z*j>>1;Y+=R)I=K(I/Z);return K(Y+(Z+1)*I/(I+U))}function f(I){var B,z,Y,J,ce,oe,fe,_e,te,ee,se=[],L=I.length,N=0,q=V,re=k;for(z=I.lastIndexOf(G),z<0&&(z=0),Y=0;Y<z;++Y)I.charCodeAt(Y)>=128&&o("not-basic"),se.push(I.charCodeAt(Y));for(J=z>0?z+1:0;J<L;){for(ce=N,oe=1,fe=R;J>=L&&o("invalid-input"),_e=a(I.charCodeAt(J++)),(_e>=R||_e>K((D-N)/oe))&&o("overflow"),N+=_e*oe,te=fe<=re?y:fe>=re+j?j:fe-re,!(_e<te);fe+=R)ee=R-te,oe>K(D/ee)&&o("overflow"),oe*=ee;B=se.length+1,re=d(N-ce,B,ce==0),K(N/B)>D-q&&o("overflow"),q+=K(N/B),N%=B,se.splice(N++,0,q)}return e(se)}function c(I){var B,z,Y,J,ce,oe,fe,_e,te,ee,se,L,N,q,re,he=[];for(I=u(I),L=I.length,B=V,z=0,ce=k,oe=0;oe<L;++oe)(se=I[oe])<128&&he.push(M(se));for(Y=J=he.length,J&&he.push(G);Y<L;){for(fe=D,oe=0;oe<L;++oe)(se=I[oe])>=B&&se<fe&&(fe=se);for(N=Y+1,fe-B>K((D-z)/N)&&o("overflow"),z+=(fe-B)*N,B=fe,oe=0;oe<L;++oe)if(se=I[oe],se<B&&++z>D&&o("overflow"),se==B){for(_e=z,te=R;ee=te<=ce?y:te>=ce+j?j:te-ce,!(_e<ee);te+=R)re=_e-ee,q=R-ee,he.push(M(r(ee+re%q,0))),_e=K(re/q);he.push(M(r(_e,0))),ce=d(z,N,Y==J),z=0,++Y}++z,++B}return he.join("")}function A(I){return p(I,function(B){return H.test(B)?f(B.slice(4).toLowerCase()):B})}function w(I){return p(I,function(B){return ne.test(B)?"xn--"+c(B):B})}var h=typeof S=="object"&&S&&!S.nodeType&&S,P=typeof i=="object"&&i&&!i.nodeType&&i,E=typeof m=="object"&&m;E.global!==E&&E.window!==E&&E.self!==E||(g=E);var _,v,D=2147483647,R=36,y=1,j=26,U=38,W=700,k=72,V=128,G="-",H=/^xn--/,ne=/[^\x20-\x7E]/,X=/[\x2E\u3002\uFF0E\uFF61]/g,ie={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Z=R-y,K=Math.floor,M=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:u,encode:e},decode:f,encode:c,toASCII:w,toUnicode:A},typeof pe=="function"&&typeof pe.amd=="object"&&pe.amd)pe("punycode",function(){return _});else if(h&&P)if(i.exports==h)P.exports=_;else for(v in _)_.hasOwnProperty(v)&&(h[v]=_[v]);else g.punycode=_}(this)}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(t,i,S){"use strict";function m(o,l){return Object.prototype.hasOwnProperty.call(o,l)}i.exports=function(o,l,p,u){l=l||"&",p=p||"=";var e={};if(typeof o!="string"||o.length===0)return e;var a=/\+/g;o=o.split(l);var r=1e3;u&&typeof u.maxKeys=="number"&&(r=u.maxKeys);var d=o.length;r>0&&d>r&&(d=r);for(var f=0;f<d;++f){var c,A,w,h,P=o[f].replace(a,"%20"),E=P.indexOf(p);E>=0?(c=P.substr(0,E),A=P.substr(E+1)):(c=P,A=""),w=decodeURIComponent(c),h=decodeURIComponent(A),m(e,w)?g(e[w])?e[w].push(h):e[w]=[e[w],h]:e[w]=h}return e};var g=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"}},{}],176:[function(t,i,S){"use strict";function m(p,u){if(p.map)return p.map(u);for(var e=[],a=0;a<p.length;a++)e.push(u(p[a],a));return e}var g=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}};i.exports=function(p,u,e,a){return u=u||"&",e=e||"=",p===null&&(p=void 0),typeof p=="object"?m(l(p),function(r){var d=encodeURIComponent(g(r))+e;return o(p[r])?m(p[r],function(f){return d+encodeURIComponent(g(f))}).join(u):d+encodeURIComponent(g(p[r]))}).join(u):a?encodeURIComponent(g(a))+e+encodeURIComponent(g(p)):""};var o=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},l=Object.keys||function(p){var u=[];for(var e in p)Object.prototype.hasOwnProperty.call(p,e)&&u.push(e);return u}},{}],177:[function(t,i,S){"use strict";S.decode=S.parse=t("./decode"),S.encode=S.stringify=t("./encode")},{"./decode":175,"./encode":176}],178:[function(t,i,S){i.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(t,i,S){"use strict";function m(w){if(!(this instanceof m))return new m(w);r.call(this,w),d.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||u.nextTick(o,this)}function o(w){w.end()}var l=t("babel-runtime/core-js/object/keys"),p=function(w){return w&&w.__esModule?w:{default:w}}(l),u=t("process-nextick-args"),e=p.default||function(w){var h=[];for(var P in w)h.push(P);return h};i.exports=m;var a=t("core-util-is");a.inherits=t("inherits");var r=t("./_stream_readable"),d=t("./_stream_writable");a.inherits(m,r);for(var f=e(d.prototype),c=0;c<f.length;c++){var A=f[c];m.prototype[A]||(m.prototype[A]=d.prototype[A])}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),m.prototype._destroy=function(w,h){this.push(null),this.end(),u.nextTick(h,w)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(t,i,S){"use strict";function m(l){if(!(this instanceof m))return new m(l);g.call(this,l)}i.exports=m;var g=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(m,g),m.prototype._transform=function(l,p,u){u(null,l)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(t,i,S){(function(m,g){"use strict";function o(L){return z.from(L)}function l(L){return z.isBuffer(L)||L instanceof Y}function p(L,N,q){if(typeof L.prependListener=="function")return L.prependListener(N,q);L._events&&L._events[N]?M(L._events[N])?L._events[N].unshift(q):L._events[N]=[q,L._events[N]]:L.on(N,q)}function u(L,N){K=K||t("./_stream_duplex"),L=L||{};var q=N instanceof K;this.objectMode=!!L.objectMode,q&&(this.objectMode=this.objectMode||!!L.readableObjectMode);var re=L.highWaterMark,he=L.readableHighWaterMark,C=this.objectMode?16:16384;this.highWaterMark=re||re===0?re:q&&(he||he===0)?he:C,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(fe||(fe=t("string_decoder/").StringDecoder),this.decoder=new fe(L.encoding),this.encoding=L.encoding)}function e(L){if(K=K||t("./_stream_duplex"),!(this instanceof e))return new e(L);this._readableState=new u(L,this),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),B.call(this)}function a(L,N,q,re,he){var C=L._readableState;if(N===null)C.reading=!1,w(L,C);else{var n;he||(n=d(C,N)),n?L.emit("error",n):C.objectMode||N&&N.length>0?(typeof N=="string"||C.objectMode||(0,ie.default)(N)===z.prototype||(N=o(N)),re?C.endEmitted?L.emit("error",new Error("stream.unshift() after end event")):r(L,C,N,!0):C.ended?L.emit("error",new Error("stream.push() after EOF")):(C.reading=!1,C.decoder&&!q?(N=C.decoder.write(N),C.objectMode||N.length!==0?r(L,C,N,!1):E(L,C)):r(L,C,N,!1))):re||(C.reading=!1)}return f(C)}function r(L,N,q,re){N.flowing&&N.length===0&&!N.sync?(L.emit("data",q),L.read(0)):(N.length+=N.objectMode?1:q.length,re?N.buffer.unshift(q):N.buffer.push(q),N.needReadable&&h(L)),E(L,N)}function d(L,N){var q;return l(N)||typeof N=="string"||N===void 0||L.objectMode||(q=new TypeError("Invalid non-string/buffer chunk")),q}function f(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)}function c(L){return L>=se?L=se:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function A(L,N){return L<=0||N.length===0&&N.ended?0:N.objectMode?1:L!==L?N.flowing&&N.length?N.buffer.head.data.length:N.length:(L>N.highWaterMark&&(N.highWaterMark=c(L)),L<=N.length?L:N.ended?N.length:(N.needReadable=!0,0))}function w(L,N){if(!N.ended){if(N.decoder){var q=N.decoder.end();q&&q.length&&(N.buffer.push(q),N.length+=N.objectMode?1:q.length)}N.ended=!0,h(L)}}function h(L){var N=L._readableState;N.needReadable=!1,N.emittedReadable||(oe("emitReadable",N.flowing),N.emittedReadable=!0,N.sync?Z.nextTick(P,L):P(L))}function P(L){oe("emit readable"),L.emit("readable"),j(L)}function E(L,N){N.readingMore||(N.readingMore=!0,Z.nextTick(_,L,N))}function _(L,N){for(var q=N.length;!N.reading&&!N.flowing&&!N.ended&&N.length<N.highWaterMark&&(oe("maybeReadMore read 0"),L.read(0),q!==N.length);)q=N.length;N.readingMore=!1}function v(L){return function(){var N=L._readableState;oe("pipeOnDrain",N.awaitDrain),N.awaitDrain&&N.awaitDrain--,N.awaitDrain===0&&I(L,"data")&&(N.flowing=!0,j(L))}}function D(L){oe("readable nexttick read 0"),L.read(0)}function R(L,N){N.resumeScheduled||(N.resumeScheduled=!0,Z.nextTick(y,L,N))}function y(L,N){N.reading||(oe("resume read 0"),L.read(0)),N.resumeScheduled=!1,N.awaitDrain=0,L.emit("resume"),j(L),N.flowing&&!N.reading&&L.read(0)}function j(L){var N=L._readableState;for(oe("flow",N.flowing);N.flowing&&L.read()!==null;);}function U(L,N){if(N.length===0)return null;var q;return N.objectMode?q=N.buffer.shift():!L||L>=N.length?(q=N.decoder?N.buffer.join(""):N.buffer.length===1?N.buffer.head.data:N.buffer.concat(N.length),N.buffer.clear()):q=W(L,N.buffer,N.decoder),q}function W(L,N,q){var re;return L<N.head.data.length?(re=N.head.data.slice(0,L),N.head.data=N.head.data.slice(L)):re=L===N.head.data.length?N.shift():q?k(L,N):V(L,N),re}function k(L,N){var q=N.head,re=1,he=q.data;for(L-=he.length;q=q.next;){var C=q.data,n=L>C.length?C.length:L;if(n===C.length?he+=C:he+=C.slice(0,L),(L-=n)===0){n===C.length?(++re,q.next?N.head=q.next:N.head=N.tail=null):(N.head=q,q.data=C.slice(n));break}++re}return N.length-=re,he}function V(L,N){var q=z.allocUnsafe(L),re=N.head,he=1;for(re.data.copy(q),L-=re.data.length;re=re.next;){var C=re.data,n=L>C.length?C.length:L;if(C.copy(q,q.length-L,0,n),(L-=n)===0){n===C.length?(++he,re.next?N.head=re.next:N.head=N.tail=null):(N.head=re,re.data=C.slice(n));break}++he}return N.length-=he,q}function G(L){var N=L._readableState;if(N.length>0)throw new Error('"endReadable()" called on non-empty stream');N.endEmitted||(N.ended=!0,Z.nextTick(H,N,L))}function H(L,N){L.endEmitted||L.length!==0||(L.endEmitted=!0,N.readable=!1,N.emit("end"))}function ne(L,N){for(var q=0,re=L.length;q<re;q++)if(L[q]===N)return q;return-1}var X=t("babel-runtime/core-js/object/get-prototype-of"),ie=function(L){return L&&L.__esModule?L:{default:L}}(X),Z=t("process-nextick-args");i.exports=e;var K,M=t("isarray");e.ReadableState=u;var I=(t("events").EventEmitter,function(L,N){return L.listeners(N).length}),B=t("./internal/streams/stream"),z=t("safe-buffer").Buffer,Y=g.Uint8Array||function(){},J=t("core-util-is");J.inherits=t("inherits");var ce=t("util"),oe=void 0;oe=ce&&ce.debuglog?ce.debuglog("stream"):function(){};var fe,_e=t("./internal/streams/BufferList"),te=t("./internal/streams/destroy");J.inherits(e,B);var ee=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),e.prototype.destroy=te.destroy,e.prototype._undestroy=te.undestroy,e.prototype._destroy=function(L,N){this.push(null),N(L)},e.prototype.push=function(L,N){var q,re=this._readableState;return re.objectMode?q=!0:typeof L=="string"&&(N=N||re.defaultEncoding,N!==re.encoding&&(L=z.from(L,N),N=""),q=!0),a(this,L,N,!1,q)},e.prototype.unshift=function(L){return a(this,L,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(L){return fe||(fe=t("string_decoder/").StringDecoder),this._readableState.decoder=new fe(L),this._readableState.encoding=L,this};var se=8388608;e.prototype.read=function(L){oe("read",L),L=parseInt(L,10);var N=this._readableState,q=L;if(L!==0&&(N.emittedReadable=!1),L===0&&N.needReadable&&(N.length>=N.highWaterMark||N.ended))return oe("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?G(this):h(this),null;if((L=A(L,N))===0&&N.ended)return N.length===0&&G(this),null;var re=N.needReadable;oe("need readable",re),(N.length===0||N.length-L<N.highWaterMark)&&(re=!0,oe("length less than watermark",re)),N.ended||N.reading?(re=!1,oe("reading or ended",re)):re&&(oe("do read"),N.reading=!0,N.sync=!0,N.length===0&&(N.needReadable=!0),this._read(N.highWaterMark),N.sync=!1,N.reading||(L=A(q,N)));var he;return he=L>0?U(L,N):null,he===null?(N.needReadable=!0,L=0):N.length-=L,N.length===0&&(N.ended||(N.needReadable=!0),q!==L&&N.ended&&G(this)),he!==null&&this.emit("data",he),he},e.prototype._read=function(L){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(L,N){function q(be,xe){oe("onunpipe"),be===x&&xe&&xe.hasUnpiped===!1&&(xe.hasUnpiped=!0,he())}function re(){oe("onend"),L.end()}function he(){oe("cleanup"),L.removeListener("close",s),L.removeListener("finish",O),L.removeListener("drain",ae),L.removeListener("error",n),L.removeListener("unpipe",q),x.removeListener("end",re),x.removeListener("end",b),x.removeListener("data",C),de=!0,!F.awaitDrain||L._writableState&&!L._writableState.needDrain||ae()}function C(be){oe("ondata"),me=!1,L.write(be)!==!1||me||((F.pipesCount===1&&F.pipes===L||F.pipesCount>1&&ne(F.pipes,L)!==-1)&&!de&&(oe("false write response, pause",x._readableState.awaitDrain),x._readableState.awaitDrain++,me=!0),x.pause())}function n(be){oe("onerror",be),b(),L.removeListener("error",n),I(L,"error")===0&&L.emit("error",be)}function s(){L.removeListener("finish",O),b()}function O(){oe("onfinish"),L.removeListener("close",s),b()}function b(){oe("unpipe"),x.unpipe(L)}var x=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=L;break;case 1:F.pipes=[F.pipes,L];break;default:F.pipes.push(L)}F.pipesCount+=1,oe("pipe count=%d opts=%j",F.pipesCount,N);var T=(!N||N.end!==!1)&&L!==m.stdout&&L!==m.stderr,Q=T?re:b;F.endEmitted?Z.nextTick(Q):x.once("end",Q),L.on("unpipe",q);var ae=v(x);L.on("drain",ae);var de=!1,me=!1;return x.on("data",C),p(L,"error",n),L.once("close",s),L.once("finish",O),L.emit("pipe",x),F.flowing||(oe("pipe resume"),x.resume()),L},e.prototype.unpipe=function(L){var N=this._readableState,q={hasUnpiped:!1};if(N.pipesCount===0)return this;if(N.pipesCount===1)return L&&L!==N.pipes?this:(L||(L=N.pipes),N.pipes=null,N.pipesCount=0,N.flowing=!1,L&&L.emit("unpipe",this,q),this);if(!L){var re=N.pipes,he=N.pipesCount;N.pipes=null,N.pipesCount=0,N.flowing=!1;for(var C=0;C<he;C++)re[C].emit("unpipe",this,q);return this}var n=ne(N.pipes,L);return n===-1?this:(N.pipes.splice(n,1),N.pipesCount-=1,N.pipesCount===1&&(N.pipes=N.pipes[0]),L.emit("unpipe",this,q),this)},e.prototype.on=function(L,N){var q=B.prototype.on.call(this,L,N);if(L==="data")this._readableState.flowing!==!1&&this.resume();else if(L==="readable"){var re=this._readableState;re.endEmitted||re.readableListening||(re.readableListening=re.needReadable=!0,re.emittedReadable=!1,re.reading?re.length&&h(this):Z.nextTick(D,this))}return q},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var L=this._readableState;return L.flowing||(oe("resume"),L.flowing=!0,R(this,L)),this},e.prototype.pause=function(){return oe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(oe("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(L){var N=this,q=this._readableState,re=!1;L.on("end",function(){if(oe("wrapped end"),q.decoder&&!q.ended){var n=q.decoder.end();n&&n.length&&N.push(n)}N.push(null)}),L.on("data",function(n){(oe("wrapped data"),q.decoder&&(n=q.decoder.write(n)),(!q.objectMode||n!=null)&&(q.objectMode||n&&n.length))&&(N.push(n)||(re=!0,L.pause()))});for(var he in L)this[he]===void 0&&typeof L[he]=="function"&&(this[he]=function(n){return function(){return L[n].apply(L,arguments)}}(he));for(var C=0;C<ee.length;C++)L.on(ee[C],this.emit.bind(this,ee[C]));return this._read=function(n){oe("wrapped _read",n),re&&(re=!1,L.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=U}).call(this,t("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(t,i,S){"use strict";function m(e,a){var r=this._transformState;r.transforming=!1;var d=r.writecb;if(!d)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,a!=null&&this.push(a),d(e);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function g(e){if(!(this instanceof g))return new g(e);p.call(this,e),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;typeof this._flush=="function"?this._flush(function(a,r){l(e,a,r)}):l(this,null,null)}function l(e,a,r){if(a)return e.emit("error",a);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.exports=g;var p=t("./_stream_duplex"),u=t("core-util-is");u.inherits=t("inherits"),u.inherits(g,p),g.prototype.push=function(e,a){return this._transformState.needTransform=!1,p.prototype.push.call(this,e,a)},g.prototype._transform=function(e,a,r){throw new Error("_transform() is not implemented")},g.prototype._write=function(e,a,r){var d=this._transformState;if(d.writecb=r,d.writechunk=e,d.writeencoding=a,!d.transforming){var f=this._readableState;(d.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},g.prototype._read=function(e){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},g.prototype._destroy=function(e,a){var r=this;p.prototype._destroy.call(this,e,function(d){a(d),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(t,i,S){(function(m,g){"use strict";function o(te){return te&&te.__esModule?te:{default:te}}function l(te){var ee=this;this.next=null,this.entry=null,this.finish=function(){k(ee,te)}}function p(te){return ce.from(te)}function u(te){return ce.isBuffer(te)||te instanceof oe}function e(){}function a(te,ee){I=I||t("./_stream_duplex"),te=te||{};var se=ee instanceof I;this.objectMode=!!te.objectMode,se&&(this.objectMode=this.objectMode||!!te.writableObjectMode);var L=te.highWaterMark,N=te.writableHighWaterMark,q=this.objectMode?16:16384;this.highWaterMark=L||L===0?L:se&&(N||N===0)?N:q,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=te.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){E(ee,he)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function r(te){if(I=I||t("./_stream_duplex"),!(_e.call(r,this)||this instanceof I))return new r(te);this._writableState=new a(te,this),this.writable=!0,te&&(typeof te.write=="function"&&(this._write=te.write),typeof te.writev=="function"&&(this._writev=te.writev),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.final=="function"&&(this._final=te.final)),J.call(this)}function d(te,ee){var se=new Error("write after end");te.emit("error",se),M.nextTick(ee,se)}function f(te,ee,se,L){var N=!0,q=!1;return se===null?q=new TypeError("May not write null values to stream"):typeof se=="string"||se===void 0||ee.objectMode||(q=new TypeError("Invalid non-string/buffer chunk")),q&&(te.emit("error",q),M.nextTick(L,q),N=!1),N}function c(te,ee,se){return te.objectMode||te.decodeStrings===!1||typeof ee!="string"||(ee=ce.from(ee,se)),ee}function A(te,ee,se,L,N,q){if(!se){var re=c(ee,L,N);L!==re&&(se=!0,N="buffer",L=re)}var he=ee.objectMode?1:L.length;ee.length+=he;var C=ee.length<ee.highWaterMark;if(C||(ee.needDrain=!0),ee.writing||ee.corked){var n=ee.lastBufferedRequest;ee.lastBufferedRequest={chunk:L,encoding:N,isBuf:se,callback:q,next:null},n?n.next=ee.lastBufferedRequest:ee.bufferedRequest=ee.lastBufferedRequest,ee.bufferedRequestCount+=1}else w(te,ee,!1,he,L,N,q);return C}function w(te,ee,se,L,N,q,re){ee.writelen=L,ee.writecb=re,ee.writing=!0,ee.sync=!0,se?te._writev(N,ee.onwrite):te._write(N,q,ee.onwrite),ee.sync=!1}function h(te,ee,se,L,N){--ee.pendingcb,se?(M.nextTick(N,L),M.nextTick(U,te,ee),te._writableState.errorEmitted=!0,te.emit("error",L)):(N(L),te._writableState.errorEmitted=!0,te.emit("error",L),U(te,ee))}function P(te){te.writing=!1,te.writecb=null,te.length-=te.writelen,te.writelen=0}function E(te,ee){var se=te._writableState,L=se.sync,N=se.writecb;if(P(se),ee)h(te,se,L,ee,N);else{var q=R(se);q||se.corked||se.bufferProcessing||!se.bufferedRequest||D(te,se),L?B(_,te,se,q,N):_(te,se,q,N)}}function _(te,ee,se,L){se||v(te,ee),ee.pendingcb--,L(),U(te,ee)}function v(te,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,te.emit("drain"))}function D(te,ee){ee.bufferProcessing=!0;var se=ee.bufferedRequest;if(te._writev&&se&&se.next){var L=ee.bufferedRequestCount,N=new Array(L),q=ee.corkedRequestsFree;q.entry=se;for(var re=0,he=!0;se;)N[re]=se,se.isBuf||(he=!1),se=se.next,re+=1;N.allBuffers=he,w(te,ee,!0,ee.length,N,"",q.finish),ee.pendingcb++,ee.lastBufferedRequest=null,q.next?(ee.corkedRequestsFree=q.next,q.next=null):ee.corkedRequestsFree=new l(ee),ee.bufferedRequestCount=0}else{for(;se;){var C=se.chunk,n=se.encoding,s=se.callback;if(w(te,ee,!1,ee.objectMode?1:C.length,C,n,s),se=se.next,ee.bufferedRequestCount--,ee.writing)break}se===null&&(ee.lastBufferedRequest=null)}ee.bufferedRequest=se,ee.bufferProcessing=!1}function R(te){return te.ending&&te.length===0&&te.bufferedRequest===null&&!te.finished&&!te.writing}function y(te,ee){te._final(function(se){ee.pendingcb--,se&&te.emit("error",se),ee.prefinished=!0,te.emit("prefinish"),U(te,ee)})}function j(te,ee){ee.prefinished||ee.finalCalled||(typeof te._final=="function"?(ee.pendingcb++,ee.finalCalled=!0,M.nextTick(y,te,ee)):(ee.prefinished=!0,te.emit("prefinish")))}function U(te,ee){var se=R(ee);return se&&(j(te,ee),ee.pendingcb===0&&(ee.finished=!0,te.emit("finish"))),se}function W(te,ee,se){ee.ending=!0,U(te,ee),se&&(ee.finished?M.nextTick(se):te.once("finish",se)),ee.ended=!0,te.writable=!1}function k(te,ee,se){var L=te.entry;for(te.entry=null;L;){var N=L.callback;ee.pendingcb--,N(se),L=L.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=te:ee.corkedRequestsFree=te}var V=t("babel-runtime/core-js/object/define-property"),G=o(V),H=t("babel-runtime/core-js/symbol/has-instance"),ne=o(H),X=t("babel-runtime/core-js/symbol"),ie=o(X),Z=t("babel-runtime/core-js/set-immediate"),K=o(Z),M=t("process-nextick-args");i.exports=r;var I,B=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?K.default:M.nextTick;r.WritableState=a;var z=t("core-util-is");z.inherits=t("inherits");var Y={deprecate:t("util-deprecate")},J=t("./internal/streams/stream"),ce=t("safe-buffer").Buffer,oe=g.Uint8Array||function(){},fe=t("./internal/streams/destroy");z.inherits(r,J),a.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ee=[];te;)ee.push(te),te=te.next;return ee},function(){try{Object.defineProperty(a.prototype,"buffer",{get:Y.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(te){}}();var _e;typeof ie.default=="function"&&ne.default&&typeof Function.prototype[ne.default]=="function"?(_e=Function.prototype[ne.default],(0,G.default)(r,ne.default,{value:function(ee){return!!_e.call(this,ee)||this===r&&ee&&ee._writableState instanceof a}})):_e=function(ee){return ee instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(te,ee,se){var L=this._writableState,N=!1,q=!L.objectMode&&u(te);return q&&!ce.isBuffer(te)&&(te=p(te)),typeof ee=="function"&&(se=ee,ee=null),q?ee="buffer":ee||(ee=L.defaultEncoding),typeof se!="function"&&(se=e),L.ended?d(this,se):(q||f(this,L,te,se))&&(L.pendingcb++,N=A(this,L,q,te,ee,se)),N},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var te=this._writableState;te.corked&&(te.corked--,te.writing||te.corked||te.finished||te.bufferProcessing||!te.bufferedRequest||D(this,te))},r.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(te,ee,se){se(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(te,ee,se){var L=this._writableState;typeof te=="function"?(se=te,te=null,ee=null):typeof ee=="function"&&(se=ee,ee=null),te!=null&&this.write(te,ee),L.corked&&(L.corked=1,this.uncork()),L.ending||L.finished||W(this,L,se)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),r.prototype.destroy=fe.destroy,r.prototype._undestroy=fe.undestroy,r.prototype._destroy=function(te,ee){this.end(),ee(te)}}).call(this,t("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(t,i,S){"use strict";function m(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function g(p,u,e){p.copy(u,e)}var o=t("safe-buffer").Buffer,l=t("util");i.exports=function(){function p(){m(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(u){var e={data:u,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},p.prototype.unshift=function(u){var e={data:u,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},p.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(u){if(this.length===0)return"";for(var e=this.head,a=""+e.data;e=e.next;)a+=u+e.data;return a},p.prototype.concat=function(u){if(this.length===0)return o.alloc(0);if(this.length===1)return this.head.data;for(var e=o.allocUnsafe(u>>>0),a=this.head,r=0;a;)g(a.data,e,r),r+=a.data.length,a=a.next;return e},p}(),l&&l.inspect&&l.inspect.custom&&(i.exports.prototype[l.inspect.custom]=function(){var p=l.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(t,i,S){"use strict";function m(p,u){var e=this,a=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return a||r?(u?u(p):!p||this._writableState&&this._writableState.errorEmitted||l.nextTick(o,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(d){!u&&d?(l.nextTick(o,e,d),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(d)}),this)}function g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(p,u){p.emit("error",u)}var l=t("process-nextick-args");i.exports={destroy:m,undestroy:g}},{"process-nextick-args":172}],186:[function(t,i,S){"use strict";i.exports=t("events").EventEmitter},{events:158}],187:[function(t,i,S){i.exports=t("./readable").PassThrough},{"./readable":188}],188:[function(t,i,S){S=i.exports=t("./lib/_stream_readable.js"),S.Stream=S,S.Readable=S,S.Writable=t("./lib/_stream_writable.js"),S.Duplex=t("./lib/_stream_duplex.js"),S.Transform=t("./lib/_stream_transform.js"),S.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(t,i,S){i.exports=t("./readable").Transform},{"./readable":188}],190:[function(t,i,S){i.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(t,i,S){var m=function(){return this}()||Function("return this")(),g=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,o=g&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,i.exports=t("./runtime"),g)m.regeneratorRuntime=o;else try{delete m.regeneratorRuntime}catch(l){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(t,i,S){!function(m){"use strict";function g(K,M,I,B){var z=M&&M.prototype instanceof l?M:l,Y=Object.create(z.prototype),J=new A(B||[]);return Y._invoke=r(K,I,J),Y}function o(K,M,I){try{return{type:"normal",arg:K.call(M,I)}}catch(B){return{type:"throw",arg:B}}}function l(){}function p(){}function u(){}function e(K){["next","throw","return"].forEach(function(M){K[M]=function(I){return this._invoke(M,I)}})}function a(K){function M(z,Y,J,ce){var oe=o(K[z],K,Y);if(oe.type!=="throw"){var fe=oe.arg,_e=fe.value;return _e&&typeof _e=="object"&&_.call(_e,"__await")?Promise.resolve(_e.__await).then(function(te){M("next",te,J,ce)},function(te){M("throw",te,J,ce)}):Promise.resolve(_e).then(function(te){fe.value=te,J(fe)},ce)}ce(oe.arg)}function I(z,Y){function J(){return new Promise(function(ce,oe){M(z,Y,ce,oe)})}return B=B?B.then(J,J):J()}var B;this._invoke=I}function r(K,M,I){var B=W;return function(z,Y){if(B===V)throw new Error("Generator is already running");if(B===G){if(z==="throw")throw Y;return h()}for(I.method=z,I.arg=Y;;){var J=I.delegate;if(J){var ce=d(J,I);if(ce){if(ce===H)continue;return ce}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(B===W)throw B=G,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);B=V;var oe=o(K,M,I);if(oe.type==="normal"){if(B=I.done?G:k,oe.arg===H)continue;return{value:oe.arg,done:I.done}}oe.type==="throw"&&(B=G,I.method="throw",I.arg=oe.arg)}}}function d(K,M){var I=K.iterator[M.method];if(I===P){if(M.delegate=null,M.method==="throw"){if(K.iterator.return&&(M.method="return",M.arg=P,d(K,M),M.method==="throw"))return H;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var B=o(I,K.iterator,M.arg);if(B.type==="throw")return M.method="throw",M.arg=B.arg,M.delegate=null,H;var z=B.arg;return z?z.done?(M[K.resultName]=z.value,M.next=K.nextLoc,M.method!=="return"&&(M.method="next",M.arg=P),M.delegate=null,H):z:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,H)}function f(K){var M={tryLoc:K[0]};1 in K&&(M.catchLoc=K[1]),2 in K&&(M.finallyLoc=K[2],M.afterLoc=K[3]),this.tryEntries.push(M)}function c(K){var M=K.completion||{};M.type="normal",delete M.arg,K.completion=M}function A(K){this.tryEntries=[{tryLoc:"root"}],K.forEach(f,this),this.reset(!0)}function w(K){if(K){var M=K[D];if(M)return M.call(K);if(typeof K.next=="function")return K;if(!isNaN(K.length)){var I=-1,B=function z(){for(;++I<K.length;)if(_.call(K,I))return z.value=K[I],z.done=!1,z;return z.value=P,z.done=!0,z};return B.next=B}}return{next:h}}function h(){return{value:P,done:!0}}var P,E=Object.prototype,_=E.hasOwnProperty,v=typeof Symbol=="function"?Symbol:{},D=v.iterator||"@@iterator",R=v.asyncIterator||"@@asyncIterator",y=v.toStringTag||"@@toStringTag",j=typeof i=="object",U=m.regeneratorRuntime;if(U)return void(j&&(i.exports=U));U=m.regeneratorRuntime=j?i.exports:{},U.wrap=g;var W="suspendedStart",k="suspendedYield",V="executing",G="completed",H={},ne={};ne[D]=function(){return this};var X=Object.getPrototypeOf,ie=X&&X(X(w([])));ie&&ie!==E&&_.call(ie,D)&&(ne=ie);var Z=u.prototype=l.prototype=Object.create(ne);p.prototype=Z.constructor=u,u.constructor=p,u[y]=p.displayName="GeneratorFunction",U.isGeneratorFunction=function(K){var M=typeof K=="function"&&K.constructor;return!!M&&(M===p||(M.displayName||M.name)==="GeneratorFunction")},U.mark=function(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,u):(K.__proto__=u,y in K||(K[y]="GeneratorFunction")),K.prototype=Object.create(Z),K},U.awrap=function(K){return{__await:K}},e(a.prototype),a.prototype[R]=function(){return this},U.AsyncIterator=a,U.async=function(K,M,I,B){var z=new a(g(K,M,I,B));return U.isGeneratorFunction(M)?z:z.next().then(function(Y){return Y.done?Y.value:z.next()})},e(Z),Z[y]="Generator",Z[D]=function(){return this},Z.toString=function(){return"[object Generator]"},U.keys=function(K){var M=[];for(var I in K)M.push(I);return M.reverse(),function B(){for(;M.length;){var z=M.pop();if(z in K)return B.value=z,B.done=!1,B}return B.done=!0,B}},U.values=w,A.prototype={constructor:A,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=P,this.done=!1,this.delegate=null,this.method="next",this.arg=P,this.tryEntries.forEach(c),!M)for(var I in this)I.charAt(0)==="t"&&_.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=P)},stop:function(){this.done=!0;var M=this.tryEntries[0],I=M.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(M){function I(fe,_e){return J.type="throw",J.arg=M,B.next=fe,_e&&(B.method="next",B.arg=P),!!_e}if(this.done)throw M;for(var B=this,z=this.tryEntries.length-1;z>=0;--z){var Y=this.tryEntries[z],J=Y.completion;if(Y.tryLoc==="root")return I("end");if(Y.tryLoc<=this.prev){var ce=_.call(Y,"catchLoc"),oe=_.call(Y,"finallyLoc");if(ce&&oe){if(this.prev<Y.catchLoc)return I(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return I(Y.finallyLoc)}else if(ce){if(this.prev<Y.catchLoc)return I(Y.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return I(Y.finallyLoc)}}}},abrupt:function(M,I){for(var B=this.tryEntries.length-1;B>=0;--B){var z=this.tryEntries[B];if(z.tryLoc<=this.prev&&_.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var Y=z;break}}Y&&(M==="break"||M==="continue")&&Y.tryLoc<=I&&I<=Y.finallyLoc&&(Y=null);var J=Y?Y.completion:{};return J.type=M,J.arg=I,Y?(this.method="next",this.next=Y.finallyLoc,H):this.complete(J)},complete:function(M,I){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&I&&(this.next=I),H},finish:function(M){for(var I=this.tryEntries.length-1;I>=0;--I){var B=this.tryEntries[I];if(B.finallyLoc===M)return this.complete(B.completion,B.afterLoc),c(B),H}},catch:function(M){for(var I=this.tryEntries.length-1;I>=0;--I){var B=this.tryEntries[I];if(B.tryLoc===M){var z=B.completion;if(z.type==="throw"){var Y=z.arg;c(B)}return Y}}throw new Error("illegal catch attempt")},delegateYield:function(M,I,B){return this.delegate={iterator:w(M),resultName:I,nextLoc:B},this.method==="next"&&(this.arg=P),H}}}(function(){return this}()||Function("return this")())},{}],193:[function(t,i,S){function m(p,u){for(var e in p)u[e]=p[e]}function g(p,u,e){return l(p,u,e)}var o=t("buffer"),l=o.Buffer;l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?i.exports=o:(m(o,S),S.Buffer=g),m(l,g),g.from=function(p,u,e){if(typeof p=="number")throw new TypeError("Argument must not be a number");return l(p,u,e)},g.alloc=function(p,u,e){if(typeof p!="number")throw new TypeError("Argument must be a number");var a=l(p);return u!==void 0?typeof e=="string"?a.fill(u,e):a.fill(u):a.fill(0),a},g.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return l(p)},g.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(p)}},{buffer:38}],194:[function(t,i,S){(function(m){"use strict";function g(h){return h&&h.__esModule?h:{default:h}}var o=t("babel-runtime/core-js/string/from-code-point"),l=g(o),p=t("babel-runtime/core-js/json/stringify"),u=g(p),e=t("babel-runtime/helpers/typeof"),a=g(e),r=t("babel-runtime/core-js/object/define-property"),d=g(r),f=t("babel-runtime/core-js/object/keys"),c=g(f),A=t("babel-runtime/core-js/object/create"),w=g(A);!function(h){function P(b,x){if(!(this instanceof P))return new P(b,x);var F=this;_(F),F.q=F.c="",F.bufferCheckPosition=h.MAX_BUFFER_LENGTH,F.opt=x||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!b,F.noscript=!(!b&&!F.opt.noscript),F.state=s.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?(0,w.default)(h.XML_ENTITIES):(0,w.default)(h.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=(0,w.default)(q)),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),V(F,"onready")}function E(b){for(var x=Math.max(h.MAX_BUFFER_LENGTH,10),F=0,T=0,Q=fe.length;T<Q;T++){var ae=b[fe[T]].length;if(ae>x)switch(fe[T]){case"textNode":H(b);break;case"cdata":G(b,"oncdata",b.cdata),b.cdata="";break;case"script":G(b,"onscript",b.script),b.script="";break;default:X(b,"Max buffer length exceeded: "+fe[T])}F=Math.max(F,ae)}var de=h.MAX_BUFFER_LENGTH-F;b.bufferCheckPosition=de+b.position}function _(b){for(var x=0,F=fe.length;x<F;x++)b[fe[x]]=""}function v(b){H(b),b.cdata!==""&&(G(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(G(b,"onscript",b.script),b.script="")}function D(b,x){return new R(b,x)}function R(b,x){if(!(this instanceof R))return new R(b,x);_e.apply(this),this._parser=new P(b,x),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(T){F.emit("error",T),F._parser.error=null},this._decoder=null,te.forEach(function(T){(0,d.default)(F,"on"+T,{get:function(){return F._parser["on"+T]},set:function(ae){if(!ae)return F.removeAllListeners(T),F._parser["on"+T]=ae,ae;F.on(T,ae)},enumerable:!0,configurable:!1})})}function y(b){return b===" "||b===`
|
|
|
`||b==="\r"||b===" "}function j(b){return b==='"'||b==="'"}function U(b){return b===">"||y(b)}function W(b,x){return b.test(x)}function k(b,x){return!W(b,x)}function V(b,x,F){b[x]&&b[x](F)}function G(b,x,F){b.textNode&&H(b),V(b,x,F)}function H(b){b.textNode=ne(b.opt,b.textNode),b.textNode&&V(b,"ontext",b.textNode),b.textNode=""}function ne(b,x){return b.trim&&(x=x.trim()),b.normalize&&(x=x.replace(/\s+/g," ")),x}function X(b,x){return H(b),b.trackPosition&&(x+=`
|
|
|
Line: `+b.line+`
|
|
|
Column: `+b.column+`
|
|
|
Char: `+b.c),x=new Error(x),b.error=x,V(b,"onerror",x),b}function ie(b){return b.sawRoot&&!b.closedRoot&&Z(b,"Unclosed root tag"),b.state!==s.BEGIN&&b.state!==s.BEGIN_WHITESPACE&&b.state!==s.TEXT&&X(b,"Unexpected end"),H(b),b.c="",b.closed=!0,V(b,"onend"),P.call(b,b.strict,b.opt),b}function Z(b,x){if((b===void 0?"undefined":(0,a.default)(b))!=="object"||!(b instanceof P))throw new Error("bad call to strictFail");b.strict&&X(b,x)}function K(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var x=b.tags[b.tags.length-1]||b,F=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(F.ns=x.ns),b.attribList.length=0,G(b,"onopentagstart",F)}function M(b,x){var F=b.indexOf(":"),T=F<0?["",b]:b.split(":"),Q=T[0],ae=T[1];return x&&b==="xmlns"&&(Q="xmlns",ae=""),{prefix:Q,local:ae}}function I(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName))return void(b.attribName=b.attribValue="");if(b.opt.xmlns){var x=M(b.attribName,!0),F=x.prefix,T=x.local;if(F==="xmlns")if(T==="xml"&&b.attribValue!==L)Z(b,"xml: prefix must be bound to "+L+`
|
|
|
Actual: `+b.attribValue);else if(T==="xmlns"&&b.attribValue!==N)Z(b,"xmlns: prefix must be bound to "+N+`
|
|
|
Actual: `+b.attribValue);else{var Q=b.tag,ae=b.tags[b.tags.length-1]||b;Q.ns===ae.ns&&(Q.ns=(0,w.default)(ae.ns)),Q.ns[T]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,G(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function B(b,x){if(b.opt.xmlns){var F=b.tag,T=M(b.tagName);F.prefix=T.prefix,F.local=T.local,F.uri=F.ns[T.prefix]||"",F.prefix&&!F.uri&&(Z(b,"Unbound namespace prefix: "+(0,u.default)(b.tagName)),F.uri=T.prefix);var Q=b.tags[b.tags.length-1]||b;F.ns&&Q.ns!==F.ns&&(0,c.default)(F.ns).forEach(function(ut){G(b,"onopennamespace",{prefix:ut,uri:F.ns[ut]})});for(var ae=0,de=b.attribList.length;ae<de;ae++){var me=b.attribList[ae],be=me[0],xe=me[1],le=M(be,!0),Fe=le.prefix,Ie=le.local,ze=Fe===""?"":F.ns[Fe]||"",He={name:be,value:xe,prefix:Fe,local:Ie,uri:ze};Fe&&Fe!=="xmlns"&&!ze&&(Z(b,"Unbound namespace prefix: "+(0,u.default)(Fe)),He.uri=Fe),b.tag.attributes[be]=He,G(b,"onattribute",He)}b.attribList.length=0}b.tag.isSelfClosing=!!x,b.sawRoot=!0,b.tags.push(b.tag),G(b,"onopentag",b.tag),x||(b.noscript||b.tagName.toLowerCase()!=="script"?b.state=s.TEXT:b.state=s.SCRIPT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function z(b){if(!b.tagName)return Z(b,"Weird empty close tag."),b.textNode+="</>",void(b.state=s.TEXT);if(b.script){if(b.tagName!=="script")return b.script+="</"+b.tagName+">",b.tagName="",void(b.state=s.SCRIPT);G(b,"onscript",b.script),b.script=""}var x=b.tags.length,F=b.tagName;b.strict||(F=F[b.looseCase]());for(var T=F;x--&&!(b.tags[x].name===T);)Z(b,"Unexpected close tag");if(x<0)return Z(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",void(b.state=s.TEXT);b.tagName=F;for(var Q=b.tags.length;Q-- >x;){var ae=b.tag=b.tags.pop();b.tagName=b.tag.name,G(b,"onclosetag",b.tagName);var de={};for(var me in ae.ns)de[me]=ae.ns[me];var be=b.tags[b.tags.length-1]||b;b.opt.xmlns&&ae.ns!==be.ns&&(0,c.default)(ae.ns).forEach(function(xe){var le=ae.ns[xe];G(b,"onclosenamespace",{prefix:xe,uri:le})})}x===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=s.TEXT}function Y(b){var x,F=b.entity,T=F.toLowerCase(),Q="";return b.ENTITIES[F]?b.ENTITIES[F]:b.ENTITIES[T]?b.ENTITIES[T]:(F=T,F.charAt(0)==="#"&&(F.charAt(1)==="x"?(F=F.slice(2),x=parseInt(F,16),Q=x.toString(16)):(F=F.slice(1),x=parseInt(F,10),Q=x.toString(10))),F=F.replace(/^0+/,""),isNaN(x)||Q.toLowerCase()!==F?(Z(b,"Invalid character entity"),"&"+b.entity+";"):(0,l.default)(x))}function J(b,x){x==="<"?(b.state=s.OPEN_WAKA,b.startTagPosition=b.position):y(x)||(Z(b,"Non-whitespace before first tag."),b.textNode=x,b.state=s.TEXT)}function ce(b,x){var F="";return x<b.length&&(F=b.charAt(x)),F}function oe(b){var x=this;if(this.error)throw this.error;if(x.closed)return X(x,"Cannot write after close. Assign an onready handler.");if(b===null)return ie(x);(b===void 0?"undefined":(0,a.default)(b))==="object"&&(b=b.toString());for(var F=0,T="";!(T=ce(b,F++),x.c=T,!T);)switch(x.trackPosition&&(x.position++,T===`
|
|
|
`?(x.line++,x.column=0):x.column++),x.state){case s.BEGIN:if(x.state=s.BEGIN_WHITESPACE,T==="\uFEFF")continue;J(x,T);continue;case s.BEGIN_WHITESPACE:J(x,T);continue;case s.TEXT:if(x.sawRoot&&!x.closedRoot){for(var Q=F-1;T&&T!=="<"&&T!=="&";)(T=ce(b,F++))&&x.trackPosition&&(x.position++,T===`
|
|
|
`?(x.line++,x.column=0):x.column++);x.textNode+=b.substring(Q,F-1)}T!=="<"||x.sawRoot&&x.closedRoot&&!x.strict?(y(T)||x.sawRoot&&!x.closedRoot||Z(x,"Text data outside of root node."),T==="&"?x.state=s.TEXT_ENTITY:x.textNode+=T):(x.state=s.OPEN_WAKA,x.startTagPosition=x.position);continue;case s.SCRIPT:T==="<"?x.state=s.SCRIPT_ENDING:x.script+=T;continue;case s.SCRIPT_ENDING:T==="/"?x.state=s.CLOSE_TAG:(x.script+="<"+T,x.state=s.SCRIPT);continue;case s.OPEN_WAKA:if(T==="!")x.state=s.SGML_DECL,x.sgmlDecl="";else if(!y(T))if(W(re,T))x.state=s.OPEN_TAG,x.tagName=T;else if(T==="/")x.state=s.CLOSE_TAG,x.tagName="";else if(T==="?")x.state=s.PROC_INST,x.procInstName=x.procInstBody="";else{if(Z(x,"Unencoded <"),x.startTagPosition+1<x.position){var ae=x.position-x.startTagPosition;T=new Array(ae).join(" ")+T}x.textNode+="<"+T,x.state=s.TEXT}continue;case s.SGML_DECL:(x.sgmlDecl+T).toUpperCase()===ee?(G(x,"onopencdata"),x.state=s.CDATA,x.sgmlDecl="",x.cdata=""):x.sgmlDecl+T==="--"?(x.state=s.COMMENT,x.comment="",x.sgmlDecl=""):(x.sgmlDecl+T).toUpperCase()===se?(x.state=s.DOCTYPE,(x.doctype||x.sawRoot)&&Z(x,"Inappropriately located doctype declaration"),x.doctype="",x.sgmlDecl=""):T===">"?(G(x,"onsgmldeclaration",x.sgmlDecl),x.sgmlDecl="",x.state=s.TEXT):(j(T)&&(x.state=s.SGML_DECL_QUOTED),x.sgmlDecl+=T);continue;case s.SGML_DECL_QUOTED:T===x.q&&(x.state=s.SGML_DECL,x.q=""),x.sgmlDecl+=T;continue;case s.DOCTYPE:T===">"?(x.state=s.TEXT,G(x,"ondoctype",x.doctype),x.doctype=!0):(x.doctype+=T,T==="["?x.state=s.DOCTYPE_DTD:j(T)&&(x.state=s.DOCTYPE_QUOTED,x.q=T));continue;case s.DOCTYPE_QUOTED:x.doctype+=T,T===x.q&&(x.q="",x.state=s.DOCTYPE);continue;case s.DOCTYPE_DTD:x.doctype+=T,T==="]"?x.state=s.DOCTYPE:j(T)&&(x.state=s.DOCTYPE_DTD_QUOTED,x.q=T);continue;case s.DOCTYPE_DTD_QUOTED:x.doctype+=T,T===x.q&&(x.state=s.DOCTYPE_DTD,x.q="");continue;case s.COMMENT:T==="-"?x.state=s.COMMENT_ENDING:x.comment+=T;continue;case s.COMMENT_ENDING:T==="-"?(x.state=s.COMMENT_ENDED,x.comment=ne(x.opt,x.comment),x.comment&&G(x,"oncomment",x.comment),x.comment=""):(x.comment+="-"+T,x.state=s.COMMENT);continue;case s.COMMENT_ENDED:T!==">"?(Z(x,"Malformed comment"),x.comment+="--"+T,x.state=s.COMMENT):x.state=s.TEXT;continue;case s.CDATA:T==="]"?x.state=s.CDATA_ENDING:x.cdata+=T;continue;case s.CDATA_ENDING:T==="]"?x.state=s.CDATA_ENDING_2:(x.cdata+="]"+T,x.state=s.CDATA);continue;case s.CDATA_ENDING_2:T===">"?(x.cdata&&G(x,"oncdata",x.cdata),G(x,"onclosecdata"),x.cdata="",x.state=s.TEXT):T==="]"?x.cdata+="]":(x.cdata+="]]"+T,x.state=s.CDATA);continue;case s.PROC_INST:T==="?"?x.state=s.PROC_INST_ENDING:y(T)?x.state=s.PROC_INST_BODY:x.procInstName+=T;continue;case s.PROC_INST_BODY:if(!x.procInstBody&&y(T))continue;T==="?"?x.state=s.PROC_INST_ENDING:x.procInstBody+=T;continue;case s.PROC_INST_ENDING:T===">"?(G(x,"onprocessinginstruction",{name:x.procInstName,body:x.procInstBody}),x.procInstName=x.procInstBody="",x.state=s.TEXT):(x.procInstBody+="?"+T,x.state=s.PROC_INST_BODY);continue;case s.OPEN_TAG:W(he,T)?x.tagName+=T:(K(x),T===">"?B(x):T==="/"?x.state=s.OPEN_TAG_SLASH:(y(T)||Z(x,"Invalid character in tag name"),x.state=s.ATTRIB));continue;case s.OPEN_TAG_SLASH:T===">"?(B(x,!0),z(x)):(Z(x,"Forward-slash in opening tag not followed by >"),x.state=s.ATTRIB);continue;case s.ATTRIB:if(y(T))continue;T===">"?B(x):T==="/"?x.state=s.OPEN_TAG_SLASH:W(re,T)?(x.attribName=T,x.attribValue="",x.state=s.ATTRIB_NAME):Z(x,"Invalid attribute name");continue;case s.ATTRIB_NAME:T==="="?x.state=s.ATTRIB_VALUE:T===">"?(Z(x,"Attribute without value"),x.attribValue=x.attribName,I(x),B(x)):y(T)?x.state=s.ATTRIB_NAME_SAW_WHITE:W(he,T)?x.attribName+=T:Z(x,"Invalid attribute name");continue;case s.ATTRIB_NAME_SAW_WHITE:if(T==="=")x.state=s.ATTRIB_VALUE;else{if(y(T))continue;Z(x,"Attribute without value"),x.tag.attributes[x.attribName]="",x.attribValue="",G(x,"onattribute",{name:x.attribName,value:""}),x.attribName="",T===">"?B(x):W(re,T)?(x.attribName=T,x.state=s.ATTRIB_NAME):(Z(x,"Invalid attribute name"),x.state=s.ATTRIB)}continue;case s.ATTRIB_VALUE:if(y(T))continue;j(T)?(x.q=T,x.state=s.ATTRIB_VALUE_QUOTED):(Z(x,"Unquoted attribute value"),x.state=s.ATTRIB_VALUE_UNQUOTED,x.attribValue=T);continue;case s.ATTRIB_VALUE_QUOTED:if(T!==x.q){T==="&"?x.state=s.ATTRIB_VALUE_ENTITY_Q:x.attribValue+=T;continue}I(x),x.q="",x.state=s.ATTRIB_VALUE_CLOSED;continue;case s.ATTRIB_VALUE_CLOSED:y(T)?x.state=s.ATTRIB:T===">"?B(x):T==="/"?x.state=s.OPEN_TAG_SLASH:W(re,T)?(Z(x,"No whitespace between attributes"),x.attribName=T,x.attribValue="",x.state=s.ATTRIB_NAME):Z(x,"Invalid attribute name");continue;case s.ATTRIB_VALUE_UNQUOTED:if(!U(T)){T==="&"?x.state=s.ATTRIB_VALUE_ENTITY_U:x.attribValue+=T;continue}I(x),T===">"?B(x):x.state=s.ATTRIB;continue;case s.CLOSE_TAG:if(x.tagName)T===">"?z(x):W(he,T)?x.tagName+=T:x.script?(x.script+="</"+x.tagName,x.tagName="",x.state=s.SCRIPT):(y(T)||Z(x,"Invalid tagname in closing tag"),x.state=s.CLOSE_TAG_SAW_WHITE);else{if(y(T))continue;k(re,T)?x.script?(x.script+="</"+T,x.state=s.SCRIPT):Z(x,"Invalid tagname in closing tag."):x.tagName=T}continue;case s.CLOSE_TAG_SAW_WHITE:if(y(T))continue;T===">"?z(x):Z(x,"Invalid characters in closing tag");continue;case s.TEXT_ENTITY:case s.ATTRIB_VALUE_ENTITY_Q:case s.ATTRIB_VALUE_ENTITY_U:var de,me;switch(x.state){case s.TEXT_ENTITY:de=s.TEXT,me="textNode";break;case s.ATTRIB_VALUE_ENTITY_Q:de=s.ATTRIB_VALUE_QUOTED,me="attribValue";break;case s.ATTRIB_VALUE_ENTITY_U:de=s.ATTRIB_VALUE_UNQUOTED,me="attribValue"}T===";"?(x[me]+=Y(x),x.entity="",x.state=de):W(x.entity.length?n:C,T)?x.entity+=T:(Z(x,"Invalid character in entity name"),x[me]+="&"+x.entity+T,x.entity="",x.state=de);continue;default:throw new Error(x,"Unknown state: "+x.state)}return x.position>=x.bufferCheckPosition&&E(x),x}h.parser=function(b,x){return new P(b,x)},h.SAXParser=P,h.SAXStream=R,h.createStream=D,h.MAX_BUFFER_LENGTH=65536;var fe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];h.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],w.default||(Object.create=function(b){function x(){}return x.prototype=b,new x}),c.default||(Object.keys=function(b){var x=[];for(var F in b)b.hasOwnProperty(F)&&x.push(F);return x}),P.prototype={end:function(){ie(this)},write:oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){v(this)}};var _e;try{_e=t("stream").Stream}catch(b){_e=function(){}}var te=h.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});R.prototype=(0,w.default)(_e.prototype,{constructor:{value:R}}),R.prototype.write=function(b){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(b)){if(!this._decoder){var x=t("string_decoder").StringDecoder;this._decoder=new x("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},R.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},R.prototype.on=function(b,x){var F=this;return F._parser["on"+b]||te.indexOf(b)===-1||(F._parser["on"+b]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,b),F.emit.apply(F,T)}),_e.prototype.on.call(F,b,x)};var ee="[CDATA[",se="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",N="http://www.w3.org/2000/xmlns/",q={xml:L,xmlns:N},re=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,he=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,C=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,s=0;h.STATE={BEGIN:s++,BEGIN_WHITESPACE:s++,TEXT:s++,TEXT_ENTITY:s++,OPEN_WAKA:s++,SGML_DECL:s++,SGML_DECL_QUOTED:s++,DOCTYPE:s++,DOCTYPE_QUOTED:s++,DOCTYPE_DTD:s++,DOCTYPE_DTD_QUOTED:s++,COMMENT_STARTING:s++,COMMENT:s++,COMMENT_ENDING:s++,COMMENT_ENDED:s++,CDATA:s++,CDATA_ENDING:s++,CDATA_ENDING_2:s++,PROC_INST:s++,PROC_INST_BODY:s++,PROC_INST_ENDING:s++,OPEN_TAG:s++,OPEN_TAG_SLASH:s++,ATTRIB:s++,ATTRIB_NAME:s++,ATTRIB_NAME_SAW_WHITE:s++,ATTRIB_VALUE:s++,ATTRIB_VALUE_QUOTED:s++,ATTRIB_VALUE_CLOSED:s++,ATTRIB_VALUE_UNQUOTED:s++,ATTRIB_VALUE_ENTITY_Q:s++,ATTRIB_VALUE_ENTITY_U:s++,CLOSE_TAG:s++,CLOSE_TAG_SAW_WHITE:s++,SCRIPT:s++,SCRIPT_ENDING:s++},h.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},h.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,c.default)(h.ENTITIES).forEach(function(b){var x=h.ENTITIES[b],F=typeof x=="number"?String.fromCharCode(x):x;h.ENTITIES[b]=F});for(var O in h.STATE)h.STATE[h.STATE[O]]=O;s=h.STATE,l.default||function(){var b=String.fromCharCode,x=Math.floor,F=function(){var Q,ae,de=[],me=-1,be=arguments.length;if(!be)return"";for(var xe="";++me<be;){var le=Number(arguments[me]);if(!isFinite(le)||le<0||le>1114111||x(le)!==le)throw RangeError("Invalid code point: "+le);le<=65535?de.push(le):(le-=65536,Q=55296+(le>>10),ae=le%1024+56320,de.push(Q,ae)),(me+1===be||de.length>16384)&&(xe+=b.apply(null,de),de.length=0)}return xe};d.default?Object.defineProperty(String,"fromCodePoint",{value:F,configurable:!0,writable:!0}):String.fromCodePoint=F}()}(S===void 0?(void 0).sax={}:S)}).call(this,t("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(t,i,S){function m(){g.call(this)}i.exports=m;var g=t("events").EventEmitter;t("inherits")(m,g),m.Readable=t("readable-stream/readable.js"),m.Writable=t("readable-stream/writable.js"),m.Duplex=t("readable-stream/duplex.js"),m.Transform=t("readable-stream/transform.js"),m.PassThrough=t("readable-stream/passthrough.js"),m.Stream=m,m.prototype.pipe=function(o,l){function p(A){o.writable&&o.write(A)===!1&&f.pause&&f.pause()}function u(){f.readable&&f.resume&&f.resume()}function e(){c||(c=!0,o.end())}function a(){c||(c=!0,typeof o.destroy=="function"&&o.destroy())}function r(A){if(d(),g.listenerCount(this,"error")===0)throw A}function d(){f.removeListener("data",p),o.removeListener("drain",u),f.removeListener("end",e),f.removeListener("close",a),f.removeListener("error",r),o.removeListener("error",r),f.removeListener("end",d),f.removeListener("close",d),o.removeListener("close",d)}var f=this;f.on("data",p),o.on("drain",u),o._isStdio||l&&l.end===!1||(f.on("end",e),f.on("close",a));var c=!1;return f.on("error",r),o.on("error",r),f.on("end",d),f.on("close",d),o.on("close",d),o.emit("pipe",f),o}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(t,i,S){(function(m){var g=t("./lib/request"),o=t("./lib/response"),l=t("xtend"),p=t("builtin-status-codes"),u=t("url"),e=S;e.request=function(a,r){a=typeof a=="string"?u.parse(a):l(a);var d=m.location.protocol.search(/^https?:$/)===-1?"http:":"",f=a.protocol||d,c=a.hostname||a.host,A=a.port,w=a.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),a.url=(c?f+"//"+c:"")+(A?":"+A:"")+w,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var h=new g(a);return r&&h.on("response",r),h},e.get=function(a,r){var d=e.request(a,r);return d.end(),d},e.ClientRequest=g,e.IncomingMessage=o.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=p,e.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(t,i,S){(function(m){"use strict";function g(){if(p!==void 0)return p;if(m.XMLHttpRequest){p=new m.XMLHttpRequest;try{p.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(a){p=null}}else p=null;return p}function o(a){var r=g();if(!r)return!1;try{return r.responseType=a,r.responseType===a}catch(d){}return!1}function l(a){return typeof a=="function"}S.fetch=l(m.fetch)&&l(m.ReadableStream),S.writableStream=l(m.WritableStream),S.abortController=l(m.AbortController),S.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),S.blobConstructor=!0}catch(a){}var p,u=m.ArrayBuffer!==void 0,e=u&&l(m.ArrayBuffer.prototype.slice);S.arraybuffer=S.fetch||u&&o("arraybuffer"),S.msstream=!S.fetch&&e&&o("ms-stream"),S.mozchunkedarraybuffer=!S.fetch&&u&&o("moz-chunked-arraybuffer"),S.overrideMimeType=S.fetch||!!g()&&l(g().overrideMimeType),S.vbArray=l(m.VBArray),p=null}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(t,i,S){(function(m,g,o){"use strict";function l(E,_){return a.fetch&&_?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&E?"arraybuffer":a.vbArray&&E?"text:vbarray":"text"}function p(E){try{var _=E.status;return _!==null&&_!==0}catch(v){return!1}}var u=t("babel-runtime/core-js/object/keys"),e=function(E){return E&&E.__esModule?E:{default:E}}(u),a=t("./capability"),r=t("inherits"),d=t("./response"),f=t("readable-stream"),c=t("to-arraybuffer"),A=d.IncomingMessage,w=d.readyStates,h=i.exports=function(E){var _=this;f.Writable.call(_),_._opts=E,_._body=[],_._headers={},E.auth&&_.setHeader("Authorization","Basic "+new o(E.auth).toString("base64")),(0,e.default)(E.headers).forEach(function(R){_.setHeader(R,E.headers[R])});var v,D=!0;if(E.mode==="disable-fetch"||"requestTimeout"in E&&!a.abortController)D=!1,v=!0;else if(E.mode==="prefer-streaming")v=!1;else if(E.mode==="allow-wrong-content-type")v=!a.overrideMimeType;else{if(E.mode&&E.mode!=="default"&&E.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");v=!0}_._mode=l(v,D),_._fetchTimer=null,_.on("finish",function(){_._onFinish()})};r(h,f.Writable),h.prototype.setHeader=function(E,_){var v=this,D=E.toLowerCase();P.indexOf(D)===-1&&(v._headers[D]={name:E,value:_})},h.prototype.getHeader=function(E){var _=this._headers[E.toLowerCase()];return _?_.value:null},h.prototype.removeHeader=function(E){delete this._headers[E.toLowerCase()]},h.prototype._onFinish=function(){var E=this;if(!E._destroyed){var _=E._opts,v=E._headers,D=null;_.method!=="GET"&&_.method!=="HEAD"&&(D=a.arraybuffer?c(o.concat(E._body)):a.blobConstructor?new g.Blob(E._body.map(function(W){return c(W)}),{type:(v["content-type"]||{}).value||""}):o.concat(E._body).toString());var R=[];if((0,e.default)(v).forEach(function(W){var k=v[W].name,V=v[W].value;Array.isArray(V)?V.forEach(function(G){R.push([k,G])}):R.push([k,V])}),E._mode==="fetch"){var y=null;if(a.abortController){var j=new AbortController;y=j.signal,E._fetchAbortController=j,"requestTimeout"in _&&_.requestTimeout!==0&&(E._fetchTimer=g.setTimeout(function(){E.emit("requestTimeout"),E._fetchAbortController&&E._fetchAbortController.abort()},_.requestTimeout))}g.fetch(E._opts.url,{method:E._opts.method,headers:R,body:D||void 0,mode:"cors",credentials:_.withCredentials?"include":"same-origin",signal:y}).then(function(W){E._fetchResponse=W,E._connect()},function(W){g.clearTimeout(E._fetchTimer),E._destroyed||E.emit("error",W)})}else{var U=E._xhr=new g.XMLHttpRequest;try{U.open(E._opts.method,E._opts.url,!0)}catch(W){return void m.nextTick(function(){E.emit("error",W)})}"responseType"in U&&(U.responseType=E._mode.split(":")[0]),"withCredentials"in U&&(U.withCredentials=!!_.withCredentials),E._mode==="text"&&"overrideMimeType"in U&&U.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _&&(U.timeout=_.requestTimeout,U.ontimeout=function(){E.emit("requestTimeout")}),R.forEach(function(W){U.setRequestHeader(W[0],W[1])}),E._response=null,U.onreadystatechange=function(){switch(U.readyState){case w.LOADING:case w.DONE:E._onXHRProgress()}},E._mode==="moz-chunked-arraybuffer"&&(U.onprogress=function(){E._onXHRProgress()}),U.onerror=function(){E._destroyed||E.emit("error",new Error("XHR error"))};try{U.send(D)}catch(W){return void m.nextTick(function(){E.emit("error",W)})}}}},h.prototype._onXHRProgress=function(){var E=this;p(E._xhr)&&!E._destroyed&&(E._response||E._connect(),E._response._onXHRProgress())},h.prototype._connect=function(){var E=this;E._destroyed||(E._response=new A(E._xhr,E._fetchResponse,E._mode,E._fetchTimer),E._response.on("error",function(_){E.emit("error",_)}),E.emit("response",E._response))},h.prototype._write=function(E,_,v){this._body.push(E),v()},h.prototype.abort=h.prototype.destroy=function(){var E=this;E._destroyed=!0,g.clearTimeout(E._fetchTimer),E._response&&(E._response._destroyed=!0),E._xhr?E._xhr.abort():E._fetchAbortController&&E._fetchAbortController.abort()},h.prototype.end=function(E,_,v){var D=this;typeof E=="function"&&(v=E,E=void 0),f.Writable.prototype.end.call(D,E,_,v)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var P=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,t("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(t,i,S){(function(m,g,o){"use strict";var l=t("babel-runtime/core-js/promise"),p=function(f){return f&&f.__esModule?f:{default:f}}(l),u=t("./capability"),e=t("inherits"),a=t("readable-stream"),r=S.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=S.IncomingMessage=function(f,c,A,w){var h=this;if(a.Readable.call(h),h._mode=A,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){m.nextTick(function(){h.emit("close")})}),A==="fetch"){if(h._fetchResponse=c,h.url=c.url,h.statusCode=c.status,h.statusMessage=c.statusText,c.headers.forEach(function(D,R){h.headers[R.toLowerCase()]=D,h.rawHeaders.push(R,D)}),u.writableStream){var P=new WritableStream({write:function(R){return new p.default(function(y,j){h._destroyed?j():h.push(new o(R))?y():h._resumeFetch=y})},close:function(){g.clearTimeout(w),h._destroyed||h.push(null)},abort:function(R){h._destroyed||h.emit("error",R)}});try{return void c.body.pipeTo(P).catch(function(D){g.clearTimeout(w),h._destroyed||h.emit("error",D)})}catch(D){}}var E=c.body.getReader();!function D(){E.read().then(function(R){if(!h._destroyed){if(R.done)return g.clearTimeout(w),void h.push(null);h.push(new o(R.value)),D()}}).catch(function(R){g.clearTimeout(w),h._destroyed||h.emit("error",R)})}()}else if(h._xhr=f,h._pos=0,h.url=f.responseURL,h.statusCode=f.status,h.statusMessage=f.statusText,f.getAllResponseHeaders().split(/\r?\n/).forEach(function(D){var R=D.match(/^([^:]+):\s*(.*)/);if(R){var y=R[1].toLowerCase();y==="set-cookie"?(h.headers[y]===void 0&&(h.headers[y]=[]),h.headers[y].push(R[2])):h.headers[y]!==void 0?h.headers[y]+=", "+R[2]:h.headers[y]=R[2],h.rawHeaders.push(R[1],R[2])}}),h._charset="x-user-defined",!u.overrideMimeType){var _=h.rawHeaders["mime-type"];if(_){var v=_.match(/;\s*charset=([^;])(;|$)/);v&&(h._charset=v[1].toLowerCase())}h._charset||(h._charset="utf-8")}};e(d,a.Readable),d.prototype._read=function(){var f=this,c=f._resumeFetch;c&&(f._resumeFetch=null,c())},d.prototype._onXHRProgress=function(){var f=this,c=f._xhr,A=null;switch(f._mode){case"text:vbarray":if(c.readyState!==r.DONE)break;try{A=new g.VBArray(c.responseBody).toArray()}catch(_){}if(A!==null){f.push(new o(A));break}case"text":try{A=c.responseText}catch(_){f._mode="text:vbarray";break}if(A.length>f._pos){var w=A.substr(f._pos);if(f._charset==="x-user-defined"){for(var h=new o(w.length),P=0;P<w.length;P++)h[P]=255&w.charCodeAt(P);f.push(h)}else f.push(w,f._charset);f._pos=A.length}break;case"arraybuffer":if(c.readyState!==r.DONE||!c.response)break;A=c.response,f.push(new o(new Uint8Array(A)));break;case"moz-chunked-arraybuffer":if(A=c.response,c.readyState!==r.LOADING||!A)break;f.push(new o(new Uint8Array(A)));break;case"ms-stream":if(A=c.response,c.readyState!==r.LOADING)break;var E=new g.MSStreamReader;E.onprogress=function(){E.result.byteLength>f._pos&&(f.push(new o(new Uint8Array(E.result.slice(f._pos)))),f._pos=E.result.byteLength)},E.onload=function(){f.push(null)},E.readAsArrayBuffer(A)}f._xhr.readyState===r.DONE&&f._mode!=="ms-stream"&&f.push(null)}}).call(this,t("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(t,i,S){"use strict";function m(_){if(!_)return"utf8";for(var v;;)switch(_){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return _;default:if(v)return;_=(""+_).toLowerCase(),v=!0}}function g(_){var v=m(_);if(typeof v!="string"&&(P.isEncoding===E||!E(_)))throw new Error("Unknown encoding: "+_);return v||_}function o(_){this.encoding=g(_);var v;switch(this.encoding){case"utf16le":this.text=d,this.end=f,v=4;break;case"utf8":this.fillLast=e,v=4;break;case"base64":this.text=c,this.end=A,v=3;break;default:return this.write=w,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(v)}function l(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function p(_,v,D){var R=v.length-1;if(R<D)return 0;var y=l(v[R]);return y>=0?(y>0&&(_.lastNeed=y-1),y):--R<D||y===-2?0:(y=l(v[R]))>=0?(y>0&&(_.lastNeed=y-2),y):--R<D||y===-2?0:(y=l(v[R]),y>=0?(y>0&&(y===2?y=0:_.lastNeed=y-3),y):0)}function u(_,v,D){if((192&v[0])!=128)return _.lastNeed=0,"\u951F\uFFFD";if(_.lastNeed>1&&v.length>1){if((192&v[1])!=128)return _.lastNeed=1,"\u951F\uFFFD";if(_.lastNeed>2&&v.length>2&&(192&v[2])!=128)return _.lastNeed=2,"\u951F\uFFFD"}}function e(_){var v=this.lastTotal-this.lastNeed,D=u(this,_,v);return D!==void 0?D:this.lastNeed<=_.length?(_.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,v,0,_.length),void(this.lastNeed-=_.length))}function a(_,v){var D=p(this,_,v);if(!this.lastNeed)return _.toString("utf8",v);this.lastTotal=D;var R=_.length-(D-this.lastNeed);return _.copy(this.lastChar,0,R),_.toString("utf8",v,R)}function r(_){var v=_&&_.length?this.write(_):"";return this.lastNeed?v+"\u951F\uFFFD":v}function d(_,v){if((_.length-v)%2==0){var D=_.toString("utf16le",v);if(D){var R=D.charCodeAt(D.length-1);if(R>=55296&&R<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",v,_.length-1)}function f(_){var v=_&&_.length?this.write(_):"";if(this.lastNeed){var D=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,D)}return v}function c(_,v){var D=(_.length-v)%3;return D===0?_.toString("base64",v):(this.lastNeed=3-D,this.lastTotal=3,D===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",v,_.length-D))}function A(_){var v=_&&_.length?this.write(_):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function w(_){return _.toString(this.encoding)}function h(_){return _&&_.length?this.write(_):""}var P=t("safe-buffer").Buffer,E=P.isEncoding||function(_){switch((_=""+_)&&_.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};S.StringDecoder=o,o.prototype.write=function(_){if(_.length===0)return"";var v,D;if(this.lastNeed){if((v=this.fillLast(_))===void 0)return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D<_.length?v?v+this.text(_,D):this.text(_,D):v||""},o.prototype.end=r,o.prototype.text=a,o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},{"safe-buffer":193}],201:[function(t,i,S){(function(m,g){function o(r,d){this._id=r,this._clearFn=d}var l=t("process/browser.js").nextTick,p=Function.prototype.apply,u=Array.prototype.slice,e={},a=0;S.setTimeout=function(){return new o(p.call(setTimeout,window,arguments),clearTimeout)},S.setInterval=function(){return new o(p.call(setInterval,window,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(r){r.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},S.enroll=function(r,d){clearTimeout(r._idleTimeoutId),r._idleTimeout=d},S.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},S._unrefActive=S.active=function(r){clearTimeout(r._idleTimeoutId);var d=r._idleTimeout;d>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},d))},S.setImmediate=typeof m=="function"?m:function(r){var d=a++,f=!(arguments.length<2)&&u.call(arguments,1);return e[d]=!0,l(function(){e[d]&&(f?r.apply(null,f):r.call(null),S.clearImmediate(d))}),d},S.clearImmediate=typeof g=="function"?g:function(r){delete e[r]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(t,i,S){var m=t("buffer").Buffer;i.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(m.isBuffer(g)){for(var o=new Uint8Array(g.length),l=g.length,p=0;p<l;p++)o[p]=g[p];return o.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(t,i,S){"use strict";function m(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function g(y,j,U){if(y&&e.isObject(y)&&y instanceof m)return y;var W=new m;return W.parse(y,j,U),W}function o(y){return e.isString(y)&&(y=g(y)),y instanceof m?y.format():m.prototype.format.call(y)}function l(y,j){return g(y,!1,!0).resolve(j)}function p(y,j){return y?g(y,!1,!0).resolveObject(j):j}var u=t("punycode"),e=t("./util");S.parse=g,S.resolve=l,S.resolveObject=p,S.format=o,S.Url=m;var a=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(f),A=["'"].concat(c),w=["%","/","?",";","#"].concat(A),h=["/","?","#"],P=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},D={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=t("querystring");m.prototype.parse=function(y,j,U){if(!e.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var W=y.indexOf("?"),k=W!==-1&&W<y.indexOf("#")?"?":"#",V=y.split(k),G=/\\/g;V[0]=V[0].replace(G,"/"),y=V.join(k);var H=y;if(H=H.trim(),!U&&y.split("#").length===1){var ne=d.exec(H);if(ne)return this.path=H,this.href=H,this.pathname=ne[1],ne[2]?(this.search=ne[2],this.query=j?R.parse(this.search.substr(1)):this.search.substr(1)):j&&(this.search="",this.query={}),this}var X=a.exec(H);if(X){X=X[0];var ie=X.toLowerCase();this.protocol=ie,H=H.substr(X.length)}if(U||X||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var Z=H.substr(0,2)==="//";!Z||X&&v[X]||(H=H.substr(2),this.slashes=!0)}if(!v[X]&&(Z||X&&!D[X])){for(var K=-1,M=0;M<h.length;M++){var I=H.indexOf(h[M]);I!==-1&&(K===-1||I<K)&&(K=I)}var B,z;z=K===-1?H.lastIndexOf("@"):H.lastIndexOf("@",K),z!==-1&&(B=H.slice(0,z),H=H.slice(z+1),this.auth=decodeURIComponent(B)),K=-1;for(var M=0;M<w.length;M++){var I=H.indexOf(w[M]);I!==-1&&(K===-1||I<K)&&(K=I)}K===-1&&(K=H.length),this.host=H.slice(0,K),H=H.slice(K),this.parseHost(),this.hostname=this.hostname||"";var Y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Y)for(var J=this.hostname.split(/\./),M=0,ce=J.length;M<ce;M++){var oe=J[M];if(oe&&!oe.match(P)){for(var fe="",_e=0,te=oe.length;_e<te;_e++)oe.charCodeAt(_e)>127?fe+="x":fe+=oe[_e];if(!fe.match(P)){var ee=J.slice(0,M),se=J.slice(M+1),L=oe.match(E);L&&(ee.push(L[1]),se.unshift(L[2])),se.length&&(H="/"+se.join(".")+H),this.hostname=ee.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Y||(this.hostname=u.toASCII(this.hostname));var N=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+N,this.href+=this.host,Y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!_[ie])for(var M=0,ce=A.length;M<ce;M++){var re=A[M];if(H.indexOf(re)!==-1){var he=encodeURIComponent(re);he===re&&(he=escape(re)),H=H.split(re).join(he)}}var C=H.indexOf("#");C!==-1&&(this.hash=H.substr(C),H=H.slice(0,C));var n=H.indexOf("?");if(n!==-1?(this.search=H.substr(n),this.query=H.substr(n+1),j&&(this.query=R.parse(this.query)),H=H.slice(0,n)):j&&(this.search="",this.query={}),H&&(this.pathname=H),D[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",s=this.search||"";this.path=N+s}return this.href=this.format(),this},m.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var j=this.protocol||"",U=this.pathname||"",W=this.hash||"",k=!1,V="";this.host?k=y+this.host:this.hostname&&(k=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(k+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(V=R.stringify(this.query));var G=this.search||V&&"?"+V||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||D[j])&&k!==!1?(k="//"+(k||""),U&&U.charAt(0)!=="/"&&(U="/"+U)):k||(k=""),W&&W.charAt(0)!=="#"&&(W="#"+W),G&&G.charAt(0)!=="?"&&(G="?"+G),U=U.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),G=G.replace("#","%23"),j+k+U+G+W},m.prototype.resolve=function(y){return this.resolveObject(g(y,!1,!0)).format()},m.prototype.resolveObject=function(y){if(e.isString(y)){var j=new m;j.parse(y,!1,!0),y=j}for(var U=new m,W=Object.keys(this),k=0;k<W.length;k++){var V=W[k];U[V]=this[V]}if(U.hash=y.hash,y.href==="")return U.href=U.format(),U;if(y.slashes&&!y.protocol){for(var G=Object.keys(y),H=0;H<G.length;H++){var ne=G[H];ne!=="protocol"&&(U[ne]=y[ne])}return D[U.protocol]&&U.hostname&&!U.pathname&&(U.path=U.pathname="/"),U.href=U.format(),U}if(y.protocol&&y.protocol!==U.protocol){if(!D[y.protocol]){for(var X=Object.keys(y),ie=0;ie<X.length;ie++){var Z=X[ie];U[Z]=y[Z]}return U.href=U.format(),U}if(U.protocol=y.protocol,y.host||v[y.protocol])U.pathname=y.pathname;else{for(var ce=(y.pathname||"").split("/");ce.length&&!(y.host=ce.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),ce[0]!==""&&ce.unshift(""),ce.length<2&&ce.unshift(""),U.pathname=ce.join("/")}if(U.search=y.search,U.query=y.query,U.host=y.host||"",U.auth=y.auth,U.hostname=y.hostname||y.host,U.port=y.port,U.pathname||U.search){var K=U.pathname||"",M=U.search||"";U.path=K+M}return U.slashes=U.slashes||y.slashes,U.href=U.format(),U}var I=U.pathname&&U.pathname.charAt(0)==="/",B=y.host||y.pathname&&y.pathname.charAt(0)==="/",z=B||I||U.host&&y.pathname,Y=z,J=U.pathname&&U.pathname.split("/")||[],ce=y.pathname&&y.pathname.split("/")||[],oe=U.protocol&&!D[U.protocol];if(oe&&(U.hostname="",U.port=null,U.host&&(J[0]===""?J[0]=U.host:J.unshift(U.host)),U.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(ce[0]===""?ce[0]=y.host:ce.unshift(y.host)),y.host=null),z=z&&(ce[0]===""||J[0]==="")),B)U.host=y.host||y.host===""?y.host:U.host,U.hostname=y.hostname||y.hostname===""?y.hostname:U.hostname,U.search=y.search,U.query=y.query,J=ce;else if(ce.length)J||(J=[]),J.pop(),J=J.concat(ce),U.search=y.search,U.query=y.query;else if(!e.isNullOrUndefined(y.search)){if(oe){U.hostname=U.host=J.shift();var fe=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@");fe&&(U.auth=fe.shift(),U.host=U.hostname=fe.shift())}return U.search=y.search,U.query=y.query,e.isNull(U.pathname)&&e.isNull(U.search)||(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.href=U.format(),U}if(!J.length)return U.pathname=null,U.search?U.path="/"+U.search:U.path=null,U.href=U.format(),U;for(var _e=J.slice(-1)[0],te=(U.host||y.host||J.length>1)&&(_e==="."||_e==="..")||_e==="",ee=0,se=J.length;se>=0;se--)_e=J[se],_e==="."?J.splice(se,1):_e===".."?(J.splice(se,1),ee++):ee&&(J.splice(se,1),ee--);if(!z&&!Y)for(;ee--;ee)J.unshift("..");!z||J[0]===""||J[0]&&J[0].charAt(0)==="/"||J.unshift(""),te&&J.join("/").substr(-1)!=="/"&&J.push("");var L=J[0]===""||J[0]&&J[0].charAt(0)==="/";if(oe){U.hostname=U.host=L?"":J.length?J.shift():"";var fe=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@");fe&&(U.auth=fe.shift(),U.host=U.hostname=fe.shift())}return z=z||U.host&&J.length,z&&!L&&J.unshift(""),J.length?U.pathname=J.join("/"):(U.pathname=null,U.path=null),e.isNull(U.pathname)&&e.isNull(U.search)||(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.auth=y.auth||U.auth,U.slashes=U.slashes||y.slashes,U.href=U.format(),U},m.prototype.parseHost=function(){var y=this.host,j=r.exec(y);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),y=y.substr(0,y.length-j.length)),y&&(this.hostname=y)}},{"./util":204,punycode:174,querystring:177}],204:[function(t,i,S){"use strict";i.exports={isString:function(g){return typeof g=="string"},isObject:function(g){return typeof g=="object"&&g!==null},isNull:function(g){return g===null},isNullOrUndefined:function(g){return g==null}}},{}],205:[function(t,i,S){(function(m){function g(l,p){function u(){if(!e){if(o("throwDeprecation"))throw new Error(p);o("traceDeprecation")?console.trace(p):console.warn(p),e=!0}return l.apply(this,arguments)}if(o("noDeprecation"))return l;var e=!1;return u}function o(l){try{if(!m.localStorage)return!1}catch(u){return!1}var p=m.localStorage[l];return p!=null&&String(p).toLowerCase()==="true"}i.exports=g}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(t,i,S){i.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(t,i,S){(function(m,g){function o(M,I){var B={seen:[],stylize:p};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),w(I)?B.showHidden=I:I&&S._extend(B,I),D(B.showHidden)&&(B.showHidden=!1),D(B.depth)&&(B.depth=2),D(B.colors)&&(B.colors=!1),D(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=l),e(B,M,B.depth)}function l(M,I){var B=o.styles[I];return B?"["+o.colors[B][0]+"m"+M+"["+o.colors[B][1]+"m":M}function p(M,I){return M}function u(M){var I={};return M.forEach(function(B,z){I[B]=!0}),I}function e(M,I,B){if(M.customInspect&&I&&W(I.inspect)&&I.inspect!==S.inspect&&(!I.constructor||I.constructor.prototype!==I)){var z=I.inspect(B,M);return _(z)||(z=e(M,z,B)),z}var Y=a(M,I);if(Y)return Y;var J=Object.keys(I),ce=u(J);if(M.showHidden&&(J=Object.getOwnPropertyNames(I)),U(I)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return r(I);if(J.length===0){if(W(I)){var oe=I.name?": "+I.name:"";return M.stylize("[Function"+oe+"]","special")}if(R(I))return M.stylize(RegExp.prototype.toString.call(I),"regexp");if(j(I))return M.stylize(Date.prototype.toString.call(I),"date");if(U(I))return r(I)}var fe="",_e=!1,te=["{","}"];if((A(I)&&(_e=!0,te=["[","]"]),W(I))&&(fe=" [Function"+(I.name?": "+I.name:"")+"]"),R(I)&&(fe=" "+RegExp.prototype.toString.call(I)),j(I)&&(fe=" "+Date.prototype.toUTCString.call(I)),U(I)&&(fe=" "+r(I)),J.length===0&&(!_e||I.length==0))return te[0]+fe+te[1];if(B<0)return R(I)?M.stylize(RegExp.prototype.toString.call(I),"regexp"):M.stylize("[Object]","special");M.seen.push(I);var ee;return ee=_e?d(M,I,B,ce,J):J.map(function(se){return f(M,I,B,ce,se,_e)}),M.seen.pop(),c(ee,fe,te)}function a(M,I){if(D(I))return M.stylize("undefined","undefined");if(_(I)){var B="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(B,"string")}return E(I)?M.stylize(""+I,"number"):w(I)?M.stylize(""+I,"boolean"):h(I)?M.stylize("null","null"):void 0}function r(M){return"["+Error.prototype.toString.call(M)+"]"}function d(M,I,B,z,Y){for(var J=[],ce=0,oe=I.length;ce<oe;++ce)ne(I,String(ce))?J.push(f(M,I,B,z,String(ce),!0)):J.push("");return Y.forEach(function(fe){fe.match(/^\d+$/)||J.push(f(M,I,B,z,fe,!0))}),J}function f(M,I,B,z,Y,J){var ce,oe,fe;if(fe=Object.getOwnPropertyDescriptor(I,Y)||{value:I[Y]},fe.get?oe=fe.set?M.stylize("[Getter/Setter]","special"):M.stylize("[Getter]","special"):fe.set&&(oe=M.stylize("[Setter]","special")),ne(z,Y)||(ce="["+Y+"]"),oe||(M.seen.indexOf(fe.value)<0?(oe=h(B)?e(M,fe.value,null):e(M,fe.value,B-1),oe.indexOf(`
|
|
|
`)>-1&&(oe=J?oe.split(`
|
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
|
`).substr(2):`
|
|
|
`+oe.split(`
|
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
|
`))):oe=M.stylize("[Circular]","special")),D(ce)){if(J&&Y.match(/^\d+$/))return oe;ce=JSON.stringify(""+Y),ce.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ce=ce.substr(1,ce.length-2),ce=M.stylize(ce,"name")):(ce=ce.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ce=M.stylize(ce,"string"))}return ce+": "+oe}function c(M,I,B){var z=0;return M.reduce(function(Y,J){return z++,J.indexOf(`
|
|
|
`)>=0&&z++,Y+J.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?B[0]+(I===""?"":I+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+B[1]:B[0]+I+" "+M.join(", ")+" "+B[1]}function A(M){return Array.isArray(M)}function w(M){return typeof M=="boolean"}function h(M){return M===null}function P(M){return M==null}function E(M){return typeof M=="number"}function _(M){return typeof M=="string"}function v(M){return typeof M=="symbol"}function D(M){return M===void 0}function R(M){return y(M)&&V(M)==="[object RegExp]"}function y(M){return typeof M=="object"&&M!==null}function j(M){return y(M)&&V(M)==="[object Date]"}function U(M){return y(M)&&(V(M)==="[object Error]"||M instanceof Error)}function W(M){return typeof M=="function"}function k(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||M===void 0}function V(M){return Object.prototype.toString.call(M)}function G(M){return M<10?"0"+M.toString(10):M.toString(10)}function H(){var M=new Date,I=[G(M.getHours()),G(M.getMinutes()),G(M.getSeconds())].join(":");return[M.getDate(),K[M.getMonth()],I].join(" ")}function ne(M,I){return Object.prototype.hasOwnProperty.call(M,I)}var X=/%[sdj%]/g;S.format=function(M){if(!_(M)){for(var I=[],B=0;B<arguments.length;B++)I.push(o(arguments[B]));return I.join(" ")}for(var B=1,z=arguments,Y=z.length,J=String(M).replace(X,function(fe){if(fe==="%%")return"%";if(B>=Y)return fe;switch(fe){case"%s":return String(z[B++]);case"%d":return Number(z[B++]);case"%j":try{return JSON.stringify(z[B++])}catch(_e){return"[Circular]"}default:return fe}}),ce=z[B];B<Y;ce=z[++B])h(ce)||!y(ce)?J+=" "+ce:J+=" "+o(ce);return J},S.deprecate=function(M,I){function B(){if(!z){if(m.throwDeprecation)throw new Error(I);m.traceDeprecation?console.trace(I):console.error(I),z=!0}return M.apply(this,arguments)}if(D(g.process))return function(){return S.deprecate(M,I).apply(this,arguments)};if(m.noDeprecation===!0)return M;var z=!1;return B};var ie,Z={};S.debuglog=function(M){if(D(ie)&&(ie=m.env.NODE_DEBUG||""),M=M.toUpperCase(),!Z[M])if(new RegExp("\\b"+M+"\\b","i").test(ie)){var I=m.pid;Z[M]=function(){var B=S.format.apply(S,arguments);console.error("%s %d: %s",M,I,B)}}else Z[M]=function(){};return Z[M]},S.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=A,S.isBoolean=w,S.isNull=h,S.isNullOrUndefined=P,S.isNumber=E,S.isString=_,S.isSymbol=v,S.isUndefined=D,S.isRegExp=R,S.isObject=y,S.isDate=j,S.isError=U,S.isFunction=W,S.isPrimitive=k,S.isBuffer=t("./support/isBuffer");var K=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];S.log=function(){console.log("%s - %s",H(),S.format.apply(S,arguments))},S.inherits=t("inherits"),S._extend=function(M,I){if(!I||!y(I))return M;for(var B=Object.keys(I),z=B.length;z--;)M[B[z]]=I[B[z]];return M}}).call(this,t("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(t,i,S){"use strict";(function(){S.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],209:[function(t,i,S){"use strict";function m(u){return u&&u.__esModule?u:{default:u}}var g=t("babel-runtime/helpers/typeof"),o=m(g),l=t("babel-runtime/core-js/object/keys"),p=m(l);(function(){var u,e,a,r,d,f={}.hasOwnProperty;u=t("xmlbuilder"),e=t("./defaults").defaults,r=function(A){return typeof A=="string"&&(A.indexOf("&")>=0||A.indexOf(">")>=0||A.indexOf("<")>=0)},d=function(A){return"<![CDATA["+a(A)+"]]>"},a=function(A){return A.replace("]]>","]]]]><![CDATA[>")},S.Builder=function(){function c(A){var w,h,P;this.options={},h=e[.2];for(w in h)f.call(h,w)&&(P=h[w],this.options[w]=P);for(w in A)f.call(A,w)&&(P=A[w],this.options[w]=P)}return c.prototype.buildObject=function(A){var w,h,P,E,_;return w=this.options.attrkey,h=this.options.charkey,(0,p.default)(A).length===1&&this.options.rootName===e[.2].rootName?(_=(0,p.default)(A)[0],A=A[_]):_=this.options.rootName,P=function(v){return function(D,R){var y,j,U,W,k,V;if((R===void 0?"undefined":(0,o.default)(R))!=="object")v.options.cdata&&r(R)?D.raw(d(R)):D.txt(R);else if(Array.isArray(R)){for(W in R)if(f.call(R,W)){j=R[W];for(k in j)U=j[k],D=P(D.ele(k),U).up()}}else for(k in R)if(f.call(R,k))if(j=R[k],k===w){if((j===void 0?"undefined":(0,o.default)(j))==="object")for(y in j)V=j[y],D=D.att(y,V)}else if(k===h)D=v.options.cdata&&r(j)?D.raw(d(j)):D.txt(j);else if(Array.isArray(j))for(W in j)f.call(j,W)&&(U=j[W],D=typeof U=="string"?v.options.cdata&&r(U)?D.ele(k).raw(d(U)).up():D.ele(k,U).up():P(D.ele(k),U).up());else(j===void 0?"undefined":(0,o.default)(j))==="object"?D=P(D.ele(k),j).up():typeof j=="string"&&v.options.cdata&&r(j)?D=D.ele(k).raw(d(j)).up():(j==null&&(j=""),D=D.ele(k,j.toString()).up());return D}}(this),E=u.create(_,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),P(E,A).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(t,i,S){"use strict";(function(){S.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(t,i,S){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var g=t("babel-runtime/core-js/object/get-own-property-names"),o=m(g),l=t("babel-runtime/core-js/object/keys"),p=m(l),u=t("babel-runtime/helpers/typeof"),e=m(u);(function(){var a,r,d,f,c,A,w,h,P=function(D,R){return function(){return D.apply(R,arguments)}},E=function(D,R){function y(){this.constructor=D}for(var j in R)_.call(R,j)&&(D[j]=R[j]);return y.prototype=R.prototype,D.prototype=new y,D.__super__=R.prototype,D},_={}.hasOwnProperty;w=t("sax"),d=t("events"),a=t("./bom"),A=t("./processors"),h=t("timers").setImmediate,r=t("./defaults").defaults,f=function(D){return(D===void 0?"undefined":(0,e.default)(D))==="object"&&D!=null&&(0,p.default)(D).length===0},c=function(D,R,y){var j,U,W;for(j=0,U=D.length;j<U;j++)W=D[j],R=W(R,y);return R},S.Parser=function(v){function D(R){this.parseString=P(this.parseString,this),this.reset=P(this.reset,this),this.assignOrPush=P(this.assignOrPush,this),this.processAsync=P(this.processAsync,this);var y,j,U;if(!(this instanceof S.Parser))return new S.Parser(R);this.options={},j=r[.2];for(y in j)_.call(j,y)&&(U=j[y],this.options[y]=U);for(y in R)_.call(R,y)&&(U=R[y],this.options[y]=U);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(A.normalize)),this.reset()}return E(D,v),D.prototype.processAsync=function(){var R,y;try{return this.remaining.length<=this.options.chunkSize?(R=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(R),this.saxParser.close()):(R=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(R),h(this.processAsync))}catch(j){if(y=j,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(y)}},D.prototype.assignOrPush=function(R,y,j){return y in R?(R[y]instanceof Array||(R[y]=[R[y]]),R[y].push(j)):this.options.explicitArray?R[y]=[j]:R[y]=j},D.prototype.reset=function(){var R,y,j,U;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(W){return function(k){if(W.saxParser.resume(),!W.saxParser.errThrown)return W.saxParser.errThrown=!0,W.emit("error",k)}}(this),this.saxParser.onend=function(W){return function(){if(!W.saxParser.ended)return W.saxParser.ended=!0,W.emit("end",W.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,U=[],R=this.options.attrkey,y=this.options.charkey,this.saxParser.onopentag=function(W){return function(k){var V,G,H,ne,X;if(H={},H[y]="",!W.options.ignoreAttrs){X=k.attributes;for(V in X)_.call(X,V)&&(R in H||W.options.mergeAttrs||(H[R]={}),G=W.options.attrValueProcessors?c(W.options.attrValueProcessors,k.attributes[V],V):k.attributes[V],ne=W.options.attrNameProcessors?c(W.options.attrNameProcessors,V):V,W.options.mergeAttrs?W.assignOrPush(H,ne,G):H[R][ne]=G)}return H["#name"]=W.options.tagNameProcessors?c(W.options.tagNameProcessors,k.name):k.name,W.options.xmlns&&(H[W.options.xmlnskey]={uri:k.uri,local:k.local}),U.push(H)}}(this),this.saxParser.onclosetag=function(W){return function(){var k,V,G,H,ne,X,ie,Z,K,M;if(X=U.pop(),ne=X["#name"],W.options.explicitChildren&&W.options.preserveChildrenOrder||delete X["#name"],X.cdata===!0&&(k=X.cdata,delete X.cdata),K=U[U.length-1],X[y].match(/^\s*$/)&&!k?(V=X[y],delete X[y]):(W.options.trim&&(X[y]=X[y].trim()),W.options.normalize&&(X[y]=X[y].replace(/\s{2,}/g," ").trim()),X[y]=W.options.valueProcessors?c(W.options.valueProcessors,X[y],ne):X[y],(0,p.default)(X).length===1&&y in X&&!W.EXPLICIT_CHARKEY&&(X=X[y])),f(X)&&(X=W.options.emptyTag!==""?W.options.emptyTag:V),W.options.validator!=null&&(M="/"+function(){var I,B,z;for(z=[],I=0,B=U.length;I<B;I++)H=U[I],z.push(H["#name"]);return z}().concat(ne).join("/"),function(){var I;try{X=W.options.validator(M,K&&K[ne],X)}catch(B){return I=B,W.emit("error",I)}}()),W.options.explicitChildren&&!W.options.mergeAttrs&&(X===void 0?"undefined":(0,e.default)(X))==="object")if(W.options.preserveChildrenOrder){if(K){K[W.options.childkey]=K[W.options.childkey]||[],ie={};for(G in X)_.call(X,G)&&(ie[G]=X[G]);K[W.options.childkey].push(ie),delete X["#name"],(0,p.default)(X).length===1&&y in X&&!W.EXPLICIT_CHARKEY&&(X=X[y])}}else H={},W.options.attrkey in X&&(H[W.options.attrkey]=X[W.options.attrkey],delete X[W.options.attrkey]),!W.options.charsAsChildren&&W.options.charkey in X&&(H[W.options.charkey]=X[W.options.charkey],delete X[W.options.charkey]),(0,o.default)(X).length>0&&(H[W.options.childkey]=X),X=H;return U.length>0?W.assignOrPush(K,ne,X):(W.options.explicitRoot&&(Z=X,X={},X[ne]=Z),W.resultObject=X,W.saxParser.ended=!0,W.emit("end",W.resultObject))}}(this),j=function(W){return function(k){var V,G;if(G=U[U.length-1])return G[y]+=k,W.options.explicitChildren&&W.options.preserveChildrenOrder&&W.options.charsAsChildren&&(W.options.includeWhiteChars||k.replace(/\\n/g,"").trim()!=="")&&(G[W.options.childkey]=G[W.options.childkey]||[],V={"#name":"__text__"},V[y]=k,W.options.normalize&&(V[y]=V[y].replace(/\s{2,}/g," ").trim()),G[W.options.childkey].push(V)),G}}(this),this.saxParser.ontext=j,this.saxParser.oncdata=function(W){return function(k){var V;if(V=j(k))return V.cdata=!0}}()},D.prototype.parseString=function(R,y){var j;y!=null&&typeof y=="function"&&(this.on("end",function(U){return this.reset(),y(null,U)}),this.on("error",function(U){return this.reset(),y(U)}));try{return R=R.toString(),R.trim()===""?(this.emit("end",null),!0):(R=a.stripBOM(R),this.options.async?(this.remaining=R,h(this.processAsync),this.saxParser):this.saxParser.write(R).close())}catch(U){if(j=U,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",j),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw j}},D}(d.EventEmitter),S.parseString=function(v,D,R){var y,j,U;return R!=null?(typeof R=="function"&&(y=R),(D===void 0?"undefined":(0,e.default)(D))==="object"&&(j=D)):(typeof D=="function"&&(y=D),j={}),U=new S.Parser(j),U.parseString(v,y)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(t,i,S){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),S.normalize=function(g){return g.toLowerCase()},S.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},S.stripPrefix=function(g){return g.replace(m,"")},S.parseNumbers=function(g){return isNaN(g)||(g=g%1==0?parseInt(g,10):parseFloat(g)),g},S.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],213:[function(t,i,S){"use strict";(function(){var m,g,o,l,p=function(a,r){function d(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return d.prototype=r.prototype,a.prototype=new d,a.__super__=r.prototype,a},u={}.hasOwnProperty;g=t("./defaults"),m=t("./builder"),o=t("./parser"),l=t("./processors"),S.defaults=g.defaults,S.processors=l,S.ValidationError=function(e){function a(r){this.message=r}return p(a,e),a}(Error),S.Builder=m.Builder,S.Parser=o.Parser,S.parseString=o.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(t,i,S){"use strict";function m(a){return a&&a.__esModule?a:{default:a}}var g=t("babel-runtime/core-js/object/get-prototype-of"),o=m(g),l=t("babel-runtime/helpers/typeof"),p=m(l),u=t("babel-runtime/core-js/object/assign"),e=m(u);(function(){var a,r,d,f,c,A,w=[].slice,h={}.hasOwnProperty;a=function(){var E,_,v,D,R,y;if(y=arguments[0],R=2<=arguments.length?w.call(arguments,1):[],f(e.default))e.default.apply(null,arguments);else for(E=0,v=R.length;E<v;E++)if((D=R[E])!=null)for(_ in D)h.call(D,_)&&(y[_]=D[_]);return y},f=function(E){return!!E&&Object.prototype.toString.call(E)==="[object Function]"},c=function(E){var _;return!!E&&((_=E===void 0?"undefined":(0,p.default)(E))==="function"||_==="object")},r=function(E){return f(Array.isArray)?Array.isArray(E):Object.prototype.toString.call(E)==="[object Array]"},d=function(E){var _;if(r(E))return!E.length;for(_ in E)if(h.call(E,_))return!1;return!0},A=function(E){var _,v;return c(E)&&(v=(0,o.default)(E))&&(_=v.constructor)&&typeof _=="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},i.exports.assign=a,i.exports.isFunction=f,i.exports.isObject=c,i.exports.isArray=r,i.exports.isEmpty=d,i.exports.isPlainObject=A}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){i.exports=function(){function o(l,p,u){if(this.options=l.options,this.stringify=l.stringify,p==null)throw new Error("Missing attribute name of element "+l.name);if(u==null)throw new Error("Missing attribute value for attribute "+p+" of element "+l.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(u)}return o.prototype.clone=function(){return(0,g.default)(this)},o.prototype.toString=function(l){return this.options.writer.set(l).attribute(this)},o}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a,r,d,f){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");if(a==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!d)throw new Error("Missing DTD attribute default");if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(f&&!d.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(a),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=d}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],219:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(a)}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],220:[function(t,i,S){"use strict";(function(){var m,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)l.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},l={}.hasOwnProperty;g=t("./Utility").isObject,m=t("./XMLNode"),i.exports=function(p){function u(e,a,r,d){if(u.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(d==null)throw new Error("Missing entity value");if(this.pe=!!a,this.name=this.stringify.eleName(r),g(d)){if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity");if(d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(d)}return o(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},u}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(t,i,S){"use strict";(function(){var m,g=function(p,u){function e(){this.constructor=p}for(var a in u)o.call(u,a)&&(p[a]=u[a]);return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},o={}.hasOwnProperty;m=t("./XMLNode"),i.exports=function(l){function p(u,e,a){if(p.__super__.constructor.call(this,u),e==null)throw new Error("Missing notation name");if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return g(p,l),p.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],222:[function(t,i,S){"use strict";(function(){var m,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)l.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},l={}.hasOwnProperty;g=t("./Utility").isObject,m=t("./XMLNode"),i.exports=function(p){function u(e,a,r,d){var f;u.__super__.constructor.call(this,e),g(a)&&(f=a,a=f.version,r=f.encoding,d=f.standalone),a||(a="1.0"),this.version=this.stringify.xmlVersion(a),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return o(u,p),u.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},u}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e=function(d,f){function c(){this.constructor=d}for(var A in f)a.call(f,A)&&(d[A]=f[A]);return c.prototype=f.prototype,d.prototype=new c,d.__super__=f.prototype,d},a={}.hasOwnProperty;u=t("./Utility").isObject,p=t("./XMLNode"),m=t("./XMLDTDAttList"),o=t("./XMLDTDEntity"),g=t("./XMLDTDElement"),l=t("./XMLDTDNotation"),i.exports=function(r){function d(f,c,A){var w,h;d.__super__.constructor.call(this,f),this.documentObject=f,u(c)&&(w=c,c=w.pubID,A=w.sysID),A==null&&(h=[c,A],A=h[0],c=h[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),A!=null&&(this.sysID=this.stringify.dtdSysID(A))}return e(d,r),d.prototype.element=function(f,c){var A;return A=new g(this,f,c),this.children.push(A),this},d.prototype.attList=function(f,c,A,w,h){var P;return P=new m(this,f,c,A,w,h),this.children.push(P),this},d.prototype.entity=function(f,c){var A;return A=new o(this,!1,f,c),this.children.push(A),this},d.prototype.pEntity=function(f,c){var A;return A=new o(this,!0,f,c),this.children.push(A),this},d.prototype.notation=function(f,c){var A;return A=new l(this,f,c),this.children.push(A),this},d.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},d.prototype.ele=function(f,c){return this.element(f,c)},d.prototype.att=function(f,c,A,w,h){return this.attList(f,c,A,w,h)},d.prototype.ent=function(f,c){return this.entity(f,c)},d.prototype.pent=function(f,c){return this.pEntity(f,c)},d.prototype.not=function(f,c){return this.notation(f,c)},d.prototype.up=function(){return this.root()||this.documentObject},d}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(t,i,S){"use strict";(function(){var m,g,o,l,p=function(a,r){function d(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return d.prototype=r.prototype,a.prototype=new d,a.__super__=r.prototype,a},u={}.hasOwnProperty;l=t("./Utility").isPlainObject,m=t("./XMLNode"),o=t("./XMLStringifier"),g=t("./XMLStringWriter"),i.exports=function(e){function a(r){a.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new g),this.options=r,this.stringify=new o(r),this.isDocument=!0}return p(a,e),a.prototype.end=function(r){var d;return r?l(r)&&(d=r,r=this.options.writer.set(d)):r=this.options.writer,r.document(this)},a.prototype.toString=function(r){return this.options.writer.set(r).document(this)},a}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w,h,P,E,_,v,D={}.hasOwnProperty;v=t("./Utility"),E=v.isObject,P=v.isFunction,_=v.isPlainObject,d=t("./XMLElement"),g=t("./XMLCData"),o=t("./XMLComment"),c=t("./XMLRaw"),h=t("./XMLText"),f=t("./XMLProcessingInstruction"),a=t("./XMLDeclaration"),r=t("./XMLDocType"),l=t("./XMLDTDAttList"),u=t("./XMLDTDEntity"),p=t("./XMLDTDElement"),e=t("./XMLDTDNotation"),m=t("./XMLAttribute"),w=t("./XMLStringifier"),A=t("./XMLStringWriter"),i.exports=function(){function R(y,j,U){var W;y||(y={}),y.writer?_(y.writer)&&(W=y.writer,y.writer=new A(W)):y.writer=new A(y),this.options=y,this.writer=y.writer,this.stringify=new w(y),this.onDataCallback=j||function(){},this.onEndCallback=U||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return R.prototype.node=function(y,j,U){var W;if(y==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),y=y.valueOf(),j==null&&(j={}),j=j.valueOf(),E(j)||(W=[j,U],U=W[0],j=W[1]),this.currentNode=new d(this,y,j),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,U!=null&&this.text(U),this},R.prototype.element=function(y,j,U){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(y,j,U)},R.prototype.attribute=function(y,j){var U,W;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(y!=null&&(y=y.valueOf()),E(y))for(U in y)D.call(y,U)&&(W=y[U],this.attribute(U,W));else P(j)&&(j=j.apply()),this.options.skipNullAttributes&&j==null||(this.currentNode.attributes[y]=new m(this,y,j));return this},R.prototype.text=function(y){var j;return this.openCurrent(),j=new h(this,y),this.onData(this.writer.text(j,this.currentLevel+1)),this},R.prototype.cdata=function(y){var j;return this.openCurrent(),j=new g(this,y),this.onData(this.writer.cdata(j,this.currentLevel+1)),this},R.prototype.comment=function(y){var j;return this.openCurrent(),j=new o(this,y),this.onData(this.writer.comment(j,this.currentLevel+1)),this},R.prototype.raw=function(y){var j;return this.openCurrent(),j=new c(this,y),this.onData(this.writer.raw(j,this.currentLevel+1)),this},R.prototype.instruction=function(y,j){var U,W,k,V,G;if(this.openCurrent(),y!=null&&(y=y.valueOf()),j!=null&&(j=j.valueOf()),Array.isArray(y))for(U=0,V=y.length;U<V;U++)W=y[U],this.instruction(W);else if(E(y))for(W in y)D.call(y,W)&&(k=y[W],this.instruction(W,k));else P(j)&&(j=j.apply()),G=new f(this,y,j),this.onData(this.writer.processingInstruction(G,this.currentLevel+1));return this},R.prototype.declaration=function(y,j,U){var W;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return W=new a(this,y,j,U),this.onData(this.writer.declaration(W,this.currentLevel+1)),this},R.prototype.doctype=function(y,j,U){if(this.openCurrent(),y==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new r(this,j,U),this.currentNode.rootNodeName=y,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},R.prototype.dtdElement=function(y,j){var U;return this.openCurrent(),U=new p(this,y,j),this.onData(this.writer.dtdElement(U,this.currentLevel+1)),this},R.prototype.attList=function(y,j,U,W,k){var V;return this.openCurrent(),V=new l(this,y,j,U,W,k),this.onData(this.writer.dtdAttList(V,this.currentLevel+1)),this},R.prototype.entity=function(y,j){var U;return this.openCurrent(),U=new u(this,!1,y,j),this.onData(this.writer.dtdEntity(U,this.currentLevel+1)),this},R.prototype.pEntity=function(y,j){var U;return this.openCurrent(),U=new u(this,!0,y,j),this.onData(this.writer.dtdEntity(U,this.currentLevel+1)),this},R.prototype.notation=function(y,j){var U;return this.openCurrent(),U=new e(this,y,j),this.onData(this.writer.dtdNotation(U,this.currentLevel+1)),this},R.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},R.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},R.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},R.prototype.openNode=function(y){if(!y.isOpen)return!this.root&&this.currentLevel===0&&y instanceof d&&(this.root=y),this.onData(this.writer.openNode(y,this.currentLevel)),y.isOpen=!0},R.prototype.closeNode=function(y){if(!y.isClosed)return this.onData(this.writer.closeNode(y,this.currentLevel)),y.isClosed=!0},R.prototype.onData=function(y){return this.documentStarted=!0,this.onDataCallback(y)},R.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},R.prototype.ele=function(){return this.element.apply(this,arguments)},R.prototype.nod=function(y,j,U){return this.node(y,j,U)},R.prototype.txt=function(y){return this.text(y)},R.prototype.dat=function(y){return this.cdata(y)},R.prototype.com=function(y){return this.comment(y)},R.prototype.ins=function(y,j){return this.instruction(y,j)},R.prototype.dec=function(y,j,U){return this.declaration(y,j,U)},R.prototype.dtd=function(y,j,U){return this.doctype(y,j,U)},R.prototype.e=function(y,j,U){return this.element(y,j,U)},R.prototype.n=function(y,j,U){return this.node(y,j,U)},R.prototype.t=function(y){return this.text(y)},R.prototype.d=function(y){return this.cdata(y)},R.prototype.c=function(y){return this.comment(y)},R.prototype.r=function(y){return this.raw(y)},R.prototype.i=function(y,j){return this.instruction(y,j)},R.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},R.prototype.ent=function(y,j){return this.entity(y,j)},R.prototype.pent=function(y,j){return this.pEntity(y,j)},R.prototype.not=function(y,j){return this.notation(y,j)},R}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l,p,u,e,a=function(f,c){function A(){this.constructor=f}for(var w in c)r.call(c,w)&&(f[w]=c[w]);return A.prototype=c.prototype,f.prototype=new A,f.__super__=c.prototype,f},r={}.hasOwnProperty;e=t("./Utility"),u=e.isObject,p=e.isFunction,l=t("./XMLNode"),o=t("./XMLAttribute"),i.exports=function(d){function f(c,A,w){if(f.__super__.constructor.call(this,c),A==null)throw new Error("Missing element name");this.name=this.stringify.eleName(A),this.attributes={},w!=null&&this.attribute(w),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return a(f,d),f.prototype.clone=function(){var c,A,w,h;w=(0,g.default)(this),w.isRoot&&(w.documentObject=null),w.attributes={},h=this.attributes;for(A in h)r.call(h,A)&&(c=h[A],w.attributes[A]=c.clone());return w.children=[],this.children.forEach(function(P){var E;return E=P.clone(),E.parent=w,w.children.push(E)}),w},f.prototype.attribute=function(c,A){var w,h;if(c!=null&&(c=c.valueOf()),u(c))for(w in c)r.call(c,w)&&(h=c[w],this.attribute(w,h));else p(A)&&(A=A.apply()),this.options.skipNullAttributes&&A==null||(this.attributes[c]=new o(this,c,A));return this},f.prototype.removeAttribute=function(c){var A,w,h;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(w=0,h=c.length;w<h;w++)A=c[w],delete this.attributes[A];else delete this.attributes[c];return this},f.prototype.toString=function(c){return this.options.writer.set(c).element(this)},f.prototype.att=function(c,A){return this.attribute(c,A)},f.prototype.a=function(c,A){return this.attribute(c,A)},f}(l)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A={}.hasOwnProperty;c=t("./Utility"),f=c.isObject,d=c.isFunction,r=c.isEmpty,p=null,m=null,g=null,o=null,l=null,e=null,a=null,u=null,i.exports=function(){function w(h){this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=t("./XMLElement"),m=t("./XMLCData"),g=t("./XMLComment"),o=t("./XMLDeclaration"),l=t("./XMLDocType"),e=t("./XMLRaw"),a=t("./XMLText"),u=t("./XMLProcessingInstruction"))}return w.prototype.element=function(h,P,E){var _,v,D,R,y,j,U,W,k,V;if(j=null,P==null&&(P={}),P=P.valueOf(),f(P)||(k=[P,E],E=k[0],P=k[1]),h!=null&&(h=h.valueOf()),Array.isArray(h))for(D=0,U=h.length;D<U;D++)v=h[D],j=this.element(v);else if(d(h))j=this.element(h.apply());else if(f(h)){for(y in h)if(A.call(h,y))if(V=h[y],d(V)&&(V=V.apply()),f(V)&&r(V)&&(V=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&y.indexOf(this.stringify.convertAttKey)===0)j=this.attribute(y.substr(this.stringify.convertAttKey.length),V);else if(!this.options.separateArrayItems&&Array.isArray(V))for(R=0,W=V.length;R<W;R++)v=V[R],_={},_[y]=v,j=this.element(_);else f(V)?(j=this.element(y),j.element(V)):j=this.element(y,V)}else j=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&h.indexOf(this.stringify.convertTextKey)===0?this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&h.indexOf(this.stringify.convertCDataKey)===0?this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&h.indexOf(this.stringify.convertCommentKey)===0?this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&h.indexOf(this.stringify.convertRawKey)===0?this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&h.indexOf(this.stringify.convertPIKey)===0?this.instruction(h.substr(this.stringify.convertPIKey.length),E):this.node(h,P,E);if(j==null)throw new Error("Could not create any elements with: "+h);return j},w.prototype.insertBefore=function(h,P,E){var _,v,D;if(this.isRoot)throw new Error("Cannot insert elements at root level");return v=this.parent.children.indexOf(this),D=this.parent.children.splice(v),_=this.parent.element(h,P,E),Array.prototype.push.apply(this.parent.children,D),_},w.prototype.insertAfter=function(h,P,E){var _,v,D;if(this.isRoot)throw new Error("Cannot insert elements at root level");return v=this.parent.children.indexOf(this),D=this.parent.children.splice(v+1),_=this.parent.element(h,P,E),Array.prototype.push.apply(this.parent.children,D),_},w.prototype.remove=function(){var h;if(this.isRoot)throw new Error("Cannot remove the root element");return h=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[h,h-h+1].concat([])),this.parent},w.prototype.node=function(h,P,E){var _,v;return h!=null&&(h=h.valueOf()),P||(P={}),P=P.valueOf(),f(P)||(v=[P,E],E=v[0],P=v[1]),_=new p(this,h,P),E!=null&&_.text(E),this.children.push(_),_},w.prototype.text=function(h){var P;return P=new a(this,h),this.children.push(P),this},w.prototype.cdata=function(h){var P;return P=new m(this,h),this.children.push(P),this},w.prototype.comment=function(h){var P;return P=new g(this,h),this.children.push(P),this},w.prototype.commentBefore=function(h){var P,E;return P=this.parent.children.indexOf(this),E=this.parent.children.splice(P),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,E),this},w.prototype.commentAfter=function(h){var P,E;return P=this.parent.children.indexOf(this),E=this.parent.children.splice(P+1),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,E),this},w.prototype.raw=function(h){var P;return P=new e(this,h),this.children.push(P),this},w.prototype.instruction=function(h,P){var E,_,v,D,R;if(h!=null&&(h=h.valueOf()),P!=null&&(P=P.valueOf()),Array.isArray(h))for(D=0,R=h.length;D<R;D++)E=h[D],this.instruction(E);else if(f(h))for(E in h)A.call(h,E)&&(_=h[E],this.instruction(E,_));else d(P)&&(P=P.apply()),v=new u(this,h,P),this.children.push(v);return this},w.prototype.instructionBefore=function(h,P){var E,_;return E=this.parent.children.indexOf(this),_=this.parent.children.splice(E),this.parent.instruction(h,P),Array.prototype.push.apply(this.parent.children,_),this},w.prototype.instructionAfter=function(h,P){var E,_;return E=this.parent.children.indexOf(this),_=this.parent.children.splice(E+1),this.parent.instruction(h,P),Array.prototype.push.apply(this.parent.children,_),this},w.prototype.declaration=function(h,P,E){var _,v;return _=this.document(),v=new o(_,h,P,E),_.children[0]instanceof o?_.children[0]=v:_.children.unshift(v),_.root()||_},w.prototype.doctype=function(h,P){var E,_,v,D,R,y,j,U,W,k;for(_=this.document(),v=new l(_,h,P),W=_.children,D=R=0,j=W.length;R<j;D=++R)if((E=W[D])instanceof l)return _.children[D]=v,v;for(k=_.children,D=y=0,U=k.length;y<U;D=++y)if(E=k[D],E.isRoot)return _.children.splice(D,0,v),v;return _.children.push(v),v},w.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},w.prototype.root=function(){var h;for(h=this;h;){if(h.isDocument)return h.rootObject;if(h.isRoot)return h;h=h.parent}},w.prototype.document=function(){var h;for(h=this;h;){if(h.isDocument)return h;h=h.parent}},w.prototype.end=function(h){return this.document().end(h)},w.prototype.prev=function(){var h;if((h=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[h-1]},w.prototype.next=function(){var h;if((h=this.parent.children.indexOf(this))===-1||h===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[h+1]},w.prototype.importDocument=function(h){var P;return P=h.root().clone(),P.parent=this,P.isRoot=!1,this.children.push(P),this},w.prototype.ele=function(h,P,E){return this.element(h,P,E)},w.prototype.nod=function(h,P,E){return this.node(h,P,E)},w.prototype.txt=function(h){return this.text(h)},w.prototype.dat=function(h){return this.cdata(h)},w.prototype.com=function(h){return this.comment(h)},w.prototype.ins=function(h,P){return this.instruction(h,P)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(h,P,E){return this.declaration(h,P,E)},w.prototype.dtd=function(h,P){return this.doctype(h,P)},w.prototype.e=function(h,P,E){return this.element(h,P,E)},w.prototype.n=function(h,P,E){return this.node(h,P,E)},w.prototype.t=function(h){return this.text(h)},w.prototype.d=function(h){return this.cdata(h)},w.prototype.c=function(h){return this.comment(h)},w.prototype.r=function(h){return this.raw(h)},w.prototype.i=function(h,P){return this.instruction(h,P)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(h){return this.importDocument(h)},w}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r,d){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),d&&(this.value=this.stringify.insValue(d))}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w=function(E,_){function v(){this.constructor=E}for(var D in _)h.call(_,D)&&(E[D]=_[D]);return v.prototype=_.prototype,E.prototype=new v,E.__super__=_.prototype,E},h={}.hasOwnProperty;e=t("./XMLDeclaration"),a=t("./XMLDocType"),m=t("./XMLCData"),g=t("./XMLComment"),r=t("./XMLElement"),f=t("./XMLRaw"),c=t("./XMLText"),d=t("./XMLProcessingInstruction"),o=t("./XMLDTDAttList"),l=t("./XMLDTDElement"),p=t("./XMLDTDEntity"),u=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),i.exports=function(P){function E(_,v){E.__super__.constructor.call(this,v),this.stream=_}return w(E,P),E.prototype.document=function(_){var v,D,R,y,j,U,W,k;for(U=_.children,D=0,y=U.length;D<y;D++)v=U[D],v.isLastRootNode=!1;for(_.children[_.children.length-1].isLastRootNode=!0,W=_.children,k=[],R=0,j=W.length;R<j;R++)switch(v=W[R],!1){case!(v instanceof e):k.push(this.declaration(v));break;case!(v instanceof a):k.push(this.docType(v));break;case!(v instanceof g):k.push(this.comment(v));break;case!(v instanceof d):k.push(this.processingInstruction(v));break;default:k.push(this.element(v))}return k},E.prototype.attribute=function(_){return this.stream.write(" "+_.name+'="'+_.value+'"')},E.prototype.cdata=function(_,v){return this.stream.write(this.space(v)+"<![CDATA["+_.text+"]]>"+this.endline(_))},E.prototype.comment=function(_,v){return this.stream.write(this.space(v)+"<!-- "+_.text+" -->"+this.endline(_))},E.prototype.declaration=function(_,v){return this.stream.write(this.space(v)),this.stream.write('<?xml version="'+_.version+'"'),_.encoding!=null&&this.stream.write(' encoding="'+_.encoding+'"'),_.standalone!=null&&this.stream.write(' standalone="'+_.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(_))},E.prototype.docType=function(_,v){var D,R,y,j;if(v||(v=0),this.stream.write(this.space(v)),this.stream.write("<!DOCTYPE "+_.root().name),_.pubID&&_.sysID?this.stream.write(' PUBLIC "'+_.pubID+'" "'+_.sysID+'"'):_.sysID&&this.stream.write(' SYSTEM "'+_.sysID+'"'),_.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(_)),j=_.children,R=0,y=j.length;R<y;R++)switch(D=j[R],!1){case!(D instanceof o):this.dtdAttList(D,v+1);break;case!(D instanceof l):this.dtdElement(D,v+1);break;case!(D instanceof p):this.dtdEntity(D,v+1);break;case!(D instanceof u):this.dtdNotation(D,v+1);break;case!(D instanceof m):this.cdata(D,v+1);break;case!(D instanceof g):this.comment(D,v+1);break;case!(D instanceof d):this.processingInstruction(D,v+1);break;default:throw new Error("Unknown DTD node type: "+D.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(_))},E.prototype.element=function(_,v){var D,R,y,j,U,W,k,V;v||(v=0),V=this.space(v),this.stream.write(V+"<"+_.name),W=_.attributes;for(U in W)h.call(W,U)&&(D=W[U],this.attribute(D));if(_.children.length===0||_.children.every(function(G){return G.value===""}))this.allowEmpty?this.stream.write("></"+_.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&_.children.length===1&&_.children[0].value!=null)this.stream.write(">"),this.stream.write(_.children[0].value),this.stream.write("</"+_.name+">");else{for(this.stream.write(">"+this.newline),k=_.children,y=0,j=k.length;y<j;y++)switch(R=k[y],!1){case!(R instanceof m):this.cdata(R,v+1);break;case!(R instanceof g):this.comment(R,v+1);break;case!(R instanceof r):this.element(R,v+1);break;case!(R instanceof f):this.raw(R,v+1);break;case!(R instanceof c):this.text(R,v+1);break;case!(R instanceof d):this.processingInstruction(R,v+1);break;default:throw new Error("Unknown XML node type: "+R.constructor.name)}this.stream.write(V+"</"+_.name+">")}return this.stream.write(this.endline(_))},E.prototype.processingInstruction=function(_,v){return this.stream.write(this.space(v)+"<?"+_.target),_.value&&this.stream.write(" "+_.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(_))},E.prototype.raw=function(_,v){return this.stream.write(this.space(v)+_.value+this.endline(_))},E.prototype.text=function(_,v){return this.stream.write(this.space(v)+_.value+this.endline(_))},E.prototype.dtdAttList=function(_,v){return this.stream.write(this.space(v)+"<!ATTLIST "+_.elementName+" "+_.attributeName+" "+_.attributeType),_.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+_.defaultValueType),_.defaultValue&&this.stream.write(' "'+_.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(_))},E.prototype.dtdElement=function(_,v){return this.stream.write(this.space(v)+"<!ELEMENT "+_.name+" "+_.value),this.stream.write(this.spacebeforeslash+">"+this.endline(_))},E.prototype.dtdEntity=function(_,v){return this.stream.write(this.space(v)+"<!ENTITY"),_.pe&&this.stream.write(" %"),this.stream.write(" "+_.name),_.value?this.stream.write(' "'+_.value+'"'):(_.pubID&&_.sysID?this.stream.write(' PUBLIC "'+_.pubID+'" "'+_.sysID+'"'):_.sysID&&this.stream.write(' SYSTEM "'+_.sysID+'"'),_.nData&&this.stream.write(" NDATA "+_.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(_))},E.prototype.dtdNotation=function(_,v){return this.stream.write(this.space(v)+"<!NOTATION "+_.name),_.pubID&&_.sysID?this.stream.write(' PUBLIC "'+_.pubID+'" "'+_.sysID+'"'):_.pubID?this.stream.write(' PUBLIC "'+_.pubID+'"'):_.sysID&&this.stream.write(' SYSTEM "'+_.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(_))},E.prototype.endline=function(_){return _.isLastRootNode?"":this.newline},E}(A)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e,a,r,d,f,c,A,w=function(E,_){function v(){this.constructor=E}for(var D in _)h.call(_,D)&&(E[D]=_[D]);return v.prototype=_.prototype,E.prototype=new v,E.__super__=_.prototype,E},h={}.hasOwnProperty;e=t("./XMLDeclaration"),a=t("./XMLDocType"),m=t("./XMLCData"),g=t("./XMLComment"),r=t("./XMLElement"),f=t("./XMLRaw"),c=t("./XMLText"),d=t("./XMLProcessingInstruction"),o=t("./XMLDTDAttList"),l=t("./XMLDTDElement"),p=t("./XMLDTDEntity"),u=t("./XMLDTDNotation"),A=t("./XMLWriterBase"),i.exports=function(P){function E(_){E.__super__.constructor.call(this,_)}return w(E,P),E.prototype.document=function(_){var v,D,R,y,j;for(this.textispresent=!1,y="",j=_.children,D=0,R=j.length;D<R;D++)v=j[D],y+=function(){switch(!1){case!(v instanceof e):return this.declaration(v);case!(v instanceof a):return this.docType(v);case!(v instanceof g):return this.comment(v);case!(v instanceof d):return this.processingInstruction(v);default:return this.element(v,0)}}.call(this);return this.pretty&&y.slice(-this.newline.length)===this.newline&&(y=y.slice(0,-this.newline.length)),y},E.prototype.attribute=function(_){return" "+_.name+'="'+_.value+'"'},E.prototype.cdata=function(_,v){return this.space(v)+"<![CDATA["+_.text+"]]>"+this.newline},E.prototype.comment=function(_,v){return this.space(v)+"<!-- "+_.text+" -->"+this.newline},E.prototype.declaration=function(_,v){var D;return D=this.space(v),D+='<?xml version="'+_.version+'"',_.encoding!=null&&(D+=' encoding="'+_.encoding+'"'),_.standalone!=null&&(D+=' standalone="'+_.standalone+'"'),D+=this.spacebeforeslash+"?>",D+=this.newline},E.prototype.docType=function(_,v){var D,R,y,j,U;if(v||(v=0),j=this.space(v),j+="<!DOCTYPE "+_.root().name,_.pubID&&_.sysID?j+=' PUBLIC "'+_.pubID+'" "'+_.sysID+'"':_.sysID&&(j+=' SYSTEM "'+_.sysID+'"'),_.children.length>0){for(j+=" [",j+=this.newline,U=_.children,R=0,y=U.length;R<y;R++)D=U[R],j+=function(){switch(!1){case!(D instanceof o):return this.dtdAttList(D,v+1);case!(D instanceof l):return this.dtdElement(D,v+1);case!(D instanceof p):return this.dtdEntity(D,v+1);case!(D instanceof u):return this.dtdNotation(D,v+1);case!(D instanceof m):return this.cdata(D,v+1);case!(D instanceof g):return this.comment(D,v+1);case!(D instanceof d):return this.processingInstruction(D,v+1);default:throw new Error("Unknown DTD node type: "+D.constructor.name)}}.call(this);j+="]"}return j+=this.spacebeforeslash+">",j+=this.newline},E.prototype.element=function(_,v){var D,R,y,j,U,W,k,V,G,H,ne,X,ie;v||(v=0),ie=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),X=this.space(v),V="",V+=X+"<"+_.name,G=_.attributes;for(k in G)h.call(G,k)&&(D=G[k],V+=this.attribute(D));if(_.children.length===0||_.children.every(function(Z){return Z.value===""}))this.allowEmpty?V+="></"+_.name+">"+this.newline:V+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&_.children.length===1&&_.children[0].value!=null)V+=">",V+=_.children[0].value,V+="</"+_.name+">"+this.newline;else{if(this.dontprettytextnodes){for(H=_.children,y=0,U=H.length;y<U;y++)if(R=H[y],R.value!=null){this.textispresent++,ie=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,X=this.space(v)),V+=">"+this.newline,ne=_.children,j=0,W=ne.length;j<W;j++)R=ne[j],V+=function(){switch(!1){case!(R instanceof m):return this.cdata(R,v+1);case!(R instanceof g):return this.comment(R,v+1);case!(R instanceof r):return this.element(R,v+1);case!(R instanceof f):return this.raw(R,v+1);case!(R instanceof c):return this.text(R,v+1);case!(R instanceof d):return this.processingInstruction(R,v+1);default:throw new Error("Unknown XML node type: "+R.constructor.name)}}.call(this);ie&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),V+=X+"</"+_.name+">"+this.newline}return V},E.prototype.processingInstruction=function(_,v){var D;return D=this.space(v)+"<?"+_.target,_.value&&(D+=" "+_.value),D+=this.spacebeforeslash+"?>"+this.newline},E.prototype.raw=function(_,v){return this.space(v)+_.value+this.newline},E.prototype.text=function(_,v){return this.space(v)+_.value+this.newline},E.prototype.dtdAttList=function(_,v){var D;return D=this.space(v)+"<!ATTLIST "+_.elementName+" "+_.attributeName+" "+_.attributeType,_.defaultValueType!=="#DEFAULT"&&(D+=" "+_.defaultValueType),_.defaultValue&&(D+=' "'+_.defaultValue+'"'),D+=this.spacebeforeslash+">"+this.newline},E.prototype.dtdElement=function(_,v){return this.space(v)+"<!ELEMENT "+_.name+" "+_.value+this.spacebeforeslash+">"+this.newline},E.prototype.dtdEntity=function(_,v){var D;return D=this.space(v)+"<!ENTITY",_.pe&&(D+=" %"),D+=" "+_.name,_.value?D+=' "'+_.value+'"':(_.pubID&&_.sysID?D+=' PUBLIC "'+_.pubID+'" "'+_.sysID+'"':_.sysID&&(D+=' SYSTEM "'+_.sysID+'"'),_.nData&&(D+=" NDATA "+_.nData)),D+=this.spacebeforeslash+">"+this.newline},E.prototype.dtdNotation=function(_,v){var D;return D=this.space(v)+"<!NOTATION "+_.name,_.pubID&&_.sysID?D+=' PUBLIC "'+_.pubID+'" "'+_.sysID+'"':_.pubID?D+=' PUBLIC "'+_.pubID+'"':_.sysID&&(D+=' SYSTEM "'+_.sysID+'"'),D+=this.spacebeforeslash+">"+this.newline},E.prototype.openNode=function(_,v){var D,R,y,j;if(v||(v=0),_ instanceof r){y=this.space(v)+"<"+_.name,j=_.attributes;for(R in j)h.call(j,R)&&(D=j[R],y+=this.attribute(D));return y+=(_.children?">":"/>")+this.newline}return y=this.space(v)+"<!DOCTYPE "+_.rootNodeName,_.pubID&&_.sysID?y+=' PUBLIC "'+_.pubID+'" "'+_.sysID+'"':_.sysID&&(y+=' SYSTEM "'+_.sysID+'"'),y+=(_.children?" [":">")+this.newline},E.prototype.closeNode=function(_,v){switch(v||(v=0),!1){case!(_ instanceof r):return this.space(v)+"</"+_.name+">"+this.newline;case!(_ instanceof a):return this.space(v)+"]>"+this.newline}},E}(A)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(t,i,S){"use strict";(function(){var m=function(l,p){return function(){return l.apply(p,arguments)}},g={}.hasOwnProperty;i.exports=function(){function o(l){this.assertLegalChar=m(this.assertLegalChar,this);var p,u,e;l||(l={}),this.noDoubleEncoding=l.noDoubleEncoding,u=l.stringify||{};for(p in u)g.call(u,p)&&(e=u[p],this[p]=e)}return o.prototype.eleName=function(l){return l=""+l||"",this.assertLegalChar(l)},o.prototype.eleText=function(l){return l=""+l||"",this.assertLegalChar(this.elEscape(l))},o.prototype.cdata=function(l){return l=""+l||"",l=l.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(l)},o.prototype.comment=function(l){if(l=""+l||"",l.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+l);return this.assertLegalChar(l)},o.prototype.raw=function(l){return""+l||""},o.prototype.attName=function(l){return l=""+l||""},o.prototype.attValue=function(l){return l=""+l||"",this.attEscape(l)},o.prototype.insTarget=function(l){return""+l||""},o.prototype.insValue=function(l){if(l=""+l||"",l.match(/\?>/))throw new Error("Invalid processing instruction value: "+l);return l},o.prototype.xmlVersion=function(l){if(l=""+l||"",!l.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+l);return l},o.prototype.xmlEncoding=function(l){if(l=""+l||"",!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+l);return l},o.prototype.xmlStandalone=function(l){return l?"yes":"no"},o.prototype.dtdPubID=function(l){return""+l||""},o.prototype.dtdSysID=function(l){return""+l||""},o.prototype.dtdElementValue=function(l){return""+l||""},o.prototype.dtdAttType=function(l){return""+l||""},o.prototype.dtdAttDefault=function(l){return l!=null?""+l||"":l},o.prototype.dtdEntityValue=function(l){return""+l||""},o.prototype.dtdNData=function(l){return""+l||""},o.prototype.convertAttKey="@",o.prototype.convertPIKey="?",o.prototype.convertTextKey="#text",o.prototype.convertCDataKey="#cdata",o.prototype.convertCommentKey="#comment",o.prototype.convertRawKey="#raw",o.prototype.assertLegalChar=function(l){var p;if(p=l.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+l+" at index "+p.index);return l},o.prototype.elEscape=function(l){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},o.prototype.attEscape=function(l){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},o}()}).call(void 0)},{}],233:[function(t,i,S){"use strict";var m=t("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,l=function(e,a){function r(){this.constructor=e}for(var d in a)p.call(a,d)&&(e[d]=a[d]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},p={}.hasOwnProperty;o=t("./XMLNode"),i.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return l(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).text(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(t,i,S){"use strict";(function(){var m={}.hasOwnProperty;i.exports=function(){function g(o){var l,p,u,e,a,r,d,f,c;o||(o={}),this.pretty=o.pretty||!1,this.allowEmpty=(p=o.allowEmpty)!=null&&p,this.pretty?(this.indent=(u=o.indent)!=null?u:" ",this.newline=(e=o.newline)!=null?e:`
|
|
|
`,this.offset=(a=o.offset)!=null?a:0,this.dontprettytextnodes=(r=o.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(d=o.spacebeforeslash)!=null?d:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=o.writer||{};for(l in f)m.call(f,l)&&(c=f[l],this[l]=c)}return g.prototype.set=function(o){var l,p,u;o||(o={}),"pretty"in o&&(this.pretty=o.pretty),"allowEmpty"in o&&(this.allowEmpty=o.allowEmpty),this.pretty?(this.indent="indent"in o?o.indent:" ",this.newline="newline"in o?o.newline:`
|
|
|
`,this.offset="offset"in o?o.offset:0,this.dontprettytextnodes="dontprettytextnodes"in o?o.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in o?o.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=o.writer||{};for(l in p)m.call(p,l)&&(u=p[l],this[l]=u);return this},g.prototype.space=function(o){var l;return this.pretty?(l=(o||0)+this.offset+1,l>0?new Array(l).join(this.indent):""):""},g}()}).call(void 0)},{}],235:[function(t,i,S){"use strict";(function(){var m,g,o,l,p,u,e;e=t("./Utility"),p=e.assign,u=e.isFunction,m=t("./XMLDocument"),g=t("./XMLDocumentCB"),l=t("./XMLStringWriter"),o=t("./XMLStreamWriter"),i.exports.create=function(a,r,d,f){var c,A;if(a==null)throw new Error("Root element needs a name");return f=p({},r,d,f),c=new m(f),A=c.element(a),f.headless||(c.declaration(f),f.pubID==null&&f.sysID==null||c.doctype(f)),A},i.exports.begin=function(a,r,d){var f;return u(a)&&(f=[a,r],r=f[0],d=f[1],a={}),r?new g(a,r,d):new m(a)},i.exports.stringWriter=function(a){return new l(a)},i.exports.streamWriter=function(a,r){return new o(a,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(t,i,S){function m(){for(var o={},l=0;l<arguments.length;l++){var p=arguments[l];for(var u in p)g.call(p,u)&&(o[u]=p[u])}return o}i.exports=m;var g=Object.prototype.hasOwnProperty},{}],237:[function(t,i,S){"use strict";function m(f,c,A){l.isBuffer(c)||(c=new l(c)),l.isBuffer(A)||(A=new l(A)),c.length>r?c=f(c):c.length<r&&(c=l.concat([c,d],r));for(var w=new l(r),h=new l(r),P=0;P<r;P++)w[P]=54^c[P],h[P]=92^c[P];var E=f(l.concat([w,A]));return f(l.concat([h,E]))}function g(f,c){f=f||"sha1";var A=a[f],w=[],h=0;return A||o("algorithm:",f,"is not yet supported"),{update:function(E){return l.isBuffer(E)||(E=new l(E)),w.push(E),h+=E.length,this},digest:function(E){var _=l.concat(w),v=c?m(A,c,_):A(_);return w=null,E?v.toString(E):v}}}function o(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var l=t("buffer").Buffer,p=t("./sha"),u=t("./sha256"),e=t("./md5"),a={sha1:p,sha256:u,md5:e},r=64,d=new l(r);d.fill(0),S.createHash=function(f){return g(f)},S.createHmac=function(f,c){return g(f,c)},function(f,c){for(var A in f)c(f[A],A)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(f){S[f]=function(){o("sorry,",f,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(t,i,S){"use strict";function m(a,r){if(a.length%p!=0){var d=a.length+(p-a.length%p);a=l.concat([a,u],d)}for(var f=[],c=r?a.readInt32BE:a.readInt32LE,A=0;A<a.length;A+=p)f.push(c.call(a,A));return f}function g(a,r,d){for(var f=new l(r),c=d?f.writeInt32BE:f.writeInt32LE,A=0;A<a.length;A++)c.call(f,a[A],4*A,!0);return f}function o(a,r,d,f){return l.isBuffer(a)||(a=new l(a)),g(r(m(a,f),a.length*e),d,f)}var l=t("buffer").Buffer,p=4,u=new l(p);u.fill(0);var e=8;i.exports={hash:o}},{buffer:38}],239:[function(t,i,S){"use strict";function m(d,f){d[f>>5]|=128<<f%32,d[14+(f+64>>>9<<4)]=f;for(var c=1732584193,A=-271733879,w=-1732584194,h=271733878,P=0;P<d.length;P+=16){var E=c,_=A,v=w,D=h;c=o(c,A,w,h,d[P+0],7,-680876936),h=o(h,c,A,w,d[P+1],12,-389564586),w=o(w,h,c,A,d[P+2],17,606105819),A=o(A,w,h,c,d[P+3],22,-1044525330),c=o(c,A,w,h,d[P+4],7,-176418897),h=o(h,c,A,w,d[P+5],12,1200080426),w=o(w,h,c,A,d[P+6],17,-1473231341),A=o(A,w,h,c,d[P+7],22,-45705983),c=o(c,A,w,h,d[P+8],7,1770035416),h=o(h,c,A,w,d[P+9],12,-1958414417),w=o(w,h,c,A,d[P+10],17,-42063),A=o(A,w,h,c,d[P+11],22,-1990404162),c=o(c,A,w,h,d[P+12],7,1804603682),h=o(h,c,A,w,d[P+13],12,-40341101),w=o(w,h,c,A,d[P+14],17,-1502002290),A=o(A,w,h,c,d[P+15],22,1236535329),c=l(c,A,w,h,d[P+1],5,-165796510),h=l(h,c,A,w,d[P+6],9,-1069501632),w=l(w,h,c,A,d[P+11],14,643717713),A=l(A,w,h,c,d[P+0],20,-373897302),c=l(c,A,w,h,d[P+5],5,-701558691),h=l(h,c,A,w,d[P+10],9,38016083),w=l(w,h,c,A,d[P+15],14,-660478335),A=l(A,w,h,c,d[P+4],20,-405537848),c=l(c,A,w,h,d[P+9],5,568446438),h=l(h,c,A,w,d[P+14],9,-1019803690),w=l(w,h,c,A,d[P+3],14,-187363961),A=l(A,w,h,c,d[P+8],20,1163531501),c=l(c,A,w,h,d[P+13],5,-1444681467),h=l(h,c,A,w,d[P+2],9,-51403784),w=l(w,h,c,A,d[P+7],14,1735328473),A=l(A,w,h,c,d[P+12],20,-1926607734),c=p(c,A,w,h,d[P+5],4,-378558),h=p(h,c,A,w,d[P+8],11,-2022574463),w=p(w,h,c,A,d[P+11],16,1839030562),A=p(A,w,h,c,d[P+14],23,-35309556),c=p(c,A,w,h,d[P+1],4,-1530992060),h=p(h,c,A,w,d[P+4],11,1272893353),w=p(w,h,c,A,d[P+7],16,-155497632),A=p(A,w,h,c,d[P+10],23,-1094730640),c=p(c,A,w,h,d[P+13],4,681279174),h=p(h,c,A,w,d[P+0],11,-358537222),w=p(w,h,c,A,d[P+3],16,-722521979),A=p(A,w,h,c,d[P+6],23,76029189),c=p(c,A,w,h,d[P+9],4,-640364487),h=p(h,c,A,w,d[P+12],11,-421815835),w=p(w,h,c,A,d[P+15],16,530742520),A=p(A,w,h,c,d[P+2],23,-995338651),c=u(c,A,w,h,d[P+0],6,-198630844),h=u(h,c,A,w,d[P+7],10,1126891415),w=u(w,h,c,A,d[P+14],15,-1416354905),A=u(A,w,h,c,d[P+5],21,-57434055),c=u(c,A,w,h,d[P+12],6,1700485571),h=u(h,c,A,w,d[P+3],10,-1894986606),w=u(w,h,c,A,d[P+10],15,-1051523),A=u(A,w,h,c,d[P+1],21,-2054922799),c=u(c,A,w,h,d[P+8],6,1873313359),h=u(h,c,A,w,d[P+15],10,-30611744),w=u(w,h,c,A,d[P+6],15,-1560198380),A=u(A,w,h,c,d[P+13],21,1309151649),c=u(c,A,w,h,d[P+4],6,-145523070),h=u(h,c,A,w,d[P+11],10,-1120210379),w=u(w,h,c,A,d[P+2],15,718787259),A=u(A,w,h,c,d[P+9],21,-343485551),c=e(c,E),A=e(A,_),w=e(w,v),h=e(h,D)}return Array(c,A,w,h)}function g(d,f,c,A,w,h){return e(a(e(e(f,d),e(A,h)),w),c)}function o(d,f,c,A,w,h,P){return g(f&c|~f&A,d,f,w,h,P)}function l(d,f,c,A,w,h,P){return g(f&A|c&~A,d,f,w,h,P)}function p(d,f,c,A,w,h,P){return g(f^c^A,d,f,w,h,P)}function u(d,f,c,A,w,h,P){return g(c^(f|~A),d,f,w,h,P)}function e(d,f){var c=(65535&d)+(65535&f);return(d>>16)+(f>>16)+(c>>16)<<16|65535&c}function a(d,f){return d<<f|d>>>32-f}var r=t("./helpers");i.exports=function(d){return r.hash(d,m,16)}},{"./helpers":238}],240:[function(t,i,S){"use strict";function m(e,a){e[a>>5]|=128<<24-a%32,e[15+(a+64>>9<<4)]=a;for(var r=Array(80),d=1732584193,f=-271733879,c=-1732584194,A=271733878,w=-1009589776,h=0;h<e.length;h+=16){for(var P=d,E=f,_=c,v=A,D=w,R=0;R<80;R++){r[R]=R<16?e[h+R]:p(r[R-3]^r[R-8]^r[R-14]^r[R-16],1);var y=l(l(p(d,5),g(R,f,c,A)),l(l(w,r[R]),o(R)));w=A,A=c,c=p(f,30),f=d,d=y}d=l(d,P),f=l(f,E),c=l(c,_),A=l(A,v),w=l(w,D)}return Array(d,f,c,A,w)}function g(e,a,r,d){return e<20?a&r|~a&d:e<40?a^r^d:e<60?a&r|a&d|r&d:a^r^d}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function l(e,a){var r=(65535&e)+(65535&a);return(e>>16)+(a>>16)+(r>>16)<<16|65535&r}function p(e,a){return e<<a|e>>>32-a}var u=t("./helpers");i.exports=function(e){return u.hash(e,m,20,!0)}},{"./helpers":238}],241:[function(t,i,S){"use strict";var m=t("./helpers"),g=function(A,w){var h=(65535&A)+(65535&w);return(A>>16)+(w>>16)+(h>>16)<<16|65535&h},o=function(A,w){return A>>>w|A<<32-w},l=function(A,w){return A>>>w},p=function(A,w,h){return A&w^~A&h},u=function(A,w,h){return A&w^A&h^w&h},e=function(A){return o(A,2)^o(A,13)^o(A,22)},a=function(A){return o(A,6)^o(A,11)^o(A,25)},r=function(A){return o(A,7)^o(A,18)^l(A,3)},d=function(A){return o(A,17)^o(A,19)^l(A,10)},f=function(A,w){var h,P,E,_,v,D,R,y,j,U,W,k,V=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),G=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),H=new Array(64);A[w>>5]|=128<<24-w%32,A[15+(w+64>>9<<4)]=w;for(var j=0;j<A.length;j+=16){h=G[0],P=G[1],E=G[2],_=G[3],v=G[4],D=G[5],R=G[6],y=G[7];for(var U=0;U<64;U++)H[U]=U<16?A[U+j]:g(g(g(d(H[U-2]),H[U-7]),r(H[U-15])),H[U-16]),W=g(g(g(g(y,a(v)),p(v,D,R)),V[U]),H[U]),k=g(e(h),u(h,P,E)),y=R,R=D,D=v,v=g(_,W),_=E,E=P,P=h,h=g(W,k);G[0]=g(h,G[0]),G[1]=g(P,G[1]),G[2]=g(E,G[2]),G[3]=g(_,G[3]),G[4]=g(v,G[4]),G[5]=g(D,G[5]),G[6]=g(R,G[6]),G[7]=g(y,G[7])}return G};i.exports=function(c){return m.hash(c,f,32,!0)}},{"./helpers":238}],242:[function(t,i,S){(function(m){"use strict";function g(f){return f&&f.__esModule?f:{default:f}}var o=t("babel-runtime/core-js/object/create"),l=g(o),p=t("babel-runtime/helpers/classCallCheck"),u=g(p),e=t("babel-runtime/helpers/createClass"),a=g(e),r=t("babel-runtime/helpers/typeof"),d=g(r);!function(f){if((S===void 0?"undefined":(0,d.default)(S))==="object"&&i!==void 0)i.exports=f();else if(typeof pe=="function"&&pe.amd)pe([],f);else{var c;c=typeof window!="undefined"?window:m!==void 0?m:typeof self!="undefined"?self:this,c.mime=f()}}(function(){return function f(c,A,w){function h(_,v){if(!A[_]){if(!c[_]){var D=typeof t=="function"&&t;if(!v&&D)return D(_,!0);if(P)return P(_,!0);var R=new Error("Cannot find module '"+_+"'");throw R.code="MODULE_NOT_FOUND",R}var y=A[_]={exports:{}};c[_][0].call(y.exports,function(j){var U=c[_][1][j];return h(U||j)},y,y.exports,f,c,A,w)}return A[_].exports}for(var P=typeof t=="function"&&t,E=0;E<w.length;E++)h(w[E]);return h}({1:[function(f,c,A){var w=function(){function h(){(0,u.default)(this,h),this._types=(0,l.default)(null),this._extensions=(0,l.default)(null);for(var P=0;P<arguments.length;P++)this.define(arguments[P])}return(0,a.default)(h,[{key:"define",value:function(E,_){for(var v in E){for(var D=E[v],R=0;R<D.length;R++){var y=D[R];if(!_&&y in this._types)throw new Error('Attempt to change mapping for "'+y+'" extension from "'+this._types[y]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+y+'" from the list of extensions for "'+v+'".');this._types[y]=v}!_&&this._extensions[v]||(this._extensions[v]=D[0])}}},{key:"getType",value:function(E){E=String(E);var _=E.replace(/^.*[\/\\]/,"").toLowerCase(),v=_.replace(/^.*\./,"").toLowerCase(),D=_.length<E.length;return(v.length<_.length-1||!D)&&this._types[v]||null}},{key:"getExtension",value:function(E){return(E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1)&&this._extensions[E.toLowerCase()]||null}}]),h}();c.exports=w},{}],2:[function(f,c,A){var w=f("./Mime");c.exports=new w(f("./types/standard"),f("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(f,c,A){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(f,c,A){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(t,i,S){"use strict";S.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(g){return m}},S.escape=t("escape-html"),S.timestamp=function(m){if(m){var g=m;return typeof g=="string"&&(g=Number(g)),String(m).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(t,i,S){(function(m,g){"use strict";function o(R){return R&&R.__esModule?R:{default:R}}function l(R,y){return R===void 0?y:R}function p(R,y){return function(j,U,W){if(j)return y(j);R({data:U,status:W.statusCode,headers:W.headers,res:W})}}var u,e=t("babel-runtime/core-js/json/stringify"),a=o(e),r=t("babel-runtime/helpers/typeof"),d=o(r),f=t("util"),c=t("url"),A=t("http"),w=t("https"),h=t("debug")("urllib"),P=t("humanize-ms"),E=0,_=Math.pow(2,31)-10,v=/^https?:\/\//i;S.TIMEOUTS=[P("300s"),P("300s")];var D=["json","text"];S.request=function(R,y,j){return arguments.length===2&&typeof y=="function"&&(j=y,y=null),typeof j=="function"?S.requestWithCallback(R,y,j):(u||(u=t("any-promise")),new u(function(U,W){S.requestWithCallback(R,y,p(U,W))}))},S.requestWithCallback=function(R,y,j){function U(){he&&(clearTimeout(he),he=null)}function W(){C&&(clearTimeout(C),C=null)}function k(le,Fe,Ie){if(W(),!j)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Z,m.pid,oe.method,R),void(le&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Z,m.pid,le.name,le.message,le.stack));var ze=j;j=null;var He={};if(Ie&&(x=Ie.statusCode,He=Ie.headers),x===401&&He["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var ut=He["www-authenticate"];if(ut.indexOf("Digest ")>=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",Z,R,ut),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(oe.method,oe.path,ut,y.digestAuth),h("Request#%d %s: auth with digest header: %s",Z,R,y.headers.Authorization),Ie.headers["set-cookie"]&&(y.headers.Cookie=Ie.headers["set-cookie"].join(";")),S.requestWithCallback(R,y,ze)}var tt=Date.now()-I;ae&&(ae.contentDownload=tt),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",tt,b,x,oe.method,oe.host,oe.path,O,ae);var ot={status:x,statusCode:x,headers:He,size:b,aborted:F,rt:tt,keepAliveSocket:O,data:Fe,requestUrls:y.requestUrls,timing:ae,remoteAddress:T,remotePort:Q};if(le){var ht="";J&&typeof J.getCurrentStatus=="function"&&(ht=", agent status: "+(0,a.default)(J.getCurrentStatus())),le.message+=", "+oe.method+" "+R+" "+x+" (connected: "+s+", keepalive socket: "+O+ht+`)
|
|
|
headers: `+(0,a.default)(He),le.data=Fe,le.path=oe.path,le.status=x,le.headers=He,le.res=ot}ze(le,Fe,y.streaming?Ie:ot),y.emitter&&(K.url=R,K.socket=xe&&xe.connection,K.options=oe,K.size=q,y.emitter.emit("response",{requestId:Z,error:le,ctx:y.ctx,req:K,res:ot}))}function V(le){var Fe=null;if(y.followRedirect&&statuses.redirect[le.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var Ie=le.headers.location;if(Ie){if(!(y._followRedirectCount>y.maxRedirects)){var ze=y.formatRedirectUrl?y.formatRedirectUrl(R,Ie):c.resolve(R,Ie);h("Request#%d %s: `redirected` from %s to %s",Z,oe.path,R,ze),W(),y.headers&&y.headers.Host&&v.test(Ie)&&(y.headers.Host=null);var He=j;return j=null,S.requestWithCallback(ze,y,He),{redirect:!0,error:null}}Fe=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+R),Fe.name="MaxRedirectError"}else Fe=new Error("Got statusCode "+le.statusCode+" but cannot resolve next location from headers"),Fe.name="FollowRedirectError"}return{redirect:!1,error:Fe}}function G(le,Fe,Ie){return Ie(null,Fe,le.headers["content-encoding"])}function H(le){if(ae&&(ae.waiting=Date.now()-I),h("Request#%d %s `req response` event emit: status %d, headers: %j",Z,R,le.statusCode,le.headers),y.streaming){var Fe=V(le);return Fe.redirect?void le.resume():Fe.error?(le.resume(),k(Fe.error,null,le)):k(null,null,le)}if(le.on("close",function(){h("Request#%d %s: `res close` event emit, total size %d",Z,R,b)}),le.on("error",function(){h("Request#%d %s: `res error` event emit, total size %d",Z,R,b)}),le.on("aborted",function(){F=!0,h("Request#%d %s: `res aborted` event emit, total size %d",Z,R,b)}),de){var Fe=V(le);return Fe.redirect?void le.resume():Fe.error?(le.resume(),de.end(),k(Fe.error,null,le)):(y.consumeWriteStream===!1?le.on("end",k.bind(null,null,null,le)):isNode010||isNode012?first([[de,"close"],[le,"aborted"]],function(He,ut,tt){h("Request#%d %s: writeStream or res %s event emitted",Z,R,tt),k(n||null,null,le)}):de.on("close",function(){h("Request#%d %s: writeStream close event emitted",Z,R),k(n||null,null,le)}),le.pipe(de))}var Ie=[];le.on("data",function(ze){h("Request#%d %s: `res data` event emit, size %d",Z,R,ze.length),b+=ze.length,Ie.push(ze)}),le.on("end",function(){var ze=g.concat(Ie,b);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Z,R,b,le._dumped),n)return k(n,ze,le);var He=V(le);if(He.error)return k(He.error,ze,le);He.redirect||G(le,ze,function(ut,tt,ot){if(ut)return k(ut,ze,le);if(!ot&&D.indexOf(y.dataType)>=0){try{tt=decodeBodyByCharset(tt,le)}catch(Rt){return h("decodeBodyByCharset error: %s",Rt),k(null,tt,le)}if(y.dataType==="json")if(b===0)tt=null;else{var ht=parseJSON(tt,ce);ht.error?ut=ht.error:tt=ht.data}}F&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",Z,R),k(ut,tt,le)})})}function ne(){h("Response timer ticking, timeout: %d",be),C=setTimeout(function(){C=null;var le="Response timeout for "+be+"ms";n=new Error(le),n.name="ResponseTimeoutError",n.requestId=Z,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Z,R,n.name,le,s),X()},be)}function X(){h("Request#%d %s abort, connected: %s",Z,R,s),xe.socket||(n.noSocket=!0,k(n)),xe.abort()}if(!R||typeof R!="string"&&(R===void 0?"undefined":(0,d.default)(R))!=="object"){var ie=f.format("expect request url to be a string or a http request options, but got %j",R);throw new Error(ie)}arguments.length===2&&typeof y=="function"&&(j=y,y=null),y=y||{},E>=_&&(E=0);var Z=++E;y.requestUrls=y.requestUrls||[];var K={requestId:Z,url:R,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",K),y.timeout=y.timeout||S.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var M,I=Date.now();typeof R=="string"?(v.test(R)||(R="http://"+R),M=c.parse(R)):M=R;var B=(y.type||y.method||M.method||"GET").toUpperCase(),z=M.port||80,Y=A,J=l(y.agent,S.agent),ce=y.fixJSONCtlChars;M.protocol==="https:"&&(Y=w,J=l(y.httpsAgent,S.httpsAgent),M.port||(z=443));var oe={host:M.hostname||M.host||"localhost",path:M.path||"/",method:B,port:z,agent:J,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?oe.requestTimeout=y.timeout[y.timeout.length-1]:y.timeout!==void 0&&(oe.requestTimeout=y.timeout);for(var fe=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],_e=0;_e<fe.length;_e++){var te=fe[_e];y.hasOwnProperty(te)&&(oe[te]=y[te])}oe.rejectUnauthorized!==!1||oe.hasOwnProperty("secureOptions")||(oe.secureOptions=t("constants").SSL_OP_NO_TLSv1_2);var ee=y.auth||M.auth;ee&&(oe.auth=ee);var se=y.content||y.data,L=B==="GET"||B==="HEAD"||y.dataAsQueryString;if(!y.content&&se&&typeof se!="string"&&!g.isBuffer(se))if(L)se=y.nestedQuerystring?qs.stringify(se):querystring.stringify(se);else{var N=oe.headers["Content-Type"]||oe.headers["content-type"];N||(N=y.contentType==="json"?"application/json":"application/x-www-form-urlencoded",oe.headers["Content-Type"]=N),se=parseContentType(N).type==="application/json"?(0,a.default)(se):y.nestedQuerystring?qs.stringify(se):querystring.stringify(se)}L&&se&&(oe.path+=(M.query?"&":"?")+se,se=null);var q=0;if(se){var re=se.length;g.isBuffer(se)||(re=g.byteLength(se)),q=oe.headers["Content-Length"]=re}y.dataType==="json"&&(oe.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(oe);var he=null,C=null,n=null,s=!1,O=!1,b=0,x=-1,F=!1,T="",Q="",ae=null;y.timing&&(ae={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),oe.headers["User-Agent"]||oe.headers["user-agent"]||(oe.headers["User-Agent"]=navigator.userAgent),y.gzip&&(oe.headers["Accept-Encoding"]||oe.headers["accept-encoding"]||(oe.headers["Accept-Encoding"]="gzip"));var de=y.writeStream;h("Request#%d %s %s with headers %j, options.path: %s",Z,B,R,oe.headers,oe.path),y.requestUrls.push(R);var me,be;Array.isArray(y.timeout)?(me=P(y.timeout[0]),be=P(y.timeout[1])):me=be=P(y.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",me,be);var xe;try{xe=Y.request(oe,H)}catch(le){return k(le)}return typeof window=="undefined"?function(){h("Connect timer ticking, timeout: %d",me),he=setTimeout(function(){he=null,x===-1&&(x=-2);var le="Connect timeout for "+me+"ms",Fe="ConnectionTimeoutError";xe.socket||(Fe="SocketAssignTimeoutError",le+=", working sockets is full"),n=new Error(le),n.name=Fe,n.requestId=Z,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Z,R,n.name,le,s),X()},me)}():xe.on("requestTimeout",function(){x===-1&&(x=-2);var le="Connect timeout for "+me+"ms";n=new Error(le),n.name="ConnectionTimeoutError",n.requestId=Z,X()}),ae&&xe.on("finish",function(){ae.requestSent=Date.now()-I}),xe.once("socket",function(le){ae&&(ae.queuing=Date.now()-I),isNode010&&le.socket&&(le=le.socket);var Fe=le.readyState;if(Fe==="opening")return le.once("lookup",function(Ie,ze,He){h("Request#%d %s lookup: %s, %s, %s",Z,R,Ie,ze,He),ae&&(ae.dnslookup=Date.now()-I),ze&&(T=ze)}),void le.once("connect",function(){ae&&(ae.connected=Date.now()-I),U(),ne(),h("Request#%d %s new socket connected",Z,R),s=!0,T||(T=le.remoteAddress),Q=le.remotePort});h("Request#%d %s reuse socket connected, readyState: %s",Z,R,Fe),s=!0,O=!0,T||(T=le.remoteAddress),Q=le.remotePort,U(),ne()}),xe.on("error",function(le){le.name!=="Error"&&le.name!=="TypeError"||(le.name=s?"ResponseError":"RequestError"),le.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",Z,R,le.name,le.message),k(n||le)}),de&&de.once("error",function(le){le.message+=' (writeStream "error")',n=le,h("Request#%d %s `writeStream error` event emit, %s: %s",Z,R,le.name,le.message),X()}),y.stream?(y.stream.pipe(xe),y.stream.once("error",function(le){le.message+=' (stream "error")',n=le,h("Request#%d %s `readStream error` event emit, %s: %s",Z,R,le.name,le.message),X()})):xe.end(se),xe.requestId=Z,xe}}).call(this,t("_process"),t("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),!function(pe){function t(S){if(i[S])return i[S].exports;var m=i[S]={i:S,l:!1,exports:{}};return pe[S].call(m.exports,m,m.exports,t),m.l=!0,m.exports}var i={};t.m=pe,t.c=i,t.d=function(S,m,g){t.o(S,m)||Object.defineProperty(S,m,{configurable:!1,enumerable:!0,get:g})},t.n=function(S){var m=S&&S.__esModule?function(){return S.default}:function(){return S};return t.d(m,"a",m),m},t.o=function(S,m){return Object.prototype.hasOwnProperty.call(S,m)},t.p="",t(t.s=12)}([function(pe,t,i){!function(S,m){pe.exports=t=m()}(0,function(){var S=S||function(m,g){var o=Object.create||function(){function w(){}return function(h){var P;return w.prototype=h,P=new w,w.prototype=null,P}}(),l={},p=l.lib={},u=p.Base=function(){return{extend:function(h){var P=o(this);return h&&P.mixIn(h),P.hasOwnProperty("init")&&this.init!==P.init||(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var P in h)h.hasOwnProperty(P)&&(this[P]=h[P]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=p.WordArray=u.extend({init:function(h,P){h=this.words=h||[],this.sigBytes=P!=null?P:4*h.length},toString:function(h){return(h||r).stringify(this)},concat:function(h){var P=this.words,E=h.words,_=this.sigBytes,v=h.sigBytes;if(this.clamp(),_%4)for(var D=0;D<v;D++){var R=E[D>>>2]>>>24-D%4*8&255;P[_+D>>>2]|=R<<24-(_+D)%4*8}else for(var D=0;D<v;D+=4)P[_+D>>>2]=E[D>>>2];return this.sigBytes+=v,this},clamp:function(){var h=this.words,P=this.sigBytes;h[P>>>2]&=4294967295<<32-P%4*8,h.length=m.ceil(P/4)},clone:function(){var h=u.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var P,E=[],_=0;_<h;_+=4){var v=function(D){var D=D,R=987654321,y=4294967295;return function(){R=36969*(65535&R)+(R>>16)&y,D=18e3*(65535&D)+(D>>16)&y;var j=(R<<16)+D&y;return j/=4294967296,(j+=.5)*(m.random()>.5?1:-1)}}(4294967296*(P||m.random()));P=987654071*v(),E.push(4294967296*v()|0)}return new e.init(E,h)}}),a=l.enc={},r=a.Hex={stringify:function(h){for(var P=h.words,E=h.sigBytes,_=[],v=0;v<E;v++){var D=P[v>>>2]>>>24-v%4*8&255;_.push((D>>>4).toString(16)),_.push((15&D).toString(16))}return _.join("")},parse:function(h){for(var P=h.length,E=[],_=0;_<P;_+=2)E[_>>>3]|=parseInt(h.substr(_,2),16)<<24-_%8*4;return new e.init(E,P/2)}},d=a.Latin1={stringify:function(h){for(var P=h.words,E=h.sigBytes,_=[],v=0;v<E;v++){var D=P[v>>>2]>>>24-v%4*8&255;_.push(String.fromCharCode(D))}return _.join("")},parse:function(h){for(var P=h.length,E=[],_=0;_<P;_++)E[_>>>2]|=(255&h.charCodeAt(_))<<24-_%4*8;return new e.init(E,P)}},f=a.Utf8={stringify:function(h){try{return decodeURIComponent(escape(d.stringify(h)))}catch(P){throw new Error("Malformed UTF-8 data")}},parse:function(h){return d.parse(unescape(encodeURIComponent(h)))}},c=p.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=f.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var P=this._data,E=P.words,_=P.sigBytes,v=this.blockSize,D=4*v,R=_/D;R=h?m.ceil(R):m.max((0|R)-this._minBufferSize,0);var y=R*v,j=m.min(4*y,_);if(y){for(var U=0;U<y;U+=v)this._doProcessBlock(E,U);var W=E.splice(0,y);P.sigBytes-=j}return new e.init(W,j)},clone:function(){var h=u.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),A=(p.Hasher=c.extend({cfg:u.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){return h&&this._append(h),this._doFinalize()},blockSize:16,_createHelper:function(h){return function(P,E){return new h.init(E).finalize(P)}},_createHmacHelper:function(h){return function(P,E){return new A.HMAC.init(h,E).finalize(P)}}}),l.algo={});return l}(Math);return S})},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"detectIEVersion",value:function(){for(var p=4,u=document.createElement("div"),e=u.getElementsByTagName("i");u.innerHTML="<!--[if gt IE "+p+"]><i></i><![endif]-->",e[0];)p++;return p>4&&p}},{key:"extend",value:function(p,u){for(var e in u)Object.prototype.hasOwnProperty.call(u,e)&&u[e]&&(p[e]=u[e])}},{key:"isArray",value:function(p){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(p){return p=p.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(p)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(p)?"audio":/.bmp|.jpg|.jpeg|.png/.test(p)?"img":"other"}},{key:"isImage",value:function(p){return p=p.toLowerCase(),!!/.jpg|.jpeg|.png/.test(p)}},{key:"ISODateString",value:function(p){function u(e){return e<10?"0"+e:e}return p.getUTCFullYear()+"-"+u(p.getUTCMonth()+1)+"-"+u(p.getUTCDate())+"T"+u(p.getUTCHours())+":"+u(p.getUTCMinutes())+":"+u(p.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(p){return!!/^\d+$/.test(p)}}]),o}();t.default=g},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return function(m){function g(A,w,h,P,E,_,v){var D=A+(w&h|~w&P)+E+v;return(D<<_|D>>>32-_)+w}function o(A,w,h,P,E,_,v){var D=A+(w&P|h&~P)+E+v;return(D<<_|D>>>32-_)+w}function l(A,w,h,P,E,_,v){var D=A+(w^h^P)+E+v;return(D<<_|D>>>32-_)+w}function p(A,w,h,P,E,_,v){var D=A+(h^(w|~P))+E+v;return(D<<_|D>>>32-_)+w}var u=S,e=u.lib,a=e.WordArray,r=e.Hasher,d=u.algo,f=[];!function(){for(var A=0;A<64;A++)f[A]=4294967296*m.abs(m.sin(A+1))|0}();var c=d.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,h){for(var P=0;P<16;P++){var E=h+P,_=w[E];w[E]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}var v=this._hash.words,D=w[h+0],R=w[h+1],y=w[h+2],j=w[h+3],U=w[h+4],W=w[h+5],k=w[h+6],V=w[h+7],G=w[h+8],H=w[h+9],ne=w[h+10],X=w[h+11],ie=w[h+12],Z=w[h+13],K=w[h+14],M=w[h+15],I=v[0],B=v[1],z=v[2],Y=v[3];I=g(I,B,z,Y,D,7,f[0]),Y=g(Y,I,B,z,R,12,f[1]),z=g(z,Y,I,B,y,17,f[2]),B=g(B,z,Y,I,j,22,f[3]),I=g(I,B,z,Y,U,7,f[4]),Y=g(Y,I,B,z,W,12,f[5]),z=g(z,Y,I,B,k,17,f[6]),B=g(B,z,Y,I,V,22,f[7]),I=g(I,B,z,Y,G,7,f[8]),Y=g(Y,I,B,z,H,12,f[9]),z=g(z,Y,I,B,ne,17,f[10]),B=g(B,z,Y,I,X,22,f[11]),I=g(I,B,z,Y,ie,7,f[12]),Y=g(Y,I,B,z,Z,12,f[13]),z=g(z,Y,I,B,K,17,f[14]),B=g(B,z,Y,I,M,22,f[15]),I=o(I,B,z,Y,R,5,f[16]),Y=o(Y,I,B,z,k,9,f[17]),z=o(z,Y,I,B,X,14,f[18]),B=o(B,z,Y,I,D,20,f[19]),I=o(I,B,z,Y,W,5,f[20]),Y=o(Y,I,B,z,ne,9,f[21]),z=o(z,Y,I,B,M,14,f[22]),B=o(B,z,Y,I,U,20,f[23]),I=o(I,B,z,Y,H,5,f[24]),Y=o(Y,I,B,z,K,9,f[25]),z=o(z,Y,I,B,j,14,f[26]),B=o(B,z,Y,I,G,20,f[27]),I=o(I,B,z,Y,Z,5,f[28]),Y=o(Y,I,B,z,y,9,f[29]),z=o(z,Y,I,B,V,14,f[30]),B=o(B,z,Y,I,ie,20,f[31]),I=l(I,B,z,Y,W,4,f[32]),Y=l(Y,I,B,z,G,11,f[33]),z=l(z,Y,I,B,X,16,f[34]),B=l(B,z,Y,I,K,23,f[35]),I=l(I,B,z,Y,R,4,f[36]),Y=l(Y,I,B,z,U,11,f[37]),z=l(z,Y,I,B,V,16,f[38]),B=l(B,z,Y,I,ne,23,f[39]),I=l(I,B,z,Y,Z,4,f[40]),Y=l(Y,I,B,z,D,11,f[41]),z=l(z,Y,I,B,j,16,f[42]),B=l(B,z,Y,I,k,23,f[43]),I=l(I,B,z,Y,H,4,f[44]),Y=l(Y,I,B,z,ie,11,f[45]),z=l(z,Y,I,B,M,16,f[46]),B=l(B,z,Y,I,y,23,f[47]),I=p(I,B,z,Y,D,6,f[48]),Y=p(Y,I,B,z,V,10,f[49]),z=p(z,Y,I,B,K,15,f[50]),B=p(B,z,Y,I,W,21,f[51]),I=p(I,B,z,Y,ie,6,f[52]),Y=p(Y,I,B,z,j,10,f[53]),z=p(z,Y,I,B,ne,15,f[54]),B=p(B,z,Y,I,R,21,f[55]),I=p(I,B,z,Y,G,6,f[56]),Y=p(Y,I,B,z,M,10,f[57]),z=p(z,Y,I,B,k,15,f[58]),B=p(B,z,Y,I,Z,21,f[59]),I=p(I,B,z,Y,U,6,f[60]),Y=p(Y,I,B,z,X,10,f[61]),z=p(z,Y,I,B,y,15,f[62]),B=p(B,z,Y,I,H,21,f[63]),v[0]=v[0]+I|0,v[1]=v[1]+B|0,v[2]=v[2]+z|0,v[3]=v[3]+Y|0},_doFinalize:function(){var w=this._data,h=w.words,P=8*this._nDataBytes,E=8*w.sigBytes;h[E>>>5]|=128<<24-E%32;var _=m.floor(P/4294967296),v=P;h[15+(E+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),h[14+(E+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),w.sigBytes=4*(h.length+1),this._process();for(var D=this._hash,R=D.words,y=0;y<4;y++){var j=R[y];R[y]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}return D},clone:function(){var w=r.clone.call(this);return w._hash=this._hash.clone(),w}});u.MD5=r._createHelper(c),u.HmacMD5=r._createHmacHelper(c)}(Math),S.MD5})},function(pe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},t.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},t.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(pe,t,i){"use strict";function S(c){return c&&c.__esModule?c:{default:c}}function m(c,A){if(!(c instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function c(A,w){for(var h=0;h<w.length;h++){var P=w[h];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(A,P.key,P)}}return function(A,w,h){return w&&c(A.prototype,w),h&&c(A,h),A}}(),o=i(5),l=S(o),p=i(25),u=S(p),e=i(6),a=S(e),r=i(7),d=S(r),f=function(){function c(A){m(this,c);var w=d.default.os.name,h=d.default.os.version||"",P=d.default.browser.name,E=d.default.browser.version||"",_=window.location.href,v="";_&&(v=d.default.getHost(_));var D="pc";d.default.os.ipad?D="pad":(d.default.os.iphone||d.default.os.android)&&(D="phone"),this._ri=l.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:a.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:w,ov:h,et:P,ev:E,uat:navigator.userAgent,app_n:v,tt:D,dm:"h5",ut:""}}return g(c,[{key:"log",value:function(w,h){h&&h.ri?(this._ri=h.ri,delete h.ri):this._ri=l.default.create(),h&&h.ut&&(this.initParam.ut=h.ut,delete h.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var P=[];if(h)for(var E in h)P.push(E+"="+h[E]);var _=P.join("&");this.initParam.args=encodeURIComponent(_==""?"0":_);var v=[];for(var E in this.initParam)v.push(E+"="+this.initParam[E]);var D=v.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(D):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+D}}],[{key:"getUuid",value:function(){var w=u.default.get("p_h5_upload_u");return w||(w=l.default.create(),u.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return u.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=l.default.create()),u.default.set("p_h5_upload_clientId",w,730),w}}]),c}();t.default=f},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"create",value:function(p,u){var e,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(u=u||a.length,p)for(e=0;e<p;e++)r[e]=a[0|Math.random()*u];else{var d;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(d=0|16*Math.random(),r[e]=a[e==19?3&d|8:d])}return r.join("")}}]),o}();t.default=g},function(pe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S={version:"1.5.0"};t.default=S},function(pe,t,i){"use strict";function S(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function e(a,r){for(var d=0;d<r.length;d++){var f=r[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,d){return r&&e(a.prototype,r),d&&e(a,d),a}}(),g=function(a){var r=navigator.userAgent,d="other";if(a.ios)return"iOS";if(a.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(d="macOS"),navigator.platform=="X11"&&!f&&!c&&(d="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(d="Linux"),f?"windows":d},o=function(){var a=navigator.userAgent,r="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(r="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(r="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(r="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(r="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(r="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(r="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(r="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(r="10"),r},l=function(a){var r=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var e={},a={},r=navigator.userAgent,d=navigator.platform,f=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=r.match(/(Android);?[\s\/]+([\d.]+)?/),A=!!r.match(/\(Macintosh\; Intel /),w=r.match(/(iPad).*OS\s([\d_]+)/),h=r.match(/(iPod)(.*OS\s([\d_]+))?/),P=!w&&r.match(/(iPhone\sOS)\s([\d_]+)/),E=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),_=/Win\d{2}|Windows/.test(d),v=r.match(/Windows Phone ([\d.]+)/),D=E&&r.match(/TouchPad/),R=r.match(/Kindle\/([\d.]+)/),y=r.match(/Silk\/([\d._]+)/),j=r.match(/(BlackBerry).*Version\/([\d.]+)/),U=r.match(/(BB10).*Version\/([\d.]+)/),W=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),k=r.match(/PlayBook/),V=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),G=r.match(/Firefox\/([\d.]+)/),H=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),ne=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),X=!V&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ie=X||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!f)&&(a.version=f[1]),c&&(e.android=!0,e.version=c[2]),P&&!h&&(e.ios=e.iphone=!0,e.version=P[2].replace(/_/g,".")),w&&(e.ios=e.ipad=!0,e.version=w[2].replace(/_/g,".")),h&&(e.ios=e.ipod=!0,e.version=h[3]?h[3].replace(/_/g,"."):null),v&&(e.wp=!0,e.version=v[1]),E&&(e.webos=!0,e.version=E[2]),D&&(e.touchpad=!0),j&&(e.blackberry=!0,e.version=j[2]),U&&(e.bb10=!0,e.version=U[2]),W&&(e.rimtabletos=!0,e.version=W[2]),k&&(a.playbook=!0),R&&(e.kindle=!0,e.version=R[1]),y&&(a.silk=!0,a.version=y[1]),!y&&e.android&&r.match(/Kindle Fire/)&&(a.silk=!0),V&&(a.chrome=!0,a.version=V[1]),G&&(a.firefox=!0,a.version=G[1]),H&&(e.firefoxos=!0,e.version=H[1]),ne&&(a.ie=!0,a.version=ne[1]),ie&&(A||e.ios||_||c)&&(a.safari=!0,e.ios||(a.version=ie[1])),X&&(a.webview=!0),A){var Z=r.match(/[\d]*_[\d]*_[\d]*/);Z&&Z.length>0&&Z[0]&&(e.version=Z[0].replace(/_/g,"."))}return e.tablet=!!(w||k||c&&!r.match(/Mobile/)||G&&r.match(/Tablet/)||ne&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||P||E||j||U||V&&r.match(/Android/)||V&&r.match(/CriOS\/([\d.]+)/)||G&&r.match(/Mobile/)||ne&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,A?e.name="macOS":_?(e.name="windows",e.version=o()):e.name=g(e),a.name=l(a),{os:e,browser:a}}(),u=function(){function e(){S(this,e)}return m(e,null,[{key:"getHost",value:function(r){var d="";if(r===void 0||r==null||r=="")return"";var f=r.indexOf("//"),c=r;f>-1&&(c=r.substring(f+2));var d=c,A=c.split("/");return A&&A.length>0&&(d=A[0]),A=d.split(":"),A&&A.length>0&&(d=A[0]),d}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var r=p.browser;return r.name||(r.name=l()),r}}]),e}();t.default=u},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"get",value:function(p,u,e,a,r){var d;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),d=new XMLHttpRequest,d.onreadystatechange=function(){d.readyState===4&&(d.status===200?u(d.responseText):e(d.responseText))};try{a===void 0&&(a=!0),d.open("GET",p,a),r&&(d.withCredentials=!0)}catch(f){return void e(f)}try{d.send()}catch(f){e(f)}}}]),o}();t.default=g},function(pe,t,i){"use strict";function S(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function p(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&p(u.prototype,e),a&&p(u,a),u}}(),g=i(27),o=i(30),l=(i(10),function(){function p(){S(this,p)}return m(p,null,[{key:"randomUUID",value:function(){for(var e=[],a="0123456789abcdef",r=0;r<36;r++)e[r]=a.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=a.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var a=encodeURIComponent(e);return a=a.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,a,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var d=[];for(var f in e)d.push(f);for(var c=d.sort(),A="",w=c.length,f=0;f<w;f++){var h=p.aliyunEncodeURI(c[f]),P=p.aliyunEncodeURI(e[c[f]]);A==""?A=h+a+P:A+=r+h+a+P}return A}},{key:"makeChangeSiga",value:function(e,a){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return o.stringify(g("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(e,"=","&")),a+"&"))}}]),p}());t.default=l},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return S.enc.Utf8})},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return S.enc.Hex})},function(pe,t,i){pe.exports=i(13)},function(pe,t,i){"use strict";var S,m,g=(typeof Symbol=="function"&&Symbol.iterator,i(14)),o=function(p){return p&&p.__esModule?p:{default:p}}(g),l={Vod:o.default};S=[],(m=function(){return l}.apply(t,S))!==void 0&&(pe.exports=m),window.AliyunUpload=l,dt.exports=AliyunUpload},function(pe,t,i){"use strict";function S(U){return U&&U.__esModule?U:{default:U}}function m(U,W){if(!(U instanceof W))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function U(W,k){for(var V=0;V<k.length;V++){var G=k[V];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(W,G.key,G)}}return function(W,k,V){return k&&U(W.prototype,k),V&&U(W,V),W}}(),o=i(15),l=i(3),p=i(16),u=S(p),e=i(18),a=S(e),r=i(24),d=S(r),f=i(4),c=S(f),A=i(1),w=S(A),h=i(5),P=S(h),E=i(26),_=S(E),v=i(31),D=S(v),R=i(32),y=S(R),j=(i(2),function(){function U(W){m(this,U),this.options=W,this.options.partSize=this.options.partSize||l.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||l.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=o.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=o.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return g(U,[{key:"init",value:function(k,V,G,H){return this._retryCount=0,!(G&&!H||!G&&H)&&!(k&&!V||!k&&V)&&(this._ossCreditor.accessKeyId=k,this._ossCreditor.accessKeySecret=V,this._ossCreditor.securityToken=G,this._ossCreditor.expireTime=H,!0)}},{key:"addFile",value:function(k,V,G,H,ne,X){if(!k)return!1;if(k.size==0)try{this.options.onUploadFailed({file:k},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(M){console.log(M)}for(var ie=(this.options,0);ie<this._uploadList.length;ie++)if(this._uploadList[ie].file==k)return!1;var Z=new Object;if(Z.file=k,Z._endpoint=V,Z._bucket=G,Z._object=H,Z.state=o.UPLOADSTATE.INIT,Z.isImage=w.default.isImage(k.name),!Z.isImage&&this.options.enableUploadProgress){var K=this;y.default.getMd5(k,function(M){Z.fileHash=M;var I=K._getCheckoutpoint(Z);K.options.localCheckpoint||I||K._getCheckoutpointFromCloud(Z,function(B){if(B.UploadPoint){var z=JSON.parse(B.UploadPoint);z.loaded!=1&&(Z.checkpoint=z.checkpoint,Z.loaded=z.loaded,Z.videoId=B.VideoId,K._saveCheckoutpoint(Z,z.checkpoint))}},function(B){try{if((B=JSON.parse(B))&&B.Code=="InvalidParameter"&&B.Message.indexOf("UserId")>0){K._invalidUserId=!0;var z=B.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(z)}}catch(Y){console.log(Y)}})})}ne&&(Z.videoInfo=ne?JSON.parse(ne).Vod:{},Z.userData=a.default.encode(ne)),Z.ri=P.default.create(),this._uploadList.push(Z),this._reportLog("20001",Z,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(Z)}catch(M){console.log(M)}return!0}},{key:"deleteFile",value:function(k){return!!this.cancelFile(k)&&(this._uploadList.splice(k,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var V=this._uploadList[k];if(k==this._curIndex&&V.state==o.UPLOADSTATE.UPLOADING){V.state=o.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(V);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(V),this._removeCheckoutpoint(V),this.nextUpload()}else V.state!=o.UPLOADSTATE.SUCCESS&&(V.state=o.UPLOADSTATE.CANCELED);return this._reportLog("20008",V),!0}},{key:"resumeFile",value:function(k){if(this.options,k<0||k>=this._uploadList.length)return!1;var V=this._uploadList[k];return V.state==o.UPLOADSTATE.CANCELED&&(V.state=o.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(k){return this._getCheckoutpoint({file:k})}},{key:"startUpload",value:function(k){if(this._retryCount=0,this.options,this._state==o.VODSTATE.START||this._state==o.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=o.VODSTATE.END);var V=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(V),this._state=o.VODSTATE.START}},{key:"nextUpload",value:function(){var k=this.options;if(this._state==o.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var V=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(V)}else{this._state=o.VODSTATE.END;try{k.onUploadEnd&&k.onUploadEnd(V)}catch(G){console.log(G)}}}},{key:"clear",value:function(k){for(var V=this.options,G=0,H=0;H<this._uploadList.length;H++)V.uploadList[H].state==o.UPLOADSTATE.SUCCESS&&G++,this._uploadList[H].state==k&&(V.uploadList.splice(H,1),H--);V.onClear&&V.onClear(V.uploadList.length,G)}},{key:"stopUpload",value:function(){if((this._state==o.VODSTATE.START||this._state==o.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var k=this._uploadList[this._curIndex];this._state=o.VODSTATE.STOP,k.state=o.UPLOADSTATE.STOPED,this._changeState(k,o.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(k){var V=this;if(!k)return!1;var G=JSON.parse(a.default.decode(k));return!!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration)&&V.resumeUploadWithToken(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration)}},{key:"resumeUploadWithToken",value:function(k,V,G,H){if(this.options,!(k&&V&&G&&H))return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var ne="";return this._uploadList.length>this._curIndex&&(ne=this._uploadList[this._curIndex]),ne&&(this.init(k,V,G,H),this._state=o.VODSTATE.START,this._ossUpload=null,this._uploadCore(ne,ne.retry),ne.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(k,V,G){if(this._curIndex==-1)return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var H=this._uploadList[this._curIndex];H.object?this._refreshSTSTokenUpload(H,k,V,G):this.setSTSToken(H,k,V,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(k,V,G,H,ne){if(!(V&&G&&H&&ne))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var X=k;this.init(V,G,H,ne),X.endpoint=X._endpoint,X.bucket=X._bucket,X.object=X._object,this._ossUpload=null,this._uploadCore(X,k.retry),k.retry=!1}},{key:"setSTSToken",value:function(k,V,G,H){if(!V||!G||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var ne=k.videoInfo,X={accessKeyId:V,securityToken:H,accessKeySecret:G,fileName:k.file.name,title:ne.Title,requestId:k.ri,region:this.options.region};ne.ImageType&&(X.imageType=ne.ImageType),ne.ImageExt&&(X.imageExt=ne.ImageExt),ne.FileSize&&(X.fileSize=ne.FileSize),ne.Description&&(X.description=ne.Description),ne.CateId&&(X.cateId=ne.CateId),ne.Tags&&(X.tags=ne.Tags),ne.TemplateGroupId&&(X.templateGroupId=ne.TemplateGroupId),ne.StorageLocation&&(X.storageLocation=ne.StorageLocation),ne.CoverURL&&(X.coverUrl=ne.CoverURL),ne.TransCodeMode&&(X.transCodeMode=ne.TransCodeMode),ne.UserData&&(X.userData=ne.UserData);var ie=this,Z="getUploadAuth";k.videoId?(X.videoId=k.videoId,Z="refreshUploadAuth"):k.isImage&&(Z="getImageUploadAuth"),_.default[Z](X,function(K){k.videoId=K.VideoId?K.VideoId:k.videoId,ie.setUploadAuthAndAddress(k,K.UploadAuth,K.UploadAddress),ie._state=o.VODSTATE.START},function(K){ie._error(k,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(k,V,G,H){if(!k||!V||!G)return!1;var ne=JSON.parse(a.default.decode(V));if(!(ne.AccessKeyId&&ne.AccessKeySecret&&ne.SecurityToken&&ne.Expiration))return console.error("uploadauth is invalid"),!1;var X={},ie=k;if(G){if(X=JSON.parse(a.default.decode(G)),!X.Endpoint||!X.Bucket||!X.FileName)return console.error("uploadAddress is invalid"),!1}else X.Endpoint=ie.endpoint,X.Bucket=ie.bucket,X.FileName=ie.object;this._ut="vod",this._uploadWay="vod",this.options.region=ne.Region||this.options.region,this.init(ne.AccessKeyId,ne.AccessKeySecret,ne.SecurityToken,ne.Expiration),ie.endpoint=ie._endpoint?ie._endpoint:X.Endpoint,ie.bucket=ie._bucket?ie._bucket:X.Bucket,ie.object=ie._object?ie._object:X.FileName,ie.region=this.options.region,H&&(ie.videoId=H),this._ossUpload=null,this._uploadCore(ie,k.retry),k.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(k,V,G,H){if(!V||!G||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var ne={accessKeyId:V,securityToken:H,accessKeySecret:G,videoId:k.object,requestId:k.ri,region:this.options.region},X=this,ie="refreshUploadAuth";k.isImage&&(ie="getImageUploadAuth"),_.default[ie](ne,function(Z){X.setUploadAuthAndAddress(k,Z.UploadAuth,UploadAddress),X._state=o.VODSTATE.START},function(Z){X._error(k,{name:Z.Code,code:Z.Code,message:Z.Message,requestId:Z.RequestId})})}},{key:"_upload",value:function(k){var V=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(k.retry=V,G.onUploadstarted&&!V)try{var H=this._getCheckoutpoint(k);H&&H.state!=o.UPLOADSTATE.UPLOADING&&(k.checkpoint=H,k.videoId=H.videoId),G.onUploadstarted(k)}catch(ne){console.log(ne)}}},{key:"_uploadCore",value:function(k){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(k.state=o.UPLOADSTATE.UPLOADING,!this._ossUpload){k.endpoint=k.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var V=this;this._ossUpload=new u.default({bucket:k.bucket,endpoint:k.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(M,I){V._error.call(V,M,I)},oncomplete:function(M,I){V._complete.call(V,M,I)},onprogress:function(M,I,B){V._progress.call(V,M,I,B)}})}var G=w.default.getFileType(k.file.name),H=this._getCheckoutpoint(k),ne="",X="";H&&H.checkpoint&&(X=H.state,ne=H.videoId,H=H.checkpoint),H&&ne==k.videoId&&X!=o.UPLOADSTATE.UPLOADING&&(H.file=k.file,k.checkpoint=H,H.uploadId);var ie=this._adjustPartSize(k);this._reportLog("20002",k,{ft:G,fs:k.file.size,bu:k.bucket,ok:k.object,vid:k.videoId||"",fn:k.file.name,fw:null,fh:null,ps:ie});var Z={headers:{"x-oss-notification":k.userData?k.userData:""},partSize:ie,parallel:this.options.parallel};this._ossUpload.upload(k,Z)}},{key:"_findUploadIndex",value:function(){for(var k=-1,V=0;V<this._uploadList.length;V++)if(this._uploadList[V].state==o.UPLOADSTATE.INIT){k=V;break}return k}},{key:"_error",value:function(k,V){if(V.name=="cancel")try{this.options.onUploadCanceled(k,V)}catch(H){console.log(H)}else{if(V.message.indexOf("InvalidAccessKeyIdError")>0||V.name=="SignatureDoesNotMatchError"||V.code=="SecurityTokenExpired"||V.code=="InvalidSecurityToken.Expired"||V.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=o.VODSTATE.EXPIRE,k.state=o.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(k,V)}catch(H){console.log(H)}}return}if((V.name=="RequestTimeoutError"||V.name=="ConnectionTimeout"||V.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(k,!0)},1e3*G._retryDuration),void this._retryCount++}V.name=="NoSuchUploadError"&&this._removeCheckoutpoint(k),this._handleError(k,V)}}},{key:"_handleError",value:function(k,V){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],H=o.UPLOADSTATE.FAIlURE;if(k.state!=o.UPLOADSTATE.CANCELED&&(k.state=o.UPLOADSTATE.FAIlURE,this._state=o.VODSTATE.FAILURE,this.options.onUploadFailed&&V&&V.code&&V.message))try{this.options.onUploadFailed(k,V.code,V.message)}catch(X){console.log(X)}if(G&&this._changeState(k,H),this._reportLog("20006",k,{code:V.name,message:V.message,requestId:V.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),this._reportLog("20004",k,{requestId:V.requestId,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),k.ri=P.default.create(),this._findUploadIndex()!=-1){var ne=this;this._state=o.VODSTATE.START,setTimeout(function(){ne.nextUpload()},100)}}},{key:"_complete",value:function(k,V){if(k.state=o.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(k)}catch(ne){console.log(ne)}var G=0;V&&V.res&&V.res.headers&&(G=V.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(k);var H=this;setTimeout(function(){H.nextUpload()},100),this._retryCount=0,this._reportLog("20003",k,{requestId:G})}},{key:"_progress",value:function(k,V,G){if(this.options.onUploadProgress)try{k.loaded=V.loaded,this.options.onUploadProgress(k,V.total,V.loaded)}catch(M){console.log(M)}var H=V.checkpoint,ne=0;H&&(k.checkpoint=H,this._saveCheckoutpoint(k,H,o.UPLOADSTATE.UPLOADING),ne=H.uploadId),this._retryCount=0;var X=this._getPortNumber(H),ie=0;if(G&&G.headers&&(ie=G.headers["x-oss-request-id"]),V.loaded!=0&&this._reportLog("20007",k,{pn:X,requestId:ie}),V.loaded!=1&&this._reportLog("20005",k,{UploadId:ne,pn:X+1,pr:k.retry?1:0,fs:k.file.size,bu:k.bucket,ok:k.object,fn:k.file.name}),!this._invalidUserId&&!k.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var Z={file:k.file,checkpoint:V,userId:this.options.userId,videoId:k.videoId,region:this.options.region,fileHash:k.fileHash};try{var K=this;D.default.upload(Z,function(){},function(M){if((M=JSON.parse(M))&&M.Code=="InvalidParameter"&&M.Message.indexOf("UserId")>0){K._invalidUserId=!0;var I=M.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(I)}})}catch(M){console.log(M)}}}},{key:"_getPortNumber",value:function(k){if(k){var V=k.doneParts;if(V&&V.length>0)return V[V.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(k){var V=this._getCheckoutpointKey(k);d.default.remove(V)}},{key:"_getCheckoutpoint",value:function(k){var V=this._getCheckoutpointKey(k),G=d.default.get(V);if(G)try{return JSON.parse(G)}catch(H){}return""}},{key:"_saveCheckoutpoint",value:function(k,V,G){if(V){var H=this._getCheckoutpointKey(k),ne=k.file,X={fileName:ne.name,lastModified:ne.lastModified,size:ne.size,object:k.object,videoId:k.videoId,bucket:k.bucket,endpoint:k.endpoint,checkpoint:V,loaded:k.loaded,state:G};d.default.set(H,JSON.stringify(X))}}},{key:"_changeState",value:function(k,V){var G=this._getCheckoutpoint(k);G&&((this._onbeforeunload=!0)&&(V=o.UPLOADSTATE.STOPED),this._saveCheckoutpoint(k,G.checkpoint,V))}},{key:"_getCheckoutpointKey",value:function(k){return"upload_"+k.file.lastModified+"_"+k.file.name+"_"+k.file.size}},{key:"_getCheckoutpointFromCloud",value:function(k,V,G){var H={userId:this.options.userId,uploadInfoList:[{FileName:k.file.name,FileSize:k.file.size,FileCreateTime:k.file.lastModified,FileHash:k.fileHash}],region:this.options.region};D.default.get(H,function(ne){V(ne)},G)}},{key:"_reportLog",value:function(k,V,G){G||(G={}),G.ri=V.ri,this._ut&&(G.ut=this._ut),this._log.log(k,G)}},{key:"_initEvent",value:function(){var k=this;window&&(window.onbeforeunload=function(V){if(k._onbeforeunload=!0,k._curIndex!=-1&&k._uploadList.length>k._curIndex){var G=k._uploadList[k._curIndex];k._changeState(G,o.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var k=0;k<this._uploadList.length;k++){var V=this._uploadList[k];V.state!=o.UPLOADSTATE.FAIlURE&&V.state!=o.UPLOADSTATE.STOPED||(V.state=o.UPLOADSTATE.INIT)}this._state=o.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(k){return k.file.size/this.options.partSize>1e4?k.file.size/9999:this.options.partSize}}]),U}());t.default=j},function(pe,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},t.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(pe,t,i){"use strict";function S(e){return e&&e.__esModule?e:{default:e}}function m(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(a,r){for(var d=0;d<r.length;d++){var f=r[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,d){return r&&e(a.prototype,r),d&&e(a,d),a}}(),o=i(3),l=i(17),p=(S(l),i(1)),u=(S(p),function(){function e(a,r){if(m(this,e),a){this._config=a,this.create(this._config),this._uploadInfo=null,this._callback={};var d=function(){};this._callback.onerror=r.onerror||d,this._callback.oncomplete=r.oncomplete||d,this._callback.onprogress=r.onprogress||d}}return g(e,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var d={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(d.timeout=r.timeout),this.oss=new OSS.Wrapper(d)}},{key:"abort",value:function(r){if(r.checkpoint){var d=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,d)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,d){this._uploadInfo=r;var f=this,c=function(h,P,E){return function(_){f._progress(h,P,E),_()}},A={parallel:d.parallel||this._config.parallel||o.UPLOADDEFAULT.PARALLEL,partSize:d.partSize||this._config.partSize||o.UPLOADDEFAULT.PARTSIZE,progress:c};d.headers&&(A.headers=d.headers),r.checkpoint&&(A.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,A).then(function(w,h){f._complete(w)}).catch(function(w){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(w)})}},{key:"header",value:function(r,d,f){this.oss.get(r.object).then(function(c){d(c)}).catch(function(c){f(c)})}},{key:"_progress",value:function(r,d,f){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:d},f)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());t.default=u},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"format",value:function(p){if(arguments.length<2)return null;for(var u=arguments[1],e=1;e<arguments.length;e++){var a=new RegExp("\\{"+(e-1)+"\\}","gm");u=u.replace(a,arguments[e+1])}return{code:p,message:u}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),o}();t.default=g},function(pe,t,i){"use strict";(function(S){function m(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function l(p,u){for(var e=0;e<u.length;e++){var a=u[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(p,a.key,a)}}return function(p,u,e){return u&&l(p.prototype,u),e&&l(p,e),p}}(),o=function(){function l(){m(this,l)}return g(l,null,[{key:"encode",value:function(u){return new S(u).toString("base64")}},{key:"decode",value:function(u){return new S(u,"base64").toString()}}]),l}();t.default=o}).call(t,i(19).Buffer)},function(pe,t,i){"use strict";(function(S){function m(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(C,n){if(m()<n)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(n),C.__proto__=o.prototype):(C===null&&(C=new o(n)),C.length=n),C}function o(C,n,s){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(C,n,s);if(typeof C=="number"){if(typeof n=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,C)}return l(this,C,n,s)}function l(C,n,s,O){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&n instanceof ArrayBuffer?d(C,n,s,O):typeof n=="string"?a(C,n,s):f(C,n)}function p(C){if(typeof C!="number")throw new TypeError('"size" argument must be a number');if(C<0)throw new RangeError('"size" argument must not be negative')}function u(C,n,s,O){return p(n),n<=0?g(C,n):s!==void 0?typeof O=="string"?g(C,n).fill(s,O):g(C,n).fill(s):g(C,n)}function e(C,n){if(p(n),C=g(C,n<0?0:0|c(n)),!o.TYPED_ARRAY_SUPPORT)for(var s=0;s<n;++s)C[s]=0;return C}function a(C,n,s){if(typeof s=="string"&&s!==""||(s="utf8"),!o.isEncoding(s))throw new TypeError('"encoding" must be a valid string encoding');var O=0|w(n,s);C=g(C,O);var b=C.write(n,s);return b!==O&&(C=C.slice(0,b)),C}function r(C,n){var s=n.length<0?0:0|c(n.length);C=g(C,s);for(var O=0;O<s;O+=1)C[O]=255&n[O];return C}function d(C,n,s,O){if(n.byteLength,s<0||n.byteLength<s)throw new RangeError("'offset' is out of bounds");if(n.byteLength<s+(O||0))throw new RangeError("'length' is out of bounds");return n=s===void 0&&O===void 0?new Uint8Array(n):O===void 0?new Uint8Array(n,s):new Uint8Array(n,s,O),o.TYPED_ARRAY_SUPPORT?(C=n,C.__proto__=o.prototype):C=r(C,n),C}function f(C,n){if(o.isBuffer(n)){var s=0|c(n.length);return C=g(C,s),C.length===0||n.copy(C,0,0,s),C}if(n){if(typeof ArrayBuffer!="undefined"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||se(n.length)?g(C,0):r(C,n);if(n.type==="Buffer"&&q(n.data))return r(C,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(C){if(C>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|C}function A(C){return+C!=C&&(C=0),o.alloc(+C)}function w(C,n){if(o.isBuffer(C))return C.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(C)||C instanceof ArrayBuffer))return C.byteLength;typeof C!="string"&&(C=""+C);var s=C.length;if(s===0)return 0;for(var O=!1;;)switch(n){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return oe(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return te(C).length;default:if(O)return oe(C).length;n=(""+n).toLowerCase(),O=!0}}function h(C,n,s){var O=!1;if((n===void 0||n<0)&&(n=0),n>this.length)return"";if((s===void 0||s>this.length)&&(s=this.length),s<=0)return"";if(s>>>=0,n>>>=0,s<=n)return"";for(C||(C="utf8");;)switch(C){case"hex":return ne(this,n,s);case"utf8":case"utf-8":return k(this,n,s);case"ascii":return G(this,n,s);case"latin1":case"binary":return H(this,n,s);case"base64":return W(this,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,n,s);default:if(O)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),O=!0}}function P(C,n,s){var O=C[n];C[n]=C[s],C[s]=O}function E(C,n,s,O,b){if(C.length===0)return-1;if(typeof s=="string"?(O=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=b?0:C.length-1),s<0&&(s=C.length+s),s>=C.length){if(b)return-1;s=C.length-1}else if(s<0){if(!b)return-1;s=0}if(typeof n=="string"&&(n=o.from(n,O)),o.isBuffer(n))return n.length===0?-1:_(C,n,s,O,b);if(typeof n=="number")return n&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(C,n,s):Uint8Array.prototype.lastIndexOf.call(C,n,s):_(C,[n],s,O,b);throw new TypeError("val must be string, number or Buffer")}function _(C,n,s,O,b){function x(xe,le){return F===1?xe[le]:xe.readUInt16BE(le*F)}var F=1,T=C.length,Q=n.length;if(O!==void 0&&((O=String(O).toLowerCase())==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(C.length<2||n.length<2)return-1;F=2,T/=2,Q/=2,s/=2}var ae;if(b){var de=-1;for(ae=s;ae<T;ae++)if(x(C,ae)===x(n,de===-1?0:ae-de)){if(de===-1&&(de=ae),ae-de+1===Q)return de*F}else de!==-1&&(ae-=ae-de),de=-1}else for(s+Q>T&&(s=T-Q),ae=s;ae>=0;ae--){for(var me=!0,be=0;be<Q;be++)if(x(C,ae+be)!==x(n,be)){me=!1;break}if(me)return ae}return-1}function v(C,n,s,O){s=Number(s)||0;var b=C.length-s;O?(O=Number(O))>b&&(O=b):O=b;var x=n.length;if(x%2!=0)throw new TypeError("Invalid hex string");O>x/2&&(O=x/2);for(var F=0;F<O;++F){var T=parseInt(n.substr(2*F,2),16);if(isNaN(T))return F;C[s+F]=T}return F}function D(C,n,s,O){return ee(oe(n,C.length-s),C,s,O)}function R(C,n,s,O){return ee(fe(n),C,s,O)}function y(C,n,s,O){return R(C,n,s,O)}function j(C,n,s,O){return ee(te(n),C,s,O)}function U(C,n,s,O){return ee(_e(n,C.length-s),C,s,O)}function W(C,n,s){return n===0&&s===C.length?L.fromByteArray(C):L.fromByteArray(C.slice(n,s))}function k(C,n,s){s=Math.min(C.length,s);for(var O=[],b=n;b<s;){var x=C[b],F=null,T=x>239?4:x>223?3:x>191?2:1;if(b+T<=s){var Q,ae,de,me;switch(T){case 1:x<128&&(F=x);break;case 2:Q=C[b+1],(192&Q)==128&&(me=(31&x)<<6|63&Q)>127&&(F=me);break;case 3:Q=C[b+1],ae=C[b+2],(192&Q)==128&&(192&ae)==128&&(me=(15&x)<<12|(63&Q)<<6|63&ae)>2047&&(me<55296||me>57343)&&(F=me);break;case 4:Q=C[b+1],ae=C[b+2],de=C[b+3],(192&Q)==128&&(192&ae)==128&&(192&de)==128&&(me=(15&x)<<18|(63&Q)<<12|(63&ae)<<6|63&de)>65535&&me<1114112&&(F=me)}}F===null?(F=65533,T=1):F>65535&&(F-=65536,O.push(F>>>10&1023|55296),F=56320|1023&F),O.push(F),b+=T}return V(O)}function V(C){var n=C.length;if(n<=re)return String.fromCharCode.apply(String,C);for(var s="",O=0;O<n;)s+=String.fromCharCode.apply(String,C.slice(O,O+=re));return s}function G(C,n,s){var O="";s=Math.min(C.length,s);for(var b=n;b<s;++b)O+=String.fromCharCode(127&C[b]);return O}function H(C,n,s){var O="";s=Math.min(C.length,s);for(var b=n;b<s;++b)O+=String.fromCharCode(C[b]);return O}function ne(C,n,s){var O=C.length;(!n||n<0)&&(n=0),(!s||s<0||s>O)&&(s=O);for(var b="",x=n;x<s;++x)b+=ce(C[x]);return b}function X(C,n,s){for(var O=C.slice(n,s),b="",x=0;x<O.length;x+=2)b+=String.fromCharCode(O[x]+256*O[x+1]);return b}function ie(C,n,s){if(C%1!=0||C<0)throw new RangeError("offset is not uint");if(C+n>s)throw new RangeError("Trying to access beyond buffer length")}function Z(C,n,s,O,b,x){if(!o.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>b||n<x)throw new RangeError('"value" argument is out of bounds');if(s+O>C.length)throw new RangeError("Index out of range")}function K(C,n,s,O){n<0&&(n=65535+n+1);for(var b=0,x=Math.min(C.length-s,2);b<x;++b)C[s+b]=(n&255<<8*(O?b:1-b))>>>8*(O?b:1-b)}function M(C,n,s,O){n<0&&(n=4294967295+n+1);for(var b=0,x=Math.min(C.length-s,4);b<x;++b)C[s+b]=n>>>8*(O?b:3-b)&255}function I(C,n,s,O,b,x){if(s+O>C.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function B(C,n,s,O,b){return b||I(C,n,s,4,34028234663852886e22,-34028234663852886e22),N.write(C,n,s,O,23,4),s+4}function z(C,n,s,O,b){return b||I(C,n,s,8,17976931348623157e292,-17976931348623157e292),N.write(C,n,s,O,52,8),s+8}function Y(C){if(C=J(C).replace(he,""),C.length<2)return"";for(;C.length%4!=0;)C+="=";return C}function J(C){return C.trim?C.trim():C.replace(/^\s+|\s+$/g,"")}function ce(C){return C<16?"0"+C.toString(16):C.toString(16)}function oe(C,n){n=n||1/0;for(var s,O=C.length,b=null,x=[],F=0;F<O;++F){if((s=C.charCodeAt(F))>55295&&s<57344){if(!b){if(s>56319){(n-=3)>-1&&x.push(239,191,189);continue}if(F+1===O){(n-=3)>-1&&x.push(239,191,189);continue}b=s;continue}if(s<56320){(n-=3)>-1&&x.push(239,191,189),b=s;continue}s=65536+(b-55296<<10|s-56320)}else b&&(n-=3)>-1&&x.push(239,191,189);if(b=null,s<128){if((n-=1)<0)break;x.push(s)}else if(s<2048){if((n-=2)<0)break;x.push(s>>6|192,63&s|128)}else if(s<65536){if((n-=3)<0)break;x.push(s>>12|224,s>>6&63|128,63&s|128)}else{if(!(s<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;x.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}}return x}function fe(C){for(var n=[],s=0;s<C.length;++s)n.push(255&C.charCodeAt(s));return n}function _e(C,n){for(var s,O,b,x=[],F=0;F<C.length&&!((n-=2)<0);++F)s=C.charCodeAt(F),O=s>>8,b=s%256,x.push(b),x.push(O);return x}function te(C){return L.toByteArray(Y(C))}function ee(C,n,s,O){for(var b=0;b<O&&!(b+s>=n.length||b>=C.length);++b)n[b+s]=C[b];return b}function se(C){return C!==C}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var L=i(21),N=i(22),q=i(23);t.Buffer=o,t.SlowBuffer=A,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=S.TYPED_ARRAY_SUPPORT!==void 0?S.TYPED_ARRAY_SUPPORT:function(){try{var C=new Uint8Array(1);return C.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},C.foo()===42&&typeof C.subarray=="function"&&C.subarray(1,1).byteLength===0}catch(n){return!1}}(),t.kMaxLength=m(),o.poolSize=8192,o._augment=function(C){return C.__proto__=o.prototype,C},o.from=function(C,n,s){return l(null,C,n,s)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(C,n,s){return u(null,C,n,s)},o.allocUnsafe=function(C){return e(null,C)},o.allocUnsafeSlow=function(C){return e(null,C)},o.isBuffer=function(C){return!(C==null||!C._isBuffer)},o.compare=function(C,n){if(!o.isBuffer(C)||!o.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(C===n)return 0;for(var s=C.length,O=n.length,b=0,x=Math.min(s,O);b<x;++b)if(C[b]!==n[b]){s=C[b],O=n[b];break}return s<O?-1:O<s?1:0},o.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(C,n){if(!q(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);var s;if(n===void 0)for(n=0,s=0;s<C.length;++s)n+=C[s].length;var O=o.allocUnsafe(n),b=0;for(s=0;s<C.length;++s){var x=C[s];if(!o.isBuffer(x))throw new TypeError('"list" argument must be an Array of Buffers');x.copy(O,b),b+=x.length}return O},o.byteLength=w,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<C;n+=2)P(this,n,n+1);return this},o.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<C;n+=4)P(this,n,n+3),P(this,n+1,n+2);return this},o.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<C;n+=8)P(this,n,n+7),P(this,n+1,n+6),P(this,n+2,n+5),P(this,n+3,n+4);return this},o.prototype.toString=function(){var C=0|this.length;return C===0?"":arguments.length===0?k(this,0,C):h.apply(this,arguments)},o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||o.compare(this,C)===0},o.prototype.inspect=function(){var C="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(C=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(C+=" ... ")),"<Buffer "+C+">"},o.prototype.compare=function(C,n,s,O,b){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),s===void 0&&(s=C?C.length:0),O===void 0&&(O=0),b===void 0&&(b=this.length),n<0||s>C.length||O<0||b>this.length)throw new RangeError("out of range index");if(O>=b&&n>=s)return 0;if(O>=b)return-1;if(n>=s)return 1;if(n>>>=0,s>>>=0,O>>>=0,b>>>=0,this===C)return 0;for(var x=b-O,F=s-n,T=Math.min(x,F),Q=this.slice(O,b),ae=C.slice(n,s),de=0;de<T;++de)if(Q[de]!==ae[de]){x=Q[de],F=ae[de];break}return x<F?-1:F<x?1:0},o.prototype.includes=function(C,n,s){return this.indexOf(C,n,s)!==-1},o.prototype.indexOf=function(C,n,s){return E(this,C,n,s,!0)},o.prototype.lastIndexOf=function(C,n,s){return E(this,C,n,s,!1)},o.prototype.write=function(C,n,s,O){if(n===void 0)O="utf8",s=this.length,n=0;else if(s===void 0&&typeof n=="string")O=n,s=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(s)?(s|=0,O===void 0&&(O="utf8")):(O=s,s=void 0)}var b=this.length-n;if((s===void 0||s>b)&&(s=b),C.length>0&&(s<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");for(var x=!1;;)switch(O){case"hex":return v(this,C,n,s);case"utf8":case"utf-8":return D(this,C,n,s);case"ascii":return R(this,C,n,s);case"latin1":case"binary":return y(this,C,n,s);case"base64":return j(this,C,n,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,C,n,s);default:if(x)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),x=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var re=4096;o.prototype.slice=function(C,n){var s=this.length;C=~~C,n=n===void 0?s:~~n,C<0?(C+=s)<0&&(C=0):C>s&&(C=s),n<0?(n+=s)<0&&(n=0):n>s&&(n=s),n<C&&(n=C);var O;if(o.TYPED_ARRAY_SUPPORT)O=this.subarray(C,n),O.__proto__=o.prototype;else{var b=n-C;O=new o(b,void 0);for(var x=0;x<b;++x)O[x]=this[x+C]}return O},o.prototype.readUIntLE=function(C,n,s){C|=0,n|=0,s||ie(C,n,this.length);for(var O=this[C],b=1,x=0;++x<n&&(b*=256);)O+=this[C+x]*b;return O},o.prototype.readUIntBE=function(C,n,s){C|=0,n|=0,s||ie(C,n,this.length);for(var O=this[C+--n],b=1;n>0&&(b*=256);)O+=this[C+--n]*b;return O},o.prototype.readUInt8=function(C,n){return n||ie(C,1,this.length),this[C]},o.prototype.readUInt16LE=function(C,n){return n||ie(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUInt16BE=function(C,n){return n||ie(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUInt32LE=function(C,n){return n||ie(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},o.prototype.readUInt32BE=function(C,n){return n||ie(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readIntLE=function(C,n,s){C|=0,n|=0,s||ie(C,n,this.length);for(var O=this[C],b=1,x=0;++x<n&&(b*=256);)O+=this[C+x]*b;return b*=128,O>=b&&(O-=Math.pow(2,8*n)),O},o.prototype.readIntBE=function(C,n,s){C|=0,n|=0,s||ie(C,n,this.length);for(var O=n,b=1,x=this[C+--O];O>0&&(b*=256);)x+=this[C+--O]*b;return b*=128,x>=b&&(x-=Math.pow(2,8*n)),x},o.prototype.readInt8=function(C,n){return n||ie(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},o.prototype.readInt16LE=function(C,n){n||ie(C,2,this.length);var s=this[C]|this[C+1]<<8;return 32768&s?4294901760|s:s},o.prototype.readInt16BE=function(C,n){n||ie(C,2,this.length);var s=this[C+1]|this[C]<<8;return 32768&s?4294901760|s:s},o.prototype.readInt32LE=function(C,n){return n||ie(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,n){return n||ie(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readFloatLE=function(C,n){return n||ie(C,4,this.length),N.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,n){return n||ie(C,4,this.length),N.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,n){return n||ie(C,8,this.length),N.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,n){return n||ie(C,8,this.length),N.read(this,C,!1,52,8)},o.prototype.writeUIntLE=function(C,n,s,O){(C=+C,n|=0,s|=0,!O)&&Z(this,C,n,s,Math.pow(2,8*s)-1,0);var b=1,x=0;for(this[n]=255&C;++x<s&&(b*=256);)this[n+x]=C/b&255;return n+s},o.prototype.writeUIntBE=function(C,n,s,O){(C=+C,n|=0,s|=0,!O)&&Z(this,C,n,s,Math.pow(2,8*s)-1,0);var b=s-1,x=1;for(this[n+b]=255&C;--b>=0&&(x*=256);)this[n+b]=C/x&255;return n+s},o.prototype.writeUInt8=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,1,255,0),o.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[n]=255&C,n+1},o.prototype.writeUInt16LE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=255&C,this[n+1]=C>>>8):K(this,C,n,!0),n+2},o.prototype.writeUInt16BE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=C>>>8,this[n+1]=255&C):K(this,C,n,!1),n+2},o.prototype.writeUInt32LE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n+3]=C>>>24,this[n+2]=C>>>16,this[n+1]=C>>>8,this[n]=255&C):M(this,C,n,!0),n+4},o.prototype.writeUInt32BE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n]=C>>>24,this[n+1]=C>>>16,this[n+2]=C>>>8,this[n+3]=255&C):M(this,C,n,!1),n+4},o.prototype.writeIntLE=function(C,n,s,O){if(C=+C,n|=0,!O){var b=Math.pow(2,8*s-1);Z(this,C,n,s,b-1,-b)}var x=0,F=1,T=0;for(this[n]=255&C;++x<s&&(F*=256);)C<0&&T===0&&this[n+x-1]!==0&&(T=1),this[n+x]=(C/F>>0)-T&255;return n+s},o.prototype.writeIntBE=function(C,n,s,O){if(C=+C,n|=0,!O){var b=Math.pow(2,8*s-1);Z(this,C,n,s,b-1,-b)}var x=s-1,F=1,T=0;for(this[n+x]=255&C;--x>=0&&(F*=256);)C<0&&T===0&&this[n+x+1]!==0&&(T=1),this[n+x]=(C/F>>0)-T&255;return n+s},o.prototype.writeInt8=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,1,127,-128),o.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[n]=255&C,n+1},o.prototype.writeInt16LE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=255&C,this[n+1]=C>>>8):K(this,C,n,!0),n+2},o.prototype.writeInt16BE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=C>>>8,this[n+1]=255&C):K(this,C,n,!1),n+2},o.prototype.writeInt32LE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[n]=255&C,this[n+1]=C>>>8,this[n+2]=C>>>16,this[n+3]=C>>>24):M(this,C,n,!0),n+4},o.prototype.writeInt32BE=function(C,n,s){return C=+C,n|=0,s||Z(this,C,n,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),o.TYPED_ARRAY_SUPPORT?(this[n]=C>>>24,this[n+1]=C>>>16,this[n+2]=C>>>8,this[n+3]=255&C):M(this,C,n,!1),n+4},o.prototype.writeFloatLE=function(C,n,s){return B(this,C,n,!0,s)},o.prototype.writeFloatBE=function(C,n,s){return B(this,C,n,!1,s)},o.prototype.writeDoubleLE=function(C,n,s){return z(this,C,n,!0,s)},o.prototype.writeDoubleBE=function(C,n,s){return z(this,C,n,!1,s)},o.prototype.copy=function(C,n,s,O){if(s||(s=0),O||O===0||(O=this.length),n>=C.length&&(n=C.length),n||(n=0),O>0&&O<s&&(O=s),O===s)return 0;if(C.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw new RangeError("sourceStart out of bounds");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),C.length-n<O-s&&(O=C.length-n+s);var b,x=O-s;if(this===C&&s<n&&n<O)for(b=x-1;b>=0;--b)C[b+n]=this[b+s];else if(x<1e3||!o.TYPED_ARRAY_SUPPORT)for(b=0;b<x;++b)C[b+n]=this[b+s];else Uint8Array.prototype.set.call(C,this.subarray(s,s+x),n);return x},o.prototype.fill=function(C,n,s,O){if(typeof C=="string"){if(typeof n=="string"?(O=n,n=0,s=this.length):typeof s=="string"&&(O=s,s=this.length),C.length===1){var b=C.charCodeAt(0);b<256&&(C=b)}if(O!==void 0&&typeof O!="string")throw new TypeError("encoding must be a string");if(typeof O=="string"&&!o.isEncoding(O))throw new TypeError("Unknown encoding: "+O)}else typeof C=="number"&&(C&=255);if(n<0||this.length<n||this.length<s)throw new RangeError("Out of range index");if(s<=n)return this;n>>>=0,s=s===void 0?this.length:s>>>0,C||(C=0);var x;if(typeof C=="number")for(x=n;x<s;++x)this[x]=C;else{var F=o.isBuffer(C)?C:oe(new o(C,O).toString()),T=F.length;for(x=0;x<s-n;++x)this[x+n]=F[x%T]}return this};var he=/[^+\/0-9A-Za-z-_]/g}).call(t,i(20))},function(pe,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(S){typeof window=="object"&&(i=window)}pe.exports=i},function(pe,t,i){"use strict";function S(c){var A=c.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[A-2]==="="?2:c[A-1]==="="?1:0}function m(c){return 3*c.length/4-S(c)}function g(c){var A,w,h,P,E,_=c.length;P=S(c),E=new a(3*_/4-P),w=P>0?_-4:_;var v=0;for(A=0;A<w;A+=4)h=e[c.charCodeAt(A)]<<18|e[c.charCodeAt(A+1)]<<12|e[c.charCodeAt(A+2)]<<6|e[c.charCodeAt(A+3)],E[v++]=h>>16&255,E[v++]=h>>8&255,E[v++]=255&h;return P===2?(h=e[c.charCodeAt(A)]<<2|e[c.charCodeAt(A+1)]>>4,E[v++]=255&h):P===1&&(h=e[c.charCodeAt(A)]<<10|e[c.charCodeAt(A+1)]<<4|e[c.charCodeAt(A+2)]>>2,E[v++]=h>>8&255,E[v++]=255&h),E}function o(c){return u[c>>18&63]+u[c>>12&63]+u[c>>6&63]+u[63&c]}function l(c,A,w){for(var h,P=[],E=A;E<w;E+=3)h=(c[E]<<16)+(c[E+1]<<8)+c[E+2],P.push(o(h));return P.join("")}function p(c){for(var A,w=c.length,h=w%3,P="",E=[],_=0,v=w-h;_<v;_+=16383)E.push(l(c,_,_+16383>v?v:_+16383));return h===1?(A=c[w-1],P+=u[A>>2],P+=u[A<<4&63],P+="=="):h===2&&(A=(c[w-2]<<8)+c[w-1],P+=u[A>>10],P+=u[A>>4&63],P+=u[A<<2&63],P+="="),E.push(P),E.join("")}t.byteLength=m,t.toByteArray=g,t.fromByteArray=p;for(var u=[],e=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,f=r.length;d<f;++d)u[d]=r[d],e[r.charCodeAt(d)]=d;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(pe,t){t.read=function(i,S,m,g,o){var l,p,u=8*o-g-1,e=(1<<u)-1,a=e>>1,r=-7,d=m?o-1:0,f=m?-1:1,c=i[S+d];for(d+=f,l=c&(1<<-r)-1,c>>=-r,r+=u;r>0;l=256*l+i[S+d],d+=f,r-=8);for(p=l&(1<<-r)-1,l>>=-r,r+=g;r>0;p=256*p+i[S+d],d+=f,r-=8);if(l===0)l=1-a;else{if(l===e)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,g),l-=a}return(c?-1:1)*p*Math.pow(2,l-g)},t.write=function(i,S,m,g,o,l){var p,u,e,a=8*l-o-1,r=(1<<a)-1,d=r>>1,f=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=g?0:l-1,A=g?1:-1,w=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(u=isNaN(S)?1:0,p=r):(p=Math.floor(Math.log(S)/Math.LN2),S*(e=Math.pow(2,-p))<1&&(p--,e*=2),S+=p+d>=1?f/e:f*Math.pow(2,1-d),S*e>=2&&(p++,e/=2),p+d>=r?(u=0,p=r):p+d>=1?(u=(S*e-1)*Math.pow(2,o),p+=d):(u=S*Math.pow(2,d-1)*Math.pow(2,o),p=0));o>=8;i[m+c]=255&u,c+=A,u/=256,o-=8);for(p=p<<o|u,a+=o;a>0;i[m+c]=255&p,c+=A,p/=256,a-=8);i[m+c-A]|=128*w}},function(pe,t){var i={}.toString;pe.exports=Array.isArray||function(S){return i.call(S)=="[object Array]"}},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"set",value:function(p,u){try{window.localStorage&&localStorage.setItem(p,u)}catch(e){window[p+"_localStorage"]=u}}},{key:"get",value:function(p){try{if(window.localStorage)return localStorage.getItem(p)}catch(u){return window[p+"_localStorage"]}return""}},{key:"remove",value:function(p){try{window.localStorage&&localStorage.removeItem(p)}catch(u){delete window[p+"_localStorage"]}}}]),o}();t.default=g},function(pe,t,i){"use strict";function S(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function o(l,p){for(var u=0;u<p.length;u++){var e=p[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,p,u){return p&&o(l.prototype,p),u&&o(l,u),l}}(),g=function(){function o(){S(this,o)}return m(o,null,[{key:"get",value:function(p){for(var u=p+"",e=document.cookie.split(";"),a=0;a<e.length;a++){var r=e[a].trim();if(r.indexOf(u)==0)return unescape(r.substring(u.length+1,r.length))}return""}},{key:"set",value:function(p,u,e){var a=new Date;a.setTime(a.getTime()+24*e*60*60*1e3);var r="expires="+a.toGMTString();document.cookie=p+"="+escape(u)+"; "+r}}]),o}();t.default=g},function(pe,t,i){"use strict";function S(a){return a&&a.__esModule?a:{default:a}}function m(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function a(r,d){for(var f=0;f<d.length;f++){var c=d[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(r,c.key,c)}}return function(r,d,f){return d&&a(r.prototype,d),f&&a(r,f),r}}(),o=i(8),l=S(o),p=i(9),u=S(p),e=function(){function a(){m(this,a)}return g(a,null,[{key:"refreshUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"RefreshUploadVideo",VideoId:d.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId},h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),P="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(P,function(E){var E=JSON.parse(E);f&&f(E)},function(E){if(c){var _=JSON.parse(E);c(_)}})}},{key:"getUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadVideo",Title:d.title,FileName:d.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.fileSize&&(w.FileSize=d.fileSize),d.description&&(w.Description=d.description),d.cateId&&(w.CateId=d.cateId),d.tags&&(w.Tags=d.tags),d.templateGroupId&&(w.TemplateGroupId=d.templateGroupId),d.storageLocation&&(w.StorageLocation=d.storageLocation),d.coverUrl&&(w.CoverURL=d.coverUrl),d.transCodeMode&&(w.TransCodeMode=d.transCodeMode),d.userData&&(w.UserData=JSON.stringify(d.userData));var h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),P="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(P,function(E){try{E=JSON.parse(E)}catch(_){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(E)},function(E){if(c){var _={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{_=JSON.parse(E)}catch(v){}c(_)}})}},{key:"getImageUploadAuth",value:function(d,f,c){var A=(u.default.randomUUID(),u.default.randomUUID()),w={AccessKeyId:d.accessKeyId,SecurityToken:d.securityToken,Action:"CreateUploadImage",ImageType:d.imageType?d.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:A,RequestId:d.requestId};d.title&&(w.Title=d.title),d.imageExt&&(w.ImageExt=d.imageExt),d.tags&&(w.Tags=d.tags),d.storageLocation&&(w.StorageLocation=d.storageLocation);var h=u.default.makeUTF8sort(w,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(w,d.accessKeySecret)),P="https://vod."+d.region+".aliyuncs.com/?"+h;l.default.get(P,function(E){E=JSON.parse(E),f&&f(E)},function(E){if(c){var _=JSON.parse(E);c(_)}})}}]),a}();t.default=e},function(pe,t,i){!function(S,m,g){pe.exports=t=m(i(0),i(28),i(29))}(0,function(S){return S.HmacSHA1})},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return function(){var m=S,g=m.lib,o=g.WordArray,l=g.Hasher,p=m.algo,u=[],e=p.SHA1=l.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,d){for(var f=this._hash.words,c=f[0],A=f[1],w=f[2],h=f[3],P=f[4],E=0;E<80;E++){if(E<16)u[E]=0|r[d+E];else{var _=u[E-3]^u[E-8]^u[E-14]^u[E-16];u[E]=_<<1|_>>>31}var v=(c<<5|c>>>27)+P+u[E];v+=E<20?1518500249+(A&w|~A&h):E<40?1859775393+(A^w^h):E<60?(A&w|A&h|w&h)-1894007588:(A^w^h)-899497514,P=h,h=w,w=A<<30|A>>>2,A=c,c=v}f[0]=f[0]+c|0,f[1]=f[1]+A|0,f[2]=f[2]+w|0,f[3]=f[3]+h|0,f[4]=f[4]+P|0},_doFinalize:function(){var r=this._data,d=r.words,f=8*this._nDataBytes,c=8*r.sigBytes;return d[c>>>5]|=128<<24-c%32,d[14+(c+64>>>9<<4)]=Math.floor(f/4294967296),d[15+(c+64>>>9<<4)]=f,r.sigBytes=4*d.length,this._process(),this._hash},clone:function(){var r=l.clone.call(this);return r._hash=this._hash.clone(),r}});m.SHA1=l._createHelper(e),m.HmacSHA1=l._createHmacHelper(e)}(),S.SHA1})},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){!function(){var m=S,g=m.lib,o=g.Base,l=m.enc,p=l.Utf8,u=m.algo;u.HMAC=o.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=p.parse(r));var d=a.blockSize,f=4*d;r.sigBytes>f&&(r=a.finalize(r)),r.clamp();for(var c=this._oKey=r.clone(),A=this._iKey=r.clone(),w=c.words,h=A.words,P=0;P<d;P++)w[P]^=1549556828,h[P]^=909522486;c.sigBytes=A.sigBytes=f,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var r=this._hasher,d=r.finalize(a);return r.reset(),r.finalize(this._oKey.clone().concat(d))}})}()})},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return function(){function m(u,e,a){for(var r=[],d=0,f=0;f<e;f++)if(f%4){var c=a[u.charCodeAt(f-1)]<<f%4*2,A=a[u.charCodeAt(f)]>>>6-f%4*2;r[d>>>2]|=(c|A)<<24-d%4*8,d++}return l.create(r,d)}var g=S,o=g.lib,l=o.WordArray,p=g.enc;p.Base64={stringify:function(e){var a=e.words,r=e.sigBytes,d=this._map;e.clamp();for(var f=[],c=0;c<r;c+=3)for(var A=a[c>>>2]>>>24-c%4*8&255,w=a[c+1>>>2]>>>24-(c+1)%4*8&255,h=a[c+2>>>2]>>>24-(c+2)%4*8&255,P=A<<16|w<<8|h,E=0;E<4&&c+.75*E<r;E++)f.push(d.charAt(P>>>6*(3-E)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(e){var a=e.length,r=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<r.length;f++)d[r.charCodeAt(f)]=f}var c=r.charAt(64);if(c){var A=e.indexOf(c);A!==-1&&(a=A)}return m(e,a,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),S.enc.Base64})},function(pe,t,i){"use strict";function S(v){return v&&v.__esModule?v:{default:v}}function m(v,D){if(!(v instanceof D))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function v(D,R){for(var y=0;y<R.length;y++){var j=R[y];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}return function(D,R,y){return R&&v(D.prototype,R),y&&v(D,y),D}}(),o=i(8),l=S(o),p=i(7),u=S(p),e=i(4),a=S(e),r=i(6),d=S(r),f=i(1),c=S(f),A=i(9),w=S(A),h=i(2),P=i(11),E=i(10),_=function(){function v(){m(this,v)}return g(v,null,[{key:"getAuthInfo",value:function(R,y,j){var U=R+"|f#Ylm&^1TppeRhLg|"+j;return y&&(U=R+"|"+y+"|f#Ylm&^1TppeRhLg|"+j),h(E.parse(U)).toString(P)}},{key:"upload",value:function(R,y,j){var U=c.default.ISODateString(new Date),W=Math.floor(new Date().valueOf()/1e3),k=a.default.getClientId();k=a.default.setClientId(k);var V=v.getAuthInfo(R.userId,k,W),G=w.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:W,Timestamp:U,AuthInfo:V,FileName:R.file.name,FileSize:R.file.size,FileCreateTime:R.file.lastModified,FileHash:R.fileHash,UploadId:R.checkpoint.checkpoint.uploadId,PartSize:R.checkpoint.checkpoint.partSize,DonePartsCount:R.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(R.checkpoint),UploadRatio:R.checkpoint.loaded,UserId:R.userId,VideoId:R.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};k&&(H.ClientId=k);var ne=w.default.makeUTF8sort(H,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga(H,R.accessKeySecret)),X="https://vod."+R.region+".aliyuncs.com/?"+ne;l.default.get(X,function(ie){y&&y()},function(ie){ie&&(j(ie),console.log(ie))})}},{key:"get",value:function(R,y,j){var U=c.default.ISODateString(new Date),W=Math.floor(new Date().valueOf()/1e3),k=a.default.getClientId(),V=v.getAuthInfo(R.userId,k,W),G=w.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:d.default.version,AuthTimestamp:W,Timestamp:U,AuthInfo:V,UserId:R.userId,UploadInfoList:JSON.stringify(R.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};k&&(H.ClientId=k);var ne=w.default.makeUTF8sort(H,"=","&")+"&Signature="+w.default.aliyunEncodeURI(w.default.makeChangeSiga(H,R.accessKeySecret)),X="https://vod."+R.region+".aliyuncs.com/?"+ne;l.default.get(X,function(ie){var Z={},K=k;ie=ie?JSON.parse(ie):{},ie.UploadProgress&&ie.UploadProgress.UploadProgressList&&ie.UploadProgress.UploadProgressList.length>0&&(Z=ie.UploadProgress.UploadProgressList[0],K=Z.ClientId),a.default.setClientId(K),y&&y(Z)},function(ie){ie&&(j(ie),console.log(ie))})}}]),v}();t.default=_},function(pe,t,i){"use strict";function S(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var m=function(){function p(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&p(u.prototype,e),a&&p(u,a),u}}(),g=i(2),o=i(33),l=(i(11),function(){function p(){S(this,p)}return m(p,null,[{key:"getMd5",value:function(e,a,r){var d=new FileReader;d.onload=function(A){try{if(A&&A.target){var w=g(o.parse(A.target.result)),h=w.toString();a(h)}}catch(P){console.log(P)}},d.onerror=function(A){console.log(A),errorCallback(A)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=f.call(e,0,1024);d.readAsBinaryString(c)}}]),p}());t.default=l},function(pe,t,i){!function(S,m){pe.exports=t=m(i(0))}(0,function(S){return S.enc.Latin1})}])}).call(this,$("yLpj"))},s8TD:function(dt,ge,$){"use strict";$.d(ge,"a",function(){return p});var Ue=$("Pv/L"),ue=$("14J3"),pe=$("BMrR"),t=$("jCWc"),i=$("kPKH"),S=$("2qtc"),m=$("kLXV"),g=$("q1tI"),o=$.n(g),l=$("dfu6"),p=function(e){return new Promise(function(a,r){if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return r("WebRTC not supported by browser");var d=new RTCPeerConnection,f=[];d.createDataChannel(""),d.createOffer().then(function(c){return d.setLocalDescription(c)}).catch(function(c){return r(c)}),d.onicecandidate=function(c){console.log("event:",c);var A=[];if(!c||!c.candidate){if(console.log("ips",f),f.length==0||!Object(l.a)(f[0])){var w=m.a.info({title:o.a.createElement(pe.a,null,o.a.createElement(i.a,{flex:"1"},"\u63D0\u793A"),o.a.createElement(i.a,null,o.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return w.destroy()}}))),icon:null,width:500,className:"custom-modal-divider",content:o.a.createElement(pe.a,null,o.a.createElement(i.a,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",e.ip_limit==="inner"&&o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),o.a.createElement("br",null),o.a.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return r("WebRTC disabled or restricted by browser")}var h=f.filter(function(G){return Object(l.a)(G)});return a(h.join(""))}var P=c.candidate.candidate.split(" "),E=Object(Ue.a)(P),_=E[0],v=E[1],D=E[2],R=E[3],y=E[4],j=E[5],U=E[7],W=E.slice(8),k=["rtp","rtpc"];if(console.log("event:",c),f.some(function(G){return G==y})||f.push(y),console.log(" candidate: "+_.split(":")[1]),console.log(" component: "+k[v-1]),console.log(" protocol: "+D),console.log(" priority: "+R),console.log(" ip: "+y),console.log(" port: "+j),console.log(" type: "+U),W.length){console.log("attributes: ");for(var V=0;V<W.length;V+=2)console.log("> "+W[V]+": "+W[V+1])}}})}},sBCT:function(dt,ge,$){"use strict";var Ue=$("MXD1"),ue=$("CFYs"),pe=$("WmNS"),t=$.n(pe),i=$("9og8"),S=$("2qtc"),m=$("kLXV"),g=$("miYZ"),o=$("tsqr"),l=$("y8nQ"),p=$("Vl3Y"),u=$("tJVT"),e=$("k1fw"),a=$("oBTY"),r=$("5NDa"),d=$("5rEg"),f=$("q1tI"),c=$.n(f),A=$("Ty5D"),w=$("55Ip"),h=$("9kvl"),P=$("kwm0"),E=$.n(P),_=$("Aky1"),v=d.a.TextArea,D=500,R=function(U,W){var k,V=W.payload||{},G=V.uploadInfo,H=G===void 0?{}:G;switch(W.type){case"addVideo":return{videoList:[].concat(Object(a.a)(U.videoList),[{name:H.file.name,size:H.file.size,type:H.file.type,fileHash:H.fileHash,state:H.state,videoId:H.videoId,loaded:H.loaded||0,title:""}])};case"removeVideo":return{videoList:U.videoList.filter(function(ne){return ne.name!==W.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:U.videoList.map(function(ne){return ne.name===W.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},ne),{loaded:W.payload.progressPercent,videoId:H.videoId,fileHash:H.fileHash}):ne})};case"updateTitle":return{videoList:(k=U.videoList)===null||k===void 0?void 0:k.map(function(ne){return ne.name===W.payload.item.name?Object(e.a)(Object(e.a)({},ne),{title:W.payload.title}):ne})};default:return{videoList:[]}}},y=function(U){var W,k=U.user,V=U.globalSetting,G=U.loading,H=U.dispatch,ne=U.visible,X=U.editData,ie=U.onCancel,Z=ie===void 0?function(){}:ie,K=U.onOk,M=K===void 0?function(){}:K,I=Object(A.m)(),B=p.a.useForm(),z=Object(u.a)(B,1),Y=z[0],J=Object(f.useReducer)(R,{videoList:[]}),ce=Object(u.a)(J,2),oe=ce[0],fe=ce[1],_e=Object(f.useState)(!1),te=Object(u.a)(_e,2),ee=te[0],se=te[1],L=Object(f.useRef)(),N=Object(f.useState)(),q=Object(u.a)(N,2),re=q[0],he=q[1],C=Object(f.useState)(!1),n=Object(u.a)(C,2),s=n[0],O=n[1],b=Object(f.useState)(!1),x=Object(u.a)(b,2),F=x[0],T=x[1];Object(f.useEffect)(function(){if(!X)return;O(X.is_link),he(X.link),!X.is_link&&fe({type:"addVideo",payload:{uploadInfo:{file:{name:X.file_name},videoId:X.video_id,loaded:100}}}),Y.setFieldsValue({name:X.name,description:X.description})},[X]);var Q=function(){var ze=document.getElementById("fileUpload");ze.value=""},ae=function(ze){var He,ut,tt;O(!1);var ot=ze.target.files[0];if(!ot){Q();return}var ht=ot.name.toLowerCase();if(ht&&ht.indexOf(".avi")==-1&&ht.indexOf(".flv")==-1&&ht.indexOf(".f4v")==-1&&ht.indexOf(".m4v")==-1&&ht.indexOf(".mov")==-1&&ht.indexOf(".mp4")==-1&&ht.indexOf(".rmvb")==-1&&ht.indexOf(".swf")==-1&&ht.indexOf(".webm")==-1&&ht.indexOf(".wmv")==-1){o.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Q();return}if(!(((He=k.userInfo)===null||He===void 0?void 0:He.admin)||((ut=k.userInfo)===null||ut===void 0?void 0:ut.business))&&ot.size>D*1024*1024){o.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(D,"M")),Q();return}if((tt=oe.videoList)===null||tt===void 0?void 0:tt.find(function(Rt){return Rt.name===ot.name})){o.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Q();return}me(ot)},de=function(ze,He){m.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",He?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Q(),fe({type:"removeVideo",payload:{name:ze}})}})},me=function(ze){var He,ut='{"Vod":{}}';if(se(!0),L.current){L.current.addFile(ze,null,null,null,ut);return}Object(_.a)((He=k.userInfo)===null||He===void 0?void 0:He.login,{create:!L,addFileSuccess:function(ot){fe({type:"addVideo",payload:{uploadInfo:ot}})},onUploadProgress:function(ot,ht,Rt){var yn=Math.ceil(Rt*100);fe({type:"updateProgress",payload:{uploadInfo:ot,progressPercent:yn}}),Q()},onUploadFailed:function(ot){o.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(ot){se(!1)},onUploadSucceed:function(ot){se(!1)},onUploadError:function(ot){se(!1)},gotUploader:function(ot){ot.addFile(ze,null,null,null,ut),L.current=ot}})},be=function(){var Ie=Object(i.a)(t.a.mark(function ze(){var He,ut,tt,ot;return t.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Y.validateFields();case 2:if(!(!s&&!((He=oe.videoList)===null||He===void 0?void 0:He.length)||s&&!re)){Rt.next=5;break}return o.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Rt.abrupt("return");case 5:return T(!0),tt=s?{link:re}:{video_id:(ut=oe.videoList)===null||ut===void 0?void 0:ut[0].videoId},Rt.next=9,M(Object(e.a)(Object(e.a)({},tt),{name:Y.getFieldValue("name"),description:Y.getFieldValue("description")}));case 9:ot=Rt.sent,T(!1),ot.id&&xe();case 12:case"end":return Rt.stop()}},ze)}));return function(){return Ie.apply(this,arguments)}}(),xe=function(){Y.resetFields(),fe({type:"removeAll"}),he(null),O(null)},le=function(){Z(),xe()},Fe=function(){var ze,He,ut,tt,ot,ht,Rt,yn,xn,On,un,Ln;return c.a.createElement(c.a.Fragment,null,!s&&!!((ze=oe.videoList)===null||ze===void 0?void 0:ze.length)&&c.a.createElement("div",{className:E.a.fileProgress},((He=oe.videoList)===null||He===void 0||((ut=He[0])===null||ut===void 0)?void 0:ut.loaded)==100?c.a.createElement("div",{className:"".concat(E.a.videoName," font14")},(tt=oe.videoList)===null||tt===void 0||((ot=tt[0])===null||ot===void 0)?void 0:ot.name):c.a.createElement(ue.a,{style:{width:"80%"},percent:(ht=oe.videoList)===null||ht===void 0||((Rt=ht[0])===null||Rt===void 0)?void 0:Rt.loaded,status:((yn=oe.videoList)===null||yn===void 0||((xn=yn[0])===null||xn===void 0)?void 0:xn.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:E.a.fileCancel,onClick:function(){var Pn,Rn,Fn,Un;return de((Pn=oe.videoList)===null||Pn===void 0||((Rn=Pn[0])===null||Rn===void 0)?void 0:Rn.name,((Fn=oe.videoList)===null||Fn===void 0||((Un=Fn[0])===null||Un===void 0)?void 0:Un.loaded)==100)}},((On=oe.videoList)===null||On===void 0||((un=On[0])===null||un===void 0)?void 0:un.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ln=oe.videoList)===null||Ln===void 0?void 0:Ln.length)&&c.a.createElement("div",{className:E.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:E.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(E.a.upload," ").concat(E.a.uploadLink),onClick:function(){return O(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),s&&c.a.createElement(d.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:re,onChange:function(Pn){return he(Pn.target.value)}}))};return c.a.createElement(m.a,{centered:!0,maskClosable:!1,title:X?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:E.a.modal,visible:ne,confirmLoading:F,onOk:be,onCancel:le},c.a.createElement(p.a,{form:Y},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ae,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},c.a.createElement(d.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:E.a.contentItem},Fe()),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},c.a.createElement(v,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),c.a.createElement("div",{className:"c-grey-999"},c.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),c.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",c.a.createElement(w.Link,{to:"/users/".concat((W=k.userInfo)===null||W===void 0?void 0:W.login,"/videos/protocol"),target:"_blank",className:E.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),c.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),c.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),c.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};ge.a=Object(h.a)(function(j){var U=j.user,W=j.loading,k=j.globalSetting;return{user:U,globalSetting:k,loading:W}})(y)},xKgJ:function(dt,ge,$){"use strict";$.d(ge,"o",function(){return S}),$.d(ge,"b",function(){return m}),$.d(ge,"c",function(){return g}),$.d(ge,"e",function(){return o}),$.d(ge,"f",function(){return l}),$.d(ge,"r",function(){return p}),$.d(ge,"g",function(){return u}),$.d(ge,"s",function(){return e}),$.d(ge,"d",function(){return a}),$.d(ge,"i",function(){return r}),$.d(ge,"j",function(){return d}),$.d(ge,"q",function(){return f}),$.d(ge,"h",function(){return c}),$.d(ge,"p",function(){return A}),$.d(ge,"a",function(){return v}),$.d(ge,"l",function(){return oe}),$.d(ge,"m",function(){return fe}),$.d(ge,"k",function(){return _e}),$.d(ge,"n",function(){return ee}),$.d(ge,"t",function(){return se});var Ue=$("9kvl"),ue;(function(L){L[L.SuperAdmin=1]="SuperAdmin",L[L.Operation=2]="Operation",L[L.CertifiedTeacher=5]="CertifiedTeacher",L[L.TrainingProduction=8]="TrainingProduction",L[L.UncertifiedTeacher=12]="UncertifiedTeacher",L[L.Student=15]="Student"})(ue||(ue={}));var pe;(function(L){L[L.SuperAdmin=1]="SuperAdmin",L[L.Operation=2]="Operation",L[L.Admin=5]="Admin",L[L.Teacher=8]="Teacher",L[L.Assistant=12]="Assistant",L[L.Student=15]="Student"})(pe||(pe={}));var t=function(N){var q=Object(Ue.b)()._store.getState(),re=q.user,he=re.userInfo;return N.some(function(C){return C==(he==null?void 0:he.role)})},i=function(N){var q=Object(Ue.b)()._store.getState(),re=q.user,he=re.userInfo;return(he==null?void 0:he.own)?!0:N.some(function(C){var n;return C==(he==null||((n=he.course)===null||n===void 0)?void 0:n.course_role)})},S=function(){var N=Object(Ue.b)()._store.getState(),q=N.user,re=q.userInfo;return re.main_site},m=function(){var N,q=Object(Ue.b)()._store.getState(),re=q.user,he=re.userInfo;return he==null||((N=he.course)===null||N===void 0)?void 0:N.course_is_end},g=function(){return i([pe.SuperAdmin,pe.Operation,pe.Admin,pe.Teacher,pe.Assistant])},o=function(){return i([pe.SuperAdmin,pe.Teacher,pe.Admin,pe.Assistant,pe.Operation])},l=function(){return i([pe.SuperAdmin,pe.Teacher,pe.Admin])},p=function(){return i([pe.SuperAdmin])},u=function(){return i([pe.SuperAdmin,pe.Operation,pe.Admin])},e=function(){return i([pe.SuperAdmin,pe.Operation])},a=function(){return i([pe.SuperAdmin,pe.Admin])},r=function(){return i([pe.SuperAdmin,pe.Operation,pe.Admin,pe.Teacher])},d=function(){return i([pe.Assistant])},f=function(){return i([pe.Student])},c=function(){return i([pe.SuperAdmin,pe.Operation,pe.Admin,pe.Teacher,pe.Assistant,pe.Student])},A=function(){var N,q=Object(Ue.b)()._store.getState(),re=q.user,he=re.userInfo;return(he==null||((N=he.course)===null||N===void 0)?void 0:N.course_role)===null},w=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student])},h=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q||!q&&t([ue.SuperAdmin])},P=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return q||!q&&t([ue.SuperAdmin,ue.Operation])},E=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student]):q||!q&&t([ue.SuperAdmin,ue.Operation])},_=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student]):q||!q&&t([ue.SuperAdmin,ue.Operation])},v=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction])},D=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin]):q||!q&&t([ue.SuperAdmin])},R=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation]):q||!q&&t([ue.SuperAdmin,ue.Operation])},y=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student]):q||!q&&t([ue.SuperAdmin,ue.Operation])},j=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher]):q||!q&&t([ue.SuperAdmin,ue.Operation])},U=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher]):q||!q&&t([ue.SuperAdmin,ue.Operation])},W=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin]):!1},k=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student])},V=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin]):q||!q&&t([ue.SuperAdmin])},G=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation]):q||!q&&t([ue.SuperAdmin,ue.Operation])},H=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher,ue.Student]):q||!q&&t([ue.SuperAdmin,ue.Operation])},ne=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!1:q||!q&&t([ue.SuperAdmin,ue.Operation])},X=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?q||!q&&t([ue.SuperAdmin,ue.Operation]):!1},ie=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher]):!1},Z=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?!q&&t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher]):!1},K=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher]):q||!q&&t([ue.SuperAdmin,ue.Operation])},M=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher])},I=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin]):q||!q&&t([ue.SuperAdmin])},B=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation]):q||!q&&t([ue.SuperAdmin,ue.Operation])},z=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher]):q||!q&&t([ue.SuperAdmin,ue.Operation])},Y=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?q||!q&&t([ue.SuperAdmin,ue.Operation]):!1},J=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return N?t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher,ue.TrainingProduction,ue.UncertifiedTeacher]):q||!q&&t([ue.SuperAdmin,ue.Operation])},ce=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return i([pe.Teacher])},oe=function(){return t([ue.SuperAdmin])},fe=function(){return t([ue.SuperAdmin,ue.Operation])},_e=function(){return t([ue.Student])},te=function(){return t([ue.SuperAdmin,ue.Operation,ue.CertifiedTeacher])},ee=function(){var N,q=Object(Ue.b)()._store.getState(),re=q.user;return!!((N=re.userInfo)===null||N===void 0?void 0:N.login)},se=function(){var N=Object(Ue.b)()._store.getState(),q=N.user;return q.userInfo}}}]);
|