|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[134,9,14],{"0r65":function(ut,ot){var ve=arguments[3],nt=arguments[4],mt=arguments[5],Oe=JSON.stringify;ut.exports=function(n,k){for(var _,m=Object.keys(mt),b=0,o=m.length;b<o;b++){var u=m[b],p=mt[u].exports;if(p===n||p&&p.default===n){_=u;break}}if(!_){_=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var l={},b=0,o=m.length;b<o;b++){var u=m[b];l[u]=u}nt[_]=["function(require,module,exports){"+n+"(self); }",l]}var t=Math.floor(Math.pow(16,8)*Math.random()).toString(16),s={};s[_]=_,nt[t]=["function(require,module,exports){var f = require("+Oe(_)+");(f.default ? f.default : f)(self);}",s];var i={};c(t);function c(O){i[O]=!0;for(var L in nt[O][1]){var v=nt[O][1][L];i[v]||c(v)}}var f="("+ve+")({"+Object.keys(i).map(function(O){return Oe(O)+":["+nt[O][0]+","+Oe(nt[O][1])+"]"}).join(",")+"},{},["+Oe(t)+"])",d=window.URL||window.webkitURL||window.mozURL||window.msURL,T=new Blob([f],{type:"text/javascript"});if(k&&k.bare)return T;var A=d.createObjectURL(T),h=new Worker(A);return h.objectURL=A,h}},"1ZF9":function(ut,ot,ve){ut.exports=ve.p+"static/Authorize.cc9c212f.png"},"8IMR":function(ut,ot,ve){"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};ot.default=nt},"96GE":function(ut,ot,ve){"use strict";ve.r(ot),ve.d(ot,"formatQuery",function(){return Vn});var nt=ve("T2oS"),mt=ve("W9HT"),Oe=ve("k1fw"),n=ve("PpiC"),k=ve("q1tI"),_=ve.n(k),m=ve("9kvl"),b=ve("JqQi"),o=ve.n(b),u=ve("5Dmo"),p=ve("3S7+"),l=ve("+L6B"),t=ve("2/Rp"),s=ve("pC0b"),i=ve("GzdX"),c=ve("9og8"),f=ve("tJVT"),d=ve("nUhQ"),T=ve.n(d),A=ve("2qtc"),h=ve("kLXV"),O=ve("7Kak"),L=ve("9yH6"),v=ve("miYZ"),w=ve("tsqr"),R=ve("5NDa"),M=ve("5rEg"),x=ve("Ty5D"),G=ve("sWEp"),N=ve.n(G),X=ve("qdXH");function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return F};var F={},P=Object.prototype,a=P.hasOwnProperty,y=typeof Symbol=="function"?Symbol:{},S=y.iterator||"@@iterator",D=y.asyncIterator||"@@asyncIterator",V=y.toStringTag||"@@toStringTag";function te(ae,Q,fe){return Object.defineProperty(ae,Q,{value:fe,enumerable:!0,configurable:!0,writable:!0}),ae[Q]}try{te({},"")}catch(ae){te=function(fe,he,be){return fe[he]=be}}function ue(ae,Q,fe,he){var be=Q&&Q.prototype instanceof De?Q:De,Ee=Object.create(be.prototype),Re=new tt(he||[]);return Ee._invoke=function(We,Ve,Ae){var Ie="suspendedStart";return function(Xe,rt){if(Ie==="executing")throw new Error("Generator is already running");if(Ie==="completed"){if(Xe==="throw")throw rt;return Ye()}for(Ae.method=Xe,Ae.arg=rt;;){var st=Ae.delegate;if(st){var pt=Ze(st,Ae);if(pt){if(pt===xe)continue;return pt}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ie==="suspendedStart")throw Ie="completed",Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ie="executing";var _t=Se(We,Ve,Ae);if(_t.type==="normal"){if(Ie=Ae.done?"completed":"suspendedYield",_t.arg===xe)continue;return{value:_t.arg,done:Ae.done}}_t.type==="throw"&&(Ie="completed",Ae.method="throw",Ae.arg=_t.arg)}}}(ae,fe,Re),Ee}function Se(ae,Q,fe){try{return{type:"normal",arg:ae.call(Q,fe)}}catch(he){return{type:"throw",arg:he}}}F.wrap=ue;var xe={};function De(){}function Ge(){}function Fe(){}var Te={};te(Te,S,function(){return this});var $e=Object.getPrototypeOf,qe=$e&&$e($e(Je([])));qe&&qe!==P&&a.call(qe,S)&&(Te=qe);var Pe=Fe.prototype=De.prototype=Object.create(Te);function Ne(ae){["next","throw","return"].forEach(function(Q){te(ae,Q,function(fe){return this._invoke(Q,fe)})})}function we(ae,Q){function fe(be,Ee,Re,We){var Ve=Se(ae[be],ae,Ee);if(Ve.type!=="throw"){var Ae=Ve.arg,Ie=Ae.value;return Ie&&typeof Ie=="object"&&a.call(Ie,"__await")?Q.resolve(Ie.__await).then(function(Xe){fe("next",Xe,Re,We)},function(Xe){fe("throw",Xe,Re,We)}):Q.resolve(Ie).then(function(Xe){Ae.value=Xe,Re(Ae)},function(Xe){return fe("throw",Xe,Re,We)})}We(Ve.arg)}var he;this._invoke=function(be,Ee){function Re(){return new Q(function(We,Ve){fe(be,Ee,We,Ve)})}return he=he?he.then(Re,Re):Re()}}function Ze(ae,Q){var fe=ae.iterator[Q.method];if(fe===void 0){if(Q.delegate=null,Q.method==="throw"){if(ae.iterator.return&&(Q.method="return",Q.arg=void 0,Ze(ae,Q),Q.method==="throw"))return xe;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return xe}var he=Se(fe,ae.iterator,Q.arg);if(he.type==="throw")return Q.method="throw",Q.arg=he.arg,Q.delegate=null,xe;var be=he.arg;return be?be.done?(Q[ae.resultName]=be.value,Q.next=ae.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,xe):be:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,xe)}function je(ae){var Q={tryLoc:ae[0]};1 in ae&&(Q.catchLoc=ae[1]),2 in ae&&(Q.finallyLoc=ae[2],Q.afterLoc=ae[3]),this.tryEntries.push(Q)}function He(ae){var Q=ae.completion||{};Q.type="normal",delete Q.arg,ae.completion=Q}function tt(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(je,this),this.reset(!0)}function Je(ae){if(ae){var Q=ae[S];if(Q)return Q.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var fe=-1,he=function be(){for(;++fe<ae.length;)if(a.call(ae,fe))return be.value=ae[fe],be.done=!1,be;return be.value=void 0,be.done=!0,be};return he.next=he}}return{next:Ye}}function Ye(){return{value:void 0,done:!0}}return Ge.prototype=Fe,te(Pe,"constructor",Fe),te(Fe,"constructor",Ge),Ge.displayName=te(Fe,V,"GeneratorFunction"),F.isGeneratorFunction=function(ae){var Q=typeof ae=="function"&&ae.constructor;return!!Q&&(Q===Ge||(Q.displayName||Q.name)==="GeneratorFunction")},F.mark=function(ae){return Object.setPrototypeOf?Object.setPrototypeOf(ae,Fe):(ae.__proto__=Fe,te(ae,V,"GeneratorFunction")),ae.prototype=Object.create(Pe),ae},F.awrap=function(ae){return{__await:ae}},Ne(we.prototype),te(we.prototype,D,function(){return this}),F.AsyncIterator=we,F.async=function(ae,Q,fe,he,be){be===void 0&&(be=Promise);var Ee=new we(ue(ae,Q,fe,he),be);return F.isGeneratorFunction(Q)?Ee:Ee.next().then(function(Re){return Re.done?Re.value:Ee.next()})},Ne(Pe),te(Pe,V,"Generator"),te(Pe,S,function(){return this}),te(Pe,"toString",function(){return"[object Generator]"}),F.keys=function(ae){var Q=[];for(var fe in ae)Q.push(fe);return Q.reverse(),function he(){for(;Q.length;){var be=Q.pop();if(be in ae)return he.value=be,he.done=!1,he}return he.done=!0,he}},F.values=Je,tt.prototype={constructor:tt,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(He),!Q)for(var fe in this)fe.charAt(0)==="t"&&a.call(this,fe)&&!isNaN(+fe.slice(1))&&(this[fe]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var fe=this;function he(Ae,Ie){return Re.type="throw",Re.arg=Q,fe.next=Ae,Ie&&(fe.method="next",fe.arg=void 0),!!Ie}for(var be=this.tryEntries.length-1;be>=0;--be){var Ee=this.tryEntries[be],Re=Ee.completion;if(Ee.tryLoc==="root")return he("end");if(Ee.tryLoc<=this.prev){var We=a.call(Ee,"catchLoc"),Ve=a.call(Ee,"finallyLoc");if(We&&Ve){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0);if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}else if(We){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0)}else{if(!Ve)throw new Error("try statement without catch or finally");if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}}}},abrupt:function(Q,fe){for(var he=this.tryEntries.length-1;he>=0;--he){var be=this.tryEntries[he];if(be.tryLoc<=this.prev&&a.call(be,"finallyLoc")&&this.prev<be.finallyLoc){var Ee=be;break}}Ee&&(Q==="break"||Q==="continue")&&Ee.tryLoc<=fe&&fe<=Ee.finallyLoc&&(Ee=null);var Re=Ee?Ee.completion:{};return Re.type=Q,Re.arg=fe,Ee?(this.method="next",this.next=Ee.finallyLoc,xe):this.complete(Re)},complete:function(Q,fe){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&fe&&(this.next=fe),xe},finish:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.finallyLoc===Q)return this.complete(he.completion,he.afterLoc),He(he),xe}},catch:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.tryLoc===Q){var be=he.completion;if(be.type==="throw"){var Ee=be.arg;He(he)}return Ee}}throw new Error("illegal catch attempt")},delegateYield:function(Q,fe,he){return this.delegate={iterator:Je(Q),resultName:fe,nextLoc:he},this.method==="next"&&(this.arg=void 0),xe}},F}var $=M.a.Search,Z=function(P){var a,y=P.videoDetail,S=P.globalSetting,D=P.loading,V=P.dispatch,te=Object(n.a)(P,["videoDetail","globalSetting","loading","dispatch"]),ue=Object(x.m)(),Se=Object(x.l)(),xe=Object(k.useState)([]),De=Object(f.a)(xe,2),Ge=De[0],Fe=De[1],Te=Object(k.useState)(""),$e=Object(f.a)(Te,2),qe=$e[0],Pe=$e[1],Ne=Object(k.useState)(),we=Object(f.a)(Ne,2),Ze=we[0],je=we[1],He=Object(k.useState)(!1),tt=Object(f.a)(He,2),Je=tt[0],Ye=tt[1],ae=Object(k.useState)(!1),Q=Object(f.a)(ae,2),fe=Q[0],he=Q[1];Object(k.useEffect)(function(){y.actionTabs.key==="Banner-SendToClass"&&be()},[y.actionTabs.key]);var be=function(){var Ve=Object(c.a)(B().mark(function Ae(){var Ie,Xe;return B().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Object(X.h)({});case 2:if(Xe=st.sent,!(Xe==null||((Ie=Xe.courses)===null||Ie===void 0)?void 0:Ie.length)){st.next=8;break}Fe((Xe==null?void 0:Xe.courses)||[]),he(!0),st.next=11;break;case 8:return We(),w.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),st.abrupt("return");case 11:case"end":return st.stop()}},Ae)}));return function(){return Ve.apply(this,arguments)}}(),Ee=function(Ae){Fe(Ge==null?void 0:Ge.map(function(Ie){return Object(Oe.a)(Object(Oe.a)({},Ie),{},{hide:!Ie.course_name.includes(Ae)})}))},Re=function(){var Ve=Object(c.a)(B().mark(function Ae(){var Ie;return B().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(Ze){rt.next=3;break}return Ye(!0),rt.abrupt("return");case 3:return rt.next=5,Object(X.n)({id:ue.videoId,course_id:Ze});case 5:Ie=rt.sent,(Ie==null?void 0:Ie.status)===0&&(w.b.success("\u53D1\u9001\u6210\u529F"),We(),m.c===null||m.c===void 0||m.c.replace("/classrooms/".concat(Ze,"/shixun_homework")));case 7:case"end":return rt.stop()}},Ae)}));return function(){return Ve.apply(this,arguments)}}(),We=function(){Pe(""),je(null),Ye(!1),V({type:"videoDetail/setActionTabs",payload:{}}),he(!1)};return _.a.createElement(h.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:fe,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Re,onCancel:We},_.a.createElement("div",{className:N.a.wrap},_.a.createElement("div",{className:"mb10"},_.a.createElement($,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:qe,onChange:function(Ae){return Pe(Ae.target.value)},onSearch:function(Ae){Pe(Ae),Ee(Ae)}})),_.a.createElement("div",{className:N.a.radioWrap},_.a.createElement(L.a.Group,{value:Ze,onChange:function(Ae){je(Ae.target.value),Ye(!1)}},Ge==null||((a=Ge.filter(function(Ve){return!(Ve==null?void 0:Ve.hide)}))===null||a===void 0)?void 0:a.map(function(Ve,Ae){return _.a.createElement(L.a,{className:N.a.radio,value:Ve.course_id,key:Ae},Ve.course_name)}))),Je&&_.a.createElement("div",{className:N.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),_.a.createElement("div",{className:N.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},ne=Object(m.a)(function(F){var P=F.videoDetail,a=F.loading,y=F.globalSetting;return{videoDetail:P,globalSetting:y,loading:a.models.index}})(Z),se=ve("MXD1"),W=ve("CFYs"),le=ve("WmNS"),re=ve.n(le),z=ve("y8nQ"),U=ve("Vl3Y"),j=ve("oBTY"),q=ve("55Ip"),H=ve("kwm0"),ee=ve.n(H),oe=ve("ErOA"),ye=ve("qGJc"),me=ve.n(ye),Le="",Ce;function de(F){ce(F)}function ce(F){Ce=new me.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(a){console.log("addFileSuccess: "+a.file.name),F.addFileSuccess&&F.addFileSuccess(a),Ce.startUpload()},onUploadstarted:function(a){var y=a.file.name;if(a.videoId){var V="/api/users/".concat(Le,"/video_auths.json");Object(oe.a)(V,{method:"put",body:{video_id:a.videoId,title:y,file_name:y}}).then(function(te){if(te.status==-1){F.onUploadError&&F.onUploadError(a);return}var ue=te.data,Se=ue.UploadAuth,xe=ue.UploadAddress,De=ue.VideoId;Ce.setUploadAuthAndAddress(a,Se,xe)}).catch(function(te){Ce.deleteFile(Ce._curIndex),Ce.nextUpload(),console.log(te)})}else{var S="/api/users/".concat(Le,"/video_auths.json"),D="";Object(oe.a)(S,{method:"Post",body:{title:D+y,file_name:D+y}}).then(function(te){if(te){var ue=te.data,Se=ue.UploadAuth,xe=ue.UploadAddress,De=ue.VideoId;Ce.setUploadAuthAndAddress(a,Se,xe,De)}}).catch(function(te){Ce.deleteFile(Ce._curIndex),Ce.nextUpload(),console.log(te)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(a){F.onUploadSucceed&&F.onUploadSucceed(a),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(a,y,S){F.onUploadFailed&&F.onUploadFailed(a),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(a,y,S){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(a,y,S){F.onUploadProgress&&F.onUploadProgress(a,y,S);var D=Math.ceil(S*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(a){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var y="/api/users/".concat(Le,"/video_auths.json");Object(oe.a)(y,{method:"put",body:{video_id:a.videoId}}).then(function(S){var D=S.data,V=D.UploadAuth;Ce.resumeUploadWithAuth(V)}).catch(function(S){console.log(S)})},onUploadEnd:function(a){F.onUploadEnd&&F.onUploadEnd(a),console.log("onUploadEnd: uploaded all the files")}}),F.gotUploader&&F.gotUploader(Ce)}function ge(F,P){F&&(Le=F),de(P)}var J=ve("DZo9"),Y=ve("8z0m"),_e=ve("z7Xi"),pe=ve("jN4g"),ke=ve("m3rI"),I=ve("w8Aa"),e=ve.n(I),r=function(P){var a=P.value,y=P.onChange,S=P.getFileProgress,D=Object(k.useState)(!1),V=Object(f.a)(D,2),te=V[0],ue=V[1],Se=_.a.createElement(t.a,{loading:te,icon:_.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),xe=function(){return _.a.createElement("div",{className:e.a.img},_.a.createElement("img",{src:ke.a.API_SERVER+"/api/attachments/"+a,alt:"avatar",style:{width:288}}),_.a.createElement("div",null,_.a.createElement(pe.a,{onClick:function(){return y("")},style:{fontSize:"16px",color:"red"}})))},De=function(Fe){if(S&&S(Fe),Fe.file.status==="uploading"){ue(!0);return}if(Fe.file.status==="done"){var Te,$e;ue(!1),y(Fe==null||((Te=Fe.file)===null||Te===void 0||(($e=Te.response)===null||$e===void 0))?void 0:$e.id)}};return _.a.createElement(_.a.Fragment,null,a?xe():_.a.createElement("div",null,_.a.createElement(Y.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(ke.a.API_SERVER,"/api/attachments.json"),onChange:De,accept:"image/*"},Se),_.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),_.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))},C=r,g=M.a.TextArea,E=500,K=function(P,a){var y,S=a.payload||{},D=S.uploadInfo,V=D===void 0?{}:D;switch(a.type){case"addVideo":return{videoList:[].concat(Object(j.a)(P.videoList),[{name:V.file.name,size:V.file.size,type:V.file.type,fileHash:V.fileHash,state:V.state,videoId:V.videoId,loaded:V.loaded||0,title:""}])};case"removeVideo":return{videoList:P.videoList.filter(function(te){return te.name!==a.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:P.videoList.map(function(te){return te.name===a.payload.uploadInfo.file.name?Object(Oe.a)(Object(Oe.a)({},te),{loaded:a.payload.progressPercent,videoId:V.videoId,fileHash:V.fileHash}):te})};case"updateTitle":return{videoList:(y=P.videoList)===null||y===void 0?void 0:y.map(function(te){return te.name===a.payload.item.name?Object(Oe.a)(Object(Oe.a)({},te),{title:a.payload.title}):te})};default:return{videoList:[]}}},ie=function(P){var a,y=P.user,S=P.globalSetting,D=P.loading,V=P.dispatch,te=P.visible,ue=P.editData,Se=P.onCancel,xe=Se===void 0?function(){}:Se,De=P.onOk,Ge=De===void 0?function(){}:De,Fe=Object(x.m)(),Te=U.a.useForm(),$e=Object(f.a)(Te,1),qe=$e[0],Pe=Object(k.useReducer)(K,{videoList:[]}),Ne=Object(f.a)(Pe,2),we=Ne[0],Ze=Ne[1],je=Object(k.useState)(!1),He=Object(f.a)(je,2),tt=He[0],Je=He[1],Ye=Object(k.useRef)(),ae=Object(k.useState)(),Q=Object(f.a)(ae,2),fe=Q[0],he=Q[1],be=Object(k.useState)(!1),Ee=Object(f.a)(be,2),Re=Ee[0],We=Ee[1],Ve=Object(k.useState)(!1),Ae=Object(f.a)(Ve,2),Ie=Ae[0],Xe=Ae[1];Object(k.useEffect)(function(){if(!ue)return;We(ue.is_link),he(ue.link),!ue.is_link&&Ze({type:"addVideo",payload:{uploadInfo:{file:{name:ue.file_name},videoId:ue.video_id,loaded:100}}}),qe.setFieldsValue({name:ue.name,description:ue.description,attachment_id:ue==null?void 0:ue.attachment_id})},[ue]);var rt=function(){var wt=document.getElementById("fileUpload");wt.value=""},st=function(wt){var St,Rt,gt;We(!1);var ht=wt.target.files[0];if(!ht){rt();return}var At=ht.name.toLowerCase();if(At&&At.indexOf(".avi")==-1&&At.indexOf(".flv")==-1&&At.indexOf(".f4v")==-1&&At.indexOf(".m4v")==-1&&At.indexOf(".mov")==-1&&At.indexOf(".mp4")==-1&&At.indexOf(".rmvb")==-1&&At.indexOf(".swf")==-1&&At.indexOf(".webm")==-1&&At.indexOf(".wmv")==-1){w.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),rt();return}if(!(((St=y.userInfo)===null||St===void 0?void 0:St.admin)||((Rt=y.userInfo)===null||Rt===void 0?void 0:Rt.business))&&ht.size>E*1024*1024){w.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(E,"M")),rt();return}if((gt=we.videoList)===null||gt===void 0?void 0:gt.find(function(Ot){return Ot.name===ht.name})){w.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),rt();return}_t(ht)},pt=function(wt,St){h.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:_.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",St?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){rt(),Ze({type:"removeVideo",payload:{name:wt}})}})},_t=function(wt){var St,Rt='{"Vod":{}}';if(Je(!0),Ye.current){Ye.current.addFile(wt,null,null,null,Rt);return}ge((St=y.userInfo)===null||St===void 0?void 0:St.login,{create:!Ye,addFileSuccess:function(ht){Ze({type:"addVideo",payload:{uploadInfo:ht}})},onUploadProgress:function(ht,At,Ot){var sn=Math.ceil(Ot*100);Ze({type:"updateProgress",payload:{uploadInfo:ht,progressPercent:sn}}),rt()},onUploadFailed:function(ht){w.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(ht){Je(!1)},onUploadSucceed:function(ht){Je(!1)},onUploadError:function(ht){Je(!1)},gotUploader:function(ht){ht.addFile(wt,null,null,null,Rt),Ye.current=ht}})},Lt=function(){var jt=Object(c.a)(re.a.mark(function wt(){var St,Rt,gt,ht;return re.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,qe.validateFields();case 2:if(!(!Re&&!((St=we.videoList)===null||St===void 0?void 0:St.length)||Re&&!fe)){Ot.next=5;break}return w.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),Ot.abrupt("return");case 5:return Xe(!0),gt=Re?{link:fe}:{video_id:(Rt=we.videoList)===null||Rt===void 0?void 0:Rt[0].videoId},Ot.next=9,Ge(Object(Oe.a)(Object(Oe.a)({},gt),{name:qe.getFieldValue("name"),attachment_id:qe.getFieldValue("attachment_id"),description:qe.getFieldValue("description")}));case 9:ht=Ot.sent,Xe(!1),ht.id&&Ft();case 12:case"end":return Ot.stop()}},wt)}));return function(){return jt.apply(this,arguments)}}(),Ft=function(){qe.resetFields(),Ze({type:"removeAll"}),he(null),We(null)},Ut=function(){xe(),Ft()},Kt=function(){var wt,St,Rt,gt,ht,At,Ot,sn,mn,vn,_n,gn;return _.a.createElement(_.a.Fragment,null,!Re&&!!((wt=we.videoList)===null||wt===void 0?void 0:wt.length)&&_.a.createElement("div",{className:ee.a.fileProgress},((St=we.videoList)===null||St===void 0||((Rt=St[0])===null||Rt===void 0)?void 0:Rt.loaded)==100?_.a.createElement("div",{className:"".concat(ee.a.videoName," font14")},(gt=we.videoList)===null||gt===void 0||((ht=gt[0])===null||ht===void 0)?void 0:ht.name):_.a.createElement(W.a,{style:{width:"80%"},percent:(At=we.videoList)===null||At===void 0||((Ot=At[0])===null||Ot===void 0)?void 0:Ot.loaded,status:((sn=we.videoList)===null||sn===void 0||((mn=sn[0])===null||mn===void 0)?void 0:mn.loaded)==100?"normal":"active"}),_.a.createElement("div",{className:ee.a.fileCancel,onClick:function(){var un,yn,bn,xn;return pt((un=we.videoList)===null||un===void 0||((yn=un[0])===null||yn===void 0)?void 0:yn.name,((bn=we.videoList)===null||bn===void 0||((xn=bn[0])===null||xn===void 0)?void 0:xn.loaded)==100)}},((vn=we.videoList)===null||vn===void 0||((_n=vn[0])===null||_n===void 0)?void 0:_n.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((gn=we.videoList)===null||gn===void 0?void 0:gn.length)&&_.a.createElement("div",{className:ee.a.uploadWrap},_.a.createElement("label",{htmlFor:"fileUpload",className:ee.a.upload},_.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),_.a.createElement("label",{className:"".concat(ee.a.upload," ").concat(ee.a.uploadLink),onClick:function(){return We(!0)}},_.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Re&&_.a.createElement(M.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:fe,onChange:function(un){return he(un.target.value)}}))};return _.a.createElement(h.a,{centered:!0,maskClosable:!1,title:ue?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:ee.a.modal,visible:te,confirmLoading:Ie,onOk:Lt,onCancel:Ut},_.a.createElement(U.a,{form:qe},_.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:st,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),_.a.createElement(U.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},_.a.createElement(M.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),_.a.createElement(U.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:ee.a.contentItem},Kt()),_.a.createElement(U.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},_.a.createElement(C,{getFileProgress:function(wt){if(wt.file.status==="uploading"){Xe(!0);return}wt.file.status==="done"&&Xe(!1)}})),_.a.createElement(U.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},_.a.createElement(g,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),_.a.createElement("div",{className:"c-grey-999"},_.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),_.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",_.a.createElement(q.Link,{to:"/users/".concat((a=y.userInfo)===null||a===void 0?void 0:a.login,"/videos/protocol"),target:"_blank",className:ee.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),_.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),_.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),_.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"))))},ze=Object(m.a)(function(F){var P=F.user,a=F.loading,y=F.globalSetting;return{user:P,globalSetting:y,loading:a}})(ie),Ue=ve("1vsH"),Ke=ve("NLgs"),et=ve("Awhp"),at=ve("KrTs"),ct=ve("O3gP"),Me=ve("lrIw"),lt=ve("eoI0"),xt=ve.n(lt),yt=ve("HBuW"),Et=function(P){var a,y,S=P.videoDetail,D=P.dispatch,V=D===void 0?function(){}:D,te=P.visible,ue=P.onClose,Se=ue===void 0?function(){}:ue,xe=S.queryParams,De=S.queryParams,Ge=De.subject_id,Fe=De.videoId,Te={videoId:Fe},$e=Object(k.useState)(0),qe=Object(f.a)($e,2),Pe=qe[0],Ne=qe[1],we=Object(k.useState)(""),Ze=Object(f.a)(we,2),je=Ze[0],He=Ze[1],tt=Object(k.useState)([]),Je=Object(f.a)(tt,2),Ye=Je[0],ae=Je[1],Q=Object(k.useState)([]),fe=Object(f.a)(Q,2),he=fe[0],be=fe[1];Object(k.useEffect)(function(){var Ae,Ie,Xe=((Ae=S.detail)===null||Ae===void 0||((Ie=Ae.video_item)===null||Ie===void 0)?void 0:Ie.schools)||[];Ne((Xe==null?void 0:Xe.length)?1:0),be(Xe)},[(a=S.detail)===null||a===void 0||((y=a.video_item)===null||y===void 0)?void 0:y.schools]);var Ee=function(){var Ae=Object(c.a)(re.a.mark(function Ie(Xe){var rt;return re.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Object(yt.K)({q:Xe});case 2:rt=pt.sent,rt&&ae(rt.shools_name||[]);case 4:case"end":return pt.stop()}},Ie)}));return function(Xe){return Ae.apply(this,arguments)}}(),Re=function(Ie){if(he.includes(Ie)){w.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}He(""),be([].concat(Object(j.a)(he),[Ie]))},We=function(){var Ae=Object(c.a)(re.a.mark(function Ie(){var Xe;return re.a.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(!(Pe===1&&!(he==null?void 0:he.length))){st.next=2;break}return st.abrupt("return",w.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return st.next=4,Object(X.a)(Object(Oe.a)(Object(Oe.a)({},xe),{},{id:Te.videoId,schools:Pe===0?[]:he}));case 4:Xe=st.sent,(Xe==null?void 0:Xe.status)===0&&(w.b.success("\u8BBE\u7F6E\u6210\u529F"),Ve());case 6:case"end":return st.stop()}},Ie)}));return function(){return Ae.apply(this,arguments)}}(),Ve=function(){Se(),V({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)(Object(Oe.a)({},xe),{},{id:Te.videoId})})};return _.a.createElement(h.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:xt.a.modal,visible:te,onOk:We,onCancel:Ve},_.a.createElement(_.a.Fragment,null,_.a.createElement(L.a.Group,{value:Pe,onChange:function(Ie){return Ne(Ie.target.value)}},_.a.createElement(L.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",_.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),_.a.createElement(L.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",_.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09"))),Pe===1&&_.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:"mt10"},_.a.createElement(Me.a,{showSearch:!0,className:xt.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:je,onChange:function(Ie){He(Ie),Ee(Ie)},onSelect:Re,options:Ye==null?void 0:Ye.map(function(Ae){return{value:Ae}})})),_.a.createElement("div",{className:"mt10"},he==null?void 0:he.map(function(Ae,Ie){return _.a.createElement(at.a,{count:_.a.createElement("span",{className:xt.a.delete,onClick:function(){return be(he.filter(function(rt){return rt!==Ae}))}},"x"),className:"mt10 mr20 current",key:Ie},_.a.createElement(t.a,{type:"primary",ghost:!0},Ae))})))))},Dt=Et;function Ct(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ct=function(){return F};var F={},P=Object.prototype,a=P.hasOwnProperty,y=typeof Symbol=="function"?Symbol:{},S=y.iterator||"@@iterator",D=y.asyncIterator||"@@asyncIterator",V=y.toStringTag||"@@toStringTag";function te(ae,Q,fe){return Object.defineProperty(ae,Q,{value:fe,enumerable:!0,configurable:!0,writable:!0}),ae[Q]}try{te({},"")}catch(ae){te=function(fe,he,be){return fe[he]=be}}function ue(ae,Q,fe,he){var be=Q&&Q.prototype instanceof De?Q:De,Ee=Object.create(be.prototype),Re=new tt(he||[]);return Ee._invoke=function(We,Ve,Ae){var Ie="suspendedStart";return function(Xe,rt){if(Ie==="executing")throw new Error("Generator is already running");if(Ie==="completed"){if(Xe==="throw")throw rt;return Ye()}for(Ae.method=Xe,Ae.arg=rt;;){var st=Ae.delegate;if(st){var pt=Ze(st,Ae);if(pt){if(pt===xe)continue;return pt}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ie==="suspendedStart")throw Ie="completed",Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ie="executing";var _t=Se(We,Ve,Ae);if(_t.type==="normal"){if(Ie=Ae.done?"completed":"suspendedYield",_t.arg===xe)continue;return{value:_t.arg,done:Ae.done}}_t.type==="throw"&&(Ie="completed",Ae.method="throw",Ae.arg=_t.arg)}}}(ae,fe,Re),Ee}function Se(ae,Q,fe){try{return{type:"normal",arg:ae.call(Q,fe)}}catch(he){return{type:"throw",arg:he}}}F.wrap=ue;var xe={};function De(){}function Ge(){}function Fe(){}var Te={};te(Te,S,function(){return this});var $e=Object.getPrototypeOf,qe=$e&&$e($e(Je([])));qe&&qe!==P&&a.call(qe,S)&&(Te=qe);var Pe=Fe.prototype=De.prototype=Object.create(Te);function Ne(ae){["next","throw","return"].forEach(function(Q){te(ae,Q,function(fe){return this._invoke(Q,fe)})})}function we(ae,Q){function fe(be,Ee,Re,We){var Ve=Se(ae[be],ae,Ee);if(Ve.type!=="throw"){var Ae=Ve.arg,Ie=Ae.value;return Ie&&typeof Ie=="object"&&a.call(Ie,"__await")?Q.resolve(Ie.__await).then(function(Xe){fe("next",Xe,Re,We)},function(Xe){fe("throw",Xe,Re,We)}):Q.resolve(Ie).then(function(Xe){Ae.value=Xe,Re(Ae)},function(Xe){return fe("throw",Xe,Re,We)})}We(Ve.arg)}var he;this._invoke=function(be,Ee){function Re(){return new Q(function(We,Ve){fe(be,Ee,We,Ve)})}return he=he?he.then(Re,Re):Re()}}function Ze(ae,Q){var fe=ae.iterator[Q.method];if(fe===void 0){if(Q.delegate=null,Q.method==="throw"){if(ae.iterator.return&&(Q.method="return",Q.arg=void 0,Ze(ae,Q),Q.method==="throw"))return xe;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return xe}var he=Se(fe,ae.iterator,Q.arg);if(he.type==="throw")return Q.method="throw",Q.arg=he.arg,Q.delegate=null,xe;var be=he.arg;return be?be.done?(Q[ae.resultName]=be.value,Q.next=ae.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,xe):be:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,xe)}function je(ae){var Q={tryLoc:ae[0]};1 in ae&&(Q.catchLoc=ae[1]),2 in ae&&(Q.finallyLoc=ae[2],Q.afterLoc=ae[3]),this.tryEntries.push(Q)}function He(ae){var Q=ae.completion||{};Q.type="normal",delete Q.arg,ae.completion=Q}function tt(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(je,this),this.reset(!0)}function Je(ae){if(ae){var Q=ae[S];if(Q)return Q.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var fe=-1,he=function be(){for(;++fe<ae.length;)if(a.call(ae,fe))return be.value=ae[fe],be.done=!1,be;return be.value=void 0,be.done=!0,be};return he.next=he}}return{next:Ye}}function Ye(){return{value:void 0,done:!0}}return Ge.prototype=Fe,te(Pe,"constructor",Fe),te(Fe,"constructor",Ge),Ge.displayName=te(Fe,V,"GeneratorFunction"),F.isGeneratorFunction=function(ae){var Q=typeof ae=="function"&&ae.constructor;return!!Q&&(Q===Ge||(Q.displayName||Q.name)==="GeneratorFunction")},F.mark=function(ae){return Object.setPrototypeOf?Object.setPrototypeOf(ae,Fe):(ae.__proto__=Fe,te(ae,V,"GeneratorFunction")),ae.prototype=Object.create(Pe),ae},F.awrap=function(ae){return{__await:ae}},Ne(we.prototype),te(we.prototype,D,function(){return this}),F.AsyncIterator=we,F.async=function(ae,Q,fe,he,be){be===void 0&&(be=Promise);var Ee=new we(ue(ae,Q,fe,he),be);return F.isGeneratorFunction(Q)?Ee:Ee.next().then(function(Re){return Re.done?Re.value:Ee.next()})},Ne(Pe),te(Pe,V,"Generator"),te(Pe,S,function(){return this}),te(Pe,"toString",function(){return"[object Generator]"}),F.keys=function(ae){var Q=[];for(var fe in ae)Q.push(fe);return Q.reverse(),function he(){for(;Q.length;){var be=Q.pop();if(be in ae)return he.value=be,he.done=!1,he}return he.done=!0,he}},F.values=Je,tt.prototype={constructor:tt,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(He),!Q)for(var fe in this)fe.charAt(0)==="t"&&a.call(this,fe)&&!isNaN(+fe.slice(1))&&(this[fe]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var fe=this;function he(Ae,Ie){return Re.type="throw",Re.arg=Q,fe.next=Ae,Ie&&(fe.method="next",fe.arg=void 0),!!Ie}for(var be=this.tryEntries.length-1;be>=0;--be){var Ee=this.tryEntries[be],Re=Ee.completion;if(Ee.tryLoc==="root")return he("end");if(Ee.tryLoc<=this.prev){var We=a.call(Ee,"catchLoc"),Ve=a.call(Ee,"finallyLoc");if(We&&Ve){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0);if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}else if(We){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0)}else{if(!Ve)throw new Error("try statement without catch or finally");if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}}}},abrupt:function(Q,fe){for(var he=this.tryEntries.length-1;he>=0;--he){var be=this.tryEntries[he];if(be.tryLoc<=this.prev&&a.call(be,"finallyLoc")&&this.prev<be.finallyLoc){var Ee=be;break}}Ee&&(Q==="break"||Q==="continue")&&Ee.tryLoc<=fe&&fe<=Ee.finallyLoc&&(Ee=null);var Re=Ee?Ee.completion:{};return Re.type=Q,Re.arg=fe,Ee?(this.method="next",this.next=Ee.finallyLoc,xe):this.complete(Re)},complete:function(Q,fe){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&fe&&(this.next=fe),xe},finish:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.finallyLoc===Q)return this.complete(he.completion,he.afterLoc),He(he),xe}},catch:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.tryLoc===Q){var be=he.completion;if(be.type==="throw"){var Ee=be.arg;He(he)}return Ee}}throw new Error("illegal catch attempt")},delegateYield:function(Q,fe,he){return this.delegate={iterator:Je(Q),resultName:fe,nextLoc:he},this.method==="next"&&(this.arg=void 0),xe}},F}var Yt=function(P){var a=P.user,y=P.videoDetail,S=P.globalSetting,D=P.loading,V=P.dispatch,te=Object(n.a)(P,["user","videoDetail","globalSetting","loading","dispatch"]),ue=y.queryParams,Se=y.queryParams,xe=Se.subject_id,De=Se.videoId,Ge={videoId:De},Fe=Object(k.useState)(),Te=Object(f.a)(Fe,2),$e=Te[0],qe=Te[1],Pe=Object(k.useState)(),Ne=Object(f.a)(Pe,2),we=Ne[0],Ze=Ne[1],je=Object(k.useState)(!1),He=Object(f.a)(je,2),tt=He[0],Je=He[1],Ye=function(){V({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},ae=function(){var be=Object(c.a)(Ct().mark(function Ee(){var Re,We,Ve;return Ct().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!(((Re=a.userInfo)===null||Re===void 0?void 0:Re.admin)||((We=a.userInfo)===null||We===void 0?void 0:We.is_teacher)&&Object(Ke.d)())){Ie.next=6;break}return Ie.next=3,Object(X.g)(Object(Oe.a)({id:Ge.videoId},ue));case 3:Ve=Ie.sent,Ze(Ve==null?void 0:Ve.video_item),qe(!0);case 6:case"end":return Ie.stop()}},Ee)}));return function(){return be.apply(this,arguments)}}(),Q=function(){var be=Object(c.a)(Ct().mark(function Ee(Re){var We;return Ct().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,Object(X.m)(Object(Oe.a)(Object(Oe.a)({},Re),{},{id:Ge.videoId},ue));case 2:return We=Ae.sent,(We==null?void 0:We.status)===0&&(qe(!1),V({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)({id:Ge.videoId},ue)})),Ae.abrupt("return",We);case 5:case"end":return Ae.stop()}},Ee)}));return function(Re){return be.apply(this,arguments)}}(),fe=y.detail||{},he=fe.video_item;return _.a.createElement("aside",{className:T.a.banner},_.a.createElement("aside",{className:T.a.wrap},_.a.createElement("p",{className:T.a.title},he==null?void 0:he.name),_.a.createElement("div",{className:T.a.contentWrap},_.a.createElement("span",{className:"font14 c-white"},_.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),_.a.createElement("span",null,(he==null?void 0:he.study_video_items_count)||0),_.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),_.a.createElement(i.a,{allowHalf:!0,value:Object(Ue.o)(he==null?void 0:he.star),disabled:!0,className:T.a.rating})),_.a.createElement("div",null,(he==null?void 0:he.can_edit)&&_.a.createElement(t.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:function(){return Je(!0)}},"\u6743\u9650\u8BBE\u7F6E"),(he==null?void 0:he.can_edit)&&_.a.createElement(t.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:ae},"\u7F16\u8F91"),_.a.createElement(p.a,{title:"\u53EF\u5C06\u672C\u89C6\u9891\u53D1\u9001\u81F3\u6211\u7684\u8BFE\u5802\u4E2D\u7684\u89C6\u9891\u680F\u76EE",placement:"bottom"},_.a.createElement(t.a,{className:"".concat(T.a.button," ").concat(T.a.buttonTransparent," mr15"),onClick:Ye},"\u53D1\u9001\u81F3"))))),_.a.createElement(ne,null),_.a.createElement(ze,{editData:we,visible:$e,onCancel:function(){return qe(!1)},onOk:Q}),_.a.createElement(Dt,{dispatch:V,videoDetail:y,visible:tt,onClose:function(){return Je(!1)}}))},zt=Object(m.a)(function(F){var P=F.user,a=F.videoDetail,y=F.loading,S=F.globalSetting;return{user:P,videoDetail:a,globalSetting:S,loading:y}})(Yt),En=ve("sRBo"),zn=ve("kaz8"),Wn=ve("J66h"),dt=ve("fWQN"),ft=ve("mtLc"),wn=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(a,y){return a.__proto__=y,a},Object.assign=Object.assign||function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(a),S=1;S<arguments.length;S++){var D=arguments[S];if(D!=null)for(var V in D)D.hasOwnProperty(V)&&(y[V]=D[V])}return y},typeof self.Promise!="function"&&ve("E2g8").polyfill()}}]),F}();wn.install();var Sn=wn,Hn=ve("+qE3"),$t=ve.n(Hn),Bt=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"e",value:function(a,y){(!a||F.FORCE_GLOBAL_TAG)&&(a=F.GLOBAL_TAG);var S="[".concat(a,"] > ").concat(y);if(F.ENABLE_CALLBACK&&F.emitter.emit("log","error",S),!F.ENABLE_ERROR)return;console.error?console.error(S):console.warn?console.warn(S):console.log(S)}},{key:"i",value:function(a,y){(!a||F.FORCE_GLOBAL_TAG)&&(a=F.GLOBAL_TAG);var S="[".concat(a,"] > ").concat(y);if(F.ENABLE_CALLBACK&&F.emitter.emit("log","info",S),!F.ENABLE_INFO)return;console.info?console.info(S):console.log(S)}},{key:"w",value:function(a,y){(!a||F.FORCE_GLOBAL_TAG)&&(a=F.GLOBAL_TAG);var S="[".concat(a,"] > ").concat(y);if(F.ENABLE_CALLBACK&&F.emitter.emit("log","warn",S),!F.ENABLE_WARN)return;console.warn?console.warn(S):console.log(S)}},{key:"d",value:function(a,y){(!a||F.FORCE_GLOBAL_TAG)&&(a=F.GLOBAL_TAG);var S="[".concat(a,"] > ").concat(y);if(F.ENABLE_CALLBACK&&F.emitter.emit("log","debug",S),!F.ENABLE_DEBUG)return;console.debug?console.debug(S):console.log(S)}},{key:"v",value:function(a,y){(!a||F.FORCE_GLOBAL_TAG)&&(a=F.GLOBAL_TAG);var S="[".concat(a,"] > ").concat(y);if(F.ENABLE_CALLBACK&&F.emitter.emit("log","verbose",S),!F.ENABLE_VERBOSE)return;console.log(S)}}]),F}();Bt.GLOBAL_TAG="flv.js",Bt.FORCE_GLOBAL_TAG=!1,Bt.ENABLE_ERROR=!0,Bt.ENABLE_INFO=!0,Bt.ENABLE_WARN=!0,Bt.ENABLE_DEBUG=!0,Bt.ENABLE_VERBOSE=!0,Bt.ENABLE_CALLBACK=!1,Bt.emitter=new $t.a;var Be=Bt,Xn=function(){function F(){Object(dt.a)(this,F),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(ft.a)(F,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(a){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=a,this._totalBytes+=a):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=a,this._totalBytes+=a):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=a,this._totalBytes+=a,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var a=(this._now()-this._lastCheckpoint)/1e3;return a==0&&(a=1),this._intervalBytes/a/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var a=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/a/1024}}]),F}(),An=Xn,Wt=ve("yKVA"),Ht=ve("879j"),kt=function(){function F(P){Object(dt.a)(this,F),this._message=P}return Object(ft.a)(F,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),F}(),Mt=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y){return Object(dt.a)(this,a),P.call(this,y)}return Object(ft.a)(a,[{key:"name",get:function(){return"IllegalStateException"}}]),a}(kt),Vt=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y){return Object(dt.a)(this,a),P.call(this,y)}return Object(ft.a)(a,[{key:"name",get:function(){return"InvalidArgumentException"}}]),a}(kt),Tn=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y){return Object(dt.a)(this,a),P.call(this,y)}return Object(ft.a)(a,[{key:"name",get:function(){return"NotImplementedException"}}]),a}(kt),it={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},vt={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},Qt=function(){function F(P){Object(dt.a)(this,F),this._type=P||"undefined",this._status=it.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(ft.a)(F,[{key:"destroy",value:function(){this._status=it.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===it.kConnecting||this._status===it.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(a){this._onContentLengthKnown=a}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(a){this._onURLRedirect=a}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(a){this._onDataArrival=a}},{key:"onError",get:function(){return this._onError},set:function(a){this._onError=a}},{key:"onComplete",get:function(){return this._onComplete},set:function(a){this._onComplete=a}},{key:"open",value:function(a,y){throw new Tn("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new Tn("Unimplemented abstract function!")}}]),F}(),en=ve("w4Tj"),tn=ve("oZsa"),nn={};function Kn(){var F=self.navigator.userAgent.toLowerCase(),P=/(edge)\/([\w.]+)/.exec(F)||/(opr)[\/]([\w.]+)/.exec(F)||/(chrome)[ \/]([\w.]+)/.exec(F)||/(iemobile)[\/]([\w.]+)/.exec(F)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(F)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(F)||/(webkit)[ \/]([\w.]+)/.exec(F)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(F)||/(msie) ([\w.]+)/.exec(F)||F.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(F)||F.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(F)||[],a=/(ipad)/.exec(F)||/(ipod)/.exec(F)||/(windows phone)/.exec(F)||/(iphone)/.exec(F)||/(kindle)/.exec(F)||/(android)/.exec(F)||/(windows)/.exec(F)||/(mac)/.exec(F)||/(linux)/.exec(F)||/(cros)/.exec(F)||[],y={browser:P[5]||P[3]||P[1]||"",version:P[2]||P[4]||"0",majorVersion:P[4]||P[2]||"0",platform:a[0]||""},S={};if(y.browser){S[y.browser]=!0;var D=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},D.length>1&&(S.version.minor=parseInt(D[1],10)),D.length>2&&(S.version.build=parseInt(D[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var V="msie";y.browser=V,S[V]=!0}if(S.edge){delete S.edge;var te="msedge";y.browser=te,S[te]=!0}if(S.opr){var ue="opera";y.browser=ue,S[ue]=!0}if(S.safari&&S.android){var Se="android";y.browser=Se,S[Se]=!0}S.name=y.browser,S.platform=y.platform;for(var xe in nn)nn.hasOwnProperty(xe)&&delete nn[xe];Object.assign(nn,S)}Kn();var bt=nn,Yn=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y,S){var D;return Object(dt.a)(this,a),D=P.call(this,"fetch-stream-loader"),D.TAG="FetchStreamLoader",D._seekHandler=y,D._config=S,D._needStash=!0,D._requestAbort=!1,D._contentLength=null,D._receivedLength=0,D}return Object(ft.a)(a,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(en.a)(Object(tn.a)(a.prototype),"destroy",this).call(this)}},{key:"open",value:function(S,D){var V=this;this._dataSource=S,this._range=D;var te=S.url;this._config.reuseRedirectedURL&&S.redirectedURL!=null&&(te=S.redirectedURL);var ue=this._seekHandler.getConfig(te,D),Se=new self.Headers;if(typeof ue.headers=="object"){var xe=ue.headers;for(var De in xe)xe.hasOwnProperty(De)&&Se.append(De,xe[De])}var Ge={method:"GET",headers:Se,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Fe in this._config.headers)Se.append(Fe,this._config.headers[Fe]);S.cors===!1&&(Ge.mode="same-origin"),S.withCredentials&&(Ge.credentials="include"),S.referrerPolicy&&(Ge.referrerPolicy=S.referrerPolicy),this._status=it.kConnecting,self.fetch(ue.url,Ge).then(function(Te){if(V._requestAbort){V._requestAbort=!1,V._status=it.kIdle;return}if(Te.ok&&Te.status>=200&&Te.status<=299){if(Te.url!==ue.url&&V._onURLRedirect){var $e=V._seekHandler.removeURLParameters(Te.url);V._onURLRedirect($e)}var qe=Te.headers.get("Content-Length");return qe!=null&&(V._contentLength=parseInt(qe),V._contentLength!==0&&(V._onContentLengthKnown&&V._onContentLengthKnown(V._contentLength))),V._pump.call(V,Te.body.getReader())}else if(V._status=it.kError,V._onError)V._onError(vt.HTTP_STATUS_CODE_INVALID,{code:Te.status,msg:Te.statusText});else throw new kt("FetchStreamLoader: Http code invalid, "+Te.status+" "+Te.statusText)}).catch(function(Te){if(V._status=it.kError,V._onError)V._onError(vt.EXCEPTION,{code:-1,msg:Te.message});else throw Te})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(S){var D=this;return S.read().then(function(V){if(V.done)if(D._contentLength!==null&&D._receivedLength<D._contentLength){D._status=it.kError;var te=vt.EARLY_EOF,ue={code:-1,msg:"Fetch stream meet Early-EOF"};if(D._onError)D._onError(te,ue);else throw new kt(ue.msg)}else D._status=it.kComplete,D._onComplete&&D._onComplete(D._range.from,D._range.from+D._receivedLength-1);else{if(D._requestAbort===!0)return D._requestAbort=!1,D._status=it.kComplete,S.cancel();D._status=it.kBuffering;var Se=V.value.buffer,xe=D._range.from+D._receivedLength;D._receivedLength+=Se.byteLength,D._onDataArrival&&D._onDataArrival(Se,xe,D._receivedLength),D._pump(S)}}).catch(function(V){if(V.code===11&&bt.msedge)return;D._status=it.kError;var te=0,ue=null;if((V.code===19||V.message==="network error")&&(D._contentLength===null||D._contentLength!==null&&D._receivedLength<D._contentLength)?(te=vt.EARLY_EOF,ue={code:V.code,msg:"Fetch stream meet Early-EOF"}):(te=vt.EXCEPTION,ue={code:V.code,msg:V.message}),D._onError)D._onError(te,ue);else throw new kt(ue.msg)})}}],[{key:"isSupported",value:function(){try{var S=bt.msedge&&bt.version.minor>=15048,D=bt.msedge?S:!0;return self.fetch&&self.ReadableStream&&D}catch(V){return!1}}}]),a}(Qt),Ln=Yn,$n=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y,S){var D;return Object(dt.a)(this,a),D=P.call(this,"xhr-moz-chunked-loader"),D.TAG="MozChunkedLoader",D._seekHandler=y,D._config=S,D._needStash=!0,D._xhr=null,D._requestAbort=!1,D._contentLength=null,D._receivedLength=0,D}return Object(ft.a)(a,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(en.a)(Object(tn.a)(a.prototype),"destroy",this).call(this)}},{key:"open",value:function(S,D){this._dataSource=S,this._range=D;var V=S.url;this._config.reuseRedirectedURL&&S.redirectedURL!=null&&(V=S.redirectedURL);var te=this._seekHandler.getConfig(V,D);this._requestURL=te.url;var ue=this._xhr=new XMLHttpRequest;if(ue.open("GET",te.url,!0),ue.responseType="moz-chunked-arraybuffer",ue.onreadystatechange=this._onReadyStateChange.bind(this),ue.onprogress=this._onProgress.bind(this),ue.onloadend=this._onLoadEnd.bind(this),ue.onerror=this._onXhrError.bind(this),S.withCredentials&&(ue.withCredentials=!0),typeof te.headers=="object"){var Se=te.headers;for(var xe in Se)Se.hasOwnProperty(xe)&&ue.setRequestHeader(xe,Se[xe])}if(typeof this._config.headers=="object"){var De=this._config.headers;for(var Ge in De)De.hasOwnProperty(Ge)&&ue.setRequestHeader(Ge,De[Ge])}this._status=it.kConnecting,ue.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=it.kComplete}},{key:"_onReadyStateChange",value:function(S){var D=S.target;if(D.readyState===2){if(D.responseURL!=null&&D.responseURL!==this._requestURL&&this._onURLRedirect){var V=this._seekHandler.removeURLParameters(D.responseURL);this._onURLRedirect(V)}if(D.status!==0&&(D.status<200||D.status>299))if(this._status=it.kError,this._onError)this._onError(vt.HTTP_STATUS_CODE_INVALID,{code:D.status,msg:D.statusText});else throw new kt("MozChunkedLoader: Http code invalid, "+D.status+" "+D.statusText);else this._status=it.kBuffering}}},{key:"_onProgress",value:function(S){if(this._status===it.kError)return;this._contentLength===null&&(S.total!==null&&S.total!==0&&(this._contentLength=S.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var D=S.target.response,V=this._range.from+this._receivedLength;this._receivedLength+=D.byteLength,this._onDataArrival&&this._onDataArrival(D,V,this._receivedLength)}},{key:"_onLoadEnd",value:function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===it.kError)return;this._status=it.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(S){this._status=it.kError;var D=0,V=null;if(this._contentLength&&S.loaded<this._contentLength?(D=vt.EARLY_EOF,V={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(D=vt.EXCEPTION,V={code:-1,msg:S.constructor.name+" "+S.type}),this._onError)this._onError(D,V);else throw new kt(V.msg)}}],[{key:"isSupported",value:function(){try{var S=new XMLHttpRequest;return S.open("GET","https://example.com",!0),S.responseType="moz-chunked-arraybuffer",S.responseType==="moz-chunked-arraybuffer"}catch(D){return Be.w("MozChunkedLoader",D.message),!1}}}]),a}(Qt),Cn=$n,Jn=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y,S){var D;return Object(dt.a)(this,a),D=P.call(this,"xhr-msstream-loader"),D.TAG="MSStreamLoader",D._seekHandler=y,D._config=S,D._needStash=!0,D._xhr=null,D._reader=null,D._totalRange=null,D._currentRange=null,D._currentRequestURL=null,D._currentRedirectedURL=null,D._contentLength=null,D._receivedLength=0,D._bufferLimit=16*1024*1024,D._lastTimeBufferSize=0,D._isReconnecting=!1,D}return Object(ft.a)(a,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(en.a)(Object(tn.a)(a.prototype),"destroy",this).call(this)}},{key:"open",value:function(S,D){this._internalOpen(S,D,!1)}},{key:"_internalOpen",value:function(S,D,V){this._dataSource=S,V?this._currentRange=D:this._totalRange=D;var te=S.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?te=this._currentRedirectedURL:S.redirectedURL!=null&&(te=S.redirectedURL));var ue=this._seekHandler.getConfig(te,D);this._currentRequestURL=ue.url;var Se=this._reader=new self.MSStreamReader;Se.onprogress=this._msrOnProgress.bind(this),Se.onload=this._msrOnLoad.bind(this),Se.onerror=this._msrOnError.bind(this);var xe=this._xhr=new XMLHttpRequest;if(xe.open("GET",ue.url,!0),xe.responseType="ms-stream",xe.onreadystatechange=this._xhrOnReadyStateChange.bind(this),xe.onerror=this._xhrOnError.bind(this),S.withCredentials&&(xe.withCredentials=!0),typeof ue.headers=="object"){var De=ue.headers;for(var Ge in De)De.hasOwnProperty(Ge)&&xe.setRequestHeader(Ge,De[Ge])}if(typeof this._config.headers=="object"){var Fe=this._config.headers;for(var Te in Fe)Fe.hasOwnProperty(Te)&&xe.setRequestHeader(Te,Fe[Te])}this._isReconnecting?this._isReconnecting=!1:this._status=it.kConnecting,xe.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=it.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(S){var D=S.target;if(D.readyState===2)if(D.status>=200&&D.status<=299){if(this._status=it.kBuffering,D.responseURL!=null){var V=this._seekHandler.removeURLParameters(D.responseURL);D.responseURL!==this._currentRequestURL&&V!==this._currentRedirectedURL&&(this._currentRedirectedURL=V,this._onURLRedirect&&this._onURLRedirect(V))}var te=D.getResponseHeader("Content-Length");if(te!=null&&this._contentLength==null){var ue=parseInt(te);ue>0&&(this._contentLength=ue,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=it.kError,this._onError)this._onError(vt.HTTP_STATUS_CODE_INVALID,{code:D.status,msg:D.statusText});else throw new kt("MSStreamLoader: Http code invalid, "+D.status+" "+D.statusText);else if(D.readyState===3&&(D.status>=200&&D.status<=299)){this._status=it.kBuffering;var Se=D.response;this._reader.readAsArrayBuffer(Se)}}},{key:"_xhrOnError",value:function(S){this._status=it.kError;var D=vt.EXCEPTION,V={code:-1,msg:S.constructor.name+" "+S.type};if(this._onError)this._onError(D,V);else throw new kt(V.msg)}},{key:"_msrOnProgress",value:function(S){var D=S.target,V=D.result;if(V==null){this._doReconnectIfNeeded();return}var te=V.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=V.byteLength;var ue=this._totalRange.from+this._receivedLength;this._receivedLength+=te.byteLength,this._onDataArrival&&this._onDataArrival(te,ue,this._receivedLength),V.byteLength>=this._bufferLimit&&(Be.v(this.TAG,"MSStream buffer exceeded max size near ".concat(ue+te.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var S={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,S,!0)}}},{key:"_msrOnLoad",value:function(S){this._status=it.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(S){this._status=it.kError;var D=0,V=null;if(this._contentLength&&this._receivedLength<this._contentLength?(D=vt.EARLY_EOF,V={code:-1,msg:"MSStream meet Early-Eof"}):(D=vt.EARLY_EOF,V={code:-1,msg:S.constructor.name+" "+S.type}),this._onError)this._onError(D,V);else throw new kt(V.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var S=new XMLHttpRequest;return S.open("GET","https://example.com",!0),S.responseType="ms-stream",S.responseType==="ms-stream"}catch(D){return Be.w("MSStreamLoader",D.message),!1}}}]),a}(Qt),Jr=Jn,Qn=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(y,S){var D;return Object(dt.a)(this,a),D=P.call(this,"xhr-range-loader"),D.TAG="RangeLoader",D._seekHandler=y,D._config=S,D._needStash=!1,D._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],D._currentChunkSizeKB=384,D._currentSpeedNormalized=0,D._zeroSpeedChunkCount=0,D._xhr=null,D._speedSampler=new An,D._requestAbort=!1,D._waitForTotalLength=!1,D._totalLengthReceived=!1,D._currentRequestURL=null,D._currentRedirectedURL=null,D._currentRequestRange=null,D._totalLength=null,D._contentLength=null,D._receivedLength=0,D._lastTimeLoaded=0,D}return Object(ft.a)(a,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(en.a)(Object(tn.a)(a.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(S,D){this._dataSource=S,this._range=D,this._status=it.kConnecting;var V=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(V=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!V?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var S=this._currentChunkSizeKB*1024,D=this._range.from+this._receivedLength,V=D+S;this._contentLength!=null&&(V-this._range.from>=this._contentLength&&(V=this._range.from+this._contentLength-1)),this._currentRequestRange={from:D,to:V},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(S,D){this._lastTimeLoaded=0;var V=S.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?V=this._currentRedirectedURL:S.redirectedURL!=null&&(V=S.redirectedURL));var te=this._seekHandler.getConfig(V,D);this._currentRequestURL=te.url;var ue=this._xhr=new XMLHttpRequest;if(ue.open("GET",te.url,!0),ue.responseType="arraybuffer",ue.onreadystatechange=this._onReadyStateChange.bind(this),ue.onprogress=this._onProgress.bind(this),ue.onload=this._onLoad.bind(this),ue.onerror=this._onXhrError.bind(this),S.withCredentials&&(ue.withCredentials=!0),typeof te.headers=="object"){var Se=te.headers;for(var xe in Se)Se.hasOwnProperty(xe)&&ue.setRequestHeader(xe,Se[xe])}if(typeof this._config.headers=="object"){var De=this._config.headers;for(var Ge in De)De.hasOwnProperty(Ge)&&ue.setRequestHeader(Ge,De[Ge])}ue.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=it.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(S){var D=S.target;if(D.readyState===2){if(D.responseURL!=null){var V=this._seekHandler.removeURLParameters(D.responseURL);D.responseURL!==this._currentRequestURL&&V!==this._currentRedirectedURL&&(this._currentRedirectedURL=V,this._onURLRedirect&&this._onURLRedirect(V))}if(D.status>=200&&D.status<=299){if(this._waitForTotalLength)return;this._status=it.kBuffering}else if(this._status=it.kError,this._onError)this._onError(vt.HTTP_STATUS_CODE_INVALID,{code:D.status,msg:D.statusText});else throw new kt("RangeLoader: Http code invalid, "+D.status+" "+D.statusText)}}},{key:"_onProgress",value:function(S){if(this._status===it.kError)return;if(this._contentLength===null){var D=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,D=!0;var V=S.total;this._internalAbort(),V!=null&V!==0&&(this._totalLength=V)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,D){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var te=S.loaded-this._lastTimeLoaded;this._lastTimeLoaded=S.loaded,this._speedSampler.addBytes(te)}},{key:"_normalizeSpeed",value:function(S){var D=this._chunkSizeKBList,V=D.length-1,te=0,ue=0,Se=V;if(S<D[0])return D[0];for(;ue<=Se;){if(te=ue+Math.floor((Se-ue)/2),te===V||S>=D[te]&&S<D[te+1])return D[te];D[te]<S?ue=te+1:Se=te-1}}},{key:"_onLoad",value:function(S){if(this._status===it.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var D=this._speedSampler.lastSecondKBps;if(D===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(D=this._speedSampler.currentKBps)),D!==0){var V=this._normalizeSpeed(D);this._currentSpeedNormalized!==V&&(this._currentSpeedNormalized=V,this._currentChunkSizeKB=V)}var te=S.target.response,ue=this._range.from+this._receivedLength;this._receivedLength+=te.byteLength;var Se=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Se=!0,this._onDataArrival&&this._onDataArrival(te,ue,this._receivedLength),Se&&(this._status=it.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(S){this._status=it.kError;var D=0,V=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(D=vt.EARLY_EOF,V={code:-1,msg:"RangeLoader meet Early-Eof"}):(D=vt.EXCEPTION,V={code:-1,msg:S.constructor.name+" "+S.type}),this._onError)this._onError(D,V);else throw new kt(V.msg)}}],[{key:"isSupported",value:function(){try{var S=new XMLHttpRequest;return S.open("GET","https://example.com",!0),S.responseType="arraybuffer",S.responseType==="arraybuffer"}catch(D){return Be.w("RangeLoader",D.message),!1}}}]),a}(Qt),dn=Qn,Zn=function(F){Object(Wt.a)(a,F);var P=Object(Ht.a)(a);function a(){var y;return Object(dt.a)(this,a),y=P.call(this,"websocket-loader"),y.TAG="WebSocketLoader",y._needStash=!0,y._ws=null,y._requestAbort=!1,y._receivedLength=0,y}return Object(ft.a)(a,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(en.a)(Object(tn.a)(a.prototype),"destroy",this).call(this)}},{key:"open",value:function(S){try{var D=this._ws=new self.WebSocket(S.url);D.binaryType="arraybuffer",D.onopen=this._onWebSocketOpen.bind(this),D.onclose=this._onWebSocketClose.bind(this),D.onmessage=this._onWebSocketMessage.bind(this),D.onerror=this._onWebSocketError.bind(this),this._status=it.kConnecting}catch(te){this._status=it.kError;var V={code:te.code,msg:te.message};if(this._onError)this._onError(vt.EXCEPTION,V);else throw new kt(V.msg)}}},{key:"abort",value:function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=it.kComplete}},{key:"_onWebSocketOpen",value:function(S){this._status=it.kBuffering}},{key:"_onWebSocketClose",value:function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=it.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(S){var D=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var V=new FileReader;V.onload=function(){D._dispatchArrayBuffer(V.result)},V.readAsArrayBuffer(S.data)}else{this._status=it.kError;var te={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(vt.EXCEPTION,te);else throw new kt(te.msg)}}},{key:"_dispatchArrayBuffer",value:function(S){var D=S,V=this._receivedLength;this._receivedLength+=D.byteLength,this._onDataArrival&&this._onDataArrival(D,V,this._receivedLength)}},{key:"_onWebSocketError",value:function(S){this._status=it.kError;var D={code:S.code,msg:S.message};if(this._onError)this._onError(vt.EXCEPTION,D);else throw new kt(D.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(S){return!1}}}]),a}(Qt),er=Zn,tr=function(){function F(P){Object(dt.a)(this,F),this._zeroStart=P||!1}return Object(ft.a)(F,[{key:"getConfig",value:function(a,y){var S={};if(y.from!==0||y.to!==-1){var D;y.to!==-1?D="bytes=".concat(y.from.toString(),"-").concat(y.to.toString()):D="bytes=".concat(y.from.toString(),"-"),S.Range=D}else this._zeroStart&&(S.Range="bytes=0-");return{url:a,headers:S}}},{key:"removeURLParameters",value:function(a){return a}}]),F}(),nr=tr,rr=function(){function F(P,a){Object(dt.a)(this,F),this._startName=P,this._endName=a}return Object(ft.a)(F,[{key:"getConfig",value:function(a,y){var S=a;if(y.from!==0||y.to!==-1){var D=!0;S.indexOf("?")===-1&&(S+="?",D=!1),D&&(S+="&"),S+="".concat(this._startName,"=").concat(y.from.toString()),y.to!==-1&&(S+="&".concat(this._endName,"=").concat(y.to.toString()))}return{url:S,headers:{}}}},{key:"removeURLParameters",value:function(a){var y=a.split("?")[0],S=void 0,D=a.indexOf("?");D!==-1&&(S=a.substring(D+1));var V="";if(S!=null&&S.length>0)for(var te=S.split("&"),ue=0;ue<te.length;ue++){var Se=te[ue].split("="),xe=ue>0;Se[0]!==this._startName&&Se[0]!==this._endName&&(xe&&(V+="&"),V+=te[ue])}return V.length===0?y:y+"?"+V}}]),F}(),ir=rr,or=function(){function F(P,a,y){Object(dt.a)(this,F),this.TAG="IOController",this._config=a,this._extraData=y,this._stashInitialSize=1024*384,a.stashInitialSize!=null&&a.stashInitialSize>0&&(this._stashInitialSize=a.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,a.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=P,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(P.url),this._refTotalLength=P.filesize?P.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new An,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(ft.a)(F,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(a){this._extraData=a}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(a){this._onDataArrival=a}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(a){this._onSeeked=a}},{key:"onError",get:function(){return this._onError},set:function(a){this._onError=a}},{key:"onComplete",get:function(){return this._onComplete},set:function(a){this._onComplete=a}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(a){this._onRedirect=a}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(a){this._onRecoveredEarlyEof=a}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===dn?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var a=this._config;if(a.seekType==="range")this._seekHandler=new nr(this._config.rangeLoadZeroStart);else if(a.seekType==="param"){var y=a.seekParamStart||"bstart",S=a.seekParamEnd||"bend";this._seekHandler=new ir(y,S)}else if(a.seekType==="custom"){if(typeof a.customSeekHandler!="function")throw new Vt("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new a.customSeekHandler}else throw new Vt("Invalid seekType in config: ".concat(a.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=er;else if(Ln.isSupported())this._loaderClass=Ln;else if(Cn.isSupported())this._loaderClass=Cn;else if(dn.isSupported())this._loaderClass=dn;else throw new kt("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(a){this._currentRange={from:0,to:-1},a&&(this._currentRange.from=a),this._speedSampler.reset(),a||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var a=this._resumeFrom;this._resumeFrom=0,this._internalSeek(a,!0)}}},{key:"seek",value:function(a){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(a,!0)}},{key:"_internalSeek",value:function(a,y){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(y),this._loader.destroy(),this._loader=null;var S={from:a,to:-1};this._currentRange={from:S.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,S),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(a){if(!a||typeof a!="string"||a.length===0)throw new Vt("Url must be a non-empty string!");this._dataSource.url=a}},{key:"_expandBuffer",value:function(a){for(var y=this._stashSize;y+1024*1024*1<a;)y*=2;if(y+=1024*1024*1,y===this._bufferSize)return;var S=new ArrayBuffer(y);if(this._stashUsed>0){var D=new Uint8Array(this._stashBuffer,0,this._stashUsed),V=new Uint8Array(S,0,y);V.set(D,0)}this._stashBuffer=S,this._bufferSize=y}},{key:"_normalizeSpeed",value:function(a){var y=this._speedNormalizeList,S=y.length-1,D=0,V=0,te=S;if(a<y[0])return y[0];for(;V<=te;){if(D=V+Math.floor((te-V)/2),D===S||a>=y[D]&&a<y[D+1])return y[D];y[D]<a?V=D+1:te=D-1}}},{key:"_adjustStashSize",value:function(a){var y=0;this._config.isLive||a<512?y=a:a>=512&&a<=1024?y=Math.floor(a*1.5):y=a*2,y>8192&&(y=8192);var S=y*1024+1024*1024*1;this._bufferSize<S&&this._expandBuffer(S),this._stashSize=y*1024}},{key:"_dispatchChunks",value:function(a,y){return this._currentRange.to=y+a.byteLength-1,this._onDataArrival(a,y)}},{key:"_onURLRedirect",value:function(a){this._redirectedURL=a,this._onRedirect&&this._onRedirect(a)}},{key:"_onContentLengthKnown",value:function(a){a&&this._fullRequestFlag&&(this._totalLength=a,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(a,y,S){if(!this._onDataArrival)throw new Mt("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(a.byteLength);var D=this._speedSampler.lastSecondKBps;if(D!==0){var V=this._normalizeSpeed(D);this._speedNormalized!==V&&(this._speedNormalized=V,this._adjustStashSize(V))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=y),this._stashUsed+a.byteLength<=this._stashSize){var Fe=new Uint8Array(this._stashBuffer,0,this._stashSize);Fe.set(new Uint8Array(a),this._stashUsed),this._stashUsed+=a.byteLength}else{var Te=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var $e=this._stashBuffer.slice(0,this._stashUsed),qe=this._dispatchChunks($e,this._stashByteStart);if(qe<$e.byteLength){if(qe>0){var Pe=new Uint8Array($e,qe);Te.set(Pe,0),this._stashUsed=Pe.byteLength,this._stashByteStart+=qe}}else this._stashUsed=0,this._stashByteStart+=qe;this._stashUsed+a.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+a.byteLength),Te=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Te.set(new Uint8Array(a),this._stashUsed),this._stashUsed+=a.byteLength}else{var Ne=this._dispatchChunks(a,y);if(Ne<a.byteLength){var we=a.byteLength-Ne;we>this._bufferSize&&(this._expandBuffer(we),Te=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Te.set(new Uint8Array(a,Ne),0),this._stashUsed+=we,this._stashByteStart=y+Ne}}}else if(this._stashUsed===0){var te=this._dispatchChunks(a,y);if(te<a.byteLength){var ue=a.byteLength-te;ue>this._bufferSize&&this._expandBuffer(ue);var Se=new Uint8Array(this._stashBuffer,0,this._bufferSize);Se.set(new Uint8Array(a,te),0),this._stashUsed+=ue,this._stashByteStart=y+te}}else{this._stashUsed+a.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+a.byteLength);var xe=new Uint8Array(this._stashBuffer,0,this._bufferSize);xe.set(new Uint8Array(a),this._stashUsed),this._stashUsed+=a.byteLength;var De=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(De<this._stashUsed&&De>0){var Ge=new Uint8Array(this._stashBuffer,De);xe.set(Ge,0)}this._stashUsed-=De,this._stashByteStart+=De}}},{key:"_flushStashBuffer",value:function(a){if(this._stashUsed>0){var y=this._stashBuffer.slice(0,this._stashUsed),S=this._dispatchChunks(y,this._stashByteStart),D=y.byteLength-S;if(S<y.byteLength)if(a)Be.w(this.TAG,"".concat(D," bytes unconsumed data remain when flush buffer, dropped"));else{if(S>0){var V=new Uint8Array(this._stashBuffer,0,this._bufferSize),te=new Uint8Array(y,S);V.set(te,0),this._stashUsed=te.byteLength,this._stashByteStart+=S}return 0}return this._stashUsed=0,this._stashByteStart=0,D}return 0}},{key:"_onLoaderComplete",value:function(a,y){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(a,y){Be.e(this.TAG,"Loader error, code = ".concat(y.code,", msg = ").concat(y.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,a=vt.UNRECOVERABLE_EARLY_EOF);switch(a){case vt.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var S=this._currentRange.to+1;S<this._totalLength&&(Be.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(S,!1));return}a=vt.UNRECOVERABLE_EARLY_EOF;break}case vt.UNRECOVERABLE_EARLY_EOF:case vt.CONNECTING_TIMEOUT:case vt.HTTP_STATUS_CODE_INVALID:case vt.EXCEPTION:break}if(this._onError)this._onError(a,y);else throw new kt("IOException: "+y.msg)}}]),F}(),fn=or,ar={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function ln(){return Object.assign({},ar)}var sr=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var a=new fn({},ln()),y=a.loaderType;return a.destroy(),y=="fetch-stream-loader"||y=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var a=new fn({},ln()),y=a.loaderType;return a.destroy(),y}},{key:"supportNativeMediaPlayback",value:function(a){F.videoElement==null&&(F.videoElement=window.document.createElement("video"));var y=F.videoElement.canPlayType(a);return y==="probably"||y=="maybe"}},{key:"getFeatureList",value:function(){var a={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return a.mseFlvPlayback=F.supportMSEH264Playback(),a.networkStreamIO=F.supportNetworkStreamIO(),a.networkLoaderName=F.getNetworkLoaderTypeName(),a.mseLiveFlvPlayback=a.mseFlvPlayback&&a.networkStreamIO,a.nativeMP4H264Playback=F.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),a.nativeWebmVP8Playback=F.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),a.nativeWebmVP9Playback=F.supportNativeMediaPlayback('video/webm; codecs="vp9"'),a}}]),F}(),On=sr,ur={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},Tt=ur,kn=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"forceGlobalTag",get:function(){return Be.FORCE_GLOBAL_TAG},set:function(a){Be.FORCE_GLOBAL_TAG=a,F._notifyChange()}},{key:"globalTag",get:function(){return Be.GLOBAL_TAG},set:function(a){Be.GLOBAL_TAG=a,F._notifyChange()}},{key:"enableAll",get:function(){return Be.ENABLE_VERBOSE&&Be.ENABLE_DEBUG&&Be.ENABLE_INFO&&Be.ENABLE_WARN&&Be.ENABLE_ERROR},set:function(a){Be.ENABLE_VERBOSE=a,Be.ENABLE_DEBUG=a,Be.ENABLE_INFO=a,Be.ENABLE_WARN=a,Be.ENABLE_ERROR=a,F._notifyChange()}},{key:"enableDebug",get:function(){return Be.ENABLE_DEBUG},set:function(a){Be.ENABLE_DEBUG=a,F._notifyChange()}},{key:"enableVerbose",get:function(){return Be.ENABLE_VERBOSE},set:function(a){Be.ENABLE_VERBOSE=a,F._notifyChange()}},{key:"enableInfo",get:function(){return Be.ENABLE_INFO},set:function(a){Be.ENABLE_INFO=a,F._notifyChange()}},{key:"enableWarn",get:function(){return Be.ENABLE_WARN},set:function(a){Be.ENABLE_WARN=a,F._notifyChange()}},{key:"enableError",get:function(){return Be.ENABLE_ERROR},set:function(a){Be.ENABLE_ERROR=a,F._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:Be.GLOBAL_TAG,forceGlobalTag:Be.FORCE_GLOBAL_TAG,enableVerbose:Be.ENABLE_VERBOSE,enableDebug:Be.ENABLE_DEBUG,enableInfo:Be.ENABLE_INFO,enableWarn:Be.ENABLE_WARN,enableError:Be.ENABLE_ERROR,enableCallback:Be.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(a){Be.GLOBAL_TAG=a.globalTag,Be.FORCE_GLOBAL_TAG=a.forceGlobalTag,Be.ENABLE_VERBOSE=a.enableVerbose,Be.ENABLE_DEBUG=a.enableDebug,Be.ENABLE_INFO=a.enableInfo,Be.ENABLE_WARN=a.enableWarn,Be.ENABLE_ERROR=a.enableError,Be.ENABLE_CALLBACK=a.enableCallback}},{key:"_notifyChange",value:function(){var a=F.emitter;if(a.listenerCount("change")>0){var y=F.getConfig();a.emit("change",y)}}},{key:"registerListener",value:function(a){F.emitter.addListener("change",a)}},{key:"removeListener",value:function(a){F.emitter.removeListener("change",a)}},{key:"addLogListener",value:function(a){Be.emitter.addListener("log",a),Be.emitter.listenerCount("log")>0&&(Be.ENABLE_CALLBACK=!0,F._notifyChange())}},{key:"removeLogListener",value:function(a){Be.emitter.removeListener("log",a),Be.emitter.listenerCount("log")===0&&(Be.ENABLE_CALLBACK=!1,F._notifyChange())}}]),F}();kn.emitter=new $t.a;var Jt=kn,lr=function(){function F(){Object(dt.a)(this,F),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(ft.a)(F,[{key:"isComplete",value:function(){var a=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,y=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&a&&y}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(a){if(this.keyframesIndex==null)return null;var y=this.keyframesIndex,S=this._search(y.times,a);return{index:S,milliseconds:y.times[S],fileposition:y.filepositions[S]}}},{key:"_search",value:function(a,y){var S=0,D=a.length-1,V=0,te=0,ue=D;for(y<a[0]&&(S=0,te=ue+1);te<=ue;)if(V=te+Math.floor((ue-te)/2),V===D||y>=a[V]&&y<a[V+1]){S=V;break}else a[V]<y?te=V+1:ue=V-1;return S}}]),F}(),rn=lr;function hn(F,P,a){var y=F;if(P+a<y.length){for(;a--;)if((y[++P]&192)!==128)return!1;return!0}else return!1}function cr(F){for(var P=[],a=F,y=0,S=F.length;y<S;){if(a[y]<128){P.push(String.fromCharCode(a[y])),++y;continue}else if(!(a[y]<192)){if(a[y]<224){if(hn(a,y,1)){var D=(a[y]&31)<<6|a[y+1]&63;if(D>=128){P.push(String.fromCharCode(D&65535)),y+=2;continue}}}else if(a[y]<240){if(hn(a,y,2)){var V=(a[y]&15)<<12|(a[y+1]&63)<<6|a[y+2]&63;if(V>=2048&&(V&63488)!==55296){P.push(String.fromCharCode(V&65535)),y+=3;continue}}}else if(a[y]<248&&hn(a,y,3)){var te=(a[y]&7)<<18|(a[y+1]&63)<<12|(a[y+2]&63)<<6|a[y+3]&63;if(te>65536&&te<1114112){te-=65536,P.push(String.fromCharCode(te>>>10|55296)),P.push(String.fromCharCode(te&1023|56320)),y+=4;continue}}}P.push(String.fromCharCode(65533)),++y}return P.join("")}var Rn=cr,qt=function(){var F=new ArrayBuffer(2);return new DataView(F).setInt16(0,256,!0),new Int16Array(F)[0]===256}(),dr=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"parseScriptData",value:function(a,y,S){var D={};try{var V=F.parseValue(a,y,S),te=F.parseValue(a,y+V.size,S-V.size);D[V.data]=te.data}catch(ue){Be.e("AMF",ue.toString())}return D}},{key:"parseObject",value:function(a,y,S){if(S<3)throw new Mt("Data not enough when parse ScriptDataObject");var D=F.parseString(a,y,S),V=F.parseValue(a,y+D.size,S-D.size),te=V.objectEnd;return{data:{name:D.data,value:V.data},size:D.size+V.size,objectEnd:te}}},{key:"parseVariable",value:function(a,y,S){return F.parseObject(a,y,S)}},{key:"parseString",value:function(a,y,S){if(S<2)throw new Mt("Data not enough when parse String");var D=new DataView(a,y,S),V=D.getUint16(0,!qt),te;return V>0?te=Rn(new Uint8Array(a,y+2,V)):te="",{data:te,size:2+V}}},{key:"parseLongString",value:function(a,y,S){if(S<4)throw new Mt("Data not enough when parse LongString");var D=new DataView(a,y,S),V=D.getUint32(0,!qt),te;return V>0?te=Rn(new Uint8Array(a,y+4,V)):te="",{data:te,size:4+V}}},{key:"parseDate",value:function(a,y,S){if(S<10)throw new Mt("Data size invalid when parse Date");var D=new DataView(a,y,S),V=D.getFloat64(0,!qt),te=D.getInt16(8,!qt);return V+=te*60*1e3,{data:new Date(V),size:8+2}}},{key:"parseValue",value:function(a,y,S){if(S<1)throw new Mt("Data not enough when parse Value");var D=new DataView(a,y,S),V=1,te=D.getUint8(0),ue,Se=!1;try{switch(te){case 0:ue=D.getFloat64(1,!qt),V+=8;break;case 1:{var xe=D.getUint8(1);ue=!!xe,V+=1;break}case 2:{var De=F.parseString(a,y+1,S-1);ue=De.data,V+=De.size;break}case 3:{ue={};var Ge=0;for((D.getUint32(S-4,!qt)&16777215)===9&&(Ge=3);V<S-4;){var Fe=F.parseObject(a,y+V,S-V-Ge);if(Fe.objectEnd)break;ue[Fe.data.name]=Fe.data.value,V+=Fe.size}if(V<=S-3){var Te=D.getUint32(V-1,!qt)&16777215;Te===9&&(V+=3)}break}case 8:{ue={},V+=4;var $e=0;for((D.getUint32(S-4,!qt)&16777215)===9&&($e=3);V<S-8;){var qe=F.parseVariable(a,y+V,S-V-$e);if(qe.objectEnd)break;ue[qe.data.name]=qe.data.value,V+=qe.size}if(V<=S-3){var Pe=D.getUint32(V-1,!qt)&16777215;Pe===9&&(V+=3)}break}case 9:ue=void 0,V=1,Se=!0;break;case 10:{ue=[];var Ne=D.getUint32(1,!qt);V+=4;for(var we=0;we<Ne;we++){var Ze=F.parseValue(a,y+V,S-V);ue.push(Ze.data),V+=Ze.size}break}case 11:{var je=F.parseDate(a,y+1,S-1);ue=je.data,V+=je.size;break}case 12:{var He=F.parseString(a,y+1,S-1);ue=He.data,V+=He.size;break}default:V=S,Be.w("AMF","Unsupported AMF value type "+te)}}catch(tt){Be.e("AMF",tt.toString())}return{data:ue,size:V,objectEnd:Se}}}]),F}(),fr=dr,hr=function(){function F(P){Object(dt.a)(this,F),this.TAG="ExpGolomb",this._buffer=P,this._buffer_index=0,this._total_bytes=P.byteLength,this._total_bits=P.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(ft.a)(F,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var a=this._total_bytes-this._buffer_index;if(a<=0)throw new Mt("ExpGolomb: _fillCurrentWord() but no bytes available");var y=Math.min(4,a),S=new Uint8Array(4);S.set(this._buffer.subarray(this._buffer_index,this._buffer_index+y)),this._current_word=new DataView(S.buffer).getUint32(0,!1),this._buffer_index+=y,this._current_word_bits_left=y*8}},{key:"readBits",value:function(a){if(a>32)throw new Vt("ExpGolomb: readBits() bits exceeded max 32bits!");if(a<=this._current_word_bits_left){var y=this._current_word>>>32-a;return this._current_word<<=a,this._current_word_bits_left-=a,y}var S=this._current_word_bits_left?this._current_word:0;S=S>>>32-this._current_word_bits_left;var D=a-this._current_word_bits_left;this._fillCurrentWord();var V=Math.min(D,this._current_word_bits_left),te=this._current_word>>>32-V;return this._current_word<<=V,this._current_word_bits_left-=V,S=S<<V|te,S}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var a;for(a=0;a<this._current_word_bits_left;a++)if((this._current_word&2147483648>>>a)!==0)return this._current_word<<=a,this._current_word_bits_left-=a,a;return this._fillCurrentWord(),a+this._skipLeadingZero()}},{key:"readUEG",value:function(){var a=this._skipLeadingZero();return this.readBits(a+1)-1}},{key:"readSEG",value:function(){var a=this.readUEG();return a&1?a+1>>>1:-1*(a>>>1)}}]),F}(),pr=hr,mr=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"_ebsp2rbsp",value:function(a){for(var y=a,S=y.byteLength,D=new Uint8Array(S),V=0,te=0;te<S;te++){if(te>=2&&(y[te]===3&&y[te-1]===0&&y[te-2]===0))continue;D[V]=y[te],V++}return new Uint8Array(D.buffer,0,V)}},{key:"parseSPS",value:function(a){var y=F._ebsp2rbsp(a),S=new pr(y);S.readByte();var D=S.readByte();S.readByte();var V=S.readByte();S.readUEG();var te=F.getProfileString(D),ue=F.getLevelString(V),Se=1,xe=420,De=[0,420,422,444],Ge=8;if((D===100||D===110||D===122||D===244||D===44||D===83||D===86||D===118||D===128||D===138||D===144)&&(Se=S.readUEG(),Se===3&&S.readBits(1),Se<=3&&(xe=De[Se]),Ge=S.readUEG()+8,S.readUEG(),S.readBits(1),S.readBool()))for(var Fe=Se!==3?8:12,Te=0;Te<Fe;Te++)S.readBool()&&(Te<6?F._skipScalingList(S,16):F._skipScalingList(S,64));S.readUEG();var $e=S.readUEG();if($e===0)S.readUEG();else if($e===1){S.readBits(1),S.readSEG(),S.readSEG();for(var qe=S.readUEG(),Pe=0;Pe<qe;Pe++)S.readSEG()}var Ne=S.readUEG();S.readBits(1);var we=S.readUEG(),Ze=S.readUEG(),je=S.readBits(1);je===0&&S.readBits(1),S.readBits(1);var He=0,tt=0,Je=0,Ye=0,ae=S.readBool();ae&&(He=S.readUEG(),tt=S.readUEG(),Je=S.readUEG(),Ye=S.readUEG());var Q=1,fe=1,he=0,be=!0,Ee=0,Re=0,We=S.readBool();if(We){if(S.readBool()){var Ve=S.readByte(),Ae=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ie=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ve>0&&Ve<16?(Q=Ae[Ve-1],fe=Ie[Ve-1]):Ve===255&&(Q=S.readByte()<<8|S.readByte(),fe=S.readByte()<<8|S.readByte())}if(S.readBool()&&S.readBool(),S.readBool()&&(S.readBits(4),S.readBool()&&S.readBits(24)),S.readBool()&&(S.readUEG(),S.readUEG()),S.readBool()){var Xe=S.readBits(32),rt=S.readBits(32);be=S.readBool(),Ee=rt,Re=Xe*2,he=Ee/Re}}var st=1;(Q!==1||fe!==1)&&(st=Q/fe);var pt=0,_t=0;if(Se===0)pt=1,_t=2-je;else{var Lt=Se===3?1:2,Ft=Se===1?2:1;pt=Lt,_t=Ft*(2-je)}var Ut=(we+1)*16,Kt=(2-je)*((Ze+1)*16);Ut-=(He+tt)*pt,Kt-=(Je+Ye)*_t;var jt=Math.ceil(Ut*st);return S.destroy(),S=null,{profile_string:te,level_string:ue,bit_depth:Ge,ref_frames:Ne,chroma_format:xe,chroma_format_string:F.getChromaFormatString(xe),frame_rate:{fixed:be,fps:he,fps_den:Re,fps_num:Ee},sar_ratio:{width:Q,height:fe},codec_size:{width:Ut,height:Kt},present_size:{width:jt,height:Kt}}}},{key:"_skipScalingList",value:function(a,y){for(var S=8,D=8,V=0,te=0;te<y;te++)D!==0&&(V=a.readSEG(),D=(S+V+256)%256),S=D===0?S:D}},{key:"getProfileString",value:function(a){switch(a){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(a){return(a/10).toFixed(1)}},{key:"getChromaFormatString",value:function(a){switch(a){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),F}(),vr=mr,_r={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Pt=_r;function Qr(F){return F>>>8&255|(F&255)<<8}function Zr(F){return(F&4278190080)>>>24|(F&16711680)>>>8|(F&65280)<<8|(F&255)<<24}function gr(F,P){return F[P]<<24|F[P+1]<<16|F[P+2]<<8|F[P+3]}var yr=function(){function F(P,a){Object(dt.a)(this,F),this.TAG="FLVDemuxer",this._config=a,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=P.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=P.hasAudioTrack,this._hasVideo=P.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new rn,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256}()}return Object(ft.a)(F,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(a){return a.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(a){this._onTrackMetadata=a}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(a){this._onMediaInfo=a}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(a){this._onMetaDataArrived=a}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(a){this._onScriptDataArrived=a}},{key:"onError",get:function(){return this._onError},set:function(a){this._onError=a}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(a){this._onDataAvailable=a}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(a){this._timestampBase=a}},{key:"overridedDuration",get:function(){return this._duration},set:function(a){this._durationOverrided=!0,this._duration=a,this._mediaInfo.duration=a}},{key:"overridedHasAudio",set:function(a){this._hasAudioFlagOverrided=!0,this._hasAudio=a,this._mediaInfo.hasAudio=a}},{key:"overridedHasVideo",set:function(a){this._hasVideoFlagOverrided=!0,this._hasVideo=a,this._mediaInfo.hasVideo=a}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new rn}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(a,y){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new Mt("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var S=0,D=this._littleEndian;if(y===0)if(a.byteLength>13){var V=F.probe(a);S=V.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,y+S!==this._dataOffset&&Be.w(this.TAG,"First time parsing but chunk byteStart invalid!");var te=new DataView(a,S),ue=te.getUint32(0,!D);ue!==0&&Be.w(this.TAG,"PrevTagSize0 !== 0 !!!"),S+=4}for(;S<a.byteLength;){this._dispatch=!0;var Se=new DataView(a,S);if(S+11+4>a.byteLength)break;var xe=Se.getUint8(0),De=Se.getUint32(0,!D)&16777215;if(S+11+De+4>a.byteLength)break;if(xe!==8&&xe!==9&&xe!==18){Be.w(this.TAG,"Unsupported tag type ".concat(xe,", skipped")),S+=11+De+4;continue}var Ge=Se.getUint8(4),Fe=Se.getUint8(5),Te=Se.getUint8(6),$e=Se.getUint8(7),qe=Te|Fe<<8|Ge<<16|$e<<24,Pe=Se.getUint32(7,!D)&16777215;Pe!==0&&Be.w(this.TAG,"Meet tag which has StreamID != 0!");var Ne=S+11;switch(xe){case 8:this._parseAudioData(a,Ne,De,qe);break;case 9:this._parseVideoData(a,Ne,De,qe,y+S);break;case 18:this._parseScriptData(a,Ne,De);break}var we=Se.getUint32(11+De,!D);we!==11+De&&Be.w(this.TAG,"Invalid PrevTagSize ".concat(we)),S+=11+De+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),S}},{key:"_parseScriptData",value:function(a,y,S){var D=fr.parseScriptData(a,y,S);if(D.hasOwnProperty("onMetaData")){if(D.onMetaData==null||typeof D.onMetaData!="object"){Be.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&Be.w(this.TAG,"Found another onMetaData tag!"),this._metadata=D;var V=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},V)),typeof V.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=V.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof V.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=V.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof V.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=V.audiodatarate),typeof V.videodatarate=="number"&&(this._mediaInfo.videoDataRate=V.videodatarate),typeof V.width=="number"&&(this._mediaInfo.width=V.width),typeof V.height=="number"&&(this._mediaInfo.height=V.height),typeof V.duration=="number"){if(!this._durationOverrided){var te=Math.floor(V.duration*this._timescale);this._duration=te,this._mediaInfo.duration=te}}else this._mediaInfo.duration=0;if(typeof V.framerate=="number"){var ue=Math.floor(V.framerate*1e3);if(ue>0){var Se=ue/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Se,this._referenceFrameRate.fps_num=ue,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Se}}if(typeof V.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var xe=V.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(xe),V.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=V,Be.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(D).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},D)))}},{key:"_parseKeyframesIndex",value:function(a){for(var y=[],S=[],D=1;D<a.times.length;D++){var V=this._timestampBase+Math.floor(a.times[D]*1e3);y.push(V),S.push(a.filepositions[D])}return{times:y,filepositions:S}}},{key:"_parseAudioData",value:function(a,y,S,D){if(S<=1){Be.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var V=this._littleEndian,te=new DataView(a,y,S),ue=te.getUint8(0),Se=ue>>>4;if(Se!==2&&Se!==10){this._onError(Pt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Se);return}var xe=0,De=(ue&12)>>>2;if(De>=0&&De<=4)xe=this._flvSoundRateTable[De];else{this._onError(Pt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+De);return}var Ge=(ue&2)>>>1,Fe=ue&1,Te=this._audioMetadata,$e=this._audioTrack;if(Te||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Te=this._audioMetadata={},Te.type="audio",Te.id=$e.id,Te.timescale=this._timescale,Te.duration=this._duration,Te.audioSampleRate=xe,Te.channelCount=Fe===0?1:2),Se===10){var qe=this._parseAACAudioData(a,y+1,S-1);if(qe==null)return;if(qe.packetType===0){Te.config&&Be.w(this.TAG,"Found another AudioSpecificConfig!");var Pe=qe.data;Te.audioSampleRate=Pe.samplingRate,Te.channelCount=Pe.channelCount,Te.codec=Pe.codec,Te.originalCodec=Pe.originalCodec,Te.config=Pe.config,Te.refSampleDuration=1024/Te.audioSampleRate*Te.timescale,Be.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Te);var Ne=this._mediaInfo;Ne.audioCodec=Te.originalCodec,Ne.audioSampleRate=Te.audioSampleRate,Ne.audioChannelCount=Te.channelCount,Ne.hasVideo?Ne.videoCodec!=null&&(Ne.mimeType='video/x-flv; codecs="'+Ne.videoCodec+","+Ne.audioCodec+'"'):Ne.mimeType='video/x-flv; codecs="'+Ne.audioCodec+'"',Ne.isComplete()&&this._onMediaInfo(Ne)}else if(qe.packetType===1){var we=this._timestampBase+D,Ze={unit:qe.data,length:qe.data.byteLength,dts:we,pts:we};$e.samples.push(Ze),$e.length+=qe.data.length}else Be.e(this.TAG,"Flv: Unsupported AAC data type ".concat(qe.packetType))}else if(Se===2){if(!Te.codec){var je=this._parseMP3AudioData(a,y+1,S-1,!0);if(je==null)return;Te.audioSampleRate=je.samplingRate,Te.channelCount=je.channelCount,Te.codec=je.codec,Te.originalCodec=je.originalCodec,Te.refSampleDuration=1152/Te.audioSampleRate*Te.timescale,Be.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Te);var He=this._mediaInfo;He.audioCodec=Te.codec,He.audioSampleRate=Te.audioSampleRate,He.audioChannelCount=Te.channelCount,He.audioDataRate=je.bitRate,He.hasVideo?He.videoCodec!=null&&(He.mimeType='video/x-flv; codecs="'+He.videoCodec+","+He.audioCodec+'"'):He.mimeType='video/x-flv; codecs="'+He.audioCodec+'"',He.isComplete()&&this._onMediaInfo(He)}var tt=this._parseMP3AudioData(a,y+1,S-1,!1);if(tt==null)return;var Je=this._timestampBase+D,Ye={unit:tt,length:tt.byteLength,dts:Je,pts:Je};$e.samples.push(Ye),$e.length+=tt.length}}},{key:"_parseAACAudioData",value:function(a,y,S){if(S<=1){Be.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var D={},V=new Uint8Array(a,y,S);return D.packetType=V[0],V[0]===0?D.data=this._parseAACAudioSpecificConfig(a,y+1,S-1):D.data=V.subarray(1),D}},{key:"_parseAACAudioSpecificConfig",value:function(a,y,S){var D=new Uint8Array(a,y,S),V=null,te=0,ue=0,Se=null,xe=0,De=null;if(te=ue=D[0]>>>3,xe=(D[0]&7)<<1|D[1]>>>7,xe<0||xe>=this._mpegSamplingRates.length){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Ge=this._mpegSamplingRates[xe],Fe=(D[1]&120)>>>3;if(Fe<0||Fe>=8){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}te===5&&(De=(D[1]&7)<<1|D[2]>>>7,Se=(D[2]&124)>>>2);var Te=self.navigator.userAgent.toLowerCase();return Te.indexOf("firefox")!==-1?xe>=6?(te=5,V=new Array(4),De=xe-3):(te=2,V=new Array(2),De=xe):Te.indexOf("android")!==-1?(te=2,V=new Array(2),De=xe):(te=5,De=xe,V=new Array(4),xe>=6?De=xe-3:Fe===1&&(te=2,V=new Array(2),De=xe)),V[0]=te<<3,V[0]|=(xe&15)>>>1,V[1]=(xe&15)<<7,V[1]|=(Fe&15)<<3,te===5&&(V[1]|=(De&15)>>>1,V[2]=(De&1)<<7,V[2]|=2<<2,V[3]=0),{config:V,samplingRate:Ge,channelCount:Fe,codec:"mp4a.40."+te,originalCodec:"mp4a.40."+ue}}},{key:"_parseMP3AudioData",value:function(a,y,S,D){if(S<4){Be.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var V=this._littleEndian,te=new Uint8Array(a,y,S),ue=null;if(D){if(te[0]!==255)return;var Se=te[1]>>>3&3,xe=(te[1]&6)>>1,De=(te[2]&240)>>>4,Ge=(te[2]&12)>>>2,Fe=te[3]>>>6&3,Te=Fe!==3?2:1,$e=0,qe=0,Pe=34,Ne="mp3";switch(Se){case 0:$e=this._mpegAudioV25SampleRateTable[Ge];break;case 2:$e=this._mpegAudioV20SampleRateTable[Ge];break;case 3:$e=this._mpegAudioV10SampleRateTable[Ge];break}switch(xe){case 1:Pe=34,De<this._mpegAudioL3BitRateTable.length&&(qe=this._mpegAudioL3BitRateTable[De]);break;case 2:Pe=33,De<this._mpegAudioL2BitRateTable.length&&(qe=this._mpegAudioL2BitRateTable[De]);break;case 3:Pe=32,De<this._mpegAudioL1BitRateTable.length&&(qe=this._mpegAudioL1BitRateTable[De]);break}ue={bitRate:qe,samplingRate:$e,channelCount:Te,codec:Ne,originalCodec:Ne}}else ue=te;return ue}},{key:"_parseVideoData",value:function(a,y,S,D,V){if(S<=1){Be.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var te=new Uint8Array(a,y,S)[0],ue=(te&240)>>>4,Se=te&15;if(Se!==7){this._onError(Pt.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Se));return}this._parseAVCVideoPacket(a,y+1,S-1,D,V,ue)}},{key:"_parseAVCVideoPacket",value:function(a,y,S,D,V,te){if(S<4){Be.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var ue=this._littleEndian,Se=new DataView(a,y,S),xe=Se.getUint8(0),De=Se.getUint32(0,!ue)&16777215,Ge=De<<8>>8;if(xe===0)this._parseAVCDecoderConfigurationRecord(a,y+4,S-4);else if(xe===1)this._parseAVCVideoData(a,y+4,S-4,D,V,te,Ge);else if(!(xe===2)){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(xe));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(a,y,S){if(S<7){Be.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var D=this._videoMetadata,V=this._videoTrack,te=this._littleEndian,ue=new DataView(a,y,S);D?typeof D.avcc!="undefined"&&Be.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),D=this._videoMetadata={},D.type="video",D.id=V.id,D.timescale=this._timescale,D.duration=this._duration);var Se=ue.getUint8(0),xe=ue.getUint8(1),De=ue.getUint8(2),Ge=ue.getUint8(3);if(Se!==1||xe===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ue.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Pt.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Fe=ue.getUint8(5)&31;if(Fe===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Fe>1&&Be.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Fe));for(var Te=6,$e=0;$e<Fe;$e++){var qe=ue.getUint16(Te,!te);if(Te+=2,qe===0)continue;var Pe=new Uint8Array(a,y+Te,qe);Te+=qe;var Ne=vr.parseSPS(Pe);if($e!==0)continue;D.codecWidth=Ne.codec_size.width,D.codecHeight=Ne.codec_size.height,D.presentWidth=Ne.present_size.width,D.presentHeight=Ne.present_size.height,D.profile=Ne.profile_string,D.level=Ne.level_string,D.bitDepth=Ne.bit_depth,D.chromaFormat=Ne.chroma_format,D.sarRatio=Ne.sar_ratio,D.frameRate=Ne.frame_rate,(Ne.frame_rate.fixed===!1||Ne.frame_rate.fps_num===0||Ne.frame_rate.fps_den===0)&&(D.frameRate=this._referenceFrameRate);var we=D.frameRate.fps_den,Ze=D.frameRate.fps_num;D.refSampleDuration=D.timescale*(we/Ze);for(var je=Pe.subarray(1,4),He="avc1.",tt=0;tt<3;tt++){var Je=je[tt].toString(16);Je.length<2&&(Je="0"+Je),He+=Je}D.codec=He;var Ye=this._mediaInfo;Ye.width=D.codecWidth,Ye.height=D.codecHeight,Ye.fps=D.frameRate.fps,Ye.profile=D.profile,Ye.level=D.level,Ye.refFrames=Ne.ref_frames,Ye.chromaFormat=Ne.chroma_format_string,Ye.sarNum=D.sarRatio.width,Ye.sarDen=D.sarRatio.height,Ye.videoCodec=He,Ye.hasAudio?Ye.audioCodec!=null&&(Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+","+Ye.audioCodec+'"'):Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+'"',Ye.isComplete()&&this._onMediaInfo(Ye)}var ae=ue.getUint8(Te);if(ae===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ae>1&&Be.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ae));Te++;for(var Q=0;Q<ae;Q++){var fe=ue.getUint16(Te,!te);if(Te+=2,fe===0)continue;Te+=fe}D.avcc=new Uint8Array(S),D.avcc.set(new Uint8Array(a,y,S),0),Be.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",D)}},{key:"_parseAVCVideoData",value:function(a,y,S,D,V,te,ue){for(var Se=this._littleEndian,xe=new DataView(a,y,S),De=[],Ge=0,Fe=0,Te=this._naluLengthSize,$e=this._timestampBase+D,qe=te===1;Fe<S;){if(Fe+4>=S){Be.w(this.TAG,"Malformed Nalu near timestamp ".concat($e,", offset = ").concat(Fe,", dataSize = ").concat(S));break}var Pe=xe.getUint32(Fe,!Se);if(Te===3&&(Pe>>>=8),Pe>S-Te){Be.w(this.TAG,"Malformed Nalus near timestamp ".concat($e,", NaluSize > DataSize!"));return}var Ne=xe.getUint8(Fe+Te)&31;Ne===5&&(qe=!0);var we=new Uint8Array(a,y+Fe,Te+Pe),Ze={type:Ne,data:we};De.push(Ze),Ge+=we.byteLength,Fe+=Te+Pe}if(De.length){var je=this._videoTrack,He={units:De,length:Ge,isKeyframe:qe,dts:$e,cts:ue,pts:$e+ue};qe&&(He.fileposition=V),je.samples.push(He),je.length+=Ge}}}],[{key:"probe",value:function(a){var y=new Uint8Array(a),S={match:!1};if(y[0]!==70||y[1]!==76||y[2]!==86||y[3]!==1)return S;var D=(y[4]&4)>>>2!==0,V=(y[4]&1)!==0,te=gr(y,5);return te<9?S:{match:!0,consumed:te,dataOffset:te,hasAudioTrack:D,hasVideoTrack:V}}}]),F}(),In=yr,Dn=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"init",value:function(){F.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var a in F.types)F.types.hasOwnProperty(a)&&(F.types[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]);var y=F.constants={};y.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),y.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),y.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),y.STSC=y.STCO=y.STTS,y.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),y.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),y.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),y.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),y.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),y.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(a){for(var y=8,S=null,D=Array.prototype.slice.call(arguments,1),V=D.length,te=0;te<V;te++)y+=D[te].byteLength;S=new Uint8Array(y),S[0]=y>>>24&255,S[1]=y>>>16&255,S[2]=y>>>8&255,S[3]=y&255,S.set(a,4);for(var ue=8,Se=0;Se<V;Se++)S.set(D[Se],ue),ue+=D[Se].byteLength;return S}},{key:"generateInitSegment",value:function(a){var y=F.box(F.types.ftyp,F.constants.FTYP),S=F.moov(a),D=new Uint8Array(y.byteLength+S.byteLength);return D.set(y,0),D.set(S,y.byteLength),D}},{key:"moov",value:function(a){var y=F.mvhd(a.timescale,a.duration),S=F.trak(a),D=F.mvex(a);return F.box(F.types.moov,y,S,D)}},{key:"mvhd",value:function(a,y){return F.box(F.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,a&255,y>>>24&255,y>>>16&255,y>>>8&255,y&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(a){return F.box(F.types.trak,F.tkhd(a),F.mdia(a))}},{key:"tkhd",value:function(a){var y=a.id,S=a.duration,D=a.presentWidth,V=a.presentHeight;return F.box(F.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,y>>>24&255,y>>>16&255,y>>>8&255,y&255,0,0,0,0,S>>>24&255,S>>>16&255,S>>>8&255,S&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,D>>>8&255,D&255,0,0,V>>>8&255,V&255,0,0]))}},{key:"mdia",value:function(a){return F.box(F.types.mdia,F.mdhd(a),F.hdlr(a),F.minf(a))}},{key:"mdhd",value:function(a){var y=a.timescale,S=a.duration;return F.box(F.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,y>>>24&255,y>>>16&255,y>>>8&255,y&255,S>>>24&255,S>>>16&255,S>>>8&255,S&255,85,196,0,0]))}},{key:"hdlr",value:function(a){var y=null;return a.type==="audio"?y=F.constants.HDLR_AUDIO:y=F.constants.HDLR_VIDEO,F.box(F.types.hdlr,y)}},{key:"minf",value:function(a){var y=null;return a.type==="audio"?y=F.box(F.types.smhd,F.constants.SMHD):y=F.box(F.types.vmhd,F.constants.VMHD),F.box(F.types.minf,y,F.dinf(),F.stbl(a))}},{key:"dinf",value:function(){var a=F.box(F.types.dinf,F.box(F.types.dref,F.constants.DREF));return a}},{key:"stbl",value:function(a){var y=F.box(F.types.stbl,F.stsd(a),F.box(F.types.stts,F.constants.STTS),F.box(F.types.stsc,F.constants.STSC),F.box(F.types.stsz,F.constants.STSZ),F.box(F.types.stco,F.constants.STCO));return y}},{key:"stsd",value:function(a){return a.type==="audio"?a.codec==="mp3"?F.box(F.types.stsd,F.constants.STSD_PREFIX,F.mp3(a)):F.box(F.types.stsd,F.constants.STSD_PREFIX,F.mp4a(a)):F.box(F.types.stsd,F.constants.STSD_PREFIX,F.avc1(a))}},{key:"mp3",value:function(a){var y=a.channelCount,S=a.audioSampleRate,D=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y,0,16,0,0,0,0,S>>>8&255,S&255,0,0]);return F.box(F.types[".mp3"],D)}},{key:"mp4a",value:function(a){var y=a.channelCount,S=a.audioSampleRate,D=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,y,0,16,0,0,0,0,S>>>8&255,S&255,0,0]);return F.box(F.types.mp4a,D,F.esds(a))}},{key:"esds",value:function(a){var y=a.config||[],S=y.length,D=new Uint8Array([0,0,0,0,3,23+S,0,1,0,4,15+S,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([S]).concat(y).concat([6,1,2]));return F.box(F.types.esds,D)}},{key:"avc1",value:function(a){var y=a.avcc,S=a.codecWidth,D=a.codecHeight,V=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,S>>>8&255,S&255,D>>>8&255,D&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return F.box(F.types.avc1,V,F.box(F.types.avcC,y))}},{key:"mvex",value:function(a){return F.box(F.types.mvex,F.trex(a))}},{key:"trex",value:function(a){var y=a.id,S=new Uint8Array([0,0,0,0,y>>>24&255,y>>>16&255,y>>>8&255,y&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return F.box(F.types.trex,S)}},{key:"moof",value:function(a,y){return F.box(F.types.moof,F.mfhd(a.sequenceNumber),F.traf(a,y))}},{key:"mfhd",value:function(a){var y=new Uint8Array([0,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,a&255]);return F.box(F.types.mfhd,y)}},{key:"traf",value:function(a,y){var S=a.id,D=F.box(F.types.tfhd,new Uint8Array([0,0,0,0,S>>>24&255,S>>>16&255,S>>>8&255,S&255])),V=F.box(F.types.tfdt,new Uint8Array([0,0,0,0,y>>>24&255,y>>>16&255,y>>>8&255,y&255])),te=F.sdtp(a),ue=F.trun(a,te.byteLength+16+16+8+16+8+8);return F.box(F.types.traf,D,V,ue,te)}},{key:"sdtp",value:function(a){for(var y=a.samples||[],S=y.length,D=new Uint8Array(4+S),V=0;V<S;V++){var te=y[V].flags;D[V+4]=te.isLeading<<6|te.dependsOn<<4|te.isDependedOn<<2|te.hasRedundancy}return F.box(F.types.sdtp,D)}},{key:"trun",value:function(a,y){var S=a.samples||[],D=S.length,V=12+16*D,te=new Uint8Array(V);y+=8+V,te.set([0,0,15,1,D>>>24&255,D>>>16&255,D>>>8&255,D&255,y>>>24&255,y>>>16&255,y>>>8&255,y&255],0);for(var ue=0;ue<D;ue++){var Se=S[ue].duration,xe=S[ue].size,De=S[ue].flags,Ge=S[ue].cts;te.set([Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,De.isLeading<<2|De.dependsOn,De.isDependedOn<<6|De.hasRedundancy<<4|De.isNonSync,0,0,Ge>>>24&255,Ge>>>16&255,Ge>>>8&255,Ge&255],12+16*ue)}return F.box(F.types.trun,te)}},{key:"mdat",value:function(a){return F.box(F.types.mdat,a)}}]),F}();Dn.init();var Zt=Dn,br=function(){function F(){Object(dt.a)(this,F)}return Object(ft.a)(F,null,[{key:"getSilentFrame",value:function(a,y){if(a==="mp4a.40.2"){if(y===1)return new Uint8Array([0,200,0,128,35,128]);if(y===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(y===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(y===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(y===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(y===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(y===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(y===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),F}(),Mn=br,on=Object(ft.a)(function F(P,a,y,S,D){Object(dt.a)(this,F),this.dts=P,this.pts=a,this.duration=y,this.originalDts=S,this.isSyncPoint=D,this.fileposition=null}),Pn=function(){function F(){Object(dt.a)(this,F),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(ft.a)(F,[{key:"appendSyncPoint",value:function(a){a.isSyncPoint=!0,this.syncPoints.push(a)}}]),F}(),xr=function(){function F(){Object(dt.a)(this,F),this._list=[]}return Object(ft.a)(F,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(a){var y=this._list;if(a.length===0)return;y.length>0&&a[0].originalDts<y[y.length-1].originalDts&&this.clear(),Array.prototype.push.apply(y,a)}},{key:"getLastSyncPointBeforeDts",value:function(a){if(this._list.length==0)return null;var y=this._list,S=0,D=y.length-1,V=0,te=0,ue=D;for(a<y[0].dts&&(S=0,te=ue+1);te<=ue;)if(V=te+Math.floor((ue-te)/2),V===D||a>=y[V].dts&&a<y[V+1].dts){S=V;break}else y[V].dts<a?te=V+1:ue=V-1;return this._list[S]}}]),F}(),Nn=function(){function F(P){Object(dt.a)(this,F),this._type=P,this._list=[],this._lastAppendLocation=-1}return Object(ft.a)(F,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(a){var y=this._list;if(y.length===0)return-2;var S=y.length-1,D=0,V=0,te=S,ue=0;if(a<y[0].originalBeginDts)return ue=-1,ue;for(;V<=te;)if(D=V+Math.floor((te-V)/2),D===S||a>y[D].lastSample.originalDts&&a<y[D+1].originalBeginDts){ue=D;break}else y[D].originalBeginDts<a?V=D+1:te=D-1;return ue}},{key:"_searchNearestSegmentAfter",value:function(a){return this._searchNearestSegmentBefore(a)+1}},{key:"append",value:function(a){var y=this._list,S=a,D=this._lastAppendLocation,V=0;D!==-1&&D<y.length&&S.originalBeginDts>=y[D].lastSample.originalDts&&(D===y.length-1||D<y.length-1&&S.originalBeginDts<y[D+1].originalBeginDts)?V=D+1:y.length>0&&(V=this._searchNearestSegmentBefore(S.originalBeginDts)+1),this._lastAppendLocation=V,this._list.splice(V,0,S)}},{key:"getLastSegmentBefore",value:function(a){var y=this._searchNearestSegmentBefore(a);return y>=0?this._list[y]:null}},{key:"getLastSampleBefore",value:function(a){var y=this.getLastSegmentBefore(a);return y!=null?y.lastSample:null}},{key:"getLastSyncPointBefore",value:function(a){for(var y=this._searchNearestSegmentBefore(a),S=this._list[y].syncPoints;S.length===0&&y>0;)y--,S=this._list[y].syncPoints;return S.length>0?S[S.length-1]:null}}]),F}(),Er=function(){function F(P){Object(dt.a)(this,F),this.TAG="MP4Remuxer",this._config=P,this._isLive=P.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Nn("audio"),this._videoSegmentInfoList=new Nn("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(bt.chrome&&(bt.version.major<50||bt.version.major===50&&bt.version.build<2661)),this._fillSilentAfterSeek=bt.msedge||bt.msie,this._mp3UseMpegAudio=!bt.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(ft.a)(F,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(a){return a.onDataAvailable=this.remux.bind(this),a.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(a){this._onInitSegment=a}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(a){this._onMediaSegment=a}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(a){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(a,y){if(!this._onMediaSegment)throw new Mt("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(a,y),this._remuxVideo(y),this._remuxAudio(a)}},{key:"_onTrackMetadataReceived",value:function(a,y){var S=null,D="mp4",V=y.codec;if(a==="audio")this._audioMeta=y,y.codec==="mp3"&&this._mp3UseMpegAudio?(D="mpeg",V="",S=new Uint8Array):S=Zt.generateInitSegment(y);else if(a==="video")this._videoMeta=y,S=Zt.generateInitSegment(y);else return;if(!this._onInitSegment)throw new Mt("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(a,{type:a,data:S.buffer,codec:V,container:"".concat(a,"/").concat(D),mediaDuration:y.duration})}},{key:"_calculateDtsBase",value:function(a,y){if(this._dtsBaseInited)return;a.samples&&a.samples.length&&(this._audioDtsBase=a.samples[0].dts),y.samples&&y.samples.length&&(this._videoDtsBase=y.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var a=this._videoStashedLastSample,y=this._audioStashedLastSample,S={type:"video",id:1,sequenceNumber:0,samples:[],length:0};a!=null&&(S.samples.push(a),S.length=a.length);var D={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};y!=null&&(D.samples.push(y),D.length=y.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(S,!0),this._remuxAudio(D,!0)}},{key:"_remuxAudio",value:function(a,y){if(this._audioMeta==null)return;var S=a,D=S.samples,V=void 0,te=-1,ue=-1,Se=-1,xe=this._audioMeta.refSampleDuration,De=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ge=this._dtsBaseInited&&this._audioNextDts===void 0,Fe=!1;if(!D||D.length===0)return;if(D.length===1&&!y)return;var Te=0,$e=null,qe=0;De?(Te=0,qe=S.length):(Te=8,qe=8+S.length);var Pe=null;if(D.length>1&&(Pe=D.pop(),qe-=Pe.length),this._audioStashedLastSample!=null){var Ne=this._audioStashedLastSample;this._audioStashedLastSample=null,D.unshift(Ne),qe+=Ne.length}Pe!=null&&(this._audioStashedLastSample=Pe);var we=D[0].dts-this._dtsBase;if(this._audioNextDts)V=we-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())V=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Fe=!0));else{var Ze=this._audioSegmentInfoList.getLastSampleBefore(we);if(Ze!=null){var je=we-(Ze.originalDts+Ze.duration);je<=3&&(je=0);var He=Ze.dts+Ze.duration+je;V=we-He}else V=0}if(Fe){var tt=we-V,Je=this._videoSegmentInfoList.getLastSegmentBefore(we);if(Je!=null&&Je.beginDts<tt){var Ye=Mn.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Ye){var ae=Je.beginDts,Q=tt-Je.beginDts;Be.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ae,", duration: ").concat(Q)),D.unshift({unit:Ye,dts:ae,pts:ae}),qe+=Ye.byteLength}}else Fe=!1}for(var fe=[],he=0;he<D.length;he++){var be=D[he],Ee=be.unit,Re=be.dts-this._dtsBase,We=Re-V;te===-1&&(te=We);var Ve=0;if(he!==D.length-1){var Ae=D[he+1].dts-this._dtsBase-V;Ve=Ae-We}else if(Pe!=null){var Ie=Pe.dts-this._dtsBase-V;Ve=Ie-We}else fe.length>=1?Ve=fe[fe.length-1].duration:Ve=Math.floor(xe);var Xe=!1,rt=null;if(Ve>xe*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!bt.safari){Xe=!0;var st=Math.abs(Ve-xe),pt=Math.ceil(st/xe),_t=We+xe;Be.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(We+Ve," ms, expected: ").concat(We+Math.round(xe)," ms, ")+"delta: ".concat(Math.round(st)," ms, generate: ").concat(pt," frames"));var Lt=Mn.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Lt==null&&(Be.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Lt=Ee),rt=[];for(var Ft=0;Ft<pt;Ft++){var Ut=Math.round(_t);if(rt.length>0){var Kt=rt[rt.length-1];Kt.duration=Ut-Kt.dts}var jt={dts:Ut,pts:Ut,cts:0,unit:Lt,size:Lt.byteLength,duration:0,originalDts:Re,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};rt.push(jt),qe+=jt.size,_t+=xe}var wt=rt[rt.length-1];wt.duration=We+Ve-wt.dts,Ve=Math.round(xe)}fe.push({dts:We,pts:We,cts:0,unit:be.unit,size:be.unit.byteLength,duration:Ve,originalDts:Re,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Xe&&fe.push.apply(fe,rt)}De?$e=new Uint8Array(qe):($e=new Uint8Array(qe),$e[0]=qe>>>24&255,$e[1]=qe>>>16&255,$e[2]=qe>>>8&255,$e[3]=qe&255,$e.set(Zt.types.mdat,4));for(var St=0;St<fe.length;St++){var Rt=fe[St].unit;$e.set(Rt,Te),Te+=Rt.byteLength}var gt=fe[fe.length-1];ue=gt.dts+gt.duration,this._audioNextDts=ue;var ht=new Pn;ht.beginDts=te,ht.endDts=ue,ht.beginPts=te,ht.endPts=ue,ht.originalBeginDts=fe[0].originalDts,ht.originalEndDts=gt.originalDts+gt.duration,ht.firstSample=new on(fe[0].dts,fe[0].pts,fe[0].duration,fe[0].originalDts,!1),ht.lastSample=new on(gt.dts,gt.pts,gt.duration,gt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ht),S.samples=fe,S.sequenceNumber++;var At=null;De?At=new Uint8Array:At=Zt.moof(S,te),S.samples=[],S.length=0;var Ot={type:"audio",data:this._mergeBoxes(At,$e).buffer,sampleCount:fe.length,info:ht};De&&Ge&&(Ot.timestampOffset=te),this._onMediaSegment("audio",Ot)}},{key:"_remuxVideo",value:function(a,y){if(this._videoMeta==null)return;var S=a,D=S.samples,V=void 0,te=-1,ue=-1,Se=-1,xe=-1;if(!D||D.length===0)return;if(D.length===1&&!y)return;var De=8,Ge=null,Fe=8+a.length,Te=null;if(D.length>1&&(Te=D.pop(),Fe-=Te.length),this._videoStashedLastSample!=null){var $e=this._videoStashedLastSample;this._videoStashedLastSample=null,D.unshift($e),Fe+=$e.length}Te!=null&&(this._videoStashedLastSample=Te);var qe=D[0].dts-this._dtsBase;if(this._videoNextDts)V=qe-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())V=0;else{var Pe=this._videoSegmentInfoList.getLastSampleBefore(qe);if(Pe!=null){var Ne=qe-(Pe.originalDts+Pe.duration);Ne<=3&&(Ne=0);var we=Pe.dts+Pe.duration+Ne;V=qe-we}else V=0}for(var Ze=new Pn,je=[],He=0;He<D.length;He++){var tt=D[He],Je=tt.dts-this._dtsBase,Ye=tt.isKeyframe,ae=Je-V,Q=tt.cts,fe=ae+Q;te===-1&&(te=ae,Se=fe);var he=0;if(He!==D.length-1){var be=D[He+1].dts-this._dtsBase-V;he=be-ae}else if(Te!=null){var Ee=Te.dts-this._dtsBase-V;he=Ee-ae}else je.length>=1?he=je[je.length-1].duration:he=Math.floor(this._videoMeta.refSampleDuration);if(Ye){var Re=new on(ae,fe,he,tt.dts,!0);Re.fileposition=tt.fileposition,Ze.appendSyncPoint(Re)}je.push({dts:ae,pts:fe,cts:Q,units:tt.units,size:tt.length,isKeyframe:Ye,duration:he,originalDts:Je,flags:{isLeading:0,dependsOn:Ye?2:1,isDependedOn:Ye?1:0,hasRedundancy:0,isNonSync:Ye?0:1}})}Ge=new Uint8Array(Fe),Ge[0]=Fe>>>24&255,Ge[1]=Fe>>>16&255,Ge[2]=Fe>>>8&255,Ge[3]=Fe&255,Ge.set(Zt.types.mdat,4);for(var We=0;We<je.length;We++)for(var Ve=je[We].units;Ve.length;){var Ae=Ve.shift(),Ie=Ae.data;Ge.set(Ie,De),De+=Ie.byteLength}var Xe=je[je.length-1];if(ue=Xe.dts+Xe.duration,xe=Xe.pts+Xe.duration,this._videoNextDts=ue,Ze.beginDts=te,Ze.endDts=ue,Ze.beginPts=Se,Ze.endPts=xe,Ze.originalBeginDts=je[0].originalDts,Ze.originalEndDts=Xe.originalDts+Xe.duration,Ze.firstSample=new on(je[0].dts,je[0].pts,je[0].duration,je[0].originalDts,je[0].isKeyframe),Ze.lastSample=new on(Xe.dts,Xe.pts,Xe.duration,Xe.originalDts,Xe.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ze),S.samples=je,S.sequenceNumber++,this._forceFirstIDR){var rt=je[0].flags;rt.dependsOn=2,rt.isNonSync=0}var st=Zt.moof(S,te);S.samples=[],S.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(st,Ge).buffer,sampleCount:je.length,info:Ze})}},{key:"_mergeBoxes",value:function(a,y){var S=new Uint8Array(a.byteLength+y.byteLength);return S.set(a,0),S.set(y,a.byteLength),S}}]),F}(),wr=Er,Sr={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},Qe=Sr,Ar=function(){function F(P,a){Object(dt.a)(this,F),this.TAG="TransmuxingController",this._emitter=new $t.a,this._config=a,P.segments||(P.segments=[{duration:P.duration,filesize:P.filesize,url:P.url}]),typeof P.cors!="boolean"&&(P.cors=!0),typeof P.withCredentials!="boolean"&&(P.withCredentials=!1),this._mediaDataSource=P,this._currentSegmentIndex=0;var y=0;this._mediaDataSource.segments.forEach(function(S){S.timestampBase=y,y+=S.duration,S.cors=P.cors,S.withCredentials=P.withCredentials,a.referrerPolicy&&(S.referrerPolicy=a.referrerPolicy)}),!isNaN(y)&&this._mediaDataSource.duration!==y&&(this._mediaDataSource.duration=y),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(ft.a)(F,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(a,y){this._emitter.addListener(a,y)}},{key:"off",value:function(a,y){this._emitter.removeListener(a,y)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(a,y){this._currentSegmentIndex=a;var S=this._mediaDataSource.segments[a],D=this._ioctl=new fn(S,this._config,a);D.onError=this._onIOException.bind(this),D.onSeeked=this._onIOSeeked.bind(this),D.onComplete=this._onIOComplete.bind(this),D.onRedirect=this._onIORedirect.bind(this),D.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),y?this._demuxer.bindDataSource(this._ioctl):D.onDataArrival=this._onInitChunkArrival.bind(this),D.open(y)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(a){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var y=this._searchSegmentIndexContains(a);if(y===this._currentSegmentIndex){var S=this._mediaInfo.segments[y];if(S==null)this._pendingSeekTime=a;else{var D=S.getNearestKeyframe(a);this._remuxer.seek(D.milliseconds),this._ioctl.seek(D.fileposition),this._pendingResolveSeekPoint=D.milliseconds}}else{var V=this._mediaInfo.segments[y];if(V==null)this._pendingSeekTime=a,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(y);else{var te=V.getNearestKeyframe(a);this._internalAbort(),this._remuxer.seek(a),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[y].timestampBase,this._loadSegment(y,te.fileposition),this._pendingResolveSeekPoint=te.milliseconds,this._reportSegmentMediaInfo(y)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(a){for(var y=this._mediaDataSource.segments,S=y.length-1,D=0;D<y.length;D++)if(a<y[D].timestampBase){S=D-1;break}return S}},{key:"_onInitChunkArrival",value:function(a,y){var S=this,D=null,V=0;if(y>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,V=this._demuxer.parseChunks(a,y);else if((D=In.probe(a)).match){this._demuxer=new In(D,this._config),this._remuxer||(this._remuxer=new wr(this._config));var te=this._mediaDataSource;te.duration!=null&&!isNaN(te.duration)&&(this._demuxer.overridedDuration=te.duration),typeof te.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=te.hasAudio),typeof te.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=te.hasVideo),this._demuxer.timestampBase=te.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),V=this._demuxer.parseChunks(a,y)}else D=null,Be.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){S._internalAbort()}),this._emitter.emit(Qe.DEMUX_ERROR,Pt.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),V=0;return V}},{key:"_onMediaInfo",value:function(a){var y=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},a),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,rn.prototype));var S=Object.assign({},a);Object.setPrototypeOf(S,rn.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=S,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var D=y._pendingSeekTime;y._pendingSeekTime=null,y.seek(D)})}},{key:"_onMetaDataArrived",value:function(a){this._emitter.emit(Qe.METADATA_ARRIVED,a)}},{key:"_onScriptDataArrived",value:function(a){this._emitter.emit(Qe.SCRIPTDATA_ARRIVED,a)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(a){var y=a,S=y+1;S<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(S)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Qe.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(a){var y=this._ioctl.extraData;this._mediaDataSource.segments[y].redirectedURL=a}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(Qe.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(a,y){Be.e(this.TAG,"IOException: type = ".concat(a,", code = ").concat(y.code,", msg = ").concat(y.msg)),this._emitter.emit(Qe.IO_ERROR,a,y),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(a,y){Be.e(this.TAG,"DemuxException: type = ".concat(a,", info = ").concat(y)),this._emitter.emit(Qe.DEMUX_ERROR,a,y)}},{key:"_onRemuxerInitSegmentArrival",value:function(a,y){this._emitter.emit(Qe.INIT_SEGMENT,a,y)}},{key:"_onRemuxerMediaSegmentArrival",value:function(a,y){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(Qe.MEDIA_SEGMENT,a,y),this._pendingResolveSeekPoint!=null&&a==="video"){var S=y.info.syncPoints,D=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,bt.safari&&S.length>0&&S[0].originalDts===D&&(D=S[0].pts),this._emitter.emit(Qe.RECOMMEND_SEEKPOINT,D)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(a){var y=this._mediaInfo.segments[a],S=Object.assign({},y);S.duration=this._mediaInfo.duration,S.segmentCount=this._mediaInfo.segmentCount,delete S.segments,delete S.keyframesIndex,this._emitter.emit(Qe.MEDIA_INFO,S)}},{key:"_reportStatisticsInfo",value:function(){var a={};a.url=this._ioctl.currentURL,a.hasRedirect=this._ioctl.hasRedirect,a.hasRedirect&&(a.redirectedURL=this._ioctl.currentRedirectedURL),a.speed=this._ioctl.currentSpeed,a.loaderType=this._ioctl.loaderType,a.currentSegmentIndex=this._currentSegmentIndex,a.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Qe.STATISTICS_INFO,a)}}]),F}(),pn=Ar,Tr=function(P){var a="TransmuxingWorker",y=null,S=qe.bind(this);Sn.install(),P.addEventListener("message",function(Pe){switch(Pe.data.cmd){case"init":y=new pn(Pe.data.param[0],Pe.data.param[1]),y.on(Qe.IO_ERROR,Fe.bind(this)),y.on(Qe.DEMUX_ERROR,Te.bind(this)),y.on(Qe.INIT_SEGMENT,D.bind(this)),y.on(Qe.MEDIA_SEGMENT,V.bind(this)),y.on(Qe.LOADING_COMPLETE,te.bind(this)),y.on(Qe.RECOVERED_EARLY_EOF,ue.bind(this)),y.on(Qe.MEDIA_INFO,Se.bind(this)),y.on(Qe.METADATA_ARRIVED,xe.bind(this)),y.on(Qe.SCRIPTDATA_ARRIVED,De.bind(this)),y.on(Qe.STATISTICS_INFO,Ge.bind(this)),y.on(Qe.RECOMMEND_SEEKPOINT,$e.bind(this));break;case"destroy":y&&(y.destroy(),y=null),P.postMessage({msg:"destroyed"});break;case"start":y.start();break;case"stop":y.stop();break;case"seek":y.seek(Pe.data.param);break;case"pause":y.pause();break;case"resume":y.resume();break;case"logging_config":{var Ne=Pe.data.param;Jt.applyConfig(Ne),Ne.enableCallback===!0?Jt.addLogListener(S):Jt.removeLogListener(S);break}}});function D(Pe,Ne){var we={msg:Qe.INIT_SEGMENT,data:{type:Pe,data:Ne}};P.postMessage(we,[Ne.data])}function V(Pe,Ne){var we={msg:Qe.MEDIA_SEGMENT,data:{type:Pe,data:Ne}};P.postMessage(we,[Ne.data])}function te(){var Pe={msg:Qe.LOADING_COMPLETE};P.postMessage(Pe)}function ue(){var Pe={msg:Qe.RECOVERED_EARLY_EOF};P.postMessage(Pe)}function Se(Pe){var Ne={msg:Qe.MEDIA_INFO,data:Pe};P.postMessage(Ne)}function xe(Pe){var Ne={msg:Qe.METADATA_ARRIVED,data:Pe};P.postMessage(Ne)}function De(Pe){var Ne={msg:Qe.SCRIPTDATA_ARRIVED,data:Pe};P.postMessage(Ne)}function Ge(Pe){var Ne={msg:Qe.STATISTICS_INFO,data:Pe};P.postMessage(Ne)}function Fe(Pe,Ne){P.postMessage({msg:Qe.IO_ERROR,data:{type:Pe,info:Ne}})}function Te(Pe,Ne){P.postMessage({msg:Qe.DEMUX_ERROR,data:{type:Pe,info:Ne}})}function $e(Pe){P.postMessage({msg:Qe.RECOMMEND_SEEKPOINT,data:Pe})}function qe(Pe,Ne){P.postMessage({msg:"logcat_callback",data:{type:Pe,logcat:Ne}})}},Lr=Tr,Cr=function(){function F(P,a){if(Object(dt.a)(this,F),this.TAG="Transmuxer",this._emitter=new $t.a,a.enableWorker&&typeof Worker!="undefined")try{var y=ve("0r65");this._worker=y(Lr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[P,a]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Jt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Jt.getConfig()})}catch(D){Be.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new pn(P,a)}else this._controller=new pn(P,a);if(this._controller){var S=this._controller;S.on(Qe.IO_ERROR,this._onIOError.bind(this)),S.on(Qe.DEMUX_ERROR,this._onDemuxError.bind(this)),S.on(Qe.INIT_SEGMENT,this._onInitSegment.bind(this)),S.on(Qe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),S.on(Qe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),S.on(Qe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),S.on(Qe.MEDIA_INFO,this._onMediaInfo.bind(this)),S.on(Qe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),S.on(Qe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),S.on(Qe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),S.on(Qe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(ft.a)(F,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Jt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(a,y){this._emitter.addListener(a,y)}},{key:"off",value:function(a,y){this._emitter.removeListener(a,y)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(a){this._worker?this._worker.postMessage({cmd:"seek",param:a}):this._controller.seek(a)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(a,y){var S=this;Promise.resolve().then(function(){S._emitter.emit(Qe.INIT_SEGMENT,a,y)})}},{key:"_onMediaSegment",value:function(a,y){var S=this;Promise.resolve().then(function(){S._emitter.emit(Qe.MEDIA_SEGMENT,a,y)})}},{key:"_onLoadingComplete",value:function(){var a=this;Promise.resolve().then(function(){a._emitter.emit(Qe.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var a=this;Promise.resolve().then(function(){a._emitter.emit(Qe.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(a){var y=this;Promise.resolve().then(function(){y._emitter.emit(Qe.MEDIA_INFO,a)})}},{key:"_onMetaDataArrived",value:function(a){var y=this;Promise.resolve().then(function(){y._emitter.emit(Qe.METADATA_ARRIVED,a)})}},{key:"_onScriptDataArrived",value:function(a){var y=this;Promise.resolve().then(function(){y._emitter.emit(Qe.SCRIPTDATA_ARRIVED,a)})}},{key:"_onStatisticsInfo",value:function(a){var y=this;Promise.resolve().then(function(){y._emitter.emit(Qe.STATISTICS_INFO,a)})}},{key:"_onIOError",value:function(a,y){var S=this;Promise.resolve().then(function(){S._emitter.emit(Qe.IO_ERROR,a,y)})}},{key:"_onDemuxError",value:function(a,y){var S=this;Promise.resolve().then(function(){S._emitter.emit(Qe.DEMUX_ERROR,a,y)})}},{key:"_onRecommendSeekpoint",value:function(a){var y=this;Promise.resolve().then(function(){y._emitter.emit(Qe.RECOMMEND_SEEKPOINT,a)})}},{key:"_onLoggingConfigChanged",value:function(a){this._worker&&this._worker.postMessage({cmd:"logging_config",param:a})}},{key:"_onWorkerMessage",value:function(a){var y=a.data,S=y.data;if(y.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(y.msg){case Qe.INIT_SEGMENT:case Qe.MEDIA_SEGMENT:this._emitter.emit(y.msg,S.type,S.data);break;case Qe.LOADING_COMPLETE:case Qe.RECOVERED_EARLY_EOF:this._emitter.emit(y.msg);break;case Qe.MEDIA_INFO:Object.setPrototypeOf(S,rn.prototype),this._emitter.emit(y.msg,S);break;case Qe.METADATA_ARRIVED:case Qe.SCRIPTDATA_ARRIVED:case Qe.STATISTICS_INFO:this._emitter.emit(y.msg,S);break;case Qe.IO_ERROR:case Qe.DEMUX_ERROR:this._emitter.emit(y.msg,S.type,S.info);break;case Qe.RECOMMEND_SEEKPOINT:this._emitter.emit(y.msg,S);break;case"logcat_callback":Be.emitter.emit("log",S.type,S.logcat);break;default:break}}}]),F}(),Or=Cr,kr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Gt=kr,Rr=function(){function F(P){Object(dt.a)(this,F),this.TAG="MSEController",this._config=P,this._emitter=new $t.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new xr}return Object(ft.a)(F,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(a,y){this._emitter.addListener(a,y)}},{key:"off",value:function(a,y){this._emitter.removeListener(a,y)}},{key:"attachMediaElement",value:function(a){if(this._mediaSource)throw new Mt("MediaSource has been attached to an HTMLMediaElement!");var y=this._mediaSource=new window.MediaSource;y.addEventListener("sourceopen",this.e.onSourceOpen),y.addEventListener("sourceended",this.e.onSourceEnded),y.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=a,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),a.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var a=this._mediaSource;for(var y in this._sourceBuffers){var S=this._pendingSegments[y];S.splice(0,S.length),this._pendingSegments[y]=null,this._pendingRemoveRanges[y]=null,this._lastInitSegments[y]=null;var D=this._sourceBuffers[y];if(D){if(a.readyState!=="closed"){try{a.removeSourceBuffer(D)}catch(V){Be.e(this.TAG,V.message)}D.removeEventListener("error",this.e.onSourceBufferError),D.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[y]=null,this._sourceBuffers[y]=null}}if(a.readyState==="open")try{a.endOfStream()}catch(V){Be.e(this.TAG,V.message)}a.removeEventListener("sourceopen",this.e.onSourceOpen),a.removeEventListener("sourceended",this.e.onSourceEnded),a.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(a,y){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(a),this._pendingSegments[a.type].push(a);return}var S=a,D="".concat(S.container);S.codec&&S.codec.length>0&&(D+=";codecs=".concat(S.codec));var V=!1;if(Be.v(this.TAG,"Received Initialization Segment, mimeType: "+D),this._lastInitSegments[S.type]=S,D!==this._mimeTypes[S.type]){if(this._mimeTypes[S.type])Be.v(this.TAG,"Notice: ".concat(S.type," mimeType changed, origin: ").concat(this._mimeTypes[S.type],", target: ").concat(D));else{V=!0;try{var te=this._sourceBuffers[S.type]=this._mediaSource.addSourceBuffer(D);te.addEventListener("error",this.e.onSourceBufferError),te.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(ue){Be.e(this.TAG,ue.message),this._emitter.emit(Gt.ERROR,{code:ue.code,msg:ue.message});return}}this._mimeTypes[S.type]=D}y||this._pendingSegments[S.type].push(S),V||this._sourceBuffers[S.type]&&!this._sourceBuffers[S.type].updating&&this._doAppendSegments(),bt.safari&&S.container==="audio/mpeg"&&S.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=S.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(a){var y=a;this._pendingSegments[y.type].push(y),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var S=this._sourceBuffers[y.type];S&&!S.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(a){for(var y in this._sourceBuffers){if(!this._sourceBuffers[y])continue;var S=this._sourceBuffers[y];if(this._mediaSource.readyState==="open")try{S.abort()}catch(xe){Be.e(this.TAG,xe.message)}this._idrList.clear();var D=this._pendingSegments[y];if(D.splice(0,D.length),this._mediaSource.readyState==="closed")continue;for(var V=0;V<S.buffered.length;V++){var te=S.buffered.start(V),ue=S.buffered.end(V);this._pendingRemoveRanges[y].push({start:te,end:ue})}if(S.updating||this._doRemoveRanges(),bt.safari){var Se=this._lastInitSegments[y];Se&&(this._pendingSegments[y].push(Se),S.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var a=this._mediaSource,y=this._sourceBuffers;if(!a||a.readyState!=="open"){a&&a.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}y.video&&y.video.updating||y.audio&&y.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,a.endOfStream())}},{key:"getNearestKeyframe",value:function(a){return this._idrList.getLastSyncPointBeforeDts(a)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var a=this._mediaElement.currentTime;for(var y in this._sourceBuffers){var S=this._sourceBuffers[y];if(S){var D=S.buffered;if(D.length>=1&&a-D.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var a=this._mediaElement.currentTime;for(var y in this._sourceBuffers){var S=this._sourceBuffers[y];if(S){for(var D=S.buffered,V=!1,te=0;te<D.length;te++){var ue=D.start(te),Se=D.end(te);if(ue<=a&&a<Se+3){if(a-ue>=this._config.autoCleanupMaxBackwardDuration){V=!0;var xe=a-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[y].push({start:ue,end:xe})}}else Se<a&&(V=!0,this._pendingRemoveRanges[y].push({start:ue,end:Se}))}V&&!S.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var a=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(a.video&&a.video.updating||a.audio&&a.audio.updating)return;var y=this._mediaSource.duration,S=this._pendingMediaDuration;S>0&&(isNaN(y)||S>y)&&(Be.v(this.TAG,"Update MediaSource duration from ".concat(y," to ").concat(S)),this._mediaSource.duration=S),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var a in this._pendingRemoveRanges){if(!this._sourceBuffers[a]||this._sourceBuffers[a].updating)continue;for(var y=this._sourceBuffers[a],S=this._pendingRemoveRanges[a];S.length&&!y.updating;){var D=S.shift();y.remove(D.start,D.end)}}}},{key:"_doAppendSegments",value:function(){var a=this._pendingSegments;for(var y in a){if(!this._sourceBuffers[y]||this._sourceBuffers[y].updating)continue;if(a[y].length>0){var S=a[y].shift();if(S.timestampOffset){var D=this._sourceBuffers[y].timestampOffset,V=S.timestampOffset/1e3,te=Math.abs(D-V);te>.1&&(Be.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(D," to ").concat(V)),this._sourceBuffers[y].timestampOffset=V),delete S.timestampOffset}if(!S.data||S.data.byteLength===0)continue;try{this._sourceBuffers[y].appendBuffer(S.data),this._isBufferFull=!1,y==="video"&&S.hasOwnProperty("info")&&this._idrList.appendArray(S.info.syncPoints)}catch(ue){this._pendingSegments[y].unshift(S),ue.code===22?(this._isBufferFull||this._emitter.emit(Gt.BUFFER_FULL),this._isBufferFull=!0):(Be.e(this.TAG,ue.message),this._emitter.emit(Gt.ERROR,{code:ue.code,msg:ue.message}))}}}}},{key:"_onSourceOpen",value:function(){if(Be.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var a=this._pendingSourceBufferInit;a.length;){var y=a.shift();this.appendInitSegment(y,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Gt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){Be.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){Be.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var a=this._pendingSegments;return a.video.length>0||a.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var a=this._pendingRemoveRanges;return a.video.length>0||a.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Gt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(a){Be.e(this.TAG,"SourceBuffer Error: ".concat(a))}}]),F}(),Ir=Rr,cn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},jn={NETWORK_EXCEPTION:vt.EXCEPTION,NETWORK_STATUS_CODE_INVALID:vt.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:vt.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:vt.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Pt.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Pt.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Pt.CODEC_UNSUPPORTED},Dr=function(){function F(P,a){if(Object(dt.a)(this,F),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new $t.a,this._config=ln(),typeof a=="object"&&Object.assign(this._config,a),P.type.toLowerCase()!=="flv")throw new Vt("FlvPlayer requires an flv MediaDataSource input!");P.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=P,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var y=bt.chrome&&(bt.version.major<50||bt.version.major===50&&bt.version.build<2661);this._alwaysSeekKeyframe=!!(y||bt.msedge||bt.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(ft.a)(F,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(a,y){var S=this;a===Tt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){S._emitter.emit(Tt.MEDIA_INFO,S.mediaInfo)}):a===Tt.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){S._emitter.emit(Tt.STATISTICS_INFO,S.statisticsInfo)})),this._emitter.addListener(a,y)}},{key:"off",value:function(a,y){this._emitter.removeListener(a,y)}},{key:"attachMediaElement",value:function(a){var y=this;if(this._mediaElement=a,a.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),a.addEventListener("seeking",this.e.onvSeeking),a.addEventListener("canplay",this.e.onvCanPlay),a.addEventListener("stalled",this.e.onvStalled),a.addEventListener("progress",this.e.onvProgress),this._msectl=new Ir(this._config),this._msectl.on(Gt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Gt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Gt.SOURCE_OPEN,function(){y._mseSourceOpened=!0,y._hasPendingLoad&&(y._hasPendingLoad=!1,y.load())}),this._msectl.on(Gt.ERROR,function(S){y._emitter.emit(Tt.ERROR,cn.MEDIA_ERROR,jn.MEDIA_MSE_ERROR,S)}),this._msectl.attachMediaElement(a),this._pendingSeekTime!=null)try{a.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(S){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var a=this;if(!this._mediaElement)throw new Mt("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new Mt("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Or(this._mediaDataSource,this._config),this._transmuxer.on(Qe.INIT_SEGMENT,function(y,S){a._msectl.appendInitSegment(S)}),this._transmuxer.on(Qe.MEDIA_SEGMENT,function(y,S){if(a._msectl.appendMediaSegment(S),a._config.lazyLoad&&!a._config.isLive){var D=a._mediaElement.currentTime;S.info.endDts>=(D+a._config.lazyLoadMaxDuration)*1e3&&(a._progressChecker==null&&(Be.v(a.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),a._suspendTransmuxer()))}}),this._transmuxer.on(Qe.LOADING_COMPLETE,function(){a._msectl.endOfStream(),a._emitter.emit(Tt.LOADING_COMPLETE)}),this._transmuxer.on(Qe.RECOVERED_EARLY_EOF,function(){a._emitter.emit(Tt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Qe.IO_ERROR,function(y,S){a._emitter.emit(Tt.ERROR,cn.NETWORK_ERROR,y,S)}),this._transmuxer.on(Qe.DEMUX_ERROR,function(y,S){a._emitter.emit(Tt.ERROR,cn.MEDIA_ERROR,y,{code:-1,msg:S})}),this._transmuxer.on(Qe.MEDIA_INFO,function(y){a._mediaInfo=y,a._emitter.emit(Tt.MEDIA_INFO,Object.assign({},y))}),this._transmuxer.on(Qe.METADATA_ARRIVED,function(y){a._emitter.emit(Tt.METADATA_ARRIVED,y)}),this._transmuxer.on(Qe.SCRIPTDATA_ARRIVED,function(y){a._emitter.emit(Tt.SCRIPTDATA_ARRIVED,y)}),this._transmuxer.on(Qe.STATISTICS_INFO,function(y){a._statisticsInfo=a._fillStatisticsInfo(y),a._emitter.emit(Tt.STATISTICS_INFO,Object.assign({},a._statisticsInfo))}),this._transmuxer.on(Qe.RECOMMEND_SEEKPOINT,function(y){a._mediaElement&&!a._config.accurateSeek&&(a._requestSetTime=!0,a._mediaElement.currentTime=y/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(a){this._mediaElement.volume=a}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(a){this._mediaElement.muted=a}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(a){this._mediaElement?this._internalSeek(a):this._pendingSeekTime=a}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(a){if(a.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return a;var y=!0,S=0,D=0;if(this._mediaElement.getVideoPlaybackQuality){var V=this._mediaElement.getVideoPlaybackQuality();S=V.totalVideoFrames,D=V.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(S=this._mediaElement.webkitDecodedFrameCount,D=this._mediaElement.webkitDroppedFrameCount):y=!1;return y&&(a.decodedFrames=S,a.droppedFrames=D),a}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var a=this._mediaElement.buffered,y=this._mediaElement.currentTime,S=0,D=0,V=0;V<a.length;V++){var te=a.start(V),ue=a.end(V);if(te<=y&&y<ue){S=te,D=ue;break}}D>=y+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(Be.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){Be.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var a=this._mediaElement.currentTime,y=this._mediaElement.buffered,S=!1,D=0;D<y.length;D++){var V=y.start(D),te=y.end(D);if(a>=V&&a<te){a>=te-this._config.lazyLoadRecoverDuration&&(S=!0);break}}S&&(window.clearInterval(this._progressChecker),this._progressChecker=null,S&&(Be.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(a){for(var y=this._mediaElement.buffered,S=0;S<y.length;S++){var D=y.start(S),V=y.end(S);if(a>=D&&a<V)return!0}return!1}},{key:"_internalSeek",value:function(a){var y=this._isTimepointBuffered(a),S=!1,D=0;if(a<1&&this._mediaElement.buffered.length>0){var V=this._mediaElement.buffered.start(0);(V<1&&a<V||bt.safari)&&(S=!0,D=bt.safari?.1:V)}if(S)this._requestSetTime=!0,this._mediaElement.currentTime=D;else if(y){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=a;else{var te=this._msectl.getNearestKeyframe(Math.floor(a*1e3));this._requestSetTime=!0,te!=null?this._mediaElement.currentTime=te.dts/1e3:this._mediaElement.currentTime=a}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(a),this._transmuxer.seek(Math.floor(a*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=a)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var a=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(a)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(a),this._transmuxer.seek(Math.floor(a*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=a))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(a){var y=this._mediaElement;if(a||!this._receivedCanPlay||y.readyState<2){var S=y.buffered;S.length>0&&y.currentTime<S.start(0)&&(Be.w(this.TAG,"Playback seems stuck at ".concat(y.currentTime,", seek to ").concat(S.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=S.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(a){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(a){var y=this._mediaElement.currentTime,S=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(y<1&&S.length>0){var D=S.start(0);if(D<1&&y<D||bt.safari){this._requestSetTime=!0,this._mediaElement.currentTime=bt.safari?.1:D;return}}if(this._isTimepointBuffered(y)){if(this._alwaysSeekKeyframe){var V=this._msectl.getNearestKeyframe(Math.floor(y*1e3));V!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=V.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:y,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(a){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(a){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(a){this._checkAndResumeStuckPlayback()}}]),F}(),Un=Dr,Mr=function(){function F(P,a){if(Object(dt.a)(this,F),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new $t.a,this._config=ln(),typeof a=="object"&&Object.assign(this._config,a),P.type.toLowerCase()==="flv")throw new Vt("NativePlayer does't support flv MediaDataSource input!");if(P.hasOwnProperty("segments"))throw new Vt("NativePlayer(".concat(P.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=P,this._mediaElement=null}return Object(ft.a)(F,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(a,y){var S=this;a===Tt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){S._emitter.emit(Tt.MEDIA_INFO,S.mediaInfo)}):a===Tt.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){S._emitter.emit(Tt.STATISTICS_INFO,S.statisticsInfo)})),this._emitter.addListener(a,y)}},{key:"off",value:function(a,y){this._emitter.removeListener(a,y)}},{key:"attachMediaElement",value:function(a){if(this._mediaElement=a,a.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{a.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(y){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new Mt("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(a){this._mediaElement.volume=a}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(a){this._mediaElement.muted=a}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(a){this._mediaElement?this._mediaElement.currentTime=a:this._pendingSeekTime=a}},{key:"mediaInfo",get:function(){var a=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",y={mimeType:a+this._mediaDataSource.type};return this._mediaElement&&(y.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(y.width=this._mediaElement.videoWidth,y.height=this._mediaElement.videoHeight)),y}},{key:"statisticsInfo",get:function(){var a={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return a;var y=!0,S=0,D=0;if(this._mediaElement.getVideoPlaybackQuality){var V=this._mediaElement.getVideoPlaybackQuality();S=V.totalVideoFrames,D=V.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(S=this._mediaElement.webkitDecodedFrameCount,D=this._mediaElement.webkitDroppedFrameCount):y=!1;return y&&(a.decodedFrames=S,a.droppedFrames=D),a}},{key:"_onvLoadedMetadata",value:function(a){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Tt.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Tt.STATISTICS_INFO,this.statisticsInfo)}}]),F}(),Fn=Mr;Sn.install();function Pr(F,P){var a=F;if(a==null||typeof a!="object")throw new Vt("MediaDataSource must be an javascript object!");if(!a.hasOwnProperty("type"))throw new Vt("MediaDataSource must has type field to indicate video file type!");switch(a.type){case"flv":return new Un(a,P);default:return new Fn(a,P)}}function Nr(){return On.supportMSEH264Playback()}function jr(){return On.getFeatureList()}var Nt={};Nt.createPlayer=Pr,Nt.isSupported=Nr,Nt.getFeatureList=jr,Nt.BaseLoader=Qt,Nt.LoaderStatus=it,Nt.LoaderErrors=vt,Nt.Events=Tt,Nt.ErrorTypes=cn,Nt.ErrorDetails=jn,Nt.FlvPlayer=Un,Nt.NativePlayer=Fn,Nt.LoggingControl=Jt,Object.defineProperty(Nt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Bn=Nt;function an(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */an=function(){return F};var F={},P=Object.prototype,a=P.hasOwnProperty,y=typeof Symbol=="function"?Symbol:{},S=y.iterator||"@@iterator",D=y.asyncIterator||"@@asyncIterator",V=y.toStringTag||"@@toStringTag";function te(ae,Q,fe){return Object.defineProperty(ae,Q,{value:fe,enumerable:!0,configurable:!0,writable:!0}),ae[Q]}try{te({},"")}catch(ae){te=function(fe,he,be){return fe[he]=be}}function ue(ae,Q,fe,he){var be=Q&&Q.prototype instanceof De?Q:De,Ee=Object.create(be.prototype),Re=new tt(he||[]);return Ee._invoke=function(We,Ve,Ae){var Ie="suspendedStart";return function(Xe,rt){if(Ie==="executing")throw new Error("Generator is already running");if(Ie==="completed"){if(Xe==="throw")throw rt;return Ye()}for(Ae.method=Xe,Ae.arg=rt;;){var st=Ae.delegate;if(st){var pt=Ze(st,Ae);if(pt){if(pt===xe)continue;return pt}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(Ie==="suspendedStart")throw Ie="completed",Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);Ie="executing";var _t=Se(We,Ve,Ae);if(_t.type==="normal"){if(Ie=Ae.done?"completed":"suspendedYield",_t.arg===xe)continue;return{value:_t.arg,done:Ae.done}}_t.type==="throw"&&(Ie="completed",Ae.method="throw",Ae.arg=_t.arg)}}}(ae,fe,Re),Ee}function Se(ae,Q,fe){try{return{type:"normal",arg:ae.call(Q,fe)}}catch(he){return{type:"throw",arg:he}}}F.wrap=ue;var xe={};function De(){}function Ge(){}function Fe(){}var Te={};te(Te,S,function(){return this});var $e=Object.getPrototypeOf,qe=$e&&$e($e(Je([])));qe&&qe!==P&&a.call(qe,S)&&(Te=qe);var Pe=Fe.prototype=De.prototype=Object.create(Te);function Ne(ae){["next","throw","return"].forEach(function(Q){te(ae,Q,function(fe){return this._invoke(Q,fe)})})}function we(ae,Q){function fe(be,Ee,Re,We){var Ve=Se(ae[be],ae,Ee);if(Ve.type!=="throw"){var Ae=Ve.arg,Ie=Ae.value;return Ie&&typeof Ie=="object"&&a.call(Ie,"__await")?Q.resolve(Ie.__await).then(function(Xe){fe("next",Xe,Re,We)},function(Xe){fe("throw",Xe,Re,We)}):Q.resolve(Ie).then(function(Xe){Ae.value=Xe,Re(Ae)},function(Xe){return fe("throw",Xe,Re,We)})}We(Ve.arg)}var he;this._invoke=function(be,Ee){function Re(){return new Q(function(We,Ve){fe(be,Ee,We,Ve)})}return he=he?he.then(Re,Re):Re()}}function Ze(ae,Q){var fe=ae.iterator[Q.method];if(fe===void 0){if(Q.delegate=null,Q.method==="throw"){if(ae.iterator.return&&(Q.method="return",Q.arg=void 0,Ze(ae,Q),Q.method==="throw"))return xe;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return xe}var he=Se(fe,ae.iterator,Q.arg);if(he.type==="throw")return Q.method="throw",Q.arg=he.arg,Q.delegate=null,xe;var be=he.arg;return be?be.done?(Q[ae.resultName]=be.value,Q.next=ae.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=void 0),Q.delegate=null,xe):be:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,xe)}function je(ae){var Q={tryLoc:ae[0]};1 in ae&&(Q.catchLoc=ae[1]),2 in ae&&(Q.finallyLoc=ae[2],Q.afterLoc=ae[3]),this.tryEntries.push(Q)}function He(ae){var Q=ae.completion||{};Q.type="normal",delete Q.arg,ae.completion=Q}function tt(ae){this.tryEntries=[{tryLoc:"root"}],ae.forEach(je,this),this.reset(!0)}function Je(ae){if(ae){var Q=ae[S];if(Q)return Q.call(ae);if(typeof ae.next=="function")return ae;if(!isNaN(ae.length)){var fe=-1,he=function be(){for(;++fe<ae.length;)if(a.call(ae,fe))return be.value=ae[fe],be.done=!1,be;return be.value=void 0,be.done=!0,be};return he.next=he}}return{next:Ye}}function Ye(){return{value:void 0,done:!0}}return Ge.prototype=Fe,te(Pe,"constructor",Fe),te(Fe,"constructor",Ge),Ge.displayName=te(Fe,V,"GeneratorFunction"),F.isGeneratorFunction=function(ae){var Q=typeof ae=="function"&&ae.constructor;return!!Q&&(Q===Ge||(Q.displayName||Q.name)==="GeneratorFunction")},F.mark=function(ae){return Object.setPrototypeOf?Object.setPrototypeOf(ae,Fe):(ae.__proto__=Fe,te(ae,V,"GeneratorFunction")),ae.prototype=Object.create(Pe),ae},F.awrap=function(ae){return{__await:ae}},Ne(we.prototype),te(we.prototype,D,function(){return this}),F.AsyncIterator=we,F.async=function(ae,Q,fe,he,be){be===void 0&&(be=Promise);var Ee=new we(ue(ae,Q,fe,he),be);return F.isGeneratorFunction(Q)?Ee:Ee.next().then(function(Re){return Re.done?Re.value:Ee.next()})},Ne(Pe),te(Pe,V,"Generator"),te(Pe,S,function(){return this}),te(Pe,"toString",function(){return"[object Generator]"}),F.keys=function(ae){var Q=[];for(var fe in ae)Q.push(fe);return Q.reverse(),function he(){for(;Q.length;){var be=Q.pop();if(be in ae)return he.value=be,he.done=!1,he}return he.done=!0,he}},F.values=Je,tt.prototype={constructor:tt,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(He),!Q)for(var fe in this)fe.charAt(0)==="t"&&a.call(this,fe)&&!isNaN(+fe.slice(1))&&(this[fe]=void 0)},stop:function(){this.done=!0;var Q=this.tryEntries[0].completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var fe=this;function he(Ae,Ie){return Re.type="throw",Re.arg=Q,fe.next=Ae,Ie&&(fe.method="next",fe.arg=void 0),!!Ie}for(var be=this.tryEntries.length-1;be>=0;--be){var Ee=this.tryEntries[be],Re=Ee.completion;if(Ee.tryLoc==="root")return he("end");if(Ee.tryLoc<=this.prev){var We=a.call(Ee,"catchLoc"),Ve=a.call(Ee,"finallyLoc");if(We&&Ve){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0);if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}else if(We){if(this.prev<Ee.catchLoc)return he(Ee.catchLoc,!0)}else{if(!Ve)throw new Error("try statement without catch or finally");if(this.prev<Ee.finallyLoc)return he(Ee.finallyLoc)}}}},abrupt:function(Q,fe){for(var he=this.tryEntries.length-1;he>=0;--he){var be=this.tryEntries[he];if(be.tryLoc<=this.prev&&a.call(be,"finallyLoc")&&this.prev<be.finallyLoc){var Ee=be;break}}Ee&&(Q==="break"||Q==="continue")&&Ee.tryLoc<=fe&&fe<=Ee.finallyLoc&&(Ee=null);var Re=Ee?Ee.completion:{};return Re.type=Q,Re.arg=fe,Ee?(this.method="next",this.next=Ee.finallyLoc,xe):this.complete(Re)},complete:function(Q,fe){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&fe&&(this.next=fe),xe},finish:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.finallyLoc===Q)return this.complete(he.completion,he.afterLoc),He(he),xe}},catch:function(Q){for(var fe=this.tryEntries.length-1;fe>=0;--fe){var he=this.tryEntries[fe];if(he.tryLoc===Q){var be=he.completion;if(be.type==="throw"){var Ee=be.arg;He(he)}return Ee}}throw new Error("illegal catch attempt")},delegateYield:function(Q,fe,he){return this.delegate={iterator:Je(Q),resultName:fe,nextLoc:he},this.method==="next"&&(this.arg=void 0),xe}},F}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Ur(F,P){return F-P}function Fr(F){F.sort(Ur);for(var P=0,a=0;a<F.length-1;a++){var y=Math.abs(F[a+1]-F[a]);y<21&&(P+=y)}return P}var Br=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,qr=Object(k.forwardRef)(function(F,P){var a,y=F.src,S=F.videoId,D=F.logWatchHistory,V=F.courseId,te=V===void 0?null:V,ue=F.startTime,Se=F.handlePause,xe=Se===void 0?function(){}:Se,De=F.handlePlay,Ge=De===void 0?function(){}:De,Fe=F.handlePlayEnded,Te=Fe===void 0?function(){}:Fe,$e=F.videoSpeed,qe=$e===void 0?1:$e,Pe=y==null||((a=y.split("."))===null||a===void 0)?void 0:a.pop(),Ne=Pe==="flv",we=Object(k.useRef)(),Ze=navigator.userAgent.toLowerCase().match(Br),je=Ze?Ze[0]:"pc",He=Object(k.useRef)(!1),tt=0,Je=0,Ye=0,ae=null,Q=!1,fe=20,he=1,be=!1,Ee=!1,Re=[];Object(k.useImperativeHandle)(P,function(){return{getLastUpdatedTime:function(){return we.current.currentTime},getDuration:function(){return we.current.duration}}});var We=Object(k.useCallback)(function(Ve){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie={point:we.current.currentTime};ae?(Ie.log_id=ae,Ie.watch_duration=Fr(Re),Ie.total_duration=Je):(te?(Ie.video_id=parseInt(S,10),Ie.course_id=parseInt(te,10)):Ie.video_id=S,Ie.duration=tt,Ie.device=je),Ae&&(Ie.ed="1");function Xe(){return rt.apply(this,arguments)}function rt(){return rt=Object(c.a)(an().mark(function st(){var pt;return an().wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return be=!0,Lt.next=3,D(Ie);case 3:pt=Lt.sent,ae=pt,be=!1,Ve&&Ve();case 7:case"end":return Lt.stop()}},st)})),rt.apply(this,arguments)}Xe()},[S,te]);return Object(k.useEffect)(function(){var Ve=null;return Bn.isSupported&&Ne?(Ve=Bn.createPlayer({type:"flv",volume:.8,cors:!0,url:y,muted:!1}),we.current&&(Ve.attachMediaElement(we.current),Ve.load())):we.current.setAttribute("src",y),function(){Ve&&(Ve.unload(),Ve.pause(),Ve.destroy(),Ve=null)}},[we,Ne,y]),Object(k.useEffect)(function(){function Ve(){Ge(),ue&&!He.current&&(we.current.currentTime=ue),He.current=!0,Re.push(we.current.currentTime),Q||(Q=!0,We())}function Ae(){return Ie.apply(this,arguments)}function Ie(){return Ie=Object(c.a)(an().mark(function Lt(){return an().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:Re.push(we.current.currentTime),We(function(){ae=null,Ye=0,Q=!1,be=!1,Ee=!1,Re=[],Je=0,he=1},!0);case 2:case"end":return Ut.stop()}},Lt)})),Ie.apply(this,arguments)}function Xe(){if(!Ee){var Lt=we.current.currentTime,Ft=Lt-Ye;Math.abs(Ft)<10?(Je+=Math.abs(Ft),Ye=Lt,be||Je-he*fe>=0&&(he++,Re.push(Ye),We())):(Ye=Lt,We())}}function rt(){Ee=!0}function st(){we.current.playing&&Re.push(we.current.currentTime,Ye),Ye=we.current.currentTime,Ee=!1}function pt(){tt=we.current.duration,tt<=20&&(fe=tt/3),we.current.addEventListener("play",Ve)}function _t(){xe()}return we.current.addEventListener("canplay",pt),we.current.addEventListener("ended",Ae),we.current.addEventListener("seeking",rt),we.current.addEventListener("seeked",st),we.current.addEventListener("timeupdate",Xe),we.current.addEventListener("pause",_t),function(){we.current.removeEventListener("canplay",pt),we.current.removeEventListener("play",Ve),we.current.removeEventListener("ended",Ae),we.current.removeEventListener("seeking",rt),we.current.removeEventListener("seeked",st),we.current.removeEventListener("timeupdate",Xe),we.current.removeEventListener("pause",_t),we.current.playing&&(Re.push(Ye,we.current.currentTime),We())}},[we,y]),Object(k.useEffect)(function(){we.current.onended=function(){Te(we)},we.current.playbackRate=qe},[y,qe]),_.a.createElement("video",{ref:we,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})}),Vr=ve("9Bee"),Gr=ve("vZDz"),Xt=ve.n(Gr),zr=ve("9VGf"),Wr=function(P){var a=P.videoDetail,y=P.globalSetting,S=P.loading,D=P.dispatch,V=Object(n.a)(P,["videoDetail","globalSetting","loading","dispatch"]),te=a.queryParams,ue=a.selectParams,Se=a.videoList,xe=te.subject_id,De=te.videoId,Ge=ue.checkBoxValue,Fe=ue.radioValue,Te={videoId:De},$e={query:te},qe=Object(k.useRef)(),Pe=Object(k.useRef)(),Ne=Object(k.useRef)(),we=Object(k.useRef)(5),Ze=a.detail||{},je=Ze.video_item;Object(zr.a)(Object(c.a)(re.a.mark(function be(){return re.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!Pe.current){Re.next=5;break}return console.log("videoRef lastUpdatedTime: ",qe.current.getLastUpdatedTime()),console.log(qe.current),Re.next=5,He();case 5:case"end":return Re.stop()}},be)})),we.current*1e3);var He=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Re=Ee?{is_f:1}:{};return Object(X.o)(Object(Oe.a)(Object(Oe.a)({},Re),{id:Te.videoId,point:qe.current.getLastUpdatedTime(),total:qe.current.getDuration()}))},tt=function(Ee){return console.log("handlLogWatchHistory: ",Ee),Ee.ed==="1"&&(Pe.current=!1,He(!0)),!Pe.current&&!Ee.ed&&(Pe.current=!0,we.current=qe.current.getDuration()<=5?1:5,He()),D({type:"userDetail/logWatchHistory",payload:Ee})},Je=function(){Pe.current=!1},Ye=function(){Pe.current=!0},ae=function(){Ne.current=5,h.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:_.a.createElement("div",{className:"tc font14"},_.a.createElement(i.a,{defaultValue:Ne.current,onChange:function(Re){return Ne.current=Re},className:Xt.a.modalRating})),onOk:function(){var Ee=Object(c.a)(re.a.mark(function We(){var Ve;return re.a.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,Object(X.l)({id:Te.videoId,star:Ne.current});case 2:Ve=Ie.sent,Ve.status===0&&D({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)({id:Te.videoId},Vn($e.query))});case 4:case"end":return Ie.stop()}},We)}));function Re(){return Ee.apply(this,arguments)}return Re}()})},Q=function(Ee){var Re=window.filterVideoSign,We=Re.findIndex(function(rt){return rt.id===De}),Ve=We===Re.length-1;if(Ve)return;var Ae=Re[We+1].id,Ie=Re[We+1].can_view,Xe=Re[We+1].link;if(window.checkBoxValue){if(Xe){window.open(Xe);return}if(!Ie){h.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:_.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\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")});return}D({type:"videoDetail/handleList",payload:{videoId:Ae}}),window.videoTimer=setTimeout(function(){Ee.current.play()},2e3)}},fe=function(Ee,Re){if(Ee==="checkBox"){var We=Re.target.checked;window.checkBoxValue=We,D({type:"videoDetail/setSelectValue",payload:{radioValue:Fe,checkBoxValue:We}});return}D({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ge,radioValue:Re.target.value}})},he=function(){var Ee=Se.findIndex(function(We){return We.id===De}),Re=Ee===Se.length-1;return Re?_.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):_.a.createElement(zn.a,{onChange:function(Ve){fe("checkBox",Ve)},checked:Ge},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return _.a.createElement("aside",{className:Xt.a.contentWrap},_.a.createElement("aside",{className:Xt.a.wrap},_.a.createElement("header",null,(je==null?void 0:je.description)&&_.a.createElement("span",{className:Xt.a.introName},"\u7B80\u4ECB"),Object(Ue.z)(je==null?void 0:je.my_star)?_.a.createElement(t.a,{type:"primary",ghost:!0,onClick:ae},"\u8BC4\u5206"):_.a.createElement("span",null,_.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),_.a.createElement(i.a,{value:je==null?void 0:je.my_star,disabled:!0,className:Xt.a.rating}))),_.a.createElement("div",{className:"mt20"},_.a.createElement(Vr.a,{value:(je==null?void 0:je.description)||""})),_.a.createElement(qr,{ref:qe,startTime:je==null?void 0:je.last_point,src:(je==null?void 0:je.is_link)?je==null?void 0:je.link:(je==null?void 0:je.play_url)&&Wn.Base64.decode(je==null?void 0:je.play_url),videoId:je==null?void 0:je.video_id,logWatchHistory:tt,handlePause:Je,handlePlay:Ye,videoSpeed:Fe,handlePlayEnded:Q}),_.a.createElement("div",{className:Xt.a.footer},_.a.createElement("div",{className:Xt.a.checkBox},he()),_.a.createElement("div",{className:Xt.a.radioGroup},_.a.createElement(L.a.Group,{onChange:function(Ee){fe("radio",Ee)},value:Fe},_.a.createElement(L.a,{value:1},"1.0X"),_.a.createElement(L.a,{value:1.5},"1.5X"),_.a.createElement(L.a,{value:2},"2.0X"))))))},Hr=Object(m.a)(function(F){var P=F.videoDetail,a=F.loading,y=F.globalSetting;return{videoDetail:P,globalSetting:y,loading:a}})(Wr),Xr=ve("MRWH"),It=ve.n(Xr),qn=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:_.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:_.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:_.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:_.a.createElement("i",{className:"iconfont icon-kongbai font20"})}],Kr=function(P){var a=P.dispatch,y=P.videoDetail,S=P.user,D=Object(n.a)(P,["dispatch","videoDetail","user"]),V=y.queryParams,te=y.stages,ue=y.videoList,Se=y.cust_seq,xe=V.subject_id,De=V.videoId,Ge=V.course_id;Object(k.useEffect)(function(){a(xe?{type:"videoDetail/getStageData",payload:{subject_id:xe}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Ge}})},[]);var Fe=function(){var Ne=Object(c.a)(re.a.mark(function we(Ze,je){var He;return re.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(a({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!je){Je.next=7;break}return Je.next=4,Object(yt.z)({id:Ze});case 4:Je.t0=Je.sent,Je.next=10;break;case 7:return Je.next=9,Object(yt.A)({id:Ze});case 9:Je.t0=Je.sent;case 10:if(He=Je.t0,a({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((He==null?void 0:He.game_identifier)||(He==null?void 0:He.identifier))){Je.next=15;break}return Object(Ue.C)(je?"/tasks/".concat(He==null?void 0:He.identifier,"/jupyter"):"/tasks/".concat(He.game_identifier)),Je.abrupt("return");case 15:case"end":return Je.stop()}},we)}));return function(Ze,je){return Ne.apply(this,arguments)}}(),Te=function(we){if((we==null?void 0:we.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);var Ze=we.id,je=we.item_type,He=we.identifier,tt=we.is_jupyter,Je=we.url,Ye=we.link;if(je==="VideoItem"&&!Ye){var ae,Q;if(!((ae=S.userInfo)===null||ae===void 0?void 0:ae.admin)&&!((Q=S.userInfo)===null||Q===void 0?void 0:Q.business)&&!we.can_view){h.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:_.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")});return}a({type:"videoDetail/handleList",payload:{videoId:Ze}});return}if(je==="VideoItem"&&!!Ye){we.link&&Object(X.o)({is_f:1,id:we.id,point:0,total:0}),window.open(Ye);return}if(je==="Shixun"){Fe(He,tt);return}window.open(ke.a.IMG_SERVER+Je)},$e=function(we){var Ze=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],je=["","\u5341","\u767E","\u5343","\u4E07"];we=parseInt(we);var He=function(ae){for(var Q=ae.toString().split("").reverse(),fe="",he=0;he<Q.length;he++)fe=(he==0&&Q[he]==0||he>0&&Q[he]==0&&Q[he-1]==0?"":Ze[Q[he]]+(Q[he]==0?je[0]:je[he]))+fe;return fe},tt=Math.floor(we/1e4),Je=we%1e4;return Je.toString().length<4&&(Je="0"+Je),tt?He(tt)+"\u4E07"+He(Je):He(we)},qe=function(we,Ze,je,He){var tt=we.name,Je=we.item_type,Ye=we.id,ae="".concat(Ze+1,"-").concat(je+1,"-").concat(He+1),Q=qn.find(function(be){return be.type===Je}).icon,fe=Je==="VideoItem"?It.a.brght:It.a.gray,he=De===Ye?"".concat(fe," ").concat(It.a.active):fe;return _.a.createElement("div",{key:ae,onClick:function(){return Te(we)},className:he,style:{paddingLeft:52}},_.a.createElement("span",{className:It.a.s1},Q),!!Se&&_.a.createElement("span",{className:It.a.s2},ae),_.a.createElement("span",{className:It.a.s3},"\u203B ",tt))},Pe=function(we,Ze,je){var He=we.name,tt=we.item_type,Je=we.id,Ye=we.children,ae="".concat(Ze+1,"-").concat(je+1),Q=qn.find(function(be){return be.type===tt}).icon,fe=tt==="VideoItem"?It.a.brght:It.a.gray,he=De===Je?"".concat(fe," ").concat(It.a.active):fe;return _.a.createElement(k.Fragment,{key:ae},_.a.createElement("div",{onClick:function(){return Te(we)},className:he},_.a.createElement("span",{className:It.a.s1},Q),!!Se&&_.a.createElement("span",{className:It.a.s2},ae),_.a.createElement("span",{className:It.a.s3},"\u203B ",He)),!!Ye.length&&Ye.map(function(be,Ee){return qe(be,Ze,je,Ee)}))};return _.a.createElement("aside",{className:It.a.list},te.map(function(Ne,we){var Ze=Ne.stage_name,je=Ne.shixuns_list,He=je===void 0?[]:je,tt=Ne.items,Je=tt===void 0?[]:tt,Ye=Object(j.a)(Je);return _.a.createElement("aside",{key:we,className:It.a.box},_.a.createElement("div",{className:It.a.title},$e(we+1),"\u3001",Ze),Ye.map(function(ae,Q){return Pe(ae,we,Q)}),we!==te.length-1&&_.a.createElement("div",{className:It.a.line}))}))},Yr=Object(m.a)(function(F){var P=F.user,a=F.videoDetail,y=F.loading,S=F.globalSetting;return{user:P,videoDetail:a,globalSetting:S,loading:y}})(Kr),Vn=function(P){var a=P.subject_id;return{subject_id:a,course_id:a}},$r=function(P){var a=P.videoDetail,y=P.globalSetting,S=P.loading,D=P.dispatch,V=Object(n.a)(P,["videoDetail","globalSetting","loading","dispatch"]),te=a.queryParams,ue=te.subject_id,Se=te.videoId,xe={videoId:Se},De={query:te};return Object(k.useEffect)(function(){if(console.log("\u9A8C\u8BC1\u6D4B\u8BD5\u73AF\u5883"),!xe.videoId)return;D({type:"videoDetail/getVideoDetail",payload:Object(Oe.a)(Object(Oe.a)({},te),{},{id:xe.videoId})})},[xe.videoId]),Object(k.useEffect)(function(){var Ge,Fe;document.title=((Ge=a.detail)===null||Ge===void 0||((Fe=Ge.video_item)===null||Fe===void 0)?void 0:Fe.name)||"EduCoder"},[a]),_.a.createElement(mt.a,{spinning:!1},_.a.createElement("section",{className:o.a.bg},_.a.createElement(zt,null),_.a.createElement("div",{className:o.a.container},_.a.createElement(Yr,null),_.a.createElement(Hr,null))))},ei=ot.default=Object(m.a)(function(F){var P=F.videoDetail,a=F.loading,y=F.globalSetting;return{videoDetail:P,globalSetting:y,loading:a}})($r)},"9Bee":function(ut,ot,ve){"use strict";var nt=ve("q1tI"),mt=ve.n(nt),Oe=ve("vg9a"),n=ve("tJVT"),k=ve("DlQD"),_=ve.n(k),m=ve("rUJ1");function b(Z,ne){var se=Z.match(/^(\s+)(?:```)/);if(se===null)return ne;var W=se[1];return ne.split(`
|
|
|
`).map(function(le){var re=le.match(/^\s+/);if(re===null)return le;var z=Object(n.a)(re,1),U=z[0];return U.length>=W.length?le.slice(W.length):le}).join(`
|
|
|
`)}var o=[],u=["<ul>"],p=new _.a.Renderer,l=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function t(){o.length=0,u=["<ul>"]}function s(Z,ne,se,W){if(ne>=Z.length||Z[ne].level<=se)return ne;var le=Z[ne];W.push("<li><a href='#"+le.anchor+"'>"+le.text+"</a>"),ne++;var re=[];return ne=s(Z,ne,le.level,re),re.length>0&&(W.push("<ul>"),re.forEach(function(z){W.push(z)}),W.push("</ul>")),W.push("</li>"),ne=s(Z,ne,se,W),ne}function i(){return s(o,0,0,u),u.push("</ul>"),u.join("")}var c={heading:function(ne){var se=l.exec(ne);if(se)return{type:"heading",raw:se[0],depth:se[1].length,text:se[2]}},fences:function(ne){var se=this.rules.block.fences.exec(ne);if(se){var W=se[0],le=b(W,se[3]||""),re=se[2]?se[2].trim():se[2];if(["latex","katex","math"].indexOf(re)>=0){var z=T(),U=le;le=z,A[z]={type:"block",expression:U}}return{type:"code",raw:W,lang:re,text:le}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,d=0,T=function(){return"__special_katext_id_".concat(d++,"__")},A={};function h(){return A}function O(){d=0,A={}}function L(Z){return Z=Z.replace(f,function(ne,se){var W=T();return A[W]={type:"inline",expression:se},W}),Z}var v=p.listitem;p.listitem=function(Z){return v(L(Z))};var w=p.paragraph;p.paragraph=function(Z){return w(L(Z))};var R=p.tablecell;p.tablecell=function(Z,ne){return R(L(Z),ne)},p.code=function(Z,ne,se){var W=(ne||"").match(/\S*/)[0];return W?["latex","katex","math"].indexOf(W)>=0?"<p class='editormd-tex'>".concat(Z,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(ne,'">').concat(se?Z:Object(m.escape)(Z,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(se?Z:Object(m.escape)(Z,!0))+"</code></pre>"},p.heading=function(Z,ne,se){var W=this.options.headerPrefix+se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:W,level:ne,text:Z}),"<h"+ne+' id="'+W+'">'+Z+"</h"+ne+">"},_.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),_.a.use({tokenizer:c,renderer:p});var M=_.a,x=ve("SJMd"),G=ve("m3rI"),N=ve("Oy/b"),X=/<pre[^>]*>/g;function B(Z){var ne=document.createElement("div");return ne.innerHTML=Z,ne.childNodes.length===0?"":ne.childNodes[0].nodeValue}var $=ot.a=function(Z){var ne=Z.value,se=ne===void 0?"":ne,W=Z.className,le=Z.style,re=le===void 0?{}:le,z=String(se),U=Object(nt.useMemo)(function(){try{var H=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ee=/\"\/api\/attachments\/|\"\/attachments\/download\//g,oe=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;z=z.replace(H,"("+G.a.API_SERVER+"/api/attachments/").replace(ee,'"'+G.a.API_SERVER+"/api/attachments/").replace(oe,'"'+G.a.API_SERVER+"/files/uploads/")}catch(Le){}var ye=M(z),me=h();return z.match(/\[TOC\]/)&&(ye=ye.replace("<p>[TOC]</p>",i()),t()),ye=ye.replace(/(__special_katext_id_\d+__)/g,function(Le,Ce){var de=me[Ce],ce=de.type,ge=de.expression;return Object(N.renderToString)(B(ge)||"",{displayMode:ce==="block",throwOnError:!1,output:"html"})}),ye=ye.replace(/▁/g,"\u2581\u2581\u2581"),O(),ye},[z]),j=Object(nt.useRef)();function q(H){var ee=H.target;if(ee.tagName.toUpperCase()==="A"){var oe=ee.getAttribute("href");if(oe.startsWith("#")){H.preventDefault();var ye=document.getElementById(oe.replace("#",""));ye&&ye.scrollIntoView(!0)}}}return Object(nt.useEffect)(function(){if(j.current&&U&&(U.match(X)&&window.PR.prettyPrint()),j.current)return j.current.addEventListener("click",q),function(){j.current.removeEventListener("click",q),O(),t()}},[U,j.current,q]),mt.a.createElement("div",{ref:j,style:re,className:"".concat(W||""," markdown-body"),dangerouslySetInnerHTML:{__html:U}})}},"9VGf":function(ut,ot,ve){"use strict";ve.d(ot,"a",function(){return Oe});var nt=ve("q1tI"),mt=ve.n(nt);function Oe(n,k){var _=Object(nt.useRef)();Object(nt.useEffect)(function(){_.current=n}),Object(nt.useEffect)(function(){function m(){_.current()}if(k!==null){var b=setInterval(m,k);return function(){return clearInterval(b)}}},[k])}},E2g8:function(ut,ot,ve){(function(nt,mt){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(Oe,n){ut.exports=n()})(this,function(){"use strict";function Oe(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}function n(e){return typeof e=="function"}var k=void 0;Array.isArray?k=Array.isArray:k=function(r){return Object.prototype.toString.call(r)==="[object Array]"};var _=k,m=0,b=void 0,o=void 0,u=function(r,C){L[m]=r,L[m+1]=C,m+=2,m===2&&(o?o(v):R())};function p(e){o=e}function l(e){u=e}var t=typeof window!="undefined"?window:void 0,s=t||{},i=s.MutationObserver||s.WebKitMutationObserver,c=typeof self=="undefined"&&typeof nt!="undefined"&&{}.toString.call(nt)==="[object process]",f=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function d(){return function(){return nt.nextTick(v)}}function T(){return typeof b!="undefined"?function(){b(v)}:O()}function A(){var e=0,r=new i(v),C=document.createTextNode("");return r.observe(C,{characterData:!0}),function(){C.data=e=++e%2}}function h(){var e=new MessageChannel;return e.port1.onmessage=v,function(){return e.port2.postMessage(0)}}function O(){var e=setTimeout;return function(){return e(v,1)}}var L=new Array(1e3);function v(){for(var e=0;e<m;e+=2){var r=L[e],C=L[e+1];r(C),L[e]=void 0,L[e+1]=void 0}m=0}function w(){try{var e=Function("return this")().require("vertx");return b=e.runOnLoop||e.runOnContext,T()}catch(r){return O()}}var R=void 0;c?R=d():i?R=A():f?R=h():t===void 0&&!0?R=w():R=O();function M(e,r){var C=this,g=new this.constructor(N);g[G]===void 0&&Ce(g);var E=C._state;if(E){var K=arguments[E-1];u(function(){return oe(E,g,K,C._result)})}else H(C,g,e,r);return g}function x(e){var r=this;if(e&&typeof e=="object"&&e.constructor===r)return e;var C=new r(N);return z(C,e),C}var G=Math.random().toString(36).substring(2);function N(){}var X=void 0,B=1,$=2;function Z(){return new TypeError("You cannot resolve a promise with itself")}function ne(){return new TypeError("A promises callback cannot return that same promise.")}function se(e,r,C,g){try{e.call(r,C,g)}catch(E){return E}}function W(e,r,C){u(function(g){var E=!1,K=se(C,r,function(ie){if(E)return;E=!0,r!==ie?z(g,ie):j(g,ie)},function(ie){if(E)return;E=!0,q(g,ie)},"Settle: "+(g._label||" unknown promise"));!E&&K&&(E=!0,q(g,K))},e)}function le(e,r){r._state===B?j(e,r._result):r._state===$?q(e,r._result):H(r,void 0,function(C){return z(e,C)},function(C){return q(e,C)})}function re(e,r,C){r.constructor===e.constructor&&C===M&&r.constructor.resolve===x?le(e,r):C===void 0?j(e,r):n(C)?W(e,r,C):j(e,r)}function z(e,r){if(e===r)q(e,Z());else if(Oe(r)){var C=void 0;try{C=r.then}catch(g){q(e,g);return}re(e,r,C)}else j(e,r)}function U(e){e._onerror&&e._onerror(e._result),ee(e)}function j(e,r){if(e._state!==X)return;e._result=r,e._state=B,e._subscribers.length!==0&&u(ee,e)}function q(e,r){if(e._state!==X)return;e._state=$,e._result=r,u(U,e)}function H(e,r,C,g){var E=e._subscribers,K=E.length;e._onerror=null,E[K]=r,E[K+B]=C,E[K+$]=g,K===0&&e._state&&u(ee,e)}function ee(e){var r=e._subscribers,C=e._state;if(r.length===0)return;for(var g=void 0,E=void 0,K=e._result,ie=0;ie<r.length;ie+=3)g=r[ie],E=r[ie+C],g?oe(C,g,E,K):E(K);e._subscribers.length=0}function oe(e,r,C,g){var E=n(C),K=void 0,ie=void 0,ze=!0;if(E){try{K=C(g)}catch(Ue){ze=!1,ie=Ue}if(r===K){q(r,ne());return}}else K=g;r._state!==X||(E&&ze?z(r,K):ze===!1?q(r,ie):e===B?j(r,K):e===$&&q(r,K))}function ye(e,r){try{r(function(g){z(e,g)},function(g){q(e,g)})}catch(C){q(e,C)}}var me=0;function Le(){return me++}function Ce(e){e[G]=me++,e._state=void 0,e._result=void 0,e._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var ce=function(){function e(r,C){this._instanceConstructor=r,this.promise=new r(N),this.promise[G]||Ce(this.promise),_(C)?(this.length=C.length,this._remaining=C.length,this._result=new Array(this.length),this.length===0?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(C),this._remaining===0&&j(this.promise,this._result))):q(this.promise,de())}return e.prototype._enumerate=function(C){for(var g=0;this._state===X&&g<C.length;g++)this._eachEntry(C[g],g)},e.prototype._eachEntry=function(C,g){var E=this._instanceConstructor,K=E.resolve;if(K===x){var ie=void 0,ze=void 0,Ue=!1;try{ie=C.then}catch(et){Ue=!0,ze=et}if(ie===M&&C._state!==X)this._settledAt(C._state,g,C._result);else if(typeof ie!="function")this._remaining--,this._result[g]=C;else if(E===ke){var Ke=new E(N);Ue?q(Ke,ze):re(Ke,C,ie),this._willSettleAt(Ke,g)}else this._willSettleAt(new E(function(et){return et(C)}),g)}else this._willSettleAt(K(C),g)},e.prototype._settledAt=function(C,g,E){var K=this.promise;K._state===X&&(this._remaining--,C===$?q(K,E):this._result[g]=E),this._remaining===0&&j(K,this._result)},e.prototype._willSettleAt=function(C,g){var E=this;H(C,void 0,function(K){return E._settledAt(B,g,K)},function(K){return E._settledAt($,g,K)})},e}();function ge(e){return new ce(this,e).promise}function J(e){var r=this;return _(e)?new r(function(C,g){for(var E=e.length,K=0;K<E;K++)r.resolve(e[K]).then(C,g)}):new r(function(C,g){return g(new TypeError("You must pass an array to race."))})}function Y(e){var r=this,C=new r(N);return q(C,e),C}function _e(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function pe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ke=function(){function e(r){this[G]=Le(),this._result=this._state=void 0,this._subscribers=[],N!==r&&(typeof r!="function"&&_e(),this instanceof e?ye(this,r):pe())}return e.prototype.catch=function(C){return this.then(null,C)},e.prototype.finally=function(C){var g=this,E=g.constructor;return n(C)?g.then(function(K){return E.resolve(C()).then(function(){return K})},function(K){return E.resolve(C()).then(function(){throw K})}):g.then(C,C)},e}();ke.prototype.then=M,ke.all=ge,ke.race=J,ke.resolve=x,ke.reject=Y,ke._setScheduler=p,ke._setAsap=l,ke._asap=u;function I(){var e=void 0;if(typeof mt!="undefined")e=mt;else if(typeof self!="undefined")e=self;else try{e=Function("return this")()}catch(g){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;if(r){var C=null;try{C=Object.prototype.toString.call(r.resolve())}catch(g){}if(C==="[object Promise]"&&!r.cast)return}e.Promise=ke}return ke.polyfill=I,ke.Promise=ke,ke})}).call(this,ve("Q2Ig"),ve("yLpj"))},GzdX:function(ut,ot,ve){"use strict";var nt=ve("pVnL"),mt=ve.n(nt),Oe=ve("q1tI"),n=ve.n(Oe),k=ve("rePB"),_=ve("1OyB"),m=ve("vuIU"),b=ve("Ji7U"),o=ve("md7G"),u=ve("foSv"),p=ve("m+aA"),l=ve("TSYQ"),t=ve.n(l),s=ve("4IlW");function i(se){var W=se.pageXOffset,le="scrollLeft";if(typeof W!="number"){var re=se.document;W=re.documentElement[le],typeof W!="number"&&(W=re.body[le])}return W}function c(se){var W,le,re=se.ownerDocument,z=re.body,U=re&&re.documentElement,j=se.getBoundingClientRect();return W=j.left,le=j.top,W-=U.clientLeft||z.clientLeft||0,le-=U.clientTop||z.clientTop||0,{left:W,top:le}}function f(se){var W=c(se),le=se.ownerDocument,re=le.defaultView||le.parentWindow;return W.left+=i(re),W.left}function d(se){var W=T();return function(){var re=Object(u.a)(se),z;if(W){var U=Object(u.a)(this).constructor;z=Reflect.construct(re,arguments,U)}else z=re.apply(this,arguments);return Object(o.a)(this,z)}}function T(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(se){return!1}}var A=function(se){Object(b.a)(le,se);var W=d(le);function le(){var re;return Object(_.a)(this,le),re=W.apply(this,arguments),re.onHover=function(z){var U=re.props,j=U.onHover,q=U.index;j(z,q)},re.onClick=function(z){var U=re.props,j=U.onClick,q=U.index;j(z,q)},re.onKeyDown=function(z){var U=re.props,j=U.onClick,q=U.index;z.keyCode===13&&j(z,q)},re}return Object(m.a)(le,[{key:"getClassName",value:function(){var z=this.props,U=z.prefixCls,j=z.index,q=z.value,H=z.allowHalf,ee=z.focused,oe=j+1,ye=U;return q===0&&j===0&&ee?ye+=" ".concat(U,"-focused"):H&&q+.5>=oe&&q<oe?(ye+=" ".concat(U,"-half ").concat(U,"-active"),ee&&(ye+=" ".concat(U,"-focused"))):(ye+=oe<=q?" ".concat(U,"-full"):" ".concat(U,"-zero"),oe===q&&ee&&(ye+=" ".concat(U,"-focused"))),ye}},{key:"render",value:function(){var z=this.onHover,U=this.onClick,j=this.onKeyDown,q=this.props,H=q.disabled,ee=q.prefixCls,oe=q.character,ye=q.characterRender,me=q.index,Le=q.count,Ce=q.value,de=typeof oe=="function"?oe(this.props):oe,ce=n.a.createElement("li",{className:this.getClassName()},n.a.createElement("div",{onClick:H?null:U,onKeyDown:H?null:j,onMouseMove:H?null:z,role:"radio","aria-checked":Ce>me?"true":"false","aria-posinset":me+1,"aria-setsize":Le,tabIndex:H?-1:0},n.a.createElement("div",{className:"".concat(ee,"-first")},de),n.a.createElement("div",{className:"".concat(ee,"-second")},de)));return ye&&(ce=ye(ce,this.props)),ce}}]),le}(n.a.Component);function h(se,W){var le=Object.keys(se);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(se);W&&(re=re.filter(function(z){return Object.getOwnPropertyDescriptor(se,z).enumerable})),le.push.apply(le,re)}return le}function O(se){for(var W=1;W<arguments.length;W++){var le=arguments[W]!=null?arguments[W]:{};W%2?h(Object(le),!0).forEach(function(re){Object(k.a)(se,re,le[re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(le)):h(Object(le)).forEach(function(re){Object.defineProperty(se,re,Object.getOwnPropertyDescriptor(le,re))})}return se}function L(se){var W=v();return function(){var re=Object(u.a)(se),z;if(W){var U=Object(u.a)(this).constructor;z=Reflect.construct(re,arguments,U)}else z=re.apply(this,arguments);return Object(o.a)(this,z)}}function v(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(se){return!1}}function w(){}var R=function(se){Object(b.a)(le,se);var W=L(le);function le(re){var z;Object(_.a)(this,le),z=W.call(this,re),z.onHover=function(j,q){var H=z.props.onHoverChange,ee=z.getStarValue(q,j.pageX),oe=z.state.cleanedValue;ee!==oe&&z.setState({hoverValue:ee,cleanedValue:null}),H(ee)},z.onMouseLeave=function(){var j=z.props.onHoverChange;z.setState({hoverValue:void 0,cleanedValue:null}),j(void 0)},z.onClick=function(j,q){var H=z.props.allowClear,ee=z.state.value,oe=z.getStarValue(q,j.pageX),ye=!1;H&&(ye=oe===ee),z.onMouseLeave(),z.changeValue(ye?0:oe),z.setState({cleanedValue:ye?oe:null})},z.onFocus=function(){var j=z.props.onFocus;z.setState({focused:!0}),j&&j()},z.onBlur=function(){var j=z.props.onBlur;z.setState({focused:!1}),j&&j()},z.onKeyDown=function(j){var q=j.keyCode,H=z.props,ee=H.count,oe=H.allowHalf,ye=H.onKeyDown,me=H.direction,Le=me==="rtl",Ce=z.state.value;q===s.a.RIGHT&&Ce<ee&&!Le?(oe?Ce+=.5:Ce+=1,z.changeValue(Ce),j.preventDefault()):q===s.a.LEFT&&Ce>0&&!Le||q===s.a.RIGHT&&Ce>0&&Le?(oe?Ce-=.5:Ce-=1,z.changeValue(Ce),j.preventDefault()):q===s.a.LEFT&&Ce<ee&&Le&&(oe?Ce+=.5:Ce+=1,z.changeValue(Ce),j.preventDefault()),ye&&ye(j)},z.saveRef=function(j){return function(q){z.stars[j]=q}},z.saveRate=function(j){z.rate=j};var U=re.value;return U===void 0&&(U=re.defaultValue),z.stars={},z.state={value:U,focused:!1,cleanedValue:null},z}return Object(m.a)(le,[{key:"componentDidMount",value:function(){var z=this.props,U=z.autoFocus,j=z.disabled;U&&!j&&this.focus()}},{key:"getStarDOM",value:function(z){return Object(p.a)(this.stars[z])}},{key:"getStarValue",value:function(z,U){var j=this.props,q=j.allowHalf,H=j.direction,ee=H==="rtl",oe=z+1;if(q){var ye=this.getStarDOM(z),me=f(ye),Le=ye.clientWidth;(ee&&U-me>Le/2||!ee&&U-me<Le/2)&&(oe-=.5)}return oe}},{key:"focus",value:function(){var z=this.props.disabled;z||this.rate.focus()}},{key:"blur",value:function(){var z=this.props.disabled;z||this.rate.blur()}},{key:"changeValue",value:function(z){var U=this.props.onChange;"value"in this.props||this.setState({value:z}),U(z)}},{key:"render",value:function(){for(var z=this.props,U=z.count,j=z.allowHalf,q=z.style,H=z.prefixCls,ee=z.disabled,oe=z.className,ye=z.character,me=z.characterRender,Le=z.tabIndex,Ce=z.direction,de=this.state,ce=de.value,ge=de.hoverValue,J=de.focused,Y=[],_e=ee?"".concat(H,"-disabled"):"",pe=0;pe<U;pe+=1)Y.push(n.a.createElement(A,{ref:this.saveRef(pe),index:pe,count:U,disabled:ee,prefixCls:"".concat(H,"-star"),allowHalf:j,value:ge===void 0?ce:ge,onClick:this.onClick,onHover:this.onHover,key:pe,character:ye,characterRender:me,focused:J}));var ke=t()(H,_e,oe,Object(k.a)({},"".concat(H,"-rtl"),Ce==="rtl"));return n.a.createElement("ul",{className:ke,style:q,onMouseLeave:ee?null:this.onMouseLeave,tabIndex:ee?-1:Le,onFocus:ee?null:this.onFocus,onBlur:ee?null:this.onBlur,onKeyDown:ee?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},Y)}}],[{key:"getDerivedStateFromProps",value:function(z,U){return"value"in z&&z.value!==void 0?O(O({},U),{},{value:z.value}):U}}]),le}(n.a.Component);R.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:w,character:"\u2605",onHoverChange:w,tabIndex:0,direction:"ltr"};var M=R,x=M,G=ve("Lerx"),N=ve.n(G),X=ve("3S7+"),B=ve("H84U"),$=function(se,W){var le={};for(var re in se)Object.prototype.hasOwnProperty.call(se,re)&&W.indexOf(re)<0&&(le[re]=se[re]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,re=Object.getOwnPropertySymbols(se);z<re.length;z++)W.indexOf(re[z])<0&&Object.prototype.propertyIsEnumerable.call(se,re[z])&&(le[re[z]]=se[re[z]]);return le},Z=Oe.forwardRef(function(se,W){var le=se.prefixCls,re=se.tooltips,z=$(se,["prefixCls","tooltips"]),U=function(ye,me){var Le=me.index;return re?Oe.createElement(X.a,{title:re[Le]},ye):ye},j=Oe.useContext(B.b),q=j.getPrefixCls,H=j.direction,ee=q("rate",le);return Oe.createElement(x,mt()({ref:W,characterRender:U},z,{prefixCls:ee,direction:H}))});Z.displayName="Rate",Z.defaultProps={character:Oe.createElement(N.a,null)};var ne=ot.a=Z},JqQi:function(ut,ot,ve){ut.exports={bg:"bg___31owl",container:"container___2NGOo"}},Lerx:function(ut,ot,ve){"use strict";Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=void 0;var nt=mt(ve("Mds0"));function mt(n){return n&&n.__esModule?n:{default:n}}var Oe=nt;ot.default=Oe,ut.exports=Oe},MRWH:function(ut,ot,ve){ut.exports={flex_box_center:"flex_box_center___30XbU",flex_space_between:"flex_space_between___3jfWA",flex_box_vertical_center:"flex_box_vertical_center___27kWs",flex_box_center_end:"flex_box_center_end___1RoAS",flex_box_column:"flex_box_column____3Jvr",list:"list___2NJ_T",box:"box___36KCF",title:"title___Kd2ce",gray:"gray___14ob6",brght:"brght___GgzyD",s1:"s1___IhDpz",s2:"s2___3hR0s",s3:"s3___23SCF",active:"active___2_5D5",line:"line___3Croa"}},Mds0:function(ut,ot,ve){"use strict";var nt=ve("284h"),mt=ve("TqRt");Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=void 0;var Oe=mt(ve("3tO9")),n=nt(ve("q1tI")),k=mt(ve("8IMR")),_=mt(ve("KQxl")),m=function(u,p){return n.createElement(_.default,(0,Oe.default)((0,Oe.default)({},u),{},{ref:p,icon:k.default}))};m.displayName="StarFilled";var b=n.forwardRef(m);ot.default=b},NLgs:function(ut,ot,ve){"use strict";ve.d(ot,"e",function(){return f}),ve.d(ot,"d",function(){return A}),ve.d(ot,"c",function(){return h}),ve.d(ot,"a",function(){return O}),ve.d(ot,"b",function(){return L});var nt=ve("WmNS"),mt=ve.n(nt),Oe=ve("miYZ"),n=ve("tsqr"),k=ve("9og8"),_=ve("2qtc"),m=ve("kLXV"),b=ve("q1tI"),o=ve.n(b),u=ve("9kvl"),p=ve("xKgJ"),l=ve("1vsH"),t=ve("RCxd"),s=ve("mOS8"),i=ve.n(s),c=ve("m3rI"),f=function(w){return!!(d(w)&&T())},d=function(w){return Object(p.h)()?!0:(w({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},T=function(){var w,R=Object(u.b)()._store.getState(),M=R.user;return((w=M.userInfo)===null||w===void 0?void 0:w.profile_completed)?!0:(m.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:o.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(){u.c.push("/account/profile/edit")}}),!1)},A=function(){var w,R=Object(u.b)()._store.getState(),M=R.user;return((w=M.userInfo)===null||w===void 0?void 0:w.professional_certification)?!0:(m.a.confirm({title:"\u63D0\u793A",centered:!0,content:o.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(l.C)("/account/certification")}}),!1)},h=function(){return Object(p.b)()?!0:(m.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:o.a.createElement("div",{className:"tc",style:{marginLeft:-38}},o.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"),o.a.createElement("img",{src:Object(p.j)()?ve("WdTA"):"".concat(c.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),o.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(p.j)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.C)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},O=function(w,R){return w?!0:(m.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:o.a.createElement("div",null,o.a.createElement("p",null,R||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),o.a.createElement("div",{style:{marginLeft:"110px"}},o.a.createElement("img",{src:ve("1ZF9"),width:200}),o.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.C)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},L=function(w){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",M=Object(u.b)()._store.getState(),x=M.shixunsDetail.detail;return(x==null?void 0:x.public)===2||(x==null?void 0:x.public)===1||(x==null?void 0:x.shixun_status)===3?(m.a.info({centered:!0,icon:o.a.createElement(t.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:o.a.createElement("div",{className:"tc",style:{marginLeft:-38}},o.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},o.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(x==null?void 0:x.public)===2?"\u5DF2\u516C\u5F00":(x==null?void 0:x.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",R,"\u3002"),o.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),o.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(x==null?void 0:x.shixun_status)===2?(m.a.confirm({centered:!0,icon:o.a.createElement(t.a,null),title:"\u63D0\u793A",content:o.a.createElement("div",null,o.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",R,"\u3002"),o.a.createElement("br",null),o.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){m.a.confirm({width:440,centered:!0,icon:o.a.createElement(t.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5C06\u65E0\u6CD5\u5728\u7EC4\u5EFA\u8BD5\u5377\u65F6\u9009\u7528\u8BE5\u5B9E\u8BAD\u9898\u3002",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var N=Object(k.a)(mt.a.mark(function B(){var $;return mt.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,w({type:"shixunsDetail/cancelRelease",payload:{id:x==null?void 0:x.identifier}});case 2:$=ne.sent,$.status!==401&&(n.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),w({type:"shixunsDetail/getShixunsDetail",payload:{id:x==null?void 0:x.identifier}}),w({type:"practiceSetting/getCommonData",payload:{id:x==null?void 0:x.identifier}}));case 4:case"end":return ne.stop()}},B)}));function X(){return N.apply(this,arguments)}return X}()})}}),!0):!1}},WdTA:function(ut,ot,ve){ut.exports=ve.p+"static/studnetqun.598eeb43.png"},eoI0:function(ut,ot,ve){ut.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},kwm0:function(ut,ot,ve){ut.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"}},mOS8:function(ut,ot,ve){ut.exports=ve.p+"static/403Qrcode.6c17b6f4.png"},nUhQ:function(ut,ot,ve){ut.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},pC0b:function(ut,ot,ve){"use strict";var nt=ve("cIOH"),mt=ve.n(nt),Oe=ve("xzDV"),n=ve.n(Oe),k=ve("5Dmo")},qGJc:function(ut,ot,ve){(function(nt){var mt,mt;!function(Oe){if(!0)window.OSS=Oe(),ut.exports=Oe();else var n}(function(){var Oe;return function(){function n(k,_,m){function b(p,l){if(!_[p]){if(!k[p]){var t=typeof mt=="function"&&mt;if(!l&&t)return mt(p,!0);if(o)return o(p,!0);var s=new Error("Cannot find module '"+p+"'");throw s.code="MODULE_NOT_FOUND",s}var i=_[p]={exports:{}};k[p][0].call(i.exports,function(c){return b(k[p][1][c]||c)},i,i.exports,n,k,_,m)}return _[p].exports}for(var o=typeof mt=="function"&&mt,u=0;u<m.length;u++)b(m[u]);return b}return n}()({1:[function(n,k,_){"use strict";var m=n("./browser/client");m.Buffer=n("buffer").Buffer,m.co=n("co"),m.urllib=n("../shims/xhr"),m.version=n("./browser/version").version,k.exports=m},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,k,_){(function(m,b){"use strict";function o(z){return z&&z.__esModule?z:{default:z}}function u(z,U){return z[U]||z[U.toLowerCase()]}function p(z,U){var j=x.parse(z);if(!j.protocol){var q=U?"https://":"http://";j=x.parse(q+z)}if(j.protocol!=="http:"&&j.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return j}function l(z,U,j){var q=j?"https://":"http://",H=U?"-internal.aliyuncs.com":".aliyuncs.com";return z.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(H=".aliyuncs.com"),x.parse(q+z+H)}function t(){return document&&document.location&&document.location.protocol==="https:"}function s(z,U){if(!(this instanceof s))return new s(z,U);z&&z.inited?this.options=z:this.options=s.initOptions(z),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=B,this.agent=this.options.agent||le),this.ctx=U,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var i=n("babel-runtime/regenerator"),c=o(i),f=n("babel-runtime/core-js/object/keys"),d=o(f),T=n("debug")("ali-oss"),A=n("./../../shims/crypto/crypto.js"),h=n("path"),O=n("copy-to"),L=n("mime"),v=n("xml2js"),w=n("humanize-ms"),R=n("agentkeepalive"),M=n("merge-descriptors"),x=n("url"),G=n("is-type-of"),N=n("platform"),X=n("utility"),B=n("urllib"),$=n("./version"),Z=n("dateformat"),ne=n("bowser"),se=n("../common/signUtils"),W=n("../common/utils"),le=new R;k.exports=s,s.initOptions=function(z){if(!z||!z.accessKeyId||!z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var U=t(),j={region:"oss-cn-hangzhou",internal:!1,secure:U,bucket:null,endpoint:null,cname:!1};if((0,d.default)(z).forEach(function(q){z[q]!==void 0&&(j[q]=z[q])}),j.accessKeyId=j.accessKeyId.trim(),j.accessKeySecret=j.accessKeySecret.trim(),j.timeout&&(j.timeout=w(j.timeout)),j.endpoint)j.endpoint=p(j.endpoint,j.secure);else{if(!j.region)throw new Error("require options.endpoint or options.region");j.endpoint=l(j.region,j.internal,j.secure)}return j.inited=!0,j};var re=s.prototype;M(re,n("./object")),M(re,n("./managed_upload")),M(re,n("../common/multipart")),M(re,n("../common/thunkpool.js")),s.Wrapper=n("./wrapper"),re.signature=function(z){return T("authorization stringToSign: %s",z),se.computeSignature(this.options.accessKeySecret,z)},re.authorization=function(z,U,j,q){var H=se.buildCanonicalString(z.toUpperCase(),U,{headers:q,parameters:j});return se.authorization(this.options.accessKeyId,this.options.accessKeySecret,H)},re.createRequest=function(z){var U={"x-oss-date":Z(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(U["x-oss-security-token"]=this.options.stsToken),O(z.headers).to(U),u(U,"Content-Type")||(z.mime===L.default_type&&(z.mime=""),z.mime&&z.mime.indexOf("/")>0?U["Content-Type"]=z.mime:U["Content-Type"]=L.getType(z.mime||h.extname(z.object||""))||"application/octet-stream"),z.content&&(U["Content-Md5"]=A.createHash("md5").update(new b(z.content,"utf8")).digest("base64"),U["Content-Length"]||(U["Content-Length"]=z.content.length));var j=this._getResource(z);U.authorization=this.authorization(z.method,j,z.subres,U);var q=this._getReqUrl(z);T("request %s %s, with headers %j, !!stream: %s",z.method,q,U,!!z.stream);var H=z.timeout||this.options.timeout;return{url:q,params:{agent:this.agent,method:z.method,content:z.content,stream:z.stream,headers:U,timeout:H,writeStream:z.writeStream,customResponse:z.customResponse,ctx:z.ctx||this.ctx}}},re.request=c.default.mark(function z(U){var j,q,H,ee;return c.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return j=this.createRequest(U),q=void 0,H=void 0,oe.prev=3,oe.next=6,this.urllib.request(j.url,j.params);case 6:q=oe.sent,T("response %s %s, got %s, headers: %j",U.method,j.url,q.status,q.headers),oe.next=13;break;case 10:oe.prev=10,oe.t0=oe.catch(3),H=oe.t0;case 13:if(ee=void 0,!q||!U.successStatuses||U.successStatuses.indexOf(q.status)!==-1){oe.next=26;break}return oe.next=17,this.requestError(q);case 17:if(ee=oe.sent,ee.code!=="RequestTimeTooSkewed"){oe.next=23;break}return this.options.amendTimeSkewed=+new Date(ee.serverTime)-new Date,oe.next=22,this.request(U);case 22:return oe.abrupt("return",oe.sent);case 23:ee.params=U,oe.next=30;break;case 26:if(!H){oe.next=30;break}return oe.next=29,this.requestError(H);case 29:ee=oe.sent;case 30:if(!ee){oe.next=32;break}throw ee;case 32:if(!U.xmlResponse){oe.next=36;break}return oe.next=35,this.parseXML(q.data);case 35:q.data=oe.sent;case 36:return oe.abrupt("return",q);case 37:case"end":return oe.stop()}},z,this,[[3,10]])}),re._getResource=function(z){var U="/";return z.bucket&&(U+=z.bucket+"/"),z.object&&(U+=z.object),U},re._isIP=function(z){return W._isIP(z)},re._escape=function(z){return X.encodeURIComponent(z).replace(/%2F/g,"/")},re._getReqUrl=function(z){var U={};O(this.options.endpoint).to(U);var j=this._isIP(U.hostname),q=this.options.cname;!z.bucket||q||j||(U.host=z.bucket+"."+U.host);var H="/";z.bucket&&j&&(H+=z.bucket+"/"),z.object&&(H+=this._escape(z.object).replace(/\+/g,"%2B")),U.pathname=H;var ee={};if(z.query&&M(ee,z.query),z.subres){var oe={};G.string(z.subres)?oe[z.subres]="":G.array(z.subres)?z.subres.forEach(function(ye){oe[ye]=""}):oe=z.subres,M(ee,oe)}return U.query=ee,x.format(U)},re._getUserAgent=function(){var z=m&&m.browser?"js":"nodejs",U="aliyun-sdk-"+z+"/"+$.version,j=N.description;return!j&&m&&(j="Node.js "+m.version.slice(1)+" on "+m.platform+" "+m.arch),this._checkUserAgent(U+" "+j)},re._checkUserAgent=function(z){return z.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},re.checkBrowserAndVersion=function(z,U){return ne.name===z&&ne.version.split(".")[0]===U},re.parseXML=function(z){return function(U){b.isBuffer(z)&&(z=z.toString()),v.parseString(z,{explicitRoot:!1,explicitArray:!1},U)}},re.requestError=c.default.mark(function z(U){var j,q,H,ee;return c.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(j=null,U.data&&U.data.length){oe.next=5;break}U.status===-1||U.status===-2?(j=new Error(U.message),j.name=U.name,j.status=U.status,j.code=U.name):(U.status===404?(j=new Error("Object not exists"),j.name="NoSuchKeyError",j.status=404,j.code="NoSuchKey"):U.status===412?(j=new Error("Pre condition failed"),j.name="PreconditionFailedError",j.status=412,j.code="PreconditionFailed"):(j=new Error("Unknow error, status: "+U.status),j.name="UnknowError",j.status=U.status),j.requestId=U.headers["x-oss-request-id"],j.host=""),oe.next=30;break;case 5:return q=String(U.data),T("request response error data: %s",q),H=void 0,oe.prev=8,oe.next=11,this.parseXML(q)||{};case 11:H=oe.sent,oe.next=21;break;case 14:return oe.prev=14,oe.t0=oe.catch(8),T(q),oe.t0.message+=`
|
|
|
raw xml: `+q,oe.t0.status=U.status,oe.t0.requestId=U.headers["x-oss-request-id"],oe.abrupt("return",oe.t0);case 21:ee=H.Message||"unknow request error, status: "+U.status,H.Condition&&(ee+=" (condition: "+H.Condition+")"),j=new Error(ee),j.name=H.Code?H.Code+"Error":"UnknowError",j.status=U.status,j.code=H.Code,j.requestId=H.RequestId,j.hostId=H.HostId,j.serverTime=H.ServerTime;case 30:return T("generate error %j",j),oe.abrupt("return",j);case 32:case"end":return oe.stop()}},z,this,[[8,14]])})}).call(this,n("_process"),n("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(n,k,_){(function(m){"use strict";function b(O){return O&&O.__esModule?O:{default:O}}function o(O,L){if(!(this instanceof o))return new o(O,L);h.call(this,L),this.file=O,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var u=n("babel-runtime/core-js/array/from"),p=b(u),l=n("babel-runtime/regenerator"),t=b(l),s=n("is-type-of"),i=n("util"),c=n("path"),f=n("mime"),d=n("copy-to"),T=_;T.multipartUpload=t.default.mark(function O(L,v,w){var R,M,x,G,N,X,B,$,Z;return t.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(this.resetCancelFlag(),w=w||{},!w.checkpoint||!w.checkpoint.uploadId){ne.next=6;break}return ne.next=5,this._resumeMultipart(w.checkpoint,w);case 5:return ne.abrupt("return",ne.sent);case 6:return R=102400,w.mime||(s.file(v)?w.mime=f.getType(c.extname(v.name)):s.blob(v)?w.mime=v.type:w.mime=f.getType(c.extname(v))),w.headers=w.headers||{},this._convertMetaToHeaders(w.meta,w.headers),ne.next=12,this._getFileSize(v);case 12:if(!((M=ne.sent)<R)){ne.next=25;break}return x=this._createStream(v,0,M),w.contentLength=M,ne.next=18,this.putStream(L,x,w);case 18:if(G=ne.sent,!w||!w.progress){ne.next=22;break}return ne.next=22,w.progress(1);case 22:return N={res:G.res,bucket:this.options.bucket,name:L,etag:G.res.headers.etag},(w.headers&&w.headers["x-oss-callback"]||w.callback)&&(N.data=G.data),ne.abrupt("return",N);case 25:if(!(w.partSize&&w.partSize<R)){ne.next=27;break}throw new Error("partSize must not be smaller than "+R);case 27:return ne.next=29,this.initMultipartUpload(L,w);case 29:if(X=ne.sent,B=X.uploadId,$=this._getPartSize(M,w.partSize),Z={file:v,name:L,fileSize:M,partSize:$,uploadId:B,doneParts:[]},!w||!w.progress){ne.next=36;break}return ne.next=36,w.progress(0,Z,X.res);case 36:return ne.next=38,this._resumeMultipart(Z,w);case 38:return ne.abrupt("return",ne.sent);case 39:case"end":return ne.stop()}},O,this)}),T._resumeMultipart=t.default.mark(function O(L,v){var w,R,M,x,G,N,X,B,$,Z,ne,se,W,le,re,z,U,j,q,H,ee;return t.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(!this.isCancel()){oe.next=2;break}throw this._makeCancelEvent();case 2:if(w=L.file,R=L.fileSize,M=L.partSize,x=L.uploadId,G=L.doneParts,N=L.name,X=[],G.length>0&&d(G).to(X),B=this._divideParts(R,M),$=B.length,Z=!1,ne=t.default.mark(function ye(me,Le){var Ce,de,ce;return t.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(me.isCancel()){ge.next=21;break}return ge.prev=1,Ce=B[Le-1],de={stream:me._createStream(w,Ce.start,Ce.end),size:Ce.end-Ce.start},ge.next=6,me._uploadPart(N,x,Le,de);case 6:if(ce=ge.sent,me.isCancel()||Z){ge.next=13;break}if(L.doneParts.push({number:Le,etag:ce.res.headers.etag}),X.push({number:Le,etag:ce.res.headers.etag}),!v||!v.progress){ge.next=13;break}return ge.next=13,v.progress(G.length/$,L,ce.res);case 13:ge.next=21;break;case 15:if(ge.prev=15,ge.t0=ge.catch(1),me.isCancel()){ge.next=21;break}throw me.cancel(),ge.t0.partNum=Le,ge.t0;case 21:case"end":return ge.stop()}},ye,this,[[1,15]])}),se=(0,p.default)(new Array($),function(ye,me){return me+1}),W=X.map(function(ye){return ye.number}),le=se.filter(function(ye){return W.indexOf(ye)<0}),re=5,z=v.parallel||re,!this.checkBrowserAndVersion("Internet Explorer","10")&&z!==1){oe.next=26;break}U=0;case 16:if(!(U<le.length)){oe.next=24;break}if(!this.isCancel()){oe.next=19;break}throw this._makeCancelEvent();case 19:return oe.next=21,ne(this,le[U]);case 21:U++,oe.next=16;break;case 24:oe.next=40;break;case 26:for(j=[],q=0;q<le.length;q++)j.push(ne(this,le[q]));return oe.next=30,this._thunkPool(j,z);case 30:if(H=oe.sent,Z=!0,!(H&&H.length>0)){oe.next=37;break}throw this.resetCancelFlag(),ee=H[0],ee.message="Failed to upload some parts with error: "+ee.toString()+" part_num: "+ee.partNum,ee;case 37:if(!this.isCancel()){oe.next=40;break}throw j=null,this._makeCancelEvent();case 40:return oe.next=42,this.completeMultipartUpload(N,x,X,v);case 42:return oe.abrupt("return",oe.sent);case 43:case"end":return oe.stop()}},O,this)}),s.file=function(O){return typeof File!="undefined"&&O instanceof File},s.blob=function(O){return typeof Blob!="undefined"&&O instanceof Blob},T._getFileSize=t.default.mark(function O(L){var v;return t.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!s.buffer(L)){w.next=4;break}return w.abrupt("return",L.length);case 4:if(!s.blob(L)&&!s.file(L)){w.next=6;break}return w.abrupt("return",L.size);case 6:if(!s.string(L)){w.next=11;break}return w.next=9,this._statFile(L);case 9:return v=w.sent,w.abrupt("return",v.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return w.stop()}},O,this)});var A=n("stream"),h=A.Readable;i.inherits(o,h),o.prototype.readFileAndPush=function(O){if(this.fileBuffer)for(var L=!0;L&&this.fileBuffer&&this.start<this.fileBuffer.length;){var v=this.start,w=v+O;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,L=this.push(this.fileBuffer.slice(v,w))}},o.prototype._read=function(O){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);O=O||16384;var L=this;this.reader.onload=function(v){L.fileBuffer=new m(new Uint8Array(v.target.result)),L.file=null,L.readFileAndPush(O)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(O)},T._createStream=function(O,L,v){if(s.blob(O)||s.file(O))return new o(O.slice(L,v));throw new Error("_createStream requires File/String.")},T._getPartSize=function(O,L){return L?Math.max(Math.ceil(O/1e4),L):1048576},T._divideParts=function(O,L){for(var v=Math.ceil(O/L),w=[],R=0;R<v;R++){var M=L*R,x=Math.min(M+L,O);w.push({start:M,end:x})}return w},T._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("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(n,k,_){"use strict";function m(L){return L&&L.__esModule?L:{default:L}}var b=n("babel-runtime/core-js/object/keys"),o=m(b),u=n("babel-runtime/regenerator"),p=m(u),l=n("debug")("ali-oss:object"),t=n("utility"),s=n("fs"),i=n("is-type-of"),c=n("url"),f=n("copy-to"),d=n("path"),T=n("mime"),A=n("../common/callback"),h=n("../common/signUtils"),O=_;O.append=p.default.mark(function L(v,w,R){var M;return p.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return R=R||{},R.position===void 0&&(R.position="0"),R.subres={append:"",position:R.position},R.method="POST",x.next=6,this.put(v,w,R);case 6:return M=x.sent,M.nextAppendPosition=M.res.headers["x-oss-next-append-position"],x.abrupt("return",M);case 9:case"end":return x.stop()}},L,this)}),O.put=p.default.mark(function L(v,w,R){var M,x,G,N,X,B;return p.default.wrap(function($){for(;;)switch($.prev=$.next){case 0:if(M=void 0,R=R||{},!i.buffer(w)){$.next=6;break}M=w,$.next=18;break;case 6:if(!i.blob(w)&&!i.file(w)){$.next=17;break}return R.mime||(i.file(w)?R.mime=T.getType(d.extname(w.name)):R.mime=w.type),x=this._createStream(w,0,w.size),$.next=11,this._getFileSize(w);case 11:return R.contentLength=$.sent,$.next=14,this.putStream(v,x,R);case 14:return $.abrupt("return",$.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return R.headers=R.headers||{},this._convertMetaToHeaders(R.meta,R.headers),G=R.method||"PUT",N=this._objectRequestParams(G,v,R),A.encodeCallback(N,R),N.mime=R.mime,N.content=M,N.successStatuses=[200],$.next=28,this.request(N);case 28:return X=$.sent,B={name:v,url:this._objectUrl(v),res:X.res},N.headers&&N.headers["x-oss-callback"]&&(B.data=JSON.parse(X.data.toString())),$.abrupt("return",B);case 32:case"end":return $.stop()}},L,this)}),O.putStream=p.default.mark(function L(v,w,R){var M,x,G,N;return p.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return R=R||{},R.headers=R.headers||{},R.contentLength?R.headers["Content-Length"]=R.contentLength:R.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(R.meta,R.headers),M=R.method||"PUT",x=this._objectRequestParams(M,v,R),A.encodeCallback(x,R),x.mime=R.mime,x.stream=w,x.successStatuses=[200],X.next=12,this.request(x);case 12:return G=X.sent,N={name:v,url:this._objectUrl(v),res:G.res},x.headers&&x.headers["x-oss-callback"]&&(N.data=JSON.parse(G.data.toString())),X.abrupt("return",N);case 16:case"end":return X.stop()}},L,this)}),O.head=p.default.mark(function L(v,w){var R,M,x;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return R=this._objectRequestParams("HEAD",v,w),R.successStatuses=[200,304],G.next=4,this.request(R);case 4:return M=G.sent,x={meta:null,res:M.res,status:M.status},M.status===200&&(0,o.default)(M.headers).forEach(function(N){N.indexOf("x-oss-meta-")===0&&(x.meta||(x.meta={}),x.meta[N.substring(11)]=M.headers[N])}),G.abrupt("return",x);case 8:case"end":return G.stop()}},L,this)}),O.get=p.default.mark(function L(v,w,R){var M,x,G,N;return p.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return M=null,x=!1,i.writableStream(w)?M=w:i.string(w)?(M=s.createWriteStream(w),x=!0):R=w,R=R||{},R.process&&(R.subres=R.subres||{},R.subres["x-oss-process"]=R.process),G=void 0,X.prev=6,N=this._objectRequestParams("GET",v,R),N.writeStream=M,N.successStatuses=[200,206,304],X.next=12,this.request(N);case 12:G=X.sent,x&&M.destroy(),X.next=24;break;case 16:if(X.prev=16,X.t0=X.catch(6),!x){X.next=23;break}return M.destroy(),l("get error: %s, delete the exists file %s",X.t0,w),X.next=23,this._deleteFileSafe(w);case 23:throw X.t0;case 24:return X.abrupt("return",{res:G.res,content:G.data});case 25:case"end":return X.stop()}},L,this,[[6,16]])}),O.getStream=p.default.mark(function L(v,w){var R,M;return p.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return w=w||{},R=this._objectRequestParams("GET",v,w),R.customResponse=!0,R.successStatuses=[200,206,304],x.next=6,this.request(R);case 6:return M=x.sent,x.abrupt("return",{stream:M.res,res:{status:M.status,headers:M.headers}});case 8:case"end":return x.stop()}},L,this)}),O.delete=p.default.mark(function L(v,w){var R,M;return p.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return R=this._objectRequestParams("DELETE",v,w),R.successStatuses=[204],x.next=4,this.request(R);case 4:return M=x.sent,x.abrupt("return",{res:M.res});case 6:case"end":return x.stop()}},L,this)}),O.deleteMulti=p.default.mark(function L(v,w){var R,M,x,G,N,X;return p.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:for(w=w||{},R=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,w.quiet?R+=` <Quiet>true</Quiet>
|
|
|
`:R+=` <Quiet>false</Quiet>
|
|
|
`,M=0;M<v.length;M++)R+=" <Object><Key>"+t.escape(this._objectName(v[M]))+`</Key></Object>
|
|
|
`;return R+="</Delete>",l("delete multi objects: %s",R),w.subres="delete",x=this._objectRequestParams("POST","",w),x.mime="xml",x.content=R,x.xmlResponse=!0,x.successStatuses=[200],B.next=14,this.request(x);case 14:return G=B.sent,N=G.data,X=N&&N.Deleted||null,X&&(Array.isArray(X)||(X=[X]),X=X.map(function($){return $.Key})),B.abrupt("return",{res:G.res,deleted:X});case 19:case"end":return B.stop()}},L,this)}),O.copy=p.default.mark(function L(v,w,R){var M,x,G;return p.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return R=R||{},R.headers=R.headers||{},(0,o.default)(R.headers).forEach(function(X){R.headers["x-oss-copy-source-"+X.toLowerCase()]=R.headers[X]}),R.meta&&(R.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(R.meta,R.headers),w=w[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(w):"/"+encodeURIComponent(w.slice(1)),R.headers["x-oss-copy-source"]=w,M=this._objectRequestParams("PUT",v,R),M.xmlResponse=!0,M.successStatuses=[200,304],N.next=12,this.request(M);case 12:return x=N.sent,G=x.data,G&&(G={etag:G.ETag,lastModified:G.LastModified}),N.abrupt("return",{data:G,res:x.res});case 16:case"end":return N.stop()}},L,this)}),O.putMeta=p.default.mark(function L(v,w,R){return p.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this.copy(v,v,{meta:w||{},timeout:R&&R.timeout,ctx:R&&R.ctx});case 2:return M.abrupt("return",M.sent);case 3:case"end":return M.stop()}},L,this)}),O.list=p.default.mark(function L(v,w){var R,M,x,G,N;return p.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return R=this._objectRequestParams("GET","",w),R.query=v,R.xmlResponse=!0,R.successStatuses=[200],X.next=6,this.request(R);case 6:return M=X.sent,x=M.data.Contents,G=this,x&&(Array.isArray(x)||(x=[x]),x=x.map(function(B){return{name:B.Key,url:G._objectUrl(B.Key),lastModified:B.LastModified,etag:B.ETag,type:B.Type,size:Number(B.Size),storageClass:B.StorageClass,owner:{id:B.Owner.ID,displayName:B.Owner.DisplayName}}})),N=M.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(B){return B.Prefix})),X.abrupt("return",{res:M.res,objects:x,prefixes:N,nextMarker:M.data.NextMarker||null,isTruncated:M.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},L,this)}),O.putACL=p.default.mark(function L(v,w,R){var M,x;return p.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return R=R||{},R.subres="acl",R.headers=R.headers||{},R.headers["x-oss-object-acl"]=w,v=this._objectName(v),M=this._objectRequestParams("PUT",v,R),M.successStatuses=[200],G.next=9,this.request(M);case 9:return x=G.sent,G.abrupt("return",{res:x.res});case 11:case"end":return G.stop()}},L,this)}),O.getACL=p.default.mark(function L(v,w){var R,M;return p.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return w=w||{},w.subres="acl",v=this._objectName(v),R=this._objectRequestParams("GET",v,w),R.successStatuses=[200],R.xmlResponse=!0,x.next=8,this.request(R);case 8:return M=x.sent,x.abrupt("return",{acl:M.data.AccessControlList.Grant,owner:{id:M.data.Owner.ID,displayName:M.data.Owner.DisplayName},res:M.res});case 10:case"end":return x.stop()}},L,this)}),O.restore=p.default.mark(function L(v,w){var R,M;return p.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return w=w||{},w.subres="restore",R=this._objectRequestParams("POST",v,w),R.successStatuses=[202],x.next=6,this.request(R);case 6:return M=x.sent,x.abrupt("return",{res:M.res});case 8:case"end":return x.stop()}},L,this)}),O.signatureUrl=function(L,v){v=v||{},L=this._objectName(L),v.method=v.method||"GET";var w=t.timestamp()+(v.expires||1800),R={bucket:this.options.bucket,object:L},M=this._getResource(R);this.options.stsToken&&(v["security-token"]=this.options.stsToken);var x=h._signatureForURL(this.options.accessKeySecret,v,M,w),G=c.parse(this._getReqUrl(R));return G.query={OSSAccessKeyId:this.options.accessKeyId,Expires:w,Signature:x.Signature},f(x.subResource).to(G.query),G.format()},O.getObjectUrl=function(L,v){return v?v[v.length-1]!=="/"&&(v+="/"):v=this.options.endpoint.format(),v+this._escape(this._objectName(L))},O._objectUrl=function(L){return this._getReqUrl({bucket:this.options.bucket,object:L})},O.generateObjectUrl=function(L,v){if(v)v[v.length-1]!=="/"&&(v+="/");else{v=this.options.endpoint.format();var w=c.parse(v),R=this.options.bucket;w.hostname=R+"."+w.hostname,w.host=R+"."+w.host,v=w.format()}return v+this._escape(this._objectName(L))},O._objectRequestParams=function(L,v,w){if(!this.options.bucket)throw new Error("Please create a bucket first");w=w||{},v=this._objectName(v);var R={object:v,bucket:this.options.bucket,method:L,subres:w&&w.subres,timeout:w&&w.timeout,ctx:w&&w.ctx};return w.headers&&(R.headers={},f(w.headers).to(R.headers)),R},O._objectName=function(L){return L.replace(/^\/+/,"")},O._statFile=function(L){return function(v){s.stat(L,v)}},O._convertMetaToHeaders=function(L,v){L&&(0,o.default)(L).forEach(function(w){v["x-oss-meta-"+w]=L[w]})},O._deleteFileSafe=function(L){return function(v){s.exists(L,function(w){w?s.unlink(L,function(R){R&&l("unlink %j error: %s",L,R),v()}):v()})}}},{"../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(n,k,_){"use strict";_.version="5.3.1"},{}],6:[function(n,k,_){"use strict";function m(d){return d&&d.__esModule?d:{default:d}}function b(d){return d&&typeof d.next=="function"&&typeof d.throw=="function"}function o(d){if(!d)return!1;var T=d.constructor;return!!T&&(T.name==="GeneratorFunction"||T.displayName==="GeneratorFunction"||b(T.prototype)||b(d.prototype))}function u(d,T){var A=new d(T),h=(0,i.default)(A),O=(0,i.default)((0,t.default)(A));h.concat(O).forEach(function(L){o(A[L])?this[L]=c.wrap(A[L]).bind(A):this[L]=A[L]},this)}function p(d){if(!(this instanceof p))return new p(d);u.call(this,f,d)}var l=n("babel-runtime/core-js/object/get-prototype-of"),t=m(l),s=n("babel-runtime/core-js/object/keys"),i=m(s),c=n("co"),f=n("./client");k.exports=p,p.STS=function d(T){if(!(this instanceof d))return new d(T);u.call(this,f.STS,T)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,k,_){(function(m){"use strict";function b(t){return t&&t.__esModule?t:{default:t}}var o=n("babel-runtime/core-js/object/keys"),u=b(o),p=n("babel-runtime/core-js/json/stringify"),l=b(p);_.encodeCallback=function(t,s){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&s.callback){var i={callbackUrl:encodeURI(s.callback.url),callbackBody:s.callback.body};s.callback.host&&(i.callbackHost=s.callback.host),s.callback.contentType&&(i.callbackBodyType=s.callback.contentType);var c=new m((0,l.default)(i)).toString("base64");if(t.headers["x-oss-callback"]=c,s.callback.customValue){var f={};(0,u.default)(s.callback.customValue).forEach(function(d){f["x:"+d]=s.callback.customValue[d]}),t.headers["x-oss-callback-var"]=new m((0,l.default)(f)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,k,_){"use strict";var m=n("babel-runtime/regenerator"),b=function(l){return l&&l.__esModule?l:{default:l}}(m),o=n("copy-to"),u=n("./callback"),p=_;p.listUploads=b.default.mark(function l(t,s){var i,c,f,d;return b.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=s||{},i={},o(s).to(i),i.subres="uploads",c=this._objectRequestParams("GET","",i),c.query=t,c.xmlResponse=!0,c.successStatuses=[200],T.next=10,this.request(c);case 10:return f=T.sent,d=f.data.Upload||[],Array.isArray(d)||(d=[d]),d=d.map(function(A){return{name:A.Key,uploadId:A.UploadId,initiated:A.Initiated}}),T.abrupt("return",{res:f.res,uploads:d,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return T.stop()}},l,this)}),p.listParts=b.default.mark(function l(t,s,i,c){var f,d,T;return b.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return c=c||{},f={},o(c).to(f),f.subres={uploadId:s},d=this._objectRequestParams("GET",t,f),d.query=i,d.xmlResponse=!0,d.successStatuses=[200],A.next=10,this.request(d);case 10:return T=A.sent,A.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return A.stop()}},l,this)}),p.abortMultipartUpload=b.default.mark(function l(t,s,i){var c,f,d;return b.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return this.cancel(),i=i||{},c={},o(i).to(c),c.subres={uploadId:s},f=this._objectRequestParams("DELETE",t,c),f.successStatuses=[204],T.next=9,this.request(f);case 9:return d=T.sent,T.abrupt("return",{res:d.res});case 11:case"end":return T.stop()}},l,this)}),p.initMultipartUpload=b.default.mark(function l(t,s){var i,c,f;return b.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=s||{},i={},o(s).to(i),i.headers=i.headers||{},this._convertMetaToHeaders(s.meta,i.headers),i.subres="uploads",c=this._objectRequestParams("POST",t,i),c.mime=s.mime,c.xmlResponse=!0,c.successStatuses=[200],d.next=12,this.request(c);case 12:return f=d.sent,d.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return d.stop()}},l,this)}),p.uploadPart=b.default.mark(function l(t,s,i,c,f,d,T){var A;return b.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return A={stream:this._createStream(c,f,d),size:d-f},h.next=3,this._uploadPart(t,s,i,A,T);case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},l,this)}),p.completeMultipartUpload=b.default.mark(function l(t,s,i,c){var f,d,T,A,h,O,L,v;return b.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(f=i.concat().sort(function(R,M){return R.number-M.number}).filter(function(R,M,x){return!M||R.number!==x[M-1].number}),d=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,T=0;T<f.length;T++)A=f[T],d+=`<Part>
|
|
|
`,d+="<PartNumber>"+A.number+`</PartNumber>
|
|
|
`,d+="<ETag>"+A.etag+`</ETag>
|
|
|
`,d+=`</Part>
|
|
|
`;return d+="</CompleteMultipartUpload>",c=c||{},h={},o(c).to(h),h.subres={uploadId:s},O=this._objectRequestParams("POST",t,h),u.encodeCallback(O,h),O.mime="xml",O.content=d,O.headers&&O.headers["x-oss-callback"]||(O.xmlResponse=!0),O.successStatuses=[200],w.next=16,this.request(O);case 16:return L=w.sent,v={res:L.res,bucket:O.bucket,name:t,etag:L.res.headers.etag},O.headers&&O.headers["x-oss-callback"]&&(v.data=JSON.parse(L.data.toString())),w.abrupt("return",v);case 20:case"end":return w.stop()}},l,this)}),p._uploadPart=b.default.mark(function l(t,s,i,c,f){var d,T,A;return b.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return f=f||{},d={},o(f).to(d),d.headers={"Content-Length":c.size},d.subres={partNumber:i,uploadId:s},T=this._objectRequestParams("PUT",t,d),T.mime=d.mime,T.stream=c.stream,T.successStatuses=[200],h.next=11,this.request(T);case 11:return A=h.sent,c.stream=null,T.stream=null,h.abrupt("return",{name:t,etag:A.res.headers.etag,res:A.res});case 15:case"end":return h.stop()}},l,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,k,_){(function(m){"use strict";function b(i){return i&&i.__esModule?i:{default:i}}var o=n("babel-runtime/core-js/json/stringify"),u=b(o),p=n("babel-runtime/core-js/object/keys"),l=b(p),t=n("./../../shims/crypto/crypto.js"),s=n("is-type-of");_.buildCanonicalizedResource=function(i,c){var f=""+i,d="?";if(s.string(c)&&c.trim()!=="")f+=d+c;else if(s.array(c))c.sort(),f+=d+c.join("&");else if(c){var T=function(O,L){return O[0]>L[0]?1:O[0]<L[0]?-1:0},A=function(O){f+=d+O,c[O]&&(f+="="+c[O]),d="&"};(0,l.default)(c).sort(T).forEach(A)}return f},_.buildCanonicalString=function(i,c,f,d){f=f||{};var T=f.headers||{},A=[],h={},O=[i.toUpperCase(),T["Content-Md5"]||"",T["Content-Type"]||T["Content-Type".toLowerCase()],d||T["x-oss-date"]];return(0,l.default)(T).forEach(function(L){var v=L.toLowerCase();v.indexOf("x-oss-")===0&&(h[v]=String(T[L]).trim())}),(0,l.default)(h).sort().forEach(function(L){A.push(L+":"+h[L])}),O=O.concat(A),O.push(this.buildCanonicalizedResource(c,f.parameters)),O.join(`
|
|
|
`)},_.computeSignature=function(i,c){return t.createHmac("sha1",i).update(new m(c,"utf8")).digest("base64")},_.authorization=function(i,c,f){return"OSS "+i+":"+this.computeSignature(c,f)},_._signatureForURL=function(i,c,f,d){var T={},A={};if(c.process&&(A["x-oss-process"]=c.process),c.response&&(0,l.default)(c.response).forEach(function(v){var w="response-"+v.toLowerCase();A[w]=c.response[v]}),(0,l.default)(c).forEach(function(v){var w=v.toLowerCase(),R=c[v];w.indexOf("x-oss-")===0?T[w]=R:w.indexOf("content-md5")===0||w.indexOf("content-type")===0?T[v]=R:w!=="expires"&&w!=="response"&&w!=="process"&&w!=="method"&&(A[w]=R)}),Object.prototype.hasOwnProperty.call(c,"security-token")&&(A["security-token"]=c["security-token"]),Object.prototype.hasOwnProperty.call(c,"callback")){var h={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};if(c.callback.host&&(h.callbackHost=c.callback.host),c.callback.contentType&&(h.callbackBodyType=c.callback.contentType),A.callback=new m((0,u.default)(h)).toString("base64"),c.callback.customValue){var O={};(0,l.default)(c.callback.customValue).forEach(function(v){O["x:"+v]=c.callback.customValue[v]}),A["callback-var"]=new m((0,u.default)(O)).toString("base64")}}var L=this.buildCanonicalString(c.method,f,{headers:T,parameters:A},d.toString());return{Signature:this.computeSignature(i,L),subResource:A}}}).call(this,n("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(n,k,_){"use strict";var m=n("babel-runtime/regenerator"),b=function(t){return t&&t.__esModule?t:{default:t}}(m),o=n("co"),u=n("co-priority-queue"),p=n("any-promise"),l=_;l._thunkPool=function(t,s){function i(A,h){++d===A.length&&h(T)}function c(A,h){function O(){var x;return b.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:x=void 0;case 1:if(f.isCancel()){G.next=9;break}return G.next=4,w.next();case 4:return x=G.sent,G.next=7,x();case 7:G.next=1;break;case 9:R+=1,R===A&&(w.fns=[],w.buffer=[],h(T));case 11:case"end":return G.stop()}},v,this)}function L(x){console.error(x.stack)}for(var v=b.default.mark(O),w=new u,R=0,M=0;M<A;M++)o(O).catch(L);return function(x,G){return function(N){w.push(b.default.mark(function X(){return b.default.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.prev=0,B.t0=N,B.next=4,x;case 4:B.t1=B.sent,(0,B.t0)(null,B.t1),B.next=11;break;case 8:B.prev=8,B.t2=B.catch(0),N(B.t2);case 11:case"end":return B.stop()}},X,this,[[0,8]])}),G)}}}var f=this,d=0,T=[];return new p(function(A){function h(R){return b.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,v(t[R]);case 2:i(t,A);case 3:case"end":return M.stop()}},L,this)}function O(R){T.push(R),i(t,A)}for(var L=b.default.mark(h),v=new c(s,A),w=0;w<t.length;w++)o(h(w)).catch(O)})},l.cancel=function(){this.options.cancelFlag=!0},l.isCancel=function(){return this.options.cancelFlag},l.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,k,_){"use strict";_._isIP=function(m){var b=/^(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 b.test(m)||o.test(m)}},{}],12:[function(n,k,_){function m(){}k.exports=m,k.exports.HttpsAgent=m},{}],13:[function(n,k,_){k.exports=n("./register")().Promise},{"./register":15}],14:[function(n,k,_){"use strict";var m=null;k.exports=function(b,o){return function(u,p){u=u||null,p=p||{};var l=p.global!==!1;if(m===null&&l&&(m=b["@@any-promise/REGISTRATION"]||null),m!==null&&u!==null&&m.implementation!==u)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=u!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:u}:o(u),l&&(b["@@any-promise/REGISTRATION"]=m)),m}}},{}],15:[function(n,k,_){"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"}}k.exports=n("./loader")(window,m)},{"./loader":14}],16:[function(n,k,_){k.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,k,_){k.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,k,_){k.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,k,_){k.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,k,_){k.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,k,_){k.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,k,_){k.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,k,_){k.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,k,_){k.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,k,_){"use strict";_.__esModule=!0,_.default=function(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,k,_){"use strict";_.__esModule=!0;var m=n("../core-js/object/define-property"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);_.default=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),(0,b.default)(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}()},{"../core-js/object/define-property":20}],32:[function(n,k,_){"use strict";function m(t){return t&&t.__esModule?t:{default:t}}_.__esModule=!0;var b=n("../core-js/symbol/iterator"),o=m(b),u=n("../core-js/symbol"),p=m(u),l=typeof p.default=="function"&&typeof o.default=="symbol"?function(t){return typeof t}:function(t){return t&&typeof p.default=="function"&&t.constructor===p.default&&t!==p.default.prototype?"symbol":typeof t};_.default=typeof p.default=="function"&&l(o.default)==="symbol"?function(t){return t===void 0?"undefined":l(t)}:function(t){return t&&typeof p.default=="function"&&t.constructor===p.default&&t!==p.default.prototype?"symbol":t===void 0?"undefined":l(t)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,k,_){k.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,k,_){"use strict";function m(A){var h=A.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=A.indexOf("=");return O===-1&&(O=h),[O,O===h?0:4-O%4]}function b(A){var h=m(A),O=h[0],L=h[1];return 3*(O+L)/4-L}function o(A,h,O){return 3*(h+O)/4-O}function u(A){for(var h,O=m(A),L=O[0],v=O[1],w=new c(o(A,L,v)),R=0,M=v>0?L-4:L,x=0;x<M;x+=4)h=i[A.charCodeAt(x)]<<18|i[A.charCodeAt(x+1)]<<12|i[A.charCodeAt(x+2)]<<6|i[A.charCodeAt(x+3)],w[R++]=h>>16&255,w[R++]=h>>8&255,w[R++]=255&h;return v===2&&(h=i[A.charCodeAt(x)]<<2|i[A.charCodeAt(x+1)]>>4,w[R++]=255&h),v===1&&(h=i[A.charCodeAt(x)]<<10|i[A.charCodeAt(x+1)]<<4|i[A.charCodeAt(x+2)]>>2,w[R++]=h>>8&255,w[R++]=255&h),w}function p(A){return s[A>>18&63]+s[A>>12&63]+s[A>>6&63]+s[63&A]}function l(A,h,O){for(var L,v=[],w=h;w<O;w+=3)L=(A[w]<<16&16711680)+(A[w+1]<<8&65280)+(255&A[w+2]),v.push(p(L));return v.join("")}function t(A){for(var h,O=A.length,L=O%3,v=[],w=0,R=O-L;w<R;w+=16383)v.push(l(A,w,w+16383>R?R:w+16383));return L===1?(h=A[O-1],v.push(s[h>>2]+s[h<<4&63]+"==")):L===2&&(h=(A[O-2]<<8)+A[O-1],v.push(s[h>>10]+s[h>>4&63]+s[h<<2&63]+"=")),v.join("")}_.byteLength=b,_.toByteArray=u,_.fromByteArray=t;for(var s=[],i=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,T=f.length;d<T;++d)s[d]=f[d],i[f.charCodeAt(d)]=d;i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],35:[function(n,k,_){!function(m,b,o){k!==void 0&&k.exports?k.exports=o():typeof Oe=="function"&&Oe.amd?Oe("bowser",o):m.bowser=o()}(this,0,function(){function m(i){function c(z){var U=i.match(z);return U&&U.length>1&&U[1]||""}function f(z){var U=i.match(z);return U&&U.length>1&&U[2]||""}var d,T=c(/(ipod|iphone|ipad)/i).toLowerCase(),A=/like android/i.test(i),h=!A&&/android/i.test(i),O=/nexus\s*[0-6]\s*/i.test(i),L=!O&&/nexus\s*[0-9]+/i.test(i),v=/CrOS/.test(i),w=/silk/i.test(i),R=/sailfish/i.test(i),M=/tizen/i.test(i),x=/(web|hpw)os/i.test(i),G=/windows phone/i.test(i),N=(/SamsungBrowser/i.test(i),!G&&/windows/i.test(i)),X=!T&&!w&&/macintosh/i.test(i),B=!h&&!R&&!M&&!x&&/linux/i.test(i),$=f(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Z=c(/version\/(\d+(\.\d+)?)/i),ne=/tablet/i.test(i)&&!/tablet pc/i.test(i),se=!ne&&/[^-]mobi/i.test(i),W=/xbox/i.test(i);/opera/i.test(i)?d={name:"Opera",opera:t,version:Z||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(i)?d={name:"Opera",opera:t,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Z}:/SamsungBrowser/i.test(i)?d={name:"Samsung Internet for Android",samsungBrowser:t,version:Z||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(i)?d={name:"Opera Coast",coast:t,version:Z||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(i)?d={name:"Yandex Browser",yandexbrowser:t,version:Z||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(i)?d={name:"UC Browser",ucbrowser:t,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(i)?d={name:"Maxthon",maxthon:t,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(i)?d={name:"Epiphany",epiphany:t,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(i)?d={name:"Puffin",puffin:t,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(i)?d={name:"Sleipnir",sleipnir:t,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(i)?d={name:"K-Meleon",kMeleon:t,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:G?(d={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},$?(d.msedge=t,d.version=$):(d.msie=t,d.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(i)?d={name:"Internet Explorer",msie:t,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:v?d={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(i)?d={name:"Microsoft Edge",msedge:t,version:$}:/vivaldi/i.test(i)?d={name:"Vivaldi",vivaldi:t,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||Z}:R?d={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(i)?d={name:"SeaMonkey",seamonkey:t,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(i)?(d={name:"Firefox",firefox:t,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(i)&&(d.firefoxos=t,d.osname="Firefox OS")):w?d={name:"Amazon Silk",silk:t,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(i)?d={name:"PhantomJS",phantom:t,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(i)?d={name:"SlimerJS",slimer:t,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(i)||/rim\stablet/i.test(i)?d={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:Z||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:x?(d={name:"WebOS",osname:"WebOS",webos:t,version:Z||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(i)&&(d.touchpad=t)):/bada/i.test(i)?d={name:"Bada",osname:"Bada",bada:t,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:M?d={name:"Tizen",osname:"Tizen",tizen:t,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Z}:/qupzilla/i.test(i)?d={name:"QupZilla",qupzilla:t,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Z}:/chromium/i.test(i)?d={name:"Chromium",chromium:t,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Z}:/chrome|crios|crmo/i.test(i)?d={name:"Chrome",chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:h?d={name:"Android",version:Z}:/safari|applewebkit/i.test(i)?(d={name:"Safari",safari:t},Z&&(d.version=Z)):T?(d={name:T=="iphone"?"iPhone":T=="ipad"?"iPad":"iPod"},Z&&(d.version=Z)):d=/googlebot/i.test(i)?{name:"Googlebot",googlebot:t,version:c(/googlebot\/(\d+(\.\d+))/i)||Z}:{name:c(/^(.*)\/(.*) /),version:f(/^(.*)\/(.*) /)},!d.msedge&&/(apple)?webkit/i.test(i)?(/(apple)?webkit\/537\.36/i.test(i)?(d.name=d.name||"Blink",d.blink=t):(d.name=d.name||"Webkit",d.webkit=t),!d.version&&Z&&(d.version=Z)):!d.opera&&/gecko\//i.test(i)&&(d.name=d.name||"Gecko",d.gecko=t,d.version=d.version||c(/gecko\/(\d+(\.\d+)?)/i)),d.windowsphone||!h&&!d.silk?!d.windowsphone&&T?(d[T]=t,d.ios=t,d.osname="iOS"):X?(d.mac=t,d.osname="macOS"):W?(d.xbox=t,d.osname="Xbox"):N?(d.windows=t,d.osname="Windows"):B&&(d.linux=t,d.osname="Linux"):(d.android=t,d.osname="Android");var le="";d.windows?le=function(z){switch(z){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}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):d.windowsphone?le=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):d.mac?(le=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),le=le.replace(/[_\s]/g,".")):T?(le=c(/os (\d+([_\s]\d+)*) like mac os x/i),le=le.replace(/[_\s]/g,".")):h?le=c(/android[ \/-](\d+(\.\d+)*)/i):d.webos?le=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):d.blackberry?le=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):d.bada?le=c(/bada\/(\d+(\.\d+)*)/i):d.tizen&&(le=c(/tizen[\/\s](\d+(\.\d+)*)/i)),le&&(d.osversion=le);var re=!d.windows&&le.split(".")[0];return ne||L||T=="ipad"||h&&(re==3||re>=4&&!se)||d.silk?d.tablet=t:(se||T=="iphone"||T=="ipod"||h||O||d.blackberry||d.webos||d.bada)&&(d.mobile=t),d.msedge||d.msie&&d.version>=10||d.yandexbrowser&&d.version>=15||d.vivaldi&&d.version>=1||d.chrome&&d.version>=20||d.samsungBrowser&&d.version>=4||d.firefox&&d.version>=20||d.safari&&d.version>=6||d.opera&&d.version>=10||d.ios&&d.osversion&&d.osversion.split(".")[0]>=6||d.blackberry&&d.version>=10.1||d.chromium&&d.version>=20?d.a=t:d.msie&&d.version<10||d.chrome&&d.version<20||d.firefox&&d.version<20||d.safari&&d.version<6||d.opera&&d.version<10||d.ios&&d.osversion&&d.osversion.split(".")[0]<6||d.chromium&&d.version<20?d.c=t:d.x=t,d}function b(i){return i.split(".").length}function o(i,c){var f,d=[];if(Array.prototype.map)return Array.prototype.map.call(i,c);for(f=0;f<i.length;f++)d.push(c(i[f]));return d}function u(i){for(var c=Math.max(b(i[0]),b(i[1])),f=o(i,function(d){var T=c-b(d);return d+=new Array(T+1).join(".0"),o(d.split("."),function(A){return new Array(20-A.length).join("0")+A}).reverse()});--c>=0;){if(f[0][c]>f[1][c])return 1;if(f[0][c]!==f[1][c])return-1;if(c===0)return 0}}function p(i,c,f){var d=s;typeof c=="string"&&(f=c,c=void 0),c===void 0&&(c=!1),f&&(d=m(f));var T=""+d.version;for(var A in i)if(i.hasOwnProperty(A)&&d[A]){if(typeof i[A]!="string")throw new Error("Browser version in the minVersion map should be a string: "+A+": "+String(i));return u([T,i[A]])<0}return c}function l(i,c,f){return!p(i,c,f)}var t=!0,s=m(typeof navigator!="undefined"&&navigator.userAgent||"");return s.test=function(i){for(var c=0;c<i.length;++c){var f=i[c];if(typeof f=="string"&&f in s)return!0}return!1},s.isUnsupportedBrowser=p,s.compareVersions=u,s.check=l,s._detect=m,s.detect=m,s})},{}],36:[function(n,k,_){},{}],37:[function(n,k,_){function m(s){if(s&&!l(s))throw new Error("Unknown encoding: "+s)}function b(s){return s.toString(this.encoding)}function o(s){this.charReceived=s.length%2,this.charLength=this.charReceived?2:0}function u(s){this.charReceived=s.length%3,this.charLength=this.charReceived?3:0}var p=n("buffer").Buffer,l=p.isEncoding||function(s){switch(s&&s.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}},t=_.StringDecoder=function(s){switch(this.encoding=(s||"utf8").toLowerCase().replace(/[-_]/,""),m(s),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=u;break;default:return void(this.write=b)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};t.prototype.write=function(s){for(var i="";this.charLength;){var c=s.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:s.length;if(s.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";s=s.slice(c,s.length),i=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=i.charCodeAt(i.length-1);if(!(d>=55296&&d<=56319)){if(this.charReceived=this.charLength=0,s.length===0)return i;break}this.charLength+=this.surrogateSize,i=""}this.detectIncompleteChar(s);var f=s.length;this.charLength&&(s.copy(this.charBuffer,0,s.length-this.charReceived,f),f-=this.charReceived),i+=s.toString(this.encoding,0,f);var f=i.length-1,d=i.charCodeAt(f);if(d>=55296&&d<=56319){var T=this.surrogateSize;return this.charLength+=T,this.charReceived+=T,this.charBuffer.copy(this.charBuffer,T,0,T),s.copy(this.charBuffer,0,0,T),i.substring(0,f)}return i},t.prototype.detectIncompleteChar=function(s){for(var i=s.length>=3?3:s.length;i>0;i--){var c=s[s.length-i];if(i==1&&c>>5==6){this.charLength=2;break}if(i<=2&&c>>4==14){this.charLength=3;break}if(i<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=i},t.prototype.end=function(s){var i="";if(s&&s.length&&(i=this.write(s)),this.charReceived){var c=this.charReceived,f=this.charBuffer,d=this.encoding;i+=f.slice(0,c).toString(d)}return i}},{buffer:38}],38:[function(n,k,_){(function(m){"use strict";function b(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,r){if(b()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r),e.__proto__=u.prototype):(e===null&&(e=new u(r)),e.length=r),e}function u(e,r,C){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,r,C);if(typeof e=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,e)}return p(this,e,r,C)}function p(e,r,C,g){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?f(e,r,C,g):typeof r=="string"?i(e,r,C):d(e,r)}function l(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function t(e,r,C,g){return l(r),r<=0?o(e,r):C!==void 0?typeof g=="string"?o(e,r).fill(C,g):o(e,r).fill(C):o(e,r)}function s(e,r){if(l(r),e=o(e,r<0?0:0|T(r)),!u.TYPED_ARRAY_SUPPORT)for(var C=0;C<r;++C)e[C]=0;return e}function i(e,r,C){if(typeof C=="string"&&C!==""||(C="utf8"),!u.isEncoding(C))throw new TypeError('"encoding" must be a valid string encoding');var g=0|h(r,C);e=o(e,g);var E=e.write(r,C);return E!==g&&(e=e.slice(0,E)),e}function c(e,r){var C=r.length<0?0:0|T(r.length);e=o(e,C);for(var g=0;g<C;g+=1)e[g]=255&r[g];return e}function f(e,r,C,g){if(r.byteLength,C<0||r.byteLength<C)throw new RangeError("'offset' is out of bounds");if(r.byteLength<C+(g||0))throw new RangeError("'length' is out of bounds");return r=C===void 0&&g===void 0?new Uint8Array(r):g===void 0?new Uint8Array(r,C):new Uint8Array(r,C,g),u.TYPED_ARRAY_SUPPORT?(e=r,e.__proto__=u.prototype):e=c(e,r),e}function d(e,r){if(u.isBuffer(r)){var C=0|T(r.length);return e=o(e,C),e.length===0||r.copy(e,0,0,C),e}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||J(r.length)?o(e,0):c(e,r);if(r.type==="Buffer"&&pe(r.data))return c(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function T(e){if(e>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return 0|e}function A(e){return+e!=e&&(e=0),u.alloc(+e)}function h(e,r){if(u.isBuffer(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var C=e.length;if(C===0)return 0;for(var g=!1;;)switch(r){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":case void 0:return Le(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*C;case"hex":return C>>>1;case"base64":return ce(e).length;default:if(g)return Le(e).length;r=(""+r).toLowerCase(),g=!0}}function O(e,r,C){var g=!1;if((r===void 0||r<0)&&(r=0),r>this.length)return"";if((C===void 0||C>this.length)&&(C=this.length),C<=0)return"";if(C>>>=0,r>>>=0,C<=r)return"";for(e||(e="utf8");;)switch(e){case"hex":return W(this,r,C);case"utf8":case"utf-8":return $(this,r,C);case"ascii":return ne(this,r,C);case"latin1":case"binary":return se(this,r,C);case"base64":return B(this,r,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,r,C);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),g=!0}}function L(e,r,C){var g=e[r];e[r]=e[C],e[C]=g}function v(e,r,C,g,E){if(e.length===0)return-1;if(typeof C=="string"?(g=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,isNaN(C)&&(C=E?0:e.length-1),C<0&&(C=e.length+C),C>=e.length){if(E)return-1;C=e.length-1}else if(C<0){if(!E)return-1;C=0}if(typeof r=="string"&&(r=u.from(r,g)),u.isBuffer(r))return r.length===0?-1:w(e,r,C,g,E);if(typeof r=="number")return r&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?E?Uint8Array.prototype.indexOf.call(e,r,C):Uint8Array.prototype.lastIndexOf.call(e,r,C):w(e,[r],C,g,E);throw new TypeError("val must be string, number or Buffer")}function w(e,r,C,g,E){function K(Me,lt){return ie===1?Me[lt]:Me.readUInt16BE(lt*ie)}var ie=1,ze=e.length,Ue=r.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(e.length<2||r.length<2)return-1;ie=2,ze/=2,Ue/=2,C/=2}var Ke;if(E){var et=-1;for(Ke=C;Ke<ze;Ke++)if(K(e,Ke)===K(r,et===-1?0:Ke-et)){if(et===-1&&(et=Ke),Ke-et+1===Ue)return et*ie}else et!==-1&&(Ke-=Ke-et),et=-1}else for(C+Ue>ze&&(C=ze-Ue),Ke=C;Ke>=0;Ke--){for(var at=!0,ct=0;ct<Ue;ct++)if(K(e,Ke+ct)!==K(r,ct)){at=!1;break}if(at)return Ke}return-1}function R(e,r,C,g){C=Number(C)||0;var E=e.length-C;g?(g=Number(g))>E&&(g=E):g=E;var K=r.length;if(K%2!=0)throw new TypeError("Invalid hex string");g>K/2&&(g=K/2);for(var ie=0;ie<g;++ie){var ze=parseInt(r.substr(2*ie,2),16);if(isNaN(ze))return ie;e[C+ie]=ze}return ie}function M(e,r,C,g){return ge(Le(r,e.length-C),e,C,g)}function x(e,r,C,g){return ge(Ce(r),e,C,g)}function G(e,r,C,g){return x(e,r,C,g)}function N(e,r,C,g){return ge(ce(r),e,C,g)}function X(e,r,C,g){return ge(de(r,e.length-C),e,C,g)}function B(e,r,C){return r===0&&C===e.length?Y.fromByteArray(e):Y.fromByteArray(e.slice(r,C))}function $(e,r,C){C=Math.min(e.length,C);for(var g=[],E=r;E<C;){var K=e[E],ie=null,ze=K>239?4:K>223?3:K>191?2:1;if(E+ze<=C){var Ue,Ke,et,at;switch(ze){case 1:K<128&&(ie=K);break;case 2:Ue=e[E+1],(192&Ue)==128&&(at=(31&K)<<6|63&Ue)>127&&(ie=at);break;case 3:Ue=e[E+1],Ke=e[E+2],(192&Ue)==128&&(192&Ke)==128&&(at=(15&K)<<12|(63&Ue)<<6|63&Ke)>2047&&(at<55296||at>57343)&&(ie=at);break;case 4:Ue=e[E+1],Ke=e[E+2],et=e[E+3],(192&Ue)==128&&(192&Ke)==128&&(192&et)==128&&(at=(15&K)<<18|(63&Ue)<<12|(63&Ke)<<6|63&et)>65535&&at<1114112&&(ie=at)}}ie===null?(ie=65533,ze=1):ie>65535&&(ie-=65536,g.push(ie>>>10&1023|55296),ie=56320|1023&ie),g.push(ie),E+=ze}return Z(g)}function Z(e){var r=e.length;if(r<=ke)return String.fromCharCode.apply(String,e);for(var C="",g=0;g<r;)C+=String.fromCharCode.apply(String,e.slice(g,g+=ke));return C}function ne(e,r,C){var g="";C=Math.min(e.length,C);for(var E=r;E<C;++E)g+=String.fromCharCode(127&e[E]);return g}function se(e,r,C){var g="";C=Math.min(e.length,C);for(var E=r;E<C;++E)g+=String.fromCharCode(e[E]);return g}function W(e,r,C){var g=e.length;(!r||r<0)&&(r=0),(!C||C<0||C>g)&&(C=g);for(var E="",K=r;K<C;++K)E+=me(e[K]);return E}function le(e,r,C){for(var g=e.slice(r,C),E="",K=0;K<g.length;K+=2)E+=String.fromCharCode(g[K]+256*g[K+1]);return E}function re(e,r,C){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+r>C)throw new RangeError("Trying to access beyond buffer length")}function z(e,r,C,g,E,K){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>E||r<K)throw new RangeError('"value" argument is out of bounds');if(C+g>e.length)throw new RangeError("Index out of range")}function U(e,r,C,g){r<0&&(r=65535+r+1);for(var E=0,K=Math.min(e.length-C,2);E<K;++E)e[C+E]=(r&255<<8*(g?E:1-E))>>>8*(g?E:1-E)}function j(e,r,C,g){r<0&&(r=4294967295+r+1);for(var E=0,K=Math.min(e.length-C,4);E<K;++E)e[C+E]=r>>>8*(g?E:3-E)&255}function q(e,r,C,g,E,K){if(C+g>e.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function H(e,r,C,g,E){return E||q(e,r,C,4,34028234663852886e22,-34028234663852886e22),_e.write(e,r,C,g,23,4),C+4}function ee(e,r,C,g,E){return E||q(e,r,C,8,17976931348623157e292,-17976931348623157e292),_e.write(e,r,C,g,52,8),C+8}function oe(e){if(e=ye(e).replace(I,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function ye(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function me(e){return e<16?"0"+e.toString(16):e.toString(16)}function Le(e,r){r=r||1/0;for(var C,g=e.length,E=null,K=[],ie=0;ie<g;++ie){if((C=e.charCodeAt(ie))>55295&&C<57344){if(!E){if(C>56319){(r-=3)>-1&&K.push(239,191,189);continue}if(ie+1===g){(r-=3)>-1&&K.push(239,191,189);continue}E=C;continue}if(C<56320){(r-=3)>-1&&K.push(239,191,189),E=C;continue}C=65536+(E-55296<<10|C-56320)}else E&&(r-=3)>-1&&K.push(239,191,189);if(E=null,C<128){if((r-=1)<0)break;K.push(C)}else if(C<2048){if((r-=2)<0)break;K.push(C>>6|192,63&C|128)}else if(C<65536){if((r-=3)<0)break;K.push(C>>12|224,C>>6&63|128,63&C|128)}else{if(!(C<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;K.push(C>>18|240,C>>12&63|128,C>>6&63|128,63&C|128)}}return K}function Ce(e){for(var r=[],C=0;C<e.length;++C)r.push(255&e.charCodeAt(C));return r}function de(e,r){for(var C,g,E,K=[],ie=0;ie<e.length&&!((r-=2)<0);++ie)C=e.charCodeAt(ie),g=C>>8,E=C%256,K.push(E),K.push(g);return K}function ce(e){return Y.toByteArray(oe(e))}function ge(e,r,C,g){for(var E=0;E<g&&!(E+C>=r.length||E>=e.length);++E)r[E+C]=e[E];return E}function J(e){return e!==e}var Y=n("base64-js"),_e=n("ieee754"),pe=n("isarray");_.Buffer=u,_.SlowBuffer=A,_.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42&&typeof e.subarray=="function"&&e.subarray(1,1).byteLength===0}catch(r){return!1}}(),_.kMaxLength=b(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,r,C){return p(null,e,r,C)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,r,C){return t(null,e,r,C)},u.allocUnsafe=function(e){return s(null,e)},u.allocUnsafeSlow=function(e){return s(null,e)},u.isBuffer=function(e){return!(e==null||!e._isBuffer)},u.compare=function(e,r){if(!u.isBuffer(e)||!u.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var C=e.length,g=r.length,E=0,K=Math.min(C,g);E<K;++E)if(e[E]!==r[E]){C=e[E],g=r[E];break}return C<g?-1:g<C?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,r){if(!pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return u.alloc(0);var C;if(r===void 0)for(r=0,C=0;C<e.length;++C)r+=e[C].length;var g=u.allocUnsafe(r),E=0;for(C=0;C<e.length;++C){var K=e[C];if(!u.isBuffer(K))throw new TypeError('"list" argument must be an Array of Buffers');K.copy(g,E),E+=K.length}return g},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)L(this,r,r+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)L(this,r,r+3),L(this,r+1,r+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)L(this,r,r+7),L(this,r+1,r+6),L(this,r+2,r+5),L(this,r+3,r+4);return this},u.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?$(this,0,e):O.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||u.compare(this,e)===0},u.prototype.inspect=function(){var e="",r=_.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,r,C,g,E){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),C===void 0&&(C=e?e.length:0),g===void 0&&(g=0),E===void 0&&(E=this.length),r<0||C>e.length||g<0||E>this.length)throw new RangeError("out of range index");if(g>=E&&r>=C)return 0;if(g>=E)return-1;if(r>=C)return 1;if(r>>>=0,C>>>=0,g>>>=0,E>>>=0,this===e)return 0;for(var K=E-g,ie=C-r,ze=Math.min(K,ie),Ue=this.slice(g,E),Ke=e.slice(r,C),et=0;et<ze;++et)if(Ue[et]!==Ke[et]){K=Ue[et],ie=Ke[et];break}return K<ie?-1:ie<K?1:0},u.prototype.includes=function(e,r,C){return this.indexOf(e,r,C)!==-1},u.prototype.indexOf=function(e,r,C){return v(this,e,r,C,!0)},u.prototype.lastIndexOf=function(e,r,C){return v(this,e,r,C,!1)},u.prototype.write=function(e,r,C,g){if(r===void 0)g="utf8",C=this.length,r=0;else if(C===void 0&&typeof r=="string")g=r,C=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(C)?(C|=0,g===void 0&&(g="utf8")):(g=C,C=void 0)}var E=this.length-r;if((C===void 0||C>E)&&(C=E),e.length>0&&(C<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var K=!1;;)switch(g){case"hex":return R(this,e,r,C);case"utf8":case"utf-8":return M(this,e,r,C);case"ascii":return x(this,e,r,C);case"latin1":case"binary":return G(this,e,r,C);case"base64":return N(this,e,r,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,e,r,C);default:if(K)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),K=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ke=4096;u.prototype.slice=function(e,r){var C=this.length;e=~~e,r=r===void 0?C:~~r,e<0?(e+=C)<0&&(e=0):e>C&&(e=C),r<0?(r+=C)<0&&(r=0):r>C&&(r=C),r<e&&(r=e);var g;if(u.TYPED_ARRAY_SUPPORT)g=this.subarray(e,r),g.__proto__=u.prototype;else{var E=r-e;g=new u(E,void 0);for(var K=0;K<E;++K)g[K]=this[K+e]}return g},u.prototype.readUIntLE=function(e,r,C){e|=0,r|=0,C||re(e,r,this.length);for(var g=this[e],E=1,K=0;++K<r&&(E*=256);)g+=this[e+K]*E;return g},u.prototype.readUIntBE=function(e,r,C){e|=0,r|=0,C||re(e,r,this.length);for(var g=this[e+--r],E=1;r>0&&(E*=256);)g+=this[e+--r]*E;return g},u.prototype.readUInt8=function(e,r){return r||re(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,r){return r||re(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,r){return r||re(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,r){return r||re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,r){return r||re(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,r,C){e|=0,r|=0,C||re(e,r,this.length);for(var g=this[e],E=1,K=0;++K<r&&(E*=256);)g+=this[e+K]*E;return E*=128,g>=E&&(g-=Math.pow(2,8*r)),g},u.prototype.readIntBE=function(e,r,C){e|=0,r|=0,C||re(e,r,this.length);for(var g=r,E=1,K=this[e+--g];g>0&&(E*=256);)K+=this[e+--g]*E;return E*=128,K>=E&&(K-=Math.pow(2,8*r)),K},u.prototype.readInt8=function(e,r){return r||re(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,r){r||re(e,2,this.length);var C=this[e]|this[e+1]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt16BE=function(e,r){r||re(e,2,this.length);var C=this[e+1]|this[e]<<8;return 32768&C?4294901760|C:C},u.prototype.readInt32LE=function(e,r){return r||re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,r){return r||re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,r){return r||re(e,4,this.length),_e.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,r){return r||re(e,4,this.length),_e.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,r){return r||re(e,8,this.length),_e.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,r){return r||re(e,8,this.length),_e.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,r,C,g){(e=+e,r|=0,C|=0,!g)&&z(this,e,r,C,Math.pow(2,8*C)-1,0);var E=1,K=0;for(this[r]=255&e;++K<C&&(E*=256);)this[r+K]=e/E&255;return r+C},u.prototype.writeUIntBE=function(e,r,C,g){(e=+e,r|=0,C|=0,!g)&&z(this,e,r,C,Math.pow(2,8*C)-1,0);var E=C-1,K=1;for(this[r+E]=255&e;--E>=0&&(K*=256);)this[r+E]=e/K&255;return r+C},u.prototype.writeUInt8=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},u.prototype.writeUInt16LE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},u.prototype.writeUInt16BE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},u.prototype.writeUInt32LE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):j(this,e,r,!0),r+4},u.prototype.writeUInt32BE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):j(this,e,r,!1),r+4},u.prototype.writeIntLE=function(e,r,C,g){if(e=+e,r|=0,!g){var E=Math.pow(2,8*C-1);z(this,e,r,C,E-1,-E)}var K=0,ie=1,ze=0;for(this[r]=255&e;++K<C&&(ie*=256);)e<0&&ze===0&&this[r+K-1]!==0&&(ze=1),this[r+K]=(e/ie>>0)-ze&255;return r+C},u.prototype.writeIntBE=function(e,r,C,g){if(e=+e,r|=0,!g){var E=Math.pow(2,8*C-1);z(this,e,r,C,E-1,-E)}var K=C-1,ie=1,ze=0;for(this[r+K]=255&e;--K>=0&&(ie*=256);)e<0&&ze===0&&this[r+K+1]!==0&&(ze=1),this[r+K]=(e/ie>>0)-ze&255;return r+C},u.prototype.writeInt8=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=255&e,r+1},u.prototype.writeInt16LE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):U(this,e,r,!0),r+2},u.prototype.writeInt16BE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):U(this,e,r,!1),r+2},u.prototype.writeInt32LE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):j(this,e,r,!0),r+4},u.prototype.writeInt32BE=function(e,r,C){return e=+e,r|=0,C||z(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):j(this,e,r,!1),r+4},u.prototype.writeFloatLE=function(e,r,C){return H(this,e,r,!0,C)},u.prototype.writeFloatBE=function(e,r,C){return H(this,e,r,!1,C)},u.prototype.writeDoubleLE=function(e,r,C){return ee(this,e,r,!0,C)},u.prototype.writeDoubleBE=function(e,r,C){return ee(this,e,r,!1,C)},u.prototype.copy=function(e,r,C,g){if(C||(C=0),g||g===0||(g=this.length),r>=e.length&&(r=e.length),r||(r=0),g>0&&g<C&&(g=C),g===C)return 0;if(e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("sourceStart out of bounds");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),e.length-r<g-C&&(g=e.length-r+C);var E,K=g-C;if(this===e&&C<r&&r<g)for(E=K-1;E>=0;--E)e[E+r]=this[E+C];else if(K<1e3||!u.TYPED_ARRAY_SUPPORT)for(E=0;E<K;++E)e[E+r]=this[E+C];else Uint8Array.prototype.set.call(e,this.subarray(C,C+K),r);return K},u.prototype.fill=function(e,r,C,g){if(typeof e=="string"){if(typeof r=="string"?(g=r,r=0,C=this.length):typeof C=="string"&&(g=C,C=this.length),e.length===1){var E=e.charCodeAt(0);E<256&&(e=E)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof e=="number"&&(e&=255);if(r<0||this.length<r||this.length<C)throw new RangeError("Out of range index");if(C<=r)return this;r>>>=0,C=C===void 0?this.length:C>>>0,e||(e=0);var K;if(typeof e=="number")for(K=r;K<C;++K)this[K]=e;else{var ie=u.isBuffer(e)?e:Le(new u(e,g).toString()),ze=ie.length;for(K=0;K<C-r;++K)this[K+r]=ie[K%ze]}return this};var I=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,k,_){k.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(n,k,_){"use strict";var m=function(){this.buffer=[],this.fns=[]};m.prototype.push=function(o,u){if(this.fns.length)return this.fns.shift()(null,o);var p={data:o,priority:u},l=b(this.buffer,p,function(t){return t.priority});this.buffer.splice(l,0,p)},m.prototype.next=function(){var o=this;return function(u){if(o.buffer.length)return u(null,o.buffer.pop().data);o.fns.push(u)}};var b=function(u,p,l){p=l(p);for(var t=0,s=u?u.length:t;t<s;){var i=t+s>>>1;l(u[i])<p?t=i+1:s=i}return t};k.exports=m},{}],41:[function(n,k,_){function m(f){var d=this,T=c.call(arguments,1);return new Promise(function(A,h){function O(w){var R;try{R=f.next(w)}catch(M){return h(M)}v(R)}function L(w){var R;try{R=f.throw(w)}catch(M){return h(M)}v(R)}function v(w){if(w.done)return A(w.value);var R=b.call(d,w.value);return R&&l(R)?R.then(O,L):L(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(w.value)+'"'))}if(typeof f=="function"&&(f=f.apply(d,T)),!f||typeof f.next!="function")return A(f);O()})}function b(f){return f&&(l(f)?f:s(f)||t(f)?m.call(this,f):typeof f=="function"?o.call(this,f):Array.isArray(f)?u.call(this,f):i(f)?p.call(this,f):f)}function o(f){var d=this;return new Promise(function(T,A){f.call(d,function(h,O){if(h)return A(h);arguments.length>2&&(O=c.call(arguments,1)),T(O)})})}function u(f){return Promise.all(f.map(b,this))}function p(f){for(var d=new f.constructor,T=Object.keys(f),A=[],h=0;h<T.length;h++){var O=T[h],L=b.call(this,f[O]);L&&l(L)?function(v,w){d[w]=void 0,A.push(v.then(function(R){d[w]=R}))}(L,O):d[O]=f[O]}return Promise.all(A).then(function(){return d})}function l(f){return typeof f.then=="function"}function t(f){return typeof f.next=="function"&&typeof f.throw=="function"}function s(f){var d=f.constructor;return!!d&&(d.name==="GeneratorFunction"||d.displayName==="GeneratorFunction"||t(d.prototype))}function i(f){return Object==f.constructor}var c=Array.prototype.slice;k.exports=m.default=m.co=m,m.wrap=function(f){function d(){return m.call(this,f.apply(this,arguments))}return d.__generatorFunction__=f,d}},{}],42:[function(n,k,_){k.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(n,k,_){"use strict";function m(u,p){if(!(this instanceof m))return new m(u,p);this.src=u,this._withAccess=p}function b(u,p){return u[p]===void 0&&u.__lookupGetter__(p)===void 0&&u.__lookupSetter__(p)===void 0}var o=Array.prototype.slice;k.exports=m,m.prototype.withAccess=function(u){return this._withAccess=u!==!1,this},m.prototype.pick=function(u){return Array.isArray(u)||(u=o.call(arguments)),u.length&&(this.keys=u),this},m.prototype.to=function(u){if(u=u||{},!this.src)return u;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var l=0;l<p.length;l++)t=p[l],u[t]===void 0&&(u[t]=this.src[t]);return u}for(var l=0;l<p.length;l++){var t=p[l];if(b(u,t)){var s=this.src.__lookupGetter__(t),i=this.src.__lookupSetter__(t);s&&u.__defineGetter__(t,s),i&&u.__defineSetter__(t,i),s||i||(u[t]=this.src[t])}}return u},m.prototype.toCover=function(u){for(var p=this.keys||Object.keys(this.src),l=0;l<p.length;l++){var t=p[l];delete u[t];var s=this.src.__lookupGetter__(t),i=this.src.__lookupSetter__(t);s&&u.__defineGetter__(t,s),i&&u.__defineSetter__(t,i),s||i||(u[t]=this.src[t])}},m.prototype.override=m.prototype.toCover,m.prototype.and=function(u){var p={};return this.to(p),this.src=u,this.to(p),this.src=p,this}},{}],44:[function(n,k,_){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),k.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,k,_){var m=n("../../modules/_core"),b=m.JSON||(m.JSON={stringify:JSON.stringify});k.exports=function(o){return b.stringify.apply(b,arguments)}},{"../../modules/_core":65}],46:[function(n,k,_){n("../../modules/es6.object.assign"),k.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,k,_){n("../../modules/es6.object.create");var m=n("../../modules/_core").Object;k.exports=function(b,o){return m.create(b,o)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,k,_){n("../../modules/es6.object.define-property");var m=n("../../modules/_core").Object;k.exports=function(b,o,u){return m.defineProperty(b,o,u)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,k,_){n("../../modules/es6.object.get-own-property-names");var m=n("../../modules/_core").Object;k.exports=function(b){return m.getOwnPropertyNames(b)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,k,_){n("../../modules/es6.object.get-prototype-of"),k.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,k,_){n("../../modules/es6.object.keys"),k.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,k,_){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),k.exports=n("../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(n,k,_){n("../modules/web.immediate"),k.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,k,_){n("../../modules/es6.string.from-code-point"),k.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,k,_){n("../../modules/es6.function.has-instance"),k.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,k,_){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),k.exports=n("../../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(n,k,_){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),k.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,k,_){k.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],59:[function(n,k,_){k.exports=function(){}},{}],60:[function(n,k,_){k.exports=function(m,b,o,u){if(!(m instanceof b)||u!==void 0&&u in m)throw TypeError(o+": incorrect invocation!");return m}},{}],61:[function(n,k,_){var m=n("./_is-object");k.exports=function(b){if(!m(b))throw TypeError(b+" is not an object!");return b}},{"./_is-object":85}],62:[function(n,k,_){var m=n("./_to-iobject"),b=n("./_to-length"),o=n("./_to-absolute-index");k.exports=function(u){return function(p,l,t){var s,i=m(p),c=b(i.length),f=o(t,c);if(u&&l!=l){for(;c>f;)if((s=i[f++])!=s)return!0}else for(;c>f;f++)if((u||f in i)&&i[f]===l)return u||f||0;return!u&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,k,_){var m=n("./_cof"),b=n("./_wks")("toStringTag"),o=m(function(){return arguments}())=="Arguments",u=function(l,t){try{return l[t]}catch(s){}};k.exports=function(p){var l,t,s;return p===void 0?"Undefined":p===null?"Null":typeof(t=u(l=Object(p),b))=="string"?t:o?m(l):(s=m(l))=="Object"&&typeof l.callee=="function"?"Arguments":s}},{"./_cof":64,"./_wks":131}],64:[function(n,k,_){var m={}.toString;k.exports=function(b){return m.call(b).slice(8,-1)}},{}],65:[function(n,k,_){var m=k.exports={version:"2.5.7"};typeof __e=="number"&&(__e=m)},{}],66:[function(n,k,_){"use strict";var m=n("./_object-dp"),b=n("./_property-desc");k.exports=function(o,u,p){u in o?m.f(o,u,b(0,p)):o[u]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,k,_){var m=n("./_a-function");k.exports=function(b,o,u){if(m(b),o===void 0)return b;switch(u){case 1:return function(p){return b.call(o,p)};case 2:return function(p,l){return b.call(o,p,l)};case 3:return function(p,l,t){return b.call(o,p,l,t)}}return function(){return b.apply(o,arguments)}}},{"./_a-function":58}],68:[function(n,k,_){k.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],69:[function(n,k,_){k.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,k,_){var m=n("./_is-object"),b=n("./_global").document,o=m(b)&&m(b.createElement);k.exports=function(u){return o?b.createElement(u):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,k,_){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,k,_){var m=n("./_object-keys"),b=n("./_object-gops"),o=n("./_object-pie");k.exports=function(u){var p=m(u),l=b.f;if(l)for(var t,s=l(u),i=o.f,c=0;s.length>c;)i.call(u,t=s[c++])&&p.push(t);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,k,_){var m=n("./_global"),b=n("./_core"),o=n("./_ctx"),u=n("./_hide"),p=n("./_has"),l=function t(s,i,c){var f,d,T,A=s&t.F,h=s&t.G,O=s&t.S,L=s&t.P,v=s&t.B,w=s&t.W,R=h?b:b[i]||(b[i]={}),M=R.prototype,x=h?m:O?m[i]:(m[i]||{}).prototype;h&&(c=i);for(f in c)(d=!A&&x&&x[f]!==void 0)&&p(R,f)||(T=d?x[f]:c[f],R[f]=h&&typeof x[f]!="function"?c[f]:v&&d?o(T,m):w&&x[f]==T?function(G){var N=function(B,$,Z){if(this instanceof G){switch(arguments.length){case 0:return new G;case 1:return new G(B);case 2:return new G(B,$)}return new G(B,$,Z)}return G.apply(this,arguments)};return N.prototype=G.prototype,N}(T):L&&typeof T=="function"?o(Function.call,T):T,L&&((R.virtual||(R.virtual={}))[f]=T,s&t.R&&M&&!M[f]&&u(M,f,T)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,k.exports=l},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,k,_){k.exports=function(m){try{return!!m()}catch(b){return!0}}},{}],75:[function(n,k,_){var m=n("./_ctx"),b=n("./_iter-call"),o=n("./_is-array-iter"),u=n("./_an-object"),p=n("./_to-length"),l=n("./core.get-iterator-method"),t={},s={},_=k.exports=function(i,c,f,d,T){var A,h,O,L,v=T?function(){return i}:l(i),w=m(f,d,c?2:1),R=0;if(typeof v!="function")throw TypeError(i+" is not iterable!");if(o(v)){for(A=p(i.length);A>R;R++)if((L=c?w(u(h=i[R])[0],h[1]):w(i[R]))===t||L===s)return L}else for(O=v.call(i);!(h=O.next()).done;)if((L=b(O,w,h.value,c))===t||L===s)return L};_.BREAK=t,_.RETURN=s},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,k,_){var m=k.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(n,k,_){var m={}.hasOwnProperty;k.exports=function(b,o){return m.call(b,o)}},{}],78:[function(n,k,_){var m=n("./_object-dp"),b=n("./_property-desc");k.exports=n("./_descriptors")?function(o,u,p){return m.f(o,u,b(1,p))}:function(o,u,p){return o[u]=p,o}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,k,_){var m=n("./_global").document;k.exports=m&&m.documentElement},{"./_global":76}],80:[function(n,k,_){k.exports=!n("./_descriptors")&&!n("./_fails")(function(){return Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(n,k,_){k.exports=function(m,b,o){var u=o===void 0;switch(b.length){case 0:return u?m():m.call(o);case 1:return u?m(b[0]):m.call(o,b[0]);case 2:return u?m(b[0],b[1]):m.call(o,b[0],b[1]);case 3:return u?m(b[0],b[1],b[2]):m.call(o,b[0],b[1],b[2]);case 4:return u?m(b[0],b[1],b[2],b[3]):m.call(o,b[0],b[1],b[2],b[3])}return m.apply(o,b)}},{}],82:[function(n,k,_){var m=n("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(b){return m(b)=="String"?b.split(""):Object(b)}},{"./_cof":64}],83:[function(n,k,_){var m=n("./_iterators"),b=n("./_wks")("iterator"),o=Array.prototype;k.exports=function(u){return u!==void 0&&(m.Array===u||o[b]===u)}},{"./_iterators":91,"./_wks":131}],84:[function(n,k,_){var m=n("./_cof");k.exports=Array.isArray||function(b){return m(b)=="Array"}},{"./_cof":64}],85:[function(n,k,_){k.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],86:[function(n,k,_){var m=n("./_an-object");k.exports=function(b,o,u,p){try{return p?o(m(u)[0],u[1]):o(u)}catch(t){var l=b.return;throw l!==void 0&&m(l.call(b)),t}}},{"./_an-object":61}],87:[function(n,k,_){"use strict";var m=n("./_object-create"),b=n("./_property-desc"),o=n("./_set-to-string-tag"),u={};n("./_hide")(u,n("./_wks")("iterator"),function(){return this}),k.exports=function(p,l,t){p.prototype=m(u,{next:b(1,t)}),o(p,l+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,k,_){"use strict";var m=n("./_library"),b=n("./_export"),o=n("./_redefine"),u=n("./_hide"),p=n("./_iterators"),l=n("./_iter-create"),t=n("./_set-to-string-tag"),s=n("./_object-gpo"),i=n("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),f=function(){return this};k.exports=function(d,T,A,h,O,L,v){l(A,T,h);var w,R,M,x=function(le){if(!c&&le in B)return B[le];switch(le){case"keys":case"values":return function(){return new A(this,le)}}return function(){return new A(this,le)}},G=T+" Iterator",N=O=="values",X=!1,B=d.prototype,$=B[i]||B["@@iterator"]||O&&B[O],Z=$||x(O),ne=O?N?x("entries"):Z:void 0,se=T=="Array"&&B.entries||$;if(se&&(M=s(se.call(new d)))!==Object.prototype&&M.next&&(t(M,G,!0),m||typeof M[i]=="function"||u(M,i,f)),N&&$&&$.name!=="values"&&(X=!0,Z=function(){return $.call(this)}),m&&!v||!c&&!X&&B[i]||u(B,i,Z),p[T]=Z,p[G]=f,O)if(w={values:N?Z:x("values"),keys:L?Z:x("keys"),entries:ne},v)for(R in w)R in B||o(B,R,w[R]);else b(b.P+b.F*(c||X),T,w);return w}},{"./_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(n,k,_){var m=n("./_wks")("iterator"),b=!1;try{var o=[7][m]();o.return=function(){b=!0},Array.from(o,function(){throw 2})}catch(u){}k.exports=function(u,p){if(!p&&!b)return!1;var l=!1;try{var t=[7],s=t[m]();s.next=function(){return{done:l=!0}},t[m]=function(){return s},u(t)}catch(i){}return l}},{"./_wks":131}],90:[function(n,k,_){k.exports=function(m,b){return{value:b,done:!!m}}},{}],91:[function(n,k,_){k.exports={}},{}],92:[function(n,k,_){k.exports=!0},{}],93:[function(n,k,_){var m=n("./_uid")("meta"),b=n("./_is-object"),o=n("./_has"),u=n("./_object-dp").f,p=0,l=Object.isExtensible||function(){return!0},t=!n("./_fails")(function(){return l(Object.preventExtensions({}))}),s=function(A){u(A,m,{value:{i:"O"+ ++p,w:{}}})},i=function(A,h){if(!b(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!o(A,m)){if(!l(A))return"F";if(!h)return"E";s(A)}return A[m].i},c=function(A,h){if(!o(A,m)){if(!l(A))return!0;if(!h)return!1;s(A)}return A[m].w},f=function(A){return t&&d.NEED&&l(A)&&!o(A,m)&&s(A),A},d=k.exports={KEY:m,NEED:!1,fastKey:i,getWeak:c,onFreeze:f}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,k,_){var m=n("./_global"),b=n("./_task").set,o=m.MutationObserver||m.WebKitMutationObserver,u=m.process,p=m.Promise,l=n("./_cof")(u)=="process";k.exports=function(){var t,s,i,c=function(){var h,O;for(l&&(h=u.domain)&&h.exit();t;){O=t.fn,t=t.next;try{O()}catch(L){throw t?i():s=void 0,L}}s=void 0,h&&h.enter()};if(l)i=function(){u.nextTick(c)};else if(!o||m.navigator&&m.navigator.standalone)if(p&&p.resolve){var f=p.resolve(void 0);i=function(){f.then(c)}}else i=function(){b.call(m,c)};else{var d=!0,T=document.createTextNode("");new o(c).observe(T,{characterData:!0}),i=function(){T.data=d=!d}}return function(A){var h={fn:A,next:void 0};s&&(s.next=h),t||(t=h,i()),s=h}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,k,_){"use strict";function m(o){var u,p;this.promise=new o(function(l,t){if(u!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");u=l,p=t}),this.resolve=b(u),this.reject=b(p)}var b=n("./_a-function");k.exports.f=function(o){return new m(o)}},{"./_a-function":58}],96:[function(n,k,_){"use strict";var m=n("./_object-keys"),b=n("./_object-gops"),o=n("./_object-pie"),u=n("./_to-object"),p=n("./_iobject"),l=Object.assign;k.exports=!l||n("./_fails")(function(){var t={},s={},i=Symbol(),c="abcdefghijklmnopqrst";return t[i]=7,c.split("").forEach(function(f){s[f]=f}),l({},t)[i]!=7||Object.keys(l({},s)).join("")!=c})?function(t,s){for(var i=u(t),c=arguments.length,f=1,d=b.f,T=o.f;c>f;)for(var A,h=p(arguments[f++]),O=d?m(h).concat(d(h)):m(h),L=O.length,v=0;L>v;)T.call(h,A=O[v++])&&(i[A]=h[A]);return i}:l},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,k,_){var m=n("./_an-object"),b=n("./_object-dps"),o=n("./_enum-bug-keys"),u=n("./_shared-key")("IE_PROTO"),p=function(){},l=function(){var s,i=n("./_dom-create")("iframe"),c=o.length;for(i.style.display="none",n("./_html").appendChild(i),i.src="javascript:",s=i.contentWindow.document,s.open(),s.write("<script>document.F=Object</script>"),s.close(),l=s.F;c--;)delete l.prototype[o[c]];return l()};k.exports=Object.create||function(t,s){var i;return t!==null?(p.prototype=m(t),i=new p,p.prototype=null,i[u]=t):i=l(),s===void 0?i:b(i,s)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,k,_){var m=n("./_an-object"),b=n("./_ie8-dom-define"),o=n("./_to-primitive"),u=Object.defineProperty;_.f=n("./_descriptors")?Object.defineProperty:function(p,l,t){if(m(p),l=o(l,!0),m(t),b)try{return u(p,l,t)}catch(s){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(p[l]=t.value),p}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,k,_){var m=n("./_object-dp"),b=n("./_an-object"),o=n("./_object-keys");k.exports=n("./_descriptors")?Object.defineProperties:function(u,p){b(u);for(var l,t=o(p),s=t.length,i=0;s>i;)m.f(u,l=t[i++],p[l]);return u}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,k,_){var m=n("./_object-pie"),b=n("./_property-desc"),o=n("./_to-iobject"),u=n("./_to-primitive"),p=n("./_has"),l=n("./_ie8-dom-define"),t=Object.getOwnPropertyDescriptor;_.f=n("./_descriptors")?t:function(s,i){if(s=o(s),i=u(i,!0),l)try{return t(s,i)}catch(c){}if(p(s,i))return b(!m.f.call(s,i),s[i])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,k,_){var m=n("./_to-iobject"),b=n("./_object-gopn").f,o={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(t){try{return b(t)}catch(s){return u.slice()}};k.exports.f=function(l){return u&&o.call(l)=="[object Window]"?p(l):b(m(l))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,k,_){var m=n("./_object-keys-internal"),b=n("./_enum-bug-keys").concat("length","prototype");_.f=Object.getOwnPropertyNames||function(o){return m(o,b)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,k,_){_.f=Object.getOwnPropertySymbols},{}],104:[function(n,k,_){var m=n("./_has"),b=n("./_to-object"),o=n("./_shared-key")("IE_PROTO"),u=Object.prototype;k.exports=Object.getPrototypeOf||function(p){return p=b(p),m(p,o)?p[o]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?u:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,k,_){var m=n("./_has"),b=n("./_to-iobject"),o=n("./_array-includes")(!1),u=n("./_shared-key")("IE_PROTO");k.exports=function(p,l){var t,s=b(p),i=0,c=[];for(t in s)t!=u&&m(s,t)&&c.push(t);for(;l.length>i;)m(s,t=l[i++])&&(~o(c,t)||c.push(t));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,k,_){var m=n("./_object-keys-internal"),b=n("./_enum-bug-keys");k.exports=Object.keys||function(o){return m(o,b)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,k,_){_.f={}.propertyIsEnumerable},{}],108:[function(n,k,_){var m=n("./_export"),b=n("./_core"),o=n("./_fails");k.exports=function(u,p){var l=(b.Object||{})[u]||Object[u],t={};t[u]=p(l),m(m.S+m.F*o(function(){l(1)}),"Object",t)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,k,_){k.exports=function(m){try{return{e:!1,v:m()}}catch(b){return{e:!0,v:b}}}},{}],110:[function(n,k,_){var m=n("./_an-object"),b=n("./_is-object"),o=n("./_new-promise-capability");k.exports=function(u,p){if(m(u),b(p)&&p.constructor===u)return p;var l=o.f(u);return(0,l.resolve)(p),l.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,k,_){k.exports=function(m,b){return{enumerable:!(1&m),configurable:!(2&m),writable:!(4&m),value:b}}},{}],112:[function(n,k,_){var m=n("./_hide");k.exports=function(b,o,u){for(var p in o)u&&b[p]?b[p]=o[p]:m(b,p,o[p]);return b}},{"./_hide":78}],113:[function(n,k,_){k.exports=n("./_hide")},{"./_hide":78}],114:[function(n,k,_){"use strict";var m=n("./_global"),b=n("./_core"),o=n("./_object-dp"),u=n("./_descriptors"),p=n("./_wks")("species");k.exports=function(l){var t=typeof b[l]=="function"?b[l]:m[l];u&&t&&!t[p]&&o.f(t,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,k,_){var m=n("./_object-dp").f,b=n("./_has"),o=n("./_wks")("toStringTag");k.exports=function(u,p,l){u&&!b(u=l?u:u.prototype,o)&&m(u,o,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,k,_){var m=n("./_shared")("keys"),b=n("./_uid");k.exports=function(o){return m[o]||(m[o]=b(o))}},{"./_shared":117,"./_uid":127}],117:[function(n,k,_){var m=n("./_core"),b=n("./_global"),o=b["__core-js_shared__"]||(b["__core-js_shared__"]={});(k.exports=function(u,p){return o[u]||(o[u]=p!==void 0?p:{})})("versions",[]).push({version:m.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,k,_){var m=n("./_an-object"),b=n("./_a-function"),o=n("./_wks")("species");k.exports=function(u,p){var l,t=m(u).constructor;return t===void 0||(l=m(t)[o])==null?p:b(l)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,k,_){var m=n("./_to-integer"),b=n("./_defined");k.exports=function(o){return function(u,p){var l,t,s=String(b(u)),i=m(p),c=s.length;return i<0||i>=c?o?"":void 0:(l=s.charCodeAt(i),l<55296||l>56319||i+1===c||(t=s.charCodeAt(i+1))<56320||t>57343?o?s.charAt(i):l:o?s.slice(i,i+2):t-56320+(l-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,k,_){var m,b,o,u=n("./_ctx"),p=n("./_invoke"),l=n("./_html"),t=n("./_dom-create"),s=n("./_global"),i=s.process,c=s.setImmediate,f=s.clearImmediate,d=s.MessageChannel,T=s.Dispatch,A=0,h={},O=function(){var w=+this;if(h.hasOwnProperty(w)){var R=h[w];delete h[w],R()}},L=function(w){O.call(w.data)};c&&f||(c=function(w){for(var R=[],M=1;arguments.length>M;)R.push(arguments[M++]);return h[++A]=function(){p(typeof w=="function"?w:Function(w),R)},m(A),A},f=function(w){delete h[w]},n("./_cof")(i)=="process"?m=function(w){i.nextTick(u(O,w,1))}:T&&T.now?m=function(w){T.now(u(O,w,1))}:d?(b=new d,o=b.port2,b.port1.onmessage=L,m=u(o.postMessage,o,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts?(m=function(w){s.postMessage(w+"","*")},s.addEventListener("message",L,!1)):m="onreadystatechange"in t("script")?function(v){l.appendChild(t("script")).onreadystatechange=function(){l.removeChild(this),O.call(v)}}:function(v){setTimeout(u(O,v,1),0)}),k.exports={set:c,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,k,_){var m=n("./_to-integer"),b=Math.max,o=Math.min;k.exports=function(u,p){return u=m(u),u<0?b(u+p,0):o(u,p)}},{"./_to-integer":122}],122:[function(n,k,_){var m=Math.ceil,b=Math.floor;k.exports=function(o){return isNaN(o=+o)?0:(o>0?b:m)(o)}},{}],123:[function(n,k,_){var m=n("./_iobject"),b=n("./_defined");k.exports=function(o){return m(b(o))}},{"./_defined":68,"./_iobject":82}],124:[function(n,k,_){var m=n("./_to-integer"),b=Math.min;k.exports=function(o){return o>0?b(m(o),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,k,_){var m=n("./_defined");k.exports=function(b){return Object(m(b))}},{"./_defined":68}],126:[function(n,k,_){var m=n("./_is-object");k.exports=function(b,o){if(!m(b))return b;var u,p;if(o&&typeof(u=b.toString)=="function"&&!m(p=u.call(b)))return p;if(typeof(u=b.valueOf)=="function"&&!m(p=u.call(b)))return p;if(!o&&typeof(u=b.toString)=="function"&&!m(p=u.call(b)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,k,_){var m=0,b=Math.random();k.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++m+b).toString(36))}},{}],128:[function(n,k,_){var m=n("./_global"),b=m.navigator;k.exports=b&&b.userAgent||""},{"./_global":76}],129:[function(n,k,_){var m=n("./_global"),b=n("./_core"),o=n("./_library"),u=n("./_wks-ext"),p=n("./_object-dp").f;k.exports=function(l){var t=b.Symbol||(b.Symbol=o?{}:m.Symbol||{});l.charAt(0)=="_"||l in t||p(t,l,{value:u.f(l)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,k,_){_.f=n("./_wks")},{"./_wks":131}],131:[function(n,k,_){var m=n("./_shared")("wks"),b=n("./_uid"),o=n("./_global").Symbol,u=typeof o=="function";(k.exports=function(p){return m[p]||(m[p]=u&&o[p]||(u?o:b)("Symbol."+p))}).store=m},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,k,_){var m=n("./_classof"),b=n("./_wks")("iterator"),o=n("./_iterators");k.exports=n("./_core").getIteratorMethod=function(u){if(u!=null)return u[b]||u["@@iterator"]||o[m(u)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,k,_){"use strict";var m=n("./_ctx"),b=n("./_export"),o=n("./_to-object"),u=n("./_iter-call"),p=n("./_is-array-iter"),l=n("./_to-length"),t=n("./_create-property"),s=n("./core.get-iterator-method");b(b.S+b.F*!n("./_iter-detect")(function(i){Array.from(i)}),"Array",{from:function(c){var f,d,T,A,h=o(c),O=typeof this=="function"?this:Array,L=arguments.length,v=L>1?arguments[1]:void 0,w=v!==void 0,R=0,M=s(h);if(w&&(v=m(v,L>2?arguments[2]:void 0,2)),M==null||O==Array&&p(M))for(f=l(h.length),d=new O(f);f>R;R++)t(d,R,w?v(h[R],R):h[R]);else for(A=M.call(h),d=new O;!(T=A.next()).done;R++)t(d,R,w?u(A,v,[T.value,R],!0):T.value);return d.length=R,d}})},{"./_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(n,k,_){"use strict";var m=n("./_add-to-unscopables"),b=n("./_iter-step"),o=n("./_iterators"),u=n("./_to-iobject");k.exports=n("./_iter-define")(Array,"Array",function(p,l){this._t=u(p),this._i=0,this._k=l},function(){var p=this._t,l=this._k,t=this._i++;return!p||t>=p.length?(this._t=void 0,b(1)):l=="keys"?b(0,t):l=="values"?b(0,p[t]):b(0,[t,p[t]])},"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(n,k,_){"use strict";var m=n("./_is-object"),b=n("./_object-gpo"),o=n("./_wks")("hasInstance"),u=Function.prototype;o in u||n("./_object-dp").f(u,o,{value:function(l){if(typeof this!="function"||!m(l))return!1;if(!m(this.prototype))return l instanceof this;for(;l=b(l);)if(this.prototype===l)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,k,_){var m=n("./_export");m(m.S+m.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,k,_){var m=n("./_export");m(m.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,k,_){var m=n("./_export");m(m.S+m.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,k,_){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,k,_){var m=n("./_to-object"),b=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(o){return b(m(o))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,k,_){var m=n("./_to-object"),b=n("./_object-keys");n("./_object-sap")("keys",function(){return function(o){return b(m(o))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,k,_){arguments[4][36][0].apply(_,arguments)},{dup:36}],143:[function(n,k,_){"use strict";var m,b,o,u,p=n("./_library"),l=n("./_global"),t=n("./_ctx"),s=n("./_classof"),i=n("./_export"),c=n("./_is-object"),f=n("./_a-function"),d=n("./_an-instance"),T=n("./_for-of"),A=n("./_species-constructor"),h=n("./_task").set,O=n("./_microtask")(),L=n("./_new-promise-capability"),v=n("./_perform"),w=n("./_user-agent"),R=n("./_promise-resolve"),M=l.TypeError,x=l.process,G=x&&x.versions,N=G&&G.v8||"",X=l.Promise,B=s(x)=="process",$=function(){},Z=b=L.f,ne=!!function(){try{var q=X.resolve(1),H=(q.constructor={})[n("./_wks")("species")]=function(ee){ee($,$)};return(B||typeof PromiseRejectionEvent=="function")&&q.then($)instanceof H&&N.indexOf("6.6")!==0&&w.indexOf("Chrome/66")===-1}catch(ee){}}(),se=function(H){var ee;return!(!c(H)||typeof(ee=H.then)!="function")&&ee},W=function(H,ee){if(!H._n){H._n=!0;var oe=H._c;O(function(){for(var ye=H._v,me=H._s==1,Le=0;oe.length>Le;)!function(Ce){var de,ce,ge,J=me?Ce.ok:Ce.fail,Y=Ce.resolve,_e=Ce.reject,pe=Ce.domain;try{J?(me||(H._h==2&&z(H),H._h=1),J===!0?de=ye:(pe&&pe.enter(),de=J(ye),pe&&(pe.exit(),ge=!0)),de===Ce.promise?_e(M("Promise-chain cycle")):(ce=se(de))?ce.call(de,Y,_e):Y(de)):_e(ye)}catch(ke){pe&&!ge&&pe.exit(),_e(ke)}}(oe[Le++]);H._c=[],H._n=!1,ee&&!H._h&&le(H)})}},le=function(H){h.call(l,function(){var ee,oe,ye,me=H._v,Le=re(H);if(Le&&(ee=v(function(){B?x.emit("unhandledRejection",me,H):(oe=l.onunhandledrejection)?oe({promise:H,reason:me}):(ye=l.console)&&ye.error&&ye.error("Unhandled promise rejection",me)}),H._h=B||re(H)?2:1),H._a=void 0,Le&&ee.e)throw ee.v})},re=function(H){return H._h!==1&&(H._a||H._c).length===0},z=function(H){h.call(l,function(){var ee;B?x.emit("rejectionHandled",H):(ee=l.onrejectionhandled)&&ee({promise:H,reason:H._v})})},U=function(H){var ee=this;ee._d||(ee._d=!0,ee=ee._w||ee,ee._v=H,ee._s=2,ee._a||(ee._a=ee._c.slice()),W(ee,!0))},j=function q(H){var ee,oe=this;if(!oe._d){oe._d=!0,oe=oe._w||oe;try{if(oe===H)throw M("Promise can't be resolved itself");(ee=se(H))?O(function(){var ye={_w:oe,_d:!1};try{ee.call(H,t(q,ye,1),t(U,ye,1))}catch(me){U.call(ye,me)}}):(oe._v=H,oe._s=1,W(oe,!1))}catch(ye){U.call({_w:oe,_d:!1},ye)}}};ne||(X=function(H){d(this,X,"Promise","_h"),f(H),m.call(this);try{H(t(j,this,1),t(U,this,1))}catch(ee){U.call(this,ee)}},m=function(H){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},m.prototype=n("./_redefine-all")(X.prototype,{then:function(H,ee){var oe=Z(A(this,X));return oe.ok=typeof H!="function"||H,oe.fail=typeof ee=="function"&&ee,oe.domain=B?x.domain:void 0,this._c.push(oe),this._a&&this._a.push(oe),this._s&&W(this,!1),oe.promise},catch:function(H){return this.then(void 0,H)}}),o=function(){var H=new m;this.promise=H,this.resolve=t(j,H,1),this.reject=t(U,H,1)},L.f=Z=function(H){return H===X||H===u?new o(H):b(H)}),i(i.G+i.W+i.F*!ne,{Promise:X}),n("./_set-to-string-tag")(X,"Promise"),n("./_set-species")("Promise"),u=n("./_core").Promise,i(i.S+i.F*!ne,"Promise",{reject:function(H){var ee=Z(this);return(0,ee.reject)(H),ee.promise}}),i(i.S+i.F*(p||!ne),"Promise",{resolve:function(H){return R(p&&this===u?X:this,H)}}),i(i.S+i.F*!(ne&&n("./_iter-detect")(function(q){X.all(q).catch($)})),"Promise",{all:function(H){var ee=this,oe=Z(ee),ye=oe.resolve,me=oe.reject,Le=v(function(){var Ce=[],de=0,ce=1;T(H,!1,function(ge){var J=de++,Y=!1;Ce.push(void 0),ce++,ee.resolve(ge).then(function(_e){Y||(Y=!0,Ce[J]=_e,--ce||ye(Ce))},me)}),--ce||ye(Ce)});return Le.e&&me(Le.v),oe.promise},race:function(H){var ee=this,oe=Z(ee),ye=oe.reject,me=v(function(){T(H,!1,function(Le){ee.resolve(Le).then(oe.resolve,ye)})});return me.e&&ye(me.v),oe.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(n,k,_){var m=n("./_export"),b=n("./_to-absolute-index"),o=String.fromCharCode,u=String.fromCodePoint;m(m.S+m.F*(!!u&&u.length!=1),"String",{fromCodePoint:function(l){for(var t,s=[],i=arguments.length,c=0;i>c;){if(t=+arguments[c++],b(t,1114111)!==t)throw RangeError(t+" is not a valid code point");s.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return s.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,k,_){"use strict";var m=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(b){this._t=String(b),this._i=0},function(){var b,o=this._t,u=this._i;return u>=o.length?{value:void 0,done:!0}:(b=m(o,u),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,k,_){"use strict";var m=n("./_global"),b=n("./_has"),o=n("./_descriptors"),u=n("./_export"),p=n("./_redefine"),l=n("./_meta").KEY,t=n("./_fails"),s=n("./_shared"),i=n("./_set-to-string-tag"),c=n("./_uid"),f=n("./_wks"),d=n("./_wks-ext"),T=n("./_wks-define"),A=n("./_enum-keys"),h=n("./_is-array"),O=n("./_an-object"),L=n("./_is-object"),v=n("./_to-iobject"),w=n("./_to-primitive"),R=n("./_property-desc"),M=n("./_object-create"),x=n("./_object-gopn-ext"),G=n("./_object-gopd"),N=n("./_object-dp"),X=n("./_object-keys"),B=G.f,$=N.f,Z=x.f,ne=m.Symbol,se=m.JSON,W=se&&se.stringify,le=f("_hidden"),re=f("toPrimitive"),z={}.propertyIsEnumerable,U=s("symbol-registry"),j=s("symbols"),q=s("op-symbols"),H=Object.prototype,ee=typeof ne=="function",oe=m.QObject,ye=!oe||!oe.prototype||!oe.prototype.findChild,me=o&&t(function(){return M($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a!=7})?function(C,g,E){var K=B(H,g);K&&delete H[g],$(C,g,E),K&&C!==H&&$(H,g,K)}:$,Le=function(g){var E=j[g]=M(ne.prototype);return E._k=g,E},Ce=ee&&typeof ne.iterator=="symbol"?function(C){return typeof C=="symbol"}:function(C){return C instanceof ne},de=function C(g,E,K){return g===H&&C(q,E,K),O(g),E=w(E,!0),O(K),b(j,E)?(K.enumerable?(b(g,le)&&g[le][E]&&(g[le][E]=!1),K=M(K,{enumerable:R(0,!1)})):(b(g,le)||$(g,le,R(1,{})),g[le][E]=!0),me(g,E,K)):$(g,E,K)},ce=function(g,E){O(g);for(var K,ie=A(E=v(E)),ze=0,Ue=ie.length;Ue>ze;)de(g,K=ie[ze++],E[K]);return g},ge=function(g,E){return E===void 0?M(g):ce(M(g),E)},J=function(g){var E=z.call(this,g=w(g,!0));return!(this===H&&b(j,g)&&!b(q,g))&&(!(E||!b(this,g)||!b(j,g)||b(this,le)&&this[le][g])||E)},Y=function(g,E){if(g=v(g),E=w(E,!0),g!==H||!b(j,E)||b(q,E)){var K=B(g,E);return!K||!b(j,E)||b(g,le)&&g[le][E]||(K.enumerable=!0),K}},_e=function(g){for(var E,K=Z(v(g)),ie=[],ze=0;K.length>ze;)b(j,E=K[ze++])||E==le||E==l||ie.push(E);return ie},pe=function(g){for(var E,K=g===H,ie=Z(K?q:v(g)),ze=[],Ue=0;ie.length>Ue;)!b(j,E=ie[Ue++])||K&&!b(H,E)||ze.push(j[E]);return ze};ee||(ne=function(){if(this instanceof ne)throw TypeError("Symbol is not a constructor!");var g=c(arguments.length>0?arguments[0]:void 0),E=function K(ie){this===H&&K.call(q,ie),b(this,le)&&b(this[le],g)&&(this[le][g]=!1),me(this,g,R(1,ie))};return o&&ye&&me(H,g,{configurable:!0,set:E}),Le(g)},p(ne.prototype,"toString",function(){return this._k}),G.f=Y,N.f=de,n("./_object-gopn").f=x.f=_e,n("./_object-pie").f=J,n("./_object-gops").f=pe,o&&!n("./_library")&&p(H,"propertyIsEnumerable",J,!0),d.f=function(C){return Le(f(C))}),u(u.G+u.W+u.F*!ee,{Symbol:ne});for(var ke="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),I=0;ke.length>I;)f(ke[I++]);for(var e=X(f.store),r=0;e.length>r;)T(e[r++]);u(u.S+u.F*!ee,"Symbol",{for:function(g){return b(U,g+="")?U[g]:U[g]=ne(g)},keyFor:function(g){if(!Ce(g))throw TypeError(g+" is not a symbol!");for(var E in U)if(U[E]===g)return E},useSetter:function(){ye=!0},useSimple:function(){ye=!1}}),u(u.S+u.F*!ee,"Object",{create:ge,defineProperty:de,defineProperties:ce,getOwnPropertyDescriptor:Y,getOwnPropertyNames:_e,getOwnPropertySymbols:pe}),se&&u(u.S+u.F*(!ee||t(function(){var C=ne();return W([C])!="[null]"||W({a:C})!="{}"||W(Object(C))!="{}"})),"JSON",{stringify:function(g){for(var E,K,ie=[g],ze=1;arguments.length>ze;)ie.push(arguments[ze++]);if(K=E=ie[1],(L(E)||g!==void 0)&&!Ce(g))return h(E)||(E=function(Ke,et){if(typeof K=="function"&&(et=K.call(this,Ke,et)),!Ce(et))return et}),ie[1]=E,W.apply(se,ie)}}),ne.prototype[re]||n("./_hide")(ne.prototype,re,ne.prototype.valueOf),i(ne,"Symbol"),i(Math,"Math",!0),i(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(n,k,_){"use strict";var m=n("./_export"),b=n("./_core"),o=n("./_global"),u=n("./_species-constructor"),p=n("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(t){var s=u(this,b.Promise||o.Promise),i=typeof t=="function";return this.then(i?function(c){return p(s,t()).then(function(){return c})}:t,i?function(c){return p(s,t()).then(function(){throw c})}:t)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,k,_){"use strict";var m=n("./_export"),b=n("./_new-promise-capability"),o=n("./_perform");m(m.S,"Promise",{try:function(p){var l=b.f(this),t=o(p);return(t.e?l.reject:l.resolve)(t.v),l.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,k,_){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,k,_){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,k,_){n("./es6.array.iterator");for(var m=n("./_global"),b=n("./_hide"),o=n("./_iterators"),u=n("./_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(","),l=0;l<p.length;l++){var t=p[l],s=m[t],i=s&&s.prototype;i&&!i[u]&&b(i,u,t),o[t]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,k,_){var m=n("./_export"),b=n("./_task");m(m.G+m.B,{setImmediate:b.set,clearImmediate:b.clear})},{"./_export":73,"./_task":120}],153:[function(n,k,_){(function(m){"use strict";function b(w){return Array.isArray?Array.isArray(w):O(w)==="[object Array]"}function o(w){return typeof w=="boolean"}function u(w){return w===null}function p(w){return w==null}function l(w){return typeof w=="number"}function t(w){return typeof w=="string"}function s(w){return(w===void 0?"undefined":(0,v.default)(w))==="symbol"}function i(w){return w===void 0}function c(w){return O(w)==="[object RegExp]"}function f(w){return(w===void 0?"undefined":(0,v.default)(w))==="object"&&w!==null}function d(w){return O(w)==="[object Date]"}function T(w){return O(w)==="[object Error]"||w instanceof Error}function A(w){return typeof w=="function"}function h(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||(w===void 0?"undefined":(0,v.default)(w))==="symbol"||w===void 0}function O(w){return Object.prototype.toString.call(w)}var L=n("babel-runtime/helpers/typeof"),v=function(w){return w&&w.__esModule?w:{default:w}}(L);_.isArray=b,_.isBoolean=o,_.isNull=u,_.isNullOrUndefined=p,_.isNumber=l,_.isString=t,_.isSymbol=s,_.isUndefined=i,_.isRegExp=c,_.isObject=f,_.isDate=d,_.isError=T,_.isFunction=A,_.isPrimitive=h,_.isBuffer=m.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,k,_){"use strict";var m=n("babel-runtime/helpers/typeof"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);!function(o){function u(i,c){for(i=String(i),c=c||2;i.length<c;)i="0"+i;return i}function p(i){var c=new Date(i.getFullYear(),i.getMonth(),i.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var f=new Date(c.getFullYear(),0,4);f.setDate(f.getDate()-(f.getDay()+6)%7+3);var d=c.getTimezoneOffset()-f.getTimezoneOffset();c.setHours(c.getHours()-d);var T=(c-f)/6048e5;return 1+Math.floor(T)}function l(i){var c=i.getDay();return c===0&&(c=7),c}function t(i){return i===null?"null":i===void 0?"undefined":(i===void 0?"undefined":(0,b.default)(i))!=="object"?i===void 0?"undefined":(0,b.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}var s=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,c=/\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(d,T,A,h){if(arguments.length!==1||t(d)!=="string"||/\d/.test(d)||(T=d,d=void 0),d=d||new Date,d instanceof Date||(d=new Date(d)),isNaN(d))throw TypeError("Invalid date");T=String(s.masks[T]||T||s.masks.default);var O=T.slice(0,4);O!=="UTC:"&&O!=="GMT:"||(T=T.slice(4),A=!0,O==="GMT:"&&(h=!0));var L=A?"getUTC":"get",v=d[L+"Date"](),w=d[L+"Day"](),R=d[L+"Month"](),M=d[L+"FullYear"](),x=d[L+"Hours"](),G=d[L+"Minutes"](),N=d[L+"Seconds"](),X=d[L+"Milliseconds"](),B=A?0:d.getTimezoneOffset(),$=p(d),Z=l(d),ne={d:v,dd:u(v),ddd:s.i18n.dayNames[w],dddd:s.i18n.dayNames[w+7],m:R+1,mm:u(R+1),mmm:s.i18n.monthNames[R],mmmm:s.i18n.monthNames[R+12],yy:String(M).slice(2),yyyy:M,h:x%12||12,hh:u(x%12||12),H:x,HH:u(x),M:G,MM:u(G),s:N,ss:u(N),l:u(X,3),L:u(Math.round(X/10)),t:x<12?"a":"p",tt:x<12?"am":"pm",T:x<12?"A":"P",TT:x<12?"AM":"PM",Z:h?"GMT":A?"UTC":(String(d).match(c)||[""]).pop().replace(f,""),o:(B>0?"-":"+")+u(100*Math.floor(Math.abs(B)/60)+Math.abs(B)%60,4),S:["th","st","nd","rd"][v%10>3?0:(v%100-v%10!=10)*v%10],W:$,N:Z};return T.replace(i,function(se){return se in ne?ne[se]:se.slice(1,se.length-1)})}}();s.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"},s.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 Oe=="function"&&Oe.amd?Oe(function(){return s}):(_===void 0?"undefined":(0,b.default)(_))==="object"?k.exports=s:o.dateFormat=s}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,k,_){(function(m){function b(){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(t){var s=this.useColors;if(t[0]=(s?"%c":"")+this.namespace+(s?" %c":" ")+t[0]+(s?"%c ":" ")+"+"+_.humanize(this.diff),s){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var c=0,f=0;t[0].replace(/%[a-zA-Z%]/g,function(d){d!=="%%"&&(c++,d==="%c"&&(f=c))}),t.splice(f,0,i)}}function u(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(t){try{t==null?_.storage.removeItem("debug"):_.storage.debug=t}catch(s){}}function l(){var t;try{t=_.storage.debug}catch(s){}return!t&&m!==void 0&&"env"in m&&(t=m.env.DEBUG),t}_=k.exports=n("./debug"),_.log=u,_.formatArgs=o,_.save=p,_.load=l,_.useColors=b,_.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),_.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],_.formatters.j=function(t){try{return JSON.stringify(t)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}},_.enable(l())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,k,_){function m(s){var i,c=0;for(i in s)c=(c<<5)-c+s.charCodeAt(i),c|=0;return _.colors[Math.abs(c)%_.colors.length]}function b(s){function i(){if(i.enabled){var c=i,f=+new Date,d=f-(t||f);c.diff=d,c.prev=t,c.curr=f,t=f;for(var T=new Array(arguments.length),A=0;A<T.length;A++)T[A]=arguments[A];T[0]=_.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");var h=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,function(O,L){if(O==="%%")return O;h++;var v=_.formatters[L];if(typeof v=="function"){var w=T[h];O=v.call(c,w),T.splice(h,1),h--}return O}),_.formatArgs.call(c,T),(i.log||_.log||console.log.bind(console)).apply(c,T)}}return i.namespace=s,i.enabled=_.enabled(s),i.useColors=_.useColors(),i.color=m(s),typeof _.init=="function"&&_.init(i),i}function o(s){_.save(s),_.names=[],_.skips=[];for(var i=(typeof s=="string"?s:"").split(/[\s,]+/),c=i.length,f=0;f<c;f++)i[f]&&(s=i[f].replace(/\*/g,".*?"),s[0]==="-"?_.skips.push(new RegExp("^"+s.substr(1)+"$")):_.names.push(new RegExp("^"+s+"$")))}function u(){_.enable("")}function p(s){var i,c;for(i=0,c=_.skips.length;i<c;i++)if(_.skips[i].test(s))return!1;for(i=0,c=_.names.length;i<c;i++)if(_.names[i].test(s))return!0;return!1}function l(s){return s instanceof Error?s.stack||s.message:s}_=k.exports=b.debug=b.default=b,_.coerce=l,_.disable=u,_.enable=o,_.enabled=p,_.humanize=n("ms"),_.names=[],_.skips=[],_.formatters={};var t},{ms:169}],157:[function(n,k,_){"use strict";function m(o){var u=""+o,p=b.exec(u);if(!p)return u;var l,t="",s=0,i=0;for(s=p.index;s<u.length;s++){switch(u.charCodeAt(s)){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;default:continue}i!==s&&(t+=u.substring(i,s)),i=s+1,t+=l}return i!==s?t+u.substring(i,s):t}var b=/["'&<>]/;k.exports=m},{}],158:[function(n,k,_){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function b(l){return typeof l=="function"}function o(l){return typeof l=="number"}function u(l){return typeof l=="object"&&l!==null}function p(l){return l===void 0}k.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(l){if(!o(l)||l<0||isNaN(l))throw TypeError("n must be a positive number");return this._maxListeners=l,this},m.prototype.emit=function(l){var t,s,i,c,f,d;if(this._events||(this._events={}),l==="error"&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var T=new Error('Uncaught, unspecified "error" event. ('+t+")");throw T.context=t,T}if(s=this._events[l],p(s))return!1;if(b(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),s.apply(this,c)}else if(u(s))for(c=Array.prototype.slice.call(arguments,1),d=s.slice(),i=d.length,f=0;f<i;f++)d[f].apply(this,c);return!0},m.prototype.addListener=function(l,t){var s;if(!b(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",l,b(t.listener)?t.listener:t),this._events[l]?u(this._events[l])?this._events[l].push(t):this._events[l]=[this._events[l],t]:this._events[l]=t,u(this._events[l])&&!this._events[l].warned&&(s=p(this._maxListeners)?m.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[l].length>s&&(this._events[l].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[l].length),typeof console.trace=="function"&&console.trace()),this},m.prototype.on=m.prototype.addListener,m.prototype.once=function(l,t){function s(){this.removeListener(l,s),i||(i=!0,t.apply(this,arguments))}if(!b(t))throw TypeError("listener must be a function");var i=!1;return s.listener=t,this.on(l,s),this},m.prototype.removeListener=function(l,t){var s,i,c,f;if(!b(t))throw TypeError("listener must be a function");if(!this._events||!this._events[l])return this;if(s=this._events[l],c=s.length,i=-1,s===t||b(s.listener)&&s.listener===t)delete this._events[l],this._events.removeListener&&this.emit("removeListener",l,t);else if(u(s)){for(f=c;f-- >0;)if(s[f]===t||s[f].listener&&s[f].listener===t){i=f;break}if(i<0)return this;s.length===1?(s.length=0,delete this._events[l]):s.splice(i,1),this._events.removeListener&&this.emit("removeListener",l,t)}return this},m.prototype.removeAllListeners=function(l){var t,s;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[l]&&delete this._events[l],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(s=this._events[l],b(s))this.removeListener(l,s);else if(s)for(;s.length;)this.removeListener(l,s[s.length-1]);return delete this._events[l],this},m.prototype.listeners=function(l){return this._events&&this._events[l]?b(this._events[l])?[this._events[l]]:this._events[l].slice():[]},m.prototype.listenerCount=function(l){if(this._events){var t=this._events[l];if(b(t))return 1;if(t)return t.length}return 0},m.listenerCount=function(l,t){return l.listenerCount(t)}},{}],159:[function(n,k,_){var m=n("http"),b=k.exports;for(var o in m)m.hasOwnProperty(o)&&(b[o]=m[o]);b.request=function(u,p){return u||(u={}),u.scheme="https",u.protocol="https:",m.request.call(this,u,p)}},{http:196}],160:[function(n,k,_){"use strict";var m=n("util"),b=n("ms");k.exports=function(o){if(typeof o=="number")return o;var u=b(o);if(u===void 0){var p=new Error(m.format("humanize-ms(%j) result undefined",o));console.warn(p.stack)}return u}},{ms:169,util:207}],161:[function(n,k,_){_.read=function(m,b,o,u,p){var l,t,s=8*p-u-1,i=(1<<s)-1,c=i>>1,f=-7,d=o?p-1:0,T=o?-1:1,A=m[b+d];for(d+=T,l=A&(1<<-f)-1,A>>=-f,f+=s;f>0;l=256*l+m[b+d],d+=T,f-=8);for(t=l&(1<<-f)-1,l>>=-f,f+=u;f>0;t=256*t+m[b+d],d+=T,f-=8);if(l===0)l=1-c;else{if(l===i)return t?NaN:1/0*(A?-1:1);t+=Math.pow(2,u),l-=c}return(A?-1:1)*t*Math.pow(2,l-u)},_.write=function(m,b,o,u,p,l){var t,s,i,c=8*l-p-1,f=(1<<c)-1,d=f>>1,T=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=u?0:l-1,h=u?1:-1,O=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(s=isNaN(b)?1:0,t=f):(t=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-t))<1&&(t--,i*=2),b+=t+d>=1?T/i:T*Math.pow(2,1-d),b*i>=2&&(t++,i/=2),t+d>=f?(s=0,t=f):t+d>=1?(s=(b*i-1)*Math.pow(2,p),t+=d):(s=b*Math.pow(2,d-1)*Math.pow(2,p),t=0));p>=8;m[o+A]=255&s,A+=h,s/=256,p-=8);for(t=t<<p|s,c+=p;c>0;m[o+A]=255&t,A+=h,t/=256,c-=8);m[o+A-h]|=128*O}},{}],162:[function(n,k,_){typeof Object.create=="function"?k.exports=function(m,b){m.super_=b,m.prototype=Object.create(b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(m,b){m.super_=b;var o=function(){};o.prototype=b.prototype,m.prototype=new o,m.prototype.constructor=m}},{}],163:[function(n,k,_){function m(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function b(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&m(o.slice(0,0))}k.exports=function(o){return o!=null&&(m(o)||b(o)||!!o._isBuffer)}},{}],164:[function(n,k,_){!function(m){function b(p){return u.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(u.call(p))||/^.*classCallCheck\(/.test(b(p)))}var u=Function.prototype.toString;_!==void 0?(k!==void 0&&k.exports&&(_=k.exports=o),_.isClass=o):typeof Oe=="function"&&Oe.amd?Oe([],function(){return o}):m.isClass=o}(this)},{}],165:[function(n,k,_){"use strict";function m(l){var t=l.slice(2);return t=t[0].toLowerCase()+t.slice(1)}var b=n("core-util-is"),o=n("isstream"),u=n("is-class");Object.keys(b).map(function(l){_[m(l)]=b[l]}),_.stream=o,_.readableStream=o.isReadable,_.writableStream=o.isWritable,_.duplexStream=o.isDuplex,_.class=u,_.finite=function(l){return Number.isFinite(l)},_.NaN=function(l){return Number.isNaN(l)},_.generator=function(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"},_.generatorFunction=function(l){return l&&l.constructor&&l.constructor.name==="GeneratorFunction"},_.asyncFunction=function(l){return l&&l.constructor&&l.constructor.name==="AsyncFunction"},_.promise=function(l){return l&&typeof l.then=="function"};var p=Math.pow(2,31);_.int=function(l){return b.isNumber(l)&&l%1==0},_.int32=function(l){return _.int(l)&&l<p&&l>=-p},_.long=function(l){return _.int(l)&&(l>=p||l<-p)},_.Long=function(l){return _.object(l)&&_.number(l.high)&&_.number(l.low)},_.double=function(l){return b.isNumber(l)&&!isNaN(l)&&l%1!=0},_.date=function(l){return l instanceof Date},_.regExp=function(l){return l instanceof RegExp},_.regexp=_.regExp,_.error=function(l){return l instanceof Error},_.array=function(l){return Array.isArray(l)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,k,_){var m={}.toString;k.exports=Array.isArray||function(b){return m.call(b)=="[object Array]"}},{}],167:[function(n,k,_){function m(l){return l instanceof p.Stream}function b(l){return m(l)&&typeof l._read=="function"&&typeof l._readableState=="object"}function o(l){return m(l)&&typeof l._write=="function"&&typeof l._writableState=="object"}function u(l){return b(l)&&o(l)}var p=n("stream");k.exports=m,k.exports.isReadable=b,k.exports.isWritable=o,k.exports.isDuplex=u},{stream:195}],168:[function(n,k,_){"use strict";function m(o,u,p){if(!o)throw new TypeError("argument dest is required");if(!u)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(u).forEach(function(l){if(p||!b.call(o,l)){var t=Object.getOwnPropertyDescriptor(u,l);Object.defineProperty(o,l,t)}}),o}k.exports=m;var b=Object.prototype.hasOwnProperty},{}],169:[function(n,k,_){function m(c){if(c=String(c),!(c.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(c);if(f){var d=parseFloat(f[1]);switch((f[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*t;case"minutes":case"minute":case"mins":case"min":case"m":return d*l;case"seconds":case"second":case"secs":case"sec":case"s":return d*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function b(c){return c>=s?Math.round(c/s)+"d":c>=t?Math.round(c/t)+"h":c>=l?Math.round(c/l)+"m":c>=p?Math.round(c/p)+"s":c+"ms"}function o(c){return u(c,s,"day")||u(c,t,"hour")||u(c,l,"minute")||u(c,p,"second")||c+" ms"}function u(c,f,d){if(!(c<f))return c<1.5*f?Math.floor(c/f)+" "+d:Math.ceil(c/f)+" "+d+"s"}var p=1e3,l=60*p,t=60*l,s=24*t,i=365.25*s;k.exports=function(c,f){f=f||{};var d=typeof c;if(d==="string"&&c.length>0)return m(c);if(d==="number"&&isNaN(c)===!1)return f.long?o(c):b(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(n,k,_){(function(m){function b(l,t){for(var s=0,i=l.length-1;i>=0;i--){var c=l[i];c==="."?l.splice(i,1):c===".."?(l.splice(i,1),s++):s&&(l.splice(i,1),s--)}if(t)for(;s--;s)l.unshift("..");return l}function o(l){typeof l!="string"&&(l+="");var t,s=0,i=-1,c=!0;for(t=l.length-1;t>=0;--t)if(l.charCodeAt(t)===47){if(!c){s=t+1;break}}else i===-1&&(c=!1,i=t+1);return i===-1?"":l.slice(s,i)}function u(l,t){if(l.filter)return l.filter(t);for(var s=[],i=0;i<l.length;i++)t(l[i],i,l)&&s.push(l[i]);return s}_.resolve=function(){for(var l="",t=!1,s=arguments.length-1;s>=-1&&!t;s--){var i=s>=0?arguments[s]:m.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");i&&(l=i+"/"+l,t=i.charAt(0)==="/")}return l=b(u(l.split("/"),function(c){return!!c}),!t).join("/"),(t?"/":"")+l||"."},_.normalize=function(l){var t=_.isAbsolute(l),s=p(l,-1)==="/";return l=b(u(l.split("/"),function(i){return!!i}),!t).join("/"),l||t||(l="."),l&&s&&(l+="/"),(t?"/":"")+l},_.isAbsolute=function(l){return l.charAt(0)==="/"},_.join=function(){var l=Array.prototype.slice.call(arguments,0);return _.normalize(u(l,function(t,s){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},_.relative=function(l,t){function s(h){for(var O=0;O<h.length&&h[O]==="";O++);for(var L=h.length-1;L>=0&&h[L]==="";L--);return O>L?[]:h.slice(O,L-O+1)}l=_.resolve(l).substr(1),t=_.resolve(t).substr(1);for(var i=s(l.split("/")),c=s(t.split("/")),f=Math.min(i.length,c.length),d=f,T=0;T<f;T++)if(i[T]!==c[T]){d=T;break}for(var A=[],T=d;T<i.length;T++)A.push("..");return A=A.concat(c.slice(d)),A.join("/")},_.sep="/",_.delimiter=":",_.dirname=function(l){if(typeof l!="string"&&(l+=""),l.length===0)return".";for(var t=l.charCodeAt(0),s=t===47,i=-1,c=!0,f=l.length-1;f>=1;--f)if((t=l.charCodeAt(f))===47){if(!c){i=f;break}}else c=!1;return i===-1?s?"/":".":s&&i===1?"/":l.slice(0,i)},_.basename=function(l,t){var s=o(l);return t&&s.substr(-1*t.length)===t&&(s=s.substr(0,s.length-t.length)),s},_.extname=function(l){typeof l!="string"&&(l+="");for(var t=-1,s=0,i=-1,c=!0,f=0,d=l.length-1;d>=0;--d){var T=l.charCodeAt(d);if(T!==47)i===-1&&(c=!1,i=d+1),T===46?t===-1?t=d:f!==1&&(f=1):t!==-1&&(f=-1);else if(!c){s=d+1;break}}return t===-1||i===-1||f===0||f===1&&t===i-1&&t===s+1?"":l.slice(t,i)};var p="ab".substr(-1)==="b"?function(l,t,s){return l.substr(t,s)}:function(l,t,s){return t<0&&(t=l.length+t),l.substr(t,s)}}).call(this,n("_process"))},{_process:173}],171:[function(n,k,_){(function(m){(function(){"use strict";function b(N){return N=String(N),N.charAt(0).toUpperCase()+N.slice(1)}function o(N,X,B){var $={"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 X&&B&&/^Win/i.test(N)&&!/^Windows Phone /i.test(N)&&($=$[/[\d.]+$/.exec(N)])&&(N="Windows "+$),N=String(N),X&&B&&(N=N.replace(RegExp(X,"i"),B)),N=p(N.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 u(N,X){var B=-1,$=N?N.length:0;if(typeof $=="number"&&$>-1&&$<=v)for(;++B<$;)X(N[B],B,N);else l(N,X)}function p(N){return N=f(N),/^(?:webOS|i(?:OS|P))/.test(N)?N:b(N)}function l(N,X){for(var B in N)M.call(N,B)&&X(N[B],B,N)}function t(N){return N==null?b(N):x.call(N).slice(8,-1)}function s(N,X){var B=N!=null?typeof N[X]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(B)||B=="object"&&!N[X])}function i(N){return String(N).replace(/([ -])(?!$)/g,"$1?")}function c(N,X){var B=null;return u(N,function($,Z){B=X(B,$,Z,N)}),B}function f(N){return String(N).replace(/^ +| +$/g,"")}function d(N){function X(C){return c(C,function(g,E){var K=E.pattern||i(E);return!g&&(g=RegExp("\\b"+K+" *\\d+[.\\w_]*","i").exec(N)||RegExp("\\b"+K+" *\\w+-[\\w]*","i").exec(N)||RegExp("\\b"+K+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(N))&&((g=String(E.label&&!RegExp(K,"i").test(E.label)?E.label:g).split("/"))[1]&&!/[\d.]+/.test(g[0])&&(g[0]+=" "+g[1]),E=E.label||E,g=p(g[0].replace(RegExp(K,"i"),E).replace(RegExp("; *(?:"+E+"[_-])?","i")," ").replace(RegExp("("+E+")[-_.]?(\\w)","i"),"$1 $2"))),g})}function B(){return this.description||""}var $=A,Z=N&&typeof N=="object"&&t(N)!="String";Z&&($=N,N=null);var ne=$.navigator||{},se=ne.userAgent||"";N||(N=se);var W,le,re=Z?!!ne.likeChrome:/\bChrome\b/.test(N)&&!/internal|\n/i.test(x.toString()),z=Z?"Object":"ScriptBridgingProxyObject",U=Z?"Object":"Environment",j=Z&&$.java?"JavaPackage":t($.java),q=Z?"Object":"RuntimeObject",H=/\bJava/.test(j)&&$.java,ee=H&&t($.environment)==U,oe=H?"a":"\u4F2A",ye=H?"b":"\u5C3E",me=$.document||{},Le=$.operamini||$.opera,Ce=w.test(Ce=Z&&Le?Le["[[Class]]"]:t(Le))?Ce:Le=null,de=N,ce=[],ge=null,J=N==se,Y=J&&Le&&typeof Le.version=="function"&&Le.version(),_e=function(C){return c(C,function(g,E){return g||RegExp("\\b"+(E.pattern||i(E))+"\\b","i").exec(N)&&(E.label||E)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),pe=function(C){return c(C,function(g,E){return g||RegExp("\\b"+(E.pattern||i(E))+"\\b","i").exec(N)&&(E.label||E)})}(["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"]),ke=X([{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"]),I=function(C){return c(C,function(g,E,K){return g||(E[ke]||E[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ke)]||RegExp("\\b"+i(K)+"(?:\\b|\\w*\\d)","i").exec(N))&&K})}({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}}),e=function(C){return c(C,function(g,E){var K=E.pattern||i(E);return!g&&(g=RegExp("\\b"+K+"(?:/[\\d.]+|[ \\w.]*)","i").exec(N))&&(g=o(g,K,E.label||E)),g})}(["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(_e&&(_e=[_e]),I&&!ke&&(ke=X([I])),(W=/\bGoogle TV\b/.exec(ke))&&(ke=W[0]),/\bSimulator\b/i.test(N)&&(ke=(ke?ke+" ":"")+"Simulator"),pe=="Opera Mini"&&/\bOPiOS\b/.test(N)&&ce.push("running in Turbo/Uncompressed mode"),pe=="IE"&&/\blike iPhone OS\b/.test(N)?(W=d(N.replace(/like iPhone OS/,"")),I=W.manufacturer,ke=W.product):/^iP/.test(ke)?(pe||(pe="Safari"),e="iOS"+((W=/ OS ([\d_]+)/i.exec(N))?" "+W[1].replace(/_/g,"."):"")):pe!="Konqueror"||/buntu/i.test(e)?I&&I!="Google"&&(/Chrome/.test(pe)&&!/\bMobile Safari\b/i.test(N)||/\bVita\b/.test(ke))||/\bAndroid\b/.test(e)&&/^Chrome/.test(pe)&&/\bVersion\//i.test(N)?(pe="Android Browser",e=/\bAndroid\b/.test(e)?e:"Android"):pe=="Silk"?(/\bMobi/i.test(N)||(e="Android",ce.unshift("desktop mode")),/Accelerated *= *true/i.test(N)&&ce.unshift("accelerated")):pe=="PaleMoon"&&(W=/\bFirefox\/([\d.]+)\b/.exec(N))?ce.push("identifying as Firefox "+W[1]):pe=="Firefox"&&(W=/\b(Mobile|Tablet|TV)\b/i.exec(N))?(e||(e="Firefox OS"),ke||(ke=W[1])):!pe||(W=!/\bMinefield\b/i.test(N)&&/\b(?:Firefox|Safari)\b/.exec(pe))?(pe&&!ke&&/[\/,]|^[^(]+?\)/.test(N.slice(N.indexOf(W+"/")+8))&&(pe=null),(W=ke||I||e)&&(ke||I||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(e))&&(pe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(e)?e:W)+" Browser")):pe=="Electron"&&(W=(/\bChrome\/([\d.]+)\b/.exec(N)||0)[1])&&ce.push("Chromium "+W):e="Kubuntu",Y||(Y=function(C){return c(C,function(g,E){return g||(RegExp(E+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(N)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",i(pe),"(?:Firefox|Minefield|NetFront)"])),(W=_e=="iCab"&&parseFloat(Y)>3&&"WebKit"||/\bOpera\b/.test(pe)&&(/\bOPR\b/.test(N)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(N)&&!/^(?:Trident|EdgeHTML)$/.test(_e)&&"WebKit"||!_e&&/\bMSIE\b/i.test(N)&&(e=="Mac OS"?"Tasman":"Trident")||_e=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(pe)&&"NetFront")&&(_e=[W]),pe=="IE"&&(W=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(N)||0)[1])?(pe+=" Mobile",e="Windows Phone "+(/\+$/.test(W)?W:W+".x"),ce.unshift("desktop mode")):/\bWPDesktop\b/i.test(N)?(pe="IE Mobile",e="Windows Phone 8.x",ce.unshift("desktop mode"),Y||(Y=(/\brv:([\d.]+)/.exec(N)||0)[1])):pe!="IE"&&_e=="Trident"&&(W=/\brv:([\d.]+)/.exec(N))&&(pe&&ce.push("identifying as "+pe+(Y?" "+Y:"")),pe="IE",Y=W[1]),J){if(s($,"global"))if(H&&(W=H.lang.System,de=W.getProperty("os.arch"),e=e||W.getProperty("os.name")+" "+W.getProperty("os.version")),ee){try{Y=$.require("ringo/engine").version.join("."),pe="RingoJS"}catch(C){(W=$.system)&&W.global.system==$.system&&(pe="Narwhal",e||(e=W[0].os||null))}pe||(pe="Rhino")}else typeof $.process=="object"&&!$.process.browser&&(W=$.process)&&(typeof W.versions=="object"&&(typeof W.versions.electron=="string"?(ce.push("Node "+W.versions.node),pe="Electron",Y=W.versions.electron):typeof W.versions.nw=="string"&&(ce.push("Chromium "+Y,"Node "+W.versions.node),pe="NW.js",Y=W.versions.nw)),pe||(pe="Node.js",de=W.arch,e=W.platform,Y=/[\d.]+/.exec(W.version),Y=Y?Y[0]:null));else t(W=$.runtime)==z?(pe="Adobe AIR",e=W.flash.system.Capabilities.os):t(W=$.phantom)==q?(pe="PhantomJS",Y=(W=W.version||null)&&W.major+"."+W.minor+"."+W.patch):typeof me.documentMode=="number"&&(W=/\bTrident\/(\d+)/i.exec(N))?(Y=[Y,me.documentMode],(W=+W[1]+4)!=Y[1]&&(ce.push("IE "+Y[1]+" mode"),_e&&(_e[1]=""),Y[1]=W),Y=pe=="IE"?String(Y[1].toFixed(1)):Y[0]):typeof me.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(pe)&&(ce.push("masking as "+pe+" "+Y),pe="IE",Y="11.0",_e=["Trident"],e="Windows");e=e&&p(e)}if(Y&&(W=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Y)||/(?:alpha|beta)(?: ?\d)?/i.exec(N+";"+(J&&ne.appMinorVersion))||/\bMinefield\b/i.test(N)&&"a")&&(ge=/b/i.test(W)?"beta":"alpha",Y=Y.replace(RegExp(W+"\\+?$"),"")+(ge=="beta"?ye:oe)+(/\d+\+?/.exec(W)||"")),pe=="Fennec"||pe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(e))pe="Firefox Mobile";else if(pe=="Maxthon"&&Y)Y=Y.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ke))ke=="Xbox 360"&&(e=null),ke=="Xbox 360"&&/\bIEMobile\b/.test(N)&&ce.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(pe)&&(!pe||ke||/Browser|Mobi/.test(pe))||e!="Windows CE"&&!/Mobi/i.test(N))if(pe=="IE"&&J)try{$.external===null&&ce.unshift("platform preview")}catch(C){ce.unshift("embedded")}else(/\bBlackBerry\b/.test(ke)||/\bBB10\b/.test(N))&&(W=(RegExp(ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(N)||0)[1]||Y)?(W=[W,/BB10/.test(N)],e=(W[1]?(ke=null,I="BlackBerry"):"Device Software")+" "+W[0],Y=null):this!=l&&ke!="Wii"&&(J&&Le||/Opera/.test(pe)&&/\b(?:MSIE|Firefox)\b/i.test(N)||pe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(e)||pe=="IE"&&(e&&!/^Win/.test(e)&&Y>5.5||/\bWindows XP\b/.test(e)&&Y>8||Y==8&&!/\bTrident\b/.test(N)))&&!w.test(W=d.call(l,N.replace(w,"")+";"))&&W.name&&(W="ing as "+W.name+((W=W.version)?" "+W:""),w.test(pe)?(/\bIE\b/.test(W)&&e=="Mac OS"&&(e=null),W="identify"+W):(W="mask"+W,pe=Ce?p(Ce.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(W)&&(e=null),J||(Y=null)),_e=["Presto"],ce.push(W));else pe+=" Mobile";(W=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(N)||0)[1])&&(W=[parseFloat(W.replace(/\.(\d)$/,".0$1")),W],pe=="Safari"&&W[1].slice(-1)=="+"?(pe="WebKit Nightly",ge="alpha",Y=W[1].slice(0,-1)):Y!=W[1]&&Y!=(W[2]=(/\bSafari\/([\d.]+\+?)/i.exec(N)||0)[1])||(Y=null),W[1]=(/\bChrome\/([\d.]+)/i.exec(N)||0)[1],W[0]==537.36&&W[2]==537.36&&parseFloat(W[1])>=28&&_e=="WebKit"&&(_e=["Blink"]),J&&(re||W[1])?(_e&&(_e[1]="like Chrome"),W=W[1]||(W=W[0],W<530?1:W<532?2:W<532.05?3:W<533?4:W<534.03?5:W<534.07?6:W<534.1?7:W<534.13?8:W<534.16?9:W<534.24?10:W<534.3?11:W<535.01?12:W<535.02?"13+":W<535.07?15:W<535.11?16:W<535.19?17:W<536.05?18:W<536.1?19:W<537.01?20:W<537.11?"21+":W<537.13?23:W<537.18?24:W<537.24?25:W<537.36?26:_e!="Blink"?"27":"28")):(_e&&(_e[1]="like Safari"),W=W[0],W=W<400?1:W<500?2:W<526?3:W<533?4:W<534?"4+":W<535?5:W<537?6:W<538?7:W<601?8:"8"),_e&&(_e[1]+=" "+(W+=typeof W=="number"?".x":/[.+]/.test(W)?"":"+")),pe=="Safari"&&(!Y||parseInt(Y)>45)&&(Y=W)),pe=="Opera"&&(W=/\bzbov|zvav$/.exec(e))?(pe+=" ",ce.unshift("desktop mode"),W=="zvav"?(pe+="Mini",Y=null):pe+="Mobile",e=e.replace(RegExp(" *"+W+"$"),"")):pe=="Safari"&&/\bChrome\b/.exec(_e&&_e[1])&&(ce.unshift("desktop mode"),pe="Chrome Mobile",Y=null,/\bOS X\b/.test(e)?(I="Apple",e="iOS 4.3+"):e=null),Y&&Y.indexOf(W=/[\d.]+$/.exec(e))==0&&N.indexOf("/"+W+"-")>-1&&(e=f(e.replace(W,""))),_e&&!/\b(?:Avant|Nook)\b/.test(pe)&&(/Browser|Lunascape|Maxthon/.test(pe)||pe!="Safari"&&/^iOS/.test(e)&&/\bSafari\b/.test(_e[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(pe)&&_e[1])&&(W=_e[_e.length-1])&&ce.push(W),ce.length&&(ce=["("+ce.join("; ")+")"]),I&&ke&&ke.indexOf(I)<0&&ce.push("on "+I),ke&&ce.push((/^on /.test(ce[ce.length-1])?"":"on ")+ke),e&&(W=/ ([\d.+]+)$/.exec(e),le=W&&e.charAt(e.length-W[0].length-1)=="/",e={architecture:32,family:W&&!le?e.replace(W[0],""):e,version:W?W[1]:null,toString:function(){var g=this.version;return this.family+(g&&!le?" "+g:"")+(this.architecture==64?" 64-bit":"")}}),(W=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(de))&&!/\bi686\b/i.test(de)?(e&&(e.architecture=64,e.family=e.family.replace(RegExp(" *"+W),"")),pe&&(/\bWOW64\b/i.test(N)||J&&/\w(?:86|32)$/.test(ne.cpuClass||ne.platform)&&!/\bWin64; x64\b/i.test(N))&&ce.unshift("32-bit")):e&&/^OS X/.test(e.family)&&pe=="Chrome"&&parseFloat(Y)>=39&&(e.architecture=64),N||(N=null);var r={};return r.description=N,r.layout=_e&&_e[0],r.manufacturer=I,r.name=pe,r.prerelease=ge,r.product=ke,r.ua=N,r.version=pe&&Y,r.os=e||{architecture:null,family:null,version:null,toString:function(){return"null"}},r.parse=d,r.toString=B,r.version&&ce.unshift(Y),r.name&&ce.unshift(pe),e&&pe&&(e!=String(e).split(" ")[0]||e!=pe.split(" ")[0]&&!ke)&&ce.push(ke?"("+e+")":"on "+e),ce.length&&(r.description=ce.join(" ")),r}var T={function:!0,object:!0},A=T[typeof window]&&window||this,h=T[typeof _]&&_,O=T[typeof k]&&k&&!k.nodeType&&k,L=h&&O&&typeof m=="object"&&m;!L||L.global!==L&&L.window!==L&&L.self!==L||(A=L);var v=Math.pow(2,53)-1,w=/\bOpera/,R=Object.prototype,M=R.hasOwnProperty,x=R.toString,G=d();typeof Oe=="function"&&typeof Oe.amd=="object"&&Oe.amd?(A.platform=G,Oe(function(){return G})):h&&O?l(G,function(N,X){h[X]=N}):A.platform=G}).call(this)}).call(this,typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,k,_){(function(m){"use strict";function b(o,u,p,l){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var t,s,i=arguments.length;switch(i){case 0:case 1:return m.nextTick(o);case 2:return m.nextTick(function(){o.call(null,u)});case 3:return m.nextTick(function(){o.call(null,u,p)});case 4:return m.nextTick(function(){o.call(null,u,p,l)});default:for(t=new Array(i-1),s=0;s<t.length;)t[s++]=arguments[s];return m.nextTick(function(){o.apply(null,t)})}}!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?k.exports={nextTick:b}:k.exports=m}).call(this,n("_process"))},{_process:173}],173:[function(n,k,_){function m(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}function o(O){if(i===setTimeout)return setTimeout(O,0);if((i===m||!i)&&setTimeout)return i=setTimeout,setTimeout(O,0);try{return i(O,0)}catch(L){try{return i.call(null,O,0)}catch(v){return i.call(this,O,0)}}}function u(O){if(c===clearTimeout)return clearTimeout(O);if((c===b||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(O);try{return c(O)}catch(L){try{return c.call(null,O)}catch(v){return c.call(this,O)}}}function p(){A&&d&&(A=!1,d.length?T=d.concat(T):h=-1,T.length&&l())}function l(){if(!A){var O=o(p);A=!0;for(var L=T.length;L;){for(d=T,T=[];++h<L;)d&&d[h].run();h=-1,L=T.length}d=null,A=!1,u(O)}}function t(O,L){this.fun=O,this.array=L}function s(){}var i,c,f=k.exports={};!function(){try{i=typeof setTimeout=="function"?setTimeout:m}catch(O){i=m}try{c=typeof clearTimeout=="function"?clearTimeout:b}catch(O){c=b}}();var d,T=[],A=!1,h=-1;f.nextTick=function(O){var L=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)L[v-1]=arguments[v];T.push(new t(O,L)),T.length!==1||A||o(l)},t.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=s,f.addListener=s,f.once=s,f.off=s,f.removeListener=s,f.removeAllListeners=s,f.emit=s,f.prependListener=s,f.prependOnceListener=s,f.listeners=function(O){return[]},f.binding=function(O){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(O){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],174:[function(n,k,_){(function(m){!function(b){function o(j){throw new RangeError(le[j])}function u(j,q){for(var H=j.length,ee=[];H--;)ee[H]=q(j[H]);return ee}function p(j,q){var H=j.split("@"),ee="";return H.length>1&&(ee=H[0]+"@",j=H[1]),j=j.replace(W,"."),ee+u(j.split("."),q).join(".")}function l(j){for(var q,H,ee=[],oe=0,ye=j.length;oe<ye;)q=j.charCodeAt(oe++),q>=55296&&q<=56319&&oe<ye?(H=j.charCodeAt(oe++),(64512&H)==56320?ee.push(((1023&q)<<10)+(1023&H)+65536):(ee.push(q),oe--)):ee.push(q);return ee}function t(j){return u(j,function(q){var H="";return q>65535&&(q-=65536,H+=U(q>>>10&1023|55296),q=56320|1023&q),H+=U(q)}).join("")}function s(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:M}function i(j,q){return j+22+75*(j<26)-((q!=0)<<5)}function c(j,q,H){var ee=0;for(j=H?z(j/X):j>>1,j+=z(j/q);j>re*G>>1;ee+=M)j=z(j/re);return z(ee+(re+1)*j/(j+N))}function f(j){var q,H,ee,oe,ye,me,Le,Ce,de,ce,ge=[],J=j.length,Y=0,_e=$,pe=B;for(H=j.lastIndexOf(Z),H<0&&(H=0),ee=0;ee<H;++ee)j.charCodeAt(ee)>=128&&o("not-basic"),ge.push(j.charCodeAt(ee));for(oe=H>0?H+1:0;oe<J;){for(ye=Y,me=1,Le=M;oe>=J&&o("invalid-input"),Ce=s(j.charCodeAt(oe++)),(Ce>=M||Ce>z((R-Y)/me))&&o("overflow"),Y+=Ce*me,de=Le<=pe?x:Le>=pe+G?G:Le-pe,!(Ce<de);Le+=M)ce=M-de,me>z(R/ce)&&o("overflow"),me*=ce;q=ge.length+1,pe=c(Y-ye,q,ye==0),z(Y/q)>R-_e&&o("overflow"),_e+=z(Y/q),Y%=q,ge.splice(Y++,0,_e)}return t(ge)}function d(j){var q,H,ee,oe,ye,me,Le,Ce,de,ce,ge,J,Y,_e,pe,ke=[];for(j=l(j),J=j.length,q=$,H=0,ye=B,me=0;me<J;++me)(ge=j[me])<128&&ke.push(U(ge));for(ee=oe=ke.length,oe&&ke.push(Z);ee<J;){for(Le=R,me=0;me<J;++me)(ge=j[me])>=q&&ge<Le&&(Le=ge);for(Y=ee+1,Le-q>z((R-H)/Y)&&o("overflow"),H+=(Le-q)*Y,q=Le,me=0;me<J;++me)if(ge=j[me],ge<q&&++H>R&&o("overflow"),ge==q){for(Ce=H,de=M;ce=de<=ye?x:de>=ye+G?G:de-ye,!(Ce<ce);de+=M)pe=Ce-ce,_e=M-ce,ke.push(U(i(ce+pe%_e,0))),Ce=z(pe/_e);ke.push(U(i(Ce,0))),ye=c(H,Y,ee==oe),H=0,++ee}++H,++q}return ke.join("")}function T(j){return p(j,function(q){return ne.test(q)?f(q.slice(4).toLowerCase()):q})}function A(j){return p(j,function(q){return se.test(q)?"xn--"+d(q):q})}var h=typeof _=="object"&&_&&!_.nodeType&&_,O=typeof k=="object"&&k&&!k.nodeType&&k,L=typeof m=="object"&&m;L.global!==L&&L.window!==L&&L.self!==L||(b=L);var v,w,R=2147483647,M=36,x=1,G=26,N=38,X=700,B=72,$=128,Z="-",ne=/^xn--/,se=/[^\x20-\x7E]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,le={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},re=M-x,z=Math.floor,U=String.fromCharCode;if(v={version:"1.4.1",ucs2:{decode:l,encode:t},decode:f,encode:d,toASCII:A,toUnicode:T},typeof Oe=="function"&&typeof Oe.amd=="object"&&Oe.amd)Oe("punycode",function(){return v});else if(h&&O)if(k.exports==h)O.exports=v;else for(w in v)v.hasOwnProperty(w)&&(h[w]=v[w]);else b.punycode=v}(this)}).call(this,typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,k,_){"use strict";function m(o,u){return Object.prototype.hasOwnProperty.call(o,u)}k.exports=function(o,u,p,l){u=u||"&",p=p||"=";var t={};if(typeof o!="string"||o.length===0)return t;var s=/\+/g;o=o.split(u);var i=1e3;l&&typeof l.maxKeys=="number"&&(i=l.maxKeys);var c=o.length;i>0&&c>i&&(c=i);for(var f=0;f<c;++f){var d,T,A,h,O=o[f].replace(s,"%20"),L=O.indexOf(p);L>=0?(d=O.substr(0,L),T=O.substr(L+1)):(d=O,T=""),A=decodeURIComponent(d),h=decodeURIComponent(T),m(t,A)?b(t[A])?t[A].push(h):t[A]=[t[A],h]:t[A]=h}return t};var b=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"}},{}],176:[function(n,k,_){"use strict";function m(p,l){if(p.map)return p.map(l);for(var t=[],s=0;s<p.length;s++)t.push(l(p[s],s));return t}var b=function(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};k.exports=function(p,l,t,s){return l=l||"&",t=t||"=",p===null&&(p=void 0),typeof p=="object"?m(u(p),function(i){var c=encodeURIComponent(b(i))+t;return o(p[i])?m(p[i],function(f){return c+encodeURIComponent(b(f))}).join(l):c+encodeURIComponent(b(p[i]))}).join(l):s?encodeURIComponent(b(s))+t+encodeURIComponent(b(p)):""};var o=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},u=Object.keys||function(p){var l=[];for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&l.push(t);return l}},{}],177:[function(n,k,_){"use strict";_.decode=_.parse=n("./decode"),_.encode=_.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,k,_){k.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,k,_){"use strict";function m(A){if(!(this instanceof m))return new m(A);i.call(this,A),c.call(this,A),A&&A.readable===!1&&(this.readable=!1),A&&A.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,A&&A.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||l.nextTick(o,this)}function o(A){A.end()}var u=n("babel-runtime/core-js/object/keys"),p=function(A){return A&&A.__esModule?A:{default:A}}(u),l=n("process-nextick-args"),t=p.default||function(A){var h=[];for(var O in A)h.push(O);return h};k.exports=m;var s=n("core-util-is");s.inherits=n("inherits");var i=n("./_stream_readable"),c=n("./_stream_writable");s.inherits(m,i);for(var f=t(c.prototype),d=0;d<f.length;d++){var T=f[d];m.prototype[T]||(m.prototype[T]=c.prototype[T])}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(A,h){this.push(null),this.end(),l.nextTick(h,A)}},{"./_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(n,k,_){"use strict";function m(u){if(!(this instanceof m))return new m(u);b.call(this,u)}k.exports=m;var b=n("./_stream_transform"),o=n("core-util-is");o.inherits=n("inherits"),o.inherits(m,b),m.prototype._transform=function(u,p,l){l(null,u)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,k,_){(function(m,b){"use strict";function o(J){return H.from(J)}function u(J){return H.isBuffer(J)||J instanceof ee}function p(J,Y,_e){if(typeof J.prependListener=="function")return J.prependListener(Y,_e);J._events&&J._events[Y]?U(J._events[Y])?J._events[Y].unshift(_e):J._events[Y]=[_e,J._events[Y]]:J.on(Y,_e)}function l(J,Y){z=z||n("./_stream_duplex"),J=J||{};var _e=Y instanceof z;this.objectMode=!!J.objectMode,_e&&(this.objectMode=this.objectMode||!!J.readableObjectMode);var pe=J.highWaterMark,ke=J.readableHighWaterMark,I=this.objectMode?16:16384;this.highWaterMark=pe||pe===0?pe:_e&&(ke||ke===0)?ke:I,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Ce,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=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(Le||(Le=n("string_decoder/").StringDecoder),this.decoder=new Le(J.encoding),this.encoding=J.encoding)}function t(J){if(z=z||n("./_stream_duplex"),!(this instanceof t))return new t(J);this._readableState=new l(J,this),this.readable=!0,J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy)),q.call(this)}function s(J,Y,_e,pe,ke){var I=J._readableState;if(Y===null)I.reading=!1,A(J,I);else{var e;ke||(e=c(I,Y)),e?J.emit("error",e):I.objectMode||Y&&Y.length>0?(typeof Y=="string"||I.objectMode||(0,le.default)(Y)===H.prototype||(Y=o(Y)),pe?I.endEmitted?J.emit("error",new Error("stream.unshift() after end event")):i(J,I,Y,!0):I.ended?J.emit("error",new Error("stream.push() after EOF")):(I.reading=!1,I.decoder&&!_e?(Y=I.decoder.write(Y),I.objectMode||Y.length!==0?i(J,I,Y,!1):L(J,I)):i(J,I,Y,!1))):pe||(I.reading=!1)}return f(I)}function i(J,Y,_e,pe){Y.flowing&&Y.length===0&&!Y.sync?(J.emit("data",_e),J.read(0)):(Y.length+=Y.objectMode?1:_e.length,pe?Y.buffer.unshift(_e):Y.buffer.push(_e),Y.needReadable&&h(J)),L(J,Y)}function c(J,Y){var _e;return u(Y)||typeof Y=="string"||Y===void 0||J.objectMode||(_e=new TypeError("Invalid non-string/buffer chunk")),_e}function f(J){return!J.ended&&(J.needReadable||J.length<J.highWaterMark||J.length===0)}function d(J){return J>=ge?J=ge:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}function T(J,Y){return J<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:J!==J?Y.flowing&&Y.length?Y.buffer.head.data.length:Y.length:(J>Y.highWaterMark&&(Y.highWaterMark=d(J)),J<=Y.length?J:Y.ended?Y.length:(Y.needReadable=!0,0))}function A(J,Y){if(!Y.ended){if(Y.decoder){var _e=Y.decoder.end();_e&&_e.length&&(Y.buffer.push(_e),Y.length+=Y.objectMode?1:_e.length)}Y.ended=!0,h(J)}}function h(J){var Y=J._readableState;Y.needReadable=!1,Y.emittedReadable||(me("emitReadable",Y.flowing),Y.emittedReadable=!0,Y.sync?re.nextTick(O,J):O(J))}function O(J){me("emit readable"),J.emit("readable"),G(J)}function L(J,Y){Y.readingMore||(Y.readingMore=!0,re.nextTick(v,J,Y))}function v(J,Y){for(var _e=Y.length;!Y.reading&&!Y.flowing&&!Y.ended&&Y.length<Y.highWaterMark&&(me("maybeReadMore read 0"),J.read(0),_e!==Y.length);)_e=Y.length;Y.readingMore=!1}function w(J){return function(){var Y=J._readableState;me("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&j(J,"data")&&(Y.flowing=!0,G(J))}}function R(J){me("readable nexttick read 0"),J.read(0)}function M(J,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,re.nextTick(x,J,Y))}function x(J,Y){Y.reading||(me("resume read 0"),J.read(0)),Y.resumeScheduled=!1,Y.awaitDrain=0,J.emit("resume"),G(J),Y.flowing&&!Y.reading&&J.read(0)}function G(J){var Y=J._readableState;for(me("flow",Y.flowing);Y.flowing&&J.read()!==null;);}function N(J,Y){if(Y.length===0)return null;var _e;return Y.objectMode?_e=Y.buffer.shift():!J||J>=Y.length?(_e=Y.decoder?Y.buffer.join(""):Y.buffer.length===1?Y.buffer.head.data:Y.buffer.concat(Y.length),Y.buffer.clear()):_e=X(J,Y.buffer,Y.decoder),_e}function X(J,Y,_e){var pe;return J<Y.head.data.length?(pe=Y.head.data.slice(0,J),Y.head.data=Y.head.data.slice(J)):pe=J===Y.head.data.length?Y.shift():_e?B(J,Y):$(J,Y),pe}function B(J,Y){var _e=Y.head,pe=1,ke=_e.data;for(J-=ke.length;_e=_e.next;){var I=_e.data,e=J>I.length?I.length:J;if(e===I.length?ke+=I:ke+=I.slice(0,J),(J-=e)===0){e===I.length?(++pe,_e.next?Y.head=_e.next:Y.head=Y.tail=null):(Y.head=_e,_e.data=I.slice(e));break}++pe}return Y.length-=pe,ke}function $(J,Y){var _e=H.allocUnsafe(J),pe=Y.head,ke=1;for(pe.data.copy(_e),J-=pe.data.length;pe=pe.next;){var I=pe.data,e=J>I.length?I.length:J;if(I.copy(_e,_e.length-J,0,e),(J-=e)===0){e===I.length?(++ke,pe.next?Y.head=pe.next:Y.head=Y.tail=null):(Y.head=pe,pe.data=I.slice(e));break}++ke}return Y.length-=ke,_e}function Z(J){var Y=J._readableState;if(Y.length>0)throw new Error('"endReadable()" called on non-empty stream');Y.endEmitted||(Y.ended=!0,re.nextTick(ne,Y,J))}function ne(J,Y){J.endEmitted||J.length!==0||(J.endEmitted=!0,Y.readable=!1,Y.emit("end"))}function se(J,Y){for(var _e=0,pe=J.length;_e<pe;_e++)if(J[_e]===Y)return _e;return-1}var W=n("babel-runtime/core-js/object/get-prototype-of"),le=function(J){return J&&J.__esModule?J:{default:J}}(W),re=n("process-nextick-args");k.exports=t;var z,U=n("isarray");t.ReadableState=l;var j=(n("events").EventEmitter,function(J,Y){return J.listeners(Y).length}),q=n("./internal/streams/stream"),H=n("safe-buffer").Buffer,ee=b.Uint8Array||function(){},oe=n("core-util-is");oe.inherits=n("inherits");var ye=n("util"),me=void 0;me=ye&&ye.debuglog?ye.debuglog("stream"):function(){};var Le,Ce=n("./internal/streams/BufferList"),de=n("./internal/streams/destroy");oe.inherits(t,q);var ce=["error","close","destroy","pause","resume"];Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Y){this._readableState&&(this._readableState.destroyed=Y)}}),t.prototype.destroy=de.destroy,t.prototype._undestroy=de.undestroy,t.prototype._destroy=function(J,Y){this.push(null),Y(J)},t.prototype.push=function(J,Y){var _e,pe=this._readableState;return pe.objectMode?_e=!0:typeof J=="string"&&(Y=Y||pe.defaultEncoding,Y!==pe.encoding&&(J=H.from(J,Y),Y=""),_e=!0),s(this,J,Y,!1,_e)},t.prototype.unshift=function(J){return s(this,J,null,!0,!1)},t.prototype.isPaused=function(){return this._readableState.flowing===!1},t.prototype.setEncoding=function(J){return Le||(Le=n("string_decoder/").StringDecoder),this._readableState.decoder=new Le(J),this._readableState.encoding=J,this};var ge=8388608;t.prototype.read=function(J){me("read",J),J=parseInt(J,10);var Y=this._readableState,_e=J;if(J!==0&&(Y.emittedReadable=!1),J===0&&Y.needReadable&&(Y.length>=Y.highWaterMark||Y.ended))return me("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?Z(this):h(this),null;if((J=T(J,Y))===0&&Y.ended)return Y.length===0&&Z(this),null;var pe=Y.needReadable;me("need readable",pe),(Y.length===0||Y.length-J<Y.highWaterMark)&&(pe=!0,me("length less than watermark",pe)),Y.ended||Y.reading?(pe=!1,me("reading or ended",pe)):pe&&(me("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0),this._read(Y.highWaterMark),Y.sync=!1,Y.reading||(J=T(_e,Y)));var ke;return ke=J>0?N(J,Y):null,ke===null?(Y.needReadable=!0,J=0):Y.length-=J,Y.length===0&&(Y.ended||(Y.needReadable=!0),_e!==J&&Y.ended&&Z(this)),ke!==null&&this.emit("data",ke),ke},t.prototype._read=function(J){this.emit("error",new Error("_read() is not implemented"))},t.prototype.pipe=function(J,Y){function _e(at,ct){me("onunpipe"),at===E&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,ke())}function pe(){me("onend"),J.end()}function ke(){me("cleanup"),J.removeListener("close",r),J.removeListener("finish",C),J.removeListener("drain",Ue),J.removeListener("error",e),J.removeListener("unpipe",_e),E.removeListener("end",pe),E.removeListener("end",g),E.removeListener("data",I),Ke=!0,!K.awaitDrain||J._writableState&&!J._writableState.needDrain||Ue()}function I(at){me("ondata"),et=!1,J.write(at)!==!1||et||((K.pipesCount===1&&K.pipes===J||K.pipesCount>1&&se(K.pipes,J)!==-1)&&!Ke&&(me("false write response, pause",E._readableState.awaitDrain),E._readableState.awaitDrain++,et=!0),E.pause())}function e(at){me("onerror",at),g(),J.removeListener("error",e),j(J,"error")===0&&J.emit("error",at)}function r(){J.removeListener("finish",C),g()}function C(){me("onfinish"),J.removeListener("close",r),g()}function g(){me("unpipe"),E.unpipe(J)}var E=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=J;break;case 1:K.pipes=[K.pipes,J];break;default:K.pipes.push(J)}K.pipesCount+=1,me("pipe count=%d opts=%j",K.pipesCount,Y);var ie=(!Y||Y.end!==!1)&&J!==m.stdout&&J!==m.stderr,ze=ie?pe:g;K.endEmitted?re.nextTick(ze):E.once("end",ze),J.on("unpipe",_e);var Ue=w(E);J.on("drain",Ue);var Ke=!1,et=!1;return E.on("data",I),p(J,"error",e),J.once("close",r),J.once("finish",C),J.emit("pipe",E),K.flowing||(me("pipe resume"),E.resume()),J},t.prototype.unpipe=function(J){var Y=this._readableState,_e={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return J&&J!==Y.pipes?this:(J||(J=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,J&&J.emit("unpipe",this,_e),this);if(!J){var pe=Y.pipes,ke=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var I=0;I<ke;I++)pe[I].emit("unpipe",this,_e);return this}var e=se(Y.pipes,J);return e===-1?this:(Y.pipes.splice(e,1),Y.pipesCount-=1,Y.pipesCount===1&&(Y.pipes=Y.pipes[0]),J.emit("unpipe",this,_e),this)},t.prototype.on=function(J,Y){var _e=q.prototype.on.call(this,J,Y);if(J==="data")this._readableState.flowing!==!1&&this.resume();else if(J==="readable"){var pe=this._readableState;pe.endEmitted||pe.readableListening||(pe.readableListening=pe.needReadable=!0,pe.emittedReadable=!1,pe.reading?pe.length&&h(this):re.nextTick(R,this))}return _e},t.prototype.addListener=t.prototype.on,t.prototype.resume=function(){var J=this._readableState;return J.flowing||(me("resume"),J.flowing=!0,M(this,J)),this},t.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this},t.prototype.wrap=function(J){var Y=this,_e=this._readableState,pe=!1;J.on("end",function(){if(me("wrapped end"),_e.decoder&&!_e.ended){var e=_e.decoder.end();e&&e.length&&Y.push(e)}Y.push(null)}),J.on("data",function(e){(me("wrapped data"),_e.decoder&&(e=_e.decoder.write(e)),(!_e.objectMode||e!=null)&&(_e.objectMode||e&&e.length))&&(Y.push(e)||(pe=!0,J.pause()))});for(var ke in J)this[ke]===void 0&&typeof J[ke]=="function"&&(this[ke]=function(e){return function(){return J[e].apply(J,arguments)}}(ke));for(var I=0;I<ce.length;I++)J.on(ce[I],this.emit.bind(this,ce[I]));return this._read=function(e){me("wrapped _read",e),pe&&(pe=!1,J.resume())},this},Object.defineProperty(t.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),t._fromList=N}).call(this,n("_process"),typeof nt!="undefined"?nt: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(n,k,_){"use strict";function m(t,s){var i=this._transformState;i.transforming=!1;var c=i.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,s!=null&&this.push(s),c(t);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function b(t){if(!(this instanceof b))return new b(t);p.call(this,t),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;typeof this._flush=="function"?this._flush(function(s,i){u(t,s,i)}):u(this,null,null)}function u(t,s,i){if(s)return t.emit("error",s);if(i!=null&&t.push(i),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}k.exports=b;var p=n("./_stream_duplex"),l=n("core-util-is");l.inherits=n("inherits"),l.inherits(b,p),b.prototype.push=function(t,s){return this._transformState.needTransform=!1,p.prototype.push.call(this,t,s)},b.prototype._transform=function(t,s,i){throw new Error("_transform() is not implemented")},b.prototype._write=function(t,s,i){var c=this._transformState;if(c.writecb=i,c.writechunk=t,c.writeencoding=s,!c.transforming){var f=this._readableState;(c.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},b.prototype._read=function(t){var s=this._transformState;s.writechunk!==null&&s.writecb&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},b.prototype._destroy=function(t,s){var i=this;p.prototype._destroy.call(this,t,function(c){s(c),i.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,k,_){(function(m,b){"use strict";function o(de){return de&&de.__esModule?de:{default:de}}function u(de){var ce=this;this.next=null,this.entry=null,this.finish=function(){B(ce,de)}}function p(de){return ye.from(de)}function l(de){return ye.isBuffer(de)||de instanceof me}function t(){}function s(de,ce){j=j||n("./_stream_duplex"),de=de||{};var ge=ce instanceof j;this.objectMode=!!de.objectMode,ge&&(this.objectMode=this.objectMode||!!de.writableObjectMode);var J=de.highWaterMark,Y=de.writableHighWaterMark,_e=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:ge&&(Y||Y===0)?Y:_e,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 pe=de.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=de.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){L(ce,ke)},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 u(this)}function i(de){if(j=j||n("./_stream_duplex"),!(Ce.call(i,this)||this instanceof j))return new i(de);this._writableState=new s(de,this),this.writable=!0,de&&(typeof de.write=="function"&&(this._write=de.write),typeof de.writev=="function"&&(this._writev=de.writev),typeof de.destroy=="function"&&(this._destroy=de.destroy),typeof de.final=="function"&&(this._final=de.final)),oe.call(this)}function c(de,ce){var ge=new Error("write after end");de.emit("error",ge),U.nextTick(ce,ge)}function f(de,ce,ge,J){var Y=!0,_e=!1;return ge===null?_e=new TypeError("May not write null values to stream"):typeof ge=="string"||ge===void 0||ce.objectMode||(_e=new TypeError("Invalid non-string/buffer chunk")),_e&&(de.emit("error",_e),U.nextTick(J,_e),Y=!1),Y}function d(de,ce,ge){return de.objectMode||de.decodeStrings===!1||typeof ce!="string"||(ce=ye.from(ce,ge)),ce}function T(de,ce,ge,J,Y,_e){if(!ge){var pe=d(ce,J,Y);J!==pe&&(ge=!0,Y="buffer",J=pe)}var ke=ce.objectMode?1:J.length;ce.length+=ke;var I=ce.length<ce.highWaterMark;if(I||(ce.needDrain=!0),ce.writing||ce.corked){var e=ce.lastBufferedRequest;ce.lastBufferedRequest={chunk:J,encoding:Y,isBuf:ge,callback:_e,next:null},e?e.next=ce.lastBufferedRequest:ce.bufferedRequest=ce.lastBufferedRequest,ce.bufferedRequestCount+=1}else A(de,ce,!1,ke,J,Y,_e);return I}function A(de,ce,ge,J,Y,_e,pe){ce.writelen=J,ce.writecb=pe,ce.writing=!0,ce.sync=!0,ge?de._writev(Y,ce.onwrite):de._write(Y,_e,ce.onwrite),ce.sync=!1}function h(de,ce,ge,J,Y){--ce.pendingcb,ge?(U.nextTick(Y,J),U.nextTick(N,de,ce),de._writableState.errorEmitted=!0,de.emit("error",J)):(Y(J),de._writableState.errorEmitted=!0,de.emit("error",J),N(de,ce))}function O(de){de.writing=!1,de.writecb=null,de.length-=de.writelen,de.writelen=0}function L(de,ce){var ge=de._writableState,J=ge.sync,Y=ge.writecb;if(O(ge),ce)h(de,ge,J,ce,Y);else{var _e=M(ge);_e||ge.corked||ge.bufferProcessing||!ge.bufferedRequest||R(de,ge),J?q(v,de,ge,_e,Y):v(de,ge,_e,Y)}}function v(de,ce,ge,J){ge||w(de,ce),ce.pendingcb--,J(),N(de,ce)}function w(de,ce){ce.length===0&&ce.needDrain&&(ce.needDrain=!1,de.emit("drain"))}function R(de,ce){ce.bufferProcessing=!0;var ge=ce.bufferedRequest;if(de._writev&&ge&&ge.next){var J=ce.bufferedRequestCount,Y=new Array(J),_e=ce.corkedRequestsFree;_e.entry=ge;for(var pe=0,ke=!0;ge;)Y[pe]=ge,ge.isBuf||(ke=!1),ge=ge.next,pe+=1;Y.allBuffers=ke,A(de,ce,!0,ce.length,Y,"",_e.finish),ce.pendingcb++,ce.lastBufferedRequest=null,_e.next?(ce.corkedRequestsFree=_e.next,_e.next=null):ce.corkedRequestsFree=new u(ce),ce.bufferedRequestCount=0}else{for(;ge;){var I=ge.chunk,e=ge.encoding,r=ge.callback;if(A(de,ce,!1,ce.objectMode?1:I.length,I,e,r),ge=ge.next,ce.bufferedRequestCount--,ce.writing)break}ge===null&&(ce.lastBufferedRequest=null)}ce.bufferedRequest=ge,ce.bufferProcessing=!1}function M(de){return de.ending&&de.length===0&&de.bufferedRequest===null&&!de.finished&&!de.writing}function x(de,ce){de._final(function(ge){ce.pendingcb--,ge&&de.emit("error",ge),ce.prefinished=!0,de.emit("prefinish"),N(de,ce)})}function G(de,ce){ce.prefinished||ce.finalCalled||(typeof de._final=="function"?(ce.pendingcb++,ce.finalCalled=!0,U.nextTick(x,de,ce)):(ce.prefinished=!0,de.emit("prefinish")))}function N(de,ce){var ge=M(ce);return ge&&(G(de,ce),ce.pendingcb===0&&(ce.finished=!0,de.emit("finish"))),ge}function X(de,ce,ge){ce.ending=!0,N(de,ce),ge&&(ce.finished?U.nextTick(ge):de.once("finish",ge)),ce.ended=!0,de.writable=!1}function B(de,ce,ge){var J=de.entry;for(de.entry=null;J;){var Y=J.callback;ce.pendingcb--,Y(ge),J=J.next}ce.corkedRequestsFree?ce.corkedRequestsFree.next=de:ce.corkedRequestsFree=de}var $=n("babel-runtime/core-js/object/define-property"),Z=o($),ne=n("babel-runtime/core-js/symbol/has-instance"),se=o(ne),W=n("babel-runtime/core-js/symbol"),le=o(W),re=n("babel-runtime/core-js/set-immediate"),z=o(re),U=n("process-nextick-args");k.exports=i;var j,q=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?z.default:U.nextTick;i.WritableState=s;var H=n("core-util-is");H.inherits=n("inherits");var ee={deprecate:n("util-deprecate")},oe=n("./internal/streams/stream"),ye=n("safe-buffer").Buffer,me=b.Uint8Array||function(){},Le=n("./internal/streams/destroy");H.inherits(i,oe),s.prototype.getBuffer=function(){for(var de=this.bufferedRequest,ce=[];de;)ce.push(de),de=de.next;return ce},function(){try{Object.defineProperty(s.prototype,"buffer",{get:ee.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(de){}}();var Ce;typeof le.default=="function"&&se.default&&typeof Function.prototype[se.default]=="function"?(Ce=Function.prototype[se.default],(0,Z.default)(i,se.default,{value:function(ce){return!!Ce.call(this,ce)||this===i&&ce&&ce._writableState instanceof s}})):Ce=function(ce){return ce instanceof this},i.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},i.prototype.write=function(de,ce,ge){var J=this._writableState,Y=!1,_e=!J.objectMode&&l(de);return _e&&!ye.isBuffer(de)&&(de=p(de)),typeof ce=="function"&&(ge=ce,ce=null),_e?ce="buffer":ce||(ce=J.defaultEncoding),typeof ge!="function"&&(ge=t),J.ended?c(this,ge):(_e||f(this,J,de,ge))&&(J.pendingcb++,Y=T(this,J,_e,de,ce,ge)),Y},i.prototype.cork=function(){this._writableState.corked++},i.prototype.uncork=function(){var de=this._writableState;de.corked&&(de.corked--,de.writing||de.corked||de.finished||de.bufferProcessing||!de.bufferedRequest||R(this,de))},i.prototype.setDefaultEncoding=function(de){if(typeof de=="string"&&(de=de.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((de+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+de);return this._writableState.defaultEncoding=de,this},Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),i.prototype._write=function(de,ce,ge){ge(new Error("_write() is not implemented"))},i.prototype._writev=null,i.prototype.end=function(de,ce,ge){var J=this._writableState;typeof de=="function"?(ge=de,de=null,ce=null):typeof ce=="function"&&(ge=ce,ce=null),de!=null&&this.write(de,ce),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||X(this,J,ge)},Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ce){this._writableState&&(this._writableState.destroyed=ce)}}),i.prototype.destroy=Le.destroy,i.prototype._undestroy=Le.undestroy,i.prototype._destroy=function(de,ce){this.end(),ce(de)}}).call(this,n("_process"),typeof nt!="undefined"?nt: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(n,k,_){"use strict";function m(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function b(p,l,t){p.copy(l,t)}var o=n("safe-buffer").Buffer,u=n("util");k.exports=function(){function p(){m(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(l){var t={data:l,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},p.prototype.unshift=function(l){var t={data:l,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},p.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(l){if(this.length===0)return"";for(var t=this.head,s=""+t.data;t=t.next;)s+=l+t.data;return s},p.prototype.concat=function(l){if(this.length===0)return o.alloc(0);if(this.length===1)return this.head.data;for(var t=o.allocUnsafe(l>>>0),s=this.head,i=0;s;)b(s.data,t,i),i+=s.data.length,s=s.next;return t},p}(),u&&u.inspect&&u.inspect.custom&&(k.exports.prototype[u.inspect.custom]=function(){var p=u.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(n,k,_){"use strict";function m(p,l){var t=this,s=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return s||i?(l?l(p):!p||this._writableState&&this._writableState.errorEmitted||u.nextTick(o,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(c){!l&&c?(u.nextTick(o,t,c),t._writableState&&(t._writableState.errorEmitted=!0)):l&&l(c)}),this)}function b(){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,l){p.emit("error",l)}var u=n("process-nextick-args");k.exports={destroy:m,undestroy:b}},{"process-nextick-args":172}],186:[function(n,k,_){"use strict";k.exports=n("events").EventEmitter},{events:158}],187:[function(n,k,_){k.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,k,_){_=k.exports=n("./lib/_stream_readable.js"),_.Stream=_,_.Readable=_,_.Writable=n("./lib/_stream_writable.js"),_.Duplex=n("./lib/_stream_duplex.js"),_.Transform=n("./lib/_stream_transform.js"),_.PassThrough=n("./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(n,k,_){k.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,k,_){k.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,k,_){var m=function(){return this}()||Function("return this")(),b=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,o=b&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,k.exports=n("./runtime"),b)m.regeneratorRuntime=o;else try{delete m.regeneratorRuntime}catch(u){m.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,k,_){!function(m){"use strict";function b(z,U,j,q){var H=U&&U.prototype instanceof u?U:u,ee=Object.create(H.prototype),oe=new T(q||[]);return ee._invoke=i(z,j,oe),ee}function o(z,U,j){try{return{type:"normal",arg:z.call(U,j)}}catch(q){return{type:"throw",arg:q}}}function u(){}function p(){}function l(){}function t(z){["next","throw","return"].forEach(function(U){z[U]=function(j){return this._invoke(U,j)}})}function s(z){function U(H,ee,oe,ye){var me=o(z[H],z,ee);if(me.type!=="throw"){var Le=me.arg,Ce=Le.value;return Ce&&typeof Ce=="object"&&v.call(Ce,"__await")?Promise.resolve(Ce.__await).then(function(de){U("next",de,oe,ye)},function(de){U("throw",de,oe,ye)}):Promise.resolve(Ce).then(function(de){Le.value=de,oe(Le)},ye)}ye(me.arg)}function j(H,ee){function oe(){return new Promise(function(ye,me){U(H,ee,ye,me)})}return q=q?q.then(oe,oe):oe()}var q;this._invoke=j}function i(z,U,j){var q=X;return function(H,ee){if(q===$)throw new Error("Generator is already running");if(q===Z){if(H==="throw")throw ee;return h()}for(j.method=H,j.arg=ee;;){var oe=j.delegate;if(oe){var ye=c(oe,j);if(ye){if(ye===ne)continue;return ye}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(q===X)throw q=Z,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);q=$;var me=o(z,U,j);if(me.type==="normal"){if(q=j.done?Z:B,me.arg===ne)continue;return{value:me.arg,done:j.done}}me.type==="throw"&&(q=Z,j.method="throw",j.arg=me.arg)}}}function c(z,U){var j=z.iterator[U.method];if(j===O){if(U.delegate=null,U.method==="throw"){if(z.iterator.return&&(U.method="return",U.arg=O,c(z,U),U.method==="throw"))return ne;U.method="throw",U.arg=new TypeError("The iterator does not provide a 'throw' method")}return ne}var q=o(j,z.iterator,U.arg);if(q.type==="throw")return U.method="throw",U.arg=q.arg,U.delegate=null,ne;var H=q.arg;return H?H.done?(U[z.resultName]=H.value,U.next=z.nextLoc,U.method!=="return"&&(U.method="next",U.arg=O),U.delegate=null,ne):H:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,ne)}function f(z){var U={tryLoc:z[0]};1 in z&&(U.catchLoc=z[1]),2 in z&&(U.finallyLoc=z[2],U.afterLoc=z[3]),this.tryEntries.push(U)}function d(z){var U=z.completion||{};U.type="normal",delete U.arg,z.completion=U}function T(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(f,this),this.reset(!0)}function A(z){if(z){var U=z[R];if(U)return U.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var j=-1,q=function H(){for(;++j<z.length;)if(v.call(z,j))return H.value=z[j],H.done=!1,H;return H.value=O,H.done=!0,H};return q.next=q}}return{next:h}}function h(){return{value:O,done:!0}}var O,L=Object.prototype,v=L.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},R=w.iterator||"@@iterator",M=w.asyncIterator||"@@asyncIterator",x=w.toStringTag||"@@toStringTag",G=typeof k=="object",N=m.regeneratorRuntime;if(N)return void(G&&(k.exports=N));N=m.regeneratorRuntime=G?k.exports:{},N.wrap=b;var X="suspendedStart",B="suspendedYield",$="executing",Z="completed",ne={},se={};se[R]=function(){return this};var W=Object.getPrototypeOf,le=W&&W(W(A([])));le&&le!==L&&v.call(le,R)&&(se=le);var re=l.prototype=u.prototype=Object.create(se);p.prototype=re.constructor=l,l.constructor=p,l[x]=p.displayName="GeneratorFunction",N.isGeneratorFunction=function(z){var U=typeof z=="function"&&z.constructor;return!!U&&(U===p||(U.displayName||U.name)==="GeneratorFunction")},N.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,l):(z.__proto__=l,x in z||(z[x]="GeneratorFunction")),z.prototype=Object.create(re),z},N.awrap=function(z){return{__await:z}},t(s.prototype),s.prototype[M]=function(){return this},N.AsyncIterator=s,N.async=function(z,U,j,q){var H=new s(b(z,U,j,q));return N.isGeneratorFunction(U)?H:H.next().then(function(ee){return ee.done?ee.value:H.next()})},t(re),re[x]="Generator",re[R]=function(){return this},re.toString=function(){return"[object Generator]"},N.keys=function(z){var U=[];for(var j in z)U.push(j);return U.reverse(),function q(){for(;U.length;){var H=U.pop();if(H in z)return q.value=H,q.done=!1,q}return q.done=!0,q}},N.values=A,T.prototype={constructor:T,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEach(d),!U)for(var j in this)j.charAt(0)==="t"&&v.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=O)},stop:function(){this.done=!0;var U=this.tryEntries[0],j=U.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(U){function j(Le,Ce){return oe.type="throw",oe.arg=U,q.next=Le,Ce&&(q.method="next",q.arg=O),!!Ce}if(this.done)throw U;for(var q=this,H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H],oe=ee.completion;if(ee.tryLoc==="root")return j("end");if(ee.tryLoc<=this.prev){var ye=v.call(ee,"catchLoc"),me=v.call(ee,"finallyLoc");if(ye&&me){if(this.prev<ee.catchLoc)return j(ee.catchLoc,!0);if(this.prev<ee.finallyLoc)return j(ee.finallyLoc)}else if(ye){if(this.prev<ee.catchLoc)return j(ee.catchLoc,!0)}else{if(!me)throw new Error("try statement without catch or finally");if(this.prev<ee.finallyLoc)return j(ee.finallyLoc)}}}},abrupt:function(U,j){for(var q=this.tryEntries.length-1;q>=0;--q){var H=this.tryEntries[q];if(H.tryLoc<=this.prev&&v.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var ee=H;break}}ee&&(U==="break"||U==="continue")&&ee.tryLoc<=j&&j<=ee.finallyLoc&&(ee=null);var oe=ee?ee.completion:{};return oe.type=U,oe.arg=j,ee?(this.method="next",this.next=ee.finallyLoc,ne):this.complete(oe)},complete:function(U,j){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&j&&(this.next=j),ne},finish:function(U){for(var j=this.tryEntries.length-1;j>=0;--j){var q=this.tryEntries[j];if(q.finallyLoc===U)return this.complete(q.completion,q.afterLoc),d(q),ne}},catch:function(U){for(var j=this.tryEntries.length-1;j>=0;--j){var q=this.tryEntries[j];if(q.tryLoc===U){var H=q.completion;if(H.type==="throw"){var ee=H.arg;d(q)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(U,j,q){return this.delegate={iterator:A(U),resultName:j,nextLoc:q},this.method==="next"&&(this.arg=O),ne}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,k,_){function m(p,l){for(var t in p)l[t]=p[t]}function b(p,l,t){return u(p,l,t)}var o=n("buffer"),u=o.Buffer;u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?k.exports=o:(m(o,_),_.Buffer=b),m(u,b),b.from=function(p,l,t){if(typeof p=="number")throw new TypeError("Argument must not be a number");return u(p,l,t)},b.alloc=function(p,l,t){if(typeof p!="number")throw new TypeError("Argument must be a number");var s=u(p);return l!==void 0?typeof t=="string"?s.fill(l,t):s.fill(l):s.fill(0),s},b.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return u(p)},b.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(p)}},{buffer:38}],194:[function(n,k,_){(function(m){"use strict";function b(h){return h&&h.__esModule?h:{default:h}}var o=n("babel-runtime/core-js/string/from-code-point"),u=b(o),p=n("babel-runtime/core-js/json/stringify"),l=b(p),t=n("babel-runtime/helpers/typeof"),s=b(t),i=n("babel-runtime/core-js/object/define-property"),c=b(i),f=n("babel-runtime/core-js/object/keys"),d=b(f),T=n("babel-runtime/core-js/object/create"),A=b(T);!function(h){function O(g,E){if(!(this instanceof O))return new O(g,E);var K=this;v(K),K.q=K.c="",K.bufferCheckPosition=h.MAX_BUFFER_LENGTH,K.opt=E||{},K.opt.lowercase=K.opt.lowercase||K.opt.lowercasetags,K.looseCase=K.opt.lowercase?"toLowerCase":"toUpperCase",K.tags=[],K.closed=K.closedRoot=K.sawRoot=!1,K.tag=K.error=null,K.strict=!!g,K.noscript=!(!g&&!K.opt.noscript),K.state=r.BEGIN,K.strictEntities=K.opt.strictEntities,K.ENTITIES=K.strictEntities?(0,A.default)(h.XML_ENTITIES):(0,A.default)(h.ENTITIES),K.attribList=[],K.opt.xmlns&&(K.ns=(0,A.default)(_e)),K.trackPosition=K.opt.position!==!1,K.trackPosition&&(K.position=K.line=K.column=0),$(K,"onready")}function L(g){for(var E=Math.max(h.MAX_BUFFER_LENGTH,10),K=0,ie=0,ze=Le.length;ie<ze;ie++){var Ue=g[Le[ie]].length;if(Ue>E)switch(Le[ie]){case"textNode":ne(g);break;case"cdata":Z(g,"oncdata",g.cdata),g.cdata="";break;case"script":Z(g,"onscript",g.script),g.script="";break;default:W(g,"Max buffer length exceeded: "+Le[ie])}K=Math.max(K,Ue)}var Ke=h.MAX_BUFFER_LENGTH-K;g.bufferCheckPosition=Ke+g.position}function v(g){for(var E=0,K=Le.length;E<K;E++)g[Le[E]]=""}function w(g){ne(g),g.cdata!==""&&(Z(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(Z(g,"onscript",g.script),g.script="")}function R(g,E){return new M(g,E)}function M(g,E){if(!(this instanceof M))return new M(g,E);Ce.apply(this),this._parser=new O(g,E),this.writable=!0,this.readable=!0;var K=this;this._parser.onend=function(){K.emit("end")},this._parser.onerror=function(ie){K.emit("error",ie),K._parser.error=null},this._decoder=null,de.forEach(function(ie){(0,c.default)(K,"on"+ie,{get:function(){return K._parser["on"+ie]},set:function(Ue){if(!Ue)return K.removeAllListeners(ie),K._parser["on"+ie]=Ue,Ue;K.on(ie,Ue)},enumerable:!0,configurable:!1})})}function x(g){return g===" "||g===`
|
|
|
`||g==="\r"||g===" "}function G(g){return g==='"'||g==="'"}function N(g){return g===">"||x(g)}function X(g,E){return g.test(E)}function B(g,E){return!X(g,E)}function $(g,E,K){g[E]&&g[E](K)}function Z(g,E,K){g.textNode&&ne(g),$(g,E,K)}function ne(g){g.textNode=se(g.opt,g.textNode),g.textNode&&$(g,"ontext",g.textNode),g.textNode=""}function se(g,E){return g.trim&&(E=E.trim()),g.normalize&&(E=E.replace(/\s+/g," ")),E}function W(g,E){return ne(g),g.trackPosition&&(E+=`
|
|
|
Line: `+g.line+`
|
|
|
Column: `+g.column+`
|
|
|
Char: `+g.c),E=new Error(E),g.error=E,$(g,"onerror",E),g}function le(g){return g.sawRoot&&!g.closedRoot&&re(g,"Unclosed root tag"),g.state!==r.BEGIN&&g.state!==r.BEGIN_WHITESPACE&&g.state!==r.TEXT&&W(g,"Unexpected end"),ne(g),g.c="",g.closed=!0,$(g,"onend"),O.call(g,g.strict,g.opt),g}function re(g,E){if((g===void 0?"undefined":(0,s.default)(g))!=="object"||!(g instanceof O))throw new Error("bad call to strictFail");g.strict&&W(g,E)}function z(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var E=g.tags[g.tags.length-1]||g,K=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(K.ns=E.ns),g.attribList.length=0,Z(g,"onopentagstart",K)}function U(g,E){var K=g.indexOf(":"),ie=K<0?["",g]:g.split(":"),ze=ie[0],Ue=ie[1];return E&&g==="xmlns"&&(ze="xmlns",Ue=""),{prefix:ze,local:Ue}}function j(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName))return void(g.attribName=g.attribValue="");if(g.opt.xmlns){var E=U(g.attribName,!0),K=E.prefix,ie=E.local;if(K==="xmlns")if(ie==="xml"&&g.attribValue!==J)re(g,"xml: prefix must be bound to "+J+`
|
|
|
Actual: `+g.attribValue);else if(ie==="xmlns"&&g.attribValue!==Y)re(g,"xmlns: prefix must be bound to "+Y+`
|
|
|
Actual: `+g.attribValue);else{var ze=g.tag,Ue=g.tags[g.tags.length-1]||g;ze.ns===Ue.ns&&(ze.ns=(0,A.default)(Ue.ns)),ze.ns[ie]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,Z(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function q(g,E){if(g.opt.xmlns){var K=g.tag,ie=U(g.tagName);K.prefix=ie.prefix,K.local=ie.local,K.uri=K.ns[ie.prefix]||"",K.prefix&&!K.uri&&(re(g,"Unbound namespace prefix: "+(0,l.default)(g.tagName)),K.uri=ie.prefix);var ze=g.tags[g.tags.length-1]||g;K.ns&&ze.ns!==K.ns&&(0,d.default)(K.ns).forEach(function(Dt){Z(g,"onopennamespace",{prefix:Dt,uri:K.ns[Dt]})});for(var Ue=0,Ke=g.attribList.length;Ue<Ke;Ue++){var et=g.attribList[Ue],at=et[0],ct=et[1],Me=U(at,!0),lt=Me.prefix,xt=Me.local,yt=lt===""?"":K.ns[lt]||"",Et={name:at,value:ct,prefix:lt,local:xt,uri:yt};lt&<!=="xmlns"&&!yt&&(re(g,"Unbound namespace prefix: "+(0,l.default)(lt)),Et.uri=lt),g.tag.attributes[at]=Et,Z(g,"onattribute",Et)}g.attribList.length=0}g.tag.isSelfClosing=!!E,g.sawRoot=!0,g.tags.push(g.tag),Z(g,"onopentag",g.tag),E||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=r.TEXT:g.state=r.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function H(g){if(!g.tagName)return re(g,"Weird empty close tag."),g.textNode+="</>",void(g.state=r.TEXT);if(g.script){if(g.tagName!=="script")return g.script+="</"+g.tagName+">",g.tagName="",void(g.state=r.SCRIPT);Z(g,"onscript",g.script),g.script=""}var E=g.tags.length,K=g.tagName;g.strict||(K=K[g.looseCase]());for(var ie=K;E--&&!(g.tags[E].name===ie);)re(g,"Unexpected close tag");if(E<0)return re(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",void(g.state=r.TEXT);g.tagName=K;for(var ze=g.tags.length;ze-- >E;){var Ue=g.tag=g.tags.pop();g.tagName=g.tag.name,Z(g,"onclosetag",g.tagName);var Ke={};for(var et in Ue.ns)Ke[et]=Ue.ns[et];var at=g.tags[g.tags.length-1]||g;g.opt.xmlns&&Ue.ns!==at.ns&&(0,d.default)(Ue.ns).forEach(function(ct){var Me=Ue.ns[ct];Z(g,"onclosenamespace",{prefix:ct,uri:Me})})}E===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=r.TEXT}function ee(g){var E,K=g.entity,ie=K.toLowerCase(),ze="";return g.ENTITIES[K]?g.ENTITIES[K]:g.ENTITIES[ie]?g.ENTITIES[ie]:(K=ie,K.charAt(0)==="#"&&(K.charAt(1)==="x"?(K=K.slice(2),E=parseInt(K,16),ze=E.toString(16)):(K=K.slice(1),E=parseInt(K,10),ze=E.toString(10))),K=K.replace(/^0+/,""),isNaN(E)||ze.toLowerCase()!==K?(re(g,"Invalid character entity"),"&"+g.entity+";"):(0,u.default)(E))}function oe(g,E){E==="<"?(g.state=r.OPEN_WAKA,g.startTagPosition=g.position):x(E)||(re(g,"Non-whitespace before first tag."),g.textNode=E,g.state=r.TEXT)}function ye(g,E){var K="";return E<g.length&&(K=g.charAt(E)),K}function me(g){var E=this;if(this.error)throw this.error;if(E.closed)return W(E,"Cannot write after close. Assign an onready handler.");if(g===null)return le(E);(g===void 0?"undefined":(0,s.default)(g))==="object"&&(g=g.toString());for(var K=0,ie="";!(ie=ye(g,K++),E.c=ie,!ie);)switch(E.trackPosition&&(E.position++,ie===`
|
|
|
`?(E.line++,E.column=0):E.column++),E.state){case r.BEGIN:if(E.state=r.BEGIN_WHITESPACE,ie==="\uFEFF")continue;oe(E,ie);continue;case r.BEGIN_WHITESPACE:oe(E,ie);continue;case r.TEXT:if(E.sawRoot&&!E.closedRoot){for(var ze=K-1;ie&&ie!=="<"&&ie!=="&";)(ie=ye(g,K++))&&E.trackPosition&&(E.position++,ie===`
|
|
|
`?(E.line++,E.column=0):E.column++);E.textNode+=g.substring(ze,K-1)}ie!=="<"||E.sawRoot&&E.closedRoot&&!E.strict?(x(ie)||E.sawRoot&&!E.closedRoot||re(E,"Text data outside of root node."),ie==="&"?E.state=r.TEXT_ENTITY:E.textNode+=ie):(E.state=r.OPEN_WAKA,E.startTagPosition=E.position);continue;case r.SCRIPT:ie==="<"?E.state=r.SCRIPT_ENDING:E.script+=ie;continue;case r.SCRIPT_ENDING:ie==="/"?E.state=r.CLOSE_TAG:(E.script+="<"+ie,E.state=r.SCRIPT);continue;case r.OPEN_WAKA:if(ie==="!")E.state=r.SGML_DECL,E.sgmlDecl="";else if(!x(ie))if(X(pe,ie))E.state=r.OPEN_TAG,E.tagName=ie;else if(ie==="/")E.state=r.CLOSE_TAG,E.tagName="";else if(ie==="?")E.state=r.PROC_INST,E.procInstName=E.procInstBody="";else{if(re(E,"Unencoded <"),E.startTagPosition+1<E.position){var Ue=E.position-E.startTagPosition;ie=new Array(Ue).join(" ")+ie}E.textNode+="<"+ie,E.state=r.TEXT}continue;case r.SGML_DECL:(E.sgmlDecl+ie).toUpperCase()===ce?(Z(E,"onopencdata"),E.state=r.CDATA,E.sgmlDecl="",E.cdata=""):E.sgmlDecl+ie==="--"?(E.state=r.COMMENT,E.comment="",E.sgmlDecl=""):(E.sgmlDecl+ie).toUpperCase()===ge?(E.state=r.DOCTYPE,(E.doctype||E.sawRoot)&&re(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):ie===">"?(Z(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=r.TEXT):(G(ie)&&(E.state=r.SGML_DECL_QUOTED),E.sgmlDecl+=ie);continue;case r.SGML_DECL_QUOTED:ie===E.q&&(E.state=r.SGML_DECL,E.q=""),E.sgmlDecl+=ie;continue;case r.DOCTYPE:ie===">"?(E.state=r.TEXT,Z(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=ie,ie==="["?E.state=r.DOCTYPE_DTD:G(ie)&&(E.state=r.DOCTYPE_QUOTED,E.q=ie));continue;case r.DOCTYPE_QUOTED:E.doctype+=ie,ie===E.q&&(E.q="",E.state=r.DOCTYPE);continue;case r.DOCTYPE_DTD:E.doctype+=ie,ie==="]"?E.state=r.DOCTYPE:G(ie)&&(E.state=r.DOCTYPE_DTD_QUOTED,E.q=ie);continue;case r.DOCTYPE_DTD_QUOTED:E.doctype+=ie,ie===E.q&&(E.state=r.DOCTYPE_DTD,E.q="");continue;case r.COMMENT:ie==="-"?E.state=r.COMMENT_ENDING:E.comment+=ie;continue;case r.COMMENT_ENDING:ie==="-"?(E.state=r.COMMENT_ENDED,E.comment=se(E.opt,E.comment),E.comment&&Z(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+ie,E.state=r.COMMENT);continue;case r.COMMENT_ENDED:ie!==">"?(re(E,"Malformed comment"),E.comment+="--"+ie,E.state=r.COMMENT):E.state=r.TEXT;continue;case r.CDATA:ie==="]"?E.state=r.CDATA_ENDING:E.cdata+=ie;continue;case r.CDATA_ENDING:ie==="]"?E.state=r.CDATA_ENDING_2:(E.cdata+="]"+ie,E.state=r.CDATA);continue;case r.CDATA_ENDING_2:ie===">"?(E.cdata&&Z(E,"oncdata",E.cdata),Z(E,"onclosecdata"),E.cdata="",E.state=r.TEXT):ie==="]"?E.cdata+="]":(E.cdata+="]]"+ie,E.state=r.CDATA);continue;case r.PROC_INST:ie==="?"?E.state=r.PROC_INST_ENDING:x(ie)?E.state=r.PROC_INST_BODY:E.procInstName+=ie;continue;case r.PROC_INST_BODY:if(!E.procInstBody&&x(ie))continue;ie==="?"?E.state=r.PROC_INST_ENDING:E.procInstBody+=ie;continue;case r.PROC_INST_ENDING:ie===">"?(Z(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=r.TEXT):(E.procInstBody+="?"+ie,E.state=r.PROC_INST_BODY);continue;case r.OPEN_TAG:X(ke,ie)?E.tagName+=ie:(z(E),ie===">"?q(E):ie==="/"?E.state=r.OPEN_TAG_SLASH:(x(ie)||re(E,"Invalid character in tag name"),E.state=r.ATTRIB));continue;case r.OPEN_TAG_SLASH:ie===">"?(q(E,!0),H(E)):(re(E,"Forward-slash in opening tag not followed by >"),E.state=r.ATTRIB);continue;case r.ATTRIB:if(x(ie))continue;ie===">"?q(E):ie==="/"?E.state=r.OPEN_TAG_SLASH:X(pe,ie)?(E.attribName=ie,E.attribValue="",E.state=r.ATTRIB_NAME):re(E,"Invalid attribute name");continue;case r.ATTRIB_NAME:ie==="="?E.state=r.ATTRIB_VALUE:ie===">"?(re(E,"Attribute without value"),E.attribValue=E.attribName,j(E),q(E)):x(ie)?E.state=r.ATTRIB_NAME_SAW_WHITE:X(ke,ie)?E.attribName+=ie:re(E,"Invalid attribute name");continue;case r.ATTRIB_NAME_SAW_WHITE:if(ie==="=")E.state=r.ATTRIB_VALUE;else{if(x(ie))continue;re(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",Z(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",ie===">"?q(E):X(pe,ie)?(E.attribName=ie,E.state=r.ATTRIB_NAME):(re(E,"Invalid attribute name"),E.state=r.ATTRIB)}continue;case r.ATTRIB_VALUE:if(x(ie))continue;G(ie)?(E.q=ie,E.state=r.ATTRIB_VALUE_QUOTED):(re(E,"Unquoted attribute value"),E.state=r.ATTRIB_VALUE_UNQUOTED,E.attribValue=ie);continue;case r.ATTRIB_VALUE_QUOTED:if(ie!==E.q){ie==="&"?E.state=r.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=ie;continue}j(E),E.q="",E.state=r.ATTRIB_VALUE_CLOSED;continue;case r.ATTRIB_VALUE_CLOSED:x(ie)?E.state=r.ATTRIB:ie===">"?q(E):ie==="/"?E.state=r.OPEN_TAG_SLASH:X(pe,ie)?(re(E,"No whitespace between attributes"),E.attribName=ie,E.attribValue="",E.state=r.ATTRIB_NAME):re(E,"Invalid attribute name");continue;case r.ATTRIB_VALUE_UNQUOTED:if(!N(ie)){ie==="&"?E.state=r.ATTRIB_VALUE_ENTITY_U:E.attribValue+=ie;continue}j(E),ie===">"?q(E):E.state=r.ATTRIB;continue;case r.CLOSE_TAG:if(E.tagName)ie===">"?H(E):X(ke,ie)?E.tagName+=ie:E.script?(E.script+="</"+E.tagName,E.tagName="",E.state=r.SCRIPT):(x(ie)||re(E,"Invalid tagname in closing tag"),E.state=r.CLOSE_TAG_SAW_WHITE);else{if(x(ie))continue;B(pe,ie)?E.script?(E.script+="</"+ie,E.state=r.SCRIPT):re(E,"Invalid tagname in closing tag."):E.tagName=ie}continue;case r.CLOSE_TAG_SAW_WHITE:if(x(ie))continue;ie===">"?H(E):re(E,"Invalid characters in closing tag");continue;case r.TEXT_ENTITY:case r.ATTRIB_VALUE_ENTITY_Q:case r.ATTRIB_VALUE_ENTITY_U:var Ke,et;switch(E.state){case r.TEXT_ENTITY:Ke=r.TEXT,et="textNode";break;case r.ATTRIB_VALUE_ENTITY_Q:Ke=r.ATTRIB_VALUE_QUOTED,et="attribValue";break;case r.ATTRIB_VALUE_ENTITY_U:Ke=r.ATTRIB_VALUE_UNQUOTED,et="attribValue"}ie===";"?(E[et]+=ee(E),E.entity="",E.state=Ke):X(E.entity.length?e:I,ie)?E.entity+=ie:(re(E,"Invalid character in entity name"),E[et]+="&"+E.entity+ie,E.entity="",E.state=Ke);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&L(E),E}h.parser=function(g,E){return new O(g,E)},h.SAXParser=O,h.SAXStream=M,h.createStream=R,h.MAX_BUFFER_LENGTH=65536;var Le=["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"],A.default||(Object.create=function(g){function E(){}return E.prototype=g,new E}),d.default||(Object.keys=function(g){var E=[];for(var K in g)g.hasOwnProperty(K)&&E.push(K);return E}),O.prototype={end:function(){le(this)},write:me,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){w(this)}};var Ce;try{Ce=n("stream").Stream}catch(g){Ce=function(){}}var de=h.EVENTS.filter(function(g){return g!=="error"&&g!=="end"});M.prototype=(0,A.default)(Ce.prototype,{constructor:{value:M}}),M.prototype.write=function(g){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(g)){if(!this._decoder){var E=n("string_decoder").StringDecoder;this._decoder=new E("utf8")}g=this._decoder.write(g)}return this._parser.write(g.toString()),this.emit("data",g),!0},M.prototype.end=function(g){return g&&g.length&&this.write(g),this._parser.end(),!0},M.prototype.on=function(g,E){var K=this;return K._parser["on"+g]||de.indexOf(g)===-1||(K._parser["on"+g]=function(){var ie=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ie.splice(0,0,g),K.emit.apply(K,ie)}),Ce.prototype.on.call(K,g,E)};var ce="[CDATA[",ge="DOCTYPE",J="http://www.w3.org/XML/1998/namespace",Y="http://www.w3.org/2000/xmlns/",_e={xml:J,xmlns:Y},pe=/[:_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]/,ke=/[:_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-]/,I=/[#:_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]/,e=/[#:_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-]/,r=0;h.STATE={BEGIN:r++,BEGIN_WHITESPACE:r++,TEXT:r++,TEXT_ENTITY:r++,OPEN_WAKA:r++,SGML_DECL:r++,SGML_DECL_QUOTED:r++,DOCTYPE:r++,DOCTYPE_QUOTED:r++,DOCTYPE_DTD:r++,DOCTYPE_DTD_QUOTED:r++,COMMENT_STARTING:r++,COMMENT:r++,COMMENT_ENDING:r++,COMMENT_ENDED:r++,CDATA:r++,CDATA_ENDING:r++,CDATA_ENDING_2:r++,PROC_INST:r++,PROC_INST_BODY:r++,PROC_INST_ENDING:r++,OPEN_TAG:r++,OPEN_TAG_SLASH:r++,ATTRIB:r++,ATTRIB_NAME:r++,ATTRIB_NAME_SAW_WHITE:r++,ATTRIB_VALUE:r++,ATTRIB_VALUE_QUOTED:r++,ATTRIB_VALUE_CLOSED:r++,ATTRIB_VALUE_UNQUOTED:r++,ATTRIB_VALUE_ENTITY_Q:r++,ATTRIB_VALUE_ENTITY_U:r++,CLOSE_TAG:r++,CLOSE_TAG_SAW_WHITE:r++,SCRIPT:r++,SCRIPT_ENDING:r++},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,d.default)(h.ENTITIES).forEach(function(g){var E=h.ENTITIES[g],K=typeof E=="number"?String.fromCharCode(E):E;h.ENTITIES[g]=K});for(var C in h.STATE)h.STATE[h.STATE[C]]=C;r=h.STATE,u.default||function(){var g=String.fromCharCode,E=Math.floor,K=function(){var ze,Ue,Ke=[],et=-1,at=arguments.length;if(!at)return"";for(var ct="";++et<at;){var Me=Number(arguments[et]);if(!isFinite(Me)||Me<0||Me>1114111||E(Me)!==Me)throw RangeError("Invalid code point: "+Me);Me<=65535?Ke.push(Me):(Me-=65536,ze=55296+(Me>>10),Ue=Me%1024+56320,Ke.push(ze,Ue)),(et+1===at||Ke.length>16384)&&(ct+=g.apply(null,Ke),Ke.length=0)}return ct};c.default?Object.defineProperty(String,"fromCodePoint",{value:K,configurable:!0,writable:!0}):String.fromCodePoint=K}()}(_===void 0?(void 0).sax={}:_)}).call(this,n("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(n,k,_){function m(){b.call(this)}k.exports=m;var b=n("events").EventEmitter;n("inherits")(m,b),m.Readable=n("readable-stream/readable.js"),m.Writable=n("readable-stream/writable.js"),m.Duplex=n("readable-stream/duplex.js"),m.Transform=n("readable-stream/transform.js"),m.PassThrough=n("readable-stream/passthrough.js"),m.Stream=m,m.prototype.pipe=function(o,u){function p(T){o.writable&&o.write(T)===!1&&f.pause&&f.pause()}function l(){f.readable&&f.resume&&f.resume()}function t(){d||(d=!0,o.end())}function s(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function i(T){if(c(),b.listenerCount(this,"error")===0)throw T}function c(){f.removeListener("data",p),o.removeListener("drain",l),f.removeListener("end",t),f.removeListener("close",s),f.removeListener("error",i),o.removeListener("error",i),f.removeListener("end",c),f.removeListener("close",c),o.removeListener("close",c)}var f=this;f.on("data",p),o.on("drain",l),o._isStdio||u&&u.end===!1||(f.on("end",t),f.on("close",s));var d=!1;return f.on("error",i),o.on("error",i),f.on("end",c),f.on("close",c),o.on("close",c),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(n,k,_){(function(m){var b=n("./lib/request"),o=n("./lib/response"),u=n("xtend"),p=n("builtin-status-codes"),l=n("url"),t=_;t.request=function(s,i){s=typeof s=="string"?l.parse(s):u(s);var c=m.location.protocol.search(/^https?:$/)===-1?"http:":"",f=s.protocol||c,d=s.hostname||s.host,T=s.port,A=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?f+"//"+d:"")+(T?":"+T:"")+A,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var h=new b(s);return i&&h.on("response",i),h},t.get=function(s,i){var c=t.request(s,i);return c.end(),c},t.ClientRequest=b,t.IncomingMessage=o.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=p,t.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 nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,k,_){(function(m){"use strict";function b(){if(p!==void 0)return p;if(m.XMLHttpRequest){p=new m.XMLHttpRequest;try{p.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(s){p=null}}else p=null;return p}function o(s){var i=b();if(!i)return!1;try{return i.responseType=s,i.responseType===s}catch(c){}return!1}function u(s){return typeof s=="function"}_.fetch=u(m.fetch)&&u(m.ReadableStream),_.writableStream=u(m.WritableStream),_.abortController=u(m.AbortController),_.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),_.blobConstructor=!0}catch(s){}var p,l=m.ArrayBuffer!==void 0,t=l&&u(m.ArrayBuffer.prototype.slice);_.arraybuffer=_.fetch||l&&o("arraybuffer"),_.msstream=!_.fetch&&t&&o("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&l&&o("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||!!b()&&u(b().overrideMimeType),_.vbArray=u(m.VBArray),p=null}).call(this,typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,k,_){(function(m,b,o){"use strict";function u(L,v){return s.fetch&&v?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&L?"arraybuffer":s.vbArray&&L?"text:vbarray":"text"}function p(L){try{var v=L.status;return v!==null&&v!==0}catch(w){return!1}}var l=n("babel-runtime/core-js/object/keys"),t=function(L){return L&&L.__esModule?L:{default:L}}(l),s=n("./capability"),i=n("inherits"),c=n("./response"),f=n("readable-stream"),d=n("to-arraybuffer"),T=c.IncomingMessage,A=c.readyStates,h=k.exports=function(L){var v=this;f.Writable.call(v),v._opts=L,v._body=[],v._headers={},L.auth&&v.setHeader("Authorization","Basic "+new o(L.auth).toString("base64")),(0,t.default)(L.headers).forEach(function(M){v.setHeader(M,L.headers[M])});var w,R=!0;if(L.mode==="disable-fetch"||"requestTimeout"in L&&!s.abortController)R=!1,w=!0;else if(L.mode==="prefer-streaming")w=!1;else if(L.mode==="allow-wrong-content-type")w=!s.overrideMimeType;else{if(L.mode&&L.mode!=="default"&&L.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");w=!0}v._mode=u(w,R),v._fetchTimer=null,v.on("finish",function(){v._onFinish()})};i(h,f.Writable),h.prototype.setHeader=function(L,v){var w=this,R=L.toLowerCase();O.indexOf(R)===-1&&(w._headers[R]={name:L,value:v})},h.prototype.getHeader=function(L){var v=this._headers[L.toLowerCase()];return v?v.value:null},h.prototype.removeHeader=function(L){delete this._headers[L.toLowerCase()]},h.prototype._onFinish=function(){var L=this;if(!L._destroyed){var v=L._opts,w=L._headers,R=null;v.method!=="GET"&&v.method!=="HEAD"&&(R=s.arraybuffer?d(o.concat(L._body)):s.blobConstructor?new b.Blob(L._body.map(function(X){return d(X)}),{type:(w["content-type"]||{}).value||""}):o.concat(L._body).toString());var M=[];if((0,t.default)(w).forEach(function(X){var B=w[X].name,$=w[X].value;Array.isArray($)?$.forEach(function(Z){M.push([B,Z])}):M.push([B,$])}),L._mode==="fetch"){var x=null;if(s.abortController){var G=new AbortController;x=G.signal,L._fetchAbortController=G,"requestTimeout"in v&&v.requestTimeout!==0&&(L._fetchTimer=b.setTimeout(function(){L.emit("requestTimeout"),L._fetchAbortController&&L._fetchAbortController.abort()},v.requestTimeout))}b.fetch(L._opts.url,{method:L._opts.method,headers:M,body:R||void 0,mode:"cors",credentials:v.withCredentials?"include":"same-origin",signal:x}).then(function(X){L._fetchResponse=X,L._connect()},function(X){b.clearTimeout(L._fetchTimer),L._destroyed||L.emit("error",X)})}else{var N=L._xhr=new b.XMLHttpRequest;try{N.open(L._opts.method,L._opts.url,!0)}catch(X){return void m.nextTick(function(){L.emit("error",X)})}"responseType"in N&&(N.responseType=L._mode.split(":")[0]),"withCredentials"in N&&(N.withCredentials=!!v.withCredentials),L._mode==="text"&&"overrideMimeType"in N&&N.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in v&&(N.timeout=v.requestTimeout,N.ontimeout=function(){L.emit("requestTimeout")}),M.forEach(function(X){N.setRequestHeader(X[0],X[1])}),L._response=null,N.onreadystatechange=function(){switch(N.readyState){case A.LOADING:case A.DONE:L._onXHRProgress()}},L._mode==="moz-chunked-arraybuffer"&&(N.onprogress=function(){L._onXHRProgress()}),N.onerror=function(){L._destroyed||L.emit("error",new Error("XHR error"))};try{N.send(R)}catch(X){return void m.nextTick(function(){L.emit("error",X)})}}}},h.prototype._onXHRProgress=function(){var L=this;p(L._xhr)&&!L._destroyed&&(L._response||L._connect(),L._response._onXHRProgress())},h.prototype._connect=function(){var L=this;L._destroyed||(L._response=new T(L._xhr,L._fetchResponse,L._mode,L._fetchTimer),L._response.on("error",function(v){L.emit("error",v)}),L.emit("response",L._response))},h.prototype._write=function(L,v,w){this._body.push(L),w()},h.prototype.abort=h.prototype.destroy=function(){var L=this;L._destroyed=!0,b.clearTimeout(L._fetchTimer),L._response&&(L._response._destroyed=!0),L._xhr?L._xhr.abort():L._fetchAbortController&&L._fetchAbortController.abort()},h.prototype.end=function(L,v,w){var R=this;typeof L=="function"&&(w=L,L=void 0),f.Writable.prototype.end.call(R,L,v,w)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var O=["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,n("_process"),typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("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(n,k,_){(function(m,b,o){"use strict";var u=n("babel-runtime/core-js/promise"),p=function(f){return f&&f.__esModule?f:{default:f}}(u),l=n("./capability"),t=n("inherits"),s=n("readable-stream"),i=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=_.IncomingMessage=function(f,d,T,A){var h=this;if(s.Readable.call(h),h._mode=T,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){m.nextTick(function(){h.emit("close")})}),T==="fetch"){if(h._fetchResponse=d,h.url=d.url,h.statusCode=d.status,h.statusMessage=d.statusText,d.headers.forEach(function(R,M){h.headers[M.toLowerCase()]=R,h.rawHeaders.push(M,R)}),l.writableStream){var O=new WritableStream({write:function(M){return new p.default(function(x,G){h._destroyed?G():h.push(new o(M))?x():h._resumeFetch=x})},close:function(){b.clearTimeout(A),h._destroyed||h.push(null)},abort:function(M){h._destroyed||h.emit("error",M)}});try{return void d.body.pipeTo(O).catch(function(R){b.clearTimeout(A),h._destroyed||h.emit("error",R)})}catch(R){}}var L=d.body.getReader();!function R(){L.read().then(function(M){if(!h._destroyed){if(M.done)return b.clearTimeout(A),void h.push(null);h.push(new o(M.value)),R()}}).catch(function(M){b.clearTimeout(A),h._destroyed||h.emit("error",M)})}()}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(R){var M=R.match(/^([^:]+):\s*(.*)/);if(M){var x=M[1].toLowerCase();x==="set-cookie"?(h.headers[x]===void 0&&(h.headers[x]=[]),h.headers[x].push(M[2])):h.headers[x]!==void 0?h.headers[x]+=", "+M[2]:h.headers[x]=M[2],h.rawHeaders.push(M[1],M[2])}}),h._charset="x-user-defined",!l.overrideMimeType){var v=h.rawHeaders["mime-type"];if(v){var w=v.match(/;\s*charset=([^;])(;|$)/);w&&(h._charset=w[1].toLowerCase())}h._charset||(h._charset="utf-8")}};t(c,s.Readable),c.prototype._read=function(){var f=this,d=f._resumeFetch;d&&(f._resumeFetch=null,d())},c.prototype._onXHRProgress=function(){var f=this,d=f._xhr,T=null;switch(f._mode){case"text:vbarray":if(d.readyState!==i.DONE)break;try{T=new b.VBArray(d.responseBody).toArray()}catch(v){}if(T!==null){f.push(new o(T));break}case"text":try{T=d.responseText}catch(v){f._mode="text:vbarray";break}if(T.length>f._pos){var A=T.substr(f._pos);if(f._charset==="x-user-defined"){for(var h=new o(A.length),O=0;O<A.length;O++)h[O]=255&A.charCodeAt(O);f.push(h)}else f.push(A,f._charset);f._pos=T.length}break;case"arraybuffer":if(d.readyState!==i.DONE||!d.response)break;T=d.response,f.push(new o(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=d.response,d.readyState!==i.LOADING||!T)break;f.push(new o(new Uint8Array(T)));break;case"ms-stream":if(T=d.response,d.readyState!==i.LOADING)break;var L=new b.MSStreamReader;L.onprogress=function(){L.result.byteLength>f._pos&&(f.push(new o(new Uint8Array(L.result.slice(f._pos)))),f._pos=L.result.byteLength)},L.onload=function(){f.push(null)},L.readAsArrayBuffer(T)}f._xhr.readyState===i.DONE&&f._mode!=="ms-stream"&&f.push(null)}}).call(this,n("_process"),typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(n,k,_){"use strict";function m(v){if(!v)return"utf8";for(var w;;)switch(v){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 v;default:if(w)return;v=(""+v).toLowerCase(),w=!0}}function b(v){var w=m(v);if(typeof w!="string"&&(O.isEncoding===L||!L(v)))throw new Error("Unknown encoding: "+v);return w||v}function o(v){this.encoding=b(v);var w;switch(this.encoding){case"utf16le":this.text=c,this.end=f,w=4;break;case"utf8":this.fillLast=t,w=4;break;case"base64":this.text=d,this.end=T,w=3;break;default:return this.write=A,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(w)}function u(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function p(v,w,R){var M=w.length-1;if(M<R)return 0;var x=u(w[M]);return x>=0?(x>0&&(v.lastNeed=x-1),x):--M<R||x===-2?0:(x=u(w[M]))>=0?(x>0&&(v.lastNeed=x-2),x):--M<R||x===-2?0:(x=u(w[M]),x>=0?(x>0&&(x===2?x=0:v.lastNeed=x-3),x):0)}function l(v,w,R){if((192&w[0])!=128)return v.lastNeed=0,"\u951F\uFFFD";if(v.lastNeed>1&&w.length>1){if((192&w[1])!=128)return v.lastNeed=1,"\u951F\uFFFD";if(v.lastNeed>2&&w.length>2&&(192&w[2])!=128)return v.lastNeed=2,"\u951F\uFFFD"}}function t(v){var w=this.lastTotal-this.lastNeed,R=l(this,v,w);return R!==void 0?R:this.lastNeed<=v.length?(v.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,w,0,v.length),void(this.lastNeed-=v.length))}function s(v,w){var R=p(this,v,w);if(!this.lastNeed)return v.toString("utf8",w);this.lastTotal=R;var M=v.length-(R-this.lastNeed);return v.copy(this.lastChar,0,M),v.toString("utf8",w,M)}function i(v){var w=v&&v.length?this.write(v):"";return this.lastNeed?w+"\u951F\uFFFD":w}function c(v,w){if((v.length-w)%2==0){var R=v.toString("utf16le",w);if(R){var M=R.charCodeAt(R.length-1);if(M>=55296&&M<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",w,v.length-1)}function f(v){var w=v&&v.length?this.write(v):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,R)}return w}function d(v,w){var R=(v.length-w)%3;return R===0?v.toString("base64",w):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",w,v.length-R))}function T(v){var w=v&&v.length?this.write(v):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function A(v){return v.toString(this.encoding)}function h(v){return v&&v.length?this.write(v):""}var O=n("safe-buffer").Buffer,L=O.isEncoding||function(v){switch((v=""+v)&&v.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}};_.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var w,R;if(this.lastNeed){if((w=this.fillLast(v))===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<v.length?w?w+this.text(v,R):this.text(v,R):w||""},o.prototype.end=i,o.prototype.text=s,o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},{"safe-buffer":193}],201:[function(n,k,_){(function(m,b){function o(i,c){this._id=i,this._clearFn=c}var u=n("process/browser.js").nextTick,p=Function.prototype.apply,l=Array.prototype.slice,t={},s=0;_.setTimeout=function(){return new o(p.call(setTimeout,window,arguments),clearTimeout)},_.setInterval=function(){return new o(p.call(setInterval,window,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(i){i.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},_.enroll=function(i,c){clearTimeout(i._idleTimeoutId),i._idleTimeout=c},_.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},_._unrefActive=_.active=function(i){clearTimeout(i._idleTimeoutId);var c=i._idleTimeout;c>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},c))},_.setImmediate=typeof m=="function"?m:function(i){var c=s++,f=!(arguments.length<2)&&l.call(arguments,1);return t[c]=!0,u(function(){t[c]&&(f?i.apply(null,f):i.call(null),_.clearImmediate(c))}),c},_.clearImmediate=typeof b=="function"?b:function(i){delete t[i]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,k,_){var m=n("buffer").Buffer;k.exports=function(b){if(b instanceof Uint8Array){if(b.byteOffset===0&&b.byteLength===b.buffer.byteLength)return b.buffer;if(typeof b.buffer.slice=="function")return b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}if(m.isBuffer(b)){for(var o=new Uint8Array(b.length),u=b.length,p=0;p<u;p++)o[p]=b[p];return o.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,k,_){"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 b(x,G,N){if(x&&t.isObject(x)&&x instanceof m)return x;var X=new m;return X.parse(x,G,N),X}function o(x){return t.isString(x)&&(x=b(x)),x instanceof m?x.format():m.prototype.format.call(x)}function u(x,G){return b(x,!1,!0).resolve(G)}function p(x,G){return x?b(x,!1,!0).resolveObject(G):G}var l=n("punycode"),t=n("./util");_.parse=b,_.resolve=u,_.resolveObject=p,_.format=o,_.Url=m;var s=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],d=["{","}","|","\\","^","`"].concat(f),T=["'"].concat(d),A=["%","/","?",";","#"].concat(T),h=["/","?","#"],O=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},R={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},M=n("querystring");m.prototype.parse=function(x,G,N){if(!t.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var X=x.indexOf("?"),B=X!==-1&&X<x.indexOf("#")?"?":"#",$=x.split(B),Z=/\\/g;$[0]=$[0].replace(Z,"/"),x=$.join(B);var ne=x;if(ne=ne.trim(),!N&&x.split("#").length===1){var se=c.exec(ne);if(se)return this.path=ne,this.href=ne,this.pathname=se[1],se[2]?(this.search=se[2],this.query=G?M.parse(this.search.substr(1)):this.search.substr(1)):G&&(this.search="",this.query={}),this}var W=s.exec(ne);if(W){W=W[0];var le=W.toLowerCase();this.protocol=le,ne=ne.substr(W.length)}if(N||W||ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var re=ne.substr(0,2)==="//";!re||W&&w[W]||(ne=ne.substr(2),this.slashes=!0)}if(!w[W]&&(re||W&&!R[W])){for(var z=-1,U=0;U<h.length;U++){var j=ne.indexOf(h[U]);j!==-1&&(z===-1||j<z)&&(z=j)}var q,H;H=z===-1?ne.lastIndexOf("@"):ne.lastIndexOf("@",z),H!==-1&&(q=ne.slice(0,H),ne=ne.slice(H+1),this.auth=decodeURIComponent(q)),z=-1;for(var U=0;U<A.length;U++){var j=ne.indexOf(A[U]);j!==-1&&(z===-1||j<z)&&(z=j)}z===-1&&(z=ne.length),this.host=ne.slice(0,z),ne=ne.slice(z),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var oe=this.hostname.split(/\./),U=0,ye=oe.length;U<ye;U++){var me=oe[U];if(me&&!me.match(O)){for(var Le="",Ce=0,de=me.length;Ce<de;Ce++)me.charCodeAt(Ce)>127?Le+="x":Le+=me[Ce];if(!Le.match(O)){var ce=oe.slice(0,U),ge=oe.slice(U+1),J=me.match(L);J&&(ce.push(J[1]),ge.unshift(J[2])),ge.length&&(ne="/"+ge.join(".")+ne),this.hostname=ce.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=l.toASCII(this.hostname));var Y=this.port?":"+this.port:"",_e=this.hostname||"";this.host=_e+Y,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ne[0]!=="/"&&(ne="/"+ne))}if(!v[le])for(var U=0,ye=T.length;U<ye;U++){var pe=T[U];if(ne.indexOf(pe)!==-1){var ke=encodeURIComponent(pe);ke===pe&&(ke=escape(pe)),ne=ne.split(pe).join(ke)}}var I=ne.indexOf("#");I!==-1&&(this.hash=ne.substr(I),ne=ne.slice(0,I));var e=ne.indexOf("?");if(e!==-1?(this.search=ne.substr(e),this.query=ne.substr(e+1),G&&(this.query=M.parse(this.query)),ne=ne.slice(0,e)):G&&(this.search="",this.query={}),ne&&(this.pathname=ne),R[le]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Y=this.pathname||"",r=this.search||"";this.path=Y+r}return this.href=this.format(),this},m.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var G=this.protocol||"",N=this.pathname||"",X=this.hash||"",B=!1,$="";this.host?B=x+this.host:this.hostname&&(B=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(B+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&($=M.stringify(this.query));var Z=this.search||$&&"?"+$||"";return G&&G.substr(-1)!==":"&&(G+=":"),this.slashes||(!G||R[G])&&B!==!1?(B="//"+(B||""),N&&N.charAt(0)!=="/"&&(N="/"+N)):B||(B=""),X&&X.charAt(0)!=="#"&&(X="#"+X),Z&&Z.charAt(0)!=="?"&&(Z="?"+Z),N=N.replace(/[?#]/g,function(ne){return encodeURIComponent(ne)}),Z=Z.replace("#","%23"),G+B+N+Z+X},m.prototype.resolve=function(x){return this.resolveObject(b(x,!1,!0)).format()},m.prototype.resolveObject=function(x){if(t.isString(x)){var G=new m;G.parse(x,!1,!0),x=G}for(var N=new m,X=Object.keys(this),B=0;B<X.length;B++){var $=X[B];N[$]=this[$]}if(N.hash=x.hash,x.href==="")return N.href=N.format(),N;if(x.slashes&&!x.protocol){for(var Z=Object.keys(x),ne=0;ne<Z.length;ne++){var se=Z[ne];se!=="protocol"&&(N[se]=x[se])}return R[N.protocol]&&N.hostname&&!N.pathname&&(N.path=N.pathname="/"),N.href=N.format(),N}if(x.protocol&&x.protocol!==N.protocol){if(!R[x.protocol]){for(var W=Object.keys(x),le=0;le<W.length;le++){var re=W[le];N[re]=x[re]}return N.href=N.format(),N}if(N.protocol=x.protocol,x.host||w[x.protocol])N.pathname=x.pathname;else{for(var ye=(x.pathname||"").split("/");ye.length&&!(x.host=ye.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),ye[0]!==""&&ye.unshift(""),ye.length<2&&ye.unshift(""),N.pathname=ye.join("/")}if(N.search=x.search,N.query=x.query,N.host=x.host||"",N.auth=x.auth,N.hostname=x.hostname||x.host,N.port=x.port,N.pathname||N.search){var z=N.pathname||"",U=N.search||"";N.path=z+U}return N.slashes=N.slashes||x.slashes,N.href=N.format(),N}var j=N.pathname&&N.pathname.charAt(0)==="/",q=x.host||x.pathname&&x.pathname.charAt(0)==="/",H=q||j||N.host&&x.pathname,ee=H,oe=N.pathname&&N.pathname.split("/")||[],ye=x.pathname&&x.pathname.split("/")||[],me=N.protocol&&!R[N.protocol];if(me&&(N.hostname="",N.port=null,N.host&&(oe[0]===""?oe[0]=N.host:oe.unshift(N.host)),N.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(ye[0]===""?ye[0]=x.host:ye.unshift(x.host)),x.host=null),H=H&&(ye[0]===""||oe[0]==="")),q)N.host=x.host||x.host===""?x.host:N.host,N.hostname=x.hostname||x.hostname===""?x.hostname:N.hostname,N.search=x.search,N.query=x.query,oe=ye;else if(ye.length)oe||(oe=[]),oe.pop(),oe=oe.concat(ye),N.search=x.search,N.query=x.query;else if(!t.isNullOrUndefined(x.search)){if(me){N.hostname=N.host=oe.shift();var Le=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@");Le&&(N.auth=Le.shift(),N.host=N.hostname=Le.shift())}return N.search=x.search,N.query=x.query,t.isNull(N.pathname)&&t.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.href=N.format(),N}if(!oe.length)return N.pathname=null,N.search?N.path="/"+N.search:N.path=null,N.href=N.format(),N;for(var Ce=oe.slice(-1)[0],de=(N.host||x.host||oe.length>1)&&(Ce==="."||Ce==="..")||Ce==="",ce=0,ge=oe.length;ge>=0;ge--)Ce=oe[ge],Ce==="."?oe.splice(ge,1):Ce===".."?(oe.splice(ge,1),ce++):ce&&(oe.splice(ge,1),ce--);if(!H&&!ee)for(;ce--;ce)oe.unshift("..");!H||oe[0]===""||oe[0]&&oe[0].charAt(0)==="/"||oe.unshift(""),de&&oe.join("/").substr(-1)!=="/"&&oe.push("");var J=oe[0]===""||oe[0]&&oe[0].charAt(0)==="/";if(me){N.hostname=N.host=J?"":oe.length?oe.shift():"";var Le=!!(N.host&&N.host.indexOf("@")>0)&&N.host.split("@");Le&&(N.auth=Le.shift(),N.host=N.hostname=Le.shift())}return H=H||N.host&&oe.length,H&&!J&&oe.unshift(""),oe.length?N.pathname=oe.join("/"):(N.pathname=null,N.path=null),t.isNull(N.pathname)&&t.isNull(N.search)||(N.path=(N.pathname?N.pathname:"")+(N.search?N.search:"")),N.auth=x.auth||N.auth,N.slashes=N.slashes||x.slashes,N.href=N.format(),N},m.prototype.parseHost=function(){var x=this.host,G=i.exec(x);G&&(G=G[0],G!==":"&&(this.port=G.substr(1)),x=x.substr(0,x.length-G.length)),x&&(this.hostname=x)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,k,_){"use strict";k.exports={isString:function(b){return typeof b=="string"},isObject:function(b){return typeof b=="object"&&b!==null},isNull:function(b){return b===null},isNullOrUndefined:function(b){return b==null}}},{}],205:[function(n,k,_){(function(m){function b(u,p){function l(){if(!t){if(o("throwDeprecation"))throw new Error(p);o("traceDeprecation")?console.trace(p):console.warn(p),t=!0}return u.apply(this,arguments)}if(o("noDeprecation"))return u;var t=!1;return l}function o(u){try{if(!m.localStorage)return!1}catch(l){return!1}var p=m.localStorage[u];return p!=null&&String(p).toLowerCase()==="true"}k.exports=b}).call(this,typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,k,_){k.exports=function(m){return m&&typeof m=="object"&&typeof m.copy=="function"&&typeof m.fill=="function"&&typeof m.readUInt8=="function"}},{}],207:[function(n,k,_){(function(m,b){function o(U,j){var q={seen:[],stylize:p};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),A(j)?q.showHidden=j:j&&_._extend(q,j),R(q.showHidden)&&(q.showHidden=!1),R(q.depth)&&(q.depth=2),R(q.colors)&&(q.colors=!1),R(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=u),t(q,U,q.depth)}function u(U,j){var q=o.styles[j];return q?"["+o.colors[q][0]+"m"+U+"["+o.colors[q][1]+"m":U}function p(U,j){return U}function l(U){var j={};return U.forEach(function(q,H){j[q]=!0}),j}function t(U,j,q){if(U.customInspect&&j&&X(j.inspect)&&j.inspect!==_.inspect&&(!j.constructor||j.constructor.prototype!==j)){var H=j.inspect(q,U);return v(H)||(H=t(U,H,q)),H}var ee=s(U,j);if(ee)return ee;var oe=Object.keys(j),ye=l(oe);if(U.showHidden&&(oe=Object.getOwnPropertyNames(j)),N(j)&&(oe.indexOf("message")>=0||oe.indexOf("description")>=0))return i(j);if(oe.length===0){if(X(j)){var me=j.name?": "+j.name:"";return U.stylize("[Function"+me+"]","special")}if(M(j))return U.stylize(RegExp.prototype.toString.call(j),"regexp");if(G(j))return U.stylize(Date.prototype.toString.call(j),"date");if(N(j))return i(j)}var Le="",Ce=!1,de=["{","}"];if((T(j)&&(Ce=!0,de=["[","]"]),X(j))&&(Le=" [Function"+(j.name?": "+j.name:"")+"]"),M(j)&&(Le=" "+RegExp.prototype.toString.call(j)),G(j)&&(Le=" "+Date.prototype.toUTCString.call(j)),N(j)&&(Le=" "+i(j)),oe.length===0&&(!Ce||j.length==0))return de[0]+Le+de[1];if(q<0)return M(j)?U.stylize(RegExp.prototype.toString.call(j),"regexp"):U.stylize("[Object]","special");U.seen.push(j);var ce;return ce=Ce?c(U,j,q,ye,oe):oe.map(function(ge){return f(U,j,q,ye,ge,Ce)}),U.seen.pop(),d(ce,Le,de)}function s(U,j){if(R(j))return U.stylize("undefined","undefined");if(v(j)){var q="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(q,"string")}return L(j)?U.stylize(""+j,"number"):A(j)?U.stylize(""+j,"boolean"):h(j)?U.stylize("null","null"):void 0}function i(U){return"["+Error.prototype.toString.call(U)+"]"}function c(U,j,q,H,ee){for(var oe=[],ye=0,me=j.length;ye<me;++ye)se(j,String(ye))?oe.push(f(U,j,q,H,String(ye),!0)):oe.push("");return ee.forEach(function(Le){Le.match(/^\d+$/)||oe.push(f(U,j,q,H,Le,!0))}),oe}function f(U,j,q,H,ee,oe){var ye,me,Le;if(Le=Object.getOwnPropertyDescriptor(j,ee)||{value:j[ee]},Le.get?me=Le.set?U.stylize("[Getter/Setter]","special"):U.stylize("[Getter]","special"):Le.set&&(me=U.stylize("[Setter]","special")),se(H,ee)||(ye="["+ee+"]"),me||(U.seen.indexOf(Le.value)<0?(me=h(q)?t(U,Le.value,null):t(U,Le.value,q-1),me.indexOf(`
|
|
|
`)>-1&&(me=oe?me.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`).substr(2):`
|
|
|
`+me.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`))):me=U.stylize("[Circular]","special")),R(ye)){if(oe&&ee.match(/^\d+$/))return me;ye=JSON.stringify(""+ee),ye.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ye=ye.substr(1,ye.length-2),ye=U.stylize(ye,"name")):(ye=ye.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ye=U.stylize(ye,"string"))}return ye+": "+me}function d(U,j,q){var H=0;return U.reduce(function(ee,oe){return H++,oe.indexOf(`
|
|
|
`)>=0&&H++,ee+oe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?q[0]+(j===""?"":j+`
|
|
|
`)+" "+U.join(`,
|
|
|
`)+" "+q[1]:q[0]+j+" "+U.join(", ")+" "+q[1]}function T(U){return Array.isArray(U)}function A(U){return typeof U=="boolean"}function h(U){return U===null}function O(U){return U==null}function L(U){return typeof U=="number"}function v(U){return typeof U=="string"}function w(U){return typeof U=="symbol"}function R(U){return U===void 0}function M(U){return x(U)&&$(U)==="[object RegExp]"}function x(U){return typeof U=="object"&&U!==null}function G(U){return x(U)&&$(U)==="[object Date]"}function N(U){return x(U)&&($(U)==="[object Error]"||U instanceof Error)}function X(U){return typeof U=="function"}function B(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0}function $(U){return Object.prototype.toString.call(U)}function Z(U){return U<10?"0"+U.toString(10):U.toString(10)}function ne(){var U=new Date,j=[Z(U.getHours()),Z(U.getMinutes()),Z(U.getSeconds())].join(":");return[U.getDate(),z[U.getMonth()],j].join(" ")}function se(U,j){return Object.prototype.hasOwnProperty.call(U,j)}var W=/%[sdj%]/g;_.format=function(U){if(!v(U)){for(var j=[],q=0;q<arguments.length;q++)j.push(o(arguments[q]));return j.join(" ")}for(var q=1,H=arguments,ee=H.length,oe=String(U).replace(W,function(Le){if(Le==="%%")return"%";if(q>=ee)return Le;switch(Le){case"%s":return String(H[q++]);case"%d":return Number(H[q++]);case"%j":try{return JSON.stringify(H[q++])}catch(Ce){return"[Circular]"}default:return Le}}),ye=H[q];q<ee;ye=H[++q])h(ye)||!x(ye)?oe+=" "+ye:oe+=" "+o(ye);return oe},_.deprecate=function(U,j){function q(){if(!H){if(m.throwDeprecation)throw new Error(j);m.traceDeprecation?console.trace(j):console.error(j),H=!0}return U.apply(this,arguments)}if(R(b.process))return function(){return _.deprecate(U,j).apply(this,arguments)};if(m.noDeprecation===!0)return U;var H=!1;return q};var le,re={};_.debuglog=function(U){if(R(le)&&(le=m.env.NODE_DEBUG||""),U=U.toUpperCase(),!re[U])if(new RegExp("\\b"+U+"\\b","i").test(le)){var j=m.pid;re[U]=function(){var q=_.format.apply(_,arguments);console.error("%s %d: %s",U,j,q)}}else re[U]=function(){};return re[U]},_.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"},_.isArray=T,_.isBoolean=A,_.isNull=h,_.isNullOrUndefined=O,_.isNumber=L,_.isString=v,_.isSymbol=w,_.isUndefined=R,_.isRegExp=M,_.isObject=x,_.isDate=G,_.isError=N,_.isFunction=X,_.isPrimitive=B,_.isBuffer=n("./support/isBuffer");var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];_.log=function(){console.log("%s - %s",ne(),_.format.apply(_,arguments))},_.inherits=n("inherits"),_._extend=function(U,j){if(!j||!x(j))return U;for(var q=Object.keys(j),H=q.length;H--;)U[q[H]]=j[q[H]];return U}}).call(this,n("_process"),typeof nt!="undefined"?nt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,k,_){"use strict";(function(){_.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],209:[function(n,k,_){"use strict";function m(l){return l&&l.__esModule?l:{default:l}}var b=n("babel-runtime/helpers/typeof"),o=m(b),u=n("babel-runtime/core-js/object/keys"),p=m(u);(function(){var l,t,s,i,c,f={}.hasOwnProperty;l=n("xmlbuilder"),t=n("./defaults").defaults,i=function(T){return typeof T=="string"&&(T.indexOf("&")>=0||T.indexOf(">")>=0||T.indexOf("<")>=0)},c=function(T){return"<![CDATA["+s(T)+"]]>"},s=function(T){return T.replace("]]>","]]]]><![CDATA[>")},_.Builder=function(){function d(T){var A,h,O;this.options={},h=t[.2];for(A in h)f.call(h,A)&&(O=h[A],this.options[A]=O);for(A in T)f.call(T,A)&&(O=T[A],this.options[A]=O)}return d.prototype.buildObject=function(T){var A,h,O,L,v;return A=this.options.attrkey,h=this.options.charkey,(0,p.default)(T).length===1&&this.options.rootName===t[.2].rootName?(v=(0,p.default)(T)[0],T=T[v]):v=this.options.rootName,O=function(w){return function(R,M){var x,G,N,X,B,$;if((M===void 0?"undefined":(0,o.default)(M))!=="object")w.options.cdata&&i(M)?R.raw(c(M)):R.txt(M);else if(Array.isArray(M)){for(X in M)if(f.call(M,X)){G=M[X];for(B in G)N=G[B],R=O(R.ele(B),N).up()}}else for(B in M)if(f.call(M,B))if(G=M[B],B===A){if((G===void 0?"undefined":(0,o.default)(G))==="object")for(x in G)$=G[x],R=R.att(x,$)}else if(B===h)R=w.options.cdata&&i(G)?R.raw(c(G)):R.txt(G);else if(Array.isArray(G))for(X in G)f.call(G,X)&&(N=G[X],R=typeof N=="string"?w.options.cdata&&i(N)?R.ele(B).raw(c(N)).up():R.ele(B,N).up():O(R.ele(B),N).up());else(G===void 0?"undefined":(0,o.default)(G))==="object"?R=O(R.ele(B),G).up():typeof G=="string"&&w.options.cdata&&i(G)?R=R.ele(B).raw(c(G)).up():(G==null&&(G=""),R=R.ele(B,G.toString()).up());return R}}(this),L=l.create(v,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),O(L,T).end(this.options.renderOpts)},d}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,k,_){"use strict";(function(){_.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(n,k,_){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var b=n("babel-runtime/core-js/object/get-own-property-names"),o=m(b),u=n("babel-runtime/core-js/object/keys"),p=m(u),l=n("babel-runtime/helpers/typeof"),t=m(l);(function(){var s,i,c,f,d,T,A,h,O=function(R,M){return function(){return R.apply(M,arguments)}},L=function(R,M){function x(){this.constructor=R}for(var G in M)v.call(M,G)&&(R[G]=M[G]);return x.prototype=M.prototype,R.prototype=new x,R.__super__=M.prototype,R},v={}.hasOwnProperty;A=n("sax"),c=n("events"),s=n("./bom"),T=n("./processors"),h=n("timers").setImmediate,i=n("./defaults").defaults,f=function(R){return(R===void 0?"undefined":(0,t.default)(R))==="object"&&R!=null&&(0,p.default)(R).length===0},d=function(R,M,x){var G,N,X;for(G=0,N=R.length;G<N;G++)X=R[G],M=X(M,x);return M},_.Parser=function(w){function R(M){this.parseString=O(this.parseString,this),this.reset=O(this.reset,this),this.assignOrPush=O(this.assignOrPush,this),this.processAsync=O(this.processAsync,this);var x,G,N;if(!(this instanceof _.Parser))return new _.Parser(M);this.options={},G=i[.2];for(x in G)v.call(G,x)&&(N=G[x],this.options[x]=N);for(x in M)v.call(M,x)&&(N=M[x],this.options[x]=N);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(T.normalize)),this.reset()}return L(R,w),R.prototype.processAsync=function(){var M,x;try{return this.remaining.length<=this.options.chunkSize?(M=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(M),this.saxParser.close()):(M=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(M),h(this.processAsync))}catch(G){if(x=G,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(x)}},R.prototype.assignOrPush=function(M,x,G){return x in M?(M[x]instanceof Array||(M[x]=[M[x]]),M[x].push(G)):this.options.explicitArray?M[x]=[G]:M[x]=G},R.prototype.reset=function(){var M,x,G,N;return this.removeAllListeners(),this.saxParser=A.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(X){return function(B){if(X.saxParser.resume(),!X.saxParser.errThrown)return X.saxParser.errThrown=!0,X.emit("error",B)}}(this),this.saxParser.onend=function(X){return function(){if(!X.saxParser.ended)return X.saxParser.ended=!0,X.emit("end",X.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,N=[],M=this.options.attrkey,x=this.options.charkey,this.saxParser.onopentag=function(X){return function(B){var $,Z,ne,se,W;if(ne={},ne[x]="",!X.options.ignoreAttrs){W=B.attributes;for($ in W)v.call(W,$)&&(M in ne||X.options.mergeAttrs||(ne[M]={}),Z=X.options.attrValueProcessors?d(X.options.attrValueProcessors,B.attributes[$],$):B.attributes[$],se=X.options.attrNameProcessors?d(X.options.attrNameProcessors,$):$,X.options.mergeAttrs?X.assignOrPush(ne,se,Z):ne[M][se]=Z)}return ne["#name"]=X.options.tagNameProcessors?d(X.options.tagNameProcessors,B.name):B.name,X.options.xmlns&&(ne[X.options.xmlnskey]={uri:B.uri,local:B.local}),N.push(ne)}}(this),this.saxParser.onclosetag=function(X){return function(){var B,$,Z,ne,se,W,le,re,z,U;if(W=N.pop(),se=W["#name"],X.options.explicitChildren&&X.options.preserveChildrenOrder||delete W["#name"],W.cdata===!0&&(B=W.cdata,delete W.cdata),z=N[N.length-1],W[x].match(/^\s*$/)&&!B?($=W[x],delete W[x]):(X.options.trim&&(W[x]=W[x].trim()),X.options.normalize&&(W[x]=W[x].replace(/\s{2,}/g," ").trim()),W[x]=X.options.valueProcessors?d(X.options.valueProcessors,W[x],se):W[x],(0,p.default)(W).length===1&&x in W&&!X.EXPLICIT_CHARKEY&&(W=W[x])),f(W)&&(W=X.options.emptyTag!==""?X.options.emptyTag:$),X.options.validator!=null&&(U="/"+function(){var j,q,H;for(H=[],j=0,q=N.length;j<q;j++)ne=N[j],H.push(ne["#name"]);return H}().concat(se).join("/"),function(){var j;try{W=X.options.validator(U,z&&z[se],W)}catch(q){return j=q,X.emit("error",j)}}()),X.options.explicitChildren&&!X.options.mergeAttrs&&(W===void 0?"undefined":(0,t.default)(W))==="object")if(X.options.preserveChildrenOrder){if(z){z[X.options.childkey]=z[X.options.childkey]||[],le={};for(Z in W)v.call(W,Z)&&(le[Z]=W[Z]);z[X.options.childkey].push(le),delete W["#name"],(0,p.default)(W).length===1&&x in W&&!X.EXPLICIT_CHARKEY&&(W=W[x])}}else ne={},X.options.attrkey in W&&(ne[X.options.attrkey]=W[X.options.attrkey],delete W[X.options.attrkey]),!X.options.charsAsChildren&&X.options.charkey in W&&(ne[X.options.charkey]=W[X.options.charkey],delete W[X.options.charkey]),(0,o.default)(W).length>0&&(ne[X.options.childkey]=W),W=ne;return N.length>0?X.assignOrPush(z,se,W):(X.options.explicitRoot&&(re=W,W={},W[se]=re),X.resultObject=W,X.saxParser.ended=!0,X.emit("end",X.resultObject))}}(this),G=function(X){return function(B){var $,Z;if(Z=N[N.length-1])return Z[x]+=B,X.options.explicitChildren&&X.options.preserveChildrenOrder&&X.options.charsAsChildren&&(X.options.includeWhiteChars||B.replace(/\\n/g,"").trim()!=="")&&(Z[X.options.childkey]=Z[X.options.childkey]||[],$={"#name":"__text__"},$[x]=B,X.options.normalize&&($[x]=$[x].replace(/\s{2,}/g," ").trim()),Z[X.options.childkey].push($)),Z}}(this),this.saxParser.ontext=G,this.saxParser.oncdata=function(X){return function(B){var $;if($=G(B))return $.cdata=!0}}()},R.prototype.parseString=function(M,x){var G;x!=null&&typeof x=="function"&&(this.on("end",function(N){return this.reset(),x(null,N)}),this.on("error",function(N){return this.reset(),x(N)}));try{return M=M.toString(),M.trim()===""?(this.emit("end",null),!0):(M=s.stripBOM(M),this.options.async?(this.remaining=M,h(this.processAsync),this.saxParser):this.saxParser.write(M).close())}catch(N){if(G=N,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",G),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw G}},R}(c.EventEmitter),_.parseString=function(w,R,M){var x,G,N;return M!=null?(typeof M=="function"&&(x=M),(R===void 0?"undefined":(0,t.default)(R))==="object"&&(G=R)):(typeof R=="function"&&(x=R),G={}),N=new _.Parser(G),N.parseString(w,x)}}).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(n,k,_){"use strict";(function(){var m;m=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(b){return b.toLowerCase()},_.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)},_.stripPrefix=function(b){return b.replace(m,"")},_.parseNumbers=function(b){return isNaN(b)||(b=b%1==0?parseInt(b,10):parseFloat(b)),b},_.parseBooleans=function(b){return/^(?:true|false)$/i.test(b)&&(b=b.toLowerCase()==="true"),b}}).call(void 0)},{}],213:[function(n,k,_){"use strict";(function(){var m,b,o,u,p=function(s,i){function c(){this.constructor=s}for(var f in i)l.call(i,f)&&(s[f]=i[f]);return c.prototype=i.prototype,s.prototype=new c,s.__super__=i.prototype,s},l={}.hasOwnProperty;b=n("./defaults"),m=n("./builder"),o=n("./parser"),u=n("./processors"),_.defaults=b.defaults,_.processors=u,_.ValidationError=function(t){function s(i){this.message=i}return p(s,t),s}(Error),_.Builder=m.Builder,_.Parser=o.Parser,_.parseString=o.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,k,_){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var b=n("babel-runtime/core-js/object/get-prototype-of"),o=m(b),u=n("babel-runtime/helpers/typeof"),p=m(u),l=n("babel-runtime/core-js/object/assign"),t=m(l);(function(){var s,i,c,f,d,T,A=[].slice,h={}.hasOwnProperty;s=function(){var L,v,w,R,M,x;if(x=arguments[0],M=2<=arguments.length?A.call(arguments,1):[],f(t.default))t.default.apply(null,arguments);else for(L=0,w=M.length;L<w;L++)if((R=M[L])!=null)for(v in R)h.call(R,v)&&(x[v]=R[v]);return x},f=function(L){return!!L&&Object.prototype.toString.call(L)==="[object Function]"},d=function(L){var v;return!!L&&((v=L===void 0?"undefined":(0,p.default)(L))==="function"||v==="object")},i=function(L){return f(Array.isArray)?Array.isArray(L):Object.prototype.toString.call(L)==="[object Array]"},c=function(L){var v;if(i(L))return!L.length;for(v in L)if(h.call(L,v))return!1;return!0},T=function(L){var v,w;return d(L)&&(w=(0,o.default)(L))&&(v=w.constructor)&&typeof v=="function"&&v instanceof v&&Function.prototype.toString.call(v)===Function.prototype.toString.call(Object)},k.exports.assign=s,k.exports.isFunction=f,k.exports.isObject=d,k.exports.isArray=i,k.exports.isEmpty=c,k.exports.isPlainObject=T}).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(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){k.exports=function(){function o(u,p,l){if(this.options=u.options,this.stringify=u.stringify,p==null)throw new Error("Missing attribute name of element "+u.name);if(l==null)throw new Error("Missing attribute value for attribute "+p+" of element "+u.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(l)}return o.prototype.clone=function(){return(0,b.default)(this)},o.prototype.toString=function(u){return this.options.writer.set(u).attribute(this)},o}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u=function(t,s){function i(){this.constructor=t}for(var c in s)p.call(s,c)&&(t[c]=s[c]);return i.prototype=s.prototype,t.prototype=new i,t.__super__=s.prototype,t},p={}.hasOwnProperty;o=n("./XMLNode"),k.exports=function(l){function t(s,i){if(t.__super__.constructor.call(this,s),i==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(i)}return u(t,l),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(s){return this.options.writer.set(s).cdata(this)},t}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u=function(t,s){function i(){this.constructor=t}for(var c in s)p.call(s,c)&&(t[c]=s[c]);return i.prototype=s.prototype,t.prototype=new i,t.__super__=s.prototype,t},p={}.hasOwnProperty;o=n("./XMLNode"),k.exports=function(l){function t(s,i){if(t.__super__.constructor.call(this,s),i==null)throw new Error("Missing comment text");this.text=this.stringify.comment(i)}return u(t,l),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(s){return this.options.writer.set(s).comment(this)},t}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,k,_){"use strict";(function(){var m,b=function(p,l){function t(){this.constructor=p}for(var s in l)o.call(l,s)&&(p[s]=l[s]);return t.prototype=l.prototype,p.prototype=new t,p.__super__=l.prototype,p},o={}.hasOwnProperty;m=n("./XMLNode"),k.exports=function(u){function p(l,t,s,i,c,f){if(p.__super__.constructor.call(this,l),t==null)throw new Error("Missing DTD element name");if(s==null)throw new Error("Missing DTD attribute name");if(!i)throw new Error("Missing DTD attribute type");if(!c)throw new Error("Missing DTD attribute default");if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(f&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(s),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=c}return b(p,u),p.prototype.toString=function(l){return this.options.writer.set(l).dtdAttList(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],219:[function(n,k,_){"use strict";(function(){var m,b=function(p,l){function t(){this.constructor=p}for(var s in l)o.call(l,s)&&(p[s]=l[s]);return t.prototype=l.prototype,p.prototype=new t,p.__super__=l.prototype,p},o={}.hasOwnProperty;m=n("./XMLNode"),k.exports=function(u){function p(l,t,s){if(p.__super__.constructor.call(this,l),t==null)throw new Error("Missing DTD element name");s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(s)}return b(p,u),p.prototype.toString=function(l){return this.options.writer.set(l).dtdElement(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],220:[function(n,k,_){"use strict";(function(){var m,b,o=function(l,t){function s(){this.constructor=l}for(var i in t)u.call(t,i)&&(l[i]=t[i]);return s.prototype=t.prototype,l.prototype=new s,l.__super__=t.prototype,l},u={}.hasOwnProperty;b=n("./Utility").isObject,m=n("./XMLNode"),k.exports=function(p){function l(t,s,i,c){if(l.__super__.constructor.call(this,t),i==null)throw new Error("Missing entity name");if(c==null)throw new Error("Missing entity value");if(this.pe=!!s,this.name=this.stringify.eleName(i),b(c)){if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity");if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(c)}return o(l,p),l.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},l}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,k,_){"use strict";(function(){var m,b=function(p,l){function t(){this.constructor=p}for(var s in l)o.call(l,s)&&(p[s]=l[s]);return t.prototype=l.prototype,p.prototype=new t,p.__super__=l.prototype,p},o={}.hasOwnProperty;m=n("./XMLNode"),k.exports=function(u){function p(l,t,s){if(p.__super__.constructor.call(this,l),t==null)throw new Error("Missing notation name");if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(t),s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return b(p,u),p.prototype.toString=function(l){return this.options.writer.set(l).dtdNotation(this)},p}(m)}).call(void 0)},{"./XMLNode":227}],222:[function(n,k,_){"use strict";(function(){var m,b,o=function(l,t){function s(){this.constructor=l}for(var i in t)u.call(t,i)&&(l[i]=t[i]);return s.prototype=t.prototype,l.prototype=new s,l.__super__=t.prototype,l},u={}.hasOwnProperty;b=n("./Utility").isObject,m=n("./XMLNode"),k.exports=function(p){function l(t,s,i,c){var f;l.__super__.constructor.call(this,t),b(s)&&(f=s,s=f.version,i=f.encoding,c=f.standalone),s||(s="1.0"),this.version=this.stringify.xmlVersion(s),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return o(l,p),l.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},l}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t=function(c,f){function d(){this.constructor=c}for(var T in f)s.call(f,T)&&(c[T]=f[T]);return d.prototype=f.prototype,c.prototype=new d,c.__super__=f.prototype,c},s={}.hasOwnProperty;l=n("./Utility").isObject,p=n("./XMLNode"),m=n("./XMLDTDAttList"),o=n("./XMLDTDEntity"),b=n("./XMLDTDElement"),u=n("./XMLDTDNotation"),k.exports=function(i){function c(f,d,T){var A,h;c.__super__.constructor.call(this,f),this.documentObject=f,l(d)&&(A=d,d=A.pubID,T=A.sysID),T==null&&(h=[d,T],T=h[0],d=h[1]),d!=null&&(this.pubID=this.stringify.dtdPubID(d)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return t(c,i),c.prototype.element=function(f,d){var T;return T=new b(this,f,d),this.children.push(T),this},c.prototype.attList=function(f,d,T,A,h){var O;return O=new m(this,f,d,T,A,h),this.children.push(O),this},c.prototype.entity=function(f,d){var T;return T=new o(this,!1,f,d),this.children.push(T),this},c.prototype.pEntity=function(f,d){var T;return T=new o(this,!0,f,d),this.children.push(T),this},c.prototype.notation=function(f,d){var T;return T=new u(this,f,d),this.children.push(T),this},c.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},c.prototype.ele=function(f,d){return this.element(f,d)},c.prototype.att=function(f,d,T,A,h){return this.attList(f,d,T,A,h)},c.prototype.ent=function(f,d){return this.entity(f,d)},c.prototype.pent=function(f,d){return this.pEntity(f,d)},c.prototype.not=function(f,d){return this.notation(f,d)},c.prototype.up=function(){return this.root()||this.documentObject},c}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,k,_){"use strict";(function(){var m,b,o,u,p=function(s,i){function c(){this.constructor=s}for(var f in i)l.call(i,f)&&(s[f]=i[f]);return c.prototype=i.prototype,s.prototype=new c,s.__super__=i.prototype,s},l={}.hasOwnProperty;u=n("./Utility").isPlainObject,m=n("./XMLNode"),o=n("./XMLStringifier"),b=n("./XMLStringWriter"),k.exports=function(t){function s(i){s.__super__.constructor.call(this,null),i||(i={}),i.writer||(i.writer=new b),this.options=i,this.stringify=new o(i),this.isDocument=!0}return p(s,t),s.prototype.end=function(i){var c;return i?u(i)&&(c=i,i=this.options.writer.set(c)):i=this.options.writer,i.document(this)},s.prototype.toString=function(i){return this.options.writer.set(i).document(this)},s}(m)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t,s,i,c,f,d,T,A,h,O,L,v,w,R={}.hasOwnProperty;w=n("./Utility"),L=w.isObject,O=w.isFunction,v=w.isPlainObject,c=n("./XMLElement"),b=n("./XMLCData"),o=n("./XMLComment"),d=n("./XMLRaw"),h=n("./XMLText"),f=n("./XMLProcessingInstruction"),s=n("./XMLDeclaration"),i=n("./XMLDocType"),u=n("./XMLDTDAttList"),l=n("./XMLDTDEntity"),p=n("./XMLDTDElement"),t=n("./XMLDTDNotation"),m=n("./XMLAttribute"),A=n("./XMLStringifier"),T=n("./XMLStringWriter"),k.exports=function(){function M(x,G,N){var X;x||(x={}),x.writer?v(x.writer)&&(X=x.writer,x.writer=new T(X)):x.writer=new T(x),this.options=x,this.writer=x.writer,this.stringify=new A(x),this.onDataCallback=G||function(){},this.onEndCallback=N||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return M.prototype.node=function(x,G,N){var X;if(x==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(),x=x.valueOf(),G==null&&(G={}),G=G.valueOf(),L(G)||(X=[G,N],N=X[0],G=X[1]),this.currentNode=new c(this,x,G),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,N!=null&&this.text(N),this},M.prototype.element=function(x,G,N){return this.currentNode&&this.currentNode instanceof i?this.dtdElement.apply(this,arguments):this.node(x,G,N)},M.prototype.attribute=function(x,G){var N,X;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(x!=null&&(x=x.valueOf()),L(x))for(N in x)R.call(x,N)&&(X=x[N],this.attribute(N,X));else O(G)&&(G=G.apply()),this.options.skipNullAttributes&&G==null||(this.currentNode.attributes[x]=new m(this,x,G));return this},M.prototype.text=function(x){var G;return this.openCurrent(),G=new h(this,x),this.onData(this.writer.text(G,this.currentLevel+1)),this},M.prototype.cdata=function(x){var G;return this.openCurrent(),G=new b(this,x),this.onData(this.writer.cdata(G,this.currentLevel+1)),this},M.prototype.comment=function(x){var G;return this.openCurrent(),G=new o(this,x),this.onData(this.writer.comment(G,this.currentLevel+1)),this},M.prototype.raw=function(x){var G;return this.openCurrent(),G=new d(this,x),this.onData(this.writer.raw(G,this.currentLevel+1)),this},M.prototype.instruction=function(x,G){var N,X,B,$,Z;if(this.openCurrent(),x!=null&&(x=x.valueOf()),G!=null&&(G=G.valueOf()),Array.isArray(x))for(N=0,$=x.length;N<$;N++)X=x[N],this.instruction(X);else if(L(x))for(X in x)R.call(x,X)&&(B=x[X],this.instruction(X,B));else O(G)&&(G=G.apply()),Z=new f(this,x,G),this.onData(this.writer.processingInstruction(Z,this.currentLevel+1));return this},M.prototype.declaration=function(x,G,N){var X;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return X=new s(this,x,G,N),this.onData(this.writer.declaration(X,this.currentLevel+1)),this},M.prototype.doctype=function(x,G,N){if(this.openCurrent(),x==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 i(this,G,N),this.currentNode.rootNodeName=x,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},M.prototype.dtdElement=function(x,G){var N;return this.openCurrent(),N=new p(this,x,G),this.onData(this.writer.dtdElement(N,this.currentLevel+1)),this},M.prototype.attList=function(x,G,N,X,B){var $;return this.openCurrent(),$=new u(this,x,G,N,X,B),this.onData(this.writer.dtdAttList($,this.currentLevel+1)),this},M.prototype.entity=function(x,G){var N;return this.openCurrent(),N=new l(this,!1,x,G),this.onData(this.writer.dtdEntity(N,this.currentLevel+1)),this},M.prototype.pEntity=function(x,G){var N;return this.openCurrent(),N=new l(this,!0,x,G),this.onData(this.writer.dtdEntity(N,this.currentLevel+1)),this},M.prototype.notation=function(x,G){var N;return this.openCurrent(),N=new t(this,x,G),this.onData(this.writer.dtdNotation(N,this.currentLevel+1)),this},M.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},M.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},M.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},M.prototype.openNode=function(x){if(!x.isOpen)return!this.root&&this.currentLevel===0&&x instanceof c&&(this.root=x),this.onData(this.writer.openNode(x,this.currentLevel)),x.isOpen=!0},M.prototype.closeNode=function(x){if(!x.isClosed)return this.onData(this.writer.closeNode(x,this.currentLevel)),x.isClosed=!0},M.prototype.onData=function(x){return this.documentStarted=!0,this.onDataCallback(x)},M.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},M.prototype.ele=function(){return this.element.apply(this,arguments)},M.prototype.nod=function(x,G,N){return this.node(x,G,N)},M.prototype.txt=function(x){return this.text(x)},M.prototype.dat=function(x){return this.cdata(x)},M.prototype.com=function(x){return this.comment(x)},M.prototype.ins=function(x,G){return this.instruction(x,G)},M.prototype.dec=function(x,G,N){return this.declaration(x,G,N)},M.prototype.dtd=function(x,G,N){return this.doctype(x,G,N)},M.prototype.e=function(x,G,N){return this.element(x,G,N)},M.prototype.n=function(x,G,N){return this.node(x,G,N)},M.prototype.t=function(x){return this.text(x)},M.prototype.d=function(x){return this.cdata(x)},M.prototype.c=function(x){return this.comment(x)},M.prototype.r=function(x){return this.raw(x)},M.prototype.i=function(x,G){return this.instruction(x,G)},M.prototype.att=function(){return this.currentNode&&this.currentNode instanceof i?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},M.prototype.a=function(){return this.currentNode&&this.currentNode instanceof i?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},M.prototype.ent=function(x,G){return this.entity(x,G)},M.prototype.pent=function(x,G){return this.pEntity(x,G)},M.prototype.not=function(x,G){return this.notation(x,G)},M}()}).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(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u,p,l,t,s=function(f,d){function T(){this.constructor=f}for(var A in d)i.call(d,A)&&(f[A]=d[A]);return T.prototype=d.prototype,f.prototype=new T,f.__super__=d.prototype,f},i={}.hasOwnProperty;t=n("./Utility"),l=t.isObject,p=t.isFunction,u=n("./XMLNode"),o=n("./XMLAttribute"),k.exports=function(c){function f(d,T,A){if(f.__super__.constructor.call(this,d),T==null)throw new Error("Missing element name");this.name=this.stringify.eleName(T),this.attributes={},A!=null&&this.attribute(A),d.isDocument&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this)}return s(f,c),f.prototype.clone=function(){var d,T,A,h;A=(0,b.default)(this),A.isRoot&&(A.documentObject=null),A.attributes={},h=this.attributes;for(T in h)i.call(h,T)&&(d=h[T],A.attributes[T]=d.clone());return A.children=[],this.children.forEach(function(O){var L;return L=O.clone(),L.parent=A,A.children.push(L)}),A},f.prototype.attribute=function(d,T){var A,h;if(d!=null&&(d=d.valueOf()),l(d))for(A in d)i.call(d,A)&&(h=d[A],this.attribute(A,h));else p(T)&&(T=T.apply()),this.options.skipNullAttributes&&T==null||(this.attributes[d]=new o(this,d,T));return this},f.prototype.removeAttribute=function(d){var T,A,h;if(d==null)throw new Error("Missing attribute name");if(d=d.valueOf(),Array.isArray(d))for(A=0,h=d.length;A<h;A++)T=d[A],delete this.attributes[T];else delete this.attributes[d];return this},f.prototype.toString=function(d){return this.options.writer.set(d).element(this)},f.prototype.att=function(d,T){return this.attribute(d,T)},f.prototype.a=function(d,T){return this.attribute(d,T)},f}(u)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t,s,i,c,f,d,T={}.hasOwnProperty;d=n("./Utility"),f=d.isObject,c=d.isFunction,i=d.isEmpty,p=null,m=null,b=null,o=null,u=null,t=null,s=null,l=null,k.exports=function(){function A(h){this.parent=h,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=n("./XMLElement"),m=n("./XMLCData"),b=n("./XMLComment"),o=n("./XMLDeclaration"),u=n("./XMLDocType"),t=n("./XMLRaw"),s=n("./XMLText"),l=n("./XMLProcessingInstruction"))}return A.prototype.element=function(h,O,L){var v,w,R,M,x,G,N,X,B,$;if(G=null,O==null&&(O={}),O=O.valueOf(),f(O)||(B=[O,L],L=B[0],O=B[1]),h!=null&&(h=h.valueOf()),Array.isArray(h))for(R=0,N=h.length;R<N;R++)w=h[R],G=this.element(w);else if(c(h))G=this.element(h.apply());else if(f(h)){for(x in h)if(T.call(h,x))if($=h[x],c($)&&($=$.apply()),f($)&&i($)&&($=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&x.indexOf(this.stringify.convertAttKey)===0)G=this.attribute(x.substr(this.stringify.convertAttKey.length),$);else if(!this.options.separateArrayItems&&Array.isArray($))for(M=0,X=$.length;M<X;M++)w=$[M],v={},v[x]=w,G=this.element(v);else f($)?(G=this.element(x),G.element($)):G=this.element(x,$)}else G=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&h.indexOf(this.stringify.convertTextKey)===0?this.text(L):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&h.indexOf(this.stringify.convertCDataKey)===0?this.cdata(L):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&h.indexOf(this.stringify.convertCommentKey)===0?this.comment(L):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&h.indexOf(this.stringify.convertRawKey)===0?this.raw(L):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&h.indexOf(this.stringify.convertPIKey)===0?this.instruction(h.substr(this.stringify.convertPIKey.length),L):this.node(h,O,L);if(G==null)throw new Error("Could not create any elements with: "+h);return G},A.prototype.insertBefore=function(h,O,L){var v,w,R;if(this.isRoot)throw new Error("Cannot insert elements at root level");return w=this.parent.children.indexOf(this),R=this.parent.children.splice(w),v=this.parent.element(h,O,L),Array.prototype.push.apply(this.parent.children,R),v},A.prototype.insertAfter=function(h,O,L){var v,w,R;if(this.isRoot)throw new Error("Cannot insert elements at root level");return w=this.parent.children.indexOf(this),R=this.parent.children.splice(w+1),v=this.parent.element(h,O,L),Array.prototype.push.apply(this.parent.children,R),v},A.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},A.prototype.node=function(h,O,L){var v,w;return h!=null&&(h=h.valueOf()),O||(O={}),O=O.valueOf(),f(O)||(w=[O,L],L=w[0],O=w[1]),v=new p(this,h,O),L!=null&&v.text(L),this.children.push(v),v},A.prototype.text=function(h){var O;return O=new s(this,h),this.children.push(O),this},A.prototype.cdata=function(h){var O;return O=new m(this,h),this.children.push(O),this},A.prototype.comment=function(h){var O;return O=new b(this,h),this.children.push(O),this},A.prototype.commentBefore=function(h){var O,L;return O=this.parent.children.indexOf(this),L=this.parent.children.splice(O),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,L),this},A.prototype.commentAfter=function(h){var O,L;return O=this.parent.children.indexOf(this),L=this.parent.children.splice(O+1),this.parent.comment(h),Array.prototype.push.apply(this.parent.children,L),this},A.prototype.raw=function(h){var O;return O=new t(this,h),this.children.push(O),this},A.prototype.instruction=function(h,O){var L,v,w,R,M;if(h!=null&&(h=h.valueOf()),O!=null&&(O=O.valueOf()),Array.isArray(h))for(R=0,M=h.length;R<M;R++)L=h[R],this.instruction(L);else if(f(h))for(L in h)T.call(h,L)&&(v=h[L],this.instruction(L,v));else c(O)&&(O=O.apply()),w=new l(this,h,O),this.children.push(w);return this},A.prototype.instructionBefore=function(h,O){var L,v;return L=this.parent.children.indexOf(this),v=this.parent.children.splice(L),this.parent.instruction(h,O),Array.prototype.push.apply(this.parent.children,v),this},A.prototype.instructionAfter=function(h,O){var L,v;return L=this.parent.children.indexOf(this),v=this.parent.children.splice(L+1),this.parent.instruction(h,O),Array.prototype.push.apply(this.parent.children,v),this},A.prototype.declaration=function(h,O,L){var v,w;return v=this.document(),w=new o(v,h,O,L),v.children[0]instanceof o?v.children[0]=w:v.children.unshift(w),v.root()||v},A.prototype.doctype=function(h,O){var L,v,w,R,M,x,G,N,X,B;for(v=this.document(),w=new u(v,h,O),X=v.children,R=M=0,G=X.length;M<G;R=++M)if((L=X[R])instanceof u)return v.children[R]=w,w;for(B=v.children,R=x=0,N=B.length;x<N;R=++x)if(L=B[R],L.isRoot)return v.children.splice(R,0,w),w;return v.children.push(w),w},A.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},A.prototype.root=function(){var h;for(h=this;h;){if(h.isDocument)return h.rootObject;if(h.isRoot)return h;h=h.parent}},A.prototype.document=function(){var h;for(h=this;h;){if(h.isDocument)return h;h=h.parent}},A.prototype.end=function(h){return this.document().end(h)},A.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]},A.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]},A.prototype.importDocument=function(h){var O;return O=h.root().clone(),O.parent=this,O.isRoot=!1,this.children.push(O),this},A.prototype.ele=function(h,O,L){return this.element(h,O,L)},A.prototype.nod=function(h,O,L){return this.node(h,O,L)},A.prototype.txt=function(h){return this.text(h)},A.prototype.dat=function(h){return this.cdata(h)},A.prototype.com=function(h){return this.comment(h)},A.prototype.ins=function(h,O){return this.instruction(h,O)},A.prototype.doc=function(){return this.document()},A.prototype.dec=function(h,O,L){return this.declaration(h,O,L)},A.prototype.dtd=function(h,O){return this.doctype(h,O)},A.prototype.e=function(h,O,L){return this.element(h,O,L)},A.prototype.n=function(h,O,L){return this.node(h,O,L)},A.prototype.t=function(h){return this.text(h)},A.prototype.d=function(h){return this.cdata(h)},A.prototype.c=function(h){return this.comment(h)},A.prototype.r=function(h){return this.raw(h)},A.prototype.i=function(h,O){return this.instruction(h,O)},A.prototype.u=function(){return this.up()},A.prototype.importXMLBuilder=function(h){return this.importDocument(h)},A}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u=function(t,s){function i(){this.constructor=t}for(var c in s)p.call(s,c)&&(t[c]=s[c]);return i.prototype=s.prototype,t.prototype=new i,t.__super__=s.prototype,t},p={}.hasOwnProperty;o=n("./XMLNode"),k.exports=function(l){function t(s,i,c){if(t.__super__.constructor.call(this,s),i==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(i),c&&(this.value=this.stringify.insValue(c))}return u(t,l),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(s){return this.options.writer.set(s).processingInstruction(this)},t}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u=function(t,s){function i(){this.constructor=t}for(var c in s)p.call(s,c)&&(t[c]=s[c]);return i.prototype=s.prototype,t.prototype=new i,t.__super__=s.prototype,t},p={}.hasOwnProperty;o=n("./XMLNode"),k.exports=function(l){function t(s,i){if(t.__super__.constructor.call(this,s),i==null)throw new Error("Missing raw text");this.value=this.stringify.raw(i)}return u(t,l),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(s){return this.options.writer.set(s).raw(this)},t}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t,s,i,c,f,d,T,A=function(L,v){function w(){this.constructor=L}for(var R in v)h.call(v,R)&&(L[R]=v[R]);return w.prototype=v.prototype,L.prototype=new w,L.__super__=v.prototype,L},h={}.hasOwnProperty;t=n("./XMLDeclaration"),s=n("./XMLDocType"),m=n("./XMLCData"),b=n("./XMLComment"),i=n("./XMLElement"),f=n("./XMLRaw"),d=n("./XMLText"),c=n("./XMLProcessingInstruction"),o=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),l=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),k.exports=function(O){function L(v,w){L.__super__.constructor.call(this,w),this.stream=v}return A(L,O),L.prototype.document=function(v){var w,R,M,x,G,N,X,B;for(N=v.children,R=0,x=N.length;R<x;R++)w=N[R],w.isLastRootNode=!1;for(v.children[v.children.length-1].isLastRootNode=!0,X=v.children,B=[],M=0,G=X.length;M<G;M++)switch(w=X[M],!1){case!(w instanceof t):B.push(this.declaration(w));break;case!(w instanceof s):B.push(this.docType(w));break;case!(w instanceof b):B.push(this.comment(w));break;case!(w instanceof c):B.push(this.processingInstruction(w));break;default:B.push(this.element(w))}return B},L.prototype.attribute=function(v){return this.stream.write(" "+v.name+'="'+v.value+'"')},L.prototype.cdata=function(v,w){return this.stream.write(this.space(w)+"<![CDATA["+v.text+"]]>"+this.endline(v))},L.prototype.comment=function(v,w){return this.stream.write(this.space(w)+"<!-- "+v.text+" -->"+this.endline(v))},L.prototype.declaration=function(v,w){return this.stream.write(this.space(w)),this.stream.write('<?xml version="'+v.version+'"'),v.encoding!=null&&this.stream.write(' encoding="'+v.encoding+'"'),v.standalone!=null&&this.stream.write(' standalone="'+v.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(v))},L.prototype.docType=function(v,w){var R,M,x,G;if(w||(w=0),this.stream.write(this.space(w)),this.stream.write("<!DOCTYPE "+v.root().name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(v)),G=v.children,M=0,x=G.length;M<x;M++)switch(R=G[M],!1){case!(R instanceof o):this.dtdAttList(R,w+1);break;case!(R instanceof u):this.dtdElement(R,w+1);break;case!(R instanceof p):this.dtdEntity(R,w+1);break;case!(R instanceof l):this.dtdNotation(R,w+1);break;case!(R instanceof m):this.cdata(R,w+1);break;case!(R instanceof b):this.comment(R,w+1);break;case!(R instanceof c):this.processingInstruction(R,w+1);break;default:throw new Error("Unknown DTD node type: "+R.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(v))},L.prototype.element=function(v,w){var R,M,x,G,N,X,B,$;w||(w=0),$=this.space(w),this.stream.write($+"<"+v.name),X=v.attributes;for(N in X)h.call(X,N)&&(R=X[N],this.attribute(R));if(v.children.length===0||v.children.every(function(Z){return Z.value===""}))this.allowEmpty?this.stream.write("></"+v.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)this.stream.write(">"),this.stream.write(v.children[0].value),this.stream.write("</"+v.name+">");else{for(this.stream.write(">"+this.newline),B=v.children,x=0,G=B.length;x<G;x++)switch(M=B[x],!1){case!(M instanceof m):this.cdata(M,w+1);break;case!(M instanceof b):this.comment(M,w+1);break;case!(M instanceof i):this.element(M,w+1);break;case!(M instanceof f):this.raw(M,w+1);break;case!(M instanceof d):this.text(M,w+1);break;case!(M instanceof c):this.processingInstruction(M,w+1);break;default:throw new Error("Unknown XML node type: "+M.constructor.name)}this.stream.write($+"</"+v.name+">")}return this.stream.write(this.endline(v))},L.prototype.processingInstruction=function(v,w){return this.stream.write(this.space(w)+"<?"+v.target),v.value&&this.stream.write(" "+v.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(v))},L.prototype.raw=function(v,w){return this.stream.write(this.space(w)+v.value+this.endline(v))},L.prototype.text=function(v,w){return this.stream.write(this.space(w)+v.value+this.endline(v))},L.prototype.dtdAttList=function(v,w){return this.stream.write(this.space(w)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType),v.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+v.defaultValueType),v.defaultValue&&this.stream.write(' "'+v.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},L.prototype.dtdElement=function(v,w){return this.stream.write(this.space(w)+"<!ELEMENT "+v.name+" "+v.value),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},L.prototype.dtdEntity=function(v,w){return this.stream.write(this.space(w)+"<!ENTITY"),v.pe&&this.stream.write(" %"),this.stream.write(" "+v.name),v.value?this.stream.write(' "'+v.value+'"'):(v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),v.nData&&this.stream.write(" NDATA "+v.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},L.prototype.dtdNotation=function(v,w){return this.stream.write(this.space(w)+"<!NOTATION "+v.name),v.pubID&&v.sysID?this.stream.write(' PUBLIC "'+v.pubID+'" "'+v.sysID+'"'):v.pubID?this.stream.write(' PUBLIC "'+v.pubID+'"'):v.sysID&&this.stream.write(' SYSTEM "'+v.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(v))},L.prototype.endline=function(v){return v.isLastRootNode?"":this.newline},L}(T)}).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(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t,s,i,c,f,d,T,A=function(L,v){function w(){this.constructor=L}for(var R in v)h.call(v,R)&&(L[R]=v[R]);return w.prototype=v.prototype,L.prototype=new w,L.__super__=v.prototype,L},h={}.hasOwnProperty;t=n("./XMLDeclaration"),s=n("./XMLDocType"),m=n("./XMLCData"),b=n("./XMLComment"),i=n("./XMLElement"),f=n("./XMLRaw"),d=n("./XMLText"),c=n("./XMLProcessingInstruction"),o=n("./XMLDTDAttList"),u=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),l=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),k.exports=function(O){function L(v){L.__super__.constructor.call(this,v)}return A(L,O),L.prototype.document=function(v){var w,R,M,x,G;for(this.textispresent=!1,x="",G=v.children,R=0,M=G.length;R<M;R++)w=G[R],x+=function(){switch(!1){case!(w instanceof t):return this.declaration(w);case!(w instanceof s):return this.docType(w);case!(w instanceof b):return this.comment(w);case!(w instanceof c):return this.processingInstruction(w);default:return this.element(w,0)}}.call(this);return this.pretty&&x.slice(-this.newline.length)===this.newline&&(x=x.slice(0,-this.newline.length)),x},L.prototype.attribute=function(v){return" "+v.name+'="'+v.value+'"'},L.prototype.cdata=function(v,w){return this.space(w)+"<![CDATA["+v.text+"]]>"+this.newline},L.prototype.comment=function(v,w){return this.space(w)+"<!-- "+v.text+" -->"+this.newline},L.prototype.declaration=function(v,w){var R;return R=this.space(w),R+='<?xml version="'+v.version+'"',v.encoding!=null&&(R+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(R+=' standalone="'+v.standalone+'"'),R+=this.spacebeforeslash+"?>",R+=this.newline},L.prototype.docType=function(v,w){var R,M,x,G,N;if(w||(w=0),G=this.space(w),G+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?G+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(G+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(G+=" [",G+=this.newline,N=v.children,M=0,x=N.length;M<x;M++)R=N[M],G+=function(){switch(!1){case!(R instanceof o):return this.dtdAttList(R,w+1);case!(R instanceof u):return this.dtdElement(R,w+1);case!(R instanceof p):return this.dtdEntity(R,w+1);case!(R instanceof l):return this.dtdNotation(R,w+1);case!(R instanceof m):return this.cdata(R,w+1);case!(R instanceof b):return this.comment(R,w+1);case!(R instanceof c):return this.processingInstruction(R,w+1);default:throw new Error("Unknown DTD node type: "+R.constructor.name)}}.call(this);G+="]"}return G+=this.spacebeforeslash+">",G+=this.newline},L.prototype.element=function(v,w){var R,M,x,G,N,X,B,$,Z,ne,se,W,le;w||(w=0),le=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),W=this.space(w),$="",$+=W+"<"+v.name,Z=v.attributes;for(B in Z)h.call(Z,B)&&(R=Z[B],$+=this.attribute(R));if(v.children.length===0||v.children.every(function(re){return re.value===""}))this.allowEmpty?$+="></"+v.name+">"+this.newline:$+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&v.children.length===1&&v.children[0].value!=null)$+=">",$+=v.children[0].value,$+="</"+v.name+">"+this.newline;else{if(this.dontprettytextnodes){for(ne=v.children,x=0,N=ne.length;x<N;x++)if(M=ne[x],M.value!=null){this.textispresent++,le=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,W=this.space(w)),$+=">"+this.newline,se=v.children,G=0,X=se.length;G<X;G++)M=se[G],$+=function(){switch(!1){case!(M instanceof m):return this.cdata(M,w+1);case!(M instanceof b):return this.comment(M,w+1);case!(M instanceof i):return this.element(M,w+1);case!(M instanceof f):return this.raw(M,w+1);case!(M instanceof d):return this.text(M,w+1);case!(M instanceof c):return this.processingInstruction(M,w+1);default:throw new Error("Unknown XML node type: "+M.constructor.name)}}.call(this);le&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),$+=W+"</"+v.name+">"+this.newline}return $},L.prototype.processingInstruction=function(v,w){var R;return R=this.space(w)+"<?"+v.target,v.value&&(R+=" "+v.value),R+=this.spacebeforeslash+"?>"+this.newline},L.prototype.raw=function(v,w){return this.space(w)+v.value+this.newline},L.prototype.text=function(v,w){return this.space(w)+v.value+this.newline},L.prototype.dtdAttList=function(v,w){var R;return R=this.space(w)+"<!ATTLIST "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(R+=" "+v.defaultValueType),v.defaultValue&&(R+=' "'+v.defaultValue+'"'),R+=this.spacebeforeslash+">"+this.newline},L.prototype.dtdElement=function(v,w){return this.space(w)+"<!ELEMENT "+v.name+" "+v.value+this.spacebeforeslash+">"+this.newline},L.prototype.dtdEntity=function(v,w){var R;return R=this.space(w)+"<!ENTITY",v.pe&&(R+=" %"),R+=" "+v.name,v.value?R+=' "'+v.value+'"':(v.pubID&&v.sysID?R+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(R+=' SYSTEM "'+v.sysID+'"'),v.nData&&(R+=" NDATA "+v.nData)),R+=this.spacebeforeslash+">"+this.newline},L.prototype.dtdNotation=function(v,w){var R;return R=this.space(w)+"<!NOTATION "+v.name,v.pubID&&v.sysID?R+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?R+=' PUBLIC "'+v.pubID+'"':v.sysID&&(R+=' SYSTEM "'+v.sysID+'"'),R+=this.spacebeforeslash+">"+this.newline},L.prototype.openNode=function(v,w){var R,M,x,G;if(w||(w=0),v instanceof i){x=this.space(w)+"<"+v.name,G=v.attributes;for(M in G)h.call(G,M)&&(R=G[M],x+=this.attribute(R));return x+=(v.children?">":"/>")+this.newline}return x=this.space(w)+"<!DOCTYPE "+v.rootNodeName,v.pubID&&v.sysID?x+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(x+=' SYSTEM "'+v.sysID+'"'),x+=(v.children?" [":">")+this.newline},L.prototype.closeNode=function(v,w){switch(w||(w=0),!1){case!(v instanceof i):return this.space(w)+"</"+v.name+">"+this.newline;case!(v instanceof s):return this.space(w)+"]>"+this.newline}},L}(T)}).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(n,k,_){"use strict";(function(){var m=function(u,p){return function(){return u.apply(p,arguments)}},b={}.hasOwnProperty;k.exports=function(){function o(u){this.assertLegalChar=m(this.assertLegalChar,this);var p,l,t;u||(u={}),this.noDoubleEncoding=u.noDoubleEncoding,l=u.stringify||{};for(p in l)b.call(l,p)&&(t=l[p],this[p]=t)}return o.prototype.eleName=function(u){return u=""+u||"",this.assertLegalChar(u)},o.prototype.eleText=function(u){return u=""+u||"",this.assertLegalChar(this.elEscape(u))},o.prototype.cdata=function(u){return u=""+u||"",u=u.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(u)},o.prototype.comment=function(u){if(u=""+u||"",u.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+u);return this.assertLegalChar(u)},o.prototype.raw=function(u){return""+u||""},o.prototype.attName=function(u){return u=""+u||""},o.prototype.attValue=function(u){return u=""+u||"",this.attEscape(u)},o.prototype.insTarget=function(u){return""+u||""},o.prototype.insValue=function(u){if(u=""+u||"",u.match(/\?>/))throw new Error("Invalid processing instruction value: "+u);return u},o.prototype.xmlVersion=function(u){if(u=""+u||"",!u.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+u);return u},o.prototype.xmlEncoding=function(u){if(u=""+u||"",!u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+u);return u},o.prototype.xmlStandalone=function(u){return u?"yes":"no"},o.prototype.dtdPubID=function(u){return""+u||""},o.prototype.dtdSysID=function(u){return""+u||""},o.prototype.dtdElementValue=function(u){return""+u||""},o.prototype.dtdAttType=function(u){return""+u||""},o.prototype.dtdAttDefault=function(u){return u!=null?""+u||"":u},o.prototype.dtdEntityValue=function(u){return""+u||""},o.prototype.dtdNData=function(u){return""+u||""},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(u){var p;if(p=u.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+u+" at index "+p.index);return u},o.prototype.elEscape=function(u){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},o.prototype.attEscape=function(u){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,u.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},o}()}).call(void 0)},{}],233:[function(n,k,_){"use strict";var m=n("babel-runtime/core-js/object/create"),b=function(o){return o&&o.__esModule?o:{default:o}}(m);(function(){var o,u=function(t,s){function i(){this.constructor=t}for(var c in s)p.call(s,c)&&(t[c]=s[c]);return i.prototype=s.prototype,t.prototype=new i,t.__super__=s.prototype,t},p={}.hasOwnProperty;o=n("./XMLNode"),k.exports=function(l){function t(s,i){if(t.__super__.constructor.call(this,s),i==null)throw new Error("Missing element text");this.value=this.stringify.eleText(i)}return u(t,l),t.prototype.clone=function(){return(0,b.default)(this)},t.prototype.toString=function(s){return this.options.writer.set(s).text(this)},t}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,k,_){"use strict";(function(){var m={}.hasOwnProperty;k.exports=function(){function b(o){var u,p,l,t,s,i,c,f,d;o||(o={}),this.pretty=o.pretty||!1,this.allowEmpty=(p=o.allowEmpty)!=null&&p,this.pretty?(this.indent=(l=o.indent)!=null?l:" ",this.newline=(t=o.newline)!=null?t:`
|
|
|
`,this.offset=(s=o.offset)!=null?s:0,this.dontprettytextnodes=(i=o.dontprettytextnodes)!=null?i:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=o.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=o.writer||{};for(u in f)m.call(f,u)&&(d=f[u],this[u]=d)}return b.prototype.set=function(o){var u,p,l;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(u in p)m.call(p,u)&&(l=p[u],this[u]=l);return this},b.prototype.space=function(o){var u;return this.pretty?(u=(o||0)+this.offset+1,u>0?new Array(u).join(this.indent):""):""},b}()}).call(void 0)},{}],235:[function(n,k,_){"use strict";(function(){var m,b,o,u,p,l,t;t=n("./Utility"),p=t.assign,l=t.isFunction,m=n("./XMLDocument"),b=n("./XMLDocumentCB"),u=n("./XMLStringWriter"),o=n("./XMLStreamWriter"),k.exports.create=function(s,i,c,f){var d,T;if(s==null)throw new Error("Root element needs a name");return f=p({},i,c,f),d=new m(f),T=d.element(s),f.headless||(d.declaration(f),f.pubID==null&&f.sysID==null||d.doctype(f)),T},k.exports.begin=function(s,i,c){var f;return l(s)&&(f=[s,i],i=f[0],c=f[1],s={}),i?new b(s,i,c):new m(s)},k.exports.stringWriter=function(s){return new u(s)},k.exports.streamWriter=function(s,i){return new o(s,i)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,k,_){function m(){for(var o={},u=0;u<arguments.length;u++){var p=arguments[u];for(var l in p)b.call(p,l)&&(o[l]=p[l])}return o}k.exports=m;var b=Object.prototype.hasOwnProperty},{}],237:[function(n,k,_){"use strict";function m(f,d,T){u.isBuffer(d)||(d=new u(d)),u.isBuffer(T)||(T=new u(T)),d.length>i?d=f(d):d.length<i&&(d=u.concat([d,c],i));for(var A=new u(i),h=new u(i),O=0;O<i;O++)A[O]=54^d[O],h[O]=92^d[O];var L=f(u.concat([A,T]));return f(u.concat([h,L]))}function b(f,d){f=f||"sha1";var T=s[f],A=[],h=0;return T||o("algorithm:",f,"is not yet supported"),{update:function(L){return u.isBuffer(L)||(L=new u(L)),A.push(L),h+=L.length,this},digest:function(L){var v=u.concat(A),w=d?m(T,d,v):T(v);return A=null,L?w.toString(L):w}}}function o(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var u=n("buffer").Buffer,p=n("./sha"),l=n("./sha256"),t=n("./md5"),s={sha1:p,sha256:l,md5:t},i=64,c=new u(i);c.fill(0),_.createHash=function(f){return b(f)},_.createHmac=function(f,d){return b(f,d)},function(f,d){for(var T in f)d(f[T],T)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(f){_[f]=function(){o("sorry,",f,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,k,_){"use strict";function m(s,i){if(s.length%p!=0){var c=s.length+(p-s.length%p);s=u.concat([s,l],c)}for(var f=[],d=i?s.readInt32BE:s.readInt32LE,T=0;T<s.length;T+=p)f.push(d.call(s,T));return f}function b(s,i,c){for(var f=new u(i),d=c?f.writeInt32BE:f.writeInt32LE,T=0;T<s.length;T++)d.call(f,s[T],4*T,!0);return f}function o(s,i,c,f){return u.isBuffer(s)||(s=new u(s)),b(i(m(s,f),s.length*t),c,f)}var u=n("buffer").Buffer,p=4,l=new u(p);l.fill(0);var t=8;k.exports={hash:o}},{buffer:38}],239:[function(n,k,_){"use strict";function m(c,f){c[f>>5]|=128<<f%32,c[14+(f+64>>>9<<4)]=f;for(var d=1732584193,T=-271733879,A=-1732584194,h=271733878,O=0;O<c.length;O+=16){var L=d,v=T,w=A,R=h;d=o(d,T,A,h,c[O+0],7,-680876936),h=o(h,d,T,A,c[O+1],12,-389564586),A=o(A,h,d,T,c[O+2],17,606105819),T=o(T,A,h,d,c[O+3],22,-1044525330),d=o(d,T,A,h,c[O+4],7,-176418897),h=o(h,d,T,A,c[O+5],12,1200080426),A=o(A,h,d,T,c[O+6],17,-1473231341),T=o(T,A,h,d,c[O+7],22,-45705983),d=o(d,T,A,h,c[O+8],7,1770035416),h=o(h,d,T,A,c[O+9],12,-1958414417),A=o(A,h,d,T,c[O+10],17,-42063),T=o(T,A,h,d,c[O+11],22,-1990404162),d=o(d,T,A,h,c[O+12],7,1804603682),h=o(h,d,T,A,c[O+13],12,-40341101),A=o(A,h,d,T,c[O+14],17,-1502002290),T=o(T,A,h,d,c[O+15],22,1236535329),d=u(d,T,A,h,c[O+1],5,-165796510),h=u(h,d,T,A,c[O+6],9,-1069501632),A=u(A,h,d,T,c[O+11],14,643717713),T=u(T,A,h,d,c[O+0],20,-373897302),d=u(d,T,A,h,c[O+5],5,-701558691),h=u(h,d,T,A,c[O+10],9,38016083),A=u(A,h,d,T,c[O+15],14,-660478335),T=u(T,A,h,d,c[O+4],20,-405537848),d=u(d,T,A,h,c[O+9],5,568446438),h=u(h,d,T,A,c[O+14],9,-1019803690),A=u(A,h,d,T,c[O+3],14,-187363961),T=u(T,A,h,d,c[O+8],20,1163531501),d=u(d,T,A,h,c[O+13],5,-1444681467),h=u(h,d,T,A,c[O+2],9,-51403784),A=u(A,h,d,T,c[O+7],14,1735328473),T=u(T,A,h,d,c[O+12],20,-1926607734),d=p(d,T,A,h,c[O+5],4,-378558),h=p(h,d,T,A,c[O+8],11,-2022574463),A=p(A,h,d,T,c[O+11],16,1839030562),T=p(T,A,h,d,c[O+14],23,-35309556),d=p(d,T,A,h,c[O+1],4,-1530992060),h=p(h,d,T,A,c[O+4],11,1272893353),A=p(A,h,d,T,c[O+7],16,-155497632),T=p(T,A,h,d,c[O+10],23,-1094730640),d=p(d,T,A,h,c[O+13],4,681279174),h=p(h,d,T,A,c[O+0],11,-358537222),A=p(A,h,d,T,c[O+3],16,-722521979),T=p(T,A,h,d,c[O+6],23,76029189),d=p(d,T,A,h,c[O+9],4,-640364487),h=p(h,d,T,A,c[O+12],11,-421815835),A=p(A,h,d,T,c[O+15],16,530742520),T=p(T,A,h,d,c[O+2],23,-995338651),d=l(d,T,A,h,c[O+0],6,-198630844),h=l(h,d,T,A,c[O+7],10,1126891415),A=l(A,h,d,T,c[O+14],15,-1416354905),T=l(T,A,h,d,c[O+5],21,-57434055),d=l(d,T,A,h,c[O+12],6,1700485571),h=l(h,d,T,A,c[O+3],10,-1894986606),A=l(A,h,d,T,c[O+10],15,-1051523),T=l(T,A,h,d,c[O+1],21,-2054922799),d=l(d,T,A,h,c[O+8],6,1873313359),h=l(h,d,T,A,c[O+15],10,-30611744),A=l(A,h,d,T,c[O+6],15,-1560198380),T=l(T,A,h,d,c[O+13],21,1309151649),d=l(d,T,A,h,c[O+4],6,-145523070),h=l(h,d,T,A,c[O+11],10,-1120210379),A=l(A,h,d,T,c[O+2],15,718787259),T=l(T,A,h,d,c[O+9],21,-343485551),d=t(d,L),T=t(T,v),A=t(A,w),h=t(h,R)}return Array(d,T,A,h)}function b(c,f,d,T,A,h){return t(s(t(t(f,c),t(T,h)),A),d)}function o(c,f,d,T,A,h,O){return b(f&d|~f&T,c,f,A,h,O)}function u(c,f,d,T,A,h,O){return b(f&T|d&~T,c,f,A,h,O)}function p(c,f,d,T,A,h,O){return b(f^d^T,c,f,A,h,O)}function l(c,f,d,T,A,h,O){return b(d^(f|~T),c,f,A,h,O)}function t(c,f){var d=(65535&c)+(65535&f);return(c>>16)+(f>>16)+(d>>16)<<16|65535&d}function s(c,f){return c<<f|c>>>32-f}var i=n("./helpers");k.exports=function(c){return i.hash(c,m,16)}},{"./helpers":238}],240:[function(n,k,_){"use strict";function m(t,s){t[s>>5]|=128<<24-s%32,t[15+(s+64>>9<<4)]=s;for(var i=Array(80),c=1732584193,f=-271733879,d=-1732584194,T=271733878,A=-1009589776,h=0;h<t.length;h+=16){for(var O=c,L=f,v=d,w=T,R=A,M=0;M<80;M++){i[M]=M<16?t[h+M]:p(i[M-3]^i[M-8]^i[M-14]^i[M-16],1);var x=u(u(p(c,5),b(M,f,d,T)),u(u(A,i[M]),o(M)));A=T,T=d,d=p(f,30),f=c,c=x}c=u(c,O),f=u(f,L),d=u(d,v),T=u(T,w),A=u(A,R)}return Array(c,f,d,T,A)}function b(t,s,i,c){return t<20?s&i|~s&c:t<40?s^i^c:t<60?s&i|s&c|i&c:s^i^c}function o(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,s){var i=(65535&t)+(65535&s);return(t>>16)+(s>>16)+(i>>16)<<16|65535&i}function p(t,s){return t<<s|t>>>32-s}var l=n("./helpers");k.exports=function(t){return l.hash(t,m,20,!0)}},{"./helpers":238}],241:[function(n,k,_){"use strict";var m=n("./helpers"),b=function(T,A){var h=(65535&T)+(65535&A);return(T>>16)+(A>>16)+(h>>16)<<16|65535&h},o=function(T,A){return T>>>A|T<<32-A},u=function(T,A){return T>>>A},p=function(T,A,h){return T&A^~T&h},l=function(T,A,h){return T&A^T&h^A&h},t=function(T){return o(T,2)^o(T,13)^o(T,22)},s=function(T){return o(T,6)^o(T,11)^o(T,25)},i=function(T){return o(T,7)^o(T,18)^u(T,3)},c=function(T){return o(T,17)^o(T,19)^u(T,10)},f=function(T,A){var h,O,L,v,w,R,M,x,G,N,X,B,$=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),Z=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),ne=new Array(64);T[A>>5]|=128<<24-A%32,T[15+(A+64>>9<<4)]=A;for(var G=0;G<T.length;G+=16){h=Z[0],O=Z[1],L=Z[2],v=Z[3],w=Z[4],R=Z[5],M=Z[6],x=Z[7];for(var N=0;N<64;N++)ne[N]=N<16?T[N+G]:b(b(b(c(ne[N-2]),ne[N-7]),i(ne[N-15])),ne[N-16]),X=b(b(b(b(x,s(w)),p(w,R,M)),$[N]),ne[N]),B=b(t(h),l(h,O,L)),x=M,M=R,R=w,w=b(v,X),v=L,L=O,O=h,h=b(X,B);Z[0]=b(h,Z[0]),Z[1]=b(O,Z[1]),Z[2]=b(L,Z[2]),Z[3]=b(v,Z[3]),Z[4]=b(w,Z[4]),Z[5]=b(R,Z[5]),Z[6]=b(M,Z[6]),Z[7]=b(x,Z[7])}return Z};k.exports=function(d){return m.hash(d,f,32,!0)}},{"./helpers":238}],242:[function(n,k,_){(function(m){"use strict";function b(f){return f&&f.__esModule?f:{default:f}}var o=n("babel-runtime/core-js/object/create"),u=b(o),p=n("babel-runtime/helpers/classCallCheck"),l=b(p),t=n("babel-runtime/helpers/createClass"),s=b(t),i=n("babel-runtime/helpers/typeof"),c=b(i);!function(f){if((_===void 0?"undefined":(0,c.default)(_))==="object"&&k!==void 0)k.exports=f();else if(typeof Oe=="function"&&Oe.amd)Oe([],f);else{var d;d=typeof window!="undefined"?window:m!==void 0?m:typeof self!="undefined"?self:this,d.mime=f()}}(function(){return function f(d,T,A){function h(v,w){if(!T[v]){if(!d[v]){var R=typeof n=="function"&&n;if(!w&&R)return R(v,!0);if(O)return O(v,!0);var M=new Error("Cannot find module '"+v+"'");throw M.code="MODULE_NOT_FOUND",M}var x=T[v]={exports:{}};d[v][0].call(x.exports,function(G){var N=d[v][1][G];return h(N||G)},x,x.exports,f,d,T,A)}return T[v].exports}for(var O=typeof n=="function"&&n,L=0;L<A.length;L++)h(A[L]);return h}({1:[function(f,d,T){var A=function(){function h(){(0,l.default)(this,h),this._types=(0,u.default)(null),this._extensions=(0,u.default)(null);for(var O=0;O<arguments.length;O++)this.define(arguments[O])}return(0,s.default)(h,[{key:"define",value:function(L,v){for(var w in L){for(var R=L[w],M=0;M<R.length;M++){var x=R[M];if(!v&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+w+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+w+'".');this._types[x]=w}!v&&this._extensions[w]||(this._extensions[w]=R[0])}}},{key:"getType",value:function(L){L=String(L);var v=L.replace(/^.*[\/\\]/,"").toLowerCase(),w=v.replace(/^.*\./,"").toLowerCase(),R=v.length<L.length;return(w.length<v.length-1||!R)&&this._types[w]||null}},{key:"getExtension",value:function(L){return(L=/^\s*([^;\s]*)/.test(L)&&RegExp.$1)&&this._extensions[L.toLowerCase()]||null}}]),h}();d.exports=A},{}],2:[function(f,d,T){var A=f("./Mime");d.exports=new A(f("./types/standard"),f("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(f,d,T){d.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,d,T){d.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 nt!="undefined"?nt: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(n,k,_){"use strict";_.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(b){return m}},_.escape=n("escape-html"),_.timestamp=function(m){if(m){var b=m;return typeof b=="string"&&(b=Number(b)),String(m).length===10&&(b*=1e3),new Date(b)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,k,_){(function(m,b){"use strict";function o(M){return M&&M.__esModule?M:{default:M}}function u(M,x){return M===void 0?x:M}function p(M,x){return function(G,N,X){if(G)return x(G);M({data:N,status:X.statusCode,headers:X.headers,res:X})}}var l,t=n("babel-runtime/core-js/json/stringify"),s=o(t),i=n("babel-runtime/helpers/typeof"),c=o(i),f=n("util"),d=n("url"),T=n("http"),A=n("https"),h=n("debug")("urllib"),O=n("humanize-ms"),L=0,v=Math.pow(2,31)-10,w=/^https?:\/\//i;_.TIMEOUTS=[O("300s"),O("300s")];var R=["json","text"];_.request=function(M,x,G){return arguments.length===2&&typeof x=="function"&&(G=x,x=null),typeof G=="function"?_.requestWithCallback(M,x,G):(l||(l=n("any-promise")),new l(function(N,X){_.requestWithCallback(M,x,p(N,X))}))},_.requestWithCallback=function(M,x,G){function N(){ke&&(clearTimeout(ke),ke=null)}function X(){I&&(clearTimeout(I),I=null)}function B(Me,lt,xt){if(X(),!G)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),re,m.pid,me.method,M),void(Me&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),re,m.pid,Me.name,Me.message,Me.stack));var yt=G;G=null;var Et={};if(xt&&(E=xt.statusCode,Et=xt.headers),E===401&&Et["www-authenticate"]&&(!x.headers||!x.headers.Authorization)&&x.digestAuth){var Dt=Et["www-authenticate"];if(Dt.indexOf("Digest ")>=0)return h("Request#%d %s: got digest auth header WWW-Authenticate: %s",re,M,Dt),x.headers=x.headers||{},x.headers.Authorization=digestAuthHeader(me.method,me.path,Dt,x.digestAuth),h("Request#%d %s: auth with digest header: %s",re,M,x.headers.Authorization),xt.headers["set-cookie"]&&(x.headers.Cookie=xt.headers["set-cookie"].join(";")),_.requestWithCallback(M,x,yt)}var Ct=Date.now()-j;Ue&&(Ue.contentDownload=Ct),h("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ct,g,E,me.method,me.host,me.path,C,Ue);var Yt={status:E,statusCode:E,headers:Et,size:g,aborted:K,rt:Ct,keepAliveSocket:C,data:lt,requestUrls:x.requestUrls,timing:Ue,remoteAddress:ie,remotePort:ze};if(Me){var zt="";oe&&typeof oe.getCurrentStatus=="function"&&(zt=", agent status: "+(0,s.default)(oe.getCurrentStatus())),Me.message+=", "+me.method+" "+M+" "+E+" (connected: "+r+", keepalive socket: "+C+zt+`)
|
|
|
headers: `+(0,s.default)(Et),Me.data=lt,Me.path=me.path,Me.status=E,Me.headers=Et,Me.res=Yt}yt(Me,lt,x.streaming?xt:Yt),x.emitter&&(z.url=M,z.socket=ct&&ct.connection,z.options=me,z.size=_e,x.emitter.emit("response",{requestId:re,error:Me,ctx:x.ctx,req:z,res:Yt}))}function $(Me){var lt=null;if(x.followRedirect&&statuses.redirect[Me.statusCode]){x._followRedirectCount=(x._followRedirectCount||0)+1;var xt=Me.headers.location;if(xt){if(!(x._followRedirectCount>x.maxRedirects)){var yt=x.formatRedirectUrl?x.formatRedirectUrl(M,xt):d.resolve(M,xt);h("Request#%d %s: `redirected` from %s to %s",re,me.path,M,yt),X(),x.headers&&x.headers.Host&&w.test(xt)&&(x.headers.Host=null);var Et=G;return G=null,_.requestWithCallback(yt,x,Et),{redirect:!0,error:null}}lt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+M),lt.name="MaxRedirectError"}else lt=new Error("Got statusCode "+Me.statusCode+" but cannot resolve next location from headers"),lt.name="FollowRedirectError"}return{redirect:!1,error:lt}}function Z(Me,lt,xt){return xt(null,lt,Me.headers["content-encoding"])}function ne(Me){if(Ue&&(Ue.waiting=Date.now()-j),h("Request#%d %s `req response` event emit: status %d, headers: %j",re,M,Me.statusCode,Me.headers),x.streaming){var lt=$(Me);return lt.redirect?void Me.resume():lt.error?(Me.resume(),B(lt.error,null,Me)):B(null,null,Me)}if(Me.on("close",function(){h("Request#%d %s: `res close` event emit, total size %d",re,M,g)}),Me.on("error",function(){h("Request#%d %s: `res error` event emit, total size %d",re,M,g)}),Me.on("aborted",function(){K=!0,h("Request#%d %s: `res aborted` event emit, total size %d",re,M,g)}),Ke){var lt=$(Me);return lt.redirect?void Me.resume():lt.error?(Me.resume(),Ke.end(),B(lt.error,null,Me)):(x.consumeWriteStream===!1?Me.on("end",B.bind(null,null,null,Me)):isNode010||isNode012?first([[Ke,"close"],[Me,"aborted"]],function(Et,Dt,Ct){h("Request#%d %s: writeStream or res %s event emitted",re,M,Ct),B(e||null,null,Me)}):Ke.on("close",function(){h("Request#%d %s: writeStream close event emitted",re,M),B(e||null,null,Me)}),Me.pipe(Ke))}var xt=[];Me.on("data",function(yt){h("Request#%d %s: `res data` event emit, size %d",re,M,yt.length),g+=yt.length,xt.push(yt)}),Me.on("end",function(){var yt=b.concat(xt,g);if(h("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",re,M,g,Me._dumped),e)return B(e,yt,Me);var Et=$(Me);if(Et.error)return B(Et.error,yt,Me);Et.redirect||Z(Me,yt,function(Dt,Ct,Yt){if(Dt)return B(Dt,yt,Me);if(!Yt&&R.indexOf(x.dataType)>=0){try{Ct=decodeBodyByCharset(Ct,Me)}catch(En){return h("decodeBodyByCharset error: %s",En),B(null,Ct,Me)}if(x.dataType==="json")if(g===0)Ct=null;else{var zt=parseJSON(Ct,ye);zt.error?Dt=zt.error:Ct=zt.data}}K&&h("Request#%d %s: Remote socket was terminated before `response.end()` was called",re,M),B(Dt,Ct,Me)})})}function se(){h("Response timer ticking, timeout: %d",at),I=setTimeout(function(){I=null;var Me="Response timeout for "+at+"ms";e=new Error(Me),e.name="ResponseTimeoutError",e.requestId=re,h("ResponseTimeout: Request#%d %s %s: %s, connected: %s",re,M,e.name,Me,r),W()},at)}function W(){h("Request#%d %s abort, connected: %s",re,M,r),ct.socket||(e.noSocket=!0,B(e)),ct.abort()}if(!M||typeof M!="string"&&(M===void 0?"undefined":(0,c.default)(M))!=="object"){var le=f.format("expect request url to be a string or a http request options, but got %j",M);throw new Error(le)}arguments.length===2&&typeof x=="function"&&(G=x,x=null),x=x||{},L>=v&&(L=0);var re=++L;x.requestUrls=x.requestUrls||[];var z={requestId:re,url:M,args:x,ctx:x.ctx};x.emitter&&x.emitter.emit("request",z),x.timeout=x.timeout||_.TIMEOUTS,x.maxRedirects=x.maxRedirects||10,x.streaming=x.streaming||x.customResponse;var U,j=Date.now();typeof M=="string"?(w.test(M)||(M="http://"+M),U=d.parse(M)):U=M;var q=(x.type||x.method||U.method||"GET").toUpperCase(),H=U.port||80,ee=T,oe=u(x.agent,_.agent),ye=x.fixJSONCtlChars;U.protocol==="https:"&&(ee=A,oe=u(x.httpsAgent,_.httpsAgent),U.port||(H=443));var me={host:U.hostname||U.host||"localhost",path:U.path||"/",method:q,port:H,agent:oe,headers:x.headers||{},lookup:x.lookup};Array.isArray(x.timeout)?me.requestTimeout=x.timeout[x.timeout.length-1]:x.timeout!==void 0&&(me.requestTimeout=x.timeout);for(var Le=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],Ce=0;Ce<Le.length;Ce++){var de=Le[Ce];x.hasOwnProperty(de)&&(me[de]=x[de])}me.rejectUnauthorized!==!1||me.hasOwnProperty("secureOptions")||(me.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var ce=x.auth||U.auth;ce&&(me.auth=ce);var ge=x.content||x.data,J=q==="GET"||q==="HEAD"||x.dataAsQueryString;if(!x.content&&ge&&typeof ge!="string"&&!b.isBuffer(ge))if(J)ge=x.nestedQuerystring?qs.stringify(ge):querystring.stringify(ge);else{var Y=me.headers["Content-Type"]||me.headers["content-type"];Y||(Y=x.contentType==="json"?"application/json":"application/x-www-form-urlencoded",me.headers["Content-Type"]=Y),ge=parseContentType(Y).type==="application/json"?(0,s.default)(ge):x.nestedQuerystring?qs.stringify(ge):querystring.stringify(ge)}J&&ge&&(me.path+=(U.query?"&":"?")+ge,ge=null);var _e=0;if(ge){var pe=ge.length;b.isBuffer(ge)||(pe=b.byteLength(ge)),_e=me.headers["Content-Length"]=pe}x.dataType==="json"&&(me.headers.Accept="application/json"),typeof x.beforeRequest=="function"&&x.beforeRequest(me);var ke=null,I=null,e=null,r=!1,C=!1,g=0,E=-1,K=!1,ie="",ze="",Ue=null;x.timing&&(Ue={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),me.headers["User-Agent"]||me.headers["user-agent"]||(me.headers["User-Agent"]=navigator.userAgent),x.gzip&&(me.headers["Accept-Encoding"]||me.headers["accept-encoding"]||(me.headers["Accept-Encoding"]="gzip"));var Ke=x.writeStream;h("Request#%d %s %s with headers %j, options.path: %s",re,q,M,me.headers,me.path),x.requestUrls.push(M);var et,at;Array.isArray(x.timeout)?(et=O(x.timeout[0]),at=O(x.timeout[1])):et=at=O(x.timeout),h("ConnectTimeout: %d, ResponseTimeout: %d",et,at);var ct;try{ct=ee.request(me,ne)}catch(Me){return B(Me)}return typeof window=="undefined"?function(){h("Connect timer ticking, timeout: %d",et),ke=setTimeout(function(){ke=null,E===-1&&(E=-2);var Me="Connect timeout for "+et+"ms",lt="ConnectionTimeoutError";ct.socket||(lt="SocketAssignTimeoutError",Me+=", working sockets is full"),e=new Error(Me),e.name=lt,e.requestId=re,h("ConnectTimeout: Request#%d %s %s: %s, connected: %s",re,M,e.name,Me,r),W()},et)}():ct.on("requestTimeout",function(){E===-1&&(E=-2);var Me="Connect timeout for "+et+"ms";e=new Error(Me),e.name="ConnectionTimeoutError",e.requestId=re,W()}),Ue&&ct.on("finish",function(){Ue.requestSent=Date.now()-j}),ct.once("socket",function(Me){Ue&&(Ue.queuing=Date.now()-j),isNode010&&Me.socket&&(Me=Me.socket);var lt=Me.readyState;if(lt==="opening")return Me.once("lookup",function(xt,yt,Et){h("Request#%d %s lookup: %s, %s, %s",re,M,xt,yt,Et),Ue&&(Ue.dnslookup=Date.now()-j),yt&&(ie=yt)}),void Me.once("connect",function(){Ue&&(Ue.connected=Date.now()-j),N(),se(),h("Request#%d %s new socket connected",re,M),r=!0,ie||(ie=Me.remoteAddress),ze=Me.remotePort});h("Request#%d %s reuse socket connected, readyState: %s",re,M,lt),r=!0,C=!0,ie||(ie=Me.remoteAddress),ze=Me.remotePort,N(),se()}),ct.on("error",function(Me){Me.name!=="Error"&&Me.name!=="TypeError"||(Me.name=r?"ResponseError":"RequestError"),Me.message+=' (req "error")',h("Request#%d %s `req error` event emit, %s: %s",re,M,Me.name,Me.message),B(e||Me)}),Ke&&Ke.once("error",function(Me){Me.message+=' (writeStream "error")',e=Me,h("Request#%d %s `writeStream error` event emit, %s: %s",re,M,Me.name,Me.message),W()}),x.stream?(x.stream.pipe(ct),x.stream.once("error",function(Me){Me.message+=' (stream "error")',e=Me,h("Request#%d %s `readStream error` event emit, %s: %s",re,M,Me.name,Me.message),W()})):ct.end(ge),ct.requestId=re,ct}}).call(this,n("_process"),n("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(Oe){function n(_){if(k[_])return k[_].exports;var m=k[_]={i:_,l:!1,exports:{}};return Oe[_].call(m.exports,m,m.exports,n),m.l=!0,m.exports}var k={};n.m=Oe,n.c=k,n.d=function(_,m,b){n.o(_,m)||Object.defineProperty(_,m,{configurable:!1,enumerable:!0,get:b})},n.n=function(_){var m=_&&_.__esModule?function(){return _.default}:function(){return _};return n.d(m,"a",m),m},n.o=function(_,m){return Object.prototype.hasOwnProperty.call(_,m)},n.p="",n(n.s=12)}([function(Oe,n,k){!function(_,m){Oe.exports=n=m()}(0,function(){var _=_||function(m,b){var o=Object.create||function(){function A(){}return function(h){var O;return A.prototype=h,O=new A,A.prototype=null,O}}(),u={},p=u.lib={},l=p.Base=function(){return{extend:function(h){var O=o(this);return h&&O.mixIn(h),O.hasOwnProperty("init")&&this.init!==O.init||(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var O in h)h.hasOwnProperty(O)&&(this[O]=h[O]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=p.WordArray=l.extend({init:function(h,O){h=this.words=h||[],this.sigBytes=O!=null?O:4*h.length},toString:function(h){return(h||i).stringify(this)},concat:function(h){var O=this.words,L=h.words,v=this.sigBytes,w=h.sigBytes;if(this.clamp(),v%4)for(var R=0;R<w;R++){var M=L[R>>>2]>>>24-R%4*8&255;O[v+R>>>2]|=M<<24-(v+R)%4*8}else for(var R=0;R<w;R+=4)O[v+R>>>2]=L[R>>>2];return this.sigBytes+=w,this},clamp:function(){var h=this.words,O=this.sigBytes;h[O>>>2]&=4294967295<<32-O%4*8,h.length=m.ceil(O/4)},clone:function(){var h=l.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var O,L=[],v=0;v<h;v+=4){var w=function(R){var R=R,M=987654321,x=4294967295;return function(){M=36969*(65535&M)+(M>>16)&x,R=18e3*(65535&R)+(R>>16)&x;var G=(M<<16)+R&x;return G/=4294967296,(G+=.5)*(m.random()>.5?1:-1)}}(4294967296*(O||m.random()));O=987654071*w(),L.push(4294967296*w()|0)}return new t.init(L,h)}}),s=u.enc={},i=s.Hex={stringify:function(h){for(var O=h.words,L=h.sigBytes,v=[],w=0;w<L;w++){var R=O[w>>>2]>>>24-w%4*8&255;v.push((R>>>4).toString(16)),v.push((15&R).toString(16))}return v.join("")},parse:function(h){for(var O=h.length,L=[],v=0;v<O;v+=2)L[v>>>3]|=parseInt(h.substr(v,2),16)<<24-v%8*4;return new t.init(L,O/2)}},c=s.Latin1={stringify:function(h){for(var O=h.words,L=h.sigBytes,v=[],w=0;w<L;w++){var R=O[w>>>2]>>>24-w%4*8&255;v.push(String.fromCharCode(R))}return v.join("")},parse:function(h){for(var O=h.length,L=[],v=0;v<O;v++)L[v>>>2]|=(255&h.charCodeAt(v))<<24-v%4*8;return new t.init(L,O)}},f=s.Utf8={stringify:function(h){try{return decodeURIComponent(escape(c.stringify(h)))}catch(O){throw new Error("Malformed UTF-8 data")}},parse:function(h){return c.parse(unescape(encodeURIComponent(h)))}},d=p.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new t.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 O=this._data,L=O.words,v=O.sigBytes,w=this.blockSize,R=4*w,M=v/R;M=h?m.ceil(M):m.max((0|M)-this._minBufferSize,0);var x=M*w,G=m.min(4*x,v);if(x){for(var N=0;N<x;N+=w)this._doProcessBlock(L,N);var X=L.splice(0,x);O.sigBytes-=G}return new t.init(X,G)},clone:function(){var h=l.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),T=(p.Hasher=d.extend({cfg:l.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){d.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(O,L){return new h.init(L).finalize(O)}},_createHmacHelper:function(h){return function(O,L){return new T.HMAC.init(h,L).finalize(O)}}}),u.algo={});return u}(Math);return _})},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"detectIEVersion",value:function(){for(var p=4,l=document.createElement("div"),t=l.getElementsByTagName("i");l.innerHTML="<!--[if gt IE "+p+"]><i></i><![endif]-->",t[0];)p++;return p>4&&p}},{key:"extend",value:function(p,l){for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&l[t]&&(p[t]=l[t])}},{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 l(t){return t<10?"0"+t:t}return p.getUTCFullYear()+"-"+l(p.getUTCMonth()+1)+"-"+l(p.getUTCDate())+"T"+l(p.getUTCHours())+":"+l(p.getUTCMinutes())+":"+l(p.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(p){return!!/^\d+$/.test(p)}}]),o}();n.default=b},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return function(m){function b(T,A,h,O,L,v,w){var R=T+(A&h|~A&O)+L+w;return(R<<v|R>>>32-v)+A}function o(T,A,h,O,L,v,w){var R=T+(A&O|h&~O)+L+w;return(R<<v|R>>>32-v)+A}function u(T,A,h,O,L,v,w){var R=T+(A^h^O)+L+w;return(R<<v|R>>>32-v)+A}function p(T,A,h,O,L,v,w){var R=T+(h^(A|~O))+L+w;return(R<<v|R>>>32-v)+A}var l=_,t=l.lib,s=t.WordArray,i=t.Hasher,c=l.algo,f=[];!function(){for(var T=0;T<64;T++)f[T]=4294967296*m.abs(m.sin(T+1))|0}();var d=c.MD5=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(A,h){for(var O=0;O<16;O++){var L=h+O,v=A[L];A[L]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var w=this._hash.words,R=A[h+0],M=A[h+1],x=A[h+2],G=A[h+3],N=A[h+4],X=A[h+5],B=A[h+6],$=A[h+7],Z=A[h+8],ne=A[h+9],se=A[h+10],W=A[h+11],le=A[h+12],re=A[h+13],z=A[h+14],U=A[h+15],j=w[0],q=w[1],H=w[2],ee=w[3];j=b(j,q,H,ee,R,7,f[0]),ee=b(ee,j,q,H,M,12,f[1]),H=b(H,ee,j,q,x,17,f[2]),q=b(q,H,ee,j,G,22,f[3]),j=b(j,q,H,ee,N,7,f[4]),ee=b(ee,j,q,H,X,12,f[5]),H=b(H,ee,j,q,B,17,f[6]),q=b(q,H,ee,j,$,22,f[7]),j=b(j,q,H,ee,Z,7,f[8]),ee=b(ee,j,q,H,ne,12,f[9]),H=b(H,ee,j,q,se,17,f[10]),q=b(q,H,ee,j,W,22,f[11]),j=b(j,q,H,ee,le,7,f[12]),ee=b(ee,j,q,H,re,12,f[13]),H=b(H,ee,j,q,z,17,f[14]),q=b(q,H,ee,j,U,22,f[15]),j=o(j,q,H,ee,M,5,f[16]),ee=o(ee,j,q,H,B,9,f[17]),H=o(H,ee,j,q,W,14,f[18]),q=o(q,H,ee,j,R,20,f[19]),j=o(j,q,H,ee,X,5,f[20]),ee=o(ee,j,q,H,se,9,f[21]),H=o(H,ee,j,q,U,14,f[22]),q=o(q,H,ee,j,N,20,f[23]),j=o(j,q,H,ee,ne,5,f[24]),ee=o(ee,j,q,H,z,9,f[25]),H=o(H,ee,j,q,G,14,f[26]),q=o(q,H,ee,j,Z,20,f[27]),j=o(j,q,H,ee,re,5,f[28]),ee=o(ee,j,q,H,x,9,f[29]),H=o(H,ee,j,q,$,14,f[30]),q=o(q,H,ee,j,le,20,f[31]),j=u(j,q,H,ee,X,4,f[32]),ee=u(ee,j,q,H,Z,11,f[33]),H=u(H,ee,j,q,W,16,f[34]),q=u(q,H,ee,j,z,23,f[35]),j=u(j,q,H,ee,M,4,f[36]),ee=u(ee,j,q,H,N,11,f[37]),H=u(H,ee,j,q,$,16,f[38]),q=u(q,H,ee,j,se,23,f[39]),j=u(j,q,H,ee,re,4,f[40]),ee=u(ee,j,q,H,R,11,f[41]),H=u(H,ee,j,q,G,16,f[42]),q=u(q,H,ee,j,B,23,f[43]),j=u(j,q,H,ee,ne,4,f[44]),ee=u(ee,j,q,H,le,11,f[45]),H=u(H,ee,j,q,U,16,f[46]),q=u(q,H,ee,j,x,23,f[47]),j=p(j,q,H,ee,R,6,f[48]),ee=p(ee,j,q,H,$,10,f[49]),H=p(H,ee,j,q,z,15,f[50]),q=p(q,H,ee,j,X,21,f[51]),j=p(j,q,H,ee,le,6,f[52]),ee=p(ee,j,q,H,G,10,f[53]),H=p(H,ee,j,q,se,15,f[54]),q=p(q,H,ee,j,M,21,f[55]),j=p(j,q,H,ee,Z,6,f[56]),ee=p(ee,j,q,H,U,10,f[57]),H=p(H,ee,j,q,B,15,f[58]),q=p(q,H,ee,j,re,21,f[59]),j=p(j,q,H,ee,N,6,f[60]),ee=p(ee,j,q,H,W,10,f[61]),H=p(H,ee,j,q,x,15,f[62]),q=p(q,H,ee,j,ne,21,f[63]),w[0]=w[0]+j|0,w[1]=w[1]+q|0,w[2]=w[2]+H|0,w[3]=w[3]+ee|0},_doFinalize:function(){var A=this._data,h=A.words,O=8*this._nDataBytes,L=8*A.sigBytes;h[L>>>5]|=128<<24-L%32;var v=m.floor(O/4294967296),w=O;h[15+(L+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),h[14+(L+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),A.sigBytes=4*(h.length+1),this._process();for(var R=this._hash,M=R.words,x=0;x<4;x++){var G=M[x];M[x]=16711935&(G<<8|G>>>24)|4278255360&(G<<24|G>>>8)}return R},clone:function(){var A=i.clone.call(this);return A._hash=this._hash.clone(),A}});l.MD5=i._createHelper(d),l.HmacMD5=i._createHmacHelper(d)}(Math),_.MD5})},function(Oe,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},n.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},n.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(Oe,n,k){"use strict";function _(d){return d&&d.__esModule?d:{default:d}}function m(d,T){if(!(d instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function d(T,A){for(var h=0;h<A.length;h++){var O=A[h];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(T,O.key,O)}}return function(T,A,h){return A&&d(T.prototype,A),h&&d(T,h),T}}(),o=k(5),u=_(o),p=k(25),l=_(p),t=k(6),s=_(t),i=k(7),c=_(i),f=function(){function d(T){m(this,d);var A=c.default.os.name,h=c.default.os.version||"",O=c.default.browser.name,L=c.default.browser.version||"",v=window.location.href,w="";v&&(w=c.default.getHost(v));var R="pc";c.default.os.ipad?R="pad":(c.default.os.iphone||c.default.os.android)&&(R="phone"),this._ri=u.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:s.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:d.getUuid(),os:A,ov:h,et:O,ev:L,uat:navigator.userAgent,app_n:w,tt:R,dm:"h5",ut:""}}return b(d,[{key:"log",value:function(A,h){h&&h.ri?(this._ri=h.ri,delete h.ri):this._ri=u.default.create(),h&&h.ut&&(this.initParam.ut=h.ut,delete h.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=A=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=A;var O=[];if(h)for(var L in h)O.push(L+"="+h[L]);var v=O.join("&");this.initParam.args=encodeURIComponent(v==""?"0":v);var w=[];for(var L in this.initParam)w.push(L+"="+this.initParam[L]);var R=w.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(R):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+R}}],[{key:"getUuid",value:function(){var A=l.default.get("p_h5_upload_u");return A||(A=u.default.create(),l.default.set("p_h5_upload_u",A,730)),A}},{key:"getClientId",value:function(){return l.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(A){return A||(A=u.default.create()),l.default.set("p_h5_upload_clientId",A,730),A}}]),d}();n.default=f},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"create",value:function(p,l){var t,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(l=l||s.length,p)for(t=0;t<p;t++)i[t]=s[0|Math.random()*l];else{var c;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",t=0;t<36;t++)i[t]||(c=0|16*Math.random(),i[t]=s[t==19?3&c|8:c])}return i.join("")}}]),o}();n.default=b},function(Oe,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var _={version:"1.5.0"};n.default=_},function(Oe,n,k){"use strict";function _(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function t(s,i){for(var c=0;c<i.length;c++){var f=i[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,i,c){return i&&t(s.prototype,i),c&&t(s,c),s}}(),b=function(s){var i=navigator.userAgent,c="other";if(s.ios)return"iOS";if(s.android)return"android";if(i.indexOf("Baiduspider")>-1)return"Baiduspider";if(i.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||i.indexOf("Windows")>-1,d=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return d&&(c="macOS"),navigator.platform=="X11"&&!f&&!d&&(c="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(c="Linux"),f?"windows":c},o=function(){var s=navigator.userAgent,i="";return(s.indexOf("Windows NT 5.0")>-1||s.indexOf("Windows 2000")>-1)&&(i="2000"),(s.indexOf("Windows NT 5.1")>-1||s.indexOf("Windows XP")>-1)&&(i="XP"),(s.indexOf("Windows NT 5.2")>-1||s.indexOf("Windows 2003")>-1)&&(i="2003"),(s.indexOf("Windows NT 6.0")>-1||s.indexOf("Windows Vista")>-1)&&(i="Vista"),(s.indexOf("Windows NT 6.1")>-1||s.indexOf("Windows 7")>-1)&&(i="7"),(s.indexOf("Windows NT 6.2")>-1||s.indexOf("Windows 8")>-1)&&(i="8"),(s.indexOf("Windows NT 6.3")>-1||s.indexOf("Windows 8.1")>-1)&&(i="8.1"),(s.indexOf("Windows NT 10")>-1||s.indexOf("Windows 10")>-1)&&(i="10"),i},u=function(s){var i=navigator.userAgent.toLowerCase();return s.chrome?"Chrome":s.firefox?"Firefox":s.safari?"Safari":s.webview?"webview":s.ie?/edge/.test(i)?"Edge":"IE":/baiduspider/.test(i)?"Baiduspider":/ucweb/.test(i)||/UCBrowser/.test(i)?"UC":/opera/.test(i)?"Opera":/ucweb/.test(i)?"UC":/360se/.test(i)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(i)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(i)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(i)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(i)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(i)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(i)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var t={},s={},i=navigator.userAgent,c=navigator.platform,f=i.match(/Web[kK]it[\/]{0,1}([\d.]+)/),d=i.match(/(Android);?[\s\/]+([\d.]+)?/),T=!!i.match(/\(Macintosh\; Intel /),A=i.match(/(iPad).*OS\s([\d_]+)/),h=i.match(/(iPod)(.*OS\s([\d_]+))?/),O=!A&&i.match(/(iPhone\sOS)\s([\d_]+)/),L=i.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),v=/Win\d{2}|Windows/.test(c),w=i.match(/Windows Phone ([\d.]+)/),R=L&&i.match(/TouchPad/),M=i.match(/Kindle\/([\d.]+)/),x=i.match(/Silk\/([\d._]+)/),G=i.match(/(BlackBerry).*Version\/([\d.]+)/),N=i.match(/(BB10).*Version\/([\d.]+)/),X=i.match(/(RIM\sTablet\sOS)\s([\d.]+)/),B=i.match(/PlayBook/),$=i.match(/Chrome\/([\d.]+)/)||i.match(/CriOS\/([\d.]+)/),Z=i.match(/Firefox\/([\d.]+)/),ne=i.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),se=i.match(/MSIE\s([\d.]+)/)||i.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),W=!$&&i.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),le=W||i.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((s.webkit=!!f)&&(s.version=f[1]),d&&(t.android=!0,t.version=d[2]),O&&!h&&(t.ios=t.iphone=!0,t.version=O[2].replace(/_/g,".")),A&&(t.ios=t.ipad=!0,t.version=A[2].replace(/_/g,".")),h&&(t.ios=t.ipod=!0,t.version=h[3]?h[3].replace(/_/g,"."):null),w&&(t.wp=!0,t.version=w[1]),L&&(t.webos=!0,t.version=L[2]),R&&(t.touchpad=!0),G&&(t.blackberry=!0,t.version=G[2]),N&&(t.bb10=!0,t.version=N[2]),X&&(t.rimtabletos=!0,t.version=X[2]),B&&(s.playbook=!0),M&&(t.kindle=!0,t.version=M[1]),x&&(s.silk=!0,s.version=x[1]),!x&&t.android&&i.match(/Kindle Fire/)&&(s.silk=!0),$&&(s.chrome=!0,s.version=$[1]),Z&&(s.firefox=!0,s.version=Z[1]),ne&&(t.firefoxos=!0,t.version=ne[1]),se&&(s.ie=!0,s.version=se[1]),le&&(T||t.ios||v||d)&&(s.safari=!0,t.ios||(s.version=le[1])),W&&(s.webview=!0),T){var re=i.match(/[\d]*_[\d]*_[\d]*/);re&&re.length>0&&re[0]&&(t.version=re[0].replace(/_/g,"."))}return t.tablet=!!(A||B||d&&!i.match(/Mobile/)||Z&&i.match(/Tablet/)||se&&!i.match(/Phone/)&&i.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(d||O||L||G||N||$&&i.match(/Android/)||$&&i.match(/CriOS\/([\d.]+)/)||Z&&i.match(/Mobile/)||se&&i.match(/Touch/))),t.pc=!t.tablet&&!t.phone,T?t.name="macOS":v?(t.name="windows",t.version=o()):t.name=b(t),s.name=u(s),{os:t,browser:s}}(),l=function(){function t(){_(this,t)}return m(t,null,[{key:"getHost",value:function(i){var c="";if(i===void 0||i==null||i=="")return"";var f=i.indexOf("//"),d=i;f>-1&&(d=i.substring(f+2));var c=d,T=d.split("/");return T&&T.length>0&&(c=T[0]),T=c.split(":"),T&&T.length>0&&(c=T[0]),c}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var i=p.browser;return i.name||(i.name=u()),i}}]),t}();n.default=l},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"get",value:function(p,l,t,s,i){var c;t=t||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.")}),c=new XMLHttpRequest,c.onreadystatechange=function(){c.readyState===4&&(c.status===200?l(c.responseText):t(c.responseText))};try{s===void 0&&(s=!0),c.open("GET",p,s),i&&(c.withCredentials=!0)}catch(f){return void t(f)}try{c.send()}catch(f){t(f)}}}]),o}();n.default=b},function(Oe,n,k){"use strict";function _(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function p(l,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,t,s){return t&&p(l.prototype,t),s&&p(l,s),l}}(),b=k(27),o=k(30),u=(k(10),function(){function p(){_(this,p)}return m(p,null,[{key:"randomUUID",value:function(){for(var t=[],s="0123456789abcdef",i=0;i<36;i++)t[i]=s.substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]=s.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}},{key:"aliyunEncodeURI",value:function(t){var s=encodeURIComponent(t);return s=s.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(t,s,i){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");var c=[];for(var f in t)c.push(f);for(var d=c.sort(),T="",A=d.length,f=0;f<A;f++){var h=p.aliyunEncodeURI(d[f]),O=p.aliyunEncodeURI(t[d[f]]);T==""?T=h+s+O:T+=i+h+s+O}return T}},{key:"makeChangeSiga",value:function(t,s){if(!t)throw new Error("PrismPlayer Error: vid should not be null!");return o.stringify(b("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(t,"=","&")),s+"&"))}}]),p}());n.default=u},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return _.enc.Utf8})},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return _.enc.Hex})},function(Oe,n,k){Oe.exports=k(13)},function(Oe,n,k){"use strict";var _,m,b=(typeof Symbol=="function"&&Symbol.iterator,k(14)),o=function(p){return p&&p.__esModule?p:{default:p}}(b),u={Vod:o.default};_=[],(m=function(){return u}.apply(n,_))!==void 0&&(Oe.exports=m),window.AliyunUpload=u,ut.exports=AliyunUpload},function(Oe,n,k){"use strict";function _(N){return N&&N.__esModule?N:{default:N}}function m(N,X){if(!(N instanceof X))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function N(X,B){for(var $=0;$<B.length;$++){var Z=B[$];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(X,Z.key,Z)}}return function(X,B,$){return B&&N(X.prototype,B),$&&N(X,$),X}}(),o=k(15),u=k(3),p=k(16),l=_(p),t=k(18),s=_(t),i=k(24),c=_(i),f=k(4),d=_(f),T=k(1),A=_(T),h=k(5),O=_(h),L=k(26),v=_(L),w=k(31),R=_(w),M=k(32),x=_(M),G=(k(2),function(){function N(X){m(this,N),this.options=X,this.options.partSize=this.options.partSize||u.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||u.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 d.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 b(N,[{key:"init",value:function(B,$,Z,ne){return this._retryCount=0,!(Z&&!ne||!Z&&ne)&&!(B&&!$||!B&&$)&&(this._ossCreditor.accessKeyId=B,this._ossCreditor.accessKeySecret=$,this._ossCreditor.securityToken=Z,this._ossCreditor.expireTime=ne,!0)}},{key:"addFile",value:function(B,$,Z,ne,se,W){if(!B)return!1;if(B.size==0)try{this.options.onUploadFailed({file:B},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(U){console.log(U)}for(var le=(this.options,0);le<this._uploadList.length;le++)if(this._uploadList[le].file==B)return!1;var re=new Object;if(re.file=B,re._endpoint=$,re._bucket=Z,re._object=ne,re.state=o.UPLOADSTATE.INIT,re.isImage=A.default.isImage(B.name),!re.isImage&&this.options.enableUploadProgress){var z=this;x.default.getMd5(B,function(U){re.fileHash=U;var j=z._getCheckoutpoint(re);z.options.localCheckpoint||j||z._getCheckoutpointFromCloud(re,function(q){if(q.UploadPoint){var H=JSON.parse(q.UploadPoint);H.loaded!=1&&(re.checkpoint=H.checkpoint,re.loaded=H.loaded,re.videoId=q.VideoId,z._saveCheckoutpoint(re,H.checkpoint))}},function(q){try{if((q=JSON.parse(q))&&q.Code=="InvalidParameter"&&q.Message.indexOf("UserId")>0){z._invalidUserId=!0;var H=q.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(H)}}catch(ee){console.log(ee)}})})}se&&(re.videoInfo=se?JSON.parse(se).Vod:{},re.userData=s.default.encode(se)),re.ri=O.default.create(),this._uploadList.push(re),this._reportLog("20001",re,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(re)}catch(U){console.log(U)}return!0}},{key:"deleteFile",value:function(B){return!!this.cancelFile(B)&&(this._uploadList.splice(B,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(B){if(this.options,B<0||B>=this._uploadList.length)return!1;var $=this._uploadList[B];if(B==this._curIndex&&$.state==o.UPLOADSTATE.UPLOADING){$.state=o.UPLOADSTATE.CANCELED;var Z=this._getCheckoutpoint($);Z&&Z.checkpoint&&(Z=Z.checkpoint),Z&&this._ossUpload.abort($),this._removeCheckoutpoint($),this.nextUpload()}else $.state!=o.UPLOADSTATE.SUCCESS&&($.state=o.UPLOADSTATE.CANCELED);return this._reportLog("20008",$),!0}},{key:"resumeFile",value:function(B){if(this.options,B<0||B>=this._uploadList.length)return!1;var $=this._uploadList[B];return $.state==o.UPLOADSTATE.CANCELED&&($.state=o.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(B){return this._getCheckoutpoint({file:B})}},{key:"startUpload",value:function(B){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 $=this._uploadList[this._curIndex];this._ossUpload=null,this._upload($),this._state=o.VODSTATE.START}},{key:"nextUpload",value:function(){var B=this.options;if(this._state==o.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var $=this._uploadList[this._curIndex];this._ossUpload=null,this._upload($)}else{this._state=o.VODSTATE.END;try{B.onUploadEnd&&B.onUploadEnd($)}catch(Z){console.log(Z)}}}},{key:"clear",value:function(B){for(var $=this.options,Z=0,ne=0;ne<this._uploadList.length;ne++)$.uploadList[ne].state==o.UPLOADSTATE.SUCCESS&&Z++,this._uploadList[ne].state==B&&($.uploadList.splice(ne,1),ne--);$.onClear&&$.onClear($.uploadList.length,Z)}},{key:"stopUpload",value:function(){if((this._state==o.VODSTATE.START||this._state==o.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var B=this._uploadList[this._curIndex];this._state=o.VODSTATE.STOP,B.state=o.UPLOADSTATE.STOPED,this._changeState(B,o.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(B){var $=this;if(!B)return!1;var Z=JSON.parse(s.default.decode(B));return!!(Z.AccessKeyId&&Z.AccessKeySecret&&Z.SecurityToken&&Z.Expiration)&&$.resumeUploadWithToken(Z.AccessKeyId,Z.AccessKeySecret,Z.SecurityToken,Z.Expiration)}},{key:"resumeUploadWithToken",value:function(B,$,Z,ne){if(this.options,!(B&&$&&Z&&ne))return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var se="";return this._uploadList.length>this._curIndex&&(se=this._uploadList[this._curIndex]),se&&(this.init(B,$,Z,ne),this._state=o.VODSTATE.START,this._ossUpload=null,this._uploadCore(se,se.retry),se.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(B,$,Z){if(this._curIndex==-1)return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var ne=this._uploadList[this._curIndex];ne.object?this._refreshSTSTokenUpload(ne,B,$,Z):this.setSTSToken(ne,B,$,Z)}}},{key:"setSTSTokenDirectlyUpload",value:function(B,$,Z,ne,se){if(!($&&Z&&ne&&se))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var W=B;this.init($,Z,ne,se),W.endpoint=W._endpoint,W.bucket=W._bucket,W.object=W._object,this._ossUpload=null,this._uploadCore(W,B.retry),B.retry=!1}},{key:"setSTSToken",value:function(B,$,Z,ne){if(!$||!Z||!ne)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var se=B.videoInfo,W={accessKeyId:$,securityToken:ne,accessKeySecret:Z,fileName:B.file.name,title:se.Title,requestId:B.ri,region:this.options.region};se.ImageType&&(W.imageType=se.ImageType),se.ImageExt&&(W.imageExt=se.ImageExt),se.FileSize&&(W.fileSize=se.FileSize),se.Description&&(W.description=se.Description),se.CateId&&(W.cateId=se.CateId),se.Tags&&(W.tags=se.Tags),se.TemplateGroupId&&(W.templateGroupId=se.TemplateGroupId),se.StorageLocation&&(W.storageLocation=se.StorageLocation),se.CoverURL&&(W.coverUrl=se.CoverURL),se.TransCodeMode&&(W.transCodeMode=se.TransCodeMode),se.UserData&&(W.userData=se.UserData);var le=this,re="getUploadAuth";B.videoId?(W.videoId=B.videoId,re="refreshUploadAuth"):B.isImage&&(re="getImageUploadAuth"),v.default[re](W,function(z){B.videoId=z.VideoId?z.VideoId:B.videoId,le.setUploadAuthAndAddress(B,z.UploadAuth,z.UploadAddress),le._state=o.VODSTATE.START},function(z){le._error(B,{name:z.Code,code:z.Code,message:z.Message,requestId:z.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(B,$,Z,ne){if(!B||!$||!Z)return!1;var se=JSON.parse(s.default.decode($));if(!(se.AccessKeyId&&se.AccessKeySecret&&se.SecurityToken&&se.Expiration))return console.error("uploadauth is invalid"),!1;var W={},le=B;if(Z){if(W=JSON.parse(s.default.decode(Z)),!W.Endpoint||!W.Bucket||!W.FileName)return console.error("uploadAddress is invalid"),!1}else W.Endpoint=le.endpoint,W.Bucket=le.bucket,W.FileName=le.object;this._ut="vod",this._uploadWay="vod",this.options.region=se.Region||this.options.region,this.init(se.AccessKeyId,se.AccessKeySecret,se.SecurityToken,se.Expiration),le.endpoint=le._endpoint?le._endpoint:W.Endpoint,le.bucket=le._bucket?le._bucket:W.Bucket,le.object=le._object?le._object:W.FileName,le.region=this.options.region,ne&&(le.videoId=ne),this._ossUpload=null,this._uploadCore(le,B.retry),B.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(B,$,Z,ne){if(!$||!Z||!ne)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var se={accessKeyId:$,securityToken:ne,accessKeySecret:Z,videoId:B.object,requestId:B.ri,region:this.options.region},W=this,le="refreshUploadAuth";B.isImage&&(le="getImageUploadAuth"),v.default[le](se,function(re){W.setUploadAuthAndAddress(B,re.UploadAuth,UploadAddress),W._state=o.VODSTATE.START},function(re){W._error(B,{name:re.Code,code:re.Code,message:re.Message,requestId:re.RequestId})})}},{key:"_upload",value:function(B){var $=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Z=this.options;if(B.retry=$,Z.onUploadstarted&&!$)try{var ne=this._getCheckoutpoint(B);ne&&ne.state!=o.UPLOADSTATE.UPLOADING&&(B.checkpoint=ne,B.videoId=ne.videoId),Z.onUploadstarted(B)}catch(se){console.log(se)}}},{key:"_uploadCore",value:function(B){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(B.state=o.UPLOADSTATE.UPLOADING,!this._ossUpload){B.endpoint=B.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var $=this;this._ossUpload=new l.default({bucket:B.bucket,endpoint:B.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(U,j){$._error.call($,U,j)},oncomplete:function(U,j){$._complete.call($,U,j)},onprogress:function(U,j,q){$._progress.call($,U,j,q)}})}var Z=A.default.getFileType(B.file.name),ne=this._getCheckoutpoint(B),se="",W="";ne&&ne.checkpoint&&(W=ne.state,se=ne.videoId,ne=ne.checkpoint),ne&&se==B.videoId&&W!=o.UPLOADSTATE.UPLOADING&&(ne.file=B.file,B.checkpoint=ne,ne.uploadId);var le=this._adjustPartSize(B);this._reportLog("20002",B,{ft:Z,fs:B.file.size,bu:B.bucket,ok:B.object,vid:B.videoId||"",fn:B.file.name,fw:null,fh:null,ps:le});var re={headers:{"x-oss-notification":B.userData?B.userData:""},partSize:le,parallel:this.options.parallel};this._ossUpload.upload(B,re)}},{key:"_findUploadIndex",value:function(){for(var B=-1,$=0;$<this._uploadList.length;$++)if(this._uploadList[$].state==o.UPLOADSTATE.INIT){B=$;break}return B}},{key:"_error",value:function(B,$){if($.name=="cancel")try{this.options.onUploadCanceled(B,$)}catch(ne){console.log(ne)}else{if($.message.indexOf("InvalidAccessKeyIdError")>0||$.name=="SignatureDoesNotMatchError"||$.code=="SecurityTokenExpired"||$.code=="InvalidSecurityToken.Expired"||$.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=o.VODSTATE.EXPIRE,B.state=o.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(B,$)}catch(ne){console.log(ne)}}return}if(($.name=="RequestTimeoutError"||$.name=="ConnectionTimeout"||$.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var Z=this;return setTimeout(function(){Z._uploadCore(B,!0)},1e3*Z._retryDuration),void this._retryCount++}$.name=="NoSuchUploadError"&&this._removeCheckoutpoint(B),this._handleError(B,$)}}},{key:"_handleError",value:function(B,$){var Z=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],ne=o.UPLOADSTATE.FAIlURE;if(B.state!=o.UPLOADSTATE.CANCELED&&(B.state=o.UPLOADSTATE.FAIlURE,this._state=o.VODSTATE.FAILURE,this.options.onUploadFailed&&$&&$.code&&$.message))try{this.options.onUploadFailed(B,$.code,$.message)}catch(W){console.log(W)}if(Z&&this._changeState(B,ne),this._reportLog("20006",B,{code:$.name,message:$.message,requestId:$.requestId,fs:B.file.size,bu:B.bucket,ok:B.object,fn:B.file.name}),this._reportLog("20004",B,{requestId:$.requestId,fs:B.file.size,bu:B.bucket,ok:B.object,fn:B.file.name}),B.ri=O.default.create(),this._findUploadIndex()!=-1){var se=this;this._state=o.VODSTATE.START,setTimeout(function(){se.nextUpload()},100)}}},{key:"_complete",value:function(B,$){if(B.state=o.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(B)}catch(se){console.log(se)}var Z=0;$&&$.res&&$.res.headers&&(Z=$.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(B);var ne=this;setTimeout(function(){ne.nextUpload()},100),this._retryCount=0,this._reportLog("20003",B,{requestId:Z})}},{key:"_progress",value:function(B,$,Z){if(this.options.onUploadProgress)try{B.loaded=$.loaded,this.options.onUploadProgress(B,$.total,$.loaded)}catch(U){console.log(U)}var ne=$.checkpoint,se=0;ne&&(B.checkpoint=ne,this._saveCheckoutpoint(B,ne,o.UPLOADSTATE.UPLOADING),se=ne.uploadId),this._retryCount=0;var W=this._getPortNumber(ne),le=0;if(Z&&Z.headers&&(le=Z.headers["x-oss-request-id"]),$.loaded!=0&&this._reportLog("20007",B,{pn:W,requestId:le}),$.loaded!=1&&this._reportLog("20005",B,{UploadId:se,pn:W+1,pr:B.retry?1:0,fs:B.file.size,bu:B.bucket,ok:B.object,fn:B.file.name}),!this._invalidUserId&&!B.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var re={file:B.file,checkpoint:$,userId:this.options.userId,videoId:B.videoId,region:this.options.region,fileHash:B.fileHash};try{var z=this;R.default.upload(re,function(){},function(U){if((U=JSON.parse(U))&&U.Code=="InvalidParameter"&&U.Message.indexOf("UserId")>0){z._invalidUserId=!0;var j=U.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(j)}})}catch(U){console.log(U)}}}},{key:"_getPortNumber",value:function(B){if(B){var $=B.doneParts;if($&&$.length>0)return $[$.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(B){var $=this._getCheckoutpointKey(B);c.default.remove($)}},{key:"_getCheckoutpoint",value:function(B){var $=this._getCheckoutpointKey(B),Z=c.default.get($);if(Z)try{return JSON.parse(Z)}catch(ne){}return""}},{key:"_saveCheckoutpoint",value:function(B,$,Z){if($){var ne=this._getCheckoutpointKey(B),se=B.file,W={fileName:se.name,lastModified:se.lastModified,size:se.size,object:B.object,videoId:B.videoId,bucket:B.bucket,endpoint:B.endpoint,checkpoint:$,loaded:B.loaded,state:Z};c.default.set(ne,JSON.stringify(W))}}},{key:"_changeState",value:function(B,$){var Z=this._getCheckoutpoint(B);Z&&((this._onbeforeunload=!0)&&($=o.UPLOADSTATE.STOPED),this._saveCheckoutpoint(B,Z.checkpoint,$))}},{key:"_getCheckoutpointKey",value:function(B){return"upload_"+B.file.lastModified+"_"+B.file.name+"_"+B.file.size}},{key:"_getCheckoutpointFromCloud",value:function(B,$,Z){var ne={userId:this.options.userId,uploadInfoList:[{FileName:B.file.name,FileSize:B.file.size,FileCreateTime:B.file.lastModified,FileHash:B.fileHash}],region:this.options.region};R.default.get(ne,function(se){$(se)},Z)}},{key:"_reportLog",value:function(B,$,Z){Z||(Z={}),Z.ri=$.ri,this._ut&&(Z.ut=this._ut),this._log.log(B,Z)}},{key:"_initEvent",value:function(){var B=this;window&&(window.onbeforeunload=function($){if(B._onbeforeunload=!0,B._curIndex!=-1&&B._uploadList.length>B._curIndex){var Z=B._uploadList[B._curIndex];B._changeState(Z,o.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var B=0;B<this._uploadList.length;B++){var $=this._uploadList[B];$.state!=o.UPLOADSTATE.FAIlURE&&$.state!=o.UPLOADSTATE.STOPED||($.state=o.UPLOADSTATE.INIT)}this._state=o.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(B){return B.file.size/this.options.partSize>1e4?B.file.size/9999:this.options.partSize}}]),N}());n.default=G},function(Oe,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},n.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(Oe,n,k){"use strict";function _(t){return t&&t.__esModule?t:{default:t}}function m(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function t(s,i){for(var c=0;c<i.length;c++){var f=i[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,i,c){return i&&t(s.prototype,i),c&&t(s,c),s}}(),o=k(3),u=k(17),p=(_(u),k(1)),l=(_(p),function(){function t(s,i){if(m(this,t),s){this._config=s,this.create(this._config),this._uploadInfo=null,this._callback={};var c=function(){};this._callback.onerror=i.onerror||c,this._callback.oncomplete=i.oncomplete||c,this._callback.onprogress=i.onprogress||c}}return b(t,[{key:"create",value:function(i){if(i.endpoint=i.endpoint||this._config.endpoint,i.bucket=i.bucket||this._config.bucket,!(i.AccessKeyId&&i.AccessKeySecret&&i.endpoint&&i.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var c={accessKeyId:i.AccessKeyId,accessKeySecret:i.AccessKeySecret,stsToken:i.SecurityToken,endpoint:i.endpoint||this._config.endpoint,bucket:i.bucket||this._config.bucket,secure:!0,cname:i.cname};i.timeout&&(c.timeout=i.timeout),this.oss=new OSS.Wrapper(c)}},{key:"abort",value:function(i){if(i.checkpoint){var c=i.checkpoint.uploadId;this.oss.abortMultipartUpload(i.object,c)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(i,c){this._uploadInfo=i;var f=this,d=function(h,O,L){return function(v){f._progress(h,O,L),v()}},T={parallel:c.parallel||this._config.parallel||o.UPLOADDEFAULT.PARALLEL,partSize:c.partSize||this._config.partSize||o.UPLOADDEFAULT.PARTSIZE,progress:d};c.headers&&(T.headers=c.headers),i.checkpoint&&(T.checkpoint=i.checkpoint),i.bucket||(this.oss.options.bucket=i.bucket),i.endpoint||(this.oss.options.endpoint=i.endpoint),this.oss.multipartUpload(i.object,i.file,T).then(function(A,h){f._complete(A)}).catch(function(A){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(A)})}},{key:"header",value:function(i,c,f){this.oss.get(i.object).then(function(d){c(d)}).catch(function(d){f(d)})}},{key:"_progress",value:function(i,c,f){this._callback.onprogress(this._uploadInfo,{loaded:i,total:this._uploadInfo.file.size,checkpoint:c},f)}},{key:"_error",value:function(i){this._callback.onerror(this._uploadInfo,i)}},{key:"_complete",value:function(i){this._callback.oncomplete(this._uploadInfo,i)}}]),t}());n.default=l},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"format",value:function(p){if(arguments.length<2)return null;for(var l=arguments[1],t=1;t<arguments.length;t++){var s=new RegExp("\\{"+(t-1)+"\\}","gm");l=l.replace(s,arguments[t+1])}return{code:p,message:l}}},{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}();n.default=b},function(Oe,n,k){"use strict";(function(_){function m(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function u(p,l){for(var t=0;t<l.length;t++){var s=l[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}return function(p,l,t){return l&&u(p.prototype,l),t&&u(p,t),p}}(),o=function(){function u(){m(this,u)}return b(u,null,[{key:"encode",value:function(l){return new _(l).toString("base64")}},{key:"decode",value:function(l){return new _(l,"base64").toString()}}]),u}();n.default=o}).call(n,k(19).Buffer)},function(Oe,n,k){"use strict";(function(_){function m(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(I,e){if(m()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(I=new Uint8Array(e),I.__proto__=o.prototype):(I===null&&(I=new o(e)),I.length=e),I}function o(I,e,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(I,e,r);if(typeof I=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return t(this,I)}return u(this,I,e,r)}function u(I,e,r,C){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?c(I,e,r,C):typeof e=="string"?s(I,e,r):f(I,e)}function p(I){if(typeof I!="number")throw new TypeError('"size" argument must be a number');if(I<0)throw new RangeError('"size" argument must not be negative')}function l(I,e,r,C){return p(e),e<=0?b(I,e):r!==void 0?typeof C=="string"?b(I,e).fill(r,C):b(I,e).fill(r):b(I,e)}function t(I,e){if(p(e),I=b(I,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)I[r]=0;return I}function s(I,e,r){if(typeof r=="string"&&r!==""||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var C=0|A(e,r);I=b(I,C);var g=I.write(e,r);return g!==C&&(I=I.slice(0,g)),I}function i(I,e){var r=e.length<0?0:0|d(e.length);I=b(I,r);for(var C=0;C<r;C+=1)I[C]=255&e[C];return I}function c(I,e,r,C){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(C||0))throw new RangeError("'length' is out of bounds");return e=r===void 0&&C===void 0?new Uint8Array(e):C===void 0?new Uint8Array(e,r):new Uint8Array(e,r,C),o.TYPED_ARRAY_SUPPORT?(I=e,I.__proto__=o.prototype):I=i(I,e),I}function f(I,e){if(o.isBuffer(e)){var r=0|d(e.length);return I=b(I,r),I.length===0||e.copy(I,0,0,r),I}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||ge(e.length)?b(I,0):i(I,e);if(e.type==="Buffer"&&_e(e.data))return i(I,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(I){if(I>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|I}function T(I){return+I!=I&&(I=0),o.alloc(+I)}function A(I,e){if(o.isBuffer(I))return I.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var r=I.length;if(r===0)return 0;for(var C=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return me(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return de(I).length;default:if(C)return me(I).length;e=(""+e).toLowerCase(),C=!0}}function h(I,e,r){var C=!1;if((e===void 0||e<0)&&(e=0),e>this.length)return"";if((r===void 0||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(I||(I="utf8");;)switch(I){case"hex":return se(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return Z(this,e,r);case"latin1":case"binary":return ne(this,e,r);case"base64":return X(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,e,r);default:if(C)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),C=!0}}function O(I,e,r){var C=I[e];I[e]=I[r],I[r]=C}function L(I,e,r,C,g){if(I.length===0)return-1;if(typeof r=="string"?(C=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=g?0:I.length-1),r<0&&(r=I.length+r),r>=I.length){if(g)return-1;r=I.length-1}else if(r<0){if(!g)return-1;r=0}if(typeof e=="string"&&(e=o.from(e,C)),o.isBuffer(e))return e.length===0?-1:v(I,e,r,C,g);if(typeof e=="number")return e&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(I,e,r):Uint8Array.prototype.lastIndexOf.call(I,e,r):v(I,[e],r,C,g);throw new TypeError("val must be string, number or Buffer")}function v(I,e,r,C,g){function E(ct,Me){return K===1?ct[Me]:ct.readUInt16BE(Me*K)}var K=1,ie=I.length,ze=e.length;if(C!==void 0&&((C=String(C).toLowerCase())==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(I.length<2||e.length<2)return-1;K=2,ie/=2,ze/=2,r/=2}var Ue;if(g){var Ke=-1;for(Ue=r;Ue<ie;Ue++)if(E(I,Ue)===E(e,Ke===-1?0:Ue-Ke)){if(Ke===-1&&(Ke=Ue),Ue-Ke+1===ze)return Ke*K}else Ke!==-1&&(Ue-=Ue-Ke),Ke=-1}else for(r+ze>ie&&(r=ie-ze),Ue=r;Ue>=0;Ue--){for(var et=!0,at=0;at<ze;at++)if(E(I,Ue+at)!==E(e,at)){et=!1;break}if(et)return Ue}return-1}function w(I,e,r,C){r=Number(r)||0;var g=I.length-r;C?(C=Number(C))>g&&(C=g):C=g;var E=e.length;if(E%2!=0)throw new TypeError("Invalid hex string");C>E/2&&(C=E/2);for(var K=0;K<C;++K){var ie=parseInt(e.substr(2*K,2),16);if(isNaN(ie))return K;I[r+K]=ie}return K}function R(I,e,r,C){return ce(me(e,I.length-r),I,r,C)}function M(I,e,r,C){return ce(Le(e),I,r,C)}function x(I,e,r,C){return M(I,e,r,C)}function G(I,e,r,C){return ce(de(e),I,r,C)}function N(I,e,r,C){return ce(Ce(e,I.length-r),I,r,C)}function X(I,e,r){return e===0&&r===I.length?J.fromByteArray(I):J.fromByteArray(I.slice(e,r))}function B(I,e,r){r=Math.min(I.length,r);for(var C=[],g=e;g<r;){var E=I[g],K=null,ie=E>239?4:E>223?3:E>191?2:1;if(g+ie<=r){var ze,Ue,Ke,et;switch(ie){case 1:E<128&&(K=E);break;case 2:ze=I[g+1],(192&ze)==128&&(et=(31&E)<<6|63&ze)>127&&(K=et);break;case 3:ze=I[g+1],Ue=I[g+2],(192&ze)==128&&(192&Ue)==128&&(et=(15&E)<<12|(63&ze)<<6|63&Ue)>2047&&(et<55296||et>57343)&&(K=et);break;case 4:ze=I[g+1],Ue=I[g+2],Ke=I[g+3],(192&ze)==128&&(192&Ue)==128&&(192&Ke)==128&&(et=(15&E)<<18|(63&ze)<<12|(63&Ue)<<6|63&Ke)>65535&&et<1114112&&(K=et)}}K===null?(K=65533,ie=1):K>65535&&(K-=65536,C.push(K>>>10&1023|55296),K=56320|1023&K),C.push(K),g+=ie}return $(C)}function $(I){var e=I.length;if(e<=pe)return String.fromCharCode.apply(String,I);for(var r="",C=0;C<e;)r+=String.fromCharCode.apply(String,I.slice(C,C+=pe));return r}function Z(I,e,r){var C="";r=Math.min(I.length,r);for(var g=e;g<r;++g)C+=String.fromCharCode(127&I[g]);return C}function ne(I,e,r){var C="";r=Math.min(I.length,r);for(var g=e;g<r;++g)C+=String.fromCharCode(I[g]);return C}function se(I,e,r){var C=I.length;(!e||e<0)&&(e=0),(!r||r<0||r>C)&&(r=C);for(var g="",E=e;E<r;++E)g+=ye(I[E]);return g}function W(I,e,r){for(var C=I.slice(e,r),g="",E=0;E<C.length;E+=2)g+=String.fromCharCode(C[E]+256*C[E+1]);return g}function le(I,e,r){if(I%1!=0||I<0)throw new RangeError("offset is not uint");if(I+e>r)throw new RangeError("Trying to access beyond buffer length")}function re(I,e,r,C,g,E){if(!o.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>g||e<E)throw new RangeError('"value" argument is out of bounds');if(r+C>I.length)throw new RangeError("Index out of range")}function z(I,e,r,C){e<0&&(e=65535+e+1);for(var g=0,E=Math.min(I.length-r,2);g<E;++g)I[r+g]=(e&255<<8*(C?g:1-g))>>>8*(C?g:1-g)}function U(I,e,r,C){e<0&&(e=4294967295+e+1);for(var g=0,E=Math.min(I.length-r,4);g<E;++g)I[r+g]=e>>>8*(C?g:3-g)&255}function j(I,e,r,C,g,E){if(r+C>I.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(I,e,r,C,g){return g||j(I,e,r,4,34028234663852886e22,-34028234663852886e22),Y.write(I,e,r,C,23,4),r+4}function H(I,e,r,C,g){return g||j(I,e,r,8,17976931348623157e292,-17976931348623157e292),Y.write(I,e,r,C,52,8),r+8}function ee(I){if(I=oe(I).replace(ke,""),I.length<2)return"";for(;I.length%4!=0;)I+="=";return I}function oe(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}function ye(I){return I<16?"0"+I.toString(16):I.toString(16)}function me(I,e){e=e||1/0;for(var r,C=I.length,g=null,E=[],K=0;K<C;++K){if((r=I.charCodeAt(K))>55295&&r<57344){if(!g){if(r>56319){(e-=3)>-1&&E.push(239,191,189);continue}if(K+1===C){(e-=3)>-1&&E.push(239,191,189);continue}g=r;continue}if(r<56320){(e-=3)>-1&&E.push(239,191,189),g=r;continue}r=65536+(g-55296<<10|r-56320)}else g&&(e-=3)>-1&&E.push(239,191,189);if(g=null,r<128){if((e-=1)<0)break;E.push(r)}else if(r<2048){if((e-=2)<0)break;E.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;E.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;E.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return E}function Le(I){for(var e=[],r=0;r<I.length;++r)e.push(255&I.charCodeAt(r));return e}function Ce(I,e){for(var r,C,g,E=[],K=0;K<I.length&&!((e-=2)<0);++K)r=I.charCodeAt(K),C=r>>8,g=r%256,E.push(g),E.push(C);return E}function de(I){return J.toByteArray(ee(I))}function ce(I,e,r,C){for(var g=0;g<C&&!(g+r>=e.length||g>=I.length);++g)e[g+r]=I[g];return g}function ge(I){return I!==I}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var J=k(21),Y=k(22),_e=k(23);n.Buffer=o,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=_.TYPED_ARRAY_SUPPORT!==void 0?_.TYPED_ARRAY_SUPPORT:function(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42&&typeof I.subarray=="function"&&I.subarray(1,1).byteLength===0}catch(e){return!1}}(),n.kMaxLength=m(),o.poolSize=8192,o._augment=function(I){return I.__proto__=o.prototype,I},o.from=function(I,e,r){return u(null,I,e,r)},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(I,e,r){return l(null,I,e,r)},o.allocUnsafe=function(I){return t(null,I)},o.allocUnsafeSlow=function(I){return t(null,I)},o.isBuffer=function(I){return!(I==null||!I._isBuffer)},o.compare=function(I,e){if(!o.isBuffer(I)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(I===e)return 0;for(var r=I.length,C=e.length,g=0,E=Math.min(r,C);g<E;++g)if(I[g]!==e[g]){r=I[g],C=e[g];break}return r<C?-1:C<r?1:0},o.isEncoding=function(I){switch(String(I).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(I,e){if(!_e(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return o.alloc(0);var r;if(e===void 0)for(e=0,r=0;r<I.length;++r)e+=I[r].length;var C=o.allocUnsafe(e),g=0;for(r=0;r<I.length;++r){var E=I[r];if(!o.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(C,g),g+=E.length}return C},o.byteLength=A,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var I=this.length;if(I%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<I;e+=2)O(this,e,e+1);return this},o.prototype.swap32=function(){var I=this.length;if(I%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<I;e+=4)O(this,e,e+3),O(this,e+1,e+2);return this},o.prototype.swap64=function(){var I=this.length;if(I%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<I;e+=8)O(this,e,e+7),O(this,e+1,e+6),O(this,e+2,e+5),O(this,e+3,e+4);return this},o.prototype.toString=function(){var I=0|this.length;return I===0?"":arguments.length===0?B(this,0,I):h.apply(this,arguments)},o.prototype.equals=function(I){if(!o.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I||o.compare(this,I)===0},o.prototype.inspect=function(){var I="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(I=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(I+=" ... ")),"<Buffer "+I+">"},o.prototype.compare=function(I,e,r,C,g){if(!o.isBuffer(I))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),r===void 0&&(r=I?I.length:0),C===void 0&&(C=0),g===void 0&&(g=this.length),e<0||r>I.length||C<0||g>this.length)throw new RangeError("out of range index");if(C>=g&&e>=r)return 0;if(C>=g)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,C>>>=0,g>>>=0,this===I)return 0;for(var E=g-C,K=r-e,ie=Math.min(E,K),ze=this.slice(C,g),Ue=I.slice(e,r),Ke=0;Ke<ie;++Ke)if(ze[Ke]!==Ue[Ke]){E=ze[Ke],K=Ue[Ke];break}return E<K?-1:K<E?1:0},o.prototype.includes=function(I,e,r){return this.indexOf(I,e,r)!==-1},o.prototype.indexOf=function(I,e,r){return L(this,I,e,r,!0)},o.prototype.lastIndexOf=function(I,e,r){return L(this,I,e,r,!1)},o.prototype.write=function(I,e,r,C){if(e===void 0)C="utf8",r=this.length,e=0;else if(r===void 0&&typeof e=="string")C=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,C===void 0&&(C="utf8")):(C=r,r=void 0)}var g=this.length-e;if((r===void 0||r>g)&&(r=g),I.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var E=!1;;)switch(C){case"hex":return w(this,I,e,r);case"utf8":case"utf-8":return R(this,I,e,r);case"ascii":return M(this,I,e,r);case"latin1":case"binary":return x(this,I,e,r);case"base64":return G(this,I,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,I,e,r);default:if(E)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),E=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var pe=4096;o.prototype.slice=function(I,e){var r=this.length;I=~~I,e=e===void 0?r:~~e,I<0?(I+=r)<0&&(I=0):I>r&&(I=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<I&&(e=I);var C;if(o.TYPED_ARRAY_SUPPORT)C=this.subarray(I,e),C.__proto__=o.prototype;else{var g=e-I;C=new o(g,void 0);for(var E=0;E<g;++E)C[E]=this[E+I]}return C},o.prototype.readUIntLE=function(I,e,r){I|=0,e|=0,r||le(I,e,this.length);for(var C=this[I],g=1,E=0;++E<e&&(g*=256);)C+=this[I+E]*g;return C},o.prototype.readUIntBE=function(I,e,r){I|=0,e|=0,r||le(I,e,this.length);for(var C=this[I+--e],g=1;e>0&&(g*=256);)C+=this[I+--e]*g;return C},o.prototype.readUInt8=function(I,e){return e||le(I,1,this.length),this[I]},o.prototype.readUInt16LE=function(I,e){return e||le(I,2,this.length),this[I]|this[I+1]<<8},o.prototype.readUInt16BE=function(I,e){return e||le(I,2,this.length),this[I]<<8|this[I+1]},o.prototype.readUInt32LE=function(I,e){return e||le(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},o.prototype.readUInt32BE=function(I,e){return e||le(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},o.prototype.readIntLE=function(I,e,r){I|=0,e|=0,r||le(I,e,this.length);for(var C=this[I],g=1,E=0;++E<e&&(g*=256);)C+=this[I+E]*g;return g*=128,C>=g&&(C-=Math.pow(2,8*e)),C},o.prototype.readIntBE=function(I,e,r){I|=0,e|=0,r||le(I,e,this.length);for(var C=e,g=1,E=this[I+--C];C>0&&(g*=256);)E+=this[I+--C]*g;return g*=128,E>=g&&(E-=Math.pow(2,8*e)),E},o.prototype.readInt8=function(I,e){return e||le(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},o.prototype.readInt16LE=function(I,e){e||le(I,2,this.length);var r=this[I]|this[I+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(I,e){e||le(I,2,this.length);var r=this[I+1]|this[I]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(I,e){return e||le(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},o.prototype.readInt32BE=function(I,e){return e||le(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},o.prototype.readFloatLE=function(I,e){return e||le(I,4,this.length),Y.read(this,I,!0,23,4)},o.prototype.readFloatBE=function(I,e){return e||le(I,4,this.length),Y.read(this,I,!1,23,4)},o.prototype.readDoubleLE=function(I,e){return e||le(I,8,this.length),Y.read(this,I,!0,52,8)},o.prototype.readDoubleBE=function(I,e){return e||le(I,8,this.length),Y.read(this,I,!1,52,8)},o.prototype.writeUIntLE=function(I,e,r,C){(I=+I,e|=0,r|=0,!C)&&re(this,I,e,r,Math.pow(2,8*r)-1,0);var g=1,E=0;for(this[e]=255&I;++E<r&&(g*=256);)this[e+E]=I/g&255;return e+r},o.prototype.writeUIntBE=function(I,e,r,C){(I=+I,e|=0,r|=0,!C)&&re(this,I,e,r,Math.pow(2,8*r)-1,0);var g=r-1,E=1;for(this[e+g]=255&I;--g>=0&&(E*=256);)this[e+g]=I/E&255;return e+r},o.prototype.writeUInt8=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(I=Math.floor(I)),this[e]=255&I,e+1},o.prototype.writeUInt16LE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8):z(this,I,e,!0),e+2},o.prototype.writeUInt16BE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=I>>>8,this[e+1]=255&I):z(this,I,e,!1),e+2},o.prototype.writeUInt32LE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=I>>>24,this[e+2]=I>>>16,this[e+1]=I>>>8,this[e]=255&I):U(this,I,e,!0),e+4},o.prototype.writeUInt32BE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=I>>>24,this[e+1]=I>>>16,this[e+2]=I>>>8,this[e+3]=255&I):U(this,I,e,!1),e+4},o.prototype.writeIntLE=function(I,e,r,C){if(I=+I,e|=0,!C){var g=Math.pow(2,8*r-1);re(this,I,e,r,g-1,-g)}var E=0,K=1,ie=0;for(this[e]=255&I;++E<r&&(K*=256);)I<0&&ie===0&&this[e+E-1]!==0&&(ie=1),this[e+E]=(I/K>>0)-ie&255;return e+r},o.prototype.writeIntBE=function(I,e,r,C){if(I=+I,e|=0,!C){var g=Math.pow(2,8*r-1);re(this,I,e,r,g-1,-g)}var E=r-1,K=1,ie=0;for(this[e+E]=255&I;--E>=0&&(K*=256);)I<0&&ie===0&&this[e+E+1]!==0&&(ie=1),this[e+E]=(I/K>>0)-ie&255;return e+r},o.prototype.writeInt8=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(I=Math.floor(I)),I<0&&(I=255+I+1),this[e]=255&I,e+1},o.prototype.writeInt16LE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8):z(this,I,e,!0),e+2},o.prototype.writeInt16BE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=I>>>8,this[e+1]=255&I):z(this,I,e,!1),e+2},o.prototype.writeInt32LE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&I,this[e+1]=I>>>8,this[e+2]=I>>>16,this[e+3]=I>>>24):U(this,I,e,!0),e+4},o.prototype.writeInt32BE=function(I,e,r){return I=+I,e|=0,r||re(this,I,e,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),o.TYPED_ARRAY_SUPPORT?(this[e]=I>>>24,this[e+1]=I>>>16,this[e+2]=I>>>8,this[e+3]=255&I):U(this,I,e,!1),e+4},o.prototype.writeFloatLE=function(I,e,r){return q(this,I,e,!0,r)},o.prototype.writeFloatBE=function(I,e,r){return q(this,I,e,!1,r)},o.prototype.writeDoubleLE=function(I,e,r){return H(this,I,e,!0,r)},o.prototype.writeDoubleBE=function(I,e,r){return H(this,I,e,!1,r)},o.prototype.copy=function(I,e,r,C){if(r||(r=0),C||C===0||(C=this.length),e>=I.length&&(e=I.length),e||(e=0),C>0&&C<r&&(C=r),C===r)return 0;if(I.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),I.length-e<C-r&&(C=I.length-e+r);var g,E=C-r;if(this===I&&r<e&&e<C)for(g=E-1;g>=0;--g)I[g+e]=this[g+r];else if(E<1e3||!o.TYPED_ARRAY_SUPPORT)for(g=0;g<E;++g)I[g+e]=this[g+r];else Uint8Array.prototype.set.call(I,this.subarray(r,r+E),e);return E},o.prototype.fill=function(I,e,r,C){if(typeof I=="string"){if(typeof e=="string"?(C=e,e=0,r=this.length):typeof r=="string"&&(C=r,r=this.length),I.length===1){var g=I.charCodeAt(0);g<256&&(I=g)}if(C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C)}else typeof I=="number"&&(I&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e>>>=0,r=r===void 0?this.length:r>>>0,I||(I=0);var E;if(typeof I=="number")for(E=e;E<r;++E)this[E]=I;else{var K=o.isBuffer(I)?I:me(new o(I,C).toString()),ie=K.length;for(E=0;E<r-e;++E)this[E+e]=K[E%ie]}return this};var ke=/[^+\/0-9A-Za-z-_]/g}).call(n,k(20))},function(Oe,n){var k;k=function(){return this}();try{k=k||Function("return this")()||(0,eval)("this")}catch(_){typeof window=="object"&&(k=window)}Oe.exports=k},function(Oe,n,k){"use strict";function _(d){var T=d.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return d[T-2]==="="?2:d[T-1]==="="?1:0}function m(d){return 3*d.length/4-_(d)}function b(d){var T,A,h,O,L,v=d.length;O=_(d),L=new s(3*v/4-O),A=O>0?v-4:v;var w=0;for(T=0;T<A;T+=4)h=t[d.charCodeAt(T)]<<18|t[d.charCodeAt(T+1)]<<12|t[d.charCodeAt(T+2)]<<6|t[d.charCodeAt(T+3)],L[w++]=h>>16&255,L[w++]=h>>8&255,L[w++]=255&h;return O===2?(h=t[d.charCodeAt(T)]<<2|t[d.charCodeAt(T+1)]>>4,L[w++]=255&h):O===1&&(h=t[d.charCodeAt(T)]<<10|t[d.charCodeAt(T+1)]<<4|t[d.charCodeAt(T+2)]>>2,L[w++]=h>>8&255,L[w++]=255&h),L}function o(d){return l[d>>18&63]+l[d>>12&63]+l[d>>6&63]+l[63&d]}function u(d,T,A){for(var h,O=[],L=T;L<A;L+=3)h=(d[L]<<16)+(d[L+1]<<8)+d[L+2],O.push(o(h));return O.join("")}function p(d){for(var T,A=d.length,h=A%3,O="",L=[],v=0,w=A-h;v<w;v+=16383)L.push(u(d,v,v+16383>w?w:v+16383));return h===1?(T=d[A-1],O+=l[T>>2],O+=l[T<<4&63],O+="=="):h===2&&(T=(d[A-2]<<8)+d[A-1],O+=l[T>>10],O+=l[T>>4&63],O+=l[T<<2&63],O+="="),L.push(O),L.join("")}n.byteLength=m,n.toByteArray=b,n.fromByteArray=p;for(var l=[],t=[],s=typeof Uint8Array!="undefined"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=i.length;c<f;++c)l[c]=i[c],t[i.charCodeAt(c)]=c;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},function(Oe,n){n.read=function(k,_,m,b,o){var u,p,l=8*o-b-1,t=(1<<l)-1,s=t>>1,i=-7,c=m?o-1:0,f=m?-1:1,d=k[_+c];for(c+=f,u=d&(1<<-i)-1,d>>=-i,i+=l;i>0;u=256*u+k[_+c],c+=f,i-=8);for(p=u&(1<<-i)-1,u>>=-i,i+=b;i>0;p=256*p+k[_+c],c+=f,i-=8);if(u===0)u=1-s;else{if(u===t)return p?NaN:1/0*(d?-1:1);p+=Math.pow(2,b),u-=s}return(d?-1:1)*p*Math.pow(2,u-b)},n.write=function(k,_,m,b,o,u){var p,l,t,s=8*u-o-1,i=(1<<s)-1,c=i>>1,f=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=b?0:u-1,T=b?1:-1,A=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(l=isNaN(_)?1:0,p=i):(p=Math.floor(Math.log(_)/Math.LN2),_*(t=Math.pow(2,-p))<1&&(p--,t*=2),_+=p+c>=1?f/t:f*Math.pow(2,1-c),_*t>=2&&(p++,t/=2),p+c>=i?(l=0,p=i):p+c>=1?(l=(_*t-1)*Math.pow(2,o),p+=c):(l=_*Math.pow(2,c-1)*Math.pow(2,o),p=0));o>=8;k[m+d]=255&l,d+=T,l/=256,o-=8);for(p=p<<o|l,s+=o;s>0;k[m+d]=255&p,d+=T,p/=256,s-=8);k[m+d-T]|=128*A}},function(Oe,n){var k={}.toString;Oe.exports=Array.isArray||function(_){return k.call(_)=="[object Array]"}},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"set",value:function(p,l){try{window.localStorage&&localStorage.setItem(p,l)}catch(t){window[p+"_localStorage"]=l}}},{key:"get",value:function(p){try{if(window.localStorage)return localStorage.getItem(p)}catch(l){return window[p+"_localStorage"]}return""}},{key:"remove",value:function(p){try{window.localStorage&&localStorage.removeItem(p)}catch(l){delete window[p+"_localStorage"]}}}]),o}();n.default=b},function(Oe,n,k){"use strict";function _(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function o(u,p){for(var l=0;l<p.length;l++){var t=p[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}return function(u,p,l){return p&&o(u.prototype,p),l&&o(u,l),u}}(),b=function(){function o(){_(this,o)}return m(o,null,[{key:"get",value:function(p){for(var l=p+"",t=document.cookie.split(";"),s=0;s<t.length;s++){var i=t[s].trim();if(i.indexOf(l)==0)return unescape(i.substring(l.length+1,i.length))}return""}},{key:"set",value:function(p,l,t){var s=new Date;s.setTime(s.getTime()+24*t*60*60*1e3);var i="expires="+s.toGMTString();document.cookie=p+"="+escape(l)+"; "+i}}]),o}();n.default=b},function(Oe,n,k){"use strict";function _(s){return s&&s.__esModule?s:{default:s}}function m(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function s(i,c){for(var f=0;f<c.length;f++){var d=c[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}return function(i,c,f){return c&&s(i.prototype,c),f&&s(i,f),i}}(),o=k(8),u=_(o),p=k(9),l=_(p),t=function(){function s(){m(this,s)}return b(s,null,[{key:"refreshUploadAuth",value:function(c,f,d){var T=(l.default.randomUUID(),l.default.randomUUID()),A={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"RefreshUploadVideo",VideoId:c.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:c.requestId},h=l.default.makeUTF8sort(A,"=","&")+"&Signature="+l.default.aliyunEncodeURI(l.default.makeChangeSiga(A,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+h;u.default.get(O,function(L){var L=JSON.parse(L);f&&f(L)},function(L){if(d){var v=JSON.parse(L);d(v)}})}},{key:"getUploadAuth",value:function(c,f,d){var T=(l.default.randomUUID(),l.default.randomUUID()),A={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadVideo",Title:c.title,FileName:c.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:c.requestId};c.fileSize&&(A.FileSize=c.fileSize),c.description&&(A.Description=c.description),c.cateId&&(A.CateId=c.cateId),c.tags&&(A.Tags=c.tags),c.templateGroupId&&(A.TemplateGroupId=c.templateGroupId),c.storageLocation&&(A.StorageLocation=c.storageLocation),c.coverUrl&&(A.CoverURL=c.coverUrl),c.transCodeMode&&(A.TransCodeMode=c.transCodeMode),c.userData&&(A.UserData=JSON.stringify(c.userData));var h=l.default.makeUTF8sort(A,"=","&")+"&Signature="+l.default.aliyunEncodeURI(l.default.makeChangeSiga(A,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+h;u.default.get(O,function(L){try{L=JSON.parse(L)}catch(v){if(d)return void d({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(L)},function(L){if(d){var v={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{v=JSON.parse(L)}catch(w){}d(v)}})}},{key:"getImageUploadAuth",value:function(c,f,d){var T=(l.default.randomUUID(),l.default.randomUUID()),A={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadImage",ImageType:c.imageType?c.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:T,RequestId:c.requestId};c.title&&(A.Title=c.title),c.imageExt&&(A.ImageExt=c.imageExt),c.tags&&(A.Tags=c.tags),c.storageLocation&&(A.StorageLocation=c.storageLocation);var h=l.default.makeUTF8sort(A,"=","&")+"&Signature="+l.default.aliyunEncodeURI(l.default.makeChangeSiga(A,c.accessKeySecret)),O="https://vod."+c.region+".aliyuncs.com/?"+h;u.default.get(O,function(L){L=JSON.parse(L),f&&f(L)},function(L){if(d){var v=JSON.parse(L);d(v)}})}}]),s}();n.default=t},function(Oe,n,k){!function(_,m,b){Oe.exports=n=m(k(0),k(28),k(29))}(0,function(_){return _.HmacSHA1})},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return function(){var m=_,b=m.lib,o=b.WordArray,u=b.Hasher,p=m.algo,l=[],t=p.SHA1=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,c){for(var f=this._hash.words,d=f[0],T=f[1],A=f[2],h=f[3],O=f[4],L=0;L<80;L++){if(L<16)l[L]=0|i[c+L];else{var v=l[L-3]^l[L-8]^l[L-14]^l[L-16];l[L]=v<<1|v>>>31}var w=(d<<5|d>>>27)+O+l[L];w+=L<20?1518500249+(T&A|~T&h):L<40?1859775393+(T^A^h):L<60?(T&A|T&h|A&h)-1894007588:(T^A^h)-899497514,O=h,h=A,A=T<<30|T>>>2,T=d,d=w}f[0]=f[0]+d|0,f[1]=f[1]+T|0,f[2]=f[2]+A|0,f[3]=f[3]+h|0,f[4]=f[4]+O|0},_doFinalize:function(){var i=this._data,c=i.words,f=8*this._nDataBytes,d=8*i.sigBytes;return c[d>>>5]|=128<<24-d%32,c[14+(d+64>>>9<<4)]=Math.floor(f/4294967296),c[15+(d+64>>>9<<4)]=f,i.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var i=u.clone.call(this);return i._hash=this._hash.clone(),i}});m.SHA1=u._createHelper(t),m.HmacSHA1=u._createHmacHelper(t)}(),_.SHA1})},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){!function(){var m=_,b=m.lib,o=b.Base,u=m.enc,p=u.Utf8,l=m.algo;l.HMAC=o.extend({init:function(s,i){s=this._hasher=new s.init,typeof i=="string"&&(i=p.parse(i));var c=s.blockSize,f=4*c;i.sigBytes>f&&(i=s.finalize(i)),i.clamp();for(var d=this._oKey=i.clone(),T=this._iKey=i.clone(),A=d.words,h=T.words,O=0;O<c;O++)A[O]^=1549556828,h[O]^=909522486;d.sigBytes=T.sigBytes=f,this.reset()},reset:function(){var s=this._hasher;s.reset(),s.update(this._iKey)},update:function(s){return this._hasher.update(s),this},finalize:function(s){var i=this._hasher,c=i.finalize(s);return i.reset(),i.finalize(this._oKey.clone().concat(c))}})}()})},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return function(){function m(l,t,s){for(var i=[],c=0,f=0;f<t;f++)if(f%4){var d=s[l.charCodeAt(f-1)]<<f%4*2,T=s[l.charCodeAt(f)]>>>6-f%4*2;i[c>>>2]|=(d|T)<<24-c%4*8,c++}return u.create(i,c)}var b=_,o=b.lib,u=o.WordArray,p=b.enc;p.Base64={stringify:function(t){var s=t.words,i=t.sigBytes,c=this._map;t.clamp();for(var f=[],d=0;d<i;d+=3)for(var T=s[d>>>2]>>>24-d%4*8&255,A=s[d+1>>>2]>>>24-(d+1)%4*8&255,h=s[d+2>>>2]>>>24-(d+2)%4*8&255,O=T<<16|A<<8|h,L=0;L<4&&d+.75*L<i;L++)f.push(c.charAt(O>>>6*(3-L)&63));var v=c.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join("")},parse:function(t){var s=t.length,i=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<i.length;f++)c[i.charCodeAt(f)]=f}var d=i.charAt(64);if(d){var T=t.indexOf(d);T!==-1&&(s=T)}return m(t,s,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),_.enc.Base64})},function(Oe,n,k){"use strict";function _(w){return w&&w.__esModule?w:{default:w}}function m(w,R){if(!(w instanceof R))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var b=function(){function w(R,M){for(var x=0;x<M.length;x++){var G=M[x];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(R,G.key,G)}}return function(R,M,x){return M&&w(R.prototype,M),x&&w(R,x),R}}(),o=k(8),u=_(o),p=k(7),l=_(p),t=k(4),s=_(t),i=k(6),c=_(i),f=k(1),d=_(f),T=k(9),A=_(T),h=k(2),O=k(11),L=k(10),v=function(){function w(){m(this,w)}return b(w,null,[{key:"getAuthInfo",value:function(M,x,G){var N=M+"|f#Ylm&^1TppeRhLg|"+G;return x&&(N=M+"|"+x+"|f#Ylm&^1TppeRhLg|"+G),h(L.parse(N)).toString(O)}},{key:"upload",value:function(M,x,G){var N=d.default.ISODateString(new Date),X=Math.floor(new Date().valueOf()/1e3),B=s.default.getClientId();B=s.default.setClientId(B);var $=w.getAuthInfo(M.userId,B,X),Z=A.default.randomUUID(),ne={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:l.default.browser.name+(l.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:X,Timestamp:N,AuthInfo:$,FileName:M.file.name,FileSize:M.file.size,FileCreateTime:M.file.lastModified,FileHash:M.fileHash,UploadId:M.checkpoint.checkpoint.uploadId,PartSize:M.checkpoint.checkpoint.partSize,DonePartsCount:M.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(M.checkpoint),UploadRatio:M.checkpoint.loaded,UserId:M.userId,VideoId:M.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:Z};B&&(ne.ClientId=B);var se=A.default.makeUTF8sort(ne,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(ne,M.accessKeySecret)),W="https://vod."+M.region+".aliyuncs.com/?"+se;u.default.get(W,function(le){x&&x()},function(le){le&&(G(le),console.log(le))})}},{key:"get",value:function(M,x,G){var N=d.default.ISODateString(new Date),X=Math.floor(new Date().valueOf()/1e3),B=s.default.getClientId(),$=w.getAuthInfo(M.userId,B,X),Z=A.default.randomUUID(),ne={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:l.default.browser.name+(l.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:X,Timestamp:N,AuthInfo:$,UserId:M.userId,UploadInfoList:JSON.stringify(M.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:Z};B&&(ne.ClientId=B);var se=A.default.makeUTF8sort(ne,"=","&")+"&Signature="+A.default.aliyunEncodeURI(A.default.makeChangeSiga(ne,M.accessKeySecret)),W="https://vod."+M.region+".aliyuncs.com/?"+se;u.default.get(W,function(le){var re={},z=B;le=le?JSON.parse(le):{},le.UploadProgress&&le.UploadProgress.UploadProgressList&&le.UploadProgress.UploadProgressList.length>0&&(re=le.UploadProgress.UploadProgressList[0],z=re.ClientId),s.default.setClientId(z),x&&x(re)},function(le){le&&(G(le),console.log(le))})}}]),w}();n.default=v},function(Oe,n,k){"use strict";function _(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function p(l,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,t,s){return t&&p(l.prototype,t),s&&p(l,s),l}}(),b=k(2),o=k(33),u=(k(11),function(){function p(){_(this,p)}return m(p,null,[{key:"getMd5",value:function(t,s,i){var c=new FileReader;c.onload=function(T){try{if(T&&T.target){var A=b(o.parse(T.target.result)),h=A.toString();s(h)}}catch(O){console.log(O)}},c.onerror=function(T){console.log(T),errorCallback(T)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,d=f.call(t,0,1024);c.readAsBinaryString(d)}}]),p}());n.default=u},function(Oe,n,k){!function(_,m){Oe.exports=n=m(k(0))}(0,function(_){return _.enc.Latin1})}])}).call(this,ve("yLpj"))},sWEp:function(ut,ot,ve){ut.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(ut,ot,ve){ut.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}},w4Tj:function(ut,ot,ve){"use strict";ve.d(ot,"a",function(){return Oe});var nt=ve("oZsa");function mt(n,k){for(;!Object.prototype.hasOwnProperty.call(n,k)&&!(n=Object(nt.a)(n),n===null););return n}function Oe(n,k,_){return typeof Reflect!="undefined"&&Reflect.get?Oe=Reflect.get:Oe=function(b,o,u){var p=mt(b,o);if(!p)return;var l=Object.getOwnPropertyDescriptor(p,o);return l.get?l.get.call(u):l.value},Oe(n,k,_||n)}},w8Aa:function(ut,ot,ve){ut.exports={img:"img___3e4yQ"}},xzDV:function(ut,ot,ve){}}]);
|