|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[87,6,9],{"07cG":function(ze,de,M){ze.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"1ZF9":function(ze,de,M){ze.exports=M.p+"static/Authorize.cc9c212f.png"},"500L":function(ze,de,M){"use strict";M.d(de,"a",function(){return E});var Ue=M("DZo9"),Fe=M("8z0m"),_e=M("+L6B"),n=M("2/Rp"),P=M("2qtc"),x=M("kLXV"),d=M("c1Ei"),g=M.n(d),r=M("5Tp6"),o=M("XEnU"),p=M("3S9h"),s=M("miYZ"),e=M("tsqr"),i=M("k16G"),a=M("q1tI"),l=M.n(a),h=M("m3rI"),c=M("wzkS"),S=M("y5JW");function E(m){var T=[];return m&&m.length>0&&(T=m.map(function(w){return{uid:w.id,id:w.id,name:w.title+S.c+w.filesize,url:w.url,filesize:w.filesize,status:"done",response:{id:w.id}}})),T}de.b=function(m){var T=m.value,w=m.onChange,f=m.className,_=m.maxSize,A=_===void 0?150:_,C=m.title,v=C===void 0?"\u4E0A\u4F20\u9644\u4EF6":C,L=m.showRemoveModal,U=L===void 0?!1:L,j=m.accept,b=j===void 0?"":j,k=m.number,H=k===void 0?1e3:k,G=Object(a.useState)(!1),te=Object(i.a)(G,2),F=te[0],ee=te[1],$=Object(a.useState)([]),V=Object(i.a)($,2),N=V[0],I=V[1],B={multiple:!0,disabled:F,accept:b,withCredentials:!0,fileList:T,beforeUpload:function(Z,se){var re=Z.size/1024/1024;return N.concat(se).length>H?(e.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(H,"\u4E2A\u6587\u4EF6")),!1):re<A?!0:(e.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(A,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(h.a.API_SERVER,"/api/attachments.json"),onChange:function(Z){var se=Object(p.a)(Z.fileList);se.length>=H?ee(!0):ee(!1),I(Object(p.a)(se)),se=se.map(function(re){var ue;if(re==null||((ue=re.response)===null||ue===void 0)?void 0:ue.id){var ce;re.url="/api/attachments/".concat(re==null||((ce=re.response)===null||ce===void 0)?void 0:ce.id)}return re.name.indexOf(S.c)===-1&&(re.name="".concat(re.name).concat(S.c).concat(Object(S.a)(re.size))),Object(o.a)({},re)}),console.log("info:",Z),w(se)},onRemove:function(){var Y=Object(r.a)(g.a.mark(function se(re){var ue;return g.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(ue=function(){var Q=Object(r.a)(g.a.mark(function ie(){var z,W;return g.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(z=re.response?re.response.id:re.id,!z){ne.next=8;break}return ne.next=4,Object(c.d)(re.response?re.response.id:re.uid);case 4:return W=ne.sent,ne.abrupt("return",W);case 8:return ne.abrupt("return",!0);case 9:case"end":return ne.stop()}},ie)}));return function(){return Q.apply(this,arguments)}}(),!U){q.next=5;break}return q.abrupt("return",new Promise(function(Q,ie){x.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:l.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var z=Object(r.a)(g.a.mark(function ae(){var ne;return g.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,ue();case 2:ne=R.sent,e.b.success("\u5220\u9664\u6210\u529F"),Q(!0);case 5:case"end":return R.stop()}},ae)}));function W(){return z.apply(this,arguments)}return W}(),onCancel:function(){return Q(!1)}})}));case 5:return q.next=7,ue();case 7:return q.abrupt("return",q.sent);case 8:case"end":return q.stop()}},se)}));function Z(se){return Y.apply(this,arguments)}return Z}()};function X(Y){Y.preventDefault(),Y.stopPropagation()}return l.a.createElement("div",{className:"multi-upload ".concat(f||"")},l.a.createElement(Fe.a,B,l.a.createElement(n.a,{disabled:F,type:"primary",ghost:!0},v),l.a.createElement("span",{onClick:X,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",A,"M) ")))}},"7ahc":function(ze,de,M){"use strict";M.d(de,"a",function(){return m});var Ue=M("XEnU"),Fe=M("IIKO"),_e=M("+L6B"),n=M("2/Rp"),P=M("y8nQ"),x=M("Vl3Y"),d=M("k16G"),g=M("OaEy"),r=M("2fM7"),o=M("q1tI"),p=M.n(o),s=M("VrN/"),e=M.n(s),i=M("p77/"),a=M.n(i),l=M("c5Ni"),h=M.n(l),c=r.a.Option,S={labelCol:{span:4},wrapperCol:{span:20}},E={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};de.b=function(T){var w=T.callback,f=T.onCancel,_=Object(o.useState)("python"),A=Object(d.a)(_,2),C=A[0],v=A[1];function L(j){v(E[j][1])}function U(j){w(j)}return p.a.createElement(x.a,Object(Fe.a)({},S,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),p.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},p.a.createElement(r.a,{onChange:L},Object.keys(E).map(function(j){return p.a.createElement(c,{key:j,value:j},E[j][0])}))),p.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},p.a.createElement(m,{mode:C})),p.a.createElement("div",{className:"flex-container flex-end"},p.a.createElement(n.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),p.a.createElement(n.a,{type:"ghost",onClick:f},"\u53D6\u6D88")))};function m(T){var w=T.value,f=T.onChange,_=T.mode,A=T.options,C=A===void 0?{}:A,v=Object(o.useRef)(),L=Object(o.useState)(),U=Object(d.a)(L,2),j=U[0],b=U[1];return Object(o.useEffect)(function(){if(j){var k=function(G){var te=G.getValue();f&&f(te)};return j.on("change",k),function(){j.off("change",k)}}},[j,f]),Object(o.useEffect)(function(){j&&j.setOption("mode",_)},[j,_]),Object(o.useEffect)(function(){j&&((w!==j.getValue()||w==="")&&setTimeout(function(){j.setValue(w||" ")},300))},[j,w]),Object(o.useEffect)(function(){if(v.current&&!j){var k=e.a.fromTextArea(v.current,Object(Ue.a)({mode:_,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},C));b(k)}},[v.current,j]),p.a.createElement("div",{className:"my-codemirror-container"},p.a.createElement("textarea",{ref:v}))}},"9Bee":function(ze,de,M){"use strict";var Ue=M("q1tI"),Fe=M.n(Ue),_e=M("vg9a"),n=M("k16G"),P=M("DlQD"),x=M.n(P),d=M("rUJ1");function g(H,G){var te=H.match(/^(\s+)(?:```)/);if(te===null)return G;var F=te[1];return G.split(`
|
|
|
`).map(function(ee){var $=ee.match(/^\s+/);if($===null)return ee;var V=Object(n.a)($,1),N=V[0];return N.length>=F.length?ee.slice(F.length):ee}).join(`
|
|
|
`)}var r=[],o=["<ul>"],p=new x.a.Renderer,s=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){r.length=0,o=["<ul>"]}function i(H,G,te,F){if(G>=H.length||H[G].level<=te)return G;var ee=H[G];F.push("<li><a href='#"+ee.anchor+"'>"+ee.text+"</a>"),G++;var $=[];return G=i(H,G,ee.level,$),$.length>0&&(F.push("<ul>"),$.forEach(function(V){F.push(V)}),F.push("</ul>")),F.push("</li>"),G=i(H,G,te,F),G}function a(){return i(r,0,0,o),o.push("</ul>"),o.join("")}var l={heading:function(G){var te=s.exec(G);if(te)return{type:"heading",raw:te[0],depth:te[1].length,text:te[2]}},fences:function(G){var te=this.rules.block.fences.exec(G);if(te){var F=te[0],ee=g(F,te[3]||""),$=te[2]?te[2].trim():te[2];if(["latex","katex","math"].indexOf($)>=0){var V=S(),N=ee;ee=V,E[V]={type:"block",expression:N}}return{type:"code",raw:F,lang:$,text:ee}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,S=function(){return"__special_katext_id_".concat(c++,"__")},E={};function m(){return E}function T(){c=0,E={}}function w(H){return H=H.replace(h,function(G,te){var F=S();return E[F]={type:"inline",expression:te},F}),H}var f=p.listitem;p.listitem=function(H){return f(w(H))};var _=p.paragraph;p.paragraph=function(H){return _(w(H))};var A=p.tablecell;p.tablecell=function(H,G){return A(w(H),G)},p.code=function(H,G,te){var F=(G||"").match(/\S*/)[0];return F?["latex","katex","math"].indexOf(F)>=0?"<p class='editormd-tex'>".concat(H,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(G,'">').concat(te?H:Object(d.escape)(H,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(te?H:Object(d.escape)(H,!0))+"</code></pre>"},p.heading=function(H,G,te){var F=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return r.push({anchor:F,level:G,text:H}),"<h"+G+' id="'+F+'">'+H+"</h"+G+">"},x.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),x.a.use({tokenizer:l,renderer:p});var C=x.a,v=M("SJMd"),L=M("m3rI"),U=M("Oy/b"),j=/<pre[^>]*>/g;function b(H){var G=document.createElement("div");return G.innerHTML=H,G.childNodes.length===0?"":G.childNodes[0].nodeValue}var k=de.a=function(H){var G=H.value,te=G===void 0?"":G,F=H.className,ee=H.style,$=ee===void 0?{}:ee,V=String(te),N=Object(Ue.useMemo)(function(){try{var X=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Y=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Z=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;V=V.replace(X,"("+L.a.API_SERVER+"/api/attachments/").replace(Y,'"'+L.a.API_SERVER+"/api/attachments/").replace(Z,'"'+L.a.API_SERVER+"/files/uploads/")}catch(ue){}var se=C(V),re=m();return V.match(/\[TOC\]/)&&(se=se.replace("<p>[TOC]</p>",a()),e()),se=se.replace(/(__special_katext_id_\d+__)/g,function(ue,ce){var q=re[ce],Q=q.type,ie=q.expression;return Object(U.renderToString)(b(ie)||"",{displayMode:Q==="block",throwOnError:!1,output:"html"})}),se=se.replace(/▁/g,"\u2581\u2581\u2581"),T(),se},[V]),I=Object(Ue.useRef)();function B(X){var Y=X.target;if(Y.tagName.toUpperCase()==="A"){var Z=Y.getAttribute("href");if(Z.startsWith("#")){X.preventDefault();var se=document.getElementById(Z.replace("#",""));se&&se.scrollIntoView(!0)}}}return Object(Ue.useEffect)(function(){if(I.current&&N&&(N.match(j)&&window.PR.prettyPrint()),I.current)return I.current.addEventListener("click",B),function(){I.current.removeEventListener("click",B),T(),e()}},[N,I.current,B]),Fe.a.createElement("div",{ref:I,style:$,className:"".concat(F||""," markdown-body"),dangerouslySetInnerHTML:{__html:N}})}},"9VGf":function(ze,de,M){"use strict";M.d(de,"a",function(){return _e});var Ue=M("q1tI"),Fe=M.n(Ue);function _e(n,P){var x=Object(Ue.useRef)();Object(Ue.useEffect)(function(){x.current=n}),Object(Ue.useEffect)(function(){function d(){x.current()}if(P!==null){var g=setInterval(d,P);return function(){return clearInterval(g)}}},[P])}},ADTG:function(ze,de,M){"use strict";M.r(de);var Ue=M("7Kak"),Fe=M("9yH6"),_e=M("cWXX"),n=M("/ezw"),P=M("/zsF"),x=M("PArb"),d=M("IIKO"),g=M("5NDa"),r=M("5rEg"),o=M("14J3"),p=M("BMrR"),s=M("+L6B"),e=M("2/Rp"),i=M("5Dmo"),a=M("3S7+"),l=M("jCWc"),h=M("kPKH"),c=M("3S9h"),S=M("miYZ"),E=M("tsqr"),m=M("2qtc"),T=M("kLXV"),w=M("c1Ei"),f=M.n(w),_=M("XEnU"),A=M("5Tp6"),C=M("y8nQ"),v=M("Vl3Y"),L=M("k16G"),U=M("SIvP"),j=M("q1tI"),b=M.n(j),k=M("WHYC"),H=M("uYtH"),G=M("9kvl"),te=M("ngQI"),F=M("HBuW"),ee=M("1vsH"),$=M("wd/R"),V=M.n($),N=M("ItnT"),I=M.n(N),B=M("bbsP"),X=M("/wGt"),Y=M("DjyN"),Z=M("NUBc"),se=M("sRBo"),re=M("kaz8"),ue=M("hD9M"),ce=M("xKgJ"),q=M("qsz/"),Q=M.n(q),ie=r.a.Search,z=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],W=function(xe){var ct,We=xe.classroomList,ht=xe.loading,mt=xe.dispatch,kt=xe.cb,wt=xe.shixunIds,Ot=wt===void 0?[]:wt,et=Object(k.m)(),It=Object(k.l)(),Mt=We.actionTabs,_t=v.a.useForm(),Oe=Object(L.a)(_t,1),dt=Oe[0],Le=We.shixunLists,yt=Object(j.useState)([]),Ze=Object(L.a)(yt,2),ot=Ze[0],Qe=Ze[1],Et=Object(j.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),Pe=Object(L.a)(Et,2),pt=Pe[0],Kt=Pe[1];Object(j.useEffect)(function(){We.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(pt.page=1,mt({type:"classroomList/getShixunLists",payload:Object(_.a)({},pt)}))},[We.actionTabs.key]),Object(j.useEffect)(function(){return We.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[We.actionTabs.key]);var Ft=function(){mt({type:"classroomList/setActionTabs",payload:{}}),Kt({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return We.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:b.a.createElement(X.a,{placement:"bottom",height:"100%",closable:!1,visible:We.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:Q.a.drawer,footer:b.a.createElement("div",{className:"tc"},b.a.createElement(e.a,{size:"large",onClick:function(){Ft(),Qe([]),kt("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),b.a.createElement(e.a,{size:"large",onClick:Object(A.a)(f.a.mark(function Ne(){var Dt,Tt,Ct,At;return f.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:Dt=function(Bt){var nn=ot[Bt];if(Ot.includes(nn)){var $t,Wt;return E.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(Le==null||(($t=Le.shixun_list)===null||$t===void 0||((Wt=$t.find(function(rn){return rn.id===nn}))===null||Wt===void 0))?void 0:Wt.title)),{v:void 0}}},Tt=0;case 2:if(!(Tt<(ot==null?void 0:ot.length))){Ut.next=9;break}if(Ct=Dt(Tt),!(typeof Ct=="object")){Ut.next=6;break}return Ut.abrupt("return",Ct.v);case 6:Tt++,Ut.next=2;break;case 9:return Ut.next=11,Object(ue.i)({id:We.actionTabs.id,course_id:We.actionTabs.course_id,shixun_ids:Object(c.a)(ot)});case 11:At=Ut.sent,Qe([]),(At==null?void 0:At.shixuns_list)&&(Ft(),kt(At.shixuns_list));case 14:case"end":return Ut.stop()}},Ne)})),type:"primary"},"\u786E\u5B9A"))},b.a.createElement("section",{className:"tc"},b.a.createElement(ie,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:Q.a.search,onSearch:function(Dt){pt.keyword=Dt,pt.page=1,mt({type:"classroomList/getShixunLists",payload:Object(_.a)({},pt)})}})),b.a.createElement("section",{className:"edu-container"},z.map(function(Ne,Dt){var Tt;return b.a.createElement("ul",{className:Q.a.menu,key:Dt},b.a.createElement("li",null,Ne.name),Ne==null||((Tt=Ne.children)===null||Tt===void 0)?void 0:Tt.map(function(Ct,At){return b.a.createElement("li",{className:pt[Ne.id]==Ct.id?Q.a.actived:"",onClick:function(){pt[Ne.id]=Ct.id,Kt(Object(_.a)({},pt)),mt({type:"classroomList/getShixunLists",payload:Object(_.a)({},pt)})}},b.a.createElement("strong",null,Ct.name))}))}),Le==null||((ct=Le.shixun_list)===null||ct===void 0)?void 0:ct.map(function(Ne,Dt){return b.a.createElement("div",{className:Q.a.listItem,key:Dt},b.a.createElement(re.a,{checked:ot.includes(Ne.id),value:Ne.id,onChange:function(Ct){var At=ot.indexOf(Ne.id);ot.indexOf(Ne.id)>-1?Qe(ot.filter(function(Nt){return Nt!==Ne.id})):Qe(ot.concat(Ne.id))}}),b.a.createElement("div",{className:Q.a.info},b.a.createElement("div",{className:Q.a.title},b.a.createElement("div",{className:Q.a.titleLeft},b.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(Ne==null?void 0:Ne.identifier,"/challenges"),target:"_blank"},b.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Ne.title}})),Object(ce.w)()&&(Ne==null?void 0:Ne.mark_status)===1&&b.a.createElement(a.a,{title:Ne==null?void 0:Ne.mark_content},b.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(ce.w)()&&(Ne==null?void 0:Ne.mark_status)===2&&b.a.createElement(a.a,{title:Ne==null?void 0:Ne.mark_content},b.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(ce.w)()&&(Ne==null?void 0:Ne.mark_status)===3&&b.a.createElement(a.a,{title:Ne==null?void 0:Ne.mark_content},b.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),b.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},b.a.createElement("span",{className:Q.a.description,dangerouslySetInnerHTML:{__html:Ne.description}})),b.a.createElement("div",{className:"flex-wrp mt15"},Ne.challenge_names.map(function(Tt,Ct){return b.a.createElement("span",{key:Ct,className:"mr30 font12"},"\u7B2C",Ct+1,"\u5173 ",Tt," ")})),b.a.createElement(x.a,{dashed:!0}),b.a.createElement("div",{className:"c-light-black mt20 font12"},b.a.createElement("span",null,Ne.author_name),b.a.createElement("span",{className:"ml15 mr15"},"|"),b.a.createElement("span",null,Ne.author_school_name),b.a.createElement("span",{className:"ml15 mr15"},"|"),b.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",Ne.level),b.a.createElement("span",{className:"ml15 mr15"},"|"),b.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),b.a.createElement("span",null,Ne.study_count))))}),b.a.createElement("p",null)),b.a.createElement("div",{className:"tc"},b.a.createElement(Z.a,{current:pt.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:Le==null?void 0:Le.shixuns_count,onChange:function(Dt){pt.page=Dt,mt({type:"classroomList/getShixunLists",payload:Object(_.a)({},pt)})}})))},ae=Object(G.a)(function(oe){var xe=oe.classroomList,ct=oe.loading;return{classroomList:xe,loading:ct}})(W),ne=M("NLgs"),me=M("MXD1"),R=M("CFYs"),t=M("qHKi"),u=M.n(t),D=function(xe){var ct=xe.data,We=ct===void 0?{}:ct,ht=xe.dispatch,mt=ht===void 0?function(){}:ht,kt=xe.onReloadData,wt=kt===void 0?function(){}:kt,Ot=function(){if(!Object(ne.e)(mt))return;if(Object(ce.s)())return;for(var Oe,dt=0;dt<(We==null||((Le=We.stages)===null||Le===void 0)?void 0:Le.length);dt++){var Le,yt,Ze,ot=We==null||((yt=We.stages)===null||yt===void 0)?void 0:yt[dt],Qe=ot==null||((Ze=ot.shixuns_list)===null||Ze===void 0)?void 0:Ze.find(function(Et){return(Et==null?void 0:Et.shixun_status)!=="\u6682\u672A\u516C\u5F00"});if(Qe){Oe=Qe.identifier;break}}Oe?Mt(Oe):E.b.info("\u5B9E\u8BAD\u6682\u672A\u516C\u5F00!")},et=function _t(Oe){var dt;Oe=((dt=Oe)===null||dt===void 0?void 0:dt.includes(".json"))?Oe:"".concat(Oe,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Le=Object(A.a)(f.a.mark(function Ze(){var ot,Qe;return f.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(F.ub)({url:Oe});case 2:if(ot=Pe.sent,ot){Pe.next=5;break}return Pe.abrupt("return");case 5:return E.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Pe.next=8,Object(F.A)({id:ot.shixun_identifier});case 8:if(Qe=Pe.sent,!(Qe==null?void 0:Qe.game_identifier)){Pe.next=13;break}return Object(ee.J)("/tasks/".concat(Qe.game_identifier)),wt(),Pe.abrupt("return");case 13:(Qe==null?void 0:Qe.status)===2?_t(Qe==null?void 0:Qe.message):(Qe==null?void 0:Qe.status)===3&&It(Qe==null?void 0:Qe.message);case 14:case"end":return Pe.stop()}},Ze)}));function yt(){return Le.apply(this,arguments)}return yt}()})},It=function(Oe){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Oe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Mt=function(){var _t=Object(A.a)(f.a.mark(function Oe(dt){var Le;return f.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Ze.next=2,Object(F.A)({id:dt});case 2:if(Le=Ze.sent,!(Le==null?void 0:Le.game_identifier)){Ze.next=7;break}return Object(ee.J)("/tasks/".concat(Le.game_identifier)),wt(),Ze.abrupt("return");case 7:(Le==null?void 0:Le.status)===2?et(Le==null?void 0:Le.message):(Le==null?void 0:Le.status)===3&&It(Le==null?void 0:Le.message);case 8:case"end":return Ze.stop()}},Oe)}));return function(dt){return _t.apply(this,arguments)}}();return b.a.createElement("section",null,!Object(ce.d)()&&b.a.createElement(b.a.Fragment,null,(We==null?void 0:We.start_learning)?b.a.createElement("div",{className:u.a.wrap},b.a.createElement("div",{className:"mt5 ".concat(u.a.havaLearn)},b.a.createElement("span",null,"\u5DF2\u5B66",We==null?void 0:We.learned,"%")),b.a.createElement("div",{className:"mt5 ".concat(u.a.progress)},b.a.createElement(R.a,{percent:We==null?void 0:We.learned,showInfo:!1})),b.a.createElement("div",{className:"mt5"},b.a.createElement("span",{className:"font16"},"\u4E0A\u6B21\u5B66\u4E60\u5185\u5BB9"),b.a.createElement("span",{className:"ml20 c-blue-4ca"},We==null?void 0:We.last_shixun))):b.a.createElement(p.a,{className:u.a.wrap,align:"middle"},b.a.createElement(h.a,{flex:"1"},b.a.createElement("span",{className:u.a.name},"\u8FD8\u672A\u5F00\u59CB\u5B66\u4E60")),b.a.createElement(h.a,null,b.a.createElement(e.a,{className:u.a.button,type:"primary",onClick:Ot},"\u5F00\u59CB\u5B66\u4E60")))))},y=D,O=M("V0Rq"),K=M("sBCT"),J=M("500L"),Ee=M("jZGp"),he=M("m3rI"),fe=M("giR+"),be=M("fyUT"),Re=M("jLra"),Ce=M("IxHN"),le=M("M8RZ"),Ke=M("BdwD"),lt=M("Ot1p"),Je=M("Mgx3"),Ve=M("WMe9"),tt=function(xe){var ct=xe.user,We=xe.onReplyDiscuss,ht=xe.dispatch,mt=xe.id,kt=xe.activeDiscussIndex,wt=xe.params,Ot=Object(j.useState)(""),et=Object(L.a)(Ot,2),It=et[0],Mt=et[1];function _t(dt){Mt(dt)}console.log(wt,"params33");function Oe(){if(!It){E.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}We(mt,It),Mt("")}return b.a.createElement("div",{key:mt,className:"discuss-item-editor",style:{display:kt===mt?"block":"none",width:"100%"}},b.a.createElement(lt.a,{miniToolbar:!0,startInit:kt===mt,defaultValue:It,id:mt,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:_t}),b.a.createElement("a",{onClick:Oe,className:"btn-send"},"\u53D1\u9001"))},Ie=Object(G.a)(function(oe){var xe=oe.shixunsDetail,ct=oe.loading,We=oe.globalSetting;return{shixunsDetail:xe,globalSetting:We,loading:ct.models.index}})(tt),ve=function(xe){var ct=xe.user,We=xe.upDataList,ht=xe.params,mt=xe.page,kt=xe.getTypeNumber,wt=xe.dispatch,Ot=function(){var et=Object(A.a)(f.a.mark(function It(Mt,_t){var Oe;return f.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.next=2,Object(Je.v)({id:Mt,content:_t});case 2:Oe=Le.sent,(Oe==null?void 0:Oe.status)===0&&We(1);case 4:case"end":return Le.stop()}},It)}));return function(Mt,_t){return et.apply(this,arguments)}}();return b.a.createElement("div",{className:"discuss-item-container bg-white"},b.a.createElement("a",{href:"/users/".concat(ct.login),target:"_blank"},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(he.a.IMG_SERVER,"/images/").concat(ct.image_url),width:"50"})),b.a.createElement("section",null,b.a.createElement(Ie,{id:ht.pathId,params:ht,activeDiscussIndex:ht.pathId,onReplyDiscuss:Ot})))},ye=Object(G.a)(function(oe){var xe=oe.shixunsDetail,ct=oe.loading,We=oe.globalSetting;return{shixunsDetail:xe,globalSetting:We,loading:ct.models.index}})(ve),Ae=M("fXAG"),we=M("ErOA");function De(oe){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(we.c)("/discusses.json?page=".concat(xe-1,"&container_identifier=").concat(oe,"&container_type=Shixun"))}function Be(oe,xe){return Object(we.f)("/discusses/".concat(oe,"/top_or_down_discuss.json"),{top:xe})}function Ge(oe,xe){return Object(we.f)("/discusses/".concat(oe,"/plus.json"),{container_type:"Discuss",type:xe?1:0})}function it(oe,xe){return Object(we.f)("/discusses/".concat(oe,"/hidden.json"),xe)}function qe(oe,xe){return Object(we.f)("/discusses/".concat(oe,"/reward_code.json"),xe)}function Xt(oe){return Object(we.a)("/api/discusses/".concat(oe,".json"),{method:"delete"})}function jt(oe,xe){return Object(we.f)("/discusses/".concat(oe,"/reply.json"),{container_type:"Shixun",content:xe})}function Zt(oe){return Object(we.f)("/discusses.json",oe)}var gt=M("9Bee"),ft=M("ROyk"),zt=M("kaH+"),en=M("dhSg");function pn(oe){var xe=oe.data,ct=oe.index,We=oe.adminOrOperator,ht=oe.parentDiscussIndex,mt=oe.shixunIdentifier,kt=oe.isDelete,wt=oe.user,Ot=oe.onSetRewardData,et=oe.onSetActionType,It=oe.params,Mt=oe.deleteCommentAlert,_t=oe.shixunName,Oe=xe.author,dt=xe.can_delete,Le=xe.manage,yt=xe.content,Ze=xe.hidden,ot=xe.id,Qe=xe.reward,Et=xe.time;function Pe(){Ot({id:ot,index:ct,user_id:Oe.user_id,parentDiscussIndex:ht})}function pt(){et({id:ot,index:ct,params:{hidden:Ze?"0":"1",container_identifier:mt},type:"hidden-discuss",parentDiscussIndex:ht,message:Ze?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Kt(){if(Mt){T.a.info({title:"\u63D0\u793A",content:b.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",_t,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}et({id:ot,index:ct,type:"delete-discuss",parentDiscussIndex:ht,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return b.a.createElement("div",{className:"second-level-discuss"},b.a.createElement("div",{className:"discuss-info-body"},b.a.createElement("div",{className:"discuss-info"},b.a.createElement("a",{href:"/users/".concat(Oe.login),target:"_blank"},Oe.name),b.a.createElement("span",{className:"grey"},Et),Qe?b.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Qe)},b.a.createElement("i",{className:"iconfont icon-gift c-orange "}),b.a.createElement("span",null,Qe)):null),b.a.createElement("div",{className:"btn-group"},We?b.a.createElement("a",{onClick:Pe,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},b.a.createElement("i",{className:"iconfont icon-jiangli"})):null,We?b.a.createElement("a",{onClick:pt,title:Ze?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},b.a.createElement("i",{className:Ze?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Le?b.a.createElement("a",{onClick:Kt,title:"\u5220\u9664"},b.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),b.a.createElement(gt.a,{className:"discuss-content",value:yt}))}var Qt=function(oe){var xe=oe.data,ct=oe.index,We=oe.shixunIdentifier,ht=oe.adminOrOperator,mt=oe.identity,kt=oe.onTopOrDownDiscuss,wt=oe.onPlusDiscuss,Ot=oe.onSetActionType,et=oe.onSetRewardData,It=oe.user,Mt=oe.isDelete,_t=oe.activeDiscussIndex,Oe=oe.onReplyDiscuss,dt=oe.onSetActiveDiscussIndex,Le=oe.params,yt=xe.content,Ze=xe.children,ot=xe.game_url,Qe=xe.hidden,Et=xe.id,Pe=xe.position,pt=xe.praise_count,Kt=xe.reward,Ft=xe.sticky,Ne=xe.time,Dt=xe.user_praise,Tt=xe.game_passed,Ct=xe.delete_comment_alert,At=xe.author,Nt=xe.shixun_name,Ut=xe.manage;function tn(){dt(Et)}function Bt(){kt(Et,!Ft,ct)}function nn(){wt(Et,!Dt,ct)}function $t(){et({id:Et,index:ct,user_id:At.user_id})}function Wt(){if(Ct){T.a.info({title:"\u63D0\u793A",content:b.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Nt,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}Ot({id:Et,index:ct,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function rn(){Ot({id:Et,index:ct,params:{hidden:Qe?"0":"1",container_identifier:We},type:"hidden-discuss",message:Qe?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var qt=function(un){var an=un.target,hn=an.nodeName,on=an.src;hn==="IMG"&&(en.a.publish("preview-image",on),console.log("src:",on))};return b.a.createElement("div",{className:"discuss-item-container",key:Et},b.a.createElement("a",{href:"/users/".concat(At.login),target:"_blank"},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(he.a.IMG_SERVER,"/images/").concat(At.image_url),width:"50"})),b.a.createElement("section",null,b.a.createElement("div",{className:"discuss-info"},b.a.createElement("a",{href:"/users/".concat(At.login),target:"_blank"},At.name),b.a.createElement("span",{className:"grey"},Ne),Pe?b.a.createElement("span",{className:"c-green"}," [\u7B2C",Pe,"\u5173] "):null,ot?b.a.createElement("a",{href:ot,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Kt?b.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Kt)},b.a.createElement("i",{className:"iconfont icon-gift c-orange "}),b.a.createElement("span",null,Kt)):null,mt<=5?b.a.createElement("span",{style:{flex:"1",textAlign:"right",color:Tt===1?"#29bd8b":""}},Tt||Tt===0?Tt===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),b.a.createElement("div",{onClick:qt},b.a.createElement(gt.a,{className:"discuss-content",value:yt})),Ze&&Ze.length>0?b.a.createElement("div",{className:"reply-discuss-container",onClick:qt},Ze.map(function(Gt,un){return b.a.createElement(pn,{key:Gt.id,data:Gt,index:un,deleteCommentAlert:Ct,shixunName:Nt,shixunIdentifier:We,adminOrOperator:ht,user:It,isDelete:Mt,onSetRewardData:et,onSetActionType:Ot,parentDiscussIndex:ct})})):null,b.a.createElement("div",{className:"btn-group"},ht?b.a.createElement("a",{onClick:$t,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},b.a.createElement("i",{className:"iconfont icon-jiangli"})):null,ht?b.a.createElement("a",{onClick:rn,title:Qe?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},b.a.createElement("i",{className:Qe?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ut&&(!Ze||Ze.length==0)&&b.a.createElement("a",{onClick:Wt,title:"\u5220\u9664"},b.a.createElement("i",{className:"iconfont icon-shanchu"})),b.a.createElement("a",{onClick:tn,title:"\u56DE\u590D"},b.a.createElement("i",{className:"iconfont icon-huifu1"})),b.a.createElement("a",{onClick:nn,className:Dt?"c-orange":""},b.a.createElement("i",{className:Dt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),b.a.createElement("span",null,pt||""))),b.a.createElement(Ie,{id:Et,params:Le,activeDiscussIndex:_t,onReplyDiscuss:Oe})))},yn={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function _n(oe,xe){switch(xe.type){case Ae.P:return Object(_.a)(Object(_.a)({},oe),{},{loading:!0});case Ae.W:return Object(_.a)(Object(_.a)({},oe),{},{showRewardDialog:!0});case Ae.b:return Object(_.a)(Object(_.a)({},oe),{},{showRewardDialog:!1});case Ae.l:return Object(_.a)(Object(_.a)({},oe),xe.payload);case Ae.Z:return Object(_.a)(Object(_.a)({},oe),xe.payload);case Ae.x:return Object(_.a)(Object(_.a)({},oe),xe.payload);case Ae.z:return Object(_.a)(Object(_.a)({},oe),xe.payload);case Ae.H:return Object(_.a)(Object(_.a)({},oe),xe.payload);case Ae.a:return Object(_.a)(Object(_.a)({},oe),xe.payload);default:throw new Error}}var mn=function(oe){var xe=oe.shixunIdentifier,ct=oe.identity,We=oe.activeIndex,ht=oe.user,mt=oe.isShixunDetail,kt=mt===void 0?!1:mt,wt=oe.isDelete,Ot=oe.getTypeNumber,et=oe.params,It=oe.getData,Mt=oe.isNotDiscuss,_t=Object(j.useReducer)(_n,yn),Oe=Object(L.a)(_t,2),dt=Oe[0],Le=Oe[1],yt=dt.page,Ze=dt.loading,ot=dt.data,Qe=dt.actionType,Et=dt.showRewardDialog,Pe=dt.activeDiscussIndex,pt=Object(j.useRef)(),Kt=Object(j.useRef)();function Ft(Se){return Ne.apply(this,arguments)}function Ne(){return Ne=Object(A.a)(f.a.mark(function Se(Me){var Ye;return f.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!Ze){je.next=2;break}return je.abrupt("return");case 2:return je.prev=2,Le({type:Ae.P}),je.next=6,Object(Je.x)({coursesId:et==null?void 0:et.pathId,page:Me});case 6:Ye=je.sent,Le({type:Ae.l,payload:{activeDiscussIndex:null,page:Me,data:Ye,loading:!1}}),je.next=13;break;case 10:je.prev=10,je.t0=je.catch(2),console.log(je.t0);case 13:case"end":return je.stop()}},Se,null,[[2,10]])})),Ne.apply(this,arguments)}function Dt(Se){document.body.scrollIntoView(),Ft(Se)}function Tt(Se,Me,Ye){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(A.a)(f.a.mark(function Se(Me,Ye,st){var je;return f.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.prev=0,rt.next=3,Ge(Me,Ye);case 3:je=rt.sent,Pt[st].user_praise=Ye,Pt[st].praise_count=je.praise_count,Le({type:Ae.x,payload:{data:Object(_.a)(Object(_.a)({},ot),{},{comments:Pt})}}),rt.next=12;break;case 9:rt.prev=9,rt.t0=rt.catch(0),console.log(rt.t0);case 12:case"end":return rt.stop()}},Se,null,[[0,9]])})),Ct.apply(this,arguments)}function At(Se,Me,Ye){return Nt.apply(this,arguments)}function Nt(){return Nt=Object(A.a)(f.a.mark(function Se(Me,Ye,st){return f.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.prev=0,ut.next=3,Be(Me,Ye);case 3:Pt[st].sticky=Ye,Le({type:Ae.Z,payload:{data:Object(_.a)(Object(_.a)({},ot),{},{comments:Pt})}}),ut.next=10;break;case 7:ut.prev=7,ut.t0=ut.catch(0),console.log(ut.t0);case 10:case"end":return ut.stop()}},Se,null,[[0,7]])})),Nt.apply(this,arguments)}function Ut(){Le({type:Ae.z,payload:{actionType:null}})}function tn(){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(A.a)(f.a.mark(function Se(){var Me,Ye,st,je,ut,rt,St,Ht;return f.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(Me=Qe.id,Ye=Qe.params,st=Qe.type,je=Qe.index,ut=Qe.parentDiscussIndex,!(st==="hidden-discuss")){Rt.next=6;break}return Rt.next=4,it(Me,Ye);case 4:ut?Pt[ut].children[je].hidden=Ye.hidden==1:Pt[je].hidden=Ye.hidden==1,Le({type:Ae.z,payload:{actionType:null,data:Object(_.a)(Object(_.a)({},ot),{},{comments:Pt})}});case 6:if(!(st==="delete-discuss")){Rt.next=31;break}return Rt.next=9,Xt(Me);case 9:if(!(ut||ut===0)){Rt.next=22;break}rt=Pt[ut].children,St=rt.length-1;case 12:if(!(St>=0)){Rt.next=19;break}if(!(rt[St].id===Me)){Rt.next=16;break}return rt.splice(St,1),Rt.abrupt("break",19);case 16:St--,Rt.next=12;break;case 19:Pt[ut].children=rt,Rt.next=30;break;case 22:Ht=Pt.length-1;case 23:if(!(Ht>=0)){Rt.next=30;break}if(!(Pt[Ht].id===Me)){Rt.next=27;break}return Pt.splice(Ht,1),Rt.abrupt("break",30);case 27:Ht--,Rt.next=23;break;case 30:Le({type:Ae.z,payload:{actionType:null,data:Object(_.a)(Object(_.a)({},ot),{},{comments:Pt})}});case 31:case"end":return Rt.stop()}},Se)})),Bt.apply(this,arguments)}function nn(Se){Le({type:Ae.z,payload:{actionType:Se}})}function $t(){Le({type:Ae.b})}function Wt(){return rn.apply(this,arguments)}function rn(){return rn=Object(A.a)(f.a.mark(function Se(){var Me,Ye,st,je,ut,rt,St;return f.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Me=pt.current,Ye=Me.id,st=Me.index,je=Me.score,ut=Me.user_id,rt=Me.parentDiscussIndex,Vt.next=3,qe(Ye,{container_type:"Discusses",score:je,user_id:ut});case 3:St=Vt.sent,rt?Pt[rt].children[st].reward=St.code:Pt[st].reward=St.code,Le({type:Ae.H,payload:{showRewardDialog:!1,data:Object(_.a)(Object(_.a)({},ot),{},{comments:Pt})}}),pt.current=null;case 7:case"end":return Vt.stop()}},Se)})),rn.apply(this,arguments)}function qt(Se){pt.current=Se,Le({type:Ae.W})}function Gt(Se){pt.current.score=Se}function un(Se,Me){return an.apply(this,arguments)}function an(){return an=Object(A.a)(f.a.mark(function Se(Me,Ye){return f.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.prev=0,je.next=3,jt(Me,Ye);case 3:Ft(yt),It(),je.next=10;break;case 7:je.prev=7,je.t0=je.catch(0),console.log(je.t0);case 10:case"end":return je.stop()}},Se,null,[[0,7]])})),an.apply(this,arguments)}function hn(Se){Pe===Se?Le({type:Ae.a,payload:{activeDiscussIndex:null}}):Le({type:Ae.a,payload:{activeDiscussIndex:Se}})}if(Object(j.useEffect)(function(){function Se(){return Me.apply(this,arguments)}function Me(){return Me=Object(A.a)(f.a.mark(function Ye(){return f.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!(We===3&&!ot&&xe)){je.next=3;break}return je.next=3,Ft(yt);case 3:case"end":return je.stop()}},Ye)})),Me.apply(this,arguments)}Se()},[et.pathId]),!ot)return!kt&&b.a.createElement(Ce.a,null);var on=ot.disscuss_count,Pt=ot.comments,$e=ot.all,Xe=ot.can_hidden;return b.a.createElement(j.Fragment,null,b.a.createElement("div",{className:"discuss-container discuss-warp-container",ref:Kt},!kt&&Ze?b.a.createElement(Ce.a,null):null,on===0?b.a.createElement("div",{style:{display:"flex"}},b.a.createElement(Ke.a,null)):null,Object(ce.q)()&&!Mt&&b.a.createElement(ye,{getTypeNumber:Ot,upDataList:Ft,page:yt,user:ht,params:et}),b.a.createElement("aside",{className:"bg-white"},Pt==null?void 0:Pt.map(function(Se,Me){return b.a.createElement(Qt,{user:ht,key:Se.id,data:Se,index:Me,identity:ct,onPaginationChange:Dt,shixunIdentifier:xe,isDelete:wt,onSetActionType:nn,onTopOrDownDiscuss:At,adminOrOperator:Xe,onPlusDiscuss:Tt,onSetRewardData:qt,activeDiscussIndex:Pe,onSetActiveDiscussIndex:hn,onReplyDiscuss:un})})),on>10?b.a.createElement("div",{className:"pagination-container tc"},b.a.createElement(Z.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Dt,current:yt,total:on})):null),b.a.createElement(le.a,null,b.a.createElement(T.a,{centered:!0,title:"\u63D0\u793A",visible:!!Qe,onOk:tn,onCancel:Ut},b.a.createElement("p",null,Qe?Qe.message:"")),b.a.createElement(T.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Et,onCancel:$t,onOk:Wt},b.a.createElement(be.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:Gt,style:{width:"228px"}}))))},bn=function(xe){var ct,We=xe.classroomList,ht=xe.user,mt=xe.globalSetting,kt=xe.loading,wt=xe.dispatch,Ot=Object(U.a)(xe,["classroomList","user","globalSetting","loading","dispatch"]),et=Object(k.m)(),It=We.detailTopBanner,Mt=Object(j.useState)([]),_t=Object(L.a)(Mt,2),Oe=_t[0],dt=_t[1],Le=Object(j.useState)({}),yt=Object(L.a)(Le,2),Ze=yt[0],ot=yt[1],Qe=Object(j.useState)(-1),Et=Object(L.a)(Qe,2),Pe=Et[0],pt=Et[1],Kt=Object(j.useState)(!1),Ft=Object(L.a)(Kt,2),Ne=Ft[0],Dt=Ft[1],Tt=Object(j.useState)({name:"",is_jupyter:!1}),Ct=Object(L.a)(Tt,2),At=Ct[0],Nt=Ct[1],Ut=v.a.useForm(),tn=Object(L.a)(Ut,1),Bt=tn[0],nn=v.a.useForm(),$t=Object(L.a)(nn,1),Wt=$t[0],rn=v.a.useForm(),qt=Object(L.a)(rn,1),Gt=qt[0],un=Object(j.useState)(!1),an=Object(L.a)(un,2),hn=an[0],on=an[1],Pt=Object(j.useState)(),$e=Object(L.a)(Pt,2),Xe=$e[0],Se=$e[1],Me=Object(j.useState)([]),Ye=Object(L.a)(Me,2),st=Ye[0],je=Ye[1],ut=Object(j.useState)(),rt=Object(L.a)(ut,2),St=rt[0],Ht=rt[1],Vt=Object(j.useState)("All"),Rt=Object(L.a)(Vt,2),Yt=Rt[0],vn=Rt[1],Bn=Object(j.useState)(!0),Sn=Object(L.a)(Bn,2),Wn=Sn[0],Tn=Sn[1],Xn=Object(j.useState)(0),An=Object(L.a)(Xn,2),zn=An[0],Kn=An[1],Hn=Object(j.useState)([{name:"\u5168\u90E8",totalName:"\u8BFE\u7A0B\u5B66\u4E60",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",totalName:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",totalName:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",totalName:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",totalName:"\u8BA8\u8BBA",type:"Discusses",number:0}]),Pn=Object(L.a)(Hn,2),gn=Pn[0],Gn=Pn[1];Object(j.useEffect)(function(){cn()},[et==null?void 0:et.coursesId]),Object(j.useEffect)(function(){We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&cn()},[We.actionTabs.key]),Object(j.useEffect)(function(){Rn()},[Ze]);var Vn=function(){var He=Object(A.a)(f.a.mark(function pe(ge){var Te;return f.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(ue.j)(Object(_.a)({},ge));case 2:return Te=ke.sent,Oe[Pe].items=ge.list,ke.abrupt("return",Te);case 5:case"end":return ke.stop()}},pe)}));return function(ge){return He.apply(this,arguments)}}(),Rn=function(){var pe=Ze.shixuns_count,ge=pe===void 0?0:pe,Te=Ze.videos_count,nt=Te===void 0?0:Te,ke=Ze.pdf_attachments_count,xt=ke===void 0?0:ke,at=Ze.disscuss_count,dn=at===void 0?0:at,vt={All:ge+nt+xt,Shixun:ge,VideoItem:nt,Attachment:xt,Discusses:dn},bt=gn.map(function(Lt){return Object(_.a)(Object(_.a)({},Lt),{},{number:vt[Lt.type]})});Gn(bt)},Yn=function(){var He=Object(A.a)(f.a.mark(function pe(ge){var Te;return f.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return wt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),ke.next=3,Object(F.A)({id:ge});case 3:if(Te=ke.sent,wt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Te==null?void 0:Te.game_identifier)){ke.next=8;break}return Object(ee.J)("/tasks/".concat(Te.game_identifier)),ke.abrupt("return");case 8:(Te==null?void 0:Te.status)===2?Jn(Te==null?void 0:Te.message):(Te==null?void 0:Te.status)===3&&Dn(Te==null?void 0:Te.message);case 9:case"end":return ke.stop()}},pe)}));return function(ge){return He.apply(this,arguments)}}(),Jn=function He(pe){var ge;pe=((ge=pe)===null||ge===void 0?void 0:ge.includes(".json"))?pe:"".concat(pe,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Te=Object(A.a)(f.a.mark(function ke(){var xt,at;return f.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:return vt.next=2,Object(O.R)({url:pe});case 2:if(xt=vt.sent,xt){vt.next=5;break}return vt.abrupt("return");case 5:return E.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),vt.next=8,Object(F.A)({id:xt.shixun_identifier});case 8:if(at=vt.sent,!(at==null?void 0:at.game_identifier)){vt.next=12;break}return Object(ee.J)("/tasks/".concat(at.game_identifier)),vt.abrupt("return");case 12:(at==null?void 0:at.status)===2?He(at==null?void 0:at.message):(at==null?void 0:at.status)===3&&Dn(at==null?void 0:at.message);case 13:case"end":return vt.stop()}},ke)}));function nt(){return Te.apply(this,arguments)}return nt}()})},Dn=function(pe){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",pe,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Zn=function(){var pe={shixuns_list:[],items:[]};Un(Oe.length,pe),dt([].concat(Object(c.a)(Oe),[pe])),Se(!0)},Cn=function(){Pe===Oe.length-1&&Xe&&(On(),dt(Oe.filter(function(pe,ge){return ge!==Oe.length-1}))),cn(),pt(-1)},Un=function(pe,ge){if(!wn())return;pt(pe),Bt.setFieldsValue({name:ge.stage_name,description:ge.stage_description})},In=function(pe){var ge;if(setTimeout(function(){document.documentElement.scrollTop=zn},300),pe==="\u53D6\u6D88")return;Oe[Pe].items=(ge=Oe[Pe].items)===null||ge===void 0?void 0:ge.concat(pe),dt(Object(c.a)(Oe))},Qn=function(pe){var ge;pe.map(function(Te){return Te.type="Attachment",Te.id=Te.id||Te.response.id,Te}),Oe[Pe].items=(ge=Oe[Pe].items)===null||ge===void 0?void 0:ge.concat(pe),dt(Object(c.a)(Oe))},$n=function(){var He=Object(A.a)(f.a.mark(function pe(ge){var Te,nt;return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Object(ue.c)(Object(_.a)({id:Oe[Pe].stage_id,course_id:et.coursesId},ge));case 2:return Te=xt.sent,Te.id&&(Ht(!1),nt=[Object(_.a)({},Te)],Oe[Pe].items=Oe[Pe].items.concat(nt),dt(Object(c.a)(Oe))),xt.abrupt("return",Te);case 5:case"end":return xt.stop()}},pe)}));return function(ge){return He.apply(this,arguments)}}(),cn=function(){var He=Object(A.a)(f.a.mark(function pe(){var ge;return f.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return Tn(!0),nt.next=3,Object(ue.g)({coursesId:et==null?void 0:et.coursesId});case 3:ge=nt.sent,(ge==null?void 0:ge.stages)&&dt((ge==null?void 0:ge.stages)?Object(c.a)(ge==null?void 0:ge.stages):[]),ot(ge?Object(_.a)({},ge):{}),console.log("---------",Ze),Tn(!1),On(),pt(-1);case 10:case"end":return nt.stop()}},pe)}));return function(){return He.apply(this,arguments)}}(),En=function(){var He=Object(A.a)(f.a.mark(function pe(ge,Te){var nt,ke,xt,at;return f.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(ge==null?void 0:ge.name){vt.next=2;break}return vt.abrupt("return",E.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(On(),ke=[],(nt=Oe[Pe][Te||"shixuns_list"])===null||nt===void 0||nt.map(function(bt){ke.push({type:bt.item_type,id:bt.id})}),!Xe){vt.next=12;break}return vt.next=8,Object(ue.b)(Object(_.a)(Object(_.a)({},ge),{},{coursesId:et.coursesId,list:ke}));case 8:xt=vt.sent,xt&&(Oe[Pe]=Object(_.a)(Object(_.a)({},Oe[Pe]),xt)),vt.next=16;break;case 12:return vt.next=14,Object(ue.l)(Object(_.a)(Object(_.a)({},ge),{},{id:Oe[Pe].stage_id,type:Array.from(new Set(ke.map(function(bt){return bt.type}))),list:ke}));case 14:at=vt.sent,at&&(Oe[Pe]=Object(_.a)(Object(_.a)({},Oe[Pe]),at));case 16:case"end":return vt.stop()}},pe)}));return function(ge,Te){return He.apply(this,arguments)}}(),qn=function(pe,ge,Te){var nt=Array.from(pe),ke=nt.splice(ge,1),xt=Object(L.a)(ke,1),at=xt[0];return nt.splice(Te,0,at),nt},Ln=function(pe,ge){T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){Oe[Pe][ge||"shixuns_list"].splice(pe,1),E.b.success("\u5220\u9664\u6210\u529F"),dt(Object(c.a)(Oe)),En(Bt.getFieldsValue(),ge)}})},er=function(pe){debugger;T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var ge=Object(A.a)(f.a.mark(function nt(){var ke;return f.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(ue.d)({id:pe});case 2:ke=at.sent,ke.status===0&&(pt(-1),E.b.success("\u5220\u9664\u6210\u529F"),cn());case 4:case"end":return at.stop()}},nt)}));function Te(){return ge.apply(this,arguments)}return Te}()})},tr=function(pe){debugger;T.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var ge=Object(A.a)(f.a.mark(function nt(){var ke;return f.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(ue.e)(Object(_.a)({},pe));case 2:ke=at.sent,ke.status===0&&(pt(-1),E.b.success("\u5220\u9664\u6210\u529F"),cn());case 4:case"end":return at.stop()}},nt)}));function Te(){return ge.apply(this,arguments)}return Te}()})},jn=function(){Nt({name:"",is_jupyter:!1}),Wt.setFieldsValue({name:"",is_jupyter:!1}),Dt(!1)},Mn=function(pe,ge){if(!pe.destination)return;var Te=qn(Oe[Pe][ge||"shixuns_list"],pe.source.index,pe.destination.index);Oe[Pe][ge||"shixuns_list"]=Te,dt(Object(c.a)(Oe)),En(Bt.getFieldsValue(),ge)},nr=function(){var He=Object(A.a)(f.a.mark(function pe(ge){var Te;return f.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(wn()){ke.next=2;break}return ke.abrupt("return");case 2:return ke.next=4,Object(ue.k)({id:ge});case 4:Te=ke.sent,Te.status===0&&cn();case 6:case"end":return ke.stop()}},pe)}));return function(ge){return He.apply(this,arguments)}}(),rr=function(){var He=Object(A.a)(f.a.mark(function pe(ge){var Te;return f.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(wn()){ke.next=2;break}return ke.abrupt("return");case 2:return ke.next=4,Object(ue.f)({id:ge});case 4:Te=ke.sent,Te.status===0&&cn();case 6:case"end":return ke.stop()}},pe)}));return function(ge){return He.apply(this,arguments)}}(),wn=function(){return Pe!==-1?(T.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,title:"\u63D0\u793A",content:b.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var ge="Edit_".concat(Pe),Te=document.getElementById(ge);Te&&setTimeout(function(){return Te.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},Nn=function(){En(Bt.getFieldsValue())},On=function(){Se(!1)},kn=function(pe,ge,Te){return b.a.createElement(p.a,{className:"list-item-row",align:"middle",key:ge,gutter:[5,10]},b.a.createElement(h.a,null,pe.item_type==="Shixun"?b.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):b.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),b.a.createElement(h.a,{flex:1,className:!pe.allow_visit&&!pe.to_be_built&&(pe.shixun_status==="\u6682\u672A\u516C\u5F00"||pe.shixun_status==="\u5DF2\u5220\u9664")?I.a.color204:""},Te+1,"-",ge+1,"\xA0\xA0",pe.name,Pe===-1&&pe.complete_status===1&&b.a.createElement("span",{className:I.a.completed},b.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),b.a.createElement(h.a,null,Pe===Te&&b.a.createElement("div",null,b.a.createElement(a.a,{title:"\u5220\u9664"},b.a.createElement("span",{onClick:function(){Ln(ge,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),Pe!==Te&&pe.item_type==="VideoItem"&&b.a.createElement("aside",null,b.a.createElement(e.a,{type:"primary",href:pe.link||"/video/".concat(pe.id,"?course_id=").concat(et==null?void 0:et.coursesId),target:"_blank"},pe.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(pe.allow_visit||pe.to_be_built||pe.shixun_status!=="\u6682\u672A\u516C\u5F00"&&pe.shixun_status!=="\u5DF2\u5220\u9664")&&Pe!==Te&&pe.item_type==="Shixun"&&b.a.createElement("aside",null,b.a.createElement(H.Link,{to:"/shixuns/".concat(pe.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),pe.shixun_status!=="\u6682\u672A\u516C\u5F00"&&b.a.createElement(e.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(ne.e)(wt))return;Yn(pe.identifier)}},"\u5F00\u59CB\u5B9E\u6218")),Pe===-1&&!pe.allow_visit&&pe.shixun_status==="\u6682\u672A\u516C\u5F00"&&b.a.createElement("span",{className:I.a.color204},"\u6682\u672A\u516C\u5F00"),Pe===-1&&!pe.allow_visit&&pe.shixun_status==="\u5DF2\u5220\u9664"&&b.a.createElement("span",{className:I.a.color204},"\u5DF2\u5220\u9664"),Pe===-1&&pe.allow_visit&&pe.item_type==="Shixun"&&b.a.createElement("span",{className:"".concat(I.a.color204," ml5 experiment-number")},"\u5B9E\u9A8C\u6570 ",pe.challenges_count)))},ar=function(pe,ge){var Te,nt,ke,xt,at,dn,vt;return Yt!=="All"&&!((Te=pe.stage_tag)===null||Te===void 0?void 0:Te.includes(Yt))?null:b.a.createElement("section",{key:ge,className:"bg-white pt30 mb20 pb20 pl10 pr10"},b.a.createElement("aside",{className:"pl20 pr20"},b.a.createElement(p.a,{gutter:[5,20],align:"middle"},b.a.createElement(h.a,{flex:"22px"},b.a.createElement("span",{className:I.a.icons},b.a.createElement("img",{src:M("JWDV")}))),b.a.createElement(h.a,{flex:1,className:"tl font18 bold c-grey-333"},pe.stage_name||"\u7B2C".concat(Oe==null?void 0:Oe.length,"\u90E8\u5206")),b.a.createElement(h.a,null,Object(ce.d)()&&Pe===ge&&!Xe&&b.a.createElement(a.a,{title:"\u5220\u9664"},b.a.createElement("span",{onClick:function(){er(pe.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),Object(ce.d)()&&Pe!==ge&&Yt==="All"&&b.a.createElement("div",null,ge>0&&b.a.createElement(a.a,{title:"\u5411\u4E0A\u79FB\u52A8"},b.a.createElement("span",{onClick:function(){return nr(pe.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),ge<Oe.length-1&&b.a.createElement(a.a,{title:"\u5411\u4E0B\u79FB\u52A8"},b.a.createElement("span",{onClick:function(){return rr(pe.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),!Xe&&b.a.createElement(a.a,{title:"\u7F16\u8F91"},b.a.createElement("span",{onClick:function(){return Un(ge,pe)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),b.a.createElement(p.a,{gutter:[5,20]},b.a.createElement(h.a,{span:24},b.a.createElement("div",{dangerouslySetInnerHTML:{__html:(nt=pe.stage_description)===null||nt===void 0?void 0:nt.replace(/[\r|\n]/gi,"<br/>")}})))),Pe===ge&&b.a.createElement("div",{className:"pl20 pr20"},b.a.createElement("aside",null,b.a.createElement(v.a.Item,{name:"name",label:"\u540D\u79F0",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(r.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Oe==null?void 0:Oe.length,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:Nn})),b.a.createElement(v.a.Item,{name:"description",label:"\u63CF\u8FF0",rules:[{required:!0,message:"\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(r.a.TextArea,{rows:5,maxLength:300,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Oe==null?void 0:Oe.length,"\u9636\u6BB5\u63CF\u8FF0"),onBlur:Nn}))),b.a.createElement("aside",{style:{display:"flex",justifyContent:"space-evenly"}},b.a.createElement(e.a,{size:"large",className:"mt10",onClick:function(){if(!Oe[Pe].stage_id)return E.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ne.e)(wt))return;if(!Object(ne.c)())return;Dt(!0),Wt.setFieldsValue({name:"",is_jupyter:!1})}},b.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),b.a.createElement("br",null),b.a.createElement(e.a,{size:"large",className:"mt10",onClick:function(){var Lt;if(!Oe[Pe].stage_id)return E.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");Kn(document.documentElement.scrollTop),wt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:Oe[Pe].stage_id,course_id:et.coursesId}}),je(pe==null||((Lt=pe.shixuns_list)===null||Lt===void 0)?void 0:Lt.map(function(Jt){return Jt.id}))}},b.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),b.a.createElement("br",null),!(mt==null||((ke=mt.setting)===null||ke===void 0)?void 0:ke.is_local)&&b.a.createElement(b.a.Fragment,null,b.a.createElement(e.a,{size:"large",className:"mt10",onClick:function(){var Lt,Jt;if(!Oe[Pe].stage_id)return E.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");(((Lt=ht.userInfo)===null||Lt===void 0?void 0:Lt.admin)||((Jt=ht.userInfo)===null||Jt===void 0?void 0:Jt.is_teacher)&&Object(ne.d)())&&Ht(!0)}},b.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE"),b.a.createElement("br",null)),b.a.createElement(e.a,{size:"large",className:"mt10",onClick:function(){if(!Oe[Pe].stage_id)return E.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ne.e)(wt))return;if(!Object(ne.c)())return;on(!0),Gt.resetFields()}},b.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),b.a.createElement("br",null)),b.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(ge)},"\u4E0B\u9762\u5B9E\u8BAD\u53EF\u4EE5\u901A\u8FC7\u62D6\u62FD\u8FDB\u884C\u6392\u5E8F\u8C03\u6574")),b.a.createElement("aside",{className:I.a.shixuns},Pe===ge?b.a.createElement(te.a,{onDragEnd:function(Lt){return Mn(Lt,"shixuns_list")}},b.a.createElement(te.c,{droppableId:"droppable-id"},function(bt,Lt){var Jt;return b.a.createElement("div",Object(d.a)({className:"mt20",ref:bt.innerRef},bt.droppableProps,{onScroll:function(){}}),(Jt=pe.shixuns_list)===null||Jt===void 0?void 0:Jt.map(function(sn,ln){return b.a.createElement(te.b,{draggableId:"".concat(sn.id.toString(),"-").concat(ge,"-").concat(ln),index:ln,key:sn.id},function(fn,sr){return b.a.createElement("div",Object(d.a)({ref:fn.innerRef},fn.draggableProps,fn.dragHandleProps),kn(sn,ln,ge))})}))})):b.a.createElement("div",{className:"mt20"},(xt=pe.shixuns_list)===null||xt===void 0?void 0:xt.map(function(bt,Lt){return b.a.createElement("div",null,kn(bt,Lt,ge))}))),!!((at=pe.attachments_list)===null||at===void 0?void 0:at.length)&&b.a.createElement(x.a,null),b.a.createElement("aside",{className:I.a.shixuns},Pe===ge?b.a.createElement(te.a,{onDragEnd:function(Lt){return Mn(Lt,"attachments_list")}},b.a.createElement(te.c,{droppableId:"droppable-id2"},function(bt,Lt){var Jt;return b.a.createElement("div",Object(d.a)({className:"mt20",ref:bt.innerRef},bt.droppableProps,{onScroll:function(){}}),(Jt=pe.attachments_list)===null||Jt===void 0?void 0:Jt.map(function(sn,ln){return b.a.createElement(te.b,{draggableId:"".concat(sn.id.toString(),"-").concat(ge,"-").concat(ln),index:ln,key:sn.id},function(fn,sr){return b.a.createElement("div",Object(d.a)({ref:fn.innerRef},fn.draggableProps,fn.dragHandleProps),b.a.createElement(p.a,{className:"list-item-row",align:"middle",key:ln,gutter:[5,10]},b.a.createElement(h.a,null,b.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})),b.a.createElement(h.a,{flex:"1"},b.a.createElement("a",{className:"c-grey-333",href:he.a.IMG_SERVER+sn.url,target:"_blank"},sn.name)),b.a.createElement(h.a,null,Pe===ge&&b.a.createElement("div",null,b.a.createElement(a.a,{title:"\u5220\u9664"},b.a.createElement("span",{onClick:function(){Ln(ln,"attachments_list")},className:"iconfont icon-shanchu c-grey-c"}))))))})}))})):b.a.createElement("div",{className:"mt20"},(dn=pe.attachments_list)===null||dn===void 0?void 0:dn.map(function(bt,Lt){return b.a.createElement("div",null,b.a.createElement(p.a,{className:"list-item-row",align:"middle",key:Lt,gutter:[5,10]},b.a.createElement(h.a,null,b.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})),b.a.createElement(h.a,null,b.a.createElement("a",{className:"c-grey-333",href:he.a.IMG_SERVER+bt.url,target:"_blank"},bt.name))))}))),!!((vt=pe.items)===null||vt===void 0?void 0:vt.length)&&b.a.createElement(Ee.a,{visibleType:Yt,data:Object(c.a)(pe.items),stage_id:pe.stage_id,disabled:!(Pe===ge),deleteStages:tr,updateSort:Vn,subject_id:Ze==null?void 0:Ze.subject_id,course_id:et==null?void 0:et.coursesId,index:ge,cust_seq:!0,showVideoPlay:!0}),Pe===ge&&b.a.createElement("aside",{className:I.a.buttons},b.a.createElement(e.a,{onClick:Cn,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),b.a.createElement(e.a,{onClick:Cn,size:"large",type:"primary"},"\u4FDD\u5B58")))},ir=It.start_date,or=It.course_end,Fn=or||V()(V()().format("L")).valueOf()<V()(ir).valueOf();return console.log(Fn,444),b.a.createElement("section",{className:"mb50"},b.a.createElement(y,{data:Ze,dispatch:wt,onReloadData:cn}),b.a.createElement("aside",{className:I.a.actionTabs},gn.map(function(He,pe){if((Oe==null?void 0:Oe.some(function(ge){var Te;return(Te=ge.stage_tag)===null||Te===void 0?void 0:Te.includes(He.type)}))||He.type=="All"||He.type==="Discusses")return b.a.createElement("div",{key:pe,className:He.type===Yt?I.a.tabActive:I.a.tab,onClick:function(){Pe===-1?(vn(He.type),pt(-1)):E.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},b.a.createElement("div",{className:I.a.s1},He.name))})),b.a.createElement("div",{className:I.a.total},"\u5171",b.a.createElement("span",null,gn.find(function(He){return He.type===Yt}).number),"\u4E2A",gn.find(function(He){return He.type===Yt}).totalName),b.a.createElement(n.a,{loading:Wn,active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},Yt!=="Discusses"&&b.a.createElement(b.a.Fragment,null,b.a.createElement(v.a,{form:Bt,onFinish:En},Oe==null?void 0:Oe.map(function(He,pe){return b.a.createElement("div",{key:pe},ar(He,pe))})),Object(ce.d)()&&!Xe&&Yt==="All"&&Pe===-1&&b.a.createElement("div",{className:I.a.addStage,onClick:Zn},b.a.createElement("span",{className:I.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Yt==="Discusses"&&b.a.createElement("aside",{style:{paddingTop:25,background:"#fff"}},b.a.createElement(mn,{activeIndex:3,isNotDiscuss:Fn,getData:cn,shixunIdentifier:11,coursesId:et==null?void 0:et.coursesId,params:{pathId:et==null?void 0:et.coursesId},identity:(ct=ht.userInfo)===null||ct===void 0?void 0:ct.role,getTypeNumber:Rn,user:ht.userInfo,isShixunDetail:!0})),b.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:Ne,onOk:Object(A.a)(f.a.mark(function He(){var pe;return f.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Wt.validateFields();case 2:return Te.next=4,Object(ue.h)(Object(_.a)({id:Oe[Pe].stage_id,course_id:et.coursesId},At));case 4:pe=Te.sent,jn(),pe.id&&(E.b.success("\u6DFB\u52A0\u6210\u529F"),In([pe]));case 7:case"end":return Te.stop()}},He)})),onCancel:jn},b.a.createElement(v.a,{form:Wt,onValuesChange:function(pe){Nt(Object(_.a)(Object(_.a)({},At),pe))}},b.a.createElement(v.a.Item,{label:"\u5B9E\u8BAD\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u8BAD\u7C7B\u578B"}]},b.a.createElement(Fe.a.Group,null,b.a.createElement(Fe.a,{defaultChecked:!0,value:!1},"\u666E\u901A\u5B9E\u8BAD"),b.a.createElement(Fe.a,{value:!0},"jupyter\u5B9E\u8BAD"))),b.a.createElement(v.a.Item,{label:"\u5B9E\u8BAD\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u540D\u79F0"}]},b.a.createElement(r.a,{maxLength:60,suffix:b.a.createElement("span",null,At.name.length,"/60")})))),b.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:hn,onOk:Object(A.a)(f.a.mark(function He(){var pe,ge;return f.a.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return nt.next=2,Gt.validateFields();case 2:return nt.next=4,Gt.getFieldsValue();case 4:return pe=nt.sent,nt.next=7,Object(ue.a)({id:Oe[Pe].stage_id,course_id:et.coursesId,attachment_ids:pe.files.map(function(ke){return ke.response.id})});case 7:ge=nt.sent,ge.status===0&&(E.b.success("\u6DFB\u52A0\u6210\u529F"),on(!1),Qn(Object(c.a)(pe.files)));case 9:case"end":return nt.stop()}},He)})),onCancel:function(){return on(!1)}},b.a.createElement(v.a,{form:Gt},b.a.createElement(v.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},b.a.createElement(J.b,{maxSize:100,accept:"application/pdf",number:10})),b.a.createElement("div",null,b.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),b.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",b.a.createElement(H.Link,{target:"_blank",to:"/users/mmipb3zhj/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",b.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7100M\uFF1B",b.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u6587\u4EF6\uFF1B",b.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",b.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),b.a.createElement(ae,{shixunIds:st,cb:In}),b.a.createElement(K.a,{visible:St,onCancel:function(){return Ht(!1)},onOk:$n}))},xn=de.default=Object(G.a)(function(oe){var xe=oe.classroomList,ct=oe.user,We=oe.loading,ht=oe.globalSetting;return{classroomList:xe,user:ct,globalSetting:ht,loading:We.models.index}})(bn)},Aky1:function(ze,de,M){"use strict";M.d(de,"a",function(){return g});var Ue=M("ErOA"),Fe=M("qGJc"),_e=M.n(Fe),n="",P;function x(r){d(r)}function d(r){debugger;P=new _e.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(p){console.log("addFileSuccess: "+p.file.name),r.addFileSuccess&&r.addFileSuccess(p),P.startUpload()},onUploadstarted:function(p){var s=p.file.name;if(p.videoId){var a="/api/users/".concat(n,"/video_auths.json");Object(Ue.a)(a,{method:"put",body:{video_id:p.videoId,title:s,file_name:s}}).then(function(l){if(l.status==-1){r.onUploadError&&r.onUploadError(p);return}var h=l.data,c=h.UploadAuth,S=h.UploadAddress,E=h.VideoId;P.setUploadAuthAndAddress(p,c,S)}).catch(function(l){P.deleteFile(P._curIndex),P.nextUpload(),console.log(l)})}else{var e="/api/users/".concat(n,"/video_auths.json"),i="";Object(Ue.a)(e,{method:"Post",body:{title:i+s,file_name:i+s}}).then(function(l){if(l){var h=l.data,c=h.UploadAuth,S=h.UploadAddress,E=h.VideoId;P.setUploadAuthAndAddress(p,c,S,E)}}).catch(function(l){P.deleteFile(P._curIndex),P.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(p){r.onUploadSucceed&&r.onUploadSucceed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(p,s,e){r.onUploadFailed&&r.onUploadFailed(p),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(p,s,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(p,s,e){r.onUploadProgress&&r.onUploadProgress(p,s,e);var i=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(p){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var s="/api/users/".concat(n,"/video_auths.json");Object(Ue.a)(s,{method:"put",body:{video_id:p.videoId}}).then(function(e){var i=e.data,a=i.UploadAuth;P.resumeUploadWithAuth(a)}).catch(function(e){console.log(e)})},onUploadEnd:function(p){r.onUploadEnd&&r.onUploadEnd(p),console.log("onUploadEnd: uploaded all the files")}}),r.gotUploader&&r.gotUploader(P)}function g(r,o){r&&(n=r),x(o);debugger}},BdwD:function(ze,de,M){"use strict";var Ue=M("XEnU"),Fe=M("q1tI"),_e=M.n(Fe),n=function(x){var d=x.styles,g=d===void 0?{}:d,r=x.customText;return _e.a.createElement("section",{className:"tc animated fadeIn",style:Object(Ue.a)(Object(Ue.a)({},{color:"#999",margin:"200px auto"}),g)},_e.a.createElement("img",{src:M("FOrL")}),_e.a.createElement("p",{className:"mt20 font14"},r||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"))};de.a=n},BjJ7:function(ze,de,M){"use strict";M.d(de,"d",function(){return Fe}),M.d(de,"c",function(){return _e}),M.d(de,"e",function(){return n}),M.d(de,"b",function(){return P}),M.d(de,"a",function(){return d});var Ue=M("m3rI");function Fe(g){var r=!0;if(g.length>0){for(var o=0;o<g.length;o++)if(g[o].compile_success==0||!g[o].compile_success){r=!1;break}}else r=!1;return r}function _e(g){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=[],p=0;p<g.length;p++){var s=g[p],e=r?"".concat(r,"/").concat(s.name):"".concat(s.name);o.push({title:s.name,isLeaf:!(s.type==="tree"),key:e})}return o}function n(g,r,o){for(var p=0;p<g.length;p++){var s=g[p];if(s.key===r){s.children=o;break}s.children&&n(s.children,r,o)}return g}function P(g,r,o){var p;return function(){var s=this,e=arguments,i=function(){p=null,o||g.apply(s,e)},a=o&&!p;clearTimeout(p),p=setTimeout(i,r),a&&g.apply(s,e)}}var x=!0,d=Ue.a.API_SERVER},"C+DQ":function(ze,de,M){},Dols:function(ze,de,M){ze.exports={tree:"tree___22OZV"}},FOrL:function(ze,de){ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},HmJG:function(ze,de,M){},ItnT:function(ze,de,M){ze.exports={flex_box_center:"flex_box_center___3dVCs",flex_space_between:"flex_space_between___1YbCa",flex_box_vertical_center:"flex_box_vertical_center___1Scgb",flex_box_center_end:"flex_box_center_end___1lZ44",flex_box_column:"flex_box_column___TFbGA",icons:"icons___3Tk_M",shixuns:"shixuns___ekstB",buttons:"buttons___1EjW6",addStage:"addStage___2YNXy",color4CA:"color4CA___1yM78",color204:"color204___2hsO7",completed:"completed___2RFl-",actionTabs:"actionTabs___3RHYX",tab:"tab___29SUg",s1:"s1___2dW_B",tabActive:"tabActive___1dLpi",total:"total___2Fb58"}},IxHN:function(ze,de,M){"use strict";var Ue=M("q1tI"),Fe=M.n(Ue),_e=M("07cG"),n=M.n(_e);de.a=function(P){var x=P.message,d=P.className,g=P.children,r=P.style,o=r===void 0?{}:r;return Fe.a.createElement("div",{className:"".concat(n.a.idsRingWrapper," ").concat(d)},Fe.a.createElement("div",{className:n.a.ldsRing},Fe.a.createElement("div",null),Fe.a.createElement("div",null),Fe.a.createElement("div",null),Fe.a.createElement("div",null)),x?Fe.a.createElement("p",{style:o},x):null,g)}},JWDV:function(ze,de,M){ze.exports=M.p+"static/charpter-white.5fa14f93.svg"},M8RZ:function(ze,de,M){"use strict";M.d(de,"a",function(){return r});var Ue=M("XKWP"),Fe=M("N7Kx"),_e=M("kFHX"),n=M("4jIl"),P=M("q1tI"),x=M.n(P),d=M("i8i4"),g=M.n(d),r=function(o){Object(_e.a)(s,o);var p=Object(n.a)(s);function s(e){var i;Object(Ue.a)(this,s),i=p.call(this,e);var a=window.document;return i.node=a.createElement("div"),a.body.appendChild(i.node),i}return Object(Fe.a)(s,[{key:"render",value:function(){var i=this.props.children;return Object(d.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),s}(x.a.Component)},NLgs:function(ze,de,M){"use strict";M.d(de,"e",function(){return h}),M.d(de,"f",function(){return c}),M.d(de,"d",function(){return E}),M.d(de,"c",function(){return m}),M.d(de,"a",function(){return T}),M.d(de,"b",function(){return w});var Ue=M("c1Ei"),Fe=M.n(Ue),_e=M("miYZ"),n=M("tsqr"),P=M("5Tp6"),x=M("2qtc"),d=M("kLXV"),g=M("q1tI"),r=M.n(g),o=M("9kvl"),p=M("xKgJ"),s=M("1vsH"),e=M("RCxd"),i=M("mOS8"),a=M.n(i),l=M("m3rI"),h=function(_){return!!(c(_)&&S())},c=function(_){return Object(p.q)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},S=function(){var _,A=Object(o.b)()._store.getState(),C=A.user;return((_=C.userInfo)===null||_===void 0?void 0:_.profile_completed)?!0:(d.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:r.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(){o.c.push("/account/profile/edit")}}),!1)},E=function(){var _,A=Object(o.b)()._store.getState(),C=A.user;return((_=C.userInfo)===null||_===void 0?void 0:_.professional_certification)?!0:(d.a.confirm({title:"\u63D0\u793A",centered:!0,content:r.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(s.J)("/account/certification")}}),!1)},m=function(){return Object(p.b)()?!0:(d.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",{className:"tc",style:{marginLeft:-38}},r.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"),r.a.createElement("img",{src:Object(p.u)()?M("WdTA"):"".concat(l.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),r.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(p.u)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(s.J)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},T=function(_,A){return _?!0:(d.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:r.a.createElement("div",null,r.a.createElement("p",null,A||"\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"),r.a.createElement("div",{style:{marginLeft:"110px"}},r.a.createElement("img",{src:M("1ZF9"),width:200}),r.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(s.J)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},w=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",C=Object(o.b)()._store.getState(),v=C.shixunsDetail.detail;return(v==null?void 0:v.public)===2||(v==null?void 0:v.public)===1||(v==null?void 0:v.shixun_status)===3?(d.a.info({centered:!0,icon:r.a.createElement(e.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:r.a.createElement("div",{className:"tc",style:{marginLeft:-38}},r.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},r.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(v==null?void 0:v.public)===2?"\u5DF2\u516C\u5F00":(v==null?void 0:v.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),r.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),r.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:a.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(v==null?void 0:v.shixun_status)===2?(d.a.confirm({centered:!0,icon:r.a.createElement(e.a,null),title:"\u63D0\u793A",content:r.a.createElement("div",null,r.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),r.a.createElement("br",null),r.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(){d.a.confirm({width:440,centered:!0,icon:r.a.createElement(e.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var U=Object(P.a)(Fe.a.mark(function b(){var k;return Fe.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:v==null?void 0:v.identifier}});case 2:k=G.sent,k.status!==401&&(n.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:v==null?void 0:v.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:v==null?void 0:v.identifier}}));case 4:case"end":return G.stop()}},b)}));function j(){return U.apply(this,arguments)}return j}()})}}),!0):!1}},Ot1p:function(ze,de,M){"use strict";var Ue=M("2qtc"),Fe=M("kLXV"),_e=M("Cmcn"),n=M("k16G"),P=M("v7Ap"),x=M("q1tI"),d=M.n(x),g=M("VrN/"),r=M.n(g),o=M("bdgK"),p=M("p77/"),s=M("Bd2K"),e=M("ELLl"),i=M("19Vz"),a=M("lZu9"),l=M("kSUc"),h=M("9Bee"),c=M("IIKO"),S=M("dejd"),E=M("C+DQ"),m=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(fe){var be=fe.onActionCallback,Re=fe.title,Ce=fe.icon,le=fe.actionName,Ke=fe.className,lt=Ke===void 0?"":Ke,Je=fe.children;function Ve(){be(le)}return d.a.createElement("a",{title:Re,className:lt,onClick:Ve},d.a.createElement("i",{className:"md-iconfont ".concat(Ce)}),Je)}var w=function(fe){var be=fe.watch,Re=fe.showNullButton,Ce=fe.onActionCallback,le=fe.fullScreen,Ke=fe.insertTemp,lt=[].concat(m,[{title:"".concat(be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(be?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return d.a.createElement("ul",{className:"markdown-toolbar-container"},lt.map(function(Je,Ve){return d.a.createElement("li",{key:Ve},Je.actionName?d.a.createElement(T,Object(c.a)({},Je,{onActionCallback:Ce})):d.a.createElement("span",{className:"v-line"}))}),Re?d.a.createElement("li",null,d.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ce},d.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ke&&d.a.createElement("li",null,d.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ke),onActionCallback:Ce},d.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),d.a.createElement("li",{className:"btn-full-screen"},d.a.createElement(T,{icon:"".concat(le?"icon-shrink":"icon-enlarge"),title:le?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ce})))},f=M("M8RZ"),_=M("+L6B"),A=M("2/Rp"),C=M("y8nQ"),v=M("Vl3Y"),L=M("5NDa"),U=M("5rEg"),j={labelCol:{span:4},wrapperCol:{span:20}},b=function(fe){var be=fe.callback,Re=fe.onCancel;function Ce(le){be(le)}return d.a.createElement(v.a,Object(c.a)({},j,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ce}),d.a.createElement(v.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},d.a.createElement(U.a,null)),d.a.createElement(v.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},d.a.createElement(U.a,null)),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(A.a,{type:"ghost",onClick:Re},"\u53D6\u6D88")))},k=M("7ahc"),H=M("HmJG"),G=M("BjJ7"),te=v.a.useForm,F={width:280,marginRight:10},ee={labelCol:{span:5},wrapperCol:{span:19}},$=function(fe){var be=fe.callback,Re=fe.onCancel,Ce=te(),le=Object(n.a)(Ce,1),Ke=le[0];function lt(tt){be(tt)}function Je(tt){Ke.setFieldsValue({src:"/api/attachments/".concat(tt.id)})}function Ve(tt){var Ie=tt.target.files[0];N(Ie,Je)}return d.a.createElement(v.a,Object(c.a)({form:Ke},ee,{className:"upload-image-panel",onFinish:lt}),d.a.createElement(v.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},d.a.createElement("div",{className:"flex-container"},d.a.createElement(v.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},d.a.createElement(U.a,{style:F})),d.a.createElement(V,{onFileChange:Ve}))),d.a.createElement(v.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},d.a.createElement(U.a,{style:{width:264}})),d.a.createElement(v.a.Item,{style:{textAlign:"right"}},d.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(A.a,{type:"ghost",onClick:Re},"\u53D6\u6D88")))};function V(fe){var be=fe.onFileChange;return d.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",d.a.createElement("input",{type:"file",accept:"image/*",onChange:be}))}function N(fe,be){if(!fe)throw new String("\u6CA1\u6709\u6587\u4EF6");var Re=new FormData;Re.append("editormd-image-file",fe),Re.append("file_param_name","editormd-image-file"),Re.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(le){be(JSON.parse(le.target.responseText))},!1),Ce.addEventListener("error",function(le){console.error(le)},!1),Ce.open("POST","".concat(G.a,"/api/attachments.json")),Ce.send(Re)}var I=M("giR+"),B=M("fyUT"),X=M("7Kak"),Y=M("9yH6"),Z=Y.a.Group,se={margin:"0 8px"},re=function(fe){var be=fe.callback,Re=fe.onCancel;function Ce(le){be(le)}return d.a.createElement(v.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ce},d.a.createElement("div",{className:"flex-container"},d.a.createElement("span",{style:se},"\u5355\u5143\u683C\u6570\uFF1A"),d.a.createElement("span",{style:se},"\u884C\u6570"),d.a.createElement(v.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},d.a.createElement(B.a,null)),d.a.createElement("span",{style:se},"\u5217\u6570"),d.a.createElement(v.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},d.a.createElement(B.a,null))),d.a.createElement("div",{className:"flex-container",style:{marginTop:12}},d.a.createElement("span",{style:se},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),d.a.createElement(v.a.Item,{name:"align"},d.a.createElement(Z,null,d.a.createElement(Y.a,{value:"default"},d.a.createElement("i",{className:"fa fa-align-justify"})),d.a.createElement(Y.a,{value:"left"},d.a.createElement("i",{className:"fa fa-align-left"})),d.a.createElement(Y.a,{value:"center"},d.a.createElement("i",{className:"fa fa-align-center"})),d.a.createElement(Y.a,{value:"right"},d.a.createElement("i",{className:"fa fa-align-right"}))))),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(A.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(A.a,{type:"ghost",onClick:Re},"\u53D6\u6D88")))},ue="link",ce="upload-image",q="code-block",Q="add-table",ie="------------",z={default:ie,left:":".concat(ie),center:":".concat(ie,":"),right:"".concat(ie,":")},W=M("9VGf"),ae,ne;function me(){}var R=0,t=1e4,u="\u2581",D=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function y(fe){return/^\d+$/.test(fe)?"".concat(fe,"px"):fe}var O=navigator.platform.toUpperCase().indexOf("MAC")>=0,K=O?"Cmd":"Ctrl",J=(ae={},Object(P.a)(ae,K+"-B","bold"),Object(P.a)(ae,K+"-I","italic"),ae),Ee=(ne={},Object(P.a)(ne,ue,"\u6DFB\u52A0\u94FE\u63A5"),Object(P.a)(ne,q,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(P.a)(ne,ce,"\u6DFB\u52A0\u56FE\u7247"),Object(P.a)(ne,Q,"\u6DFB\u52A0\u8868\u683C"),ne),he=de.a=function(fe){var be=fe.defaultValue,Re=be===void 0?"":be,Ce=fe.onChange,le=fe.width,Ke=le===void 0?"100%":le,lt=fe.height,Je=lt===void 0?400:lt,Ve=fe.miniToolbar,tt=Ve===void 0?!1:Ve,Ie=fe.isFocus,ve=Ie===void 0?!1:Ie,ye=fe.watch,Ae=fe.insertTemp,we=fe.id,De=we===void 0?"markdown-editor-id":we,Be=fe.showResizeBar,Ge=Be===void 0?!1:Be,it=fe.noStorage,qe=it===void 0?!1:it,Xt=fe.showNullButton,jt=Xt===void 0?!1:Xt,Zt=fe.fullScreen,gt=Zt===void 0?!1:Zt,ft=fe.onBlur,zt=fe.onCMBeforeChange,en=fe.className,pn=en===void 0?"":en,Qt=fe.placeholder,yn=Qt===void 0?"":Qt,_n=fe.values,mn=_n===void 0?"":_n,bn=Object(x.useState)(null),xn=Object(n.a)(bn,2),oe=xn[0],xe=xn[1],ct=Object(x.useState)(Re),We=Object(n.a)(ct,2),ht=We[0],mt=We[1],kt=Object(x.useState)(ye),wt=Object(n.a)(kt,2),Ot=wt[0],et=wt[1],It=Object(x.useState)(gt),Mt=Object(n.a)(It,2),_t=Mt[0],Oe=Mt[1],dt=Object(x.useState)(""),Le=Object(n.a)(dt,2),yt=Le[0],Ze=Le[1],ot=Object(x.useState)(0),Qe=Object(n.a)(ot,2),Et=Qe[0],Pe=Qe[1],pt=Object(x.useState)(Je),Kt=Object(n.a)(pt,2),Ft=Kt[0],Ne=Kt[1],Dt=Object(x.useState)(!1),Tt=Object(n.a)(Dt,2),Ct=Tt[0],At=Tt[1],Nt=Object(x.useRef)(),Ut=Object(x.useRef)(),tn=Object(x.useRef)(),Bt=Object(x.useRef)();Object(x.useEffect)(function(){mt(mn),oe==null||oe.setValue(mn)},[mn]),Object(x.useEffect)(function(){if(Nt.current){var $e=function(Me,Ye){var st=Ye.clipboardData;if(st){var je=st.types.toString(),ut=st.items;if(je==="text/html,Files"||je==="Files"||st.types.indexOf("Files")){var rt=ut[1];je==="Files"&&(rt=ut[0]),rt.kind==="file"&&rt.type.match(/^image\//i)&&N(rt.getAsFile(),function(St){St.id?Xe.replaceSelection("")):(St==null?void 0:St.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},Xe=r.a.fromTextArea(Nt.current,{mode:"markdown",lineNumbers:!tt,lineWrapping:!0,value:Re,autoCloseTags:!0,autoCloseBrackets:!0});return ve&&Xe.focus(),Xe.on("paste",$e),xe(Xe),function(){Xe.off("paste",$e)}}},[]);var nn=Object(x.useCallback)(function(){if(Ut.current)try{var $e=Ut.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,Xe=Ut.current.getElementsByClassName("markdown-editor-body")[0];_t?Xe.style.height="calc(100vh - ".concat($e,"px)"):Xe.style.height="".concat(Ft-$e,"px")}catch(Se){console.log(Se,"---- to set md editor body height")}},[Ft,Ut,_t]);Object(x.useEffect)(function(){function $e(){var Se=new o.default(function(Me){var Ye=Object(_e.a)(Me),st;try{for(Ye.s();!(st=Ye.n()).done;){var je=st.value;(je.target.offsetHeight>0||je.target.offsetWidth>0)&&(nn(),oe.setSize("100%","100%"),oe.refresh())}}catch(ut){Ye.e(ut)}finally{Ye.f()}});return Se.observe(Nt.current.parentElement),Se}if(oe){var Xe=$e();return function(){Xe.unobserve(Nt.current.parentElement)}}},[oe,nn]),Object(x.useEffect)(function(){if(oe){for(var $e=[],Xe=function(){var je=Me[Se];Ye=Object(n.a)(je,2);var ut=Ye[0],rt=Ye[1],St=Object(P.a)({},ut,function(){$t(rt)});$e.push(St),oe.addKeyMap(St)},Se=0,Me=Object.entries(J);Se<Me.length;Se++){var Ye;Xe()}return function(){var st=Object(_e.a)($e),je;try{for(st.s();!(je=st.n()).done;){var ut=je.value;oe.removeKeyMap(ut)}}catch(rt){st.e(rt)}finally{st.f()}}}},[oe]),Object(x.useEffect)(function(){gt!==_t&&Oe(gt)},[gt]),Object(W.a)(function(){if(!qe&&Et>0){var $e=new Date().getTime(),Xe=window.sessionStorage.getItem(De);$e>=Et+t&&(!Xe||Xe!==ht)&&(window.sessionStorage.setItem(De,ht),At(!0))}},t),Object(x.useEffect)(function(){et(ye)},[oe,ye]),Object(x.useEffect)(function(){oe&&(ve&&oe.focus())},[oe,ve]),Object(x.useEffect)(function(){if(Ot&&oe){var $e=function(Me){var Ye=Me.target;if(Bt.current){var st=Ye.scrollTop/Ye.scrollHeight;Bt.current.scrollTop=Bt.current.scrollHeight*st}},Xe=oe.getScrollerElement();return Xe.addEventListener("scroll",$e),function(){Xe.removeEventListener("scroll",$e)}}},[oe,Ot]),Object(x.useEffect)(function(){if(oe&&zt){var $e=function(Se,Me){zt(Se,Me)};return oe.on("beforeChange",$e),function(){oe.off("beforeChange",$e)}}},[oe,zt]),Object(x.useEffect)(function(){if(oe&&ft){var $e=function(){ft(oe.getValue())};return oe.on("blur",$e),function(){oe.off("blur",$e)}}},[oe,ft]),Object(x.useEffect)(function(){if(oe){var $e=function(Se){var Me=Se.getValue();mt(Me),Pe(new Date().getTime()),Se.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ce&&Ce(Me)};return oe.on("change",$e),function(){oe.off("change",$e)}}},[oe,Ce]),Object(x.useEffect)(function(){oe&&(Re==null?(oe.setValue(""),mt("")):Re!==oe.getValue()&&(oe.setValue(Re),mt(Re),oe.setCursor(oe.lineCount(),0)))},[oe,Re]);var $t=Object(x.useCallback)(function($e){var Xe=oe.getCursor(),Se=oe.getSelection(),Me=Se.split(`
|
|
|
`);switch($e){case"bold":return oe.replaceSelection("**"+Se+"**"),Se===""&&oe.setCursor(Xe.line,Xe.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+Se+"*"),Se===""&&oe.setCursor(Xe.line,Xe.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+Se+"`"),Se===""&&oe.setCursor(Xe.line,Xe.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+Se+"$$`"),Se===""&&oe.setCursor(Xe.line,Xe.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+Se+"\n```"),oe.setCursor(Xe.line+1,Se.length+1),oe.focus();case"line-break":return oe.replaceSelection(`<br/>
|
|
|
`),oe.focus();case"list-ul":return Se===""?oe.replaceSelection("- "+Se):oe.replaceSelection(Me.map(function(Ye){return Ye===""?"":"- ".concat(Ye)}).join(`
|
|
|
`)),oe.focus();case"list-ol":return Se===""?oe.replaceSelection("1. "+Se):oe.replaceSelection(Me.map(function(Ye,st){return Ye===""?"":"".concat(st+1,". ").concat(Ye)}).join(`
|
|
|
`)),oe.focus();case"add-null-ch":return Se===""&&oe.setCursor(Xe.line,Xe.ch+1),oe.replaceSelection(u),oe.focus();case"inster-template-1":return Se===""&&oe.setCursor(Xe.line,Xe.ch),oe.replaceSelection(D),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return et(!Ot),oe.focus();case"trigger-full-screen":return Oe(!_t),oe.focus();case ue:Ze(ue);return;case q:Ze(q);return;case ce:Ze(ce);return;case Q:Ze(Q);return;default:throw new Error}},[oe,Ot,_t]),Wt=Object(x.useCallback)(function($e){Ze("");switch(yt){case ue:var Xe=$e.title,Se=$e.link;return oe.replaceSelection("[".concat(Xe,"](").concat(Se,")")),oe.focus();case q:var Me=$e.language,Ye=$e.content;return oe.replaceSelection(["```"+Me,Ye,"```"].join(`
|
|
|
`)),oe.focus();case ce:var st=$e.src,je=$e.alt;return oe.replaceSelection(".concat(st,' "').concat(je,'" )')),oe.focus();case Q:for(var ut=$e.row,rt=$e.col,St=$e.align,Ht=`
|
|
|
`,Vt=0;Vt<ut;Vt++){for(var Rt=[],Yt=[],vn=0;vn<rt;vn++)Vt===1&&Yt.push(z[St]),Rt.push(" ");Vt===1&&(Ht+="| ".concat(Yt.join(" | "),` |
|
|
|
`)),Ht+="| ".concat(Rt.join(rt===1?"":" | "),` |
|
|
|
`)}return oe.replaceSelection(Ht+`
|
|
|
`),oe.focus();default:throw new Error}},[oe,yt]),rn=Object(x.useMemo)(function(){switch(yt){case ue:return d.a.createElement(b,{callback:Wt,onCancel:qt});case q:return d.a.createElement(k.b,{callback:Wt,onCancel:qt});case ce:return d.a.createElement($,{callback:Wt,onCancel:qt});case Q:return d.a.createElement(re,{callback:Wt,onCancel:qt});default:return null}},[yt]);function qt(){Ze("")}Object(x.useEffect)(function(){if(tn.current){var $e=function(ut){Ye=!0,st=ut.pageY},Xe=function(){Ye=!1},Se=function(ut){if(Ye){var rt=ut.pageY-st;rt<0&&(rt=0),rt>300&&(rt=300);var St=Je+rt+"px";Ne(St)}},Me=tn.current,Ye=!1,st=0;return Me.addEventListener("mousedown",$e),document.addEventListener("mousemove",Se),document.addEventListener("mouseup",Xe),function(){Me.removeEventListener("mousedown",$e),document.removeEventListener("mousemove",Se),document.removeEventListener("mouseup",Xe)}}},[oe,tn]),Object(x.useEffect)(function(){Ne(Je)},[Je]);var Gt=y(Ke),un=y(Ft),an={width:Gt,height:un},hn=Object(x.useMemo)(function(){if(Et){var $e=new Date(Et),Xe=$e.getHours(),Se=$e.getMinutes(),Me=$e.getSeconds();return Xe=Xe<10?"0"+Xe:Xe,Se=Se<10?"0"+Se:Se,Me=Me<10?"0"+Me:Me,"".concat(Xe,":").concat(Se,":").concat(Me)}return 0},[Et]);function on(){window.sessionStorage.removeItem(De),At(!1),Pe(0)}function Pt(){At(!1),Pe(0),oe.setValue(window.sessionStorage.getItem(De))}return d.a.createElement(x.Fragment,null,d.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ut},d.a.createElement("div",{className:"markdown-editor-container ".concat(pn," ").concat(Ot?"on-preview":""," ").concat(tt?"mini":""," ").concat(_t?"full-screen":""),style:an},d.a.createElement(w,{insertTemp:Ae,watch:Ot,fullScreen:_t,showNullButton:jt,onActionCallback:$t}),d.a.createElement("div",{className:"markdown-editor-body"},d.a.createElement("div",{className:"codemirror-container"},d.a.createElement("textarea",{ref:Nt,placeholder:yn})),Ot?d.a.createElement("div",{ref:Bt,className:"preview-container"},d.a.createElement(h.a,{value:ht})):null))),Ge?d.a.createElement("a",{ref:tn,className:"editor-resize"}):null,d.a.createElement(f.a,null,Ee[yt]?d.a.createElement(Fe.a,{centered:!0,title:Ee[yt],visible:!0,onCancel:qt,footer:null},rn):null))}},ROyk:function(ze,de,M){},UZu5:function(ze,de,M){},WMe9:function(ze,de,M){},WdTA:function(ze,de,M){ze.exports=M.p+"static/studnetqun.a5754d96.png"},dejd:function(ze,de,M){},fXAG:function(ze,de,M){"use strict";M.d(de,"j",function(){return Ue}),M.d(de,"i",function(){return Fe}),M.d(de,"k",function(){return _e}),M.d(de,"db",function(){return n}),M.d(de,"o",function(){return P}),M.d(de,"R",function(){return x}),M.d(de,"eb",function(){return d}),M.d(de,"u",function(){return g}),M.d(de,"v",function(){return r}),M.d(de,"bb",function(){return o}),M.d(de,"A",function(){return p}),M.d(de,"m",function(){return s}),M.d(de,"X",function(){return e}),M.d(de,"s",function(){return i}),M.d(de,"M",function(){return a}),M.d(de,"ab",function(){return l}),M.d(de,"cb",function(){return h}),M.d(de,"l",function(){return c}),M.d(de,"P",function(){return S}),M.d(de,"Z",function(){return E}),M.d(de,"x",function(){return m}),M.d(de,"z",function(){return T}),M.d(de,"W",function(){return w}),M.d(de,"b",function(){return f}),M.d(de,"H",function(){return _}),M.d(de,"a",function(){return A}),M.d(de,"c",function(){return v}),M.d(de,"O",function(){return L}),M.d(de,"g",function(){return U}),M.d(de,"t",function(){return j}),M.d(de,"Y",function(){return b}),M.d(de,"y",function(){return k}),M.d(de,"B",function(){return H}),M.d(de,"f",function(){return G}),M.d(de,"e",function(){return te}),M.d(de,"V",function(){return F}),M.d(de,"h",function(){return ee}),M.d(de,"d",function(){return $}),M.d(de,"Q",function(){return N}),M.d(de,"n",function(){return I}),M.d(de,"F",function(){return B}),M.d(de,"I",function(){return X}),M.d(de,"D",function(){return Y}),M.d(de,"E",function(){return Z}),M.d(de,"C",function(){return se}),M.d(de,"G",function(){return re}),M.d(de,"T",function(){return ue}),M.d(de,"q",function(){return ce}),M.d(de,"r",function(){return q}),M.d(de,"U",function(){return Q}),M.d(de,"S",function(){return ie}),M.d(de,"p",function(){return z}),M.d(de,"L",function(){return W}),M.d(de,"K",function(){return ae}),M.d(de,"J",function(){return ne}),M.d(de,"N",function(){return me}),M.d(de,"w",function(){return R});var Ue="FETCH_TASK_START",Fe="FETCH_TASK_FAILURE",_e="FETCH_TASK_SUCCESS",n="UPDATE_TASK_DATA",P="HIDE_EVALUATE_RESULT",x="SHOW_EVALUATE_RESULT",d="UPDATE_TIMESTRAP",g="MOVE_X",r="MOVE_Y",o="TRIGGER_RIGHT_PANEL_MASK ",p="SET_ACTIVE_INDEX",s="GET_TASK_LIST",e="SHOW_TASK_LIST",i="HIDE_TASK_LIST",a="SET_TASK_STAR",l="TRIGGER_ENLARGE_UNITY3D ",h="TRIGGER_TAB_FIXED ",c="GET_DISCUSSES",S="SHOW_DISCUSSES_LOADING",E="TOP_OR_DOWN_DISCUSS",m="PLUS_DISCUSS",T="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",f="CANCEL_REWARD_DIALOG",_="SET_REWARD",A="ACTIVE_DISCUSS_INDEX",C="CREATE_DISCUSS",v="DISABLE_DISCUSS",L="SHOW_ANSWER_LOADING",U="FETCH_ANSWER_INFO",j="HIGH_TIP_MODAL",b="SHOW_TIP_MODAL",k="SELECT_UNLOCK_ANSWER",H="SET_CHOOSE_ANSWERS",G="EVAL_CHOOSE_START",te="EVAL_CHOOSE_END",F="SHOW_REP_loading",ee="FETCH_REP_CONTENT",$="EDIT_REP_CONTENT",V="SET_REP_PATH",N="SHOW_EVALUATE_LOADING",I="HIDE_EVALUATE_LOADING",B="SET_EVALUATE_MESSAGE",X="SET_SHOW_DIR",Y="SET_EDITOR_SETTING",Z="SET_EDITOR_THEME",se="SET_EDITOR_FONTSIZE",re="SET_REPOS",ue="SHOW_PATH_LIST",ce="HIDE_PATH_LIST",q="HIDE_PICTURE_VIEW",Q="SHOW_PICTURE_VIEW",ie="SHOW_NOTICE",z="HIDE_NOTICE",W="SET_TAB_INDEX",ae="SET_SSH_TABS",ne="SET_SSH_CONFIGDATA",me="SET_VNC_LOADING ",R="ON_TAB_TO_SPACE "},"h/US":function(ze,de,M){"use strict";var Ue=M("DZo9"),Fe=M("8z0m"),_e=M("+L6B"),n=M("2/Rp"),P=M("k16G"),x=M("q1tI"),d=M.n(x),g=M("z7Xi"),r=M("jN4g"),o=M("m3rI"),p=M("w8Aa"),s=M.n(p),e=function(a){var l=a.value,h=a.onChange,c=a.getFileProgress,S=Object(x.useState)(!1),E=Object(P.a)(S,2),m=E[0],T=E[1],w=d.a.createElement(n.a,{loading:m,icon:d.a.createElement(g.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),f=function(){return d.a.createElement("div",{className:s.a.img},d.a.createElement("img",{src:o.a.API_SERVER+"/api/attachments/"+l,alt:"avatar",style:{width:288}}),d.a.createElement("div",null,d.a.createElement(r.a,{onClick:function(){return h("")},style:{fontSize:"16px",color:"red"}})))},_=function(C){if(c&&c(C),C.file.status==="uploading"){T(!0);return}if(C.file.status==="done"){var v,L;T(!1),h(C==null||((v=C.file)===null||v===void 0||((L=v.response)===null||L===void 0))?void 0:L.id)}};return d.a.createElement(d.a.Fragment,null,l?f():d.a.createElement("div",null,d.a.createElement(Fe.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(o.a.API_SERVER,"/api/attachments.json"),onChange:_,accept:"image/*"},w),d.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"),d.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};de.a=e},jLra:function(ze,de,M){},jZGp:function(ze,de,M){"use strict";var Ue=M("ozfa"),Fe=M("MJZm"),_e=M("14J3"),n=M("BMrR"),P=M("+L6B"),x=M("2/Rp"),d=M("5Dmo"),g=M("3S7+"),r=M("jCWc"),o=M("kPKH"),p=M("miYZ"),s=M("tsqr"),e=M("c1Ei"),i=M.n(e),a=M("5Tp6"),l=M("2qtc"),h=M("kLXV"),c=M("3S9h"),S=M("k16G"),E=M("SIvP"),m=M("OaEy"),T=M("2fM7"),w=M("q1tI"),f=M.n(w),_=M("WHYC"),A=M("9kvl"),C=M("Mgx3"),v=M("1vsH"),L=M("qdXH"),U=M("V0Rq"),j=M("HBuW"),b=M("Dols"),k=M.n(b),H=M("LvDl"),G=M.n(H),te=M("8Skl"),F=M("UESt"),ee=M("NLgs"),$=T.a.Option,V=function(I){var B=I.pathsDetail,X=I.globalSetting,Y=I.user,Z=I.loading,se=I.visibleType,re=I.updateSort,ue=I.dispatch,ce=Object(E.a)(I,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),q=Object(w.useState)([]),Q=Object(S.a)(q,2),ie=Q[0],z=Q[1],W=Object(w.useState)([]),ae=Object(S.a)(W,2),ne=ae[0],me=ae[1],R=Object(_.m)(),t=Object(w.useState)([]),u=Object(S.a)(t,2),D=u[0],y=u[1],O=Object(w.useState)({}),K=Object(S.a)(O,2),J=K[0],Ee=K[1];Object(w.useEffect)(function(){if(ce.data&&!Object(H.isEqual)(ce.data,D)){ne=[];var Ie=JSON.parse(JSON.stringify(ce.data));lt(Ie,0),y(Object(c.a)(Ie)),se!="All"?z(Object(c.a)(ne)):z([])}},[JSON.stringify(ce.data),se]),Object(w.useEffect)(function(){var Ie,ve,ye;if((Ie=B.detail)===null||Ie===void 0?void 0:Ie.has_start){var Ae,we,De=(Ae=B.detail)===null||Ae===void 0||((we=Ae.courses)===null||we===void 0)?void 0:we.findIndex(function(gt){var ft;return parseInt((ft=gt.course_status)===null||ft===void 0?void 0:ft.status)===1});ye=De>-1?De:0}else{var Be,Ge,it,qe,Xt,jt=(Be=B.detail)===null||Be===void 0||((Ge=Be.courses)===null||Ge===void 0||((it=Ge.map(function(gt){var ft;return parseInt((ft=gt.course_status)===null||ft===void 0?void 0:ft.status)}))===null||it===void 0))?void 0:it.lastIndexOf(2);ye=jt>-1?jt:0,jt=(qe=B.detail)===null||qe===void 0||((Xt=qe.courses)===null||Xt===void 0)?void 0:Xt.findIndex(function(gt){var ft;return parseInt((ft=gt.course_status)===null||ft===void 0?void 0:ft.status)===0}),ye=jt>-1?jt:ye}if((ve=B.detail)===null||ve===void 0?void 0:ve.courses){var Zt;Ee(((Zt=B.detail)===null||Zt===void 0?void 0:Zt.courses[ye])||{})}},[B.detail]);var he=function(ve,ye){h.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},fe=function(ve){h.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var ye=Object(a.a)(i.a.mark(function we(){return i.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:case"end":return Be.stop()}},we)}));function Ae(){return ye.apply(this,arguments)}return Ae}()})},be=function(){var Ie=Object(a.a)(i.a.mark(function ve(ye,Ae){var we;return i.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(ue({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Ae){Be.next=7;break}return Be.next=4,Object(j.z)({id:ye});case 4:Be.t0=Be.sent,Be.next=10;break;case 7:return Be.next=9,Object(j.A)({id:ye});case 9:Be.t0=Be.sent;case 10:if(we=Be.t0,ue({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((we==null?void 0:we.game_identifier)||(we==null?void 0:we.identifier))){Be.next=15;break}return Object(v.J)(Ae?"/tasks/".concat(we==null?void 0:we.identifier,"/jupyter"):"/tasks/".concat(we.game_identifier,"?subject_id=").concat(R.pathId||"")),Be.abrupt("return");case 15:(we==null?void 0:we.status)===-3?Object(v.k)():(we==null?void 0:we.status)===2?Re(we==null?void 0:we.message):(we==null?void 0:we.status)===3&&Ce(we==null?void 0:we.message);case 16:case"end":return Be.stop()}},ve)}));return function(ye,Ae){return Ie.apply(this,arguments)}}(),Re=function Ie(ve){var ye;ve=((ye=ve)===null||ye===void 0?void 0:ye.includes(".json"))?ve:"".concat(ve,".json"),h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:f.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Ae=Object(a.a)(i.a.mark(function De(){var Be,Ge;return i.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Object(U.R)({url:ve});case 2:if(Be=qe.sent,Be){qe.next=5;break}return qe.abrupt("return");case 5:return s.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),qe.next=8,Object(j.A)({id:Be.shixun_identifier});case 8:if(Ge=qe.sent,!(Ge==null?void 0:Ge.game_identifier)){qe.next=12;break}return Object(v.J)("/tasks/".concat(Ge.game_identifier)),qe.abrupt("return");case 12:(Ge==null?void 0:Ge.status)===2?Ie(Ge==null?void 0:Ge.message):(Ge==null?void 0:Ge.status)===3&&Ce(Ge==null?void 0:Ge.message);case 13:case"end":return qe.stop()}},De)}));function we(){return Ae.apply(this,arguments)}return we}()})},Ce=function(ve){h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:f.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",ve,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},le=function(ve){console.log("onDragEnter:",ve)},Ke=function(){var Ie=Object(a.a)(i.a.mark(function ve(ye){var Ae,we,De,Be,Ge,it,qe,Xt,jt;return i.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(console.log("onDrop:",ye),Ae=ye.node.props.eventKey,we=ye.dragNode.props.eventKey,De=ye.node.props.pos.split("-"),Be=ye.dropPosition-Number(De[De.length-1]),!(De.length>3&&!ye.node.dragOverGapBottom&&!ye.node.dragOverGapTop)){gt.next=7;break}return gt.abrupt("return",!1);case 7:if(!(ye.node.dragOver&&ye.dragNodesKeys.length>1)){gt.next=9;break}return gt.abrupt("return",!1);case 9:if(!(De.length>3&&ye.dragNodesKeys.length>1)){gt.next=11;break}return gt.abrupt("return",!1);case 11:return Ge=function ft(zt,en,pn){for(var Qt=0;Qt<zt.length;Qt++){if(zt[Qt].key===en)return pn(zt[Qt],Qt,zt);zt[Qt].children&&ft(zt[Qt].children,en,pn)}},it=Object(c.a)(D),Ge(it,we,function(ft,zt,en){en.splice(zt,1),qe=ft}),ye.dropToGap?(ye.node.props.children||[]).length>0&&ye.node.props.expanded&&Be===1?Ge(it,Ae,function(ft){ft.children=ft.children||[],ft.children.unshift(qe)}):(Ge(it,Ae,function(ft,zt,en){Xt=en,jt=zt}),Be===-1?Xt.splice(jt,0,qe):Xt.splice(jt+1,0,qe)):Ge(it,Ae,function(ft){ft.children=ft.children||[],ft.children.unshift(qe)}),gt.next=17,re({stage_id:ce.stage_id,list:it});case 17:lt(it,0,0,!0),console.log("data:",it),y(Object(c.a)(it)),z([].concat(Object(c.a)(ie),[ye.node.key]));case 21:case"end":return gt.stop()}},ve)}));return function(ye){return Ie.apply(this,arguments)}}(),lt=function Ie(ve,ye,Ae,we){ye=ye||0,ve.map(function(De,Be){try{var Ge;return De.key2=ye+1+"-"+(Be+1),De.key3=ce.index+1+"-"+(Be+1),De.title="",we||(De.key=ye+1+"-"+(Be+1)),ye?De.index=Ae+"-"+(Be+1):De.index=De.key3,((Ge=De.children)===null||Ge===void 0?void 0:Ge.length)&&(ne.push(De.key2),Ie(De.children,De.key2,De.index,we)),De}catch(it){}})},Je=function(ve){if(se!=="All")return;ie.includes(ve)?z(ie.filter(function(ye){return ye!=ve})):z(ie.concat(ve))},Ve=function(){var Ie=Object(a.a)(i.a.mark(function ve(ye){return i.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(Object(ee.e)(ue)){we.next=2;break}return we.abrupt("return");case 2:if(!(ye==null?void 0:ye.need_authorize)){we.next=5;break}return Object(ee.a)(!1),we.abrupt("return");case 5:if(!(J==null?void 0:J.course_id)){we.next=8;break}return we.next=8,Object(C.L)({id:J==null?void 0:J.course_id});case 8:be(ye.identifier,ye.is_jupyter);case 9:case"end":return we.stop()}},ve)}));return function(ye){return Ie.apply(this,arguments)}}(),tt=function(){var Ie=Object(a.a)(i.a.mark(function ve(ye){var Ae,we,De;return i.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Object(ee.e)(ue)){Ge.next=2;break}return Ge.abrupt("return");case 2:if(!(!((Ae=Y.userInfo)===null||Ae===void 0?void 0:Ae.admin)&&!((we=Y.userInfo)===null||we===void 0?void 0:we.business)&&!ye.can_view)){Ge.next=4;break}return Ge.abrupt("return",h.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:f.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")}));case 4:ye.link&&Object(L.o)({is_f:1,id:ye.id,point:0,total:0}),De=(ce==null?void 0:ce.course_id)?"course_id=".concat(ce==null?void 0:ce.course_id):"subject_id=".concat(R.pathId||ce.subject_id),Object(v.J)(ye.link||"/video/".concat(ye.id,"?").concat(De)),ye.last_point>0||(J==null?void 0:J.course_id)&&Object(C.L)({id:J==null?void 0:J.course_id});case 8:case"end":return Ge.stop()}},ve)}));return function(ye){return Ie.apply(this,arguments)}}();return f.a.createElement(f.a.Fragment,null,f.a.createElement(Fe.a,{className:k.a.tree,disabled:ce.disabled,expandedKeys:Object(c.a)(ie),draggable:!0,onDragEnter:le,onDrop:Ke,onExpand:Je,blockNode:!0,titleRender:function(ve){var ye,Ae,we,De=ve;return De.item_type!==se&&se!=="All"?null:f.a.createElement(n.a,{align:"middle",className:"font14",onClick:function(){return Je(De.key)}},f.a.createElement(o.a,{flex:"30px"},ve.item_type==="Shixun"?f.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):ve.item_type==="VideoItem"?f.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):ve.item_type==="StageCatalog"?f.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):f.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"})),f.a.createElement(o.a,{flex:"1",className:"c-grey-333"},ce.cust_seq&&f.a.createElement("span",{className:"mr10"},ve.index),ve.item_type==="StageCatalog"&&ve.name,ve.item_type!=="StageCatalog"&&f.a.createElement("a",{className:"c-grey-333",target:"_blank",onClick:Object(a.a)(i.a.mark(function Be(){var Ge;return i.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(Object(ee.e)(ue)){qe.next=2;break}return qe.abrupt("return");case 2:if(!(J==null?void 0:J.course_id)){qe.next=6;break}return qe.next=5,Object(C.L)({id:J==null?void 0:J.course_id});case 5:Ge=qe.sent;case 6:qe.t0=ve.item_type,qe.next=qe.t0==="Attachment"?9:qe.t0==="VideoItem"?11:qe.t0==="Shixun"?13:15;break;case 9:return Object(v.J)(ve.url),qe.abrupt("break",15);case 11:return tt(ve),qe.abrupt("break",15);case 13:return Ve(ve),qe.abrupt("break",15);case 15:case"end":return qe.stop()}},Be)}))},ve.name),ve.item_type==="Shixun"&&ve.is_unity_3d&&f.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),!!((ye=ve.schools)===null||ye===void 0?void 0:ye.length)&&f.a.createElement(g.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},f.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),ve.item_type==="Shixun"&&!!(ve==null?void 0:ve.finished_challenges_count)&&f.a.createElement(g.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((ve==null?void 0:ve.finished_challenges_count)/(ve==null?void 0:ve.challenges_count)*100),"%")},f.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((ve==null?void 0:ve.finished_challenges_count)-(ve==null?void 0:ve.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ce.disabled&&f.a.createElement("aside",{style:{color:"#1890FF",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),f.a.createElement(o.a,{className:"tr"},!ce.disabled&&f.a.createElement(f.a.Fragment,null,f.a.createElement(g.a,{title:"\u5220\u9664"},f.a.createElement("span",{onClick:function(){ce.deleteStages({id:De.stage_item_id,stage_id:ce.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ce.showVideoPlay&&ce.disabled&&De.item_type==="VideoItem"&&f.a.createElement("aside",null,f.a.createElement(x.a,{type:"primary",onClick:Object(a.a)(i.a.mark(function Be(){return i.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:tt(De);case 1:case"end":return it.stop()}},Be)}))},De.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Ae=Y.userInfo)===null||Ae===void 0?void 0:Ae.admin)||De.allow_visit||De.to_be_built||De.shixun_status!=="\u6682\u672A\u516C\u5F00"&&De.shixun_status!=="\u5DF2\u5220\u9664")&&ce.disabled&&De.item_type==="Shixun"&&f.a.createElement("aside",null,f.a.createElement(x.a,{className:"ml10",type:"primary",onClick:Object(a.a)(i.a.mark(function Be(){return i.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Object(ee.e)(ue)){it.next=2;break}return it.abrupt("return");case 2:if(!(J==null?void 0:J.course_id)){it.next=5;break}return it.next=5,Object(C.L)({id:J==null?void 0:J.course_id});case 5:window.open("/shixuns/".concat(De.identifier,"/challenges"));case 6:case"end":return it.stop()}},Be)}))},"\u67E5\u770B\u8BE6\u60C5"),De.shixun_status!=="\u6682\u672A\u516C\u5F00"&&f.a.createElement(x.a,{className:"ml10",type:"primary",onClick:Object(a.a)(i.a.mark(function Be(){return i.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:Ve(De);case 1:case"end":return it.stop()}},Be)}))},(De==null?void 0:De.need_authorize)?"\u9700\u6388\u6743":(ve==null?void 0:ve.finished_challenges_count)?(ve==null?void 0:ve.finished_challenges_count)-(ve==null?void 0:ve.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ce.disabled&&!De.allow_visit&&!De.to_be_built&&De.shixun_status==="\u6682\u672A\u516C\u5F00"&&f.a.createElement("span",{className:k.a.color204},"\u6682\u672A\u516C\u5F00"),!De.allow_visit&&!De.to_be_built&&De.shixun_status==="\u5DF2\u5220\u9664"&&f.a.createElement("span",{className:k.a.color204},"\u5DF2\u5220\u9664"),ce.disabled&&De.item_type==="Shixun"&&!!De.challenges_count&&f.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",De.challenges_count),se==="All"&&!!((we=ve.children)===null||we===void 0?void 0:we.length)&&f.a.createElement("span",{className:"ml10"},ie.includes(ve.key)?f.a.createElement(te.a,null):f.a.createElement(F.a,null))))},treeData:D}))};de.a=Object(A.a)(function(N){var I=N.pathsDetail,B=N.loading,X=N.user,Y=N.globalSetting;return{pathsDetail:I,globalSetting:Y,user:X,loading:B.effects}})(V)},kSUc:function(ze,de,M){},"kaH+":function(ze,de,M){"use strict";var Ue=M("+L6B"),Fe=M("2/Rp"),_e=M("k16G"),n=M("q1tI"),P=M.n(n),x=M("UZu5"),d=M.n(x),g=M("dhSg"),r=M("rLCj"),o=M("dF/Y"),p=M("4i/N");de.a=function(){var s=Object(n.useState)(""),e=Object(_e.a)(s,2),i=e[0],a=e[1],l=Object(n.useState)(0),h=Object(_e.a)(l,2),c=h[0],S=h[1],E=Object(n.useRef)("");Object(n.useEffect)(function(){var f=g.a.subscribe("preview-image",function(_){a(_),document.body.style.overflow="hidden"});return f},[]),Object(n.useEffect)(function(){return document.addEventListener("keydown",m),function(){document.removeEventListener("keydown",m)}},[]),Object(n.useEffect)(function(){E.current=i},[i]);function m(f){f.keyCode==27&&E.current&&T()}function T(){document.body.style.overflow="auto",a("")}function w(){S(c+90)}return P.a.createElement(n.Fragment,null,i?P.a.createElement("div",{className:"image-preview-container"},P.a.createElement("div",{className:"button-group"},P.a.createElement(Fe.a,{onClick:w},"\u65CB\u8F6C",P.a.createElement(r.a,null)),P.a.createElement(Fe.a,{href:i},"\u4E0B\u8F7D",P.a.createElement(o.a,null)),P.a.createElement(Fe.a,{onClick:T},"\u5173\u95ED",P.a.createElement(p.a,null))),P.a.createElement("div",{className:"preview-wrp-group"},P.a.createElement("img",{className:"image-preview",src:i,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(c,"deg)")}}))):null)}},kwm0:function(ze,de,M){ze.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(ze,de,M){ze.exports=M.p+"static/403Qrcode.6c17b6f4.png"},qGJc:function(ze,de,M){(function(Ue){var Fe,Fe;!function(_e){if(!0)window.OSS=_e(),ze.exports=_e();else var n}(function(){var _e;return function(){function n(P,x,d){function g(p,s){if(!x[p]){if(!P[p]){var e=typeof Fe=="function"&&Fe;if(!s&&e)return Fe(p,!0);if(r)return r(p,!0);var i=new Error("Cannot find module '"+p+"'");throw i.code="MODULE_NOT_FOUND",i}var a=x[p]={exports:{}};P[p][0].call(a.exports,function(l){return g(P[p][1][l]||l)},a,a.exports,n,P,x,d)}return x[p].exports}for(var r=typeof Fe=="function"&&Fe,o=0;o<d.length;o++)g(d[o]);return g}return n}()({1:[function(n,P,x){"use strict";var d=n("./browser/client");d.Buffer=n("buffer").Buffer,d.co=n("co"),d.urllib=n("../shims/xhr"),d.version=n("./browser/version").version,P.exports=d},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,P,x){(function(d,g){"use strict";function r(V){return V&&V.__esModule?V:{default:V}}function o(V,N){return V[N]||V[N.toLowerCase()]}function p(V,N){var I=v.parse(V);if(!I.protocol){var B=N?"https://":"http://";I=v.parse(B+V)}if(I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}function s(V,N,I){var B=I?"https://":"http://",X=N?"-internal.aliyuncs.com":".aliyuncs.com";return V.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(X=".aliyuncs.com"),v.parse(B+V+X)}function e(){return document&&document.location&&document.location.protocol==="https:"}function i(V,N){if(!(this instanceof i))return new i(V,N);V&&V.inited?this.options=V:this.options=i.initOptions(V),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=b,this.agent=this.options.agent||ee),this.ctx=N,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var a=n("babel-runtime/regenerator"),l=r(a),h=n("babel-runtime/core-js/object/keys"),c=r(h),S=n("debug")("ali-oss"),E=n("./../../shims/crypto/crypto.js"),m=n("path"),T=n("copy-to"),w=n("mime"),f=n("xml2js"),_=n("humanize-ms"),A=n("agentkeepalive"),C=n("merge-descriptors"),v=n("url"),L=n("is-type-of"),U=n("platform"),j=n("utility"),b=n("urllib"),k=n("./version"),H=n("dateformat"),G=n("bowser"),te=n("../common/signUtils"),F=n("../common/utils"),ee=new A;P.exports=i,i.initOptions=function(V){if(!V||!V.accessKeyId||!V.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var N=e(),I={region:"oss-cn-hangzhou",internal:!1,secure:N,bucket:null,endpoint:null,cname:!1};if((0,c.default)(V).forEach(function(B){V[B]!==void 0&&(I[B]=V[B])}),I.accessKeyId=I.accessKeyId.trim(),I.accessKeySecret=I.accessKeySecret.trim(),I.timeout&&(I.timeout=_(I.timeout)),I.endpoint)I.endpoint=p(I.endpoint,I.secure);else{if(!I.region)throw new Error("require options.endpoint or options.region");I.endpoint=s(I.region,I.internal,I.secure)}return I.inited=!0,I};var $=i.prototype;C($,n("./object")),C($,n("./managed_upload")),C($,n("../common/multipart")),C($,n("../common/thunkpool.js")),i.Wrapper=n("./wrapper"),$.signature=function(V){return S("authorization stringToSign: %s",V),te.computeSignature(this.options.accessKeySecret,V)},$.authorization=function(V,N,I,B){var X=te.buildCanonicalString(V.toUpperCase(),N,{headers:B,parameters:I});return te.authorization(this.options.accessKeyId,this.options.accessKeySecret,X)},$.createRequest=function(V){var N={"x-oss-date":H(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(N["x-oss-security-token"]=this.options.stsToken),T(V.headers).to(N),o(N,"Content-Type")||(V.mime===w.default_type&&(V.mime=""),V.mime&&V.mime.indexOf("/")>0?N["Content-Type"]=V.mime:N["Content-Type"]=w.getType(V.mime||m.extname(V.object||""))||"application/octet-stream"),V.content&&(N["Content-Md5"]=E.createHash("md5").update(new g(V.content,"utf8")).digest("base64"),N["Content-Length"]||(N["Content-Length"]=V.content.length));var I=this._getResource(V);N.authorization=this.authorization(V.method,I,V.subres,N);var B=this._getReqUrl(V);S("request %s %s, with headers %j, !!stream: %s",V.method,B,N,!!V.stream);var X=V.timeout||this.options.timeout;return{url:B,params:{agent:this.agent,method:V.method,content:V.content,stream:V.stream,headers:N,timeout:X,writeStream:V.writeStream,customResponse:V.customResponse,ctx:V.ctx||this.ctx}}},$.request=l.default.mark(function V(N){var I,B,X,Y;return l.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return I=this.createRequest(N),B=void 0,X=void 0,Z.prev=3,Z.next=6,this.urllib.request(I.url,I.params);case 6:B=Z.sent,S("response %s %s, got %s, headers: %j",N.method,I.url,B.status,B.headers),Z.next=13;break;case 10:Z.prev=10,Z.t0=Z.catch(3),X=Z.t0;case 13:if(Y=void 0,!B||!N.successStatuses||N.successStatuses.indexOf(B.status)!==-1){Z.next=26;break}return Z.next=17,this.requestError(B);case 17:if(Y=Z.sent,Y.code!=="RequestTimeTooSkewed"){Z.next=23;break}return this.options.amendTimeSkewed=+new Date(Y.serverTime)-new Date,Z.next=22,this.request(N);case 22:return Z.abrupt("return",Z.sent);case 23:Y.params=N,Z.next=30;break;case 26:if(!X){Z.next=30;break}return Z.next=29,this.requestError(X);case 29:Y=Z.sent;case 30:if(!Y){Z.next=32;break}throw Y;case 32:if(!N.xmlResponse){Z.next=36;break}return Z.next=35,this.parseXML(B.data);case 35:B.data=Z.sent;case 36:return Z.abrupt("return",B);case 37:case"end":return Z.stop()}},V,this,[[3,10]])}),$._getResource=function(V){var N="/";return V.bucket&&(N+=V.bucket+"/"),V.object&&(N+=V.object),N},$._isIP=function(V){return F._isIP(V)},$._escape=function(V){return j.encodeURIComponent(V).replace(/%2F/g,"/")},$._getReqUrl=function(V){var N={};T(this.options.endpoint).to(N);var I=this._isIP(N.hostname),B=this.options.cname;!V.bucket||B||I||(N.host=V.bucket+"."+N.host);var X="/";V.bucket&&I&&(X+=V.bucket+"/"),V.object&&(X+=this._escape(V.object).replace(/\+/g,"%2B")),N.pathname=X;var Y={};if(V.query&&C(Y,V.query),V.subres){var Z={};L.string(V.subres)?Z[V.subres]="":L.array(V.subres)?V.subres.forEach(function(se){Z[se]=""}):Z=V.subres,C(Y,Z)}return N.query=Y,v.format(N)},$._getUserAgent=function(){var V=d&&d.browser?"js":"nodejs",N="aliyun-sdk-"+V+"/"+k.version,I=U.description;return!I&&d&&(I="Node.js "+d.version.slice(1)+" on "+d.platform+" "+d.arch),this._checkUserAgent(N+" "+I)},$._checkUserAgent=function(V){return V.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(V,N){return G.name===V&&G.version.split(".")[0]===N},$.parseXML=function(V){return function(N){g.isBuffer(V)&&(V=V.toString()),f.parseString(V,{explicitRoot:!1,explicitArray:!1},N)}},$.requestError=l.default.mark(function V(N){var I,B,X,Y;return l.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(I=null,N.data&&N.data.length){Z.next=5;break}N.status===-1||N.status===-2?(I=new Error(N.message),I.name=N.name,I.status=N.status,I.code=N.name):(N.status===404?(I=new Error("Object not exists"),I.name="NoSuchKeyError",I.status=404,I.code="NoSuchKey"):N.status===412?(I=new Error("Pre condition failed"),I.name="PreconditionFailedError",I.status=412,I.code="PreconditionFailed"):(I=new Error("Unknow error, status: "+N.status),I.name="UnknowError",I.status=N.status),I.requestId=N.headers["x-oss-request-id"],I.host=""),Z.next=30;break;case 5:return B=String(N.data),S("request response error data: %s",B),X=void 0,Z.prev=8,Z.next=11,this.parseXML(B)||{};case 11:X=Z.sent,Z.next=21;break;case 14:return Z.prev=14,Z.t0=Z.catch(8),S(B),Z.t0.message+=`
|
|
|
raw xml: `+B,Z.t0.status=N.status,Z.t0.requestId=N.headers["x-oss-request-id"],Z.abrupt("return",Z.t0);case 21:Y=X.Message||"unknow request error, status: "+N.status,X.Condition&&(Y+=" (condition: "+X.Condition+")"),I=new Error(Y),I.name=X.Code?X.Code+"Error":"UnknowError",I.status=N.status,I.code=X.Code,I.requestId=X.RequestId,I.hostId=X.HostId,I.serverTime=X.ServerTime;case 30:return S("generate error %j",I),Z.abrupt("return",I);case 32:case"end":return Z.stop()}},V,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,P,x){(function(d){"use strict";function g(T){return T&&T.__esModule?T:{default:T}}function r(T,w){if(!(this instanceof r))return new r(T,w);m.call(this,w),this.file=T,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var o=n("babel-runtime/core-js/array/from"),p=g(o),s=n("babel-runtime/regenerator"),e=g(s),i=n("is-type-of"),a=n("util"),l=n("path"),h=n("mime"),c=n("copy-to"),S=x;S.multipartUpload=e.default.mark(function T(w,f,_){var A,C,v,L,U,j,b,k,H;return e.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){G.next=6;break}return G.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return G.abrupt("return",G.sent);case 6:return A=102400,_.mime||(i.file(f)?_.mime=h.getType(l.extname(f.name)):i.blob(f)?_.mime=f.type:_.mime=h.getType(l.extname(f))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),G.next=12,this._getFileSize(f);case 12:if(!((C=G.sent)<A)){G.next=25;break}return v=this._createStream(f,0,C),_.contentLength=C,G.next=18,this.putStream(w,v,_);case 18:if(L=G.sent,!_||!_.progress){G.next=22;break}return G.next=22,_.progress(1);case 22:return U={res:L.res,bucket:this.options.bucket,name:w,etag:L.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(U.data=L.data),G.abrupt("return",U);case 25:if(!(_.partSize&&_.partSize<A)){G.next=27;break}throw new Error("partSize must not be smaller than "+A);case 27:return G.next=29,this.initMultipartUpload(w,_);case 29:if(j=G.sent,b=j.uploadId,k=this._getPartSize(C,_.partSize),H={file:f,name:w,fileSize:C,partSize:k,uploadId:b,doneParts:[]},!_||!_.progress){G.next=36;break}return G.next=36,_.progress(0,H,j.res);case 36:return G.next=38,this._resumeMultipart(H,_);case 38:return G.abrupt("return",G.sent);case 39:case"end":return G.stop()}},T,this)}),S._resumeMultipart=e.default.mark(function T(w,f){var _,A,C,v,L,U,j,b,k,H,G,te,F,ee,$,V,N,I,B,X,Y;return e.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!this.isCancel()){Z.next=2;break}throw this._makeCancelEvent();case 2:if(_=w.file,A=w.fileSize,C=w.partSize,v=w.uploadId,L=w.doneParts,U=w.name,j=[],L.length>0&&c(L).to(j),b=this._divideParts(A,C),k=b.length,H=!1,G=e.default.mark(function se(re,ue){var ce,q,Q;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(re.isCancel()){ie.next=21;break}return ie.prev=1,ce=b[ue-1],q={stream:re._createStream(_,ce.start,ce.end),size:ce.end-ce.start},ie.next=6,re._uploadPart(U,v,ue,q);case 6:if(Q=ie.sent,re.isCancel()||H){ie.next=13;break}if(w.doneParts.push({number:ue,etag:Q.res.headers.etag}),j.push({number:ue,etag:Q.res.headers.etag}),!f||!f.progress){ie.next=13;break}return ie.next=13,f.progress(L.length/k,w,Q.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),re.isCancel()){ie.next=21;break}throw re.cancel(),ie.t0.partNum=ue,ie.t0;case 21:case"end":return ie.stop()}},se,this,[[1,15]])}),te=(0,p.default)(new Array(k),function(se,re){return re+1}),F=j.map(function(se){return se.number}),ee=te.filter(function(se){return F.indexOf(se)<0}),$=5,V=f.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&V!==1){Z.next=26;break}N=0;case 16:if(!(N<ee.length)){Z.next=24;break}if(!this.isCancel()){Z.next=19;break}throw this._makeCancelEvent();case 19:return Z.next=21,G(this,ee[N]);case 21:N++,Z.next=16;break;case 24:Z.next=40;break;case 26:for(I=[],B=0;B<ee.length;B++)I.push(G(this,ee[B]));return Z.next=30,this._thunkPool(I,V);case 30:if(X=Z.sent,H=!0,!(X&&X.length>0)){Z.next=37;break}throw this.resetCancelFlag(),Y=X[0],Y.message="Failed to upload some parts with error: "+Y.toString()+" part_num: "+Y.partNum,Y;case 37:if(!this.isCancel()){Z.next=40;break}throw I=null,this._makeCancelEvent();case 40:return Z.next=42,this.completeMultipartUpload(U,v,j,f);case 42:return Z.abrupt("return",Z.sent);case 43:case"end":return Z.stop()}},T,this)}),i.file=function(T){return typeof File!="undefined"&&T instanceof File},i.blob=function(T){return typeof Blob!="undefined"&&T instanceof Blob},S._getFileSize=e.default.mark(function T(w){var f;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!i.buffer(w)){_.next=4;break}return _.abrupt("return",w.length);case 4:if(!i.blob(w)&&!i.file(w)){_.next=6;break}return _.abrupt("return",w.size);case 6:if(!i.string(w)){_.next=11;break}return _.next=9,this._statFile(w);case 9:return f=_.sent,_.abrupt("return",f.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return _.stop()}},T,this)});var E=n("stream"),m=E.Readable;a.inherits(r,m),r.prototype.readFileAndPush=function(T){if(this.fileBuffer)for(var w=!0;w&&this.fileBuffer&&this.start<this.fileBuffer.length;){var f=this.start,_=f+T;_=_>this.fileBuffer.length?this.fileBuffer.length:_,this.start=_,w=this.push(this.fileBuffer.slice(f,_))}},r.prototype._read=function(T){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);T=T||16384;var w=this;this.reader.onload=function(f){w.fileBuffer=new d(new Uint8Array(f.target.result)),w.file=null,w.readFileAndPush(T)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(T)},S._createStream=function(T,w,f){if(i.blob(T)||i.file(T))return new r(T.slice(w,f));throw new Error("_createStream requires File/String.")},S._getPartSize=function(T,w){return w?Math.max(Math.ceil(T/1e4),w):1048576},S._divideParts=function(T,w){for(var f=Math.ceil(T/w),_=[],A=0;A<f;A++){var C=w*A,v=Math.min(C+w,T);_.push({start:C,end:v})}return _},S._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,P,x){"use strict";function d(w){return w&&w.__esModule?w:{default:w}}var g=n("babel-runtime/core-js/object/keys"),r=d(g),o=n("babel-runtime/regenerator"),p=d(o),s=n("debug")("ali-oss:object"),e=n("utility"),i=n("fs"),a=n("is-type-of"),l=n("url"),h=n("copy-to"),c=n("path"),S=n("mime"),E=n("../common/callback"),m=n("../common/signUtils"),T=x;T.append=p.default.mark(function w(f,_,A){var C;return p.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return A=A||{},A.position===void 0&&(A.position="0"),A.subres={append:"",position:A.position},A.method="POST",v.next=6,this.put(f,_,A);case 6:return C=v.sent,C.nextAppendPosition=C.res.headers["x-oss-next-append-position"],v.abrupt("return",C);case 9:case"end":return v.stop()}},w,this)}),T.put=p.default.mark(function w(f,_,A){var C,v,L,U,j,b;return p.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(C=void 0,A=A||{},!a.buffer(_)){k.next=6;break}C=_,k.next=18;break;case 6:if(!a.blob(_)&&!a.file(_)){k.next=17;break}return A.mime||(a.file(_)?A.mime=S.getType(c.extname(_.name)):A.mime=_.type),v=this._createStream(_,0,_.size),k.next=11,this._getFileSize(_);case 11:return A.contentLength=k.sent,k.next=14,this.putStream(f,v,A);case 14:return k.abrupt("return",k.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),L=A.method||"PUT",U=this._objectRequestParams(L,f,A),E.encodeCallback(U,A),U.mime=A.mime,U.content=C,U.successStatuses=[200],k.next=28,this.request(U);case 28:return j=k.sent,b={name:f,url:this._objectUrl(f),res:j.res},U.headers&&U.headers["x-oss-callback"]&&(b.data=JSON.parse(j.data.toString())),k.abrupt("return",b);case 32:case"end":return k.stop()}},w,this)}),T.putStream=p.default.mark(function w(f,_,A){var C,v,L,U;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return A=A||{},A.headers=A.headers||{},A.contentLength?A.headers["Content-Length"]=A.contentLength:A.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(A.meta,A.headers),C=A.method||"PUT",v=this._objectRequestParams(C,f,A),E.encodeCallback(v,A),v.mime=A.mime,v.stream=_,v.successStatuses=[200],j.next=12,this.request(v);case 12:return L=j.sent,U={name:f,url:this._objectUrl(f),res:L.res},v.headers&&v.headers["x-oss-callback"]&&(U.data=JSON.parse(L.data.toString())),j.abrupt("return",U);case 16:case"end":return j.stop()}},w,this)}),T.head=p.default.mark(function w(f,_){var A,C,v;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return A=this._objectRequestParams("HEAD",f,_),A.successStatuses=[200,304],L.next=4,this.request(A);case 4:return C=L.sent,v={meta:null,res:C.res,status:C.status},C.status===200&&(0,r.default)(C.headers).forEach(function(U){U.indexOf("x-oss-meta-")===0&&(v.meta||(v.meta={}),v.meta[U.substring(11)]=C.headers[U])}),L.abrupt("return",v);case 8:case"end":return L.stop()}},w,this)}),T.get=p.default.mark(function w(f,_,A){var C,v,L,U;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return C=null,v=!1,a.writableStream(_)?C=_:a.string(_)?(C=i.createWriteStream(_),v=!0):A=_,A=A||{},A.process&&(A.subres=A.subres||{},A.subres["x-oss-process"]=A.process),L=void 0,j.prev=6,U=this._objectRequestParams("GET",f,A),U.writeStream=C,U.successStatuses=[200,206,304],j.next=12,this.request(U);case 12:L=j.sent,v&&C.destroy(),j.next=24;break;case 16:if(j.prev=16,j.t0=j.catch(6),!v){j.next=23;break}return C.destroy(),s("get error: %s, delete the exists file %s",j.t0,_),j.next=23,this._deleteFileSafe(_);case 23:throw j.t0;case 24:return j.abrupt("return",{res:L.res,content:L.data});case 25:case"end":return j.stop()}},w,this,[[6,16]])}),T.getStream=p.default.mark(function w(f,_){var A,C;return p.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return _=_||{},A=this._objectRequestParams("GET",f,_),A.customResponse=!0,A.successStatuses=[200,206,304],v.next=6,this.request(A);case 6:return C=v.sent,v.abrupt("return",{stream:C.res,res:{status:C.status,headers:C.headers}});case 8:case"end":return v.stop()}},w,this)}),T.delete=p.default.mark(function w(f,_){var A,C;return p.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return A=this._objectRequestParams("DELETE",f,_),A.successStatuses=[204],v.next=4,this.request(A);case 4:return C=v.sent,v.abrupt("return",{res:C.res});case 6:case"end":return v.stop()}},w,this)}),T.deleteMulti=p.default.mark(function w(f,_){var A,C,v,L,U,j;return p.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(_=_||{},A=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,_.quiet?A+=` <Quiet>true</Quiet>
|
|
|
`:A+=` <Quiet>false</Quiet>
|
|
|
`,C=0;C<f.length;C++)A+=" <Object><Key>"+e.escape(this._objectName(f[C]))+`</Key></Object>
|
|
|
`;return A+="</Delete>",s("delete multi objects: %s",A),_.subres="delete",v=this._objectRequestParams("POST","",_),v.mime="xml",v.content=A,v.xmlResponse=!0,v.successStatuses=[200],b.next=14,this.request(v);case 14:return L=b.sent,U=L.data,j=U&&U.Deleted||null,j&&(Array.isArray(j)||(j=[j]),j=j.map(function(k){return k.Key})),b.abrupt("return",{res:L.res,deleted:j});case 19:case"end":return b.stop()}},w,this)}),T.copy=p.default.mark(function w(f,_,A){var C,v,L;return p.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return A=A||{},A.headers=A.headers||{},(0,r.default)(A.headers).forEach(function(j){A.headers["x-oss-copy-source-"+j.toLowerCase()]=A.headers[j]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),_=_[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(_):"/"+encodeURIComponent(_.slice(1)),A.headers["x-oss-copy-source"]=_,C=this._objectRequestParams("PUT",f,A),C.xmlResponse=!0,C.successStatuses=[200,304],U.next=12,this.request(C);case 12:return v=U.sent,L=v.data,L&&(L={etag:L.ETag,lastModified:L.LastModified}),U.abrupt("return",{data:L,res:v.res});case 16:case"end":return U.stop()}},w,this)}),T.putMeta=p.default.mark(function w(f,_,A){return p.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.copy(f,f,{meta:_||{},timeout:A&&A.timeout,ctx:A&&A.ctx});case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}},w,this)}),T.list=p.default.mark(function w(f,_){var A,C,v,L,U;return p.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return A=this._objectRequestParams("GET","",_),A.query=f,A.xmlResponse=!0,A.successStatuses=[200],j.next=6,this.request(A);case 6:return C=j.sent,v=C.data.Contents,L=this,v&&(Array.isArray(v)||(v=[v]),v=v.map(function(b){return{name:b.Key,url:L._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}}})),U=C.data.CommonPrefixes||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(b){return b.Prefix})),j.abrupt("return",{res:C.res,objects:v,prefixes:U,nextMarker:C.data.NextMarker||null,isTruncated:C.data.IsTruncated==="true"});case 13:case"end":return j.stop()}},w,this)}),T.putACL=p.default.mark(function w(f,_,A){var C,v;return p.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return A=A||{},A.subres="acl",A.headers=A.headers||{},A.headers["x-oss-object-acl"]=_,f=this._objectName(f),C=this._objectRequestParams("PUT",f,A),C.successStatuses=[200],L.next=9,this.request(C);case 9:return v=L.sent,L.abrupt("return",{res:v.res});case 11:case"end":return L.stop()}},w,this)}),T.getACL=p.default.mark(function w(f,_){var A,C;return p.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return _=_||{},_.subres="acl",f=this._objectName(f),A=this._objectRequestParams("GET",f,_),A.successStatuses=[200],A.xmlResponse=!0,v.next=8,this.request(A);case 8:return C=v.sent,v.abrupt("return",{acl:C.data.AccessControlList.Grant,owner:{id:C.data.Owner.ID,displayName:C.data.Owner.DisplayName},res:C.res});case 10:case"end":return v.stop()}},w,this)}),T.restore=p.default.mark(function w(f,_){var A,C;return p.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return _=_||{},_.subres="restore",A=this._objectRequestParams("POST",f,_),A.successStatuses=[202],v.next=6,this.request(A);case 6:return C=v.sent,v.abrupt("return",{res:C.res});case 8:case"end":return v.stop()}},w,this)}),T.signatureUrl=function(w,f){f=f||{},w=this._objectName(w),f.method=f.method||"GET";var _=e.timestamp()+(f.expires||1800),A={bucket:this.options.bucket,object:w},C=this._getResource(A);this.options.stsToken&&(f["security-token"]=this.options.stsToken);var v=m._signatureForURL(this.options.accessKeySecret,f,C,_),L=l.parse(this._getReqUrl(A));return L.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:v.Signature},h(v.subResource).to(L.query),L.format()},T.getObjectUrl=function(w,f){return f?f[f.length-1]!=="/"&&(f+="/"):f=this.options.endpoint.format(),f+this._escape(this._objectName(w))},T._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},T.generateObjectUrl=function(w,f){if(f)f[f.length-1]!=="/"&&(f+="/");else{f=this.options.endpoint.format();var _=l.parse(f),A=this.options.bucket;_.hostname=A+"."+_.hostname,_.host=A+"."+_.host,f=_.format()}return f+this._escape(this._objectName(w))},T._objectRequestParams=function(w,f,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},f=this._objectName(f);var A={object:f,bucket:this.options.bucket,method:w,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(A.headers={},h(_.headers).to(A.headers)),A},T._objectName=function(w){return w.replace(/^\/+/,"")},T._statFile=function(w){return function(f){i.stat(w,f)}},T._convertMetaToHeaders=function(w,f){w&&(0,r.default)(w).forEach(function(_){f["x-oss-meta-"+_]=w[_]})},T._deleteFileSafe=function(w){return function(f){i.exists(w,function(_){_?i.unlink(w,function(A){A&&s("unlink %j error: %s",w,A),f()}):f()})}}},{"../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,P,x){"use strict";x.version="5.3.1"},{}],6:[function(n,P,x){"use strict";function d(c){return c&&c.__esModule?c:{default:c}}function g(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function r(c){if(!c)return!1;var S=c.constructor;return!!S&&(S.name==="GeneratorFunction"||S.displayName==="GeneratorFunction"||g(S.prototype)||g(c.prototype))}function o(c,S){var E=new c(S),m=(0,a.default)(E),T=(0,a.default)((0,e.default)(E));m.concat(T).forEach(function(w){r(E[w])?this[w]=l.wrap(E[w]).bind(E):this[w]=E[w]},this)}function p(c){if(!(this instanceof p))return new p(c);o.call(this,h,c)}var s=n("babel-runtime/core-js/object/get-prototype-of"),e=d(s),i=n("babel-runtime/core-js/object/keys"),a=d(i),l=n("co"),h=n("./client");P.exports=p,p.STS=function c(S){if(!(this instanceof c))return new c(S);o.call(this,h.STS,S)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,P,x){(function(d){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}var r=n("babel-runtime/core-js/object/keys"),o=g(r),p=n("babel-runtime/core-js/json/stringify"),s=g(p);x.encodeCallback=function(e,i){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&i.callback){var a={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};i.callback.host&&(a.callbackHost=i.callback.host),i.callback.contentType&&(a.callbackBodyType=i.callback.contentType);var l=new d((0,s.default)(a)).toString("base64");if(e.headers["x-oss-callback"]=l,i.callback.customValue){var h={};(0,o.default)(i.callback.customValue).forEach(function(c){h["x:"+c]=i.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new d((0,s.default)(h)).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,P,x){"use strict";var d=n("babel-runtime/regenerator"),g=function(s){return s&&s.__esModule?s:{default:s}}(d),r=n("copy-to"),o=n("./callback"),p=x;p.listUploads=g.default.mark(function s(e,i){var a,l,h,c;return g.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return i=i||{},a={},r(i).to(a),a.subres="uploads",l=this._objectRequestParams("GET","",a),l.query=e,l.xmlResponse=!0,l.successStatuses=[200],S.next=10,this.request(l);case 10:return h=S.sent,c=h.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),S.abrupt("return",{res:h.res,uploads:c,bucket:h.data.Bucket,nextKeyMarker:h.data.NextKeyMarker,nextUploadIdMarker:h.data.NextUploadIdMarker,isTruncated:h.data.IsTruncated==="true"});case 15:case"end":return S.stop()}},s,this)}),p.listParts=g.default.mark(function s(e,i,a,l){var h,c,S;return g.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return l=l||{},h={},r(l).to(h),h.subres={uploadId:i},c=this._objectRequestParams("GET",e,h),c.query=a,c.xmlResponse=!0,c.successStatuses=[200],E.next=10,this.request(c);case 10:return S=E.sent,E.abrupt("return",{res:S.res,uploadId:S.data.UploadId,bucket:S.data.Bucket,name:S.data.Key,partNumberMarker:S.data.PartNumberMarker,nextPartNumberMarker:S.data.NextPartNumberMarker,maxParts:S.data.MaxParts,isTruncated:S.data.IsTruncated,parts:S.data.Part||[]});case 12:case"end":return E.stop()}},s,this)}),p.abortMultipartUpload=g.default.mark(function s(e,i,a){var l,h,c;return g.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return this.cancel(),a=a||{},l={},r(a).to(l),l.subres={uploadId:i},h=this._objectRequestParams("DELETE",e,l),h.successStatuses=[204],S.next=9,this.request(h);case 9:return c=S.sent,S.abrupt("return",{res:c.res});case 11:case"end":return S.stop()}},s,this)}),p.initMultipartUpload=g.default.mark(function s(e,i){var a,l,h;return g.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=i||{},a={},r(i).to(a),a.headers=a.headers||{},this._convertMetaToHeaders(i.meta,a.headers),a.subres="uploads",l=this._objectRequestParams("POST",e,a),l.mime=i.mime,l.xmlResponse=!0,l.successStatuses=[200],c.next=12,this.request(l);case 12:return h=c.sent,c.abrupt("return",{res:h.res,bucket:h.data.Bucket,name:h.data.Key,uploadId:h.data.UploadId});case 14:case"end":return c.stop()}},s,this)}),p.uploadPart=g.default.mark(function s(e,i,a,l,h,c,S){var E;return g.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return E={stream:this._createStream(l,h,c),size:c-h},m.next=3,this._uploadPart(e,i,a,E,S);case 3:return m.abrupt("return",m.sent);case 4:case"end":return m.stop()}},s,this)}),p.completeMultipartUpload=g.default.mark(function s(e,i,a,l){var h,c,S,E,m,T,w,f;return g.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(h=a.concat().sort(function(A,C){return A.number-C.number}).filter(function(A,C,v){return!C||A.number!==v[C-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,S=0;S<h.length;S++)E=h[S],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+E.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+E.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",l=l||{},m={},r(l).to(m),m.subres={uploadId:i},T=this._objectRequestParams("POST",e,m),o.encodeCallback(T,m),T.mime="xml",T.content=c,T.headers&&T.headers["x-oss-callback"]||(T.xmlResponse=!0),T.successStatuses=[200],_.next=16,this.request(T);case 16:return w=_.sent,f={res:w.res,bucket:T.bucket,name:e,etag:w.res.headers.etag},T.headers&&T.headers["x-oss-callback"]&&(f.data=JSON.parse(w.data.toString())),_.abrupt("return",f);case 20:case"end":return _.stop()}},s,this)}),p._uploadPart=g.default.mark(function s(e,i,a,l,h){var c,S,E;return g.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return h=h||{},c={},r(h).to(c),c.headers={"Content-Length":l.size},c.subres={partNumber:a,uploadId:i},S=this._objectRequestParams("PUT",e,c),S.mime=c.mime,S.stream=l.stream,S.successStatuses=[200],m.next=11,this.request(S);case 11:return E=m.sent,l.stream=null,S.stream=null,m.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return m.stop()}},s,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,P,x){(function(d){"use strict";function g(a){return a&&a.__esModule?a:{default:a}}var r=n("babel-runtime/core-js/json/stringify"),o=g(r),p=n("babel-runtime/core-js/object/keys"),s=g(p),e=n("./../../shims/crypto/crypto.js"),i=n("is-type-of");x.buildCanonicalizedResource=function(a,l){var h=""+a,c="?";if(i.string(l)&&l.trim()!=="")h+=c+l;else if(i.array(l))l.sort(),h+=c+l.join("&");else if(l){var S=function(T,w){return T[0]>w[0]?1:T[0]<w[0]?-1:0},E=function(T){h+=c+T,l[T]&&(h+="="+l[T]),c="&"};(0,s.default)(l).sort(S).forEach(E)}return h},x.buildCanonicalString=function(a,l,h,c){h=h||{};var S=h.headers||{},E=[],m={},T=[a.toUpperCase(),S["Content-Md5"]||"",S["Content-Type"]||S["Content-Type".toLowerCase()],c||S["x-oss-date"]];return(0,s.default)(S).forEach(function(w){var f=w.toLowerCase();f.indexOf("x-oss-")===0&&(m[f]=String(S[w]).trim())}),(0,s.default)(m).sort().forEach(function(w){E.push(w+":"+m[w])}),T=T.concat(E),T.push(this.buildCanonicalizedResource(l,h.parameters)),T.join(`
|
|
|
`)},x.computeSignature=function(a,l){return e.createHmac("sha1",a).update(new d(l,"utf8")).digest("base64")},x.authorization=function(a,l,h){return"OSS "+a+":"+this.computeSignature(l,h)},x._signatureForURL=function(a,l,h,c){var S={},E={};if(l.process&&(E["x-oss-process"]=l.process),l.response&&(0,s.default)(l.response).forEach(function(f){var _="response-"+f.toLowerCase();E[_]=l.response[f]}),(0,s.default)(l).forEach(function(f){var _=f.toLowerCase(),A=l[f];_.indexOf("x-oss-")===0?S[_]=A:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?S[f]=A:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(E[_]=A)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(E["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var m={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(m.callbackHost=l.callback.host),l.callback.contentType&&(m.callbackBodyType=l.callback.contentType),E.callback=new d((0,o.default)(m)).toString("base64"),l.callback.customValue){var T={};(0,s.default)(l.callback.customValue).forEach(function(f){T["x:"+f]=l.callback.customValue[f]}),E["callback-var"]=new d((0,o.default)(T)).toString("base64")}}var w=this.buildCanonicalString(l.method,h,{headers:S,parameters:E},c.toString());return{Signature:this.computeSignature(a,w),subResource:E}}}).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,P,x){"use strict";var d=n("babel-runtime/regenerator"),g=function(e){return e&&e.__esModule?e:{default:e}}(d),r=n("co"),o=n("co-priority-queue"),p=n("any-promise"),s=x;s._thunkPool=function(e,i){function a(E,m){++c===E.length&&m(S)}function l(E,m){function T(){var v;return g.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:v=void 0;case 1:if(h.isCancel()){L.next=9;break}return L.next=4,_.next();case 4:return v=L.sent,L.next=7,v();case 7:L.next=1;break;case 9:A+=1,A===E&&(_.fns=[],_.buffer=[],m(S));case 11:case"end":return L.stop()}},f,this)}function w(v){console.error(v.stack)}for(var f=g.default.mark(T),_=new o,A=0,C=0;C<E;C++)r(T).catch(w);return function(v,L){return function(U){_.push(g.default.mark(function j(){return g.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.t0=U,b.next=4,v;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),U(b.t2);case 11:case"end":return b.stop()}},j,this,[[0,8]])}),L)}}}var h=this,c=0,S=[];return new p(function(E){function m(A){return g.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,f(e[A]);case 2:a(e,E);case 3:case"end":return C.stop()}},w,this)}function T(A){S.push(A),a(e,E)}for(var w=g.default.mark(m),f=new l(i,E),_=0;_<e.length;_++)r(m(_)).catch(T)})},s.cancel=function(){this.options.cancelFlag=!0},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,P,x){"use strict";x._isIP=function(d){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,r=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return g.test(d)||r.test(d)}},{}],12:[function(n,P,x){function d(){}P.exports=d,P.exports.HttpsAgent=d},{}],13:[function(n,P,x){P.exports=n("./register")().Promise},{"./register":15}],14:[function(n,P,x){"use strict";var d=null;P.exports=function(g,r){return function(o,p){o=o||null,p=p||{};var s=p.global!==!1;if(d===null&&s&&(d=g["@@any-promise/REGISTRATION"]||null),d!==null&&o!==null&&d.implementation!==o)throw new Error('any-promise already defined as "'+d.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return d===null&&(d=o!==null&&p.Promise!==void 0?{Promise:p.Promise,implementation:o}:r(o),s&&(g["@@any-promise/REGISTRATION"]=d)),d}}},{}],15:[function(n,P,x){"use strict";function d(){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"}}P.exports=n("./loader")(window,d)},{"./loader":14}],16:[function(n,P,x){P.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,P,x){P.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,P,x){P.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,P,x){P.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,P,x){P.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,P,x){P.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,P,x){P.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,P,x){P.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,P,x){P.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,P,x){P.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,P,x){P.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,P,x){P.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,P,x){P.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,P,x){P.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,P,x){"use strict";x.__esModule=!0,x.default=function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,P,x){"use strict";x.__esModule=!0;var d=n("../core-js/object/define-property"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);x.default=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,g.default)(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}()},{"../core-js/object/define-property":20}],32:[function(n,P,x){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}x.__esModule=!0;var g=n("../core-js/symbol/iterator"),r=d(g),o=n("../core-js/symbol"),p=d(o),s=typeof p.default=="function"&&typeof r.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":typeof e};x.default=typeof p.default=="function"&&s(r.default)==="symbol"?function(e){return e===void 0?"undefined":s(e)}:function(e){return e&&typeof p.default=="function"&&e.constructor===p.default&&e!==p.default.prototype?"symbol":e===void 0?"undefined":s(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,P,x){P.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,P,x){"use strict";function d(E){var m=E.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=E.indexOf("=");return T===-1&&(T=m),[T,T===m?0:4-T%4]}function g(E){var m=d(E),T=m[0],w=m[1];return 3*(T+w)/4-w}function r(E,m,T){return 3*(m+T)/4-T}function o(E){for(var m,T=d(E),w=T[0],f=T[1],_=new l(r(E,w,f)),A=0,C=f>0?w-4:w,v=0;v<C;v+=4)m=a[E.charCodeAt(v)]<<18|a[E.charCodeAt(v+1)]<<12|a[E.charCodeAt(v+2)]<<6|a[E.charCodeAt(v+3)],_[A++]=m>>16&255,_[A++]=m>>8&255,_[A++]=255&m;return f===2&&(m=a[E.charCodeAt(v)]<<2|a[E.charCodeAt(v+1)]>>4,_[A++]=255&m),f===1&&(m=a[E.charCodeAt(v)]<<10|a[E.charCodeAt(v+1)]<<4|a[E.charCodeAt(v+2)]>>2,_[A++]=m>>8&255,_[A++]=255&m),_}function p(E){return i[E>>18&63]+i[E>>12&63]+i[E>>6&63]+i[63&E]}function s(E,m,T){for(var w,f=[],_=m;_<T;_+=3)w=(E[_]<<16&16711680)+(E[_+1]<<8&65280)+(255&E[_+2]),f.push(p(w));return f.join("")}function e(E){for(var m,T=E.length,w=T%3,f=[],_=0,A=T-w;_<A;_+=16383)f.push(s(E,_,_+16383>A?A:_+16383));return w===1?(m=E[T-1],f.push(i[m>>2]+i[m<<4&63]+"==")):w===2&&(m=(E[T-2]<<8)+E[T-1],f.push(i[m>>10]+i[m>>4&63]+i[m<<2&63]+"=")),f.join("")}x.byteLength=g,x.toByteArray=o,x.fromByteArray=e;for(var i=[],a=[],l=typeof Uint8Array!="undefined"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,S=h.length;c<S;++c)i[c]=h[c],a[h.charCodeAt(c)]=c;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],35:[function(n,P,x){!function(d,g,r){P!==void 0&&P.exports?P.exports=r():typeof _e=="function"&&_e.amd?_e("bowser",r):d.bowser=r()}(this,0,function(){function d(a){function l(V){var N=a.match(V);return N&&N.length>1&&N[1]||""}function h(V){var N=a.match(V);return N&&N.length>1&&N[2]||""}var c,S=l(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(a),m=!E&&/android/i.test(a),T=/nexus\s*[0-6]\s*/i.test(a),w=!T&&/nexus\s*[0-9]+/i.test(a),f=/CrOS/.test(a),_=/silk/i.test(a),A=/sailfish/i.test(a),C=/tizen/i.test(a),v=/(web|hpw)os/i.test(a),L=/windows phone/i.test(a),U=(/SamsungBrowser/i.test(a),!L&&/windows/i.test(a)),j=!S&&!_&&/macintosh/i.test(a),b=!m&&!A&&!C&&!v&&/linux/i.test(a),k=h(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=l(/version\/(\d+(\.\d+)?)/i),G=/tablet/i.test(a)&&!/tablet pc/i.test(a),te=!G&&/[^-]mobi/i.test(a),F=/xbox/i.test(a);/opera/i.test(a)?c={name:"Opera",opera:e,version:H||l(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?c={name:"Opera",opera:e,version:l(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(a)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:H||l(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(a)?c={name:"Opera Coast",coast:e,version:H||l(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(a)?c={name:"Yandex Browser",yandexbrowser:e,version:H||l(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?c={name:"UC Browser",ucbrowser:e,version:l(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?c={name:"Maxthon",maxthon:e,version:l(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?c={name:"Epiphany",epiphany:e,version:l(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?c={name:"Puffin",puffin:e,version:l(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?c={name:"Sleipnir",sleipnir:e,version:l(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?c={name:"K-Meleon",kMeleon:e,version:l(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:L?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},k?(c.msedge=e,c.version=k):(c.msie=e,c.version=l(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?c={name:"Internet Explorer",msie:e,version:l(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?c={name:"Microsoft Edge",msedge:e,version:k}:/vivaldi/i.test(a)?c={name:"Vivaldi",vivaldi:e,version:l(/vivaldi\/(\d+(\.\d+)?)/i)||H}:A?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:l(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?c={name:"SeaMonkey",seamonkey:e,version:l(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(c={name:"Firefox",firefox:e,version:l(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(c.firefoxos=e,c.osname="Firefox OS")):_?c={name:"Amazon Silk",silk:e,version:l(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?c={name:"PhantomJS",phantom:e,version:l(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?c={name:"SlimerJS",slimer:e,version:l(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:H||l(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:v?(c={name:"WebOS",osname:"WebOS",webos:e,version:H||l(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(c.touchpad=e)):/bada/i.test(a)?c={name:"Bada",osname:"Bada",bada:e,version:l(/dolfin\/(\d+(\.\d+)?)/i)}:C?c={name:"Tizen",osname:"Tizen",tizen:e,version:l(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(a)?c={name:"QupZilla",qupzilla:e,version:l(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(a)?c={name:"Chromium",chromium:e,version:l(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(a)?c={name:"Chrome",chrome:e,version:l(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:m?c={name:"Android",version:H}:/safari|applewebkit/i.test(a)?(c={name:"Safari",safari:e},H&&(c.version=H)):S?(c={name:S=="iphone"?"iPhone":S=="ipad"?"iPad":"iPod"},H&&(c.version=H)):c=/googlebot/i.test(a)?{name:"Googlebot",googlebot:e,version:l(/googlebot\/(\d+(\.\d+))/i)||H}:{name:l(/^(.*)\/(.*) /),version:h(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&H&&(c.version=H)):!c.opera&&/gecko\//i.test(a)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||l(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!m&&!c.silk?!c.windowsphone&&S?(c[S]=e,c.ios=e,c.osname="iOS"):j?(c.mac=e,c.osname="macOS"):F?(c.xbox=e,c.osname="Xbox"):U?(c.windows=e,c.osname="Windows"):b&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var ee="";c.windows?ee=function(V){switch(V){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}}(l(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?ee=l(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(ee=l(/Mac OS X (\d+([_\.\s]\d+)*)/i),ee=ee.replace(/[_\s]/g,".")):S?(ee=l(/os (\d+([_\s]\d+)*) like mac os x/i),ee=ee.replace(/[_\s]/g,".")):m?ee=l(/android[ \/-](\d+(\.\d+)*)/i):c.webos?ee=l(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?ee=l(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?ee=l(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(ee=l(/tizen[\/\s](\d+(\.\d+)*)/i)),ee&&(c.osversion=ee);var $=!c.windows&&ee.split(".")[0];return G||w||S=="ipad"||m&&($==3||$>=4&&!te)||c.silk?c.tablet=e:(te||S=="iphone"||S=="ipod"||m||T||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function g(a){return a.split(".").length}function r(a,l){var h,c=[];if(Array.prototype.map)return Array.prototype.map.call(a,l);for(h=0;h<a.length;h++)c.push(l(a[h]));return c}function o(a){for(var l=Math.max(g(a[0]),g(a[1])),h=r(a,function(c){var S=l-g(c);return c+=new Array(S+1).join(".0"),r(c.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});--l>=0;){if(h[0][l]>h[1][l])return 1;if(h[0][l]!==h[1][l])return-1;if(l===0)return 0}}function p(a,l,h){var c=i;typeof l=="string"&&(h=l,l=void 0),l===void 0&&(l=!1),h&&(c=d(h));var S=""+c.version;for(var E in a)if(a.hasOwnProperty(E)&&c[E]){if(typeof a[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(a));return o([S,a[E]])<0}return l}function s(a,l,h){return!p(a,l,h)}var e=!0,i=d(typeof navigator!="undefined"&&navigator.userAgent||"");return i.test=function(a){for(var l=0;l<a.length;++l){var h=a[l];if(typeof h=="string"&&h in i)return!0}return!1},i.isUnsupportedBrowser=p,i.compareVersions=o,i.check=s,i._detect=d,i.detect=d,i})},{}],36:[function(n,P,x){},{}],37:[function(n,P,x){function d(i){if(i&&!s(i))throw new Error("Unknown encoding: "+i)}function g(i){return i.toString(this.encoding)}function r(i){this.charReceived=i.length%2,this.charLength=this.charReceived?2:0}function o(i){this.charReceived=i.length%3,this.charLength=this.charReceived?3:0}var p=n("buffer").Buffer,s=p.isEncoding||function(i){switch(i&&i.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},e=x.StringDecoder=function(i){switch(this.encoding=(i||"utf8").toLowerCase().replace(/[-_]/,""),d(i),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=r;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=o;break;default:return void(this.write=g)}this.charBuffer=new p(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(i){for(var a="";this.charLength;){var l=i.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:i.length;if(i.copy(this.charBuffer,this.charReceived,0,l),this.charReceived+=l,this.charReceived<this.charLength)return"";i=i.slice(l,i.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=a.charCodeAt(a.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,i.length===0)return a;break}this.charLength+=this.surrogateSize,a=""}this.detectIncompleteChar(i);var h=i.length;this.charLength&&(i.copy(this.charBuffer,0,i.length-this.charReceived,h),h-=this.charReceived),a+=i.toString(this.encoding,0,h);var h=a.length-1,c=a.charCodeAt(h);if(c>=55296&&c<=56319){var S=this.surrogateSize;return this.charLength+=S,this.charReceived+=S,this.charBuffer.copy(this.charBuffer,S,0,S),i.copy(this.charBuffer,0,0,S),a.substring(0,h)}return a},e.prototype.detectIncompleteChar=function(i){for(var a=i.length>=3?3:i.length;a>0;a--){var l=i[i.length-a];if(a==1&&l>>5==6){this.charLength=2;break}if(a<=2&&l>>4==14){this.charLength=3;break}if(a<=3&&l>>3==30){this.charLength=4;break}}this.charReceived=a},e.prototype.end=function(i){var a="";if(i&&i.length&&(a=this.write(i)),this.charReceived){var l=this.charReceived,h=this.charBuffer,c=this.encoding;a+=h.slice(0,l).toString(c)}return a}},{buffer:38}],38:[function(n,P,x){(function(d){"use strict";function g(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(t,u){if(g()<u)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(u),t.__proto__=o.prototype):(t===null&&(t=new o(u)),t.length=u),t}function o(t,u,D){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,u,D);if(typeof t=="number"){if(typeof u=="string")throw new Error("If encoding is specified then the first argument must be a string");return i(this,t)}return p(this,t,u,D)}function p(t,u,D,y){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&u instanceof ArrayBuffer?h(t,u,D,y):typeof u=="string"?a(t,u,D):c(t,u)}function s(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,u,D,y){return s(u),u<=0?r(t,u):D!==void 0?typeof y=="string"?r(t,u).fill(D,y):r(t,u).fill(D):r(t,u)}function i(t,u){if(s(u),t=r(t,u<0?0:0|S(u)),!o.TYPED_ARRAY_SUPPORT)for(var D=0;D<u;++D)t[D]=0;return t}function a(t,u,D){if(typeof D=="string"&&D!==""||(D="utf8"),!o.isEncoding(D))throw new TypeError('"encoding" must be a valid string encoding');var y=0|m(u,D);t=r(t,y);var O=t.write(u,D);return O!==y&&(t=t.slice(0,O)),t}function l(t,u){var D=u.length<0?0:0|S(u.length);t=r(t,D);for(var y=0;y<D;y+=1)t[y]=255&u[y];return t}function h(t,u,D,y){if(u.byteLength,D<0||u.byteLength<D)throw new RangeError("'offset' is out of bounds");if(u.byteLength<D+(y||0))throw new RangeError("'length' is out of bounds");return u=D===void 0&&y===void 0?new Uint8Array(u):y===void 0?new Uint8Array(u,D):new Uint8Array(u,D,y),o.TYPED_ARRAY_SUPPORT?(t=u,t.__proto__=o.prototype):t=l(t,u),t}function c(t,u){if(o.isBuffer(u)){var D=0|S(u.length);return t=r(t,D),t.length===0||u.copy(t,0,0,D),t}if(u){if(typeof ArrayBuffer!="undefined"&&u.buffer instanceof ArrayBuffer||"length"in u)return typeof u.length!="number"||z(u.length)?r(t,0):l(t,u);if(u.type==="Buffer"&&ne(u.data))return l(t,u.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function S(t){if(t>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return 0|t}function E(t){return+t!=t&&(t=0),o.alloc(+t)}function m(t,u){if(o.isBuffer(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var D=t.length;if(D===0)return 0;for(var y=!1;;)switch(u){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return Q(t).length;default:if(y)return ue(t).length;u=(""+u).toLowerCase(),y=!0}}function T(t,u,D){var y=!1;if((u===void 0||u<0)&&(u=0),u>this.length)return"";if((D===void 0||D>this.length)&&(D=this.length),D<=0)return"";if(D>>>=0,u>>>=0,D<=u)return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,u,D);case"utf8":case"utf-8":return k(this,u,D);case"ascii":return G(this,u,D);case"latin1":case"binary":return te(this,u,D);case"base64":return b(this,u,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,u,D);default:if(y)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),y=!0}}function w(t,u,D){var y=t[u];t[u]=t[D],t[D]=y}function f(t,u,D,y,O){if(t.length===0)return-1;if(typeof D=="string"?(y=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=O?0:t.length-1),D<0&&(D=t.length+D),D>=t.length){if(O)return-1;D=t.length-1}else if(D<0){if(!O)return-1;D=0}if(typeof u=="string"&&(u=o.from(u,y)),o.isBuffer(u))return u.length===0?-1:_(t,u,D,y,O);if(typeof u=="number")return u&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?O?Uint8Array.prototype.indexOf.call(t,u,D):Uint8Array.prototype.lastIndexOf.call(t,u,D):_(t,[u],D,y,O);throw new TypeError("val must be string, number or Buffer")}function _(t,u,D,y,O){function K(le,Ke){return J===1?le[Ke]:le.readUInt16BE(Ke*J)}var J=1,Ee=t.length,he=u.length;if(y!==void 0&&((y=String(y).toLowerCase())==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(t.length<2||u.length<2)return-1;J=2,Ee/=2,he/=2,D/=2}var fe;if(O){var be=-1;for(fe=D;fe<Ee;fe++)if(K(t,fe)===K(u,be===-1?0:fe-be)){if(be===-1&&(be=fe),fe-be+1===he)return be*J}else be!==-1&&(fe-=fe-be),be=-1}else for(D+he>Ee&&(D=Ee-he),fe=D;fe>=0;fe--){for(var Re=!0,Ce=0;Ce<he;Ce++)if(K(t,fe+Ce)!==K(u,Ce)){Re=!1;break}if(Re)return fe}return-1}function A(t,u,D,y){D=Number(D)||0;var O=t.length-D;y?(y=Number(y))>O&&(y=O):y=O;var K=u.length;if(K%2!=0)throw new TypeError("Invalid hex string");y>K/2&&(y=K/2);for(var J=0;J<y;++J){var Ee=parseInt(u.substr(2*J,2),16);if(isNaN(Ee))return J;t[D+J]=Ee}return J}function C(t,u,D,y){return ie(ue(u,t.length-D),t,D,y)}function v(t,u,D,y){return ie(ce(u),t,D,y)}function L(t,u,D,y){return v(t,u,D,y)}function U(t,u,D,y){return ie(Q(u),t,D,y)}function j(t,u,D,y){return ie(q(u,t.length-D),t,D,y)}function b(t,u,D){return u===0&&D===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(u,D))}function k(t,u,D){D=Math.min(t.length,D);for(var y=[],O=u;O<D;){var K=t[O],J=null,Ee=K>239?4:K>223?3:K>191?2:1;if(O+Ee<=D){var he,fe,be,Re;switch(Ee){case 1:K<128&&(J=K);break;case 2:he=t[O+1],(192&he)==128&&(Re=(31&K)<<6|63&he)>127&&(J=Re);break;case 3:he=t[O+1],fe=t[O+2],(192&he)==128&&(192&fe)==128&&(Re=(15&K)<<12|(63&he)<<6|63&fe)>2047&&(Re<55296||Re>57343)&&(J=Re);break;case 4:he=t[O+1],fe=t[O+2],be=t[O+3],(192&he)==128&&(192&fe)==128&&(192&be)==128&&(Re=(15&K)<<18|(63&he)<<12|(63&fe)<<6|63&be)>65535&&Re<1114112&&(J=Re)}}J===null?(J=65533,Ee=1):J>65535&&(J-=65536,y.push(J>>>10&1023|55296),J=56320|1023&J),y.push(J),O+=Ee}return H(y)}function H(t){var u=t.length;if(u<=me)return String.fromCharCode.apply(String,t);for(var D="",y=0;y<u;)D+=String.fromCharCode.apply(String,t.slice(y,y+=me));return D}function G(t,u,D){var y="";D=Math.min(t.length,D);for(var O=u;O<D;++O)y+=String.fromCharCode(127&t[O]);return y}function te(t,u,D){var y="";D=Math.min(t.length,D);for(var O=u;O<D;++O)y+=String.fromCharCode(t[O]);return y}function F(t,u,D){var y=t.length;(!u||u<0)&&(u=0),(!D||D<0||D>y)&&(D=y);for(var O="",K=u;K<D;++K)O+=re(t[K]);return O}function ee(t,u,D){for(var y=t.slice(u,D),O="",K=0;K<y.length;K+=2)O+=String.fromCharCode(y[K]+256*y[K+1]);return O}function $(t,u,D){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+u>D)throw new RangeError("Trying to access beyond buffer length")}function V(t,u,D,y,O,K){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>O||u<K)throw new RangeError('"value" argument is out of bounds');if(D+y>t.length)throw new RangeError("Index out of range")}function N(t,u,D,y){u<0&&(u=65535+u+1);for(var O=0,K=Math.min(t.length-D,2);O<K;++O)t[D+O]=(u&255<<8*(y?O:1-O))>>>8*(y?O:1-O)}function I(t,u,D,y){u<0&&(u=4294967295+u+1);for(var O=0,K=Math.min(t.length-D,4);O<K;++O)t[D+O]=u>>>8*(y?O:3-O)&255}function B(t,u,D,y,O,K){if(D+y>t.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function X(t,u,D,y,O){return O||B(t,u,D,4,34028234663852886e22,-34028234663852886e22),ae.write(t,u,D,y,23,4),D+4}function Y(t,u,D,y,O){return O||B(t,u,D,8,17976931348623157e292,-17976931348623157e292),ae.write(t,u,D,y,52,8),D+8}function Z(t){if(t=se(t).replace(R,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function se(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function re(t){return t<16?"0"+t.toString(16):t.toString(16)}function ue(t,u){u=u||1/0;for(var D,y=t.length,O=null,K=[],J=0;J<y;++J){if((D=t.charCodeAt(J))>55295&&D<57344){if(!O){if(D>56319){(u-=3)>-1&&K.push(239,191,189);continue}if(J+1===y){(u-=3)>-1&&K.push(239,191,189);continue}O=D;continue}if(D<56320){(u-=3)>-1&&K.push(239,191,189),O=D;continue}D=65536+(O-55296<<10|D-56320)}else O&&(u-=3)>-1&&K.push(239,191,189);if(O=null,D<128){if((u-=1)<0)break;K.push(D)}else if(D<2048){if((u-=2)<0)break;K.push(D>>6|192,63&D|128)}else if(D<65536){if((u-=3)<0)break;K.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;K.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return K}function ce(t){for(var u=[],D=0;D<t.length;++D)u.push(255&t.charCodeAt(D));return u}function q(t,u){for(var D,y,O,K=[],J=0;J<t.length&&!((u-=2)<0);++J)D=t.charCodeAt(J),y=D>>8,O=D%256,K.push(O),K.push(y);return K}function Q(t){return W.toByteArray(Z(t))}function ie(t,u,D,y){for(var O=0;O<y&&!(O+D>=u.length||O>=t.length);++O)u[O+D]=t[O];return O}function z(t){return t!==t}var W=n("base64-js"),ae=n("ieee754"),ne=n("isarray");x.Buffer=o,x.SlowBuffer=E,x.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=d.TYPED_ARRAY_SUPPORT!==void 0?d.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(u){return!1}}(),x.kMaxLength=g(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,u,D){return p(null,t,u,D)},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(t,u,D){return e(null,t,u,D)},o.allocUnsafe=function(t){return i(null,t)},o.allocUnsafeSlow=function(t){return i(null,t)},o.isBuffer=function(t){return!(t==null||!t._isBuffer)},o.compare=function(t,u){if(!o.isBuffer(t)||!o.isBuffer(u))throw new TypeError("Arguments must be Buffers");if(t===u)return 0;for(var D=t.length,y=u.length,O=0,K=Math.min(D,y);O<K;++O)if(t[O]!==u[O]){D=t[O],y=u[O];break}return D<y?-1:y<D?1:0},o.isEncoding=function(t){switch(String(t).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(t,u){if(!ne(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return o.alloc(0);var D;if(u===void 0)for(u=0,D=0;D<t.length;++D)u+=t[D].length;var y=o.allocUnsafe(u),O=0;for(D=0;D<t.length;++D){var K=t[D];if(!o.isBuffer(K))throw new TypeError('"list" argument must be an Array of Buffers');K.copy(y,O),O+=K.length}return y},o.byteLength=m,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<t;u+=2)w(this,u,u+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<t;u+=4)w(this,u,u+3),w(this,u+1,u+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<t;u+=8)w(this,u,u+7),w(this,u+1,u+6),w(this,u+2,u+5),w(this,u+3,u+4);return this},o.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?k(this,0,t):T.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||o.compare(this,t)===0},o.prototype.inspect=function(){var t="",u=x.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,u).match(/.{2}/g).join(" "),this.length>u&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,u,D,y,O){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(u===void 0&&(u=0),D===void 0&&(D=t?t.length:0),y===void 0&&(y=0),O===void 0&&(O=this.length),u<0||D>t.length||y<0||O>this.length)throw new RangeError("out of range index");if(y>=O&&u>=D)return 0;if(y>=O)return-1;if(u>=D)return 1;if(u>>>=0,D>>>=0,y>>>=0,O>>>=0,this===t)return 0;for(var K=O-y,J=D-u,Ee=Math.min(K,J),he=this.slice(y,O),fe=t.slice(u,D),be=0;be<Ee;++be)if(he[be]!==fe[be]){K=he[be],J=fe[be];break}return K<J?-1:J<K?1:0},o.prototype.includes=function(t,u,D){return this.indexOf(t,u,D)!==-1},o.prototype.indexOf=function(t,u,D){return f(this,t,u,D,!0)},o.prototype.lastIndexOf=function(t,u,D){return f(this,t,u,D,!1)},o.prototype.write=function(t,u,D,y){if(u===void 0)y="utf8",D=this.length,u=0;else if(D===void 0&&typeof u=="string")y=u,D=this.length,u=0;else{if(!isFinite(u))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");u|=0,isFinite(D)?(D|=0,y===void 0&&(y="utf8")):(y=D,D=void 0)}var O=this.length-u;if((D===void 0||D>O)&&(D=O),t.length>0&&(D<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");for(var K=!1;;)switch(y){case"hex":return A(this,t,u,D);case"utf8":case"utf-8":return C(this,t,u,D);case"ascii":return v(this,t,u,D);case"latin1":case"binary":return L(this,t,u,D);case"base64":return U(this,t,u,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,u,D);default:if(K)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),K=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var me=4096;o.prototype.slice=function(t,u){var D=this.length;t=~~t,u=u===void 0?D:~~u,t<0?(t+=D)<0&&(t=0):t>D&&(t=D),u<0?(u+=D)<0&&(u=0):u>D&&(u=D),u<t&&(u=t);var y;if(o.TYPED_ARRAY_SUPPORT)y=this.subarray(t,u),y.__proto__=o.prototype;else{var O=u-t;y=new o(O,void 0);for(var K=0;K<O;++K)y[K]=this[K+t]}return y},o.prototype.readUIntLE=function(t,u,D){t|=0,u|=0,D||$(t,u,this.length);for(var y=this[t],O=1,K=0;++K<u&&(O*=256);)y+=this[t+K]*O;return y},o.prototype.readUIntBE=function(t,u,D){t|=0,u|=0,D||$(t,u,this.length);for(var y=this[t+--u],O=1;u>0&&(O*=256);)y+=this[t+--u]*O;return y},o.prototype.readUInt8=function(t,u){return u||$(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,u){return u||$(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,u){return u||$(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,u){return u||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,u){return u||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,u,D){t|=0,u|=0,D||$(t,u,this.length);for(var y=this[t],O=1,K=0;++K<u&&(O*=256);)y+=this[t+K]*O;return O*=128,y>=O&&(y-=Math.pow(2,8*u)),y},o.prototype.readIntBE=function(t,u,D){t|=0,u|=0,D||$(t,u,this.length);for(var y=u,O=1,K=this[t+--y];y>0&&(O*=256);)K+=this[t+--y]*O;return O*=128,K>=O&&(K-=Math.pow(2,8*u)),K},o.prototype.readInt8=function(t,u){return u||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,u){u||$(t,2,this.length);var D=this[t]|this[t+1]<<8;return 32768&D?4294901760|D:D},o.prototype.readInt16BE=function(t,u){u||$(t,2,this.length);var D=this[t+1]|this[t]<<8;return 32768&D?4294901760|D:D},o.prototype.readInt32LE=function(t,u){return u||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,u){return u||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,u){return u||$(t,4,this.length),ae.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,u){return u||$(t,4,this.length),ae.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,u){return u||$(t,8,this.length),ae.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,u){return u||$(t,8,this.length),ae.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,u,D,y){(t=+t,u|=0,D|=0,!y)&&V(this,t,u,D,Math.pow(2,8*D)-1,0);var O=1,K=0;for(this[u]=255&t;++K<D&&(O*=256);)this[u+K]=t/O&255;return u+D},o.prototype.writeUIntBE=function(t,u,D,y){(t=+t,u|=0,D|=0,!y)&&V(this,t,u,D,Math.pow(2,8*D)-1,0);var O=D-1,K=1;for(this[u+O]=255&t;--O>=0&&(K*=256);)this[u+O]=t/K&255;return u+D},o.prototype.writeUInt8=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[u]=255&t,u+1},o.prototype.writeUInt16LE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):N(this,t,u,!0),u+2},o.prototype.writeUInt16BE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):N(this,t,u,!1),u+2},o.prototype.writeUInt32LE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[u+3]=t>>>24,this[u+2]=t>>>16,this[u+1]=t>>>8,this[u]=255&t):I(this,t,u,!0),u+4},o.prototype.writeUInt32BE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):I(this,t,u,!1),u+4},o.prototype.writeIntLE=function(t,u,D,y){if(t=+t,u|=0,!y){var O=Math.pow(2,8*D-1);V(this,t,u,D,O-1,-O)}var K=0,J=1,Ee=0;for(this[u]=255&t;++K<D&&(J*=256);)t<0&&Ee===0&&this[u+K-1]!==0&&(Ee=1),this[u+K]=(t/J>>0)-Ee&255;return u+D},o.prototype.writeIntBE=function(t,u,D,y){if(t=+t,u|=0,!y){var O=Math.pow(2,8*D-1);V(this,t,u,D,O-1,-O)}var K=D-1,J=1,Ee=0;for(this[u+K]=255&t;--K>=0&&(J*=256);)t<0&&Ee===0&&this[u+K+1]!==0&&(Ee=1),this[u+K]=(t/J>>0)-Ee&255;return u+D},o.prototype.writeInt8=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[u]=255&t,u+1},o.prototype.writeInt16LE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):N(this,t,u,!0),u+2},o.prototype.writeInt16BE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):N(this,t,u,!1),u+2},o.prototype.writeInt32LE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8,this[u+2]=t>>>16,this[u+3]=t>>>24):I(this,t,u,!0),u+4},o.prototype.writeInt32BE=function(t,u,D){return t=+t,u|=0,D||V(this,t,u,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):I(this,t,u,!1),u+4},o.prototype.writeFloatLE=function(t,u,D){return X(this,t,u,!0,D)},o.prototype.writeFloatBE=function(t,u,D){return X(this,t,u,!1,D)},o.prototype.writeDoubleLE=function(t,u,D){return Y(this,t,u,!0,D)},o.prototype.writeDoubleBE=function(t,u,D){return Y(this,t,u,!1,D)},o.prototype.copy=function(t,u,D,y){if(D||(D=0),y||y===0||(y=this.length),u>=t.length&&(u=t.length),u||(u=0),y>0&&y<D&&(y=D),y===D)return 0;if(t.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("sourceStart out of bounds");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),t.length-u<y-D&&(y=t.length-u+D);var O,K=y-D;if(this===t&&D<u&&u<y)for(O=K-1;O>=0;--O)t[O+u]=this[O+D];else if(K<1e3||!o.TYPED_ARRAY_SUPPORT)for(O=0;O<K;++O)t[O+u]=this[O+D];else Uint8Array.prototype.set.call(t,this.subarray(D,D+K),u);return K},o.prototype.fill=function(t,u,D,y){if(typeof t=="string"){if(typeof u=="string"?(y=u,u=0,D=this.length):typeof D=="string"&&(y=D,D=this.length),t.length===1){var O=t.charCodeAt(0);O<256&&(t=O)}if(y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!o.isEncoding(y))throw new TypeError("Unknown encoding: "+y)}else typeof t=="number"&&(t&=255);if(u<0||this.length<u||this.length<D)throw new RangeError("Out of range index");if(D<=u)return this;u>>>=0,D=D===void 0?this.length:D>>>0,t||(t=0);var K;if(typeof t=="number")for(K=u;K<D;++K)this[K]=t;else{var J=o.isBuffer(t)?t:ue(new o(t,y).toString()),Ee=J.length;for(K=0;K<D-u;++K)this[K+u]=J[K%Ee]}return this};var R=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,P,x){P.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,P,x){"use strict";var d=function(){this.buffer=[],this.fns=[]};d.prototype.push=function(r,o){if(this.fns.length)return this.fns.shift()(null,r);var p={data:r,priority:o},s=g(this.buffer,p,function(e){return e.priority});this.buffer.splice(s,0,p)},d.prototype.next=function(){var r=this;return function(o){if(r.buffer.length)return o(null,r.buffer.pop().data);r.fns.push(o)}};var g=function(o,p,s){p=s(p);for(var e=0,i=o?o.length:e;e<i;){var a=e+i>>>1;s(o[a])<p?e=a+1:i=a}return e};P.exports=d},{}],41:[function(n,P,x){function d(h){var c=this,S=l.call(arguments,1);return new Promise(function(E,m){function T(_){var A;try{A=h.next(_)}catch(C){return m(C)}f(A)}function w(_){var A;try{A=h.throw(_)}catch(C){return m(C)}f(A)}function f(_){if(_.done)return E(_.value);var A=g.call(c,_.value);return A&&s(A)?A.then(T,w):w(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof h=="function"&&(h=h.apply(c,S)),!h||typeof h.next!="function")return E(h);T()})}function g(h){return h&&(s(h)?h:i(h)||e(h)?d.call(this,h):typeof h=="function"?r.call(this,h):Array.isArray(h)?o.call(this,h):a(h)?p.call(this,h):h)}function r(h){var c=this;return new Promise(function(S,E){h.call(c,function(m,T){if(m)return E(m);arguments.length>2&&(T=l.call(arguments,1)),S(T)})})}function o(h){return Promise.all(h.map(g,this))}function p(h){for(var c=new h.constructor,S=Object.keys(h),E=[],m=0;m<S.length;m++){var T=S[m],w=g.call(this,h[T]);w&&s(w)?function(f,_){c[_]=void 0,E.push(f.then(function(A){c[_]=A}))}(w,T):c[T]=h[T]}return Promise.all(E).then(function(){return c})}function s(h){return typeof h.then=="function"}function e(h){return typeof h.next=="function"&&typeof h.throw=="function"}function i(h){var c=h.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function a(h){return Object==h.constructor}var l=Array.prototype.slice;P.exports=d.default=d.co=d,d.wrap=function(h){function c(){return d.call(this,h.apply(this,arguments))}return c.__generatorFunction__=h,c}},{}],42:[function(n,P,x){P.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,P,x){"use strict";function d(o,p){if(!(this instanceof d))return new d(o,p);this.src=o,this._withAccess=p}function g(o,p){return o[p]===void 0&&o.__lookupGetter__(p)===void 0&&o.__lookupSetter__(p)===void 0}var r=Array.prototype.slice;P.exports=d,d.prototype.withAccess=function(o){return this._withAccess=o!==!1,this},d.prototype.pick=function(o){return Array.isArray(o)||(o=r.call(arguments)),o.length&&(this.keys=o),this},d.prototype.to=function(o){if(o=o||{},!this.src)return o;var p=this.keys||Object.keys(this.src);if(!this._withAccess){for(var s=0;s<p.length;s++)e=p[s],o[e]===void 0&&(o[e]=this.src[e]);return o}for(var s=0;s<p.length;s++){var e=p[s];if(g(o,e)){var i=this.src.__lookupGetter__(e),a=this.src.__lookupSetter__(e);i&&o.__defineGetter__(e,i),a&&o.__defineSetter__(e,a),i||a||(o[e]=this.src[e])}}return o},d.prototype.toCover=function(o){for(var p=this.keys||Object.keys(this.src),s=0;s<p.length;s++){var e=p[s];delete o[e];var i=this.src.__lookupGetter__(e),a=this.src.__lookupSetter__(e);i&&o.__defineGetter__(e,i),a&&o.__defineSetter__(e,a),i||a||(o[e]=this.src[e])}},d.prototype.override=d.prototype.toCover,d.prototype.and=function(o){var p={};return this.to(p),this.src=o,this.to(p),this.src=p,this}},{}],44:[function(n,P,x){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),P.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,P,x){var d=n("../../modules/_core"),g=d.JSON||(d.JSON={stringify:JSON.stringify});P.exports=function(r){return g.stringify.apply(g,arguments)}},{"../../modules/_core":65}],46:[function(n,P,x){n("../../modules/es6.object.assign"),P.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,P,x){n("../../modules/es6.object.create");var d=n("../../modules/_core").Object;P.exports=function(g,r){return d.create(g,r)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,P,x){n("../../modules/es6.object.define-property");var d=n("../../modules/_core").Object;P.exports=function(g,r,o){return d.defineProperty(g,r,o)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,P,x){n("../../modules/es6.object.get-own-property-names");var d=n("../../modules/_core").Object;P.exports=function(g){return d.getOwnPropertyNames(g)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,P,x){n("../../modules/es6.object.get-prototype-of"),P.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,P,x){n("../../modules/es6.object.keys"),P.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,P,x){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"),P.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,P,x){n("../modules/web.immediate"),P.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,P,x){n("../../modules/es6.string.from-code-point"),P.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,P,x){n("../../modules/es6.function.has-instance"),P.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,P,x){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),P.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,P,x){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),P.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,P,x){P.exports=function(d){if(typeof d!="function")throw TypeError(d+" is not a function!");return d}},{}],59:[function(n,P,x){P.exports=function(){}},{}],60:[function(n,P,x){P.exports=function(d,g,r,o){if(!(d instanceof g)||o!==void 0&&o in d)throw TypeError(r+": incorrect invocation!");return d}},{}],61:[function(n,P,x){var d=n("./_is-object");P.exports=function(g){if(!d(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":85}],62:[function(n,P,x){var d=n("./_to-iobject"),g=n("./_to-length"),r=n("./_to-absolute-index");P.exports=function(o){return function(p,s,e){var i,a=d(p),l=g(a.length),h=r(e,l);if(o&&s!=s){for(;l>h;)if((i=a[h++])!=i)return!0}else for(;l>h;h++)if((o||h in a)&&a[h]===s)return o||h||0;return!o&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,P,x){var d=n("./_cof"),g=n("./_wks")("toStringTag"),r=d(function(){return arguments}())=="Arguments",o=function(s,e){try{return s[e]}catch(i){}};P.exports=function(p){var s,e,i;return p===void 0?"Undefined":p===null?"Null":typeof(e=o(s=Object(p),g))=="string"?e:r?d(s):(i=d(s))=="Object"&&typeof s.callee=="function"?"Arguments":i}},{"./_cof":64,"./_wks":131}],64:[function(n,P,x){var d={}.toString;P.exports=function(g){return d.call(g).slice(8,-1)}},{}],65:[function(n,P,x){var d=P.exports={version:"2.5.7"};typeof __e=="number"&&(__e=d)},{}],66:[function(n,P,x){"use strict";var d=n("./_object-dp"),g=n("./_property-desc");P.exports=function(r,o,p){o in r?d.f(r,o,g(0,p)):r[o]=p}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,P,x){var d=n("./_a-function");P.exports=function(g,r,o){if(d(g),r===void 0)return g;switch(o){case 1:return function(p){return g.call(r,p)};case 2:return function(p,s){return g.call(r,p,s)};case 3:return function(p,s,e){return g.call(r,p,s,e)}}return function(){return g.apply(r,arguments)}}},{"./_a-function":58}],68:[function(n,P,x){P.exports=function(d){if(d==null)throw TypeError("Can't call method on "+d);return d}},{}],69:[function(n,P,x){P.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,P,x){var d=n("./_is-object"),g=n("./_global").document,r=d(g)&&d(g.createElement);P.exports=function(o){return r?g.createElement(o):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,P,x){P.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,P,x){var d=n("./_object-keys"),g=n("./_object-gops"),r=n("./_object-pie");P.exports=function(o){var p=d(o),s=g.f;if(s)for(var e,i=s(o),a=r.f,l=0;i.length>l;)a.call(o,e=i[l++])&&p.push(e);return p}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,P,x){var d=n("./_global"),g=n("./_core"),r=n("./_ctx"),o=n("./_hide"),p=n("./_has"),s=function e(i,a,l){var h,c,S,E=i&e.F,m=i&e.G,T=i&e.S,w=i&e.P,f=i&e.B,_=i&e.W,A=m?g:g[a]||(g[a]={}),C=A.prototype,v=m?d:T?d[a]:(d[a]||{}).prototype;m&&(l=a);for(h in l)(c=!E&&v&&v[h]!==void 0)&&p(A,h)||(S=c?v[h]:l[h],A[h]=m&&typeof v[h]!="function"?l[h]:f&&c?r(S,d):_&&v[h]==S?function(L){var U=function(b,k,H){if(this instanceof L){switch(arguments.length){case 0:return new L;case 1:return new L(b);case 2:return new L(b,k)}return new L(b,k,H)}return L.apply(this,arguments)};return U.prototype=L.prototype,U}(S):w&&typeof S=="function"?r(Function.call,S):S,w&&((A.virtual||(A.virtual={}))[h]=S,i&e.R&&C&&!C[h]&&o(C,h,S)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,P.exports=s},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,P,x){P.exports=function(d){try{return!!d()}catch(g){return!0}}},{}],75:[function(n,P,x){var d=n("./_ctx"),g=n("./_iter-call"),r=n("./_is-array-iter"),o=n("./_an-object"),p=n("./_to-length"),s=n("./core.get-iterator-method"),e={},i={},x=P.exports=function(a,l,h,c,S){var E,m,T,w,f=S?function(){return a}:s(a),_=d(h,c,l?2:1),A=0;if(typeof f!="function")throw TypeError(a+" is not iterable!");if(r(f)){for(E=p(a.length);E>A;A++)if((w=l?_(o(m=a[A])[0],m[1]):_(a[A]))===e||w===i)return w}else for(T=f.call(a);!(m=T.next()).done;)if((w=g(T,_,m.value,l))===e||w===i)return w};x.BREAK=e,x.RETURN=i},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,P,x){var d=P.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=d)},{}],77:[function(n,P,x){var d={}.hasOwnProperty;P.exports=function(g,r){return d.call(g,r)}},{}],78:[function(n,P,x){var d=n("./_object-dp"),g=n("./_property-desc");P.exports=n("./_descriptors")?function(r,o,p){return d.f(r,o,g(1,p))}:function(r,o,p){return r[o]=p,r}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,P,x){var d=n("./_global").document;P.exports=d&&d.documentElement},{"./_global":76}],80:[function(n,P,x){P.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,P,x){P.exports=function(d,g,r){var o=r===void 0;switch(g.length){case 0:return o?d():d.call(r);case 1:return o?d(g[0]):d.call(r,g[0]);case 2:return o?d(g[0],g[1]):d.call(r,g[0],g[1]);case 3:return o?d(g[0],g[1],g[2]):d.call(r,g[0],g[1],g[2]);case 4:return o?d(g[0],g[1],g[2],g[3]):d.call(r,g[0],g[1],g[2],g[3])}return d.apply(r,g)}},{}],82:[function(n,P,x){var d=n("./_cof");P.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return d(g)=="String"?g.split(""):Object(g)}},{"./_cof":64}],83:[function(n,P,x){var d=n("./_iterators"),g=n("./_wks")("iterator"),r=Array.prototype;P.exports=function(o){return o!==void 0&&(d.Array===o||r[g]===o)}},{"./_iterators":91,"./_wks":131}],84:[function(n,P,x){var d=n("./_cof");P.exports=Array.isArray||function(g){return d(g)=="Array"}},{"./_cof":64}],85:[function(n,P,x){P.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},{}],86:[function(n,P,x){var d=n("./_an-object");P.exports=function(g,r,o,p){try{return p?r(d(o)[0],o[1]):r(o)}catch(e){var s=g.return;throw s!==void 0&&d(s.call(g)),e}}},{"./_an-object":61}],87:[function(n,P,x){"use strict";var d=n("./_object-create"),g=n("./_property-desc"),r=n("./_set-to-string-tag"),o={};n("./_hide")(o,n("./_wks")("iterator"),function(){return this}),P.exports=function(p,s,e){p.prototype=d(o,{next:g(1,e)}),r(p,s+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,P,x){"use strict";var d=n("./_library"),g=n("./_export"),r=n("./_redefine"),o=n("./_hide"),p=n("./_iterators"),s=n("./_iter-create"),e=n("./_set-to-string-tag"),i=n("./_object-gpo"),a=n("./_wks")("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};P.exports=function(c,S,E,m,T,w,f){s(E,S,m);var _,A,C,v=function(ee){if(!l&&ee in b)return b[ee];switch(ee){case"keys":case"values":return function(){return new E(this,ee)}}return function(){return new E(this,ee)}},L=S+" Iterator",U=T=="values",j=!1,b=c.prototype,k=b[a]||b["@@iterator"]||T&&b[T],H=k||v(T),G=T?U?v("entries"):H:void 0,te=S=="Array"&&b.entries||k;if(te&&(C=i(te.call(new c)))!==Object.prototype&&C.next&&(e(C,L,!0),d||typeof C[a]=="function"||o(C,a,h)),U&&k&&k.name!=="values"&&(j=!0,H=function(){return k.call(this)}),d&&!f||!l&&!j&&b[a]||o(b,a,H),p[S]=H,p[L]=h,T)if(_={values:U?H:v("values"),keys:w?H:v("keys"),entries:G},f)for(A in _)A in b||r(b,A,_[A]);else g(g.P+g.F*(l||j),S,_);return _}},{"./_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,P,x){var d=n("./_wks")("iterator"),g=!1;try{var r=[7][d]();r.return=function(){g=!0},Array.from(r,function(){throw 2})}catch(o){}P.exports=function(o,p){if(!p&&!g)return!1;var s=!1;try{var e=[7],i=e[d]();i.next=function(){return{done:s=!0}},e[d]=function(){return i},o(e)}catch(a){}return s}},{"./_wks":131}],90:[function(n,P,x){P.exports=function(d,g){return{value:g,done:!!d}}},{}],91:[function(n,P,x){P.exports={}},{}],92:[function(n,P,x){P.exports=!0},{}],93:[function(n,P,x){var d=n("./_uid")("meta"),g=n("./_is-object"),r=n("./_has"),o=n("./_object-dp").f,p=0,s=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return s(Object.preventExtensions({}))}),i=function(E){o(E,d,{value:{i:"O"+ ++p,w:{}}})},a=function(E,m){if(!g(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!r(E,d)){if(!s(E))return"F";if(!m)return"E";i(E)}return E[d].i},l=function(E,m){if(!r(E,d)){if(!s(E))return!0;if(!m)return!1;i(E)}return E[d].w},h=function(E){return e&&c.NEED&&s(E)&&!r(E,d)&&i(E),E},c=P.exports={KEY:d,NEED:!1,fastKey:a,getWeak:l,onFreeze:h}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,P,x){var d=n("./_global"),g=n("./_task").set,r=d.MutationObserver||d.WebKitMutationObserver,o=d.process,p=d.Promise,s=n("./_cof")(o)=="process";P.exports=function(){var e,i,a,l=function(){var m,T;for(s&&(m=o.domain)&&m.exit();e;){T=e.fn,e=e.next;try{T()}catch(w){throw e?a():i=void 0,w}}i=void 0,m&&m.enter()};if(s)a=function(){o.nextTick(l)};else if(!r||d.navigator&&d.navigator.standalone)if(p&&p.resolve){var h=p.resolve(void 0);a=function(){h.then(l)}}else a=function(){g.call(d,l)};else{var c=!0,S=document.createTextNode("");new r(l).observe(S,{characterData:!0}),a=function(){S.data=c=!c}}return function(E){var m={fn:E,next:void 0};i&&(i.next=m),e||(e=m,a()),i=m}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,P,x){"use strict";function d(r){var o,p;this.promise=new r(function(s,e){if(o!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");o=s,p=e}),this.resolve=g(o),this.reject=g(p)}var g=n("./_a-function");P.exports.f=function(r){return new d(r)}},{"./_a-function":58}],96:[function(n,P,x){"use strict";var d=n("./_object-keys"),g=n("./_object-gops"),r=n("./_object-pie"),o=n("./_to-object"),p=n("./_iobject"),s=Object.assign;P.exports=!s||n("./_fails")(function(){var e={},i={},a=Symbol(),l="abcdefghijklmnopqrst";return e[a]=7,l.split("").forEach(function(h){i[h]=h}),s({},e)[a]!=7||Object.keys(s({},i)).join("")!=l})?function(e,i){for(var a=o(e),l=arguments.length,h=1,c=g.f,S=r.f;l>h;)for(var E,m=p(arguments[h++]),T=c?d(m).concat(c(m)):d(m),w=T.length,f=0;w>f;)S.call(m,E=T[f++])&&(a[E]=m[E]);return a}:s},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,P,x){var d=n("./_an-object"),g=n("./_object-dps"),r=n("./_enum-bug-keys"),o=n("./_shared-key")("IE_PROTO"),p=function(){},s=function(){var i,a=n("./_dom-create")("iframe"),l=r.length;for(a.style.display="none",n("./_html").appendChild(a),a.src="javascript:",i=a.contentWindow.document,i.open(),i.write("<script>document.F=Object</script>"),i.close(),s=i.F;l--;)delete s.prototype[r[l]];return s()};P.exports=Object.create||function(e,i){var a;return e!==null?(p.prototype=d(e),a=new p,p.prototype=null,a[o]=e):a=s(),i===void 0?a:g(a,i)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,P,x){var d=n("./_an-object"),g=n("./_ie8-dom-define"),r=n("./_to-primitive"),o=Object.defineProperty;x.f=n("./_descriptors")?Object.defineProperty:function(p,s,e){if(d(p),s=r(s,!0),d(e),g)try{return o(p,s,e)}catch(i){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(p[s]=e.value),p}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,P,x){var d=n("./_object-dp"),g=n("./_an-object"),r=n("./_object-keys");P.exports=n("./_descriptors")?Object.defineProperties:function(o,p){g(o);for(var s,e=r(p),i=e.length,a=0;i>a;)d.f(o,s=e[a++],p[s]);return o}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,P,x){var d=n("./_object-pie"),g=n("./_property-desc"),r=n("./_to-iobject"),o=n("./_to-primitive"),p=n("./_has"),s=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;x.f=n("./_descriptors")?e:function(i,a){if(i=r(i),a=o(a,!0),s)try{return e(i,a)}catch(l){}if(p(i,a))return g(!d.f.call(i,a),i[a])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,P,x){var d=n("./_to-iobject"),g=n("./_object-gopn").f,r={}.toString,o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(e){try{return g(e)}catch(i){return o.slice()}};P.exports.f=function(s){return o&&r.call(s)=="[object Window]"?p(s):g(d(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,P,x){var d=n("./_object-keys-internal"),g=n("./_enum-bug-keys").concat("length","prototype");x.f=Object.getOwnPropertyNames||function(r){return d(r,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,P,x){x.f=Object.getOwnPropertySymbols},{}],104:[function(n,P,x){var d=n("./_has"),g=n("./_to-object"),r=n("./_shared-key")("IE_PROTO"),o=Object.prototype;P.exports=Object.getPrototypeOf||function(p){return p=g(p),d(p,r)?p[r]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?o:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,P,x){var d=n("./_has"),g=n("./_to-iobject"),r=n("./_array-includes")(!1),o=n("./_shared-key")("IE_PROTO");P.exports=function(p,s){var e,i=g(p),a=0,l=[];for(e in i)e!=o&&d(i,e)&&l.push(e);for(;s.length>a;)d(i,e=s[a++])&&(~r(l,e)||l.push(e));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,P,x){var d=n("./_object-keys-internal"),g=n("./_enum-bug-keys");P.exports=Object.keys||function(r){return d(r,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,P,x){x.f={}.propertyIsEnumerable},{}],108:[function(n,P,x){var d=n("./_export"),g=n("./_core"),r=n("./_fails");P.exports=function(o,p){var s=(g.Object||{})[o]||Object[o],e={};e[o]=p(s),d(d.S+d.F*r(function(){s(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,P,x){P.exports=function(d){try{return{e:!1,v:d()}}catch(g){return{e:!0,v:g}}}},{}],110:[function(n,P,x){var d=n("./_an-object"),g=n("./_is-object"),r=n("./_new-promise-capability");P.exports=function(o,p){if(d(o),g(p)&&p.constructor===o)return p;var s=r.f(o);return(0,s.resolve)(p),s.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,P,x){P.exports=function(d,g){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:g}}},{}],112:[function(n,P,x){var d=n("./_hide");P.exports=function(g,r,o){for(var p in r)o&&g[p]?g[p]=r[p]:d(g,p,r[p]);return g}},{"./_hide":78}],113:[function(n,P,x){P.exports=n("./_hide")},{"./_hide":78}],114:[function(n,P,x){"use strict";var d=n("./_global"),g=n("./_core"),r=n("./_object-dp"),o=n("./_descriptors"),p=n("./_wks")("species");P.exports=function(s){var e=typeof g[s]=="function"?g[s]:d[s];o&&e&&!e[p]&&r.f(e,p,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,P,x){var d=n("./_object-dp").f,g=n("./_has"),r=n("./_wks")("toStringTag");P.exports=function(o,p,s){o&&!g(o=s?o:o.prototype,r)&&d(o,r,{configurable:!0,value:p})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,P,x){var d=n("./_shared")("keys"),g=n("./_uid");P.exports=function(r){return d[r]||(d[r]=g(r))}},{"./_shared":117,"./_uid":127}],117:[function(n,P,x){var d=n("./_core"),g=n("./_global"),r=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(P.exports=function(o,p){return r[o]||(r[o]=p!==void 0?p:{})})("versions",[]).push({version:d.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,P,x){var d=n("./_an-object"),g=n("./_a-function"),r=n("./_wks")("species");P.exports=function(o,p){var s,e=d(o).constructor;return e===void 0||(s=d(e)[r])==null?p:g(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,P,x){var d=n("./_to-integer"),g=n("./_defined");P.exports=function(r){return function(o,p){var s,e,i=String(g(o)),a=d(p),l=i.length;return a<0||a>=l?r?"":void 0:(s=i.charCodeAt(a),s<55296||s>56319||a+1===l||(e=i.charCodeAt(a+1))<56320||e>57343?r?i.charAt(a):s:r?i.slice(a,a+2):e-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,P,x){var d,g,r,o=n("./_ctx"),p=n("./_invoke"),s=n("./_html"),e=n("./_dom-create"),i=n("./_global"),a=i.process,l=i.setImmediate,h=i.clearImmediate,c=i.MessageChannel,S=i.Dispatch,E=0,m={},T=function(){var _=+this;if(m.hasOwnProperty(_)){var A=m[_];delete m[_],A()}},w=function(_){T.call(_.data)};l&&h||(l=function(_){for(var A=[],C=1;arguments.length>C;)A.push(arguments[C++]);return m[++E]=function(){p(typeof _=="function"?_:Function(_),A)},d(E),E},h=function(_){delete m[_]},n("./_cof")(a)=="process"?d=function(_){a.nextTick(o(T,_,1))}:S&&S.now?d=function(_){S.now(o(T,_,1))}:c?(g=new c,r=g.port2,g.port1.onmessage=w,d=o(r.postMessage,r,1)):i.addEventListener&&typeof postMessage=="function"&&!i.importScripts?(d=function(_){i.postMessage(_+"","*")},i.addEventListener("message",w,!1)):d="onreadystatechange"in e("script")?function(f){s.appendChild(e("script")).onreadystatechange=function(){s.removeChild(this),T.call(f)}}:function(f){setTimeout(o(T,f,1),0)}),P.exports={set:l,clear:h}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,P,x){var d=n("./_to-integer"),g=Math.max,r=Math.min;P.exports=function(o,p){return o=d(o),o<0?g(o+p,0):r(o,p)}},{"./_to-integer":122}],122:[function(n,P,x){var d=Math.ceil,g=Math.floor;P.exports=function(r){return isNaN(r=+r)?0:(r>0?g:d)(r)}},{}],123:[function(n,P,x){var d=n("./_iobject"),g=n("./_defined");P.exports=function(r){return d(g(r))}},{"./_defined":68,"./_iobject":82}],124:[function(n,P,x){var d=n("./_to-integer"),g=Math.min;P.exports=function(r){return r>0?g(d(r),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,P,x){var d=n("./_defined");P.exports=function(g){return Object(d(g))}},{"./_defined":68}],126:[function(n,P,x){var d=n("./_is-object");P.exports=function(g,r){if(!d(g))return g;var o,p;if(r&&typeof(o=g.toString)=="function"&&!d(p=o.call(g)))return p;if(typeof(o=g.valueOf)=="function"&&!d(p=o.call(g)))return p;if(!r&&typeof(o=g.toString)=="function"&&!d(p=o.call(g)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,P,x){var d=0,g=Math.random();P.exports=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++d+g).toString(36))}},{}],128:[function(n,P,x){var d=n("./_global"),g=d.navigator;P.exports=g&&g.userAgent||""},{"./_global":76}],129:[function(n,P,x){var d=n("./_global"),g=n("./_core"),r=n("./_library"),o=n("./_wks-ext"),p=n("./_object-dp").f;P.exports=function(s){var e=g.Symbol||(g.Symbol=r?{}:d.Symbol||{});s.charAt(0)=="_"||s in e||p(e,s,{value:o.f(s)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,P,x){x.f=n("./_wks")},{"./_wks":131}],131:[function(n,P,x){var d=n("./_shared")("wks"),g=n("./_uid"),r=n("./_global").Symbol,o=typeof r=="function";(P.exports=function(p){return d[p]||(d[p]=o&&r[p]||(o?r:g)("Symbol."+p))}).store=d},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,P,x){var d=n("./_classof"),g=n("./_wks")("iterator"),r=n("./_iterators");P.exports=n("./_core").getIteratorMethod=function(o){if(o!=null)return o[g]||o["@@iterator"]||r[d(o)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,P,x){"use strict";var d=n("./_ctx"),g=n("./_export"),r=n("./_to-object"),o=n("./_iter-call"),p=n("./_is-array-iter"),s=n("./_to-length"),e=n("./_create-property"),i=n("./core.get-iterator-method");g(g.S+g.F*!n("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(l){var h,c,S,E,m=r(l),T=typeof this=="function"?this:Array,w=arguments.length,f=w>1?arguments[1]:void 0,_=f!==void 0,A=0,C=i(m);if(_&&(f=d(f,w>2?arguments[2]:void 0,2)),C==null||T==Array&&p(C))for(h=s(m.length),c=new T(h);h>A;A++)e(c,A,_?f(m[A],A):m[A]);else for(E=C.call(m),c=new T;!(S=E.next()).done;A++)e(c,A,_?o(E,f,[S.value,A],!0):S.value);return c.length=A,c}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,P,x){"use strict";var d=n("./_add-to-unscopables"),g=n("./_iter-step"),r=n("./_iterators"),o=n("./_to-iobject");P.exports=n("./_iter-define")(Array,"Array",function(p,s){this._t=o(p),this._i=0,this._k=s},function(){var p=this._t,s=this._k,e=this._i++;return!p||e>=p.length?(this._t=void 0,g(1)):s=="keys"?g(0,e):s=="values"?g(0,p[e]):g(0,[e,p[e]])},"values"),r.Arguments=r.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,P,x){"use strict";var d=n("./_is-object"),g=n("./_object-gpo"),r=n("./_wks")("hasInstance"),o=Function.prototype;r in o||n("./_object-dp").f(o,r,{value:function(s){if(typeof this!="function"||!d(s))return!1;if(!d(this.prototype))return s instanceof this;for(;s=g(s);)if(this.prototype===s)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,P,x){var d=n("./_export");d(d.S+d.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,P,x){var d=n("./_export");d(d.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,P,x){var d=n("./_export");d(d.S+d.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,P,x){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,P,x){var d=n("./_to-object"),g=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(r){return g(d(r))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,P,x){var d=n("./_to-object"),g=n("./_object-keys");n("./_object-sap")("keys",function(){return function(r){return g(d(r))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,P,x){arguments[4][36][0].apply(x,arguments)},{dup:36}],143:[function(n,P,x){"use strict";var d,g,r,o,p=n("./_library"),s=n("./_global"),e=n("./_ctx"),i=n("./_classof"),a=n("./_export"),l=n("./_is-object"),h=n("./_a-function"),c=n("./_an-instance"),S=n("./_for-of"),E=n("./_species-constructor"),m=n("./_task").set,T=n("./_microtask")(),w=n("./_new-promise-capability"),f=n("./_perform"),_=n("./_user-agent"),A=n("./_promise-resolve"),C=s.TypeError,v=s.process,L=v&&v.versions,U=L&&L.v8||"",j=s.Promise,b=i(v)=="process",k=function(){},H=g=w.f,G=!!function(){try{var B=j.resolve(1),X=(B.constructor={})[n("./_wks")("species")]=function(Y){Y(k,k)};return(b||typeof PromiseRejectionEvent=="function")&&B.then(k)instanceof X&&U.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(Y){}}(),te=function(X){var Y;return!(!l(X)||typeof(Y=X.then)!="function")&&Y},F=function(X,Y){if(!X._n){X._n=!0;var Z=X._c;T(function(){for(var se=X._v,re=X._s==1,ue=0;Z.length>ue;)!function(ce){var q,Q,ie,z=re?ce.ok:ce.fail,W=ce.resolve,ae=ce.reject,ne=ce.domain;try{z?(re||(X._h==2&&V(X),X._h=1),z===!0?q=se:(ne&&ne.enter(),q=z(se),ne&&(ne.exit(),ie=!0)),q===ce.promise?ae(C("Promise-chain cycle")):(Q=te(q))?Q.call(q,W,ae):W(q)):ae(se)}catch(me){ne&&!ie&&ne.exit(),ae(me)}}(Z[ue++]);X._c=[],X._n=!1,Y&&!X._h&&ee(X)})}},ee=function(X){m.call(s,function(){var Y,Z,se,re=X._v,ue=$(X);if(ue&&(Y=f(function(){b?v.emit("unhandledRejection",re,X):(Z=s.onunhandledrejection)?Z({promise:X,reason:re}):(se=s.console)&&se.error&&se.error("Unhandled promise rejection",re)}),X._h=b||$(X)?2:1),X._a=void 0,ue&&Y.e)throw Y.v})},$=function(X){return X._h!==1&&(X._a||X._c).length===0},V=function(X){m.call(s,function(){var Y;b?v.emit("rejectionHandled",X):(Y=s.onrejectionhandled)&&Y({promise:X,reason:X._v})})},N=function(X){var Y=this;Y._d||(Y._d=!0,Y=Y._w||Y,Y._v=X,Y._s=2,Y._a||(Y._a=Y._c.slice()),F(Y,!0))},I=function B(X){var Y,Z=this;if(!Z._d){Z._d=!0,Z=Z._w||Z;try{if(Z===X)throw C("Promise can't be resolved itself");(Y=te(X))?T(function(){var se={_w:Z,_d:!1};try{Y.call(X,e(B,se,1),e(N,se,1))}catch(re){N.call(se,re)}}):(Z._v=X,Z._s=1,F(Z,!1))}catch(se){N.call({_w:Z,_d:!1},se)}}};G||(j=function(X){c(this,j,"Promise","_h"),h(X),d.call(this);try{X(e(I,this,1),e(N,this,1))}catch(Y){N.call(this,Y)}},d=function(X){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=n("./_redefine-all")(j.prototype,{then:function(X,Y){var Z=H(E(this,j));return Z.ok=typeof X!="function"||X,Z.fail=typeof Y=="function"&&Y,Z.domain=b?v.domain:void 0,this._c.push(Z),this._a&&this._a.push(Z),this._s&&F(this,!1),Z.promise},catch:function(X){return this.then(void 0,X)}}),r=function(){var X=new d;this.promise=X,this.resolve=e(I,X,1),this.reject=e(N,X,1)},w.f=H=function(X){return X===j||X===o?new r(X):g(X)}),a(a.G+a.W+a.F*!G,{Promise:j}),n("./_set-to-string-tag")(j,"Promise"),n("./_set-species")("Promise"),o=n("./_core").Promise,a(a.S+a.F*!G,"Promise",{reject:function(X){var Y=H(this);return(0,Y.reject)(X),Y.promise}}),a(a.S+a.F*(p||!G),"Promise",{resolve:function(X){return A(p&&this===o?j:this,X)}}),a(a.S+a.F*!(G&&n("./_iter-detect")(function(B){j.all(B).catch(k)})),"Promise",{all:function(X){var Y=this,Z=H(Y),se=Z.resolve,re=Z.reject,ue=f(function(){var ce=[],q=0,Q=1;S(X,!1,function(ie){var z=q++,W=!1;ce.push(void 0),Q++,Y.resolve(ie).then(function(ae){W||(W=!0,ce[z]=ae,--Q||se(ce))},re)}),--Q||se(ce)});return ue.e&&re(ue.v),Z.promise},race:function(X){var Y=this,Z=H(Y),se=Z.reject,re=f(function(){S(X,!1,function(ue){Y.resolve(ue).then(Z.resolve,se)})});return re.e&&se(re.v),Z.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,P,x){var d=n("./_export"),g=n("./_to-absolute-index"),r=String.fromCharCode,o=String.fromCodePoint;d(d.S+d.F*(!!o&&o.length!=1),"String",{fromCodePoint:function(s){for(var e,i=[],a=arguments.length,l=0;a>l;){if(e=+arguments[l++],g(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?r(e):r(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,P,x){"use strict";var d=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,r=this._t,o=this._i;return o>=r.length?{value:void 0,done:!0}:(g=d(r,o),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,P,x){"use strict";var d=n("./_global"),g=n("./_has"),r=n("./_descriptors"),o=n("./_export"),p=n("./_redefine"),s=n("./_meta").KEY,e=n("./_fails"),i=n("./_shared"),a=n("./_set-to-string-tag"),l=n("./_uid"),h=n("./_wks"),c=n("./_wks-ext"),S=n("./_wks-define"),E=n("./_enum-keys"),m=n("./_is-array"),T=n("./_an-object"),w=n("./_is-object"),f=n("./_to-iobject"),_=n("./_to-primitive"),A=n("./_property-desc"),C=n("./_object-create"),v=n("./_object-gopn-ext"),L=n("./_object-gopd"),U=n("./_object-dp"),j=n("./_object-keys"),b=L.f,k=U.f,H=v.f,G=d.Symbol,te=d.JSON,F=te&&te.stringify,ee=h("_hidden"),$=h("toPrimitive"),V={}.propertyIsEnumerable,N=i("symbol-registry"),I=i("symbols"),B=i("op-symbols"),X=Object.prototype,Y=typeof G=="function",Z=d.QObject,se=!Z||!Z.prototype||!Z.prototype.findChild,re=r&&e(function(){return C(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a!=7})?function(D,y,O){var K=b(X,y);K&&delete X[y],k(D,y,O),K&&D!==X&&k(X,y,K)}:k,ue=function(y){var O=I[y]=C(G.prototype);return O._k=y,O},ce=Y&&typeof G.iterator=="symbol"?function(D){return typeof D=="symbol"}:function(D){return D instanceof G},q=function D(y,O,K){return y===X&&D(B,O,K),T(y),O=_(O,!0),T(K),g(I,O)?(K.enumerable?(g(y,ee)&&y[ee][O]&&(y[ee][O]=!1),K=C(K,{enumerable:A(0,!1)})):(g(y,ee)||k(y,ee,A(1,{})),y[ee][O]=!0),re(y,O,K)):k(y,O,K)},Q=function(y,O){T(y);for(var K,J=E(O=f(O)),Ee=0,he=J.length;he>Ee;)q(y,K=J[Ee++],O[K]);return y},ie=function(y,O){return O===void 0?C(y):Q(C(y),O)},z=function(y){var O=V.call(this,y=_(y,!0));return!(this===X&&g(I,y)&&!g(B,y))&&(!(O||!g(this,y)||!g(I,y)||g(this,ee)&&this[ee][y])||O)},W=function(y,O){if(y=f(y),O=_(O,!0),y!==X||!g(I,O)||g(B,O)){var K=b(y,O);return!K||!g(I,O)||g(y,ee)&&y[ee][O]||(K.enumerable=!0),K}},ae=function(y){for(var O,K=H(f(y)),J=[],Ee=0;K.length>Ee;)g(I,O=K[Ee++])||O==ee||O==s||J.push(O);return J},ne=function(y){for(var O,K=y===X,J=H(K?B:f(y)),Ee=[],he=0;J.length>he;)!g(I,O=J[he++])||K&&!g(X,O)||Ee.push(I[O]);return Ee};Y||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var y=l(arguments.length>0?arguments[0]:void 0),O=function K(J){this===X&&K.call(B,J),g(this,ee)&&g(this[ee],y)&&(this[ee][y]=!1),re(this,y,A(1,J))};return r&&se&&re(X,y,{configurable:!0,set:O}),ue(y)},p(G.prototype,"toString",function(){return this._k}),L.f=W,U.f=q,n("./_object-gopn").f=v.f=ae,n("./_object-pie").f=z,n("./_object-gops").f=ne,r&&!n("./_library")&&p(X,"propertyIsEnumerable",z,!0),c.f=function(D){return ue(h(D))}),o(o.G+o.W+o.F*!Y,{Symbol:G});for(var me="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),R=0;me.length>R;)h(me[R++]);for(var t=j(h.store),u=0;t.length>u;)S(t[u++]);o(o.S+o.F*!Y,"Symbol",{for:function(y){return g(N,y+="")?N[y]:N[y]=G(y)},keyFor:function(y){if(!ce(y))throw TypeError(y+" is not a symbol!");for(var O in N)if(N[O]===y)return O},useSetter:function(){se=!0},useSimple:function(){se=!1}}),o(o.S+o.F*!Y,"Object",{create:ie,defineProperty:q,defineProperties:Q,getOwnPropertyDescriptor:W,getOwnPropertyNames:ae,getOwnPropertySymbols:ne}),te&&o(o.S+o.F*(!Y||e(function(){var D=G();return F([D])!="[null]"||F({a:D})!="{}"||F(Object(D))!="{}"})),"JSON",{stringify:function(y){for(var O,K,J=[y],Ee=1;arguments.length>Ee;)J.push(arguments[Ee++]);if(K=O=J[1],(w(O)||y!==void 0)&&!ce(y))return m(O)||(O=function(fe,be){if(typeof K=="function"&&(be=K.call(this,fe,be)),!ce(be))return be}),J[1]=O,F.apply(te,J)}}),G.prototype[$]||n("./_hide")(G.prototype,$,G.prototype.valueOf),a(G,"Symbol"),a(Math,"Math",!0),a(d.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,P,x){"use strict";var d=n("./_export"),g=n("./_core"),r=n("./_global"),o=n("./_species-constructor"),p=n("./_promise-resolve");d(d.P+d.R,"Promise",{finally:function(e){var i=o(this,g.Promise||r.Promise),a=typeof e=="function";return this.then(a?function(l){return p(i,e()).then(function(){return l})}:e,a?function(l){return p(i,e()).then(function(){throw l})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,P,x){"use strict";var d=n("./_export"),g=n("./_new-promise-capability"),r=n("./_perform");d(d.S,"Promise",{try:function(p){var s=g.f(this),e=r(p);return(e.e?s.reject:s.resolve)(e.v),s.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,P,x){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,P,x){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,P,x){n("./es6.array.iterator");for(var d=n("./_global"),g=n("./_hide"),r=n("./_iterators"),o=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(","),s=0;s<p.length;s++){var e=p[s],i=d[e],a=i&&i.prototype;a&&!a[o]&&g(a,o,e),r[e]=r.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,P,x){var d=n("./_export"),g=n("./_task");d(d.G+d.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":73,"./_task":120}],153:[function(n,P,x){(function(d){"use strict";function g(_){return Array.isArray?Array.isArray(_):T(_)==="[object Array]"}function r(_){return typeof _=="boolean"}function o(_){return _===null}function p(_){return _==null}function s(_){return typeof _=="number"}function e(_){return typeof _=="string"}function i(_){return(_===void 0?"undefined":(0,f.default)(_))==="symbol"}function a(_){return _===void 0}function l(_){return T(_)==="[object RegExp]"}function h(_){return(_===void 0?"undefined":(0,f.default)(_))==="object"&&_!==null}function c(_){return T(_)==="[object Date]"}function S(_){return T(_)==="[object Error]"||_ instanceof Error}function E(_){return typeof _=="function"}function m(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,f.default)(_))==="symbol"||_===void 0}function T(_){return Object.prototype.toString.call(_)}var w=n("babel-runtime/helpers/typeof"),f=function(_){return _&&_.__esModule?_:{default:_}}(w);x.isArray=g,x.isBoolean=r,x.isNull=o,x.isNullOrUndefined=p,x.isNumber=s,x.isString=e,x.isSymbol=i,x.isUndefined=a,x.isRegExp=l,x.isObject=h,x.isDate=c,x.isError=S,x.isFunction=E,x.isPrimitive=m,x.isBuffer=d.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,P,x){"use strict";var d=n("babel-runtime/helpers/typeof"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);!function(r){function o(a,l){for(a=String(a),l=l||2;a.length<l;)a="0"+a;return a}function p(a){var l=new Date(a.getFullYear(),a.getMonth(),a.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var h=new Date(l.getFullYear(),0,4);h.setDate(h.getDate()-(h.getDay()+6)%7+3);var c=l.getTimezoneOffset()-h.getTimezoneOffset();l.setHours(l.getHours()-c);var S=(l-h)/6048e5;return 1+Math.floor(S)}function s(a){var l=a.getDay();return l===0&&(l=7),l}function e(a){return a===null?"null":a===void 0?"undefined":(a===void 0?"undefined":(0,g.default)(a))!=="object"?a===void 0?"undefined":(0,g.default)(a):Array.isArray(a)?"array":{}.toString.call(a).slice(8,-1).toLowerCase()}var i=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g;return function(c,S,E,m){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(S=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");S=String(i.masks[S]||S||i.masks.default);var T=S.slice(0,4);T!=="UTC:"&&T!=="GMT:"||(S=S.slice(4),E=!0,T==="GMT:"&&(m=!0));var w=E?"getUTC":"get",f=c[w+"Date"](),_=c[w+"Day"](),A=c[w+"Month"](),C=c[w+"FullYear"](),v=c[w+"Hours"](),L=c[w+"Minutes"](),U=c[w+"Seconds"](),j=c[w+"Milliseconds"](),b=E?0:c.getTimezoneOffset(),k=p(c),H=s(c),G={d:f,dd:o(f),ddd:i.i18n.dayNames[_],dddd:i.i18n.dayNames[_+7],m:A+1,mm:o(A+1),mmm:i.i18n.monthNames[A],mmmm:i.i18n.monthNames[A+12],yy:String(C).slice(2),yyyy:C,h:v%12||12,hh:o(v%12||12),H:v,HH:o(v),M:L,MM:o(L),s:U,ss:o(U),l:o(j,3),L:o(Math.round(j/10)),t:v<12?"a":"p",tt:v<12?"am":"pm",T:v<12?"A":"P",TT:v<12?"AM":"PM",Z:m?"GMT":E?"UTC":(String(c).match(l)||[""]).pop().replace(h,""),o:(b>0?"-":"+")+o(100*Math.floor(Math.abs(b)/60)+Math.abs(b)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:k,N:H};return S.replace(a,function(te){return te in G?G[te]:te.slice(1,te.length-1)})}}();i.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"},i.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 _e=="function"&&_e.amd?_e(function(){return i}):(x===void 0?"undefined":(0,g.default)(x))==="object"?P.exports=i:r.dateFormat=i}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,P,x){(function(d){function g(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){var i=this.useColors;if(e[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+e[0]+(i?"%c ":" ")+"+"+x.humanize(this.diff),i){var a="color: "+this.color;e.splice(1,0,a,"color: inherit");var l=0,h=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(l++,c==="%c"&&(h=l))}),e.splice(h,0,a)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function p(e){try{e==null?x.storage.removeItem("debug"):x.storage.debug=e}catch(i){}}function s(){var e;try{e=x.storage.debug}catch(i){}return!e&&d!==void 0&&"env"in d&&(e=d.env.DEBUG),e}x=P.exports=n("./debug"),x.log=o,x.formatArgs=r,x.save=p,x.load=s,x.useColors=g,x.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),x.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],x.formatters.j=function(e){try{return JSON.stringify(e)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}},x.enable(s())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,P,x){function d(i){var a,l=0;for(a in i)l=(l<<5)-l+i.charCodeAt(a),l|=0;return x.colors[Math.abs(l)%x.colors.length]}function g(i){function a(){if(a.enabled){var l=a,h=+new Date,c=h-(e||h);l.diff=c,l.prev=e,l.curr=h,e=h;for(var S=new Array(arguments.length),E=0;E<S.length;E++)S[E]=arguments[E];S[0]=x.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");var m=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,function(T,w){if(T==="%%")return T;m++;var f=x.formatters[w];if(typeof f=="function"){var _=S[m];T=f.call(l,_),S.splice(m,1),m--}return T}),x.formatArgs.call(l,S),(a.log||x.log||console.log.bind(console)).apply(l,S)}}return a.namespace=i,a.enabled=x.enabled(i),a.useColors=x.useColors(),a.color=d(i),typeof x.init=="function"&&x.init(a),a}function r(i){x.save(i),x.names=[],x.skips=[];for(var a=(typeof i=="string"?i:"").split(/[\s,]+/),l=a.length,h=0;h<l;h++)a[h]&&(i=a[h].replace(/\*/g,".*?"),i[0]==="-"?x.skips.push(new RegExp("^"+i.substr(1)+"$")):x.names.push(new RegExp("^"+i+"$")))}function o(){x.enable("")}function p(i){var a,l;for(a=0,l=x.skips.length;a<l;a++)if(x.skips[a].test(i))return!1;for(a=0,l=x.names.length;a<l;a++)if(x.names[a].test(i))return!0;return!1}function s(i){return i instanceof Error?i.stack||i.message:i}x=P.exports=g.debug=g.default=g,x.coerce=s,x.disable=o,x.enable=r,x.enabled=p,x.humanize=n("ms"),x.names=[],x.skips=[],x.formatters={};var e},{ms:169}],157:[function(n,P,x){"use strict";function d(r){var o=""+r,p=g.exec(o);if(!p)return o;var s,e="",i=0,a=0;for(i=p.index;i<o.length;i++){switch(o.charCodeAt(i)){case 34:s=""";break;case 38:s="&";break;case 39:s="'";break;case 60:s="<";break;case 62:s=">";break;default:continue}a!==i&&(e+=o.substring(a,i)),a=i+1,e+=s}return a!==i?e+o.substring(a,i):e}var g=/["'&<>]/;P.exports=d},{}],158:[function(n,P,x){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function g(s){return typeof s=="function"}function r(s){return typeof s=="number"}function o(s){return typeof s=="object"&&s!==null}function p(s){return s===void 0}P.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(s){if(!r(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},d.prototype.emit=function(s){var e,i,a,l,h,c;if(this._events||(this._events={}),s==="error"&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var S=new Error('Uncaught, unspecified "error" event. ('+e+")");throw S.context=e,S}if(i=this._events[s],p(i))return!1;if(g(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),i.apply(this,l)}else if(o(i))for(l=Array.prototype.slice.call(arguments,1),c=i.slice(),a=c.length,h=0;h<a;h++)c[h].apply(this,l);return!0},d.prototype.addListener=function(s,e){var i;if(!g(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,g(e.listener)?e.listener:e),this._events[s]?o(this._events[s])?this._events[s].push(e):this._events[s]=[this._events[s],e]:this._events[s]=e,o(this._events[s])&&!this._events[s].warned&&(i=p(this._maxListeners)?d.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[s].length>i&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(s,e){function i(){this.removeListener(s,i),a||(a=!0,e.apply(this,arguments))}if(!g(e))throw TypeError("listener must be a function");var a=!1;return i.listener=e,this.on(s,i),this},d.prototype.removeListener=function(s,e){var i,a,l,h;if(!g(e))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(i=this._events[s],l=i.length,a=-1,i===e||g(i.listener)&&i.listener===e)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,e);else if(o(i)){for(h=l;h-- >0;)if(i[h]===e||i[h].listener&&i[h].listener===e){a=h;break}if(a<0)return this;i.length===1?(i.length=0,delete this._events[s]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",s,e)}return this},d.prototype.removeAllListeners=function(s){var e,i;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i=this._events[s],g(i))this.removeListener(s,i);else if(i)for(;i.length;)this.removeListener(s,i[i.length-1]);return delete this._events[s],this},d.prototype.listeners=function(s){return this._events&&this._events[s]?g(this._events[s])?[this._events[s]]:this._events[s].slice():[]},d.prototype.listenerCount=function(s){if(this._events){var e=this._events[s];if(g(e))return 1;if(e)return e.length}return 0},d.listenerCount=function(s,e){return s.listenerCount(e)}},{}],159:[function(n,P,x){var d=n("http"),g=P.exports;for(var r in d)d.hasOwnProperty(r)&&(g[r]=d[r]);g.request=function(o,p){return o||(o={}),o.scheme="https",o.protocol="https:",d.request.call(this,o,p)}},{http:196}],160:[function(n,P,x){"use strict";var d=n("util"),g=n("ms");P.exports=function(r){if(typeof r=="number")return r;var o=g(r);if(o===void 0){var p=new Error(d.format("humanize-ms(%j) result undefined",r));console.warn(p.stack)}return o}},{ms:169,util:207}],161:[function(n,P,x){x.read=function(d,g,r,o,p){var s,e,i=8*p-o-1,a=(1<<i)-1,l=a>>1,h=-7,c=r?p-1:0,S=r?-1:1,E=d[g+c];for(c+=S,s=E&(1<<-h)-1,E>>=-h,h+=i;h>0;s=256*s+d[g+c],c+=S,h-=8);for(e=s&(1<<-h)-1,s>>=-h,h+=o;h>0;e=256*e+d[g+c],c+=S,h-=8);if(s===0)s=1-l;else{if(s===a)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,o),s-=l}return(E?-1:1)*e*Math.pow(2,s-o)},x.write=function(d,g,r,o,p,s){var e,i,a,l=8*s-p-1,h=(1<<l)-1,c=h>>1,S=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=o?0:s-1,m=o?1:-1,T=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(i=isNaN(g)?1:0,e=h):(e=Math.floor(Math.log(g)/Math.LN2),g*(a=Math.pow(2,-e))<1&&(e--,a*=2),g+=e+c>=1?S/a:S*Math.pow(2,1-c),g*a>=2&&(e++,a/=2),e+c>=h?(i=0,e=h):e+c>=1?(i=(g*a-1)*Math.pow(2,p),e+=c):(i=g*Math.pow(2,c-1)*Math.pow(2,p),e=0));p>=8;d[r+E]=255&i,E+=m,i/=256,p-=8);for(e=e<<p|i,l+=p;l>0;d[r+E]=255&e,E+=m,e/=256,l-=8);d[r+E-m]|=128*T}},{}],162:[function(n,P,x){typeof Object.create=="function"?P.exports=function(d,g){d.super_=g,d.prototype=Object.create(g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:P.exports=function(d,g){d.super_=g;var r=function(){};r.prototype=g.prototype,d.prototype=new r,d.prototype.constructor=d}},{}],163:[function(n,P,x){function d(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function g(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&d(r.slice(0,0))}P.exports=function(r){return r!=null&&(d(r)||g(r)||!!r._isBuffer)}},{}],164:[function(n,P,x){!function(d){function g(p){return o.call(p).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function r(p){return typeof p=="function"&&(/^class(\s|\{\}$)/.test(o.call(p))||/^.*classCallCheck\(/.test(g(p)))}var o=Function.prototype.toString;x!==void 0?(P!==void 0&&P.exports&&(x=P.exports=r),x.isClass=r):typeof _e=="function"&&_e.amd?_e([],function(){return r}):d.isClass=r}(this)},{}],165:[function(n,P,x){"use strict";function d(s){var e=s.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var g=n("core-util-is"),r=n("isstream"),o=n("is-class");Object.keys(g).map(function(s){x[d(s)]=g[s]}),x.stream=r,x.readableStream=r.isReadable,x.writableStream=r.isWritable,x.duplexStream=r.isDuplex,x.class=o,x.finite=function(s){return Number.isFinite(s)},x.NaN=function(s){return Number.isNaN(s)},x.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},x.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},x.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},x.promise=function(s){return s&&typeof s.then=="function"};var p=Math.pow(2,31);x.int=function(s){return g.isNumber(s)&&s%1==0},x.int32=function(s){return x.int(s)&&s<p&&s>=-p},x.long=function(s){return x.int(s)&&(s>=p||s<-p)},x.Long=function(s){return x.object(s)&&x.number(s.high)&&x.number(s.low)},x.double=function(s){return g.isNumber(s)&&!isNaN(s)&&s%1!=0},x.date=function(s){return s instanceof Date},x.regExp=function(s){return s instanceof RegExp},x.regexp=x.regExp,x.error=function(s){return s instanceof Error},x.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,P,x){var d={}.toString;P.exports=Array.isArray||function(g){return d.call(g)=="[object Array]"}},{}],167:[function(n,P,x){function d(s){return s instanceof p.Stream}function g(s){return d(s)&&typeof s._read=="function"&&typeof s._readableState=="object"}function r(s){return d(s)&&typeof s._write=="function"&&typeof s._writableState=="object"}function o(s){return g(s)&&r(s)}var p=n("stream");P.exports=d,P.exports.isReadable=g,P.exports.isWritable=r,P.exports.isDuplex=o},{stream:195}],168:[function(n,P,x){"use strict";function d(r,o,p){if(!r)throw new TypeError("argument dest is required");if(!o)throw new TypeError("argument src is required");return p===void 0&&(p=!0),Object.getOwnPropertyNames(o).forEach(function(s){if(p||!g.call(r,s)){var e=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,e)}}),r}P.exports=d;var g=Object.prototype.hasOwnProperty},{}],169:[function(n,P,x){function d(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var c=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*p;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function g(l){return l>=i?Math.round(l/i)+"d":l>=e?Math.round(l/e)+"h":l>=s?Math.round(l/s)+"m":l>=p?Math.round(l/p)+"s":l+"ms"}function r(l){return o(l,i,"day")||o(l,e,"hour")||o(l,s,"minute")||o(l,p,"second")||l+" ms"}function o(l,h,c){if(!(l<h))return l<1.5*h?Math.floor(l/h)+" "+c:Math.ceil(l/h)+" "+c+"s"}var p=1e3,s=60*p,e=60*s,i=24*e,a=365.25*i;P.exports=function(l,h){h=h||{};var c=typeof l;if(c==="string"&&l.length>0)return d(l);if(c==="number"&&isNaN(l)===!1)return h.long?r(l):g(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(n,P,x){(function(d){function g(s,e){for(var i=0,a=s.length-1;a>=0;a--){var l=s[a];l==="."?s.splice(a,1):l===".."?(s.splice(a,1),i++):i&&(s.splice(a,1),i--)}if(e)for(;i--;i)s.unshift("..");return s}function r(s){typeof s!="string"&&(s+="");var e,i=0,a=-1,l=!0;for(e=s.length-1;e>=0;--e)if(s.charCodeAt(e)===47){if(!l){i=e+1;break}}else a===-1&&(l=!1,a=e+1);return a===-1?"":s.slice(i,a)}function o(s,e){if(s.filter)return s.filter(e);for(var i=[],a=0;a<s.length;a++)e(s[a],a,s)&&i.push(s[a]);return i}x.resolve=function(){for(var s="",e=!1,i=arguments.length-1;i>=-1&&!e;i--){var a=i>=0?arguments[i]:d.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");a&&(s=a+"/"+s,e=a.charAt(0)==="/")}return s=g(o(s.split("/"),function(l){return!!l}),!e).join("/"),(e?"/":"")+s||"."},x.normalize=function(s){var e=x.isAbsolute(s),i=p(s,-1)==="/";return s=g(o(s.split("/"),function(a){return!!a}),!e).join("/"),s||e||(s="."),s&&i&&(s+="/"),(e?"/":"")+s},x.isAbsolute=function(s){return s.charAt(0)==="/"},x.join=function(){var s=Array.prototype.slice.call(arguments,0);return x.normalize(o(s,function(e,i){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},x.relative=function(s,e){function i(m){for(var T=0;T<m.length&&m[T]==="";T++);for(var w=m.length-1;w>=0&&m[w]==="";w--);return T>w?[]:m.slice(T,w-T+1)}s=x.resolve(s).substr(1),e=x.resolve(e).substr(1);for(var a=i(s.split("/")),l=i(e.split("/")),h=Math.min(a.length,l.length),c=h,S=0;S<h;S++)if(a[S]!==l[S]){c=S;break}for(var E=[],S=c;S<a.length;S++)E.push("..");return E=E.concat(l.slice(c)),E.join("/")},x.sep="/",x.delimiter=":",x.dirname=function(s){if(typeof s!="string"&&(s+=""),s.length===0)return".";for(var e=s.charCodeAt(0),i=e===47,a=-1,l=!0,h=s.length-1;h>=1;--h)if((e=s.charCodeAt(h))===47){if(!l){a=h;break}}else l=!1;return a===-1?i?"/":".":i&&a===1?"/":s.slice(0,a)},x.basename=function(s,e){var i=r(s);return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},x.extname=function(s){typeof s!="string"&&(s+="");for(var e=-1,i=0,a=-1,l=!0,h=0,c=s.length-1;c>=0;--c){var S=s.charCodeAt(c);if(S!==47)a===-1&&(l=!1,a=c+1),S===46?e===-1?e=c:h!==1&&(h=1):e!==-1&&(h=-1);else if(!l){i=c+1;break}}return e===-1||a===-1||h===0||h===1&&e===a-1&&e===i+1?"":s.slice(e,a)};var p="ab".substr(-1)==="b"?function(s,e,i){return s.substr(e,i)}:function(s,e,i){return e<0&&(e=s.length+e),s.substr(e,i)}}).call(this,n("_process"))},{_process:173}],171:[function(n,P,x){(function(d){(function(){"use strict";function g(U){return U=String(U),U.charAt(0).toUpperCase()+U.slice(1)}function r(U,j,b){var k={"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 j&&b&&/^Win/i.test(U)&&!/^Windows Phone /i.test(U)&&(k=k[/[\d.]+$/.exec(U)])&&(U="Windows "+k),U=String(U),j&&b&&(U=U.replace(RegExp(j,"i"),b)),U=p(U.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function o(U,j){var b=-1,k=U?U.length:0;if(typeof k=="number"&&k>-1&&k<=f)for(;++b<k;)j(U[b],b,U);else s(U,j)}function p(U){return U=h(U),/^(?:webOS|i(?:OS|P))/.test(U)?U:g(U)}function s(U,j){for(var b in U)C.call(U,b)&&j(U[b],b,U)}function e(U){return U==null?g(U):v.call(U).slice(8,-1)}function i(U,j){var b=U!=null?typeof U[j]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(b)||b=="object"&&!U[j])}function a(U){return String(U).replace(/([ -])(?!$)/g,"$1?")}function l(U,j){var b=null;return o(U,function(k,H){b=j(b,k,H,U)}),b}function h(U){return String(U).replace(/^ +| +$/g,"")}function c(U){function j(D){return l(D,function(y,O){var K=O.pattern||a(O);return!y&&(y=RegExp("\\b"+K+" *\\d+[.\\w_]*","i").exec(U)||RegExp("\\b"+K+" *\\w+-[\\w]*","i").exec(U)||RegExp("\\b"+K+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(U))&&((y=String(O.label&&!RegExp(K,"i").test(O.label)?O.label:y).split("/"))[1]&&!/[\d.]+/.test(y[0])&&(y[0]+=" "+y[1]),O=O.label||O,y=p(y[0].replace(RegExp(K,"i"),O).replace(RegExp("; *(?:"+O+"[_-])?","i")," ").replace(RegExp("("+O+")[-_.]?(\\w)","i"),"$1 $2"))),y})}function b(){return this.description||""}var k=E,H=U&&typeof U=="object"&&e(U)!="String";H&&(k=U,U=null);var G=k.navigator||{},te=G.userAgent||"";U||(U=te);var F,ee,$=H?!!G.likeChrome:/\bChrome\b/.test(U)&&!/internal|\n/i.test(v.toString()),V=H?"Object":"ScriptBridgingProxyObject",N=H?"Object":"Environment",I=H&&k.java?"JavaPackage":e(k.java),B=H?"Object":"RuntimeObject",X=/\bJava/.test(I)&&k.java,Y=X&&e(k.environment)==N,Z=X?"a":"\u4F2A",se=X?"b":"\u5C3E",re=k.document||{},ue=k.operamini||k.opera,ce=_.test(ce=H&&ue?ue["[[Class]]"]:e(ue))?ce:ue=null,q=U,Q=[],ie=null,z=U==te,W=z&&ue&&typeof ue.version=="function"&&ue.version(),ae=function(D){return l(D,function(y,O){return y||RegExp("\\b"+(O.pattern||a(O))+"\\b","i").exec(U)&&(O.label||O)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ne=function(D){return l(D,function(y,O){return y||RegExp("\\b"+(O.pattern||a(O))+"\\b","i").exec(U)&&(O.label||O)})}(["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"]),me=j([{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"]),R=function(D){return l(D,function(y,O,K){return y||(O[me]||O[/^[a-z]+(?: +[a-z]+\b)*/i.exec(me)]||RegExp("\\b"+a(K)+"(?:\\b|\\w*\\d)","i").exec(U))&&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}}),t=function(D){return l(D,function(y,O){var K=O.pattern||a(O);return!y&&(y=RegExp("\\b"+K+"(?:/[\\d.]+|[ \\w.]*)","i").exec(U))&&(y=r(y,K,O.label||O)),y})}(["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(ae&&(ae=[ae]),R&&!me&&(me=j([R])),(F=/\bGoogle TV\b/.exec(me))&&(me=F[0]),/\bSimulator\b/i.test(U)&&(me=(me?me+" ":"")+"Simulator"),ne=="Opera Mini"&&/\bOPiOS\b/.test(U)&&Q.push("running in Turbo/Uncompressed mode"),ne=="IE"&&/\blike iPhone OS\b/.test(U)?(F=c(U.replace(/like iPhone OS/,"")),R=F.manufacturer,me=F.product):/^iP/.test(me)?(ne||(ne="Safari"),t="iOS"+((F=/ OS ([\d_]+)/i.exec(U))?" "+F[1].replace(/_/g,"."):"")):ne!="Konqueror"||/buntu/i.test(t)?R&&R!="Google"&&(/Chrome/.test(ne)&&!/\bMobile Safari\b/i.test(U)||/\bVita\b/.test(me))||/\bAndroid\b/.test(t)&&/^Chrome/.test(ne)&&/\bVersion\//i.test(U)?(ne="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):ne=="Silk"?(/\bMobi/i.test(U)||(t="Android",Q.unshift("desktop mode")),/Accelerated *= *true/i.test(U)&&Q.unshift("accelerated")):ne=="PaleMoon"&&(F=/\bFirefox\/([\d.]+)\b/.exec(U))?Q.push("identifying as Firefox "+F[1]):ne=="Firefox"&&(F=/\b(Mobile|Tablet|TV)\b/i.exec(U))?(t||(t="Firefox OS"),me||(me=F[1])):!ne||(F=!/\bMinefield\b/i.test(U)&&/\b(?:Firefox|Safari)\b/.exec(ne))?(ne&&!me&&/[\/,]|^[^(]+?\)/.test(U.slice(U.indexOf(F+"/")+8))&&(ne=null),(F=me||R||t)&&(me||R||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(ne=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:F)+" Browser")):ne=="Electron"&&(F=(/\bChrome\/([\d.]+)\b/.exec(U)||0)[1])&&Q.push("Chromium "+F):t="Kubuntu",W||(W=function(D){return l(D,function(y,O){return y||(RegExp(O+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(U)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",a(ne),"(?:Firefox|Minefield|NetFront)"])),(F=ae=="iCab"&&parseFloat(W)>3&&"WebKit"||/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(U)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(U)&&!/^(?:Trident|EdgeHTML)$/.test(ae)&&"WebKit"||!ae&&/\bMSIE\b/i.test(U)&&(t=="Mac OS"?"Tasman":"Trident")||ae=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(ae=[F]),ne=="IE"&&(F=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(U)||0)[1])?(ne+=" Mobile",t="Windows Phone "+(/\+$/.test(F)?F:F+".x"),Q.unshift("desktop mode")):/\bWPDesktop\b/i.test(U)?(ne="IE Mobile",t="Windows Phone 8.x",Q.unshift("desktop mode"),W||(W=(/\brv:([\d.]+)/.exec(U)||0)[1])):ne!="IE"&&ae=="Trident"&&(F=/\brv:([\d.]+)/.exec(U))&&(ne&&Q.push("identifying as "+ne+(W?" "+W:"")),ne="IE",W=F[1]),z){if(i(k,"global"))if(X&&(F=X.lang.System,q=F.getProperty("os.arch"),t=t||F.getProperty("os.name")+" "+F.getProperty("os.version")),Y){try{W=k.require("ringo/engine").version.join("."),ne="RingoJS"}catch(D){(F=k.system)&&F.global.system==k.system&&(ne="Narwhal",t||(t=F[0].os||null))}ne||(ne="Rhino")}else typeof k.process=="object"&&!k.process.browser&&(F=k.process)&&(typeof F.versions=="object"&&(typeof F.versions.electron=="string"?(Q.push("Node "+F.versions.node),ne="Electron",W=F.versions.electron):typeof F.versions.nw=="string"&&(Q.push("Chromium "+W,"Node "+F.versions.node),ne="NW.js",W=F.versions.nw)),ne||(ne="Node.js",q=F.arch,t=F.platform,W=/[\d.]+/.exec(F.version),W=W?W[0]:null));else e(F=k.runtime)==V?(ne="Adobe AIR",t=F.flash.system.Capabilities.os):e(F=k.phantom)==B?(ne="PhantomJS",W=(F=F.version||null)&&F.major+"."+F.minor+"."+F.patch):typeof re.documentMode=="number"&&(F=/\bTrident\/(\d+)/i.exec(U))?(W=[W,re.documentMode],(F=+F[1]+4)!=W[1]&&(Q.push("IE "+W[1]+" mode"),ae&&(ae[1]=""),W[1]=F),W=ne=="IE"?String(W[1].toFixed(1)):W[0]):typeof re.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ne)&&(Q.push("masking as "+ne+" "+W),ne="IE",W="11.0",ae=["Trident"],t="Windows");t=t&&p(t)}if(W&&(F=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(W)||/(?:alpha|beta)(?: ?\d)?/i.exec(U+";"+(z&&G.appMinorVersion))||/\bMinefield\b/i.test(U)&&"a")&&(ie=/b/i.test(F)?"beta":"alpha",W=W.replace(RegExp(F+"\\+?$"),"")+(ie=="beta"?se:Z)+(/\d+\+?/.exec(F)||"")),ne=="Fennec"||ne=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))ne="Firefox Mobile";else if(ne=="Maxthon"&&W)W=W.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(me))me=="Xbox 360"&&(t=null),me=="Xbox 360"&&/\bIEMobile\b/.test(U)&&Q.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||me||/Browser|Mobi/.test(ne))||t!="Windows CE"&&!/Mobi/i.test(U))if(ne=="IE"&&z)try{k.external===null&&Q.unshift("platform preview")}catch(D){Q.unshift("embedded")}else(/\bBlackBerry\b/.test(me)||/\bBB10\b/.test(U))&&(F=(RegExp(me.replace(/ +/g," *")+"/([.\\d]+)","i").exec(U)||0)[1]||W)?(F=[F,/BB10/.test(U)],t=(F[1]?(me=null,R="BlackBerry"):"Device Software")+" "+F[0],W=null):this!=s&&me!="Wii"&&(z&&ue||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(U)||ne=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||ne=="IE"&&(t&&!/^Win/.test(t)&&W>5.5||/\bWindows XP\b/.test(t)&&W>8||W==8&&!/\bTrident\b/.test(U)))&&!_.test(F=c.call(s,U.replace(_,"")+";"))&&F.name&&(F="ing as "+F.name+((F=F.version)?" "+F:""),_.test(ne)?(/\bIE\b/.test(F)&&t=="Mac OS"&&(t=null),F="identify"+F):(F="mask"+F,ne=ce?p(ce.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(F)&&(t=null),z||(W=null)),ae=["Presto"],Q.push(F));else ne+=" Mobile";(F=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(U)||0)[1])&&(F=[parseFloat(F.replace(/\.(\d)$/,".0$1")),F],ne=="Safari"&&F[1].slice(-1)=="+"?(ne="WebKit Nightly",ie="alpha",W=F[1].slice(0,-1)):W!=F[1]&&W!=(F[2]=(/\bSafari\/([\d.]+\+?)/i.exec(U)||0)[1])||(W=null),F[1]=(/\bChrome\/([\d.]+)/i.exec(U)||0)[1],F[0]==537.36&&F[2]==537.36&&parseFloat(F[1])>=28&&ae=="WebKit"&&(ae=["Blink"]),z&&($||F[1])?(ae&&(ae[1]="like Chrome"),F=F[1]||(F=F[0],F<530?1:F<532?2:F<532.05?3:F<533?4:F<534.03?5:F<534.07?6:F<534.1?7:F<534.13?8:F<534.16?9:F<534.24?10:F<534.3?11:F<535.01?12:F<535.02?"13+":F<535.07?15:F<535.11?16:F<535.19?17:F<536.05?18:F<536.1?19:F<537.01?20:F<537.11?"21+":F<537.13?23:F<537.18?24:F<537.24?25:F<537.36?26:ae!="Blink"?"27":"28")):(ae&&(ae[1]="like Safari"),F=F[0],F=F<400?1:F<500?2:F<526?3:F<533?4:F<534?"4+":F<535?5:F<537?6:F<538?7:F<601?8:"8"),ae&&(ae[1]+=" "+(F+=typeof F=="number"?".x":/[.+]/.test(F)?"":"+")),ne=="Safari"&&(!W||parseInt(W)>45)&&(W=F)),ne=="Opera"&&(F=/\bzbov|zvav$/.exec(t))?(ne+=" ",Q.unshift("desktop mode"),F=="zvav"?(ne+="Mini",W=null):ne+="Mobile",t=t.replace(RegExp(" *"+F+"$"),"")):ne=="Safari"&&/\bChrome\b/.exec(ae&&ae[1])&&(Q.unshift("desktop mode"),ne="Chrome Mobile",W=null,/\bOS X\b/.test(t)?(R="Apple",t="iOS 4.3+"):t=null),W&&W.indexOf(F=/[\d.]+$/.exec(t))==0&&U.indexOf("/"+F+"-")>-1&&(t=h(t.replace(F,""))),ae&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||ne!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(ae[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ne)&&ae[1])&&(F=ae[ae.length-1])&&Q.push(F),Q.length&&(Q=["("+Q.join("; ")+")"]),R&&me&&me.indexOf(R)<0&&Q.push("on "+R),me&&Q.push((/^on /.test(Q[Q.length-1])?"":"on ")+me),t&&(F=/ ([\d.+]+)$/.exec(t),ee=F&&t.charAt(t.length-F[0].length-1)=="/",t={architecture:32,family:F&&!ee?t.replace(F[0],""):t,version:F?F[1]:null,toString:function(){var y=this.version;return this.family+(y&&!ee?" "+y:"")+(this.architecture==64?" 64-bit":"")}}),(F=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(q))&&!/\bi686\b/i.test(q)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+F),"")),ne&&(/\bWOW64\b/i.test(U)||z&&/\w(?:86|32)$/.test(G.cpuClass||G.platform)&&!/\bWin64; x64\b/i.test(U))&&Q.unshift("32-bit")):t&&/^OS X/.test(t.family)&&ne=="Chrome"&&parseFloat(W)>=39&&(t.architecture=64),U||(U=null);var u={};return u.description=U,u.layout=ae&&ae[0],u.manufacturer=R,u.name=ne,u.prerelease=ie,u.product=me,u.ua=U,u.version=ne&&W,u.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},u.parse=c,u.toString=b,u.version&&Q.unshift(W),u.name&&Q.unshift(ne),t&&ne&&(t!=String(t).split(" ")[0]||t!=ne.split(" ")[0]&&!me)&&Q.push(me?"("+t+")":"on "+t),Q.length&&(u.description=Q.join(" ")),u}var S={function:!0,object:!0},E=S[typeof window]&&window||this,m=S[typeof x]&&x,T=S[typeof P]&&P&&!P.nodeType&&P,w=m&&T&&typeof d=="object"&&d;!w||w.global!==w&&w.window!==w&&w.self!==w||(E=w);var f=Math.pow(2,53)-1,_=/\bOpera/,A=Object.prototype,C=A.hasOwnProperty,v=A.toString,L=c();typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd?(E.platform=L,_e(function(){return L})):m&&T?s(L,function(U,j){m[j]=U}):E.platform=L}).call(this)}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,P,x){(function(d){"use strict";function g(r,o,p,s){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var e,i,a=arguments.length;switch(a){case 0:case 1:return d.nextTick(r);case 2:return d.nextTick(function(){r.call(null,o)});case 3:return d.nextTick(function(){r.call(null,o,p)});case 4:return d.nextTick(function(){r.call(null,o,p,s)});default:for(e=new Array(a-1),i=0;i<e.length;)e[i++]=arguments[i];return d.nextTick(function(){r.apply(null,e)})}}!d.version||d.version.indexOf("v0.")===0||d.version.indexOf("v1.")===0&&d.version.indexOf("v1.8.")!==0?P.exports={nextTick:g}:P.exports=d}).call(this,n("_process"))},{_process:173}],173:[function(n,P,x){function d(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function r(T){if(a===setTimeout)return setTimeout(T,0);if((a===d||!a)&&setTimeout)return a=setTimeout,setTimeout(T,0);try{return a(T,0)}catch(w){try{return a.call(null,T,0)}catch(f){return a.call(this,T,0)}}}function o(T){if(l===clearTimeout)return clearTimeout(T);if((l===g||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(T);try{return l(T)}catch(w){try{return l.call(null,T)}catch(f){return l.call(this,T)}}}function p(){E&&c&&(E=!1,c.length?S=c.concat(S):m=-1,S.length&&s())}function s(){if(!E){var T=r(p);E=!0;for(var w=S.length;w;){for(c=S,S=[];++m<w;)c&&c[m].run();m=-1,w=S.length}c=null,E=!1,o(T)}}function e(T,w){this.fun=T,this.array=w}function i(){}var a,l,h=P.exports={};!function(){try{a=typeof setTimeout=="function"?setTimeout:d}catch(T){a=d}try{l=typeof clearTimeout=="function"?clearTimeout:g}catch(T){l=g}}();var c,S=[],E=!1,m=-1;h.nextTick=function(T){var w=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)w[f-1]=arguments[f];S.push(new e(T,w)),S.length!==1||E||r(s)},e.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=i,h.addListener=i,h.once=i,h.off=i,h.removeListener=i,h.removeAllListeners=i,h.emit=i,h.prependListener=i,h.prependOnceListener=i,h.listeners=function(T){return[]},h.binding=function(T){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(T){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],174:[function(n,P,x){(function(d){!function(g){function r(I){throw new RangeError(ee[I])}function o(I,B){for(var X=I.length,Y=[];X--;)Y[X]=B(I[X]);return Y}function p(I,B){var X=I.split("@"),Y="";return X.length>1&&(Y=X[0]+"@",I=X[1]),I=I.replace(F,"."),Y+o(I.split("."),B).join(".")}function s(I){for(var B,X,Y=[],Z=0,se=I.length;Z<se;)B=I.charCodeAt(Z++),B>=55296&&B<=56319&&Z<se?(X=I.charCodeAt(Z++),(64512&X)==56320?Y.push(((1023&B)<<10)+(1023&X)+65536):(Y.push(B),Z--)):Y.push(B);return Y}function e(I){return o(I,function(B){var X="";return B>65535&&(B-=65536,X+=N(B>>>10&1023|55296),B=56320|1023&B),X+=N(B)}).join("")}function i(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:C}function a(I,B){return I+22+75*(I<26)-((B!=0)<<5)}function l(I,B,X){var Y=0;for(I=X?V(I/j):I>>1,I+=V(I/B);I>$*L>>1;Y+=C)I=V(I/$);return V(Y+($+1)*I/(I+U))}function h(I){var B,X,Y,Z,se,re,ue,ce,q,Q,ie=[],z=I.length,W=0,ae=k,ne=b;for(X=I.lastIndexOf(H),X<0&&(X=0),Y=0;Y<X;++Y)I.charCodeAt(Y)>=128&&r("not-basic"),ie.push(I.charCodeAt(Y));for(Z=X>0?X+1:0;Z<z;){for(se=W,re=1,ue=C;Z>=z&&r("invalid-input"),ce=i(I.charCodeAt(Z++)),(ce>=C||ce>V((A-W)/re))&&r("overflow"),W+=ce*re,q=ue<=ne?v:ue>=ne+L?L:ue-ne,!(ce<q);ue+=C)Q=C-q,re>V(A/Q)&&r("overflow"),re*=Q;B=ie.length+1,ne=l(W-se,B,se==0),V(W/B)>A-ae&&r("overflow"),ae+=V(W/B),W%=B,ie.splice(W++,0,ae)}return e(ie)}function c(I){var B,X,Y,Z,se,re,ue,ce,q,Q,ie,z,W,ae,ne,me=[];for(I=s(I),z=I.length,B=k,X=0,se=b,re=0;re<z;++re)(ie=I[re])<128&&me.push(N(ie));for(Y=Z=me.length,Z&&me.push(H);Y<z;){for(ue=A,re=0;re<z;++re)(ie=I[re])>=B&&ie<ue&&(ue=ie);for(W=Y+1,ue-B>V((A-X)/W)&&r("overflow"),X+=(ue-B)*W,B=ue,re=0;re<z;++re)if(ie=I[re],ie<B&&++X>A&&r("overflow"),ie==B){for(ce=X,q=C;Q=q<=se?v:q>=se+L?L:q-se,!(ce<Q);q+=C)ne=ce-Q,ae=C-Q,me.push(N(a(Q+ne%ae,0))),ce=V(ne/ae);me.push(N(a(ce,0))),se=l(X,W,Y==Z),X=0,++Y}++X,++B}return me.join("")}function S(I){return p(I,function(B){return G.test(B)?h(B.slice(4).toLowerCase()):B})}function E(I){return p(I,function(B){return te.test(B)?"xn--"+c(B):B})}var m=typeof x=="object"&&x&&!x.nodeType&&x,T=typeof P=="object"&&P&&!P.nodeType&&P,w=typeof d=="object"&&d;w.global!==w&&w.window!==w&&w.self!==w||(g=w);var f,_,A=2147483647,C=36,v=1,L=26,U=38,j=700,b=72,k=128,H="-",G=/^xn--/,te=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,ee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=C-v,V=Math.floor,N=String.fromCharCode;if(f={version:"1.4.1",ucs2:{decode:s,encode:e},decode:h,encode:c,toASCII:E,toUnicode:S},typeof _e=="function"&&typeof _e.amd=="object"&&_e.amd)_e("punycode",function(){return f});else if(m&&T)if(P.exports==m)T.exports=f;else for(_ in f)f.hasOwnProperty(_)&&(m[_]=f[_]);else g.punycode=f}(this)}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,P,x){"use strict";function d(r,o){return Object.prototype.hasOwnProperty.call(r,o)}P.exports=function(r,o,p,s){o=o||"&",p=p||"=";var e={};if(typeof r!="string"||r.length===0)return e;var i=/\+/g;r=r.split(o);var a=1e3;s&&typeof s.maxKeys=="number"&&(a=s.maxKeys);var l=r.length;a>0&&l>a&&(l=a);for(var h=0;h<l;++h){var c,S,E,m,T=r[h].replace(i,"%20"),w=T.indexOf(p);w>=0?(c=T.substr(0,w),S=T.substr(w+1)):(c=T,S=""),E=decodeURIComponent(c),m=decodeURIComponent(S),d(e,E)?g(e[E])?e[E].push(m):e[E]=[e[E],m]:e[E]=m}return e};var g=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}},{}],176:[function(n,P,x){"use strict";function d(p,s){if(p.map)return p.map(s);for(var e=[],i=0;i<p.length;i++)e.push(s(p[i],i));return e}var g=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};P.exports=function(p,s,e,i){return s=s||"&",e=e||"=",p===null&&(p=void 0),typeof p=="object"?d(o(p),function(a){var l=encodeURIComponent(g(a))+e;return r(p[a])?d(p[a],function(h){return l+encodeURIComponent(g(h))}).join(s):l+encodeURIComponent(g(p[a]))}).join(s):i?encodeURIComponent(g(i))+e+encodeURIComponent(g(p)):""};var r=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"},o=Object.keys||function(p){var s=[];for(var e in p)Object.prototype.hasOwnProperty.call(p,e)&&s.push(e);return s}},{}],177:[function(n,P,x){"use strict";x.decode=x.parse=n("./decode"),x.encode=x.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,P,x){P.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,P,x){"use strict";function d(E){if(!(this instanceof d))return new d(E);a.call(this,E),l.call(this,E),E&&E.readable===!1&&(this.readable=!1),E&&E.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,E&&E.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",g)}function g(){this.allowHalfOpen||this._writableState.ended||s.nextTick(r,this)}function r(E){E.end()}var o=n("babel-runtime/core-js/object/keys"),p=function(E){return E&&E.__esModule?E:{default:E}}(o),s=n("process-nextick-args"),e=p.default||function(E){var m=[];for(var T in E)m.push(T);return m};P.exports=d;var i=n("core-util-is");i.inherits=n("inherits");var a=n("./_stream_readable"),l=n("./_stream_writable");i.inherits(d,a);for(var h=e(l.prototype),c=0;c<h.length;c++){var S=h[c];d.prototype[S]||(d.prototype[S]=l.prototype[S])}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=m,this._writableState.destroyed=m)}}),d.prototype._destroy=function(E,m){this.push(null),this.end(),s.nextTick(m,E)}},{"./_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,P,x){"use strict";function d(o){if(!(this instanceof d))return new d(o);g.call(this,o)}P.exports=d;var g=n("./_stream_transform"),r=n("core-util-is");r.inherits=n("inherits"),r.inherits(d,g),d.prototype._transform=function(o,p,s){s(null,o)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,P,x){(function(d,g){"use strict";function r(z){return X.from(z)}function o(z){return X.isBuffer(z)||z instanceof Y}function p(z,W,ae){if(typeof z.prependListener=="function")return z.prependListener(W,ae);z._events&&z._events[W]?N(z._events[W])?z._events[W].unshift(ae):z._events[W]=[ae,z._events[W]]:z.on(W,ae)}function s(z,W){V=V||n("./_stream_duplex"),z=z||{};var ae=W instanceof V;this.objectMode=!!z.objectMode,ae&&(this.objectMode=this.objectMode||!!z.readableObjectMode);var ne=z.highWaterMark,me=z.readableHighWaterMark,R=this.objectMode?16:16384;this.highWaterMark=ne||ne===0?ne:ae&&(me||me===0)?me:R,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=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(ue||(ue=n("string_decoder/").StringDecoder),this.decoder=new ue(z.encoding),this.encoding=z.encoding)}function e(z){if(V=V||n("./_stream_duplex"),!(this instanceof e))return new e(z);this._readableState=new s(z,this),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),B.call(this)}function i(z,W,ae,ne,me){var R=z._readableState;if(W===null)R.reading=!1,E(z,R);else{var t;me||(t=l(R,W)),t?z.emit("error",t):R.objectMode||W&&W.length>0?(typeof W=="string"||R.objectMode||(0,ee.default)(W)===X.prototype||(W=r(W)),ne?R.endEmitted?z.emit("error",new Error("stream.unshift() after end event")):a(z,R,W,!0):R.ended?z.emit("error",new Error("stream.push() after EOF")):(R.reading=!1,R.decoder&&!ae?(W=R.decoder.write(W),R.objectMode||W.length!==0?a(z,R,W,!1):w(z,R)):a(z,R,W,!1))):ne||(R.reading=!1)}return h(R)}function a(z,W,ae,ne){W.flowing&&W.length===0&&!W.sync?(z.emit("data",ae),z.read(0)):(W.length+=W.objectMode?1:ae.length,ne?W.buffer.unshift(ae):W.buffer.push(ae),W.needReadable&&m(z)),w(z,W)}function l(z,W){var ae;return o(W)||typeof W=="string"||W===void 0||z.objectMode||(ae=new TypeError("Invalid non-string/buffer chunk")),ae}function h(z){return!z.ended&&(z.needReadable||z.length<z.highWaterMark||z.length===0)}function c(z){return z>=ie?z=ie:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}function S(z,W){return z<=0||W.length===0&&W.ended?0:W.objectMode?1:z!==z?W.flowing&&W.length?W.buffer.head.data.length:W.length:(z>W.highWaterMark&&(W.highWaterMark=c(z)),z<=W.length?z:W.ended?W.length:(W.needReadable=!0,0))}function E(z,W){if(!W.ended){if(W.decoder){var ae=W.decoder.end();ae&&ae.length&&(W.buffer.push(ae),W.length+=W.objectMode?1:ae.length)}W.ended=!0,m(z)}}function m(z){var W=z._readableState;W.needReadable=!1,W.emittedReadable||(re("emitReadable",W.flowing),W.emittedReadable=!0,W.sync?$.nextTick(T,z):T(z))}function T(z){re("emit readable"),z.emit("readable"),L(z)}function w(z,W){W.readingMore||(W.readingMore=!0,$.nextTick(f,z,W))}function f(z,W){for(var ae=W.length;!W.reading&&!W.flowing&&!W.ended&&W.length<W.highWaterMark&&(re("maybeReadMore read 0"),z.read(0),ae!==W.length);)ae=W.length;W.readingMore=!1}function _(z){return function(){var W=z._readableState;re("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&I(z,"data")&&(W.flowing=!0,L(z))}}function A(z){re("readable nexttick read 0"),z.read(0)}function C(z,W){W.resumeScheduled||(W.resumeScheduled=!0,$.nextTick(v,z,W))}function v(z,W){W.reading||(re("resume read 0"),z.read(0)),W.resumeScheduled=!1,W.awaitDrain=0,z.emit("resume"),L(z),W.flowing&&!W.reading&&z.read(0)}function L(z){var W=z._readableState;for(re("flow",W.flowing);W.flowing&&z.read()!==null;);}function U(z,W){if(W.length===0)return null;var ae;return W.objectMode?ae=W.buffer.shift():!z||z>=W.length?(ae=W.decoder?W.buffer.join(""):W.buffer.length===1?W.buffer.head.data:W.buffer.concat(W.length),W.buffer.clear()):ae=j(z,W.buffer,W.decoder),ae}function j(z,W,ae){var ne;return z<W.head.data.length?(ne=W.head.data.slice(0,z),W.head.data=W.head.data.slice(z)):ne=z===W.head.data.length?W.shift():ae?b(z,W):k(z,W),ne}function b(z,W){var ae=W.head,ne=1,me=ae.data;for(z-=me.length;ae=ae.next;){var R=ae.data,t=z>R.length?R.length:z;if(t===R.length?me+=R:me+=R.slice(0,z),(z-=t)===0){t===R.length?(++ne,ae.next?W.head=ae.next:W.head=W.tail=null):(W.head=ae,ae.data=R.slice(t));break}++ne}return W.length-=ne,me}function k(z,W){var ae=X.allocUnsafe(z),ne=W.head,me=1;for(ne.data.copy(ae),z-=ne.data.length;ne=ne.next;){var R=ne.data,t=z>R.length?R.length:z;if(R.copy(ae,ae.length-z,0,t),(z-=t)===0){t===R.length?(++me,ne.next?W.head=ne.next:W.head=W.tail=null):(W.head=ne,ne.data=R.slice(t));break}++me}return W.length-=me,ae}function H(z){var W=z._readableState;if(W.length>0)throw new Error('"endReadable()" called on non-empty stream');W.endEmitted||(W.ended=!0,$.nextTick(G,W,z))}function G(z,W){z.endEmitted||z.length!==0||(z.endEmitted=!0,W.readable=!1,W.emit("end"))}function te(z,W){for(var ae=0,ne=z.length;ae<ne;ae++)if(z[ae]===W)return ae;return-1}var F=n("babel-runtime/core-js/object/get-prototype-of"),ee=function(z){return z&&z.__esModule?z:{default:z}}(F),$=n("process-nextick-args");P.exports=e;var V,N=n("isarray");e.ReadableState=s;var I=(n("events").EventEmitter,function(z,W){return z.listeners(W).length}),B=n("./internal/streams/stream"),X=n("safe-buffer").Buffer,Y=g.Uint8Array||function(){},Z=n("core-util-is");Z.inherits=n("inherits");var se=n("util"),re=void 0;re=se&&se.debuglog?se.debuglog("stream"):function(){};var ue,ce=n("./internal/streams/BufferList"),q=n("./internal/streams/destroy");Z.inherits(e,B);var Q=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),e.prototype.destroy=q.destroy,e.prototype._undestroy=q.undestroy,e.prototype._destroy=function(z,W){this.push(null),W(z)},e.prototype.push=function(z,W){var ae,ne=this._readableState;return ne.objectMode?ae=!0:typeof z=="string"&&(W=W||ne.defaultEncoding,W!==ne.encoding&&(z=X.from(z,W),W=""),ae=!0),i(this,z,W,!1,ae)},e.prototype.unshift=function(z){return i(this,z,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(z){return ue||(ue=n("string_decoder/").StringDecoder),this._readableState.decoder=new ue(z),this._readableState.encoding=z,this};var ie=8388608;e.prototype.read=function(z){re("read",z),z=parseInt(z,10);var W=this._readableState,ae=z;if(z!==0&&(W.emittedReadable=!1),z===0&&W.needReadable&&(W.length>=W.highWaterMark||W.ended))return re("read: emitReadable",W.length,W.ended),W.length===0&&W.ended?H(this):m(this),null;if((z=S(z,W))===0&&W.ended)return W.length===0&&H(this),null;var ne=W.needReadable;re("need readable",ne),(W.length===0||W.length-z<W.highWaterMark)&&(ne=!0,re("length less than watermark",ne)),W.ended||W.reading?(ne=!1,re("reading or ended",ne)):ne&&(re("do read"),W.reading=!0,W.sync=!0,W.length===0&&(W.needReadable=!0),this._read(W.highWaterMark),W.sync=!1,W.reading||(z=S(ae,W)));var me;return me=z>0?U(z,W):null,me===null?(W.needReadable=!0,z=0):W.length-=z,W.length===0&&(W.ended||(W.needReadable=!0),ae!==z&&W.ended&&H(this)),me!==null&&this.emit("data",me),me},e.prototype._read=function(z){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(z,W){function ae(Re,Ce){re("onunpipe"),Re===O&&Ce&&Ce.hasUnpiped===!1&&(Ce.hasUnpiped=!0,me())}function ne(){re("onend"),z.end()}function me(){re("cleanup"),z.removeListener("close",u),z.removeListener("finish",D),z.removeListener("drain",he),z.removeListener("error",t),z.removeListener("unpipe",ae),O.removeListener("end",ne),O.removeListener("end",y),O.removeListener("data",R),fe=!0,!K.awaitDrain||z._writableState&&!z._writableState.needDrain||he()}function R(Re){re("ondata"),be=!1,z.write(Re)!==!1||be||((K.pipesCount===1&&K.pipes===z||K.pipesCount>1&&te(K.pipes,z)!==-1)&&!fe&&(re("false write response, pause",O._readableState.awaitDrain),O._readableState.awaitDrain++,be=!0),O.pause())}function t(Re){re("onerror",Re),y(),z.removeListener("error",t),I(z,"error")===0&&z.emit("error",Re)}function u(){z.removeListener("finish",D),y()}function D(){re("onfinish"),z.removeListener("close",u),y()}function y(){re("unpipe"),O.unpipe(z)}var O=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=z;break;case 1:K.pipes=[K.pipes,z];break;default:K.pipes.push(z)}K.pipesCount+=1,re("pipe count=%d opts=%j",K.pipesCount,W);var J=(!W||W.end!==!1)&&z!==d.stdout&&z!==d.stderr,Ee=J?ne:y;K.endEmitted?$.nextTick(Ee):O.once("end",Ee),z.on("unpipe",ae);var he=_(O);z.on("drain",he);var fe=!1,be=!1;return O.on("data",R),p(z,"error",t),z.once("close",u),z.once("finish",D),z.emit("pipe",O),K.flowing||(re("pipe resume"),O.resume()),z},e.prototype.unpipe=function(z){var W=this._readableState,ae={hasUnpiped:!1};if(W.pipesCount===0)return this;if(W.pipesCount===1)return z&&z!==W.pipes?this:(z||(z=W.pipes),W.pipes=null,W.pipesCount=0,W.flowing=!1,z&&z.emit("unpipe",this,ae),this);if(!z){var ne=W.pipes,me=W.pipesCount;W.pipes=null,W.pipesCount=0,W.flowing=!1;for(var R=0;R<me;R++)ne[R].emit("unpipe",this,ae);return this}var t=te(W.pipes,z);return t===-1?this:(W.pipes.splice(t,1),W.pipesCount-=1,W.pipesCount===1&&(W.pipes=W.pipes[0]),z.emit("unpipe",this,ae),this)},e.prototype.on=function(z,W){var ae=B.prototype.on.call(this,z,W);if(z==="data")this._readableState.flowing!==!1&&this.resume();else if(z==="readable"){var ne=this._readableState;ne.endEmitted||ne.readableListening||(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&m(this):$.nextTick(A,this))}return ae},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var z=this._readableState;return z.flowing||(re("resume"),z.flowing=!0,C(this,z)),this},e.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(z){var W=this,ae=this._readableState,ne=!1;z.on("end",function(){if(re("wrapped end"),ae.decoder&&!ae.ended){var t=ae.decoder.end();t&&t.length&&W.push(t)}W.push(null)}),z.on("data",function(t){(re("wrapped data"),ae.decoder&&(t=ae.decoder.write(t)),(!ae.objectMode||t!=null)&&(ae.objectMode||t&&t.length))&&(W.push(t)||(ne=!0,z.pause()))});for(var me in z)this[me]===void 0&&typeof z[me]=="function"&&(this[me]=function(t){return function(){return z[t].apply(z,arguments)}}(me));for(var R=0;R<Q.length;R++)z.on(Q[R],this.emit.bind(this,Q[R]));return this._read=function(t){re("wrapped _read",t),ne&&(ne=!1,z.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=U}).call(this,n("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(n,P,x){"use strict";function d(e,i){var a=this._transformState;a.transforming=!1;var l=a.writecb;if(!l)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,i!=null&&this.push(i),l(e);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function g(e){if(!(this instanceof g))return new g(e);p.call(this,e),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",r)}function r(){var e=this;typeof this._flush=="function"?this._flush(function(i,a){o(e,i,a)}):o(this,null,null)}function o(e,i,a){if(i)return e.emit("error",i);if(a!=null&&e.push(a),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}P.exports=g;var p=n("./_stream_duplex"),s=n("core-util-is");s.inherits=n("inherits"),s.inherits(g,p),g.prototype.push=function(e,i){return this._transformState.needTransform=!1,p.prototype.push.call(this,e,i)},g.prototype._transform=function(e,i,a){throw new Error("_transform() is not implemented")},g.prototype._write=function(e,i,a){var l=this._transformState;if(l.writecb=a,l.writechunk=e,l.writeencoding=i,!l.transforming){var h=this._readableState;(l.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},g.prototype._read=function(e){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},g.prototype._destroy=function(e,i){var a=this;p.prototype._destroy.call(this,e,function(l){i(l),a.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,P,x){(function(d,g){"use strict";function r(q){return q&&q.__esModule?q:{default:q}}function o(q){var Q=this;this.next=null,this.entry=null,this.finish=function(){b(Q,q)}}function p(q){return se.from(q)}function s(q){return se.isBuffer(q)||q instanceof re}function e(){}function i(q,Q){I=I||n("./_stream_duplex"),q=q||{};var ie=Q instanceof I;this.objectMode=!!q.objectMode,ie&&(this.objectMode=this.objectMode||!!q.writableObjectMode);var z=q.highWaterMark,W=q.writableHighWaterMark,ae=this.objectMode?16:16384;this.highWaterMark=z||z===0?z:ie&&(W||W===0)?W:ae,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 ne=q.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(me){w(Q,me)},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 o(this)}function a(q){if(I=I||n("./_stream_duplex"),!(ce.call(a,this)||this instanceof I))return new a(q);this._writableState=new i(q,this),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),Z.call(this)}function l(q,Q){var ie=new Error("write after end");q.emit("error",ie),N.nextTick(Q,ie)}function h(q,Q,ie,z){var W=!0,ae=!1;return ie===null?ae=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||Q.objectMode||(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(q.emit("error",ae),N.nextTick(z,ae),W=!1),W}function c(q,Q,ie){return q.objectMode||q.decodeStrings===!1||typeof Q!="string"||(Q=se.from(Q,ie)),Q}function S(q,Q,ie,z,W,ae){if(!ie){var ne=c(Q,z,W);z!==ne&&(ie=!0,W="buffer",z=ne)}var me=Q.objectMode?1:z.length;Q.length+=me;var R=Q.length<Q.highWaterMark;if(R||(Q.needDrain=!0),Q.writing||Q.corked){var t=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:z,encoding:W,isBuf:ie,callback:ae,next:null},t?t.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else E(q,Q,!1,me,z,W,ae);return R}function E(q,Q,ie,z,W,ae,ne){Q.writelen=z,Q.writecb=ne,Q.writing=!0,Q.sync=!0,ie?q._writev(W,Q.onwrite):q._write(W,ae,Q.onwrite),Q.sync=!1}function m(q,Q,ie,z,W){--Q.pendingcb,ie?(N.nextTick(W,z),N.nextTick(U,q,Q),q._writableState.errorEmitted=!0,q.emit("error",z)):(W(z),q._writableState.errorEmitted=!0,q.emit("error",z),U(q,Q))}function T(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function w(q,Q){var ie=q._writableState,z=ie.sync,W=ie.writecb;if(T(ie),Q)m(q,ie,z,Q,W);else{var ae=C(ie);ae||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||A(q,ie),z?B(f,q,ie,ae,W):f(q,ie,ae,W)}}function f(q,Q,ie,z){ie||_(q,Q),Q.pendingcb--,z(),U(q,Q)}function _(q,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,q.emit("drain"))}function A(q,Q){Q.bufferProcessing=!0;var ie=Q.bufferedRequest;if(q._writev&&ie&&ie.next){var z=Q.bufferedRequestCount,W=new Array(z),ae=Q.corkedRequestsFree;ae.entry=ie;for(var ne=0,me=!0;ie;)W[ne]=ie,ie.isBuf||(me=!1),ie=ie.next,ne+=1;W.allBuffers=me,E(q,Q,!0,Q.length,W,"",ae.finish),Q.pendingcb++,Q.lastBufferedRequest=null,ae.next?(Q.corkedRequestsFree=ae.next,ae.next=null):Q.corkedRequestsFree=new o(Q),Q.bufferedRequestCount=0}else{for(;ie;){var R=ie.chunk,t=ie.encoding,u=ie.callback;if(E(q,Q,!1,Q.objectMode?1:R.length,R,t,u),ie=ie.next,Q.bufferedRequestCount--,Q.writing)break}ie===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=ie,Q.bufferProcessing=!1}function C(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function v(q,Q){q._final(function(ie){Q.pendingcb--,ie&&q.emit("error",ie),Q.prefinished=!0,q.emit("prefinish"),U(q,Q)})}function L(q,Q){Q.prefinished||Q.finalCalled||(typeof q._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,N.nextTick(v,q,Q)):(Q.prefinished=!0,q.emit("prefinish")))}function U(q,Q){var ie=C(Q);return ie&&(L(q,Q),Q.pendingcb===0&&(Q.finished=!0,q.emit("finish"))),ie}function j(q,Q,ie){Q.ending=!0,U(q,Q),ie&&(Q.finished?N.nextTick(ie):q.once("finish",ie)),Q.ended=!0,q.writable=!1}function b(q,Q,ie){var z=q.entry;for(q.entry=null;z;){var W=z.callback;Q.pendingcb--,W(ie),z=z.next}Q.corkedRequestsFree?Q.corkedRequestsFree.next=q:Q.corkedRequestsFree=q}var k=n("babel-runtime/core-js/object/define-property"),H=r(k),G=n("babel-runtime/core-js/symbol/has-instance"),te=r(G),F=n("babel-runtime/core-js/symbol"),ee=r(F),$=n("babel-runtime/core-js/set-immediate"),V=r($),N=n("process-nextick-args");P.exports=a;var I,B=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?V.default:N.nextTick;a.WritableState=i;var X=n("core-util-is");X.inherits=n("inherits");var Y={deprecate:n("util-deprecate")},Z=n("./internal/streams/stream"),se=n("safe-buffer").Buffer,re=g.Uint8Array||function(){},ue=n("./internal/streams/destroy");X.inherits(a,Z),i.prototype.getBuffer=function(){for(var q=this.bufferedRequest,Q=[];q;)Q.push(q),q=q.next;return Q},function(){try{Object.defineProperty(i.prototype,"buffer",{get:Y.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(q){}}();var ce;typeof ee.default=="function"&&te.default&&typeof Function.prototype[te.default]=="function"?(ce=Function.prototype[te.default],(0,H.default)(a,te.default,{value:function(Q){return!!ce.call(this,Q)||this===a&&Q&&Q._writableState instanceof i}})):ce=function(Q){return Q instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(q,Q,ie){var z=this._writableState,W=!1,ae=!z.objectMode&&s(q);return ae&&!se.isBuffer(q)&&(q=p(q)),typeof Q=="function"&&(ie=Q,Q=null),ae?Q="buffer":Q||(Q=z.defaultEncoding),typeof ie!="function"&&(ie=e),z.ended?l(this,ie):(ae||h(this,z,q,ie))&&(z.pendingcb++,W=S(this,z,ae,q,Q,ie)),W},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,q.writing||q.corked||q.finished||q.bufferProcessing||!q.bufferedRequest||A(this,q))},a.prototype.setDefaultEncoding=function(q){if(typeof q=="string"&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(q,Q,ie){ie(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(q,Q,ie){var z=this._writableState;typeof q=="function"?(ie=q,q=null,Q=null):typeof Q=="function"&&(ie=Q,Q=null),q!=null&&this.write(q,Q),z.corked&&(z.corked=1,this.uncork()),z.ending||z.finished||j(this,z,ie)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),a.prototype.destroy=ue.destroy,a.prototype._undestroy=ue.undestroy,a.prototype._destroy=function(q,Q){this.end(),Q(q)}}).call(this,n("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(n,P,x){"use strict";function d(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}function g(p,s,e){p.copy(s,e)}var r=n("safe-buffer").Buffer,o=n("util");P.exports=function(){function p(){d(this,p),this.head=null,this.tail=null,this.length=0}return p.prototype.push=function(s){var e={data:s,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},p.prototype.unshift=function(s){var e={data:s,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},p.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},p.prototype.clear=function(){this.head=this.tail=null,this.length=0},p.prototype.join=function(s){if(this.length===0)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=s+e.data;return i},p.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var e=r.allocUnsafe(s>>>0),i=this.head,a=0;i;)g(i.data,e,a),a+=i.data.length,i=i.next;return e},p}(),o&&o.inspect&&o.inspect.custom&&(P.exports.prototype[o.inspect.custom]=function(){var p=o.inspect({length:this.length});return this.constructor.name+" "+p})},{"safe-buffer":193,util:36}],185:[function(n,P,x){"use strict";function d(p,s){var e=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(s?s(p):!p||this._writableState&&this._writableState.errorEmitted||o.nextTick(r,this,p),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(l){!s&&l?(o.nextTick(r,e,l),e._writableState&&(e._writableState.errorEmitted=!0)):s&&s(l)}),this)}function g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function r(p,s){p.emit("error",s)}var o=n("process-nextick-args");P.exports={destroy:d,undestroy:g}},{"process-nextick-args":172}],186:[function(n,P,x){"use strict";P.exports=n("events").EventEmitter},{events:158}],187:[function(n,P,x){P.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,P,x){x=P.exports=n("./lib/_stream_readable.js"),x.Stream=x,x.Readable=x,x.Writable=n("./lib/_stream_writable.js"),x.Duplex=n("./lib/_stream_duplex.js"),x.Transform=n("./lib/_stream_transform.js"),x.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,P,x){P.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,P,x){P.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,P,x){var d=function(){return this}()||Function("return this")(),g=d.regeneratorRuntime&&Object.getOwnPropertyNames(d).indexOf("regeneratorRuntime")>=0,r=g&&d.regeneratorRuntime;if(d.regeneratorRuntime=void 0,P.exports=n("./runtime"),g)d.regeneratorRuntime=r;else try{delete d.regeneratorRuntime}catch(o){d.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,P,x){!function(d){"use strict";function g(V,N,I,B){var X=N&&N.prototype instanceof o?N:o,Y=Object.create(X.prototype),Z=new S(B||[]);return Y._invoke=a(V,I,Z),Y}function r(V,N,I){try{return{type:"normal",arg:V.call(N,I)}}catch(B){return{type:"throw",arg:B}}}function o(){}function p(){}function s(){}function e(V){["next","throw","return"].forEach(function(N){V[N]=function(I){return this._invoke(N,I)}})}function i(V){function N(X,Y,Z,se){var re=r(V[X],V,Y);if(re.type!=="throw"){var ue=re.arg,ce=ue.value;return ce&&typeof ce=="object"&&f.call(ce,"__await")?Promise.resolve(ce.__await).then(function(q){N("next",q,Z,se)},function(q){N("throw",q,Z,se)}):Promise.resolve(ce).then(function(q){ue.value=q,Z(ue)},se)}se(re.arg)}function I(X,Y){function Z(){return new Promise(function(se,re){N(X,Y,se,re)})}return B=B?B.then(Z,Z):Z()}var B;this._invoke=I}function a(V,N,I){var B=j;return function(X,Y){if(B===k)throw new Error("Generator is already running");if(B===H){if(X==="throw")throw Y;return m()}for(I.method=X,I.arg=Y;;){var Z=I.delegate;if(Z){var se=l(Z,I);if(se){if(se===G)continue;return se}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(B===j)throw B=H,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);B=k;var re=r(V,N,I);if(re.type==="normal"){if(B=I.done?H:b,re.arg===G)continue;return{value:re.arg,done:I.done}}re.type==="throw"&&(B=H,I.method="throw",I.arg=re.arg)}}}function l(V,N){var I=V.iterator[N.method];if(I===T){if(N.delegate=null,N.method==="throw"){if(V.iterator.return&&(N.method="return",N.arg=T,l(V,N),N.method==="throw"))return G;N.method="throw",N.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var B=r(I,V.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,G;var X=B.arg;return X?X.done?(N[V.resultName]=X.value,N.next=V.nextLoc,N.method!=="return"&&(N.method="next",N.arg=T),N.delegate=null,G):X:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,G)}function h(V){var N={tryLoc:V[0]};1 in V&&(N.catchLoc=V[1]),2 in V&&(N.finallyLoc=V[2],N.afterLoc=V[3]),this.tryEntries.push(N)}function c(V){var N=V.completion||{};N.type="normal",delete N.arg,V.completion=N}function S(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(h,this),this.reset(!0)}function E(V){if(V){var N=V[A];if(N)return N.call(V);if(typeof V.next=="function")return V;if(!isNaN(V.length)){var I=-1,B=function X(){for(;++I<V.length;)if(f.call(V,I))return X.value=V[I],X.done=!1,X;return X.value=T,X.done=!0,X};return B.next=B}}return{next:m}}function m(){return{value:T,done:!0}}var T,w=Object.prototype,f=w.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},A=_.iterator||"@@iterator",C=_.asyncIterator||"@@asyncIterator",v=_.toStringTag||"@@toStringTag",L=typeof P=="object",U=d.regeneratorRuntime;if(U)return void(L&&(P.exports=U));U=d.regeneratorRuntime=L?P.exports:{},U.wrap=g;var j="suspendedStart",b="suspendedYield",k="executing",H="completed",G={},te={};te[A]=function(){return this};var F=Object.getPrototypeOf,ee=F&&F(F(E([])));ee&&ee!==w&&f.call(ee,A)&&(te=ee);var $=s.prototype=o.prototype=Object.create(te);p.prototype=$.constructor=s,s.constructor=p,s[v]=p.displayName="GeneratorFunction",U.isGeneratorFunction=function(V){var N=typeof V=="function"&&V.constructor;return!!N&&(N===p||(N.displayName||N.name)==="GeneratorFunction")},U.mark=function(V){return Object.setPrototypeOf?Object.setPrototypeOf(V,s):(V.__proto__=s,v in V||(V[v]="GeneratorFunction")),V.prototype=Object.create($),V},U.awrap=function(V){return{__await:V}},e(i.prototype),i.prototype[C]=function(){return this},U.AsyncIterator=i,U.async=function(V,N,I,B){var X=new i(g(V,N,I,B));return U.isGeneratorFunction(N)?X:X.next().then(function(Y){return Y.done?Y.value:X.next()})},e($),$[v]="Generator",$[A]=function(){return this},$.toString=function(){return"[object Generator]"},U.keys=function(V){var N=[];for(var I in V)N.push(I);return N.reverse(),function B(){for(;N.length;){var X=N.pop();if(X in V)return B.value=X,B.done=!1,B}return B.done=!0,B}},U.values=E,S.prototype={constructor:S,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=T,this.done=!1,this.delegate=null,this.method="next",this.arg=T,this.tryEntries.forEach(c),!N)for(var I in this)I.charAt(0)==="t"&&f.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=T)},stop:function(){this.done=!0;var N=this.tryEntries[0],I=N.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(N){function I(ue,ce){return Z.type="throw",Z.arg=N,B.next=ue,ce&&(B.method="next",B.arg=T),!!ce}if(this.done)throw N;for(var B=this,X=this.tryEntries.length-1;X>=0;--X){var Y=this.tryEntries[X],Z=Y.completion;if(Y.tryLoc==="root")return I("end");if(Y.tryLoc<=this.prev){var se=f.call(Y,"catchLoc"),re=f.call(Y,"finallyLoc");if(se&&re){if(this.prev<Y.catchLoc)return I(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return I(Y.finallyLoc)}else if(se){if(this.prev<Y.catchLoc)return I(Y.catchLoc,!0)}else{if(!re)throw new Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return I(Y.finallyLoc)}}}},abrupt:function(N,I){for(var B=this.tryEntries.length-1;B>=0;--B){var X=this.tryEntries[B];if(X.tryLoc<=this.prev&&f.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var Y=X;break}}Y&&(N==="break"||N==="continue")&&Y.tryLoc<=I&&I<=Y.finallyLoc&&(Y=null);var Z=Y?Y.completion:{};return Z.type=N,Z.arg=I,Y?(this.method="next",this.next=Y.finallyLoc,G):this.complete(Z)},complete:function(N,I){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&I&&(this.next=I),G},finish:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var B=this.tryEntries[I];if(B.finallyLoc===N)return this.complete(B.completion,B.afterLoc),c(B),G}},catch:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var B=this.tryEntries[I];if(B.tryLoc===N){var X=B.completion;if(X.type==="throw"){var Y=X.arg;c(B)}return Y}}throw new Error("illegal catch attempt")},delegateYield:function(N,I,B){return this.delegate={iterator:E(N),resultName:I,nextLoc:B},this.method==="next"&&(this.arg=T),G}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,P,x){function d(p,s){for(var e in p)s[e]=p[e]}function g(p,s,e){return o(p,s,e)}var r=n("buffer"),o=r.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?P.exports=r:(d(r,x),x.Buffer=g),d(o,g),g.from=function(p,s,e){if(typeof p=="number")throw new TypeError("Argument must not be a number");return o(p,s,e)},g.alloc=function(p,s,e){if(typeof p!="number")throw new TypeError("Argument must be a number");var i=o(p);return s!==void 0?typeof e=="string"?i.fill(s,e):i.fill(s):i.fill(0),i},g.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return o(p)},g.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(p)}},{buffer:38}],194:[function(n,P,x){(function(d){"use strict";function g(m){return m&&m.__esModule?m:{default:m}}var r=n("babel-runtime/core-js/string/from-code-point"),o=g(r),p=n("babel-runtime/core-js/json/stringify"),s=g(p),e=n("babel-runtime/helpers/typeof"),i=g(e),a=n("babel-runtime/core-js/object/define-property"),l=g(a),h=n("babel-runtime/core-js/object/keys"),c=g(h),S=n("babel-runtime/core-js/object/create"),E=g(S);!function(m){function T(y,O){if(!(this instanceof T))return new T(y,O);var K=this;f(K),K.q=K.c="",K.bufferCheckPosition=m.MAX_BUFFER_LENGTH,K.opt=O||{},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=!!y,K.noscript=!(!y&&!K.opt.noscript),K.state=u.BEGIN,K.strictEntities=K.opt.strictEntities,K.ENTITIES=K.strictEntities?(0,E.default)(m.XML_ENTITIES):(0,E.default)(m.ENTITIES),K.attribList=[],K.opt.xmlns&&(K.ns=(0,E.default)(ae)),K.trackPosition=K.opt.position!==!1,K.trackPosition&&(K.position=K.line=K.column=0),k(K,"onready")}function w(y){for(var O=Math.max(m.MAX_BUFFER_LENGTH,10),K=0,J=0,Ee=ue.length;J<Ee;J++){var he=y[ue[J]].length;if(he>O)switch(ue[J]){case"textNode":G(y);break;case"cdata":H(y,"oncdata",y.cdata),y.cdata="";break;case"script":H(y,"onscript",y.script),y.script="";break;default:F(y,"Max buffer length exceeded: "+ue[J])}K=Math.max(K,he)}var fe=m.MAX_BUFFER_LENGTH-K;y.bufferCheckPosition=fe+y.position}function f(y){for(var O=0,K=ue.length;O<K;O++)y[ue[O]]=""}function _(y){G(y),y.cdata!==""&&(H(y,"oncdata",y.cdata),y.cdata=""),y.script!==""&&(H(y,"onscript",y.script),y.script="")}function A(y,O){return new C(y,O)}function C(y,O){if(!(this instanceof C))return new C(y,O);ce.apply(this),this._parser=new T(y,O),this.writable=!0,this.readable=!0;var K=this;this._parser.onend=function(){K.emit("end")},this._parser.onerror=function(J){K.emit("error",J),K._parser.error=null},this._decoder=null,q.forEach(function(J){(0,l.default)(K,"on"+J,{get:function(){return K._parser["on"+J]},set:function(he){if(!he)return K.removeAllListeners(J),K._parser["on"+J]=he,he;K.on(J,he)},enumerable:!0,configurable:!1})})}function v(y){return y===" "||y===`
|
|
|
`||y==="\r"||y===" "}function L(y){return y==='"'||y==="'"}function U(y){return y===">"||v(y)}function j(y,O){return y.test(O)}function b(y,O){return!j(y,O)}function k(y,O,K){y[O]&&y[O](K)}function H(y,O,K){y.textNode&&G(y),k(y,O,K)}function G(y){y.textNode=te(y.opt,y.textNode),y.textNode&&k(y,"ontext",y.textNode),y.textNode=""}function te(y,O){return y.trim&&(O=O.trim()),y.normalize&&(O=O.replace(/\s+/g," ")),O}function F(y,O){return G(y),y.trackPosition&&(O+=`
|
|
|
Line: `+y.line+`
|
|
|
Column: `+y.column+`
|
|
|
Char: `+y.c),O=new Error(O),y.error=O,k(y,"onerror",O),y}function ee(y){return y.sawRoot&&!y.closedRoot&&$(y,"Unclosed root tag"),y.state!==u.BEGIN&&y.state!==u.BEGIN_WHITESPACE&&y.state!==u.TEXT&&F(y,"Unexpected end"),G(y),y.c="",y.closed=!0,k(y,"onend"),T.call(y,y.strict,y.opt),y}function $(y,O){if((y===void 0?"undefined":(0,i.default)(y))!=="object"||!(y instanceof T))throw new Error("bad call to strictFail");y.strict&&F(y,O)}function V(y){y.strict||(y.tagName=y.tagName[y.looseCase]());var O=y.tags[y.tags.length-1]||y,K=y.tag={name:y.tagName,attributes:{}};y.opt.xmlns&&(K.ns=O.ns),y.attribList.length=0,H(y,"onopentagstart",K)}function N(y,O){var K=y.indexOf(":"),J=K<0?["",y]:y.split(":"),Ee=J[0],he=J[1];return O&&y==="xmlns"&&(Ee="xmlns",he=""),{prefix:Ee,local:he}}function I(y){if(y.strict||(y.attribName=y.attribName[y.looseCase]()),y.attribList.indexOf(y.attribName)!==-1||y.tag.attributes.hasOwnProperty(y.attribName))return void(y.attribName=y.attribValue="");if(y.opt.xmlns){var O=N(y.attribName,!0),K=O.prefix,J=O.local;if(K==="xmlns")if(J==="xml"&&y.attribValue!==z)$(y,"xml: prefix must be bound to "+z+`
|
|
|
Actual: `+y.attribValue);else if(J==="xmlns"&&y.attribValue!==W)$(y,"xmlns: prefix must be bound to "+W+`
|
|
|
Actual: `+y.attribValue);else{var Ee=y.tag,he=y.tags[y.tags.length-1]||y;Ee.ns===he.ns&&(Ee.ns=(0,E.default)(he.ns)),Ee.ns[J]=y.attribValue}y.attribList.push([y.attribName,y.attribValue])}else y.tag.attributes[y.attribName]=y.attribValue,H(y,"onattribute",{name:y.attribName,value:y.attribValue});y.attribName=y.attribValue=""}function B(y,O){if(y.opt.xmlns){var K=y.tag,J=N(y.tagName);K.prefix=J.prefix,K.local=J.local,K.uri=K.ns[J.prefix]||"",K.prefix&&!K.uri&&($(y,"Unbound namespace prefix: "+(0,s.default)(y.tagName)),K.uri=J.prefix);var Ee=y.tags[y.tags.length-1]||y;K.ns&&Ee.ns!==K.ns&&(0,c.default)(K.ns).forEach(function(tt){H(y,"onopennamespace",{prefix:tt,uri:K.ns[tt]})});for(var he=0,fe=y.attribList.length;he<fe;he++){var be=y.attribList[he],Re=be[0],Ce=be[1],le=N(Re,!0),Ke=le.prefix,lt=le.local,Je=Ke===""?"":K.ns[Ke]||"",Ve={name:Re,value:Ce,prefix:Ke,local:lt,uri:Je};Ke&&Ke!=="xmlns"&&!Je&&($(y,"Unbound namespace prefix: "+(0,s.default)(Ke)),Ve.uri=Ke),y.tag.attributes[Re]=Ve,H(y,"onattribute",Ve)}y.attribList.length=0}y.tag.isSelfClosing=!!O,y.sawRoot=!0,y.tags.push(y.tag),H(y,"onopentag",y.tag),O||(y.noscript||y.tagName.toLowerCase()!=="script"?y.state=u.TEXT:y.state=u.SCRIPT,y.tag=null,y.tagName=""),y.attribName=y.attribValue="",y.attribList.length=0}function X(y){if(!y.tagName)return $(y,"Weird empty close tag."),y.textNode+="</>",void(y.state=u.TEXT);if(y.script){if(y.tagName!=="script")return y.script+="</"+y.tagName+">",y.tagName="",void(y.state=u.SCRIPT);H(y,"onscript",y.script),y.script=""}var O=y.tags.length,K=y.tagName;y.strict||(K=K[y.looseCase]());for(var J=K;O--&&!(y.tags[O].name===J);)$(y,"Unexpected close tag");if(O<0)return $(y,"Unmatched closing tag: "+y.tagName),y.textNode+="</"+y.tagName+">",void(y.state=u.TEXT);y.tagName=K;for(var Ee=y.tags.length;Ee-- >O;){var he=y.tag=y.tags.pop();y.tagName=y.tag.name,H(y,"onclosetag",y.tagName);var fe={};for(var be in he.ns)fe[be]=he.ns[be];var Re=y.tags[y.tags.length-1]||y;y.opt.xmlns&&he.ns!==Re.ns&&(0,c.default)(he.ns).forEach(function(Ce){var le=he.ns[Ce];H(y,"onclosenamespace",{prefix:Ce,uri:le})})}O===0&&(y.closedRoot=!0),y.tagName=y.attribValue=y.attribName="",y.attribList.length=0,y.state=u.TEXT}function Y(y){var O,K=y.entity,J=K.toLowerCase(),Ee="";return y.ENTITIES[K]?y.ENTITIES[K]:y.ENTITIES[J]?y.ENTITIES[J]:(K=J,K.charAt(0)==="#"&&(K.charAt(1)==="x"?(K=K.slice(2),O=parseInt(K,16),Ee=O.toString(16)):(K=K.slice(1),O=parseInt(K,10),Ee=O.toString(10))),K=K.replace(/^0+/,""),isNaN(O)||Ee.toLowerCase()!==K?($(y,"Invalid character entity"),"&"+y.entity+";"):(0,o.default)(O))}function Z(y,O){O==="<"?(y.state=u.OPEN_WAKA,y.startTagPosition=y.position):v(O)||($(y,"Non-whitespace before first tag."),y.textNode=O,y.state=u.TEXT)}function se(y,O){var K="";return O<y.length&&(K=y.charAt(O)),K}function re(y){var O=this;if(this.error)throw this.error;if(O.closed)return F(O,"Cannot write after close. Assign an onready handler.");if(y===null)return ee(O);(y===void 0?"undefined":(0,i.default)(y))==="object"&&(y=y.toString());for(var K=0,J="";!(J=se(y,K++),O.c=J,!J);)switch(O.trackPosition&&(O.position++,J===`
|
|
|
`?(O.line++,O.column=0):O.column++),O.state){case u.BEGIN:if(O.state=u.BEGIN_WHITESPACE,J==="\uFEFF")continue;Z(O,J);continue;case u.BEGIN_WHITESPACE:Z(O,J);continue;case u.TEXT:if(O.sawRoot&&!O.closedRoot){for(var Ee=K-1;J&&J!=="<"&&J!=="&";)(J=se(y,K++))&&O.trackPosition&&(O.position++,J===`
|
|
|
`?(O.line++,O.column=0):O.column++);O.textNode+=y.substring(Ee,K-1)}J!=="<"||O.sawRoot&&O.closedRoot&&!O.strict?(v(J)||O.sawRoot&&!O.closedRoot||$(O,"Text data outside of root node."),J==="&"?O.state=u.TEXT_ENTITY:O.textNode+=J):(O.state=u.OPEN_WAKA,O.startTagPosition=O.position);continue;case u.SCRIPT:J==="<"?O.state=u.SCRIPT_ENDING:O.script+=J;continue;case u.SCRIPT_ENDING:J==="/"?O.state=u.CLOSE_TAG:(O.script+="<"+J,O.state=u.SCRIPT);continue;case u.OPEN_WAKA:if(J==="!")O.state=u.SGML_DECL,O.sgmlDecl="";else if(!v(J))if(j(ne,J))O.state=u.OPEN_TAG,O.tagName=J;else if(J==="/")O.state=u.CLOSE_TAG,O.tagName="";else if(J==="?")O.state=u.PROC_INST,O.procInstName=O.procInstBody="";else{if($(O,"Unencoded <"),O.startTagPosition+1<O.position){var he=O.position-O.startTagPosition;J=new Array(he).join(" ")+J}O.textNode+="<"+J,O.state=u.TEXT}continue;case u.SGML_DECL:(O.sgmlDecl+J).toUpperCase()===Q?(H(O,"onopencdata"),O.state=u.CDATA,O.sgmlDecl="",O.cdata=""):O.sgmlDecl+J==="--"?(O.state=u.COMMENT,O.comment="",O.sgmlDecl=""):(O.sgmlDecl+J).toUpperCase()===ie?(O.state=u.DOCTYPE,(O.doctype||O.sawRoot)&&$(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):J===">"?(H(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=u.TEXT):(L(J)&&(O.state=u.SGML_DECL_QUOTED),O.sgmlDecl+=J);continue;case u.SGML_DECL_QUOTED:J===O.q&&(O.state=u.SGML_DECL,O.q=""),O.sgmlDecl+=J;continue;case u.DOCTYPE:J===">"?(O.state=u.TEXT,H(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=J,J==="["?O.state=u.DOCTYPE_DTD:L(J)&&(O.state=u.DOCTYPE_QUOTED,O.q=J));continue;case u.DOCTYPE_QUOTED:O.doctype+=J,J===O.q&&(O.q="",O.state=u.DOCTYPE);continue;case u.DOCTYPE_DTD:O.doctype+=J,J==="]"?O.state=u.DOCTYPE:L(J)&&(O.state=u.DOCTYPE_DTD_QUOTED,O.q=J);continue;case u.DOCTYPE_DTD_QUOTED:O.doctype+=J,J===O.q&&(O.state=u.DOCTYPE_DTD,O.q="");continue;case u.COMMENT:J==="-"?O.state=u.COMMENT_ENDING:O.comment+=J;continue;case u.COMMENT_ENDING:J==="-"?(O.state=u.COMMENT_ENDED,O.comment=te(O.opt,O.comment),O.comment&&H(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+J,O.state=u.COMMENT);continue;case u.COMMENT_ENDED:J!==">"?($(O,"Malformed comment"),O.comment+="--"+J,O.state=u.COMMENT):O.state=u.TEXT;continue;case u.CDATA:J==="]"?O.state=u.CDATA_ENDING:O.cdata+=J;continue;case u.CDATA_ENDING:J==="]"?O.state=u.CDATA_ENDING_2:(O.cdata+="]"+J,O.state=u.CDATA);continue;case u.CDATA_ENDING_2:J===">"?(O.cdata&&H(O,"oncdata",O.cdata),H(O,"onclosecdata"),O.cdata="",O.state=u.TEXT):J==="]"?O.cdata+="]":(O.cdata+="]]"+J,O.state=u.CDATA);continue;case u.PROC_INST:J==="?"?O.state=u.PROC_INST_ENDING:v(J)?O.state=u.PROC_INST_BODY:O.procInstName+=J;continue;case u.PROC_INST_BODY:if(!O.procInstBody&&v(J))continue;J==="?"?O.state=u.PROC_INST_ENDING:O.procInstBody+=J;continue;case u.PROC_INST_ENDING:J===">"?(H(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=u.TEXT):(O.procInstBody+="?"+J,O.state=u.PROC_INST_BODY);continue;case u.OPEN_TAG:j(me,J)?O.tagName+=J:(V(O),J===">"?B(O):J==="/"?O.state=u.OPEN_TAG_SLASH:(v(J)||$(O,"Invalid character in tag name"),O.state=u.ATTRIB));continue;case u.OPEN_TAG_SLASH:J===">"?(B(O,!0),X(O)):($(O,"Forward-slash in opening tag not followed by >"),O.state=u.ATTRIB);continue;case u.ATTRIB:if(v(J))continue;J===">"?B(O):J==="/"?O.state=u.OPEN_TAG_SLASH:j(ne,J)?(O.attribName=J,O.attribValue="",O.state=u.ATTRIB_NAME):$(O,"Invalid attribute name");continue;case u.ATTRIB_NAME:J==="="?O.state=u.ATTRIB_VALUE:J===">"?($(O,"Attribute without value"),O.attribValue=O.attribName,I(O),B(O)):v(J)?O.state=u.ATTRIB_NAME_SAW_WHITE:j(me,J)?O.attribName+=J:$(O,"Invalid attribute name");continue;case u.ATTRIB_NAME_SAW_WHITE:if(J==="=")O.state=u.ATTRIB_VALUE;else{if(v(J))continue;$(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",H(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",J===">"?B(O):j(ne,J)?(O.attribName=J,O.state=u.ATTRIB_NAME):($(O,"Invalid attribute name"),O.state=u.ATTRIB)}continue;case u.ATTRIB_VALUE:if(v(J))continue;L(J)?(O.q=J,O.state=u.ATTRIB_VALUE_QUOTED):($(O,"Unquoted attribute value"),O.state=u.ATTRIB_VALUE_UNQUOTED,O.attribValue=J);continue;case u.ATTRIB_VALUE_QUOTED:if(J!==O.q){J==="&"?O.state=u.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=J;continue}I(O),O.q="",O.state=u.ATTRIB_VALUE_CLOSED;continue;case u.ATTRIB_VALUE_CLOSED:v(J)?O.state=u.ATTRIB:J===">"?B(O):J==="/"?O.state=u.OPEN_TAG_SLASH:j(ne,J)?($(O,"No whitespace between attributes"),O.attribName=J,O.attribValue="",O.state=u.ATTRIB_NAME):$(O,"Invalid attribute name");continue;case u.ATTRIB_VALUE_UNQUOTED:if(!U(J)){J==="&"?O.state=u.ATTRIB_VALUE_ENTITY_U:O.attribValue+=J;continue}I(O),J===">"?B(O):O.state=u.ATTRIB;continue;case u.CLOSE_TAG:if(O.tagName)J===">"?X(O):j(me,J)?O.tagName+=J:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=u.SCRIPT):(v(J)||$(O,"Invalid tagname in closing tag"),O.state=u.CLOSE_TAG_SAW_WHITE);else{if(v(J))continue;b(ne,J)?O.script?(O.script+="</"+J,O.state=u.SCRIPT):$(O,"Invalid tagname in closing tag."):O.tagName=J}continue;case u.CLOSE_TAG_SAW_WHITE:if(v(J))continue;J===">"?X(O):$(O,"Invalid characters in closing tag");continue;case u.TEXT_ENTITY:case u.ATTRIB_VALUE_ENTITY_Q:case u.ATTRIB_VALUE_ENTITY_U:var fe,be;switch(O.state){case u.TEXT_ENTITY:fe=u.TEXT,be="textNode";break;case u.ATTRIB_VALUE_ENTITY_Q:fe=u.ATTRIB_VALUE_QUOTED,be="attribValue";break;case u.ATTRIB_VALUE_ENTITY_U:fe=u.ATTRIB_VALUE_UNQUOTED,be="attribValue"}J===";"?(O[be]+=Y(O),O.entity="",O.state=fe):j(O.entity.length?t:R,J)?O.entity+=J:($(O,"Invalid character in entity name"),O[be]+="&"+O.entity+J,O.entity="",O.state=fe);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&w(O),O}m.parser=function(y,O){return new T(y,O)},m.SAXParser=T,m.SAXStream=C,m.createStream=A,m.MAX_BUFFER_LENGTH=65536;var ue=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];m.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],E.default||(Object.create=function(y){function O(){}return O.prototype=y,new O}),c.default||(Object.keys=function(y){var O=[];for(var K in y)y.hasOwnProperty(K)&&O.push(K);return O}),T.prototype={end:function(){ee(this)},write:re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){_(this)}};var ce;try{ce=n("stream").Stream}catch(y){ce=function(){}}var q=m.EVENTS.filter(function(y){return y!=="error"&&y!=="end"});C.prototype=(0,E.default)(ce.prototype,{constructor:{value:C}}),C.prototype.write=function(y){if(typeof d=="function"&&typeof d.isBuffer=="function"&&d.isBuffer(y)){if(!this._decoder){var O=n("string_decoder").StringDecoder;this._decoder=new O("utf8")}y=this._decoder.write(y)}return this._parser.write(y.toString()),this.emit("data",y),!0},C.prototype.end=function(y){return y&&y.length&&this.write(y),this._parser.end(),!0},C.prototype.on=function(y,O){var K=this;return K._parser["on"+y]||q.indexOf(y)===-1||(K._parser["on"+y]=function(){var J=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);J.splice(0,0,y),K.emit.apply(K,J)}),ce.prototype.on.call(K,y,O)};var Q="[CDATA[",ie="DOCTYPE",z="http://www.w3.org/XML/1998/namespace",W="http://www.w3.org/2000/xmlns/",ae={xml:z,xmlns:W},ne=/[:_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]/,me=/[:_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=/[#:_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]/,t=/[#:_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-]/,u=0;m.STATE={BEGIN:u++,BEGIN_WHITESPACE:u++,TEXT:u++,TEXT_ENTITY:u++,OPEN_WAKA:u++,SGML_DECL:u++,SGML_DECL_QUOTED:u++,DOCTYPE:u++,DOCTYPE_QUOTED:u++,DOCTYPE_DTD:u++,DOCTYPE_DTD_QUOTED:u++,COMMENT_STARTING:u++,COMMENT:u++,COMMENT_ENDING:u++,COMMENT_ENDED:u++,CDATA:u++,CDATA_ENDING:u++,CDATA_ENDING_2:u++,PROC_INST:u++,PROC_INST_BODY:u++,PROC_INST_ENDING:u++,OPEN_TAG:u++,OPEN_TAG_SLASH:u++,ATTRIB:u++,ATTRIB_NAME:u++,ATTRIB_NAME_SAW_WHITE:u++,ATTRIB_VALUE:u++,ATTRIB_VALUE_QUOTED:u++,ATTRIB_VALUE_CLOSED:u++,ATTRIB_VALUE_UNQUOTED:u++,ATTRIB_VALUE_ENTITY_Q:u++,ATTRIB_VALUE_ENTITY_U:u++,CLOSE_TAG:u++,CLOSE_TAG_SAW_WHITE:u++,SCRIPT:u++,SCRIPT_ENDING:u++},m.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},m.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,c.default)(m.ENTITIES).forEach(function(y){var O=m.ENTITIES[y],K=typeof O=="number"?String.fromCharCode(O):O;m.ENTITIES[y]=K});for(var D in m.STATE)m.STATE[m.STATE[D]]=D;u=m.STATE,o.default||function(){var y=String.fromCharCode,O=Math.floor,K=function(){var Ee,he,fe=[],be=-1,Re=arguments.length;if(!Re)return"";for(var Ce="";++be<Re;){var le=Number(arguments[be]);if(!isFinite(le)||le<0||le>1114111||O(le)!==le)throw RangeError("Invalid code point: "+le);le<=65535?fe.push(le):(le-=65536,Ee=55296+(le>>10),he=le%1024+56320,fe.push(Ee,he)),(be+1===Re||fe.length>16384)&&(Ce+=y.apply(null,fe),fe.length=0)}return Ce};l.default?Object.defineProperty(String,"fromCodePoint",{value:K,configurable:!0,writable:!0}):String.fromCodePoint=K}()}(x===void 0?(void 0).sax={}:x)}).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,P,x){function d(){g.call(this)}P.exports=d;var g=n("events").EventEmitter;n("inherits")(d,g),d.Readable=n("readable-stream/readable.js"),d.Writable=n("readable-stream/writable.js"),d.Duplex=n("readable-stream/duplex.js"),d.Transform=n("readable-stream/transform.js"),d.PassThrough=n("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(r,o){function p(S){r.writable&&r.write(S)===!1&&h.pause&&h.pause()}function s(){h.readable&&h.resume&&h.resume()}function e(){c||(c=!0,r.end())}function i(){c||(c=!0,typeof r.destroy=="function"&&r.destroy())}function a(S){if(l(),g.listenerCount(this,"error")===0)throw S}function l(){h.removeListener("data",p),r.removeListener("drain",s),h.removeListener("end",e),h.removeListener("close",i),h.removeListener("error",a),r.removeListener("error",a),h.removeListener("end",l),h.removeListener("close",l),r.removeListener("close",l)}var h=this;h.on("data",p),r.on("drain",s),r._isStdio||o&&o.end===!1||(h.on("end",e),h.on("close",i));var c=!1;return h.on("error",a),r.on("error",a),h.on("end",l),h.on("close",l),r.on("close",l),r.emit("pipe",h),r}},{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,P,x){(function(d){var g=n("./lib/request"),r=n("./lib/response"),o=n("xtend"),p=n("builtin-status-codes"),s=n("url"),e=x;e.request=function(i,a){i=typeof i=="string"?s.parse(i):o(i);var l=d.location.protocol.search(/^https?:$/)===-1?"http:":"",h=i.protocol||l,c=i.hostname||i.host,S=i.port,E=i.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),i.url=(c?h+"//"+c:"")+(S?":"+S:"")+E,i.method=(i.method||"GET").toUpperCase(),i.headers=i.headers||{};var m=new g(i);return a&&m.on("response",a),m},e.get=function(i,a){var l=e.request(i,a);return l.end(),l},e.ClientRequest=g,e.IncomingMessage=r.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=p,e.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,P,x){(function(d){"use strict";function g(){if(p!==void 0)return p;if(d.XMLHttpRequest){p=new d.XMLHttpRequest;try{p.open("GET",d.XDomainRequest?"/":"https://example.com")}catch(i){p=null}}else p=null;return p}function r(i){var a=g();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch(l){}return!1}function o(i){return typeof i=="function"}x.fetch=o(d.fetch)&&o(d.ReadableStream),x.writableStream=o(d.WritableStream),x.abortController=o(d.AbortController),x.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),x.blobConstructor=!0}catch(i){}var p,s=d.ArrayBuffer!==void 0,e=s&&o(d.ArrayBuffer.prototype.slice);x.arraybuffer=x.fetch||s&&r("arraybuffer"),x.msstream=!x.fetch&&e&&r("ms-stream"),x.mozchunkedarraybuffer=!x.fetch&&s&&r("moz-chunked-arraybuffer"),x.overrideMimeType=x.fetch||!!g()&&o(g().overrideMimeType),x.vbArray=o(d.VBArray),p=null}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,P,x){(function(d,g,r){"use strict";function o(w,f){return i.fetch&&f?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&w?"arraybuffer":i.vbArray&&w?"text:vbarray":"text"}function p(w){try{var f=w.status;return f!==null&&f!==0}catch(_){return!1}}var s=n("babel-runtime/core-js/object/keys"),e=function(w){return w&&w.__esModule?w:{default:w}}(s),i=n("./capability"),a=n("inherits"),l=n("./response"),h=n("readable-stream"),c=n("to-arraybuffer"),S=l.IncomingMessage,E=l.readyStates,m=P.exports=function(w){var f=this;h.Writable.call(f),f._opts=w,f._body=[],f._headers={},w.auth&&f.setHeader("Authorization","Basic "+new r(w.auth).toString("base64")),(0,e.default)(w.headers).forEach(function(C){f.setHeader(C,w.headers[C])});var _,A=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!i.abortController)A=!1,_=!0;else if(w.mode==="prefer-streaming")_=!1;else if(w.mode==="allow-wrong-content-type")_=!i.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}f._mode=o(_,A),f._fetchTimer=null,f.on("finish",function(){f._onFinish()})};a(m,h.Writable),m.prototype.setHeader=function(w,f){var _=this,A=w.toLowerCase();T.indexOf(A)===-1&&(_._headers[A]={name:w,value:f})},m.prototype.getHeader=function(w){var f=this._headers[w.toLowerCase()];return f?f.value:null},m.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},m.prototype._onFinish=function(){var w=this;if(!w._destroyed){var f=w._opts,_=w._headers,A=null;f.method!=="GET"&&f.method!=="HEAD"&&(A=i.arraybuffer?c(r.concat(w._body)):i.blobConstructor?new g.Blob(w._body.map(function(j){return c(j)}),{type:(_["content-type"]||{}).value||""}):r.concat(w._body).toString());var C=[];if((0,e.default)(_).forEach(function(j){var b=_[j].name,k=_[j].value;Array.isArray(k)?k.forEach(function(H){C.push([b,H])}):C.push([b,k])}),w._mode==="fetch"){var v=null;if(i.abortController){var L=new AbortController;v=L.signal,w._fetchAbortController=L,"requestTimeout"in f&&f.requestTimeout!==0&&(w._fetchTimer=g.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},f.requestTimeout))}g.fetch(w._opts.url,{method:w._opts.method,headers:C,body:A||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:v}).then(function(j){w._fetchResponse=j,w._connect()},function(j){g.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",j)})}else{var U=w._xhr=new g.XMLHttpRequest;try{U.open(w._opts.method,w._opts.url,!0)}catch(j){return void d.nextTick(function(){w.emit("error",j)})}"responseType"in U&&(U.responseType=w._mode.split(":")[0]),"withCredentials"in U&&(U.withCredentials=!!f.withCredentials),w._mode==="text"&&"overrideMimeType"in U&&U.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(U.timeout=f.requestTimeout,U.ontimeout=function(){w.emit("requestTimeout")}),C.forEach(function(j){U.setRequestHeader(j[0],j[1])}),w._response=null,U.onreadystatechange=function(){switch(U.readyState){case E.LOADING:case E.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(U.onprogress=function(){w._onXHRProgress()}),U.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{U.send(A)}catch(j){return void d.nextTick(function(){w.emit("error",j)})}}}},m.prototype._onXHRProgress=function(){var w=this;p(w._xhr)&&!w._destroyed&&(w._response||w._connect(),w._response._onXHRProgress())},m.prototype._connect=function(){var w=this;w._destroyed||(w._response=new S(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(f){w.emit("error",f)}),w.emit("response",w._response))},m.prototype._write=function(w,f,_){this._body.push(w),_()},m.prototype.abort=m.prototype.destroy=function(){var w=this;w._destroyed=!0,g.clearTimeout(w._fetchTimer),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort()},m.prototype.end=function(w,f,_){var A=this;typeof w=="function"&&(_=w,w=void 0),h.Writable.prototype.end.call(A,w,f,_)},m.prototype.flushHeaders=function(){},m.prototype.setTimeout=function(){},m.prototype.setNoDelay=function(){},m.prototype.setSocketKeepAlive=function(){};var T=["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 Ue!="undefined"?Ue: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,P,x){(function(d,g,r){"use strict";var o=n("babel-runtime/core-js/promise"),p=function(h){return h&&h.__esModule?h:{default:h}}(o),s=n("./capability"),e=n("inherits"),i=n("readable-stream"),a=x.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=x.IncomingMessage=function(h,c,S,E){var m=this;if(i.Readable.call(m),m._mode=S,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){d.nextTick(function(){m.emit("close")})}),S==="fetch"){if(m._fetchResponse=c,m.url=c.url,m.statusCode=c.status,m.statusMessage=c.statusText,c.headers.forEach(function(A,C){m.headers[C.toLowerCase()]=A,m.rawHeaders.push(C,A)}),s.writableStream){var T=new WritableStream({write:function(C){return new p.default(function(v,L){m._destroyed?L():m.push(new r(C))?v():m._resumeFetch=v})},close:function(){g.clearTimeout(E),m._destroyed||m.push(null)},abort:function(C){m._destroyed||m.emit("error",C)}});try{return void c.body.pipeTo(T).catch(function(A){g.clearTimeout(E),m._destroyed||m.emit("error",A)})}catch(A){}}var w=c.body.getReader();!function A(){w.read().then(function(C){if(!m._destroyed){if(C.done)return g.clearTimeout(E),void m.push(null);m.push(new r(C.value)),A()}}).catch(function(C){g.clearTimeout(E),m._destroyed||m.emit("error",C)})}()}else if(m._xhr=h,m._pos=0,m.url=h.responseURL,m.statusCode=h.status,m.statusMessage=h.statusText,h.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var C=A.match(/^([^:]+):\s*(.*)/);if(C){var v=C[1].toLowerCase();v==="set-cookie"?(m.headers[v]===void 0&&(m.headers[v]=[]),m.headers[v].push(C[2])):m.headers[v]!==void 0?m.headers[v]+=", "+C[2]:m.headers[v]=C[2],m.rawHeaders.push(C[1],C[2])}}),m._charset="x-user-defined",!s.overrideMimeType){var f=m.rawHeaders["mime-type"];if(f){var _=f.match(/;\s*charset=([^;])(;|$)/);_&&(m._charset=_[1].toLowerCase())}m._charset||(m._charset="utf-8")}};e(l,i.Readable),l.prototype._read=function(){var h=this,c=h._resumeFetch;c&&(h._resumeFetch=null,c())},l.prototype._onXHRProgress=function(){var h=this,c=h._xhr,S=null;switch(h._mode){case"text:vbarray":if(c.readyState!==a.DONE)break;try{S=new g.VBArray(c.responseBody).toArray()}catch(f){}if(S!==null){h.push(new r(S));break}case"text":try{S=c.responseText}catch(f){h._mode="text:vbarray";break}if(S.length>h._pos){var E=S.substr(h._pos);if(h._charset==="x-user-defined"){for(var m=new r(E.length),T=0;T<E.length;T++)m[T]=255&E.charCodeAt(T);h.push(m)}else h.push(E,h._charset);h._pos=S.length}break;case"arraybuffer":if(c.readyState!==a.DONE||!c.response)break;S=c.response,h.push(new r(new Uint8Array(S)));break;case"moz-chunked-arraybuffer":if(S=c.response,c.readyState!==a.LOADING||!S)break;h.push(new r(new Uint8Array(S)));break;case"ms-stream":if(S=c.response,c.readyState!==a.LOADING)break;var w=new g.MSStreamReader;w.onprogress=function(){w.result.byteLength>h._pos&&(h.push(new r(new Uint8Array(w.result.slice(h._pos)))),h._pos=w.result.byteLength)},w.onload=function(){h.push(null)},w.readAsArrayBuffer(S)}h._xhr.readyState===a.DONE&&h._mode!=="ms-stream"&&h.push(null)}}).call(this,n("_process"),typeof Ue!="undefined"?Ue: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,P,x){"use strict";function d(f){if(!f)return"utf8";for(var _;;)switch(f){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 f;default:if(_)return;f=(""+f).toLowerCase(),_=!0}}function g(f){var _=d(f);if(typeof _!="string"&&(T.isEncoding===w||!w(f)))throw new Error("Unknown encoding: "+f);return _||f}function r(f){this.encoding=g(f);var _;switch(this.encoding){case"utf16le":this.text=l,this.end=h,_=4;break;case"utf8":this.fillLast=e,_=4;break;case"base64":this.text=c,this.end=S,_=3;break;default:return this.write=E,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(_)}function o(f){return f<=127?0:f>>5==6?2:f>>4==14?3:f>>3==30?4:f>>6==2?-1:-2}function p(f,_,A){var C=_.length-1;if(C<A)return 0;var v=o(_[C]);return v>=0?(v>0&&(f.lastNeed=v-1),v):--C<A||v===-2?0:(v=o(_[C]))>=0?(v>0&&(f.lastNeed=v-2),v):--C<A||v===-2?0:(v=o(_[C]),v>=0?(v>0&&(v===2?v=0:f.lastNeed=v-3),v):0)}function s(f,_,A){if((192&_[0])!=128)return f.lastNeed=0,"\u951F\uFFFD";if(f.lastNeed>1&&_.length>1){if((192&_[1])!=128)return f.lastNeed=1,"\u951F\uFFFD";if(f.lastNeed>2&&_.length>2&&(192&_[2])!=128)return f.lastNeed=2,"\u951F\uFFFD"}}function e(f){var _=this.lastTotal-this.lastNeed,A=s(this,f,_);return A!==void 0?A:this.lastNeed<=f.length?(f.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(f.copy(this.lastChar,_,0,f.length),void(this.lastNeed-=f.length))}function i(f,_){var A=p(this,f,_);if(!this.lastNeed)return f.toString("utf8",_);this.lastTotal=A;var C=f.length-(A-this.lastNeed);return f.copy(this.lastChar,0,C),f.toString("utf8",_,C)}function a(f){var _=f&&f.length?this.write(f):"";return this.lastNeed?_+"\u951F\uFFFD":_}function l(f,_){if((f.length-_)%2==0){var A=f.toString("utf16le",_);if(A){var C=A.charCodeAt(A.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",_,f.length-1)}function h(f){var _=f&&f.length?this.write(f):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,A)}return _}function c(f,_){var A=(f.length-_)%3;return A===0?f.toString("base64",_):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",_,f.length-A))}function S(f){var _=f&&f.length?this.write(f):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function E(f){return f.toString(this.encoding)}function m(f){return f&&f.length?this.write(f):""}var T=n("safe-buffer").Buffer,w=T.isEncoding||function(f){switch((f=""+f)&&f.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}};x.StringDecoder=r,r.prototype.write=function(f){if(f.length===0)return"";var _,A;if(this.lastNeed){if((_=this.fillLast(f))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<f.length?_?_+this.text(f,A):this.text(f,A):_||""},r.prototype.end=a,r.prototype.text=i,r.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length}},{"safe-buffer":193}],201:[function(n,P,x){(function(d,g){function r(a,l){this._id=a,this._clearFn=l}var o=n("process/browser.js").nextTick,p=Function.prototype.apply,s=Array.prototype.slice,e={},i=0;x.setTimeout=function(){return new r(p.call(setTimeout,window,arguments),clearTimeout)},x.setInterval=function(){return new r(p.call(setInterval,window,arguments),clearInterval)},x.clearTimeout=x.clearInterval=function(a){a.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},x.enroll=function(a,l){clearTimeout(a._idleTimeoutId),a._idleTimeout=l},x.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},x._unrefActive=x.active=function(a){clearTimeout(a._idleTimeoutId);var l=a._idleTimeout;l>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},l))},x.setImmediate=typeof d=="function"?d:function(a){var l=i++,h=!(arguments.length<2)&&s.call(arguments,1);return e[l]=!0,o(function(){e[l]&&(h?a.apply(null,h):a.call(null),x.clearImmediate(l))}),l},x.clearImmediate=typeof g=="function"?g:function(a){delete e[a]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,P,x){var d=n("buffer").Buffer;P.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(d.isBuffer(g)){for(var r=new Uint8Array(g.length),o=g.length,p=0;p<o;p++)r[p]=g[p];return r.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,P,x){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function g(v,L,U){if(v&&e.isObject(v)&&v instanceof d)return v;var j=new d;return j.parse(v,L,U),j}function r(v){return e.isString(v)&&(v=g(v)),v instanceof d?v.format():d.prototype.format.call(v)}function o(v,L){return g(v,!1,!0).resolve(L)}function p(v,L){return v?g(v,!1,!0).resolveObject(L):L}var s=n("punycode"),e=n("./util");x.parse=g,x.resolve=o,x.resolveObject=p,x.format=r,x.Url=d;var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(h),S=["'"].concat(c),E=["%","/","?",";","#"].concat(S),m=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=n("querystring");d.prototype.parse=function(v,L,U){if(!e.isString(v))throw new TypeError("Parameter 'url' must be a string, not "+typeof v);var j=v.indexOf("?"),b=j!==-1&&j<v.indexOf("#")?"?":"#",k=v.split(b),H=/\\/g;k[0]=k[0].replace(H,"/"),v=k.join(b);var G=v;if(G=G.trim(),!U&&v.split("#").length===1){var te=l.exec(G);if(te)return this.path=G,this.href=G,this.pathname=te[1],te[2]?(this.search=te[2],this.query=L?C.parse(this.search.substr(1)):this.search.substr(1)):L&&(this.search="",this.query={}),this}var F=i.exec(G);if(F){F=F[0];var ee=F.toLowerCase();this.protocol=ee,G=G.substr(F.length)}if(U||F||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=G.substr(0,2)==="//";!$||F&&_[F]||(G=G.substr(2),this.slashes=!0)}if(!_[F]&&($||F&&!A[F])){for(var V=-1,N=0;N<m.length;N++){var I=G.indexOf(m[N]);I!==-1&&(V===-1||I<V)&&(V=I)}var B,X;X=V===-1?G.lastIndexOf("@"):G.lastIndexOf("@",V),X!==-1&&(B=G.slice(0,X),G=G.slice(X+1),this.auth=decodeURIComponent(B)),V=-1;for(var N=0;N<E.length;N++){var I=G.indexOf(E[N]);I!==-1&&(V===-1||I<V)&&(V=I)}V===-1&&(V=G.length),this.host=G.slice(0,V),G=G.slice(V),this.parseHost(),this.hostname=this.hostname||"";var Y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Y)for(var Z=this.hostname.split(/\./),N=0,se=Z.length;N<se;N++){var re=Z[N];if(re&&!re.match(T)){for(var ue="",ce=0,q=re.length;ce<q;ce++)re.charCodeAt(ce)>127?ue+="x":ue+=re[ce];if(!ue.match(T)){var Q=Z.slice(0,N),ie=Z.slice(N+1),z=re.match(w);z&&(Q.push(z[1]),ie.unshift(z[2])),ie.length&&(G="/"+ie.join(".")+G),this.hostname=Q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Y||(this.hostname=s.toASCII(this.hostname));var W=this.port?":"+this.port:"",ae=this.hostname||"";this.host=ae+W,this.href+=this.host,Y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!f[ee])for(var N=0,se=S.length;N<se;N++){var ne=S[N];if(G.indexOf(ne)!==-1){var me=encodeURIComponent(ne);me===ne&&(me=escape(ne)),G=G.split(ne).join(me)}}var R=G.indexOf("#");R!==-1&&(this.hash=G.substr(R),G=G.slice(0,R));var t=G.indexOf("?");if(t!==-1?(this.search=G.substr(t),this.query=G.substr(t+1),L&&(this.query=C.parse(this.query)),G=G.slice(0,t)):L&&(this.search="",this.query={}),G&&(this.pathname=G),A[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var W=this.pathname||"",u=this.search||"";this.path=W+u}return this.href=this.format(),this},d.prototype.format=function(){var v=this.auth||"";v&&(v=encodeURIComponent(v),v=v.replace(/%3A/i,":"),v+="@");var L=this.protocol||"",U=this.pathname||"",j=this.hash||"",b=!1,k="";this.host?b=v+this.host:this.hostname&&(b=v+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(b+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(k=C.stringify(this.query));var H=this.search||k&&"?"+k||"";return L&&L.substr(-1)!==":"&&(L+=":"),this.slashes||(!L||A[L])&&b!==!1?(b="//"+(b||""),U&&U.charAt(0)!=="/"&&(U="/"+U)):b||(b=""),j&&j.charAt(0)!=="#"&&(j="#"+j),H&&H.charAt(0)!=="?"&&(H="?"+H),U=U.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),H=H.replace("#","%23"),L+b+U+H+j},d.prototype.resolve=function(v){return this.resolveObject(g(v,!1,!0)).format()},d.prototype.resolveObject=function(v){if(e.isString(v)){var L=new d;L.parse(v,!1,!0),v=L}for(var U=new d,j=Object.keys(this),b=0;b<j.length;b++){var k=j[b];U[k]=this[k]}if(U.hash=v.hash,v.href==="")return U.href=U.format(),U;if(v.slashes&&!v.protocol){for(var H=Object.keys(v),G=0;G<H.length;G++){var te=H[G];te!=="protocol"&&(U[te]=v[te])}return A[U.protocol]&&U.hostname&&!U.pathname&&(U.path=U.pathname="/"),U.href=U.format(),U}if(v.protocol&&v.protocol!==U.protocol){if(!A[v.protocol]){for(var F=Object.keys(v),ee=0;ee<F.length;ee++){var $=F[ee];U[$]=v[$]}return U.href=U.format(),U}if(U.protocol=v.protocol,v.host||_[v.protocol])U.pathname=v.pathname;else{for(var se=(v.pathname||"").split("/");se.length&&!(v.host=se.shift()););v.host||(v.host=""),v.hostname||(v.hostname=""),se[0]!==""&&se.unshift(""),se.length<2&&se.unshift(""),U.pathname=se.join("/")}if(U.search=v.search,U.query=v.query,U.host=v.host||"",U.auth=v.auth,U.hostname=v.hostname||v.host,U.port=v.port,U.pathname||U.search){var V=U.pathname||"",N=U.search||"";U.path=V+N}return U.slashes=U.slashes||v.slashes,U.href=U.format(),U}var I=U.pathname&&U.pathname.charAt(0)==="/",B=v.host||v.pathname&&v.pathname.charAt(0)==="/",X=B||I||U.host&&v.pathname,Y=X,Z=U.pathname&&U.pathname.split("/")||[],se=v.pathname&&v.pathname.split("/")||[],re=U.protocol&&!A[U.protocol];if(re&&(U.hostname="",U.port=null,U.host&&(Z[0]===""?Z[0]=U.host:Z.unshift(U.host)),U.host="",v.protocol&&(v.hostname=null,v.port=null,v.host&&(se[0]===""?se[0]=v.host:se.unshift(v.host)),v.host=null),X=X&&(se[0]===""||Z[0]==="")),B)U.host=v.host||v.host===""?v.host:U.host,U.hostname=v.hostname||v.hostname===""?v.hostname:U.hostname,U.search=v.search,U.query=v.query,Z=se;else if(se.length)Z||(Z=[]),Z.pop(),Z=Z.concat(se),U.search=v.search,U.query=v.query;else if(!e.isNullOrUndefined(v.search)){if(re){U.hostname=U.host=Z.shift();var ue=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@");ue&&(U.auth=ue.shift(),U.host=U.hostname=ue.shift())}return U.search=v.search,U.query=v.query,e.isNull(U.pathname)&&e.isNull(U.search)||(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.href=U.format(),U}if(!Z.length)return U.pathname=null,U.search?U.path="/"+U.search:U.path=null,U.href=U.format(),U;for(var ce=Z.slice(-1)[0],q=(U.host||v.host||Z.length>1)&&(ce==="."||ce==="..")||ce==="",Q=0,ie=Z.length;ie>=0;ie--)ce=Z[ie],ce==="."?Z.splice(ie,1):ce===".."?(Z.splice(ie,1),Q++):Q&&(Z.splice(ie,1),Q--);if(!X&&!Y)for(;Q--;Q)Z.unshift("..");!X||Z[0]===""||Z[0]&&Z[0].charAt(0)==="/"||Z.unshift(""),q&&Z.join("/").substr(-1)!=="/"&&Z.push("");var z=Z[0]===""||Z[0]&&Z[0].charAt(0)==="/";if(re){U.hostname=U.host=z?"":Z.length?Z.shift():"";var ue=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@");ue&&(U.auth=ue.shift(),U.host=U.hostname=ue.shift())}return X=X||U.host&&Z.length,X&&!z&&Z.unshift(""),Z.length?U.pathname=Z.join("/"):(U.pathname=null,U.path=null),e.isNull(U.pathname)&&e.isNull(U.search)||(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.auth=v.auth||U.auth,U.slashes=U.slashes||v.slashes,U.href=U.format(),U},d.prototype.parseHost=function(){var v=this.host,L=a.exec(v);L&&(L=L[0],L!==":"&&(this.port=L.substr(1)),v=v.substr(0,v.length-L.length)),v&&(this.hostname=v)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,P,x){"use strict";P.exports={isString:function(g){return typeof g=="string"},isObject:function(g){return typeof g=="object"&&g!==null},isNull:function(g){return g===null},isNullOrUndefined:function(g){return g==null}}},{}],205:[function(n,P,x){(function(d){function g(o,p){function s(){if(!e){if(r("throwDeprecation"))throw new Error(p);r("traceDeprecation")?console.trace(p):console.warn(p),e=!0}return o.apply(this,arguments)}if(r("noDeprecation"))return o;var e=!1;return s}function r(o){try{if(!d.localStorage)return!1}catch(s){return!1}var p=d.localStorage[o];return p!=null&&String(p).toLowerCase()==="true"}P.exports=g}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,P,x){P.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],207:[function(n,P,x){(function(d,g){function r(N,I){var B={seen:[],stylize:p};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),E(I)?B.showHidden=I:I&&x._extend(B,I),A(B.showHidden)&&(B.showHidden=!1),A(B.depth)&&(B.depth=2),A(B.colors)&&(B.colors=!1),A(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=o),e(B,N,B.depth)}function o(N,I){var B=r.styles[I];return B?"["+r.colors[B][0]+"m"+N+"["+r.colors[B][1]+"m":N}function p(N,I){return N}function s(N){var I={};return N.forEach(function(B,X){I[B]=!0}),I}function e(N,I,B){if(N.customInspect&&I&&j(I.inspect)&&I.inspect!==x.inspect&&(!I.constructor||I.constructor.prototype!==I)){var X=I.inspect(B,N);return f(X)||(X=e(N,X,B)),X}var Y=i(N,I);if(Y)return Y;var Z=Object.keys(I),se=s(Z);if(N.showHidden&&(Z=Object.getOwnPropertyNames(I)),U(I)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return a(I);if(Z.length===0){if(j(I)){var re=I.name?": "+I.name:"";return N.stylize("[Function"+re+"]","special")}if(C(I))return N.stylize(RegExp.prototype.toString.call(I),"regexp");if(L(I))return N.stylize(Date.prototype.toString.call(I),"date");if(U(I))return a(I)}var ue="",ce=!1,q=["{","}"];if((S(I)&&(ce=!0,q=["[","]"]),j(I))&&(ue=" [Function"+(I.name?": "+I.name:"")+"]"),C(I)&&(ue=" "+RegExp.prototype.toString.call(I)),L(I)&&(ue=" "+Date.prototype.toUTCString.call(I)),U(I)&&(ue=" "+a(I)),Z.length===0&&(!ce||I.length==0))return q[0]+ue+q[1];if(B<0)return C(I)?N.stylize(RegExp.prototype.toString.call(I),"regexp"):N.stylize("[Object]","special");N.seen.push(I);var Q;return Q=ce?l(N,I,B,se,Z):Z.map(function(ie){return h(N,I,B,se,ie,ce)}),N.seen.pop(),c(Q,ue,q)}function i(N,I){if(A(I))return N.stylize("undefined","undefined");if(f(I)){var B="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(B,"string")}return w(I)?N.stylize(""+I,"number"):E(I)?N.stylize(""+I,"boolean"):m(I)?N.stylize("null","null"):void 0}function a(N){return"["+Error.prototype.toString.call(N)+"]"}function l(N,I,B,X,Y){for(var Z=[],se=0,re=I.length;se<re;++se)te(I,String(se))?Z.push(h(N,I,B,X,String(se),!0)):Z.push("");return Y.forEach(function(ue){ue.match(/^\d+$/)||Z.push(h(N,I,B,X,ue,!0))}),Z}function h(N,I,B,X,Y,Z){var se,re,ue;if(ue=Object.getOwnPropertyDescriptor(I,Y)||{value:I[Y]},ue.get?re=ue.set?N.stylize("[Getter/Setter]","special"):N.stylize("[Getter]","special"):ue.set&&(re=N.stylize("[Setter]","special")),te(X,Y)||(se="["+Y+"]"),re||(N.seen.indexOf(ue.value)<0?(re=m(B)?e(N,ue.value,null):e(N,ue.value,B-1),re.indexOf(`
|
|
|
`)>-1&&(re=Z?re.split(`
|
|
|
`).map(function(ce){return" "+ce}).join(`
|
|
|
`).substr(2):`
|
|
|
`+re.split(`
|
|
|
`).map(function(ce){return" "+ce}).join(`
|
|
|
`))):re=N.stylize("[Circular]","special")),A(se)){if(Z&&Y.match(/^\d+$/))return re;se=JSON.stringify(""+Y),se.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(se=se.substr(1,se.length-2),se=N.stylize(se,"name")):(se=se.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),se=N.stylize(se,"string"))}return se+": "+re}function c(N,I,B){var X=0;return N.reduce(function(Y,Z){return X++,Z.indexOf(`
|
|
|
`)>=0&&X++,Y+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?B[0]+(I===""?"":I+`
|
|
|
`)+" "+N.join(`,
|
|
|
`)+" "+B[1]:B[0]+I+" "+N.join(", ")+" "+B[1]}function S(N){return Array.isArray(N)}function E(N){return typeof N=="boolean"}function m(N){return N===null}function T(N){return N==null}function w(N){return typeof N=="number"}function f(N){return typeof N=="string"}function _(N){return typeof N=="symbol"}function A(N){return N===void 0}function C(N){return v(N)&&k(N)==="[object RegExp]"}function v(N){return typeof N=="object"&&N!==null}function L(N){return v(N)&&k(N)==="[object Date]"}function U(N){return v(N)&&(k(N)==="[object Error]"||N instanceof Error)}function j(N){return typeof N=="function"}function b(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||N===void 0}function k(N){return Object.prototype.toString.call(N)}function H(N){return N<10?"0"+N.toString(10):N.toString(10)}function G(){var N=new Date,I=[H(N.getHours()),H(N.getMinutes()),H(N.getSeconds())].join(":");return[N.getDate(),V[N.getMonth()],I].join(" ")}function te(N,I){return Object.prototype.hasOwnProperty.call(N,I)}var F=/%[sdj%]/g;x.format=function(N){if(!f(N)){for(var I=[],B=0;B<arguments.length;B++)I.push(r(arguments[B]));return I.join(" ")}for(var B=1,X=arguments,Y=X.length,Z=String(N).replace(F,function(ue){if(ue==="%%")return"%";if(B>=Y)return ue;switch(ue){case"%s":return String(X[B++]);case"%d":return Number(X[B++]);case"%j":try{return JSON.stringify(X[B++])}catch(ce){return"[Circular]"}default:return ue}}),se=X[B];B<Y;se=X[++B])m(se)||!v(se)?Z+=" "+se:Z+=" "+r(se);return Z},x.deprecate=function(N,I){function B(){if(!X){if(d.throwDeprecation)throw new Error(I);d.traceDeprecation?console.trace(I):console.error(I),X=!0}return N.apply(this,arguments)}if(A(g.process))return function(){return x.deprecate(N,I).apply(this,arguments)};if(d.noDeprecation===!0)return N;var X=!1;return B};var ee,$={};x.debuglog=function(N){if(A(ee)&&(ee=d.env.NODE_DEBUG||""),N=N.toUpperCase(),!$[N])if(new RegExp("\\b"+N+"\\b","i").test(ee)){var I=d.pid;$[N]=function(){var B=x.format.apply(x,arguments);console.error("%s %d: %s",N,I,B)}}else $[N]=function(){};return $[N]},x.inspect=r,r.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]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},x.isArray=S,x.isBoolean=E,x.isNull=m,x.isNullOrUndefined=T,x.isNumber=w,x.isString=f,x.isSymbol=_,x.isUndefined=A,x.isRegExp=C,x.isObject=v,x.isDate=L,x.isError=U,x.isFunction=j,x.isPrimitive=b,x.isBuffer=n("./support/isBuffer");var V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];x.log=function(){console.log("%s - %s",G(),x.format.apply(x,arguments))},x.inherits=n("inherits"),x._extend=function(N,I){if(!I||!v(I))return N;for(var B=Object.keys(I),X=B.length;X--;)N[B[X]]=I[B[X]];return N}}).call(this,n("_process"),typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,P,x){"use strict";(function(){x.stripBOM=function(d){return d[0]==="\uFEFF"?d.substring(1):d}}).call(void 0)},{}],209:[function(n,P,x){"use strict";function d(s){return s&&s.__esModule?s:{default:s}}var g=n("babel-runtime/helpers/typeof"),r=d(g),o=n("babel-runtime/core-js/object/keys"),p=d(o);(function(){var s,e,i,a,l,h={}.hasOwnProperty;s=n("xmlbuilder"),e=n("./defaults").defaults,a=function(S){return typeof S=="string"&&(S.indexOf("&")>=0||S.indexOf(">")>=0||S.indexOf("<")>=0)},l=function(S){return"<![CDATA["+i(S)+"]]>"},i=function(S){return S.replace("]]>","]]]]><![CDATA[>")},x.Builder=function(){function c(S){var E,m,T;this.options={},m=e[.2];for(E in m)h.call(m,E)&&(T=m[E],this.options[E]=T);for(E in S)h.call(S,E)&&(T=S[E],this.options[E]=T)}return c.prototype.buildObject=function(S){var E,m,T,w,f;return E=this.options.attrkey,m=this.options.charkey,(0,p.default)(S).length===1&&this.options.rootName===e[.2].rootName?(f=(0,p.default)(S)[0],S=S[f]):f=this.options.rootName,T=function(_){return function(A,C){var v,L,U,j,b,k;if((C===void 0?"undefined":(0,r.default)(C))!=="object")_.options.cdata&&a(C)?A.raw(l(C)):A.txt(C);else if(Array.isArray(C)){for(j in C)if(h.call(C,j)){L=C[j];for(b in L)U=L[b],A=T(A.ele(b),U).up()}}else for(b in C)if(h.call(C,b))if(L=C[b],b===E){if((L===void 0?"undefined":(0,r.default)(L))==="object")for(v in L)k=L[v],A=A.att(v,k)}else if(b===m)A=_.options.cdata&&a(L)?A.raw(l(L)):A.txt(L);else if(Array.isArray(L))for(j in L)h.call(L,j)&&(U=L[j],A=typeof U=="string"?_.options.cdata&&a(U)?A.ele(b).raw(l(U)).up():A.ele(b,U).up():T(A.ele(b),U).up());else(L===void 0?"undefined":(0,r.default)(L))==="object"?A=T(A.ele(b),L).up():typeof L=="string"&&_.options.cdata&&a(L)?A=A.ele(b).raw(l(L)).up():(L==null&&(L=""),A=A.ele(b,L.toString()).up());return A}}(this),w=s.create(f,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(w,S).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,P,x){"use strict";(function(){x.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,P,x){"use strict";function d(i){return i&&i.__esModule?i:{default:i}}var g=n("babel-runtime/core-js/object/get-own-property-names"),r=d(g),o=n("babel-runtime/core-js/object/keys"),p=d(o),s=n("babel-runtime/helpers/typeof"),e=d(s);(function(){var i,a,l,h,c,S,E,m,T=function(A,C){return function(){return A.apply(C,arguments)}},w=function(A,C){function v(){this.constructor=A}for(var L in C)f.call(C,L)&&(A[L]=C[L]);return v.prototype=C.prototype,A.prototype=new v,A.__super__=C.prototype,A},f={}.hasOwnProperty;E=n("sax"),l=n("events"),i=n("./bom"),S=n("./processors"),m=n("timers").setImmediate,a=n("./defaults").defaults,h=function(A){return(A===void 0?"undefined":(0,e.default)(A))==="object"&&A!=null&&(0,p.default)(A).length===0},c=function(A,C,v){var L,U,j;for(L=0,U=A.length;L<U;L++)j=A[L],C=j(C,v);return C},x.Parser=function(_){function A(C){this.parseString=T(this.parseString,this),this.reset=T(this.reset,this),this.assignOrPush=T(this.assignOrPush,this),this.processAsync=T(this.processAsync,this);var v,L,U;if(!(this instanceof x.Parser))return new x.Parser(C);this.options={},L=a[.2];for(v in L)f.call(L,v)&&(U=L[v],this.options[v]=U);for(v in C)f.call(C,v)&&(U=C[v],this.options[v]=U);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(S.normalize)),this.reset()}return w(A,_),A.prototype.processAsync=function(){var C,v;try{return this.remaining.length<=this.options.chunkSize?(C=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(C),this.saxParser.close()):(C=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(C),m(this.processAsync))}catch(L){if(v=L,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},A.prototype.assignOrPush=function(C,v,L){return v in C?(C[v]instanceof Array||(C[v]=[C[v]]),C[v].push(L)):this.options.explicitArray?C[v]=[L]:C[v]=L},A.prototype.reset=function(){var C,v,L,U;return this.removeAllListeners(),this.saxParser=E.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(j){return function(b){if(j.saxParser.resume(),!j.saxParser.errThrown)return j.saxParser.errThrown=!0,j.emit("error",b)}}(this),this.saxParser.onend=function(j){return function(){if(!j.saxParser.ended)return j.saxParser.ended=!0,j.emit("end",j.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,U=[],C=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(j){return function(b){var k,H,G,te,F;if(G={},G[v]="",!j.options.ignoreAttrs){F=b.attributes;for(k in F)f.call(F,k)&&(C in G||j.options.mergeAttrs||(G[C]={}),H=j.options.attrValueProcessors?c(j.options.attrValueProcessors,b.attributes[k],k):b.attributes[k],te=j.options.attrNameProcessors?c(j.options.attrNameProcessors,k):k,j.options.mergeAttrs?j.assignOrPush(G,te,H):G[C][te]=H)}return G["#name"]=j.options.tagNameProcessors?c(j.options.tagNameProcessors,b.name):b.name,j.options.xmlns&&(G[j.options.xmlnskey]={uri:b.uri,local:b.local}),U.push(G)}}(this),this.saxParser.onclosetag=function(j){return function(){var b,k,H,G,te,F,ee,$,V,N;if(F=U.pop(),te=F["#name"],j.options.explicitChildren&&j.options.preserveChildrenOrder||delete F["#name"],F.cdata===!0&&(b=F.cdata,delete F.cdata),V=U[U.length-1],F[v].match(/^\s*$/)&&!b?(k=F[v],delete F[v]):(j.options.trim&&(F[v]=F[v].trim()),j.options.normalize&&(F[v]=F[v].replace(/\s{2,}/g," ").trim()),F[v]=j.options.valueProcessors?c(j.options.valueProcessors,F[v],te):F[v],(0,p.default)(F).length===1&&v in F&&!j.EXPLICIT_CHARKEY&&(F=F[v])),h(F)&&(F=j.options.emptyTag!==""?j.options.emptyTag:k),j.options.validator!=null&&(N="/"+function(){var I,B,X;for(X=[],I=0,B=U.length;I<B;I++)G=U[I],X.push(G["#name"]);return X}().concat(te).join("/"),function(){var I;try{F=j.options.validator(N,V&&V[te],F)}catch(B){return I=B,j.emit("error",I)}}()),j.options.explicitChildren&&!j.options.mergeAttrs&&(F===void 0?"undefined":(0,e.default)(F))==="object")if(j.options.preserveChildrenOrder){if(V){V[j.options.childkey]=V[j.options.childkey]||[],ee={};for(H in F)f.call(F,H)&&(ee[H]=F[H]);V[j.options.childkey].push(ee),delete F["#name"],(0,p.default)(F).length===1&&v in F&&!j.EXPLICIT_CHARKEY&&(F=F[v])}}else G={},j.options.attrkey in F&&(G[j.options.attrkey]=F[j.options.attrkey],delete F[j.options.attrkey]),!j.options.charsAsChildren&&j.options.charkey in F&&(G[j.options.charkey]=F[j.options.charkey],delete F[j.options.charkey]),(0,r.default)(F).length>0&&(G[j.options.childkey]=F),F=G;return U.length>0?j.assignOrPush(V,te,F):(j.options.explicitRoot&&($=F,F={},F[te]=$),j.resultObject=F,j.saxParser.ended=!0,j.emit("end",j.resultObject))}}(this),L=function(j){return function(b){var k,H;if(H=U[U.length-1])return H[v]+=b,j.options.explicitChildren&&j.options.preserveChildrenOrder&&j.options.charsAsChildren&&(j.options.includeWhiteChars||b.replace(/\\n/g,"").trim()!=="")&&(H[j.options.childkey]=H[j.options.childkey]||[],k={"#name":"__text__"},k[v]=b,j.options.normalize&&(k[v]=k[v].replace(/\s{2,}/g," ").trim()),H[j.options.childkey].push(k)),H}}(this),this.saxParser.ontext=L,this.saxParser.oncdata=function(j){return function(b){var k;if(k=L(b))return k.cdata=!0}}()},A.prototype.parseString=function(C,v){var L;v!=null&&typeof v=="function"&&(this.on("end",function(U){return this.reset(),v(null,U)}),this.on("error",function(U){return this.reset(),v(U)}));try{return C=C.toString(),C.trim()===""?(this.emit("end",null),!0):(C=i.stripBOM(C),this.options.async?(this.remaining=C,m(this.processAsync),this.saxParser):this.saxParser.write(C).close())}catch(U){if(L=U,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",L),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw L}},A}(l.EventEmitter),x.parseString=function(_,A,C){var v,L,U;return C!=null?(typeof C=="function"&&(v=C),(A===void 0?"undefined":(0,e.default)(A))==="object"&&(L=A)):(typeof A=="function"&&(v=A),L={}),U=new x.Parser(L),U.parseString(_,v)}}).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,P,x){"use strict";(function(){var d;d=new RegExp(/(?!xmlns)^.*:/),x.normalize=function(g){return g.toLowerCase()},x.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},x.stripPrefix=function(g){return g.replace(d,"")},x.parseNumbers=function(g){return isNaN(g)||(g=g%1==0?parseInt(g,10):parseFloat(g)),g},x.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],213:[function(n,P,x){"use strict";(function(){var d,g,r,o,p=function(i,a){function l(){this.constructor=i}for(var h in a)s.call(a,h)&&(i[h]=a[h]);return l.prototype=a.prototype,i.prototype=new l,i.__super__=a.prototype,i},s={}.hasOwnProperty;g=n("./defaults"),d=n("./builder"),r=n("./parser"),o=n("./processors"),x.defaults=g.defaults,x.processors=o,x.ValidationError=function(e){function i(a){this.message=a}return p(i,e),i}(Error),x.Builder=d.Builder,x.Parser=r.Parser,x.parseString=r.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,P,x){"use strict";function d(i){return i&&i.__esModule?i:{default:i}}var g=n("babel-runtime/core-js/object/get-prototype-of"),r=d(g),o=n("babel-runtime/helpers/typeof"),p=d(o),s=n("babel-runtime/core-js/object/assign"),e=d(s);(function(){var i,a,l,h,c,S,E=[].slice,m={}.hasOwnProperty;i=function(){var w,f,_,A,C,v;if(v=arguments[0],C=2<=arguments.length?E.call(arguments,1):[],h(e.default))e.default.apply(null,arguments);else for(w=0,_=C.length;w<_;w++)if((A=C[w])!=null)for(f in A)m.call(A,f)&&(v[f]=A[f]);return v},h=function(w){return!!w&&Object.prototype.toString.call(w)==="[object Function]"},c=function(w){var f;return!!w&&((f=w===void 0?"undefined":(0,p.default)(w))==="function"||f==="object")},a=function(w){return h(Array.isArray)?Array.isArray(w):Object.prototype.toString.call(w)==="[object Array]"},l=function(w){var f;if(a(w))return!w.length;for(f in w)if(m.call(w,f))return!1;return!0},S=function(w){var f,_;return c(w)&&(_=(0,r.default)(w))&&(f=_.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},P.exports.assign=i,P.exports.isFunction=h,P.exports.isObject=c,P.exports.isArray=a,P.exports.isEmpty=l,P.exports.isPlainObject=S}).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,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){P.exports=function(){function r(o,p,s){if(this.options=o.options,this.stringify=o.stringify,p==null)throw new Error("Missing attribute name of element "+o.name);if(s==null)throw new Error("Missing attribute value for attribute "+p+" of element "+o.name);this.name=this.stringify.attName(p),this.value=this.stringify.attValue(s)}return r.prototype.clone=function(){return(0,g.default)(this)},r.prototype.toString=function(o){return this.options.writer.set(o).attribute(this)},r}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o=function(e,i){function a(){this.constructor=e}for(var l in i)p.call(i,l)&&(e[l]=i[l]);return a.prototype=i.prototype,e.prototype=new a,e.__super__=i.prototype,e},p={}.hasOwnProperty;r=n("./XMLNode"),P.exports=function(s){function e(i,a){if(e.__super__.constructor.call(this,i),a==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(a)}return o(e,s),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(i){return this.options.writer.set(i).cdata(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o=function(e,i){function a(){this.constructor=e}for(var l in i)p.call(i,l)&&(e[l]=i[l]);return a.prototype=i.prototype,e.prototype=new a,e.__super__=i.prototype,e},p={}.hasOwnProperty;r=n("./XMLNode"),P.exports=function(s){function e(i,a){if(e.__super__.constructor.call(this,i),a==null)throw new Error("Missing comment text");this.text=this.stringify.comment(a)}return o(e,s),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(i){return this.options.writer.set(i).comment(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,P,x){"use strict";(function(){var d,g=function(p,s){function e(){this.constructor=p}for(var i in s)r.call(s,i)&&(p[i]=s[i]);return e.prototype=s.prototype,p.prototype=new e,p.__super__=s.prototype,p},r={}.hasOwnProperty;d=n("./XMLNode"),P.exports=function(o){function p(s,e,i,a,l,h){if(p.__super__.constructor.call(this,s),e==null)throw new Error("Missing DTD element name");if(i==null)throw new Error("Missing DTD attribute name");if(!a)throw new Error("Missing DTD attribute type");if(!l)throw new Error("Missing DTD attribute default");if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(h&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(i),this.attributeType=this.stringify.dtdAttType(a),this.defaultValue=this.stringify.dtdAttDefault(h),this.defaultValueType=l}return g(p,o),p.prototype.toString=function(s){return this.options.writer.set(s).dtdAttList(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],219:[function(n,P,x){"use strict";(function(){var d,g=function(p,s){function e(){this.constructor=p}for(var i in s)r.call(s,i)&&(p[i]=s[i]);return e.prototype=s.prototype,p.prototype=new e,p.__super__=s.prototype,p},r={}.hasOwnProperty;d=n("./XMLNode"),P.exports=function(o){function p(s,e,i){if(p.__super__.constructor.call(this,s),e==null)throw new Error("Missing DTD element name");i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(i)}return g(p,o),p.prototype.toString=function(s){return this.options.writer.set(s).dtdElement(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],220:[function(n,P,x){"use strict";(function(){var d,g,r=function(s,e){function i(){this.constructor=s}for(var a in e)o.call(e,a)&&(s[a]=e[a]);return i.prototype=e.prototype,s.prototype=new i,s.__super__=e.prototype,s},o={}.hasOwnProperty;g=n("./Utility").isObject,d=n("./XMLNode"),P.exports=function(p){function s(e,i,a,l){if(s.__super__.constructor.call(this,e),a==null)throw new Error("Missing entity name");if(l==null)throw new Error("Missing entity value");if(this.pe=!!i,this.name=this.stringify.eleName(a),g(l)){if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity");if(l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(l)}return r(s,p),s.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},s}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,P,x){"use strict";(function(){var d,g=function(p,s){function e(){this.constructor=p}for(var i in s)r.call(s,i)&&(p[i]=s[i]);return e.prototype=s.prototype,p.prototype=new e,p.__super__=s.prototype,p},r={}.hasOwnProperty;d=n("./XMLNode"),P.exports=function(o){function p(s,e,i){if(p.__super__.constructor.call(this,s),e==null)throw new Error("Missing notation name");if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return g(p,o),p.prototype.toString=function(s){return this.options.writer.set(s).dtdNotation(this)},p}(d)}).call(void 0)},{"./XMLNode":227}],222:[function(n,P,x){"use strict";(function(){var d,g,r=function(s,e){function i(){this.constructor=s}for(var a in e)o.call(e,a)&&(s[a]=e[a]);return i.prototype=e.prototype,s.prototype=new i,s.__super__=e.prototype,s},o={}.hasOwnProperty;g=n("./Utility").isObject,d=n("./XMLNode"),P.exports=function(p){function s(e,i,a,l){var h;s.__super__.constructor.call(this,e),g(i)&&(h=i,i=h.version,a=h.encoding,l=h.standalone),i||(i="1.0"),this.version=this.stringify.xmlVersion(i),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return r(s,p),s.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},s}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,P,x){"use strict";(function(){var d,g,r,o,p,s,e=function(l,h){function c(){this.constructor=l}for(var S in h)i.call(h,S)&&(l[S]=h[S]);return c.prototype=h.prototype,l.prototype=new c,l.__super__=h.prototype,l},i={}.hasOwnProperty;s=n("./Utility").isObject,p=n("./XMLNode"),d=n("./XMLDTDAttList"),r=n("./XMLDTDEntity"),g=n("./XMLDTDElement"),o=n("./XMLDTDNotation"),P.exports=function(a){function l(h,c,S){var E,m;l.__super__.constructor.call(this,h),this.documentObject=h,s(c)&&(E=c,c=E.pubID,S=E.sysID),S==null&&(m=[c,S],S=m[0],c=m[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),S!=null&&(this.sysID=this.stringify.dtdSysID(S))}return e(l,a),l.prototype.element=function(h,c){var S;return S=new g(this,h,c),this.children.push(S),this},l.prototype.attList=function(h,c,S,E,m){var T;return T=new d(this,h,c,S,E,m),this.children.push(T),this},l.prototype.entity=function(h,c){var S;return S=new r(this,!1,h,c),this.children.push(S),this},l.prototype.pEntity=function(h,c){var S;return S=new r(this,!0,h,c),this.children.push(S),this},l.prototype.notation=function(h,c){var S;return S=new o(this,h,c),this.children.push(S),this},l.prototype.toString=function(h){return this.options.writer.set(h).docType(this)},l.prototype.ele=function(h,c){return this.element(h,c)},l.prototype.att=function(h,c,S,E,m){return this.attList(h,c,S,E,m)},l.prototype.ent=function(h,c){return this.entity(h,c)},l.prototype.pent=function(h,c){return this.pEntity(h,c)},l.prototype.not=function(h,c){return this.notation(h,c)},l.prototype.up=function(){return this.root()||this.documentObject},l}(p)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,P,x){"use strict";(function(){var d,g,r,o,p=function(i,a){function l(){this.constructor=i}for(var h in a)s.call(a,h)&&(i[h]=a[h]);return l.prototype=a.prototype,i.prototype=new l,i.__super__=a.prototype,i},s={}.hasOwnProperty;o=n("./Utility").isPlainObject,d=n("./XMLNode"),r=n("./XMLStringifier"),g=n("./XMLStringWriter"),P.exports=function(e){function i(a){i.__super__.constructor.call(this,null),a||(a={}),a.writer||(a.writer=new g),this.options=a,this.stringify=new r(a),this.isDocument=!0}return p(i,e),i.prototype.end=function(a){var l;return a?o(a)&&(l=a,a=this.options.writer.set(l)):a=this.options.writer,a.document(this)},i.prototype.toString=function(a){return this.options.writer.set(a).document(this)},i}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,P,x){"use strict";(function(){var d,g,r,o,p,s,e,i,a,l,h,c,S,E,m,T,w,f,_,A={}.hasOwnProperty;_=n("./Utility"),w=_.isObject,T=_.isFunction,f=_.isPlainObject,l=n("./XMLElement"),g=n("./XMLCData"),r=n("./XMLComment"),c=n("./XMLRaw"),m=n("./XMLText"),h=n("./XMLProcessingInstruction"),i=n("./XMLDeclaration"),a=n("./XMLDocType"),o=n("./XMLDTDAttList"),s=n("./XMLDTDEntity"),p=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),d=n("./XMLAttribute"),E=n("./XMLStringifier"),S=n("./XMLStringWriter"),P.exports=function(){function C(v,L,U){var j;v||(v={}),v.writer?f(v.writer)&&(j=v.writer,v.writer=new S(j)):v.writer=new S(v),this.options=v,this.writer=v.writer,this.stringify=new E(v),this.onDataCallback=L||function(){},this.onEndCallback=U||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.node=function(v,L,U){var j;if(v==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(),v=v.valueOf(),L==null&&(L={}),L=L.valueOf(),w(L)||(j=[L,U],U=j[0],L=j[1]),this.currentNode=new l(this,v,L),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,U!=null&&this.text(U),this},C.prototype.element=function(v,L,U){return this.currentNode&&this.currentNode instanceof a?this.dtdElement.apply(this,arguments):this.node(v,L,U)},C.prototype.attribute=function(v,L){var U,j;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(v!=null&&(v=v.valueOf()),w(v))for(U in v)A.call(v,U)&&(j=v[U],this.attribute(U,j));else T(L)&&(L=L.apply()),this.options.skipNullAttributes&&L==null||(this.currentNode.attributes[v]=new d(this,v,L));return this},C.prototype.text=function(v){var L;return this.openCurrent(),L=new m(this,v),this.onData(this.writer.text(L,this.currentLevel+1)),this},C.prototype.cdata=function(v){var L;return this.openCurrent(),L=new g(this,v),this.onData(this.writer.cdata(L,this.currentLevel+1)),this},C.prototype.comment=function(v){var L;return this.openCurrent(),L=new r(this,v),this.onData(this.writer.comment(L,this.currentLevel+1)),this},C.prototype.raw=function(v){var L;return this.openCurrent(),L=new c(this,v),this.onData(this.writer.raw(L,this.currentLevel+1)),this},C.prototype.instruction=function(v,L){var U,j,b,k,H;if(this.openCurrent(),v!=null&&(v=v.valueOf()),L!=null&&(L=L.valueOf()),Array.isArray(v))for(U=0,k=v.length;U<k;U++)j=v[U],this.instruction(j);else if(w(v))for(j in v)A.call(v,j)&&(b=v[j],this.instruction(j,b));else T(L)&&(L=L.apply()),H=new h(this,v,L),this.onData(this.writer.processingInstruction(H,this.currentLevel+1));return this},C.prototype.declaration=function(v,L,U){var j;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return j=new i(this,v,L,U),this.onData(this.writer.declaration(j,this.currentLevel+1)),this},C.prototype.doctype=function(v,L,U){if(this.openCurrent(),v==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 a(this,L,U),this.currentNode.rootNodeName=v,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(v,L){var U;return this.openCurrent(),U=new p(this,v,L),this.onData(this.writer.dtdElement(U,this.currentLevel+1)),this},C.prototype.attList=function(v,L,U,j,b){var k;return this.openCurrent(),k=new o(this,v,L,U,j,b),this.onData(this.writer.dtdAttList(k,this.currentLevel+1)),this},C.prototype.entity=function(v,L){var U;return this.openCurrent(),U=new s(this,!1,v,L),this.onData(this.writer.dtdEntity(U,this.currentLevel+1)),this},C.prototype.pEntity=function(v,L){var U;return this.openCurrent(),U=new s(this,!0,v,L),this.onData(this.writer.dtdEntity(U,this.currentLevel+1)),this},C.prototype.notation=function(v,L){var U;return this.openCurrent(),U=new e(this,v,L),this.onData(this.writer.dtdNotation(U,this.currentLevel+1)),this},C.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},C.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(v){if(!v.isOpen)return!this.root&&this.currentLevel===0&&v instanceof l&&(this.root=v),this.onData(this.writer.openNode(v,this.currentLevel)),v.isOpen=!0},C.prototype.closeNode=function(v){if(!v.isClosed)return this.onData(this.writer.closeNode(v,this.currentLevel)),v.isClosed=!0},C.prototype.onData=function(v){return this.documentStarted=!0,this.onDataCallback(v)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(v,L,U){return this.node(v,L,U)},C.prototype.txt=function(v){return this.text(v)},C.prototype.dat=function(v){return this.cdata(v)},C.prototype.com=function(v){return this.comment(v)},C.prototype.ins=function(v,L){return this.instruction(v,L)},C.prototype.dec=function(v,L,U){return this.declaration(v,L,U)},C.prototype.dtd=function(v,L,U){return this.doctype(v,L,U)},C.prototype.e=function(v,L,U){return this.element(v,L,U)},C.prototype.n=function(v,L,U){return this.node(v,L,U)},C.prototype.t=function(v){return this.text(v)},C.prototype.d=function(v){return this.cdata(v)},C.prototype.c=function(v){return this.comment(v)},C.prototype.r=function(v){return this.raw(v)},C.prototype.i=function(v,L){return this.instruction(v,L)},C.prototype.att=function(){return this.currentNode&&this.currentNode instanceof a?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode instanceof a?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(v,L){return this.entity(v,L)},C.prototype.pent=function(v,L){return this.pEntity(v,L)},C.prototype.not=function(v,L){return this.notation(v,L)},C}()}).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,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o,p,s,e,i=function(h,c){function S(){this.constructor=h}for(var E in c)a.call(c,E)&&(h[E]=c[E]);return S.prototype=c.prototype,h.prototype=new S,h.__super__=c.prototype,h},a={}.hasOwnProperty;e=n("./Utility"),s=e.isObject,p=e.isFunction,o=n("./XMLNode"),r=n("./XMLAttribute"),P.exports=function(l){function h(c,S,E){if(h.__super__.constructor.call(this,c),S==null)throw new Error("Missing element name");this.name=this.stringify.eleName(S),this.attributes={},E!=null&&this.attribute(E),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return i(h,l),h.prototype.clone=function(){var c,S,E,m;E=(0,g.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},m=this.attributes;for(S in m)a.call(m,S)&&(c=m[S],E.attributes[S]=c.clone());return E.children=[],this.children.forEach(function(T){var w;return w=T.clone(),w.parent=E,E.children.push(w)}),E},h.prototype.attribute=function(c,S){var E,m;if(c!=null&&(c=c.valueOf()),s(c))for(E in c)a.call(c,E)&&(m=c[E],this.attribute(E,m));else p(S)&&(S=S.apply()),this.options.skipNullAttributes&&S==null||(this.attributes[c]=new r(this,c,S));return this},h.prototype.removeAttribute=function(c){var S,E,m;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(E=0,m=c.length;E<m;E++)S=c[E],delete this.attributes[S];else delete this.attributes[c];return this},h.prototype.toString=function(c){return this.options.writer.set(c).element(this)},h.prototype.att=function(c,S){return this.attribute(c,S)},h.prototype.a=function(c,S){return this.attribute(c,S)},h}(o)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,P,x){"use strict";(function(){var d,g,r,o,p,s,e,i,a,l,h,c,S={}.hasOwnProperty;c=n("./Utility"),h=c.isObject,l=c.isFunction,a=c.isEmpty,p=null,d=null,g=null,r=null,o=null,e=null,i=null,s=null,P.exports=function(){function E(m){this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],p||(p=n("./XMLElement"),d=n("./XMLCData"),g=n("./XMLComment"),r=n("./XMLDeclaration"),o=n("./XMLDocType"),e=n("./XMLRaw"),i=n("./XMLText"),s=n("./XMLProcessingInstruction"))}return E.prototype.element=function(m,T,w){var f,_,A,C,v,L,U,j,b,k;if(L=null,T==null&&(T={}),T=T.valueOf(),h(T)||(b=[T,w],w=b[0],T=b[1]),m!=null&&(m=m.valueOf()),Array.isArray(m))for(A=0,U=m.length;A<U;A++)_=m[A],L=this.element(_);else if(l(m))L=this.element(m.apply());else if(h(m)){for(v in m)if(S.call(m,v))if(k=m[v],l(k)&&(k=k.apply()),h(k)&&a(k)&&(k=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&v.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(v.substr(this.stringify.convertAttKey.length),k);else if(!this.options.separateArrayItems&&Array.isArray(k))for(C=0,j=k.length;C<j;C++)_=k[C],f={},f[v]=_,L=this.element(f);else h(k)?(L=this.element(v),L.element(k)):L=this.element(v,k)}else L=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&m.indexOf(this.stringify.convertTextKey)===0?this.text(w):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&m.indexOf(this.stringify.convertCDataKey)===0?this.cdata(w):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&m.indexOf(this.stringify.convertCommentKey)===0?this.comment(w):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&m.indexOf(this.stringify.convertRawKey)===0?this.raw(w):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&m.indexOf(this.stringify.convertPIKey)===0?this.instruction(m.substr(this.stringify.convertPIKey.length),w):this.node(m,T,w);if(L==null)throw new Error("Could not create any elements with: "+m);return L},E.prototype.insertBefore=function(m,T,w){var f,_,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_),f=this.parent.element(m,T,w),Array.prototype.push.apply(this.parent.children,A),f},E.prototype.insertAfter=function(m,T,w){var f,_,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),A=this.parent.children.splice(_+1),f=this.parent.element(m,T,w),Array.prototype.push.apply(this.parent.children,A),f},E.prototype.remove=function(){var m;if(this.isRoot)throw new Error("Cannot remove the root element");return m=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[m,m-m+1].concat([])),this.parent},E.prototype.node=function(m,T,w){var f,_;return m!=null&&(m=m.valueOf()),T||(T={}),T=T.valueOf(),h(T)||(_=[T,w],w=_[0],T=_[1]),f=new p(this,m,T),w!=null&&f.text(w),this.children.push(f),f},E.prototype.text=function(m){var T;return T=new i(this,m),this.children.push(T),this},E.prototype.cdata=function(m){var T;return T=new d(this,m),this.children.push(T),this},E.prototype.comment=function(m){var T;return T=new g(this,m),this.children.push(T),this},E.prototype.commentBefore=function(m){var T,w;return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T),this.parent.comment(m),Array.prototype.push.apply(this.parent.children,w),this},E.prototype.commentAfter=function(m){var T,w;return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),this.parent.comment(m),Array.prototype.push.apply(this.parent.children,w),this},E.prototype.raw=function(m){var T;return T=new e(this,m),this.children.push(T),this},E.prototype.instruction=function(m,T){var w,f,_,A,C;if(m!=null&&(m=m.valueOf()),T!=null&&(T=T.valueOf()),Array.isArray(m))for(A=0,C=m.length;A<C;A++)w=m[A],this.instruction(w);else if(h(m))for(w in m)S.call(m,w)&&(f=m[w],this.instruction(w,f));else l(T)&&(T=T.apply()),_=new s(this,m,T),this.children.push(_);return this},E.prototype.instructionBefore=function(m,T){var w,f;return w=this.parent.children.indexOf(this),f=this.parent.children.splice(w),this.parent.instruction(m,T),Array.prototype.push.apply(this.parent.children,f),this},E.prototype.instructionAfter=function(m,T){var w,f;return w=this.parent.children.indexOf(this),f=this.parent.children.splice(w+1),this.parent.instruction(m,T),Array.prototype.push.apply(this.parent.children,f),this},E.prototype.declaration=function(m,T,w){var f,_;return f=this.document(),_=new r(f,m,T,w),f.children[0]instanceof r?f.children[0]=_:f.children.unshift(_),f.root()||f},E.prototype.doctype=function(m,T){var w,f,_,A,C,v,L,U,j,b;for(f=this.document(),_=new o(f,m,T),j=f.children,A=C=0,L=j.length;C<L;A=++C)if((w=j[A])instanceof o)return f.children[A]=_,_;for(b=f.children,A=v=0,U=b.length;v<U;A=++v)if(w=b[A],w.isRoot)return f.children.splice(A,0,_),_;return f.children.push(_),_},E.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},E.prototype.root=function(){var m;for(m=this;m;){if(m.isDocument)return m.rootObject;if(m.isRoot)return m;m=m.parent}},E.prototype.document=function(){var m;for(m=this;m;){if(m.isDocument)return m;m=m.parent}},E.prototype.end=function(m){return this.document().end(m)},E.prototype.prev=function(){var m;if((m=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[m-1]},E.prototype.next=function(){var m;if((m=this.parent.children.indexOf(this))===-1||m===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[m+1]},E.prototype.importDocument=function(m){var T;return T=m.root().clone(),T.parent=this,T.isRoot=!1,this.children.push(T),this},E.prototype.ele=function(m,T,w){return this.element(m,T,w)},E.prototype.nod=function(m,T,w){return this.node(m,T,w)},E.prototype.txt=function(m){return this.text(m)},E.prototype.dat=function(m){return this.cdata(m)},E.prototype.com=function(m){return this.comment(m)},E.prototype.ins=function(m,T){return this.instruction(m,T)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(m,T,w){return this.declaration(m,T,w)},E.prototype.dtd=function(m,T){return this.doctype(m,T)},E.prototype.e=function(m,T,w){return this.element(m,T,w)},E.prototype.n=function(m,T,w){return this.node(m,T,w)},E.prototype.t=function(m){return this.text(m)},E.prototype.d=function(m){return this.cdata(m)},E.prototype.c=function(m){return this.comment(m)},E.prototype.r=function(m){return this.raw(m)},E.prototype.i=function(m,T){return this.instruction(m,T)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(m){return this.importDocument(m)},E}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o=function(e,i){function a(){this.constructor=e}for(var l in i)p.call(i,l)&&(e[l]=i[l]);return a.prototype=i.prototype,e.prototype=new a,e.__super__=i.prototype,e},p={}.hasOwnProperty;r=n("./XMLNode"),P.exports=function(s){function e(i,a,l){if(e.__super__.constructor.call(this,i),a==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(a),l&&(this.value=this.stringify.insValue(l))}return o(e,s),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(i){return this.options.writer.set(i).processingInstruction(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o=function(e,i){function a(){this.constructor=e}for(var l in i)p.call(i,l)&&(e[l]=i[l]);return a.prototype=i.prototype,e.prototype=new a,e.__super__=i.prototype,e},p={}.hasOwnProperty;r=n("./XMLNode"),P.exports=function(s){function e(i,a){if(e.__super__.constructor.call(this,i),a==null)throw new Error("Missing raw text");this.value=this.stringify.raw(a)}return o(e,s),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(i){return this.options.writer.set(i).raw(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,P,x){"use strict";(function(){var d,g,r,o,p,s,e,i,a,l,h,c,S,E=function(w,f){function _(){this.constructor=w}for(var A in f)m.call(f,A)&&(w[A]=f[A]);return _.prototype=f.prototype,w.prototype=new _,w.__super__=f.prototype,w},m={}.hasOwnProperty;e=n("./XMLDeclaration"),i=n("./XMLDocType"),d=n("./XMLCData"),g=n("./XMLComment"),a=n("./XMLElement"),h=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),r=n("./XMLDTDAttList"),o=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),S=n("./XMLWriterBase"),P.exports=function(T){function w(f,_){w.__super__.constructor.call(this,_),this.stream=f}return E(w,T),w.prototype.document=function(f){var _,A,C,v,L,U,j,b;for(U=f.children,A=0,v=U.length;A<v;A++)_=U[A],_.isLastRootNode=!1;for(f.children[f.children.length-1].isLastRootNode=!0,j=f.children,b=[],C=0,L=j.length;C<L;C++)switch(_=j[C],!1){case!(_ instanceof e):b.push(this.declaration(_));break;case!(_ instanceof i):b.push(this.docType(_));break;case!(_ instanceof g):b.push(this.comment(_));break;case!(_ instanceof l):b.push(this.processingInstruction(_));break;default:b.push(this.element(_))}return b},w.prototype.attribute=function(f){return this.stream.write(" "+f.name+'="'+f.value+'"')},w.prototype.cdata=function(f,_){return this.stream.write(this.space(_)+"<![CDATA["+f.text+"]]>"+this.endline(f))},w.prototype.comment=function(f,_){return this.stream.write(this.space(_)+"<!-- "+f.text+" -->"+this.endline(f))},w.prototype.declaration=function(f,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+f.version+'"'),f.encoding!=null&&this.stream.write(' encoding="'+f.encoding+'"'),f.standalone!=null&&this.stream.write(' standalone="'+f.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(f))},w.prototype.docType=function(f,_){var A,C,v,L;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("<!DOCTYPE "+f.root().name),f.pubID&&f.sysID?this.stream.write(' PUBLIC "'+f.pubID+'" "'+f.sysID+'"'):f.sysID&&this.stream.write(' SYSTEM "'+f.sysID+'"'),f.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(f)),L=f.children,C=0,v=L.length;C<v;C++)switch(A=L[C],!1){case!(A instanceof r):this.dtdAttList(A,_+1);break;case!(A instanceof o):this.dtdElement(A,_+1);break;case!(A instanceof p):this.dtdEntity(A,_+1);break;case!(A instanceof s):this.dtdNotation(A,_+1);break;case!(A instanceof d):this.cdata(A,_+1);break;case!(A instanceof g):this.comment(A,_+1);break;case!(A instanceof l):this.processingInstruction(A,_+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(f))},w.prototype.element=function(f,_){var A,C,v,L,U,j,b,k;_||(_=0),k=this.space(_),this.stream.write(k+"<"+f.name),j=f.attributes;for(U in j)m.call(j,U)&&(A=j[U],this.attribute(A));if(f.children.length===0||f.children.every(function(H){return H.value===""}))this.allowEmpty?this.stream.write("></"+f.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&f.children.length===1&&f.children[0].value!=null)this.stream.write(">"),this.stream.write(f.children[0].value),this.stream.write("</"+f.name+">");else{for(this.stream.write(">"+this.newline),b=f.children,v=0,L=b.length;v<L;v++)switch(C=b[v],!1){case!(C instanceof d):this.cdata(C,_+1);break;case!(C instanceof g):this.comment(C,_+1);break;case!(C instanceof a):this.element(C,_+1);break;case!(C instanceof h):this.raw(C,_+1);break;case!(C instanceof c):this.text(C,_+1);break;case!(C instanceof l):this.processingInstruction(C,_+1);break;default:throw new Error("Unknown XML node type: "+C.constructor.name)}this.stream.write(k+"</"+f.name+">")}return this.stream.write(this.endline(f))},w.prototype.processingInstruction=function(f,_){return this.stream.write(this.space(_)+"<?"+f.target),f.value&&this.stream.write(" "+f.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(f))},w.prototype.raw=function(f,_){return this.stream.write(this.space(_)+f.value+this.endline(f))},w.prototype.text=function(f,_){return this.stream.write(this.space(_)+f.value+this.endline(f))},w.prototype.dtdAttList=function(f,_){return this.stream.write(this.space(_)+"<!ATTLIST "+f.elementName+" "+f.attributeName+" "+f.attributeType),f.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+f.defaultValueType),f.defaultValue&&this.stream.write(' "'+f.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(f))},w.prototype.dtdElement=function(f,_){return this.stream.write(this.space(_)+"<!ELEMENT "+f.name+" "+f.value),this.stream.write(this.spacebeforeslash+">"+this.endline(f))},w.prototype.dtdEntity=function(f,_){return this.stream.write(this.space(_)+"<!ENTITY"),f.pe&&this.stream.write(" %"),this.stream.write(" "+f.name),f.value?this.stream.write(' "'+f.value+'"'):(f.pubID&&f.sysID?this.stream.write(' PUBLIC "'+f.pubID+'" "'+f.sysID+'"'):f.sysID&&this.stream.write(' SYSTEM "'+f.sysID+'"'),f.nData&&this.stream.write(" NDATA "+f.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(f))},w.prototype.dtdNotation=function(f,_){return this.stream.write(this.space(_)+"<!NOTATION "+f.name),f.pubID&&f.sysID?this.stream.write(' PUBLIC "'+f.pubID+'" "'+f.sysID+'"'):f.pubID?this.stream.write(' PUBLIC "'+f.pubID+'"'):f.sysID&&this.stream.write(' SYSTEM "'+f.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(f))},w.prototype.endline=function(f){return f.isLastRootNode?"":this.newline},w}(S)}).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,P,x){"use strict";(function(){var d,g,r,o,p,s,e,i,a,l,h,c,S,E=function(w,f){function _(){this.constructor=w}for(var A in f)m.call(f,A)&&(w[A]=f[A]);return _.prototype=f.prototype,w.prototype=new _,w.__super__=f.prototype,w},m={}.hasOwnProperty;e=n("./XMLDeclaration"),i=n("./XMLDocType"),d=n("./XMLCData"),g=n("./XMLComment"),a=n("./XMLElement"),h=n("./XMLRaw"),c=n("./XMLText"),l=n("./XMLProcessingInstruction"),r=n("./XMLDTDAttList"),o=n("./XMLDTDElement"),p=n("./XMLDTDEntity"),s=n("./XMLDTDNotation"),S=n("./XMLWriterBase"),P.exports=function(T){function w(f){w.__super__.constructor.call(this,f)}return E(w,T),w.prototype.document=function(f){var _,A,C,v,L;for(this.textispresent=!1,v="",L=f.children,A=0,C=L.length;A<C;A++)_=L[A],v+=function(){switch(!1){case!(_ instanceof e):return this.declaration(_);case!(_ instanceof i):return this.docType(_);case!(_ instanceof g):return this.comment(_);case!(_ instanceof l):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&v.slice(-this.newline.length)===this.newline&&(v=v.slice(0,-this.newline.length)),v},w.prototype.attribute=function(f){return" "+f.name+'="'+f.value+'"'},w.prototype.cdata=function(f,_){return this.space(_)+"<![CDATA["+f.text+"]]>"+this.newline},w.prototype.comment=function(f,_){return this.space(_)+"<!-- "+f.text+" -->"+this.newline},w.prototype.declaration=function(f,_){var A;return A=this.space(_),A+='<?xml version="'+f.version+'"',f.encoding!=null&&(A+=' encoding="'+f.encoding+'"'),f.standalone!=null&&(A+=' standalone="'+f.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline},w.prototype.docType=function(f,_){var A,C,v,L,U;if(_||(_=0),L=this.space(_),L+="<!DOCTYPE "+f.root().name,f.pubID&&f.sysID?L+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(L+=' SYSTEM "'+f.sysID+'"'),f.children.length>0){for(L+=" [",L+=this.newline,U=f.children,C=0,v=U.length;C<v;C++)A=U[C],L+=function(){switch(!1){case!(A instanceof r):return this.dtdAttList(A,_+1);case!(A instanceof o):return this.dtdElement(A,_+1);case!(A instanceof p):return this.dtdEntity(A,_+1);case!(A instanceof s):return this.dtdNotation(A,_+1);case!(A instanceof d):return this.cdata(A,_+1);case!(A instanceof g):return this.comment(A,_+1);case!(A instanceof l):return this.processingInstruction(A,_+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}.call(this);L+="]"}return L+=this.spacebeforeslash+">",L+=this.newline},w.prototype.element=function(f,_){var A,C,v,L,U,j,b,k,H,G,te,F,ee;_||(_=0),ee=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F=this.space(_),k="",k+=F+"<"+f.name,H=f.attributes;for(b in H)m.call(H,b)&&(A=H[b],k+=this.attribute(A));if(f.children.length===0||f.children.every(function($){return $.value===""}))this.allowEmpty?k+="></"+f.name+">"+this.newline:k+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&f.children.length===1&&f.children[0].value!=null)k+=">",k+=f.children[0].value,k+="</"+f.name+">"+this.newline;else{if(this.dontprettytextnodes){for(G=f.children,v=0,U=G.length;v<U;v++)if(C=G[v],C.value!=null){this.textispresent++,ee=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,F=this.space(_)),k+=">"+this.newline,te=f.children,L=0,j=te.length;L<j;L++)C=te[L],k+=function(){switch(!1){case!(C instanceof d):return this.cdata(C,_+1);case!(C instanceof g):return this.comment(C,_+1);case!(C instanceof a):return this.element(C,_+1);case!(C instanceof h):return this.raw(C,_+1);case!(C instanceof c):return this.text(C,_+1);case!(C instanceof l):return this.processingInstruction(C,_+1);default:throw new Error("Unknown XML node type: "+C.constructor.name)}}.call(this);ee&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),k+=F+"</"+f.name+">"+this.newline}return k},w.prototype.processingInstruction=function(f,_){var A;return A=this.space(_)+"<?"+f.target,f.value&&(A+=" "+f.value),A+=this.spacebeforeslash+"?>"+this.newline},w.prototype.raw=function(f,_){return this.space(_)+f.value+this.newline},w.prototype.text=function(f,_){return this.space(_)+f.value+this.newline},w.prototype.dtdAttList=function(f,_){var A;return A=this.space(_)+"<!ATTLIST "+f.elementName+" "+f.attributeName+" "+f.attributeType,f.defaultValueType!=="#DEFAULT"&&(A+=" "+f.defaultValueType),f.defaultValue&&(A+=' "'+f.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdElement=function(f,_){return this.space(_)+"<!ELEMENT "+f.name+" "+f.value+this.spacebeforeslash+">"+this.newline},w.prototype.dtdEntity=function(f,_){var A;return A=this.space(_)+"<!ENTITY",f.pe&&(A+=" %"),A+=" "+f.name,f.value?A+=' "'+f.value+'"':(f.pubID&&f.sysID?A+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(A+=' SYSTEM "'+f.sysID+'"'),f.nData&&(A+=" NDATA "+f.nData)),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdNotation=function(f,_){var A;return A=this.space(_)+"<!NOTATION "+f.name,f.pubID&&f.sysID?A+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.pubID?A+=' PUBLIC "'+f.pubID+'"':f.sysID&&(A+=' SYSTEM "'+f.sysID+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.openNode=function(f,_){var A,C,v,L;if(_||(_=0),f instanceof a){v=this.space(_)+"<"+f.name,L=f.attributes;for(C in L)m.call(L,C)&&(A=L[C],v+=this.attribute(A));return v+=(f.children?">":"/>")+this.newline}return v=this.space(_)+"<!DOCTYPE "+f.rootNodeName,f.pubID&&f.sysID?v+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(v+=' SYSTEM "'+f.sysID+'"'),v+=(f.children?" [":">")+this.newline},w.prototype.closeNode=function(f,_){switch(_||(_=0),!1){case!(f instanceof a):return this.space(_)+"</"+f.name+">"+this.newline;case!(f instanceof i):return this.space(_)+"]>"+this.newline}},w}(S)}).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,P,x){"use strict";(function(){var d=function(o,p){return function(){return o.apply(p,arguments)}},g={}.hasOwnProperty;P.exports=function(){function r(o){this.assertLegalChar=d(this.assertLegalChar,this);var p,s,e;o||(o={}),this.noDoubleEncoding=o.noDoubleEncoding,s=o.stringify||{};for(p in s)g.call(s,p)&&(e=s[p],this[p]=e)}return r.prototype.eleName=function(o){return o=""+o||"",this.assertLegalChar(o)},r.prototype.eleText=function(o){return o=""+o||"",this.assertLegalChar(this.elEscape(o))},r.prototype.cdata=function(o){return o=""+o||"",o=o.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(o)},r.prototype.comment=function(o){if(o=""+o||"",o.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+o);return this.assertLegalChar(o)},r.prototype.raw=function(o){return""+o||""},r.prototype.attName=function(o){return o=""+o||""},r.prototype.attValue=function(o){return o=""+o||"",this.attEscape(o)},r.prototype.insTarget=function(o){return""+o||""},r.prototype.insValue=function(o){if(o=""+o||"",o.match(/\?>/))throw new Error("Invalid processing instruction value: "+o);return o},r.prototype.xmlVersion=function(o){if(o=""+o||"",!o.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+o);return o},r.prototype.xmlEncoding=function(o){if(o=""+o||"",!o.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+o);return o},r.prototype.xmlStandalone=function(o){return o?"yes":"no"},r.prototype.dtdPubID=function(o){return""+o||""},r.prototype.dtdSysID=function(o){return""+o||""},r.prototype.dtdElementValue=function(o){return""+o||""},r.prototype.dtdAttType=function(o){return""+o||""},r.prototype.dtdAttDefault=function(o){return o!=null?""+o||"":o},r.prototype.dtdEntityValue=function(o){return""+o||""},r.prototype.dtdNData=function(o){return""+o||""},r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r.prototype.assertLegalChar=function(o){var p;if(p=o.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+o+" at index "+p.index);return o},r.prototype.elEscape=function(o){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,o.replace(p,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},r.prototype.attEscape=function(o){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,o.replace(p,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},r}()}).call(void 0)},{}],233:[function(n,P,x){"use strict";var d=n("babel-runtime/core-js/object/create"),g=function(r){return r&&r.__esModule?r:{default:r}}(d);(function(){var r,o=function(e,i){function a(){this.constructor=e}for(var l in i)p.call(i,l)&&(e[l]=i[l]);return a.prototype=i.prototype,e.prototype=new a,e.__super__=i.prototype,e},p={}.hasOwnProperty;r=n("./XMLNode"),P.exports=function(s){function e(i,a){if(e.__super__.constructor.call(this,i),a==null)throw new Error("Missing element text");this.value=this.stringify.eleText(a)}return o(e,s),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(i){return this.options.writer.set(i).text(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,P,x){"use strict";(function(){var d={}.hasOwnProperty;P.exports=function(){function g(r){var o,p,s,e,i,a,l,h,c;r||(r={}),this.pretty=r.pretty||!1,this.allowEmpty=(p=r.allowEmpty)!=null&&p,this.pretty?(this.indent=(s=r.indent)!=null?s:" ",this.newline=(e=r.newline)!=null?e:`
|
|
|
`,this.offset=(i=r.offset)!=null?i:0,this.dontprettytextnodes=(a=r.dontprettytextnodes)!=null?a:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(l=r.spacebeforeslash)!=null?l:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,h=r.writer||{};for(o in h)d.call(h,o)&&(c=h[o],this[o]=c)}return g.prototype.set=function(r){var o,p,s;r||(r={}),"pretty"in r&&(this.pretty=r.pretty),"allowEmpty"in r&&(this.allowEmpty=r.allowEmpty),this.pretty?(this.indent="indent"in r?r.indent:" ",this.newline="newline"in r?r.newline:`
|
|
|
`,this.offset="offset"in r?r.offset:0,this.dontprettytextnodes="dontprettytextnodes"in r?r.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in r?r.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=r.writer||{};for(o in p)d.call(p,o)&&(s=p[o],this[o]=s);return this},g.prototype.space=function(r){var o;return this.pretty?(o=(r||0)+this.offset+1,o>0?new Array(o).join(this.indent):""):""},g}()}).call(void 0)},{}],235:[function(n,P,x){"use strict";(function(){var d,g,r,o,p,s,e;e=n("./Utility"),p=e.assign,s=e.isFunction,d=n("./XMLDocument"),g=n("./XMLDocumentCB"),o=n("./XMLStringWriter"),r=n("./XMLStreamWriter"),P.exports.create=function(i,a,l,h){var c,S;if(i==null)throw new Error("Root element needs a name");return h=p({},a,l,h),c=new d(h),S=c.element(i),h.headless||(c.declaration(h),h.pubID==null&&h.sysID==null||c.doctype(h)),S},P.exports.begin=function(i,a,l){var h;return s(i)&&(h=[i,a],a=h[0],l=h[1],i={}),a?new g(i,a,l):new d(i)},P.exports.stringWriter=function(i){return new o(i)},P.exports.streamWriter=function(i,a){return new r(i,a)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,P,x){function d(){for(var r={},o=0;o<arguments.length;o++){var p=arguments[o];for(var s in p)g.call(p,s)&&(r[s]=p[s])}return r}P.exports=d;var g=Object.prototype.hasOwnProperty},{}],237:[function(n,P,x){"use strict";function d(h,c,S){o.isBuffer(c)||(c=new o(c)),o.isBuffer(S)||(S=new o(S)),c.length>a?c=h(c):c.length<a&&(c=o.concat([c,l],a));for(var E=new o(a),m=new o(a),T=0;T<a;T++)E[T]=54^c[T],m[T]=92^c[T];var w=h(o.concat([E,S]));return h(o.concat([m,w]))}function g(h,c){h=h||"sha1";var S=i[h],E=[],m=0;return S||r("algorithm:",h,"is not yet supported"),{update:function(w){return o.isBuffer(w)||(w=new o(w)),E.push(w),m+=w.length,this},digest:function(w){var f=o.concat(E),_=c?d(S,c,f):S(f);return E=null,w?_.toString(w):_}}}function r(){var h=[].slice.call(arguments).join(" ");throw new Error([h,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var o=n("buffer").Buffer,p=n("./sha"),s=n("./sha256"),e=n("./md5"),i={sha1:p,sha256:s,md5:e},a=64,l=new o(a);l.fill(0),x.createHash=function(h){return g(h)},x.createHmac=function(h,c){return g(h,c)},function(h,c){for(var S in h)c(h[S],S)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(h){x[h]=function(){r("sorry,",h,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,P,x){"use strict";function d(i,a){if(i.length%p!=0){var l=i.length+(p-i.length%p);i=o.concat([i,s],l)}for(var h=[],c=a?i.readInt32BE:i.readInt32LE,S=0;S<i.length;S+=p)h.push(c.call(i,S));return h}function g(i,a,l){for(var h=new o(a),c=l?h.writeInt32BE:h.writeInt32LE,S=0;S<i.length;S++)c.call(h,i[S],4*S,!0);return h}function r(i,a,l,h){return o.isBuffer(i)||(i=new o(i)),g(a(d(i,h),i.length*e),l,h)}var o=n("buffer").Buffer,p=4,s=new o(p);s.fill(0);var e=8;P.exports={hash:r}},{buffer:38}],239:[function(n,P,x){"use strict";function d(l,h){l[h>>5]|=128<<h%32,l[14+(h+64>>>9<<4)]=h;for(var c=1732584193,S=-271733879,E=-1732584194,m=271733878,T=0;T<l.length;T+=16){var w=c,f=S,_=E,A=m;c=r(c,S,E,m,l[T+0],7,-680876936),m=r(m,c,S,E,l[T+1],12,-389564586),E=r(E,m,c,S,l[T+2],17,606105819),S=r(S,E,m,c,l[T+3],22,-1044525330),c=r(c,S,E,m,l[T+4],7,-176418897),m=r(m,c,S,E,l[T+5],12,1200080426),E=r(E,m,c,S,l[T+6],17,-1473231341),S=r(S,E,m,c,l[T+7],22,-45705983),c=r(c,S,E,m,l[T+8],7,1770035416),m=r(m,c,S,E,l[T+9],12,-1958414417),E=r(E,m,c,S,l[T+10],17,-42063),S=r(S,E,m,c,l[T+11],22,-1990404162),c=r(c,S,E,m,l[T+12],7,1804603682),m=r(m,c,S,E,l[T+13],12,-40341101),E=r(E,m,c,S,l[T+14],17,-1502002290),S=r(S,E,m,c,l[T+15],22,1236535329),c=o(c,S,E,m,l[T+1],5,-165796510),m=o(m,c,S,E,l[T+6],9,-1069501632),E=o(E,m,c,S,l[T+11],14,643717713),S=o(S,E,m,c,l[T+0],20,-373897302),c=o(c,S,E,m,l[T+5],5,-701558691),m=o(m,c,S,E,l[T+10],9,38016083),E=o(E,m,c,S,l[T+15],14,-660478335),S=o(S,E,m,c,l[T+4],20,-405537848),c=o(c,S,E,m,l[T+9],5,568446438),m=o(m,c,S,E,l[T+14],9,-1019803690),E=o(E,m,c,S,l[T+3],14,-187363961),S=o(S,E,m,c,l[T+8],20,1163531501),c=o(c,S,E,m,l[T+13],5,-1444681467),m=o(m,c,S,E,l[T+2],9,-51403784),E=o(E,m,c,S,l[T+7],14,1735328473),S=o(S,E,m,c,l[T+12],20,-1926607734),c=p(c,S,E,m,l[T+5],4,-378558),m=p(m,c,S,E,l[T+8],11,-2022574463),E=p(E,m,c,S,l[T+11],16,1839030562),S=p(S,E,m,c,l[T+14],23,-35309556),c=p(c,S,E,m,l[T+1],4,-1530992060),m=p(m,c,S,E,l[T+4],11,1272893353),E=p(E,m,c,S,l[T+7],16,-155497632),S=p(S,E,m,c,l[T+10],23,-1094730640),c=p(c,S,E,m,l[T+13],4,681279174),m=p(m,c,S,E,l[T+0],11,-358537222),E=p(E,m,c,S,l[T+3],16,-722521979),S=p(S,E,m,c,l[T+6],23,76029189),c=p(c,S,E,m,l[T+9],4,-640364487),m=p(m,c,S,E,l[T+12],11,-421815835),E=p(E,m,c,S,l[T+15],16,530742520),S=p(S,E,m,c,l[T+2],23,-995338651),c=s(c,S,E,m,l[T+0],6,-198630844),m=s(m,c,S,E,l[T+7],10,1126891415),E=s(E,m,c,S,l[T+14],15,-1416354905),S=s(S,E,m,c,l[T+5],21,-57434055),c=s(c,S,E,m,l[T+12],6,1700485571),m=s(m,c,S,E,l[T+3],10,-1894986606),E=s(E,m,c,S,l[T+10],15,-1051523),S=s(S,E,m,c,l[T+1],21,-2054922799),c=s(c,S,E,m,l[T+8],6,1873313359),m=s(m,c,S,E,l[T+15],10,-30611744),E=s(E,m,c,S,l[T+6],15,-1560198380),S=s(S,E,m,c,l[T+13],21,1309151649),c=s(c,S,E,m,l[T+4],6,-145523070),m=s(m,c,S,E,l[T+11],10,-1120210379),E=s(E,m,c,S,l[T+2],15,718787259),S=s(S,E,m,c,l[T+9],21,-343485551),c=e(c,w),S=e(S,f),E=e(E,_),m=e(m,A)}return Array(c,S,E,m)}function g(l,h,c,S,E,m){return e(i(e(e(h,l),e(S,m)),E),c)}function r(l,h,c,S,E,m,T){return g(h&c|~h&S,l,h,E,m,T)}function o(l,h,c,S,E,m,T){return g(h&S|c&~S,l,h,E,m,T)}function p(l,h,c,S,E,m,T){return g(h^c^S,l,h,E,m,T)}function s(l,h,c,S,E,m,T){return g(c^(h|~S),l,h,E,m,T)}function e(l,h){var c=(65535&l)+(65535&h);return(l>>16)+(h>>16)+(c>>16)<<16|65535&c}function i(l,h){return l<<h|l>>>32-h}var a=n("./helpers");P.exports=function(l){return a.hash(l,d,16)}},{"./helpers":238}],240:[function(n,P,x){"use strict";function d(e,i){e[i>>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var a=Array(80),l=1732584193,h=-271733879,c=-1732584194,S=271733878,E=-1009589776,m=0;m<e.length;m+=16){for(var T=l,w=h,f=c,_=S,A=E,C=0;C<80;C++){a[C]=C<16?e[m+C]:p(a[C-3]^a[C-8]^a[C-14]^a[C-16],1);var v=o(o(p(l,5),g(C,h,c,S)),o(o(E,a[C]),r(C)));E=S,S=c,c=p(h,30),h=l,l=v}l=o(l,T),h=o(h,w),c=o(c,f),S=o(S,_),E=o(E,A)}return Array(l,h,c,S,E)}function g(e,i,a,l){return e<20?i&a|~i&l:e<40?i^a^l:e<60?i&a|i&l|a&l:i^a^l}function r(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function o(e,i){var a=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(a>>16)<<16|65535&a}function p(e,i){return e<<i|e>>>32-i}var s=n("./helpers");P.exports=function(e){return s.hash(e,d,20,!0)}},{"./helpers":238}],241:[function(n,P,x){"use strict";var d=n("./helpers"),g=function(S,E){var m=(65535&S)+(65535&E);return(S>>16)+(E>>16)+(m>>16)<<16|65535&m},r=function(S,E){return S>>>E|S<<32-E},o=function(S,E){return S>>>E},p=function(S,E,m){return S&E^~S&m},s=function(S,E,m){return S&E^S&m^E&m},e=function(S){return r(S,2)^r(S,13)^r(S,22)},i=function(S){return r(S,6)^r(S,11)^r(S,25)},a=function(S){return r(S,7)^r(S,18)^o(S,3)},l=function(S){return r(S,17)^r(S,19)^o(S,10)},h=function(S,E){var m,T,w,f,_,A,C,v,L,U,j,b,k=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),H=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),G=new Array(64);S[E>>5]|=128<<24-E%32,S[15+(E+64>>9<<4)]=E;for(var L=0;L<S.length;L+=16){m=H[0],T=H[1],w=H[2],f=H[3],_=H[4],A=H[5],C=H[6],v=H[7];for(var U=0;U<64;U++)G[U]=U<16?S[U+L]:g(g(g(l(G[U-2]),G[U-7]),a(G[U-15])),G[U-16]),j=g(g(g(g(v,i(_)),p(_,A,C)),k[U]),G[U]),b=g(e(m),s(m,T,w)),v=C,C=A,A=_,_=g(f,j),f=w,w=T,T=m,m=g(j,b);H[0]=g(m,H[0]),H[1]=g(T,H[1]),H[2]=g(w,H[2]),H[3]=g(f,H[3]),H[4]=g(_,H[4]),H[5]=g(A,H[5]),H[6]=g(C,H[6]),H[7]=g(v,H[7])}return H};P.exports=function(c){return d.hash(c,h,32,!0)}},{"./helpers":238}],242:[function(n,P,x){(function(d){"use strict";function g(h){return h&&h.__esModule?h:{default:h}}var r=n("babel-runtime/core-js/object/create"),o=g(r),p=n("babel-runtime/helpers/classCallCheck"),s=g(p),e=n("babel-runtime/helpers/createClass"),i=g(e),a=n("babel-runtime/helpers/typeof"),l=g(a);!function(h){if((x===void 0?"undefined":(0,l.default)(x))==="object"&&P!==void 0)P.exports=h();else if(typeof _e=="function"&&_e.amd)_e([],h);else{var c;c=typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:this,c.mime=h()}}(function(){return function h(c,S,E){function m(f,_){if(!S[f]){if(!c[f]){var A=typeof n=="function"&&n;if(!_&&A)return A(f,!0);if(T)return T(f,!0);var C=new Error("Cannot find module '"+f+"'");throw C.code="MODULE_NOT_FOUND",C}var v=S[f]={exports:{}};c[f][0].call(v.exports,function(L){var U=c[f][1][L];return m(U||L)},v,v.exports,h,c,S,E)}return S[f].exports}for(var T=typeof n=="function"&&n,w=0;w<E.length;w++)m(E[w]);return m}({1:[function(h,c,S){var E=function(){function m(){(0,s.default)(this,m),this._types=(0,o.default)(null),this._extensions=(0,o.default)(null);for(var T=0;T<arguments.length;T++)this.define(arguments[T])}return(0,i.default)(m,[{key:"define",value:function(w,f){for(var _ in w){for(var A=w[_],C=0;C<A.length;C++){var v=A[C];if(!f&&v in this._types)throw new Error('Attempt to change mapping for "'+v+'" extension from "'+this._types[v]+'" to "'+_+'". Pass `force=true` to allow this, otherwise remove "'+v+'" from the list of extensions for "'+_+'".');this._types[v]=_}!f&&this._extensions[_]||(this._extensions[_]=A[0])}}},{key:"getType",value:function(w){w=String(w);var f=w.replace(/^.*[\/\\]/,"").toLowerCase(),_=f.replace(/^.*\./,"").toLowerCase(),A=f.length<w.length;return(_.length<f.length-1||!A)&&this._types[_]||null}},{key:"getExtension",value:function(w){return(w=/^\s*([^;\s]*)/.test(w)&&RegExp.$1)&&this._extensions[w.toLowerCase()]||null}}]),m}();c.exports=E},{}],2:[function(h,c,S){var E=h("./Mime");c.exports=new E(h("./types/standard"),h("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(h,c,S){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(h,c,S){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof Ue!="undefined"?Ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(n,P,x){"use strict";x.encodeURIComponent=function(d){try{return encodeURIComponent(d)}catch(g){return d}},x.escape=n("escape-html"),x.timestamp=function(d){if(d){var g=d;return typeof g=="string"&&(g=Number(g)),String(d).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,P,x){(function(d,g){"use strict";function r(C){return C&&C.__esModule?C:{default:C}}function o(C,v){return C===void 0?v:C}function p(C,v){return function(L,U,j){if(L)return v(L);C({data:U,status:j.statusCode,headers:j.headers,res:j})}}var s,e=n("babel-runtime/core-js/json/stringify"),i=r(e),a=n("babel-runtime/helpers/typeof"),l=r(a),h=n("util"),c=n("url"),S=n("http"),E=n("https"),m=n("debug")("urllib"),T=n("humanize-ms"),w=0,f=Math.pow(2,31)-10,_=/^https?:\/\//i;x.TIMEOUTS=[T("300s"),T("300s")];var A=["json","text"];x.request=function(C,v,L){return arguments.length===2&&typeof v=="function"&&(L=v,v=null),typeof L=="function"?x.requestWithCallback(C,v,L):(s||(s=n("any-promise")),new s(function(U,j){x.requestWithCallback(C,v,p(U,j))}))},x.requestWithCallback=function(C,v,L){function U(){me&&(clearTimeout(me),me=null)}function j(){R&&(clearTimeout(R),R=null)}function b(le,Ke,lt){if(j(),!L)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),$,d.pid,re.method,C),void(le&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),$,d.pid,le.name,le.message,le.stack));var Je=L;L=null;var Ve={};if(lt&&(O=lt.statusCode,Ve=lt.headers),O===401&&Ve["www-authenticate"]&&(!v.headers||!v.headers.Authorization)&&v.digestAuth){var tt=Ve["www-authenticate"];if(tt.indexOf("Digest ")>=0)return m("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,C,tt),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(re.method,re.path,tt,v.digestAuth),m("Request#%d %s: auth with digest header: %s",$,C,v.headers.Authorization),lt.headers["set-cookie"]&&(v.headers.Cookie=lt.headers["set-cookie"].join(";")),x.requestWithCallback(C,v,Je)}var Ie=Date.now()-I;he&&(he.contentDownload=Ie),m("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ie,y,O,re.method,re.host,re.path,D,he);var ve={status:O,statusCode:O,headers:Ve,size:y,aborted:K,rt:Ie,keepAliveSocket:D,data:Ke,requestUrls:v.requestUrls,timing:he,remoteAddress:J,remotePort:Ee};if(le){var ye="";Z&&typeof Z.getCurrentStatus=="function"&&(ye=", agent status: "+(0,i.default)(Z.getCurrentStatus())),le.message+=", "+re.method+" "+C+" "+O+" (connected: "+u+", keepalive socket: "+D+ye+`)
|
|
|
headers: `+(0,i.default)(Ve),le.data=Ke,le.path=re.path,le.status=O,le.headers=Ve,le.res=ve}Je(le,Ke,v.streaming?lt:ve),v.emitter&&(V.url=C,V.socket=Ce&&Ce.connection,V.options=re,V.size=ae,v.emitter.emit("response",{requestId:$,error:le,ctx:v.ctx,req:V,res:ve}))}function k(le){var Ke=null;if(v.followRedirect&&statuses.redirect[le.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var lt=le.headers.location;if(lt){if(!(v._followRedirectCount>v.maxRedirects)){var Je=v.formatRedirectUrl?v.formatRedirectUrl(C,lt):c.resolve(C,lt);m("Request#%d %s: `redirected` from %s to %s",$,re.path,C,Je),j(),v.headers&&v.headers.Host&&_.test(lt)&&(v.headers.Host=null);var Ve=L;return L=null,x.requestWithCallback(Je,v,Ve),{redirect:!0,error:null}}Ke=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),Ke.name="MaxRedirectError"}else Ke=new Error("Got statusCode "+le.statusCode+" but cannot resolve next location from headers"),Ke.name="FollowRedirectError"}return{redirect:!1,error:Ke}}function H(le,Ke,lt){return lt(null,Ke,le.headers["content-encoding"])}function G(le){if(he&&(he.waiting=Date.now()-I),m("Request#%d %s `req response` event emit: status %d, headers: %j",$,C,le.statusCode,le.headers),v.streaming){var Ke=k(le);return Ke.redirect?void le.resume():Ke.error?(le.resume(),b(Ke.error,null,le)):b(null,null,le)}if(le.on("close",function(){m("Request#%d %s: `res close` event emit, total size %d",$,C,y)}),le.on("error",function(){m("Request#%d %s: `res error` event emit, total size %d",$,C,y)}),le.on("aborted",function(){K=!0,m("Request#%d %s: `res aborted` event emit, total size %d",$,C,y)}),fe){var Ke=k(le);return Ke.redirect?void le.resume():Ke.error?(le.resume(),fe.end(),b(Ke.error,null,le)):(v.consumeWriteStream===!1?le.on("end",b.bind(null,null,null,le)):isNode010||isNode012?first([[fe,"close"],[le,"aborted"]],function(Ve,tt,Ie){m("Request#%d %s: writeStream or res %s event emitted",$,C,Ie),b(t||null,null,le)}):fe.on("close",function(){m("Request#%d %s: writeStream close event emitted",$,C),b(t||null,null,le)}),le.pipe(fe))}var lt=[];le.on("data",function(Je){m("Request#%d %s: `res data` event emit, size %d",$,C,Je.length),y+=Je.length,lt.push(Je)}),le.on("end",function(){var Je=g.concat(lt,y);if(m("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,C,y,le._dumped),t)return b(t,Je,le);var Ve=k(le);if(Ve.error)return b(Ve.error,Je,le);Ve.redirect||H(le,Je,function(tt,Ie,ve){if(tt)return b(tt,Je,le);if(!ve&&A.indexOf(v.dataType)>=0){try{Ie=decodeBodyByCharset(Ie,le)}catch(Ae){return m("decodeBodyByCharset error: %s",Ae),b(null,Ie,le)}if(v.dataType==="json")if(y===0)Ie=null;else{var ye=parseJSON(Ie,se);ye.error?tt=ye.error:Ie=ye.data}}K&&m("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,C),b(tt,Ie,le)})})}function te(){m("Response timer ticking, timeout: %d",Re),R=setTimeout(function(){R=null;var le="Response timeout for "+Re+"ms";t=new Error(le),t.name="ResponseTimeoutError",t.requestId=$,m("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,le,u),F()},Re)}function F(){m("Request#%d %s abort, connected: %s",$,C,u),Ce.socket||(t.noSocket=!0,b(t)),Ce.abort()}if(!C||typeof C!="string"&&(C===void 0?"undefined":(0,l.default)(C))!=="object"){var ee=h.format("expect request url to be a string or a http request options, but got %j",C);throw new Error(ee)}arguments.length===2&&typeof v=="function"&&(L=v,v=null),v=v||{},w>=f&&(w=0);var $=++w;v.requestUrls=v.requestUrls||[];var V={requestId:$,url:C,args:v,ctx:v.ctx};v.emitter&&v.emitter.emit("request",V),v.timeout=v.timeout||x.TIMEOUTS,v.maxRedirects=v.maxRedirects||10,v.streaming=v.streaming||v.customResponse;var N,I=Date.now();typeof C=="string"?(_.test(C)||(C="http://"+C),N=c.parse(C)):N=C;var B=(v.type||v.method||N.method||"GET").toUpperCase(),X=N.port||80,Y=S,Z=o(v.agent,x.agent),se=v.fixJSONCtlChars;N.protocol==="https:"&&(Y=E,Z=o(v.httpsAgent,x.httpsAgent),N.port||(X=443));var re={host:N.hostname||N.host||"localhost",path:N.path||"/",method:B,port:X,agent:Z,headers:v.headers||{},lookup:v.lookup};Array.isArray(v.timeout)?re.requestTimeout=v.timeout[v.timeout.length-1]:v.timeout!==void 0&&(re.requestTimeout=v.timeout);for(var ue=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],ce=0;ce<ue.length;ce++){var q=ue[ce];v.hasOwnProperty(q)&&(re[q]=v[q])}re.rejectUnauthorized!==!1||re.hasOwnProperty("secureOptions")||(re.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var Q=v.auth||N.auth;Q&&(re.auth=Q);var ie=v.content||v.data,z=B==="GET"||B==="HEAD"||v.dataAsQueryString;if(!v.content&&ie&&typeof ie!="string"&&!g.isBuffer(ie))if(z)ie=v.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var W=re.headers["Content-Type"]||re.headers["content-type"];W||(W=v.contentType==="json"?"application/json":"application/x-www-form-urlencoded",re.headers["Content-Type"]=W),ie=parseContentType(W).type==="application/json"?(0,i.default)(ie):v.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}z&&ie&&(re.path+=(N.query?"&":"?")+ie,ie=null);var ae=0;if(ie){var ne=ie.length;g.isBuffer(ie)||(ne=g.byteLength(ie)),ae=re.headers["Content-Length"]=ne}v.dataType==="json"&&(re.headers.Accept="application/json"),typeof v.beforeRequest=="function"&&v.beforeRequest(re);var me=null,R=null,t=null,u=!1,D=!1,y=0,O=-1,K=!1,J="",Ee="",he=null;v.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),re.headers["User-Agent"]||re.headers["user-agent"]||(re.headers["User-Agent"]=navigator.userAgent),v.gzip&&(re.headers["Accept-Encoding"]||re.headers["accept-encoding"]||(re.headers["Accept-Encoding"]="gzip"));var fe=v.writeStream;m("Request#%d %s %s with headers %j, options.path: %s",$,B,C,re.headers,re.path),v.requestUrls.push(C);var be,Re;Array.isArray(v.timeout)?(be=T(v.timeout[0]),Re=T(v.timeout[1])):be=Re=T(v.timeout),m("ConnectTimeout: %d, ResponseTimeout: %d",be,Re);var Ce;try{Ce=Y.request(re,G)}catch(le){return b(le)}return typeof window=="undefined"?function(){m("Connect timer ticking, timeout: %d",be),me=setTimeout(function(){me=null,O===-1&&(O=-2);var le="Connect timeout for "+be+"ms",Ke="ConnectionTimeoutError";Ce.socket||(Ke="SocketAssignTimeoutError",le+=", working sockets is full"),t=new Error(le),t.name=Ke,t.requestId=$,m("ConnectTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,le,u),F()},be)}():Ce.on("requestTimeout",function(){O===-1&&(O=-2);var le="Connect timeout for "+be+"ms";t=new Error(le),t.name="ConnectionTimeoutError",t.requestId=$,F()}),he&&Ce.on("finish",function(){he.requestSent=Date.now()-I}),Ce.once("socket",function(le){he&&(he.queuing=Date.now()-I),isNode010&&le.socket&&(le=le.socket);var Ke=le.readyState;if(Ke==="opening")return le.once("lookup",function(lt,Je,Ve){m("Request#%d %s lookup: %s, %s, %s",$,C,lt,Je,Ve),he&&(he.dnslookup=Date.now()-I),Je&&(J=Je)}),void le.once("connect",function(){he&&(he.connected=Date.now()-I),U(),te(),m("Request#%d %s new socket connected",$,C),u=!0,J||(J=le.remoteAddress),Ee=le.remotePort});m("Request#%d %s reuse socket connected, readyState: %s",$,C,Ke),u=!0,D=!0,J||(J=le.remoteAddress),Ee=le.remotePort,U(),te()}),Ce.on("error",function(le){le.name!=="Error"&&le.name!=="TypeError"||(le.name=u?"ResponseError":"RequestError"),le.message+=' (req "error")',m("Request#%d %s `req error` event emit, %s: %s",$,C,le.name,le.message),b(t||le)}),fe&&fe.once("error",function(le){le.message+=' (writeStream "error")',t=le,m("Request#%d %s `writeStream error` event emit, %s: %s",$,C,le.name,le.message),F()}),v.stream?(v.stream.pipe(Ce),v.stream.once("error",function(le){le.message+=' (stream "error")',t=le,m("Request#%d %s `readStream error` event emit, %s: %s",$,C,le.name,le.message),F()})):Ce.end(ie),Ce.requestId=$,Ce}}).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(_e){function n(x){if(P[x])return P[x].exports;var d=P[x]={i:x,l:!1,exports:{}};return _e[x].call(d.exports,d,d.exports,n),d.l=!0,d.exports}var P={};n.m=_e,n.c=P,n.d=function(x,d,g){n.o(x,d)||Object.defineProperty(x,d,{configurable:!1,enumerable:!0,get:g})},n.n=function(x){var d=x&&x.__esModule?function(){return x.default}:function(){return x};return n.d(d,"a",d),d},n.o=function(x,d){return Object.prototype.hasOwnProperty.call(x,d)},n.p="",n(n.s=12)}([function(_e,n,P){!function(x,d){_e.exports=n=d()}(0,function(){var x=x||function(d,g){var r=Object.create||function(){function E(){}return function(m){var T;return E.prototype=m,T=new E,E.prototype=null,T}}(),o={},p=o.lib={},s=p.Base=function(){return{extend:function(m){var T=r(this);return m&&T.mixIn(m),T.hasOwnProperty("init")&&this.init!==T.init||(T.init=function(){T.$super.init.apply(this,arguments)}),T.init.prototype=T,T.$super=this,T},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var T in m)m.hasOwnProperty(T)&&(this[T]=m[T]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=p.WordArray=s.extend({init:function(m,T){m=this.words=m||[],this.sigBytes=T!=null?T:4*m.length},toString:function(m){return(m||a).stringify(this)},concat:function(m){var T=this.words,w=m.words,f=this.sigBytes,_=m.sigBytes;if(this.clamp(),f%4)for(var A=0;A<_;A++){var C=w[A>>>2]>>>24-A%4*8&255;T[f+A>>>2]|=C<<24-(f+A)%4*8}else for(var A=0;A<_;A+=4)T[f+A>>>2]=w[A>>>2];return this.sigBytes+=_,this},clamp:function(){var m=this.words,T=this.sigBytes;m[T>>>2]&=4294967295<<32-T%4*8,m.length=d.ceil(T/4)},clone:function(){var m=s.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var T,w=[],f=0;f<m;f+=4){var _=function(A){var A=A,C=987654321,v=4294967295;return function(){C=36969*(65535&C)+(C>>16)&v,A=18e3*(65535&A)+(A>>16)&v;var L=(C<<16)+A&v;return L/=4294967296,(L+=.5)*(d.random()>.5?1:-1)}}(4294967296*(T||d.random()));T=987654071*_(),w.push(4294967296*_()|0)}return new e.init(w,m)}}),i=o.enc={},a=i.Hex={stringify:function(m){for(var T=m.words,w=m.sigBytes,f=[],_=0;_<w;_++){var A=T[_>>>2]>>>24-_%4*8&255;f.push((A>>>4).toString(16)),f.push((15&A).toString(16))}return f.join("")},parse:function(m){for(var T=m.length,w=[],f=0;f<T;f+=2)w[f>>>3]|=parseInt(m.substr(f,2),16)<<24-f%8*4;return new e.init(w,T/2)}},l=i.Latin1={stringify:function(m){for(var T=m.words,w=m.sigBytes,f=[],_=0;_<w;_++){var A=T[_>>>2]>>>24-_%4*8&255;f.push(String.fromCharCode(A))}return f.join("")},parse:function(m){for(var T=m.length,w=[],f=0;f<T;f++)w[f>>>2]|=(255&m.charCodeAt(f))<<24-f%4*8;return new e.init(w,T)}},h=i.Utf8={stringify:function(m){try{return decodeURIComponent(escape(l.stringify(m)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(m){return l.parse(unescape(encodeURIComponent(m)))}},c=p.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=h.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var T=this._data,w=T.words,f=T.sigBytes,_=this.blockSize,A=4*_,C=f/A;C=m?d.ceil(C):d.max((0|C)-this._minBufferSize,0);var v=C*_,L=d.min(4*v,f);if(v){for(var U=0;U<v;U+=_)this._doProcessBlock(w,U);var j=w.splice(0,v);T.sigBytes-=L}return new e.init(j,L)},clone:function(){var m=s.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0}),S=(p.Hasher=c.extend({cfg:s.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){return m&&this._append(m),this._doFinalize()},blockSize:16,_createHelper:function(m){return function(T,w){return new m.init(w).finalize(T)}},_createHmacHelper:function(m){return function(T,w){return new S.HMAC.init(m,w).finalize(T)}}}),o.algo={});return o}(Math);return x})},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"detectIEVersion",value:function(){for(var p=4,s=document.createElement("div"),e=s.getElementsByTagName("i");s.innerHTML="<!--[if gt IE "+p+"]><i></i><![endif]-->",e[0];)p++;return p>4&&p}},{key:"extend",value:function(p,s){for(var e in s)Object.prototype.hasOwnProperty.call(s,e)&&s[e]&&(p[e]=s[e])}},{key:"isArray",value:function(p){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(p){return p=p.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(p)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(p)?"audio":/.bmp|.jpg|.jpeg|.png/.test(p)?"img":"other"}},{key:"isImage",value:function(p){return p=p.toLowerCase(),!!/.jpg|.jpeg|.png/.test(p)}},{key:"ISODateString",value:function(p){function s(e){return e<10?"0"+e:e}return p.getUTCFullYear()+"-"+s(p.getUTCMonth()+1)+"-"+s(p.getUTCDate())+"T"+s(p.getUTCHours())+":"+s(p.getUTCMinutes())+":"+s(p.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(p){return!!/^\d+$/.test(p)}}]),r}();n.default=g},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return function(d){function g(S,E,m,T,w,f,_){var A=S+(E&m|~E&T)+w+_;return(A<<f|A>>>32-f)+E}function r(S,E,m,T,w,f,_){var A=S+(E&T|m&~T)+w+_;return(A<<f|A>>>32-f)+E}function o(S,E,m,T,w,f,_){var A=S+(E^m^T)+w+_;return(A<<f|A>>>32-f)+E}function p(S,E,m,T,w,f,_){var A=S+(m^(E|~T))+w+_;return(A<<f|A>>>32-f)+E}var s=x,e=s.lib,i=e.WordArray,a=e.Hasher,l=s.algo,h=[];!function(){for(var S=0;S<64;S++)h[S]=4294967296*d.abs(d.sin(S+1))|0}();var c=l.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,m){for(var T=0;T<16;T++){var w=m+T,f=E[w];E[w]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}var _=this._hash.words,A=E[m+0],C=E[m+1],v=E[m+2],L=E[m+3],U=E[m+4],j=E[m+5],b=E[m+6],k=E[m+7],H=E[m+8],G=E[m+9],te=E[m+10],F=E[m+11],ee=E[m+12],$=E[m+13],V=E[m+14],N=E[m+15],I=_[0],B=_[1],X=_[2],Y=_[3];I=g(I,B,X,Y,A,7,h[0]),Y=g(Y,I,B,X,C,12,h[1]),X=g(X,Y,I,B,v,17,h[2]),B=g(B,X,Y,I,L,22,h[3]),I=g(I,B,X,Y,U,7,h[4]),Y=g(Y,I,B,X,j,12,h[5]),X=g(X,Y,I,B,b,17,h[6]),B=g(B,X,Y,I,k,22,h[7]),I=g(I,B,X,Y,H,7,h[8]),Y=g(Y,I,B,X,G,12,h[9]),X=g(X,Y,I,B,te,17,h[10]),B=g(B,X,Y,I,F,22,h[11]),I=g(I,B,X,Y,ee,7,h[12]),Y=g(Y,I,B,X,$,12,h[13]),X=g(X,Y,I,B,V,17,h[14]),B=g(B,X,Y,I,N,22,h[15]),I=r(I,B,X,Y,C,5,h[16]),Y=r(Y,I,B,X,b,9,h[17]),X=r(X,Y,I,B,F,14,h[18]),B=r(B,X,Y,I,A,20,h[19]),I=r(I,B,X,Y,j,5,h[20]),Y=r(Y,I,B,X,te,9,h[21]),X=r(X,Y,I,B,N,14,h[22]),B=r(B,X,Y,I,U,20,h[23]),I=r(I,B,X,Y,G,5,h[24]),Y=r(Y,I,B,X,V,9,h[25]),X=r(X,Y,I,B,L,14,h[26]),B=r(B,X,Y,I,H,20,h[27]),I=r(I,B,X,Y,$,5,h[28]),Y=r(Y,I,B,X,v,9,h[29]),X=r(X,Y,I,B,k,14,h[30]),B=r(B,X,Y,I,ee,20,h[31]),I=o(I,B,X,Y,j,4,h[32]),Y=o(Y,I,B,X,H,11,h[33]),X=o(X,Y,I,B,F,16,h[34]),B=o(B,X,Y,I,V,23,h[35]),I=o(I,B,X,Y,C,4,h[36]),Y=o(Y,I,B,X,U,11,h[37]),X=o(X,Y,I,B,k,16,h[38]),B=o(B,X,Y,I,te,23,h[39]),I=o(I,B,X,Y,$,4,h[40]),Y=o(Y,I,B,X,A,11,h[41]),X=o(X,Y,I,B,L,16,h[42]),B=o(B,X,Y,I,b,23,h[43]),I=o(I,B,X,Y,G,4,h[44]),Y=o(Y,I,B,X,ee,11,h[45]),X=o(X,Y,I,B,N,16,h[46]),B=o(B,X,Y,I,v,23,h[47]),I=p(I,B,X,Y,A,6,h[48]),Y=p(Y,I,B,X,k,10,h[49]),X=p(X,Y,I,B,V,15,h[50]),B=p(B,X,Y,I,j,21,h[51]),I=p(I,B,X,Y,ee,6,h[52]),Y=p(Y,I,B,X,L,10,h[53]),X=p(X,Y,I,B,te,15,h[54]),B=p(B,X,Y,I,C,21,h[55]),I=p(I,B,X,Y,H,6,h[56]),Y=p(Y,I,B,X,N,10,h[57]),X=p(X,Y,I,B,b,15,h[58]),B=p(B,X,Y,I,$,21,h[59]),I=p(I,B,X,Y,U,6,h[60]),Y=p(Y,I,B,X,F,10,h[61]),X=p(X,Y,I,B,v,15,h[62]),B=p(B,X,Y,I,G,21,h[63]),_[0]=_[0]+I|0,_[1]=_[1]+B|0,_[2]=_[2]+X|0,_[3]=_[3]+Y|0},_doFinalize:function(){var E=this._data,m=E.words,T=8*this._nDataBytes,w=8*E.sigBytes;m[w>>>5]|=128<<24-w%32;var f=d.floor(T/4294967296),_=T;m[15+(w+64>>>9<<4)]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),m[14+(w+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),E.sigBytes=4*(m.length+1),this._process();for(var A=this._hash,C=A.words,v=0;v<4;v++){var L=C[v];C[v]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}return A},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});s.MD5=a._createHelper(c),s.HmacMD5=a._createHmacHelper(c)}(Math),x.MD5})},function(_e,n,P){"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(_e,n,P){"use strict";function x(c){return c&&c.__esModule?c:{default:c}}function d(c,S){if(!(c instanceof S))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function c(S,E){for(var m=0;m<E.length;m++){var T=E[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}return function(S,E,m){return E&&c(S.prototype,E),m&&c(S,m),S}}(),r=P(5),o=x(r),p=P(25),s=x(p),e=P(6),i=x(e),a=P(7),l=x(a),h=function(){function c(S){d(this,c);var E=l.default.os.name,m=l.default.os.version||"",T=l.default.browser.name,w=l.default.browser.version||"",f=window.location.href,_="";f&&(_=l.default.getHost(f));var A="pc";l.default.os.ipad?A="pad":(l.default.os.iphone||l.default.os.android)&&(A="phone"),this._ri=o.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:i.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:E,ov:m,et:T,ev:w,uat:navigator.userAgent,app_n:_,tt:A,dm:"h5",ut:""}}return g(c,[{key:"log",value:function(E,m){m&&m.ri?(this._ri=m.ri,delete m.ri):this._ri=o.default.create(),m&&m.ut&&(this.initParam.ut=m.ut,delete m.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=E=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=E;var T=[];if(m)for(var w in m)T.push(w+"="+m[w]);var f=T.join("&");this.initParam.args=encodeURIComponent(f==""?"0":f);var _=[];for(var w in this.initParam)_.push(w+"="+this.initParam[w]);var A=_.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(A):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+A}}],[{key:"getUuid",value:function(){var E=s.default.get("p_h5_upload_u");return E||(E=o.default.create(),s.default.set("p_h5_upload_u",E,730)),E}},{key:"getClientId",value:function(){return s.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(E){return E||(E=o.default.create()),s.default.set("p_h5_upload_clientId",E,730),E}}]),c}();n.default=h},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"create",value:function(p,s){var e,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),a=[];if(s=s||i.length,p)for(e=0;e<p;e++)a[e]=i[0|Math.random()*s];else{var l;for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",e=0;e<36;e++)a[e]||(l=0|16*Math.random(),a[e]=i[e==19?3&l|8:l])}return a.join("")}}]),r}();n.default=g},function(_e,n,P){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var x={version:"1.5.0"};n.default=x},function(_e,n,P){"use strict";function x(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function e(i,a){for(var l=0;l<a.length;l++){var h=a[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,a,l){return a&&e(i.prototype,a),l&&e(i,l),i}}(),g=function(i){var a=navigator.userAgent,l="other";if(i.ios)return"iOS";if(i.android)return"android";if(a.indexOf("Baiduspider")>-1)return"Baiduspider";if(a.indexOf("PlayStation")>-1)return"PS4";var h=navigator.platform=="Win32"||navigator.platform=="Windows"||a.indexOf("Windows")>-1,c=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return c&&(l="macOS"),navigator.platform=="X11"&&!h&&!c&&(l="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(l="Linux"),h?"windows":l},r=function(){var i=navigator.userAgent,a="";return(i.indexOf("Windows NT 5.0")>-1||i.indexOf("Windows 2000")>-1)&&(a="2000"),(i.indexOf("Windows NT 5.1")>-1||i.indexOf("Windows XP")>-1)&&(a="XP"),(i.indexOf("Windows NT 5.2")>-1||i.indexOf("Windows 2003")>-1)&&(a="2003"),(i.indexOf("Windows NT 6.0")>-1||i.indexOf("Windows Vista")>-1)&&(a="Vista"),(i.indexOf("Windows NT 6.1")>-1||i.indexOf("Windows 7")>-1)&&(a="7"),(i.indexOf("Windows NT 6.2")>-1||i.indexOf("Windows 8")>-1)&&(a="8"),(i.indexOf("Windows NT 6.3")>-1||i.indexOf("Windows 8.1")>-1)&&(a="8.1"),(i.indexOf("Windows NT 10")>-1||i.indexOf("Windows 10")>-1)&&(a="10"),a},o=function(i){var a=navigator.userAgent.toLowerCase();return i.chrome?"Chrome":i.firefox?"Firefox":i.safari?"Safari":i.webview?"webview":i.ie?/edge/.test(a)?"Edge":"IE":/baiduspider/.test(a)?"Baiduspider":/ucweb/.test(a)||/UCBrowser/.test(a)?"UC":/opera/.test(a)?"Opera":/ucweb/.test(a)?"UC":/360se/.test(a)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(a)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(a)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(a)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(a)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(a)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(a)?"PS4\u6D4F\u89C8\u5668":void 0},p=function(){var e={},i={},a=navigator.userAgent,l=navigator.platform,h=a.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=a.match(/(Android);?[\s\/]+([\d.]+)?/),S=!!a.match(/\(Macintosh\; Intel /),E=a.match(/(iPad).*OS\s([\d_]+)/),m=a.match(/(iPod)(.*OS\s([\d_]+))?/),T=!E&&a.match(/(iPhone\sOS)\s([\d_]+)/),w=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),f=/Win\d{2}|Windows/.test(l),_=a.match(/Windows Phone ([\d.]+)/),A=w&&a.match(/TouchPad/),C=a.match(/Kindle\/([\d.]+)/),v=a.match(/Silk\/([\d._]+)/),L=a.match(/(BlackBerry).*Version\/([\d.]+)/),U=a.match(/(BB10).*Version\/([\d.]+)/),j=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),b=a.match(/PlayBook/),k=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),H=a.match(/Firefox\/([\d.]+)/),G=a.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),te=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),F=!k&&a.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ee=F||a.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((i.webkit=!!h)&&(i.version=h[1]),c&&(e.android=!0,e.version=c[2]),T&&!m&&(e.ios=e.iphone=!0,e.version=T[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),m&&(e.ios=e.ipod=!0,e.version=m[3]?m[3].replace(/_/g,"."):null),_&&(e.wp=!0,e.version=_[1]),w&&(e.webos=!0,e.version=w[2]),A&&(e.touchpad=!0),L&&(e.blackberry=!0,e.version=L[2]),U&&(e.bb10=!0,e.version=U[2]),j&&(e.rimtabletos=!0,e.version=j[2]),b&&(i.playbook=!0),C&&(e.kindle=!0,e.version=C[1]),v&&(i.silk=!0,i.version=v[1]),!v&&e.android&&a.match(/Kindle Fire/)&&(i.silk=!0),k&&(i.chrome=!0,i.version=k[1]),H&&(i.firefox=!0,i.version=H[1]),G&&(e.firefoxos=!0,e.version=G[1]),te&&(i.ie=!0,i.version=te[1]),ee&&(S||e.ios||f||c)&&(i.safari=!0,e.ios||(i.version=ee[1])),F&&(i.webview=!0),S){var $=a.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||b||c&&!a.match(/Mobile/)||H&&a.match(/Tablet/)||te&&!a.match(/Phone/)&&a.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||T||w||L||U||k&&a.match(/Android/)||k&&a.match(/CriOS\/([\d.]+)/)||H&&a.match(/Mobile/)||te&&a.match(/Touch/))),e.pc=!e.tablet&&!e.phone,S?e.name="macOS":f?(e.name="windows",e.version=r()):e.name=g(e),i.name=o(i),{os:e,browser:i}}(),s=function(){function e(){x(this,e)}return d(e,null,[{key:"getHost",value:function(a){var l="";if(a===void 0||a==null||a=="")return"";var h=a.indexOf("//"),c=a;h>-1&&(c=a.substring(h+2));var l=c,S=c.split("/");return S&&S.length>0&&(l=S[0]),S=l.split(":"),S&&S.length>0&&(l=S[0]),l}},{key:"os",get:function(){return p.os}},{key:"browser",get:function(){var a=p.browser;return a.name||(a.name=o()),a}}]),e}();n.default=s},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"get",value:function(p,s,e,i,a){var l;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(h){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(h){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(h){}throw new Error("This browser does not support XMLHttpRequest.")}),l=new XMLHttpRequest,l.onreadystatechange=function(){l.readyState===4&&(l.status===200?s(l.responseText):e(l.responseText))};try{i===void 0&&(i=!0),l.open("GET",p,i),a&&(l.withCredentials=!0)}catch(h){return void e(h)}try{l.send()}catch(h){e(h)}}}]),r}();n.default=g},function(_e,n,P){"use strict";function x(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function p(s,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,e,i){return e&&p(s.prototype,e),i&&p(s,i),s}}(),g=P(27),r=P(30),o=(P(10),function(){function p(){x(this,p)}return d(p,null,[{key:"randomUUID",value:function(){for(var e=[],i="0123456789abcdef",a=0;a<36;a++)e[a]=i.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=i.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var i=encodeURIComponent(e);return i=i.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,i,a){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var l=[];for(var h in e)l.push(h);for(var c=l.sort(),S="",E=c.length,h=0;h<E;h++){var m=p.aliyunEncodeURI(c[h]),T=p.aliyunEncodeURI(e[c[h]]);S==""?S=m+i+T:S+=a+m+i+T}return S}},{key:"makeChangeSiga",value:function(e,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return r.stringify(g("GET&"+p.aliyunEncodeURI("/")+"&"+p.aliyunEncodeURI(p.makeUTF8sort(e,"=","&")),i+"&"))}}]),p}());n.default=o},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return x.enc.Utf8})},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return x.enc.Hex})},function(_e,n,P){_e.exports=P(13)},function(_e,n,P){"use strict";var x,d,g=(typeof Symbol=="function"&&Symbol.iterator,P(14)),r=function(p){return p&&p.__esModule?p:{default:p}}(g),o={Vod:r.default};x=[],(d=function(){return o}.apply(n,x))!==void 0&&(_e.exports=d),window.AliyunUpload=o,ze.exports=AliyunUpload},function(_e,n,P){"use strict";function x(U){return U&&U.__esModule?U:{default:U}}function d(U,j){if(!(U instanceof j))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function U(j,b){for(var k=0;k<b.length;k++){var H=b[k];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(j,H.key,H)}}return function(j,b,k){return b&&U(j.prototype,b),k&&U(j,k),j}}(),r=P(15),o=P(3),p=P(16),s=x(p),e=P(18),i=x(e),a=P(24),l=x(a),h=P(4),c=x(h),S=P(1),E=x(S),m=P(5),T=x(m),w=P(26),f=x(w),_=P(31),A=x(_),C=P(32),v=x(C),L=(P(2),function(){function U(j){d(this,U),this.options=j,this.options.partSize=this.options.partSize||o.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||o.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=r.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=r.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return g(U,[{key:"init",value:function(b,k,H,G){return this._retryCount=0,!(H&&!G||!H&&G)&&!(b&&!k||!b&&k)&&(this._ossCreditor.accessKeyId=b,this._ossCreditor.accessKeySecret=k,this._ossCreditor.securityToken=H,this._ossCreditor.expireTime=G,!0)}},{key:"addFile",value:function(b,k,H,G,te,F){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(N){console.log(N)}for(var ee=(this.options,0);ee<this._uploadList.length;ee++)if(this._uploadList[ee].file==b)return!1;var $=new Object;if($.file=b,$._endpoint=k,$._bucket=H,$._object=G,$.state=r.UPLOADSTATE.INIT,$.isImage=E.default.isImage(b.name),!$.isImage&&this.options.enableUploadProgress){var V=this;v.default.getMd5(b,function(N){$.fileHash=N;var I=V._getCheckoutpoint($);V.options.localCheckpoint||I||V._getCheckoutpointFromCloud($,function(B){if(B.UploadPoint){var X=JSON.parse(B.UploadPoint);X.loaded!=1&&($.checkpoint=X.checkpoint,$.loaded=X.loaded,$.videoId=B.VideoId,V._saveCheckoutpoint($,X.checkpoint))}},function(B){try{if((B=JSON.parse(B))&&B.Code=="InvalidParameter"&&B.Message.indexOf("UserId")>0){V._invalidUserId=!0;var X=B.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(X)}}catch(Y){console.log(Y)}})})}te&&($.videoInfo=te?JSON.parse(te).Vod:{},$.userData=i.default.encode(te)),$.ri=T.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(N){console.log(N)}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 k=this._uploadList[b];if(b==this._curIndex&&k.state==r.UPLOADSTATE.UPLOADING){k.state=r.UPLOADSTATE.CANCELED;var H=this._getCheckoutpoint(k);H&&H.checkpoint&&(H=H.checkpoint),H&&this._ossUpload.abort(k),this._removeCheckoutpoint(k),this.nextUpload()}else k.state!=r.UPLOADSTATE.SUCCESS&&(k.state=r.UPLOADSTATE.CANCELED);return this._reportLog("20008",k),!0}},{key:"resumeFile",value:function(b){if(this.options,b<0||b>=this._uploadList.length)return!1;var k=this._uploadList[b];return k.state==r.UPLOADSTATE.CANCELED&&(k.state=r.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==r.VODSTATE.START||this._state==r.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=r.VODSTATE.END);var k=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(k),this._state=r.VODSTATE.START}},{key:"nextUpload",value:function(){var b=this.options;if(this._state==r.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var k=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(k)}else{this._state=r.VODSTATE.END;try{b.onUploadEnd&&b.onUploadEnd(k)}catch(H){console.log(H)}}}},{key:"clear",value:function(b){for(var k=this.options,H=0,G=0;G<this._uploadList.length;G++)k.uploadList[G].state==r.UPLOADSTATE.SUCCESS&&H++,this._uploadList[G].state==b&&(k.uploadList.splice(G,1),G--);k.onClear&&k.onClear(k.uploadList.length,H)}},{key:"stopUpload",value:function(){if((this._state==r.VODSTATE.START||this._state==r.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var b=this._uploadList[this._curIndex];this._state=r.VODSTATE.STOP,b.state=r.UPLOADSTATE.STOPED,this._changeState(b,r.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(b){var k=this;if(!b)return!1;var H=JSON.parse(i.default.decode(b));return!!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration)&&k.resumeUploadWithToken(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration)}},{key:"resumeUploadWithToken",value:function(b,k,H,G){if(this.options,!(b&&k&&H&&G))return!1;if(this._state!=r.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var te="";return this._uploadList.length>this._curIndex&&(te=this._uploadList[this._curIndex]),te&&(this.init(b,k,H,G),this._state=r.VODSTATE.START,this._ossUpload=null,this._uploadCore(te,te.retry),te.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(b,k,H){if(this._curIndex==-1)return!1;if(this._state!=r.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var G=this._uploadList[this._curIndex];G.object?this._refreshSTSTokenUpload(G,b,k,H):this.setSTSToken(G,b,k,H)}}},{key:"setSTSTokenDirectlyUpload",value:function(b,k,H,G,te){if(!(k&&H&&G&&te))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var F=b;this.init(k,H,G,te),F.endpoint=F._endpoint,F.bucket=F._bucket,F.object=F._object,this._ossUpload=null,this._uploadCore(F,b.retry),b.retry=!1}},{key:"setSTSToken",value:function(b,k,H,G){if(!k||!H||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var te=b.videoInfo,F={accessKeyId:k,securityToken:G,accessKeySecret:H,fileName:b.file.name,title:te.Title,requestId:b.ri,region:this.options.region};te.ImageType&&(F.imageType=te.ImageType),te.ImageExt&&(F.imageExt=te.ImageExt),te.FileSize&&(F.fileSize=te.FileSize),te.Description&&(F.description=te.Description),te.CateId&&(F.cateId=te.CateId),te.Tags&&(F.tags=te.Tags),te.TemplateGroupId&&(F.templateGroupId=te.TemplateGroupId),te.StorageLocation&&(F.storageLocation=te.StorageLocation),te.CoverURL&&(F.coverUrl=te.CoverURL),te.TransCodeMode&&(F.transCodeMode=te.TransCodeMode),te.UserData&&(F.userData=te.UserData);var ee=this,$="getUploadAuth";b.videoId?(F.videoId=b.videoId,$="refreshUploadAuth"):b.isImage&&($="getImageUploadAuth"),f.default[$](F,function(V){b.videoId=V.VideoId?V.VideoId:b.videoId,ee.setUploadAuthAndAddress(b,V.UploadAuth,V.UploadAddress),ee._state=r.VODSTATE.START},function(V){ee._error(b,{name:V.Code,code:V.Code,message:V.Message,requestId:V.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(b,k,H,G){if(!b||!k||!H)return!1;var te=JSON.parse(i.default.decode(k));if(!(te.AccessKeyId&&te.AccessKeySecret&&te.SecurityToken&&te.Expiration))return console.error("uploadauth is invalid"),!1;var F={},ee=b;if(H){if(F=JSON.parse(i.default.decode(H)),!F.Endpoint||!F.Bucket||!F.FileName)return console.error("uploadAddress is invalid"),!1}else F.Endpoint=ee.endpoint,F.Bucket=ee.bucket,F.FileName=ee.object;this._ut="vod",this._uploadWay="vod",this.options.region=te.Region||this.options.region,this.init(te.AccessKeyId,te.AccessKeySecret,te.SecurityToken,te.Expiration),ee.endpoint=ee._endpoint?ee._endpoint:F.Endpoint,ee.bucket=ee._bucket?ee._bucket:F.Bucket,ee.object=ee._object?ee._object:F.FileName,ee.region=this.options.region,G&&(ee.videoId=G),this._ossUpload=null,this._uploadCore(ee,b.retry),b.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(b,k,H,G){if(!k||!H||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var te={accessKeyId:k,securityToken:G,accessKeySecret:H,videoId:b.object,requestId:b.ri,region:this.options.region},F=this,ee="refreshUploadAuth";b.isImage&&(ee="getImageUploadAuth"),f.default[ee](te,function($){F.setUploadAuthAndAddress(b,$.UploadAuth,UploadAddress),F._state=r.VODSTATE.START},function($){F._error(b,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(b){var k=arguments.length>1&&arguments[1]!==void 0&&arguments[1],H=this.options;if(b.retry=k,H.onUploadstarted&&!k)try{var G=this._getCheckoutpoint(b);G&&G.state!=r.UPLOADSTATE.UPLOADING&&(b.checkpoint=G,b.videoId=G.videoId),H.onUploadstarted(b)}catch(te){console.log(te)}}},{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=r.UPLOADSTATE.UPLOADING,!this._ossUpload){b.endpoint=b.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var k=this;this._ossUpload=new s.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(N,I){k._error.call(k,N,I)},oncomplete:function(N,I){k._complete.call(k,N,I)},onprogress:function(N,I,B){k._progress.call(k,N,I,B)}})}var H=E.default.getFileType(b.file.name),G=this._getCheckoutpoint(b),te="",F="";G&&G.checkpoint&&(F=G.state,te=G.videoId,G=G.checkpoint),G&&te==b.videoId&&F!=r.UPLOADSTATE.UPLOADING&&(G.file=b.file,b.checkpoint=G,G.uploadId);var ee=this._adjustPartSize(b);this._reportLog("20002",b,{ft:H,fs:b.file.size,bu:b.bucket,ok:b.object,vid:b.videoId||"",fn:b.file.name,fw:null,fh:null,ps:ee});var $={headers:{"x-oss-notification":b.userData?b.userData:""},partSize:ee,parallel:this.options.parallel};this._ossUpload.upload(b,$)}},{key:"_findUploadIndex",value:function(){for(var b=-1,k=0;k<this._uploadList.length;k++)if(this._uploadList[k].state==r.UPLOADSTATE.INIT){b=k;break}return b}},{key:"_error",value:function(b,k){if(k.name=="cancel")try{this.options.onUploadCanceled(b,k)}catch(G){console.log(G)}else{if(k.message.indexOf("InvalidAccessKeyIdError")>0||k.name=="SignatureDoesNotMatchError"||k.code=="SecurityTokenExpired"||k.code=="InvalidSecurityToken.Expired"||k.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=r.VODSTATE.EXPIRE,b.state=r.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(b,k)}catch(G){console.log(G)}}return}if((k.name=="RequestTimeoutError"||k.name=="ConnectionTimeout"||k.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var H=this;return setTimeout(function(){H._uploadCore(b,!0)},1e3*H._retryDuration),void this._retryCount++}k.name=="NoSuchUploadError"&&this._removeCheckoutpoint(b),this._handleError(b,k)}}},{key:"_handleError",value:function(b,k){var H=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],G=r.UPLOADSTATE.FAIlURE;if(b.state!=r.UPLOADSTATE.CANCELED&&(b.state=r.UPLOADSTATE.FAIlURE,this._state=r.VODSTATE.FAILURE,this.options.onUploadFailed&&k&&k.code&&k.message))try{this.options.onUploadFailed(b,k.code,k.message)}catch(F){console.log(F)}if(H&&this._changeState(b,G),this._reportLog("20006",b,{code:k.name,message:k.message,requestId:k.requestId,fs:b.file.size,bu:b.bucket,ok:b.object,fn:b.file.name}),this._reportLog("20004",b,{requestId:k.requestId,fs:b.file.size,bu:b.bucket,ok:b.object,fn:b.file.name}),b.ri=T.default.create(),this._findUploadIndex()!=-1){var te=this;this._state=r.VODSTATE.START,setTimeout(function(){te.nextUpload()},100)}}},{key:"_complete",value:function(b,k){if(b.state=r.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(b)}catch(te){console.log(te)}var H=0;k&&k.res&&k.res.headers&&(H=k.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(b);var G=this;setTimeout(function(){G.nextUpload()},100),this._retryCount=0,this._reportLog("20003",b,{requestId:H})}},{key:"_progress",value:function(b,k,H){if(this.options.onUploadProgress)try{b.loaded=k.loaded,this.options.onUploadProgress(b,k.total,k.loaded)}catch(N){console.log(N)}var G=k.checkpoint,te=0;G&&(b.checkpoint=G,this._saveCheckoutpoint(b,G,r.UPLOADSTATE.UPLOADING),te=G.uploadId),this._retryCount=0;var F=this._getPortNumber(G),ee=0;if(H&&H.headers&&(ee=H.headers["x-oss-request-id"]),k.loaded!=0&&this._reportLog("20007",b,{pn:F,requestId:ee}),k.loaded!=1&&this._reportLog("20005",b,{UploadId:te,pn:F+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 $={file:b.file,checkpoint:k,userId:this.options.userId,videoId:b.videoId,region:this.options.region,fileHash:b.fileHash};try{var V=this;A.default.upload($,function(){},function(N){if((N=JSON.parse(N))&&N.Code=="InvalidParameter"&&N.Message.indexOf("UserId")>0){V._invalidUserId=!0;var I=N.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(I)}})}catch(N){console.log(N)}}}},{key:"_getPortNumber",value:function(b){if(b){var k=b.doneParts;if(k&&k.length>0)return k[k.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(b){var k=this._getCheckoutpointKey(b);l.default.remove(k)}},{key:"_getCheckoutpoint",value:function(b){var k=this._getCheckoutpointKey(b),H=l.default.get(k);if(H)try{return JSON.parse(H)}catch(G){}return""}},{key:"_saveCheckoutpoint",value:function(b,k,H){if(k){var G=this._getCheckoutpointKey(b),te=b.file,F={fileName:te.name,lastModified:te.lastModified,size:te.size,object:b.object,videoId:b.videoId,bucket:b.bucket,endpoint:b.endpoint,checkpoint:k,loaded:b.loaded,state:H};l.default.set(G,JSON.stringify(F))}}},{key:"_changeState",value:function(b,k){var H=this._getCheckoutpoint(b);H&&((this._onbeforeunload=!0)&&(k=r.UPLOADSTATE.STOPED),this._saveCheckoutpoint(b,H.checkpoint,k))}},{key:"_getCheckoutpointKey",value:function(b){return"upload_"+b.file.lastModified+"_"+b.file.name+"_"+b.file.size}},{key:"_getCheckoutpointFromCloud",value:function(b,k,H){var G={userId:this.options.userId,uploadInfoList:[{FileName:b.file.name,FileSize:b.file.size,FileCreateTime:b.file.lastModified,FileHash:b.fileHash}],region:this.options.region};A.default.get(G,function(te){k(te)},H)}},{key:"_reportLog",value:function(b,k,H){H||(H={}),H.ri=k.ri,this._ut&&(H.ut=this._ut),this._log.log(b,H)}},{key:"_initEvent",value:function(){var b=this;window&&(window.onbeforeunload=function(k){if(b._onbeforeunload=!0,b._curIndex!=-1&&b._uploadList.length>b._curIndex){var H=b._uploadList[b._curIndex];b._changeState(H,r.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var b=0;b<this._uploadList.length;b++){var k=this._uploadList[b];k.state!=r.UPLOADSTATE.FAIlURE&&k.state!=r.UPLOADSTATE.STOPED||(k.state=r.UPLOADSTATE.INIT)}this._state=r.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(b){return b.file.size/this.options.partSize>1e4?b.file.size/9999:this.options.partSize}}]),U}());n.default=L},function(_e,n,P){"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(_e,n,P){"use strict";function x(e){return e&&e.__esModule?e:{default:e}}function d(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function e(i,a){for(var l=0;l<a.length;l++){var h=a[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,a,l){return a&&e(i.prototype,a),l&&e(i,l),i}}(),r=P(3),o=P(17),p=(x(o),P(1)),s=(x(p),function(){function e(i,a){if(d(this,e),i){this._config=i,this.create(this._config),this._uploadInfo=null,this._callback={};var l=function(){};this._callback.onerror=a.onerror||l,this._callback.oncomplete=a.oncomplete||l,this._callback.onprogress=a.onprogress||l}}return g(e,[{key:"create",value:function(a){if(a.endpoint=a.endpoint||this._config.endpoint,a.bucket=a.bucket||this._config.bucket,!(a.AccessKeyId&&a.AccessKeySecret&&a.endpoint&&a.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var l={accessKeyId:a.AccessKeyId,accessKeySecret:a.AccessKeySecret,stsToken:a.SecurityToken,endpoint:a.endpoint||this._config.endpoint,bucket:a.bucket||this._config.bucket,secure:!0,cname:a.cname};a.timeout&&(l.timeout=a.timeout),this.oss=new OSS.Wrapper(l)}},{key:"abort",value:function(a){if(a.checkpoint){var l=a.checkpoint.uploadId;this.oss.abortMultipartUpload(a.object,l)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(a,l){this._uploadInfo=a;var h=this,c=function(m,T,w){return function(f){h._progress(m,T,w),f()}},S={parallel:l.parallel||this._config.parallel||r.UPLOADDEFAULT.PARALLEL,partSize:l.partSize||this._config.partSize||r.UPLOADDEFAULT.PARTSIZE,progress:c};l.headers&&(S.headers=l.headers),a.checkpoint&&(S.checkpoint=a.checkpoint),a.bucket||(this.oss.options.bucket=a.bucket),a.endpoint||(this.oss.options.endpoint=a.endpoint),this.oss.multipartUpload(a.object,a.file,S).then(function(E,m){h._complete(E)}).catch(function(E){h.oss.cancel&&(h.oss&&h.oss.isCancel()?console.log("oss is cancel as error"):h.oss.cancel()),h._error(E)})}},{key:"header",value:function(a,l,h){this.oss.get(a.object).then(function(c){l(c)}).catch(function(c){h(c)})}},{key:"_progress",value:function(a,l,h){this._callback.onprogress(this._uploadInfo,{loaded:a,total:this._uploadInfo.file.size,checkpoint:l},h)}},{key:"_error",value:function(a){this._callback.onerror(this._uploadInfo,a)}},{key:"_complete",value:function(a){this._callback.oncomplete(this._uploadInfo,a)}}]),e}());n.default=s},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"format",value:function(p){if(arguments.length<2)return null;for(var s=arguments[1],e=1;e<arguments.length;e++){var i=new RegExp("\\{"+(e-1)+"\\}","gm");s=s.replace(i,arguments[e+1])}return{code:p,message:s}}},{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."}}}]),r}();n.default=g},function(_e,n,P){"use strict";(function(x){function d(o,p){if(!(o instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function o(p,s){for(var e=0;e<s.length;e++){var i=s[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(p,i.key,i)}}return function(p,s,e){return s&&o(p.prototype,s),e&&o(p,e),p}}(),r=function(){function o(){d(this,o)}return g(o,null,[{key:"encode",value:function(s){return new x(s).toString("base64")}},{key:"decode",value:function(s){return new x(s,"base64").toString()}}]),o}();n.default=r}).call(n,P(19).Buffer)},function(_e,n,P){"use strict";(function(x){function d(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(R,t){if(d()<t)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(R=new Uint8Array(t),R.__proto__=r.prototype):(R===null&&(R=new r(t)),R.length=t),R}function r(R,t,u){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(R,t,u);if(typeof R=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,R)}return o(this,R,t,u)}function o(R,t,u,D){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?l(R,t,u,D):typeof t=="string"?i(R,t,u):h(R,t)}function p(R){if(typeof R!="number")throw new TypeError('"size" argument must be a number');if(R<0)throw new RangeError('"size" argument must not be negative')}function s(R,t,u,D){return p(t),t<=0?g(R,t):u!==void 0?typeof D=="string"?g(R,t).fill(u,D):g(R,t).fill(u):g(R,t)}function e(R,t){if(p(t),R=g(R,t<0?0:0|c(t)),!r.TYPED_ARRAY_SUPPORT)for(var u=0;u<t;++u)R[u]=0;return R}function i(R,t,u){if(typeof u=="string"&&u!==""||(u="utf8"),!r.isEncoding(u))throw new TypeError('"encoding" must be a valid string encoding');var D=0|E(t,u);R=g(R,D);var y=R.write(t,u);return y!==D&&(R=R.slice(0,y)),R}function a(R,t){var u=t.length<0?0:0|c(t.length);R=g(R,u);for(var D=0;D<u;D+=1)R[D]=255&t[D];return R}function l(R,t,u,D){if(t.byteLength,u<0||t.byteLength<u)throw new RangeError("'offset' is out of bounds");if(t.byteLength<u+(D||0))throw new RangeError("'length' is out of bounds");return t=u===void 0&&D===void 0?new Uint8Array(t):D===void 0?new Uint8Array(t,u):new Uint8Array(t,u,D),r.TYPED_ARRAY_SUPPORT?(R=t,R.__proto__=r.prototype):R=a(R,t),R}function h(R,t){if(r.isBuffer(t)){var u=0|c(t.length);return R=g(R,u),R.length===0||t.copy(R,0,0,u),R}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ie(t.length)?g(R,0):a(R,t);if(t.type==="Buffer"&&ae(t.data))return a(R,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(R){if(R>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|R}function S(R){return+R!=R&&(R=0),r.alloc(+R)}function E(R,t){if(r.isBuffer(R))return R.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(R)||R instanceof ArrayBuffer))return R.byteLength;typeof R!="string"&&(R=""+R);var u=R.length;if(u===0)return 0;for(var D=!1;;)switch(t){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":case void 0:return re(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return q(R).length;default:if(D)return re(R).length;t=(""+t).toLowerCase(),D=!0}}function m(R,t,u){var D=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((u===void 0||u>this.length)&&(u=this.length),u<=0)return"";if(u>>>=0,t>>>=0,u<=t)return"";for(R||(R="utf8");;)switch(R){case"hex":return te(this,t,u);case"utf8":case"utf-8":return b(this,t,u);case"ascii":return H(this,t,u);case"latin1":case"binary":return G(this,t,u);case"base64":return j(this,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,u);default:if(D)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),D=!0}}function T(R,t,u){var D=R[t];R[t]=R[u],R[u]=D}function w(R,t,u,D,y){if(R.length===0)return-1;if(typeof u=="string"?(D=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,isNaN(u)&&(u=y?0:R.length-1),u<0&&(u=R.length+u),u>=R.length){if(y)return-1;u=R.length-1}else if(u<0){if(!y)return-1;u=0}if(typeof t=="string"&&(t=r.from(t,D)),r.isBuffer(t))return t.length===0?-1:f(R,t,u,D,y);if(typeof t=="number")return t&=255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(R,t,u):Uint8Array.prototype.lastIndexOf.call(R,t,u):f(R,[t],u,D,y);throw new TypeError("val must be string, number or Buffer")}function f(R,t,u,D,y){function O(Ce,le){return K===1?Ce[le]:Ce.readUInt16BE(le*K)}var K=1,J=R.length,Ee=t.length;if(D!==void 0&&((D=String(D).toLowerCase())==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(R.length<2||t.length<2)return-1;K=2,J/=2,Ee/=2,u/=2}var he;if(y){var fe=-1;for(he=u;he<J;he++)if(O(R,he)===O(t,fe===-1?0:he-fe)){if(fe===-1&&(fe=he),he-fe+1===Ee)return fe*K}else fe!==-1&&(he-=he-fe),fe=-1}else for(u+Ee>J&&(u=J-Ee),he=u;he>=0;he--){for(var be=!0,Re=0;Re<Ee;Re++)if(O(R,he+Re)!==O(t,Re)){be=!1;break}if(be)return he}return-1}function _(R,t,u,D){u=Number(u)||0;var y=R.length-u;D?(D=Number(D))>y&&(D=y):D=y;var O=t.length;if(O%2!=0)throw new TypeError("Invalid hex string");D>O/2&&(D=O/2);for(var K=0;K<D;++K){var J=parseInt(t.substr(2*K,2),16);if(isNaN(J))return K;R[u+K]=J}return K}function A(R,t,u,D){return Q(re(t,R.length-u),R,u,D)}function C(R,t,u,D){return Q(ue(t),R,u,D)}function v(R,t,u,D){return C(R,t,u,D)}function L(R,t,u,D){return Q(q(t),R,u,D)}function U(R,t,u,D){return Q(ce(t,R.length-u),R,u,D)}function j(R,t,u){return t===0&&u===R.length?z.fromByteArray(R):z.fromByteArray(R.slice(t,u))}function b(R,t,u){u=Math.min(R.length,u);for(var D=[],y=t;y<u;){var O=R[y],K=null,J=O>239?4:O>223?3:O>191?2:1;if(y+J<=u){var Ee,he,fe,be;switch(J){case 1:O<128&&(K=O);break;case 2:Ee=R[y+1],(192&Ee)==128&&(be=(31&O)<<6|63&Ee)>127&&(K=be);break;case 3:Ee=R[y+1],he=R[y+2],(192&Ee)==128&&(192&he)==128&&(be=(15&O)<<12|(63&Ee)<<6|63&he)>2047&&(be<55296||be>57343)&&(K=be);break;case 4:Ee=R[y+1],he=R[y+2],fe=R[y+3],(192&Ee)==128&&(192&he)==128&&(192&fe)==128&&(be=(15&O)<<18|(63&Ee)<<12|(63&he)<<6|63&fe)>65535&&be<1114112&&(K=be)}}K===null?(K=65533,J=1):K>65535&&(K-=65536,D.push(K>>>10&1023|55296),K=56320|1023&K),D.push(K),y+=J}return k(D)}function k(R){var t=R.length;if(t<=ne)return String.fromCharCode.apply(String,R);for(var u="",D=0;D<t;)u+=String.fromCharCode.apply(String,R.slice(D,D+=ne));return u}function H(R,t,u){var D="";u=Math.min(R.length,u);for(var y=t;y<u;++y)D+=String.fromCharCode(127&R[y]);return D}function G(R,t,u){var D="";u=Math.min(R.length,u);for(var y=t;y<u;++y)D+=String.fromCharCode(R[y]);return D}function te(R,t,u){var D=R.length;(!t||t<0)&&(t=0),(!u||u<0||u>D)&&(u=D);for(var y="",O=t;O<u;++O)y+=se(R[O]);return y}function F(R,t,u){for(var D=R.slice(t,u),y="",O=0;O<D.length;O+=2)y+=String.fromCharCode(D[O]+256*D[O+1]);return y}function ee(R,t,u){if(R%1!=0||R<0)throw new RangeError("offset is not uint");if(R+t>u)throw new RangeError("Trying to access beyond buffer length")}function $(R,t,u,D,y,O){if(!r.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>y||t<O)throw new RangeError('"value" argument is out of bounds');if(u+D>R.length)throw new RangeError("Index out of range")}function V(R,t,u,D){t<0&&(t=65535+t+1);for(var y=0,O=Math.min(R.length-u,2);y<O;++y)R[u+y]=(t&255<<8*(D?y:1-y))>>>8*(D?y:1-y)}function N(R,t,u,D){t<0&&(t=4294967295+t+1);for(var y=0,O=Math.min(R.length-u,4);y<O;++y)R[u+y]=t>>>8*(D?y:3-y)&255}function I(R,t,u,D,y,O){if(u+D>R.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function B(R,t,u,D,y){return y||I(R,t,u,4,34028234663852886e22,-34028234663852886e22),W.write(R,t,u,D,23,4),u+4}function X(R,t,u,D,y){return y||I(R,t,u,8,17976931348623157e292,-17976931348623157e292),W.write(R,t,u,D,52,8),u+8}function Y(R){if(R=Z(R).replace(me,""),R.length<2)return"";for(;R.length%4!=0;)R+="=";return R}function Z(R){return R.trim?R.trim():R.replace(/^\s+|\s+$/g,"")}function se(R){return R<16?"0"+R.toString(16):R.toString(16)}function re(R,t){t=t||1/0;for(var u,D=R.length,y=null,O=[],K=0;K<D;++K){if((u=R.charCodeAt(K))>55295&&u<57344){if(!y){if(u>56319){(t-=3)>-1&&O.push(239,191,189);continue}if(K+1===D){(t-=3)>-1&&O.push(239,191,189);continue}y=u;continue}if(u<56320){(t-=3)>-1&&O.push(239,191,189),y=u;continue}u=65536+(y-55296<<10|u-56320)}else y&&(t-=3)>-1&&O.push(239,191,189);if(y=null,u<128){if((t-=1)<0)break;O.push(u)}else if(u<2048){if((t-=2)<0)break;O.push(u>>6|192,63&u|128)}else if(u<65536){if((t-=3)<0)break;O.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;O.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return O}function ue(R){for(var t=[],u=0;u<R.length;++u)t.push(255&R.charCodeAt(u));return t}function ce(R,t){for(var u,D,y,O=[],K=0;K<R.length&&!((t-=2)<0);++K)u=R.charCodeAt(K),D=u>>8,y=u%256,O.push(y),O.push(D);return O}function q(R){return z.toByteArray(Y(R))}function Q(R,t,u,D){for(var y=0;y<D&&!(y+u>=t.length||y>=R.length);++y)t[y+u]=R[y];return y}function ie(R){return R!==R}/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var z=P(21),W=P(22),ae=P(23);n.Buffer=r,n.SlowBuffer=S,n.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=x.TYPED_ARRAY_SUPPORT!==void 0?x.TYPED_ARRAY_SUPPORT:function(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42&&typeof R.subarray=="function"&&R.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=d(),r.poolSize=8192,r._augment=function(R){return R.__proto__=r.prototype,R},r.from=function(R,t,u){return o(null,R,t,u)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(R,t,u){return s(null,R,t,u)},r.allocUnsafe=function(R){return e(null,R)},r.allocUnsafeSlow=function(R){return e(null,R)},r.isBuffer=function(R){return!(R==null||!R._isBuffer)},r.compare=function(R,t){if(!r.isBuffer(R)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(R===t)return 0;for(var u=R.length,D=t.length,y=0,O=Math.min(u,D);y<O;++y)if(R[y]!==t[y]){u=R[y],D=t[y];break}return u<D?-1:D<u?1:0},r.isEncoding=function(R){switch(String(R).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}},r.concat=function(R,t){if(!ae(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return r.alloc(0);var u;if(t===void 0)for(t=0,u=0;u<R.length;++u)t+=R[u].length;var D=r.allocUnsafe(t),y=0;for(u=0;u<R.length;++u){var O=R[u];if(!r.isBuffer(O))throw new TypeError('"list" argument must be an Array of Buffers');O.copy(D,y),y+=O.length}return D},r.byteLength=E,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<R;t+=2)T(this,t,t+1);return this},r.prototype.swap32=function(){var R=this.length;if(R%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<R;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},r.prototype.swap64=function(){var R=this.length;if(R%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<R;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},r.prototype.toString=function(){var R=0|this.length;return R===0?"":arguments.length===0?b(this,0,R):m.apply(this,arguments)},r.prototype.equals=function(R){if(!r.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R||r.compare(this,R)===0},r.prototype.inspect=function(){var R="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(R=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(R+=" ... ")),"<Buffer "+R+">"},r.prototype.compare=function(R,t,u,D,y){if(!r.isBuffer(R))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),u===void 0&&(u=R?R.length:0),D===void 0&&(D=0),y===void 0&&(y=this.length),t<0||u>R.length||D<0||y>this.length)throw new RangeError("out of range index");if(D>=y&&t>=u)return 0;if(D>=y)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,D>>>=0,y>>>=0,this===R)return 0;for(var O=y-D,K=u-t,J=Math.min(O,K),Ee=this.slice(D,y),he=R.slice(t,u),fe=0;fe<J;++fe)if(Ee[fe]!==he[fe]){O=Ee[fe],K=he[fe];break}return O<K?-1:K<O?1:0},r.prototype.includes=function(R,t,u){return this.indexOf(R,t,u)!==-1},r.prototype.indexOf=function(R,t,u){return w(this,R,t,u,!0)},r.prototype.lastIndexOf=function(R,t,u){return w(this,R,t,u,!1)},r.prototype.write=function(R,t,u,D){if(t===void 0)D="utf8",u=this.length,t=0;else if(u===void 0&&typeof t=="string")D=t,u=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(u)?(u|=0,D===void 0&&(D="utf8")):(D=u,u=void 0)}var y=this.length-t;if((u===void 0||u>y)&&(u=y),R.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var O=!1;;)switch(D){case"hex":return _(this,R,t,u);case"utf8":case"utf-8":return A(this,R,t,u);case"ascii":return C(this,R,t,u);case"latin1":case"binary":return v(this,R,t,u);case"base64":return L(this,R,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,R,t,u);default:if(O)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),O=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ne=4096;r.prototype.slice=function(R,t){var u=this.length;R=~~R,t=t===void 0?u:~~t,R<0?(R+=u)<0&&(R=0):R>u&&(R=u),t<0?(t+=u)<0&&(t=0):t>u&&(t=u),t<R&&(t=R);var D;if(r.TYPED_ARRAY_SUPPORT)D=this.subarray(R,t),D.__proto__=r.prototype;else{var y=t-R;D=new r(y,void 0);for(var O=0;O<y;++O)D[O]=this[O+R]}return D},r.prototype.readUIntLE=function(R,t,u){R|=0,t|=0,u||ee(R,t,this.length);for(var D=this[R],y=1,O=0;++O<t&&(y*=256);)D+=this[R+O]*y;return D},r.prototype.readUIntBE=function(R,t,u){R|=0,t|=0,u||ee(R,t,this.length);for(var D=this[R+--t],y=1;t>0&&(y*=256);)D+=this[R+--t]*y;return D},r.prototype.readUInt8=function(R,t){return t||ee(R,1,this.length),this[R]},r.prototype.readUInt16LE=function(R,t){return t||ee(R,2,this.length),this[R]|this[R+1]<<8},r.prototype.readUInt16BE=function(R,t){return t||ee(R,2,this.length),this[R]<<8|this[R+1]},r.prototype.readUInt32LE=function(R,t){return t||ee(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},r.prototype.readUInt32BE=function(R,t){return t||ee(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},r.prototype.readIntLE=function(R,t,u){R|=0,t|=0,u||ee(R,t,this.length);for(var D=this[R],y=1,O=0;++O<t&&(y*=256);)D+=this[R+O]*y;return y*=128,D>=y&&(D-=Math.pow(2,8*t)),D},r.prototype.readIntBE=function(R,t,u){R|=0,t|=0,u||ee(R,t,this.length);for(var D=t,y=1,O=this[R+--D];D>0&&(y*=256);)O+=this[R+--D]*y;return y*=128,O>=y&&(O-=Math.pow(2,8*t)),O},r.prototype.readInt8=function(R,t){return t||ee(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},r.prototype.readInt16LE=function(R,t){t||ee(R,2,this.length);var u=this[R]|this[R+1]<<8;return 32768&u?4294901760|u:u},r.prototype.readInt16BE=function(R,t){t||ee(R,2,this.length);var u=this[R+1]|this[R]<<8;return 32768&u?4294901760|u:u},r.prototype.readInt32LE=function(R,t){return t||ee(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},r.prototype.readInt32BE=function(R,t){return t||ee(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},r.prototype.readFloatLE=function(R,t){return t||ee(R,4,this.length),W.read(this,R,!0,23,4)},r.prototype.readFloatBE=function(R,t){return t||ee(R,4,this.length),W.read(this,R,!1,23,4)},r.prototype.readDoubleLE=function(R,t){return t||ee(R,8,this.length),W.read(this,R,!0,52,8)},r.prototype.readDoubleBE=function(R,t){return t||ee(R,8,this.length),W.read(this,R,!1,52,8)},r.prototype.writeUIntLE=function(R,t,u,D){(R=+R,t|=0,u|=0,!D)&&$(this,R,t,u,Math.pow(2,8*u)-1,0);var y=1,O=0;for(this[t]=255&R;++O<u&&(y*=256);)this[t+O]=R/y&255;return t+u},r.prototype.writeUIntBE=function(R,t,u,D){(R=+R,t|=0,u|=0,!D)&&$(this,R,t,u,Math.pow(2,8*u)-1,0);var y=u-1,O=1;for(this[t+y]=255&R;--y>=0&&(O*=256);)this[t+y]=R/O&255;return t+u},r.prototype.writeUInt8=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),this[t]=255&R,t+1},r.prototype.writeUInt16LE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&R,this[t+1]=R>>>8):V(this,R,t,!0),t+2},r.prototype.writeUInt16BE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=R>>>8,this[t+1]=255&R):V(this,R,t,!1),t+2},r.prototype.writeUInt32LE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=R>>>24,this[t+2]=R>>>16,this[t+1]=R>>>8,this[t]=255&R):N(this,R,t,!0),t+4},r.prototype.writeUInt32BE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=R>>>24,this[t+1]=R>>>16,this[t+2]=R>>>8,this[t+3]=255&R):N(this,R,t,!1),t+4},r.prototype.writeIntLE=function(R,t,u,D){if(R=+R,t|=0,!D){var y=Math.pow(2,8*u-1);$(this,R,t,u,y-1,-y)}var O=0,K=1,J=0;for(this[t]=255&R;++O<u&&(K*=256);)R<0&&J===0&&this[t+O-1]!==0&&(J=1),this[t+O]=(R/K>>0)-J&255;return t+u},r.prototype.writeIntBE=function(R,t,u,D){if(R=+R,t|=0,!D){var y=Math.pow(2,8*u-1);$(this,R,t,u,y-1,-y)}var O=u-1,K=1,J=0;for(this[t+O]=255&R;--O>=0&&(K*=256);)R<0&&J===0&&this[t+O+1]!==0&&(J=1),this[t+O]=(R/K>>0)-J&255;return t+u},r.prototype.writeInt8=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),R<0&&(R=255+R+1),this[t]=255&R,t+1},r.prototype.writeInt16LE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&R,this[t+1]=R>>>8):V(this,R,t,!0),t+2},r.prototype.writeInt16BE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=R>>>8,this[t+1]=255&R):V(this,R,t,!1),t+2},r.prototype.writeInt32LE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&R,this[t+1]=R>>>8,this[t+2]=R>>>16,this[t+3]=R>>>24):N(this,R,t,!0),t+4},r.prototype.writeInt32BE=function(R,t,u){return R=+R,t|=0,u||$(this,R,t,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),r.TYPED_ARRAY_SUPPORT?(this[t]=R>>>24,this[t+1]=R>>>16,this[t+2]=R>>>8,this[t+3]=255&R):N(this,R,t,!1),t+4},r.prototype.writeFloatLE=function(R,t,u){return B(this,R,t,!0,u)},r.prototype.writeFloatBE=function(R,t,u){return B(this,R,t,!1,u)},r.prototype.writeDoubleLE=function(R,t,u){return X(this,R,t,!0,u)},r.prototype.writeDoubleBE=function(R,t,u){return X(this,R,t,!1,u)},r.prototype.copy=function(R,t,u,D){if(u||(u=0),D||D===0||(D=this.length),t>=R.length&&(t=R.length),t||(t=0),D>0&&D<u&&(D=u),D===u)return 0;if(R.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("sourceStart out of bounds");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),R.length-t<D-u&&(D=R.length-t+u);var y,O=D-u;if(this===R&&u<t&&t<D)for(y=O-1;y>=0;--y)R[y+t]=this[y+u];else if(O<1e3||!r.TYPED_ARRAY_SUPPORT)for(y=0;y<O;++y)R[y+t]=this[y+u];else Uint8Array.prototype.set.call(R,this.subarray(u,u+O),t);return O},r.prototype.fill=function(R,t,u,D){if(typeof R=="string"){if(typeof t=="string"?(D=t,t=0,u=this.length):typeof u=="string"&&(D=u,u=this.length),R.length===1){var y=R.charCodeAt(0);y<256&&(R=y)}if(D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!r.isEncoding(D))throw new TypeError("Unknown encoding: "+D)}else typeof R=="number"&&(R&=255);if(t<0||this.length<t||this.length<u)throw new RangeError("Out of range index");if(u<=t)return this;t>>>=0,u=u===void 0?this.length:u>>>0,R||(R=0);var O;if(typeof R=="number")for(O=t;O<u;++O)this[O]=R;else{var K=r.isBuffer(R)?R:re(new r(R,D).toString()),J=K.length;for(O=0;O<u-t;++O)this[O+t]=K[O%J]}return this};var me=/[^+\/0-9A-Za-z-_]/g}).call(n,P(20))},function(_e,n){var P;P=function(){return this}();try{P=P||Function("return this")()||(0,eval)("this")}catch(x){typeof window=="object"&&(P=window)}_e.exports=P},function(_e,n,P){"use strict";function x(c){var S=c.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[S-2]==="="?2:c[S-1]==="="?1:0}function d(c){return 3*c.length/4-x(c)}function g(c){var S,E,m,T,w,f=c.length;T=x(c),w=new i(3*f/4-T),E=T>0?f-4:f;var _=0;for(S=0;S<E;S+=4)m=e[c.charCodeAt(S)]<<18|e[c.charCodeAt(S+1)]<<12|e[c.charCodeAt(S+2)]<<6|e[c.charCodeAt(S+3)],w[_++]=m>>16&255,w[_++]=m>>8&255,w[_++]=255&m;return T===2?(m=e[c.charCodeAt(S)]<<2|e[c.charCodeAt(S+1)]>>4,w[_++]=255&m):T===1&&(m=e[c.charCodeAt(S)]<<10|e[c.charCodeAt(S+1)]<<4|e[c.charCodeAt(S+2)]>>2,w[_++]=m>>8&255,w[_++]=255&m),w}function r(c){return s[c>>18&63]+s[c>>12&63]+s[c>>6&63]+s[63&c]}function o(c,S,E){for(var m,T=[],w=S;w<E;w+=3)m=(c[w]<<16)+(c[w+1]<<8)+c[w+2],T.push(r(m));return T.join("")}function p(c){for(var S,E=c.length,m=E%3,T="",w=[],f=0,_=E-m;f<_;f+=16383)w.push(o(c,f,f+16383>_?_:f+16383));return m===1?(S=c[E-1],T+=s[S>>2],T+=s[S<<4&63],T+="=="):m===2&&(S=(c[E-2]<<8)+c[E-1],T+=s[S>>10],T+=s[S>>4&63],T+=s[S<<2&63],T+="="),w.push(T),w.join("")}n.byteLength=d,n.toByteArray=g,n.fromByteArray=p;for(var s=[],e=[],i=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=a.length;l<h;++l)s[l]=a[l],e[a.charCodeAt(l)]=l;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(_e,n){n.read=function(P,x,d,g,r){var o,p,s=8*r-g-1,e=(1<<s)-1,i=e>>1,a=-7,l=d?r-1:0,h=d?-1:1,c=P[x+l];for(l+=h,o=c&(1<<-a)-1,c>>=-a,a+=s;a>0;o=256*o+P[x+l],l+=h,a-=8);for(p=o&(1<<-a)-1,o>>=-a,a+=g;a>0;p=256*p+P[x+l],l+=h,a-=8);if(o===0)o=1-i;else{if(o===e)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,g),o-=i}return(c?-1:1)*p*Math.pow(2,o-g)},n.write=function(P,x,d,g,r,o){var p,s,e,i=8*o-r-1,a=(1<<i)-1,l=a>>1,h=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=g?0:o-1,S=g?1:-1,E=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(s=isNaN(x)?1:0,p=a):(p=Math.floor(Math.log(x)/Math.LN2),x*(e=Math.pow(2,-p))<1&&(p--,e*=2),x+=p+l>=1?h/e:h*Math.pow(2,1-l),x*e>=2&&(p++,e/=2),p+l>=a?(s=0,p=a):p+l>=1?(s=(x*e-1)*Math.pow(2,r),p+=l):(s=x*Math.pow(2,l-1)*Math.pow(2,r),p=0));r>=8;P[d+c]=255&s,c+=S,s/=256,r-=8);for(p=p<<r|s,i+=r;i>0;P[d+c]=255&p,c+=S,p/=256,i-=8);P[d+c-S]|=128*E}},function(_e,n){var P={}.toString;_e.exports=Array.isArray||function(x){return P.call(x)=="[object Array]"}},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"set",value:function(p,s){try{window.localStorage&&localStorage.setItem(p,s)}catch(e){window[p+"_localStorage"]=s}}},{key:"get",value:function(p){try{if(window.localStorage)return localStorage.getItem(p)}catch(s){return window[p+"_localStorage"]}return""}},{key:"remove",value:function(p){try{window.localStorage&&localStorage.removeItem(p)}catch(s){delete window[p+"_localStorage"]}}}]),r}();n.default=g},function(_e,n,P){"use strict";function x(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function r(o,p){for(var s=0;s<p.length;s++){var e=p[s];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,p,s){return p&&r(o.prototype,p),s&&r(o,s),o}}(),g=function(){function r(){x(this,r)}return d(r,null,[{key:"get",value:function(p){for(var s=p+"",e=document.cookie.split(";"),i=0;i<e.length;i++){var a=e[i].trim();if(a.indexOf(s)==0)return unescape(a.substring(s.length+1,a.length))}return""}},{key:"set",value:function(p,s,e){var i=new Date;i.setTime(i.getTime()+24*e*60*60*1e3);var a="expires="+i.toGMTString();document.cookie=p+"="+escape(s)+"; "+a}}]),r}();n.default=g},function(_e,n,P){"use strict";function x(i){return i&&i.__esModule?i:{default:i}}function d(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function i(a,l){for(var h=0;h<l.length;h++){var c=l[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}return function(a,l,h){return l&&i(a.prototype,l),h&&i(a,h),a}}(),r=P(8),o=x(r),p=P(9),s=x(p),e=function(){function i(){d(this,i)}return g(i,null,[{key:"refreshUploadAuth",value:function(l,h,c){var S=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"RefreshUploadVideo",VideoId:l.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:S,RequestId:l.requestId},m=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+m;o.default.get(T,function(w){var w=JSON.parse(w);h&&h(w)},function(w){if(c){var f=JSON.parse(w);c(f)}})}},{key:"getUploadAuth",value:function(l,h,c){var S=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadVideo",Title:l.title,FileName:l.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:S,RequestId:l.requestId};l.fileSize&&(E.FileSize=l.fileSize),l.description&&(E.Description=l.description),l.cateId&&(E.CateId=l.cateId),l.tags&&(E.Tags=l.tags),l.templateGroupId&&(E.TemplateGroupId=l.templateGroupId),l.storageLocation&&(E.StorageLocation=l.storageLocation),l.coverUrl&&(E.CoverURL=l.coverUrl),l.transCodeMode&&(E.TransCodeMode=l.transCodeMode),l.userData&&(E.UserData=JSON.stringify(l.userData));var m=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+m;o.default.get(T,function(w){try{w=JSON.parse(w)}catch(f){if(c)return void c({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}h&&h(w)},function(w){if(c){var f={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{f=JSON.parse(w)}catch(_){}c(f)}})}},{key:"getImageUploadAuth",value:function(l,h,c){var S=(s.default.randomUUID(),s.default.randomUUID()),E={AccessKeyId:l.accessKeyId,SecurityToken:l.securityToken,Action:"CreateUploadImage",ImageType:l.imageType?l.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:S,RequestId:l.requestId};l.title&&(E.Title=l.title),l.imageExt&&(E.ImageExt=l.imageExt),l.tags&&(E.Tags=l.tags),l.storageLocation&&(E.StorageLocation=l.storageLocation);var m=s.default.makeUTF8sort(E,"=","&")+"&Signature="+s.default.aliyunEncodeURI(s.default.makeChangeSiga(E,l.accessKeySecret)),T="https://vod."+l.region+".aliyuncs.com/?"+m;o.default.get(T,function(w){w=JSON.parse(w),h&&h(w)},function(w){if(c){var f=JSON.parse(w);c(f)}})}}]),i}();n.default=e},function(_e,n,P){!function(x,d,g){_e.exports=n=d(P(0),P(28),P(29))}(0,function(x){return x.HmacSHA1})},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return function(){var d=x,g=d.lib,r=g.WordArray,o=g.Hasher,p=d.algo,s=[],e=p.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,l){for(var h=this._hash.words,c=h[0],S=h[1],E=h[2],m=h[3],T=h[4],w=0;w<80;w++){if(w<16)s[w]=0|a[l+w];else{var f=s[w-3]^s[w-8]^s[w-14]^s[w-16];s[w]=f<<1|f>>>31}var _=(c<<5|c>>>27)+T+s[w];_+=w<20?1518500249+(S&E|~S&m):w<40?1859775393+(S^E^m):w<60?(S&E|S&m|E&m)-1894007588:(S^E^m)-899497514,T=m,m=E,E=S<<30|S>>>2,S=c,c=_}h[0]=h[0]+c|0,h[1]=h[1]+S|0,h[2]=h[2]+E|0,h[3]=h[3]+m|0,h[4]=h[4]+T|0},_doFinalize:function(){var a=this._data,l=a.words,h=8*this._nDataBytes,c=8*a.sigBytes;return l[c>>>5]|=128<<24-c%32,l[14+(c+64>>>9<<4)]=Math.floor(h/4294967296),l[15+(c+64>>>9<<4)]=h,a.sigBytes=4*l.length,this._process(),this._hash},clone:function(){var a=o.clone.call(this);return a._hash=this._hash.clone(),a}});d.SHA1=o._createHelper(e),d.HmacSHA1=o._createHmacHelper(e)}(),x.SHA1})},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){!function(){var d=x,g=d.lib,r=g.Base,o=d.enc,p=o.Utf8,s=d.algo;s.HMAC=r.extend({init:function(i,a){i=this._hasher=new i.init,typeof a=="string"&&(a=p.parse(a));var l=i.blockSize,h=4*l;a.sigBytes>h&&(a=i.finalize(a)),a.clamp();for(var c=this._oKey=a.clone(),S=this._iKey=a.clone(),E=c.words,m=S.words,T=0;T<l;T++)E[T]^=1549556828,m[T]^=909522486;c.sigBytes=S.sigBytes=h,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var a=this._hasher,l=a.finalize(i);return a.reset(),a.finalize(this._oKey.clone().concat(l))}})}()})},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return function(){function d(s,e,i){for(var a=[],l=0,h=0;h<e;h++)if(h%4){var c=i[s.charCodeAt(h-1)]<<h%4*2,S=i[s.charCodeAt(h)]>>>6-h%4*2;a[l>>>2]|=(c|S)<<24-l%4*8,l++}return o.create(a,l)}var g=x,r=g.lib,o=r.WordArray,p=g.enc;p.Base64={stringify:function(e){var i=e.words,a=e.sigBytes,l=this._map;e.clamp();for(var h=[],c=0;c<a;c+=3)for(var S=i[c>>>2]>>>24-c%4*8&255,E=i[c+1>>>2]>>>24-(c+1)%4*8&255,m=i[c+2>>>2]>>>24-(c+2)%4*8&255,T=S<<16|E<<8|m,w=0;w<4&&c+.75*w<a;w++)h.push(l.charAt(T>>>6*(3-w)&63));var f=l.charAt(64);if(f)for(;h.length%4;)h.push(f);return h.join("")},parse:function(e){var i=e.length,a=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h<a.length;h++)l[a.charCodeAt(h)]=h}var c=a.charAt(64);if(c){var S=e.indexOf(c);S!==-1&&(i=S)}return d(e,i,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),x.enc.Base64})},function(_e,n,P){"use strict";function x(_){return _&&_.__esModule?_:{default:_}}function d(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function _(A,C){for(var v=0;v<C.length;v++){var L=C[v];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(A,L.key,L)}}return function(A,C,v){return C&&_(A.prototype,C),v&&_(A,v),A}}(),r=P(8),o=x(r),p=P(7),s=x(p),e=P(4),i=x(e),a=P(6),l=x(a),h=P(1),c=x(h),S=P(9),E=x(S),m=P(2),T=P(11),w=P(10),f=function(){function _(){d(this,_)}return g(_,null,[{key:"getAuthInfo",value:function(C,v,L){var U=C+"|f#Ylm&^1TppeRhLg|"+L;return v&&(U=C+"|"+v+"|f#Ylm&^1TppeRhLg|"+L),m(w.parse(U)).toString(T)}},{key:"upload",value:function(C,v,L){var U=c.default.ISODateString(new Date),j=Math.floor(new Date().valueOf()/1e3),b=i.default.getClientId();b=i.default.setClientId(b);var k=_.getAuthInfo(C.userId,b,j),H=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:j,Timestamp:U,AuthInfo:k,FileName:C.file.name,FileSize:C.file.size,FileCreateTime:C.file.lastModified,FileHash:C.fileHash,UploadId:C.checkpoint.checkpoint.uploadId,PartSize:C.checkpoint.checkpoint.partSize,DonePartsCount:C.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(C.checkpoint),UploadRatio:C.checkpoint.loaded,UserId:C.userId,VideoId:C.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};b&&(G.ClientId=b);var te=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+te;o.default.get(F,function(ee){v&&v()},function(ee){ee&&(L(ee),console.log(ee))})}},{key:"get",value:function(C,v,L){var U=c.default.ISODateString(new Date),j=Math.floor(new Date().valueOf()/1e3),b=i.default.getClientId(),k=_.getAuthInfo(C.userId,b,j),H=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:s.default.browser.name+(s.default.browser.version||""),AppVersion:l.default.version,AuthTimestamp:j,Timestamp:U,AuthInfo:k,UserId:C.userId,UploadInfoList:JSON.stringify(C.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:H};b&&(G.ClientId=b);var te=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+te;o.default.get(F,function(ee){var $={},V=b;ee=ee?JSON.parse(ee):{},ee.UploadProgress&&ee.UploadProgress.UploadProgressList&&ee.UploadProgress.UploadProgressList.length>0&&($=ee.UploadProgress.UploadProgressList[0],V=$.ClientId),i.default.setClientId(V),v&&v($)},function(ee){ee&&(L(ee),console.log(ee))})}}]),_}();n.default=f},function(_e,n,P){"use strict";function x(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function p(s,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,e,i){return e&&p(s.prototype,e),i&&p(s,i),s}}(),g=P(2),r=P(33),o=(P(11),function(){function p(){x(this,p)}return d(p,null,[{key:"getMd5",value:function(e,i,a){var l=new FileReader;l.onload=function(S){try{if(S&&S.target){var E=g(r.parse(S.target.result)),m=E.toString();i(m)}}catch(T){console.log(T)}},l.onerror=function(S){console.log(S),errorCallback(S)};var h=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=h.call(e,0,1024);l.readAsBinaryString(c)}}]),p}());n.default=o},function(_e,n,P){!function(x,d){_e.exports=n=d(P(0))}(0,function(x){return x.enc.Latin1})}])}).call(this,M("yLpj"))},qHKi:function(ze,de,M){ze.exports={wrap:"wrap___gKjIH",name:"name___2VcBo",button:"button___1W9Co",progress:"progress___38g4B",havaLearn:"havaLearn___1t2h0"}},"qsz/":function(ze,de,M){ze.exports={flex_box_center:"flex_box_center___3sPVR",flex_space_between:"flex_space_between___2wE6D",flex_box_vertical_center:"flex_box_vertical_center___zPTyy",flex_box_center_end:"flex_box_center_end___3so15",flex_box_column:"flex_box_column___Kzm9M",wrp:"wrp___2pelP",drawer:"drawer___yRoT4",menu:"menu___1B4rW",actived:"actived___1jpt2",actived2:"actived2___22RXk",listItem:"listItem___2Pbw2",info:"info___eZCML",title:"title___1UvZg",titleLeft:"titleLeft___1vSSO",titleRight:"titleRight___3ENPT",search:"search___E3ybc",description:"description___1r4_v",menuCourse:"menuCourse___2A5Ol"}},sBCT:function(ze,de,M){"use strict";var Ue=M("MXD1"),Fe=M("CFYs"),_e=M("c1Ei"),n=M.n(_e),P=M("5Tp6"),x=M("2qtc"),d=M("kLXV"),g=M("miYZ"),r=M("tsqr"),o=M("y8nQ"),p=M("Vl3Y"),s=M("k16G"),e=M("XEnU"),i=M("3S9h"),a=M("5NDa"),l=M("5rEg"),h=M("q1tI"),c=M.n(h),S=M("WHYC"),E=M("uYtH"),m=M("9kvl"),T=M("kwm0"),w=M.n(T),f=M("Aky1"),_=M("h/US"),A=l.a.TextArea,C=500,v=function(j,b){var k,H=b.payload||{},G=H.uploadInfo,te=G===void 0?{}:G;switch(b.type){case"addVideo":return{videoList:[].concat(Object(i.a)(j.videoList),[{name:te.file.name,size:te.file.size,type:te.file.type,fileHash:te.fileHash,state:te.state,videoId:te.videoId,loaded:te.loaded||0,title:""}])};case"removeVideo":return{videoList:j.videoList.filter(function(F){return F.name!==b.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:j.videoList.map(function(F){return F.name===b.payload.uploadInfo.file.name?Object(e.a)(Object(e.a)({},F),{loaded:b.payload.progressPercent,videoId:te.videoId,fileHash:te.fileHash}):F})};case"updateTitle":return{videoList:(k=j.videoList)===null||k===void 0?void 0:k.map(function(F){return F.name===b.payload.item.name?Object(e.a)(Object(e.a)({},F),{title:b.payload.title}):F})};default:return{videoList:[]}}},L=function(j){var b,k=j.user,H=j.globalSetting,G=j.loading,te=j.dispatch,F=j.visible,ee=j.editData,$=j.onCancel,V=$===void 0?function(){}:$,N=j.onOk,I=N===void 0?function(){}:N,B=Object(S.m)(),X=p.a.useForm(),Y=Object(s.a)(X,1),Z=Y[0],se=Object(h.useReducer)(v,{videoList:[]}),re=Object(s.a)(se,2),ue=re[0],ce=re[1],q=Object(h.useState)(!1),Q=Object(s.a)(q,2),ie=Q[0],z=Q[1],W=Object(h.useRef)(),ae=Object(h.useState)(),ne=Object(s.a)(ae,2),me=ne[0],R=ne[1],t=Object(h.useState)(!1),u=Object(s.a)(t,2),D=u[0],y=u[1],O=Object(h.useState)(!1),K=Object(s.a)(O,2),J=K[0],Ee=K[1];Object(h.useEffect)(function(){if(!ee)return;y(ee.is_link),R(ee.link),!ee.is_link&&ce({type:"addVideo",payload:{uploadInfo:{file:{name:ee.file_name},videoId:ee.video_id,loaded:100}}}),Z.setFieldsValue({name:ee.name,description:ee.description,attachment_id:ee==null?void 0:ee.attachment_id})},[ee]);var he=function(){var Ve=document.getElementById("fileUpload");Ve.value=""},fe=function(Ve){var tt,Ie,ve;y(!1);var ye=Ve.target.files[0];if(!ye){he();return}var Ae=ye.name.toLowerCase();if(Ae&&Ae.indexOf(".avi")==-1&&Ae.indexOf(".flv")==-1&&Ae.indexOf(".f4v")==-1&&Ae.indexOf(".m4v")==-1&&Ae.indexOf(".mov")==-1&&Ae.indexOf(".mp4")==-1&&Ae.indexOf(".rmvb")==-1&&Ae.indexOf(".swf")==-1&&Ae.indexOf(".webm")==-1&&Ae.indexOf(".wmv")==-1){r.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),he();return}if(!(((tt=k.userInfo)===null||tt===void 0?void 0:tt.admin)||((Ie=k.userInfo)===null||Ie===void 0?void 0:Ie.business))&&ye.size>C*1024*1024){r.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(C,"M")),he();return}if((ve=ue.videoList)===null||ve===void 0?void 0:ve.find(function(we){return we.name===ye.name})){r.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),he();return}Re(ye)},be=function(Ve,tt){d.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",tt?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){he(),ce({type:"removeVideo",payload:{name:Ve}})}})},Re=function(Ve){var tt,Ie='{"Vod":{}}';if(z(!0),W.current){W.current.addFile(Ve,null,null,null,Ie);return}Object(f.a)((tt=k.userInfo)===null||tt===void 0?void 0:tt.login,{create:!W,addFileSuccess:function(ye){ce({type:"addVideo",payload:{uploadInfo:ye}})},onUploadProgress:function(ye,Ae,we){var De=Math.ceil(we*100);ce({type:"updateProgress",payload:{uploadInfo:ye,progressPercent:De}}),he()},onUploadFailed:function(ye){r.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(ye){z(!1)},onUploadSucceed:function(ye){z(!1)},onUploadError:function(ye){z(!1)},gotUploader:function(ye){ye.addFile(Ve,null,null,null,Ie),W.current=ye}})},Ce=function(){var Je=Object(P.a)(n.a.mark(function Ve(){var tt,Ie,ve,ye;return n.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,Z.validateFields();case 2:if(!(!D&&!((tt=ue.videoList)===null||tt===void 0?void 0:tt.length)||D&&!me)){we.next=5;break}return r.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),we.abrupt("return");case 5:return Ee(!0),ve=D?{link:me}:{video_id:(Ie=ue.videoList)===null||Ie===void 0?void 0:Ie[0].videoId},we.next=9,I(Object(e.a)(Object(e.a)({},ve),{name:Z.getFieldValue("name"),attachment_id:Z.getFieldValue("attachment_id"),description:Z.getFieldValue("description")}));case 9:ye=we.sent,Ee(!1),ye.id&&le();case 12:case"end":return we.stop()}},Ve)}));return function(){return Je.apply(this,arguments)}}(),le=function(){Z.resetFields(),ce({type:"removeAll"}),R(null),y(null)},Ke=function(){V(),le()},lt=function(){var Ve,tt,Ie,ve,ye,Ae,we,De,Be,Ge,it,qe;return c.a.createElement(c.a.Fragment,null,!D&&!!((Ve=ue.videoList)===null||Ve===void 0?void 0:Ve.length)&&c.a.createElement("div",{className:w.a.fileProgress},((tt=ue.videoList)===null||tt===void 0||((Ie=tt[0])===null||Ie===void 0)?void 0:Ie.loaded)==100?c.a.createElement("div",{className:"".concat(w.a.videoName," font14")},(ve=ue.videoList)===null||ve===void 0||((ye=ve[0])===null||ye===void 0)?void 0:ye.name):c.a.createElement(Fe.a,{style:{width:"80%"},percent:(Ae=ue.videoList)===null||Ae===void 0||((we=Ae[0])===null||we===void 0)?void 0:we.loaded,status:((De=ue.videoList)===null||De===void 0||((Be=De[0])===null||Be===void 0)?void 0:Be.loaded)==100?"normal":"active"}),c.a.createElement("div",{className:w.a.fileCancel,onClick:function(){var jt,Zt,gt,ft;return be((jt=ue.videoList)===null||jt===void 0||((Zt=jt[0])===null||Zt===void 0)?void 0:Zt.name,((gt=ue.videoList)===null||gt===void 0||((ft=gt[0])===null||ft===void 0)?void 0:ft.loaded)==100)}},((Ge=ue.videoList)===null||Ge===void 0||((it=Ge[0])===null||it===void 0)?void 0:it.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((qe=ue.videoList)===null||qe===void 0?void 0:qe.length)&&c.a.createElement("div",{className:w.a.uploadWrap},c.a.createElement("label",{htmlFor:"fileUpload",className:w.a.upload},c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),c.a.createElement("label",{className:"".concat(w.a.upload," ").concat(w.a.uploadLink),onClick:function(){return y(!0)}},c.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),D&&c.a.createElement(l.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:me,onChange:function(jt){return R(jt.target.value)}}))};return c.a.createElement(d.a,{centered:!0,maskClosable:!1,title:ee?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:w.a.modal,visible:F,confirmLoading:J,onOk:Ce,onCancel:Ke},c.a.createElement(p.a,{form:Z},c.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:fe,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},c.a.createElement(l.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:w.a.contentItem},lt()),c.a.createElement(p.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},c.a.createElement(_.a,{getFileProgress:function(Ve){if(Ve.file.status==="uploading"){Ee(!0);return}Ve.file.status==="done"&&Ee(!1)}})),c.a.createElement(p.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},c.a.createElement(A,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),c.a.createElement("div",{className:"c-grey-999"},c.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),c.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",c.a.createElement(E.Link,{to:"/users/".concat((b=k.userInfo)===null||b===void 0?void 0:b.login,"/videos/protocol"),target:"_blank",className:w.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),c.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B"),c.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),c.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};de.a=Object(m.a)(function(U){var j=U.user,b=U.loading,k=U.globalSetting;return{user:j,globalSetting:k,loading:b}})(L)},w8Aa:function(ze,de,M){ze.exports={img:"img___3e4yQ"}},wzkS:function(ze,de,M){"use strict";M.d(de,"c",function(){return P}),M.d(de,"b",function(){return x}),M.d(de,"d",function(){return d}),M.d(de,"a",function(){return r}),M.d(de,"e",function(){return o});var Ue=M("c1Ei"),Fe=M.n(Ue),_e=M("5Tp6"),n=M("ErOA");function P(p){return Object(n.c)("libraries/".concat(p,".json"))}function x(){return Object(n.c)("library_tags.json")}function d(p){return g.apply(this,arguments)}function g(){return g=Object(_e.a)(Fe.a.mark(function p(s){var e;return Fe.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(n.b)("attachments/".concat(s,".json"));case 2:return e=a.sent,a.abrupt("return",e.status===0);case 4:case"end":return a.stop()}},p)})),g.apply(this,arguments)}function r(p){return Object(n.f)("libraries.json",p)}function o(p,s){return Object(n.g)("libraries/".concat(p,".json"),s)}},y5JW:function(ze,de,M){"use strict";M.d(de,"c",function(){return l}),M.d(de,"a",function(){return h});var Ue=M("DZo9"),Fe=M("8z0m"),_e=M("+L6B"),n=M("2/Rp"),P=M("c1Ei"),x=M.n(P),d=M("5Tp6"),g=M("XEnU"),r=M("3S9h"),o=M("miYZ"),p=M("tsqr"),s=M("q1tI"),e=M.n(s),i=M("m3rI"),a=M("wzkS"),l="\u3000\u3000";function h(c){var S=["Bytes","KB","MB","GB","TB"];if(c==0)return"0 Byte";var E=parseInt(""+Math.floor(Math.log(c)/Math.log(1024)),10);return(c/Math.pow(1024,E)).toFixed(1)+" "+S[E]}de.b=function(c){var S=c.value,E=S===void 0?[]:S,m=c.onChange,T=c.className,w=c.maxSize,f=w===void 0?150:w,_=c.title,A=_===void 0?"\u6587\u4EF6\u4E0A\u4F20":_,C=c.accept,v=C===void 0?null:C,L={multiple:!1,fileList:E,accept:v,withCredentials:!0,beforeUpload:function(b){var k=b.size/1024/1024;return k<f?!0:(p.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(f,"MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")),!1)},action:"".concat(i.a.API_SERVER,"/api/attachments.json"),onChange:function(b){var k=Object(r.a)(b.fileList);k=k.map(function(H){return H.name.indexOf(l)===-1&&(H.name="".concat(H.name).concat(l).concat(h(H.size))),Object(g.a)({},H)}),m(k)},onRemove:function(){var j=Object(d.a)(x.a.mark(function k(H){var G,te;return x.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(G=H.response?H.response.id:H.uid,!G){ee.next=8;break}return ee.next=4,Object(a.d)(H.response?H.response.id:H.id);case 4:return te=ee.sent,ee.abrupt("return",te);case 8:return ee.abrupt("return",!0);case 9:case"end":return ee.stop()}},k)}));function b(k){return j.apply(this,arguments)}return b}()};function U(j){j.preventDefault(),j.stopPropagation()}return e.a.createElement("div",{className:"single-upload ".concat(T||"")},e.a.createElement(Fe.a,L,e.a.createElement(n.a,{type:"primary",title:E.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:E.length>0,ghost:!0},A),e.a.createElement("span",{onClick:U,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",f,"M) ")))}}}]);
|