You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Video__Detail__id.f7beab...

47 lines
463 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[226,11],{"1ZF9":function(Ve,ze,ae){Ve.exports=ae.p+"static/Authorize.cc9c212f.png"},"96GE":function(Ve,ze,ae){"use strict";ae.r(ze),ae.d(ze,"formatQuery",function(){return K});var ke=ae("T2oS"),He=ae("W9HT"),he=ae("k1fw"),n=ae("PpiC"),A=ae("q1tI"),v=ae.n(A),h=ae("9kvl"),g=ae("JqQi"),o=ae.n(g),s=ae("pC0b"),d=ae("GzdX"),u=ae("WmNS"),e=ae.n(u),a=ae("9og8"),r=ae("tJVT"),c=ae("nUhQ"),f=ae.n(c),l=ae("2qtc"),x=ae("kLXV"),E=ae("7Kak"),p=ae("9yH6"),T=ae("miYZ"),S=ae("tsqr"),m=ae("5NDa"),b=ae("5rEg"),O=ae("Ty5D"),C=ae("sWEp"),_=ae.n(C),L=ae("qdXH"),D=b.a.Search,N=function(ce){var ge,ye=ce.videoDetail,se=ce.globalSetting,xe=ce.loading,je=ce.dispatch,Ee=Object(n.a)(ce,["videoDetail","globalSetting","loading","dispatch"]),Re=Object(O.m)(),Ne=Object(O.l)(),We=Object(A.useState)([]),Ke=Object(r.a)(We,2),Xe=Ke[0],$e=Ke[1],et=Object(A.useState)(""),nt=Object(r.a)(et,2),Ze=nt[0],qe=nt[1],Se=Object(A.useState)(),Ae=Object(r.a)(Se,2),be=Ae[0],ve=Ae[1],Oe=Object(A.useState)(!1),_e=Object(r.a)(Oe,2),we=_e[0],Pe=_e[1],Ce=Object(A.useState)(!1),Je=Object(r.a)(Ce,2),Ge=Je[0],Qe=Je[1];Object(A.useEffect)(function(){ye.actionTabs.key==="Banner-SendToClass"&&De()},[ye.actionTabs.key]);var De=function(){var Ie=Object(a.a)(e.a.mark(function Fe(){var Te,Le;return e.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,Object(L.h)({});case 2:if(Le=tt.sent,!(Le==null||((Te=Le.courses)===null||Te===void 0)?void 0:Te.length)){tt.next=8;break}$e((Le==null?void 0:Le.courses)||[]),Qe(!0),tt.next=11;break;case 8:return Be(),S.b.info("\u60A8\u5F53\u524D\u6CA1\u6709\u7BA1\u7406\u4EFB\u4F55\u8BFE\u5802\uFF0C\u4E0D\u53EF\u53D1\u9001"),tt.abrupt("return");case 11:case"end":return tt.stop()}},Fe)}));return function(){return Ie.apply(this,arguments)}}(),Me=function(Fe){$e(Xe==null?void 0:Xe.map(function(Te){return Object(he.a)(Object(he.a)({},Te),{},{hide:!Te.course_name.includes(Fe)})}))},Ue=function(){var Ie=Object(a.a)(e.a.mark(function Fe(){var Te;return e.a.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(be){Ye.next=3;break}return Pe(!0),Ye.abrupt("return");case 3:return Ye.next=5,Object(L.n)({id:Re.videoId,course_id:be});case 5:Te=Ye.sent,(Te==null?void 0:Te.status)===0&&(S.b.success(Te.message),Be(),h.c===null||h.c===void 0||h.c.replace("/classrooms/".concat(be,"/shixun_homework")));case 7:case"end":return Ye.stop()}},Fe)}));return function(){return Ie.apply(this,arguments)}}(),Be=function(){qe(""),ve(null),Pe(!1),je({type:"videoDetail/setActionTabs",payload:{}}),Qe(!1)};return v.a.createElement(x.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001\u81F3\u8BFE\u5802",visible:Ge,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ue,onCancel:Be},v.a.createElement("div",{className:_.a.wrap},v.a.createElement("div",{className:"mb10"},v.a.createElement(D,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Ze,onChange:function(Fe){return qe(Fe.target.value)},onSearch:function(Fe){qe(Fe),Me(Fe)}})),v.a.createElement("div",{className:_.a.radioWrap},v.a.createElement(p.a.Group,{value:be,onChange:function(Fe){ve(Fe.target.value),Pe(!1)}},Xe==null||((ge=Xe.filter(function(Ie){return!(Ie==null?void 0:Ie.hide)}))===null||ge===void 0)?void 0:ge.map(function(Ie,Fe){return v.a.createElement(p.a,{className:_.a.radio,value:Ie.course_id,key:Fe},Ie.course_name)}))),we&&v.a.createElement("div",{className:_.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),v.a.createElement("div",{className:_.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5F53\u524D\u89C6\u9891\u9879\u76EE\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802")))},j=Object(h.a)(function(le){var ce=le.videoDetail,ge=le.loading,ye=le.globalSetting;return{videoDetail:ce,globalSetting:ye,loading:ge.models.index}})(N),z=ae("sBCT"),V=ae("1vsH"),G=ae("NLgs"),Z=ae("Awhp"),F=ae("KrTs"),ee=ae("+L6B"),$=ae("2/Rp"),W=ae("O3gP"),R=ae("lrIw"),I=ae("oBTY"),U=ae("eoI0"),M=ae.n(U),H=ae("HBuW"),Y=function(ce){var ge,ye,se=ce.videoDetail,xe=ce.dispatch,je=xe===void 0?function(){}:xe,Ee=ce.visible,Re=ce.onClose,Ne=Re===void 0?function(){}:Re,We=se.queryParams,Ke=se.queryParams,Xe=Ke.subject_id,$e=Ke.videoId,et={videoId:$e},nt={query:We},Ze=Object(A.useState)(0),qe=Object(r.a)(Ze,2),Se=qe[0],Ae=qe[1],be=Object(A.useState)(""),ve=Object(r.a)(be,2),Oe=ve[0],_e=ve[1],we=Object(A.useState)([]),Pe=Object(r.a)(we,2),Ce=Pe[0],Je=Pe[1],Ge=Object(A.useState)([]),Qe=Object(r.a)(Ge,2),De=Qe[0],Me=Qe[1];Object(A.useEffect)(function(){var Te,Le,Ye=((Te=se.detail)===null||Te===void 0||((Le=Te.video_item)===null||Le===void 0)?void 0:Le.schools)||[];Ae((Ye==null?void 0:Ye.length)?1:0),Me(Ye)},[(ge=se.detail)===null||ge===void 0||((ye=ge.video_item)===null||ye===void 0)?void 0:ye.schools]);var Ue=function(){var Te=Object(a.a)(e.a.mark(function Le(Ye){var tt;return e.a.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return it.next=2,Object(H.L)({q:Ye});case 2:tt=it.sent,tt&&Je(tt.shools_name||[]);case 4:case"end":return it.stop()}},Le)}));return function(Ye){return Te.apply(this,arguments)}}(),Be=function(Le){if(De.includes(Le)){S.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}_e(""),Me([].concat(Object(I.a)(De),[Le]))},Ie=function(){var Te=Object(a.a)(e.a.mark(function Le(){var Ye;return e.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!(Se===1&&!(De==null?void 0:De.length))){rt.next=2;break}return rt.abrupt("return",S.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"));case 2:return rt.next=4,Object(L.a)(Object(he.a)(Object(he.a)({},K(nt.query)),{},{id:et.videoId,schools:Se===0?[]:De}));case 4:Ye=rt.sent,(Ye==null?void 0:Ye.status)===0&&(S.b.success("\u8BBE\u7F6E\u6210\u529F"),Fe());case 6:case"end":return rt.stop()}},Le)}));return function(){return Te.apply(this,arguments)}}(),Fe=function(){Ne(),je({type:"videoDetail/getVideoDetail",payload:Object(he.a)(Object(he.a)({},K(nt.query)),{},{id:et.videoId})})};return v.a.createElement(x.a,{centered:!0,maskClosable:!1,title:"\u6743\u9650\u8BBE\u7F6E",width:530,className:M.a.modal,visible:Ee,onOk:Ie,onCancel:Fe},v.a.createElement(v.a.Fragment,null,v.a.createElement(p.a.Group,{value:Se,onChange:function(Le){return Ae(Le.target.value)}},v.a.createElement(p.a,{value:0},"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),v.a.createElement(p.a,{value:1},"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00",v.a.createElement("span",null,"\uFF08\u9009\u4E2D\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7528\u6237\u53EF\u89C1\uFF09"))),Se===1&&v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"mt10"},v.a.createElement(R.a,{showSearch:!0,className:M.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:Oe,onChange:function(Le){_e(Le),Ue(Le)},onSelect:Be,options:Ce==null?void 0:Ce.map(function(Te){return{value:Te}})})),v.a.createElement("div",{className:"mt10"},De==null?void 0:De.map(function(Te,Le){return v.a.createElement(F.a,{count:v.a.createElement("span",{className:M.a.delete,onClick:function(){return Me(De.filter(function(tt){return tt!==Te}))}},"x"),className:"mt10 mr20 current",key:Le},v.a.createElement($.a,{type:"primary",ghost:!0},Te))})))))},oe=Y,ne=function(ce){var ge=ce.user,ye=ce.videoDetail,se=ce.globalSetting,xe=ce.loading,je=ce.dispatch,Ee=Object(n.a)(ce,["user","videoDetail","globalSetting","loading","dispatch"]),Re=ye.queryParams,Ne=ye.queryParams,We=Ne.subject_id,Ke=Ne.videoId,Xe={videoId:Ke},$e={query:Re},et=Object(A.useState)(),nt=Object(r.a)(et,2),Ze=nt[0],qe=nt[1],Se=Object(A.useState)(),Ae=Object(r.a)(Se,2),be=Ae[0],ve=Ae[1],Oe=Object(A.useState)(!1),_e=Object(r.a)(Oe,2),we=_e[0],Pe=_e[1],Ce=function(){je({type:"videoDetail/setActionTabs",payload:{key:"Banner-SendToClass"}})},Je=function(){var Me=Object(a.a)(e.a.mark(function Ue(){var Be,Ie,Fe;return e.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!(((Be=ge.userInfo)===null||Be===void 0?void 0:Be.admin)||((Ie=ge.userInfo)===null||Ie===void 0?void 0:Ie.is_teacher)&&Object(G.c)())){Le.next=6;break}return Le.next=3,Object(L.g)(Object(he.a)({id:Xe.videoId},K($e.query)));case 3:Fe=Le.sent,ve(Fe==null?void 0:Fe.video_item),qe(!0);case 6:case"end":return Le.stop()}},Ue)}));return function(){return Me.apply(this,arguments)}}(),Ge=function(){var Me=Object(a.a)(e.a.mark(function Ue(Be){var Ie;return e.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(L.m)(Object(he.a)(Object(he.a)({},Be),{},{id:Xe.videoId},K($e.query)));case 2:return Ie=Te.sent,(Ie==null?void 0:Ie.status)===0&&(qe(!1),je({type:"videoDetail/getVideoDetail",payload:Object(he.a)({id:Xe.videoId},K($e.query))})),Te.abrupt("return",Ie);case 5:case"end":return Te.stop()}},Ue)}));return function(Be){return Me.apply(this,arguments)}}(),Qe=ye.detail||{},De=Qe.video_item;return v.a.createElement("aside",{className:f.a.banner},v.a.createElement("aside",{className:f.a.wrap},v.a.createElement("p",{className:f.a.title},De==null?void 0:De.name),v.a.createElement("div",{className:f.a.contentWrap},v.a.createElement("span",{className:"font14 c-white"},v.a.createElement("span",{className:"mr10"},"\u5B66\u4E60\u4EBA\u6570\uFF1A"),v.a.createElement("span",null,(De==null?void 0:De.study_video_items_count)||0),v.a.createElement("span",{className:"ml100 mr10"},"\u5B66\u5458\u8BC4\u5206\uFF1A"),v.a.createElement(d.a,{allowHalf:!0,value:Object(V.p)(De==null?void 0:De.star),disabled:!0,className:f.a.rating})),v.a.createElement("div",null))),v.a.createElement(j,null),v.a.createElement(z.a,{editData:be,visible:Ze,onCancel:function(){return qe(!1)},onOk:Ge}),v.a.createElement(oe,{dispatch:je,videoDetail:ye,visible:we,onClose:function(){return Pe(!1)}}))},ue=Object(h.a)(function(le){var ce=le.user,ge=le.videoDetail,ye=le.loading,se=le.globalSetting;return{user:ce,videoDetail:ge,globalSetting:se,loading:ye}})(ne),pe=ae("sRBo"),Q=ae("kaz8"),J=ae("J66h"),ie=ae("hgre"),q=ae("9Bee"),B=ae("vZDz"),re=ae.n(B),te=ae("9VGf"),de=function(ce){var ge=ce.videoDetail,ye=ce.globalSetting,se=ce.loading,xe=ce.dispatch,je=Object(n.a)(ce,["videoDetail","globalSetting","loading","dispatch"]),Ee=ge.queryParams,Re=ge.selectParams,Ne=ge.videoList,We=Ee.subject_id,Ke=Ee.videoId,Xe=Re.checkBoxValue,$e=Re.radioValue,et={videoId:Ke},nt={query:Ee},Ze=Object(A.useRef)(),qe=Object(A.useRef)(),Se=Object(A.useRef)(),Ae=Object(A.useRef)(5),be=ge.detail||{},ve=be.video_item;Object(te.a)(Object(a.a)(e.a.mark(function De(){return e.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!qe.current){Ue.next=5;break}return console.log("videoRef lastUpdatedTime: ",Ze.current.getLastUpdatedTime()),console.log(Ze.current),Ue.next=5,Oe();case 5:case"end":return Ue.stop()}},De)})),Ae.current*1e3);var Oe=function(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=Me?{is_f:1}:{};return Object(L.o)(Object(he.a)(Object(he.a)({},Ue),{id:et.videoId,point:Ze.current.getLastUpdatedTime(),total:Ze.current.getDuration()}))},_e=function(Me){return console.log("handlLogWatchHistory: ",Me),Me.ed==="1"&&(qe.current=!1,Oe(!0)),!qe.current&&!Me.ed&&(qe.current=!0,Ae.current=Ze.current.getDuration()<=5?1:5,Oe()),xe({type:"userDetail/logWatchHistory",payload:Me})},we=function(){qe.current=!1},Pe=function(){qe.current=!0},Ce=function(){Se.current=5,x.a.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:v.a.createElement("div",{className:"tc font14"},v.a.createElement(d.a,{defaultValue:Se.current,onChange:function(Ue){return Se.current=Ue},className:re.a.modalRating})),onOk:function(){var Me=Object(a.a)(e.a.mark(function Be(){var Ie;return e.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(L.l)({id:et.videoId,star:Se.current});case 2:Ie=Te.sent,Ie.status===0&&xe({type:"videoDetail/getVideoDetail",payload:Object(he.a)({id:et.videoId},K(nt.query))});case 4:case"end":return Te.stop()}},Be)}));function Ue(){return Me.apply(this,arguments)}return Ue}()})},Je=function(Me){var Ue=window.filterVideoSign,Be=Ue.findIndex(function(Ye){return Ye.id===Ke}),Ie=Be===Ue.length-1;if(Ie)return;var Fe=Ue[Be+1].id,Te=Ue[Be+1].can_view,Le=Ue[Be+1].link;if(window.checkBoxValue){if(Le){window.open(Le);return}if(!Te){x.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}xe({type:"videoDetail/handleList",payload:{videoId:Fe}}),window.videoTimer=setTimeout(function(){Me.current.play()},2e3)}},Ge=function(Me,Ue){if(Me==="checkBox"){var Be=Ue.target.checked;window.checkBoxValue=Be,xe({type:"videoDetail/setSelectValue",payload:{radioValue:$e,checkBoxValue:Be}});return}xe({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Xe,radioValue:Ue.target.value}})},Qe=function(){var Me=Ne.findIndex(function(Be){return Be.id===Ke}),Ue=Me===Ne.length-1;return Ue?v.a.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):v.a.createElement(Q.a,{onChange:function(Ie){Ge("checkBox",Ie)},checked:Xe},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891")};return v.a.createElement("aside",{className:re.a.contentWrap},v.a.createElement("aside",{className:re.a.wrap},v.a.createElement("header",null,(ve==null?void 0:ve.description)&&v.a.createElement("span",{className:re.a.introName},"\u7B80\u4ECB"),Object(V.y)(ve==null?void 0:ve.my_star)?v.a.createElement($.a,{type:"primary",ghost:!0,onClick:Ce},"\u8BC4\u5206"):v.a.createElement("span",null,v.a.createElement("span",{className:"ml100 mr10 font14"},"\u6211\u7684\u8BC4\u5206\uFF1A"),v.a.createElement(d.a,{value:ve==null?void 0:ve.my_star,disabled:!0,className:re.a.rating}))),v.a.createElement("div",{className:"mt20"},v.a.createElement(q.a,{value:(ve==null?void 0:ve.description)||""})),console.log("-------",ve),v.a.createElement(ie.a,{ref:Ze,startTime:ve==null?void 0:ve.last_point,src:(ve==null?void 0:ve.is_link)?ve==null?void 0:ve.link:(ve==null?void 0:ve.play_url)&&J.Base64.decode(ve==null?void 0:ve.play_url),videoId:ve==null?void 0:ve.video_id,logWatchHistory:_e,handlePause:we,handlePlay:Pe,videoSpeed:$e,handlePlayEnded:Je}),v.a.createElement("div",{className:re.a.footer},v.a.createElement("div",{className:re.a.checkBox},Qe()),v.a.createElement("div",{className:re.a.radioGroup},v.a.createElement(p.a.Group,{onChange:function(Me){Ge("radio",Me)},value:$e},v.a.createElement(p.a,{value:1},"1.0X"),v.a.createElement(p.a,{value:1.5},"1.5X"),v.a.createElement(p.a,{value:2},"2.0X"))))))},k=Object(h.a)(function(le){var ce=le.videoDetail,ge=le.loading,ye=le.globalSetting;return{videoDetail:ce,globalSetting:ye,loading:ge}})(de),t=ae("MRWH"),i=ae.n(t),P=ae("m3rI"),y=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:v.a.createElement("i",{className:"iconfont icon-shixun2 font20"})},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:v.a.createElement("i",{className:"iconfont icon-shipin font20"})},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:v.a.createElement("i",{className:"iconfont icon-jiaoxueanli font20"})}],w=function(ce){var ge=ce.dispatch,ye=ce.videoDetail,se=ce.user,xe=Object(n.a)(ce,["dispatch","videoDetail","user"]),je=ye.queryParams,Ee=ye.stages,Re=ye.videoList,Ne=ye.cust_seq,We=je.subject_id,Ke=je.videoId;Object(A.useEffect)(function(){ge({type:"videoDetail/getStageData",payload:{subject_id:We}})},[]);var Xe=function(){var qe=Object(a.a)(e.a.mark(function Se(Ae,be){var ve;return e.a.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ge({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!be){_e.next=7;break}return _e.next=4,Object(H.z)({id:Ae});case 4:_e.t0=_e.sent,_e.next=10;break;case 7:return _e.next=9,Object(H.A)({id:Ae});case 9:_e.t0=_e.sent;case 10:if(ve=_e.t0,ge({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!((ve==null?void 0:ve.game_identifier)||(ve==null?void 0:ve.identifier))){_e.next=15;break}return Object(V.A)(be?"/tasks/".concat(ve==null?void 0:ve.identifier,"/jupyter"):"/tasks/".concat(ve.game_identifier)),_e.abrupt("return");case 15:case"end":return _e.stop()}},Se)}));return function(Ae,be){return qe.apply(this,arguments)}}(),$e=function(Se){clearTimeout(window.videoTimer);var Ae=Se.id,be=Se.item_type,ve=Se.identifier,Oe=Se.is_jupyter,_e=Se.url,we=Se.link;if(console.log(Re),be==="VideoItem"&&!we){var Pe,Ce;if(!((Pe=se.userInfo)===null||Pe===void 0?void 0:Pe.admin)&&!((Ce=se.userInfo)===null||Ce===void 0?void 0:Ce.business)&&!Se.can_view){x.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:v.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}ge({type:"videoDetail/handleList",payload:{videoId:Ae}});return}if(be==="VideoItem"&&!!we){Se.link&&Object(L.o)({is_f:1,id:Se.id,point:0,total:0}),window.open(we);return}if(be==="Shixun"){Xe(ve,Oe);return}window.open(P.a.IMG_SERVER+_e)},et=function(Se){var Ae=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],be=["","\u5341","\u767E","\u5343","\u4E07"];Se=parseInt(Se);var ve=function(Pe){for(var Ce=Pe.toString().split("").reverse(),Je="",Ge=0;Ge<Ce.length;Ge++)Je=(Ge==0&&Ce[Ge]==0||Ge>0&&Ce[Ge]==0&&Ce[Ge-1]==0?"":Ae[Ce[Ge]]+(Ce[Ge]==0?be[0]:be[Ge]))+Je;return Je},Oe=Math.floor(Se/1e4),_e=Se%1e4;return _e.toString().length<4&&(_e="0"+_e),Oe?ve(Oe)+"\u4E07"+ve(_e):ve(Se)},nt=function(Se,Ae,be,ve){var Oe=Se.name,_e=Se.item_type,we=Se.id;if(_e==="StageCatalog")return;var Pe="".concat(Ae+1,"-").concat(be+1,"-").concat(ve+1),Ce=y.find(function(Qe){return Qe.type===_e}).icon,Je=_e==="VideoItem"?i.a.brght:i.a.gray,Ge=Ke===we?"".concat(Je," ").concat(i.a.active):Je;return v.a.createElement("div",{key:Pe,onClick:function(){return $e(Se)},className:Ge,style:{paddingLeft:52}},v.a.createElement("span",{className:i.a.s1},Ce),!!Ne&&v.a.createElement("span",{className:i.a.s2},Pe),v.a.createElement("span",{className:i.a.s3},"\u203B ",Oe))},Ze=function(Se,Ae,be){var ve=Se.name,Oe=Se.item_type,_e=Se.id,we=Se.children;if(Oe==="StageCatalog")return;var Pe="".concat(Ae+1,"-").concat(be+1),Ce=y.find(function(Qe){return Qe.type===Oe}).icon,Je=Oe==="VideoItem"?i.a.brght:i.a.gray,Ge=Ke===_e?"".concat(Je," ").concat(i.a.active):Je;return v.a.createElement(A.Fragment,{key:Pe},v.a.createElement("div",{onClick:function(){return $e(Se)},className:Ge},v.a.createElement("span",{className:i.a.s1},Ce),!!Ne&&v.a.createElement("span",{className:i.a.s2},Pe),v.a.createElement("span",{className:i.a.s3},"\u203B ",ve)),!!we.length&&we.map(function(Qe,De){return nt(Qe,Ae,be,De)}))};return v.a.createElement("aside",{className:i.a.list},Ee.map(function(qe,Se){var Ae=qe.stage_name,be=qe.shixuns_list,ve=be===void 0?[]:be,Oe=qe.items,_e=Oe===void 0?[]:Oe,we=Object(I.a)(_e);return v.a.createElement("aside",{key:Se,className:i.a.box},v.a.createElement("div",{className:i.a.title},et(Se+1),"\u3001",Ae),we.map(function(Pe,Ce){return Ze(Pe,Se,Ce)}),Se!==Ee.length-1&&v.a.createElement("div",{className:i.a.line}))}))},X=Object(h.a)(function(le){var ce=le.user,ge=le.videoDetail,ye=le.loading,se=le.globalSetting;return{user:ce,videoDetail:ge,globalSetting:se,loading:ye}})(w),K=function(ce){var ge=ce.subject_id;return{subject_id:ge,course_id:ge}},me=function(ce){var ge=ce.videoDetail,ye=ce.globalSetting,se=ce.loading,xe=ce.dispatch,je=Object(n.a)(ce,["videoDetail","globalSetting","loading","dispatch"]),Ee=ge.queryParams,Re=Ee.subject_id,Ne=Ee.videoId,We={videoId:Ne},Ke={query:Ee};return Object(A.useEffect)(function(){if(!We.videoId)return;xe({type:"videoDetail/getVideoDetail",payload:Object(he.a)(Object(he.a)({},K(Ke.query)),{},{id:We.videoId})})},[We.videoId]),Object(A.useEffect)(function(){var Xe,$e;document.title=((Xe=ge.detail)===null||Xe===void 0||(($e=Xe.video_item)===null||$e===void 0)?void 0:$e.name)||"EduCoder"},[ge]),v.a.createElement(He.a,{spinning:!1},v.a.createElement("section",{className:o.a.bg},v.a.createElement(ue,null),v.a.createElement("div",{className:o.a.container},v.a.createElement(X,null),v.a.createElement(k,null))))},fe=ze.default=Object(h.a)(function(le){var ce=le.videoDetail,ge=le.loading,ye=le.globalSetting;return{videoDetail:ce,globalSetting:ye,loading:ge}})(me)},"9Bee":function(Ve,ze,ae){"use strict";var ke=ae("q1tI"),He=ae.n(ke),he=ae("vg9a"),n=ae("tJVT"),A=ae("DlQD"),v=ae.n(A),h=ae("rUJ1");function g(V,G){var Z=V.match(/^(\s+)(?:```)/);if(Z===null)return G;var F=Z[1];return G.split(`
`).map(function(ee){var $=ee.match(/^\s+/);if($===null)return ee;var W=Object(n.a)($,1),R=W[0];return R.length>=F.length?ee.slice(F.length):ee}).join(`
`)}var o=[],s=["<ul>"],d=new v.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function e(){o.length=0,s=["<ul>"]}function a(V,G,Z,F){if(G>=V.length||V[G].level<=Z)return G;var ee=V[G];F.push("<li><a href='#"+ee.anchor+"'>"+ee.text+"</a>"),G++;var $=[];return G=a(V,G,ee.level,$),$.length>0&&(F.push("<ul>"),$.forEach(function(W){F.push(W)}),F.push("</ul>")),F.push("</li>"),G=a(V,G,Z,F),G}function r(){return a(o,0,0,s),s.push("</ul>"),s.join("")}var c={heading:function(G){var Z=u.exec(G);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(G){var Z=this.rules.block.fences.exec(G);if(Z){var F=Z[0],ee=g(F,Z[3]||""),$=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf($)>=0){var W=x(),R=ee;ee=W,E[W]={type:"block",expression:R}}return{type:"code",raw:F,lang:$,text:ee}}}},f=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,x=function(){return"__special_katext_id_".concat(l++,"__")},E={};function p(){return E}function T(){l=0,E={}}function S(V){return V=V.replace(f,function(G,Z){var F=x();return E[F]={type:"inline",expression:Z},F}),V}var m=d.listitem;d.listitem=function(V){return m(S(V))};var b=d.paragraph;d.paragraph=function(V){return b(S(V))};var O=d.tablecell;d.tablecell=function(V,G){return O(S(V),G)},d.code=function(V,G,Z){var F=(G||"").match(/\S*/)[0];return F?["latex","katex","math"].indexOf(F)>=0?"<p class='editormd-tex'>".concat(V,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(G,'">').concat(Z?V:Object(h.escape)(V,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?V:Object(h.escape)(V,!0))+"</code></pre>"},d.heading=function(V,G,Z){var F=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:F,level:G,text:V}),"<h"+G+' id="'+F+'">'+V+"</h"+G+">"},v.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:c,renderer:d});var C=v.a,_=ae("SJMd"),L=ae("m3rI"),D=ae("Oy/b"),N=/<pre[^>]*>/g;function j(V){var G=document.createElement("div");return G.innerHTML=V,G.childNodes.length===0?"":G.childNodes[0].nodeValue}var z=ze.a=function(V){var G=V.value,Z=G===void 0?"":G,F=V.className,ee=V.style,$=ee===void 0?{}:ee,W=String(Z),R=Object(ke.useMemo)(function(){try{var M=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,H=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Y=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;W=W.replace(M,"("+L.a.API_SERVER+"/api/attachments/").replace(H,'"'+L.a.API_SERVER+"/api/attachments/").replace(Y,'"'+L.a.API_SERVER+"/files/uploads/")}catch(ue){}var oe=C(W),ne=p();return W.match(/\[TOC\]/)&&(oe=oe.replace("<p>[TOC]</p>",r()),e()),oe=oe.replace(/(__special_katext_id_\d+__)/g,function(ue,pe){var Q=ne[pe],J=Q.type,ie=Q.expression;return Object(D.renderToString)(j(ie)||"",{displayMode:J==="block",throwOnError:!1,output:"html"})}),oe=oe.replace(/▁/g,"\u2581\u2581\u2581"),T(),oe},[W]),I=Object(ke.useRef)();function U(M){var H=M.target;if(H.tagName.toUpperCase()==="A"){var Y=H.getAttribute("href");if(Y.startsWith("#")){M.preventDefault();var oe=document.getElementById(Y.replace("#",""));oe&&oe.scrollIntoView(!0)}}}return Object(ke.useEffect)(function(){if(I.current&&R&&(R.match(N)&&window.PR.prettyPrint()),I.current)return I.current.addEventListener("click",U),function(){I.current.removeEventListener("click",U),T(),e()}},[R,I.current,U]),He.a.createElement("div",{ref:I,style:$,className:"".concat(F||""," markdown-body"),dangerouslySetInnerHTML:{__html:R}})}},"9VGf":function(Ve,ze,ae){"use strict";ae.d(ze,"a",function(){return he});var ke=ae("q1tI"),He=ae.n(ke);function he(n,A){var v=Object(ke.useRef)();Object(ke.useEffect)(function(){v.current=n}),Object(ke.useEffect)(function(){function h(){v.current()}if(A!==null){var g=setInterval(h,A);return function(){return clearInterval(g)}}},[A])}},Aky1:function(Ve,ze,ae){"use strict";ae.d(ze,"a",function(){return g});var ke=ae("ErOA"),He=ae("qGJc"),he=ae.n(He),n="",A;function v(o){h(o)}function h(o){A=new he.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(d){console.log("addFileSuccess: "+d.file.name),o.addFileSuccess&&o.addFileSuccess(d),A.startUpload()},onUploadstarted:function(d){var u=d.file.name;if(d.videoId){var r="/api/users/".concat(n,"/video_auths.json");Object(ke.a)(r,{method:"put",body:{video_id:d.videoId,title:u,file_name:u}}).then(function(c){if(c.status==-1){o.onUploadError&&o.onUploadError(d);return}var f=c.data,l=f.UploadAuth,x=f.UploadAddress,E=f.VideoId;A.setUploadAuthAndAddress(d,l,x)}).catch(function(c){A.deleteFile(A._curIndex),A.nextUpload(),console.log(c)})}else{var e="/api/users/".concat(n,"/video_auths.json"),a="";Object(ke.a)(e,{method:"Post",body:{title:a+u,file_name:a+u}}).then(function(c){if(c){var f=c.data,l=f.UploadAuth,x=f.UploadAddress,E=f.VideoId;A.setUploadAuthAndAddress(d,l,x,E)}}).catch(function(c){A.deleteFile(A._curIndex),A.nextUpload(),console.log(c)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(d){o.onUploadSucceed&&o.onUploadSucceed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(d,u,e){o.onUploadFailed&&o.onUploadFailed(d),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(d,u,e){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(d,u,e){o.onUploadProgress&&o.onUploadProgress(d,u,e);var a=Math.ceil(e*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(d){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var u="/api/users/".concat(n,"/video_auths.json");Object(ke.a)(u,{method:"put",body:{video_id:d.videoId}}).then(function(e){var a=e.data,r=a.UploadAuth;A.resumeUploadWithAuth(r)}).catch(function(e){console.log(e)})},onUploadEnd:function(d){o.onUploadEnd&&o.onUploadEnd(d),console.log("onUploadEnd: uploaded all the files")}}),o.gotUploader&&o.gotUploader(A)}function g(o,s){o&&(n=o),v(s);debugger}},JqQi:function(Ve,ze,ae){Ve.exports={bg:"bg___31owl",container:"container___2NGOo"}},MRWH:function(Ve,ze,ae){Ve.exports={flex_box_center:"flex_box_center___30XbU",flex_space_between:"flex_space_between___3jfWA",flex_box_vertical_center:"flex_box_vertical_center___27kWs",flex_box_center_end:"flex_box_center_end___1RoAS",flex_box_column:"flex_box_column____3Jvr",list:"list___2NJ_T",box:"box___36KCF",title:"title___Kd2ce",gray:"gray___14ob6",brght:"brght___GgzyD",s1:"s1___IhDpz",s2:"s2___3hR0s",s3:"s3___23SCF",active:"active___2_5D5",line:"line___3Croa"}},NLgs:function(Ve,ze,ae){"use strict";ae.d(ze,"d",function(){return o}),ae.d(ze,"e",function(){return s}),ae.d(ze,"c",function(){return u}),ae.d(ze,"b",function(){return e}),ae.d(ze,"a",function(){return a});var ke=ae("2qtc"),He=ae("kLXV"),he=ae("q1tI"),n=ae.n(he),A=ae("9kvl"),v=ae("xKgJ"),h=ae("1vsH"),g=ae("m3rI"),o=function(c){return!!(s(c)&&d())},s=function(c){return Object(v.p)()?!0:(c({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},d=function(){var c,f=Object(A.b)()._store.getState(),l=f.user;return((c=l.userInfo)===null||c===void 0?void 0:c.profile_completed)?!0:(He.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:n.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(){A.c.push("/account/profile/edit")}}),!1)},u=function(){var c,f=Object(A.b)()._store.getState(),l=f.user;return((c=l.userInfo)===null||c===void 0?void 0:c.professional_certification)?!0:(He.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.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(h.A)("/account/certification")}}),!1)},e=function(){return Object(v.b)()?!0:(He.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc"},n.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"),n.a.createElement("img",{src:Object(v.t)()?ae("WdTA"):"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(v.t)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.A)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},a=function(c){return c?!0:(He.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,"\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"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:ae("1ZF9"),width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.A)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},WdTA:function(Ve,ze,ae){Ve.exports=ae.p+"static/studnetqun.a5754d96.png"},eoI0:function(Ve,ze,ae){Ve.exports={selectSchool:"selectSchool___2Vrh7",delete:"delete___qM8Jm"}},hgre:function(Ve,ze,ae){"use strict";var ke=ae("WmNS"),He=ae.n(ke),he=ae("9og8"),n=ae("q1tI"),A=ae.n(n),v=ae("GUcZ");Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function h(s,d){return s-d}function g(s){s.sort(h);for(var d=0,u=0;u<s.length-1;u++){var e=Math.abs(s[u+1]-s[u]);e<21&&(d+=e)}return d}var o=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;ze.a=Object(n.forwardRef)(function(s,d){var u,e=s.src,a=s.videoId,r=s.logWatchHistory,c=s.courseId,f=c===void 0?null:c,l=s.startTime,x=s.handlePause,E=x===void 0?function(){}:x,p=s.handlePlay,T=p===void 0?function(){}:p,S=s.handlePlayEnded,m=S===void 0?function(){}:S,b=s.videoSpeed,O=b===void 0?1:b,C=e==null||((u=e.split("."))===null||u===void 0)?void 0:u.pop(),_=C==="flv",L=Object(n.useRef)(),D=navigator.userAgent.toLowerCase().match(o),N=D?D[0]:"pc",j=Object(n.useRef)(!1),z=0,V=0,G=0,Z=null,F=!1,ee=20,$=1,W=!1,R=!1,I=[];Object(n.useImperativeHandle)(d,function(){return{getLastUpdatedTime:function(){return L.current.currentTime},getDuration:function(){return L.current.duration}}});var U=Object(n.useCallback)(function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y={point:L.current.currentTime};Z?(Y.log_id=Z,Y.watch_duration=g(I),Y.total_duration=V):(f?(Y.video_id=parseInt(a,10),Y.course_id=parseInt(f,10)):Y.video_id=a,Y.duration=z,Y.device=N),H&&(Y.ed="1");function oe(){return ne.apply(this,arguments)}function ne(){return ne=Object(he.a)(He.a.mark(function ue(){var pe;return He.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return W=!0,J.next=3,r(Y);case 3:pe=J.sent,Z=pe,W=!1,M&&M();case 7:case"end":return J.stop()}},ue)})),ne.apply(this,arguments)}oe()},[a,f]);return Object(n.useEffect)(function(){var M=null;return v.a.isSupported&&_?(M=v.a.createPlayer({type:"flv",volume:.8,cors:!0,url:e,muted:!1}),L.current&&(M.attachMediaElement(L.current),M.load())):L.current.setAttribute("src",e),function(){M&&(M.unload(),M.pause(),M.destroy(),M=null)}},[L,_,e]),Object(n.useEffect)(function(){function M(){T(),l&&!j.current&&(L.current.currentTime=l),j.current=!0,I.push(L.current.currentTime),F||(F=!0,U())}function H(){return Y.apply(this,arguments)}function Y(){return Y=Object(he.a)(He.a.mark(function J(){return He.a.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:I.push(L.current.currentTime),U(function(){Z=null,G=0,F=!1,W=!1,R=!1,I=[],V=0,$=1},!0);case 2:case"end":return q.stop()}},J)})),Y.apply(this,arguments)}function oe(){if(!R){var J=L.current.currentTime,ie=J-G;Math.abs(ie)<10?(V+=Math.abs(ie),G=J,W||V-$*ee>=0&&($++,I.push(G),U())):(G=J,U())}}function ne(){R=!0}function ue(){L.current.playing&&I.push(L.current.currentTime,G),G=L.current.currentTime,R=!1}function pe(){z=L.current.duration,z<=20&&(ee=z/3),L.current.addEventListener("play",M)}function Q(){E()}return L.current.addEventListener("canplay",pe),L.current.addEventListener("ended",H),L.current.addEventListener("seeking",ne),L.current.addEventListener("seeked",ue),L.current.addEventListener("timeupdate",oe),L.current.addEventListener("pause",Q),function(){L.current.removeEventListener("canplay",pe),L.current.removeEventListener("play",M),L.current.removeEventListener("ended",H),L.current.removeEventListener("seeking",ne),L.current.removeEventListener("seeked",ue),L.current.removeEventListener("timeupdate",oe),L.current.removeEventListener("pause",Q),L.current.playing&&(I.push(G,L.current.currentTime),U())}},[L,e]),Object(n.useEffect)(function(){L.current.onended=function(){m(L)},L.current.playbackRate=O},[e,O]),A.a.createElement("video",{ref:L,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})})},kwm0:function(Ve,ze,ae){Ve.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",description:"description___2XNFq",colorOrange:"colorOrange___DiWgP"}},nUhQ:function(Ve,ze,ae){Ve.exports={flex_box_center:"flex_box_center___1OQ1z",flex_space_between:"flex_space_between___22uwF",flex_box_vertical_center:"flex_box_vertical_center___1xWAr",flex_box_center_end:"flex_box_center_end___1QTe3",flex_box_column:"flex_box_column___lWxZG",banner:"banner___1Hzq6",wrap:"wrap___1D5RS",title:"title___1LzGm",contentWrap:"contentWrap___19oxo",button:"button___3chJs",rating:"rating___3ODxx"}},qGJc:function(Ve,ze,ae){(function(ke){var He,He;!function(he){if(!0)window.OSS=he(),Ve.exports=he();else var n}(function(){var he;return function(){function n(A,v,h){function g(d,u){if(!v[d]){if(!A[d]){var e=typeof He=="function"&&He;if(!u&&e)return He(d,!0);if(o)return o(d,!0);var a=new Error("Cannot find module '"+d+"'");throw a.code="MODULE_NOT_FOUND",a}var r=v[d]={exports:{}};A[d][0].call(r.exports,function(c){return g(A[d][1][c]||c)},r,r.exports,n,A,v,h)}return v[d].exports}for(var o=typeof He=="function"&&He,s=0;s<h.length;s++)g(h[s]);return g}return n}()({1:[function(n,A,v){"use strict";var h=n("./browser/client");h.Buffer=n("buffer").Buffer,h.co=n("co"),h.urllib=n("../shims/xhr"),h.version=n("./browser/version").version,A.exports=h},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,A,v){(function(h,g){"use strict";function o(W){return W&&W.__esModule?W:{default:W}}function s(W,R){return W[R]||W[R.toLowerCase()]}function d(W,R){var I=_.parse(W);if(!I.protocol){var U=R?"https://":"http://";I=_.parse(U+W)}if(I.protocol!=="http:"&&I.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return I}function u(W,R,I){var U=I?"https://":"http://",M=R?"-internal.aliyuncs.com":".aliyuncs.com";return W.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(M=".aliyuncs.com"),_.parse(U+W+M)}function e(){return document&&document.location&&document.location.protocol==="https:"}function a(W,R){if(!(this instanceof a))return new a(W,R);W&&W.inited?this.options=W:this.options=a.initOptions(W),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||ee),this.ctx=R,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var r=n("babel-runtime/regenerator"),c=o(r),f=n("babel-runtime/core-js/object/keys"),l=o(f),x=n("debug")("ali-oss"),E=n("./../../shims/crypto/crypto.js"),p=n("path"),T=n("copy-to"),S=n("mime"),m=n("xml2js"),b=n("humanize-ms"),O=n("agentkeepalive"),C=n("merge-descriptors"),_=n("url"),L=n("is-type-of"),D=n("platform"),N=n("utility"),j=n("urllib"),z=n("./version"),V=n("dateformat"),G=n("bowser"),Z=n("../common/signUtils"),F=n("../common/utils"),ee=new O;A.exports=a,a.initOptions=function(W){if(!W||!W.accessKeyId||!W.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var R=e(),I={region:"oss-cn-hangzhou",internal:!1,secure:R,bucket:null,endpoint:null,cname:!1};if((0,l.default)(W).forEach(function(U){W[U]!==void 0&&(I[U]=W[U])}),I.accessKeyId=I.accessKeyId.trim(),I.accessKeySecret=I.accessKeySecret.trim(),I.timeout&&(I.timeout=b(I.timeout)),I.endpoint)I.endpoint=d(I.endpoint,I.secure);else{if(!I.region)throw new Error("require options.endpoint or options.region");I.endpoint=u(I.region,I.internal,I.secure)}return I.inited=!0,I};var $=a.prototype;C($,n("./object")),C($,n("./managed_upload")),C($,n("../common/multipart")),C($,n("../common/thunkpool.js")),a.Wrapper=n("./wrapper"),$.signature=function(W){return x("authorization stringToSign: %s",W),Z.computeSignature(this.options.accessKeySecret,W)},$.authorization=function(W,R,I,U){var M=Z.buildCanonicalString(W.toUpperCase(),R,{headers:U,parameters:I});return Z.authorization(this.options.accessKeyId,this.options.accessKeySecret,M)},$.createRequest=function(W){var R={"x-oss-date":V(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(R["x-oss-security-token"]=this.options.stsToken),T(W.headers).to(R),s(R,"Content-Type")||(W.mime===S.default_type&&(W.mime=""),W.mime&&W.mime.indexOf("/")>0?R["Content-Type"]=W.mime:R["Content-Type"]=S.getType(W.mime||p.extname(W.object||""))||"application/octet-stream"),W.content&&(R["Content-Md5"]=E.createHash("md5").update(new g(W.content,"utf8")).digest("base64"),R["Content-Length"]||(R["Content-Length"]=W.content.length));var I=this._getResource(W);R.authorization=this.authorization(W.method,I,W.subres,R);var U=this._getReqUrl(W);x("request %s %s, with headers %j, !!stream: %s",W.method,U,R,!!W.stream);var M=W.timeout||this.options.timeout;return{url:U,params:{agent:this.agent,method:W.method,content:W.content,stream:W.stream,headers:R,timeout:M,writeStream:W.writeStream,customResponse:W.customResponse,ctx:W.ctx||this.ctx}}},$.request=c.default.mark(function W(R){var I,U,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return I=this.createRequest(R),U=void 0,M=void 0,Y.prev=3,Y.next=6,this.urllib.request(I.url,I.params);case 6:U=Y.sent,x("response %s %s, got %s, headers: %j",R.method,I.url,U.status,U.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),M=Y.t0;case 13:if(H=void 0,!U||!R.successStatuses||R.successStatuses.indexOf(U.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(U);case 17:if(H=Y.sent,H.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(H.serverTime)-new Date,Y.next=22,this.request(R);case 22:return Y.abrupt("return",Y.sent);case 23:H.params=R,Y.next=30;break;case 26:if(!M){Y.next=30;break}return Y.next=29,this.requestError(M);case 29:H=Y.sent;case 30:if(!H){Y.next=32;break}throw H;case 32:if(!R.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(U.data);case 35:U.data=Y.sent;case 36:return Y.abrupt("return",U);case 37:case"end":return Y.stop()}},W,this,[[3,10]])}),$._getResource=function(W){var R="/";return W.bucket&&(R+=W.bucket+"/"),W.object&&(R+=W.object),R},$._isIP=function(W){return F._isIP(W)},$._escape=function(W){return N.encodeURIComponent(W).replace(/%2F/g,"/")},$._getReqUrl=function(W){var R={};T(this.options.endpoint).to(R);var I=this._isIP(R.hostname),U=this.options.cname;!W.bucket||U||I||(R.host=W.bucket+"."+R.host);var M="/";W.bucket&&I&&(M+=W.bucket+"/"),W.object&&(M+=this._escape(W.object).replace(/\+/g,"%2B")),R.pathname=M;var H={};if(W.query&&C(H,W.query),W.subres){var Y={};L.string(W.subres)?Y[W.subres]="":L.array(W.subres)?W.subres.forEach(function(oe){Y[oe]=""}):Y=W.subres,C(H,Y)}return R.query=H,_.format(R)},$._getUserAgent=function(){var W=h&&h.browser?"js":"nodejs",R="aliyun-sdk-"+W+"/"+z.version,I=D.description;return!I&&h&&(I="Node.js "+h.version.slice(1)+" on "+h.platform+" "+h.arch),this._checkUserAgent(R+" "+I)},$._checkUserAgent=function(W){return W.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},$.checkBrowserAndVersion=function(W,R){return G.name===W&&G.version.split(".")[0]===R},$.parseXML=function(W){return function(R){g.isBuffer(W)&&(W=W.toString()),m.parseString(W,{explicitRoot:!1,explicitArray:!1},R)}},$.requestError=c.default.mark(function W(R){var I,U,M,H;return c.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(I=null,R.data&&R.data.length){Y.next=5;break}R.status===-1||R.status===-2?(I=new Error(R.message),I.name=R.name,I.status=R.status,I.code=R.name):(R.status===404?(I=new Error("Object not exists"),I.name="NoSuchKeyError",I.status=404,I.code="NoSuchKey"):R.status===412?(I=new Error("Pre condition failed"),I.name="PreconditionFailedError",I.status=412,I.code="PreconditionFailed"):(I=new Error("Unknow error, status: "+R.status),I.name="UnknowError",I.status=R.status),I.requestId=R.headers["x-oss-request-id"],I.host=""),Y.next=30;break;case 5:return U=String(R.data),x("request response error data: %s",U),M=void 0,Y.prev=8,Y.next=11,this.parseXML(U)||{};case 11:M=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),x(U),Y.t0.message+=`
raw xml: `+U,Y.t0.status=R.status,Y.t0.requestId=R.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:H=M.Message||"unknow request error, status: "+R.status,M.Condition&&(H+=" (condition: "+M.Condition+")"),I=new Error(H),I.name=M.Code?M.Code+"Error":"UnknowError",I.status=R.status,I.code=M.Code,I.requestId=M.RequestId,I.hostId=M.HostId,I.serverTime=M.ServerTime;case 30:return x("generate error %j",I),Y.abrupt("return",I);case 32:case"end":return Y.stop()}},W,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,A,v){(function(h){"use strict";function g(T){return T&&T.__esModule?T:{default:T}}function o(T,S){if(!(this instanceof o))return new o(T,S);p.call(this,S),this.file=T,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var s=n("babel-runtime/core-js/array/from"),d=g(s),u=n("babel-runtime/regenerator"),e=g(u),a=n("is-type-of"),r=n("util"),c=n("path"),f=n("mime"),l=n("copy-to"),x=v;x.multipartUpload=e.default.mark(function T(S,m,b){var O,C,_,L,D,N,j,z,V;return e.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.resetCancelFlag(),b=b||{},!b.checkpoint||!b.checkpoint.uploadId){G.next=6;break}return G.next=5,this._resumeMultipart(b.checkpoint,b);case 5:return G.abrupt("return",G.sent);case 6:return O=102400,b.mime||(a.file(m)?b.mime=f.getType(c.extname(m.name)):a.blob(m)?b.mime=m.type:b.mime=f.getType(c.extname(m))),b.headers=b.headers||{},this._convertMetaToHeaders(b.meta,b.headers),G.next=12,this._getFileSize(m);case 12:if(!((C=G.sent)<O)){G.next=25;break}return _=this._createStream(m,0,C),b.contentLength=C,G.next=18,this.putStream(S,_,b);case 18:if(L=G.sent,!b||!b.progress){G.next=22;break}return G.next=22,b.progress(1);case 22:return D={res:L.res,bucket:this.options.bucket,name:S,etag:L.res.headers.etag},(b.headers&&b.headers["x-oss-callback"]||b.callback)&&(D.data=L.data),G.abrupt("return",D);case 25:if(!(b.partSize&&b.partSize<O)){G.next=27;break}throw new Error("partSize must not be smaller than "+O);case 27:return G.next=29,this.initMultipartUpload(S,b);case 29:if(N=G.sent,j=N.uploadId,z=this._getPartSize(C,b.partSize),V={file:m,name:S,fileSize:C,partSize:z,uploadId:j,doneParts:[]},!b||!b.progress){G.next=36;break}return G.next=36,b.progress(0,V,N.res);case 36:return G.next=38,this._resumeMultipart(V,b);case 38:return G.abrupt("return",G.sent);case 39:case"end":return G.stop()}},T,this)}),x._resumeMultipart=e.default.mark(function T(S,m){var b,O,C,_,L,D,N,j,z,V,G,Z,F,ee,$,W,R,I,U,M,H;return e.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(!this.isCancel()){Y.next=2;break}throw this._makeCancelEvent();case 2:if(b=S.file,O=S.fileSize,C=S.partSize,_=S.uploadId,L=S.doneParts,D=S.name,N=[],L.length>0&&l(L).to(N),j=this._divideParts(O,C),z=j.length,V=!1,G=e.default.mark(function oe(ne,ue){var pe,Q,J;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(ne.isCancel()){ie.next=21;break}return ie.prev=1,pe=j[ue-1],Q={stream:ne._createStream(b,pe.start,pe.end),size:pe.end-pe.start},ie.next=6,ne._uploadPart(D,_,ue,Q);case 6:if(J=ie.sent,ne.isCancel()||V){ie.next=13;break}if(S.doneParts.push({number:ue,etag:J.res.headers.etag}),N.push({number:ue,etag:J.res.headers.etag}),!m||!m.progress){ie.next=13;break}return ie.next=13,m.progress(L.length/z,S,J.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),ne.isCancel()){ie.next=21;break}throw ne.cancel(),ie.t0.partNum=ue,ie.t0;case 21:case"end":return ie.stop()}},oe,this,[[1,15]])}),Z=(0,d.default)(new Array(z),function(oe,ne){return ne+1}),F=N.map(function(oe){return oe.number}),ee=Z.filter(function(oe){return F.indexOf(oe)<0}),$=5,W=m.parallel||$,!this.checkBrowserAndVersion("Internet Explorer","10")&&W!==1){Y.next=26;break}R=0;case 16:if(!(R<ee.length)){Y.next=24;break}if(!this.isCancel()){Y.next=19;break}throw this._makeCancelEvent();case 19:return Y.next=21,G(this,ee[R]);case 21:R++,Y.next=16;break;case 24:Y.next=40;break;case 26:for(I=[],U=0;U<ee.length;U++)I.push(G(this,ee[U]));return Y.next=30,this._thunkPool(I,W);case 30:if(M=Y.sent,V=!0,!(M&&M.length>0)){Y.next=37;break}throw this.resetCancelFlag(),H=M[0],H.message="Failed to upload some parts with error: "+H.toString()+" part_num: "+H.partNum,H;case 37:if(!this.isCancel()){Y.next=40;break}throw I=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(D,_,N,m);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},T,this)}),a.file=function(T){return typeof File!="undefined"&&T instanceof File},a.blob=function(T){return typeof Blob!="undefined"&&T instanceof Blob},x._getFileSize=e.default.mark(function T(S){var m;return e.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!a.buffer(S)){b.next=4;break}return b.abrupt("return",S.length);case 4:if(!a.blob(S)&&!a.file(S)){b.next=6;break}return b.abrupt("return",S.size);case 6:if(!a.string(S)){b.next=11;break}return b.next=9,this._statFile(S);case 9:return m=b.sent,b.abrupt("return",m.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return b.stop()}},T,this)});var E=n("stream"),p=E.Readable;r.inherits(o,p),o.prototype.readFileAndPush=function(T){if(this.fileBuffer)for(var S=!0;S&&this.fileBuffer&&this.start<this.fileBuffer.length;){var m=this.start,b=m+T;b=b>this.fileBuffer.length?this.fileBuffer.length:b,this.start=b,S=this.push(this.fileBuffer.slice(m,b))}},o.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 S=this;this.reader.onload=function(m){S.fileBuffer=new h(new Uint8Array(m.target.result)),S.file=null,S.readFileAndPush(T)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(T)},x._createStream=function(T,S,m){if(a.blob(T)||a.file(T))return new o(T.slice(S,m));throw new Error("_createStream requires File/String.")},x._getPartSize=function(T,S){return S?Math.max(Math.ceil(T/1e4),S):1048576},x._divideParts=function(T,S){for(var m=Math.ceil(T/S),b=[],O=0;O<m;O++){var C=S*O,_=Math.min(C+S,T);b.push({start:C,end:_})}return b},x._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,A,v){"use strict";function h(S){return S&&S.__esModule?S:{default:S}}var g=n("babel-runtime/core-js/object/keys"),o=h(g),s=n("babel-runtime/regenerator"),d=h(s),u=n("debug")("ali-oss:object"),e=n("utility"),a=n("fs"),r=n("is-type-of"),c=n("url"),f=n("copy-to"),l=n("path"),x=n("mime"),E=n("../common/callback"),p=n("../common/signUtils"),T=v;T.append=d.default.mark(function S(m,b,O){var C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",_.next=6,this.put(m,b,O);case 6:return C=_.sent,C.nextAppendPosition=C.res.headers["x-oss-next-append-position"],_.abrupt("return",C);case 9:case"end":return _.stop()}},S,this)}),T.put=d.default.mark(function S(m,b,O){var C,_,L,D,N,j;return d.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:if(C=void 0,O=O||{},!r.buffer(b)){z.next=6;break}C=b,z.next=18;break;case 6:if(!r.blob(b)&&!r.file(b)){z.next=17;break}return O.mime||(r.file(b)?O.mime=x.getType(l.extname(b.name)):O.mime=b.type),_=this._createStream(b,0,b.size),z.next=11,this._getFileSize(b);case 11:return O.contentLength=z.sent,z.next=14,this.putStream(m,_,O);case 14:return z.abrupt("return",z.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),L=O.method||"PUT",D=this._objectRequestParams(L,m,O),E.encodeCallback(D,O),D.mime=O.mime,D.content=C,D.successStatuses=[200],z.next=28,this.request(D);case 28:return N=z.sent,j={name:m,url:this._objectUrl(m),res:N.res},D.headers&&D.headers["x-oss-callback"]&&(j.data=JSON.parse(N.data.toString())),z.abrupt("return",j);case 32:case"end":return z.stop()}},S,this)}),T.putStream=d.default.mark(function S(m,b,O){var C,_,L,D;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return O=O||{},O.headers=O.headers||{},O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),C=O.method||"PUT",_=this._objectRequestParams(C,m,O),E.encodeCallback(_,O),_.mime=O.mime,_.stream=b,_.successStatuses=[200],N.next=12,this.request(_);case 12:return L=N.sent,D={name:m,url:this._objectUrl(m),res:L.res},_.headers&&_.headers["x-oss-callback"]&&(D.data=JSON.parse(L.data.toString())),N.abrupt("return",D);case 16:case"end":return N.stop()}},S,this)}),T.head=d.default.mark(function S(m,b){var O,C,_;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return O=this._objectRequestParams("HEAD",m,b),O.successStatuses=[200,304],L.next=4,this.request(O);case 4:return C=L.sent,_={meta:null,res:C.res,status:C.status},C.status===200&&(0,o.default)(C.headers).forEach(function(D){D.indexOf("x-oss-meta-")===0&&(_.meta||(_.meta={}),_.meta[D.substring(11)]=C.headers[D])}),L.abrupt("return",_);case 8:case"end":return L.stop()}},S,this)}),T.get=d.default.mark(function S(m,b,O){var C,_,L,D;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return C=null,_=!1,r.writableStream(b)?C=b:r.string(b)?(C=a.createWriteStream(b),_=!0):O=b,O=O||{},O.process&&(O.subres=O.subres||{},O.subres["x-oss-process"]=O.process),L=void 0,N.prev=6,D=this._objectRequestParams("GET",m,O),D.writeStream=C,D.successStatuses=[200,206,304],N.next=12,this.request(D);case 12:L=N.sent,_&&C.destroy(),N.next=24;break;case 16:if(N.prev=16,N.t0=N.catch(6),!_){N.next=23;break}return C.destroy(),u("get error: %s, delete the exists file %s",N.t0,b),N.next=23,this._deleteFileSafe(b);case 23:throw N.t0;case 24:return N.abrupt("return",{res:L.res,content:L.data});case 25:case"end":return N.stop()}},S,this,[[6,16]])}),T.getStream=d.default.mark(function S(m,b){var O,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},O=this._objectRequestParams("GET",m,b),O.customResponse=!0,O.successStatuses=[200,206,304],_.next=6,this.request(O);case 6:return C=_.sent,_.abrupt("return",{stream:C.res,res:{status:C.status,headers:C.headers}});case 8:case"end":return _.stop()}},S,this)}),T.delete=d.default.mark(function S(m,b){var O,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return O=this._objectRequestParams("DELETE",m,b),O.successStatuses=[204],_.next=4,this.request(O);case 4:return C=_.sent,_.abrupt("return",{res:C.res});case 6:case"end":return _.stop()}},S,this)}),T.deleteMulti=d.default.mark(function S(m,b){var O,C,_,L,D,N;return d.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:for(b=b||{},O=`<?xml version="1.0" encoding="UTF-8"?>
<Delete>
`,b.quiet?O+=` <Quiet>true</Quiet>
`:O+=` <Quiet>false</Quiet>
`,C=0;C<m.length;C++)O+=" <Object><Key>"+e.escape(this._objectName(m[C]))+`</Key></Object>
`;return O+="</Delete>",u("delete multi objects: %s",O),b.subres="delete",_=this._objectRequestParams("POST","",b),_.mime="xml",_.content=O,_.xmlResponse=!0,_.successStatuses=[200],j.next=14,this.request(_);case 14:return L=j.sent,D=L.data,N=D&&D.Deleted||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(z){return z.Key})),j.abrupt("return",{res:L.res,deleted:N});case 19:case"end":return j.stop()}},S,this)}),T.copy=d.default.mark(function S(m,b,O){var C,_,L;return d.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return O=O||{},O.headers=O.headers||{},(0,o.default)(O.headers).forEach(function(N){O.headers["x-oss-copy-source-"+N.toLowerCase()]=O.headers[N]}),O.meta&&(O.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(O.meta,O.headers),b=b[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(b):"/"+encodeURIComponent(b.slice(1)),O.headers["x-oss-copy-source"]=b,C=this._objectRequestParams("PUT",m,O),C.xmlResponse=!0,C.successStatuses=[200,304],D.next=12,this.request(C);case 12:return _=D.sent,L=_.data,L&&(L={etag:L.ETag,lastModified:L.LastModified}),D.abrupt("return",{data:L,res:_.res});case 16:case"end":return D.stop()}},S,this)}),T.putMeta=d.default.mark(function S(m,b,O){return d.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.copy(m,m,{meta:b||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}},S,this)}),T.list=d.default.mark(function S(m,b){var O,C,_,L,D;return d.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return O=this._objectRequestParams("GET","",b),O.query=m,O.xmlResponse=!0,O.successStatuses=[200],N.next=6,this.request(O);case 6:return C=N.sent,_=C.data.Contents,L=this,_&&(Array.isArray(_)||(_=[_]),_=_.map(function(j){return{name:j.Key,url:L._objectUrl(j.Key),lastModified:j.LastModified,etag:j.ETag,type:j.Type,size:Number(j.Size),storageClass:j.StorageClass,owner:{id:j.Owner.ID,displayName:j.Owner.DisplayName}}})),D=C.data.CommonPrefixes||null,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(j){return j.Prefix})),N.abrupt("return",{res:C.res,objects:_,prefixes:D,nextMarker:C.data.NextMarker||null,isTruncated:C.data.IsTruncated==="true"});case 13:case"end":return N.stop()}},S,this)}),T.putACL=d.default.mark(function S(m,b,O){var C,_;return d.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=b,m=this._objectName(m),C=this._objectRequestParams("PUT",m,O),C.successStatuses=[200],L.next=9,this.request(C);case 9:return _=L.sent,L.abrupt("return",{res:_.res});case 11:case"end":return L.stop()}},S,this)}),T.getACL=d.default.mark(function S(m,b){var O,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},b.subres="acl",m=this._objectName(m),O=this._objectRequestParams("GET",m,b),O.successStatuses=[200],O.xmlResponse=!0,_.next=8,this.request(O);case 8:return C=_.sent,_.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 _.stop()}},S,this)}),T.restore=d.default.mark(function S(m,b){var O,C;return d.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=b||{},b.subres="restore",O=this._objectRequestParams("POST",m,b),O.successStatuses=[202],_.next=6,this.request(O);case 6:return C=_.sent,_.abrupt("return",{res:C.res});case 8:case"end":return _.stop()}},S,this)}),T.signatureUrl=function(S,m){m=m||{},S=this._objectName(S),m.method=m.method||"GET";var b=e.timestamp()+(m.expires||1800),O={bucket:this.options.bucket,object:S},C=this._getResource(O);this.options.stsToken&&(m["security-token"]=this.options.stsToken);var _=p._signatureForURL(this.options.accessKeySecret,m,C,b),L=c.parse(this._getReqUrl(O));return L.query={OSSAccessKeyId:this.options.accessKeyId,Expires:b,Signature:_.Signature},f(_.subResource).to(L.query),L.format()},T.getObjectUrl=function(S,m){return m?m[m.length-1]!=="/"&&(m+="/"):m=this.options.endpoint.format(),m+this._escape(this._objectName(S))},T._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},T.generateObjectUrl=function(S,m){if(m)m[m.length-1]!=="/"&&(m+="/");else{m=this.options.endpoint.format();var b=c.parse(m),O=this.options.bucket;b.hostname=O+"."+b.hostname,b.host=O+"."+b.host,m=b.format()}return m+this._escape(this._objectName(S))},T._objectRequestParams=function(S,m,b){if(!this.options.bucket)throw new Error("Please create a bucket first");b=b||{},m=this._objectName(m);var O={object:m,bucket:this.options.bucket,method:S,subres:b&&b.subres,timeout:b&&b.timeout,ctx:b&&b.ctx};return b.headers&&(O.headers={},f(b.headers).to(O.headers)),O},T._objectName=function(S){return S.replace(/^\/+/,"")},T._statFile=function(S){return function(m){a.stat(S,m)}},T._convertMetaToHeaders=function(S,m){S&&(0,o.default)(S).forEach(function(b){m["x-oss-meta-"+b]=S[b]})},T._deleteFileSafe=function(S){return function(m){a.exists(S,function(b){b?a.unlink(S,function(O){O&&u("unlink %j error: %s",S,O),m()}):m()})}}},{"../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,A,v){"use strict";v.version="5.3.1"},{}],6:[function(n,A,v){"use strict";function h(l){return l&&l.__esModule?l:{default:l}}function g(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"}function o(l){if(!l)return!1;var x=l.constructor;return!!x&&(x.name==="GeneratorFunction"||x.displayName==="GeneratorFunction"||g(x.prototype)||g(l.prototype))}function s(l,x){var E=new l(x),p=(0,r.default)(E),T=(0,r.default)((0,e.default)(E));p.concat(T).forEach(function(S){o(E[S])?this[S]=c.wrap(E[S]).bind(E):this[S]=E[S]},this)}function d(l){if(!(this instanceof d))return new d(l);s.call(this,f,l)}var u=n("babel-runtime/core-js/object/get-prototype-of"),e=h(u),a=n("babel-runtime/core-js/object/keys"),r=h(a),c=n("co"),f=n("./client");A.exports=d,d.STS=function l(x){if(!(this instanceof l))return new l(x);s.call(this,f.STS,x)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,A,v){(function(h){"use strict";function g(e){return e&&e.__esModule?e:{default:e}}var o=n("babel-runtime/core-js/object/keys"),s=g(o),d=n("babel-runtime/core-js/json/stringify"),u=g(d);v.encodeCallback=function(e,a){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var c=new h((0,u.default)(r)).toString("base64");if(e.headers["x-oss-callback"]=c,a.callback.customValue){var f={};(0,s.default)(a.callback.customValue).forEach(function(l){f["x:"+l]=a.callback.customValue[l]}),e.headers["x-oss-callback-var"]=new h((0,u.default)(f)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,A,v){"use strict";var h=n("babel-runtime/regenerator"),g=function(u){return u&&u.__esModule?u:{default:u}}(h),o=n("copy-to"),s=n("./callback"),d=v;d.listUploads=g.default.mark(function u(e,a){var r,c,f,l;return g.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a=a||{},r={},o(a).to(r),r.subres="uploads",c=this._objectRequestParams("GET","",r),c.query=e,c.xmlResponse=!0,c.successStatuses=[200],x.next=10,this.request(c);case 10:return f=x.sent,l=f.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(E){return{name:E.Key,uploadId:E.UploadId,initiated:E.Initiated}}),x.abrupt("return",{res:f.res,uploads:l,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return x.stop()}},u,this)}),d.listParts=g.default.mark(function u(e,a,r,c){var f,l,x;return g.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=c||{},f={},o(c).to(f),f.subres={uploadId:a},l=this._objectRequestParams("GET",e,f),l.query=r,l.xmlResponse=!0,l.successStatuses=[200],E.next=10,this.request(l);case 10:return x=E.sent,E.abrupt("return",{res:x.res,uploadId:x.data.UploadId,bucket:x.data.Bucket,name:x.data.Key,partNumberMarker:x.data.PartNumberMarker,nextPartNumberMarker:x.data.NextPartNumberMarker,maxParts:x.data.MaxParts,isTruncated:x.data.IsTruncated,parts:x.data.Part||[]});case 12:case"end":return E.stop()}},u,this)}),d.abortMultipartUpload=g.default.mark(function u(e,a,r){var c,f,l;return g.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return this.cancel(),r=r||{},c={},o(r).to(c),c.subres={uploadId:a},f=this._objectRequestParams("DELETE",e,c),f.successStatuses=[204],x.next=9,this.request(f);case 9:return l=x.sent,x.abrupt("return",{res:l.res});case 11:case"end":return x.stop()}},u,this)}),d.initMultipartUpload=g.default.mark(function u(e,a){var r,c,f;return g.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},r={},o(a).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(a.meta,r.headers),r.subres="uploads",c=this._objectRequestParams("POST",e,r),c.mime=a.mime,c.xmlResponse=!0,c.successStatuses=[200],l.next=12,this.request(c);case 12:return f=l.sent,l.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return l.stop()}},u,this)}),d.uploadPart=g.default.mark(function u(e,a,r,c,f,l,x){var E;return g.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return E={stream:this._createStream(c,f,l),size:l-f},p.next=3,this._uploadPart(e,a,r,E,x);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},u,this)}),d.completeMultipartUpload=g.default.mark(function u(e,a,r,c){var f,l,x,E,p,T,S,m;return g.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(f=r.concat().sort(function(O,C){return O.number-C.number}).filter(function(O,C,_){return!C||O.number!==_[C-1].number}),l=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,x=0;x<f.length;x++)E=f[x],l+=`<Part>
`,l+="<PartNumber>"+E.number+`</PartNumber>
`,l+="<ETag>"+E.etag+`</ETag>
`,l+=`</Part>
`;return l+="</CompleteMultipartUpload>",c=c||{},p={},o(c).to(p),p.subres={uploadId:a},T=this._objectRequestParams("POST",e,p),s.encodeCallback(T,p),T.mime="xml",T.content=l,T.headers&&T.headers["x-oss-callback"]||(T.xmlResponse=!0),T.successStatuses=[200],b.next=16,this.request(T);case 16:return S=b.sent,m={res:S.res,bucket:T.bucket,name:e,etag:S.res.headers.etag},T.headers&&T.headers["x-oss-callback"]&&(m.data=JSON.parse(S.data.toString())),b.abrupt("return",m);case 20:case"end":return b.stop()}},u,this)}),d._uploadPart=g.default.mark(function u(e,a,r,c,f){var l,x,E;return g.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f=f||{},l={},o(f).to(l),l.headers={"Content-Length":c.size},l.subres={partNumber:r,uploadId:a},x=this._objectRequestParams("PUT",e,l),x.mime=l.mime,x.stream=c.stream,x.successStatuses=[200],p.next=11,this.request(x);case 11:return E=p.sent,c.stream=null,x.stream=null,p.abrupt("return",{name:e,etag:E.res.headers.etag,res:E.res});case 15:case"end":return p.stop()}},u,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,A,v){(function(h){"use strict";function g(r){return r&&r.__esModule?r:{default:r}}var o=n("babel-runtime/core-js/json/stringify"),s=g(o),d=n("babel-runtime/core-js/object/keys"),u=g(d),e=n("./../../shims/crypto/crypto.js"),a=n("is-type-of");v.buildCanonicalizedResource=function(r,c){var f=""+r,l="?";if(a.string(c)&&c.trim()!=="")f+=l+c;else if(a.array(c))c.sort(),f+=l+c.join("&");else if(c){var x=function(T,S){return T[0]>S[0]?1:T[0]<S[0]?-1:0},E=function(T){f+=l+T,c[T]&&(f+="="+c[T]),l="&"};(0,u.default)(c).sort(x).forEach(E)}return f},v.buildCanonicalString=function(r,c,f,l){f=f||{};var x=f.headers||{},E=[],p={},T=[r.toUpperCase(),x["Content-Md5"]||"",x["Content-Type"]||x["Content-Type".toLowerCase()],l||x["x-oss-date"]];return(0,u.default)(x).forEach(function(S){var m=S.toLowerCase();m.indexOf("x-oss-")===0&&(p[m]=String(x[S]).trim())}),(0,u.default)(p).sort().forEach(function(S){E.push(S+":"+p[S])}),T=T.concat(E),T.push(this.buildCanonicalizedResource(c,f.parameters)),T.join(`
`)},v.computeSignature=function(r,c){return e.createHmac("sha1",r).update(new h(c,"utf8")).digest("base64")},v.authorization=function(r,c,f){return"OSS "+r+":"+this.computeSignature(c,f)},v._signatureForURL=function(r,c,f,l){var x={},E={};if(c.process&&(E["x-oss-process"]=c.process),c.response&&(0,u.default)(c.response).forEach(function(m){var b="response-"+m.toLowerCase();E[b]=c.response[m]}),(0,u.default)(c).forEach(function(m){var b=m.toLowerCase(),O=c[m];b.indexOf("x-oss-")===0?x[b]=O:b.indexOf("content-md5")===0||b.indexOf("content-type")===0?x[m]=O:b!=="expires"&&b!=="response"&&b!=="process"&&b!=="method"&&(E[b]=O)}),Object.prototype.hasOwnProperty.call(c,"security-token")&&(E["security-token"]=c["security-token"]),Object.prototype.hasOwnProperty.call(c,"callback")){var p={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};if(c.callback.host&&(p.callbackHost=c.callback.host),c.callback.contentType&&(p.callbackBodyType=c.callback.contentType),E.callback=new h((0,s.default)(p)).toString("base64"),c.callback.customValue){var T={};(0,u.default)(c.callback.customValue).forEach(function(m){T["x:"+m]=c.callback.customValue[m]}),E["callback-var"]=new h((0,s.default)(T)).toString("base64")}}var S=this.buildCanonicalString(c.method,f,{headers:x,parameters:E},l.toString());return{Signature:this.computeSignature(r,S),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,A,v){"use strict";var h=n("babel-runtime/regenerator"),g=function(e){return e&&e.__esModule?e:{default:e}}(h),o=n("co"),s=n("co-priority-queue"),d=n("any-promise"),u=v;u._thunkPool=function(e,a){function r(E,p){++l===E.length&&p(x)}function c(E,p){function T(){var _;return g.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:_=void 0;case 1:if(f.isCancel()){L.next=9;break}return L.next=4,b.next();case 4:return _=L.sent,L.next=7,_();case 7:L.next=1;break;case 9:O+=1,O===E&&(b.fns=[],b.buffer=[],p(x));case 11:case"end":return L.stop()}},m,this)}function S(_){console.error(_.stack)}for(var m=g.default.mark(T),b=new s,O=0,C=0;C<E;C++)o(T).catch(S);return function(_,L){return function(D){b.push(g.default.mark(function N(){return g.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.prev=0,j.t0=D,j.next=4,_;case 4:j.t1=j.sent,(0,j.t0)(null,j.t1),j.next=11;break;case 8:j.prev=8,j.t2=j.catch(0),D(j.t2);case 11:case"end":return j.stop()}},N,this,[[0,8]])}),L)}}}var f=this,l=0,x=[];return new d(function(E){function p(O){return g.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,m(e[O]);case 2:r(e,E);case 3:case"end":return C.stop()}},S,this)}function T(O){x.push(O),r(e,E)}for(var S=g.default.mark(p),m=new c(a,E),b=0;b<e.length;b++)o(p(b)).catch(T)})},u.cancel=function(){this.options.cancelFlag=!0},u.isCancel=function(){return this.options.cancelFlag},u.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,A,v){"use strict";v._isIP=function(h){var g=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,o=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return g.test(h)||o.test(h)}},{}],12:[function(n,A,v){function h(){}A.exports=h,A.exports.HttpsAgent=h},{}],13:[function(n,A,v){A.exports=n("./register")().Promise},{"./register":15}],14:[function(n,A,v){"use strict";var h=null;A.exports=function(g,o){return function(s,d){s=s||null,d=d||{};var u=d.global!==!1;if(h===null&&u&&(h=g["@@any-promise/REGISTRATION"]||null),h!==null&&s!==null&&h.implementation!==s)throw new Error('any-promise already defined as "'+h.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return h===null&&(h=s!==null&&d.Promise!==void 0?{Promise:d.Promise,implementation:s}:o(s),u&&(g["@@any-promise/REGISTRATION"]=h)),h}}},{}],15:[function(n,A,v){"use strict";function h(){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"}}A.exports=n("./loader")(window,h)},{"./loader":14}],16:[function(n,A,v){A.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,A,v){A.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,A,v){A.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,A,v){A.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,A,v){A.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,A,v){A.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,A,v){A.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,A,v){A.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,A,v){A.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,A,v){A.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,A,v){A.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,A,v){A.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,A,v){"use strict";v.__esModule=!0,v.default=function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,A,v){"use strict";v.__esModule=!0;var h=n("../core-js/object/define-property"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);v.default=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,g.default)(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}()},{"../core-js/object/define-property":20}],32:[function(n,A,v){"use strict";function h(e){return e&&e.__esModule?e:{default:e}}v.__esModule=!0;var g=n("../core-js/symbol/iterator"),o=h(g),s=n("../core-js/symbol"),d=h(s),u=typeof d.default=="function"&&typeof o.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":typeof e};v.default=typeof d.default=="function"&&u(o.default)==="symbol"?function(e){return e===void 0?"undefined":u(e)}:function(e){return e&&typeof d.default=="function"&&e.constructor===d.default&&e!==d.default.prototype?"symbol":e===void 0?"undefined":u(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,A,v){A.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,A,v){"use strict";function h(E){var p=E.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=E.indexOf("=");return T===-1&&(T=p),[T,T===p?0:4-T%4]}function g(E){var p=h(E),T=p[0],S=p[1];return 3*(T+S)/4-S}function o(E,p,T){return 3*(p+T)/4-T}function s(E){for(var p,T=h(E),S=T[0],m=T[1],b=new c(o(E,S,m)),O=0,C=m>0?S-4:S,_=0;_<C;_+=4)p=r[E.charCodeAt(_)]<<18|r[E.charCodeAt(_+1)]<<12|r[E.charCodeAt(_+2)]<<6|r[E.charCodeAt(_+3)],b[O++]=p>>16&255,b[O++]=p>>8&255,b[O++]=255&p;return m===2&&(p=r[E.charCodeAt(_)]<<2|r[E.charCodeAt(_+1)]>>4,b[O++]=255&p),m===1&&(p=r[E.charCodeAt(_)]<<10|r[E.charCodeAt(_+1)]<<4|r[E.charCodeAt(_+2)]>>2,b[O++]=p>>8&255,b[O++]=255&p),b}function d(E){return a[E>>18&63]+a[E>>12&63]+a[E>>6&63]+a[63&E]}function u(E,p,T){for(var S,m=[],b=p;b<T;b+=3)S=(E[b]<<16&16711680)+(E[b+1]<<8&65280)+(255&E[b+2]),m.push(d(S));return m.join("")}function e(E){for(var p,T=E.length,S=T%3,m=[],b=0,O=T-S;b<O;b+=16383)m.push(u(E,b,b+16383>O?O:b+16383));return S===1?(p=E[T-1],m.push(a[p>>2]+a[p<<4&63]+"==")):S===2&&(p=(E[T-2]<<8)+E[T-1],m.push(a[p>>10]+a[p>>4&63]+a[p<<2&63]+"=")),m.join("")}v.byteLength=g,v.toByteArray=s,v.fromByteArray=e;for(var a=[],r=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,x=f.length;l<x;++l)a[l]=f[l],r[f.charCodeAt(l)]=l;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],35:[function(n,A,v){!function(h,g,o){A!==void 0&&A.exports?A.exports=o():typeof he=="function"&&he.amd?he("bowser",o):h.bowser=o()}(this,0,function(){function h(r){function c(W){var R=r.match(W);return R&&R.length>1&&R[1]||""}function f(W){var R=r.match(W);return R&&R.length>1&&R[2]||""}var l,x=c(/(ipod|iphone|ipad)/i).toLowerCase(),E=/like android/i.test(r),p=!E&&/android/i.test(r),T=/nexus\s*[0-6]\s*/i.test(r),S=!T&&/nexus\s*[0-9]+/i.test(r),m=/CrOS/.test(r),b=/silk/i.test(r),O=/sailfish/i.test(r),C=/tizen/i.test(r),_=/(web|hpw)os/i.test(r),L=/windows phone/i.test(r),D=(/SamsungBrowser/i.test(r),!L&&/windows/i.test(r)),N=!x&&!b&&/macintosh/i.test(r),j=!p&&!O&&!C&&!_&&/linux/i.test(r),z=f(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),V=c(/version\/(\d+(\.\d+)?)/i),G=/tablet/i.test(r)&&!/tablet pc/i.test(r),Z=!G&&/[^-]mobi/i.test(r),F=/xbox/i.test(r);/opera/i.test(r)?l={name:"Opera",opera:e,version:V||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?l={name:"Opera",opera:e,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||V}:/SamsungBrowser/i.test(r)?l={name:"Samsung Internet for Android",samsungBrowser:e,version:V||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(r)?l={name:"Opera Coast",coast:e,version:V||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(r)?l={name:"Yandex Browser",yandexbrowser:e,version:V||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?l={name:"UC Browser",ucbrowser:e,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?l={name:"Maxthon",maxthon:e,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?l={name:"Epiphany",epiphany:e,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?l={name:"Puffin",puffin:e,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?l={name:"Sleipnir",sleipnir:e,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?l={name:"K-Meleon",kMeleon:e,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:L?(l={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},z?(l.msedge=e,l.version=z):(l.msie=e,l.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?l={name:"Internet Explorer",msie:e,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:m?l={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?l={name:"Microsoft Edge",msedge:e,version:z}:/vivaldi/i.test(r)?l={name:"Vivaldi",vivaldi:e,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||V}:O?l={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?l={name:"SeaMonkey",seamonkey:e,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(l={name:"Firefox",firefox:e,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(l.firefoxos=e,l.osname="Firefox OS")):b?l={name:"Amazon Silk",silk:e,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?l={name:"PhantomJS",phantom:e,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?l={name:"SlimerJS",slimer:e,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?l={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:V||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:_?(l={name:"WebOS",osname:"WebOS",webos:e,version:V||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(l.touchpad=e)):/bada/i.test(r)?l={name:"Bada",osname:"Bada",bada:e,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:C?l={name:"Tizen",osname:"Tizen",tizen:e,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||V}:/qupzilla/i.test(r)?l={name:"QupZilla",qupzilla:e,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||V}:/chromium/i.test(r)?l={name:"Chromium",chromium:e,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||V}:/chrome|crios|crmo/i.test(r)?l={name:"Chrome",chrome:e,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?l={name:"Android",version:V}:/safari|applewebkit/i.test(r)?(l={name:"Safari",safari:e},V&&(l.version=V)):x?(l={name:x=="iphone"?"iPhone":x=="ipad"?"iPad":"iPod"},V&&(l.version=V)):l=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:c(/googlebot\/(\d+(\.\d+))/i)||V}:{name:c(/^(.*)\/(.*) /),version:f(/^(.*)\/(.*) /)},!l.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(l.name=l.name||"Blink",l.blink=e):(l.name=l.name||"Webkit",l.webkit=e),!l.version&&V&&(l.version=V)):!l.opera&&/gecko\//i.test(r)&&(l.name=l.name||"Gecko",l.gecko=e,l.version=l.version||c(/gecko\/(\d+(\.\d+)?)/i)),l.windowsphone||!p&&!l.silk?!l.windowsphone&&x?(l[x]=e,l.ios=e,l.osname="iOS"):N?(l.mac=e,l.osname="macOS"):F?(l.xbox=e,l.osname="Xbox"):D?(l.windows=e,l.osname="Windows"):j&&(l.linux=e,l.osname="Linux"):(l.android=e,l.osname="Android");var ee="";l.windows?ee=function(W){switch(W){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):l.windowsphone?ee=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):l.mac?(ee=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),ee=ee.replace(/[_\s]/g,".")):x?(ee=c(/os (\d+([_\s]\d+)*) like mac os x/i),ee=ee.replace(/[_\s]/g,".")):p?ee=c(/android[ \/-](\d+(\.\d+)*)/i):l.webos?ee=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):l.blackberry?ee=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):l.bada?ee=c(/bada\/(\d+(\.\d+)*)/i):l.tizen&&(ee=c(/tizen[\/\s](\d+(\.\d+)*)/i)),ee&&(l.osversion=ee);var $=!l.windows&&ee.split(".")[0];return G||S||x=="ipad"||p&&($==3||$>=4&&!Z)||l.silk?l.tablet=e:(Z||x=="iphone"||x=="ipod"||p||T||l.blackberry||l.webos||l.bada)&&(l.mobile=e),l.msedge||l.msie&&l.version>=10||l.yandexbrowser&&l.version>=15||l.vivaldi&&l.version>=1||l.chrome&&l.version>=20||l.samsungBrowser&&l.version>=4||l.firefox&&l.version>=20||l.safari&&l.version>=6||l.opera&&l.version>=10||l.ios&&l.osversion&&l.osversion.split(".")[0]>=6||l.blackberry&&l.version>=10.1||l.chromium&&l.version>=20?l.a=e:l.msie&&l.version<10||l.chrome&&l.version<20||l.firefox&&l.version<20||l.safari&&l.version<6||l.opera&&l.version<10||l.ios&&l.osversion&&l.osversion.split(".")[0]<6||l.chromium&&l.version<20?l.c=e:l.x=e,l}function g(r){return r.split(".").length}function o(r,c){var f,l=[];if(Array.prototype.map)return Array.prototype.map.call(r,c);for(f=0;f<r.length;f++)l.push(c(r[f]));return l}function s(r){for(var c=Math.max(g(r[0]),g(r[1])),f=o(r,function(l){var x=c-g(l);return l+=new Array(x+1).join(".0"),o(l.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});--c>=0;){if(f[0][c]>f[1][c])return 1;if(f[0][c]!==f[1][c])return-1;if(c===0)return 0}}function d(r,c,f){var l=a;typeof c=="string"&&(f=c,c=void 0),c===void 0&&(c=!1),f&&(l=h(f));var x=""+l.version;for(var E in r)if(r.hasOwnProperty(E)&&l[E]){if(typeof r[E]!="string")throw new Error("Browser version in the minVersion map should be a string: "+E+": "+String(r));return s([x,r[E]])<0}return c}function u(r,c,f){return!d(r,c,f)}var e=!0,a=h(typeof navigator!="undefined"&&navigator.userAgent||"");return a.test=function(r){for(var c=0;c<r.length;++c){var f=r[c];if(typeof f=="string"&&f in a)return!0}return!1},a.isUnsupportedBrowser=d,a.compareVersions=s,a.check=u,a._detect=h,a.detect=h,a})},{}],36:[function(n,A,v){},{}],37:[function(n,A,v){function h(a){if(a&&!u(a))throw new Error("Unknown encoding: "+a)}function g(a){return a.toString(this.encoding)}function o(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function s(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var d=n("buffer").Buffer,u=d.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},e=v.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),h(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=g)}this.charBuffer=new d(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(a){for(var r="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),r=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=r.charCodeAt(r.length-1);if(!(l>=55296&&l<=56319)){if(this.charReceived=this.charLength=0,a.length===0)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(a);var f=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,f),f-=this.charReceived),r+=a.toString(this.encoding,0,f);var f=r.length-1,l=r.charCodeAt(f);if(l>=55296&&l<=56319){var x=this.surrogateSize;return this.charLength+=x,this.charReceived+=x,this.charBuffer.copy(this.charBuffer,x,0,x),a.copy(this.charBuffer,0,0,x),r.substring(0,f)}return r},e.prototype.detectIncompleteChar=function(a){for(var r=a.length>=3?3:a.length;r>0;r--){var c=a[a.length-r];if(r==1&&c>>5==6){this.charLength=2;break}if(r<=2&&c>>4==14){this.charLength=3;break}if(r<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=r},e.prototype.end=function(a){var r="";if(a&&a.length&&(r=this.write(a)),this.charReceived){var c=this.charReceived,f=this.charBuffer,l=this.encoding;r+=f.slice(0,c).toString(l)}return r}},{buffer:38}],38:[function(n,A,v){(function(h){"use strict";function g(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,i){if(g()<i)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(i),t.__proto__=s.prototype):(t===null&&(t=new s(i)),t.length=i),t}function s(t,i,P){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,i,P);if(typeof t=="number"){if(typeof i=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,t)}return d(this,t,i,P)}function d(t,i,P,y){if(typeof i=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&i instanceof ArrayBuffer?f(t,i,P,y):typeof i=="string"?r(t,i,P):l(t,i)}function u(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,i,P,y){return u(i),i<=0?o(t,i):P!==void 0?typeof y=="string"?o(t,i).fill(P,y):o(t,i).fill(P):o(t,i)}function a(t,i){if(u(i),t=o(t,i<0?0:0|x(i)),!s.TYPED_ARRAY_SUPPORT)for(var P=0;P<i;++P)t[P]=0;return t}function r(t,i,P){if(typeof P=="string"&&P!==""||(P="utf8"),!s.isEncoding(P))throw new TypeError('"encoding" must be a valid string encoding');var y=0|p(i,P);t=o(t,y);var w=t.write(i,P);return w!==y&&(t=t.slice(0,w)),t}function c(t,i){var P=i.length<0?0:0|x(i.length);t=o(t,P);for(var y=0;y<P;y+=1)t[y]=255&i[y];return t}function f(t,i,P,y){if(i.byteLength,P<0||i.byteLength<P)throw new RangeError("'offset' is out of bounds");if(i.byteLength<P+(y||0))throw new RangeError("'length' is out of bounds");return i=P===void 0&&y===void 0?new Uint8Array(i):y===void 0?new Uint8Array(i,P):new Uint8Array(i,P,y),s.TYPED_ARRAY_SUPPORT?(t=i,t.__proto__=s.prototype):t=c(t,i),t}function l(t,i){if(s.isBuffer(i)){var P=0|x(i.length);return t=o(t,P),t.length===0||i.copy(t,0,0,P),t}if(i){if(typeof ArrayBuffer!="undefined"&&i.buffer instanceof ArrayBuffer||"length"in i)return typeof i.length!="number"||q(i.length)?o(t,0):c(t,i);if(i.type==="Buffer"&&te(i.data))return c(t,i.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function x(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),s.alloc(+t)}function p(t,i){if(s.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 P=t.length;if(P===0)return 0;for(var y=!1;;)switch(i){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":case void 0:return ue(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*P;case"hex":return P>>>1;case"base64":return J(t).length;default:if(y)return ue(t).length;i=(""+i).toLowerCase(),y=!0}}function T(t,i,P){var y=!1;if((i===void 0||i<0)&&(i=0),i>this.length)return"";if((P===void 0||P>this.length)&&(P=this.length),P<=0)return"";if(P>>>=0,i>>>=0,P<=i)return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,i,P);case"utf8":case"utf-8":return z(this,i,P);case"ascii":return G(this,i,P);case"latin1":case"binary":return Z(this,i,P);case"base64":return j(this,i,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,i,P);default:if(y)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),y=!0}}function S(t,i,P){var y=t[i];t[i]=t[P],t[P]=y}function m(t,i,P,y,w){if(t.length===0)return-1;if(typeof P=="string"?(y=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,isNaN(P)&&(P=w?0:t.length-1),P<0&&(P=t.length+P),P>=t.length){if(w)return-1;P=t.length-1}else if(P<0){if(!w)return-1;P=0}if(typeof i=="string"&&(i=s.from(i,y)),s.isBuffer(i))return i.length===0?-1:b(t,i,P,y,w);if(typeof i=="number")return i&=255,s.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(t,i,P):Uint8Array.prototype.lastIndexOf.call(t,i,P):b(t,[i],P,y,w);throw new TypeError("val must be string, number or Buffer")}function b(t,i,P,y,w){function X(se,xe){return K===1?se[xe]:se.readUInt16BE(xe*K)}var K=1,me=t.length,fe=i.length;if(y!==void 0&&((y=String(y).toLowerCase())==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(t.length<2||i.length<2)return-1;K=2,me/=2,fe/=2,P/=2}var le;if(w){var ce=-1;for(le=P;le<me;le++)if(X(t,le)===X(i,ce===-1?0:le-ce)){if(ce===-1&&(ce=le),le-ce+1===fe)return ce*K}else ce!==-1&&(le-=le-ce),ce=-1}else for(P+fe>me&&(P=me-fe),le=P;le>=0;le--){for(var ge=!0,ye=0;ye<fe;ye++)if(X(t,le+ye)!==X(i,ye)){ge=!1;break}if(ge)return le}return-1}function O(t,i,P,y){P=Number(P)||0;var w=t.length-P;y?(y=Number(y))>w&&(y=w):y=w;var X=i.length;if(X%2!=0)throw new TypeError("Invalid hex string");y>X/2&&(y=X/2);for(var K=0;K<y;++K){var me=parseInt(i.substr(2*K,2),16);if(isNaN(me))return K;t[P+K]=me}return K}function C(t,i,P,y){return ie(ue(i,t.length-P),t,P,y)}function _(t,i,P,y){return ie(pe(i),t,P,y)}function L(t,i,P,y){return _(t,i,P,y)}function D(t,i,P,y){return ie(J(i),t,P,y)}function N(t,i,P,y){return ie(Q(i,t.length-P),t,P,y)}function j(t,i,P){return i===0&&P===t.length?B.fromByteArray(t):B.fromByteArray(t.slice(i,P))}function z(t,i,P){P=Math.min(t.length,P);for(var y=[],w=i;w<P;){var X=t[w],K=null,me=X>239?4:X>223?3:X>191?2:1;if(w+me<=P){var fe,le,ce,ge;switch(me){case 1:X<128&&(K=X);break;case 2:fe=t[w+1],(192&fe)==128&&(ge=(31&X)<<6|63&fe)>127&&(K=ge);break;case 3:fe=t[w+1],le=t[w+2],(192&fe)==128&&(192&le)==128&&(ge=(15&X)<<12|(63&fe)<<6|63&le)>2047&&(ge<55296||ge>57343)&&(K=ge);break;case 4:fe=t[w+1],le=t[w+2],ce=t[w+3],(192&fe)==128&&(192&le)==128&&(192&ce)==128&&(ge=(15&X)<<18|(63&fe)<<12|(63&le)<<6|63&ce)>65535&&ge<1114112&&(K=ge)}}K===null?(K=65533,me=1):K>65535&&(K-=65536,y.push(K>>>10&1023|55296),K=56320|1023&K),y.push(K),w+=me}return V(y)}function V(t){var i=t.length;if(i<=de)return String.fromCharCode.apply(String,t);for(var P="",y=0;y<i;)P+=String.fromCharCode.apply(String,t.slice(y,y+=de));return P}function G(t,i,P){var y="";P=Math.min(t.length,P);for(var w=i;w<P;++w)y+=String.fromCharCode(127&t[w]);return y}function Z(t,i,P){var y="";P=Math.min(t.length,P);for(var w=i;w<P;++w)y+=String.fromCharCode(t[w]);return y}function F(t,i,P){var y=t.length;(!i||i<0)&&(i=0),(!P||P<0||P>y)&&(P=y);for(var w="",X=i;X<P;++X)w+=ne(t[X]);return w}function ee(t,i,P){for(var y=t.slice(i,P),w="",X=0;X<y.length;X+=2)w+=String.fromCharCode(y[X]+256*y[X+1]);return w}function $(t,i,P){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+i>P)throw new RangeError("Trying to access beyond buffer length")}function W(t,i,P,y,w,X){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>w||i<X)throw new RangeError('"value" argument is out of bounds');if(P+y>t.length)throw new RangeError("Index out of range")}function R(t,i,P,y){i<0&&(i=65535+i+1);for(var w=0,X=Math.min(t.length-P,2);w<X;++w)t[P+w]=(i&255<<8*(y?w:1-w))>>>8*(y?w:1-w)}function I(t,i,P,y){i<0&&(i=4294967295+i+1);for(var w=0,X=Math.min(t.length-P,4);w<X;++w)t[P+w]=i>>>8*(y?w:3-w)&255}function U(t,i,P,y,w,X){if(P+y>t.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function M(t,i,P,y,w){return w||U(t,i,P,4,34028234663852886e22,-34028234663852886e22),re.write(t,i,P,y,23,4),P+4}function H(t,i,P,y,w){return w||U(t,i,P,8,17976931348623157e292,-17976931348623157e292),re.write(t,i,P,y,52,8),P+8}function Y(t){if(t=oe(t).replace(k,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function oe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ne(t){return t<16?"0"+t.toString(16):t.toString(16)}function ue(t,i){i=i||1/0;for(var P,y=t.length,w=null,X=[],K=0;K<y;++K){if((P=t.charCodeAt(K))>55295&&P<57344){if(!w){if(P>56319){(i-=3)>-1&&X.push(239,191,189);continue}if(K+1===y){(i-=3)>-1&&X.push(239,191,189);continue}w=P;continue}if(P<56320){(i-=3)>-1&&X.push(239,191,189),w=P;continue}P=65536+(w-55296<<10|P-56320)}else w&&(i-=3)>-1&&X.push(239,191,189);if(w=null,P<128){if((i-=1)<0)break;X.push(P)}else if(P<2048){if((i-=2)<0)break;X.push(P>>6|192,63&P|128)}else if(P<65536){if((i-=3)<0)break;X.push(P>>12|224,P>>6&63|128,63&P|128)}else{if(!(P<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;X.push(P>>18|240,P>>12&63|128,P>>6&63|128,63&P|128)}}return X}function pe(t){for(var i=[],P=0;P<t.length;++P)i.push(255&t.charCodeAt(P));return i}function Q(t,i){for(var P,y,w,X=[],K=0;K<t.length&&!((i-=2)<0);++K)P=t.charCodeAt(K),y=P>>8,w=P%256,X.push(w),X.push(y);return X}function J(t){return B.toByteArray(Y(t))}function ie(t,i,P,y){for(var w=0;w<y&&!(w+P>=i.length||w>=t.length);++w)i[w+P]=t[w];return w}function q(t){return t!==t}var B=n("base64-js"),re=n("ieee754"),te=n("isarray");v.Buffer=s,v.SlowBuffer=E,v.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.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(i){return!1}}(),v.kMaxLength=g(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,i,P){return d(null,t,i,P)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,i,P){return e(null,t,i,P)},s.allocUnsafe=function(t){return a(null,t)},s.allocUnsafeSlow=function(t){return a(null,t)},s.isBuffer=function(t){return!(t==null||!t._isBuffer)},s.compare=function(t,i){if(!s.isBuffer(t)||!s.isBuffer(i))throw new TypeError("Arguments must be Buffers");if(t===i)return 0;for(var P=t.length,y=i.length,w=0,X=Math.min(P,y);w<X;++w)if(t[w]!==i[w]){P=t[w],y=i[w];break}return P<y?-1:y<P?1:0},s.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}},s.concat=function(t,i){if(!te(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return s.alloc(0);var P;if(i===void 0)for(i=0,P=0;P<t.length;++P)i+=t[P].length;var y=s.allocUnsafe(i),w=0;for(P=0;P<t.length;++P){var X=t[P];if(!s.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(y,w),w+=X.length}return y},s.byteLength=p,s.prototype._isBuffer=!0,s.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 i=0;i<t;i+=2)S(this,i,i+1);return this},s.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 i=0;i<t;i+=4)S(this,i,i+3),S(this,i+1,i+2);return this},s.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 i=0;i<t;i+=8)S(this,i,i+7),S(this,i+1,i+6),S(this,i+2,i+5),S(this,i+3,i+4);return this},s.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?z(this,0,t):T.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||s.compare(this,t)===0},s.prototype.inspect=function(){var t="",i=v.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,i,P,y,w){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),P===void 0&&(P=t?t.length:0),y===void 0&&(y=0),w===void 0&&(w=this.length),i<0||P>t.length||y<0||w>this.length)throw new RangeError("out of range index");if(y>=w&&i>=P)return 0;if(y>=w)return-1;if(i>=P)return 1;if(i>>>=0,P>>>=0,y>>>=0,w>>>=0,this===t)return 0;for(var X=w-y,K=P-i,me=Math.min(X,K),fe=this.slice(y,w),le=t.slice(i,P),ce=0;ce<me;++ce)if(fe[ce]!==le[ce]){X=fe[ce],K=le[ce];break}return X<K?-1:K<X?1:0},s.prototype.includes=function(t,i,P){return this.indexOf(t,i,P)!==-1},s.prototype.indexOf=function(t,i,P){return m(this,t,i,P,!0)},s.prototype.lastIndexOf=function(t,i,P){return m(this,t,i,P,!1)},s.prototype.write=function(t,i,P,y){if(i===void 0)y="utf8",P=this.length,i=0;else if(P===void 0&&typeof i=="string")y=i,P=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i|=0,isFinite(P)?(P|=0,y===void 0&&(y="utf8")):(y=P,P=void 0)}var w=this.length-i;if((P===void 0||P>w)&&(P=w),t.length>0&&(P<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");for(var X=!1;;)switch(y){case"hex":return O(this,t,i,P);case"utf8":case"utf-8":return C(this,t,i,P);case"ascii":return _(this,t,i,P);case"latin1":case"binary":return L(this,t,i,P);case"base64":return D(this,t,i,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,i,P);default:if(X)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),X=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var de=4096;s.prototype.slice=function(t,i){var P=this.length;t=~~t,i=i===void 0?P:~~i,t<0?(t+=P)<0&&(t=0):t>P&&(t=P),i<0?(i+=P)<0&&(i=0):i>P&&(i=P),i<t&&(i=t);var y;if(s.TYPED_ARRAY_SUPPORT)y=this.subarray(t,i),y.__proto__=s.prototype;else{var w=i-t;y=new s(w,void 0);for(var X=0;X<w;++X)y[X]=this[X+t]}return y},s.prototype.readUIntLE=function(t,i,P){t|=0,i|=0,P||$(t,i,this.length);for(var y=this[t],w=1,X=0;++X<i&&(w*=256);)y+=this[t+X]*w;return y},s.prototype.readUIntBE=function(t,i,P){t|=0,i|=0,P||$(t,i,this.length);for(var y=this[t+--i],w=1;i>0&&(w*=256);)y+=this[t+--i]*w;return y},s.prototype.readUInt8=function(t,i){return i||$(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,i){return i||$(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,i){return i||$(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,i){return i||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,i){return i||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,i,P){t|=0,i|=0,P||$(t,i,this.length);for(var y=this[t],w=1,X=0;++X<i&&(w*=256);)y+=this[t+X]*w;return w*=128,y>=w&&(y-=Math.pow(2,8*i)),y},s.prototype.readIntBE=function(t,i,P){t|=0,i|=0,P||$(t,i,this.length);for(var y=i,w=1,X=this[t+--y];y>0&&(w*=256);)X+=this[t+--y]*w;return w*=128,X>=w&&(X-=Math.pow(2,8*i)),X},s.prototype.readInt8=function(t,i){return i||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,i){i||$(t,2,this.length);var P=this[t]|this[t+1]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt16BE=function(t,i){i||$(t,2,this.length);var P=this[t+1]|this[t]<<8;return 32768&P?4294901760|P:P},s.prototype.readInt32LE=function(t,i){return i||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,i){return i||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,i){return i||$(t,4,this.length),re.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,i){return i||$(t,4,this.length),re.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,i){return i||$(t,8,this.length),re.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,i){return i||$(t,8,this.length),re.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,i,P,y){(t=+t,i|=0,P|=0,!y)&&W(this,t,i,P,Math.pow(2,8*P)-1,0);var w=1,X=0;for(this[i]=255&t;++X<P&&(w*=256);)this[i+X]=t/w&255;return i+P},s.prototype.writeUIntBE=function(t,i,P,y){(t=+t,i|=0,P|=0,!y)&&W(this,t,i,P,Math.pow(2,8*P)-1,0);var w=P-1,X=1;for(this[i+w]=255&t;--w>=0&&(X*=256);)this[i+w]=t/X&255;return i+P},s.prototype.writeUInt8=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[i]=255&t,i+1},s.prototype.writeUInt16LE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[i]=255&t,this[i+1]=t>>>8):R(this,t,i,!0),i+2},s.prototype.writeUInt16BE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[i]=t>>>8,this[i+1]=255&t):R(this,t,i,!1),i+2},s.prototype.writeUInt32LE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[i+3]=t>>>24,this[i+2]=t>>>16,this[i+1]=t>>>8,this[i]=255&t):I(this,t,i,!0),i+4},s.prototype.writeUInt32BE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[i]=t>>>24,this[i+1]=t>>>16,this[i+2]=t>>>8,this[i+3]=255&t):I(this,t,i,!1),i+4},s.prototype.writeIntLE=function(t,i,P,y){if(t=+t,i|=0,!y){var w=Math.pow(2,8*P-1);W(this,t,i,P,w-1,-w)}var X=0,K=1,me=0;for(this[i]=255&t;++X<P&&(K*=256);)t<0&&me===0&&this[i+X-1]!==0&&(me=1),this[i+X]=(t/K>>0)-me&255;return i+P},s.prototype.writeIntBE=function(t,i,P,y){if(t=+t,i|=0,!y){var w=Math.pow(2,8*P-1);W(this,t,i,P,w-1,-w)}var X=P-1,K=1,me=0;for(this[i+X]=255&t;--X>=0&&(K*=256);)t<0&&me===0&&this[i+X+1]!==0&&(me=1),this[i+X]=(t/K>>0)-me&255;return i+P},s.prototype.writeInt8=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[i]=255&t,i+1},s.prototype.writeInt16LE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[i]=255&t,this[i+1]=t>>>8):R(this,t,i,!0),i+2},s.prototype.writeInt16BE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[i]=t>>>8,this[i+1]=255&t):R(this,t,i,!1),i+2},s.prototype.writeInt32LE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[i]=255&t,this[i+1]=t>>>8,this[i+2]=t>>>16,this[i+3]=t>>>24):I(this,t,i,!0),i+4},s.prototype.writeInt32BE=function(t,i,P){return t=+t,i|=0,P||W(this,t,i,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[i]=t>>>24,this[i+1]=t>>>16,this[i+2]=t>>>8,this[i+3]=255&t):I(this,t,i,!1),i+4},s.prototype.writeFloatLE=function(t,i,P){return M(this,t,i,!0,P)},s.prototype.writeFloatBE=function(t,i,P){return M(this,t,i,!1,P)},s.prototype.writeDoubleLE=function(t,i,P){return H(this,t,i,!0,P)},s.prototype.writeDoubleBE=function(t,i,P){return H(this,t,i,!1,P)},s.prototype.copy=function(t,i,P,y){if(P||(P=0),y||y===0||(y=this.length),i>=t.length&&(i=t.length),i||(i=0),y>0&&y<P&&(y=P),y===P)return 0;if(t.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=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-i<y-P&&(y=t.length-i+P);var w,X=y-P;if(this===t&&P<i&&i<y)for(w=X-1;w>=0;--w)t[w+i]=this[w+P];else if(X<1e3||!s.TYPED_ARRAY_SUPPORT)for(w=0;w<X;++w)t[w+i]=this[w+P];else Uint8Array.prototype.set.call(t,this.subarray(P,P+X),i);return X},s.prototype.fill=function(t,i,P,y){if(typeof t=="string"){if(typeof i=="string"?(y=i,i=0,P=this.length):typeof P=="string"&&(y=P,P=this.length),t.length===1){var w=t.charCodeAt(0);w<256&&(t=w)}if(y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y)}else typeof t=="number"&&(t&=255);if(i<0||this.length<i||this.length<P)throw new RangeError("Out of range index");if(P<=i)return this;i>>>=0,P=P===void 0?this.length:P>>>0,t||(t=0);var X;if(typeof t=="number")for(X=i;X<P;++X)this[X]=t;else{var K=s.isBuffer(t)?t:ue(new s(t,y).toString()),me=K.length;for(X=0;X<P-i;++X)this[X+i]=K[X%me]}return this};var k=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,A,v){A.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,A,v){"use strict";var h=function(){this.buffer=[],this.fns=[]};h.prototype.push=function(o,s){if(this.fns.length)return this.fns.shift()(null,o);var d={data:o,priority:s},u=g(this.buffer,d,function(e){return e.priority});this.buffer.splice(u,0,d)},h.prototype.next=function(){var o=this;return function(s){if(o.buffer.length)return s(null,o.buffer.pop().data);o.fns.push(s)}};var g=function(s,d,u){d=u(d);for(var e=0,a=s?s.length:e;e<a;){var r=e+a>>>1;u(s[r])<d?e=r+1:a=r}return e};A.exports=h},{}],41:[function(n,A,v){function h(f){var l=this,x=c.call(arguments,1);return new Promise(function(E,p){function T(b){var O;try{O=f.next(b)}catch(C){return p(C)}m(O)}function S(b){var O;try{O=f.throw(b)}catch(C){return p(C)}m(O)}function m(b){if(b.done)return E(b.value);var O=g.call(l,b.value);return O&&u(O)?O.then(T,S):S(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(b.value)+'"'))}if(typeof f=="function"&&(f=f.apply(l,x)),!f||typeof f.next!="function")return E(f);T()})}function g(f){return f&&(u(f)?f:a(f)||e(f)?h.call(this,f):typeof f=="function"?o.call(this,f):Array.isArray(f)?s.call(this,f):r(f)?d.call(this,f):f)}function o(f){var l=this;return new Promise(function(x,E){f.call(l,function(p,T){if(p)return E(p);arguments.length>2&&(T=c.call(arguments,1)),x(T)})})}function s(f){return Promise.all(f.map(g,this))}function d(f){for(var l=new f.constructor,x=Object.keys(f),E=[],p=0;p<x.length;p++){var T=x[p],S=g.call(this,f[T]);S&&u(S)?function(m,b){l[b]=void 0,E.push(m.then(function(O){l[b]=O}))}(S,T):l[T]=f[T]}return Promise.all(E).then(function(){return l})}function u(f){return typeof f.then=="function"}function e(f){return typeof f.next=="function"&&typeof f.throw=="function"}function a(f){var l=f.constructor;return!!l&&(l.name==="GeneratorFunction"||l.displayName==="GeneratorFunction"||e(l.prototype))}function r(f){return Object==f.constructor}var c=Array.prototype.slice;A.exports=h.default=h.co=h,h.wrap=function(f){function l(){return h.call(this,f.apply(this,arguments))}return l.__generatorFunction__=f,l}},{}],42:[function(n,A,v){A.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,A,v){"use strict";function h(s,d){if(!(this instanceof h))return new h(s,d);this.src=s,this._withAccess=d}function g(s,d){return s[d]===void 0&&s.__lookupGetter__(d)===void 0&&s.__lookupSetter__(d)===void 0}var o=Array.prototype.slice;A.exports=h,h.prototype.withAccess=function(s){return this._withAccess=s!==!1,this},h.prototype.pick=function(s){return Array.isArray(s)||(s=o.call(arguments)),s.length&&(this.keys=s),this},h.prototype.to=function(s){if(s=s||{},!this.src)return s;var d=this.keys||Object.keys(this.src);if(!this._withAccess){for(var u=0;u<d.length;u++)e=d[u],s[e]===void 0&&(s[e]=this.src[e]);return s}for(var u=0;u<d.length;u++){var e=d[u];if(g(s,e)){var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&s.__defineGetter__(e,a),r&&s.__defineSetter__(e,r),a||r||(s[e]=this.src[e])}}return s},h.prototype.toCover=function(s){for(var d=this.keys||Object.keys(this.src),u=0;u<d.length;u++){var e=d[u];delete s[e];var a=this.src.__lookupGetter__(e),r=this.src.__lookupSetter__(e);a&&s.__defineGetter__(e,a),r&&s.__defineSetter__(e,r),a||r||(s[e]=this.src[e])}},h.prototype.override=h.prototype.toCover,h.prototype.and=function(s){var d={};return this.to(d),this.src=s,this.to(d),this.src=d,this}},{}],44:[function(n,A,v){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),A.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,A,v){var h=n("../../modules/_core"),g=h.JSON||(h.JSON={stringify:JSON.stringify});A.exports=function(o){return g.stringify.apply(g,arguments)}},{"../../modules/_core":65}],46:[function(n,A,v){n("../../modules/es6.object.assign"),A.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,A,v){n("../../modules/es6.object.create");var h=n("../../modules/_core").Object;A.exports=function(g,o){return h.create(g,o)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,A,v){n("../../modules/es6.object.define-property");var h=n("../../modules/_core").Object;A.exports=function(g,o,s){return h.defineProperty(g,o,s)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,A,v){n("../../modules/es6.object.get-own-property-names");var h=n("../../modules/_core").Object;A.exports=function(g){return h.getOwnPropertyNames(g)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,A,v){n("../../modules/es6.object.get-prototype-of"),A.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,A,v){n("../../modules/es6.object.keys"),A.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,A,v){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"),A.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,A,v){n("../modules/web.immediate"),A.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,A,v){n("../../modules/es6.string.from-code-point"),A.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,A,v){n("../../modules/es6.function.has-instance"),A.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,A,v){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),A.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,A,v){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),A.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,A,v){A.exports=function(h){if(typeof h!="function")throw TypeError(h+" is not a function!");return h}},{}],59:[function(n,A,v){A.exports=function(){}},{}],60:[function(n,A,v){A.exports=function(h,g,o,s){if(!(h instanceof g)||s!==void 0&&s in h)throw TypeError(o+": incorrect invocation!");return h}},{}],61:[function(n,A,v){var h=n("./_is-object");A.exports=function(g){if(!h(g))throw TypeError(g+" is not an object!");return g}},{"./_is-object":85}],62:[function(n,A,v){var h=n("./_to-iobject"),g=n("./_to-length"),o=n("./_to-absolute-index");A.exports=function(s){return function(d,u,e){var a,r=h(d),c=g(r.length),f=o(e,c);if(s&&u!=u){for(;c>f;)if((a=r[f++])!=a)return!0}else for(;c>f;f++)if((s||f in r)&&r[f]===u)return s||f||0;return!s&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,A,v){var h=n("./_cof"),g=n("./_wks")("toStringTag"),o=h(function(){return arguments}())=="Arguments",s=function(u,e){try{return u[e]}catch(a){}};A.exports=function(d){var u,e,a;return d===void 0?"Undefined":d===null?"Null":typeof(e=s(u=Object(d),g))=="string"?e:o?h(u):(a=h(u))=="Object"&&typeof u.callee=="function"?"Arguments":a}},{"./_cof":64,"./_wks":131}],64:[function(n,A,v){var h={}.toString;A.exports=function(g){return h.call(g).slice(8,-1)}},{}],65:[function(n,A,v){var h=A.exports={version:"2.5.7"};typeof __e=="number"&&(__e=h)},{}],66:[function(n,A,v){"use strict";var h=n("./_object-dp"),g=n("./_property-desc");A.exports=function(o,s,d){s in o?h.f(o,s,g(0,d)):o[s]=d}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,A,v){var h=n("./_a-function");A.exports=function(g,o,s){if(h(g),o===void 0)return g;switch(s){case 1:return function(d){return g.call(o,d)};case 2:return function(d,u){return g.call(o,d,u)};case 3:return function(d,u,e){return g.call(o,d,u,e)}}return function(){return g.apply(o,arguments)}}},{"./_a-function":58}],68:[function(n,A,v){A.exports=function(h){if(h==null)throw TypeError("Can't call method on "+h);return h}},{}],69:[function(n,A,v){A.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,A,v){var h=n("./_is-object"),g=n("./_global").document,o=h(g)&&h(g.createElement);A.exports=function(s){return o?g.createElement(s):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,A,v){A.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,A,v){var h=n("./_object-keys"),g=n("./_object-gops"),o=n("./_object-pie");A.exports=function(s){var d=h(s),u=g.f;if(u)for(var e,a=u(s),r=o.f,c=0;a.length>c;)r.call(s,e=a[c++])&&d.push(e);return d}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,A,v){var h=n("./_global"),g=n("./_core"),o=n("./_ctx"),s=n("./_hide"),d=n("./_has"),u=function e(a,r,c){var f,l,x,E=a&e.F,p=a&e.G,T=a&e.S,S=a&e.P,m=a&e.B,b=a&e.W,O=p?g:g[r]||(g[r]={}),C=O.prototype,_=p?h:T?h[r]:(h[r]||{}).prototype;p&&(c=r);for(f in c)(l=!E&&_&&_[f]!==void 0)&&d(O,f)||(x=l?_[f]:c[f],O[f]=p&&typeof _[f]!="function"?c[f]:m&&l?o(x,h):b&&_[f]==x?function(L){var D=function(j,z,V){if(this instanceof L){switch(arguments.length){case 0:return new L;case 1:return new L(j);case 2:return new L(j,z)}return new L(j,z,V)}return L.apply(this,arguments)};return D.prototype=L.prototype,D}(x):S&&typeof x=="function"?o(Function.call,x):x,S&&((O.virtual||(O.virtual={}))[f]=x,a&e.R&&C&&!C[f]&&s(C,f,x)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,A.exports=u},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,A,v){A.exports=function(h){try{return!!h()}catch(g){return!0}}},{}],75:[function(n,A,v){var h=n("./_ctx"),g=n("./_iter-call"),o=n("./_is-array-iter"),s=n("./_an-object"),d=n("./_to-length"),u=n("./core.get-iterator-method"),e={},a={},v=A.exports=function(r,c,f,l,x){var E,p,T,S,m=x?function(){return r}:u(r),b=h(f,l,c?2:1),O=0;if(typeof m!="function")throw TypeError(r+" is not iterable!");if(o(m)){for(E=d(r.length);E>O;O++)if((S=c?b(s(p=r[O])[0],p[1]):b(r[O]))===e||S===a)return S}else for(T=m.call(r);!(p=T.next()).done;)if((S=g(T,b,p.value,c))===e||S===a)return S};v.BREAK=e,v.RETURN=a},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,A,v){var h=A.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=h)},{}],77:[function(n,A,v){var h={}.hasOwnProperty;A.exports=function(g,o){return h.call(g,o)}},{}],78:[function(n,A,v){var h=n("./_object-dp"),g=n("./_property-desc");A.exports=n("./_descriptors")?function(o,s,d){return h.f(o,s,g(1,d))}:function(o,s,d){return o[s]=d,o}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,A,v){var h=n("./_global").document;A.exports=h&&h.documentElement},{"./_global":76}],80:[function(n,A,v){A.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,A,v){A.exports=function(h,g,o){var s=o===void 0;switch(g.length){case 0:return s?h():h.call(o);case 1:return s?h(g[0]):h.call(o,g[0]);case 2:return s?h(g[0],g[1]):h.call(o,g[0],g[1]);case 3:return s?h(g[0],g[1],g[2]):h.call(o,g[0],g[1],g[2]);case 4:return s?h(g[0],g[1],g[2],g[3]):h.call(o,g[0],g[1],g[2],g[3])}return h.apply(o,g)}},{}],82:[function(n,A,v){var h=n("./_cof");A.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return h(g)=="String"?g.split(""):Object(g)}},{"./_cof":64}],83:[function(n,A,v){var h=n("./_iterators"),g=n("./_wks")("iterator"),o=Array.prototype;A.exports=function(s){return s!==void 0&&(h.Array===s||o[g]===s)}},{"./_iterators":91,"./_wks":131}],84:[function(n,A,v){var h=n("./_cof");A.exports=Array.isArray||function(g){return h(g)=="Array"}},{"./_cof":64}],85:[function(n,A,v){A.exports=function(h){return typeof h=="object"?h!==null:typeof h=="function"}},{}],86:[function(n,A,v){var h=n("./_an-object");A.exports=function(g,o,s,d){try{return d?o(h(s)[0],s[1]):o(s)}catch(e){var u=g.return;throw u!==void 0&&h(u.call(g)),e}}},{"./_an-object":61}],87:[function(n,A,v){"use strict";var h=n("./_object-create"),g=n("./_property-desc"),o=n("./_set-to-string-tag"),s={};n("./_hide")(s,n("./_wks")("iterator"),function(){return this}),A.exports=function(d,u,e){d.prototype=h(s,{next:g(1,e)}),o(d,u+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,A,v){"use strict";var h=n("./_library"),g=n("./_export"),o=n("./_redefine"),s=n("./_hide"),d=n("./_iterators"),u=n("./_iter-create"),e=n("./_set-to-string-tag"),a=n("./_object-gpo"),r=n("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),f=function(){return this};A.exports=function(l,x,E,p,T,S,m){u(E,x,p);var b,O,C,_=function(ee){if(!c&&ee in j)return j[ee];switch(ee){case"keys":case"values":return function(){return new E(this,ee)}}return function(){return new E(this,ee)}},L=x+" Iterator",D=T=="values",N=!1,j=l.prototype,z=j[r]||j["@@iterator"]||T&&j[T],V=z||_(T),G=T?D?_("entries"):V:void 0,Z=x=="Array"&&j.entries||z;if(Z&&(C=a(Z.call(new l)))!==Object.prototype&&C.next&&(e(C,L,!0),h||typeof C[r]=="function"||s(C,r,f)),D&&z&&z.name!=="values"&&(N=!0,V=function(){return z.call(this)}),h&&!m||!c&&!N&&j[r]||s(j,r,V),d[x]=V,d[L]=f,T)if(b={values:D?V:_("values"),keys:S?V:_("keys"),entries:G},m)for(O in b)O in j||o(j,O,b[O]);else g(g.P+g.F*(c||N),x,b);return b}},{"./_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,A,v){var h=n("./_wks")("iterator"),g=!1;try{var o=[7][h]();o.return=function(){g=!0},Array.from(o,function(){throw 2})}catch(s){}A.exports=function(s,d){if(!d&&!g)return!1;var u=!1;try{var e=[7],a=e[h]();a.next=function(){return{done:u=!0}},e[h]=function(){return a},s(e)}catch(r){}return u}},{"./_wks":131}],90:[function(n,A,v){A.exports=function(h,g){return{value:g,done:!!h}}},{}],91:[function(n,A,v){A.exports={}},{}],92:[function(n,A,v){A.exports=!0},{}],93:[function(n,A,v){var h=n("./_uid")("meta"),g=n("./_is-object"),o=n("./_has"),s=n("./_object-dp").f,d=0,u=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return u(Object.preventExtensions({}))}),a=function(E){s(E,h,{value:{i:"O"+ ++d,w:{}}})},r=function(E,p){if(!g(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!o(E,h)){if(!u(E))return"F";if(!p)return"E";a(E)}return E[h].i},c=function(E,p){if(!o(E,h)){if(!u(E))return!0;if(!p)return!1;a(E)}return E[h].w},f=function(E){return e&&l.NEED&&u(E)&&!o(E,h)&&a(E),E},l=A.exports={KEY:h,NEED:!1,fastKey:r,getWeak:c,onFreeze:f}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,A,v){var h=n("./_global"),g=n("./_task").set,o=h.MutationObserver||h.WebKitMutationObserver,s=h.process,d=h.Promise,u=n("./_cof")(s)=="process";A.exports=function(){var e,a,r,c=function(){var p,T;for(u&&(p=s.domain)&&p.exit();e;){T=e.fn,e=e.next;try{T()}catch(S){throw e?r():a=void 0,S}}a=void 0,p&&p.enter()};if(u)r=function(){s.nextTick(c)};else if(!o||h.navigator&&h.navigator.standalone)if(d&&d.resolve){var f=d.resolve(void 0);r=function(){f.then(c)}}else r=function(){g.call(h,c)};else{var l=!0,x=document.createTextNode("");new o(c).observe(x,{characterData:!0}),r=function(){x.data=l=!l}}return function(E){var p={fn:E,next:void 0};a&&(a.next=p),e||(e=p,r()),a=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,A,v){"use strict";function h(o){var s,d;this.promise=new o(function(u,e){if(s!==void 0||d!==void 0)throw TypeError("Bad Promise constructor");s=u,d=e}),this.resolve=g(s),this.reject=g(d)}var g=n("./_a-function");A.exports.f=function(o){return new h(o)}},{"./_a-function":58}],96:[function(n,A,v){"use strict";var h=n("./_object-keys"),g=n("./_object-gops"),o=n("./_object-pie"),s=n("./_to-object"),d=n("./_iobject"),u=Object.assign;A.exports=!u||n("./_fails")(function(){var e={},a={},r=Symbol(),c="abcdefghijklmnopqrst";return e[r]=7,c.split("").forEach(function(f){a[f]=f}),u({},e)[r]!=7||Object.keys(u({},a)).join("")!=c})?function(e,a){for(var r=s(e),c=arguments.length,f=1,l=g.f,x=o.f;c>f;)for(var E,p=d(arguments[f++]),T=l?h(p).concat(l(p)):h(p),S=T.length,m=0;S>m;)x.call(p,E=T[m++])&&(r[E]=p[E]);return r}:u},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,A,v){var h=n("./_an-object"),g=n("./_object-dps"),o=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),d=function(){},u=function(){var a,r=n("./_dom-create")("iframe"),c=o.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",a=r.contentWindow.document,a.open(),a.write("<script>document.F=Object</script>"),a.close(),u=a.F;c--;)delete u.prototype[o[c]];return u()};A.exports=Object.create||function(e,a){var r;return e!==null?(d.prototype=h(e),r=new d,d.prototype=null,r[s]=e):r=u(),a===void 0?r:g(r,a)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,A,v){var h=n("./_an-object"),g=n("./_ie8-dom-define"),o=n("./_to-primitive"),s=Object.defineProperty;v.f=n("./_descriptors")?Object.defineProperty:function(d,u,e){if(h(d),u=o(u,!0),h(e),g)try{return s(d,u,e)}catch(a){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(d[u]=e.value),d}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,A,v){var h=n("./_object-dp"),g=n("./_an-object"),o=n("./_object-keys");A.exports=n("./_descriptors")?Object.defineProperties:function(s,d){g(s);for(var u,e=o(d),a=e.length,r=0;a>r;)h.f(s,u=e[r++],d[u]);return s}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,A,v){var h=n("./_object-pie"),g=n("./_property-desc"),o=n("./_to-iobject"),s=n("./_to-primitive"),d=n("./_has"),u=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;v.f=n("./_descriptors")?e:function(a,r){if(a=o(a),r=s(r,!0),u)try{return e(a,r)}catch(c){}if(d(a,r))return g(!h.f.call(a,r),a[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,A,v){var h=n("./_to-iobject"),g=n("./_object-gopn").f,o={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(e){try{return g(e)}catch(a){return s.slice()}};A.exports.f=function(u){return s&&o.call(u)=="[object Window]"?d(u):g(h(u))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,A,v){var h=n("./_object-keys-internal"),g=n("./_enum-bug-keys").concat("length","prototype");v.f=Object.getOwnPropertyNames||function(o){return h(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,A,v){v.f=Object.getOwnPropertySymbols},{}],104:[function(n,A,v){var h=n("./_has"),g=n("./_to-object"),o=n("./_shared-key")("IE_PROTO"),s=Object.prototype;A.exports=Object.getPrototypeOf||function(d){return d=g(d),h(d,o)?d[o]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?s:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,A,v){var h=n("./_has"),g=n("./_to-iobject"),o=n("./_array-includes")(!1),s=n("./_shared-key")("IE_PROTO");A.exports=function(d,u){var e,a=g(d),r=0,c=[];for(e in a)e!=s&&h(a,e)&&c.push(e);for(;u.length>r;)h(a,e=u[r++])&&(~o(c,e)||c.push(e));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,A,v){var h=n("./_object-keys-internal"),g=n("./_enum-bug-keys");A.exports=Object.keys||function(o){return h(o,g)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,A,v){v.f={}.propertyIsEnumerable},{}],108:[function(n,A,v){var h=n("./_export"),g=n("./_core"),o=n("./_fails");A.exports=function(s,d){var u=(g.Object||{})[s]||Object[s],e={};e[s]=d(u),h(h.S+h.F*o(function(){u(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,A,v){A.exports=function(h){try{return{e:!1,v:h()}}catch(g){return{e:!0,v:g}}}},{}],110:[function(n,A,v){var h=n("./_an-object"),g=n("./_is-object"),o=n("./_new-promise-capability");A.exports=function(s,d){if(h(s),g(d)&&d.constructor===s)return d;var u=o.f(s);return(0,u.resolve)(d),u.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,A,v){A.exports=function(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}}},{}],112:[function(n,A,v){var h=n("./_hide");A.exports=function(g,o,s){for(var d in o)s&&g[d]?g[d]=o[d]:h(g,d,o[d]);return g}},{"./_hide":78}],113:[function(n,A,v){A.exports=n("./_hide")},{"./_hide":78}],114:[function(n,A,v){"use strict";var h=n("./_global"),g=n("./_core"),o=n("./_object-dp"),s=n("./_descriptors"),d=n("./_wks")("species");A.exports=function(u){var e=typeof g[u]=="function"?g[u]:h[u];s&&e&&!e[d]&&o.f(e,d,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,A,v){var h=n("./_object-dp").f,g=n("./_has"),o=n("./_wks")("toStringTag");A.exports=function(s,d,u){s&&!g(s=u?s:s.prototype,o)&&h(s,o,{configurable:!0,value:d})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,A,v){var h=n("./_shared")("keys"),g=n("./_uid");A.exports=function(o){return h[o]||(h[o]=g(o))}},{"./_shared":117,"./_uid":127}],117:[function(n,A,v){var h=n("./_core"),g=n("./_global"),o=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(A.exports=function(s,d){return o[s]||(o[s]=d!==void 0?d:{})})("versions",[]).push({version:h.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,A,v){var h=n("./_an-object"),g=n("./_a-function"),o=n("./_wks")("species");A.exports=function(s,d){var u,e=h(s).constructor;return e===void 0||(u=h(e)[o])==null?d:g(u)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,A,v){var h=n("./_to-integer"),g=n("./_defined");A.exports=function(o){return function(s,d){var u,e,a=String(g(s)),r=h(d),c=a.length;return r<0||r>=c?o?"":void 0:(u=a.charCodeAt(r),u<55296||u>56319||r+1===c||(e=a.charCodeAt(r+1))<56320||e>57343?o?a.charAt(r):u:o?a.slice(r,r+2):e-56320+(u-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,A,v){var h,g,o,s=n("./_ctx"),d=n("./_invoke"),u=n("./_html"),e=n("./_dom-create"),a=n("./_global"),r=a.process,c=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,x=a.Dispatch,E=0,p={},T=function(){var b=+this;if(p.hasOwnProperty(b)){var O=p[b];delete p[b],O()}},S=function(b){T.call(b.data)};c&&f||(c=function(b){for(var O=[],C=1;arguments.length>C;)O.push(arguments[C++]);return p[++E]=function(){d(typeof b=="function"?b:Function(b),O)},h(E),E},f=function(b){delete p[b]},n("./_cof")(r)=="process"?h=function(b){r.nextTick(s(T,b,1))}:x&&x.now?h=function(b){x.now(s(T,b,1))}:l?(g=new l,o=g.port2,g.port1.onmessage=S,h=s(o.postMessage,o,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(h=function(b){a.postMessage(b+"","*")},a.addEventListener("message",S,!1)):h="onreadystatechange"in e("script")?function(m){u.appendChild(e("script")).onreadystatechange=function(){u.removeChild(this),T.call(m)}}:function(m){setTimeout(s(T,m,1),0)}),A.exports={set:c,clear:f}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,A,v){var h=n("./_to-integer"),g=Math.max,o=Math.min;A.exports=function(s,d){return s=h(s),s<0?g(s+d,0):o(s,d)}},{"./_to-integer":122}],122:[function(n,A,v){var h=Math.ceil,g=Math.floor;A.exports=function(o){return isNaN(o=+o)?0:(o>0?g:h)(o)}},{}],123:[function(n,A,v){var h=n("./_iobject"),g=n("./_defined");A.exports=function(o){return h(g(o))}},{"./_defined":68,"./_iobject":82}],124:[function(n,A,v){var h=n("./_to-integer"),g=Math.min;A.exports=function(o){return o>0?g(h(o),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,A,v){var h=n("./_defined");A.exports=function(g){return Object(h(g))}},{"./_defined":68}],126:[function(n,A,v){var h=n("./_is-object");A.exports=function(g,o){if(!h(g))return g;var s,d;if(o&&typeof(s=g.toString)=="function"&&!h(d=s.call(g)))return d;if(typeof(s=g.valueOf)=="function"&&!h(d=s.call(g)))return d;if(!o&&typeof(s=g.toString)=="function"&&!h(d=s.call(g)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,A,v){var h=0,g=Math.random();A.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++h+g).toString(36))}},{}],128:[function(n,A,v){var h=n("./_global"),g=h.navigator;A.exports=g&&g.userAgent||""},{"./_global":76}],129:[function(n,A,v){var h=n("./_global"),g=n("./_core"),o=n("./_library"),s=n("./_wks-ext"),d=n("./_object-dp").f;A.exports=function(u){var e=g.Symbol||(g.Symbol=o?{}:h.Symbol||{});u.charAt(0)=="_"||u in e||d(e,u,{value:s.f(u)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,A,v){v.f=n("./_wks")},{"./_wks":131}],131:[function(n,A,v){var h=n("./_shared")("wks"),g=n("./_uid"),o=n("./_global").Symbol,s=typeof o=="function";(A.exports=function(d){return h[d]||(h[d]=s&&o[d]||(s?o:g)("Symbol."+d))}).store=h},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,A,v){var h=n("./_classof"),g=n("./_wks")("iterator"),o=n("./_iterators");A.exports=n("./_core").getIteratorMethod=function(s){if(s!=null)return s[g]||s["@@iterator"]||o[h(s)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,A,v){"use strict";var h=n("./_ctx"),g=n("./_export"),o=n("./_to-object"),s=n("./_iter-call"),d=n("./_is-array-iter"),u=n("./_to-length"),e=n("./_create-property"),a=n("./core.get-iterator-method");g(g.S+g.F*!n("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(c){var f,l,x,E,p=o(c),T=typeof this=="function"?this:Array,S=arguments.length,m=S>1?arguments[1]:void 0,b=m!==void 0,O=0,C=a(p);if(b&&(m=h(m,S>2?arguments[2]:void 0,2)),C==null||T==Array&&d(C))for(f=u(p.length),l=new T(f);f>O;O++)e(l,O,b?m(p[O],O):p[O]);else for(E=C.call(p),l=new T;!(x=E.next()).done;O++)e(l,O,b?s(E,m,[x.value,O],!0):x.value);return l.length=O,l}})},{"./_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,A,v){"use strict";var h=n("./_add-to-unscopables"),g=n("./_iter-step"),o=n("./_iterators"),s=n("./_to-iobject");A.exports=n("./_iter-define")(Array,"Array",function(d,u){this._t=s(d),this._i=0,this._k=u},function(){var d=this._t,u=this._k,e=this._i++;return!d||e>=d.length?(this._t=void 0,g(1)):u=="keys"?g(0,e):u=="values"?g(0,d[e]):g(0,[e,d[e]])},"values"),o.Arguments=o.Array,h("keys"),h("values"),h("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,A,v){"use strict";var h=n("./_is-object"),g=n("./_object-gpo"),o=n("./_wks")("hasInstance"),s=Function.prototype;o in s||n("./_object-dp").f(s,o,{value:function(u){if(typeof this!="function"||!h(u))return!1;if(!h(this.prototype))return u instanceof this;for(;u=g(u);)if(this.prototype===u)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,A,v){var h=n("./_export");h(h.S+h.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,A,v){var h=n("./_export");h(h.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,A,v){var h=n("./_export");h(h.S+h.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,A,v){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,A,v){var h=n("./_to-object"),g=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(o){return g(h(o))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,A,v){var h=n("./_to-object"),g=n("./_object-keys");n("./_object-sap")("keys",function(){return function(o){return g(h(o))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,A,v){arguments[4][36][0].apply(v,arguments)},{dup:36}],143:[function(n,A,v){"use strict";var h,g,o,s,d=n("./_library"),u=n("./_global"),e=n("./_ctx"),a=n("./_classof"),r=n("./_export"),c=n("./_is-object"),f=n("./_a-function"),l=n("./_an-instance"),x=n("./_for-of"),E=n("./_species-constructor"),p=n("./_task").set,T=n("./_microtask")(),S=n("./_new-promise-capability"),m=n("./_perform"),b=n("./_user-agent"),O=n("./_promise-resolve"),C=u.TypeError,_=u.process,L=_&&_.versions,D=L&&L.v8||"",N=u.Promise,j=a(_)=="process",z=function(){},V=g=S.f,G=!!function(){try{var U=N.resolve(1),M=(U.constructor={})[n("./_wks")("species")]=function(H){H(z,z)};return(j||typeof PromiseRejectionEvent=="function")&&U.then(z)instanceof M&&D.indexOf("6.6")!==0&&b.indexOf("Chrome/66")===-1}catch(H){}}(),Z=function(M){var H;return!(!c(M)||typeof(H=M.then)!="function")&&H},F=function(M,H){if(!M._n){M._n=!0;var Y=M._c;T(function(){for(var oe=M._v,ne=M._s==1,ue=0;Y.length>ue;)!function(pe){var Q,J,ie,q=ne?pe.ok:pe.fail,B=pe.resolve,re=pe.reject,te=pe.domain;try{q?(ne||(M._h==2&&W(M),M._h=1),q===!0?Q=oe:(te&&te.enter(),Q=q(oe),te&&(te.exit(),ie=!0)),Q===pe.promise?re(C("Promise-chain cycle")):(J=Z(Q))?J.call(Q,B,re):B(Q)):re(oe)}catch(de){te&&!ie&&te.exit(),re(de)}}(Y[ue++]);M._c=[],M._n=!1,H&&!M._h&&ee(M)})}},ee=function(M){p.call(u,function(){var H,Y,oe,ne=M._v,ue=$(M);if(ue&&(H=m(function(){j?_.emit("unhandledRejection",ne,M):(Y=u.onunhandledrejection)?Y({promise:M,reason:ne}):(oe=u.console)&&oe.error&&oe.error("Unhandled promise rejection",ne)}),M._h=j||$(M)?2:1),M._a=void 0,ue&&H.e)throw H.v})},$=function(M){return M._h!==1&&(M._a||M._c).length===0},W=function(M){p.call(u,function(){var H;j?_.emit("rejectionHandled",M):(H=u.onrejectionhandled)&&H({promise:M,reason:M._v})})},R=function(M){var H=this;H._d||(H._d=!0,H=H._w||H,H._v=M,H._s=2,H._a||(H._a=H._c.slice()),F(H,!0))},I=function U(M){var H,Y=this;if(!Y._d){Y._d=!0,Y=Y._w||Y;try{if(Y===M)throw C("Promise can't be resolved itself");(H=Z(M))?T(function(){var oe={_w:Y,_d:!1};try{H.call(M,e(U,oe,1),e(R,oe,1))}catch(ne){R.call(oe,ne)}}):(Y._v=M,Y._s=1,F(Y,!1))}catch(oe){R.call({_w:Y,_d:!1},oe)}}};G||(N=function(M){l(this,N,"Promise","_h"),f(M),h.call(this);try{M(e(I,this,1),e(R,this,1))}catch(H){R.call(this,H)}},h=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},h.prototype=n("./_redefine-all")(N.prototype,{then:function(M,H){var Y=V(E(this,N));return Y.ok=typeof M!="function"||M,Y.fail=typeof H=="function"&&H,Y.domain=j?_.domain:void 0,this._c.push(Y),this._a&&this._a.push(Y),this._s&&F(this,!1),Y.promise},catch:function(M){return this.then(void 0,M)}}),o=function(){var M=new h;this.promise=M,this.resolve=e(I,M,1),this.reject=e(R,M,1)},S.f=V=function(M){return M===N||M===s?new o(M):g(M)}),r(r.G+r.W+r.F*!G,{Promise:N}),n("./_set-to-string-tag")(N,"Promise"),n("./_set-species")("Promise"),s=n("./_core").Promise,r(r.S+r.F*!G,"Promise",{reject:function(M){var H=V(this);return(0,H.reject)(M),H.promise}}),r(r.S+r.F*(d||!G),"Promise",{resolve:function(M){return O(d&&this===s?N:this,M)}}),r(r.S+r.F*!(G&&n("./_iter-detect")(function(U){N.all(U).catch(z)})),"Promise",{all:function(M){var H=this,Y=V(H),oe=Y.resolve,ne=Y.reject,ue=m(function(){var pe=[],Q=0,J=1;x(M,!1,function(ie){var q=Q++,B=!1;pe.push(void 0),J++,H.resolve(ie).then(function(re){B||(B=!0,pe[q]=re,--J||oe(pe))},ne)}),--J||oe(pe)});return ue.e&&ne(ue.v),Y.promise},race:function(M){var H=this,Y=V(H),oe=Y.reject,ne=m(function(){x(M,!1,function(ue){H.resolve(ue).then(Y.resolve,oe)})});return ne.e&&oe(ne.v),Y.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,A,v){var h=n("./_export"),g=n("./_to-absolute-index"),o=String.fromCharCode,s=String.fromCodePoint;h(h.S+h.F*(!!s&&s.length!=1),"String",{fromCodePoint:function(u){for(var e,a=[],r=arguments.length,c=0;r>c;){if(e=+arguments[c++],g(e,1114111)!==e)throw RangeError(e+" is not a valid code point");a.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return a.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,A,v){"use strict";var h=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g,o=this._t,s=this._i;return s>=o.length?{value:void 0,done:!0}:(g=h(o,s),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,A,v){"use strict";var h=n("./_global"),g=n("./_has"),o=n("./_descriptors"),s=n("./_export"),d=n("./_redefine"),u=n("./_meta").KEY,e=n("./_fails"),a=n("./_shared"),r=n("./_set-to-string-tag"),c=n("./_uid"),f=n("./_wks"),l=n("./_wks-ext"),x=n("./_wks-define"),E=n("./_enum-keys"),p=n("./_is-array"),T=n("./_an-object"),S=n("./_is-object"),m=n("./_to-iobject"),b=n("./_to-primitive"),O=n("./_property-desc"),C=n("./_object-create"),_=n("./_object-gopn-ext"),L=n("./_object-gopd"),D=n("./_object-dp"),N=n("./_object-keys"),j=L.f,z=D.f,V=_.f,G=h.Symbol,Z=h.JSON,F=Z&&Z.stringify,ee=f("_hidden"),$=f("toPrimitive"),W={}.propertyIsEnumerable,R=a("symbol-registry"),I=a("symbols"),U=a("op-symbols"),M=Object.prototype,H=typeof G=="function",Y=h.QObject,oe=!Y||!Y.prototype||!Y.prototype.findChild,ne=o&&e(function(){return C(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(P,y,w){var X=j(M,y);X&&delete M[y],z(P,y,w),X&&P!==M&&z(M,y,X)}:z,ue=function(y){var w=I[y]=C(G.prototype);return w._k=y,w},pe=H&&typeof G.iterator=="symbol"?function(P){return typeof P=="symbol"}:function(P){return P instanceof G},Q=function P(y,w,X){return y===M&&P(U,w,X),T(y),w=b(w,!0),T(X),g(I,w)?(X.enumerable?(g(y,ee)&&y[ee][w]&&(y[ee][w]=!1),X=C(X,{enumerable:O(0,!1)})):(g(y,ee)||z(y,ee,O(1,{})),y[ee][w]=!0),ne(y,w,X)):z(y,w,X)},J=function(y,w){T(y);for(var X,K=E(w=m(w)),me=0,fe=K.length;fe>me;)Q(y,X=K[me++],w[X]);return y},ie=function(y,w){return w===void 0?C(y):J(C(y),w)},q=function(y){var w=W.call(this,y=b(y,!0));return!(this===M&&g(I,y)&&!g(U,y))&&(!(w||!g(this,y)||!g(I,y)||g(this,ee)&&this[ee][y])||w)},B=function(y,w){if(y=m(y),w=b(w,!0),y!==M||!g(I,w)||g(U,w)){var X=j(y,w);return!X||!g(I,w)||g(y,ee)&&y[ee][w]||(X.enumerable=!0),X}},re=function(y){for(var w,X=V(m(y)),K=[],me=0;X.length>me;)g(I,w=X[me++])||w==ee||w==u||K.push(w);return K},te=function(y){for(var w,X=y===M,K=V(X?U:m(y)),me=[],fe=0;K.length>fe;)!g(I,w=K[fe++])||X&&!g(M,w)||me.push(I[w]);return me};H||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var y=c(arguments.length>0?arguments[0]:void 0),w=function X(K){this===M&&X.call(U,K),g(this,ee)&&g(this[ee],y)&&(this[ee][y]=!1),ne(this,y,O(1,K))};return o&&oe&&ne(M,y,{configurable:!0,set:w}),ue(y)},d(G.prototype,"toString",function(){return this._k}),L.f=B,D.f=Q,n("./_object-gopn").f=_.f=re,n("./_object-pie").f=q,n("./_object-gops").f=te,o&&!n("./_library")&&d(M,"propertyIsEnumerable",q,!0),l.f=function(P){return ue(f(P))}),s(s.G+s.W+s.F*!H,{Symbol:G});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),k=0;de.length>k;)f(de[k++]);for(var t=N(f.store),i=0;t.length>i;)x(t[i++]);s(s.S+s.F*!H,"Symbol",{for:function(y){return g(R,y+="")?R[y]:R[y]=G(y)},keyFor:function(y){if(!pe(y))throw TypeError(y+" is not a symbol!");for(var w in R)if(R[w]===y)return w},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),s(s.S+s.F*!H,"Object",{create:ie,defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:B,getOwnPropertyNames:re,getOwnPropertySymbols:te}),Z&&s(s.S+s.F*(!H||e(function(){var P=G();return F([P])!="[null]"||F({a:P})!="{}"||F(Object(P))!="{}"})),"JSON",{stringify:function(y){for(var w,X,K=[y],me=1;arguments.length>me;)K.push(arguments[me++]);if(X=w=K[1],(S(w)||y!==void 0)&&!pe(y))return p(w)||(w=function(le,ce){if(typeof X=="function"&&(ce=X.call(this,le,ce)),!pe(ce))return ce}),K[1]=w,F.apply(Z,K)}}),G.prototype[$]||n("./_hide")(G.prototype,$,G.prototype.valueOf),r(G,"Symbol"),r(Math,"Math",!0),r(h.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,A,v){"use strict";var h=n("./_export"),g=n("./_core"),o=n("./_global"),s=n("./_species-constructor"),d=n("./_promise-resolve");h(h.P+h.R,"Promise",{finally:function(e){var a=s(this,g.Promise||o.Promise),r=typeof e=="function";return this.then(r?function(c){return d(a,e()).then(function(){return c})}:e,r?function(c){return d(a,e()).then(function(){throw c})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,A,v){"use strict";var h=n("./_export"),g=n("./_new-promise-capability"),o=n("./_perform");h(h.S,"Promise",{try:function(d){var u=g.f(this),e=o(d);return(e.e?u.reject:u.resolve)(e.v),u.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,A,v){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,A,v){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,A,v){n("./es6.array.iterator");for(var h=n("./_global"),g=n("./_hide"),o=n("./_iterators"),s=n("./_wks")("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<d.length;u++){var e=d[u],a=h[e],r=a&&a.prototype;r&&!r[s]&&g(r,s,e),o[e]=o.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,A,v){var h=n("./_export"),g=n("./_task");h(h.G+h.B,{setImmediate:g.set,clearImmediate:g.clear})},{"./_export":73,"./_task":120}],153:[function(n,A,v){(function(h){"use strict";function g(b){return Array.isArray?Array.isArray(b):T(b)==="[object Array]"}function o(b){return typeof b=="boolean"}function s(b){return b===null}function d(b){return b==null}function u(b){return typeof b=="number"}function e(b){return typeof b=="string"}function a(b){return(b===void 0?"undefined":(0,m.default)(b))==="symbol"}function r(b){return b===void 0}function c(b){return T(b)==="[object RegExp]"}function f(b){return(b===void 0?"undefined":(0,m.default)(b))==="object"&&b!==null}function l(b){return T(b)==="[object Date]"}function x(b){return T(b)==="[object Error]"||b instanceof Error}function E(b){return typeof b=="function"}function p(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||(b===void 0?"undefined":(0,m.default)(b))==="symbol"||b===void 0}function T(b){return Object.prototype.toString.call(b)}var S=n("babel-runtime/helpers/typeof"),m=function(b){return b&&b.__esModule?b:{default:b}}(S);v.isArray=g,v.isBoolean=o,v.isNull=s,v.isNullOrUndefined=d,v.isNumber=u,v.isString=e,v.isSymbol=a,v.isUndefined=r,v.isRegExp=c,v.isObject=f,v.isDate=l,v.isError=x,v.isFunction=E,v.isPrimitive=p,v.isBuffer=h.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,A,v){"use strict";var h=n("babel-runtime/helpers/typeof"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);!function(o){function s(r,c){for(r=String(r),c=c||2;r.length<c;)r="0"+r;return r}function d(r){var c=new Date(r.getFullYear(),r.getMonth(),r.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var f=new Date(c.getFullYear(),0,4);f.setDate(f.getDate()-(f.getDay()+6)%7+3);var l=c.getTimezoneOffset()-f.getTimezoneOffset();c.setHours(c.getHours()-l);var x=(c-f)/6048e5;return 1+Math.floor(x)}function u(r){var c=r.getDay();return c===0&&(c=7),c}function e(r){return r===null?"null":r===void 0?"undefined":(r===void 0?"undefined":(0,g.default)(r))!=="object"?r===void 0?"undefined":(0,g.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}var a=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/[^-+\dA-Z]/g;return function(l,x,E,p){if(arguments.length!==1||e(l)!=="string"||/\d/.test(l)||(x=l,l=void 0),l=l||new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");x=String(a.masks[x]||x||a.masks.default);var T=x.slice(0,4);T!=="UTC:"&&T!=="GMT:"||(x=x.slice(4),E=!0,T==="GMT:"&&(p=!0));var S=E?"getUTC":"get",m=l[S+"Date"](),b=l[S+"Day"](),O=l[S+"Month"](),C=l[S+"FullYear"](),_=l[S+"Hours"](),L=l[S+"Minutes"](),D=l[S+"Seconds"](),N=l[S+"Milliseconds"](),j=E?0:l.getTimezoneOffset(),z=d(l),V=u(l),G={d:m,dd:s(m),ddd:a.i18n.dayNames[b],dddd:a.i18n.dayNames[b+7],m:O+1,mm:s(O+1),mmm:a.i18n.monthNames[O],mmmm:a.i18n.monthNames[O+12],yy:String(C).slice(2),yyyy:C,h:_%12||12,hh:s(_%12||12),H:_,HH:s(_),M:L,MM:s(L),s:D,ss:s(D),l:s(N,3),L:s(Math.round(N/10)),t:_<12?"a":"p",tt:_<12?"am":"pm",T:_<12?"A":"P",TT:_<12?"AM":"PM",Z:p?"GMT":E?"UTC":(String(l).match(c)||[""]).pop().replace(f,""),o:(j>0?"-":"+")+s(100*Math.floor(Math.abs(j)/60)+Math.abs(j)%60,4),S:["th","st","nd","rd"][m%10>3?0:(m%100-m%10!=10)*m%10],W:z,N:V};return x.replace(r,function(Z){return Z in G?G[Z]:Z.slice(1,Z.length-1)})}}();a.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},a.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof he=="function"&&he.amd?he(function(){return a}):(v===void 0?"undefined":(0,g.default)(v))==="object"?A.exports=a:o.dateFormat=a}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,A,v){(function(h){function g(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+v.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var c=0,f=0;e[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(c++,l==="%c"&&(f=c))}),e.splice(f,0,r)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function d(e){try{e==null?v.storage.removeItem("debug"):v.storage.debug=e}catch(a){}}function u(){var e;try{e=v.storage.debug}catch(a){}return!e&&h!==void 0&&"env"in h&&(e=h.env.DEBUG),e}v=A.exports=n("./debug"),v.log=s,v.formatArgs=o,v.save=d,v.load=u,v.useColors=g,v.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),v.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],v.formatters.j=function(e){try{return JSON.stringify(e)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}},v.enable(u())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,A,v){function h(a){var r,c=0;for(r in a)c=(c<<5)-c+a.charCodeAt(r),c|=0;return v.colors[Math.abs(c)%v.colors.length]}function g(a){function r(){if(r.enabled){var c=r,f=+new Date,l=f-(e||f);c.diff=l,c.prev=e,c.curr=f,e=f;for(var x=new Array(arguments.length),E=0;E<x.length;E++)x[E]=arguments[E];x[0]=v.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");var p=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,function(T,S){if(T==="%%")return T;p++;var m=v.formatters[S];if(typeof m=="function"){var b=x[p];T=m.call(c,b),x.splice(p,1),p--}return T}),v.formatArgs.call(c,x),(r.log||v.log||console.log.bind(console)).apply(c,x)}}return r.namespace=a,r.enabled=v.enabled(a),r.useColors=v.useColors(),r.color=h(a),typeof v.init=="function"&&v.init(r),r}function o(a){v.save(a),v.names=[],v.skips=[];for(var r=(typeof a=="string"?a:"").split(/[\s,]+/),c=r.length,f=0;f<c;f++)r[f]&&(a=r[f].replace(/\*/g,".*?"),a[0]==="-"?v.skips.push(new RegExp("^"+a.substr(1)+"$")):v.names.push(new RegExp("^"+a+"$")))}function s(){v.enable("")}function d(a){var r,c;for(r=0,c=v.skips.length;r<c;r++)if(v.skips[r].test(a))return!1;for(r=0,c=v.names.length;r<c;r++)if(v.names[r].test(a))return!0;return!1}function u(a){return a instanceof Error?a.stack||a.message:a}v=A.exports=g.debug=g.default=g,v.coerce=u,v.disable=s,v.enable=o,v.enabled=d,v.humanize=n("ms"),v.names=[],v.skips=[],v.formatters={};var e},{ms:169}],157:[function(n,A,v){"use strict";function h(o){var s=""+o,d=g.exec(s);if(!d)return s;var u,e="",a=0,r=0;for(a=d.index;a<s.length;a++){switch(s.charCodeAt(a)){case 34:u="&quot;";break;case 38:u="&amp;";break;case 39:u="&#39;";break;case 60:u="&lt;";break;case 62:u="&gt;";break;default:continue}r!==a&&(e+=s.substring(r,a)),r=a+1,e+=u}return r!==a?e+s.substring(r,a):e}var g=/["'&<>]/;A.exports=h},{}],158:[function(n,A,v){function h(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function g(u){return typeof u=="function"}function o(u){return typeof u=="number"}function s(u){return typeof u=="object"&&u!==null}function d(u){return u===void 0}A.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0,h.defaultMaxListeners=10,h.prototype.setMaxListeners=function(u){if(!o(u)||u<0||isNaN(u))throw TypeError("n must be a positive number");return this._maxListeners=u,this},h.prototype.emit=function(u){var e,a,r,c,f,l;if(this._events||(this._events={}),u==="error"&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var x=new Error('Uncaught, unspecified "error" event. ('+e+")");throw x.context=e,x}if(a=this._events[u],d(a))return!1;if(g(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),a.apply(this,c)}else if(s(a))for(c=Array.prototype.slice.call(arguments,1),l=a.slice(),r=l.length,f=0;f<r;f++)l[f].apply(this,c);return!0},h.prototype.addListener=function(u,e){var a;if(!g(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",u,g(e.listener)?e.listener:e),this._events[u]?s(this._events[u])?this._events[u].push(e):this._events[u]=[this._events[u],e]:this._events[u]=e,s(this._events[u])&&!this._events[u].warned&&(a=d(this._maxListeners)?h.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[u].length>a&&(this._events[u].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[u].length),typeof console.trace=="function"&&console.trace()),this},h.prototype.on=h.prototype.addListener,h.prototype.once=function(u,e){function a(){this.removeListener(u,a),r||(r=!0,e.apply(this,arguments))}if(!g(e))throw TypeError("listener must be a function");var r=!1;return a.listener=e,this.on(u,a),this},h.prototype.removeListener=function(u,e){var a,r,c,f;if(!g(e))throw TypeError("listener must be a function");if(!this._events||!this._events[u])return this;if(a=this._events[u],c=a.length,r=-1,a===e||g(a.listener)&&a.listener===e)delete this._events[u],this._events.removeListener&&this.emit("removeListener",u,e);else if(s(a)){for(f=c;f-- >0;)if(a[f]===e||a[f].listener&&a[f].listener===e){r=f;break}if(r<0)return this;a.length===1?(a.length=0,delete this._events[u]):a.splice(r,1),this._events.removeListener&&this.emit("removeListener",u,e)}return this},h.prototype.removeAllListeners=function(u){var e,a;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[u]&&delete this._events[u],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[u],g(a))this.removeListener(u,a);else if(a)for(;a.length;)this.removeListener(u,a[a.length-1]);return delete this._events[u],this},h.prototype.listeners=function(u){return this._events&&this._events[u]?g(this._events[u])?[this._events[u]]:this._events[u].slice():[]},h.prototype.listenerCount=function(u){if(this._events){var e=this._events[u];if(g(e))return 1;if(e)return e.length}return 0},h.listenerCount=function(u,e){return u.listenerCount(e)}},{}],159:[function(n,A,v){var h=n("http"),g=A.exports;for(var o in h)h.hasOwnProperty(o)&&(g[o]=h[o]);g.request=function(s,d){return s||(s={}),s.scheme="https",s.protocol="https:",h.request.call(this,s,d)}},{http:196}],160:[function(n,A,v){"use strict";var h=n("util"),g=n("ms");A.exports=function(o){if(typeof o=="number")return o;var s=g(o);if(s===void 0){var d=new Error(h.format("humanize-ms(%j) result undefined",o));console.warn(d.stack)}return s}},{ms:169,util:207}],161:[function(n,A,v){v.read=function(h,g,o,s,d){var u,e,a=8*d-s-1,r=(1<<a)-1,c=r>>1,f=-7,l=o?d-1:0,x=o?-1:1,E=h[g+l];for(l+=x,u=E&(1<<-f)-1,E>>=-f,f+=a;f>0;u=256*u+h[g+l],l+=x,f-=8);for(e=u&(1<<-f)-1,u>>=-f,f+=s;f>0;e=256*e+h[g+l],l+=x,f-=8);if(u===0)u=1-c;else{if(u===r)return e?NaN:1/0*(E?-1:1);e+=Math.pow(2,s),u-=c}return(E?-1:1)*e*Math.pow(2,u-s)},v.write=function(h,g,o,s,d,u){var e,a,r,c=8*u-d-1,f=(1<<c)-1,l=f>>1,x=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=s?0:u-1,p=s?1:-1,T=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(a=isNaN(g)?1:0,e=f):(e=Math.floor(Math.log(g)/Math.LN2),g*(r=Math.pow(2,-e))<1&&(e--,r*=2),g+=e+l>=1?x/r:x*Math.pow(2,1-l),g*r>=2&&(e++,r/=2),e+l>=f?(a=0,e=f):e+l>=1?(a=(g*r-1)*Math.pow(2,d),e+=l):(a=g*Math.pow(2,l-1)*Math.pow(2,d),e=0));d>=8;h[o+E]=255&a,E+=p,a/=256,d-=8);for(e=e<<d|a,c+=d;c>0;h[o+E]=255&e,E+=p,e/=256,c-=8);h[o+E-p]|=128*T}},{}],162:[function(n,A,v){typeof Object.create=="function"?A.exports=function(h,g){h.super_=g,h.prototype=Object.create(g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:A.exports=function(h,g){h.super_=g;var o=function(){};o.prototype=g.prototype,h.prototype=new o,h.prototype.constructor=h}},{}],163:[function(n,A,v){function h(o){return!!o.constructor&&typeof o.constructor.isBuffer=="function"&&o.constructor.isBuffer(o)}function g(o){return typeof o.readFloatLE=="function"&&typeof o.slice=="function"&&h(o.slice(0,0))}A.exports=function(o){return o!=null&&(h(o)||g(o)||!!o._isBuffer)}},{}],164:[function(n,A,v){!function(h){function g(d){return s.call(d).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(d){return typeof d=="function"&&(/^class(\s|\{\}$)/.test(s.call(d))||/^.*classCallCheck\(/.test(g(d)))}var s=Function.prototype.toString;v!==void 0?(A!==void 0&&A.exports&&(v=A.exports=o),v.isClass=o):typeof he=="function"&&he.amd?he([],function(){return o}):h.isClass=o}(this)},{}],165:[function(n,A,v){"use strict";function h(u){var e=u.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var g=n("core-util-is"),o=n("isstream"),s=n("is-class");Object.keys(g).map(function(u){v[h(u)]=g[u]}),v.stream=o,v.readableStream=o.isReadable,v.writableStream=o.isWritable,v.duplexStream=o.isDuplex,v.class=s,v.finite=function(u){return Number.isFinite(u)},v.NaN=function(u){return Number.isNaN(u)},v.generator=function(u){return u&&typeof u.next=="function"&&typeof u.throw=="function"},v.generatorFunction=function(u){return u&&u.constructor&&u.constructor.name==="GeneratorFunction"},v.asyncFunction=function(u){return u&&u.constructor&&u.constructor.name==="AsyncFunction"},v.promise=function(u){return u&&typeof u.then=="function"};var d=Math.pow(2,31);v.int=function(u){return g.isNumber(u)&&u%1==0},v.int32=function(u){return v.int(u)&&u<d&&u>=-d},v.long=function(u){return v.int(u)&&(u>=d||u<-d)},v.Long=function(u){return v.object(u)&&v.number(u.high)&&v.number(u.low)},v.double=function(u){return g.isNumber(u)&&!isNaN(u)&&u%1!=0},v.date=function(u){return u instanceof Date},v.regExp=function(u){return u instanceof RegExp},v.regexp=v.regExp,v.error=function(u){return u instanceof Error},v.array=function(u){return Array.isArray(u)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,A,v){var h={}.toString;A.exports=Array.isArray||function(g){return h.call(g)=="[object Array]"}},{}],167:[function(n,A,v){function h(u){return u instanceof d.Stream}function g(u){return h(u)&&typeof u._read=="function"&&typeof u._readableState=="object"}function o(u){return h(u)&&typeof u._write=="function"&&typeof u._writableState=="object"}function s(u){return g(u)&&o(u)}var d=n("stream");A.exports=h,A.exports.isReadable=g,A.exports.isWritable=o,A.exports.isDuplex=s},{stream:195}],168:[function(n,A,v){"use strict";function h(o,s,d){if(!o)throw new TypeError("argument dest is required");if(!s)throw new TypeError("argument src is required");return d===void 0&&(d=!0),Object.getOwnPropertyNames(s).forEach(function(u){if(d||!g.call(o,u)){var e=Object.getOwnPropertyDescriptor(s,u);Object.defineProperty(o,u,e)}}),o}A.exports=h;var g=Object.prototype.hasOwnProperty},{}],169:[function(n,A,v){function h(c){if(c=String(c),!(c.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(f){var l=parseFloat(f[1]);switch((f[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*r;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*e;case"minutes":case"minute":case"mins":case"min":case"m":return l*u;case"seconds":case"second":case"secs":case"sec":case"s":return l*d;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function g(c){return c>=a?Math.round(c/a)+"d":c>=e?Math.round(c/e)+"h":c>=u?Math.round(c/u)+"m":c>=d?Math.round(c/d)+"s":c+"ms"}function o(c){return s(c,a,"day")||s(c,e,"hour")||s(c,u,"minute")||s(c,d,"second")||c+" ms"}function s(c,f,l){if(!(c<f))return c<1.5*f?Math.floor(c/f)+" "+l:Math.ceil(c/f)+" "+l+"s"}var d=1e3,u=60*d,e=60*u,a=24*e,r=365.25*a;A.exports=function(c,f){f=f||{};var l=typeof c;if(l==="string"&&c.length>0)return h(c);if(l==="number"&&isNaN(c)===!1)return f.long?o(c):g(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(n,A,v){(function(h){function g(u,e){for(var a=0,r=u.length-1;r>=0;r--){var c=u[r];c==="."?u.splice(r,1):c===".."?(u.splice(r,1),a++):a&&(u.splice(r,1),a--)}if(e)for(;a--;a)u.unshift("..");return u}function o(u){typeof u!="string"&&(u+="");var e,a=0,r=-1,c=!0;for(e=u.length-1;e>=0;--e)if(u.charCodeAt(e)===47){if(!c){a=e+1;break}}else r===-1&&(c=!1,r=e+1);return r===-1?"":u.slice(a,r)}function s(u,e){if(u.filter)return u.filter(e);for(var a=[],r=0;r<u.length;r++)e(u[r],r,u)&&a.push(u[r]);return a}v.resolve=function(){for(var u="",e=!1,a=arguments.length-1;a>=-1&&!e;a--){var r=a>=0?arguments[a]:h.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(u=r+"/"+u,e=r.charAt(0)==="/")}return u=g(s(u.split("/"),function(c){return!!c}),!e).join("/"),(e?"/":"")+u||"."},v.normalize=function(u){var e=v.isAbsolute(u),a=d(u,-1)==="/";return u=g(s(u.split("/"),function(r){return!!r}),!e).join("/"),u||e||(u="."),u&&a&&(u+="/"),(e?"/":"")+u},v.isAbsolute=function(u){return u.charAt(0)==="/"},v.join=function(){var u=Array.prototype.slice.call(arguments,0);return v.normalize(s(u,function(e,a){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},v.relative=function(u,e){function a(p){for(var T=0;T<p.length&&p[T]==="";T++);for(var S=p.length-1;S>=0&&p[S]==="";S--);return T>S?[]:p.slice(T,S-T+1)}u=v.resolve(u).substr(1),e=v.resolve(e).substr(1);for(var r=a(u.split("/")),c=a(e.split("/")),f=Math.min(r.length,c.length),l=f,x=0;x<f;x++)if(r[x]!==c[x]){l=x;break}for(var E=[],x=l;x<r.length;x++)E.push("..");return E=E.concat(c.slice(l)),E.join("/")},v.sep="/",v.delimiter=":",v.dirname=function(u){if(typeof u!="string"&&(u+=""),u.length===0)return".";for(var e=u.charCodeAt(0),a=e===47,r=-1,c=!0,f=u.length-1;f>=1;--f)if((e=u.charCodeAt(f))===47){if(!c){r=f;break}}else c=!1;return r===-1?a?"/":".":a&&r===1?"/":u.slice(0,r)},v.basename=function(u,e){var a=o(u);return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},v.extname=function(u){typeof u!="string"&&(u+="");for(var e=-1,a=0,r=-1,c=!0,f=0,l=u.length-1;l>=0;--l){var x=u.charCodeAt(l);if(x!==47)r===-1&&(c=!1,r=l+1),x===46?e===-1?e=l:f!==1&&(f=1):e!==-1&&(f=-1);else if(!c){a=l+1;break}}return e===-1||r===-1||f===0||f===1&&e===r-1&&e===a+1?"":u.slice(e,r)};var d="ab".substr(-1)==="b"?function(u,e,a){return u.substr(e,a)}:function(u,e,a){return e<0&&(e=u.length+e),u.substr(e,a)}}).call(this,n("_process"))},{_process:173}],171:[function(n,A,v){(function(h){(function(){"use strict";function g(D){return D=String(D),D.charAt(0).toUpperCase()+D.slice(1)}function o(D,N,j){var z={"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 N&&j&&/^Win/i.test(D)&&!/^Windows Phone /i.test(D)&&(z=z[/[\d.]+$/.exec(D)])&&(D="Windows "+z),D=String(D),N&&j&&(D=D.replace(RegExp(N,"i"),j)),D=d(D.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 s(D,N){var j=-1,z=D?D.length:0;if(typeof z=="number"&&z>-1&&z<=m)for(;++j<z;)N(D[j],j,D);else u(D,N)}function d(D){return D=f(D),/^(?:webOS|i(?:OS|P))/.test(D)?D:g(D)}function u(D,N){for(var j in D)C.call(D,j)&&N(D[j],j,D)}function e(D){return D==null?g(D):_.call(D).slice(8,-1)}function a(D,N){var j=D!=null?typeof D[N]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(j)||j=="object"&&!D[N])}function r(D){return String(D).replace(/([ -])(?!$)/g,"$1?")}function c(D,N){var j=null;return s(D,function(z,V){j=N(j,z,V,D)}),j}function f(D){return String(D).replace(/^ +| +$/g,"")}function l(D){function N(P){return c(P,function(y,w){var X=w.pattern||r(w);return!y&&(y=RegExp("\\b"+X+" *\\d+[.\\w_]*","i").exec(D)||RegExp("\\b"+X+" *\\w+-[\\w]*","i").exec(D)||RegExp("\\b"+X+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(D))&&((y=String(w.label&&!RegExp(X,"i").test(w.label)?w.label:y).split("/"))[1]&&!/[\d.]+/.test(y[0])&&(y[0]+=" "+y[1]),w=w.label||w,y=d(y[0].replace(RegExp(X,"i"),w).replace(RegExp("; *(?:"+w+"[_-])?","i")," ").replace(RegExp("("+w+")[-_.]?(\\w)","i"),"$1 $2"))),y})}function j(){return this.description||""}var z=E,V=D&&typeof D=="object"&&e(D)!="String";V&&(z=D,D=null);var G=z.navigator||{},Z=G.userAgent||"";D||(D=Z);var F,ee,$=V?!!G.likeChrome:/\bChrome\b/.test(D)&&!/internal|\n/i.test(_.toString()),W=V?"Object":"ScriptBridgingProxyObject",R=V?"Object":"Environment",I=V&&z.java?"JavaPackage":e(z.java),U=V?"Object":"RuntimeObject",M=/\bJava/.test(I)&&z.java,H=M&&e(z.environment)==R,Y=M?"a":"\u4F2A",oe=M?"b":"\u5C3E",ne=z.document||{},ue=z.operamini||z.opera,pe=b.test(pe=V&&ue?ue["[[Class]]"]:e(ue))?pe:ue=null,Q=D,J=[],ie=null,q=D==Z,B=q&&ue&&typeof ue.version=="function"&&ue.version(),re=function(P){return c(P,function(y,w){return y||RegExp("\\b"+(w.pattern||r(w))+"\\b","i").exec(D)&&(w.label||w)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=function(P){return c(P,function(y,w){return y||RegExp("\\b"+(w.pattern||r(w))+"\\b","i").exec(D)&&(w.label||w)})}(["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"]),de=N([{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"]),k=function(P){return c(P,function(y,w,X){return y||(w[de]||w[/^[a-z]+(?: +[a-z]+\b)*/i.exec(de)]||RegExp("\\b"+r(X)+"(?:\\b|\\w*\\d)","i").exec(D))&&X})}({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(P){return c(P,function(y,w){var X=w.pattern||r(w);return!y&&(y=RegExp("\\b"+X+"(?:/[\\d.]+|[ \\w.]*)","i").exec(D))&&(y=o(y,X,w.label||w)),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(re&&(re=[re]),k&&!de&&(de=N([k])),(F=/\bGoogle TV\b/.exec(de))&&(de=F[0]),/\bSimulator\b/i.test(D)&&(de=(de?de+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(D)&&J.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(D)?(F=l(D.replace(/like iPhone OS/,"")),k=F.manufacturer,de=F.product):/^iP/.test(de)?(te||(te="Safari"),t="iOS"+((F=/ OS ([\d_]+)/i.exec(D))?" "+F[1].replace(/_/g,"."):"")):te!="Konqueror"||/buntu/i.test(t)?k&&k!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(D)||/\bVita\b/.test(de))||/\bAndroid\b/.test(t)&&/^Chrome/.test(te)&&/\bVersion\//i.test(D)?(te="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):te=="Silk"?(/\bMobi/i.test(D)||(t="Android",J.unshift("desktop mode")),/Accelerated *= *true/i.test(D)&&J.unshift("accelerated")):te=="PaleMoon"&&(F=/\bFirefox\/([\d.]+)\b/.exec(D))?J.push("identifying as Firefox "+F[1]):te=="Firefox"&&(F=/\b(Mobile|Tablet|TV)\b/i.exec(D))?(t||(t="Firefox OS"),de||(de=F[1])):!te||(F=!/\bMinefield\b/i.test(D)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!de&&/[\/,]|^[^(]+?\)/.test(D.slice(D.indexOf(F+"/")+8))&&(te=null),(F=de||k||t)&&(de||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:F)+" Browser")):te=="Electron"&&(F=(/\bChrome\/([\d.]+)\b/.exec(D)||0)[1])&&J.push("Chromium "+F):t="Kubuntu",B||(B=function(P){return c(P,function(y,w){return y||(RegExp(w+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(D)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",r(te),"(?:Firefox|Minefield|NetFront)"])),(F=re=="iCab"&&parseFloat(B)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(D)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(D)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(D)&&(t=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(re=[F]),te=="IE"&&(F=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(D)||0)[1])?(te+=" Mobile",t="Windows Phone "+(/\+$/.test(F)?F:F+".x"),J.unshift("desktop mode")):/\bWPDesktop\b/i.test(D)?(te="IE Mobile",t="Windows Phone 8.x",J.unshift("desktop mode"),B||(B=(/\brv:([\d.]+)/.exec(D)||0)[1])):te!="IE"&&re=="Trident"&&(F=/\brv:([\d.]+)/.exec(D))&&(te&&J.push("identifying as "+te+(B?" "+B:"")),te="IE",B=F[1]),q){if(a(z,"global"))if(M&&(F=M.lang.System,Q=F.getProperty("os.arch"),t=t||F.getProperty("os.name")+" "+F.getProperty("os.version")),H){try{B=z.require("ringo/engine").version.join("."),te="RingoJS"}catch(P){(F=z.system)&&F.global.system==z.system&&(te="Narwhal",t||(t=F[0].os||null))}te||(te="Rhino")}else typeof z.process=="object"&&!z.process.browser&&(F=z.process)&&(typeof F.versions=="object"&&(typeof F.versions.electron=="string"?(J.push("Node "+F.versions.node),te="Electron",B=F.versions.electron):typeof F.versions.nw=="string"&&(J.push("Chromium "+B,"Node "+F.versions.node),te="NW.js",B=F.versions.nw)),te||(te="Node.js",Q=F.arch,t=F.platform,B=/[\d.]+/.exec(F.version),B=B?B[0]:null));else e(F=z.runtime)==W?(te="Adobe AIR",t=F.flash.system.Capabilities.os):e(F=z.phantom)==U?(te="PhantomJS",B=(F=F.version||null)&&F.major+"."+F.minor+"."+F.patch):typeof ne.documentMode=="number"&&(F=/\bTrident\/(\d+)/i.exec(D))?(B=[B,ne.documentMode],(F=+F[1]+4)!=B[1]&&(J.push("IE "+B[1]+" mode"),re&&(re[1]=""),B[1]=F),B=te=="IE"?String(B[1].toFixed(1)):B[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(J.push("masking as "+te+" "+B),te="IE",B="11.0",re=["Trident"],t="Windows");t=t&&d(t)}if(B&&(F=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(B)||/(?:alpha|beta)(?: ?\d)?/i.exec(D+";"+(q&&G.appMinorVersion))||/\bMinefield\b/i.test(D)&&"a")&&(ie=/b/i.test(F)?"beta":"alpha",B=B.replace(RegExp(F+"\\+?$"),"")+(ie=="beta"?oe:Y)+(/\d+\+?/.exec(F)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))te="Firefox Mobile";else if(te=="Maxthon"&&B)B=B.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(de))de=="Xbox 360"&&(t=null),de=="Xbox 360"&&/\bIEMobile\b/.test(D)&&J.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(te)&&(!te||de||/Browser|Mobi/.test(te))||t!="Windows CE"&&!/Mobi/i.test(D))if(te=="IE"&&q)try{z.external===null&&J.unshift("platform preview")}catch(P){J.unshift("embedded")}else(/\bBlackBerry\b/.test(de)||/\bBB10\b/.test(D))&&(F=(RegExp(de.replace(/ +/g," *")+"/([.\\d]+)","i").exec(D)||0)[1]||B)?(F=[F,/BB10/.test(D)],t=(F[1]?(de=null,k="BlackBerry"):"Device Software")+" "+F[0],B=null):this!=u&&de!="Wii"&&(q&&ue||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(D)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||te=="IE"&&(t&&!/^Win/.test(t)&&B>5.5||/\bWindows XP\b/.test(t)&&B>8||B==8&&!/\bTrident\b/.test(D)))&&!b.test(F=l.call(u,D.replace(b,"")+";"))&&F.name&&(F="ing as "+F.name+((F=F.version)?" "+F:""),b.test(te)?(/\bIE\b/.test(F)&&t=="Mac OS"&&(t=null),F="identify"+F):(F="mask"+F,te=pe?d(pe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(F)&&(t=null),q||(B=null)),re=["Presto"],J.push(F));else te+=" Mobile";(F=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(D)||0)[1])&&(F=[parseFloat(F.replace(/\.(\d)$/,".0$1")),F],te=="Safari"&&F[1].slice(-1)=="+"?(te="WebKit Nightly",ie="alpha",B=F[1].slice(0,-1)):B!=F[1]&&B!=(F[2]=(/\bSafari\/([\d.]+\+?)/i.exec(D)||0)[1])||(B=null),F[1]=(/\bChrome\/([\d.]+)/i.exec(D)||0)[1],F[0]==537.36&&F[2]==537.36&&parseFloat(F[1])>=28&&re=="WebKit"&&(re=["Blink"]),q&&($||F[1])?(re&&(re[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:re!="Blink"?"27":"28")):(re&&(re[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"),re&&(re[1]+=" "+(F+=typeof F=="number"?".x":/[.+]/.test(F)?"":"+")),te=="Safari"&&(!B||parseInt(B)>45)&&(B=F)),te=="Opera"&&(F=/\bzbov|zvav$/.exec(t))?(te+=" ",J.unshift("desktop mode"),F=="zvav"?(te+="Mini",B=null):te+="Mobile",t=t.replace(RegExp(" *"+F+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(J.unshift("desktop mode"),te="Chrome Mobile",B=null,/\bOS X\b/.test(t)?(k="Apple",t="iOS 4.3+"):t=null),B&&B.indexOf(F=/[\d.]+$/.exec(t))==0&&D.indexOf("/"+F+"-")>-1&&(t=f(t.replace(F,""))),re&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&re[1])&&(F=re[re.length-1])&&J.push(F),J.length&&(J=["("+J.join("; ")+")"]),k&&de&&de.indexOf(k)<0&&J.push("on "+k),de&&J.push((/^on /.test(J[J.length-1])?"":"on ")+de),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),"")),te&&(/\bWOW64\b/i.test(D)||q&&/\w(?:86|32)$/.test(G.cpuClass||G.platform)&&!/\bWin64; x64\b/i.test(D))&&J.unshift("32-bit")):t&&/^OS X/.test(t.family)&&te=="Chrome"&&parseFloat(B)>=39&&(t.architecture=64),D||(D=null);var i={};return i.description=D,i.layout=re&&re[0],i.manufacturer=k,i.name=te,i.prerelease=ie,i.product=de,i.ua=D,i.version=te&&B,i.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},i.parse=l,i.toString=j,i.version&&J.unshift(B),i.name&&J.unshift(te),t&&te&&(t!=String(t).split(" ")[0]||t!=te.split(" ")[0]&&!de)&&J.push(de?"("+t+")":"on "+t),J.length&&(i.description=J.join(" ")),i}var x={function:!0,object:!0},E=x[typeof window]&&window||this,p=x[typeof v]&&v,T=x[typeof A]&&A&&!A.nodeType&&A,S=p&&T&&typeof h=="object"&&h;!S||S.global!==S&&S.window!==S&&S.self!==S||(E=S);var m=Math.pow(2,53)-1,b=/\bOpera/,O=Object.prototype,C=O.hasOwnProperty,_=O.toString,L=l();typeof he=="function"&&typeof he.amd=="object"&&he.amd?(E.platform=L,he(function(){return L})):p&&T?u(L,function(D,N){p[N]=D}):E.platform=L}).call(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,A,v){(function(h){"use strict";function g(o,s,d,u){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var e,a,r=arguments.length;switch(r){case 0:case 1:return h.nextTick(o);case 2:return h.nextTick(function(){o.call(null,s)});case 3:return h.nextTick(function(){o.call(null,s,d)});case 4:return h.nextTick(function(){o.call(null,s,d,u)});default:for(e=new Array(r-1),a=0;a<e.length;)e[a++]=arguments[a];return h.nextTick(function(){o.apply(null,e)})}}!h.version||h.version.indexOf("v0.")===0||h.version.indexOf("v1.")===0&&h.version.indexOf("v1.8.")!==0?A.exports={nextTick:g}:A.exports=h}).call(this,n("_process"))},{_process:173}],173:[function(n,A,v){function h(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function o(T){if(r===setTimeout)return setTimeout(T,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(T,0);try{return r(T,0)}catch(S){try{return r.call(null,T,0)}catch(m){return r.call(this,T,0)}}}function s(T){if(c===clearTimeout)return clearTimeout(T);if((c===g||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(T);try{return c(T)}catch(S){try{return c.call(null,T)}catch(m){return c.call(this,T)}}}function d(){E&&l&&(E=!1,l.length?x=l.concat(x):p=-1,x.length&&u())}function u(){if(!E){var T=o(d);E=!0;for(var S=x.length;S;){for(l=x,x=[];++p<S;)l&&l[p].run();p=-1,S=x.length}l=null,E=!1,s(T)}}function e(T,S){this.fun=T,this.array=S}function a(){}var r,c,f=A.exports={};!function(){try{r=typeof setTimeout=="function"?setTimeout:h}catch(T){r=h}try{c=typeof clearTimeout=="function"?clearTimeout:g}catch(T){c=g}}();var l,x=[],E=!1,p=-1;f.nextTick=function(T){var S=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)S[m-1]=arguments[m];x.push(new e(T,S)),x.length!==1||E||o(u)},e.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=a,f.addListener=a,f.once=a,f.off=a,f.removeListener=a,f.removeAllListeners=a,f.emit=a,f.prependListener=a,f.prependOnceListener=a,f.listeners=function(T){return[]},f.binding=function(T){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(T){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],174:[function(n,A,v){(function(h){!function(g){function o(I){throw new RangeError(ee[I])}function s(I,U){for(var M=I.length,H=[];M--;)H[M]=U(I[M]);return H}function d(I,U){var M=I.split("@"),H="";return M.length>1&&(H=M[0]+"@",I=M[1]),I=I.replace(F,"."),H+s(I.split("."),U).join(".")}function u(I){for(var U,M,H=[],Y=0,oe=I.length;Y<oe;)U=I.charCodeAt(Y++),U>=55296&&U<=56319&&Y<oe?(M=I.charCodeAt(Y++),(64512&M)==56320?H.push(((1023&U)<<10)+(1023&M)+65536):(H.push(U),Y--)):H.push(U);return H}function e(I){return s(I,function(U){var M="";return U>65535&&(U-=65536,M+=R(U>>>10&1023|55296),U=56320|1023&U),M+=R(U)}).join("")}function a(I){return I-48<10?I-22:I-65<26?I-65:I-97<26?I-97:C}function r(I,U){return I+22+75*(I<26)-((U!=0)<<5)}function c(I,U,M){var H=0;for(I=M?W(I/N):I>>1,I+=W(I/U);I>$*L>>1;H+=C)I=W(I/$);return W(H+($+1)*I/(I+D))}function f(I){var U,M,H,Y,oe,ne,ue,pe,Q,J,ie=[],q=I.length,B=0,re=z,te=j;for(M=I.lastIndexOf(V),M<0&&(M=0),H=0;H<M;++H)I.charCodeAt(H)>=128&&o("not-basic"),ie.push(I.charCodeAt(H));for(Y=M>0?M+1:0;Y<q;){for(oe=B,ne=1,ue=C;Y>=q&&o("invalid-input"),pe=a(I.charCodeAt(Y++)),(pe>=C||pe>W((O-B)/ne))&&o("overflow"),B+=pe*ne,Q=ue<=te?_:ue>=te+L?L:ue-te,!(pe<Q);ue+=C)J=C-Q,ne>W(O/J)&&o("overflow"),ne*=J;U=ie.length+1,te=c(B-oe,U,oe==0),W(B/U)>O-re&&o("overflow"),re+=W(B/U),B%=U,ie.splice(B++,0,re)}return e(ie)}function l(I){var U,M,H,Y,oe,ne,ue,pe,Q,J,ie,q,B,re,te,de=[];for(I=u(I),q=I.length,U=z,M=0,oe=j,ne=0;ne<q;++ne)(ie=I[ne])<128&&de.push(R(ie));for(H=Y=de.length,Y&&de.push(V);H<q;){for(ue=O,ne=0;ne<q;++ne)(ie=I[ne])>=U&&ie<ue&&(ue=ie);for(B=H+1,ue-U>W((O-M)/B)&&o("overflow"),M+=(ue-U)*B,U=ue,ne=0;ne<q;++ne)if(ie=I[ne],ie<U&&++M>O&&o("overflow"),ie==U){for(pe=M,Q=C;J=Q<=oe?_:Q>=oe+L?L:Q-oe,!(pe<J);Q+=C)te=pe-J,re=C-J,de.push(R(r(J+te%re,0))),pe=W(te/re);de.push(R(r(pe,0))),oe=c(M,B,H==Y),M=0,++H}++M,++U}return de.join("")}function x(I){return d(I,function(U){return G.test(U)?f(U.slice(4).toLowerCase()):U})}function E(I){return d(I,function(U){return Z.test(U)?"xn--"+l(U):U})}var p=typeof v=="object"&&v&&!v.nodeType&&v,T=typeof A=="object"&&A&&!A.nodeType&&A,S=typeof h=="object"&&h;S.global!==S&&S.window!==S&&S.self!==S||(g=S);var m,b,O=2147483647,C=36,_=1,L=26,D=38,N=700,j=72,z=128,V="-",G=/^xn--/,Z=/[^\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-_,W=Math.floor,R=String.fromCharCode;if(m={version:"1.4.1",ucs2:{decode:u,encode:e},decode:f,encode:l,toASCII:E,toUnicode:x},typeof he=="function"&&typeof he.amd=="object"&&he.amd)he("punycode",function(){return m});else if(p&&T)if(A.exports==p)T.exports=m;else for(b in m)m.hasOwnProperty(b)&&(p[b]=m[b]);else g.punycode=m}(this)}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,A,v){"use strict";function h(o,s){return Object.prototype.hasOwnProperty.call(o,s)}A.exports=function(o,s,d,u){s=s||"&",d=d||"=";var e={};if(typeof o!="string"||o.length===0)return e;var a=/\+/g;o=o.split(s);var r=1e3;u&&typeof u.maxKeys=="number"&&(r=u.maxKeys);var c=o.length;r>0&&c>r&&(c=r);for(var f=0;f<c;++f){var l,x,E,p,T=o[f].replace(a,"%20"),S=T.indexOf(d);S>=0?(l=T.substr(0,S),x=T.substr(S+1)):(l=T,x=""),E=decodeURIComponent(l),p=decodeURIComponent(x),h(e,E)?g(e[E])?e[E].push(p):e[E]=[e[E],p]:e[E]=p}return e};var g=Array.isArray||function(o){return Object.prototype.toString.call(o)==="[object Array]"}},{}],176:[function(n,A,v){"use strict";function h(d,u){if(d.map)return d.map(u);for(var e=[],a=0;a<d.length;a++)e.push(u(d[a],a));return e}var g=function(u){switch(typeof u){case"string":return u;case"boolean":return u?"true":"false";case"number":return isFinite(u)?u:"";default:return""}};A.exports=function(d,u,e,a){return u=u||"&",e=e||"=",d===null&&(d=void 0),typeof d=="object"?h(s(d),function(r){var c=encodeURIComponent(g(r))+e;return o(d[r])?h(d[r],function(f){return c+encodeURIComponent(g(f))}).join(u):c+encodeURIComponent(g(d[r]))}).join(u):a?encodeURIComponent(g(a))+e+encodeURIComponent(g(d)):""};var o=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"},s=Object.keys||function(d){var u=[];for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&u.push(e);return u}},{}],177:[function(n,A,v){"use strict";v.decode=v.parse=n("./decode"),v.encode=v.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,A,v){A.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,A,v){"use strict";function h(E){if(!(this instanceof h))return new h(E);r.call(this,E),c.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||u.nextTick(o,this)}function o(E){E.end()}var s=n("babel-runtime/core-js/object/keys"),d=function(E){return E&&E.__esModule?E:{default:E}}(s),u=n("process-nextick-args"),e=d.default||function(E){var p=[];for(var T in E)p.push(T);return p};A.exports=h;var a=n("core-util-is");a.inherits=n("inherits");var r=n("./_stream_readable"),c=n("./_stream_writable");a.inherits(h,r);for(var f=e(c.prototype),l=0;l<f.length;l++){var x=f[l];h.prototype[x]||(h.prototype[x]=c.prototype[x])}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),h.prototype._destroy=function(E,p){this.push(null),this.end(),u.nextTick(p,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,A,v){"use strict";function h(s){if(!(this instanceof h))return new h(s);g.call(this,s)}A.exports=h;var g=n("./_stream_transform"),o=n("core-util-is");o.inherits=n("inherits"),o.inherits(h,g),h.prototype._transform=function(s,d,u){u(null,s)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,A,v){(function(h,g){"use strict";function o(q){return M.from(q)}function s(q){return M.isBuffer(q)||q instanceof H}function d(q,B,re){if(typeof q.prependListener=="function")return q.prependListener(B,re);q._events&&q._events[B]?R(q._events[B])?q._events[B].unshift(re):q._events[B]=[re,q._events[B]]:q.on(B,re)}function u(q,B){W=W||n("./_stream_duplex"),q=q||{};var re=B instanceof W;this.objectMode=!!q.objectMode,re&&(this.objectMode=this.objectMode||!!q.readableObjectMode);var te=q.highWaterMark,de=q.readableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=te||te===0?te:re&&(de||de===0)?de:k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,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=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(ue||(ue=n("string_decoder/").StringDecoder),this.decoder=new ue(q.encoding),this.encoding=q.encoding)}function e(q){if(W=W||n("./_stream_duplex"),!(this instanceof e))return new e(q);this._readableState=new u(q,this),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),U.call(this)}function a(q,B,re,te,de){var k=q._readableState;if(B===null)k.reading=!1,E(q,k);else{var t;de||(t=c(k,B)),t?q.emit("error",t):k.objectMode||B&&B.length>0?(typeof B=="string"||k.objectMode||(0,ee.default)(B)===M.prototype||(B=o(B)),te?k.endEmitted?q.emit("error",new Error("stream.unshift() after end event")):r(q,k,B,!0):k.ended?q.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!re?(B=k.decoder.write(B),k.objectMode||B.length!==0?r(q,k,B,!1):S(q,k)):r(q,k,B,!1))):te||(k.reading=!1)}return f(k)}function r(q,B,re,te){B.flowing&&B.length===0&&!B.sync?(q.emit("data",re),q.read(0)):(B.length+=B.objectMode?1:re.length,te?B.buffer.unshift(re):B.buffer.push(re),B.needReadable&&p(q)),S(q,B)}function c(q,B){var re;return s(B)||typeof B=="string"||B===void 0||q.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re}function f(q){return!q.ended&&(q.needReadable||q.length<q.highWaterMark||q.length===0)}function l(q){return q>=ie?q=ie:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function x(q,B){return q<=0||B.length===0&&B.ended?0:B.objectMode?1:q!==q?B.flowing&&B.length?B.buffer.head.data.length:B.length:(q>B.highWaterMark&&(B.highWaterMark=l(q)),q<=B.length?q:B.ended?B.length:(B.needReadable=!0,0))}function E(q,B){if(!B.ended){if(B.decoder){var re=B.decoder.end();re&&re.length&&(B.buffer.push(re),B.length+=B.objectMode?1:re.length)}B.ended=!0,p(q)}}function p(q){var B=q._readableState;B.needReadable=!1,B.emittedReadable||(ne("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?$.nextTick(T,q):T(q))}function T(q){ne("emit readable"),q.emit("readable"),L(q)}function S(q,B){B.readingMore||(B.readingMore=!0,$.nextTick(m,q,B))}function m(q,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length<B.highWaterMark&&(ne("maybeReadMore read 0"),q.read(0),re!==B.length);)re=B.length;B.readingMore=!1}function b(q){return function(){var B=q._readableState;ne("pipeOnDrain",B.awaitDrain),B.awaitDrain&&B.awaitDrain--,B.awaitDrain===0&&I(q,"data")&&(B.flowing=!0,L(q))}}function O(q){ne("readable nexttick read 0"),q.read(0)}function C(q,B){B.resumeScheduled||(B.resumeScheduled=!0,$.nextTick(_,q,B))}function _(q,B){B.reading||(ne("resume read 0"),q.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,q.emit("resume"),L(q),B.flowing&&!B.reading&&q.read(0)}function L(q){var B=q._readableState;for(ne("flow",B.flowing);B.flowing&&q.read()!==null;);}function D(q,B){if(B.length===0)return null;var re;return B.objectMode?re=B.buffer.shift():!q||q>=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=N(q,B.buffer,B.decoder),re}function N(q,B,re){var te;return q<B.head.data.length?(te=B.head.data.slice(0,q),B.head.data=B.head.data.slice(q)):te=q===B.head.data.length?B.shift():re?j(q,B):z(q,B),te}function j(q,B){var re=B.head,te=1,de=re.data;for(q-=de.length;re=re.next;){var k=re.data,t=q>k.length?k.length:q;if(t===k.length?de+=k:de+=k.slice(0,q),(q-=t)===0){t===k.length?(++te,re.next?B.head=re.next:B.head=B.tail=null):(B.head=re,re.data=k.slice(t));break}++te}return B.length-=te,de}function z(q,B){var re=M.allocUnsafe(q),te=B.head,de=1;for(te.data.copy(re),q-=te.data.length;te=te.next;){var k=te.data,t=q>k.length?k.length:q;if(k.copy(re,re.length-q,0,t),(q-=t)===0){t===k.length?(++de,te.next?B.head=te.next:B.head=B.tail=null):(B.head=te,te.data=k.slice(t));break}++de}return B.length-=de,re}function V(q){var B=q._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,$.nextTick(G,B,q))}function G(q,B){q.endEmitted||q.length!==0||(q.endEmitted=!0,B.readable=!1,B.emit("end"))}function Z(q,B){for(var re=0,te=q.length;re<te;re++)if(q[re]===B)return re;return-1}var F=n("babel-runtime/core-js/object/get-prototype-of"),ee=function(q){return q&&q.__esModule?q:{default:q}}(F),$=n("process-nextick-args");A.exports=e;var W,R=n("isarray");e.ReadableState=u;var I=(n("events").EventEmitter,function(q,B){return q.listeners(B).length}),U=n("./internal/streams/stream"),M=n("safe-buffer").Buffer,H=g.Uint8Array||function(){},Y=n("core-util-is");Y.inherits=n("inherits");var oe=n("util"),ne=void 0;ne=oe&&oe.debuglog?oe.debuglog("stream"):function(){};var ue,pe=n("./internal/streams/BufferList"),Q=n("./internal/streams/destroy");Y.inherits(e,U);var J=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(B){this._readableState&&(this._readableState.destroyed=B)}}),e.prototype.destroy=Q.destroy,e.prototype._undestroy=Q.undestroy,e.prototype._destroy=function(q,B){this.push(null),B(q)},e.prototype.push=function(q,B){var re,te=this._readableState;return te.objectMode?re=!0:typeof q=="string"&&(B=B||te.defaultEncoding,B!==te.encoding&&(q=M.from(q,B),B=""),re=!0),a(this,q,B,!1,re)},e.prototype.unshift=function(q){return a(this,q,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(q){return ue||(ue=n("string_decoder/").StringDecoder),this._readableState.decoder=new ue(q),this._readableState.encoding=q,this};var ie=8388608;e.prototype.read=function(q){ne("read",q),q=parseInt(q,10);var B=this._readableState,re=q;if(q!==0&&(B.emittedReadable=!1),q===0&&B.needReadable&&(B.length>=B.highWaterMark||B.ended))return ne("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?V(this):p(this),null;if((q=x(q,B))===0&&B.ended)return B.length===0&&V(this),null;var te=B.needReadable;ne("need readable",te),(B.length===0||B.length-q<B.highWaterMark)&&(te=!0,ne("length less than watermark",te)),B.ended||B.reading?(te=!1,ne("reading or ended",te)):te&&(ne("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(q=x(re,B)));var de;return de=q>0?D(q,B):null,de===null?(B.needReadable=!0,q=0):B.length-=q,B.length===0&&(B.ended||(B.needReadable=!0),re!==q&&B.ended&&V(this)),de!==null&&this.emit("data",de),de},e.prototype._read=function(q){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(q,B){function re(ge,ye){ne("onunpipe"),ge===w&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,de())}function te(){ne("onend"),q.end()}function de(){ne("cleanup"),q.removeListener("close",i),q.removeListener("finish",P),q.removeListener("drain",fe),q.removeListener("error",t),q.removeListener("unpipe",re),w.removeListener("end",te),w.removeListener("end",y),w.removeListener("data",k),le=!0,!X.awaitDrain||q._writableState&&!q._writableState.needDrain||fe()}function k(ge){ne("ondata"),ce=!1,q.write(ge)!==!1||ce||((X.pipesCount===1&&X.pipes===q||X.pipesCount>1&&Z(X.pipes,q)!==-1)&&!le&&(ne("false write response, pause",w._readableState.awaitDrain),w._readableState.awaitDrain++,ce=!0),w.pause())}function t(ge){ne("onerror",ge),y(),q.removeListener("error",t),I(q,"error")===0&&q.emit("error",ge)}function i(){q.removeListener("finish",P),y()}function P(){ne("onfinish"),q.removeListener("close",i),y()}function y(){ne("unpipe"),w.unpipe(q)}var w=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=q;break;case 1:X.pipes=[X.pipes,q];break;default:X.pipes.push(q)}X.pipesCount+=1,ne("pipe count=%d opts=%j",X.pipesCount,B);var K=(!B||B.end!==!1)&&q!==h.stdout&&q!==h.stderr,me=K?te:y;X.endEmitted?$.nextTick(me):w.once("end",me),q.on("unpipe",re);var fe=b(w);q.on("drain",fe);var le=!1,ce=!1;return w.on("data",k),d(q,"error",t),q.once("close",i),q.once("finish",P),q.emit("pipe",w),X.flowing||(ne("pipe resume"),w.resume()),q},e.prototype.unpipe=function(q){var B=this._readableState,re={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return q&&q!==B.pipes?this:(q||(q=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,q&&q.emit("unpipe",this,re),this);if(!q){var te=B.pipes,de=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var k=0;k<de;k++)te[k].emit("unpipe",this,re);return this}var t=Z(B.pipes,q);return t===-1?this:(B.pipes.splice(t,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),q.emit("unpipe",this,re),this)},e.prototype.on=function(q,B){var re=U.prototype.on.call(this,q,B);if(q==="data")this._readableState.flowing!==!1&&this.resume();else if(q==="readable"){var te=this._readableState;te.endEmitted||te.readableListening||(te.readableListening=te.needReadable=!0,te.emittedReadable=!1,te.reading?te.length&&p(this):$.nextTick(O,this))}return re},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var q=this._readableState;return q.flowing||(ne("resume"),q.flowing=!0,C(this,q)),this},e.prototype.pause=function(){return ne("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ne("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(q){var B=this,re=this._readableState,te=!1;q.on("end",function(){if(ne("wrapped end"),re.decoder&&!re.ended){var t=re.decoder.end();t&&t.length&&B.push(t)}B.push(null)}),q.on("data",function(t){(ne("wrapped data"),re.decoder&&(t=re.decoder.write(t)),(!re.objectMode||t!=null)&&(re.objectMode||t&&t.length))&&(B.push(t)||(te=!0,q.pause()))});for(var de in q)this[de]===void 0&&typeof q[de]=="function"&&(this[de]=function(t){return function(){return q[t].apply(q,arguments)}}(de));for(var k=0;k<J.length;k++)q.on(J[k],this.emit.bind(this,J[k]));return this._read=function(t){ne("wrapped _read",t),te&&(te=!1,q.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=D}).call(this,n("_process"),typeof ke!="undefined"?ke: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,A,v){"use strict";function h(e,a){var r=this._transformState;r.transforming=!1;var c=r.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,a!=null&&this.push(a),c(e);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function g(e){if(!(this instanceof g))return new g(e);d.call(this,e),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;typeof this._flush=="function"?this._flush(function(a,r){s(e,a,r)}):s(this,null,null)}function s(e,a,r){if(a)return e.emit("error",a);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}A.exports=g;var d=n("./_stream_duplex"),u=n("core-util-is");u.inherits=n("inherits"),u.inherits(g,d),g.prototype.push=function(e,a){return this._transformState.needTransform=!1,d.prototype.push.call(this,e,a)},g.prototype._transform=function(e,a,r){throw new Error("_transform() is not implemented")},g.prototype._write=function(e,a,r){var c=this._transformState;if(c.writecb=r,c.writechunk=e,c.writeencoding=a,!c.transforming){var f=this._readableState;(c.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},g.prototype._read=function(e){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},g.prototype._destroy=function(e,a){var r=this;d.prototype._destroy.call(this,e,function(c){a(c),r.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,A,v){(function(h,g){"use strict";function o(Q){return Q&&Q.__esModule?Q:{default:Q}}function s(Q){var J=this;this.next=null,this.entry=null,this.finish=function(){j(J,Q)}}function d(Q){return oe.from(Q)}function u(Q){return oe.isBuffer(Q)||Q instanceof ne}function e(){}function a(Q,J){I=I||n("./_stream_duplex"),Q=Q||{};var ie=J instanceof I;this.objectMode=!!Q.objectMode,ie&&(this.objectMode=this.objectMode||!!Q.writableObjectMode);var q=Q.highWaterMark,B=Q.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:ie&&(B||B===0)?B:re,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 te=Q.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(de){S(J,de)},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 s(this)}function r(Q){if(I=I||n("./_stream_duplex"),!(pe.call(r,this)||this instanceof I))return new r(Q);this._writableState=new a(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)),Y.call(this)}function c(Q,J){var ie=new Error("write after end");Q.emit("error",ie),R.nextTick(J,ie)}function f(Q,J,ie,q){var B=!0,re=!1;return ie===null?re=new TypeError("May not write null values to stream"):typeof ie=="string"||ie===void 0||J.objectMode||(re=new TypeError("Invalid non-string/buffer chunk")),re&&(Q.emit("error",re),R.nextTick(q,re),B=!1),B}function l(Q,J,ie){return Q.objectMode||Q.decodeStrings===!1||typeof J!="string"||(J=oe.from(J,ie)),J}function x(Q,J,ie,q,B,re){if(!ie){var te=l(J,q,B);q!==te&&(ie=!0,B="buffer",q=te)}var de=J.objectMode?1:q.length;J.length+=de;var k=J.length<J.highWaterMark;if(k||(J.needDrain=!0),J.writing||J.corked){var t=J.lastBufferedRequest;J.lastBufferedRequest={chunk:q,encoding:B,isBuf:ie,callback:re,next:null},t?t.next=J.lastBufferedRequest:J.bufferedRequest=J.lastBufferedRequest,J.bufferedRequestCount+=1}else E(Q,J,!1,de,q,B,re);return k}function E(Q,J,ie,q,B,re,te){J.writelen=q,J.writecb=te,J.writing=!0,J.sync=!0,ie?Q._writev(B,J.onwrite):Q._write(B,re,J.onwrite),J.sync=!1}function p(Q,J,ie,q,B){--J.pendingcb,ie?(R.nextTick(B,q),R.nextTick(D,Q,J),Q._writableState.errorEmitted=!0,Q.emit("error",q)):(B(q),Q._writableState.errorEmitted=!0,Q.emit("error",q),D(Q,J))}function T(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function S(Q,J){var ie=Q._writableState,q=ie.sync,B=ie.writecb;if(T(ie),J)p(Q,ie,q,J,B);else{var re=C(ie);re||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||O(Q,ie),q?U(m,Q,ie,re,B):m(Q,ie,re,B)}}function m(Q,J,ie,q){ie||b(Q,J),J.pendingcb--,q(),D(Q,J)}function b(Q,J){J.length===0&&J.needDrain&&(J.needDrain=!1,Q.emit("drain"))}function O(Q,J){J.bufferProcessing=!0;var ie=J.bufferedRequest;if(Q._writev&&ie&&ie.next){var q=J.bufferedRequestCount,B=new Array(q),re=J.corkedRequestsFree;re.entry=ie;for(var te=0,de=!0;ie;)B[te]=ie,ie.isBuf||(de=!1),ie=ie.next,te+=1;B.allBuffers=de,E(Q,J,!0,J.length,B,"",re.finish),J.pendingcb++,J.lastBufferedRequest=null,re.next?(J.corkedRequestsFree=re.next,re.next=null):J.corkedRequestsFree=new s(J),J.bufferedRequestCount=0}else{for(;ie;){var k=ie.chunk,t=ie.encoding,i=ie.callback;if(E(Q,J,!1,J.objectMode?1:k.length,k,t,i),ie=ie.next,J.bufferedRequestCount--,J.writing)break}ie===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=ie,J.bufferProcessing=!1}function C(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function _(Q,J){Q._final(function(ie){J.pendingcb--,ie&&Q.emit("error",ie),J.prefinished=!0,Q.emit("prefinish"),D(Q,J)})}function L(Q,J){J.prefinished||J.finalCalled||(typeof Q._final=="function"?(J.pendingcb++,J.finalCalled=!0,R.nextTick(_,Q,J)):(J.prefinished=!0,Q.emit("prefinish")))}function D(Q,J){var ie=C(J);return ie&&(L(Q,J),J.pendingcb===0&&(J.finished=!0,Q.emit("finish"))),ie}function N(Q,J,ie){J.ending=!0,D(Q,J),ie&&(J.finished?R.nextTick(ie):Q.once("finish",ie)),J.ended=!0,Q.writable=!1}function j(Q,J,ie){var q=Q.entry;for(Q.entry=null;q;){var B=q.callback;J.pendingcb--,B(ie),q=q.next}J.corkedRequestsFree?J.corkedRequestsFree.next=Q:J.corkedRequestsFree=Q}var z=n("babel-runtime/core-js/object/define-property"),V=o(z),G=n("babel-runtime/core-js/symbol/has-instance"),Z=o(G),F=n("babel-runtime/core-js/symbol"),ee=o(F),$=n("babel-runtime/core-js/set-immediate"),W=o($),R=n("process-nextick-args");A.exports=r;var I,U=!h.browser&&["v0.10","v0.9."].indexOf(h.version.slice(0,5))>-1?W.default:R.nextTick;r.WritableState=a;var M=n("core-util-is");M.inherits=n("inherits");var H={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),oe=n("safe-buffer").Buffer,ne=g.Uint8Array||function(){},ue=n("./internal/streams/destroy");M.inherits(r,Y),a.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,J=[];Q;)J.push(Q),Q=Q.next;return J},function(){try{Object.defineProperty(a.prototype,"buffer",{get:H.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Q){}}();var pe;typeof ee.default=="function"&&Z.default&&typeof Function.prototype[Z.default]=="function"?(pe=Function.prototype[Z.default],(0,V.default)(r,Z.default,{value:function(J){return!!pe.call(this,J)||this===r&&J&&J._writableState instanceof a}})):pe=function(J){return J instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Q,J,ie){var q=this._writableState,B=!1,re=!q.objectMode&&u(Q);return re&&!oe.isBuffer(Q)&&(Q=d(Q)),typeof J=="function"&&(ie=J,J=null),re?J="buffer":J||(J=q.defaultEncoding),typeof ie!="function"&&(ie=e),q.ended?c(this,ie):(re||f(this,q,Q,ie))&&(q.pendingcb++,B=x(this,q,re,Q,J,ie)),B},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,Q.writing||Q.corked||Q.finished||Q.bufferProcessing||!Q.bufferedRequest||O(this,Q))},r.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(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Q,J,ie){ie(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Q,J,ie){var q=this._writableState;typeof Q=="function"?(ie=Q,Q=null,J=null):typeof J=="function"&&(ie=J,J=null),Q!=null&&this.write(Q,J),q.corked&&(q.corked=1,this.uncork()),q.ending||q.finished||N(this,q,ie)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),r.prototype.destroy=ue.destroy,r.prototype._undestroy=ue.undestroy,r.prototype._destroy=function(Q,J){this.end(),J(Q)}}).call(this,n("_process"),typeof ke!="undefined"?ke: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,A,v){"use strict";function h(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function g(d,u,e){d.copy(u,e)}var o=n("safe-buffer").Buffer,s=n("util");A.exports=function(){function d(){h(this,d),this.head=null,this.tail=null,this.length=0}return d.prototype.push=function(u){var e={data:u,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},d.prototype.unshift=function(u){var e={data:u,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},d.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},d.prototype.clear=function(){this.head=this.tail=null,this.length=0},d.prototype.join=function(u){if(this.length===0)return"";for(var e=this.head,a=""+e.data;e=e.next;)a+=u+e.data;return a},d.prototype.concat=function(u){if(this.length===0)return o.alloc(0);if(this.length===1)return this.head.data;for(var e=o.allocUnsafe(u>>>0),a=this.head,r=0;a;)g(a.data,e,r),r+=a.data.length,a=a.next;return e},d}(),s&&s.inspect&&s.inspect.custom&&(A.exports.prototype[s.inspect.custom]=function(){var d=s.inspect({length:this.length});return this.constructor.name+" "+d})},{"safe-buffer":193,util:36}],185:[function(n,A,v){"use strict";function h(d,u){var e=this,a=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return a||r?(u?u(d):!d||this._writableState&&this._writableState.errorEmitted||s.nextTick(o,this,d),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(c){!u&&c?(s.nextTick(o,e,c),e._writableState&&(e._writableState.errorEmitted=!0)):u&&u(c)}),this)}function g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(d,u){d.emit("error",u)}var s=n("process-nextick-args");A.exports={destroy:h,undestroy:g}},{"process-nextick-args":172}],186:[function(n,A,v){"use strict";A.exports=n("events").EventEmitter},{events:158}],187:[function(n,A,v){A.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,A,v){v=A.exports=n("./lib/_stream_readable.js"),v.Stream=v,v.Readable=v,v.Writable=n("./lib/_stream_writable.js"),v.Duplex=n("./lib/_stream_duplex.js"),v.Transform=n("./lib/_stream_transform.js"),v.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,A,v){A.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,A,v){A.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,A,v){var h=function(){return this}()||Function("return this")(),g=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,o=g&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,A.exports=n("./runtime"),g)h.regeneratorRuntime=o;else try{delete h.regeneratorRuntime}catch(s){h.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,A,v){!function(h){"use strict";function g(W,R,I,U){var M=R&&R.prototype instanceof s?R:s,H=Object.create(M.prototype),Y=new x(U||[]);return H._invoke=r(W,I,Y),H}function o(W,R,I){try{return{type:"normal",arg:W.call(R,I)}}catch(U){return{type:"throw",arg:U}}}function s(){}function d(){}function u(){}function e(W){["next","throw","return"].forEach(function(R){W[R]=function(I){return this._invoke(R,I)}})}function a(W){function R(M,H,Y,oe){var ne=o(W[M],W,H);if(ne.type!=="throw"){var ue=ne.arg,pe=ue.value;return pe&&typeof pe=="object"&&m.call(pe,"__await")?Promise.resolve(pe.__await).then(function(Q){R("next",Q,Y,oe)},function(Q){R("throw",Q,Y,oe)}):Promise.resolve(pe).then(function(Q){ue.value=Q,Y(ue)},oe)}oe(ne.arg)}function I(M,H){function Y(){return new Promise(function(oe,ne){R(M,H,oe,ne)})}return U=U?U.then(Y,Y):Y()}var U;this._invoke=I}function r(W,R,I){var U=N;return function(M,H){if(U===z)throw new Error("Generator is already running");if(U===V){if(M==="throw")throw H;return p()}for(I.method=M,I.arg=H;;){var Y=I.delegate;if(Y){var oe=c(Y,I);if(oe){if(oe===G)continue;return oe}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(U===N)throw U=V,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);U=z;var ne=o(W,R,I);if(ne.type==="normal"){if(U=I.done?V:j,ne.arg===G)continue;return{value:ne.arg,done:I.done}}ne.type==="throw"&&(U=V,I.method="throw",I.arg=ne.arg)}}}function c(W,R){var I=W.iterator[R.method];if(I===T){if(R.delegate=null,R.method==="throw"){if(W.iterator.return&&(R.method="return",R.arg=T,c(W,R),R.method==="throw"))return G;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var U=o(I,W.iterator,R.arg);if(U.type==="throw")return R.method="throw",R.arg=U.arg,R.delegate=null,G;var M=U.arg;return M?M.done?(R[W.resultName]=M.value,R.next=W.nextLoc,R.method!=="return"&&(R.method="next",R.arg=T),R.delegate=null,G):M:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,G)}function f(W){var R={tryLoc:W[0]};1 in W&&(R.catchLoc=W[1]),2 in W&&(R.finallyLoc=W[2],R.afterLoc=W[3]),this.tryEntries.push(R)}function l(W){var R=W.completion||{};R.type="normal",delete R.arg,W.completion=R}function x(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(f,this),this.reset(!0)}function E(W){if(W){var R=W[O];if(R)return R.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var I=-1,U=function M(){for(;++I<W.length;)if(m.call(W,I))return M.value=W[I],M.done=!1,M;return M.value=T,M.done=!0,M};return U.next=U}}return{next:p}}function p(){return{value:T,done:!0}}var T,S=Object.prototype,m=S.hasOwnProperty,b=typeof Symbol=="function"?Symbol:{},O=b.iterator||"@@iterator",C=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag",L=typeof A=="object",D=h.regeneratorRuntime;if(D)return void(L&&(A.exports=D));D=h.regeneratorRuntime=L?A.exports:{},D.wrap=g;var N="suspendedStart",j="suspendedYield",z="executing",V="completed",G={},Z={};Z[O]=function(){return this};var F=Object.getPrototypeOf,ee=F&&F(F(E([])));ee&&ee!==S&&m.call(ee,O)&&(Z=ee);var $=u.prototype=s.prototype=Object.create(Z);d.prototype=$.constructor=u,u.constructor=d,u[_]=d.displayName="GeneratorFunction",D.isGeneratorFunction=function(W){var R=typeof W=="function"&&W.constructor;return!!R&&(R===d||(R.displayName||R.name)==="GeneratorFunction")},D.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,u):(W.__proto__=u,_ in W||(W[_]="GeneratorFunction")),W.prototype=Object.create($),W},D.awrap=function(W){return{__await:W}},e(a.prototype),a.prototype[C]=function(){return this},D.AsyncIterator=a,D.async=function(W,R,I,U){var M=new a(g(W,R,I,U));return D.isGeneratorFunction(R)?M:M.next().then(function(H){return H.done?H.value:M.next()})},e($),$[_]="Generator",$[O]=function(){return this},$.toString=function(){return"[object Generator]"},D.keys=function(W){var R=[];for(var I in W)R.push(I);return R.reverse(),function U(){for(;R.length;){var M=R.pop();if(M in W)return U.value=M,U.done=!1,U}return U.done=!0,U}},D.values=E,x.prototype={constructor:x,reset:function(R){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(l),!R)for(var I in this)I.charAt(0)==="t"&&m.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=T)},stop:function(){this.done=!0;var R=this.tryEntries[0],I=R.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(R){function I(ue,pe){return Y.type="throw",Y.arg=R,U.next=ue,pe&&(U.method="next",U.arg=T),!!pe}if(this.done)throw R;for(var U=this,M=this.tryEntries.length-1;M>=0;--M){var H=this.tryEntries[M],Y=H.completion;if(H.tryLoc==="root")return I("end");if(H.tryLoc<=this.prev){var oe=m.call(H,"catchLoc"),ne=m.call(H,"finallyLoc");if(oe&&ne){if(this.prev<H.catchLoc)return I(H.catchLoc,!0);if(this.prev<H.finallyLoc)return I(H.finallyLoc)}else if(oe){if(this.prev<H.catchLoc)return I(H.catchLoc,!0)}else{if(!ne)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return I(H.finallyLoc)}}}},abrupt:function(R,I){for(var U=this.tryEntries.length-1;U>=0;--U){var M=this.tryEntries[U];if(M.tryLoc<=this.prev&&m.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var H=M;break}}H&&(R==="break"||R==="continue")&&H.tryLoc<=I&&I<=H.finallyLoc&&(H=null);var Y=H?H.completion:{};return Y.type=R,Y.arg=I,H?(this.method="next",this.next=H.finallyLoc,G):this.complete(Y)},complete:function(R,I){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&I&&(this.next=I),G},finish:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var U=this.tryEntries[I];if(U.finallyLoc===R)return this.complete(U.completion,U.afterLoc),l(U),G}},catch:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var U=this.tryEntries[I];if(U.tryLoc===R){var M=U.completion;if(M.type==="throw"){var H=M.arg;l(U)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(R,I,U){return this.delegate={iterator:E(R),resultName:I,nextLoc:U},this.method==="next"&&(this.arg=T),G}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,A,v){function h(d,u){for(var e in d)u[e]=d[e]}function g(d,u,e){return s(d,u,e)}var o=n("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?A.exports=o:(h(o,v),v.Buffer=g),h(s,g),g.from=function(d,u,e){if(typeof d=="number")throw new TypeError("Argument must not be a number");return s(d,u,e)},g.alloc=function(d,u,e){if(typeof d!="number")throw new TypeError("Argument must be a number");var a=s(d);return u!==void 0?typeof e=="string"?a.fill(u,e):a.fill(u):a.fill(0),a},g.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return s(d)},g.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(d)}},{buffer:38}],194:[function(n,A,v){(function(h){"use strict";function g(p){return p&&p.__esModule?p:{default:p}}var o=n("babel-runtime/core-js/string/from-code-point"),s=g(o),d=n("babel-runtime/core-js/json/stringify"),u=g(d),e=n("babel-runtime/helpers/typeof"),a=g(e),r=n("babel-runtime/core-js/object/define-property"),c=g(r),f=n("babel-runtime/core-js/object/keys"),l=g(f),x=n("babel-runtime/core-js/object/create"),E=g(x);!function(p){function T(y,w){if(!(this instanceof T))return new T(y,w);var X=this;m(X),X.q=X.c="",X.bufferCheckPosition=p.MAX_BUFFER_LENGTH,X.opt=w||{},X.opt.lowercase=X.opt.lowercase||X.opt.lowercasetags,X.looseCase=X.opt.lowercase?"toLowerCase":"toUpperCase",X.tags=[],X.closed=X.closedRoot=X.sawRoot=!1,X.tag=X.error=null,X.strict=!!y,X.noscript=!(!y&&!X.opt.noscript),X.state=i.BEGIN,X.strictEntities=X.opt.strictEntities,X.ENTITIES=X.strictEntities?(0,E.default)(p.XML_ENTITIES):(0,E.default)(p.ENTITIES),X.attribList=[],X.opt.xmlns&&(X.ns=(0,E.default)(re)),X.trackPosition=X.opt.position!==!1,X.trackPosition&&(X.position=X.line=X.column=0),z(X,"onready")}function S(y){for(var w=Math.max(p.MAX_BUFFER_LENGTH,10),X=0,K=0,me=ue.length;K<me;K++){var fe=y[ue[K]].length;if(fe>w)switch(ue[K]){case"textNode":G(y);break;case"cdata":V(y,"oncdata",y.cdata),y.cdata="";break;case"script":V(y,"onscript",y.script),y.script="";break;default:F(y,"Max buffer length exceeded: "+ue[K])}X=Math.max(X,fe)}var le=p.MAX_BUFFER_LENGTH-X;y.bufferCheckPosition=le+y.position}function m(y){for(var w=0,X=ue.length;w<X;w++)y[ue[w]]=""}function b(y){G(y),y.cdata!==""&&(V(y,"oncdata",y.cdata),y.cdata=""),y.script!==""&&(V(y,"onscript",y.script),y.script="")}function O(y,w){return new C(y,w)}function C(y,w){if(!(this instanceof C))return new C(y,w);pe.apply(this),this._parser=new T(y,w),this.writable=!0,this.readable=!0;var X=this;this._parser.onend=function(){X.emit("end")},this._parser.onerror=function(K){X.emit("error",K),X._parser.error=null},this._decoder=null,Q.forEach(function(K){(0,c.default)(X,"on"+K,{get:function(){return X._parser["on"+K]},set:function(fe){if(!fe)return X.removeAllListeners(K),X._parser["on"+K]=fe,fe;X.on(K,fe)},enumerable:!0,configurable:!1})})}function _(y){return y===" "||y===`
`||y==="\r"||y===" "}function L(y){return y==='"'||y==="'"}function D(y){return y===">"||_(y)}function N(y,w){return y.test(w)}function j(y,w){return!N(y,w)}function z(y,w,X){y[w]&&y[w](X)}function V(y,w,X){y.textNode&&G(y),z(y,w,X)}function G(y){y.textNode=Z(y.opt,y.textNode),y.textNode&&z(y,"ontext",y.textNode),y.textNode=""}function Z(y,w){return y.trim&&(w=w.trim()),y.normalize&&(w=w.replace(/\s+/g," ")),w}function F(y,w){return G(y),y.trackPosition&&(w+=`
Line: `+y.line+`
Column: `+y.column+`
Char: `+y.c),w=new Error(w),y.error=w,z(y,"onerror",w),y}function ee(y){return y.sawRoot&&!y.closedRoot&&$(y,"Unclosed root tag"),y.state!==i.BEGIN&&y.state!==i.BEGIN_WHITESPACE&&y.state!==i.TEXT&&F(y,"Unexpected end"),G(y),y.c="",y.closed=!0,z(y,"onend"),T.call(y,y.strict,y.opt),y}function $(y,w){if((y===void 0?"undefined":(0,a.default)(y))!=="object"||!(y instanceof T))throw new Error("bad call to strictFail");y.strict&&F(y,w)}function W(y){y.strict||(y.tagName=y.tagName[y.looseCase]());var w=y.tags[y.tags.length-1]||y,X=y.tag={name:y.tagName,attributes:{}};y.opt.xmlns&&(X.ns=w.ns),y.attribList.length=0,V(y,"onopentagstart",X)}function R(y,w){var X=y.indexOf(":"),K=X<0?["",y]:y.split(":"),me=K[0],fe=K[1];return w&&y==="xmlns"&&(me="xmlns",fe=""),{prefix:me,local:fe}}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 w=R(y.attribName,!0),X=w.prefix,K=w.local;if(X==="xmlns")if(K==="xml"&&y.attribValue!==q)$(y,"xml: prefix must be bound to "+q+`
Actual: `+y.attribValue);else if(K==="xmlns"&&y.attribValue!==B)$(y,"xmlns: prefix must be bound to "+B+`
Actual: `+y.attribValue);else{var me=y.tag,fe=y.tags[y.tags.length-1]||y;me.ns===fe.ns&&(me.ns=(0,E.default)(fe.ns)),me.ns[K]=y.attribValue}y.attribList.push([y.attribName,y.attribValue])}else y.tag.attributes[y.attribName]=y.attribValue,V(y,"onattribute",{name:y.attribName,value:y.attribValue});y.attribName=y.attribValue=""}function U(y,w){if(y.opt.xmlns){var X=y.tag,K=R(y.tagName);X.prefix=K.prefix,X.local=K.local,X.uri=X.ns[K.prefix]||"",X.prefix&&!X.uri&&($(y,"Unbound namespace prefix: "+(0,u.default)(y.tagName)),X.uri=K.prefix);var me=y.tags[y.tags.length-1]||y;X.ns&&me.ns!==X.ns&&(0,l.default)(X.ns).forEach(function(Ne){V(y,"onopennamespace",{prefix:Ne,uri:X.ns[Ne]})});for(var fe=0,le=y.attribList.length;fe<le;fe++){var ce=y.attribList[fe],ge=ce[0],ye=ce[1],se=R(ge,!0),xe=se.prefix,je=se.local,Ee=xe===""?"":X.ns[xe]||"",Re={name:ge,value:ye,prefix:xe,local:je,uri:Ee};xe&&xe!=="xmlns"&&!Ee&&($(y,"Unbound namespace prefix: "+(0,u.default)(xe)),Re.uri=xe),y.tag.attributes[ge]=Re,V(y,"onattribute",Re)}y.attribList.length=0}y.tag.isSelfClosing=!!w,y.sawRoot=!0,y.tags.push(y.tag),V(y,"onopentag",y.tag),w||(y.noscript||y.tagName.toLowerCase()!=="script"?y.state=i.TEXT:y.state=i.SCRIPT,y.tag=null,y.tagName=""),y.attribName=y.attribValue="",y.attribList.length=0}function M(y){if(!y.tagName)return $(y,"Weird empty close tag."),y.textNode+="</>",void(y.state=i.TEXT);if(y.script){if(y.tagName!=="script")return y.script+="</"+y.tagName+">",y.tagName="",void(y.state=i.SCRIPT);V(y,"onscript",y.script),y.script=""}var w=y.tags.length,X=y.tagName;y.strict||(X=X[y.looseCase]());for(var K=X;w--&&!(y.tags[w].name===K);)$(y,"Unexpected close tag");if(w<0)return $(y,"Unmatched closing tag: "+y.tagName),y.textNode+="</"+y.tagName+">",void(y.state=i.TEXT);y.tagName=X;for(var me=y.tags.length;me-- >w;){var fe=y.tag=y.tags.pop();y.tagName=y.tag.name,V(y,"onclosetag",y.tagName);var le={};for(var ce in fe.ns)le[ce]=fe.ns[ce];var ge=y.tags[y.tags.length-1]||y;y.opt.xmlns&&fe.ns!==ge.ns&&(0,l.default)(fe.ns).forEach(function(ye){var se=fe.ns[ye];V(y,"onclosenamespace",{prefix:ye,uri:se})})}w===0&&(y.closedRoot=!0),y.tagName=y.attribValue=y.attribName="",y.attribList.length=0,y.state=i.TEXT}function H(y){var w,X=y.entity,K=X.toLowerCase(),me="";return y.ENTITIES[X]?y.ENTITIES[X]:y.ENTITIES[K]?y.ENTITIES[K]:(X=K,X.charAt(0)==="#"&&(X.charAt(1)==="x"?(X=X.slice(2),w=parseInt(X,16),me=w.toString(16)):(X=X.slice(1),w=parseInt(X,10),me=w.toString(10))),X=X.replace(/^0+/,""),isNaN(w)||me.toLowerCase()!==X?($(y,"Invalid character entity"),"&"+y.entity+";"):(0,s.default)(w))}function Y(y,w){w==="<"?(y.state=i.OPEN_WAKA,y.startTagPosition=y.position):_(w)||($(y,"Non-whitespace before first tag."),y.textNode=w,y.state=i.TEXT)}function oe(y,w){var X="";return w<y.length&&(X=y.charAt(w)),X}function ne(y){var w=this;if(this.error)throw this.error;if(w.closed)return F(w,"Cannot write after close. Assign an onready handler.");if(y===null)return ee(w);(y===void 0?"undefined":(0,a.default)(y))==="object"&&(y=y.toString());for(var X=0,K="";!(K=oe(y,X++),w.c=K,!K);)switch(w.trackPosition&&(w.position++,K===`
`?(w.line++,w.column=0):w.column++),w.state){case i.BEGIN:if(w.state=i.BEGIN_WHITESPACE,K==="\uFEFF")continue;Y(w,K);continue;case i.BEGIN_WHITESPACE:Y(w,K);continue;case i.TEXT:if(w.sawRoot&&!w.closedRoot){for(var me=X-1;K&&K!=="<"&&K!=="&";)(K=oe(y,X++))&&w.trackPosition&&(w.position++,K===`
`?(w.line++,w.column=0):w.column++);w.textNode+=y.substring(me,X-1)}K!=="<"||w.sawRoot&&w.closedRoot&&!w.strict?(_(K)||w.sawRoot&&!w.closedRoot||$(w,"Text data outside of root node."),K==="&"?w.state=i.TEXT_ENTITY:w.textNode+=K):(w.state=i.OPEN_WAKA,w.startTagPosition=w.position);continue;case i.SCRIPT:K==="<"?w.state=i.SCRIPT_ENDING:w.script+=K;continue;case i.SCRIPT_ENDING:K==="/"?w.state=i.CLOSE_TAG:(w.script+="<"+K,w.state=i.SCRIPT);continue;case i.OPEN_WAKA:if(K==="!")w.state=i.SGML_DECL,w.sgmlDecl="";else if(!_(K))if(N(te,K))w.state=i.OPEN_TAG,w.tagName=K;else if(K==="/")w.state=i.CLOSE_TAG,w.tagName="";else if(K==="?")w.state=i.PROC_INST,w.procInstName=w.procInstBody="";else{if($(w,"Unencoded <"),w.startTagPosition+1<w.position){var fe=w.position-w.startTagPosition;K=new Array(fe).join(" ")+K}w.textNode+="<"+K,w.state=i.TEXT}continue;case i.SGML_DECL:(w.sgmlDecl+K).toUpperCase()===J?(V(w,"onopencdata"),w.state=i.CDATA,w.sgmlDecl="",w.cdata=""):w.sgmlDecl+K==="--"?(w.state=i.COMMENT,w.comment="",w.sgmlDecl=""):(w.sgmlDecl+K).toUpperCase()===ie?(w.state=i.DOCTYPE,(w.doctype||w.sawRoot)&&$(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):K===">"?(V(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=i.TEXT):(L(K)&&(w.state=i.SGML_DECL_QUOTED),w.sgmlDecl+=K);continue;case i.SGML_DECL_QUOTED:K===w.q&&(w.state=i.SGML_DECL,w.q=""),w.sgmlDecl+=K;continue;case i.DOCTYPE:K===">"?(w.state=i.TEXT,V(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=K,K==="["?w.state=i.DOCTYPE_DTD:L(K)&&(w.state=i.DOCTYPE_QUOTED,w.q=K));continue;case i.DOCTYPE_QUOTED:w.doctype+=K,K===w.q&&(w.q="",w.state=i.DOCTYPE);continue;case i.DOCTYPE_DTD:w.doctype+=K,K==="]"?w.state=i.DOCTYPE:L(K)&&(w.state=i.DOCTYPE_DTD_QUOTED,w.q=K);continue;case i.DOCTYPE_DTD_QUOTED:w.doctype+=K,K===w.q&&(w.state=i.DOCTYPE_DTD,w.q="");continue;case i.COMMENT:K==="-"?w.state=i.COMMENT_ENDING:w.comment+=K;continue;case i.COMMENT_ENDING:K==="-"?(w.state=i.COMMENT_ENDED,w.comment=Z(w.opt,w.comment),w.comment&&V(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+K,w.state=i.COMMENT);continue;case i.COMMENT_ENDED:K!==">"?($(w,"Malformed comment"),w.comment+="--"+K,w.state=i.COMMENT):w.state=i.TEXT;continue;case i.CDATA:K==="]"?w.state=i.CDATA_ENDING:w.cdata+=K;continue;case i.CDATA_ENDING:K==="]"?w.state=i.CDATA_ENDING_2:(w.cdata+="]"+K,w.state=i.CDATA);continue;case i.CDATA_ENDING_2:K===">"?(w.cdata&&V(w,"oncdata",w.cdata),V(w,"onclosecdata"),w.cdata="",w.state=i.TEXT):K==="]"?w.cdata+="]":(w.cdata+="]]"+K,w.state=i.CDATA);continue;case i.PROC_INST:K==="?"?w.state=i.PROC_INST_ENDING:_(K)?w.state=i.PROC_INST_BODY:w.procInstName+=K;continue;case i.PROC_INST_BODY:if(!w.procInstBody&&_(K))continue;K==="?"?w.state=i.PROC_INST_ENDING:w.procInstBody+=K;continue;case i.PROC_INST_ENDING:K===">"?(V(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=i.TEXT):(w.procInstBody+="?"+K,w.state=i.PROC_INST_BODY);continue;case i.OPEN_TAG:N(de,K)?w.tagName+=K:(W(w),K===">"?U(w):K==="/"?w.state=i.OPEN_TAG_SLASH:(_(K)||$(w,"Invalid character in tag name"),w.state=i.ATTRIB));continue;case i.OPEN_TAG_SLASH:K===">"?(U(w,!0),M(w)):($(w,"Forward-slash in opening tag not followed by >"),w.state=i.ATTRIB);continue;case i.ATTRIB:if(_(K))continue;K===">"?U(w):K==="/"?w.state=i.OPEN_TAG_SLASH:N(te,K)?(w.attribName=K,w.attribValue="",w.state=i.ATTRIB_NAME):$(w,"Invalid attribute name");continue;case i.ATTRIB_NAME:K==="="?w.state=i.ATTRIB_VALUE:K===">"?($(w,"Attribute without value"),w.attribValue=w.attribName,I(w),U(w)):_(K)?w.state=i.ATTRIB_NAME_SAW_WHITE:N(de,K)?w.attribName+=K:$(w,"Invalid attribute name");continue;case i.ATTRIB_NAME_SAW_WHITE:if(K==="=")w.state=i.ATTRIB_VALUE;else{if(_(K))continue;$(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",V(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",K===">"?U(w):N(te,K)?(w.attribName=K,w.state=i.ATTRIB_NAME):($(w,"Invalid attribute name"),w.state=i.ATTRIB)}continue;case i.ATTRIB_VALUE:if(_(K))continue;L(K)?(w.q=K,w.state=i.ATTRIB_VALUE_QUOTED):($(w,"Unquoted attribute value"),w.state=i.ATTRIB_VALUE_UNQUOTED,w.attribValue=K);continue;case i.ATTRIB_VALUE_QUOTED:if(K!==w.q){K==="&"?w.state=i.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=K;continue}I(w),w.q="",w.state=i.ATTRIB_VALUE_CLOSED;continue;case i.ATTRIB_VALUE_CLOSED:_(K)?w.state=i.ATTRIB:K===">"?U(w):K==="/"?w.state=i.OPEN_TAG_SLASH:N(te,K)?($(w,"No whitespace between attributes"),w.attribName=K,w.attribValue="",w.state=i.ATTRIB_NAME):$(w,"Invalid attribute name");continue;case i.ATTRIB_VALUE_UNQUOTED:if(!D(K)){K==="&"?w.state=i.ATTRIB_VALUE_ENTITY_U:w.attribValue+=K;continue}I(w),K===">"?U(w):w.state=i.ATTRIB;continue;case i.CLOSE_TAG:if(w.tagName)K===">"?M(w):N(de,K)?w.tagName+=K:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=i.SCRIPT):(_(K)||$(w,"Invalid tagname in closing tag"),w.state=i.CLOSE_TAG_SAW_WHITE);else{if(_(K))continue;j(te,K)?w.script?(w.script+="</"+K,w.state=i.SCRIPT):$(w,"Invalid tagname in closing tag."):w.tagName=K}continue;case i.CLOSE_TAG_SAW_WHITE:if(_(K))continue;K===">"?M(w):$(w,"Invalid characters in closing tag");continue;case i.TEXT_ENTITY:case i.ATTRIB_VALUE_ENTITY_Q:case i.ATTRIB_VALUE_ENTITY_U:var le,ce;switch(w.state){case i.TEXT_ENTITY:le=i.TEXT,ce="textNode";break;case i.ATTRIB_VALUE_ENTITY_Q:le=i.ATTRIB_VALUE_QUOTED,ce="attribValue";break;case i.ATTRIB_VALUE_ENTITY_U:le=i.ATTRIB_VALUE_UNQUOTED,ce="attribValue"}K===";"?(w[ce]+=H(w),w.entity="",w.state=le):N(w.entity.length?t:k,K)?w.entity+=K:($(w,"Invalid character in entity name"),w[ce]+="&"+w.entity+K,w.entity="",w.state=le);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&S(w),w}p.parser=function(y,w){return new T(y,w)},p.SAXParser=T,p.SAXStream=C,p.createStream=O,p.MAX_BUFFER_LENGTH=65536;var ue=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.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 w(){}return w.prototype=y,new w}),l.default||(Object.keys=function(y){var w=[];for(var X in y)y.hasOwnProperty(X)&&w.push(X);return w}),T.prototype={end:function(){ee(this)},write:ne,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){b(this)}};var pe;try{pe=n("stream").Stream}catch(y){pe=function(){}}var Q=p.EVENTS.filter(function(y){return y!=="error"&&y!=="end"});C.prototype=(0,E.default)(pe.prototype,{constructor:{value:C}}),C.prototype.write=function(y){if(typeof h=="function"&&typeof h.isBuffer=="function"&&h.isBuffer(y)){if(!this._decoder){var w=n("string_decoder").StringDecoder;this._decoder=new w("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,w){var X=this;return X._parser["on"+y]||Q.indexOf(y)===-1||(X._parser["on"+y]=function(){var K=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);K.splice(0,0,y),X.emit.apply(X,K)}),pe.prototype.on.call(X,y,w)};var J="[CDATA[",ie="DOCTYPE",q="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",re={xml:q,xmlns:B},te=/[:_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]/,de=/[:_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-]/,k=/[#:_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-]/,i=0;p.STATE={BEGIN:i++,BEGIN_WHITESPACE:i++,TEXT:i++,TEXT_ENTITY:i++,OPEN_WAKA:i++,SGML_DECL:i++,SGML_DECL_QUOTED:i++,DOCTYPE:i++,DOCTYPE_QUOTED:i++,DOCTYPE_DTD:i++,DOCTYPE_DTD_QUOTED:i++,COMMENT_STARTING:i++,COMMENT:i++,COMMENT_ENDING:i++,COMMENT_ENDED:i++,CDATA:i++,CDATA_ENDING:i++,CDATA_ENDING_2:i++,PROC_INST:i++,PROC_INST_BODY:i++,PROC_INST_ENDING:i++,OPEN_TAG:i++,OPEN_TAG_SLASH:i++,ATTRIB:i++,ATTRIB_NAME:i++,ATTRIB_NAME_SAW_WHITE:i++,ATTRIB_VALUE:i++,ATTRIB_VALUE_QUOTED:i++,ATTRIB_VALUE_CLOSED:i++,ATTRIB_VALUE_UNQUOTED:i++,ATTRIB_VALUE_ENTITY_Q:i++,ATTRIB_VALUE_ENTITY_U:i++,CLOSE_TAG:i++,CLOSE_TAG_SAW_WHITE:i++,SCRIPT:i++,SCRIPT_ENDING:i++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.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,l.default)(p.ENTITIES).forEach(function(y){var w=p.ENTITIES[y],X=typeof w=="number"?String.fromCharCode(w):w;p.ENTITIES[y]=X});for(var P in p.STATE)p.STATE[p.STATE[P]]=P;i=p.STATE,s.default||function(){var y=String.fromCharCode,w=Math.floor,X=function(){var me,fe,le=[],ce=-1,ge=arguments.length;if(!ge)return"";for(var ye="";++ce<ge;){var se=Number(arguments[ce]);if(!isFinite(se)||se<0||se>1114111||w(se)!==se)throw RangeError("Invalid code point: "+se);se<=65535?le.push(se):(se-=65536,me=55296+(se>>10),fe=se%1024+56320,le.push(me,fe)),(ce+1===ge||le.length>16384)&&(ye+=y.apply(null,le),le.length=0)}return ye};c.default?Object.defineProperty(String,"fromCodePoint",{value:X,configurable:!0,writable:!0}):String.fromCodePoint=X}()}(v===void 0?(void 0).sax={}:v)}).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,A,v){function h(){g.call(this)}A.exports=h;var g=n("events").EventEmitter;n("inherits")(h,g),h.Readable=n("readable-stream/readable.js"),h.Writable=n("readable-stream/writable.js"),h.Duplex=n("readable-stream/duplex.js"),h.Transform=n("readable-stream/transform.js"),h.PassThrough=n("readable-stream/passthrough.js"),h.Stream=h,h.prototype.pipe=function(o,s){function d(x){o.writable&&o.write(x)===!1&&f.pause&&f.pause()}function u(){f.readable&&f.resume&&f.resume()}function e(){l||(l=!0,o.end())}function a(){l||(l=!0,typeof o.destroy=="function"&&o.destroy())}function r(x){if(c(),g.listenerCount(this,"error")===0)throw x}function c(){f.removeListener("data",d),o.removeListener("drain",u),f.removeListener("end",e),f.removeListener("close",a),f.removeListener("error",r),o.removeListener("error",r),f.removeListener("end",c),f.removeListener("close",c),o.removeListener("close",c)}var f=this;f.on("data",d),o.on("drain",u),o._isStdio||s&&s.end===!1||(f.on("end",e),f.on("close",a));var l=!1;return f.on("error",r),o.on("error",r),f.on("end",c),f.on("close",c),o.on("close",c),o.emit("pipe",f),o}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(n,A,v){(function(h){var g=n("./lib/request"),o=n("./lib/response"),s=n("xtend"),d=n("builtin-status-codes"),u=n("url"),e=v;e.request=function(a,r){a=typeof a=="string"?u.parse(a):s(a);var c=h.location.protocol.search(/^https?:$/)===-1?"http:":"",f=a.protocol||c,l=a.hostname||a.host,x=a.port,E=a.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),a.url=(l?f+"//"+l:"")+(x?":"+x:"")+E,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var p=new g(a);return r&&p.on("response",r),p},e.get=function(a,r){var c=e.request(a,r);return c.end(),c},e.ClientRequest=g,e.IncomingMessage=o.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=d,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 ke!="undefined"?ke: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,A,v){(function(h){"use strict";function g(){if(d!==void 0)return d;if(h.XMLHttpRequest){d=new h.XMLHttpRequest;try{d.open("GET",h.XDomainRequest?"/":"https://example.com")}catch(a){d=null}}else d=null;return d}function o(a){var r=g();if(!r)return!1;try{return r.responseType=a,r.responseType===a}catch(c){}return!1}function s(a){return typeof a=="function"}v.fetch=s(h.fetch)&&s(h.ReadableStream),v.writableStream=s(h.WritableStream),v.abortController=s(h.AbortController),v.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),v.blobConstructor=!0}catch(a){}var d,u=h.ArrayBuffer!==void 0,e=u&&s(h.ArrayBuffer.prototype.slice);v.arraybuffer=v.fetch||u&&o("arraybuffer"),v.msstream=!v.fetch&&e&&o("ms-stream"),v.mozchunkedarraybuffer=!v.fetch&&u&&o("moz-chunked-arraybuffer"),v.overrideMimeType=v.fetch||!!g()&&s(g().overrideMimeType),v.vbArray=s(h.VBArray),d=null}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,A,v){(function(h,g,o){"use strict";function s(S,m){return a.fetch&&m?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&S?"arraybuffer":a.vbArray&&S?"text:vbarray":"text"}function d(S){try{var m=S.status;return m!==null&&m!==0}catch(b){return!1}}var u=n("babel-runtime/core-js/object/keys"),e=function(S){return S&&S.__esModule?S:{default:S}}(u),a=n("./capability"),r=n("inherits"),c=n("./response"),f=n("readable-stream"),l=n("to-arraybuffer"),x=c.IncomingMessage,E=c.readyStates,p=A.exports=function(S){var m=this;f.Writable.call(m),m._opts=S,m._body=[],m._headers={},S.auth&&m.setHeader("Authorization","Basic "+new o(S.auth).toString("base64")),(0,e.default)(S.headers).forEach(function(C){m.setHeader(C,S.headers[C])});var b,O=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!a.abortController)O=!1,b=!0;else if(S.mode==="prefer-streaming")b=!1;else if(S.mode==="allow-wrong-content-type")b=!a.overrideMimeType;else{if(S.mode&&S.mode!=="default"&&S.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");b=!0}m._mode=s(b,O),m._fetchTimer=null,m.on("finish",function(){m._onFinish()})};r(p,f.Writable),p.prototype.setHeader=function(S,m){var b=this,O=S.toLowerCase();T.indexOf(O)===-1&&(b._headers[O]={name:S,value:m})},p.prototype.getHeader=function(S){var m=this._headers[S.toLowerCase()];return m?m.value:null},p.prototype.removeHeader=function(S){delete this._headers[S.toLowerCase()]},p.prototype._onFinish=function(){var S=this;if(!S._destroyed){var m=S._opts,b=S._headers,O=null;m.method!=="GET"&&m.method!=="HEAD"&&(O=a.arraybuffer?l(o.concat(S._body)):a.blobConstructor?new g.Blob(S._body.map(function(N){return l(N)}),{type:(b["content-type"]||{}).value||""}):o.concat(S._body).toString());var C=[];if((0,e.default)(b).forEach(function(N){var j=b[N].name,z=b[N].value;Array.isArray(z)?z.forEach(function(V){C.push([j,V])}):C.push([j,z])}),S._mode==="fetch"){var _=null;if(a.abortController){var L=new AbortController;_=L.signal,S._fetchAbortController=L,"requestTimeout"in m&&m.requestTimeout!==0&&(S._fetchTimer=g.setTimeout(function(){S.emit("requestTimeout"),S._fetchAbortController&&S._fetchAbortController.abort()},m.requestTimeout))}g.fetch(S._opts.url,{method:S._opts.method,headers:C,body:O||void 0,mode:"cors",credentials:m.withCredentials?"include":"same-origin",signal:_}).then(function(N){S._fetchResponse=N,S._connect()},function(N){g.clearTimeout(S._fetchTimer),S._destroyed||S.emit("error",N)})}else{var D=S._xhr=new g.XMLHttpRequest;try{D.open(S._opts.method,S._opts.url,!0)}catch(N){return void h.nextTick(function(){S.emit("error",N)})}"responseType"in D&&(D.responseType=S._mode.split(":")[0]),"withCredentials"in D&&(D.withCredentials=!!m.withCredentials),S._mode==="text"&&"overrideMimeType"in D&&D.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in m&&(D.timeout=m.requestTimeout,D.ontimeout=function(){S.emit("requestTimeout")}),C.forEach(function(N){D.setRequestHeader(N[0],N[1])}),S._response=null,D.onreadystatechange=function(){switch(D.readyState){case E.LOADING:case E.DONE:S._onXHRProgress()}},S._mode==="moz-chunked-arraybuffer"&&(D.onprogress=function(){S._onXHRProgress()}),D.onerror=function(){S._destroyed||S.emit("error",new Error("XHR error"))};try{D.send(O)}catch(N){return void h.nextTick(function(){S.emit("error",N)})}}}},p.prototype._onXHRProgress=function(){var S=this;d(S._xhr)&&!S._destroyed&&(S._response||S._connect(),S._response._onXHRProgress())},p.prototype._connect=function(){var S=this;S._destroyed||(S._response=new x(S._xhr,S._fetchResponse,S._mode,S._fetchTimer),S._response.on("error",function(m){S.emit("error",m)}),S.emit("response",S._response))},p.prototype._write=function(S,m,b){this._body.push(S),b()},p.prototype.abort=p.prototype.destroy=function(){var S=this;S._destroyed=!0,g.clearTimeout(S._fetchTimer),S._response&&(S._response._destroyed=!0),S._xhr?S._xhr.abort():S._fetchAbortController&&S._fetchAbortController.abort()},p.prototype.end=function(S,m,b){var O=this;typeof S=="function"&&(b=S,S=void 0),f.Writable.prototype.end.call(O,S,m,b)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.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 ke!="undefined"?ke: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,A,v){(function(h,g,o){"use strict";var s=n("babel-runtime/core-js/promise"),d=function(f){return f&&f.__esModule?f:{default:f}}(s),u=n("./capability"),e=n("inherits"),a=n("readable-stream"),r=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=v.IncomingMessage=function(f,l,x,E){var p=this;if(a.Readable.call(p),p._mode=x,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){h.nextTick(function(){p.emit("close")})}),x==="fetch"){if(p._fetchResponse=l,p.url=l.url,p.statusCode=l.status,p.statusMessage=l.statusText,l.headers.forEach(function(O,C){p.headers[C.toLowerCase()]=O,p.rawHeaders.push(C,O)}),u.writableStream){var T=new WritableStream({write:function(C){return new d.default(function(_,L){p._destroyed?L():p.push(new o(C))?_():p._resumeFetch=_})},close:function(){g.clearTimeout(E),p._destroyed||p.push(null)},abort:function(C){p._destroyed||p.emit("error",C)}});try{return void l.body.pipeTo(T).catch(function(O){g.clearTimeout(E),p._destroyed||p.emit("error",O)})}catch(O){}}var S=l.body.getReader();!function O(){S.read().then(function(C){if(!p._destroyed){if(C.done)return g.clearTimeout(E),void p.push(null);p.push(new o(C.value)),O()}}).catch(function(C){g.clearTimeout(E),p._destroyed||p.emit("error",C)})}()}else if(p._xhr=f,p._pos=0,p.url=f.responseURL,p.statusCode=f.status,p.statusMessage=f.statusText,f.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var C=O.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(p.headers[_]===void 0&&(p.headers[_]=[]),p.headers[_].push(C[2])):p.headers[_]!==void 0?p.headers[_]+=", "+C[2]:p.headers[_]=C[2],p.rawHeaders.push(C[1],C[2])}}),p._charset="x-user-defined",!u.overrideMimeType){var m=p.rawHeaders["mime-type"];if(m){var b=m.match(/;\s*charset=([^;])(;|$)/);b&&(p._charset=b[1].toLowerCase())}p._charset||(p._charset="utf-8")}};e(c,a.Readable),c.prototype._read=function(){var f=this,l=f._resumeFetch;l&&(f._resumeFetch=null,l())},c.prototype._onXHRProgress=function(){var f=this,l=f._xhr,x=null;switch(f._mode){case"text:vbarray":if(l.readyState!==r.DONE)break;try{x=new g.VBArray(l.responseBody).toArray()}catch(m){}if(x!==null){f.push(new o(x));break}case"text":try{x=l.responseText}catch(m){f._mode="text:vbarray";break}if(x.length>f._pos){var E=x.substr(f._pos);if(f._charset==="x-user-defined"){for(var p=new o(E.length),T=0;T<E.length;T++)p[T]=255&E.charCodeAt(T);f.push(p)}else f.push(E,f._charset);f._pos=x.length}break;case"arraybuffer":if(l.readyState!==r.DONE||!l.response)break;x=l.response,f.push(new o(new Uint8Array(x)));break;case"moz-chunked-arraybuffer":if(x=l.response,l.readyState!==r.LOADING||!x)break;f.push(new o(new Uint8Array(x)));break;case"ms-stream":if(x=l.response,l.readyState!==r.LOADING)break;var S=new g.MSStreamReader;S.onprogress=function(){S.result.byteLength>f._pos&&(f.push(new o(new Uint8Array(S.result.slice(f._pos)))),f._pos=S.result.byteLength)},S.onload=function(){f.push(null)},S.readAsArrayBuffer(x)}f._xhr.readyState===r.DONE&&f._mode!=="ms-stream"&&f.push(null)}}).call(this,n("_process"),typeof ke!="undefined"?ke: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,A,v){"use strict";function h(m){if(!m)return"utf8";for(var b;;)switch(m){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 m;default:if(b)return;m=(""+m).toLowerCase(),b=!0}}function g(m){var b=h(m);if(typeof b!="string"&&(T.isEncoding===S||!S(m)))throw new Error("Unknown encoding: "+m);return b||m}function o(m){this.encoding=g(m);var b;switch(this.encoding){case"utf16le":this.text=c,this.end=f,b=4;break;case"utf8":this.fillLast=e,b=4;break;case"base64":this.text=l,this.end=x,b=3;break;default:return this.write=E,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=T.allocUnsafe(b)}function s(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function d(m,b,O){var C=b.length-1;if(C<O)return 0;var _=s(b[C]);return _>=0?(_>0&&(m.lastNeed=_-1),_):--C<O||_===-2?0:(_=s(b[C]))>=0?(_>0&&(m.lastNeed=_-2),_):--C<O||_===-2?0:(_=s(b[C]),_>=0?(_>0&&(_===2?_=0:m.lastNeed=_-3),_):0)}function u(m,b,O){if((192&b[0])!=128)return m.lastNeed=0,"\u951F\uFFFD";if(m.lastNeed>1&&b.length>1){if((192&b[1])!=128)return m.lastNeed=1,"\u951F\uFFFD";if(m.lastNeed>2&&b.length>2&&(192&b[2])!=128)return m.lastNeed=2,"\u951F\uFFFD"}}function e(m){var b=this.lastTotal-this.lastNeed,O=u(this,m,b);return O!==void 0?O:this.lastNeed<=m.length?(m.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,b,0,m.length),void(this.lastNeed-=m.length))}function a(m,b){var O=d(this,m,b);if(!this.lastNeed)return m.toString("utf8",b);this.lastTotal=O;var C=m.length-(O-this.lastNeed);return m.copy(this.lastChar,0,C),m.toString("utf8",b,C)}function r(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+"\u951F\uFFFD":b}function c(m,b){if((m.length-b)%2==0){var O=m.toString("utf16le",b);if(O){var C=O.charCodeAt(O.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",b,m.length-1)}function f(m){var b=m&&m.length?this.write(m):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,O)}return b}function l(m,b){var O=(m.length-b)%3;return O===0?m.toString("base64",b):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",b,m.length-O))}function x(m){var b=m&&m.length?this.write(m):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function E(m){return m.toString(this.encoding)}function p(m){return m&&m.length?this.write(m):""}var T=n("safe-buffer").Buffer,S=T.isEncoding||function(m){switch((m=""+m)&&m.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}};v.StringDecoder=o,o.prototype.write=function(m){if(m.length===0)return"";var b,O;if(this.lastNeed){if((b=this.fillLast(m))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<m.length?b?b+this.text(m,O):this.text(m,O):b||""},o.prototype.end=r,o.prototype.text=a,o.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},{"safe-buffer":193}],201:[function(n,A,v){(function(h,g){function o(r,c){this._id=r,this._clearFn=c}var s=n("process/browser.js").nextTick,d=Function.prototype.apply,u=Array.prototype.slice,e={},a=0;v.setTimeout=function(){return new o(d.call(setTimeout,window,arguments),clearTimeout)},v.setInterval=function(){return new o(d.call(setInterval,window,arguments),clearInterval)},v.clearTimeout=v.clearInterval=function(r){r.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},v.enroll=function(r,c){clearTimeout(r._idleTimeoutId),r._idleTimeout=c},v.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},v._unrefActive=v.active=function(r){clearTimeout(r._idleTimeoutId);var c=r._idleTimeout;c>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},c))},v.setImmediate=typeof h=="function"?h:function(r){var c=a++,f=!(arguments.length<2)&&u.call(arguments,1);return e[c]=!0,s(function(){e[c]&&(f?r.apply(null,f):r.call(null),v.clearImmediate(c))}),c},v.clearImmediate=typeof g=="function"?g:function(r){delete e[r]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,A,v){var h=n("buffer").Buffer;A.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(h.isBuffer(g)){for(var o=new Uint8Array(g.length),s=g.length,d=0;d<s;d++)o[d]=g[d];return o.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,A,v){"use strict";function h(){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(_,L,D){if(_&&e.isObject(_)&&_ instanceof h)return _;var N=new h;return N.parse(_,L,D),N}function o(_){return e.isString(_)&&(_=g(_)),_ instanceof h?_.format():h.prototype.format.call(_)}function s(_,L){return g(_,!1,!0).resolve(L)}function d(_,L){return _?g(_,!1,!0).resolveObject(L):L}var u=n("punycode"),e=n("./util");v.parse=g,v.resolve=s,v.resolveObject=d,v.format=o,v.Url=h;var a=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
`," "],l=["{","}","|","\\","^","`"].concat(f),x=["'"].concat(l),E=["%","/","?",";","#"].concat(x),p=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=n("querystring");h.prototype.parse=function(_,L,D){if(!e.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var N=_.indexOf("?"),j=N!==-1&&N<_.indexOf("#")?"?":"#",z=_.split(j),V=/\\/g;z[0]=z[0].replace(V,"/"),_=z.join(j);var G=_;if(G=G.trim(),!D&&_.split("#").length===1){var Z=c.exec(G);if(Z)return this.path=G,this.href=G,this.pathname=Z[1],Z[2]?(this.search=Z[2],this.query=L?C.parse(this.search.substr(1)):this.search.substr(1)):L&&(this.search="",this.query={}),this}var F=a.exec(G);if(F){F=F[0];var ee=F.toLowerCase();this.protocol=ee,G=G.substr(F.length)}if(D||F||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=G.substr(0,2)==="//";!$||F&&b[F]||(G=G.substr(2),this.slashes=!0)}if(!b[F]&&($||F&&!O[F])){for(var W=-1,R=0;R<p.length;R++){var I=G.indexOf(p[R]);I!==-1&&(W===-1||I<W)&&(W=I)}var U,M;M=W===-1?G.lastIndexOf("@"):G.lastIndexOf("@",W),M!==-1&&(U=G.slice(0,M),G=G.slice(M+1),this.auth=decodeURIComponent(U)),W=-1;for(var R=0;R<E.length;R++){var I=G.indexOf(E[R]);I!==-1&&(W===-1||I<W)&&(W=I)}W===-1&&(W=G.length),this.host=G.slice(0,W),G=G.slice(W),this.parseHost(),this.hostname=this.hostname||"";var H=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!H)for(var Y=this.hostname.split(/\./),R=0,oe=Y.length;R<oe;R++){var ne=Y[R];if(ne&&!ne.match(T)){for(var ue="",pe=0,Q=ne.length;pe<Q;pe++)ne.charCodeAt(pe)>127?ue+="x":ue+=ne[pe];if(!ue.match(T)){var J=Y.slice(0,R),ie=Y.slice(R+1),q=ne.match(S);q&&(J.push(q[1]),ie.unshift(q[2])),ie.length&&(G="/"+ie.join(".")+G),this.hostname=J.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=u.toASCII(this.hostname));var B=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+B,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!m[ee])for(var R=0,oe=x.length;R<oe;R++){var te=x[R];if(G.indexOf(te)!==-1){var de=encodeURIComponent(te);de===te&&(de=escape(te)),G=G.split(te).join(de)}}var k=G.indexOf("#");k!==-1&&(this.hash=G.substr(k),G=G.slice(0,k));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),O[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var B=this.pathname||"",i=this.search||"";this.path=B+i}return this.href=this.format(),this},h.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var L=this.protocol||"",D=this.pathname||"",N=this.hash||"",j=!1,z="";this.host?j=_+this.host:this.hostname&&(j=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(z=C.stringify(this.query));var V=this.search||z&&"?"+z||"";return L&&L.substr(-1)!==":"&&(L+=":"),this.slashes||(!L||O[L])&&j!==!1?(j="//"+(j||""),D&&D.charAt(0)!=="/"&&(D="/"+D)):j||(j=""),N&&N.charAt(0)!=="#"&&(N="#"+N),V&&V.charAt(0)!=="?"&&(V="?"+V),D=D.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),V=V.replace("#","%23"),L+j+D+V+N},h.prototype.resolve=function(_){return this.resolveObject(g(_,!1,!0)).format()},h.prototype.resolveObject=function(_){if(e.isString(_)){var L=new h;L.parse(_,!1,!0),_=L}for(var D=new h,N=Object.keys(this),j=0;j<N.length;j++){var z=N[j];D[z]=this[z]}if(D.hash=_.hash,_.href==="")return D.href=D.format(),D;if(_.slashes&&!_.protocol){for(var V=Object.keys(_),G=0;G<V.length;G++){var Z=V[G];Z!=="protocol"&&(D[Z]=_[Z])}return O[D.protocol]&&D.hostname&&!D.pathname&&(D.path=D.pathname="/"),D.href=D.format(),D}if(_.protocol&&_.protocol!==D.protocol){if(!O[_.protocol]){for(var F=Object.keys(_),ee=0;ee<F.length;ee++){var $=F[ee];D[$]=_[$]}return D.href=D.format(),D}if(D.protocol=_.protocol,_.host||b[_.protocol])D.pathname=_.pathname;else{for(var oe=(_.pathname||"").split("/");oe.length&&!(_.host=oe.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),D.pathname=oe.join("/")}if(D.search=_.search,D.query=_.query,D.host=_.host||"",D.auth=_.auth,D.hostname=_.hostname||_.host,D.port=_.port,D.pathname||D.search){var W=D.pathname||"",R=D.search||"";D.path=W+R}return D.slashes=D.slashes||_.slashes,D.href=D.format(),D}var I=D.pathname&&D.pathname.charAt(0)==="/",U=_.host||_.pathname&&_.pathname.charAt(0)==="/",M=U||I||D.host&&_.pathname,H=M,Y=D.pathname&&D.pathname.split("/")||[],oe=_.pathname&&_.pathname.split("/")||[],ne=D.protocol&&!O[D.protocol];if(ne&&(D.hostname="",D.port=null,D.host&&(Y[0]===""?Y[0]=D.host:Y.unshift(D.host)),D.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(oe[0]===""?oe[0]=_.host:oe.unshift(_.host)),_.host=null),M=M&&(oe[0]===""||Y[0]==="")),U)D.host=_.host||_.host===""?_.host:D.host,D.hostname=_.hostname||_.hostname===""?_.hostname:D.hostname,D.search=_.search,D.query=_.query,Y=oe;else if(oe.length)Y||(Y=[]),Y.pop(),Y=Y.concat(oe),D.search=_.search,D.query=_.query;else if(!e.isNullOrUndefined(_.search)){if(ne){D.hostname=D.host=Y.shift();var ue=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");ue&&(D.auth=ue.shift(),D.host=D.hostname=ue.shift())}return D.search=_.search,D.query=_.query,e.isNull(D.pathname)&&e.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.href=D.format(),D}if(!Y.length)return D.pathname=null,D.search?D.path="/"+D.search:D.path=null,D.href=D.format(),D;for(var pe=Y.slice(-1)[0],Q=(D.host||_.host||Y.length>1)&&(pe==="."||pe==="..")||pe==="",J=0,ie=Y.length;ie>=0;ie--)pe=Y[ie],pe==="."?Y.splice(ie,1):pe===".."?(Y.splice(ie,1),J++):J&&(Y.splice(ie,1),J--);if(!M&&!H)for(;J--;J)Y.unshift("..");!M||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),Q&&Y.join("/").substr(-1)!=="/"&&Y.push("");var q=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(ne){D.hostname=D.host=q?"":Y.length?Y.shift():"";var ue=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");ue&&(D.auth=ue.shift(),D.host=D.hostname=ue.shift())}return M=M||D.host&&Y.length,M&&!q&&Y.unshift(""),Y.length?D.pathname=Y.join("/"):(D.pathname=null,D.path=null),e.isNull(D.pathname)&&e.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.auth=_.auth||D.auth,D.slashes=D.slashes||_.slashes,D.href=D.format(),D},h.prototype.parseHost=function(){var _=this.host,L=r.exec(_);L&&(L=L[0],L!==":"&&(this.port=L.substr(1)),_=_.substr(0,_.length-L.length)),_&&(this.hostname=_)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,A,v){"use strict";A.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,A,v){(function(h){function g(s,d){function u(){if(!e){if(o("throwDeprecation"))throw new Error(d);o("traceDeprecation")?console.trace(d):console.warn(d),e=!0}return s.apply(this,arguments)}if(o("noDeprecation"))return s;var e=!1;return u}function o(s){try{if(!h.localStorage)return!1}catch(u){return!1}var d=h.localStorage[s];return d!=null&&String(d).toLowerCase()==="true"}A.exports=g}).call(this,typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,A,v){A.exports=function(h){return h&&typeof h=="object"&&typeof h.copy=="function"&&typeof h.fill=="function"&&typeof h.readUInt8=="function"}},{}],207:[function(n,A,v){(function(h,g){function o(R,I){var U={seen:[],stylize:d};return arguments.length>=3&&(U.depth=arguments[2]),arguments.length>=4&&(U.colors=arguments[3]),E(I)?U.showHidden=I:I&&v._extend(U,I),O(U.showHidden)&&(U.showHidden=!1),O(U.depth)&&(U.depth=2),O(U.colors)&&(U.colors=!1),O(U.customInspect)&&(U.customInspect=!0),U.colors&&(U.stylize=s),e(U,R,U.depth)}function s(R,I){var U=o.styles[I];return U?"["+o.colors[U][0]+"m"+R+"["+o.colors[U][1]+"m":R}function d(R,I){return R}function u(R){var I={};return R.forEach(function(U,M){I[U]=!0}),I}function e(R,I,U){if(R.customInspect&&I&&N(I.inspect)&&I.inspect!==v.inspect&&(!I.constructor||I.constructor.prototype!==I)){var M=I.inspect(U,R);return m(M)||(M=e(R,M,U)),M}var H=a(R,I);if(H)return H;var Y=Object.keys(I),oe=u(Y);if(R.showHidden&&(Y=Object.getOwnPropertyNames(I)),D(I)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return r(I);if(Y.length===0){if(N(I)){var ne=I.name?": "+I.name:"";return R.stylize("[Function"+ne+"]","special")}if(C(I))return R.stylize(RegExp.prototype.toString.call(I),"regexp");if(L(I))return R.stylize(Date.prototype.toString.call(I),"date");if(D(I))return r(I)}var ue="",pe=!1,Q=["{","}"];if((x(I)&&(pe=!0,Q=["[","]"]),N(I))&&(ue=" [Function"+(I.name?": "+I.name:"")+"]"),C(I)&&(ue=" "+RegExp.prototype.toString.call(I)),L(I)&&(ue=" "+Date.prototype.toUTCString.call(I)),D(I)&&(ue=" "+r(I)),Y.length===0&&(!pe||I.length==0))return Q[0]+ue+Q[1];if(U<0)return C(I)?R.stylize(RegExp.prototype.toString.call(I),"regexp"):R.stylize("[Object]","special");R.seen.push(I);var J;return J=pe?c(R,I,U,oe,Y):Y.map(function(ie){return f(R,I,U,oe,ie,pe)}),R.seen.pop(),l(J,ue,Q)}function a(R,I){if(O(I))return R.stylize("undefined","undefined");if(m(I)){var U="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(U,"string")}return S(I)?R.stylize(""+I,"number"):E(I)?R.stylize(""+I,"boolean"):p(I)?R.stylize("null","null"):void 0}function r(R){return"["+Error.prototype.toString.call(R)+"]"}function c(R,I,U,M,H){for(var Y=[],oe=0,ne=I.length;oe<ne;++oe)Z(I,String(oe))?Y.push(f(R,I,U,M,String(oe),!0)):Y.push("");return H.forEach(function(ue){ue.match(/^\d+$/)||Y.push(f(R,I,U,M,ue,!0))}),Y}function f(R,I,U,M,H,Y){var oe,ne,ue;if(ue=Object.getOwnPropertyDescriptor(I,H)||{value:I[H]},ue.get?ne=ue.set?R.stylize("[Getter/Setter]","special"):R.stylize("[Getter]","special"):ue.set&&(ne=R.stylize("[Setter]","special")),Z(M,H)||(oe="["+H+"]"),ne||(R.seen.indexOf(ue.value)<0?(ne=p(U)?e(R,ue.value,null):e(R,ue.value,U-1),ne.indexOf(`
`)>-1&&(ne=Y?ne.split(`
`).map(function(pe){return" "+pe}).join(`
`).substr(2):`
`+ne.split(`
`).map(function(pe){return" "+pe}).join(`
`))):ne=R.stylize("[Circular]","special")),O(oe)){if(Y&&H.match(/^\d+$/))return ne;oe=JSON.stringify(""+H),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=R.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=R.stylize(oe,"string"))}return oe+": "+ne}function l(R,I,U){var M=0;return R.reduce(function(H,Y){return M++,Y.indexOf(`
`)>=0&&M++,H+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?U[0]+(I===""?"":I+`
`)+" "+R.join(`,
`)+" "+U[1]:U[0]+I+" "+R.join(", ")+" "+U[1]}function x(R){return Array.isArray(R)}function E(R){return typeof R=="boolean"}function p(R){return R===null}function T(R){return R==null}function S(R){return typeof R=="number"}function m(R){return typeof R=="string"}function b(R){return typeof R=="symbol"}function O(R){return R===void 0}function C(R){return _(R)&&z(R)==="[object RegExp]"}function _(R){return typeof R=="object"&&R!==null}function L(R){return _(R)&&z(R)==="[object Date]"}function D(R){return _(R)&&(z(R)==="[object Error]"||R instanceof Error)}function N(R){return typeof R=="function"}function j(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0}function z(R){return Object.prototype.toString.call(R)}function V(R){return R<10?"0"+R.toString(10):R.toString(10)}function G(){var R=new Date,I=[V(R.getHours()),V(R.getMinutes()),V(R.getSeconds())].join(":");return[R.getDate(),W[R.getMonth()],I].join(" ")}function Z(R,I){return Object.prototype.hasOwnProperty.call(R,I)}var F=/%[sdj%]/g;v.format=function(R){if(!m(R)){for(var I=[],U=0;U<arguments.length;U++)I.push(o(arguments[U]));return I.join(" ")}for(var U=1,M=arguments,H=M.length,Y=String(R).replace(F,function(ue){if(ue==="%%")return"%";if(U>=H)return ue;switch(ue){case"%s":return String(M[U++]);case"%d":return Number(M[U++]);case"%j":try{return JSON.stringify(M[U++])}catch(pe){return"[Circular]"}default:return ue}}),oe=M[U];U<H;oe=M[++U])p(oe)||!_(oe)?Y+=" "+oe:Y+=" "+o(oe);return Y},v.deprecate=function(R,I){function U(){if(!M){if(h.throwDeprecation)throw new Error(I);h.traceDeprecation?console.trace(I):console.error(I),M=!0}return R.apply(this,arguments)}if(O(g.process))return function(){return v.deprecate(R,I).apply(this,arguments)};if(h.noDeprecation===!0)return R;var M=!1;return U};var ee,$={};v.debuglog=function(R){if(O(ee)&&(ee=h.env.NODE_DEBUG||""),R=R.toUpperCase(),!$[R])if(new RegExp("\\b"+R+"\\b","i").test(ee)){var I=h.pid;$[R]=function(){var U=v.format.apply(v,arguments);console.error("%s %d: %s",R,I,U)}}else $[R]=function(){};return $[R]},v.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},v.isArray=x,v.isBoolean=E,v.isNull=p,v.isNullOrUndefined=T,v.isNumber=S,v.isString=m,v.isSymbol=b,v.isUndefined=O,v.isRegExp=C,v.isObject=_,v.isDate=L,v.isError=D,v.isFunction=N,v.isPrimitive=j,v.isBuffer=n("./support/isBuffer");var W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v.log=function(){console.log("%s - %s",G(),v.format.apply(v,arguments))},v.inherits=n("inherits"),v._extend=function(R,I){if(!I||!_(I))return R;for(var U=Object.keys(I),M=U.length;M--;)R[U[M]]=I[U[M]];return R}}).call(this,n("_process"),typeof ke!="undefined"?ke:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,A,v){"use strict";(function(){v.stripBOM=function(h){return h[0]==="\uFEFF"?h.substring(1):h}}).call(void 0)},{}],209:[function(n,A,v){"use strict";function h(u){return u&&u.__esModule?u:{default:u}}var g=n("babel-runtime/helpers/typeof"),o=h(g),s=n("babel-runtime/core-js/object/keys"),d=h(s);(function(){var u,e,a,r,c,f={}.hasOwnProperty;u=n("xmlbuilder"),e=n("./defaults").defaults,r=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},c=function(x){return"<![CDATA["+a(x)+"]]>"},a=function(x){return x.replace("]]>","]]]]><![CDATA[>")},v.Builder=function(){function l(x){var E,p,T;this.options={},p=e[.2];for(E in p)f.call(p,E)&&(T=p[E],this.options[E]=T);for(E in x)f.call(x,E)&&(T=x[E],this.options[E]=T)}return l.prototype.buildObject=function(x){var E,p,T,S,m;return E=this.options.attrkey,p=this.options.charkey,(0,d.default)(x).length===1&&this.options.rootName===e[.2].rootName?(m=(0,d.default)(x)[0],x=x[m]):m=this.options.rootName,T=function(b){return function(O,C){var _,L,D,N,j,z;if((C===void 0?"undefined":(0,o.default)(C))!=="object")b.options.cdata&&r(C)?O.raw(c(C)):O.txt(C);else if(Array.isArray(C)){for(N in C)if(f.call(C,N)){L=C[N];for(j in L)D=L[j],O=T(O.ele(j),D).up()}}else for(j in C)if(f.call(C,j))if(L=C[j],j===E){if((L===void 0?"undefined":(0,o.default)(L))==="object")for(_ in L)z=L[_],O=O.att(_,z)}else if(j===p)O=b.options.cdata&&r(L)?O.raw(c(L)):O.txt(L);else if(Array.isArray(L))for(N in L)f.call(L,N)&&(D=L[N],O=typeof D=="string"?b.options.cdata&&r(D)?O.ele(j).raw(c(D)).up():O.ele(j,D).up():T(O.ele(j),D).up());else(L===void 0?"undefined":(0,o.default)(L))==="object"?O=T(O.ele(j),L).up():typeof L=="string"&&b.options.cdata&&r(L)?O=O.ele(j).raw(c(L)).up():(L==null&&(L=""),O=O.ele(j,L.toString()).up());return O}}(this),S=u.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(S,x).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,A,v){"use strict";(function(){v.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,A,v){"use strict";function h(a){return a&&a.__esModule?a:{default:a}}var g=n("babel-runtime/core-js/object/get-own-property-names"),o=h(g),s=n("babel-runtime/core-js/object/keys"),d=h(s),u=n("babel-runtime/helpers/typeof"),e=h(u);(function(){var a,r,c,f,l,x,E,p,T=function(O,C){return function(){return O.apply(C,arguments)}},S=function(O,C){function _(){this.constructor=O}for(var L in C)m.call(C,L)&&(O[L]=C[L]);return _.prototype=C.prototype,O.prototype=new _,O.__super__=C.prototype,O},m={}.hasOwnProperty;E=n("sax"),c=n("events"),a=n("./bom"),x=n("./processors"),p=n("timers").setImmediate,r=n("./defaults").defaults,f=function(O){return(O===void 0?"undefined":(0,e.default)(O))==="object"&&O!=null&&(0,d.default)(O).length===0},l=function(O,C,_){var L,D,N;for(L=0,D=O.length;L<D;L++)N=O[L],C=N(C,_);return C},v.Parser=function(b){function O(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 _,L,D;if(!(this instanceof v.Parser))return new v.Parser(C);this.options={},L=r[.2];for(_ in L)m.call(L,_)&&(D=L[_],this.options[_]=D);for(_ in C)m.call(C,_)&&(D=C[_],this.options[_]=D);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return S(O,b),O.prototype.processAsync=function(){var C,_;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),p(this.processAsync))}catch(L){if(_=L,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(_)}},O.prototype.assignOrPush=function(C,_,L){return _ in C?(C[_]instanceof Array||(C[_]=[C[_]]),C[_].push(L)):this.options.explicitArray?C[_]=[L]:C[_]=L},O.prototype.reset=function(){var C,_,L,D;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(N){return function(j){if(N.saxParser.resume(),!N.saxParser.errThrown)return N.saxParser.errThrown=!0,N.emit("error",j)}}(this),this.saxParser.onend=function(N){return function(){if(!N.saxParser.ended)return N.saxParser.ended=!0,N.emit("end",N.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,D=[],C=this.options.attrkey,_=this.options.charkey,this.saxParser.onopentag=function(N){return function(j){var z,V,G,Z,F;if(G={},G[_]="",!N.options.ignoreAttrs){F=j.attributes;for(z in F)m.call(F,z)&&(C in G||N.options.mergeAttrs||(G[C]={}),V=N.options.attrValueProcessors?l(N.options.attrValueProcessors,j.attributes[z],z):j.attributes[z],Z=N.options.attrNameProcessors?l(N.options.attrNameProcessors,z):z,N.options.mergeAttrs?N.assignOrPush(G,Z,V):G[C][Z]=V)}return G["#name"]=N.options.tagNameProcessors?l(N.options.tagNameProcessors,j.name):j.name,N.options.xmlns&&(G[N.options.xmlnskey]={uri:j.uri,local:j.local}),D.push(G)}}(this),this.saxParser.onclosetag=function(N){return function(){var j,z,V,G,Z,F,ee,$,W,R;if(F=D.pop(),Z=F["#name"],N.options.explicitChildren&&N.options.preserveChildrenOrder||delete F["#name"],F.cdata===!0&&(j=F.cdata,delete F.cdata),W=D[D.length-1],F[_].match(/^\s*$/)&&!j?(z=F[_],delete F[_]):(N.options.trim&&(F[_]=F[_].trim()),N.options.normalize&&(F[_]=F[_].replace(/\s{2,}/g," ").trim()),F[_]=N.options.valueProcessors?l(N.options.valueProcessors,F[_],Z):F[_],(0,d.default)(F).length===1&&_ in F&&!N.EXPLICIT_CHARKEY&&(F=F[_])),f(F)&&(F=N.options.emptyTag!==""?N.options.emptyTag:z),N.options.validator!=null&&(R="/"+function(){var I,U,M;for(M=[],I=0,U=D.length;I<U;I++)G=D[I],M.push(G["#name"]);return M}().concat(Z).join("/"),function(){var I;try{F=N.options.validator(R,W&&W[Z],F)}catch(U){return I=U,N.emit("error",I)}}()),N.options.explicitChildren&&!N.options.mergeAttrs&&(F===void 0?"undefined":(0,e.default)(F))==="object")if(N.options.preserveChildrenOrder){if(W){W[N.options.childkey]=W[N.options.childkey]||[],ee={};for(V in F)m.call(F,V)&&(ee[V]=F[V]);W[N.options.childkey].push(ee),delete F["#name"],(0,d.default)(F).length===1&&_ in F&&!N.EXPLICIT_CHARKEY&&(F=F[_])}}else G={},N.options.attrkey in F&&(G[N.options.attrkey]=F[N.options.attrkey],delete F[N.options.attrkey]),!N.options.charsAsChildren&&N.options.charkey in F&&(G[N.options.charkey]=F[N.options.charkey],delete F[N.options.charkey]),(0,o.default)(F).length>0&&(G[N.options.childkey]=F),F=G;return D.length>0?N.assignOrPush(W,Z,F):(N.options.explicitRoot&&($=F,F={},F[Z]=$),N.resultObject=F,N.saxParser.ended=!0,N.emit("end",N.resultObject))}}(this),L=function(N){return function(j){var z,V;if(V=D[D.length-1])return V[_]+=j,N.options.explicitChildren&&N.options.preserveChildrenOrder&&N.options.charsAsChildren&&(N.options.includeWhiteChars||j.replace(/\\n/g,"").trim()!=="")&&(V[N.options.childkey]=V[N.options.childkey]||[],z={"#name":"__text__"},z[_]=j,N.options.normalize&&(z[_]=z[_].replace(/\s{2,}/g," ").trim()),V[N.options.childkey].push(z)),V}}(this),this.saxParser.ontext=L,this.saxParser.oncdata=function(N){return function(j){var z;if(z=L(j))return z.cdata=!0}}()},O.prototype.parseString=function(C,_){var L;_!=null&&typeof _=="function"&&(this.on("end",function(D){return this.reset(),_(null,D)}),this.on("error",function(D){return this.reset(),_(D)}));try{return C=C.toString(),C.trim()===""?(this.emit("end",null),!0):(C=a.stripBOM(C),this.options.async?(this.remaining=C,p(this.processAsync),this.saxParser):this.saxParser.write(C).close())}catch(D){if(L=D,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",L),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw L}},O}(c.EventEmitter),v.parseString=function(b,O,C){var _,L,D;return C!=null?(typeof C=="function"&&(_=C),(O===void 0?"undefined":(0,e.default)(O))==="object"&&(L=O)):(typeof O=="function"&&(_=O),L={}),D=new v.Parser(L),D.parseString(b,_)}}).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,A,v){"use strict";(function(){var h;h=new RegExp(/(?!xmlns)^.*:/),v.normalize=function(g){return g.toLowerCase()},v.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},v.stripPrefix=function(g){return g.replace(h,"")},v.parseNumbers=function(g){return isNaN(g)||(g=g%1==0?parseInt(g,10):parseFloat(g)),g},v.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],213:[function(n,A,v){"use strict";(function(){var h,g,o,s,d=function(a,r){function c(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return c.prototype=r.prototype,a.prototype=new c,a.__super__=r.prototype,a},u={}.hasOwnProperty;g=n("./defaults"),h=n("./builder"),o=n("./parser"),s=n("./processors"),v.defaults=g.defaults,v.processors=s,v.ValidationError=function(e){function a(r){this.message=r}return d(a,e),a}(Error),v.Builder=h.Builder,v.Parser=o.Parser,v.parseString=o.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,A,v){"use strict";function h(a){return a&&a.__esModule?a:{default:a}}var g=n("babel-runtime/core-js/object/get-prototype-of"),o=h(g),s=n("babel-runtime/helpers/typeof"),d=h(s),u=n("babel-runtime/core-js/object/assign"),e=h(u);(function(){var a,r,c,f,l,x,E=[].slice,p={}.hasOwnProperty;a=function(){var S,m,b,O,C,_;if(_=arguments[0],C=2<=arguments.length?E.call(arguments,1):[],f(e.default))e.default.apply(null,arguments);else for(S=0,b=C.length;S<b;S++)if((O=C[S])!=null)for(m in O)p.call(O,m)&&(_[m]=O[m]);return _},f=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},l=function(S){var m;return!!S&&((m=S===void 0?"undefined":(0,d.default)(S))==="function"||m==="object")},r=function(S){return f(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},c=function(S){var m;if(r(S))return!S.length;for(m in S)if(p.call(S,m))return!1;return!0},x=function(S){var m,b;return l(S)&&(b=(0,o.default)(S))&&(m=b.constructor)&&typeof m=="function"&&m instanceof m&&Function.prototype.toString.call(m)===Function.prototype.toString.call(Object)},A.exports.assign=a,A.exports.isFunction=f,A.exports.isObject=l,A.exports.isArray=r,A.exports.isEmpty=c,A.exports.isPlainObject=x}).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,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){A.exports=function(){function o(s,d,u){if(this.options=s.options,this.stringify=s.stringify,d==null)throw new Error("Missing attribute name of element "+s.name);if(u==null)throw new Error("Missing attribute value for attribute "+d+" of element "+s.name);this.name=this.stringify.attName(d),this.value=this.stringify.attValue(u)}return o.prototype.clone=function(){return(0,g.default)(this)},o.prototype.toString=function(s){return this.options.writer.set(s).attribute(this)},o}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s=function(e,a){function r(){this.constructor=e}for(var c in a)d.call(a,c)&&(e[c]=a[c]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},d={}.hasOwnProperty;o=n("./XMLNode"),A.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s=function(e,a){function r(){this.constructor=e}for(var c in a)d.call(a,c)&&(e[c]=a[c]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},d={}.hasOwnProperty;o=n("./XMLNode"),A.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,A,v){"use strict";(function(){var h,g=function(d,u){function e(){this.constructor=d}for(var a in u)o.call(u,a)&&(d[a]=u[a]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},o={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,a,r,c,f){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");if(a==null)throw new Error("Missing DTD attribute name");if(!r)throw new Error("Missing DTD attribute type");if(!c)throw new Error("Missing DTD attribute default");if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(f&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(e),this.attributeName=this.stringify.attName(a),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=c}return g(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],219:[function(n,A,v){"use strict";(function(){var h,g=function(d,u){function e(){this.constructor=d}for(var a in u)o.call(u,a)&&(d[a]=u[a]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},o={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,a){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing DTD element name");a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(a)}return g(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],220:[function(n,A,v){"use strict";(function(){var h,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},s={}.hasOwnProperty;g=n("./Utility").isObject,h=n("./XMLNode"),A.exports=function(d){function u(e,a,r,c){if(u.__super__.constructor.call(this,e),r==null)throw new Error("Missing entity name");if(c==null)throw new Error("Missing entity value");if(this.pe=!!a,this.name=this.stringify.eleName(r),g(c)){if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity");if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(c)}return o(u,d),u.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,A,v){"use strict";(function(){var h,g=function(d,u){function e(){this.constructor=d}for(var a in u)o.call(u,a)&&(d[a]=u[a]);return e.prototype=u.prototype,d.prototype=new e,d.__super__=u.prototype,d},o={}.hasOwnProperty;h=n("./XMLNode"),A.exports=function(s){function d(u,e,a){if(d.__super__.constructor.call(this,u),e==null)throw new Error("Missing notation name");if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return g(d,s),d.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},d}(h)}).call(void 0)},{"./XMLNode":227}],222:[function(n,A,v){"use strict";(function(){var h,g,o=function(u,e){function a(){this.constructor=u}for(var r in e)s.call(e,r)&&(u[r]=e[r]);return a.prototype=e.prototype,u.prototype=new a,u.__super__=e.prototype,u},s={}.hasOwnProperty;g=n("./Utility").isObject,h=n("./XMLNode"),A.exports=function(d){function u(e,a,r,c){var f;u.__super__.constructor.call(this,e),g(a)&&(f=a,a=f.version,r=f.encoding,c=f.standalone),a||(a="1.0"),this.version=this.stringify.xmlVersion(a),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return o(u,d),u.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},u}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,A,v){"use strict";(function(){var h,g,o,s,d,u,e=function(c,f){function l(){this.constructor=c}for(var x in f)a.call(f,x)&&(c[x]=f[x]);return l.prototype=f.prototype,c.prototype=new l,c.__super__=f.prototype,c},a={}.hasOwnProperty;u=n("./Utility").isObject,d=n("./XMLNode"),h=n("./XMLDTDAttList"),o=n("./XMLDTDEntity"),g=n("./XMLDTDElement"),s=n("./XMLDTDNotation"),A.exports=function(r){function c(f,l,x){var E,p;c.__super__.constructor.call(this,f),this.documentObject=f,u(l)&&(E=l,l=E.pubID,x=E.sysID),x==null&&(p=[l,x],x=p[0],l=p[1]),l!=null&&(this.pubID=this.stringify.dtdPubID(l)),x!=null&&(this.sysID=this.stringify.dtdSysID(x))}return e(c,r),c.prototype.element=function(f,l){var x;return x=new g(this,f,l),this.children.push(x),this},c.prototype.attList=function(f,l,x,E,p){var T;return T=new h(this,f,l,x,E,p),this.children.push(T),this},c.prototype.entity=function(f,l){var x;return x=new o(this,!1,f,l),this.children.push(x),this},c.prototype.pEntity=function(f,l){var x;return x=new o(this,!0,f,l),this.children.push(x),this},c.prototype.notation=function(f,l){var x;return x=new s(this,f,l),this.children.push(x),this},c.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},c.prototype.ele=function(f,l){return this.element(f,l)},c.prototype.att=function(f,l,x,E,p){return this.attList(f,l,x,E,p)},c.prototype.ent=function(f,l){return this.entity(f,l)},c.prototype.pent=function(f,l){return this.pEntity(f,l)},c.prototype.not=function(f,l){return this.notation(f,l)},c.prototype.up=function(){return this.root()||this.documentObject},c}(d)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,A,v){"use strict";(function(){var h,g,o,s,d=function(a,r){function c(){this.constructor=a}for(var f in r)u.call(r,f)&&(a[f]=r[f]);return c.prototype=r.prototype,a.prototype=new c,a.__super__=r.prototype,a},u={}.hasOwnProperty;s=n("./Utility").isPlainObject,h=n("./XMLNode"),o=n("./XMLStringifier"),g=n("./XMLStringWriter"),A.exports=function(e){function a(r){a.__super__.constructor.call(this,null),r||(r={}),r.writer||(r.writer=new g),this.options=r,this.stringify=new o(r),this.isDocument=!0}return d(a,e),a.prototype.end=function(r){var c;return r?s(r)&&(c=r,r=this.options.writer.set(c)):r=this.options.writer,r.document(this)},a.prototype.toString=function(r){return this.options.writer.set(r).document(this)},a}(h)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,A,v){"use strict";(function(){var h,g,o,s,d,u,e,a,r,c,f,l,x,E,p,T,S,m,b,O={}.hasOwnProperty;b=n("./Utility"),S=b.isObject,T=b.isFunction,m=b.isPlainObject,c=n("./XMLElement"),g=n("./XMLCData"),o=n("./XMLComment"),l=n("./XMLRaw"),p=n("./XMLText"),f=n("./XMLProcessingInstruction"),a=n("./XMLDeclaration"),r=n("./XMLDocType"),s=n("./XMLDTDAttList"),u=n("./XMLDTDEntity"),d=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),h=n("./XMLAttribute"),E=n("./XMLStringifier"),x=n("./XMLStringWriter"),A.exports=function(){function C(_,L,D){var N;_||(_={}),_.writer?m(_.writer)&&(N=_.writer,_.writer=new x(N)):_.writer=new x(_),this.options=_,this.writer=_.writer,this.stringify=new E(_),this.onDataCallback=L||function(){},this.onEndCallback=D||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return C.prototype.node=function(_,L,D){var N;if(_==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(),_=_.valueOf(),L==null&&(L={}),L=L.valueOf(),S(L)||(N=[L,D],D=N[0],L=N[1]),this.currentNode=new c(this,_,L),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,D!=null&&this.text(D),this},C.prototype.element=function(_,L,D){return this.currentNode&&this.currentNode instanceof r?this.dtdElement.apply(this,arguments):this.node(_,L,D)},C.prototype.attribute=function(_,L){var D,N;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(_!=null&&(_=_.valueOf()),S(_))for(D in _)O.call(_,D)&&(N=_[D],this.attribute(D,N));else T(L)&&(L=L.apply()),this.options.skipNullAttributes&&L==null||(this.currentNode.attributes[_]=new h(this,_,L));return this},C.prototype.text=function(_){var L;return this.openCurrent(),L=new p(this,_),this.onData(this.writer.text(L,this.currentLevel+1)),this},C.prototype.cdata=function(_){var L;return this.openCurrent(),L=new g(this,_),this.onData(this.writer.cdata(L,this.currentLevel+1)),this},C.prototype.comment=function(_){var L;return this.openCurrent(),L=new o(this,_),this.onData(this.writer.comment(L,this.currentLevel+1)),this},C.prototype.raw=function(_){var L;return this.openCurrent(),L=new l(this,_),this.onData(this.writer.raw(L,this.currentLevel+1)),this},C.prototype.instruction=function(_,L){var D,N,j,z,V;if(this.openCurrent(),_!=null&&(_=_.valueOf()),L!=null&&(L=L.valueOf()),Array.isArray(_))for(D=0,z=_.length;D<z;D++)N=_[D],this.instruction(N);else if(S(_))for(N in _)O.call(_,N)&&(j=_[N],this.instruction(N,j));else T(L)&&(L=L.apply()),V=new f(this,_,L),this.onData(this.writer.processingInstruction(V,this.currentLevel+1));return this},C.prototype.declaration=function(_,L,D){var N;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return N=new a(this,_,L,D),this.onData(this.writer.declaration(N,this.currentLevel+1)),this},C.prototype.doctype=function(_,L,D){if(this.openCurrent(),_==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new r(this,L,D),this.currentNode.rootNodeName=_,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},C.prototype.dtdElement=function(_,L){var D;return this.openCurrent(),D=new d(this,_,L),this.onData(this.writer.dtdElement(D,this.currentLevel+1)),this},C.prototype.attList=function(_,L,D,N,j){var z;return this.openCurrent(),z=new s(this,_,L,D,N,j),this.onData(this.writer.dtdAttList(z,this.currentLevel+1)),this},C.prototype.entity=function(_,L){var D;return this.openCurrent(),D=new u(this,!1,_,L),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},C.prototype.pEntity=function(_,L){var D;return this.openCurrent(),D=new u(this,!0,_,L),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},C.prototype.notation=function(_,L){var D;return this.openCurrent(),D=new e(this,_,L),this.onData(this.writer.dtdNotation(D,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(_){if(!_.isOpen)return!this.root&&this.currentLevel===0&&_ instanceof c&&(this.root=_),this.onData(this.writer.openNode(_,this.currentLevel)),_.isOpen=!0},C.prototype.closeNode=function(_){if(!_.isClosed)return this.onData(this.writer.closeNode(_,this.currentLevel)),_.isClosed=!0},C.prototype.onData=function(_){return this.documentStarted=!0,this.onDataCallback(_)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(_,L,D){return this.node(_,L,D)},C.prototype.txt=function(_){return this.text(_)},C.prototype.dat=function(_){return this.cdata(_)},C.prototype.com=function(_){return this.comment(_)},C.prototype.ins=function(_,L){return this.instruction(_,L)},C.prototype.dec=function(_,L,D){return this.declaration(_,L,D)},C.prototype.dtd=function(_,L,D){return this.doctype(_,L,D)},C.prototype.e=function(_,L,D){return this.element(_,L,D)},C.prototype.n=function(_,L,D){return this.node(_,L,D)},C.prototype.t=function(_){return this.text(_)},C.prototype.d=function(_){return this.cdata(_)},C.prototype.c=function(_){return this.comment(_)},C.prototype.r=function(_){return this.raw(_)},C.prototype.i=function(_,L){return this.instruction(_,L)},C.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(_,L){return this.entity(_,L)},C.prototype.pent=function(_,L){return this.pEntity(_,L)},C.prototype.not=function(_,L){return this.notation(_,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,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s,d,u,e,a=function(f,l){function x(){this.constructor=f}for(var E in l)r.call(l,E)&&(f[E]=l[E]);return x.prototype=l.prototype,f.prototype=new x,f.__super__=l.prototype,f},r={}.hasOwnProperty;e=n("./Utility"),u=e.isObject,d=e.isFunction,s=n("./XMLNode"),o=n("./XMLAttribute"),A.exports=function(c){function f(l,x,E){if(f.__super__.constructor.call(this,l),x==null)throw new Error("Missing element name");this.name=this.stringify.eleName(x),this.attributes={},E!=null&&this.attribute(E),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return a(f,c),f.prototype.clone=function(){var l,x,E,p;E=(0,g.default)(this),E.isRoot&&(E.documentObject=null),E.attributes={},p=this.attributes;for(x in p)r.call(p,x)&&(l=p[x],E.attributes[x]=l.clone());return E.children=[],this.children.forEach(function(T){var S;return S=T.clone(),S.parent=E,E.children.push(S)}),E},f.prototype.attribute=function(l,x){var E,p;if(l!=null&&(l=l.valueOf()),u(l))for(E in l)r.call(l,E)&&(p=l[E],this.attribute(E,p));else d(x)&&(x=x.apply()),this.options.skipNullAttributes&&x==null||(this.attributes[l]=new o(this,l,x));return this},f.prototype.removeAttribute=function(l){var x,E,p;if(l==null)throw new Error("Missing attribute name");if(l=l.valueOf(),Array.isArray(l))for(E=0,p=l.length;E<p;E++)x=l[E],delete this.attributes[x];else delete this.attributes[l];return this},f.prototype.toString=function(l){return this.options.writer.set(l).element(this)},f.prototype.att=function(l,x){return this.attribute(l,x)},f.prototype.a=function(l,x){return this.attribute(l,x)},f}(s)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,A,v){"use strict";(function(){var h,g,o,s,d,u,e,a,r,c,f,l,x={}.hasOwnProperty;l=n("./Utility"),f=l.isObject,c=l.isFunction,r=l.isEmpty,d=null,h=null,g=null,o=null,s=null,e=null,a=null,u=null,A.exports=function(){function E(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],d||(d=n("./XMLElement"),h=n("./XMLCData"),g=n("./XMLComment"),o=n("./XMLDeclaration"),s=n("./XMLDocType"),e=n("./XMLRaw"),a=n("./XMLText"),u=n("./XMLProcessingInstruction"))}return E.prototype.element=function(p,T,S){var m,b,O,C,_,L,D,N,j,z;if(L=null,T==null&&(T={}),T=T.valueOf(),f(T)||(j=[T,S],S=j[0],T=j[1]),p!=null&&(p=p.valueOf()),Array.isArray(p))for(O=0,D=p.length;O<D;O++)b=p[O],L=this.element(b);else if(c(p))L=this.element(p.apply());else if(f(p)){for(_ in p)if(x.call(p,_))if(z=p[_],c(z)&&(z=z.apply()),f(z)&&r(z)&&(z=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&_.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(_.substr(this.stringify.convertAttKey.length),z);else if(!this.options.separateArrayItems&&Array.isArray(z))for(C=0,N=z.length;C<N;C++)b=z[C],m={},m[_]=b,L=this.element(m);else f(z)?(L=this.element(_),L.element(z)):L=this.element(_,z)}else L=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?this.text(S):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?this.cdata(S):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?this.comment(S):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?this.raw(S):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?this.instruction(p.substr(this.stringify.convertPIKey.length),S):this.node(p,T,S);if(L==null)throw new Error("Could not create any elements with: "+p);return L},E.prototype.insertBefore=function(p,T,S){var m,b,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),O=this.parent.children.splice(b),m=this.parent.element(p,T,S),Array.prototype.push.apply(this.parent.children,O),m},E.prototype.insertAfter=function(p,T,S){var m,b,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),O=this.parent.children.splice(b+1),m=this.parent.element(p,T,S),Array.prototype.push.apply(this.parent.children,O),m},E.prototype.remove=function(){var p;if(this.isRoot)throw new Error("Cannot remove the root element");return p=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[p,p-p+1].concat([])),this.parent},E.prototype.node=function(p,T,S){var m,b;return p!=null&&(p=p.valueOf()),T||(T={}),T=T.valueOf(),f(T)||(b=[T,S],S=b[0],T=b[1]),m=new d(this,p,T),S!=null&&m.text(S),this.children.push(m),m},E.prototype.text=function(p){var T;return T=new a(this,p),this.children.push(T),this},E.prototype.cdata=function(p){var T;return T=new h(this,p),this.children.push(T),this},E.prototype.comment=function(p){var T;return T=new g(this,p),this.children.push(T),this},E.prototype.commentBefore=function(p){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.commentAfter=function(p){var T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,S),this},E.prototype.raw=function(p){var T;return T=new e(this,p),this.children.push(T),this},E.prototype.instruction=function(p,T){var S,m,b,O,C;if(p!=null&&(p=p.valueOf()),T!=null&&(T=T.valueOf()),Array.isArray(p))for(O=0,C=p.length;O<C;O++)S=p[O],this.instruction(S);else if(f(p))for(S in p)x.call(p,S)&&(m=p[S],this.instruction(S,m));else c(T)&&(T=T.apply()),b=new u(this,p,T),this.children.push(b);return this},E.prototype.instructionBefore=function(p,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S),this.parent.instruction(p,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.instructionAfter=function(p,T){var S,m;return S=this.parent.children.indexOf(this),m=this.parent.children.splice(S+1),this.parent.instruction(p,T),Array.prototype.push.apply(this.parent.children,m),this},E.prototype.declaration=function(p,T,S){var m,b;return m=this.document(),b=new o(m,p,T,S),m.children[0]instanceof o?m.children[0]=b:m.children.unshift(b),m.root()||m},E.prototype.doctype=function(p,T){var S,m,b,O,C,_,L,D,N,j;for(m=this.document(),b=new s(m,p,T),N=m.children,O=C=0,L=N.length;C<L;O=++C)if((S=N[O])instanceof s)return m.children[O]=b,b;for(j=m.children,O=_=0,D=j.length;_<D;O=++_)if(S=j[O],S.isRoot)return m.children.splice(O,0,b),b;return m.children.push(b),b},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 p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},E.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},E.prototype.end=function(p){return this.document().end(p)},E.prototype.prev=function(){var p;if((p=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[p-1]},E.prototype.next=function(){var p;if((p=this.parent.children.indexOf(this))===-1||p===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[p+1]},E.prototype.importDocument=function(p){var T;return T=p.root().clone(),T.parent=this,T.isRoot=!1,this.children.push(T),this},E.prototype.ele=function(p,T,S){return this.element(p,T,S)},E.prototype.nod=function(p,T,S){return this.node(p,T,S)},E.prototype.txt=function(p){return this.text(p)},E.prototype.dat=function(p){return this.cdata(p)},E.prototype.com=function(p){return this.comment(p)},E.prototype.ins=function(p,T){return this.instruction(p,T)},E.prototype.doc=function(){return this.document()},E.prototype.dec=function(p,T,S){return this.declaration(p,T,S)},E.prototype.dtd=function(p,T){return this.doctype(p,T)},E.prototype.e=function(p,T,S){return this.element(p,T,S)},E.prototype.n=function(p,T,S){return this.node(p,T,S)},E.prototype.t=function(p){return this.text(p)},E.prototype.d=function(p){return this.cdata(p)},E.prototype.c=function(p){return this.comment(p)},E.prototype.r=function(p){return this.raw(p)},E.prototype.i=function(p,T){return this.instruction(p,T)},E.prototype.u=function(){return this.up()},E.prototype.importXMLBuilder=function(p){return this.importDocument(p)},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,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s=function(e,a){function r(){this.constructor=e}for(var c in a)d.call(a,c)&&(e[c]=a[c]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},d={}.hasOwnProperty;o=n("./XMLNode"),A.exports=function(u){function e(a,r,c){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(r),c&&(this.value=this.stringify.insValue(c))}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s=function(e,a){function r(){this.constructor=e}for(var c in a)d.call(a,c)&&(e[c]=a[c]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},d={}.hasOwnProperty;o=n("./XMLNode"),A.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,A,v){"use strict";(function(){var h,g,o,s,d,u,e,a,r,c,f,l,x,E=function(S,m){function b(){this.constructor=S}for(var O in m)p.call(m,O)&&(S[O]=m[O]);return b.prototype=m.prototype,S.prototype=new b,S.__super__=m.prototype,S},p={}.hasOwnProperty;e=n("./XMLDeclaration"),a=n("./XMLDocType"),h=n("./XMLCData"),g=n("./XMLComment"),r=n("./XMLElement"),f=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),o=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),u=n("./XMLDTDNotation"),x=n("./XMLWriterBase"),A.exports=function(T){function S(m,b){S.__super__.constructor.call(this,b),this.stream=m}return E(S,T),S.prototype.document=function(m){var b,O,C,_,L,D,N,j;for(D=m.children,O=0,_=D.length;O<_;O++)b=D[O],b.isLastRootNode=!1;for(m.children[m.children.length-1].isLastRootNode=!0,N=m.children,j=[],C=0,L=N.length;C<L;C++)switch(b=N[C],!1){case!(b instanceof e):j.push(this.declaration(b));break;case!(b instanceof a):j.push(this.docType(b));break;case!(b instanceof g):j.push(this.comment(b));break;case!(b instanceof c):j.push(this.processingInstruction(b));break;default:j.push(this.element(b))}return j},S.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},S.prototype.cdata=function(m,b){return this.stream.write(this.space(b)+"<![CDATA["+m.text+"]]>"+this.endline(m))},S.prototype.comment=function(m,b){return this.stream.write(this.space(b)+"<!-- "+m.text+" -->"+this.endline(m))},S.prototype.declaration=function(m,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null&&this.stream.write(' encoding="'+m.encoding+'"'),m.standalone!=null&&this.stream.write(' standalone="'+m.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},S.prototype.docType=function(m,b){var O,C,_,L;if(b||(b=0),this.stream.write(this.space(b)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(m)),L=m.children,C=0,_=L.length;C<_;C++)switch(O=L[C],!1){case!(O instanceof o):this.dtdAttList(O,b+1);break;case!(O instanceof s):this.dtdElement(O,b+1);break;case!(O instanceof d):this.dtdEntity(O,b+1);break;case!(O instanceof u):this.dtdNotation(O,b+1);break;case!(O instanceof h):this.cdata(O,b+1);break;case!(O instanceof g):this.comment(O,b+1);break;case!(O instanceof c):this.processingInstruction(O,b+1);break;default:throw new Error("Unknown DTD node type: "+O.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},S.prototype.element=function(m,b){var O,C,_,L,D,N,j,z;b||(b=0),z=this.space(b),this.stream.write(z+"<"+m.name),N=m.attributes;for(D in N)p.call(N,D)&&(O=N[D],this.attribute(O));if(m.children.length===0||m.children.every(function(V){return V.value===""}))this.allowEmpty?this.stream.write("></"+m.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{for(this.stream.write(">"+this.newline),j=m.children,_=0,L=j.length;_<L;_++)switch(C=j[_],!1){case!(C instanceof h):this.cdata(C,b+1);break;case!(C instanceof g):this.comment(C,b+1);break;case!(C instanceof r):this.element(C,b+1);break;case!(C instanceof f):this.raw(C,b+1);break;case!(C instanceof l):this.text(C,b+1);break;case!(C instanceof c):this.processingInstruction(C,b+1);break;default:throw new Error("Unknown XML node type: "+C.constructor.name)}this.stream.write(z+"</"+m.name+">")}return this.stream.write(this.endline(m))},S.prototype.processingInstruction=function(m,b){return this.stream.write(this.space(b)+"<?"+m.target),m.value&&this.stream.write(" "+m.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},S.prototype.raw=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},S.prototype.text=function(m,b){return this.stream.write(this.space(b)+m.value+this.endline(m))},S.prototype.dtdAttList=function(m,b){return this.stream.write(this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+m.defaultValueType),m.defaultValue&&this.stream.write(' "'+m.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdElement=function(m,b){return this.stream.write(this.space(b)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdEntity=function(m,b){return this.stream.write(this.space(b)+"<!ENTITY"),m.pe&&this.stream.write(" %"),this.stream.write(" "+m.name),m.value?this.stream.write(' "'+m.value+'"'):(m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.nData&&this.stream.write(" NDATA "+m.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.dtdNotation=function(m,b){return this.stream.write(this.space(b)+"<!NOTATION "+m.name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.pubID?this.stream.write(' PUBLIC "'+m.pubID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},S.prototype.endline=function(m){return m.isLastRootNode?"":this.newline},S}(x)}).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,A,v){"use strict";(function(){var h,g,o,s,d,u,e,a,r,c,f,l,x,E=function(S,m){function b(){this.constructor=S}for(var O in m)p.call(m,O)&&(S[O]=m[O]);return b.prototype=m.prototype,S.prototype=new b,S.__super__=m.prototype,S},p={}.hasOwnProperty;e=n("./XMLDeclaration"),a=n("./XMLDocType"),h=n("./XMLCData"),g=n("./XMLComment"),r=n("./XMLElement"),f=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),o=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),d=n("./XMLDTDEntity"),u=n("./XMLDTDNotation"),x=n("./XMLWriterBase"),A.exports=function(T){function S(m){S.__super__.constructor.call(this,m)}return E(S,T),S.prototype.document=function(m){var b,O,C,_,L;for(this.textispresent=!1,_="",L=m.children,O=0,C=L.length;O<C;O++)b=L[O],_+=function(){switch(!1){case!(b instanceof e):return this.declaration(b);case!(b instanceof a):return this.docType(b);case!(b instanceof g):return this.comment(b);case!(b instanceof c):return this.processingInstruction(b);default:return this.element(b,0)}}.call(this);return this.pretty&&_.slice(-this.newline.length)===this.newline&&(_=_.slice(0,-this.newline.length)),_},S.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},S.prototype.cdata=function(m,b){return this.space(b)+"<![CDATA["+m.text+"]]>"+this.newline},S.prototype.comment=function(m,b){return this.space(b)+"<!-- "+m.text+" -->"+this.newline},S.prototype.declaration=function(m,b){var O;return O=this.space(b),O+='<?xml version="'+m.version+'"',m.encoding!=null&&(O+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(O+=' standalone="'+m.standalone+'"'),O+=this.spacebeforeslash+"?>",O+=this.newline},S.prototype.docType=function(m,b){var O,C,_,L,D;if(b||(b=0),L=this.space(b),L+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?L+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(L+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(L+=" [",L+=this.newline,D=m.children,C=0,_=D.length;C<_;C++)O=D[C],L+=function(){switch(!1){case!(O instanceof o):return this.dtdAttList(O,b+1);case!(O instanceof s):return this.dtdElement(O,b+1);case!(O instanceof d):return this.dtdEntity(O,b+1);case!(O instanceof u):return this.dtdNotation(O,b+1);case!(O instanceof h):return this.cdata(O,b+1);case!(O instanceof g):return this.comment(O,b+1);case!(O instanceof c):return this.processingInstruction(O,b+1);default:throw new Error("Unknown DTD node type: "+O.constructor.name)}}.call(this);L+="]"}return L+=this.spacebeforeslash+">",L+=this.newline},S.prototype.element=function(m,b){var O,C,_,L,D,N,j,z,V,G,Z,F,ee;b||(b=0),ee=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F=this.space(b),z="",z+=F+"<"+m.name,V=m.attributes;for(j in V)p.call(V,j)&&(O=V[j],z+=this.attribute(O));if(m.children.length===0||m.children.every(function($){return $.value===""}))this.allowEmpty?z+="></"+m.name+">"+this.newline:z+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)z+=">",z+=m.children[0].value,z+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){for(G=m.children,_=0,D=G.length;_<D;_++)if(C=G[_],C.value!=null){this.textispresent++,ee=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,F=this.space(b)),z+=">"+this.newline,Z=m.children,L=0,N=Z.length;L<N;L++)C=Z[L],z+=function(){switch(!1){case!(C instanceof h):return this.cdata(C,b+1);case!(C instanceof g):return this.comment(C,b+1);case!(C instanceof r):return this.element(C,b+1);case!(C instanceof f):return this.raw(C,b+1);case!(C instanceof l):return this.text(C,b+1);case!(C instanceof c):return this.processingInstruction(C,b+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),z+=F+"</"+m.name+">"+this.newline}return z},S.prototype.processingInstruction=function(m,b){var O;return O=this.space(b)+"<?"+m.target,m.value&&(O+=" "+m.value),O+=this.spacebeforeslash+"?>"+this.newline},S.prototype.raw=function(m,b){return this.space(b)+m.value+this.newline},S.prototype.text=function(m,b){return this.space(b)+m.value+this.newline},S.prototype.dtdAttList=function(m,b){var O;return O=this.space(b)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(O+=" "+m.defaultValueType),m.defaultValue&&(O+=' "'+m.defaultValue+'"'),O+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdElement=function(m,b){return this.space(b)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},S.prototype.dtdEntity=function(m,b){var O;return O=this.space(b)+"<!ENTITY",m.pe&&(O+=" %"),O+=" "+m.name,m.value?O+=' "'+m.value+'"':(m.pubID&&m.sysID?O+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(O+=' SYSTEM "'+m.sysID+'"'),m.nData&&(O+=" NDATA "+m.nData)),O+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdNotation=function(m,b){var O;return O=this.space(b)+"<!NOTATION "+m.name,m.pubID&&m.sysID?O+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?O+=' PUBLIC "'+m.pubID+'"':m.sysID&&(O+=' SYSTEM "'+m.sysID+'"'),O+=this.spacebeforeslash+">"+this.newline},S.prototype.openNode=function(m,b){var O,C,_,L;if(b||(b=0),m instanceof r){_=this.space(b)+"<"+m.name,L=m.attributes;for(C in L)p.call(L,C)&&(O=L[C],_+=this.attribute(O));return _+=(m.children?">":"/>")+this.newline}return _=this.space(b)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID?_+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(_+=' SYSTEM "'+m.sysID+'"'),_+=(m.children?" [":">")+this.newline},S.prototype.closeNode=function(m,b){switch(b||(b=0),!1){case!(m instanceof r):return this.space(b)+"</"+m.name+">"+this.newline;case!(m instanceof a):return this.space(b)+"]>"+this.newline}},S}(x)}).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,A,v){"use strict";(function(){var h=function(s,d){return function(){return s.apply(d,arguments)}},g={}.hasOwnProperty;A.exports=function(){function o(s){this.assertLegalChar=h(this.assertLegalChar,this);var d,u,e;s||(s={}),this.noDoubleEncoding=s.noDoubleEncoding,u=s.stringify||{};for(d in u)g.call(u,d)&&(e=u[d],this[d]=e)}return o.prototype.eleName=function(s){return s=""+s||"",this.assertLegalChar(s)},o.prototype.eleText=function(s){return s=""+s||"",this.assertLegalChar(this.elEscape(s))},o.prototype.cdata=function(s){return s=""+s||"",s=s.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(s)},o.prototype.comment=function(s){if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)},o.prototype.raw=function(s){return""+s||""},o.prototype.attName=function(s){return s=""+s||""},o.prototype.attValue=function(s){return s=""+s||"",this.attEscape(s)},o.prototype.insTarget=function(s){return""+s||""},o.prototype.insValue=function(s){if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return s},o.prototype.xmlVersion=function(s){if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s},o.prototype.xmlEncoding=function(s){if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return s},o.prototype.xmlStandalone=function(s){return s?"yes":"no"},o.prototype.dtdPubID=function(s){return""+s||""},o.prototype.dtdSysID=function(s){return""+s||""},o.prototype.dtdElementValue=function(s){return""+s||""},o.prototype.dtdAttType=function(s){return""+s||""},o.prototype.dtdAttDefault=function(s){return s!=null?""+s||"":s},o.prototype.dtdEntityValue=function(s){return""+s||""},o.prototype.dtdNData=function(s){return""+s||""},o.prototype.convertAttKey="@",o.prototype.convertPIKey="?",o.prototype.convertTextKey="#text",o.prototype.convertCDataKey="#cdata",o.prototype.convertCommentKey="#comment",o.prototype.convertRawKey="#raw",o.prototype.assertLegalChar=function(s){var d;if(d=s.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+s+" at index "+d.index);return s},o.prototype.elEscape=function(s){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(d,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},o.prototype.attEscape=function(s){var d;return d=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(d,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},o}()}).call(void 0)},{}],233:[function(n,A,v){"use strict";var h=n("babel-runtime/core-js/object/create"),g=function(o){return o&&o.__esModule?o:{default:o}}(h);(function(){var o,s=function(e,a){function r(){this.constructor=e}for(var c in a)d.call(a,c)&&(e[c]=a[c]);return r.prototype=a.prototype,e.prototype=new r,e.__super__=a.prototype,e},d={}.hasOwnProperty;o=n("./XMLNode"),A.exports=function(u){function e(a,r){if(e.__super__.constructor.call(this,a),r==null)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return s(e,u),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.toString=function(a){return this.options.writer.set(a).text(this)},e}(o)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,A,v){"use strict";(function(){var h={}.hasOwnProperty;A.exports=function(){function g(o){var s,d,u,e,a,r,c,f,l;o||(o={}),this.pretty=o.pretty||!1,this.allowEmpty=(d=o.allowEmpty)!=null&&d,this.pretty?(this.indent=(u=o.indent)!=null?u:" ",this.newline=(e=o.newline)!=null?e:`
`,this.offset=(a=o.offset)!=null?a:0,this.dontprettytextnodes=(r=o.dontprettytextnodes)!=null?r:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=o.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=o.writer||{};for(s in f)h.call(f,s)&&(l=f[s],this[s]=l)}return g.prototype.set=function(o){var s,d,u;o||(o={}),"pretty"in o&&(this.pretty=o.pretty),"allowEmpty"in o&&(this.allowEmpty=o.allowEmpty),this.pretty?(this.indent="indent"in o?o.indent:" ",this.newline="newline"in o?o.newline:`
`,this.offset="offset"in o?o.offset:0,this.dontprettytextnodes="dontprettytextnodes"in o?o.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in o?o.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=o.writer||{};for(s in d)h.call(d,s)&&(u=d[s],this[s]=u);return this},g.prototype.space=function(o){var s;return this.pretty?(s=(o||0)+this.offset+1,s>0?new Array(s).join(this.indent):""):""},g}()}).call(void 0)},{}],235:[function(n,A,v){"use strict";(function(){var h,g,o,s,d,u,e;e=n("./Utility"),d=e.assign,u=e.isFunction,h=n("./XMLDocument"),g=n("./XMLDocumentCB"),s=n("./XMLStringWriter"),o=n("./XMLStreamWriter"),A.exports.create=function(a,r,c,f){var l,x;if(a==null)throw new Error("Root element needs a name");return f=d({},r,c,f),l=new h(f),x=l.element(a),f.headless||(l.declaration(f),f.pubID==null&&f.sysID==null||l.doctype(f)),x},A.exports.begin=function(a,r,c){var f;return u(a)&&(f=[a,r],r=f[0],c=f[1],a={}),r?new g(a,r,c):new h(a)},A.exports.stringWriter=function(a){return new s(a)},A.exports.streamWriter=function(a,r){return new o(a,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,A,v){function h(){for(var o={},s=0;s<arguments.length;s++){var d=arguments[s];for(var u in d)g.call(d,u)&&(o[u]=d[u])}return o}A.exports=h;var g=Object.prototype.hasOwnProperty},{}],237:[function(n,A,v){"use strict";function h(f,l,x){s.isBuffer(l)||(l=new s(l)),s.isBuffer(x)||(x=new s(x)),l.length>r?l=f(l):l.length<r&&(l=s.concat([l,c],r));for(var E=new s(r),p=new s(r),T=0;T<r;T++)E[T]=54^l[T],p[T]=92^l[T];var S=f(s.concat([E,x]));return f(s.concat([p,S]))}function g(f,l){f=f||"sha1";var x=a[f],E=[],p=0;return x||o("algorithm:",f,"is not yet supported"),{update:function(S){return s.isBuffer(S)||(S=new s(S)),E.push(S),p+=S.length,this},digest:function(S){var m=s.concat(E),b=l?h(x,l,m):x(m);return E=null,S?b.toString(S):b}}}function o(){var f=[].slice.call(arguments).join(" ");throw new Error([f,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}var s=n("buffer").Buffer,d=n("./sha"),u=n("./sha256"),e=n("./md5"),a={sha1:d,sha256:u,md5:e},r=64,c=new s(r);c.fill(0),v.createHash=function(f){return g(f)},v.createHmac=function(f,l){return g(f,l)},function(f,l){for(var x in f)l(f[x],x)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(f){v[f]=function(){o("sorry,",f,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,A,v){"use strict";function h(a,r){if(a.length%d!=0){var c=a.length+(d-a.length%d);a=s.concat([a,u],c)}for(var f=[],l=r?a.readInt32BE:a.readInt32LE,x=0;x<a.length;x+=d)f.push(l.call(a,x));return f}function g(a,r,c){for(var f=new s(r),l=c?f.writeInt32BE:f.writeInt32LE,x=0;x<a.length;x++)l.call(f,a[x],4*x,!0);return f}function o(a,r,c,f){return s.isBuffer(a)||(a=new s(a)),g(r(h(a,f),a.length*e),c,f)}var s=n("buffer").Buffer,d=4,u=new s(d);u.fill(0);var e=8;A.exports={hash:o}},{buffer:38}],239:[function(n,A,v){"use strict";function h(c,f){c[f>>5]|=128<<f%32,c[14+(f+64>>>9<<4)]=f;for(var l=1732584193,x=-271733879,E=-1732584194,p=271733878,T=0;T<c.length;T+=16){var S=l,m=x,b=E,O=p;l=o(l,x,E,p,c[T+0],7,-680876936),p=o(p,l,x,E,c[T+1],12,-389564586),E=o(E,p,l,x,c[T+2],17,606105819),x=o(x,E,p,l,c[T+3],22,-1044525330),l=o(l,x,E,p,c[T+4],7,-176418897),p=o(p,l,x,E,c[T+5],12,1200080426),E=o(E,p,l,x,c[T+6],17,-1473231341),x=o(x,E,p,l,c[T+7],22,-45705983),l=o(l,x,E,p,c[T+8],7,1770035416),p=o(p,l,x,E,c[T+9],12,-1958414417),E=o(E,p,l,x,c[T+10],17,-42063),x=o(x,E,p,l,c[T+11],22,-1990404162),l=o(l,x,E,p,c[T+12],7,1804603682),p=o(p,l,x,E,c[T+13],12,-40341101),E=o(E,p,l,x,c[T+14],17,-1502002290),x=o(x,E,p,l,c[T+15],22,1236535329),l=s(l,x,E,p,c[T+1],5,-165796510),p=s(p,l,x,E,c[T+6],9,-1069501632),E=s(E,p,l,x,c[T+11],14,643717713),x=s(x,E,p,l,c[T+0],20,-373897302),l=s(l,x,E,p,c[T+5],5,-701558691),p=s(p,l,x,E,c[T+10],9,38016083),E=s(E,p,l,x,c[T+15],14,-660478335),x=s(x,E,p,l,c[T+4],20,-405537848),l=s(l,x,E,p,c[T+9],5,568446438),p=s(p,l,x,E,c[T+14],9,-1019803690),E=s(E,p,l,x,c[T+3],14,-187363961),x=s(x,E,p,l,c[T+8],20,1163531501),l=s(l,x,E,p,c[T+13],5,-1444681467),p=s(p,l,x,E,c[T+2],9,-51403784),E=s(E,p,l,x,c[T+7],14,1735328473),x=s(x,E,p,l,c[T+12],20,-1926607734),l=d(l,x,E,p,c[T+5],4,-378558),p=d(p,l,x,E,c[T+8],11,-2022574463),E=d(E,p,l,x,c[T+11],16,1839030562),x=d(x,E,p,l,c[T+14],23,-35309556),l=d(l,x,E,p,c[T+1],4,-1530992060),p=d(p,l,x,E,c[T+4],11,1272893353),E=d(E,p,l,x,c[T+7],16,-155497632),x=d(x,E,p,l,c[T+10],23,-1094730640),l=d(l,x,E,p,c[T+13],4,681279174),p=d(p,l,x,E,c[T+0],11,-358537222),E=d(E,p,l,x,c[T+3],16,-722521979),x=d(x,E,p,l,c[T+6],23,76029189),l=d(l,x,E,p,c[T+9],4,-640364487),p=d(p,l,x,E,c[T+12],11,-421815835),E=d(E,p,l,x,c[T+15],16,530742520),x=d(x,E,p,l,c[T+2],23,-995338651),l=u(l,x,E,p,c[T+0],6,-198630844),p=u(p,l,x,E,c[T+7],10,1126891415),E=u(E,p,l,x,c[T+14],15,-1416354905),x=u(x,E,p,l,c[T+5],21,-57434055),l=u(l,x,E,p,c[T+12],6,1700485571),p=u(p,l,x,E,c[T+3],10,-1894986606),E=u(E,p,l,x,c[T+10],15,-1051523),x=u(x,E,p,l,c[T+1],21,-2054922799),l=u(l,x,E,p,c[T+8],6,1873313359),p=u(p,l,x,E,c[T+15],10,-30611744),E=u(E,p,l,x,c[T+6],15,-1560198380),x=u(x,E,p,l,c[T+13],21,1309151649),l=u(l,x,E,p,c[T+4],6,-145523070),p=u(p,l,x,E,c[T+11],10,-1120210379),E=u(E,p,l,x,c[T+2],15,718787259),x=u(x,E,p,l,c[T+9],21,-343485551),l=e(l,S),x=e(x,m),E=e(E,b),p=e(p,O)}return Array(l,x,E,p)}function g(c,f,l,x,E,p){return e(a(e(e(f,c),e(x,p)),E),l)}function o(c,f,l,x,E,p,T){return g(f&l|~f&x,c,f,E,p,T)}function s(c,f,l,x,E,p,T){return g(f&x|l&~x,c,f,E,p,T)}function d(c,f,l,x,E,p,T){return g(f^l^x,c,f,E,p,T)}function u(c,f,l,x,E,p,T){return g(l^(f|~x),c,f,E,p,T)}function e(c,f){var l=(65535&c)+(65535&f);return(c>>16)+(f>>16)+(l>>16)<<16|65535&l}function a(c,f){return c<<f|c>>>32-f}var r=n("./helpers");A.exports=function(c){return r.hash(c,h,16)}},{"./helpers":238}],240:[function(n,A,v){"use strict";function h(e,a){e[a>>5]|=128<<24-a%32,e[15+(a+64>>9<<4)]=a;for(var r=Array(80),c=1732584193,f=-271733879,l=-1732584194,x=271733878,E=-1009589776,p=0;p<e.length;p+=16){for(var T=c,S=f,m=l,b=x,O=E,C=0;C<80;C++){r[C]=C<16?e[p+C]:d(r[C-3]^r[C-8]^r[C-14]^r[C-16],1);var _=s(s(d(c,5),g(C,f,l,x)),s(s(E,r[C]),o(C)));E=x,x=l,l=d(f,30),f=c,c=_}c=s(c,T),f=s(f,S),l=s(l,m),x=s(x,b),E=s(E,O)}return Array(c,f,l,x,E)}function g(e,a,r,c){return e<20?a&r|~a&c:e<40?a^r^c:e<60?a&r|a&c|r&c:a^r^c}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function s(e,a){var r=(65535&e)+(65535&a);return(e>>16)+(a>>16)+(r>>16)<<16|65535&r}function d(e,a){return e<<a|e>>>32-a}var u=n("./helpers");A.exports=function(e){return u.hash(e,h,20,!0)}},{"./helpers":238}],241:[function(n,A,v){"use strict";var h=n("./helpers"),g=function(x,E){var p=(65535&x)+(65535&E);return(x>>16)+(E>>16)+(p>>16)<<16|65535&p},o=function(x,E){return x>>>E|x<<32-E},s=function(x,E){return x>>>E},d=function(x,E,p){return x&E^~x&p},u=function(x,E,p){return x&E^x&p^E&p},e=function(x){return o(x,2)^o(x,13)^o(x,22)},a=function(x){return o(x,6)^o(x,11)^o(x,25)},r=function(x){return o(x,7)^o(x,18)^s(x,3)},c=function(x){return o(x,17)^o(x,19)^s(x,10)},f=function(x,E){var p,T,S,m,b,O,C,_,L,D,N,j,z=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),V=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),G=new Array(64);x[E>>5]|=128<<24-E%32,x[15+(E+64>>9<<4)]=E;for(var L=0;L<x.length;L+=16){p=V[0],T=V[1],S=V[2],m=V[3],b=V[4],O=V[5],C=V[6],_=V[7];for(var D=0;D<64;D++)G[D]=D<16?x[D+L]:g(g(g(c(G[D-2]),G[D-7]),r(G[D-15])),G[D-16]),N=g(g(g(g(_,a(b)),d(b,O,C)),z[D]),G[D]),j=g(e(p),u(p,T,S)),_=C,C=O,O=b,b=g(m,N),m=S,S=T,T=p,p=g(N,j);V[0]=g(p,V[0]),V[1]=g(T,V[1]),V[2]=g(S,V[2]),V[3]=g(m,V[3]),V[4]=g(b,V[4]),V[5]=g(O,V[5]),V[6]=g(C,V[6]),V[7]=g(_,V[7])}return V};A.exports=function(l){return h.hash(l,f,32,!0)}},{"./helpers":238}],242:[function(n,A,v){(function(h){"use strict";function g(f){return f&&f.__esModule?f:{default:f}}var o=n("babel-runtime/core-js/object/create"),s=g(o),d=n("babel-runtime/helpers/classCallCheck"),u=g(d),e=n("babel-runtime/helpers/createClass"),a=g(e),r=n("babel-runtime/helpers/typeof"),c=g(r);!function(f){if((v===void 0?"undefined":(0,c.default)(v))==="object"&&A!==void 0)A.exports=f();else if(typeof he=="function"&&he.amd)he([],f);else{var l;l=typeof window!="undefined"?window:h!==void 0?h:typeof self!="undefined"?self:this,l.mime=f()}}(function(){return function f(l,x,E){function p(m,b){if(!x[m]){if(!l[m]){var O=typeof n=="function"&&n;if(!b&&O)return O(m,!0);if(T)return T(m,!0);var C=new Error("Cannot find module '"+m+"'");throw C.code="MODULE_NOT_FOUND",C}var _=x[m]={exports:{}};l[m][0].call(_.exports,function(L){var D=l[m][1][L];return p(D||L)},_,_.exports,f,l,x,E)}return x[m].exports}for(var T=typeof n=="function"&&n,S=0;S<E.length;S++)p(E[S]);return p}({1:[function(f,l,x){var E=function(){function p(){(0,u.default)(this,p),this._types=(0,s.default)(null),this._extensions=(0,s.default)(null);for(var T=0;T<arguments.length;T++)this.define(arguments[T])}return(0,a.default)(p,[{key:"define",value:function(S,m){for(var b in S){for(var O=S[b],C=0;C<O.length;C++){var _=O[C];if(!m&&_ in this._types)throw new Error('Attempt to change mapping for "'+_+'" extension from "'+this._types[_]+'" to "'+b+'". Pass `force=true` to allow this, otherwise remove "'+_+'" from the list of extensions for "'+b+'".');this._types[_]=b}!m&&this._extensions[b]||(this._extensions[b]=O[0])}}},{key:"getType",value:function(S){S=String(S);var m=S.replace(/^.*[\/\\]/,"").toLowerCase(),b=m.replace(/^.*\./,"").toLowerCase(),O=m.length<S.length;return(b.length<m.length-1||!O)&&this._types[b]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),p}();l.exports=E},{}],2:[function(f,l,x){var E=f("./Mime");l.exports=new E(f("./types/standard"),f("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(f,l,x){l.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(f,l,x){l.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 ke!="undefined"?ke: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,A,v){"use strict";v.encodeURIComponent=function(h){try{return encodeURIComponent(h)}catch(g){return h}},v.escape=n("escape-html"),v.timestamp=function(h){if(h){var g=h;return typeof g=="string"&&(g=Number(g)),String(h).length===10&&(g*=1e3),new Date(g)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,A,v){(function(h,g){"use strict";function o(C){return C&&C.__esModule?C:{default:C}}function s(C,_){return C===void 0?_:C}function d(C,_){return function(L,D,N){if(L)return _(L);C({data:D,status:N.statusCode,headers:N.headers,res:N})}}var u,e=n("babel-runtime/core-js/json/stringify"),a=o(e),r=n("babel-runtime/helpers/typeof"),c=o(r),f=n("util"),l=n("url"),x=n("http"),E=n("https"),p=n("debug")("urllib"),T=n("humanize-ms"),S=0,m=Math.pow(2,31)-10,b=/^https?:\/\//i;v.TIMEOUTS=[T("300s"),T("300s")];var O=["json","text"];v.request=function(C,_,L){return arguments.length===2&&typeof _=="function"&&(L=_,_=null),typeof L=="function"?v.requestWithCallback(C,_,L):(u||(u=n("any-promise")),new u(function(D,N){v.requestWithCallback(C,_,d(D,N))}))},v.requestWithCallback=function(C,_,L){function D(){de&&(clearTimeout(de),de=null)}function N(){k&&(clearTimeout(k),k=null)}function j(se,xe,je){if(N(),!L)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),$,h.pid,ne.method,C),void(se&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),$,h.pid,se.name,se.message,se.stack));var Ee=L;L=null;var Re={};if(je&&(w=je.statusCode,Re=je.headers),w===401&&Re["www-authenticate"]&&(!_.headers||!_.headers.Authorization)&&_.digestAuth){var Ne=Re["www-authenticate"];if(Ne.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",$,C,Ne),_.headers=_.headers||{},_.headers.Authorization=digestAuthHeader(ne.method,ne.path,Ne,_.digestAuth),p("Request#%d %s: auth with digest header: %s",$,C,_.headers.Authorization),je.headers["set-cookie"]&&(_.headers.Cookie=je.headers["set-cookie"].join(";")),v.requestWithCallback(C,_,Ee)}var We=Date.now()-I;fe&&(fe.contentDownload=We),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",We,y,w,ne.method,ne.host,ne.path,P,fe);var Ke={status:w,statusCode:w,headers:Re,size:y,aborted:X,rt:We,keepAliveSocket:P,data:xe,requestUrls:_.requestUrls,timing:fe,remoteAddress:K,remotePort:me};if(se){var Xe="";Y&&typeof Y.getCurrentStatus=="function"&&(Xe=", agent status: "+(0,a.default)(Y.getCurrentStatus())),se.message+=", "+ne.method+" "+C+" "+w+" (connected: "+i+", keepalive socket: "+P+Xe+`)
headers: `+(0,a.default)(Re),se.data=xe,se.path=ne.path,se.status=w,se.headers=Re,se.res=Ke}Ee(se,xe,_.streaming?je:Ke),_.emitter&&(W.url=C,W.socket=ye&&ye.connection,W.options=ne,W.size=re,_.emitter.emit("response",{requestId:$,error:se,ctx:_.ctx,req:W,res:Ke}))}function z(se){var xe=null;if(_.followRedirect&&statuses.redirect[se.statusCode]){_._followRedirectCount=(_._followRedirectCount||0)+1;var je=se.headers.location;if(je){if(!(_._followRedirectCount>_.maxRedirects)){var Ee=_.formatRedirectUrl?_.formatRedirectUrl(C,je):l.resolve(C,je);p("Request#%d %s: `redirected` from %s to %s",$,ne.path,C,Ee),N(),_.headers&&_.headers.Host&&b.test(je)&&(_.headers.Host=null);var Re=L;return L=null,v.requestWithCallback(Ee,_,Re),{redirect:!0,error:null}}xe=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),xe.name="MaxRedirectError"}else xe=new Error("Got statusCode "+se.statusCode+" but cannot resolve next location from headers"),xe.name="FollowRedirectError"}return{redirect:!1,error:xe}}function V(se,xe,je){return je(null,xe,se.headers["content-encoding"])}function G(se){if(fe&&(fe.waiting=Date.now()-I),p("Request#%d %s `req response` event emit: status %d, headers: %j",$,C,se.statusCode,se.headers),_.streaming){var xe=z(se);return xe.redirect?void se.resume():xe.error?(se.resume(),j(xe.error,null,se)):j(null,null,se)}if(se.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",$,C,y)}),se.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",$,C,y)}),se.on("aborted",function(){X=!0,p("Request#%d %s: `res aborted` event emit, total size %d",$,C,y)}),le){var xe=z(se);return xe.redirect?void se.resume():xe.error?(se.resume(),le.end(),j(xe.error,null,se)):(_.consumeWriteStream===!1?se.on("end",j.bind(null,null,null,se)):isNode010||isNode012?first([[le,"close"],[se,"aborted"]],function(Re,Ne,We){p("Request#%d %s: writeStream or res %s event emitted",$,C,We),j(t||null,null,se)}):le.on("close",function(){p("Request#%d %s: writeStream close event emitted",$,C),j(t||null,null,se)}),se.pipe(le))}var je=[];se.on("data",function(Ee){p("Request#%d %s: `res data` event emit, size %d",$,C,Ee.length),y+=Ee.length,je.push(Ee)}),se.on("end",function(){var Ee=g.concat(je,y);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",$,C,y,se._dumped),t)return j(t,Ee,se);var Re=z(se);if(Re.error)return j(Re.error,Ee,se);Re.redirect||V(se,Ee,function(Ne,We,Ke){if(Ne)return j(Ne,Ee,se);if(!Ke&&O.indexOf(_.dataType)>=0){try{We=decodeBodyByCharset(We,se)}catch($e){return p("decodeBodyByCharset error: %s",$e),j(null,We,se)}if(_.dataType==="json")if(y===0)We=null;else{var Xe=parseJSON(We,oe);Xe.error?Ne=Xe.error:We=Xe.data}}X&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",$,C),j(Ne,We,se)})})}function Z(){p("Response timer ticking, timeout: %d",ge),k=setTimeout(function(){k=null;var se="Response timeout for "+ge+"ms";t=new Error(se),t.name="ResponseTimeoutError",t.requestId=$,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,se,i),F()},ge)}function F(){p("Request#%d %s abort, connected: %s",$,C,i),ye.socket||(t.noSocket=!0,j(t)),ye.abort()}if(!C||typeof C!="string"&&(C===void 0?"undefined":(0,c.default)(C))!=="object"){var ee=f.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 _=="function"&&(L=_,_=null),_=_||{},S>=m&&(S=0);var $=++S;_.requestUrls=_.requestUrls||[];var W={requestId:$,url:C,args:_,ctx:_.ctx};_.emitter&&_.emitter.emit("request",W),_.timeout=_.timeout||v.TIMEOUTS,_.maxRedirects=_.maxRedirects||10,_.streaming=_.streaming||_.customResponse;var R,I=Date.now();typeof C=="string"?(b.test(C)||(C="http://"+C),R=l.parse(C)):R=C;var U=(_.type||_.method||R.method||"GET").toUpperCase(),M=R.port||80,H=x,Y=s(_.agent,v.agent),oe=_.fixJSONCtlChars;R.protocol==="https:"&&(H=E,Y=s(_.httpsAgent,v.httpsAgent),R.port||(M=443));var ne={host:R.hostname||R.host||"localhost",path:R.path||"/",method:U,port:M,agent:Y,headers:_.headers||{},lookup:_.lookup};Array.isArray(_.timeout)?ne.requestTimeout=_.timeout[_.timeout.length-1]:_.timeout!==void 0&&(ne.requestTimeout=_.timeout);for(var ue=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],pe=0;pe<ue.length;pe++){var Q=ue[pe];_.hasOwnProperty(Q)&&(ne[Q]=_[Q])}ne.rejectUnauthorized!==!1||ne.hasOwnProperty("secureOptions")||(ne.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var J=_.auth||R.auth;J&&(ne.auth=J);var ie=_.content||_.data,q=U==="GET"||U==="HEAD"||_.dataAsQueryString;if(!_.content&&ie&&typeof ie!="string"&&!g.isBuffer(ie))if(q)ie=_.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie);else{var B=ne.headers["Content-Type"]||ne.headers["content-type"];B||(B=_.contentType==="json"?"application/json":"application/x-www-form-urlencoded",ne.headers["Content-Type"]=B),ie=parseContentType(B).type==="application/json"?(0,a.default)(ie):_.nestedQuerystring?qs.stringify(ie):querystring.stringify(ie)}q&&ie&&(ne.path+=(R.query?"&":"?")+ie,ie=null);var re=0;if(ie){var te=ie.length;g.isBuffer(ie)||(te=g.byteLength(ie)),re=ne.headers["Content-Length"]=te}_.dataType==="json"&&(ne.headers.Accept="application/json"),typeof _.beforeRequest=="function"&&_.beforeRequest(ne);var de=null,k=null,t=null,i=!1,P=!1,y=0,w=-1,X=!1,K="",me="",fe=null;_.timing&&(fe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),ne.headers["User-Agent"]||ne.headers["user-agent"]||(ne.headers["User-Agent"]=navigator.userAgent),_.gzip&&(ne.headers["Accept-Encoding"]||ne.headers["accept-encoding"]||(ne.headers["Accept-Encoding"]="gzip"));var le=_.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",$,U,C,ne.headers,ne.path),_.requestUrls.push(C);var ce,ge;Array.isArray(_.timeout)?(ce=T(_.timeout[0]),ge=T(_.timeout[1])):ce=ge=T(_.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",ce,ge);var ye;try{ye=H.request(ne,G)}catch(se){return j(se)}return typeof window=="undefined"?function(){p("Connect timer ticking, timeout: %d",ce),de=setTimeout(function(){de=null,w===-1&&(w=-2);var se="Connect timeout for "+ce+"ms",xe="ConnectionTimeoutError";ye.socket||(xe="SocketAssignTimeoutError",se+=", working sockets is full"),t=new Error(se),t.name=xe,t.requestId=$,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",$,C,t.name,se,i),F()},ce)}():ye.on("requestTimeout",function(){w===-1&&(w=-2);var se="Connect timeout for "+ce+"ms";t=new Error(se),t.name="ConnectionTimeoutError",t.requestId=$,F()}),fe&&ye.on("finish",function(){fe.requestSent=Date.now()-I}),ye.once("socket",function(se){fe&&(fe.queuing=Date.now()-I),isNode010&&se.socket&&(se=se.socket);var xe=se.readyState;if(xe==="opening")return se.once("lookup",function(je,Ee,Re){p("Request#%d %s lookup: %s, %s, %s",$,C,je,Ee,Re),fe&&(fe.dnslookup=Date.now()-I),Ee&&(K=Ee)}),void se.once("connect",function(){fe&&(fe.connected=Date.now()-I),D(),Z(),p("Request#%d %s new socket connected",$,C),i=!0,K||(K=se.remoteAddress),me=se.remotePort});p("Request#%d %s reuse socket connected, readyState: %s",$,C,xe),i=!0,P=!0,K||(K=se.remoteAddress),me=se.remotePort,D(),Z()}),ye.on("error",function(se){se.name!=="Error"&&se.name!=="TypeError"||(se.name=i?"ResponseError":"RequestError"),se.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",$,C,se.name,se.message),j(t||se)}),le&&le.once("error",function(se){se.message+=' (writeStream "error")',t=se,p("Request#%d %s `writeStream error` event emit, %s: %s",$,C,se.name,se.message),F()}),_.stream?(_.stream.pipe(ye),_.stream.once("error",function(se){se.message+=' (stream "error")',t=se,p("Request#%d %s `readStream error` event emit, %s: %s",$,C,se.name,se.message),F()})):ye.end(ie),ye.requestId=$,ye}}).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(he){function n(v){if(A[v])return A[v].exports;var h=A[v]={i:v,l:!1,exports:{}};return he[v].call(h.exports,h,h.exports,n),h.l=!0,h.exports}var A={};n.m=he,n.c=A,n.d=function(v,h,g){n.o(v,h)||Object.defineProperty(v,h,{configurable:!1,enumerable:!0,get:g})},n.n=function(v){var h=v&&v.__esModule?function(){return v.default}:function(){return v};return n.d(h,"a",h),h},n.o=function(v,h){return Object.prototype.hasOwnProperty.call(v,h)},n.p="",n(n.s=12)}([function(he,n,A){!function(v,h){he.exports=n=h()}(0,function(){var v=v||function(h,g){var o=Object.create||function(){function E(){}return function(p){var T;return E.prototype=p,T=new E,E.prototype=null,T}}(),s={},d=s.lib={},u=d.Base=function(){return{extend:function(p){var T=o(this);return p&&T.mixIn(p),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 p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var T in p)p.hasOwnProperty(T)&&(this[T]=p[T]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=d.WordArray=u.extend({init:function(p,T){p=this.words=p||[],this.sigBytes=T!=null?T:4*p.length},toString:function(p){return(p||r).stringify(this)},concat:function(p){var T=this.words,S=p.words,m=this.sigBytes,b=p.sigBytes;if(this.clamp(),m%4)for(var O=0;O<b;O++){var C=S[O>>>2]>>>24-O%4*8&255;T[m+O>>>2]|=C<<24-(m+O)%4*8}else for(var O=0;O<b;O+=4)T[m+O>>>2]=S[O>>>2];return this.sigBytes+=b,this},clamp:function(){var p=this.words,T=this.sigBytes;p[T>>>2]&=4294967295<<32-T%4*8,p.length=h.ceil(T/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var T,S=[],m=0;m<p;m+=4){var b=function(O){var O=O,C=987654321,_=4294967295;return function(){C=36969*(65535&C)+(C>>16)&_,O=18e3*(65535&O)+(O>>16)&_;var L=(C<<16)+O&_;return L/=4294967296,(L+=.5)*(h.random()>.5?1:-1)}}(4294967296*(T||h.random()));T=987654071*b(),S.push(4294967296*b()|0)}return new e.init(S,p)}}),a=s.enc={},r=a.Hex={stringify:function(p){for(var T=p.words,S=p.sigBytes,m=[],b=0;b<S;b++){var O=T[b>>>2]>>>24-b%4*8&255;m.push((O>>>4).toString(16)),m.push((15&O).toString(16))}return m.join("")},parse:function(p){for(var T=p.length,S=[],m=0;m<T;m+=2)S[m>>>3]|=parseInt(p.substr(m,2),16)<<24-m%8*4;return new e.init(S,T/2)}},c=a.Latin1={stringify:function(p){for(var T=p.words,S=p.sigBytes,m=[],b=0;b<S;b++){var O=T[b>>>2]>>>24-b%4*8&255;m.push(String.fromCharCode(O))}return m.join("")},parse:function(p){for(var T=p.length,S=[],m=0;m<T;m++)S[m>>>2]|=(255&p.charCodeAt(m))<<24-m%4*8;return new e.init(S,T)}},f=a.Utf8={stringify:function(p){try{return decodeURIComponent(escape(c.stringify(p)))}catch(T){throw new Error("Malformed UTF-8 data")}},parse:function(p){return c.parse(unescape(encodeURIComponent(p)))}},l=d.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=f.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var T=this._data,S=T.words,m=T.sigBytes,b=this.blockSize,O=4*b,C=m/O;C=p?h.ceil(C):h.max((0|C)-this._minBufferSize,0);var _=C*b,L=h.min(4*_,m);if(_){for(var D=0;D<_;D+=b)this._doProcessBlock(S,D);var N=S.splice(0,_);T.sigBytes-=L}return new e.init(N,L)},clone:function(){var p=u.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),x=(d.Hasher=l.extend({cfg:u.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){return p&&this._append(p),this._doFinalize()},blockSize:16,_createHelper:function(p){return function(T,S){return new p.init(S).finalize(T)}},_createHmacHelper:function(p){return function(T,S){return new x.HMAC.init(p,S).finalize(T)}}}),s.algo={});return s}(Math);return v})},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"detectIEVersion",value:function(){for(var d=4,u=document.createElement("div"),e=u.getElementsByTagName("i");u.innerHTML="<!--[if gt IE "+d+"]><i></i><![endif]-->",e[0];)d++;return d>4&&d}},{key:"extend",value:function(d,u){for(var e in u)Object.prototype.hasOwnProperty.call(u,e)&&u[e]&&(d[e]=u[e])}},{key:"isArray",value:function(d){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(d){return d=d.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(d)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(d)?"audio":/.bmp|.jpg|.jpeg|.png/.test(d)?"img":"other"}},{key:"isImage",value:function(d){return d=d.toLowerCase(),!!/.jpg|.jpeg|.png/.test(d)}},{key:"ISODateString",value:function(d){function u(e){return e<10?"0"+e:e}return d.getUTCFullYear()+"-"+u(d.getUTCMonth()+1)+"-"+u(d.getUTCDate())+"T"+u(d.getUTCHours())+":"+u(d.getUTCMinutes())+":"+u(d.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(d){return!!/^\d+$/.test(d)}}]),o}();n.default=g},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return function(h){function g(x,E,p,T,S,m,b){var O=x+(E&p|~E&T)+S+b;return(O<<m|O>>>32-m)+E}function o(x,E,p,T,S,m,b){var O=x+(E&T|p&~T)+S+b;return(O<<m|O>>>32-m)+E}function s(x,E,p,T,S,m,b){var O=x+(E^p^T)+S+b;return(O<<m|O>>>32-m)+E}function d(x,E,p,T,S,m,b){var O=x+(p^(E|~T))+S+b;return(O<<m|O>>>32-m)+E}var u=v,e=u.lib,a=e.WordArray,r=e.Hasher,c=u.algo,f=[];!function(){for(var x=0;x<64;x++)f[x]=4294967296*h.abs(h.sin(x+1))|0}();var l=c.MD5=r.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,p){for(var T=0;T<16;T++){var S=p+T,m=E[S];E[S]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8)}var b=this._hash.words,O=E[p+0],C=E[p+1],_=E[p+2],L=E[p+3],D=E[p+4],N=E[p+5],j=E[p+6],z=E[p+7],V=E[p+8],G=E[p+9],Z=E[p+10],F=E[p+11],ee=E[p+12],$=E[p+13],W=E[p+14],R=E[p+15],I=b[0],U=b[1],M=b[2],H=b[3];I=g(I,U,M,H,O,7,f[0]),H=g(H,I,U,M,C,12,f[1]),M=g(M,H,I,U,_,17,f[2]),U=g(U,M,H,I,L,22,f[3]),I=g(I,U,M,H,D,7,f[4]),H=g(H,I,U,M,N,12,f[5]),M=g(M,H,I,U,j,17,f[6]),U=g(U,M,H,I,z,22,f[7]),I=g(I,U,M,H,V,7,f[8]),H=g(H,I,U,M,G,12,f[9]),M=g(M,H,I,U,Z,17,f[10]),U=g(U,M,H,I,F,22,f[11]),I=g(I,U,M,H,ee,7,f[12]),H=g(H,I,U,M,$,12,f[13]),M=g(M,H,I,U,W,17,f[14]),U=g(U,M,H,I,R,22,f[15]),I=o(I,U,M,H,C,5,f[16]),H=o(H,I,U,M,j,9,f[17]),M=o(M,H,I,U,F,14,f[18]),U=o(U,M,H,I,O,20,f[19]),I=o(I,U,M,H,N,5,f[20]),H=o(H,I,U,M,Z,9,f[21]),M=o(M,H,I,U,R,14,f[22]),U=o(U,M,H,I,D,20,f[23]),I=o(I,U,M,H,G,5,f[24]),H=o(H,I,U,M,W,9,f[25]),M=o(M,H,I,U,L,14,f[26]),U=o(U,M,H,I,V,20,f[27]),I=o(I,U,M,H,$,5,f[28]),H=o(H,I,U,M,_,9,f[29]),M=o(M,H,I,U,z,14,f[30]),U=o(U,M,H,I,ee,20,f[31]),I=s(I,U,M,H,N,4,f[32]),H=s(H,I,U,M,V,11,f[33]),M=s(M,H,I,U,F,16,f[34]),U=s(U,M,H,I,W,23,f[35]),I=s(I,U,M,H,C,4,f[36]),H=s(H,I,U,M,D,11,f[37]),M=s(M,H,I,U,z,16,f[38]),U=s(U,M,H,I,Z,23,f[39]),I=s(I,U,M,H,$,4,f[40]),H=s(H,I,U,M,O,11,f[41]),M=s(M,H,I,U,L,16,f[42]),U=s(U,M,H,I,j,23,f[43]),I=s(I,U,M,H,G,4,f[44]),H=s(H,I,U,M,ee,11,f[45]),M=s(M,H,I,U,R,16,f[46]),U=s(U,M,H,I,_,23,f[47]),I=d(I,U,M,H,O,6,f[48]),H=d(H,I,U,M,z,10,f[49]),M=d(M,H,I,U,W,15,f[50]),U=d(U,M,H,I,N,21,f[51]),I=d(I,U,M,H,ee,6,f[52]),H=d(H,I,U,M,L,10,f[53]),M=d(M,H,I,U,Z,15,f[54]),U=d(U,M,H,I,C,21,f[55]),I=d(I,U,M,H,V,6,f[56]),H=d(H,I,U,M,R,10,f[57]),M=d(M,H,I,U,j,15,f[58]),U=d(U,M,H,I,$,21,f[59]),I=d(I,U,M,H,D,6,f[60]),H=d(H,I,U,M,F,10,f[61]),M=d(M,H,I,U,_,15,f[62]),U=d(U,M,H,I,G,21,f[63]),b[0]=b[0]+I|0,b[1]=b[1]+U|0,b[2]=b[2]+M|0,b[3]=b[3]+H|0},_doFinalize:function(){var E=this._data,p=E.words,T=8*this._nDataBytes,S=8*E.sigBytes;p[S>>>5]|=128<<24-S%32;var m=h.floor(T/4294967296),b=T;p[15+(S+64>>>9<<4)]=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),p[14+(S+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),E.sigBytes=4*(p.length+1),this._process();for(var O=this._hash,C=O.words,_=0;_<4;_++){var L=C[_];C[_]=16711935&(L<<8|L>>>24)|4278255360&(L<<24|L>>>8)}return O},clone:function(){var E=r.clone.call(this);return E._hash=this._hash.clone(),E}});u.MD5=r._createHelper(l),u.HmacMD5=r._createHmacHelper(l)}(Math),v.MD5})},function(he,n,A){"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(he,n,A){"use strict";function v(l){return l&&l.__esModule?l:{default:l}}function h(l,x){if(!(l instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function l(x,E){for(var p=0;p<E.length;p++){var T=E[p];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(x,T.key,T)}}return function(x,E,p){return E&&l(x.prototype,E),p&&l(x,p),x}}(),o=A(5),s=v(o),d=A(25),u=v(d),e=A(6),a=v(e),r=A(7),c=v(r),f=function(){function l(x){h(this,l);var E=c.default.os.name,p=c.default.os.version||"",T=c.default.browser.name,S=c.default.browser.version||"",m=window.location.href,b="";m&&(b=c.default.getHost(m));var O="pc";c.default.os.ipad?O="pad":(c.default.os.iphone||c.default.os.android)&&(O="phone"),this._ri=s.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:a.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:l.getUuid(),os:E,ov:p,et:T,ev:S,uat:navigator.userAgent,app_n:b,tt:O,dm:"h5",ut:""}}return g(l,[{key:"log",value:function(E,p){p&&p.ri?(this._ri=p.ri,delete p.ri):this._ri=s.default.create(),p&&p.ut&&(this.initParam.ut=p.ut,delete p.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(p)for(var S in p)T.push(S+"="+p[S]);var m=T.join("&");this.initParam.args=encodeURIComponent(m==""?"0":m);var b=[];for(var S in this.initParam)b.push(S+"="+this.initParam[S]);var O=b.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(O):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+O}}],[{key:"getUuid",value:function(){var E=u.default.get("p_h5_upload_u");return E||(E=s.default.create(),u.default.set("p_h5_upload_u",E,730)),E}},{key:"getClientId",value:function(){return u.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(E){return E||(E=s.default.create()),u.default.set("p_h5_upload_clientId",E,730),E}}]),l}();n.default=f},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"create",value:function(d,u){var e,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(u=u||a.length,d)for(e=0;e<d;e++)r[e]=a[0|Math.random()*u];else{var c;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",e=0;e<36;e++)r[e]||(c=0|16*Math.random(),r[e]=a[e==19?3&c|8:c])}return r.join("")}}]),o}();n.default=g},function(he,n,A){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var v={version:"1.5.0"};n.default=v},function(he,n,A){"use strict";function v(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function e(a,r){for(var c=0;c<r.length;c++){var f=r[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,c){return r&&e(a.prototype,r),c&&e(a,c),a}}(),g=function(a){var r=navigator.userAgent,c="other";if(a.ios)return"iOS";if(a.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var f=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,l=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return l&&(c="macOS"),navigator.platform=="X11"&&!f&&!l&&(c="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(c="Linux"),f?"windows":c},o=function(){var a=navigator.userAgent,r="";return(a.indexOf("Windows NT 5.0")>-1||a.indexOf("Windows 2000")>-1)&&(r="2000"),(a.indexOf("Windows NT 5.1")>-1||a.indexOf("Windows XP")>-1)&&(r="XP"),(a.indexOf("Windows NT 5.2")>-1||a.indexOf("Windows 2003")>-1)&&(r="2003"),(a.indexOf("Windows NT 6.0")>-1||a.indexOf("Windows Vista")>-1)&&(r="Vista"),(a.indexOf("Windows NT 6.1")>-1||a.indexOf("Windows 7")>-1)&&(r="7"),(a.indexOf("Windows NT 6.2")>-1||a.indexOf("Windows 8")>-1)&&(r="8"),(a.indexOf("Windows NT 6.3")>-1||a.indexOf("Windows 8.1")>-1)&&(r="8.1"),(a.indexOf("Windows NT 10")>-1||a.indexOf("Windows 10")>-1)&&(r="10"),r},s=function(a){var r=navigator.userAgent.toLowerCase();return a.chrome?"Chrome":a.firefox?"Firefox":a.safari?"Safari":a.webview?"webview":a.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},d=function(){var e={},a={},r=navigator.userAgent,c=navigator.platform,f=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),l=r.match(/(Android);?[\s\/]+([\d.]+)?/),x=!!r.match(/\(Macintosh\; Intel /),E=r.match(/(iPad).*OS\s([\d_]+)/),p=r.match(/(iPod)(.*OS\s([\d_]+))?/),T=!E&&r.match(/(iPhone\sOS)\s([\d_]+)/),S=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),m=/Win\d{2}|Windows/.test(c),b=r.match(/Windows Phone ([\d.]+)/),O=S&&r.match(/TouchPad/),C=r.match(/Kindle\/([\d.]+)/),_=r.match(/Silk\/([\d._]+)/),L=r.match(/(BlackBerry).*Version\/([\d.]+)/),D=r.match(/(BB10).*Version\/([\d.]+)/),N=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),j=r.match(/PlayBook/),z=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),V=r.match(/Firefox\/([\d.]+)/),G=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Z=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),F=!z&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ee=F||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((a.webkit=!!f)&&(a.version=f[1]),l&&(e.android=!0,e.version=l[2]),T&&!p&&(e.ios=e.iphone=!0,e.version=T[2].replace(/_/g,".")),E&&(e.ios=e.ipad=!0,e.version=E[2].replace(/_/g,".")),p&&(e.ios=e.ipod=!0,e.version=p[3]?p[3].replace(/_/g,"."):null),b&&(e.wp=!0,e.version=b[1]),S&&(e.webos=!0,e.version=S[2]),O&&(e.touchpad=!0),L&&(e.blackberry=!0,e.version=L[2]),D&&(e.bb10=!0,e.version=D[2]),N&&(e.rimtabletos=!0,e.version=N[2]),j&&(a.playbook=!0),C&&(e.kindle=!0,e.version=C[1]),_&&(a.silk=!0,a.version=_[1]),!_&&e.android&&r.match(/Kindle Fire/)&&(a.silk=!0),z&&(a.chrome=!0,a.version=z[1]),V&&(a.firefox=!0,a.version=V[1]),G&&(e.firefoxos=!0,e.version=G[1]),Z&&(a.ie=!0,a.version=Z[1]),ee&&(x||e.ios||m||l)&&(a.safari=!0,e.ios||(a.version=ee[1])),F&&(a.webview=!0),x){var $=r.match(/[\d]*_[\d]*_[\d]*/);$&&$.length>0&&$[0]&&(e.version=$[0].replace(/_/g,"."))}return e.tablet=!!(E||j||l&&!r.match(/Mobile/)||V&&r.match(/Tablet/)||Z&&!r.match(/Phone/)&&r.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(l||T||S||L||D||z&&r.match(/Android/)||z&&r.match(/CriOS\/([\d.]+)/)||V&&r.match(/Mobile/)||Z&&r.match(/Touch/))),e.pc=!e.tablet&&!e.phone,x?e.name="macOS":m?(e.name="windows",e.version=o()):e.name=g(e),a.name=s(a),{os:e,browser:a}}(),u=function(){function e(){v(this,e)}return h(e,null,[{key:"getHost",value:function(r){var c="";if(r===void 0||r==null||r=="")return"";var f=r.indexOf("//"),l=r;f>-1&&(l=r.substring(f+2));var c=l,x=l.split("/");return x&&x.length>0&&(c=x[0]),x=c.split(":"),x&&x.length>0&&(c=x[0]),c}},{key:"os",get:function(){return d.os}},{key:"browser",get:function(){var r=d.browser;return r.name||(r.name=s()),r}}]),e}();n.default=u},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"get",value:function(d,u,e,a,r){var c;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),c=new XMLHttpRequest,c.onreadystatechange=function(){c.readyState===4&&(c.status===200?u(c.responseText):e(c.responseText))};try{a===void 0&&(a=!0),c.open("GET",d,a),r&&(c.withCredentials=!0)}catch(f){return void e(f)}try{c.send()}catch(f){e(f)}}}]),o}();n.default=g},function(he,n,A){"use strict";function v(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function d(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&d(u.prototype,e),a&&d(u,a),u}}(),g=A(27),o=A(30),s=(A(10),function(){function d(){v(this,d)}return h(d,null,[{key:"randomUUID",value:function(){for(var e=[],a="0123456789abcdef",r=0;r<36;r++)e[r]=a.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=a.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var a=encodeURIComponent(e);return a=a.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(e,a,r){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var c=[];for(var f in e)c.push(f);for(var l=c.sort(),x="",E=l.length,f=0;f<E;f++){var p=d.aliyunEncodeURI(l[f]),T=d.aliyunEncodeURI(e[l[f]]);x==""?x=p+a+T:x+=r+p+a+T}return x}},{key:"makeChangeSiga",value:function(e,a){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return o.stringify(g("GET&"+d.aliyunEncodeURI("/")+"&"+d.aliyunEncodeURI(d.makeUTF8sort(e,"=","&")),a+"&"))}}]),d}());n.default=s},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return v.enc.Utf8})},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return v.enc.Hex})},function(he,n,A){he.exports=A(13)},function(he,n,A){"use strict";var v,h,g=(typeof Symbol=="function"&&Symbol.iterator,A(14)),o=function(d){return d&&d.__esModule?d:{default:d}}(g),s={Vod:o.default};v=[],(h=function(){return s}.apply(n,v))!==void 0&&(he.exports=h),window.AliyunUpload=s,Ve.exports=AliyunUpload},function(he,n,A){"use strict";function v(D){return D&&D.__esModule?D:{default:D}}function h(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function D(N,j){for(var z=0;z<j.length;z++){var V=j[z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(N,V.key,V)}}return function(N,j,z){return j&&D(N.prototype,j),z&&D(N,z),N}}(),o=A(15),s=A(3),d=A(16),u=v(d),e=A(18),a=v(e),r=A(24),c=v(r),f=A(4),l=v(f),x=A(1),E=v(x),p=A(5),T=v(p),S=A(26),m=v(S),b=A(31),O=v(b),C=A(32),_=v(C),L=(A(2),function(){function D(N){h(this,D),this.options=N,this.options.partSize=this.options.partSize||s.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||s.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=o.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new l.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=o.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return g(D,[{key:"init",value:function(j,z,V,G){return this._retryCount=0,!(V&&!G||!V&&G)&&!(j&&!z||!j&&z)&&(this._ossCreditor.accessKeyId=j,this._ossCreditor.accessKeySecret=z,this._ossCreditor.securityToken=V,this._ossCreditor.expireTime=G,!0)}},{key:"addFile",value:function(j,z,V,G,Z,F){if(!j)return!1;if(j.size==0)try{this.options.onUploadFailed({file:j},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(R){console.log(R)}for(var ee=(this.options,0);ee<this._uploadList.length;ee++)if(this._uploadList[ee].file==j)return!1;var $=new Object;if($.file=j,$._endpoint=z,$._bucket=V,$._object=G,$.state=o.UPLOADSTATE.INIT,$.isImage=E.default.isImage(j.name),!$.isImage&&this.options.enableUploadProgress){var W=this;_.default.getMd5(j,function(R){$.fileHash=R;var I=W._getCheckoutpoint($);W.options.localCheckpoint||I||W._getCheckoutpointFromCloud($,function(U){if(U.UploadPoint){var M=JSON.parse(U.UploadPoint);M.loaded!=1&&($.checkpoint=M.checkpoint,$.loaded=M.loaded,$.videoId=U.VideoId,W._saveCheckoutpoint($,M.checkpoint))}},function(U){try{if((U=JSON.parse(U))&&U.Code=="InvalidParameter"&&U.Message.indexOf("UserId")>0){W._invalidUserId=!0;var M=U.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(H){console.log(H)}})})}Z&&($.videoInfo=Z?JSON.parse(Z).Vod:{},$.userData=a.default.encode(Z)),$.ri=T.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(R){console.log(R)}return!0}},{key:"deleteFile",value:function(j){return!!this.cancelFile(j)&&(this._uploadList.splice(j,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var z=this._uploadList[j];if(j==this._curIndex&&z.state==o.UPLOADSTATE.UPLOADING){z.state=o.UPLOADSTATE.CANCELED;var V=this._getCheckoutpoint(z);V&&V.checkpoint&&(V=V.checkpoint),V&&this._ossUpload.abort(z),this._removeCheckoutpoint(z),this.nextUpload()}else z.state!=o.UPLOADSTATE.SUCCESS&&(z.state=o.UPLOADSTATE.CANCELED);return this._reportLog("20008",z),!0}},{key:"resumeFile",value:function(j){if(this.options,j<0||j>=this._uploadList.length)return!1;var z=this._uploadList[j];return z.state==o.UPLOADSTATE.CANCELED&&(z.state=o.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(j){return this._getCheckoutpoint({file:j})}},{key:"startUpload",value:function(j){if(this._retryCount=0,this.options,this._state==o.VODSTATE.START||this._state==o.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=o.VODSTATE.END);var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z),this._state=o.VODSTATE.START}},{key:"nextUpload",value:function(){var j=this.options;if(this._state==o.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var z=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(z)}else{this._state=o.VODSTATE.END;try{j.onUploadEnd&&j.onUploadEnd(z)}catch(V){console.log(V)}}}},{key:"clear",value:function(j){for(var z=this.options,V=0,G=0;G<this._uploadList.length;G++)z.uploadList[G].state==o.UPLOADSTATE.SUCCESS&&V++,this._uploadList[G].state==j&&(z.uploadList.splice(G,1),G--);z.onClear&&z.onClear(z.uploadList.length,V)}},{key:"stopUpload",value:function(){if((this._state==o.VODSTATE.START||this._state==o.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var j=this._uploadList[this._curIndex];this._state=o.VODSTATE.STOP,j.state=o.UPLOADSTATE.STOPED,this._changeState(j,o.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(j){var z=this;if(!j)return!1;var V=JSON.parse(a.default.decode(j));return!!(V.AccessKeyId&&V.AccessKeySecret&&V.SecurityToken&&V.Expiration)&&z.resumeUploadWithToken(V.AccessKeyId,V.AccessKeySecret,V.SecurityToken,V.Expiration)}},{key:"resumeUploadWithToken",value:function(j,z,V,G){if(this.options,!(j&&z&&V&&G))return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var Z="";return this._uploadList.length>this._curIndex&&(Z=this._uploadList[this._curIndex]),Z&&(this.init(j,z,V,G),this._state=o.VODSTATE.START,this._ossUpload=null,this._uploadCore(Z,Z.retry),Z.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(j,z,V){if(this._curIndex==-1)return!1;if(this._state!=o.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var G=this._uploadList[this._curIndex];G.object?this._refreshSTSTokenUpload(G,j,z,V):this.setSTSToken(G,j,z,V)}}},{key:"setSTSTokenDirectlyUpload",value:function(j,z,V,G,Z){if(!(z&&V&&G&&Z))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var F=j;this.init(z,V,G,Z),F.endpoint=F._endpoint,F.bucket=F._bucket,F.object=F._object,this._ossUpload=null,this._uploadCore(F,j.retry),j.retry=!1}},{key:"setSTSToken",value:function(j,z,V,G){if(!z||!V||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Z=j.videoInfo,F={accessKeyId:z,securityToken:G,accessKeySecret:V,fileName:j.file.name,title:Z.Title,requestId:j.ri,region:this.options.region};Z.ImageType&&(F.imageType=Z.ImageType),Z.ImageExt&&(F.imageExt=Z.ImageExt),Z.FileSize&&(F.fileSize=Z.FileSize),Z.Description&&(F.description=Z.Description),Z.CateId&&(F.cateId=Z.CateId),Z.Tags&&(F.tags=Z.Tags),Z.TemplateGroupId&&(F.templateGroupId=Z.TemplateGroupId),Z.StorageLocation&&(F.storageLocation=Z.StorageLocation),Z.CoverURL&&(F.coverUrl=Z.CoverURL),Z.TransCodeMode&&(F.transCodeMode=Z.TransCodeMode),Z.UserData&&(F.userData=Z.UserData);var ee=this,$="getUploadAuth";j.videoId?(F.videoId=j.videoId,$="refreshUploadAuth"):j.isImage&&($="getImageUploadAuth"),m.default[$](F,function(W){j.videoId=W.VideoId?W.VideoId:j.videoId,ee.setUploadAuthAndAddress(j,W.UploadAuth,W.UploadAddress),ee._state=o.VODSTATE.START},function(W){ee._error(j,{name:W.Code,code:W.Code,message:W.Message,requestId:W.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(j,z,V,G){if(!j||!z||!V)return!1;var Z=JSON.parse(a.default.decode(z));if(!(Z.AccessKeyId&&Z.AccessKeySecret&&Z.SecurityToken&&Z.Expiration))return console.error("uploadauth is invalid"),!1;var F={},ee=j;if(V){if(F=JSON.parse(a.default.decode(V)),!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=Z.Region||this.options.region,this.init(Z.AccessKeyId,Z.AccessKeySecret,Z.SecurityToken,Z.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,j.retry),j.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(j,z,V,G){if(!z||!V||!G)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Z={accessKeyId:z,securityToken:G,accessKeySecret:V,videoId:j.object,requestId:j.ri,region:this.options.region},F=this,ee="refreshUploadAuth";j.isImage&&(ee="getImageUploadAuth"),m.default[ee](Z,function($){F.setUploadAuthAndAddress(j,$.UploadAuth,UploadAddress),F._state=o.VODSTATE.START},function($){F._error(j,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(j){var z=arguments.length>1&&arguments[1]!==void 0&&arguments[1],V=this.options;if(j.retry=z,V.onUploadstarted&&!z)try{var G=this._getCheckoutpoint(j);G&&G.state!=o.UPLOADSTATE.UPLOADING&&(j.checkpoint=G,j.videoId=G.videoId),V.onUploadstarted(j)}catch(Z){console.log(Z)}}},{key:"_uploadCore",value:function(j){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(j.state=o.UPLOADSTATE.UPLOADING,!this._ossUpload){j.endpoint=j.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var z=this;this._ossUpload=new u.default({bucket:j.bucket,endpoint:j.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(R,I){z._error.call(z,R,I)},oncomplete:function(R,I){z._complete.call(z,R,I)},onprogress:function(R,I,U){z._progress.call(z,R,I,U)}})}var V=E.default.getFileType(j.file.name),G=this._getCheckoutpoint(j),Z="",F="";G&&G.checkpoint&&(F=G.state,Z=G.videoId,G=G.checkpoint),G&&Z==j.videoId&&F!=o.UPLOADSTATE.UPLOADING&&(G.file=j.file,j.checkpoint=G,G.uploadId);var ee=this._adjustPartSize(j);this._reportLog("20002",j,{ft:V,fs:j.file.size,bu:j.bucket,ok:j.object,vid:j.videoId||"",fn:j.file.name,fw:null,fh:null,ps:ee});var $={headers:{"x-oss-notification":j.userData?j.userData:""},partSize:ee,parallel:this.options.parallel};this._ossUpload.upload(j,$)}},{key:"_findUploadIndex",value:function(){for(var j=-1,z=0;z<this._uploadList.length;z++)if(this._uploadList[z].state==o.UPLOADSTATE.INIT){j=z;break}return j}},{key:"_error",value:function(j,z){if(z.name=="cancel")try{this.options.onUploadCanceled(j,z)}catch(G){console.log(G)}else{if(z.message.indexOf("InvalidAccessKeyIdError")>0||z.name=="SignatureDoesNotMatchError"||z.code=="SecurityTokenExpired"||z.code=="InvalidSecurityToken.Expired"||z.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=o.VODSTATE.EXPIRE,j.state=o.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(j,z)}catch(G){console.log(G)}}return}if((z.name=="RequestTimeoutError"||z.name=="ConnectionTimeout"||z.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var V=this;return setTimeout(function(){V._uploadCore(j,!0)},1e3*V._retryDuration),void this._retryCount++}z.name=="NoSuchUploadError"&&this._removeCheckoutpoint(j),this._handleError(j,z)}}},{key:"_handleError",value:function(j,z){var V=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],G=o.UPLOADSTATE.FAIlURE;if(j.state!=o.UPLOADSTATE.CANCELED&&(j.state=o.UPLOADSTATE.FAIlURE,this._state=o.VODSTATE.FAILURE,this.options.onUploadFailed&&z&&z.code&&z.message))try{this.options.onUploadFailed(j,z.code,z.message)}catch(F){console.log(F)}if(V&&this._changeState(j,G),this._reportLog("20006",j,{code:z.name,message:z.message,requestId:z.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),this._reportLog("20004",j,{requestId:z.requestId,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),j.ri=T.default.create(),this._findUploadIndex()!=-1){var Z=this;this._state=o.VODSTATE.START,setTimeout(function(){Z.nextUpload()},100)}}},{key:"_complete",value:function(j,z){if(j.state=o.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(j)}catch(Z){console.log(Z)}var V=0;z&&z.res&&z.res.headers&&(V=z.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(j);var G=this;setTimeout(function(){G.nextUpload()},100),this._retryCount=0,this._reportLog("20003",j,{requestId:V})}},{key:"_progress",value:function(j,z,V){if(this.options.onUploadProgress)try{j.loaded=z.loaded,this.options.onUploadProgress(j,z.total,z.loaded)}catch(R){console.log(R)}var G=z.checkpoint,Z=0;G&&(j.checkpoint=G,this._saveCheckoutpoint(j,G,o.UPLOADSTATE.UPLOADING),Z=G.uploadId),this._retryCount=0;var F=this._getPortNumber(G),ee=0;if(V&&V.headers&&(ee=V.headers["x-oss-request-id"]),z.loaded!=0&&this._reportLog("20007",j,{pn:F,requestId:ee}),z.loaded!=1&&this._reportLog("20005",j,{UploadId:Z,pn:F+1,pr:j.retry?1:0,fs:j.file.size,bu:j.bucket,ok:j.object,fn:j.file.name}),!this._invalidUserId&&!j.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var $={file:j.file,checkpoint:z,userId:this.options.userId,videoId:j.videoId,region:this.options.region,fileHash:j.fileHash};try{var W=this;O.default.upload($,function(){},function(R){if((R=JSON.parse(R))&&R.Code=="InvalidParameter"&&R.Message.indexOf("UserId")>0){W._invalidUserId=!0;var I=R.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(I)}})}catch(R){console.log(R)}}}},{key:"_getPortNumber",value:function(j){if(j){var z=j.doneParts;if(z&&z.length>0)return z[z.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(j){var z=this._getCheckoutpointKey(j);c.default.remove(z)}},{key:"_getCheckoutpoint",value:function(j){var z=this._getCheckoutpointKey(j),V=c.default.get(z);if(V)try{return JSON.parse(V)}catch(G){}return""}},{key:"_saveCheckoutpoint",value:function(j,z,V){if(z){var G=this._getCheckoutpointKey(j),Z=j.file,F={fileName:Z.name,lastModified:Z.lastModified,size:Z.size,object:j.object,videoId:j.videoId,bucket:j.bucket,endpoint:j.endpoint,checkpoint:z,loaded:j.loaded,state:V};c.default.set(G,JSON.stringify(F))}}},{key:"_changeState",value:function(j,z){var V=this._getCheckoutpoint(j);V&&((this._onbeforeunload=!0)&&(z=o.UPLOADSTATE.STOPED),this._saveCheckoutpoint(j,V.checkpoint,z))}},{key:"_getCheckoutpointKey",value:function(j){return"upload_"+j.file.lastModified+"_"+j.file.name+"_"+j.file.size}},{key:"_getCheckoutpointFromCloud",value:function(j,z,V){var G={userId:this.options.userId,uploadInfoList:[{FileName:j.file.name,FileSize:j.file.size,FileCreateTime:j.file.lastModified,FileHash:j.fileHash}],region:this.options.region};O.default.get(G,function(Z){z(Z)},V)}},{key:"_reportLog",value:function(j,z,V){V||(V={}),V.ri=z.ri,this._ut&&(V.ut=this._ut),this._log.log(j,V)}},{key:"_initEvent",value:function(){var j=this;window&&(window.onbeforeunload=function(z){if(j._onbeforeunload=!0,j._curIndex!=-1&&j._uploadList.length>j._curIndex){var V=j._uploadList[j._curIndex];j._changeState(V,o.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var j=0;j<this._uploadList.length;j++){var z=this._uploadList[j];z.state!=o.UPLOADSTATE.FAIlURE&&z.state!=o.UPLOADSTATE.STOPED||(z.state=o.UPLOADSTATE.INIT)}this._state=o.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(j){return j.file.size/this.options.partSize>1e4?j.file.size/9999:this.options.partSize}}]),D}());n.default=L},function(he,n,A){"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(he,n,A){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}function h(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function e(a,r){for(var c=0;c<r.length;c++){var f=r[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,c){return r&&e(a.prototype,r),c&&e(a,c),a}}(),o=A(3),s=A(17),d=(v(s),A(1)),u=(v(d),function(){function e(a,r){if(h(this,e),a){this._config=a,this.create(this._config),this._uploadInfo=null,this._callback={};var c=function(){};this._callback.onerror=r.onerror||c,this._callback.oncomplete=r.oncomplete||c,this._callback.onprogress=r.onprogress||c}}return g(e,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var c={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(c.timeout=r.timeout),this.oss=new OSS.Wrapper(c)}},{key:"abort",value:function(r){if(r.checkpoint){var c=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,c)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,c){this._uploadInfo=r;var f=this,l=function(p,T,S){return function(m){f._progress(p,T,S),m()}},x={parallel:c.parallel||this._config.parallel||o.UPLOADDEFAULT.PARALLEL,partSize:c.partSize||this._config.partSize||o.UPLOADDEFAULT.PARTSIZE,progress:l};c.headers&&(x.headers=c.headers),r.checkpoint&&(x.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,x).then(function(E,p){f._complete(E)}).catch(function(E){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(E)})}},{key:"header",value:function(r,c,f){this.oss.get(r.object).then(function(l){c(l)}).catch(function(l){f(l)})}},{key:"_progress",value:function(r,c,f){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:c},f)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),e}());n.default=u},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"format",value:function(d){if(arguments.length<2)return null;for(var u=arguments[1],e=1;e<arguments.length;e++){var a=new RegExp("\\{"+(e-1)+"\\}","gm");u=u.replace(a,arguments[e+1])}return{code:d,message:u}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),o}();n.default=g},function(he,n,A){"use strict";(function(v){function h(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function s(d,u){for(var e=0;e<u.length;e++){var a=u[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,u,e){return u&&s(d.prototype,u),e&&s(d,e),d}}(),o=function(){function s(){h(this,s)}return g(s,null,[{key:"encode",value:function(u){return new v(u).toString("base64")}},{key:"decode",value:function(u){return new v(u,"base64").toString()}}]),s}();n.default=o}).call(n,A(19).Buffer)},function(he,n,A){"use strict";(function(v){function h(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(k,t){if(h()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(t),k.__proto__=o.prototype):(k===null&&(k=new o(t)),k.length=t),k}function o(k,t,i){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(k,t,i);if(typeof k=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return e(this,k)}return s(this,k,t,i)}function s(k,t,i,P){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?c(k,t,i,P):typeof t=="string"?a(k,t,i):f(k,t)}function d(k){if(typeof k!="number")throw new TypeError('"size" argument must be a number');if(k<0)throw new RangeError('"size" argument must not be negative')}function u(k,t,i,P){return d(t),t<=0?g(k,t):i!==void 0?typeof P=="string"?g(k,t).fill(i,P):g(k,t).fill(i):g(k,t)}function e(k,t){if(d(t),k=g(k,t<0?0:0|l(t)),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)k[i]=0;return k}function a(k,t,i){if(typeof i=="string"&&i!==""||(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var P=0|E(t,i);k=g(k,P);var y=k.write(t,i);return y!==P&&(k=k.slice(0,y)),k}function r(k,t){var i=t.length<0?0:0|l(t.length);k=g(k,i);for(var P=0;P<i;P+=1)k[P]=255&t[P];return k}function c(k,t,i,P){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(P||0))throw new RangeError("'length' is out of bounds");return t=i===void 0&&P===void 0?new Uint8Array(t):P===void 0?new Uint8Array(t,i):new Uint8Array(t,i,P),o.TYPED_ARRAY_SUPPORT?(k=t,k.__proto__=o.prototype):k=r(k,t),k}function f(k,t){if(o.isBuffer(t)){var i=0|l(t.length);return k=g(k,i),k.length===0||t.copy(k,0,0,i),k}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ie(t.length)?g(k,0):r(k,t);if(t.type==="Buffer"&&re(t.data))return r(k,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(k){if(k>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return 0|k}function x(k){return+k!=k&&(k=0),o.alloc(+k)}function E(k,t){if(o.isBuffer(k))return k.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(k)||k instanceof ArrayBuffer))return k.byteLength;typeof k!="string"&&(k=""+k);var i=k.length;if(i===0)return 0;for(var P=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ne(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Q(k).length;default:if(P)return ne(k).length;t=(""+t).toLowerCase(),P=!0}}function p(k,t,i){var P=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((i===void 0||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";for(k||(k="utf8");;)switch(k){case"hex":return Z(this,t,i);case"utf8":case"utf-8":return j(this,t,i);case"ascii":return V(this,t,i);case"latin1":case"binary":return G(this,t,i);case"base64":return N(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(P)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),P=!0}}function T(k,t,i){var P=k[t];k[t]=k[i],k[i]=P}function S(k,t,i,P,y){if(k.length===0)return-1;if(typeof i=="string"?(P=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=y?0:k.length-1),i<0&&(i=k.length+i),i>=k.length){if(y)return-1;i=k.length-1}else if(i<0){if(!y)return-1;i=0}if(typeof t=="string"&&(t=o.from(t,P)),o.isBuffer(t))return t.length===0?-1:m(k,t,i,P,y);if(typeof t=="number")return t&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(k,t,i):Uint8Array.prototype.lastIndexOf.call(k,t,i):m(k,[t],i,P,y);throw new TypeError("val must be string, number or Buffer")}function m(k,t,i,P,y){function w(ye,se){return X===1?ye[se]:ye.readUInt16BE(se*X)}var X=1,K=k.length,me=t.length;if(P!==void 0&&((P=String(P).toLowerCase())==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(k.length<2||t.length<2)return-1;X=2,K/=2,me/=2,i/=2}var fe;if(y){var le=-1;for(fe=i;fe<K;fe++)if(w(k,fe)===w(t,le===-1?0:fe-le)){if(le===-1&&(le=fe),fe-le+1===me)return le*X}else le!==-1&&(fe-=fe-le),le=-1}else for(i+me>K&&(i=K-me),fe=i;fe>=0;fe--){for(var ce=!0,ge=0;ge<me;ge++)if(w(k,fe+ge)!==w(t,ge)){ce=!1;break}if(ce)return fe}return-1}function b(k,t,i,P){i=Number(i)||0;var y=k.length-i;P?(P=Number(P))>y&&(P=y):P=y;var w=t.length;if(w%2!=0)throw new TypeError("Invalid hex string");P>w/2&&(P=w/2);for(var X=0;X<P;++X){var K=parseInt(t.substr(2*X,2),16);if(isNaN(K))return X;k[i+X]=K}return X}function O(k,t,i,P){return J(ne(t,k.length-i),k,i,P)}function C(k,t,i,P){return J(ue(t),k,i,P)}function _(k,t,i,P){return C(k,t,i,P)}function L(k,t,i,P){return J(Q(t),k,i,P)}function D(k,t,i,P){return J(pe(t,k.length-i),k,i,P)}function N(k,t,i){return t===0&&i===k.length?q.fromByteArray(k):q.fromByteArray(k.slice(t,i))}function j(k,t,i){i=Math.min(k.length,i);for(var P=[],y=t;y<i;){var w=k[y],X=null,K=w>239?4:w>223?3:w>191?2:1;if(y+K<=i){var me,fe,le,ce;switch(K){case 1:w<128&&(X=w);break;case 2:me=k[y+1],(192&me)==128&&(ce=(31&w)<<6|63&me)>127&&(X=ce);break;case 3:me=k[y+1],fe=k[y+2],(192&me)==128&&(192&fe)==128&&(ce=(15&w)<<12|(63&me)<<6|63&fe)>2047&&(ce<55296||ce>57343)&&(X=ce);break;case 4:me=k[y+1],fe=k[y+2],le=k[y+3],(192&me)==128&&(192&fe)==128&&(192&le)==128&&(ce=(15&w)<<18|(63&me)<<12|(63&fe)<<6|63&le)>65535&&ce<1114112&&(X=ce)}}X===null?(X=65533,K=1):X>65535&&(X-=65536,P.push(X>>>10&1023|55296),X=56320|1023&X),P.push(X),y+=K}return z(P)}function z(k){var t=k.length;if(t<=te)return String.fromCharCode.apply(String,k);for(var i="",P=0;P<t;)i+=String.fromCharCode.apply(String,k.slice(P,P+=te));return i}function V(k,t,i){var P="";i=Math.min(k.length,i);for(var y=t;y<i;++y)P+=String.fromCharCode(127&k[y]);return P}function G(k,t,i){var P="";i=Math.min(k.length,i);for(var y=t;y<i;++y)P+=String.fromCharCode(k[y]);return P}function Z(k,t,i){var P=k.length;(!t||t<0)&&(t=0),(!i||i<0||i>P)&&(i=P);for(var y="",w=t;w<i;++w)y+=oe(k[w]);return y}function F(k,t,i){for(var P=k.slice(t,i),y="",w=0;w<P.length;w+=2)y+=String.fromCharCode(P[w]+256*P[w+1]);return y}function ee(k,t,i){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+t>i)throw new RangeError("Trying to access beyond buffer length")}function $(k,t,i,P,y,w){if(!o.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>y||t<w)throw new RangeError('"value" argument is out of bounds');if(i+P>k.length)throw new RangeError("Index out of range")}function W(k,t,i,P){t<0&&(t=65535+t+1);for(var y=0,w=Math.min(k.length-i,2);y<w;++y)k[i+y]=(t&255<<8*(P?y:1-y))>>>8*(P?y:1-y)}function R(k,t,i,P){t<0&&(t=4294967295+t+1);for(var y=0,w=Math.min(k.length-i,4);y<w;++y)k[i+y]=t>>>8*(P?y:3-y)&255}function I(k,t,i,P,y,w){if(i+P>k.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(k,t,i,P,y){return y||I(k,t,i,4,34028234663852886e22,-34028234663852886e22),B.write(k,t,i,P,23,4),i+4}function M(k,t,i,P,y){return y||I(k,t,i,8,17976931348623157e292,-17976931348623157e292),B.write(k,t,i,P,52,8),i+8}function H(k){if(k=Y(k).replace(de,""),k.length<2)return"";for(;k.length%4!=0;)k+="=";return k}function Y(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function oe(k){return k<16?"0"+k.toString(16):k.toString(16)}function ne(k,t){t=t||1/0;for(var i,P=k.length,y=null,w=[],X=0;X<P;++X){if((i=k.charCodeAt(X))>55295&&i<57344){if(!y){if(i>56319){(t-=3)>-1&&w.push(239,191,189);continue}if(X+1===P){(t-=3)>-1&&w.push(239,191,189);continue}y=i;continue}if(i<56320){(t-=3)>-1&&w.push(239,191,189),y=i;continue}i=65536+(y-55296<<10|i-56320)}else y&&(t-=3)>-1&&w.push(239,191,189);if(y=null,i<128){if((t-=1)<0)break;w.push(i)}else if(i<2048){if((t-=2)<0)break;w.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;w.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;w.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return w}function ue(k){for(var t=[],i=0;i<k.length;++i)t.push(255&k.charCodeAt(i));return t}function pe(k,t){for(var i,P,y,w=[],X=0;X<k.length&&!((t-=2)<0);++X)i=k.charCodeAt(X),P=i>>8,y=i%256,w.push(y),w.push(P);return w}function Q(k){return q.toByteArray(H(k))}function J(k,t,i,P){for(var y=0;y<P&&!(y+i>=t.length||y>=k.length);++y)t[y+i]=k[y];return y}function ie(k){return k!==k}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var q=A(21),B=A(22),re=A(23);n.Buffer=o,n.SlowBuffer=x,n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=v.TYPED_ARRAY_SUPPORT!==void 0?v.TYPED_ARRAY_SUPPORT:function(){try{var k=new Uint8Array(1);return k.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},k.foo()===42&&typeof k.subarray=="function"&&k.subarray(1,1).byteLength===0}catch(t){return!1}}(),n.kMaxLength=h(),o.poolSize=8192,o._augment=function(k){return k.__proto__=o.prototype,k},o.from=function(k,t,i){return s(null,k,t,i)},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(k,t,i){return u(null,k,t,i)},o.allocUnsafe=function(k){return e(null,k)},o.allocUnsafeSlow=function(k){return e(null,k)},o.isBuffer=function(k){return!(k==null||!k._isBuffer)},o.compare=function(k,t){if(!o.isBuffer(k)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(k===t)return 0;for(var i=k.length,P=t.length,y=0,w=Math.min(i,P);y<w;++y)if(k[y]!==t[y]){i=k[y],P=t[y];break}return i<P?-1:P<i?1:0},o.isEncoding=function(k){switch(String(k).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(k,t){if(!re(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return o.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<k.length;++i)t+=k[i].length;var P=o.allocUnsafe(t),y=0;for(i=0;i<k.length;++i){var w=k[i];if(!o.isBuffer(w))throw new TypeError('"list" argument must be an Array of Buffers');w.copy(P,y),y+=w.length}return P},o.byteLength=E,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<k;t+=2)T(this,t,t+1);return this},o.prototype.swap32=function(){var k=this.length;if(k%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<k;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},o.prototype.swap64=function(){var k=this.length;if(k%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<k;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},o.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?j(this,0,k):p.apply(this,arguments)},o.prototype.equals=function(k){if(!o.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||o.compare(this,k)===0},o.prototype.inspect=function(){var k="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(k=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(k+=" ... ")),"<Buffer "+k+">"},o.prototype.compare=function(k,t,i,P,y){if(!o.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),i===void 0&&(i=k?k.length:0),P===void 0&&(P=0),y===void 0&&(y=this.length),t<0||i>k.length||P<0||y>this.length)throw new RangeError("out of range index");if(P>=y&&t>=i)return 0;if(P>=y)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,P>>>=0,y>>>=0,this===k)return 0;for(var w=y-P,X=i-t,K=Math.min(w,X),me=this.slice(P,y),fe=k.slice(t,i),le=0;le<K;++le)if(me[le]!==fe[le]){w=me[le],X=fe[le];break}return w<X?-1:X<w?1:0},o.prototype.includes=function(k,t,i){return this.indexOf(k,t,i)!==-1},o.prototype.indexOf=function(k,t,i){return S(this,k,t,i,!0)},o.prototype.lastIndexOf=function(k,t,i){return S(this,k,t,i,!1)},o.prototype.write=function(k,t,i,P){if(t===void 0)P="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")P=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,P===void 0&&(P="utf8")):(P=i,i=void 0)}var y=this.length-t;if((i===void 0||i>y)&&(i=y),k.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var w=!1;;)switch(P){case"hex":return b(this,k,t,i);case"utf8":case"utf-8":return O(this,k,t,i);case"ascii":return C(this,k,t,i);case"latin1":case"binary":return _(this,k,t,i);case"base64":return L(this,k,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,k,t,i);default:if(w)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),w=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var te=4096;o.prototype.slice=function(k,t){var i=this.length;k=~~k,t=t===void 0?i:~~t,k<0?(k+=i)<0&&(k=0):k>i&&(k=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<k&&(t=k);var P;if(o.TYPED_ARRAY_SUPPORT)P=this.subarray(k,t),P.__proto__=o.prototype;else{var y=t-k;P=new o(y,void 0);for(var w=0;w<y;++w)P[w]=this[w+k]}return P},o.prototype.readUIntLE=function(k,t,i){k|=0,t|=0,i||ee(k,t,this.length);for(var P=this[k],y=1,w=0;++w<t&&(y*=256);)P+=this[k+w]*y;return P},o.prototype.readUIntBE=function(k,t,i){k|=0,t|=0,i||ee(k,t,this.length);for(var P=this[k+--t],y=1;t>0&&(y*=256);)P+=this[k+--t]*y;return P},o.prototype.readUInt8=function(k,t){return t||ee(k,1,this.length),this[k]},o.prototype.readUInt16LE=function(k,t){return t||ee(k,2,this.length),this[k]|this[k+1]<<8},o.prototype.readUInt16BE=function(k,t){return t||ee(k,2,this.length),this[k]<<8|this[k+1]},o.prototype.readUInt32LE=function(k,t){return t||ee(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},o.prototype.readUInt32BE=function(k,t){return t||ee(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},o.prototype.readIntLE=function(k,t,i){k|=0,t|=0,i||ee(k,t,this.length);for(var P=this[k],y=1,w=0;++w<t&&(y*=256);)P+=this[k+w]*y;return y*=128,P>=y&&(P-=Math.pow(2,8*t)),P},o.prototype.readIntBE=function(k,t,i){k|=0,t|=0,i||ee(k,t,this.length);for(var P=t,y=1,w=this[k+--P];P>0&&(y*=256);)w+=this[k+--P]*y;return y*=128,w>=y&&(w-=Math.pow(2,8*t)),w},o.prototype.readInt8=function(k,t){return t||ee(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},o.prototype.readInt16LE=function(k,t){t||ee(k,2,this.length);var i=this[k]|this[k+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(k,t){t||ee(k,2,this.length);var i=this[k+1]|this[k]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(k,t){return t||ee(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},o.prototype.readInt32BE=function(k,t){return t||ee(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},o.prototype.readFloatLE=function(k,t){return t||ee(k,4,this.length),B.read(this,k,!0,23,4)},o.prototype.readFloatBE=function(k,t){return t||ee(k,4,this.length),B.read(this,k,!1,23,4)},o.prototype.readDoubleLE=function(k,t){return t||ee(k,8,this.length),B.read(this,k,!0,52,8)},o.prototype.readDoubleBE=function(k,t){return t||ee(k,8,this.length),B.read(this,k,!1,52,8)},o.prototype.writeUIntLE=function(k,t,i,P){(k=+k,t|=0,i|=0,!P)&&$(this,k,t,i,Math.pow(2,8*i)-1,0);var y=1,w=0;for(this[t]=255&k;++w<i&&(y*=256);)this[t+w]=k/y&255;return t+i},o.prototype.writeUIntBE=function(k,t,i,P){(k=+k,t|=0,i|=0,!P)&&$(this,k,t,i,Math.pow(2,8*i)-1,0);var y=i-1,w=1;for(this[t+y]=255&k;--y>=0&&(w*=256);)this[t+y]=k/w&255;return t+i},o.prototype.writeUInt8=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[t]=255&k,t+1},o.prototype.writeUInt16LE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):W(this,k,t,!0),t+2},o.prototype.writeUInt16BE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):W(this,k,t,!1),t+2},o.prototype.writeUInt32LE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=k>>>24,this[t+2]=k>>>16,this[t+1]=k>>>8,this[t]=255&k):R(this,k,t,!0),t+4},o.prototype.writeUInt32BE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):R(this,k,t,!1),t+4},o.prototype.writeIntLE=function(k,t,i,P){if(k=+k,t|=0,!P){var y=Math.pow(2,8*i-1);$(this,k,t,i,y-1,-y)}var w=0,X=1,K=0;for(this[t]=255&k;++w<i&&(X*=256);)k<0&&K===0&&this[t+w-1]!==0&&(K=1),this[t+w]=(k/X>>0)-K&255;return t+i},o.prototype.writeIntBE=function(k,t,i,P){if(k=+k,t|=0,!P){var y=Math.pow(2,8*i-1);$(this,k,t,i,y-1,-y)}var w=i-1,X=1,K=0;for(this[t+w]=255&k;--w>=0&&(X*=256);)k<0&&K===0&&this[t+w+1]!==0&&(K=1),this[t+w]=(k/X>>0)-K&255;return t+i},o.prototype.writeInt8=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[t]=255&k,t+1},o.prototype.writeInt16LE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):W(this,k,t,!0),t+2},o.prototype.writeInt16BE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):W(this,k,t,!1),t+2},o.prototype.writeInt32LE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8,this[t+2]=k>>>16,this[t+3]=k>>>24):R(this,k,t,!0),t+4},o.prototype.writeInt32BE=function(k,t,i){return k=+k,t|=0,i||$(this,k,t,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),o.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):R(this,k,t,!1),t+4},o.prototype.writeFloatLE=function(k,t,i){return U(this,k,t,!0,i)},o.prototype.writeFloatBE=function(k,t,i){return U(this,k,t,!1,i)},o.prototype.writeDoubleLE=function(k,t,i){return M(this,k,t,!0,i)},o.prototype.writeDoubleBE=function(k,t,i){return M(this,k,t,!1,i)},o.prototype.copy=function(k,t,i,P){if(i||(i=0),P||P===0||(P=this.length),t>=k.length&&(t=k.length),t||(t=0),P>0&&P<i&&(P=i),P===i)return 0;if(k.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),k.length-t<P-i&&(P=k.length-t+i);var y,w=P-i;if(this===k&&i<t&&t<P)for(y=w-1;y>=0;--y)k[y+t]=this[y+i];else if(w<1e3||!o.TYPED_ARRAY_SUPPORT)for(y=0;y<w;++y)k[y+t]=this[y+i];else Uint8Array.prototype.set.call(k,this.subarray(i,i+w),t);return w},o.prototype.fill=function(k,t,i,P){if(typeof k=="string"){if(typeof t=="string"?(P=t,t=0,i=this.length):typeof i=="string"&&(P=i,i=this.length),k.length===1){var y=k.charCodeAt(0);y<256&&(k=y)}if(P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!o.isEncoding(P))throw new TypeError("Unknown encoding: "+P)}else typeof k=="number"&&(k&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t>>>=0,i=i===void 0?this.length:i>>>0,k||(k=0);var w;if(typeof k=="number")for(w=t;w<i;++w)this[w]=k;else{var X=o.isBuffer(k)?k:ne(new o(k,P).toString()),K=X.length;for(w=0;w<i-t;++w)this[w+t]=X[w%K]}return this};var de=/[^+\/0-9A-Za-z-_]/g}).call(n,A(20))},function(he,n){var A;A=function(){return this}();try{A=A||Function("return this")()||(0,eval)("this")}catch(v){typeof window=="object"&&(A=window)}he.exports=A},function(he,n,A){"use strict";function v(l){var x=l.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return l[x-2]==="="?2:l[x-1]==="="?1:0}function h(l){return 3*l.length/4-v(l)}function g(l){var x,E,p,T,S,m=l.length;T=v(l),S=new a(3*m/4-T),E=T>0?m-4:m;var b=0;for(x=0;x<E;x+=4)p=e[l.charCodeAt(x)]<<18|e[l.charCodeAt(x+1)]<<12|e[l.charCodeAt(x+2)]<<6|e[l.charCodeAt(x+3)],S[b++]=p>>16&255,S[b++]=p>>8&255,S[b++]=255&p;return T===2?(p=e[l.charCodeAt(x)]<<2|e[l.charCodeAt(x+1)]>>4,S[b++]=255&p):T===1&&(p=e[l.charCodeAt(x)]<<10|e[l.charCodeAt(x+1)]<<4|e[l.charCodeAt(x+2)]>>2,S[b++]=p>>8&255,S[b++]=255&p),S}function o(l){return u[l>>18&63]+u[l>>12&63]+u[l>>6&63]+u[63&l]}function s(l,x,E){for(var p,T=[],S=x;S<E;S+=3)p=(l[S]<<16)+(l[S+1]<<8)+l[S+2],T.push(o(p));return T.join("")}function d(l){for(var x,E=l.length,p=E%3,T="",S=[],m=0,b=E-p;m<b;m+=16383)S.push(s(l,m,m+16383>b?b:m+16383));return p===1?(x=l[E-1],T+=u[x>>2],T+=u[x<<4&63],T+="=="):p===2&&(x=(l[E-2]<<8)+l[E-1],T+=u[x>>10],T+=u[x>>4&63],T+=u[x<<2&63],T+="="),S.push(T),S.join("")}n.byteLength=h,n.toByteArray=g,n.fromByteArray=d;for(var u=[],e=[],a=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=r.length;c<f;++c)u[c]=r[c],e[r.charCodeAt(c)]=c;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(he,n){n.read=function(A,v,h,g,o){var s,d,u=8*o-g-1,e=(1<<u)-1,a=e>>1,r=-7,c=h?o-1:0,f=h?-1:1,l=A[v+c];for(c+=f,s=l&(1<<-r)-1,l>>=-r,r+=u;r>0;s=256*s+A[v+c],c+=f,r-=8);for(d=s&(1<<-r)-1,s>>=-r,r+=g;r>0;d=256*d+A[v+c],c+=f,r-=8);if(s===0)s=1-a;else{if(s===e)return d?NaN:1/0*(l?-1:1);d+=Math.pow(2,g),s-=a}return(l?-1:1)*d*Math.pow(2,s-g)},n.write=function(A,v,h,g,o,s){var d,u,e,a=8*s-o-1,r=(1<<a)-1,c=r>>1,f=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=g?0:s-1,x=g?1:-1,E=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(u=isNaN(v)?1:0,d=r):(d=Math.floor(Math.log(v)/Math.LN2),v*(e=Math.pow(2,-d))<1&&(d--,e*=2),v+=d+c>=1?f/e:f*Math.pow(2,1-c),v*e>=2&&(d++,e/=2),d+c>=r?(u=0,d=r):d+c>=1?(u=(v*e-1)*Math.pow(2,o),d+=c):(u=v*Math.pow(2,c-1)*Math.pow(2,o),d=0));o>=8;A[h+l]=255&u,l+=x,u/=256,o-=8);for(d=d<<o|u,a+=o;a>0;A[h+l]=255&d,l+=x,d/=256,a-=8);A[h+l-x]|=128*E}},function(he,n){var A={}.toString;he.exports=Array.isArray||function(v){return A.call(v)=="[object Array]"}},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"set",value:function(d,u){try{window.localStorage&&localStorage.setItem(d,u)}catch(e){window[d+"_localStorage"]=u}}},{key:"get",value:function(d){try{if(window.localStorage)return localStorage.getItem(d)}catch(u){return window[d+"_localStorage"]}return""}},{key:"remove",value:function(d){try{window.localStorage&&localStorage.removeItem(d)}catch(u){delete window[d+"_localStorage"]}}}]),o}();n.default=g},function(he,n,A){"use strict";function v(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function o(s,d){for(var u=0;u<d.length;u++){var e=d[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}return function(s,d,u){return d&&o(s.prototype,d),u&&o(s,u),s}}(),g=function(){function o(){v(this,o)}return h(o,null,[{key:"get",value:function(d){for(var u=d+"",e=document.cookie.split(";"),a=0;a<e.length;a++){var r=e[a].trim();if(r.indexOf(u)==0)return unescape(r.substring(u.length+1,r.length))}return""}},{key:"set",value:function(d,u,e){var a=new Date;a.setTime(a.getTime()+24*e*60*60*1e3);var r="expires="+a.toGMTString();document.cookie=d+"="+escape(u)+"; "+r}}]),o}();n.default=g},function(he,n,A){"use strict";function v(a){return a&&a.__esModule?a:{default:a}}function h(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function a(r,c){for(var f=0;f<c.length;f++){var l=c[f];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,c,f){return c&&a(r.prototype,c),f&&a(r,f),r}}(),o=A(8),s=v(o),d=A(9),u=v(d),e=function(){function a(){h(this,a)}return g(a,null,[{key:"refreshUploadAuth",value:function(c,f,l){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"RefreshUploadVideo",VideoId:c.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId},p=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,c.accessKeySecret)),T="https://vod."+c.region+".aliyuncs.com/?"+p;s.default.get(T,function(S){var S=JSON.parse(S);f&&f(S)},function(S){if(l){var m=JSON.parse(S);l(m)}})}},{key:"getUploadAuth",value:function(c,f,l){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadVideo",Title:c.title,FileName:c.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId};c.fileSize&&(E.FileSize=c.fileSize),c.description&&(E.Description=c.description),c.cateId&&(E.CateId=c.cateId),c.tags&&(E.Tags=c.tags),c.templateGroupId&&(E.TemplateGroupId=c.templateGroupId),c.storageLocation&&(E.StorageLocation=c.storageLocation),c.coverUrl&&(E.CoverURL=c.coverUrl),c.transCodeMode&&(E.TransCodeMode=c.transCodeMode),c.userData&&(E.UserData=JSON.stringify(c.userData));var p=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,c.accessKeySecret)),T="https://vod."+c.region+".aliyuncs.com/?"+p;s.default.get(T,function(S){try{S=JSON.parse(S)}catch(m){if(l)return void l({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(S)},function(S){if(l){var m={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{m=JSON.parse(S)}catch(b){}l(m)}})}},{key:"getImageUploadAuth",value:function(c,f,l){var x=(u.default.randomUUID(),u.default.randomUUID()),E={AccessKeyId:c.accessKeyId,SecurityToken:c.securityToken,Action:"CreateUploadImage",ImageType:c.imageType?c.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:x,RequestId:c.requestId};c.title&&(E.Title=c.title),c.imageExt&&(E.ImageExt=c.imageExt),c.tags&&(E.Tags=c.tags),c.storageLocation&&(E.StorageLocation=c.storageLocation);var p=u.default.makeUTF8sort(E,"=","&")+"&Signature="+u.default.aliyunEncodeURI(u.default.makeChangeSiga(E,c.accessKeySecret)),T="https://vod."+c.region+".aliyuncs.com/?"+p;s.default.get(T,function(S){S=JSON.parse(S),f&&f(S)},function(S){if(l){var m=JSON.parse(S);l(m)}})}}]),a}();n.default=e},function(he,n,A){!function(v,h,g){he.exports=n=h(A(0),A(28),A(29))}(0,function(v){return v.HmacSHA1})},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return function(){var h=v,g=h.lib,o=g.WordArray,s=g.Hasher,d=h.algo,u=[],e=d.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,c){for(var f=this._hash.words,l=f[0],x=f[1],E=f[2],p=f[3],T=f[4],S=0;S<80;S++){if(S<16)u[S]=0|r[c+S];else{var m=u[S-3]^u[S-8]^u[S-14]^u[S-16];u[S]=m<<1|m>>>31}var b=(l<<5|l>>>27)+T+u[S];b+=S<20?1518500249+(x&E|~x&p):S<40?1859775393+(x^E^p):S<60?(x&E|x&p|E&p)-1894007588:(x^E^p)-899497514,T=p,p=E,E=x<<30|x>>>2,x=l,l=b}f[0]=f[0]+l|0,f[1]=f[1]+x|0,f[2]=f[2]+E|0,f[3]=f[3]+p|0,f[4]=f[4]+T|0},_doFinalize:function(){var r=this._data,c=r.words,f=8*this._nDataBytes,l=8*r.sigBytes;return c[l>>>5]|=128<<24-l%32,c[14+(l+64>>>9<<4)]=Math.floor(f/4294967296),c[15+(l+64>>>9<<4)]=f,r.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});h.SHA1=s._createHelper(e),h.HmacSHA1=s._createHmacHelper(e)}(),v.SHA1})},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){!function(){var h=v,g=h.lib,o=g.Base,s=h.enc,d=s.Utf8,u=h.algo;u.HMAC=o.extend({init:function(a,r){a=this._hasher=new a.init,typeof r=="string"&&(r=d.parse(r));var c=a.blockSize,f=4*c;r.sigBytes>f&&(r=a.finalize(r)),r.clamp();for(var l=this._oKey=r.clone(),x=this._iKey=r.clone(),E=l.words,p=x.words,T=0;T<c;T++)E[T]^=1549556828,p[T]^=909522486;l.sigBytes=x.sigBytes=f,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var r=this._hasher,c=r.finalize(a);return r.reset(),r.finalize(this._oKey.clone().concat(c))}})}()})},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return function(){function h(u,e,a){for(var r=[],c=0,f=0;f<e;f++)if(f%4){var l=a[u.charCodeAt(f-1)]<<f%4*2,x=a[u.charCodeAt(f)]>>>6-f%4*2;r[c>>>2]|=(l|x)<<24-c%4*8,c++}return s.create(r,c)}var g=v,o=g.lib,s=o.WordArray,d=g.enc;d.Base64={stringify:function(e){var a=e.words,r=e.sigBytes,c=this._map;e.clamp();for(var f=[],l=0;l<r;l+=3)for(var x=a[l>>>2]>>>24-l%4*8&255,E=a[l+1>>>2]>>>24-(l+1)%4*8&255,p=a[l+2>>>2]>>>24-(l+2)%4*8&255,T=x<<16|E<<8|p,S=0;S<4&&l+.75*S<r;S++)f.push(c.charAt(T>>>6*(3-S)&63));var m=c.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(e){var a=e.length,r=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<r.length;f++)c[r.charCodeAt(f)]=f}var l=r.charAt(64);if(l){var x=e.indexOf(l);x!==-1&&(a=x)}return h(e,a,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),v.enc.Base64})},function(he,n,A){"use strict";function v(b){return b&&b.__esModule?b:{default:b}}function h(b,O){if(!(b instanceof O))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var g=function(){function b(O,C){for(var _=0;_<C.length;_++){var L=C[_];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,C,_){return C&&b(O.prototype,C),_&&b(O,_),O}}(),o=A(8),s=v(o),d=A(7),u=v(d),e=A(4),a=v(e),r=A(6),c=v(r),f=A(1),l=v(f),x=A(9),E=v(x),p=A(2),T=A(11),S=A(10),m=function(){function b(){h(this,b)}return g(b,null,[{key:"getAuthInfo",value:function(C,_,L){var D=C+"|f#Ylm&^1TppeRhLg|"+L;return _&&(D=C+"|"+_+"|f#Ylm&^1TppeRhLg|"+L),p(S.parse(D)).toString(T)}},{key:"upload",value:function(C,_,L){var D=l.default.ISODateString(new Date),N=Math.floor(new Date().valueOf()/1e3),j=a.default.getClientId();j=a.default.setClientId(j);var z=b.getAuthInfo(C.userId,j,N),V=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:N,Timestamp:D,AuthInfo:z,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:V};j&&(G.ClientId=j);var Z=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+Z;s.default.get(F,function(ee){_&&_()},function(ee){ee&&(L(ee),console.log(ee))})}},{key:"get",value:function(C,_,L){var D=l.default.ISODateString(new Date),N=Math.floor(new Date().valueOf()/1e3),j=a.default.getClientId(),z=b.getAuthInfo(C.userId,j,N),V=E.default.randomUUID(),G={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:u.default.browser.name+(u.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:N,Timestamp:D,AuthInfo:z,UserId:C.userId,UploadInfoList:JSON.stringify(C.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:V};j&&(G.ClientId=j);var Z=E.default.makeUTF8sort(G,"=","&")+"&Signature="+E.default.aliyunEncodeURI(E.default.makeChangeSiga(G,C.accessKeySecret)),F="https://vod."+C.region+".aliyuncs.com/?"+Z;s.default.get(F,function(ee){var $={},W=j;ee=ee?JSON.parse(ee):{},ee.UploadProgress&&ee.UploadProgress.UploadProgressList&&ee.UploadProgress.UploadProgressList.length>0&&($=ee.UploadProgress.UploadProgressList[0],W=$.ClientId),a.default.setClientId(W),_&&_($)},function(ee){ee&&(L(ee),console.log(ee))})}}]),b}();n.default=m},function(he,n,A){"use strict";function v(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var h=function(){function d(u,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,e,a){return e&&d(u.prototype,e),a&&d(u,a),u}}(),g=A(2),o=A(33),s=(A(11),function(){function d(){v(this,d)}return h(d,null,[{key:"getMd5",value:function(e,a,r){var c=new FileReader;c.onload=function(x){try{if(x&&x.target){var E=g(o.parse(x.target.result)),p=E.toString();a(p)}}catch(T){console.log(T)}},c.onerror=function(x){console.log(x),errorCallback(x)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,l=f.call(e,0,1024);c.readAsBinaryString(l)}}]),d}());n.default=s},function(he,n,A){!function(v,h){he.exports=n=h(A(0))}(0,function(v){return v.enc.Latin1})}])}).call(this,ae("yLpj"))},sBCT:function(Ve,ze,ae){"use strict";var ke=ae("DZo9"),He=ae("8z0m"),he=ae("+L6B"),n=ae("2/Rp"),A=ae("MXD1"),v=ae("CFYs"),h=ae("WmNS"),g=ae.n(h),o=ae("9og8"),s=ae("2qtc"),d=ae("kLXV"),u=ae("miYZ"),e=ae("tsqr"),a=ae("y8nQ"),r=ae("Vl3Y"),c=ae("tJVT"),f=ae("k1fw"),l=ae("oBTY"),x=ae("5NDa"),E=ae("5rEg"),p=ae("q1tI"),T=ae.n(p),S=ae("Ty5D"),m=ae("9kvl"),b=ae("kwm0"),O=ae.n(b),C=ae("Aky1"),_=ae("m3rI"),L=E.a.TextArea,D=500,N=function(V,G){var Z,F=G.payload||{},ee=F.uploadInfo,$=ee===void 0?{}:ee;switch(G.type){case"addVideo":return{videoList:[].concat(Object(l.a)(V.videoList),[{name:$.file.name,size:$.file.size,type:$.file.type,fileHash:$.fileHash,state:$.state,videoId:$.videoId,loaded:$.loaded||0,title:""}])};case"removeVideo":return{videoList:V.videoList.filter(function(W){return W.name!==G.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:V.videoList.map(function(W){return W.name===G.payload.uploadInfo.file.name?Object(f.a)(Object(f.a)({},W),{loaded:G.payload.progressPercent,videoId:$.videoId,fileHash:$.fileHash}):W})};case"updateTitle":return{videoList:(Z=V.videoList)===null||Z===void 0?void 0:Z.map(function(W){return W.name===G.payload.item.name?Object(f.a)(Object(f.a)({},W),{title:G.payload.title}):W})};default:return{videoList:[]}}},j=function(V){var G=V.user,Z=V.globalSetting,F=V.loading,ee=V.dispatch,$=V.visible,W=V.editData,R=V.onCancel,I=R===void 0?function(){}:R,U=V.onOk,M=U===void 0?function(){}:U,H=Object(S.m)(),Y=r.a.useForm(),oe=Object(c.a)(Y,1),ne=oe[0],ue=Object(p.useReducer)(N,{videoList:[]}),pe=Object(c.a)(ue,2),Q=pe[0],J=pe[1],ie=Object(p.useState)(!1),q=Object(c.a)(ie,2),B=q[0],re=q[1],te=Object(p.useRef)(),de=Object(p.useState)(),k=Object(c.a)(de,2),t=k[0],i=k[1],P=Object(p.useState)(!1),y=Object(c.a)(P,2),w=y[0],X=y[1],K=Object(p.useState)(!1),me=Object(c.a)(K,2),fe=me[0],le=me[1],ce=Object(p.useState)([]),ge=Object(c.a)(ce,2),ye=ge[0],se=ge[1],xe=Object(p.useState)([]),je=Object(c.a)(xe,2),Ee=je[0],Re=je[1];Object(p.useEffect)(function(){if(!W)return;X(W.is_link),i(W.link),!W.is_link&&J({type:"addVideo",payload:{uploadInfo:{file:{name:W.file_name},videoId:W.video_id,loaded:100}}}),ne.setFieldsValue({name:W.name,description:W.description})},[W]);var Ne=function(){var be=document.getElementById("fileUpload");be.value=""},We=function(be){var ve,Oe,_e;X(!1);var we=be.target.files[0];if(!we){Ne();return}var Pe=we.name.toLowerCase();if(Pe&&Pe.indexOf(".avi")==-1&&Pe.indexOf(".flv")==-1&&Pe.indexOf(".f4v")==-1&&Pe.indexOf(".m4v")==-1&&Pe.indexOf(".mov")==-1&&Pe.indexOf(".mp4")==-1&&Pe.indexOf(".rmvb")==-1&&Pe.indexOf(".swf")==-1&&Pe.indexOf(".webm")==-1&&Pe.indexOf(".wmv")==-1){e.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Ne();return}if(!(((ve=G.userInfo)===null||ve===void 0?void 0:ve.admin)||((Oe=G.userInfo)===null||Oe===void 0?void 0:Oe.business))&&we.size>D*1024*1024){e.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(D,"M")),Ne();return}if((_e=Q.videoList)===null||_e===void 0?void 0:_e.find(function(Ce){return Ce.name===we.name})){e.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Ne();return}Xe(we)},Ke=function(be,ve){d.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:T.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ve?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Ne(),J({type:"removeVideo",payload:{name:be}})}})},Xe=function(be){var ve,Oe='{"Vod":{}}';if(re(!0),te.current){te.current.addFile(be,null,null,null,Oe);return}Object(C.a)((ve=G.userInfo)===null||ve===void 0?void 0:ve.login,{create:!te,addFileSuccess:function(we){J({type:"addVideo",payload:{uploadInfo:we}})},onUploadProgress:function(we,Pe,Ce){var Je=Math.ceil(Ce*100);J({type:"updateProgress",payload:{uploadInfo:we,progressPercent:Je}}),Ne()},onUploadFailed:function(we){e.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(we){re(!1)},onUploadSucceed:function(we){re(!1)},onUploadError:function(we){re(!1)},gotUploader:function(we){we.addFile(be,null,null,null,Oe),te.current=we}})},$e=function(){var Ae=Object(o.a)(g.a.mark(function be(){var ve,Oe;return g.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,ne.validateFields();case 2:if(!(Ee&&(Ee==null?void 0:Ee.length)>0||w&&t)){we.next=12;break}return le(!0),ve=w?{link:t}:{video_id:Ee==null?void 0:Ee[0].attachment_id,video_name:Ee==null?void 0:Ee[0].name,filesize:Ee==null?void 0:Ee[0].filesize,duration:Ee==null?void 0:Ee[0].duration},we.next=7,M(Object(f.a)(Object(f.a)({},ve),{name:ne.getFieldValue("name"),description:ne.getFieldValue("description")}));case 7:Oe=we.sent,le(!1),Oe.id&&et(),we.next=13;break;case 12:e.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");case 13:case"end":return we.stop()}},be)}));return function(){return Ae.apply(this,arguments)}}(),et=function(){ne.resetFields(),J({type:"removeAll"}),i(null),X(null),Re([]),se([])},nt=function(){I(),et()},Ze={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:_.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(be){Re([])},onChange:function(be){var ve=be.file.status;if(ve!=="uploading",ve==="removed"&&se(be.fileList),ve==="done"){var Oe;se(be==null||((Oe=be.fileList)===null||Oe===void 0)?void 0:Oe.slice(-1)),qe(be.file),X(!1),e.b.success("".concat(be.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else ve==="error"&&e.b.error("".concat(be.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(be){var ve=be.size/1024/1024<1e3;return ve||e.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),ve}};function qe(Ae){var be=URL.createObjectURL(Ae.originFileObj),ve=new Audio(be);ve.addEventListener("loadedmetadata",function(Oe){var _e,we,Pe=ve.duration,Ce={};Ce.name=Ae.name,Ce.duration=Math.floor(Pe),Ce.filesize=Ae.size,Ce.attachment_id=Ae==null?void 0:Ae.response.id,Ce.course_id=H.coursesId,Ce.category_id=(_e=Location)===null||_e===void 0||((we=_e.query)===null||we===void 0)?void 0:we.categoryId,Ee.push(Ce),Re(Object(l.a)(Ee))})}var Se=function(){var be,ve,Oe,_e,we,Pe,Ce,Je,Ge,Qe,De,Me;return T.a.createElement(T.a.Fragment,null,!w&&!!((be=Q.videoList)===null||be===void 0?void 0:be.length)&&T.a.createElement("div",{className:O.a.fileProgress},((ve=Q.videoList)===null||ve===void 0||((Oe=ve[0])===null||Oe===void 0)?void 0:Oe.loaded)==100?T.a.createElement("div",{className:"".concat(O.a.videoName," font14")},(_e=Q.videoList)===null||_e===void 0||((we=_e[0])===null||we===void 0)?void 0:we.name):T.a.createElement(v.a,{style:{width:"80%"},percent:(Pe=Q.videoList)===null||Pe===void 0||((Ce=Pe[0])===null||Ce===void 0)?void 0:Ce.loaded,status:((Je=Q.videoList)===null||Je===void 0||((Ge=Je[0])===null||Ge===void 0)?void 0:Ge.loaded)==100?"normal":"active"}),T.a.createElement("div",{className:O.a.fileCancel,onClick:function(){var Be,Ie,Fe,Te;return Ke((Be=Q.videoList)===null||Be===void 0||((Ie=Be[0])===null||Ie===void 0)?void 0:Ie.name,((Fe=Q.videoList)===null||Fe===void 0||((Te=Fe[0])===null||Te===void 0)?void 0:Te.loaded)==100)}},((Qe=Q.videoList)===null||Qe===void 0||((De=Qe[0])===null||De===void 0)?void 0:De.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Me=Q.videoList)===null||Me===void 0?void 0:Me.length)&&T.a.createElement("div",{className:O.a.uploadWrap},T.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},T.a.createElement(He.a,Ze,T.a.createElement(n.a,{className:O.a.upload,disabled:(Ee==null?void 0:Ee.length)>0},T.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),T.a.createElement("label",{className:"".concat(O.a.upload," ").concat(O.a.uploadLink),style:{display:(ye==null?void 0:ye.length)>0?"none":""},onClick:function(){return X(!0)}},T.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),w&&T.a.createElement(E.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:t,onChange:function(Be){return i(Be.target.value)}}))};return T.a.createElement(d.a,{centered:!0,maskClosable:!1,title:W?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:O.a.modal,visible:$,confirmLoading:fe,onOk:$e,onCancel:nt},T.a.createElement(r.a,{form:ne},T.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:We,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),T.a.createElement(r.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},T.a.createElement(E.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),T.a.createElement(r.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:O.a.contentItem},Se()),T.a.createElement(r.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},T.a.createElement(L,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),T.a.createElement("div",{className:O.a.description},T.a.createElement("span",null,""),T.a.createElement("div",null,"\u4E0A\u4F20\u8BF4\u660E\uFF1A\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361000M"),T.a.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Amp4(h264) "),T.a.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",T.a.createElement("span",{className:O.a.colorOrange},"\u5982\u679C\u4E0A\u4F20\u5230\u5E73\u53F0\u540E\uFF0C\u89C6\u9891\u64AD\u653E\u53EA\u6709\u58F0\u97F3\u6CA1\u6709\u753B\u9762\u3002\u53EF\u4EE5\u4F7F\u7528\u683C\u5F0F\u5DE5\u5382\u8F6C\u6362\u89C6\u9891\u683C\u5F0F\uFF0Cmp4\u7684\u89C6\u9891\u7F16\u7801\u6709\u4E09\u79CD\uFF1AMPEG4(DivX),MPEG4(Xvid),AVC(H264)\uFF0C\u8F6C\u6362\u6210AVC(H264)\u7F16\u7801\uFF0C\u5C31\u80FD\u6B63\u5E38\u64AD\u653E")))))};ze.a=Object(m.a)(function(z){var V=z.user,G=z.loading,Z=z.globalSetting;return{user:V,globalSetting:Z,loading:G}})(j)},sWEp:function(Ve,ze,ae){Ve.exports={wrap:"wrap___3nJXB",title:"title___3AYM5",radioWrap:"radioWrap___dbSML",radio:"radio___3h-_z",colorFF0000:"colorFF0000___2d_ZE",pagination:"pagination___3WP6s"}},vZDz:function(Ve,ze,ae){Ve.exports={contentWrap:"contentWrap___3Fc2r",footer:"footer___4nxVN",radioGroup:"radioGroup___359yE",wrap:"wrap___1OqR3",introName:"introName___3saG-",rating:"rating___3X95K",modalRating:"modalRating___A4qeN"}}}]);