|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[283],{Aky1:function(Ae,ke,ge){"use strict";ge.d(ke,"a",function(){return a});var be=ge("ErOA"),Ee=ge("ppsT"),he=ge.n(Ee),n="",I,T="";function f(i){v(i)}function v(i){I=new he.a.Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:1829848226361863,enableUploadProgress:!1,addFileSuccess:function(r){console.log("addFileSuccess: "+r.file.name),i.addFileSuccess&&i.addFileSuccess(r),I.startUpload()},onUploadstarted:function(r){var e=r.file.name;if(r.videoId){var p="/api/users/".concat(n,"/video_auths.json");Object(be.a)(p,{method:"put",body:{video_id:r.videoId,title:e,file_name:e,virtual_classroom_id:T}}).then(function(d){if(d.status==-1){i.onUploadError&&i.onUploadError(r);return}var c=d.data,w=c.UploadAuth,b=c.UploadAddress,m=c.VideoId;I.setUploadAuthAndAddress(r,w,b)}).catch(function(d){I.deleteFile(I._curIndex),I.nextUpload(),console.log(d)})}else{var o="/api/users/".concat(n,"/video_auths.json"),s="";Object(be.a)(o,{method:"Post",body:{title:s+e,file_name:s+e,virtual_classroom_id:T}}).then(function(d){if(d){var c=d.data,w=c.UploadAuth,b=c.UploadAddress,m=c.VideoId;I.setUploadAuthAndAddress(r,w,b,m)}}).catch(function(d){I.deleteFile(I._curIndex),I.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(r){i.onUploadSucceed&&i.onUploadSucceed(r),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(r,e,o){i.onUploadFailed&&i.onUploadFailed(r),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(r,e,o){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(r,e,o){i.onUploadProgress&&i.onUploadProgress(r,e,o);var s=Math.ceil(o*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(r){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var e="/api/users/".concat(n,"/video_auths.json");Object(be.a)(e,{method:"put",body:{video_id:r.videoId}}).then(function(o){var s=o.data,p=s.UploadAuth;I.resumeUploadWithAuth(p)}).catch(function(o){console.log(o)})},onUploadEnd:function(r){i.onUploadEnd&&i.onUploadEnd(r),console.log("onUploadEnd: uploaded all the files")}}),i.gotUploader&&i.gotUploader(I)}function a(i,l,r){i&&(n=i),l&&(T=l),f(r)}},BU3w:function(Ae,ke,ge){"use strict";ge.d(ke,"a",function(){return T});var be=ge("MNnm"),Ee="rc-util-key";function he(f){if(f.attachTo)return f.attachTo;var v=document.querySelector("head");return v||document.body}function n(f){var v,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(be.a)())return null;var i=document.createElement("style");if((v=a.csp)===null||v===void 0?void 0:v.nonce){var l;i.nonce=(l=a.csp)===null||l===void 0?void 0:l.nonce}i.innerHTML=f;var r=he(a),e=r.firstChild;return a.prepend&&r.prepend?r.prepend(i):a.prepend&&e?r.insertBefore(i,e):r.appendChild(i),i}var I=new Map;function T(f,v){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=he(a);if(!I.has(i)){var l=n("",a),r=l.parentNode;I.set(i,r),r.removeChild(l)}var e=Array.from(I.get(i).children).find(function(c){return c.tagName==="STYLE"&&c[Ee]===v});if(e){var o,s;if(((o=a.csp)===null||o===void 0?void 0:o.nonce)&&e.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var p;e.nonce=(p=a.csp)===null||p===void 0?void 0:p.nonce}return e.innerHTML!==f&&(e.innerHTML=f),e}var d=n(f,a);return d[Ee]=v,d}},E18u:function(Ae,ke){Ae.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAEPVJREFUeF7tnQusXEUZx+c7u1CIb8VijBoVFeTa7szZqxY1SjGioKD4qKj4ABEJKr6KCEVpzL218lAUwRB5iVxFEahoEdHUB4iKuzu7bUpNC74fERVFJOktd+czQ87FFtre3e+e1575n6SBwPy/me/3nX/PmT3nzJDCAQIgsEsCBDYgAAK7JgCD4OwAgd0QgEFweoAADIJzAARkBHAFkXGDKhACMEgghUaaMgIwiIwbVIEQgEECKTTSlBGAQWTcoAqEAAwSSKGRpowADCLjBlUgBGCQQAqNNGUEYBAZN6gCIQCDBFJopCkjAIPIuEEVCAEYJJBCI00ZARhExg2qQAjAIIEUGmnKCMAgMm5QBUIABgmk0EhTRgAGkXGDKhACMEgghUaaMgIwiIwbVIEQgEECKTTSlBGAQWTcoAqEAAwSSKGRpowADCLjBlUgBGCQQAqNNGUEYBAZN6gCIQCDBFJopCkjAIPIuEEVCAEYJJBCI00ZARhExg2qQAjAIIEUGmnKCMAgMm5QBUIABgmk0EhTRgAGkXGDKhACMEgghUaaMgIwiIwbVIEQgEECKTTSlBGAQWTcoAqEAAwSSKGRpowADCLjBlUgBGCQQAqNNGUEYBAZN6gCIQCDBFJopCkjAIPIuEEVCAEYJJBCI00ZARhExg2qQAjAILspdKvVOoCIjiaiJyil9pn9JzPP/vt9SqmNSqnbiejXzrk7FixYsGVsbOyOQM6fyqcJgzykxNZazcyvVEotI6JYeAasV0pNEdGU1vrPwhiQlYAADKKU6vV6j5iZmTkliqJDlVIHpViXu5l5yjk3NT4+/ssU4yJUTgSCN0i73T4miqLlSqlGlsyZ+dparXZBo9FYl2U/iJ0ugWAN0m63l9RqteXM/IZ0kc4Z7azp6enJJUuW/GfOlmhQOIEgDdLtdlcz8ylKqaigCnSjKJpsNBrfKqh/dDsggeAM0u12L2Hm4wbkk3Wzi5VSk8aY32XdEeLLCARlkE6ns5qITpWhykbFzH/0VxOt9UXZ9ICo8yEQjEGstX4ifvZ8YGWsvc45N9lsNtsZ94PwQxAIwiDdbvdYZr50CC5FNb0vmZt8uqgBoN8dCVTeIO12uxlFUWvECv+TZG7ygxEbd+WGW3mDWGv9vf0Jo1g5Zj63Xq9PLl68+F+jOP4qjLnSBhnRq8cO5xURbXDOrYrj+KoqnHCjlkOlDTLKV4+dnEiX+avJokWL7hy1k2yUx1tZg1Th6rGTE+svydzkwlE+6UZp7JU1iLX2LKWUf1peuYOZr0+endxWueRKllCVDbJWKXV4yXinNhwi2uqvJmvWrFm1cuVKl1pgBNpxDlhVHtba3yqlnl7V/LbL65bk2cmNAeSae4qVvIJ0Op0nEtFdudMstsPz+v3+5Pj4+D+KHUa1eq+kQay1ByulflStUs2dDTNvIiL/8uPU3K3RYhACVTXISUqpCwYBIGwzo5SqC7V5yK7wRtFab86jsyr3UUmDtNvtlVEUnZlh4ZYy88eJyH+7Xtbjb4lJzi/rAEdhXDCIoErOuZc3m811/g3hxCh+1ZOyHmuZeTKO45+XdYBlHhcMIqgOM78ijuMfemmyCoq/mrxZECovyf3+J+F+v79qfHzc/zuOAQnAIAOC2r6Zv7XSWt+0/X/r9XrHO+c+rpTaTxAyL4m/ivhJvH9GhGMAAjDIAJAe2iSKosMajcbDnjv0er1nJCYp9dvDzHz+Hnvs4d/r+psg/aAkMIis3K82xtywK6m19k3J3ES68JxsVMOpNidzkyuGk4XVGgYR1JuIjtBaf3d30lar9ZharXa6Uupjgi7ylEwlbwlvyrPTUekLBhFUKoqi1zYajesHkbZarUPr9fqpzHzIIO0LauOfvvu5yXkF9V/abmEQWWmOMsasGUZqrfVXE7+iyqOH0eXZlplvTN4SviXPfsvcFwwiqA4zvzGO42uGlVprn6+UOk0pddSw2rzaE5HzXzDec889k0uXLvVvDAd9wCCy8i8zxlwtkz7w7OSkZBL/VGmMHHS3JW8JD3QrmcN4CukCBhFgd84d3Ww2vyGQPijZsGHDfv1+fwUzHzufODloL0x+7fJfMwZ3wCCCkjPzW+M4/rpA+jCJtfatyW3X89KIl0UMZr4ziqKVWusrs4hf5pgwiKw6x6T5Svmtt976+L333vsTSqkPyYaTj4qZPxPHsX9bIJgDBhGUmojeobX+qkC6W0mn0zmMiPyvXS9JO3aK8b5rjDkixXilDgWDyMrzLmPMV2TSuVX+df1areafnew1d+v8WxDRb7XWz8y/5/x7hEEEzInoOK31ZQLpwJJer/dC55y/7Xr1wKJ8G95tjCnza/6p0IBBBBijKDq+0WhcIpAOLel0Oicnt137Di3OXjBljDkm+26K6wEGkbE/wRjzZZl0eJW19tlKKf+F5NuGV2euOMUYc07mvRTUAQwiAE9EJxax4U232/V/W5/BzPsLhp2ZhJnfGcdxJd8KhkFkp837jDGFLP/ZarX2qdfrZzLz+2VDz0T1uyiKntdoNO7LJHqBQWEQAXzn3AeazeYXBdLUJNZaP3n/pFLqBakFnV+gY40xl88vRPnUMIigJsz8wTiOvyCQpiph5shau5KIVhS4Y+9sTjcYY8r6i5uYOwwiQ/fhMn070el0DiKilUqpQ2XppKZ6gTHmV6lFK0EgGERQBGb+aBzHnxVIM5VYa/2rKv6263GZdrTr4GcbY8r+BeVQaGCQoXA92Li0P222Wq0Dkkn80bLU5Coi6mitm/II5VPCILKanGqM8fuPlPaw1r4zeXbyjBwH+V9jzKNy7C/zrmAQAWIiOk1rvVogzVXS6/UWOuf8A0a/VnEux5577vnssbGxO3LpLIdOYBAZ5BXGmFUyaf6qdrt9RK1W889OMr/9YebD4zj+Xv5ZZtMjDCLgSkSf0FpPCKSFSZi53u12/S9d/ifhzA4iOllrXZkFs2EQwalCRGdqrT8lkBYmYeZa8szkjCwHQUQf0FoX+hA1zfxgEAFNZv5UHMdZbq8gGNWuJcmHWP7qkflTd+fcq5rN5vdTTaDAYDCIAD4zT8Rx7L/VKPVhrX1s8ktWbp/yEtH+Vdq4BwaRneKrjDGZ3svLhvV/lV8fWCnlrxoHzjfWEPpt/X7/kVXaYgEGGaL6s02JaLXW2i8AV7qj1+s9Jflp9/gCBrfRGFPa1VkkPGAQCTWlzjLG+GVES3V0Op3j/A8ISqmnFTSwy4wxxxXUdybdwiAyrOcYY06RSdNXtdvt53pjlGCXq0ONMT9IP8PiIsIgMvafM8Z8RCZNV5V8s+7nGkW9oDib0I+NMUvTza74aDCIrAafN8bk9svQzoaYLITtb6dK8Q2Gc+7EZrN5kQxneVUwiKA2fguzOI5PFkhTkSRbKfirxh6pBJxnEGb+w7Zt2xYtWbLkP/MMVTo5DCIryQXGmNy/CW+324dEUeS/93iZbNjZqKr29Hx7SjCI7Jz5kjEmtzdke73eI/r9/hlEVMZ1cSu9NhYMIjAIEV2ktT5RIB1a0uv1juz3+/4XqjJuCHqHMcav2VXZAwYRlJaZL47j+D0C6cCSjRs3Pml6enoFEeV+KzfoIJl5YRzHfx+0/Si2g0EEVWPmS+M4frdAOpDEWutXUPRzjecMJMi5ETNvjaLoRVprm3PXuXcHg8iQX26MSX1nqGSJUb/9wbtkw8pF5XfDzfSV+VyyGLATGGRAUA9pdoUxxn/zndrR7Xbfy8z+qvHk1IKmG8jvo77cGHNDumHLHQ0GkdXnSmPM22XSHVXdbtc45/xc4w1pxMsiBhFdNjMzs2J8fPyvWcQvc0wYRFadrxlj5r3SurV2eTLXKOtKILcn376ksh+jDHWxKhhEwJ+IrtJav0UgfUDS6XReqpQ6nYheKY2Rg+7z/X5/Ynx8/B859FXaLmAQWWmuNsYsG1a6ZcuWBffee683hv8asZTsmfkXRDRhjFk7bH5VbF/KIs0XtN/jL4qizL4ZZ+Zr4jh+4zDjtNYe7q8aSqkXD6PLqy0ROefc5IIFCybGxsa25dVv2fuBQWQVus4Y8/pBpMl+Hqcxcylej9/ZmInIL7IwobW+ZZCcQmoDg8iq/W1jzOvmkrbb7Tf7/QWJaPFcbQv6//9OJuHnFtR/6buFQQQlIqLvaK2P3JXUWvv05HYq09dRBEPfXnK1c26i2Wyun2ecSsthEFl51xpjXrMzaa/Xe7dzzs81SrmPuP92I5mE57YJqQxxOVQwiKAOzHxjHMeHbS9ttVqLarWaX+lE/POvYCjDSi72k/ADDzzw98MKQ20Pg8gqf5Mx5sFnGMnGNd4cC2XhslUR0YZkEv7NbHuqXnQYRFbTHxpjXrF+/fqD+v2+v53a6e2WLHS6Kmb+bL1en1i8ePG/0o0cRjQYRFBnZl4XRdGP/FyDiPYWhMhD8rNkEn5jHp1VtQ8YRFbZHyulDpZJM1fd7yfhmzdvnly2bFk/894q3kElDdLtdo9i5msrXrudpXdDrVbzt1M/DzD3TFKupEF6vd7+zrlfZ0KshEGZ+Z/JT7fnlXB4Iz2kShrEV6Tb7d7LzI8c6eoMMHhmviqKIv+ayMYBmqPJkAQqaxBr7c+UUi8aksfINCei3/iXC+M4vnRkBj2CA62sQTqdziVEVKmVxmfPL7/skL+lajQafxrBc26khlxZg3S73ROYuWprxXaTlwuvGamzbIQHW1mDJPOQVh5bH+dU/7Onp6cnqrj+bU78RN1U3SAjfxVh5p8mv1BVat8N0dlagKjSBhnlqwgRbfW3U8aYyQLOC3SZEAjBICN3FfHfmyQvF96GM7VYApU3iMdrrf22UmqXHzgVW4Ider8rmYSfX6IxBT2UIAyyadOmJ2zdutX/rXxQias9lSyzE8wbACWuxYNDC8IgyVzkOc65tUT0rJIVZot/Et5oNK4o2bgwnLKuzZRVZay1/sm6X+/psVn1MWTcC5Mv/IJb0nNIToU1D+YKMku43W4fEUWRfz1jn6KoE1E7+YVqTVFjQL+DEQjOILO3W8zs18XNfdURZl7tX0lvNBr3DVYitCqSQJAGmQWerHbojZLH/t43Oec+02w21xVZcPQ9HIGgDTKLqtPp+C2dlxPRU4fDN1DrLc65c6u4h/hA2Y94IxgkKWCn03kiEb1JKeX/zPtzWiJax8zfYeapqu/jN+Ie2O3wYZCd4NmwYcPimZkZv0GO/7PvgCfAXUqpXznnWvV6/fpGo9EZUIdmJSYAg8xRnJtvvvlxe+2118IoihYSkV/3aiEz71ur1f7JzHf7P1EU3am13lziOmNoQgIwiBAcZGEQgEHCqDOyFBKAQYTgIAuDAAwSRp2RpZAADCIEB1kYBGCQMOqMLIUEYBAhOMjCIACDhFFnZCkkAIMIwUEWBgEYJIw6I0shARhECA6yMAjAIGHUGVkKCcAgQnCQhUEABgmjzshSSAAGEYKDLAwCMEgYdUaWQgIwiBAcZGEQgEHCqDOyFBKAQYTgIAuDAAwSRp2RpZAADCIEB1kYBGCQMOqMLIUEYBAhOMjCIACDhFFnZCkkAIMIwUEWBgEYJIw6I0shARhECA6yMAjAIGHUGVkKCcAgQnCQhUEABgmjzshSSAAGEYKDLAwCMEgYdUaWQgIwiBAcZGEQgEHCqDOyFBKAQYTgIAuDAAwSRp2RpZAADCIEB1kYBGCQMOqMLIUEYBAhOMjCIACDhFFnZCkkAIMIwUEWBgEYJIw6I0shARhECA6yMAjAIGHUGVkKCcAgQnCQhUEABgmjzshSSAAGEYKDLAwC/wOaqgUU6rNNBgAAAABJRU5ErkJggg=="},kryb:function(Ae,ke,ge){"use strict";ge.r(ke);var be=ge("sPJy"),Ee=ge("bE4q"),he=ge("T2oS"),n=ge("W9HT"),I=ge("5NDa"),T=ge("5rEg"),f=ge("+L6B"),v=ge("2/Rp"),a=ge("MXD1"),i=ge("CFYs"),l=ge("9og8"),r=ge("2qtc"),e=ge("kLXV"),o=ge("miYZ"),s=ge("tsqr"),p=ge("tJVT"),d=ge("PpiC"),c=ge("k1fw"),w=ge("oBTY"),b=ge("WmNS"),m=ge.n(b),S=ge("q1tI"),x=ge.n(S),h=ge("Ty5D"),_=ge("9kvl"),O=ge("55Ip"),j=ge("E18u"),y=ge.n(j),R=ge("h/US"),P=ge("l7r4"),C=ge.n(P),N=ge("Aky1"),G=ge("jb+D"),H=30,K=1024,ie=function(V,X){var D,L,M=X.payload.uploadInfo,B=M===void 0?{}:M;switch(X.type){case"addVideo":return{videoList:[].concat(Object(w.a)(V.videoList),[{name:B.file.name,size:B.file.size,type:B.file.type,fileHash:B.fileHash,state:B.state,videoId:B.videoId,attachment_id:"",loaded:0,title:""}])};case"removeVideo":return{videoList:V.videoList.filter(function(te){return te.name!==X.payload.name})};case"removeAll":return[];case"updateProgress":return{videoList:V.videoList.map(function(te){return te.name===X.payload.uploadInfo.file.name?Object(c.a)(Object(c.a)({},te),{loaded:X.payload.progressPercent,videoId:B.videoId,fileHash:B.fileHash}):te})};case"updateTitle":return{videoList:(D=V.videoList)===null||D===void 0?void 0:D.map(function(te){return te.name===X.payload.item.name?Object(c.a)(Object(c.a)({},te),{title:X.payload.title}):te})};case"updateImg":return{videoList:(L=V.videoList)===null||L===void 0?void 0:L.map(function(te){return te.name===X.payload.item.name?Object(c.a)(Object(c.a)({},te),{attachment_id:X.payload.attachment_id}):te})};default:return[]}},z=function(V){var X,D=V.user,L=V.userDetail,M=V.globalSetting,B=V.loading,te=V.dispatch,Y=Object(d.a)(V,["user","userDetail","globalSetting","loading","dispatch"]),oe=Object(h.i)(),ne=Object(S.useState)(!1),se=Object(p.a)(ne,2),fe=se[0],J=se[1],Q=Object(S.useReducer)(ie,{videoList:[]}),ee=Object(p.a)(Q,2),F=ee[0],U=ee[1],$=Object(S.useRef)();Object(S.useEffect)(function(){return window.addEventListener("beforeunload",Z),function(){window.removeEventListener("beforeunload",Z)}},[]);var Z=function(le){le.preventDefault(),le.returnValue=""},ue=function(){var le=document.getElementById("fileUpload");le.value=""},k=function(le){var ae,pe,de,ve=le.target.files[0];if(!ve){ue();return}var me=ve.name.toLowerCase();if(me&&me.indexOf(".avi")==-1&&me.indexOf(".flv")==-1&&me.indexOf(".f4v")==-1&&me.indexOf(".m4v")==-1&&me.indexOf(".mov")==-1&&me.indexOf(".mp4")==-1&&me.indexOf(".rmvb")==-1&&me.indexOf(".swf")==-1&&me.indexOf(".webm")==-1&&me.indexOf(".wmv")==-1){s.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),ue();return}if(!((ae=D.userInfo)!==null&&ae!==void 0&&ae.admin||(pe=D.userInfo)!==null&&pe!==void 0&&pe.business)&&ve.size>K*1024*1024){s.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(K,"M")),ue();return}if((de=F.videoList)!==null&&de!==void 0&&de.find(function(ce){return ce.name===ve.name})){s.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),ue();return}u(ve)},t=function(le,ae){e.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:x.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ae?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){ue(),U({type:"removeVideo",payload:{name:le}})}})},u=function(le){var ae='{"Vod":{}}';if(J(!0),$.current){$.current.addFile(le,null,null,null,ae);return}Object(N.a)(oe==null?void 0:oe.username,"",{create:!$,addFileSuccess:function(de){U({type:"addVideo",payload:{uploadInfo:de}})},onUploadProgress:function(de,ve,me){var ce=Math.ceil(me*100);U({type:"updateProgress",payload:{uploadInfo:de,progressPercent:ce}}),ue()},onUploadFailed:function(de){s.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(de){J(!1)},onUploadSucceed:function(de){J(!1)},onUploadError:function(de){J(!1)},gotUploader:function(de){de.addFile(le,null,null,null,ae),$.current=de}})},A=function(){var W=Object(l.a)(m.a.mark(function le(){var ae,pe;return m.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if((ae=F.videoList)!==null&&ae!==void 0&&ae.length){ve.next=3;break}return s.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891"),ve.abrupt("return");case 3:return ve.next=5,Object(G.d)({username:oe.username,videos:F.videoList.map(function(me){return{video_id:me.videoId,title:me.title,attachment_id:me.attachment_id}})});case 5:pe=ve.sent,(pe==null?void 0:pe.status)===0&&_.d.push("/users/".concat(oe.username,"/videos/success"));case 7:case"end":return ve.stop()}},le)}));return function(){return W.apply(this,arguments)}}(),g=(X=F.videoList)===null||X===void 0?void 0:X.length,E=function(){return x.a.createElement("div",null,x.a.createElement("label",{htmlFor:"fileUpload"},x.a.createElement("div",{className:C.a.uploadTop},x.a.createElement("div",{className:C.a.imgWrap},x.a.createElement("div",{className:C.a.imgDiv},x.a.createElement("img",{className:C.a.defaultImg,src:y.a}))),x.a.createElement("div",{className:C.a.uploadTitle},"\u9009\u62E9\u60A8\u8981\u4E0A\u4F20\u7684\u89C6\u9891"))),x.a.createElement("div",{className:C.a.uploadDescription},x.a.createElement("div",null,x.a.createElement("span",{className:C.a.spanTitle},"\u4E0A\u4F20\u89C6\u9891\uFF1A"),"\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",x.a.createElement(O.a,{to:"/users/".concat(oe==null?void 0:oe.username,"/videos/protocol"),className:C.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"),x.a.createElement("div",null,x.a.createElement("span",{className:C.a.spanTitle},"\u4E0A\u4F20\u8BF4\u660E\uFF1A"),"\u76EE\u524D\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u89C6\u9891\u6587\u4EF6\u6700\u5927\u9650\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "),x.a.createElement("div",null,x.a.createElement("span",{className:C.a.spanTitle},"\u89C6\u9891\u89C4\u683C\uFF1A"),"avi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),x.a.createElement("div",null,x.a.createElement("span",{className:C.a.spanTitle},"\u6E29\u99A8\u63D0\u793A\uFF1A"),x.a.createElement("span",{className:C.a.colorOrange},"\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)"))))},q=function(){var le;return x.a.createElement("div",{className:C.a.fileMain},x.a.createElement(n.a,{spinning:fe},(le=F.videoList)===null||le===void 0?void 0:le.map(function(ae,pe){return x.a.createElement("div",{className:C.a.fileWrap},x.a.createElement("div",null,pe+1,". ",ae.name),x.a.createElement("div",{className:C.a.fileProgress},x.a.createElement(i.a,{percent:ae.loaded,status:ae.loaded==100?"normal":"active"}),x.a.createElement("div",{className:C.a.fileCancel},x.a.createElement(v.a,{type:"primary",onClick:function(){return t(ae.name,ae.loaded==100)}},ae.loaded===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20"))),x.a.createElement("div",{className:C.a.fileInputWrap},x.a.createElement("span",{className:"mr5"},"\u6807\u9898"),x.a.createElement(T.a,{value:ae.title,onChange:function(ve){U({type:"updateTitle",payload:{title:ve.target.value,item:ae}})},className:C.a.fileInput,placeholder:"\u6807\u9898\u652F\u6301\u6700\u591A".concat(H,"\u4E2A\u5B57\u7B26"),maxLength:H,addonAfter:x.a.createElement("span",{className:"c-light-black font12"},String(ae.title.length),"/",H)})),x.a.createElement("div",{className:C.a.fileImgWrap},x.a.createElement("aside",{className:"mr5"},"\u4E0A\u4F20\u5C01\u9762\u56FE:"),x.a.createElement(R.a,{value:ae==null?void 0:ae.attachment_id,onChange:function(ve){U({type:"updateImg",payload:{attachment_id:ve,item:ae}})}})))})),x.a.createElement("div",{className:"mt10"},x.a.createElement("label",{htmlFor:"fileUpload",className:"".concat(C.a.continueAdd," current")},"\u7EE7\u7EED\u6DFB\u52A0")),x.a.createElement("div",{className:C.a.description},x.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\u52361G\uFF0C\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20 "),x.a.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),x.a.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",x.a.createElement("span",{className:C.a.colorOrange},"\u4E3A\u4E86\u66F4\u597D\u7684\u64AD\u653E\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u60A8\u4F18\u5148\u4E0A\u4F20MP4\u683C\u5F0F\u3002\u5982\u679C\u60A8\u662F\u81EA\u5DF1\u5F55\u5236\u89C6\u9891\uFF0C\u5EFA\u8BAE\u60A8\u4FDD\u5B58\u7684\u65F6\u5019\u5C06\u89C6\u9891\u7F16\u7801\u8BBE\u7F6E\u4E3AAVC(H264)"))),x.a.createElement("div",{className:C.a.flexRowCenter},x.a.createElement(v.a,{type:"primary",onClick:A},"\u7ACB\u5373\u53D1\u5E03")),x.a.createElement("div",{className:"".concat(C.a.flexRowCenter," mt10")},"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",x.a.createElement(O.a,{to:"/users/".concat(oe==null?void 0:oe.username,"/videos/protocol"),className:C.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"))};return x.a.createElement("div",{style:{padding:"21px 0 0 45px"}},x.a.createElement("section",{className:C.a.bg},x.a.createElement(Ee.a,{className:"mb10 mt10",separator:">"},x.a.createElement(Ee.a.Item,{href:"/users/".concat(oe==null?void 0:oe.username,"/videos")},"\u89C6\u9891"),x.a.createElement(Ee.a.Item,null,"\u4E0A\u4F20\u89C6\u9891")),x.a.createElement("div",{className:C.a.heard},x.a.createElement("div",{className:C.a.videos},"\u4E0A\u4F20\u89C6\u9891"),x.a.createElement("div",{className:C.a.back,onClick:function(){return _.d.push("/users/".concat(oe.username,"/videos"))}},"\u8FD4\u56DE")),g?q():E(),x.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:k,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"})))};ke.default=Object(_.a)(function(re){var V=re.user,X=re.userDetail,D=re.loading,L=re.globalSetting;return{user:V,userDetail:X,globalSetting:L,loading:D.models.index}})(z)},l7r4:function(Ae,ke,ge){Ae.exports={bg:"bg___33gb9",heard:"heard___2B7uQ",videos:"videos___28yr2",back:"back___38J8G",uploadTop:"uploadTop___2LP8s",imgWrap:"imgWrap___1YZrz",imgDiv:"imgDiv___1jwIK",defaultImg:"defaultImg___2SiY8",hoverImg:"hoverImg___2H19s",uploadTitle:"uploadTitle___iX_Yi",colorBlue:"colorBlue___3pbIB",uploadDescription:"uploadDescription___2DLGo",spanTitle:"spanTitle___3EM52",colorOrange:"colorOrange___1Bcga",fileMain:"fileMain___1SOrt",fileWrap:"fileWrap___SwTG9",fileProgress:"fileProgress___29GYn",fileCancel:"fileCancel___1RjoT",fileInputWrap:"fileInputWrap___2FSoU",fileImgWrap:"fileImgWrap___htENr",fileInput:"fileInput___1_K3Q",flexRowCenter:"flexRowCenter___17MT-",continueAdd:"continueAdd___38iNA"}},ppsT:function(Ae,ke,ge){(function(be){var Ee,Ee;!function(he){if(!0)window.OSS=he(),Ae.exports=he();else var n}(function(){var he;return function(){function n(I,T,f){function v(l,r){if(!T[l]){if(!I[l]){var e=typeof Ee=="function"&&Ee;if(!r&&e)return Ee(l,!0);if(a)return a(l,!0);var o=new Error("Cannot find module '"+l+"'");throw o.code="MODULE_NOT_FOUND",o}var s=T[l]={exports:{}};I[l][0].call(s.exports,function(p){return v(I[l][1][p]||p)},s,s.exports,n,I,T,f)}return T[l].exports}for(var a=typeof Ee=="function"&&Ee,i=0;i<f.length;i++)v(f[i]);return v}return n}()({1:[function(n,I,T){"use strict";var f=n("./browser/client");f.Buffer=n("buffer").Buffer,f.co=n("co"),f.urllib=n("../shims/xhr"),f.version=n("./browser/version").version,I.exports=f},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,I,T){(function(f,v){"use strict";function a(X){return X&&X.__esModule?X:{default:X}}function i(X,D){return X[D]||X[D.toLowerCase()]}function l(X,D){var L=y.parse(X);if(!L.protocol){var M=D?"https://":"http://";L=y.parse(M+X)}if(L.protocol!=="http:"&&L.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return L}function r(X,D,L){var M=L?"https://":"http://",B=D?"-internal.aliyuncs.com":".aliyuncs.com";return X.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(B=".aliyuncs.com"),y.parse(M+X+B)}function e(){return document&&document.location&&document.location.protocol==="https:"}function o(X,D){if(!(this instanceof o))return new o(X,D);X&&X.inited?this.options=X:this.options=o.initOptions(X),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=N,this.agent=this.options.agent||re),this.ctx=D,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var s=n("babel-runtime/regenerator"),p=a(s),d=n("babel-runtime/core-js/object/keys"),c=a(d),w=n("debug")("ali-oss"),b=n("./../../shims/crypto/crypto.js"),m=n("path"),S=n("copy-to"),x=n("mime"),h=n("xml2js"),_=n("humanize-ms"),O=n("agentkeepalive"),j=n("merge-descriptors"),y=n("url"),R=n("is-type-of"),P=n("platform"),C=n("utility"),N=n("urllib"),G=n("./version"),H=n("dateformat"),K=n("bowser"),ie=n("../common/signUtils"),z=n("../common/utils"),re=new O;I.exports=o,o.initOptions=function(X){if(!X||!X.accessKeyId||!X.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var D=e(),L={region:"oss-cn-hangzhou",internal:!1,secure:D,bucket:null,endpoint:null,cname:!1};if((0,c.default)(X).forEach(function(M){X[M]!==void 0&&(L[M]=X[M])}),L.accessKeyId=L.accessKeyId.trim(),L.accessKeySecret=L.accessKeySecret.trim(),L.timeout&&(L.timeout=_(L.timeout)),L.endpoint)L.endpoint=l(L.endpoint,L.secure);else{if(!L.region)throw new Error("require options.endpoint or options.region");L.endpoint=r(L.region,L.internal,L.secure)}return L.inited=!0,L};var V=o.prototype;j(V,n("./object")),j(V,n("./managed_upload")),j(V,n("../common/multipart")),j(V,n("../common/thunkpool.js")),o.Wrapper=n("./wrapper"),V.signature=function(X){return w("authorization stringToSign: %s",X),ie.computeSignature(this.options.accessKeySecret,X)},V.authorization=function(X,D,L,M){var B=ie.buildCanonicalString(X.toUpperCase(),D,{headers:M,parameters:L});return ie.authorization(this.options.accessKeyId,this.options.accessKeySecret,B)},V.createRequest=function(X){var D={"x-oss-date":H(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(D["x-oss-security-token"]=this.options.stsToken),S(X.headers).to(D),i(D,"Content-Type")||(X.mime===x.default_type&&(X.mime=""),X.mime&&X.mime.indexOf("/")>0?D["Content-Type"]=X.mime:D["Content-Type"]=x.getType(X.mime||m.extname(X.object||""))||"application/octet-stream"),X.content&&(D["Content-Md5"]=b.createHash("md5").update(new v(X.content,"utf8")).digest("base64"),D["Content-Length"]||(D["Content-Length"]=X.content.length));var L=this._getResource(X);D.authorization=this.authorization(X.method,L,X.subres,D);var M=this._getReqUrl(X);w("request %s %s, with headers %j, !!stream: %s",X.method,M,D,!!X.stream);var B=X.timeout||this.options.timeout;return{url:M,params:{agent:this.agent,method:X.method,content:X.content,stream:X.stream,headers:D,timeout:B,writeStream:X.writeStream,customResponse:X.customResponse,ctx:X.ctx||this.ctx}}},V.request=p.default.mark(function X(D){var L,M,B,te;return p.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return L=this.createRequest(D),M=void 0,B=void 0,Y.prev=3,Y.next=6,this.urllib.request(L.url,L.params);case 6:M=Y.sent,w("response %s %s, got %s, headers: %j",D.method,L.url,M.status,M.headers),Y.next=13;break;case 10:Y.prev=10,Y.t0=Y.catch(3),B=Y.t0;case 13:if(te=void 0,!M||!D.successStatuses||D.successStatuses.indexOf(M.status)!==-1){Y.next=26;break}return Y.next=17,this.requestError(M);case 17:if(te=Y.sent,te.code!=="RequestTimeTooSkewed"){Y.next=23;break}return this.options.amendTimeSkewed=+new Date(te.serverTime)-new Date,Y.next=22,this.request(D);case 22:return Y.abrupt("return",Y.sent);case 23:te.params=D,Y.next=30;break;case 26:if(!B){Y.next=30;break}return Y.next=29,this.requestError(B);case 29:te=Y.sent;case 30:if(!te){Y.next=32;break}throw te;case 32:if(!D.xmlResponse){Y.next=36;break}return Y.next=35,this.parseXML(M.data);case 35:M.data=Y.sent;case 36:return Y.abrupt("return",M);case 37:case"end":return Y.stop()}},X,this,[[3,10]])}),V._getResource=function(X){var D="/";return X.bucket&&(D+=X.bucket+"/"),X.object&&(D+=X.object),D},V._isIP=function(X){return z._isIP(X)},V._escape=function(X){return C.encodeURIComponent(X).replace(/%2F/g,"/")},V._getReqUrl=function(X){var D={};S(this.options.endpoint).to(D);var L=this._isIP(D.hostname),M=this.options.cname;!X.bucket||M||L||(D.host=X.bucket+"."+D.host);var B="/";X.bucket&&L&&(B+=X.bucket+"/"),X.object&&(B+=this._escape(X.object).replace(/\+/g,"%2B")),D.pathname=B;var te={};if(X.query&&j(te,X.query),X.subres){var Y={};R.string(X.subres)?Y[X.subres]="":R.array(X.subres)?X.subres.forEach(function(oe){Y[oe]=""}):Y=X.subres,j(te,Y)}return D.query=te,y.format(D)},V._getUserAgent=function(){var X=f&&f.browser?"js":"nodejs",D="aliyun-sdk-"+X+"/"+G.version,L=P.description;return!L&&f&&(L="Node.js "+f.version.slice(1)+" on "+f.platform+" "+f.arch),this._checkUserAgent(D+" "+L)},V._checkUserAgent=function(X){return X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},V.checkBrowserAndVersion=function(X,D){return K.name===X&&K.version.split(".")[0]===D},V.parseXML=function(X){return function(D){v.isBuffer(X)&&(X=X.toString()),h.parseString(X,{explicitRoot:!1,explicitArray:!1},D)}},V.requestError=p.default.mark(function X(D){var L,M,B,te;return p.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(L=null,D.data&&D.data.length){Y.next=5;break}D.status===-1||D.status===-2?(L=new Error(D.message),L.name=D.name,L.status=D.status,L.code=D.name):(D.status===404?(L=new Error("Object not exists"),L.name="NoSuchKeyError",L.status=404,L.code="NoSuchKey"):D.status===412?(L=new Error("Pre condition failed"),L.name="PreconditionFailedError",L.status=412,L.code="PreconditionFailed"):(L=new Error("Unknow error, status: "+D.status),L.name="UnknowError",L.status=D.status),L.requestId=D.headers["x-oss-request-id"],L.host=""),Y.next=30;break;case 5:return M=String(D.data),w("request response error data: %s",M),B=void 0,Y.prev=8,Y.next=11,this.parseXML(M)||{};case 11:B=Y.sent,Y.next=21;break;case 14:return Y.prev=14,Y.t0=Y.catch(8),w(M),Y.t0.message+=`
|
|
|
raw xml: `+M,Y.t0.status=D.status,Y.t0.requestId=D.headers["x-oss-request-id"],Y.abrupt("return",Y.t0);case 21:te=B.Message||"unknow request error, status: "+D.status,B.Condition&&(te+=" (condition: "+B.Condition+")"),L=new Error(te),L.name=B.Code?B.Code+"Error":"UnknowError",L.status=D.status,L.code=B.Code,L.requestId=B.RequestId,L.hostId=B.HostId,L.serverTime=B.ServerTime;case 30:return w("generate error %j",L),Y.abrupt("return",L);case 32:case"end":return Y.stop()}},X,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,I,T){(function(f){"use strict";function v(S){return S&&S.__esModule?S:{default:S}}function a(S,x){if(!(this instanceof a))return new a(S,x);m.call(this,x),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var i=n("babel-runtime/core-js/array/from"),l=v(i),r=n("babel-runtime/regenerator"),e=v(r),o=n("is-type-of"),s=n("util"),p=n("path"),d=n("mime"),c=n("copy-to"),w=T;w.multipartUpload=e.default.mark(function S(x,h,_){var O,j,y,R,P,C,N,G,H;return e.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){K.next=6;break}return K.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return K.abrupt("return",K.sent);case 6:return O=102400,_.mime||(o.file(h)?_.mime=d.getType(p.extname(h.name)):o.blob(h)?_.mime=h.type:_.mime=d.getType(p.extname(h))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),K.next=12,this._getFileSize(h);case 12:if(!((j=K.sent)<O)){K.next=25;break}return y=this._createStream(h,0,j),_.contentLength=j,K.next=18,this.putStream(x,y,_);case 18:if(R=K.sent,!_||!_.progress){K.next=22;break}return K.next=22,_.progress(1);case 22:return P={res:R.res,bucket:this.options.bucket,name:x,etag:R.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(P.data=R.data),K.abrupt("return",P);case 25:if(!(_.partSize&&_.partSize<O)){K.next=27;break}throw new Error("partSize must not be smaller than "+O);case 27:return K.next=29,this.initMultipartUpload(x,_);case 29:if(C=K.sent,N=C.uploadId,G=this._getPartSize(j,_.partSize),H={file:h,name:x,fileSize:j,partSize:G,uploadId:N,doneParts:[]},!_||!_.progress){K.next=36;break}return K.next=36,_.progress(0,H,C.res);case 36:return K.next=38,this._resumeMultipart(H,_);case 38:return K.abrupt("return",K.sent);case 39:case"end":return K.stop()}},S,this)}),w._resumeMultipart=e.default.mark(function S(x,h){var _,O,j,y,R,P,C,N,G,H,K,ie,z,re,V,X,D,L,M,B,te;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(_=x.file,O=x.fileSize,j=x.partSize,y=x.uploadId,R=x.doneParts,P=x.name,C=[],R.length>0&&c(R).to(C),N=this._divideParts(O,j),G=N.length,H=!1,K=e.default.mark(function oe(ne,se){var fe,J,Q;return e.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(ne.isCancel()){ee.next=21;break}return ee.prev=1,fe=N[se-1],J={stream:ne._createStream(_,fe.start,fe.end),size:fe.end-fe.start},ee.next=6,ne._uploadPart(P,y,se,J);case 6:if(Q=ee.sent,ne.isCancel()||H){ee.next=13;break}if(x.doneParts.push({number:se,etag:Q.res.headers.etag}),C.push({number:se,etag:Q.res.headers.etag}),!h||!h.progress){ee.next=13;break}return ee.next=13,h.progress(R.length/G,x,Q.res);case 13:ee.next=21;break;case 15:if(ee.prev=15,ee.t0=ee.catch(1),ne.isCancel()){ee.next=21;break}throw ne.cancel(),ee.t0.partNum=se,ee.t0;case 21:case"end":return ee.stop()}},oe,this,[[1,15]])}),ie=(0,l.default)(new Array(G),function(oe,ne){return ne+1}),z=C.map(function(oe){return oe.number}),re=ie.filter(function(oe){return z.indexOf(oe)<0}),V=5,X=h.parallel||V,!this.checkBrowserAndVersion("Internet Explorer","10")&&X!==1){Y.next=26;break}D=0;case 16:if(!(D<re.length)){Y.next=24;break}if(!this.isCancel()){Y.next=19;break}throw this._makeCancelEvent();case 19:return Y.next=21,K(this,re[D]);case 21:D++,Y.next=16;break;case 24:Y.next=40;break;case 26:for(L=[],M=0;M<re.length;M++)L.push(K(this,re[M]));return Y.next=30,this._thunkPool(L,X);case 30:if(B=Y.sent,H=!0,!(B&&B.length>0)){Y.next=37;break}throw this.resetCancelFlag(),te=B[0],te.message="Failed to upload some parts with error: "+te.toString()+" part_num: "+te.partNum,te;case 37:if(!this.isCancel()){Y.next=40;break}throw L=null,this._makeCancelEvent();case 40:return Y.next=42,this.completeMultipartUpload(P,y,C,h);case 42:return Y.abrupt("return",Y.sent);case 43:case"end":return Y.stop()}},S,this)}),o.file=function(S){return typeof File!="undefined"&&S instanceof File},o.blob=function(S){return typeof Blob!="undefined"&&S instanceof Blob},w._getFileSize=e.default.mark(function S(x){var h;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!o.buffer(x)){_.next=4;break}return _.abrupt("return",x.length);case 4:if(!o.blob(x)&&!o.file(x)){_.next=6;break}return _.abrupt("return",x.size);case 6:if(!o.string(x)){_.next=11;break}return _.next=9,this._statFile(x);case 9:return h=_.sent,_.abrupt("return",h.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return _.stop()}},S,this)});var b=n("stream"),m=b.Readable;s.inherits(a,m),a.prototype.readFileAndPush=function(S){if(this.fileBuffer)for(var x=!0;x&&this.fileBuffer&&this.start<this.fileBuffer.length;){var h=this.start,_=h+S;_=_>this.fileBuffer.length?this.fileBuffer.length:_,this.start=_,x=this.push(this.fileBuffer.slice(h,_))}},a.prototype._read=function(S){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);S=S||16384;var x=this;this.reader.onload=function(h){x.fileBuffer=new f(new Uint8Array(h.target.result)),x.file=null,x.readFileAndPush(S)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(S)},w._createStream=function(S,x,h){if(o.blob(S)||o.file(S))return new a(S.slice(x,h));throw new Error("_createStream requires File/String.")},w._getPartSize=function(S,x){return x?Math.max(Math.ceil(S/1e4),x):1048576},w._divideParts=function(S,x){for(var h=Math.ceil(S/x),_=[],O=0;O<h;O++){var j=x*O,y=Math.min(j+x,S);_.push({start:j,end:y})}return _},w._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,I,T){"use strict";function f(x){return x&&x.__esModule?x:{default:x}}var v=n("babel-runtime/core-js/object/keys"),a=f(v),i=n("babel-runtime/regenerator"),l=f(i),r=n("debug")("ali-oss:object"),e=n("utility"),o=n("fs"),s=n("is-type-of"),p=n("url"),d=n("copy-to"),c=n("path"),w=n("mime"),b=n("../common/callback"),m=n("../common/signUtils"),S=T;S.append=l.default.mark(function x(h,_,O){var j;return l.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",y.next=6,this.put(h,_,O);case 6:return j=y.sent,j.nextAppendPosition=j.res.headers["x-oss-next-append-position"],y.abrupt("return",j);case 9:case"end":return y.stop()}},x,this)}),S.put=l.default.mark(function x(h,_,O){var j,y,R,P,C,N;return l.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(j=void 0,O=O||{},!s.buffer(_)){G.next=6;break}j=_,G.next=18;break;case 6:if(!s.blob(_)&&!s.file(_)){G.next=17;break}return O.mime||(s.file(_)?O.mime=w.getType(c.extname(_.name)):O.mime=_.type),y=this._createStream(_,0,_.size),G.next=11,this._getFileSize(_);case 11:return O.contentLength=G.sent,G.next=14,this.putStream(h,y,O);case 14:return G.abrupt("return",G.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),R=O.method||"PUT",P=this._objectRequestParams(R,h,O),b.encodeCallback(P,O),P.mime=O.mime,P.content=j,P.successStatuses=[200],G.next=28,this.request(P);case 28:return C=G.sent,N={name:h,url:this._objectUrl(h),res:C.res},P.headers&&P.headers["x-oss-callback"]&&(N.data=JSON.parse(C.data.toString())),G.abrupt("return",N);case 32:case"end":return G.stop()}},x,this)}),S.putStream=l.default.mark(function x(h,_,O){var j,y,R,P;return l.default.wrap(function(C){for(;;)switch(C.prev=C.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),j=O.method||"PUT",y=this._objectRequestParams(j,h,O),b.encodeCallback(y,O),y.mime=O.mime,y.stream=_,y.successStatuses=[200],C.next=12,this.request(y);case 12:return R=C.sent,P={name:h,url:this._objectUrl(h),res:R.res},y.headers&&y.headers["x-oss-callback"]&&(P.data=JSON.parse(R.data.toString())),C.abrupt("return",P);case 16:case"end":return C.stop()}},x,this)}),S.head=l.default.mark(function x(h,_){var O,j,y;return l.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return O=this._objectRequestParams("HEAD",h,_),O.successStatuses=[200,304],R.next=4,this.request(O);case 4:return j=R.sent,y={meta:null,res:j.res,status:j.status},j.status===200&&(0,a.default)(j.headers).forEach(function(P){P.indexOf("x-oss-meta-")===0&&(y.meta||(y.meta={}),y.meta[P.substring(11)]=j.headers[P])}),R.abrupt("return",y);case 8:case"end":return R.stop()}},x,this)}),S.get=l.default.mark(function x(h,_,O){var j,y,R,P;return l.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return j=null,y=!1,s.writableStream(_)?j=_:s.string(_)?(j=o.createWriteStream(_),y=!0):O=_,O=O||{},O.process&&(O.subres=O.subres||{},O.subres["x-oss-process"]=O.process),R=void 0,C.prev=6,P=this._objectRequestParams("GET",h,O),P.writeStream=j,P.successStatuses=[200,206,304],C.next=12,this.request(P);case 12:R=C.sent,y&&j.destroy(),C.next=24;break;case 16:if(C.prev=16,C.t0=C.catch(6),!y){C.next=23;break}return j.destroy(),r("get error: %s, delete the exists file %s",C.t0,_),C.next=23,this._deleteFileSafe(_);case 23:throw C.t0;case 24:return C.abrupt("return",{res:R.res,content:R.data});case 25:case"end":return C.stop()}},x,this,[[6,16]])}),S.getStream=l.default.mark(function x(h,_){var O,j;return l.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},O=this._objectRequestParams("GET",h,_),O.customResponse=!0,O.successStatuses=[200,206,304],y.next=6,this.request(O);case 6:return j=y.sent,y.abrupt("return",{stream:j.res,res:{status:j.status,headers:j.headers}});case 8:case"end":return y.stop()}},x,this)}),S.delete=l.default.mark(function x(h,_){var O,j;return l.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return O=this._objectRequestParams("DELETE",h,_),O.successStatuses=[204],y.next=4,this.request(O);case 4:return j=y.sent,y.abrupt("return",{res:j.res});case 6:case"end":return y.stop()}},x,this)}),S.deleteMulti=l.default.mark(function x(h,_){var O,j,y,R,P,C;return l.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:for(_=_||{},O=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,_.quiet?O+=` <Quiet>true</Quiet>
|
|
|
`:O+=` <Quiet>false</Quiet>
|
|
|
`,j=0;j<h.length;j++)O+=" <Object><Key>"+e.escape(this._objectName(h[j]))+`</Key></Object>
|
|
|
`;return O+="</Delete>",r("delete multi objects: %s",O),_.subres="delete",y=this._objectRequestParams("POST","",_),y.mime="xml",y.content=O,y.xmlResponse=!0,y.successStatuses=[200],N.next=14,this.request(y);case 14:return R=N.sent,P=R.data,C=P&&P.Deleted||null,C&&(Array.isArray(C)||(C=[C]),C=C.map(function(G){return G.Key})),N.abrupt("return",{res:R.res,deleted:C});case 19:case"end":return N.stop()}},x,this)}),S.copy=l.default.mark(function x(h,_,O){var j,y,R;return l.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return O=O||{},O.headers=O.headers||{},(0,a.default)(O.headers).forEach(function(C){O.headers["x-oss-copy-source-"+C.toLowerCase()]=O.headers[C]}),O.meta&&(O.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(O.meta,O.headers),_=_[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(_):"/"+encodeURIComponent(_.slice(1)),O.headers["x-oss-copy-source"]=_,j=this._objectRequestParams("PUT",h,O),j.xmlResponse=!0,j.successStatuses=[200,304],P.next=12,this.request(j);case 12:return y=P.sent,R=y.data,R&&(R={etag:R.ETag,lastModified:R.LastModified}),P.abrupt("return",{data:R,res:y.res});case 16:case"end":return P.stop()}},x,this)}),S.putMeta=l.default.mark(function x(h,_,O){return l.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,this.copy(h,h,{meta:_||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return j.abrupt("return",j.sent);case 3:case"end":return j.stop()}},x,this)}),S.list=l.default.mark(function x(h,_){var O,j,y,R,P;return l.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return O=this._objectRequestParams("GET","",_),O.query=h,O.xmlResponse=!0,O.successStatuses=[200],C.next=6,this.request(O);case 6:return j=C.sent,y=j.data.Contents,R=this,y&&(Array.isArray(y)||(y=[y]),y=y.map(function(N){return{name:N.Key,url:R._objectUrl(N.Key),lastModified:N.LastModified,etag:N.ETag,type:N.Type,size:Number(N.Size),storageClass:N.StorageClass,owner:{id:N.Owner.ID,displayName:N.Owner.DisplayName}}})),P=j.data.CommonPrefixes||null,P&&(Array.isArray(P)||(P=[P]),P=P.map(function(N){return N.Prefix})),C.abrupt("return",{res:j.res,objects:y,prefixes:P,nextMarker:j.data.NextMarker||null,isTruncated:j.data.IsTruncated==="true"});case 13:case"end":return C.stop()}},x,this)}),S.putACL=l.default.mark(function x(h,_,O){var j,y;return l.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=_,h=this._objectName(h),j=this._objectRequestParams("PUT",h,O),j.successStatuses=[200],R.next=9,this.request(j);case 9:return y=R.sent,R.abrupt("return",{res:y.res});case 11:case"end":return R.stop()}},x,this)}),S.getACL=l.default.mark(function x(h,_){var O,j;return l.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},_.subres="acl",h=this._objectName(h),O=this._objectRequestParams("GET",h,_),O.successStatuses=[200],O.xmlResponse=!0,y.next=8,this.request(O);case 8:return j=y.sent,y.abrupt("return",{acl:j.data.AccessControlList.Grant,owner:{id:j.data.Owner.ID,displayName:j.data.Owner.DisplayName},res:j.res});case 10:case"end":return y.stop()}},x,this)}),S.restore=l.default.mark(function x(h,_){var O,j;return l.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return _=_||{},_.subres="restore",O=this._objectRequestParams("POST",h,_),O.successStatuses=[202],y.next=6,this.request(O);case 6:return j=y.sent,y.abrupt("return",{res:j.res});case 8:case"end":return y.stop()}},x,this)}),S.signatureUrl=function(x,h){h=h||{},x=this._objectName(x),h.method=h.method||"GET";var _=e.timestamp()+(h.expires||1800),O={bucket:this.options.bucket,object:x},j=this._getResource(O);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var y=m._signatureForURL(this.options.accessKeySecret,h,j,_),R=p.parse(this._getReqUrl(O));return R.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:y.Signature},d(y.subResource).to(R.query),R.format()},S.getObjectUrl=function(x,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(x))},S._objectUrl=function(x){return this._getReqUrl({bucket:this.options.bucket,object:x})},S.generateObjectUrl=function(x,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var _=p.parse(h),O=this.options.bucket;_.hostname=O+"."+_.hostname,_.host=O+"."+_.host,h=_.format()}return h+this._escape(this._objectName(x))},S._objectRequestParams=function(x,h,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},h=this._objectName(h);var O={object:h,bucket:this.options.bucket,method:x,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(O.headers={},d(_.headers).to(O.headers)),O},S._objectName=function(x){return x.replace(/^\/+/,"")},S._statFile=function(x){return function(h){o.stat(x,h)}},S._convertMetaToHeaders=function(x,h){x&&(0,a.default)(x).forEach(function(_){h["x-oss-meta-"+_]=x[_]})},S._deleteFileSafe=function(x){return function(h){o.exists(x,function(_){_?o.unlink(x,function(O){O&&r("unlink %j error: %s",x,O),h()}):h()})}}},{"../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,I,T){"use strict";T.version="5.3.1"},{}],6:[function(n,I,T){"use strict";function f(c){return c&&c.__esModule?c:{default:c}}function v(c){return c&&typeof c.next=="function"&&typeof c.throw=="function"}function a(c){if(!c)return!1;var w=c.constructor;return!!w&&(w.name==="GeneratorFunction"||w.displayName==="GeneratorFunction"||v(w.prototype)||v(c.prototype))}function i(c,w){var b=new c(w),m=(0,s.default)(b),S=(0,s.default)((0,e.default)(b));m.concat(S).forEach(function(x){a(b[x])?this[x]=p.wrap(b[x]).bind(b):this[x]=b[x]},this)}function l(c){if(!(this instanceof l))return new l(c);i.call(this,d,c)}var r=n("babel-runtime/core-js/object/get-prototype-of"),e=f(r),o=n("babel-runtime/core-js/object/keys"),s=f(o),p=n("co"),d=n("./client");I.exports=l,l.STS=function c(w){if(!(this instanceof c))return new c(w);i.call(this,d.STS,w)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,I,T){(function(f){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}var a=n("babel-runtime/core-js/object/keys"),i=v(a),l=n("babel-runtime/core-js/json/stringify"),r=v(l);T.encodeCallback=function(e,o){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&o.callback){var s={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(s.callbackHost=o.callback.host),o.callback.contentType&&(s.callbackBodyType=o.callback.contentType);var p=new f((0,r.default)(s)).toString("base64");if(e.headers["x-oss-callback"]=p,o.callback.customValue){var d={};(0,i.default)(o.callback.customValue).forEach(function(c){d["x:"+c]=o.callback.customValue[c]}),e.headers["x-oss-callback-var"]=new f((0,r.default)(d)).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,I,T){"use strict";var f=n("babel-runtime/regenerator"),v=function(r){return r&&r.__esModule?r:{default:r}}(f),a=n("copy-to"),i=n("./callback"),l=T;l.listUploads=v.default.mark(function r(e,o){var s,p,d,c;return v.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return o=o||{},s={},a(o).to(s),s.subres="uploads",p=this._objectRequestParams("GET","",s),p.query=e,p.xmlResponse=!0,p.successStatuses=[200],w.next=10,this.request(p);case 10:return d=w.sent,c=d.data.Upload||[],Array.isArray(c)||(c=[c]),c=c.map(function(b){return{name:b.Key,uploadId:b.UploadId,initiated:b.Initiated}}),w.abrupt("return",{res:d.res,uploads:c,bucket:d.data.Bucket,nextKeyMarker:d.data.NextKeyMarker,nextUploadIdMarker:d.data.NextUploadIdMarker,isTruncated:d.data.IsTruncated==="true"});case 15:case"end":return w.stop()}},r,this)}),l.listParts=v.default.mark(function r(e,o,s,p){var d,c,w;return v.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=p||{},d={},a(p).to(d),d.subres={uploadId:o},c=this._objectRequestParams("GET",e,d),c.query=s,c.xmlResponse=!0,c.successStatuses=[200],b.next=10,this.request(c);case 10:return w=b.sent,b.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return b.stop()}},r,this)}),l.abortMultipartUpload=v.default.mark(function r(e,o,s){var p,d,c;return v.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return this.cancel(),s=s||{},p={},a(s).to(p),p.subres={uploadId:o},d=this._objectRequestParams("DELETE",e,p),d.successStatuses=[204],w.next=9,this.request(d);case 9:return c=w.sent,w.abrupt("return",{res:c.res});case 11:case"end":return w.stop()}},r,this)}),l.initMultipartUpload=v.default.mark(function r(e,o){var s,p,d;return v.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=o||{},s={},a(o).to(s),s.headers=s.headers||{},this._convertMetaToHeaders(o.meta,s.headers),s.subres="uploads",p=this._objectRequestParams("POST",e,s),p.mime=o.mime,p.xmlResponse=!0,p.successStatuses=[200],c.next=12,this.request(p);case 12:return d=c.sent,c.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return c.stop()}},r,this)}),l.uploadPart=v.default.mark(function r(e,o,s,p,d,c,w){var b;return v.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return b={stream:this._createStream(p,d,c),size:c-d},m.next=3,this._uploadPart(e,o,s,b,w);case 3:return m.abrupt("return",m.sent);case 4:case"end":return m.stop()}},r,this)}),l.completeMultipartUpload=v.default.mark(function r(e,o,s,p){var d,c,w,b,m,S,x,h;return v.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(d=s.concat().sort(function(O,j){return O.number-j.number}).filter(function(O,j,y){return!j||O.number!==y[j-1].number}),c=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,w=0;w<d.length;w++)b=d[w],c+=`<Part>
|
|
|
`,c+="<PartNumber>"+b.number+`</PartNumber>
|
|
|
`,c+="<ETag>"+b.etag+`</ETag>
|
|
|
`,c+=`</Part>
|
|
|
`;return c+="</CompleteMultipartUpload>",p=p||{},m={},a(p).to(m),m.subres={uploadId:o},S=this._objectRequestParams("POST",e,m),i.encodeCallback(S,m),S.mime="xml",S.content=c,S.headers&&S.headers["x-oss-callback"]||(S.xmlResponse=!0),S.successStatuses=[200],_.next=16,this.request(S);case 16:return x=_.sent,h={res:x.res,bucket:S.bucket,name:e,etag:x.res.headers.etag},S.headers&&S.headers["x-oss-callback"]&&(h.data=JSON.parse(x.data.toString())),_.abrupt("return",h);case 20:case"end":return _.stop()}},r,this)}),l._uploadPart=v.default.mark(function r(e,o,s,p,d){var c,w,b;return v.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return d=d||{},c={},a(d).to(c),c.headers={"Content-Length":p.size},c.subres={partNumber:s,uploadId:o},w=this._objectRequestParams("PUT",e,c),w.mime=c.mime,w.stream=p.stream,w.successStatuses=[200],m.next=11,this.request(w);case 11:return b=m.sent,p.stream=null,w.stream=null,m.abrupt("return",{name:e,etag:b.res.headers.etag,res:b.res});case 15:case"end":return m.stop()}},r,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,I,T){(function(f){"use strict";function v(s){return s&&s.__esModule?s:{default:s}}var a=n("babel-runtime/core-js/json/stringify"),i=v(a),l=n("babel-runtime/core-js/object/keys"),r=v(l),e=n("./../../shims/crypto/crypto.js"),o=n("is-type-of");T.buildCanonicalizedResource=function(s,p){var d=""+s,c="?";if(o.string(p)&&p.trim()!=="")d+=c+p;else if(o.array(p))p.sort(),d+=c+p.join("&");else if(p){var w=function(m,S){return m[0]>S[0]?1:m[0]<S[0]?-1:0},b=function(m){d+=c+m,p[m]&&(d+="="+p[m]),c="&"};(0,r.default)(p).sort(w).forEach(b)}return d},T.buildCanonicalString=function(s,p,d,c){d=d||{};var w=d.headers||{},b=[],m={},S=[s.toUpperCase(),w["Content-Md5"]||"",w["Content-Type"]||w["Content-Type".toLowerCase()],c||w["x-oss-date"]];return(0,r.default)(w).forEach(function(x){var h=x.toLowerCase();h.indexOf("x-oss-")===0&&(m[h]=String(w[x]).trim())}),(0,r.default)(m).sort().forEach(function(x){b.push(x+":"+m[x])}),S=S.concat(b),S.push(this.buildCanonicalizedResource(p,d.parameters)),S.join(`
|
|
|
`)},T.computeSignature=function(s,p){return e.createHmac("sha1",s).update(new f(p,"utf8")).digest("base64")},T.authorization=function(s,p,d){return"OSS "+s+":"+this.computeSignature(p,d)},T._signatureForURL=function(s,p,d,c){var w={},b={};if(p.process&&(b["x-oss-process"]=p.process),p.response&&(0,r.default)(p.response).forEach(function(h){var _="response-"+h.toLowerCase();b[_]=p.response[h]}),(0,r.default)(p).forEach(function(h){var _=h.toLowerCase(),O=p[h];_.indexOf("x-oss-")===0?w[_]=O:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?w[h]=O:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(b[_]=O)}),Object.prototype.hasOwnProperty.call(p,"security-token")&&(b["security-token"]=p["security-token"]),Object.prototype.hasOwnProperty.call(p,"callback")){var m={callbackUrl:encodeURI(p.callback.url),callbackBody:p.callback.body};if(p.callback.host&&(m.callbackHost=p.callback.host),p.callback.contentType&&(m.callbackBodyType=p.callback.contentType),b.callback=new f((0,i.default)(m)).toString("base64"),p.callback.customValue){var S={};(0,r.default)(p.callback.customValue).forEach(function(h){S["x:"+h]=p.callback.customValue[h]}),b["callback-var"]=new f((0,i.default)(S)).toString("base64")}}var x=this.buildCanonicalString(p.method,d,{headers:w,parameters:b},c.toString());return{Signature:this.computeSignature(s,x),subResource:b}}}).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,I,T){"use strict";var f=n("babel-runtime/regenerator"),v=function(e){return e&&e.__esModule?e:{default:e}}(f),a=n("co"),i=n("co-priority-queue"),l=n("any-promise"),r=T;r._thunkPool=function(e,o){function s(b,m){++c===b.length&&m(w)}function p(b,m){function S(){var y;return v.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:y=void 0;case 1:if(d.isCancel()){R.next=9;break}return R.next=4,_.next();case 4:return y=R.sent,R.next=7,y();case 7:R.next=1;break;case 9:O+=1,O===b&&(_.fns=[],_.buffer=[],m(w));case 11:case"end":return R.stop()}},h,this)}function x(y){console.error(y.stack)}for(var h=v.default.mark(S),_=new i,O=0,j=0;j<b;j++)a(S).catch(x);return function(y,R){return function(P){_.push(v.default.mark(function C(){return v.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,N.t0=P,N.next=4,y;case 4:N.t1=N.sent,(0,N.t0)(null,N.t1),N.next=11;break;case 8:N.prev=8,N.t2=N.catch(0),P(N.t2);case 11:case"end":return N.stop()}},C,this,[[0,8]])}),R)}}}var d=this,c=0,w=[];return new l(function(b){function m(O){return v.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,h(e[O]);case 2:s(e,b);case 3:case"end":return j.stop()}},x,this)}function S(O){w.push(O),s(e,b)}for(var x=v.default.mark(m),h=new p(o,b),_=0;_<e.length;_++)a(m(_)).catch(S)})},r.cancel=function(){this.options.cancelFlag=!0},r.isCancel=function(){return this.options.cancelFlag},r.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,I,T){"use strict";T._isIP=function(f){var v=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,a=/^\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 v.test(f)||a.test(f)}},{}],12:[function(n,I,T){function f(){}I.exports=f,I.exports.HttpsAgent=f},{}],13:[function(n,I,T){I.exports=n("./register")().Promise},{"./register":15}],14:[function(n,I,T){"use strict";var f=null;I.exports=function(v,a){return function(i,l){i=i||null,l=l||{};var r=l.global!==!1;if(f===null&&r&&(f=v["@@any-promise/REGISTRATION"]||null),f!==null&&i!==null&&f.implementation!==i)throw new Error('any-promise already defined as "'+f.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return f===null&&(f=i!==null&&l.Promise!==void 0?{Promise:l.Promise,implementation:i}:a(i),r&&(v["@@any-promise/REGISTRATION"]=f)),f}}},{}],15:[function(n,I,T){"use strict";function f(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}I.exports=n("./loader")(window,f)},{"./loader":14}],16:[function(n,I,T){I.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,I,T){I.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,I,T){I.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,I,T){I.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,I,T){I.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,I,T){I.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,I,T){I.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,I,T){I.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,I,T){I.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,I,T){I.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,I,T){I.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,I,T){I.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,I,T){I.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,I,T){I.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,I,T){"use strict";T.__esModule=!0,T.default=function(f,v){if(!(f instanceof v))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,I,T){"use strict";T.__esModule=!0;var f=n("../core-js/object/define-property"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);T.default=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,v.default)(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}()},{"../core-js/object/define-property":20}],32:[function(n,I,T){"use strict";function f(e){return e&&e.__esModule?e:{default:e}}T.__esModule=!0;var v=n("../core-js/symbol/iterator"),a=f(v),i=n("../core-js/symbol"),l=f(i),r=typeof l.default=="function"&&typeof a.default=="symbol"?function(e){return typeof e}:function(e){return e&&typeof l.default=="function"&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};T.default=typeof l.default=="function"&&r(a.default)==="symbol"?function(e){return e===void 0?"undefined":r(e)}:function(e){return e&&typeof l.default=="function"&&e.constructor===l.default&&e!==l.default.prototype?"symbol":e===void 0?"undefined":r(e)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,I,T){I.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,I,T){"use strict";function f(b){var m=b.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=b.indexOf("=");return S===-1&&(S=m),[S,S===m?0:4-S%4]}function v(b){var m=f(b),S=m[0],x=m[1];return 3*(S+x)/4-x}function a(b,m,S){return 3*(m+S)/4-S}function i(b){for(var m,S=f(b),x=S[0],h=S[1],_=new p(a(b,x,h)),O=0,j=h>0?x-4:x,y=0;y<j;y+=4)m=s[b.charCodeAt(y)]<<18|s[b.charCodeAt(y+1)]<<12|s[b.charCodeAt(y+2)]<<6|s[b.charCodeAt(y+3)],_[O++]=m>>16&255,_[O++]=m>>8&255,_[O++]=255&m;return h===2&&(m=s[b.charCodeAt(y)]<<2|s[b.charCodeAt(y+1)]>>4,_[O++]=255&m),h===1&&(m=s[b.charCodeAt(y)]<<10|s[b.charCodeAt(y+1)]<<4|s[b.charCodeAt(y+2)]>>2,_[O++]=m>>8&255,_[O++]=255&m),_}function l(b){return o[b>>18&63]+o[b>>12&63]+o[b>>6&63]+o[63&b]}function r(b,m,S){for(var x,h=[],_=m;_<S;_+=3)x=(b[_]<<16&16711680)+(b[_+1]<<8&65280)+(255&b[_+2]),h.push(l(x));return h.join("")}function e(b){for(var m,S=b.length,x=S%3,h=[],_=0,O=S-x;_<O;_+=16383)h.push(r(b,_,_+16383>O?O:_+16383));return x===1?(m=b[S-1],h.push(o[m>>2]+o[m<<4&63]+"==")):x===2&&(m=(b[S-2]<<8)+b[S-1],h.push(o[m>>10]+o[m>>4&63]+o[m<<2&63]+"=")),h.join("")}T.byteLength=v,T.toByteArray=i,T.fromByteArray=e;for(var o=[],s=[],p=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,w=d.length;c<w;++c)o[c]=d[c],s[d.charCodeAt(c)]=c;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],35:[function(n,I,T){!function(f,v,a){I!==void 0&&I.exports?I.exports=a():typeof he=="function"&&he.amd?he("bowser",a):f.bowser=a()}(this,0,function(){function f(s){function p(X){var D=s.match(X);return D&&D.length>1&&D[1]||""}function d(X){var D=s.match(X);return D&&D.length>1&&D[2]||""}var c,w=p(/(ipod|iphone|ipad)/i).toLowerCase(),b=/like android/i.test(s),m=!b&&/android/i.test(s),S=/nexus\s*[0-6]\s*/i.test(s),x=!S&&/nexus\s*[0-9]+/i.test(s),h=/CrOS/.test(s),_=/silk/i.test(s),O=/sailfish/i.test(s),j=/tizen/i.test(s),y=/(web|hpw)os/i.test(s),R=/windows phone/i.test(s),P=(/SamsungBrowser/i.test(s),!R&&/windows/i.test(s)),C=!w&&!_&&/macintosh/i.test(s),N=!m&&!O&&!j&&!y&&/linux/i.test(s),G=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=p(/version\/(\d+(\.\d+)?)/i),K=/tablet/i.test(s)&&!/tablet pc/i.test(s),ie=!K&&/[^-]mobi/i.test(s),z=/xbox/i.test(s);/opera/i.test(s)?c={name:"Opera",opera:e,version:H||p(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(s)?c={name:"Opera",opera:e,version:p(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(s)?c={name:"Samsung Internet for Android",samsungBrowser:e,version:H||p(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(s)?c={name:"Opera Coast",coast:e,version:H||p(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(s)?c={name:"Yandex Browser",yandexbrowser:e,version:H||p(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(s)?c={name:"UC Browser",ucbrowser:e,version:p(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(s)?c={name:"Maxthon",maxthon:e,version:p(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(s)?c={name:"Epiphany",epiphany:e,version:p(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(s)?c={name:"Puffin",puffin:e,version:p(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(s)?c={name:"Sleipnir",sleipnir:e,version:p(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(s)?c={name:"K-Meleon",kMeleon:e,version:p(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:R?(c={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},G?(c.msedge=e,c.version=G):(c.msie=e,c.version=p(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(s)?c={name:"Internet Explorer",msie:e,version:p(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?c={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:p(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(s)?c={name:"Microsoft Edge",msedge:e,version:G}:/vivaldi/i.test(s)?c={name:"Vivaldi",vivaldi:e,version:p(/vivaldi\/(\d+(\.\d+)?)/i)||H}:O?c={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:p(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(s)?c={name:"SeaMonkey",seamonkey:e,version:p(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(s)?(c={name:"Firefox",firefox:e,version:p(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(s)&&(c.firefoxos=e,c.osname="Firefox OS")):_?c={name:"Amazon Silk",silk:e,version:p(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(s)?c={name:"PhantomJS",phantom:e,version:p(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(s)?c={name:"SlimerJS",slimer:e,version:p(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(s)||/rim\stablet/i.test(s)?c={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:H||p(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:y?(c={name:"WebOS",osname:"WebOS",webos:e,version:H||p(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(s)&&(c.touchpad=e)):/bada/i.test(s)?c={name:"Bada",osname:"Bada",bada:e,version:p(/dolfin\/(\d+(\.\d+)?)/i)}:j?c={name:"Tizen",osname:"Tizen",tizen:e,version:p(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(s)?c={name:"QupZilla",qupzilla:e,version:p(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(s)?c={name:"Chromium",chromium:e,version:p(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(s)?c={name:"Chrome",chrome:e,version:p(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:m?c={name:"Android",version:H}:/safari|applewebkit/i.test(s)?(c={name:"Safari",safari:e},H&&(c.version=H)):w?(c={name:w=="iphone"?"iPhone":w=="ipad"?"iPad":"iPod"},H&&(c.version=H)):c=/googlebot/i.test(s)?{name:"Googlebot",googlebot:e,version:p(/googlebot\/(\d+(\.\d+))/i)||H}:{name:p(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!c.msedge&&/(apple)?webkit/i.test(s)?(/(apple)?webkit\/537\.36/i.test(s)?(c.name=c.name||"Blink",c.blink=e):(c.name=c.name||"Webkit",c.webkit=e),!c.version&&H&&(c.version=H)):!c.opera&&/gecko\//i.test(s)&&(c.name=c.name||"Gecko",c.gecko=e,c.version=c.version||p(/gecko\/(\d+(\.\d+)?)/i)),c.windowsphone||!m&&!c.silk?!c.windowsphone&&w?(c[w]=e,c.ios=e,c.osname="iOS"):C?(c.mac=e,c.osname="macOS"):z?(c.xbox=e,c.osname="Xbox"):P?(c.windows=e,c.osname="Windows"):N&&(c.linux=e,c.osname="Linux"):(c.android=e,c.osname="Android");var re="";c.windows?re=function(X){switch(X){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}}(p(/Windows ((NT|XP)( \d\d?.\d)?)/i)):c.windowsphone?re=p(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):c.mac?(re=p(/Mac OS X (\d+([_\.\s]\d+)*)/i),re=re.replace(/[_\s]/g,".")):w?(re=p(/os (\d+([_\s]\d+)*) like mac os x/i),re=re.replace(/[_\s]/g,".")):m?re=p(/android[ \/-](\d+(\.\d+)*)/i):c.webos?re=p(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):c.blackberry?re=p(/rim\stablet\sos\s(\d+(\.\d+)*)/i):c.bada?re=p(/bada\/(\d+(\.\d+)*)/i):c.tizen&&(re=p(/tizen[\/\s](\d+(\.\d+)*)/i)),re&&(c.osversion=re);var V=!c.windows&&re.split(".")[0];return K||x||w=="ipad"||m&&(V==3||V>=4&&!ie)||c.silk?c.tablet=e:(ie||w=="iphone"||w=="ipod"||m||S||c.blackberry||c.webos||c.bada)&&(c.mobile=e),c.msedge||c.msie&&c.version>=10||c.yandexbrowser&&c.version>=15||c.vivaldi&&c.version>=1||c.chrome&&c.version>=20||c.samsungBrowser&&c.version>=4||c.firefox&&c.version>=20||c.safari&&c.version>=6||c.opera&&c.version>=10||c.ios&&c.osversion&&c.osversion.split(".")[0]>=6||c.blackberry&&c.version>=10.1||c.chromium&&c.version>=20?c.a=e:c.msie&&c.version<10||c.chrome&&c.version<20||c.firefox&&c.version<20||c.safari&&c.version<6||c.opera&&c.version<10||c.ios&&c.osversion&&c.osversion.split(".")[0]<6||c.chromium&&c.version<20?c.c=e:c.x=e,c}function v(s){return s.split(".").length}function a(s,p){var d,c=[];if(Array.prototype.map)return Array.prototype.map.call(s,p);for(d=0;d<s.length;d++)c.push(p(s[d]));return c}function i(s){for(var p=Math.max(v(s[0]),v(s[1])),d=a(s,function(c){var w=p-v(c);return c+=new Array(w+1).join(".0"),a(c.split("."),function(b){return new Array(20-b.length).join("0")+b}).reverse()});--p>=0;){if(d[0][p]>d[1][p])return 1;if(d[0][p]!==d[1][p])return-1;if(p===0)return 0}}function l(s,p,d){var c=o;typeof p=="string"&&(d=p,p=void 0),p===void 0&&(p=!1),d&&(c=f(d));var w=""+c.version;for(var b in s)if(s.hasOwnProperty(b)&&c[b]){if(typeof s[b]!="string")throw new Error("Browser version in the minVersion map should be a string: "+b+": "+String(s));return i([w,s[b]])<0}return p}function r(s,p,d){return!l(s,p,d)}var e=!0,o=f(typeof navigator!="undefined"&&navigator.userAgent||"");return o.test=function(s){for(var p=0;p<s.length;++p){var d=s[p];if(typeof d=="string"&&d in o)return!0}return!1},o.isUnsupportedBrowser=l,o.compareVersions=i,o.check=r,o._detect=f,o.detect=f,o})},{}],36:[function(n,I,T){},{}],37:[function(n,I,T){function f(o){if(o&&!r(o))throw new Error("Unknown encoding: "+o)}function v(o){return o.toString(this.encoding)}function a(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function i(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}var l=n("buffer").Buffer,r=l.isEncoding||function(o){switch(o&&o.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=T.StringDecoder=function(o){switch(this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),f(o),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return void(this.write=v)}this.charBuffer=new l(6),this.charReceived=0,this.charLength=0};e.prototype.write=function(o){for(var s="";this.charLength;){var p=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,p),this.charReceived+=p,this.charReceived<this.charLength)return"";o=o.slice(p,o.length),s=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var c=s.charCodeAt(s.length-1);if(!(c>=55296&&c<=56319)){if(this.charReceived=this.charLength=0,o.length===0)return s;break}this.charLength+=this.surrogateSize,s=""}this.detectIncompleteChar(o);var d=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,d),d-=this.charReceived),s+=o.toString(this.encoding,0,d);var d=s.length-1,c=s.charCodeAt(d);if(c>=55296&&c<=56319){var w=this.surrogateSize;return this.charLength+=w,this.charReceived+=w,this.charBuffer.copy(this.charBuffer,w,0,w),o.copy(this.charBuffer,0,0,w),s.substring(0,d)}return s},e.prototype.detectIncompleteChar=function(o){for(var s=o.length>=3?3:o.length;s>0;s--){var p=o[o.length-s];if(s==1&&p>>5==6){this.charLength=2;break}if(s<=2&&p>>4==14){this.charLength=3;break}if(s<=3&&p>>3==30){this.charLength=4;break}}this.charReceived=s},e.prototype.end=function(o){var s="";if(o&&o.length&&(s=this.write(o)),this.charReceived){var p=this.charReceived,d=this.charBuffer,c=this.encoding;s+=d.slice(0,p).toString(c)}return s}},{buffer:38}],38:[function(n,I,T){(function(f){"use strict";function v(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,u){if(v()<u)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(u),t.__proto__=i.prototype):(t===null&&(t=new i(u)),t.length=u),t}function i(t,u,A){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,u,A);if(typeof t=="number"){if(typeof u=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,t)}return l(this,t,u,A)}function l(t,u,A,g){if(typeof u=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&u instanceof ArrayBuffer?d(t,u,A,g):typeof u=="string"?s(t,u,A):c(t,u)}function r(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function e(t,u,A,g){return r(u),u<=0?a(t,u):A!==void 0?typeof g=="string"?a(t,u).fill(A,g):a(t,u).fill(A):a(t,u)}function o(t,u){if(r(u),t=a(t,u<0?0:0|w(u)),!i.TYPED_ARRAY_SUPPORT)for(var A=0;A<u;++A)t[A]=0;return t}function s(t,u,A){if(typeof A=="string"&&A!==""||(A="utf8"),!i.isEncoding(A))throw new TypeError('"encoding" must be a valid string encoding');var g=0|m(u,A);t=a(t,g);var E=t.write(u,A);return E!==g&&(t=t.slice(0,E)),t}function p(t,u){var A=u.length<0?0:0|w(u.length);t=a(t,A);for(var g=0;g<A;g+=1)t[g]=255&u[g];return t}function d(t,u,A,g){if(u.byteLength,A<0||u.byteLength<A)throw new RangeError("'offset' is out of bounds");if(u.byteLength<A+(g||0))throw new RangeError("'length' is out of bounds");return u=A===void 0&&g===void 0?new Uint8Array(u):g===void 0?new Uint8Array(u,A):new Uint8Array(u,A,g),i.TYPED_ARRAY_SUPPORT?(t=u,t.__proto__=i.prototype):t=p(t,u),t}function c(t,u){if(i.isBuffer(u)){var A=0|w(u.length);return t=a(t,A),t.length===0||u.copy(t,0,0,A),t}if(u){if(typeof ArrayBuffer!="undefined"&&u.buffer instanceof ArrayBuffer||"length"in u)return typeof u.length!="number"||F(u.length)?a(t,0):p(t,u);if(u.type==="Buffer"&&Z(u.data))return p(t,u.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),i.alloc(+t)}function m(t,u){if(i.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 A=t.length;if(A===0)return 0;for(var g=!1;;)switch(u){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case void 0:return se(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return Q(t).length;default:if(g)return se(t).length;u=(""+u).toLowerCase(),g=!0}}function S(t,u,A){var g=!1;if((u===void 0||u<0)&&(u=0),u>this.length)return"";if((A===void 0||A>this.length)&&(A=this.length),A<=0)return"";if(A>>>=0,u>>>=0,A<=u)return"";for(t||(t="utf8");;)switch(t){case"hex":return z(this,u,A);case"utf8":case"utf-8":return G(this,u,A);case"ascii":return K(this,u,A);case"latin1":case"binary":return ie(this,u,A);case"base64":return N(this,u,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,u,A);default:if(g)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),g=!0}}function x(t,u,A){var g=t[u];t[u]=t[A],t[A]=g}function h(t,u,A,g,E){if(t.length===0)return-1;if(typeof A=="string"?(g=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,isNaN(A)&&(A=E?0:t.length-1),A<0&&(A=t.length+A),A>=t.length){if(E)return-1;A=t.length-1}else if(A<0){if(!E)return-1;A=0}if(typeof u=="string"&&(u=i.from(u,g)),i.isBuffer(u))return u.length===0?-1:_(t,u,A,g,E);if(typeof u=="number")return u&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?E?Uint8Array.prototype.indexOf.call(t,u,A):Uint8Array.prototype.lastIndexOf.call(t,u,A):_(t,[u],A,g,E);throw new TypeError("val must be string, number or Buffer")}function _(t,u,A,g,E){function q(ce,ye){return W===1?ce[ye]:ce.readUInt16BE(ye*W)}var W=1,le=t.length,ae=u.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(t.length<2||u.length<2)return-1;W=2,le/=2,ae/=2,A/=2}var pe;if(E){var de=-1;for(pe=A;pe<le;pe++)if(q(t,pe)===q(u,de===-1?0:pe-de)){if(de===-1&&(de=pe),pe-de+1===ae)return de*W}else de!==-1&&(pe-=pe-de),de=-1}else for(A+ae>le&&(A=le-ae),pe=A;pe>=0;pe--){for(var ve=!0,me=0;me<ae;me++)if(q(t,pe+me)!==q(u,me)){ve=!1;break}if(ve)return pe}return-1}function O(t,u,A,g){A=Number(A)||0;var E=t.length-A;g?(g=Number(g))>E&&(g=E):g=E;var q=u.length;if(q%2!=0)throw new TypeError("Invalid hex string");g>q/2&&(g=q/2);for(var W=0;W<g;++W){var le=parseInt(u.substr(2*W,2),16);if(isNaN(le))return W;t[A+W]=le}return W}function j(t,u,A,g){return ee(se(u,t.length-A),t,A,g)}function y(t,u,A,g){return ee(fe(u),t,A,g)}function R(t,u,A,g){return y(t,u,A,g)}function P(t,u,A,g){return ee(Q(u),t,A,g)}function C(t,u,A,g){return ee(J(u,t.length-A),t,A,g)}function N(t,u,A){return u===0&&A===t.length?U.fromByteArray(t):U.fromByteArray(t.slice(u,A))}function G(t,u,A){A=Math.min(t.length,A);for(var g=[],E=u;E<A;){var q=t[E],W=null,le=q>239?4:q>223?3:q>191?2:1;if(E+le<=A){var ae,pe,de,ve;switch(le){case 1:q<128&&(W=q);break;case 2:ae=t[E+1],(192&ae)==128&&(ve=(31&q)<<6|63&ae)>127&&(W=ve);break;case 3:ae=t[E+1],pe=t[E+2],(192&ae)==128&&(192&pe)==128&&(ve=(15&q)<<12|(63&ae)<<6|63&pe)>2047&&(ve<55296||ve>57343)&&(W=ve);break;case 4:ae=t[E+1],pe=t[E+2],de=t[E+3],(192&ae)==128&&(192&pe)==128&&(192&de)==128&&(ve=(15&q)<<18|(63&ae)<<12|(63&pe)<<6|63&de)>65535&&ve<1114112&&(W=ve)}}W===null?(W=65533,le=1):W>65535&&(W-=65536,g.push(W>>>10&1023|55296),W=56320|1023&W),g.push(W),E+=le}return H(g)}function H(t){var u=t.length;if(u<=ue)return String.fromCharCode.apply(String,t);for(var A="",g=0;g<u;)A+=String.fromCharCode.apply(String,t.slice(g,g+=ue));return A}function K(t,u,A){var g="";A=Math.min(t.length,A);for(var E=u;E<A;++E)g+=String.fromCharCode(127&t[E]);return g}function ie(t,u,A){var g="";A=Math.min(t.length,A);for(var E=u;E<A;++E)g+=String.fromCharCode(t[E]);return g}function z(t,u,A){var g=t.length;(!u||u<0)&&(u=0),(!A||A<0||A>g)&&(A=g);for(var E="",q=u;q<A;++q)E+=ne(t[q]);return E}function re(t,u,A){for(var g=t.slice(u,A),E="",q=0;q<g.length;q+=2)E+=String.fromCharCode(g[q]+256*g[q+1]);return E}function V(t,u,A){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+u>A)throw new RangeError("Trying to access beyond buffer length")}function X(t,u,A,g,E,q){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>E||u<q)throw new RangeError('"value" argument is out of bounds');if(A+g>t.length)throw new RangeError("Index out of range")}function D(t,u,A,g){u<0&&(u=65535+u+1);for(var E=0,q=Math.min(t.length-A,2);E<q;++E)t[A+E]=(u&255<<8*(g?E:1-E))>>>8*(g?E:1-E)}function L(t,u,A,g){u<0&&(u=4294967295+u+1);for(var E=0,q=Math.min(t.length-A,4);E<q;++E)t[A+E]=u>>>8*(g?E:3-E)&255}function M(t,u,A,g,E,q){if(A+g>t.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function B(t,u,A,g,E){return E||M(t,u,A,4,34028234663852886e22,-34028234663852886e22),$.write(t,u,A,g,23,4),A+4}function te(t,u,A,g,E){return E||M(t,u,A,8,17976931348623157e292,-17976931348623157e292),$.write(t,u,A,g,52,8),A+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 se(t,u){u=u||1/0;for(var A,g=t.length,E=null,q=[],W=0;W<g;++W){if((A=t.charCodeAt(W))>55295&&A<57344){if(!E){if(A>56319){(u-=3)>-1&&q.push(239,191,189);continue}if(W+1===g){(u-=3)>-1&&q.push(239,191,189);continue}E=A;continue}if(A<56320){(u-=3)>-1&&q.push(239,191,189),E=A;continue}A=65536+(E-55296<<10|A-56320)}else E&&(u-=3)>-1&&q.push(239,191,189);if(E=null,A<128){if((u-=1)<0)break;q.push(A)}else if(A<2048){if((u-=2)<0)break;q.push(A>>6|192,63&A|128)}else if(A<65536){if((u-=3)<0)break;q.push(A>>12|224,A>>6&63|128,63&A|128)}else{if(!(A<1114112))throw new Error("Invalid code point");if((u-=4)<0)break;q.push(A>>18|240,A>>12&63|128,A>>6&63|128,63&A|128)}}return q}function fe(t){for(var u=[],A=0;A<t.length;++A)u.push(255&t.charCodeAt(A));return u}function J(t,u){for(var A,g,E,q=[],W=0;W<t.length&&!((u-=2)<0);++W)A=t.charCodeAt(W),g=A>>8,E=A%256,q.push(E),q.push(g);return q}function Q(t){return U.toByteArray(Y(t))}function ee(t,u,A,g){for(var E=0;E<g&&!(E+A>=u.length||E>=t.length);++E)u[E+A]=t[E];return E}function F(t){return t!==t}var U=n("base64-js"),$=n("ieee754"),Z=n("isarray");T.Buffer=i,T.SlowBuffer=b,T.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=f.TYPED_ARRAY_SUPPORT!==void 0?f.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},t.foo()===42&&typeof t.subarray=="function"&&t.subarray(1,1).byteLength===0}catch(u){return!1}}(),T.kMaxLength=v(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,u,A){return l(null,t,u,A)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,u,A){return e(null,t,u,A)},i.allocUnsafe=function(t){return o(null,t)},i.allocUnsafeSlow=function(t){return o(null,t)},i.isBuffer=function(t){return!(t==null||!t._isBuffer)},i.compare=function(t,u){if(!i.isBuffer(t)||!i.isBuffer(u))throw new TypeError("Arguments must be Buffers");if(t===u)return 0;for(var A=t.length,g=u.length,E=0,q=Math.min(A,g);E<q;++E)if(t[E]!==u[E]){A=t[E],g=u[E];break}return A<g?-1:g<A?1:0},i.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}},i.concat=function(t,u){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return i.alloc(0);var A;if(u===void 0)for(u=0,A=0;A<t.length;++A)u+=t[A].length;var g=i.allocUnsafe(u),E=0;for(A=0;A<t.length;++A){var q=t[A];if(!i.isBuffer(q))throw new TypeError('"list" argument must be an Array of Buffers');q.copy(g,E),E+=q.length}return g},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<t;u+=2)x(this,u,u+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<t;u+=4)x(this,u,u+3),x(this,u+1,u+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<t;u+=8)x(this,u,u+7),x(this,u+1,u+6),x(this,u+2,u+5),x(this,u+3,u+4);return this},i.prototype.toString=function(){var t=0|this.length;return t===0?"":arguments.length===0?G(this,0,t):S.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||i.compare(this,t)===0},i.prototype.inspect=function(){var t="",u=T.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,u).match(/.{2}/g).join(" "),this.length>u&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,u,A,g,E){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(u===void 0&&(u=0),A===void 0&&(A=t?t.length:0),g===void 0&&(g=0),E===void 0&&(E=this.length),u<0||A>t.length||g<0||E>this.length)throw new RangeError("out of range index");if(g>=E&&u>=A)return 0;if(g>=E)return-1;if(u>=A)return 1;if(u>>>=0,A>>>=0,g>>>=0,E>>>=0,this===t)return 0;for(var q=E-g,W=A-u,le=Math.min(q,W),ae=this.slice(g,E),pe=t.slice(u,A),de=0;de<le;++de)if(ae[de]!==pe[de]){q=ae[de],W=pe[de];break}return q<W?-1:W<q?1:0},i.prototype.includes=function(t,u,A){return this.indexOf(t,u,A)!==-1},i.prototype.indexOf=function(t,u,A){return h(this,t,u,A,!0)},i.prototype.lastIndexOf=function(t,u,A){return h(this,t,u,A,!1)},i.prototype.write=function(t,u,A,g){if(u===void 0)g="utf8",A=this.length,u=0;else if(A===void 0&&typeof u=="string")g=u,A=this.length,u=0;else{if(!isFinite(u))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");u|=0,isFinite(A)?(A|=0,g===void 0&&(g="utf8")):(g=A,A=void 0)}var E=this.length-u;if((A===void 0||A>E)&&(A=E),t.length>0&&(A<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var q=!1;;)switch(g){case"hex":return O(this,t,u,A);case"utf8":case"utf-8":return j(this,t,u,A);case"ascii":return y(this,t,u,A);case"latin1":case"binary":return R(this,t,u,A);case"base64":return P(this,t,u,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,u,A);default:if(q)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),q=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ue=4096;i.prototype.slice=function(t,u){var A=this.length;t=~~t,u=u===void 0?A:~~u,t<0?(t+=A)<0&&(t=0):t>A&&(t=A),u<0?(u+=A)<0&&(u=0):u>A&&(u=A),u<t&&(u=t);var g;if(i.TYPED_ARRAY_SUPPORT)g=this.subarray(t,u),g.__proto__=i.prototype;else{var E=u-t;g=new i(E,void 0);for(var q=0;q<E;++q)g[q]=this[q+t]}return g},i.prototype.readUIntLE=function(t,u,A){t|=0,u|=0,A||V(t,u,this.length);for(var g=this[t],E=1,q=0;++q<u&&(E*=256);)g+=this[t+q]*E;return g},i.prototype.readUIntBE=function(t,u,A){t|=0,u|=0,A||V(t,u,this.length);for(var g=this[t+--u],E=1;u>0&&(E*=256);)g+=this[t+--u]*E;return g},i.prototype.readUInt8=function(t,u){return u||V(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,u){return u||V(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,u){return u||V(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,u){return u||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,u){return u||V(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,u,A){t|=0,u|=0,A||V(t,u,this.length);for(var g=this[t],E=1,q=0;++q<u&&(E*=256);)g+=this[t+q]*E;return E*=128,g>=E&&(g-=Math.pow(2,8*u)),g},i.prototype.readIntBE=function(t,u,A){t|=0,u|=0,A||V(t,u,this.length);for(var g=u,E=1,q=this[t+--g];g>0&&(E*=256);)q+=this[t+--g]*E;return E*=128,q>=E&&(q-=Math.pow(2,8*u)),q},i.prototype.readInt8=function(t,u){return u||V(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,u){u||V(t,2,this.length);var A=this[t]|this[t+1]<<8;return 32768&A?4294901760|A:A},i.prototype.readInt16BE=function(t,u){u||V(t,2,this.length);var A=this[t+1]|this[t]<<8;return 32768&A?4294901760|A:A},i.prototype.readInt32LE=function(t,u){return u||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,u){return u||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,u){return u||V(t,4,this.length),$.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,u){return u||V(t,4,this.length),$.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,u){return u||V(t,8,this.length),$.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,u){return u||V(t,8,this.length),$.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,u,A,g){(t=+t,u|=0,A|=0,!g)&&X(this,t,u,A,Math.pow(2,8*A)-1,0);var E=1,q=0;for(this[u]=255&t;++q<A&&(E*=256);)this[u+q]=t/E&255;return u+A},i.prototype.writeUIntBE=function(t,u,A,g){(t=+t,u|=0,A|=0,!g)&&X(this,t,u,A,Math.pow(2,8*A)-1,0);var E=A-1,q=1;for(this[u+E]=255&t;--E>=0&&(q*=256);)this[u+E]=t/q&255;return u+A},i.prototype.writeUInt8=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[u]=255&t,u+1},i.prototype.writeUInt16LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):D(this,t,u,!0),u+2},i.prototype.writeUInt16BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):D(this,t,u,!1),u+2},i.prototype.writeUInt32LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u+3]=t>>>24,this[u+2]=t>>>16,this[u+1]=t>>>8,this[u]=255&t):L(this,t,u,!0),u+4},i.prototype.writeUInt32BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):L(this,t,u,!1),u+4},i.prototype.writeIntLE=function(t,u,A,g){if(t=+t,u|=0,!g){var E=Math.pow(2,8*A-1);X(this,t,u,A,E-1,-E)}var q=0,W=1,le=0;for(this[u]=255&t;++q<A&&(W*=256);)t<0&&le===0&&this[u+q-1]!==0&&(le=1),this[u+q]=(t/W>>0)-le&255;return u+A},i.prototype.writeIntBE=function(t,u,A,g){if(t=+t,u|=0,!g){var E=Math.pow(2,8*A-1);X(this,t,u,A,E-1,-E)}var q=A-1,W=1,le=0;for(this[u+q]=255&t;--q>=0&&(W*=256);)t<0&&le===0&&this[u+q+1]!==0&&(le=1),this[u+q]=(t/W>>0)-le&255;return u+A},i.prototype.writeInt8=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[u]=255&t,u+1},i.prototype.writeInt16LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8):D(this,t,u,!0),u+2},i.prototype.writeInt16BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>8,this[u+1]=255&t):D(this,t,u,!1),u+2},i.prototype.writeInt32LE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[u]=255&t,this[u+1]=t>>>8,this[u+2]=t>>>16,this[u+3]=t>>>24):L(this,t,u,!0),u+4},i.prototype.writeInt32BE=function(t,u,A){return t=+t,u|=0,A||X(this,t,u,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[u]=t>>>24,this[u+1]=t>>>16,this[u+2]=t>>>8,this[u+3]=255&t):L(this,t,u,!1),u+4},i.prototype.writeFloatLE=function(t,u,A){return B(this,t,u,!0,A)},i.prototype.writeFloatBE=function(t,u,A){return B(this,t,u,!1,A)},i.prototype.writeDoubleLE=function(t,u,A){return te(this,t,u,!0,A)},i.prototype.writeDoubleBE=function(t,u,A){return te(this,t,u,!1,A)},i.prototype.copy=function(t,u,A,g){if(A||(A=0),g||g===0||(g=this.length),u>=t.length&&(u=t.length),u||(u=0),g>0&&g<A&&(g=A),g===A)return 0;if(t.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("sourceStart out of bounds");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),t.length-u<g-A&&(g=t.length-u+A);var E,q=g-A;if(this===t&&A<u&&u<g)for(E=q-1;E>=0;--E)t[E+u]=this[E+A];else if(q<1e3||!i.TYPED_ARRAY_SUPPORT)for(E=0;E<q;++E)t[E+u]=this[E+A];else Uint8Array.prototype.set.call(t,this.subarray(A,A+q),u);return q},i.prototype.fill=function(t,u,A,g){if(typeof t=="string"){if(typeof u=="string"?(g=u,u=0,A=this.length):typeof A=="string"&&(g=A,A=this.length),t.length===1){var E=t.charCodeAt(0);E<256&&(t=E)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!i.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof t=="number"&&(t&=255);if(u<0||this.length<u||this.length<A)throw new RangeError("Out of range index");if(A<=u)return this;u>>>=0,A=A===void 0?this.length:A>>>0,t||(t=0);var q;if(typeof t=="number")for(q=u;q<A;++q)this[q]=t;else{var W=i.isBuffer(t)?t:se(new i(t,g).toString()),le=W.length;for(q=0;q<A-u;++q)this[q+u]=W[q%le]}return this};var k=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,I,T){I.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(n,I,T){"use strict";var f=function(){this.buffer=[],this.fns=[]};f.prototype.push=function(a,i){if(this.fns.length)return this.fns.shift()(null,a);var l={data:a,priority:i},r=v(this.buffer,l,function(e){return e.priority});this.buffer.splice(r,0,l)},f.prototype.next=function(){var a=this;return function(i){if(a.buffer.length)return i(null,a.buffer.pop().data);a.fns.push(i)}};var v=function(a,i,l){i=l(i);for(var r=0,e=a?a.length:r;r<e;){var o=r+e>>>1;l(a[o])<i?r=o+1:e=o}return r};I.exports=f},{}],41:[function(n,I,T){function f(d){var c=this,w=p.call(arguments,1);return new Promise(function(b,m){function S(_){var O;try{O=d.next(_)}catch(j){return m(j)}h(O)}function x(_){var O;try{O=d.throw(_)}catch(j){return m(j)}h(O)}function h(_){if(_.done)return b(_.value);var O=v.call(c,_.value);return O&&r(O)?O.then(S,x):x(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof d=="function"&&(d=d.apply(c,w)),!d||typeof d.next!="function")return b(d);S()})}function v(d){return d&&(r(d)?d:o(d)||e(d)?f.call(this,d):typeof d=="function"?a.call(this,d):Array.isArray(d)?i.call(this,d):s(d)?l.call(this,d):d)}function a(d){var c=this;return new Promise(function(w,b){d.call(c,function(m,S){if(m)return b(m);arguments.length>2&&(S=p.call(arguments,1)),w(S)})})}function i(d){return Promise.all(d.map(v,this))}function l(d){for(var c=new d.constructor,w=Object.keys(d),b=[],m=0;m<w.length;m++){var S=w[m],x=v.call(this,d[S]);x&&r(x)?function(h,_){c[_]=void 0,b.push(h.then(function(O){c[_]=O}))}(x,S):c[S]=d[S]}return Promise.all(b).then(function(){return c})}function r(d){return typeof d.then=="function"}function e(d){return typeof d.next=="function"&&typeof d.throw=="function"}function o(d){var c=d.constructor;return!!c&&(c.name==="GeneratorFunction"||c.displayName==="GeneratorFunction"||e(c.prototype))}function s(d){return Object==d.constructor}var p=Array.prototype.slice;I.exports=f.default=f.co=f,f.wrap=function(d){function c(){return f.call(this,d.apply(this,arguments))}return c.__generatorFunction__=d,c}},{}],42:[function(n,I,T){I.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(n,I,T){"use strict";function f(i,l){if(!(this instanceof f))return new f(i,l);this.src=i,this._withAccess=l}function v(i,l){return i[l]===void 0&&i.__lookupGetter__(l)===void 0&&i.__lookupSetter__(l)===void 0}var a=Array.prototype.slice;I.exports=f,f.prototype.withAccess=function(i){return this._withAccess=i!==!1,this},f.prototype.pick=function(i){return Array.isArray(i)||(i=a.call(arguments)),i.length&&(this.keys=i),this},f.prototype.to=function(i){if(i=i||{},!this.src)return i;var l=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r<l.length;r++)e=l[r],i[e]===void 0&&(i[e]=this.src[e]);return i}for(var r=0;r<l.length;r++){var e=l[r];if(v(i,e)){var o=this.src.__lookupGetter__(e),s=this.src.__lookupSetter__(e);o&&i.__defineGetter__(e,o),s&&i.__defineSetter__(e,s),o||s||(i[e]=this.src[e])}}return i},f.prototype.toCover=function(i){for(var l=this.keys||Object.keys(this.src),r=0;r<l.length;r++){var e=l[r];delete i[e];var o=this.src.__lookupGetter__(e),s=this.src.__lookupSetter__(e);o&&i.__defineGetter__(e,o),s&&i.__defineSetter__(e,s),o||s||(i[e]=this.src[e])}},f.prototype.override=f.prototype.toCover,f.prototype.and=function(i){var l={};return this.to(l),this.src=i,this.to(l),this.src=l,this}},{}],44:[function(n,I,T){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),I.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,I,T){var f=n("../../modules/_core"),v=f.JSON||(f.JSON={stringify:JSON.stringify});I.exports=function(a){return v.stringify.apply(v,arguments)}},{"../../modules/_core":65}],46:[function(n,I,T){n("../../modules/es6.object.assign"),I.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,I,T){n("../../modules/es6.object.create");var f=n("../../modules/_core").Object;I.exports=function(v,a){return f.create(v,a)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,I,T){n("../../modules/es6.object.define-property");var f=n("../../modules/_core").Object;I.exports=function(v,a,i){return f.defineProperty(v,a,i)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,I,T){n("../../modules/es6.object.get-own-property-names");var f=n("../../modules/_core").Object;I.exports=function(v){return f.getOwnPropertyNames(v)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,I,T){n("../../modules/es6.object.get-prototype-of"),I.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,I,T){n("../../modules/es6.object.keys"),I.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,I,T){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"),I.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,I,T){n("../modules/web.immediate"),I.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,I,T){n("../../modules/es6.string.from-code-point"),I.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,I,T){n("../../modules/es6.function.has-instance"),I.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,I,T){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),I.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,I,T){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),I.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,I,T){I.exports=function(f){if(typeof f!="function")throw TypeError(f+" is not a function!");return f}},{}],59:[function(n,I,T){I.exports=function(){}},{}],60:[function(n,I,T){I.exports=function(f,v,a,i){if(!(f instanceof v)||i!==void 0&&i in f)throw TypeError(a+": incorrect invocation!");return f}},{}],61:[function(n,I,T){var f=n("./_is-object");I.exports=function(v){if(!f(v))throw TypeError(v+" is not an object!");return v}},{"./_is-object":85}],62:[function(n,I,T){var f=n("./_to-iobject"),v=n("./_to-length"),a=n("./_to-absolute-index");I.exports=function(i){return function(l,r,e){var o,s=f(l),p=v(s.length),d=a(e,p);if(i&&r!=r){for(;p>d;)if((o=s[d++])!=o)return!0}else for(;p>d;d++)if((i||d in s)&&s[d]===r)return i||d||0;return!i&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,I,T){var f=n("./_cof"),v=n("./_wks")("toStringTag"),a=f(function(){return arguments}())=="Arguments",i=function(l,r){try{return l[r]}catch(e){}};I.exports=function(l){var r,e,o;return l===void 0?"Undefined":l===null?"Null":typeof(e=i(r=Object(l),v))=="string"?e:a?f(r):(o=f(r))=="Object"&&typeof r.callee=="function"?"Arguments":o}},{"./_cof":64,"./_wks":131}],64:[function(n,I,T){var f={}.toString;I.exports=function(v){return f.call(v).slice(8,-1)}},{}],65:[function(n,I,T){var f=I.exports={version:"2.5.7"};typeof __e=="number"&&(__e=f)},{}],66:[function(n,I,T){"use strict";var f=n("./_object-dp"),v=n("./_property-desc");I.exports=function(a,i,l){i in a?f.f(a,i,v(0,l)):a[i]=l}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,I,T){var f=n("./_a-function");I.exports=function(v,a,i){if(f(v),a===void 0)return v;switch(i){case 1:return function(l){return v.call(a,l)};case 2:return function(l,r){return v.call(a,l,r)};case 3:return function(l,r,e){return v.call(a,l,r,e)}}return function(){return v.apply(a,arguments)}}},{"./_a-function":58}],68:[function(n,I,T){I.exports=function(f){if(f==null)throw TypeError("Can't call method on "+f);return f}},{}],69:[function(n,I,T){I.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,I,T){var f=n("./_is-object"),v=n("./_global").document,a=f(v)&&f(v.createElement);I.exports=function(i){return a?v.createElement(i):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,I,T){I.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,I,T){var f=n("./_object-keys"),v=n("./_object-gops"),a=n("./_object-pie");I.exports=function(i){var l=f(i),r=v.f;if(r)for(var e,o=r(i),s=a.f,p=0;o.length>p;)s.call(i,e=o[p++])&&l.push(e);return l}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,I,T){var f=n("./_global"),v=n("./_core"),a=n("./_ctx"),i=n("./_hide"),l=n("./_has"),r=function(e,o,s){var p,d,c,w=e&r.F,b=e&r.G,m=e&r.S,S=e&r.P,x=e&r.B,h=e&r.W,_=b?v:v[o]||(v[o]={}),O=_.prototype,j=b?f:m?f[o]:(f[o]||{}).prototype;b&&(s=o);for(p in s)(d=!w&&j&&j[p]!==void 0)&&l(_,p)||(c=d?j[p]:s[p],_[p]=b&&typeof j[p]!="function"?s[p]:x&&d?a(c,f):h&&j[p]==c?function(y){var R=function(P,C,N){if(this instanceof y){switch(arguments.length){case 0:return new y;case 1:return new y(P);case 2:return new y(P,C)}return new y(P,C,N)}return y.apply(this,arguments)};return R.prototype=y.prototype,R}(c):S&&typeof c=="function"?a(Function.call,c):c,S&&((_.virtual||(_.virtual={}))[p]=c,e&r.R&&O&&!O[p]&&i(O,p,c)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,I.exports=r},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,I,T){I.exports=function(f){try{return!!f()}catch(v){return!0}}},{}],75:[function(n,I,T){var f=n("./_ctx"),v=n("./_iter-call"),a=n("./_is-array-iter"),i=n("./_an-object"),l=n("./_to-length"),r=n("./core.get-iterator-method"),e={},o={},T=I.exports=function(s,p,d,c,w){var b,m,S,x,h=w?function(){return s}:r(s),_=f(d,c,p?2:1),O=0;if(typeof h!="function")throw TypeError(s+" is not iterable!");if(a(h)){for(b=l(s.length);b>O;O++)if((x=p?_(i(m=s[O])[0],m[1]):_(s[O]))===e||x===o)return x}else for(S=h.call(s);!(m=S.next()).done;)if((x=v(S,_,m.value,p))===e||x===o)return x};T.BREAK=e,T.RETURN=o},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,I,T){var f=I.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=f)},{}],77:[function(n,I,T){var f={}.hasOwnProperty;I.exports=function(v,a){return f.call(v,a)}},{}],78:[function(n,I,T){var f=n("./_object-dp"),v=n("./_property-desc");I.exports=n("./_descriptors")?function(a,i,l){return f.f(a,i,v(1,l))}:function(a,i,l){return a[i]=l,a}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,I,T){var f=n("./_global").document;I.exports=f&&f.documentElement},{"./_global":76}],80:[function(n,I,T){I.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,I,T){I.exports=function(f,v,a){var i=a===void 0;switch(v.length){case 0:return i?f():f.call(a);case 1:return i?f(v[0]):f.call(a,v[0]);case 2:return i?f(v[0],v[1]):f.call(a,v[0],v[1]);case 3:return i?f(v[0],v[1],v[2]):f.call(a,v[0],v[1],v[2]);case 4:return i?f(v[0],v[1],v[2],v[3]):f.call(a,v[0],v[1],v[2],v[3])}return f.apply(a,v)}},{}],82:[function(n,I,T){var f=n("./_cof");I.exports=Object("z").propertyIsEnumerable(0)?Object:function(v){return f(v)=="String"?v.split(""):Object(v)}},{"./_cof":64}],83:[function(n,I,T){var f=n("./_iterators"),v=n("./_wks")("iterator"),a=Array.prototype;I.exports=function(i){return i!==void 0&&(f.Array===i||a[v]===i)}},{"./_iterators":91,"./_wks":131}],84:[function(n,I,T){var f=n("./_cof");I.exports=Array.isArray||function(v){return f(v)=="Array"}},{"./_cof":64}],85:[function(n,I,T){I.exports=function(f){return typeof f=="object"?f!==null:typeof f=="function"}},{}],86:[function(n,I,T){var f=n("./_an-object");I.exports=function(v,a,i,l){try{return l?a(f(i)[0],i[1]):a(i)}catch(e){var r=v.return;throw r!==void 0&&f(r.call(v)),e}}},{"./_an-object":61}],87:[function(n,I,T){"use strict";var f=n("./_object-create"),v=n("./_property-desc"),a=n("./_set-to-string-tag"),i={};n("./_hide")(i,n("./_wks")("iterator"),function(){return this}),I.exports=function(l,r,e){l.prototype=f(i,{next:v(1,e)}),a(l,r+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,I,T){"use strict";var f=n("./_library"),v=n("./_export"),a=n("./_redefine"),i=n("./_hide"),l=n("./_iterators"),r=n("./_iter-create"),e=n("./_set-to-string-tag"),o=n("./_object-gpo"),s=n("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};I.exports=function(c,w,b,m,S,x,h){r(b,w,m);var _,O,j,y=function(z){if(!p&&z in N)return N[z];switch(z){case"keys":case"values":return function(){return new b(this,z)}}return function(){return new b(this,z)}},R=w+" Iterator",P=S=="values",C=!1,N=c.prototype,G=N[s]||N["@@iterator"]||S&&N[S],H=G||y(S),K=S?P?y("entries"):H:void 0,ie=w=="Array"&&N.entries||G;if(ie&&(j=o(ie.call(new c)))!==Object.prototype&&j.next&&(e(j,R,!0),f||typeof j[s]=="function"||i(j,s,d)),P&&G&&G.name!=="values"&&(C=!0,H=function(){return G.call(this)}),f&&!h||!p&&!C&&N[s]||i(N,s,H),l[w]=H,l[R]=d,S)if(_={values:P?H:y("values"),keys:x?H:y("keys"),entries:K},h)for(O in _)O in N||a(N,O,_[O]);else v(v.P+v.F*(p||C),w,_);return _}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(n,I,T){var f=n("./_wks")("iterator"),v=!1;try{var a=[7][f]();a.return=function(){v=!0},Array.from(a,function(){throw 2})}catch(i){}I.exports=function(i,l){if(!l&&!v)return!1;var r=!1;try{var e=[7],o=e[f]();o.next=function(){return{done:r=!0}},e[f]=function(){return o},i(e)}catch(s){}return r}},{"./_wks":131}],90:[function(n,I,T){I.exports=function(f,v){return{value:v,done:!!f}}},{}],91:[function(n,I,T){I.exports={}},{}],92:[function(n,I,T){I.exports=!0},{}],93:[function(n,I,T){var f=n("./_uid")("meta"),v=n("./_is-object"),a=n("./_has"),i=n("./_object-dp").f,l=0,r=Object.isExtensible||function(){return!0},e=!n("./_fails")(function(){return r(Object.preventExtensions({}))}),o=function(w){i(w,f,{value:{i:"O"+ ++l,w:{}}})},s=function(w,b){if(!v(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!a(w,f)){if(!r(w))return"F";if(!b)return"E";o(w)}return w[f].i},p=function(w,b){if(!a(w,f)){if(!r(w))return!0;if(!b)return!1;o(w)}return w[f].w},d=function(w){return e&&c.NEED&&r(w)&&!a(w,f)&&o(w),w},c=I.exports={KEY:f,NEED:!1,fastKey:s,getWeak:p,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,I,T){var f=n("./_global"),v=n("./_task").set,a=f.MutationObserver||f.WebKitMutationObserver,i=f.process,l=f.Promise,r=n("./_cof")(i)=="process";I.exports=function(){var e,o,s,p=function(){var b,m;for(r&&(b=i.domain)&&b.exit();e;){m=e.fn,e=e.next;try{m()}catch(S){throw e?s():o=void 0,S}}o=void 0,b&&b.enter()};if(r)s=function(){i.nextTick(p)};else if(!a||f.navigator&&f.navigator.standalone)if(l&&l.resolve){var d=l.resolve(void 0);s=function(){d.then(p)}}else s=function(){v.call(f,p)};else{var c=!0,w=document.createTextNode("");new a(p).observe(w,{characterData:!0}),s=function(){w.data=c=!c}}return function(b){var m={fn:b,next:void 0};o&&(o.next=m),e||(e=m,s()),o=m}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,I,T){"use strict";function f(a){var i,l;this.promise=new a(function(r,e){if(i!==void 0||l!==void 0)throw TypeError("Bad Promise constructor");i=r,l=e}),this.resolve=v(i),this.reject=v(l)}var v=n("./_a-function");I.exports.f=function(a){return new f(a)}},{"./_a-function":58}],96:[function(n,I,T){"use strict";var f=n("./_object-keys"),v=n("./_object-gops"),a=n("./_object-pie"),i=n("./_to-object"),l=n("./_iobject"),r=Object.assign;I.exports=!r||n("./_fails")(function(){var e={},o={},s=Symbol(),p="abcdefghijklmnopqrst";return e[s]=7,p.split("").forEach(function(d){o[d]=d}),r({},e)[s]!=7||Object.keys(r({},o)).join("")!=p})?function(e,o){for(var s=i(e),p=arguments.length,d=1,c=v.f,w=a.f;p>d;)for(var b,m=l(arguments[d++]),S=c?f(m).concat(c(m)):f(m),x=S.length,h=0;x>h;)w.call(m,b=S[h++])&&(s[b]=m[b]);return s}:r},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,I,T){var f=n("./_an-object"),v=n("./_object-dps"),a=n("./_enum-bug-keys"),i=n("./_shared-key")("IE_PROTO"),l=function(){},r=function(){var e,o=n("./_dom-create")("iframe"),s=a.length;for(o.style.display="none",n("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write("<script>document.F=Object</script>"),e.close(),r=e.F;s--;)delete r.prototype[a[s]];return r()};I.exports=Object.create||function(e,o){var s;return e!==null?(l.prototype=f(e),s=new l,l.prototype=null,s[i]=e):s=r(),o===void 0?s:v(s,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,I,T){var f=n("./_an-object"),v=n("./_ie8-dom-define"),a=n("./_to-primitive"),i=Object.defineProperty;T.f=n("./_descriptors")?Object.defineProperty:function(l,r,e){if(f(l),r=a(r,!0),f(e),v)try{return i(l,r,e)}catch(o){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(l[r]=e.value),l}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,I,T){var f=n("./_object-dp"),v=n("./_an-object"),a=n("./_object-keys");I.exports=n("./_descriptors")?Object.defineProperties:function(i,l){v(i);for(var r,e=a(l),o=e.length,s=0;o>s;)f.f(i,r=e[s++],l[r]);return i}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,I,T){var f=n("./_object-pie"),v=n("./_property-desc"),a=n("./_to-iobject"),i=n("./_to-primitive"),l=n("./_has"),r=n("./_ie8-dom-define"),e=Object.getOwnPropertyDescriptor;T.f=n("./_descriptors")?e:function(o,s){if(o=a(o),s=i(s,!0),r)try{return e(o,s)}catch(p){}if(l(o,s))return v(!f.f.call(o,s),o[s])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,I,T){var f=n("./_to-iobject"),v=n("./_object-gopn").f,a={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(r){try{return v(r)}catch(e){return i.slice()}};I.exports.f=function(r){return i&&a.call(r)=="[object Window]"?l(r):v(f(r))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,I,T){var f=n("./_object-keys-internal"),v=n("./_enum-bug-keys").concat("length","prototype");T.f=Object.getOwnPropertyNames||function(a){return f(a,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,I,T){T.f=Object.getOwnPropertySymbols},{}],104:[function(n,I,T){var f=n("./_has"),v=n("./_to-object"),a=n("./_shared-key")("IE_PROTO"),i=Object.prototype;I.exports=Object.getPrototypeOf||function(l){return l=v(l),f(l,a)?l[a]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?i:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,I,T){var f=n("./_has"),v=n("./_to-iobject"),a=n("./_array-includes")(!1),i=n("./_shared-key")("IE_PROTO");I.exports=function(l,r){var e,o=v(l),s=0,p=[];for(e in o)e!=i&&f(o,e)&&p.push(e);for(;r.length>s;)f(o,e=r[s++])&&(~a(p,e)||p.push(e));return p}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,I,T){var f=n("./_object-keys-internal"),v=n("./_enum-bug-keys");I.exports=Object.keys||function(a){return f(a,v)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,I,T){T.f={}.propertyIsEnumerable},{}],108:[function(n,I,T){var f=n("./_export"),v=n("./_core"),a=n("./_fails");I.exports=function(i,l){var r=(v.Object||{})[i]||Object[i],e={};e[i]=l(r),f(f.S+f.F*a(function(){r(1)}),"Object",e)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,I,T){I.exports=function(f){try{return{e:!1,v:f()}}catch(v){return{e:!0,v}}}},{}],110:[function(n,I,T){var f=n("./_an-object"),v=n("./_is-object"),a=n("./_new-promise-capability");I.exports=function(i,l){if(f(i),v(l)&&l.constructor===i)return l;var r=a.f(i);return(0,r.resolve)(l),r.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,I,T){I.exports=function(f,v){return{enumerable:!(1&f),configurable:!(2&f),writable:!(4&f),value:v}}},{}],112:[function(n,I,T){var f=n("./_hide");I.exports=function(v,a,i){for(var l in a)i&&v[l]?v[l]=a[l]:f(v,l,a[l]);return v}},{"./_hide":78}],113:[function(n,I,T){I.exports=n("./_hide")},{"./_hide":78}],114:[function(n,I,T){"use strict";var f=n("./_global"),v=n("./_core"),a=n("./_object-dp"),i=n("./_descriptors"),l=n("./_wks")("species");I.exports=function(r){var e=typeof v[r]=="function"?v[r]:f[r];i&&e&&!e[l]&&a.f(e,l,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,I,T){var f=n("./_object-dp").f,v=n("./_has"),a=n("./_wks")("toStringTag");I.exports=function(i,l,r){i&&!v(i=r?i:i.prototype,a)&&f(i,a,{configurable:!0,value:l})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,I,T){var f=n("./_shared")("keys"),v=n("./_uid");I.exports=function(a){return f[a]||(f[a]=v(a))}},{"./_shared":117,"./_uid":127}],117:[function(n,I,T){var f=n("./_core"),v=n("./_global"),a=v["__core-js_shared__"]||(v["__core-js_shared__"]={});(I.exports=function(i,l){return a[i]||(a[i]=l!==void 0?l:{})})("versions",[]).push({version:f.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,I,T){var f=n("./_an-object"),v=n("./_a-function"),a=n("./_wks")("species");I.exports=function(i,l){var r,e=f(i).constructor;return e===void 0||(r=f(e)[a])==null?l:v(r)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,I,T){var f=n("./_to-integer"),v=n("./_defined");I.exports=function(a){return function(i,l){var r,e,o=String(v(i)),s=f(l),p=o.length;return s<0||s>=p?a?"":void 0:(r=o.charCodeAt(s),r<55296||r>56319||s+1===p||(e=o.charCodeAt(s+1))<56320||e>57343?a?o.charAt(s):r:a?o.slice(s,s+2):e-56320+(r-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,I,T){var f,v,a,i=n("./_ctx"),l=n("./_invoke"),r=n("./_html"),e=n("./_dom-create"),o=n("./_global"),s=o.process,p=o.setImmediate,d=o.clearImmediate,c=o.MessageChannel,w=o.Dispatch,b=0,m={},S=function(){var h=+this;if(m.hasOwnProperty(h)){var _=m[h];delete m[h],_()}},x=function(h){S.call(h.data)};p&&d||(p=function(h){for(var _=[],O=1;arguments.length>O;)_.push(arguments[O++]);return m[++b]=function(){l(typeof h=="function"?h:Function(h),_)},f(b),b},d=function(h){delete m[h]},n("./_cof")(s)=="process"?f=function(h){s.nextTick(i(S,h,1))}:w&&w.now?f=function(h){w.now(i(S,h,1))}:c?(v=new c,a=v.port2,v.port1.onmessage=x,f=i(a.postMessage,a,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(f=function(h){o.postMessage(h+"","*")},o.addEventListener("message",x,!1)):f="onreadystatechange"in e("script")?function(h){r.appendChild(e("script")).onreadystatechange=function(){r.removeChild(this),S.call(h)}}:function(h){setTimeout(i(S,h,1),0)}),I.exports={set:p,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,I,T){var f=n("./_to-integer"),v=Math.max,a=Math.min;I.exports=function(i,l){return i=f(i),i<0?v(i+l,0):a(i,l)}},{"./_to-integer":122}],122:[function(n,I,T){var f=Math.ceil,v=Math.floor;I.exports=function(a){return isNaN(a=+a)?0:(a>0?v:f)(a)}},{}],123:[function(n,I,T){var f=n("./_iobject"),v=n("./_defined");I.exports=function(a){return f(v(a))}},{"./_defined":68,"./_iobject":82}],124:[function(n,I,T){var f=n("./_to-integer"),v=Math.min;I.exports=function(a){return a>0?v(f(a),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,I,T){var f=n("./_defined");I.exports=function(v){return Object(f(v))}},{"./_defined":68}],126:[function(n,I,T){var f=n("./_is-object");I.exports=function(v,a){if(!f(v))return v;var i,l;if(a&&typeof(i=v.toString)=="function"&&!f(l=i.call(v)))return l;if(typeof(i=v.valueOf)=="function"&&!f(l=i.call(v)))return l;if(!a&&typeof(i=v.toString)=="function"&&!f(l=i.call(v)))return l;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,I,T){var f=0,v=Math.random();I.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++f+v).toString(36))}},{}],128:[function(n,I,T){var f=n("./_global"),v=f.navigator;I.exports=v&&v.userAgent||""},{"./_global":76}],129:[function(n,I,T){var f=n("./_global"),v=n("./_core"),a=n("./_library"),i=n("./_wks-ext"),l=n("./_object-dp").f;I.exports=function(r){var e=v.Symbol||(v.Symbol=a?{}:f.Symbol||{});r.charAt(0)=="_"||r in e||l(e,r,{value:i.f(r)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,I,T){T.f=n("./_wks")},{"./_wks":131}],131:[function(n,I,T){var f=n("./_shared")("wks"),v=n("./_uid"),a=n("./_global").Symbol,i=typeof a=="function";(I.exports=function(l){return f[l]||(f[l]=i&&a[l]||(i?a:v)("Symbol."+l))}).store=f},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,I,T){var f=n("./_classof"),v=n("./_wks")("iterator"),a=n("./_iterators");I.exports=n("./_core").getIteratorMethod=function(i){if(i!=null)return i[v]||i["@@iterator"]||a[f(i)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,I,T){"use strict";var f=n("./_ctx"),v=n("./_export"),a=n("./_to-object"),i=n("./_iter-call"),l=n("./_is-array-iter"),r=n("./_to-length"),e=n("./_create-property"),o=n("./core.get-iterator-method");v(v.S+v.F*!n("./_iter-detect")(function(s){Array.from(s)}),"Array",{from:function(s){var p,d,c,w,b=a(s),m=typeof this=="function"?this:Array,S=arguments.length,x=S>1?arguments[1]:void 0,h=x!==void 0,_=0,O=o(b);if(h&&(x=f(x,S>2?arguments[2]:void 0,2)),O==null||m==Array&&l(O))for(p=r(b.length),d=new m(p);p>_;_++)e(d,_,h?x(b[_],_):b[_]);else for(w=O.call(b),d=new m;!(c=w.next()).done;_++)e(d,_,h?i(w,x,[c.value,_],!0):c.value);return d.length=_,d}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,I,T){"use strict";var f=n("./_add-to-unscopables"),v=n("./_iter-step"),a=n("./_iterators"),i=n("./_to-iobject");I.exports=n("./_iter-define")(Array,"Array",function(l,r){this._t=i(l),this._i=0,this._k=r},function(){var l=this._t,r=this._k,e=this._i++;return!l||e>=l.length?(this._t=void 0,v(1)):r=="keys"?v(0,e):r=="values"?v(0,l[e]):v(0,[e,l[e]])},"values"),a.Arguments=a.Array,f("keys"),f("values"),f("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,I,T){"use strict";var f=n("./_is-object"),v=n("./_object-gpo"),a=n("./_wks")("hasInstance"),i=Function.prototype;a in i||n("./_object-dp").f(i,a,{value:function(l){if(typeof this!="function"||!f(l))return!1;if(!f(this.prototype))return l instanceof this;for(;l=v(l);)if(this.prototype===l)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,I,T){var f=n("./_export");f(f.S+f.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,I,T){var f=n("./_export");f(f.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,I,T){var f=n("./_export");f(f.S+f.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,I,T){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,I,T){var f=n("./_to-object"),v=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(a){return v(f(a))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,I,T){var f=n("./_to-object"),v=n("./_object-keys");n("./_object-sap")("keys",function(){return function(a){return v(f(a))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,I,T){arguments[4][36][0].apply(T,arguments)},{dup:36}],143:[function(n,I,T){"use strict";var f,v,a,i,l=n("./_library"),r=n("./_global"),e=n("./_ctx"),o=n("./_classof"),s=n("./_export"),p=n("./_is-object"),d=n("./_a-function"),c=n("./_an-instance"),w=n("./_for-of"),b=n("./_species-constructor"),m=n("./_task").set,S=n("./_microtask")(),x=n("./_new-promise-capability"),h=n("./_perform"),_=n("./_user-agent"),O=n("./_promise-resolve"),j=r.TypeError,y=r.process,R=y&&y.versions,P=R&&R.v8||"",C=r.Promise,N=o(y)=="process",G=function(){},H=v=x.f,K=!!function(){try{var M=C.resolve(1),B=(M.constructor={})[n("./_wks")("species")]=function(te){te(G,G)};return(N||typeof PromiseRejectionEvent=="function")&&M.then(G)instanceof B&&P.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(te){}}(),ie=function(M){var B;return!(!p(M)||typeof(B=M.then)!="function")&&B},z=function(M,B){if(!M._n){M._n=!0;var te=M._c;S(function(){for(var Y=M._v,oe=M._s==1,ne=0;te.length>ne;)!function(se){var fe,J,Q,ee=oe?se.ok:se.fail,F=se.resolve,U=se.reject,$=se.domain;try{ee?(oe||(M._h==2&&X(M),M._h=1),ee===!0?fe=Y:($&&$.enter(),fe=ee(Y),$&&($.exit(),Q=!0)),fe===se.promise?U(j("Promise-chain cycle")):(J=ie(fe))?J.call(fe,F,U):F(fe)):U(Y)}catch(Z){$&&!Q&&$.exit(),U(Z)}}(te[ne++]);M._c=[],M._n=!1,B&&!M._h&&re(M)})}},re=function(M){m.call(r,function(){var B,te,Y,oe=M._v,ne=V(M);if(ne&&(B=h(function(){N?y.emit("unhandledRejection",oe,M):(te=r.onunhandledrejection)?te({promise:M,reason:oe}):(Y=r.console)&&Y.error&&Y.error("Unhandled promise rejection",oe)}),M._h=N||V(M)?2:1),M._a=void 0,ne&&B.e)throw B.v})},V=function(M){return M._h!==1&&(M._a||M._c).length===0},X=function(M){m.call(r,function(){var B;N?y.emit("rejectionHandled",M):(B=r.onrejectionhandled)&&B({promise:M,reason:M._v})})},D=function(M){var B=this;B._d||(B._d=!0,B=B._w||B,B._v=M,B._s=2,B._a||(B._a=B._c.slice()),z(B,!0))},L=function(M){var B,te=this;if(!te._d){te._d=!0,te=te._w||te;try{if(te===M)throw j("Promise can't be resolved itself");(B=ie(M))?S(function(){var Y={_w:te,_d:!1};try{B.call(M,e(L,Y,1),e(D,Y,1))}catch(oe){D.call(Y,oe)}}):(te._v=M,te._s=1,z(te,!1))}catch(Y){D.call({_w:te,_d:!1},Y)}}};K||(C=function(M){c(this,C,"Promise","_h"),d(M),f.call(this);try{M(e(L,this,1),e(D,this,1))}catch(B){D.call(this,B)}},f=function(M){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},f.prototype=n("./_redefine-all")(C.prototype,{then:function(M,B){var te=H(b(this,C));return te.ok=typeof M!="function"||M,te.fail=typeof B=="function"&&B,te.domain=N?y.domain:void 0,this._c.push(te),this._a&&this._a.push(te),this._s&&z(this,!1),te.promise},catch:function(M){return this.then(void 0,M)}}),a=function(){var M=new f;this.promise=M,this.resolve=e(L,M,1),this.reject=e(D,M,1)},x.f=H=function(M){return M===C||M===i?new a(M):v(M)}),s(s.G+s.W+s.F*!K,{Promise:C}),n("./_set-to-string-tag")(C,"Promise"),n("./_set-species")("Promise"),i=n("./_core").Promise,s(s.S+s.F*!K,"Promise",{reject:function(M){var B=H(this);return(0,B.reject)(M),B.promise}}),s(s.S+s.F*(l||!K),"Promise",{resolve:function(M){return O(l&&this===i?C:this,M)}}),s(s.S+s.F*!(K&&n("./_iter-detect")(function(M){C.all(M).catch(G)})),"Promise",{all:function(M){var B=this,te=H(B),Y=te.resolve,oe=te.reject,ne=h(function(){var se=[],fe=0,J=1;w(M,!1,function(Q){var ee=fe++,F=!1;se.push(void 0),J++,B.resolve(Q).then(function(U){F||(F=!0,se[ee]=U,--J||Y(se))},oe)}),--J||Y(se)});return ne.e&&oe(ne.v),te.promise},race:function(M){var B=this,te=H(B),Y=te.reject,oe=h(function(){w(M,!1,function(ne){B.resolve(ne).then(te.resolve,Y)})});return oe.e&&Y(oe.v),te.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,I,T){var f=n("./_export"),v=n("./_to-absolute-index"),a=String.fromCharCode,i=String.fromCodePoint;f(f.S+f.F*(!!i&&i.length!=1),"String",{fromCodePoint:function(l){for(var r,e=[],o=arguments.length,s=0;o>s;){if(r=+arguments[s++],v(r,1114111)!==r)throw RangeError(r+" is not a valid code point");e.push(r<65536?a(r):a(55296+((r-=65536)>>10),r%1024+56320))}return e.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,I,T){"use strict";var f=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(v){this._t=String(v),this._i=0},function(){var v,a=this._t,i=this._i;return i>=a.length?{value:void 0,done:!0}:(v=f(a,i),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,I,T){"use strict";var f=n("./_global"),v=n("./_has"),a=n("./_descriptors"),i=n("./_export"),l=n("./_redefine"),r=n("./_meta").KEY,e=n("./_fails"),o=n("./_shared"),s=n("./_set-to-string-tag"),p=n("./_uid"),d=n("./_wks"),c=n("./_wks-ext"),w=n("./_wks-define"),b=n("./_enum-keys"),m=n("./_is-array"),S=n("./_an-object"),x=n("./_is-object"),h=n("./_to-iobject"),_=n("./_to-primitive"),O=n("./_property-desc"),j=n("./_object-create"),y=n("./_object-gopn-ext"),R=n("./_object-gopd"),P=n("./_object-dp"),C=n("./_object-keys"),N=R.f,G=P.f,H=y.f,K=f.Symbol,ie=f.JSON,z=ie&&ie.stringify,re=d("_hidden"),V=d("toPrimitive"),X={}.propertyIsEnumerable,D=o("symbol-registry"),L=o("symbols"),M=o("op-symbols"),B=Object.prototype,te=typeof K=="function",Y=f.QObject,oe=!Y||!Y.prototype||!Y.prototype.findChild,ne=a&&e(function(){return j(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a!=7})?function(A,g,E){var q=N(B,g);q&&delete B[g],G(A,g,E),q&&A!==B&&G(B,g,q)}:G,se=function(A){var g=L[A]=j(K.prototype);return g._k=A,g},fe=te&&typeof K.iterator=="symbol"?function(A){return typeof A=="symbol"}:function(A){return A instanceof K},J=function(A,g,E){return A===B&&J(M,g,E),S(A),g=_(g,!0),S(E),v(L,g)?(E.enumerable?(v(A,re)&&A[re][g]&&(A[re][g]=!1),E=j(E,{enumerable:O(0,!1)})):(v(A,re)||G(A,re,O(1,{})),A[re][g]=!0),ne(A,g,E)):G(A,g,E)},Q=function(A,g){S(A);for(var E,q=b(g=h(g)),W=0,le=q.length;le>W;)J(A,E=q[W++],g[E]);return A},ee=function(A,g){return g===void 0?j(A):Q(j(A),g)},F=function(A){var g=X.call(this,A=_(A,!0));return!(this===B&&v(L,A)&&!v(M,A))&&(!(g||!v(this,A)||!v(L,A)||v(this,re)&&this[re][A])||g)},U=function(A,g){if(A=h(A),g=_(g,!0),A!==B||!v(L,g)||v(M,g)){var E=N(A,g);return!E||!v(L,g)||v(A,re)&&A[re][g]||(E.enumerable=!0),E}},$=function(A){for(var g,E=H(h(A)),q=[],W=0;E.length>W;)v(L,g=E[W++])||g==re||g==r||q.push(g);return q},Z=function(A){for(var g,E=A===B,q=H(E?M:h(A)),W=[],le=0;q.length>le;)!v(L,g=q[le++])||E&&!v(B,g)||W.push(L[g]);return W};te||(K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor!");var A=p(arguments.length>0?arguments[0]:void 0),g=function(E){this===B&&g.call(M,E),v(this,re)&&v(this[re],A)&&(this[re][A]=!1),ne(this,A,O(1,E))};return a&&oe&&ne(B,A,{configurable:!0,set:g}),se(A)},l(K.prototype,"toString",function(){return this._k}),R.f=U,P.f=J,n("./_object-gopn").f=y.f=$,n("./_object-pie").f=F,n("./_object-gops").f=Z,a&&!n("./_library")&&l(B,"propertyIsEnumerable",F,!0),c.f=function(A){return se(d(A))}),i(i.G+i.W+i.F*!te,{Symbol:K});for(var ue="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),k=0;ue.length>k;)d(ue[k++]);for(var t=C(d.store),u=0;t.length>u;)w(t[u++]);i(i.S+i.F*!te,"Symbol",{for:function(A){return v(D,A+="")?D[A]:D[A]=K(A)},keyFor:function(A){if(!fe(A))throw TypeError(A+" is not a symbol!");for(var g in D)if(D[g]===A)return g},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i(i.S+i.F*!te,"Object",{create:ee,defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:U,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),ie&&i(i.S+i.F*(!te||e(function(){var A=K();return z([A])!="[null]"||z({a:A})!="{}"||z(Object(A))!="{}"})),"JSON",{stringify:function(A){for(var g,E,q=[A],W=1;arguments.length>W;)q.push(arguments[W++]);if(E=g=q[1],(x(g)||A!==void 0)&&!fe(A))return m(g)||(g=function(le,ae){if(typeof E=="function"&&(ae=E.call(this,le,ae)),!fe(ae))return ae}),q[1]=g,z.apply(ie,q)}}),K.prototype[V]||n("./_hide")(K.prototype,V,K.prototype.valueOf),s(K,"Symbol"),s(Math,"Math",!0),s(f.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,I,T){"use strict";var f=n("./_export"),v=n("./_core"),a=n("./_global"),i=n("./_species-constructor"),l=n("./_promise-resolve");f(f.P+f.R,"Promise",{finally:function(r){var e=i(this,v.Promise||a.Promise),o=typeof r=="function";return this.then(o?function(s){return l(e,r()).then(function(){return s})}:r,o?function(s){return l(e,r()).then(function(){throw s})}:r)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,I,T){"use strict";var f=n("./_export"),v=n("./_new-promise-capability"),a=n("./_perform");f(f.S,"Promise",{try:function(i){var l=v.f(this),r=a(i);return(r.e?l.reject:l.resolve)(r.v),l.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,I,T){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,I,T){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,I,T){n("./es6.array.iterator");for(var f=n("./_global"),v=n("./_hide"),a=n("./_iterators"),i=n("./_wks")("toStringTag"),l="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(","),r=0;r<l.length;r++){var e=l[r],o=f[e],s=o&&o.prototype;s&&!s[i]&&v(s,i,e),a[e]=a.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,I,T){var f=n("./_export"),v=n("./_task");f(f.G+f.B,{setImmediate:v.set,clearImmediate:v.clear})},{"./_export":73,"./_task":120}],153:[function(n,I,T){(function(f){"use strict";function v(_){return Array.isArray?Array.isArray(_):S(_)==="[object Array]"}function a(_){return typeof _=="boolean"}function i(_){return _===null}function l(_){return _==null}function r(_){return typeof _=="number"}function e(_){return typeof _=="string"}function o(_){return(_===void 0?"undefined":(0,h.default)(_))==="symbol"}function s(_){return _===void 0}function p(_){return S(_)==="[object RegExp]"}function d(_){return(_===void 0?"undefined":(0,h.default)(_))==="object"&&_!==null}function c(_){return S(_)==="[object Date]"}function w(_){return S(_)==="[object Error]"||_ instanceof Error}function b(_){return typeof _=="function"}function m(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,h.default)(_))==="symbol"||_===void 0}function S(_){return Object.prototype.toString.call(_)}var x=n("babel-runtime/helpers/typeof"),h=function(_){return _&&_.__esModule?_:{default:_}}(x);T.isArray=v,T.isBoolean=a,T.isNull=i,T.isNullOrUndefined=l,T.isNumber=r,T.isString=e,T.isSymbol=o,T.isUndefined=s,T.isRegExp=p,T.isObject=d,T.isDate=c,T.isError=w,T.isFunction=b,T.isPrimitive=m,T.isBuffer=f.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,I,T){"use strict";var f=n("babel-runtime/helpers/typeof"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);!function(a){function i(s,p){for(s=String(s),p=p||2;s.length<p;)s="0"+s;return s}function l(s){var p=new Date(s.getFullYear(),s.getMonth(),s.getDate());p.setDate(p.getDate()-(p.getDay()+6)%7+3);var d=new Date(p.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var c=p.getTimezoneOffset()-d.getTimezoneOffset();p.setHours(p.getHours()-c);var w=(p-d)/6048e5;return 1+Math.floor(w)}function r(s){var p=s.getDay();return p===0&&(p=7),p}function e(s){return s===null?"null":s===void 0?"undefined":(s===void 0?"undefined":(0,v.default)(s))!=="object"?s===void 0?"undefined":(0,v.default)(s):Array.isArray(s)?"array":{}.toString.call(s).slice(8,-1).toLowerCase()}var o=function(){var s=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,p=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(c,w,b,m){if(arguments.length!==1||e(c)!=="string"||/\d/.test(c)||(w=c,c=void 0),c=c||new Date,c instanceof Date||(c=new Date(c)),isNaN(c))throw TypeError("Invalid date");w=String(o.masks[w]||w||o.masks.default);var S=w.slice(0,4);S!=="UTC:"&&S!=="GMT:"||(w=w.slice(4),b=!0,S==="GMT:"&&(m=!0));var x=b?"getUTC":"get",h=c[x+"Date"](),_=c[x+"Day"](),O=c[x+"Month"](),j=c[x+"FullYear"](),y=c[x+"Hours"](),R=c[x+"Minutes"](),P=c[x+"Seconds"](),C=c[x+"Milliseconds"](),N=b?0:c.getTimezoneOffset(),G=l(c),H=r(c),K={d:h,dd:i(h),ddd:o.i18n.dayNames[_],dddd:o.i18n.dayNames[_+7],m:O+1,mm:i(O+1),mmm:o.i18n.monthNames[O],mmmm:o.i18n.monthNames[O+12],yy:String(j).slice(2),yyyy:j,h:y%12||12,hh:i(y%12||12),H:y,HH:i(y),M:R,MM:i(R),s:P,ss:i(P),l:i(C,3),L:i(Math.round(C/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:m?"GMT":b?"UTC":(String(c).match(p)||[""]).pop().replace(d,""),o:(N>0?"-":"+")+i(100*Math.floor(Math.abs(N)/60)+Math.abs(N)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:G,N:H};return w.replace(s,function(ie){return ie in K?K[ie]:ie.slice(1,ie.length-1)})}}();o.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"},o.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 o}):(T===void 0?"undefined":(0,v.default)(T))==="object"?I.exports=o:a.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,I,T){(function(f){function v(){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 a(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+T.humanize(this.diff),o){var s="color: "+this.color;e.splice(1,0,s,"color: inherit");var p=0,d=0;e[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(p++,c==="%c"&&(d=p))}),e.splice(d,0,s)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function l(e){try{e==null?T.storage.removeItem("debug"):T.storage.debug=e}catch(o){}}function r(){var e;try{e=T.storage.debug}catch(o){}return!e&&f!==void 0&&"env"in f&&(e=f.env.DEBUG),e}T=I.exports=n("./debug"),T.log=i,T.formatArgs=a,T.save=l,T.load=r,T.useColors=v,T.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),T.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],T.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},T.enable(r())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,I,T){function f(o){var s,p=0;for(s in o)p=(p<<5)-p+o.charCodeAt(s),p|=0;return T.colors[Math.abs(p)%T.colors.length]}function v(o){function s(){if(s.enabled){var p=s,d=+new Date,c=d-(e||d);p.diff=c,p.prev=e,p.curr=d,e=d;for(var w=new Array(arguments.length),b=0;b<w.length;b++)w[b]=arguments[b];w[0]=T.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var m=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(S,x){if(S==="%%")return S;m++;var h=T.formatters[x];if(typeof h=="function"){var _=w[m];S=h.call(p,_),w.splice(m,1),m--}return S}),T.formatArgs.call(p,w),(s.log||T.log||console.log.bind(console)).apply(p,w)}}return s.namespace=o,s.enabled=T.enabled(o),s.useColors=T.useColors(),s.color=f(o),typeof T.init=="function"&&T.init(s),s}function a(o){T.save(o),T.names=[],T.skips=[];for(var s=(typeof o=="string"?o:"").split(/[\s,]+/),p=s.length,d=0;d<p;d++)s[d]&&(o=s[d].replace(/\*/g,".*?"),o[0]==="-"?T.skips.push(new RegExp("^"+o.substr(1)+"$")):T.names.push(new RegExp("^"+o+"$")))}function i(){T.enable("")}function l(o){var s,p;for(s=0,p=T.skips.length;s<p;s++)if(T.skips[s].test(o))return!1;for(s=0,p=T.names.length;s<p;s++)if(T.names[s].test(o))return!0;return!1}function r(o){return o instanceof Error?o.stack||o.message:o}T=I.exports=v.debug=v.default=v,T.coerce=r,T.disable=i,T.enable=a,T.enabled=l,T.humanize=n("ms"),T.names=[],T.skips=[],T.formatters={};var e},{ms:169}],157:[function(n,I,T){"use strict";function f(a){var i=""+a,l=v.exec(i);if(!l)return i;var r,e="",o=0,s=0;for(o=l.index;o<i.length;o++){switch(i.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==o&&(e+=i.substring(s,o)),s=o+1,e+=r}return s!==o?e+i.substring(s,o):e}var v=/["'&<>]/;I.exports=f},{}],158:[function(n,I,T){function f(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function v(r){return typeof r=="function"}function a(r){return typeof r=="number"}function i(r){return typeof r=="object"&&r!==null}function l(r){return r===void 0}I.exports=f,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._maxListeners=void 0,f.defaultMaxListeners=10,f.prototype.setMaxListeners=function(r){if(!a(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},f.prototype.emit=function(r){var e,o,s,p,d,c;if(this._events||(this._events={}),r==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var w=new Error('Uncaught, unspecified "error" event. ('+e+")");throw w.context=e,w}if(o=this._events[r],l(o))return!1;if(v(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:p=Array.prototype.slice.call(arguments,1),o.apply(this,p)}else if(i(o))for(p=Array.prototype.slice.call(arguments,1),c=o.slice(),s=c.length,d=0;d<s;d++)c[d].apply(this,p);return!0},f.prototype.addListener=function(r,e){var o;if(!v(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,v(e.listener)?e.listener:e),this._events[r]?i(this._events[r])?this._events[r].push(e):this._events[r]=[this._events[r],e]:this._events[r]=e,i(this._events[r])&&!this._events[r].warned&&(o=l(this._maxListeners)?f.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[r].length>o&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),typeof console.trace=="function"&&console.trace()),this},f.prototype.on=f.prototype.addListener,f.prototype.once=function(r,e){function o(){this.removeListener(r,o),s||(s=!0,e.apply(this,arguments))}if(!v(e))throw TypeError("listener must be a function");var s=!1;return o.listener=e,this.on(r,o),this},f.prototype.removeListener=function(r,e){var o,s,p,d;if(!v(e))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(o=this._events[r],p=o.length,s=-1,o===e||v(o.listener)&&o.listener===e)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,e);else if(i(o)){for(d=p;d-- >0;)if(o[d]===e||o[d].listener&&o[d].listener===e){s=d;break}if(s<0)return this;o.length===1?(o.length=0,delete this._events[r]):o.splice(s,1),this._events.removeListener&&this.emit("removeListener",r,e)}return this},f.prototype.removeAllListeners=function(r){var e,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[r]&&delete this._events[r],this;if(arguments.length===0){for(e in this._events)e!=="removeListener"&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[r],v(o))this.removeListener(r,o);else if(o)for(;o.length;)this.removeListener(r,o[o.length-1]);return delete this._events[r],this},f.prototype.listeners=function(r){return this._events&&this._events[r]?v(this._events[r])?[this._events[r]]:this._events[r].slice():[]},f.prototype.listenerCount=function(r){if(this._events){var e=this._events[r];if(v(e))return 1;if(e)return e.length}return 0},f.listenerCount=function(r,e){return r.listenerCount(e)}},{}],159:[function(n,I,T){var f=n("http"),v=I.exports;for(var a in f)f.hasOwnProperty(a)&&(v[a]=f[a]);v.request=function(i,l){return i||(i={}),i.scheme="https",i.protocol="https:",f.request.call(this,i,l)}},{http:196}],160:[function(n,I,T){"use strict";var f=n("util"),v=n("ms");I.exports=function(a){if(typeof a=="number")return a;var i=v(a);if(i===void 0){var l=new Error(f.format("humanize-ms(%j) result undefined",a));console.warn(l.stack)}return i}},{ms:169,util:207}],161:[function(n,I,T){T.read=function(f,v,a,i,l){var r,e,o=8*l-i-1,s=(1<<o)-1,p=s>>1,d=-7,c=a?l-1:0,w=a?-1:1,b=f[v+c];for(c+=w,r=b&(1<<-d)-1,b>>=-d,d+=o;d>0;r=256*r+f[v+c],c+=w,d-=8);for(e=r&(1<<-d)-1,r>>=-d,d+=i;d>0;e=256*e+f[v+c],c+=w,d-=8);if(r===0)r=1-p;else{if(r===s)return e?NaN:1/0*(b?-1:1);e+=Math.pow(2,i),r-=p}return(b?-1:1)*e*Math.pow(2,r-i)},T.write=function(f,v,a,i,l,r){var e,o,s,p=8*r-l-1,d=(1<<p)-1,c=d>>1,w=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=i?0:r-1,m=i?1:-1,S=v<0||v===0&&1/v<0?1:0;for(v=Math.abs(v),isNaN(v)||v===1/0?(o=isNaN(v)?1:0,e=d):(e=Math.floor(Math.log(v)/Math.LN2),v*(s=Math.pow(2,-e))<1&&(e--,s*=2),v+=e+c>=1?w/s:w*Math.pow(2,1-c),v*s>=2&&(e++,s/=2),e+c>=d?(o=0,e=d):e+c>=1?(o=(v*s-1)*Math.pow(2,l),e+=c):(o=v*Math.pow(2,c-1)*Math.pow(2,l),e=0));l>=8;f[a+b]=255&o,b+=m,o/=256,l-=8);for(e=e<<l|o,p+=l;p>0;f[a+b]=255&e,b+=m,e/=256,p-=8);f[a+b-m]|=128*S}},{}],162:[function(n,I,T){typeof Object.create=="function"?I.exports=function(f,v){f.super_=v,f.prototype=Object.create(v.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}:I.exports=function(f,v){f.super_=v;var a=function(){};a.prototype=v.prototype,f.prototype=new a,f.prototype.constructor=f}},{}],163:[function(n,I,T){function f(a){return!!a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function v(a){return typeof a.readFloatLE=="function"&&typeof a.slice=="function"&&f(a.slice(0,0))}I.exports=function(a){return a!=null&&(f(a)||v(a)||!!a._isBuffer)}},{}],164:[function(n,I,T){!function(f){function v(l){return i.call(l).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function a(l){return typeof l=="function"&&(/^class(\s|\{\}$)/.test(i.call(l))||/^.*classCallCheck\(/.test(v(l)))}var i=Function.prototype.toString;T!==void 0?(I!==void 0&&I.exports&&(T=I.exports=a),T.isClass=a):typeof he=="function"&&he.amd?he([],function(){return a}):f.isClass=a}(this)},{}],165:[function(n,I,T){"use strict";function f(r){var e=r.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var v=n("core-util-is"),a=n("isstream"),i=n("is-class");Object.keys(v).map(function(r){T[f(r)]=v[r]}),T.stream=a,T.readableStream=a.isReadable,T.writableStream=a.isWritable,T.duplexStream=a.isDuplex,T.class=i,T.finite=function(r){return Number.isFinite(r)},T.NaN=function(r){return Number.isNaN(r)},T.generator=function(r){return r&&typeof r.next=="function"&&typeof r.throw=="function"},T.generatorFunction=function(r){return r&&r.constructor&&r.constructor.name==="GeneratorFunction"},T.asyncFunction=function(r){return r&&r.constructor&&r.constructor.name==="AsyncFunction"},T.promise=function(r){return r&&typeof r.then=="function"};var l=Math.pow(2,31);T.int=function(r){return v.isNumber(r)&&r%1==0},T.int32=function(r){return T.int(r)&&r<l&&r>=-l},T.long=function(r){return T.int(r)&&(r>=l||r<-l)},T.Long=function(r){return T.object(r)&&T.number(r.high)&&T.number(r.low)},T.double=function(r){return v.isNumber(r)&&!isNaN(r)&&r%1!=0},T.date=function(r){return r instanceof Date},T.regExp=function(r){return r instanceof RegExp},T.regexp=T.regExp,T.error=function(r){return r instanceof Error},T.array=function(r){return Array.isArray(r)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,I,T){var f={}.toString;I.exports=Array.isArray||function(v){return f.call(v)=="[object Array]"}},{}],167:[function(n,I,T){function f(r){return r instanceof l.Stream}function v(r){return f(r)&&typeof r._read=="function"&&typeof r._readableState=="object"}function a(r){return f(r)&&typeof r._write=="function"&&typeof r._writableState=="object"}function i(r){return v(r)&&a(r)}var l=n("stream");I.exports=f,I.exports.isReadable=v,I.exports.isWritable=a,I.exports.isDuplex=i},{stream:195}],168:[function(n,I,T){"use strict";function f(a,i,l){if(!a)throw new TypeError("argument dest is required");if(!i)throw new TypeError("argument src is required");return l===void 0&&(l=!0),Object.getOwnPropertyNames(i).forEach(function(r){if(l||!v.call(a,r)){var e=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(a,r,e)}}),a}I.exports=f;var v=Object.prototype.hasOwnProperty},{}],169:[function(n,I,T){function f(p){if(p=String(p),!(p.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(p);if(d){var c=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function v(p){return p>=o?Math.round(p/o)+"d":p>=e?Math.round(p/e)+"h":p>=r?Math.round(p/r)+"m":p>=l?Math.round(p/l)+"s":p+"ms"}function a(p){return i(p,o,"day")||i(p,e,"hour")||i(p,r,"minute")||i(p,l,"second")||p+" ms"}function i(p,d,c){if(!(p<d))return p<1.5*d?Math.floor(p/d)+" "+c:Math.ceil(p/d)+" "+c+"s"}var l=1e3,r=60*l,e=60*r,o=24*e,s=365.25*o;I.exports=function(p,d){d=d||{};var c=typeof p;if(c==="string"&&p.length>0)return f(p);if(c==="number"&&isNaN(p)===!1)return d.long?a(p):v(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))}},{}],170:[function(n,I,T){(function(f){function v(r,e){for(var o=0,s=r.length-1;s>=0;s--){var p=r[s];p==="."?r.splice(s,1):p===".."?(r.splice(s,1),o++):o&&(r.splice(s,1),o--)}if(e)for(;o--;o)r.unshift("..");return r}function a(r){typeof r!="string"&&(r+="");var e,o=0,s=-1,p=!0;for(e=r.length-1;e>=0;--e)if(r.charCodeAt(e)===47){if(!p){o=e+1;break}}else s===-1&&(p=!1,s=e+1);return s===-1?"":r.slice(o,s)}function i(r,e){if(r.filter)return r.filter(e);for(var o=[],s=0;s<r.length;s++)e(r[s],s,r)&&o.push(r[s]);return o}T.resolve=function(){for(var r="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var s=o>=0?arguments[o]:f.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,e=s.charAt(0)==="/")}return r=v(i(r.split("/"),function(p){return!!p}),!e).join("/"),(e?"/":"")+r||"."},T.normalize=function(r){var e=T.isAbsolute(r),o=l(r,-1)==="/";return r=v(i(r.split("/"),function(s){return!!s}),!e).join("/"),r||e||(r="."),r&&o&&(r+="/"),(e?"/":"")+r},T.isAbsolute=function(r){return r.charAt(0)==="/"},T.join=function(){var r=Array.prototype.slice.call(arguments,0);return T.normalize(i(r,function(e,o){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},T.relative=function(r,e){function o(m){for(var S=0;S<m.length&&m[S]==="";S++);for(var x=m.length-1;x>=0&&m[x]==="";x--);return S>x?[]:m.slice(S,x-S+1)}r=T.resolve(r).substr(1),e=T.resolve(e).substr(1);for(var s=o(r.split("/")),p=o(e.split("/")),d=Math.min(s.length,p.length),c=d,w=0;w<d;w++)if(s[w]!==p[w]){c=w;break}for(var b=[],w=c;w<s.length;w++)b.push("..");return b=b.concat(p.slice(c)),b.join("/")},T.sep="/",T.delimiter=":",T.dirname=function(r){if(typeof r!="string"&&(r+=""),r.length===0)return".";for(var e=r.charCodeAt(0),o=e===47,s=-1,p=!0,d=r.length-1;d>=1;--d)if((e=r.charCodeAt(d))===47){if(!p){s=d;break}}else p=!1;return s===-1?o?"/":".":o&&s===1?"/":r.slice(0,s)},T.basename=function(r,e){var o=a(r);return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o},T.extname=function(r){typeof r!="string"&&(r+="");for(var e=-1,o=0,s=-1,p=!0,d=0,c=r.length-1;c>=0;--c){var w=r.charCodeAt(c);if(w!==47)s===-1&&(p=!1,s=c+1),w===46?e===-1?e=c:d!==1&&(d=1):e!==-1&&(d=-1);else if(!p){o=c+1;break}}return e===-1||s===-1||d===0||d===1&&e===s-1&&e===o+1?"":r.slice(e,s)};var l="ab".substr(-1)==="b"?function(r,e,o){return r.substr(e,o)}:function(r,e,o){return e<0&&(e=r.length+e),r.substr(e,o)}}).call(this,n("_process"))},{_process:173}],171:[function(n,I,T){(function(f){(function(){"use strict";function v(P){return P=String(P),P.charAt(0).toUpperCase()+P.slice(1)}function a(P,C,N){var G={"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 C&&N&&/^Win/i.test(P)&&!/^Windows Phone /i.test(P)&&(G=G[/[\d.]+$/.exec(P)])&&(P="Windows "+G),P=String(P),C&&N&&(P=P.replace(RegExp(C,"i"),N)),P=l(P.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 i(P,C){var N=-1,G=P?P.length:0;if(typeof G=="number"&&G>-1&&G<=h)for(;++N<G;)C(P[N],N,P);else r(P,C)}function l(P){return P=d(P),/^(?:webOS|i(?:OS|P))/.test(P)?P:v(P)}function r(P,C){for(var N in P)j.call(P,N)&&C(P[N],N,P)}function e(P){return P==null?v(P):y.call(P).slice(8,-1)}function o(P,C){var N=P!=null?typeof P[C]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(N)||N=="object"&&!P[C])}function s(P){return String(P).replace(/([ -])(?!$)/g,"$1?")}function p(P,C){var N=null;return i(P,function(G,H){N=C(N,G,H,P)}),N}function d(P){return String(P).replace(/^ +| +$/g,"")}function c(P){function C(A){return p(A,function(g,E){var q=E.pattern||s(E);return!g&&(g=RegExp("\\b"+q+" *\\d+[.\\w_]*","i").exec(P)||RegExp("\\b"+q+" *\\w+-[\\w]*","i").exec(P)||RegExp("\\b"+q+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(P))&&((g=String(E.label&&!RegExp(q,"i").test(E.label)?E.label:g).split("/"))[1]&&!/[\d.]+/.test(g[0])&&(g[0]+=" "+g[1]),E=E.label||E,g=l(g[0].replace(RegExp(q,"i"),E).replace(RegExp("; *(?:"+E+"[_-])?","i")," ").replace(RegExp("("+E+")[-_.]?(\\w)","i"),"$1 $2"))),g})}function N(){return this.description||""}var G=b,H=P&&typeof P=="object"&&e(P)!="String";H&&(G=P,P=null);var K=G.navigator||{},ie=K.userAgent||"";P||(P=ie);var z,re,V=H?!!K.likeChrome:/\bChrome\b/.test(P)&&!/internal|\n/i.test(y.toString()),X=H?"Object":"ScriptBridgingProxyObject",D=H?"Object":"Environment",L=H&&G.java?"JavaPackage":e(G.java),M=H?"Object":"RuntimeObject",B=/\bJava/.test(L)&&G.java,te=B&&e(G.environment)==D,Y=B?"a":"\u4F2A",oe=B?"b":"\u5C3E",ne=G.document||{},se=G.operamini||G.opera,fe=_.test(fe=H&&se?se["[[Class]]"]:e(se))?fe:se=null,J=P,Q=[],ee=null,F=P==ie,U=F&&se&&typeof se.version=="function"&&se.version(),$=function(A){return p(A,function(g,E){return g||RegExp("\\b"+(E.pattern||s(E))+"\\b","i").exec(P)&&(E.label||E)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Z=function(A){return p(A,function(g,E){return g||RegExp("\\b"+(E.pattern||s(E))+"\\b","i").exec(P)&&(E.label||E)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),ue=C([{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(A){return p(A,function(g,E,q){return g||(E[ue]||E[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ue)]||RegExp("\\b"+s(q)+"(?:\\b|\\w*\\d)","i").exec(P))&&q})}({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(A){return p(A,function(g,E){var q=E.pattern||s(E);return!g&&(g=RegExp("\\b"+q+"(?:/[\\d.]+|[ \\w.]*)","i").exec(P))&&(g=a(g,q,E.label||E)),g})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if($&&($=[$]),k&&!ue&&(ue=C([k])),(z=/\bGoogle TV\b/.exec(ue))&&(ue=z[0]),/\bSimulator\b/i.test(P)&&(ue=(ue?ue+" ":"")+"Simulator"),Z=="Opera Mini"&&/\bOPiOS\b/.test(P)&&Q.push("running in Turbo/Uncompressed mode"),Z=="IE"&&/\blike iPhone OS\b/.test(P)?(z=c(P.replace(/like iPhone OS/,"")),k=z.manufacturer,ue=z.product):/^iP/.test(ue)?(Z||(Z="Safari"),t="iOS"+((z=/ OS ([\d_]+)/i.exec(P))?" "+z[1].replace(/_/g,"."):"")):Z!="Konqueror"||/buntu/i.test(t)?k&&k!="Google"&&(/Chrome/.test(Z)&&!/\bMobile Safari\b/i.test(P)||/\bVita\b/.test(ue))||/\bAndroid\b/.test(t)&&/^Chrome/.test(Z)&&/\bVersion\//i.test(P)?(Z="Android Browser",t=/\bAndroid\b/.test(t)?t:"Android"):Z=="Silk"?(/\bMobi/i.test(P)||(t="Android",Q.unshift("desktop mode")),/Accelerated *= *true/i.test(P)&&Q.unshift("accelerated")):Z=="PaleMoon"&&(z=/\bFirefox\/([\d.]+)\b/.exec(P))?Q.push("identifying as Firefox "+z[1]):Z=="Firefox"&&(z=/\b(Mobile|Tablet|TV)\b/i.exec(P))?(t||(t="Firefox OS"),ue||(ue=z[1])):!Z||(z=!/\bMinefield\b/i.test(P)&&/\b(?:Firefox|Safari)\b/.exec(Z))?(Z&&!ue&&/[\/,]|^[^(]+?\)/.test(P.slice(P.indexOf(z+"/")+8))&&(Z=null),(z=ue||k||t)&&(ue||k||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(t))&&(Z=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(t)?t:z)+" Browser")):Z=="Electron"&&(z=(/\bChrome\/([\d.]+)\b/.exec(P)||0)[1])&&Q.push("Chromium "+z):t="Kubuntu",U||(U=function(A){return p(A,function(g,E){return g||(RegExp(E+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(P)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",s(Z),"(?:Firefox|Minefield|NetFront)"])),(z=$=="iCab"&&parseFloat(U)>3&&"WebKit"||/\bOpera\b/.test(Z)&&(/\bOPR\b/.test(P)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(P)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(P)&&(t=="Mac OS"?"Tasman":"Trident")||$=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Z)&&"NetFront")&&($=[z]),Z=="IE"&&(z=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(P)||0)[1])?(Z+=" Mobile",t="Windows Phone "+(/\+$/.test(z)?z:z+".x"),Q.unshift("desktop mode")):/\bWPDesktop\b/i.test(P)?(Z="IE Mobile",t="Windows Phone 8.x",Q.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(P)||0)[1])):Z!="IE"&&$=="Trident"&&(z=/\brv:([\d.]+)/.exec(P))&&(Z&&Q.push("identifying as "+Z+(U?" "+U:"")),Z="IE",U=z[1]),F){if(o(G,"global"))if(B&&(z=B.lang.System,J=z.getProperty("os.arch"),t=t||z.getProperty("os.name")+" "+z.getProperty("os.version")),te){try{U=G.require("ringo/engine").version.join("."),Z="RingoJS"}catch(A){(z=G.system)&&z.global.system==G.system&&(Z="Narwhal",t||(t=z[0].os||null))}Z||(Z="Rhino")}else typeof G.process=="object"&&!G.process.browser&&(z=G.process)&&(typeof z.versions=="object"&&(typeof z.versions.electron=="string"?(Q.push("Node "+z.versions.node),Z="Electron",U=z.versions.electron):typeof z.versions.nw=="string"&&(Q.push("Chromium "+U,"Node "+z.versions.node),Z="NW.js",U=z.versions.nw)),Z||(Z="Node.js",J=z.arch,t=z.platform,U=/[\d.]+/.exec(z.version),U=U?U[0]:null));else e(z=G.runtime)==X?(Z="Adobe AIR",t=z.flash.system.Capabilities.os):e(z=G.phantom)==M?(Z="PhantomJS",U=(z=z.version||null)&&z.major+"."+z.minor+"."+z.patch):typeof ne.documentMode=="number"&&(z=/\bTrident\/(\d+)/i.exec(P))?(U=[U,ne.documentMode],(z=+z[1]+4)!=U[1]&&(Q.push("IE "+U[1]+" mode"),$&&($[1]=""),U[1]=z),U=Z=="IE"?String(U[1].toFixed(1)):U[0]):typeof ne.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Z)&&(Q.push("masking as "+Z+" "+U),Z="IE",U="11.0",$=["Trident"],t="Windows");t=t&&l(t)}if(U&&(z=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(P+";"+(F&&K.appMinorVersion))||/\bMinefield\b/i.test(P)&&"a")&&(ee=/b/i.test(z)?"beta":"alpha",U=U.replace(RegExp(z+"\\+?$"),"")+(ee=="beta"?oe:Y)+(/\d+\+?/.exec(z)||"")),Z=="Fennec"||Z=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(t))Z="Firefox Mobile";else if(Z=="Maxthon"&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ue))ue=="Xbox 360"&&(t=null),ue=="Xbox 360"&&/\bIEMobile\b/.test(P)&&Q.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Z)&&(!Z||ue||/Browser|Mobi/.test(Z))||t!="Windows CE"&&!/Mobi/i.test(P))if(Z=="IE"&&F)try{G.external===null&&Q.unshift("platform preview")}catch(A){Q.unshift("embedded")}else(/\bBlackBerry\b/.test(ue)||/\bBB10\b/.test(P))&&(z=(RegExp(ue.replace(/ +/g," *")+"/([.\\d]+)","i").exec(P)||0)[1]||U)?(z=[z,/BB10/.test(P)],t=(z[1]?(ue=null,k="BlackBerry"):"Device Software")+" "+z[0],U=null):this!=r&&ue!="Wii"&&(F&&se||/Opera/.test(Z)&&/\b(?:MSIE|Firefox)\b/i.test(P)||Z=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(t)||Z=="IE"&&(t&&!/^Win/.test(t)&&U>5.5||/\bWindows XP\b/.test(t)&&U>8||U==8&&!/\bTrident\b/.test(P)))&&!_.test(z=c.call(r,P.replace(_,"")+";"))&&z.name&&(z="ing as "+z.name+((z=z.version)?" "+z:""),_.test(Z)?(/\bIE\b/.test(z)&&t=="Mac OS"&&(t=null),z="identify"+z):(z="mask"+z,Z=fe?l(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(z)&&(t=null),F||(U=null)),$=["Presto"],Q.push(z));else Z+=" Mobile";(z=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(P)||0)[1])&&(z=[parseFloat(z.replace(/\.(\d)$/,".0$1")),z],Z=="Safari"&&z[1].slice(-1)=="+"?(Z="WebKit Nightly",ee="alpha",U=z[1].slice(0,-1)):U!=z[1]&&U!=(z[2]=(/\bSafari\/([\d.]+\+?)/i.exec(P)||0)[1])||(U=null),z[1]=(/\bChrome\/([\d.]+)/i.exec(P)||0)[1],z[0]==537.36&&z[2]==537.36&&parseFloat(z[1])>=28&&$=="WebKit"&&($=["Blink"]),F&&(V||z[1])?($&&($[1]="like Chrome"),z=z[1]||(z=z[0],z<530?1:z<532?2:z<532.05?3:z<533?4:z<534.03?5:z<534.07?6:z<534.1?7:z<534.13?8:z<534.16?9:z<534.24?10:z<534.3?11:z<535.01?12:z<535.02?"13+":z<535.07?15:z<535.11?16:z<535.19?17:z<536.05?18:z<536.1?19:z<537.01?20:z<537.11?"21+":z<537.13?23:z<537.18?24:z<537.24?25:z<537.36?26:$!="Blink"?"27":"28")):($&&($[1]="like Safari"),z=z[0],z=z<400?1:z<500?2:z<526?3:z<533?4:z<534?"4+":z<535?5:z<537?6:z<538?7:z<601?8:"8"),$&&($[1]+=" "+(z+=typeof z=="number"?".x":/[.+]/.test(z)?"":"+")),Z=="Safari"&&(!U||parseInt(U)>45)&&(U=z)),Z=="Opera"&&(z=/\bzbov|zvav$/.exec(t))?(Z+=" ",Q.unshift("desktop mode"),z=="zvav"?(Z+="Mini",U=null):Z+="Mobile",t=t.replace(RegExp(" *"+z+"$"),"")):Z=="Safari"&&/\bChrome\b/.exec($&&$[1])&&(Q.unshift("desktop mode"),Z="Chrome Mobile",U=null,/\bOS X\b/.test(t)?(k="Apple",t="iOS 4.3+"):t=null),U&&U.indexOf(z=/[\d.]+$/.exec(t))==0&&P.indexOf("/"+z+"-")>-1&&(t=d(t.replace(z,""))),$&&!/\b(?:Avant|Nook)\b/.test(Z)&&(/Browser|Lunascape|Maxthon/.test(Z)||Z!="Safari"&&/^iOS/.test(t)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Z)&&$[1])&&(z=$[$.length-1])&&Q.push(z),Q.length&&(Q=["("+Q.join("; ")+")"]),k&&ue&&ue.indexOf(k)<0&&Q.push("on "+k),ue&&Q.push((/^on /.test(Q[Q.length-1])?"":"on ")+ue),t&&(z=/ ([\d.+]+)$/.exec(t),re=z&&t.charAt(t.length-z[0].length-1)=="/",t={architecture:32,family:z&&!re?t.replace(z[0],""):t,version:z?z[1]:null,toString:function(){var A=this.version;return this.family+(A&&!re?" "+A:"")+(this.architecture==64?" 64-bit":"")}}),(z=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(J))&&!/\bi686\b/i.test(J)?(t&&(t.architecture=64,t.family=t.family.replace(RegExp(" *"+z),"")),Z&&(/\bWOW64\b/i.test(P)||F&&/\w(?:86|32)$/.test(K.cpuClass||K.platform)&&!/\bWin64; x64\b/i.test(P))&&Q.unshift("32-bit")):t&&/^OS X/.test(t.family)&&Z=="Chrome"&&parseFloat(U)>=39&&(t.architecture=64),P||(P=null);var u={};return u.description=P,u.layout=$&&$[0],u.manufacturer=k,u.name=Z,u.prerelease=ee,u.product=ue,u.ua=P,u.version=Z&&U,u.os=t||{architecture:null,family:null,version:null,toString:function(){return"null"}},u.parse=c,u.toString=N,u.version&&Q.unshift(U),u.name&&Q.unshift(Z),t&&Z&&(t!=String(t).split(" ")[0]||t!=Z.split(" ")[0]&&!ue)&&Q.push(ue?"("+t+")":"on "+t),Q.length&&(u.description=Q.join(" ")),u}var w={function:!0,object:!0},b=w[typeof window]&&window||this,m=w[typeof T]&&T,S=w[typeof I]&&I&&!I.nodeType&&I,x=m&&S&&typeof f=="object"&&f;!x||x.global!==x&&x.window!==x&&x.self!==x||(b=x);var h=Math.pow(2,53)-1,_=/\bOpera/,O=Object.prototype,j=O.hasOwnProperty,y=O.toString,R=c();typeof he=="function"&&typeof he.amd=="object"&&he.amd?(b.platform=R,he(function(){return R})):m&&S?r(R,function(P,C){m[C]=P}):b.platform=R}).call(this)}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,I,T){(function(f){"use strict";function v(a,i,l,r){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var e,o,s=arguments.length;switch(s){case 0:case 1:return f.nextTick(a);case 2:return f.nextTick(function(){a.call(null,i)});case 3:return f.nextTick(function(){a.call(null,i,l)});case 4:return f.nextTick(function(){a.call(null,i,l,r)});default:for(e=new Array(s-1),o=0;o<e.length;)e[o++]=arguments[o];return f.nextTick(function(){a.apply(null,e)})}}!f.version||f.version.indexOf("v0.")===0||f.version.indexOf("v1.")===0&&f.version.indexOf("v1.8.")!==0?I.exports={nextTick:v}:I.exports=f}).call(this,n("_process"))},{_process:173}],173:[function(n,I,T){function f(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function a(S){if(s===setTimeout)return setTimeout(S,0);if((s===f||!s)&&setTimeout)return s=setTimeout,setTimeout(S,0);try{return s(S,0)}catch(x){try{return s.call(null,S,0)}catch(h){return s.call(this,S,0)}}}function i(S){if(p===clearTimeout)return clearTimeout(S);if((p===v||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(S);try{return p(S)}catch(x){try{return p.call(null,S)}catch(h){return p.call(this,S)}}}function l(){b&&c&&(b=!1,c.length?w=c.concat(w):m=-1,w.length&&r())}function r(){if(!b){var S=a(l);b=!0;for(var x=w.length;x;){for(c=w,w=[];++m<x;)c&&c[m].run();m=-1,x=w.length}c=null,b=!1,i(S)}}function e(S,x){this.fun=S,this.array=x}function o(){}var s,p,d=I.exports={};!function(){try{s=typeof setTimeout=="function"?setTimeout:f}catch(S){s=f}try{p=typeof clearTimeout=="function"?clearTimeout:v}catch(S){p=v}}();var c,w=[],b=!1,m=-1;d.nextTick=function(S){var x=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)x[h-1]=arguments[h];w.push(new e(S,x)),w.length!==1||b||a(r)},e.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=o,d.addListener=o,d.once=o,d.off=o,d.removeListener=o,d.removeAllListeners=o,d.emit=o,d.prependListener=o,d.prependOnceListener=o,d.listeners=function(S){return[]},d.binding=function(S){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(S){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(n,I,T){(function(f){!function(v){function a(L){throw new RangeError(re[L])}function i(L,M){for(var B=L.length,te=[];B--;)te[B]=M(L[B]);return te}function l(L,M){var B=L.split("@"),te="";return B.length>1&&(te=B[0]+"@",L=B[1]),L=L.replace(z,"."),te+i(L.split("."),M).join(".")}function r(L){for(var M,B,te=[],Y=0,oe=L.length;Y<oe;)M=L.charCodeAt(Y++),M>=55296&&M<=56319&&Y<oe?(B=L.charCodeAt(Y++),(64512&B)==56320?te.push(((1023&M)<<10)+(1023&B)+65536):(te.push(M),Y--)):te.push(M);return te}function e(L){return i(L,function(M){var B="";return M>65535&&(M-=65536,B+=D(M>>>10&1023|55296),M=56320|1023&M),B+=D(M)}).join("")}function o(L){return L-48<10?L-22:L-65<26?L-65:L-97<26?L-97:j}function s(L,M){return L+22+75*(L<26)-((M!=0)<<5)}function p(L,M,B){var te=0;for(L=B?X(L/C):L>>1,L+=X(L/M);L>V*R>>1;te+=j)L=X(L/V);return X(te+(V+1)*L/(L+P))}function d(L){var M,B,te,Y,oe,ne,se,fe,J,Q,ee=[],F=L.length,U=0,$=G,Z=N;for(B=L.lastIndexOf(H),B<0&&(B=0),te=0;te<B;++te)L.charCodeAt(te)>=128&&a("not-basic"),ee.push(L.charCodeAt(te));for(Y=B>0?B+1:0;Y<F;){for(oe=U,ne=1,se=j;Y>=F&&a("invalid-input"),fe=o(L.charCodeAt(Y++)),(fe>=j||fe>X((O-U)/ne))&&a("overflow"),U+=fe*ne,J=se<=Z?y:se>=Z+R?R:se-Z,!(fe<J);se+=j)Q=j-J,ne>X(O/Q)&&a("overflow"),ne*=Q;M=ee.length+1,Z=p(U-oe,M,oe==0),X(U/M)>O-$&&a("overflow"),$+=X(U/M),U%=M,ee.splice(U++,0,$)}return e(ee)}function c(L){var M,B,te,Y,oe,ne,se,fe,J,Q,ee,F,U,$,Z,ue=[];for(L=r(L),F=L.length,M=G,B=0,oe=N,ne=0;ne<F;++ne)(ee=L[ne])<128&&ue.push(D(ee));for(te=Y=ue.length,Y&&ue.push(H);te<F;){for(se=O,ne=0;ne<F;++ne)(ee=L[ne])>=M&&ee<se&&(se=ee);for(U=te+1,se-M>X((O-B)/U)&&a("overflow"),B+=(se-M)*U,M=se,ne=0;ne<F;++ne)if(ee=L[ne],ee<M&&++B>O&&a("overflow"),ee==M){for(fe=B,J=j;Q=J<=oe?y:J>=oe+R?R:J-oe,!(fe<Q);J+=j)Z=fe-Q,$=j-Q,ue.push(D(s(Q+Z%$,0))),fe=X(Z/$);ue.push(D(s(fe,0))),oe=p(B,U,te==Y),B=0,++te}++B,++M}return ue.join("")}function w(L){return l(L,function(M){return K.test(M)?d(M.slice(4).toLowerCase()):M})}function b(L){return l(L,function(M){return ie.test(M)?"xn--"+c(M):M})}var m=typeof T=="object"&&T&&!T.nodeType&&T,S=typeof I=="object"&&I&&!I.nodeType&&I,x=typeof f=="object"&&f;x.global!==x&&x.window!==x&&x.self!==x||(v=x);var h,_,O=2147483647,j=36,y=1,R=26,P=38,C=700,N=72,G=128,H="-",K=/^xn--/,ie=/[^\x20-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,re={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=j-y,X=Math.floor,D=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:r,encode:e},decode:d,encode:c,toASCII:b,toUnicode:w},typeof he=="function"&&typeof he.amd=="object"&&he.amd)he("punycode",function(){return h});else if(m&&S)if(I.exports==m)S.exports=h;else for(_ in h)h.hasOwnProperty(_)&&(m[_]=h[_]);else v.punycode=h}(this)}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,I,T){"use strict";function f(a,i){return Object.prototype.hasOwnProperty.call(a,i)}I.exports=function(a,i,l,r){i=i||"&",l=l||"=";var e={};if(typeof a!="string"||a.length===0)return e;var o=/\+/g;a=a.split(i);var s=1e3;r&&typeof r.maxKeys=="number"&&(s=r.maxKeys);var p=a.length;s>0&&p>s&&(p=s);for(var d=0;d<p;++d){var c,w,b,m,S=a[d].replace(o,"%20"),x=S.indexOf(l);x>=0?(c=S.substr(0,x),w=S.substr(x+1)):(c=S,w=""),b=decodeURIComponent(c),m=decodeURIComponent(w),f(e,b)?v(e[b])?e[b].push(m):e[b]=[e[b],m]:e[b]=m}return e};var v=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},{}],176:[function(n,I,T){"use strict";function f(l,r){if(l.map)return l.map(r);for(var e=[],o=0;o<l.length;o++)e.push(r(l[o],o));return e}var v=function(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};I.exports=function(l,r,e,o){return r=r||"&",e=e||"=",l===null&&(l=void 0),typeof l=="object"?f(i(l),function(s){var p=encodeURIComponent(v(s))+e;return a(l[s])?f(l[s],function(d){return p+encodeURIComponent(v(d))}).join(r):p+encodeURIComponent(v(l[s]))}).join(r):o?encodeURIComponent(v(o))+e+encodeURIComponent(v(l)):""};var a=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"},i=Object.keys||function(l){var r=[];for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&r.push(e);return r}},{}],177:[function(n,I,T){"use strict";T.decode=T.parse=n("./decode"),T.encode=T.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,I,T){I.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,I,T){"use strict";function f(b){if(!(this instanceof f))return new f(b);s.call(this,b),p.call(this,b),b&&b.readable===!1&&(this.readable=!1),b&&b.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,b&&b.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||r.nextTick(a,this)}function a(b){b.end()}var i=n("babel-runtime/core-js/object/keys"),l=function(b){return b&&b.__esModule?b:{default:b}}(i),r=n("process-nextick-args"),e=l.default||function(b){var m=[];for(var S in b)m.push(S);return m};I.exports=f;var o=n("core-util-is");o.inherits=n("inherits");var s=n("./_stream_readable"),p=n("./_stream_writable");o.inherits(f,s);for(var d=e(p.prototype),c=0;c<d.length;c++){var w=d[c];f.prototype[w]||(f.prototype[w]=p.prototype[w])}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(b){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=b,this._writableState.destroyed=b)}}),f.prototype._destroy=function(b,m){this.push(null),this.end(),r.nextTick(m,b)}},{"./_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,I,T){"use strict";function f(i){if(!(this instanceof f))return new f(i);v.call(this,i)}I.exports=f;var v=n("./_stream_transform"),a=n("core-util-is");a.inherits=n("inherits"),a.inherits(f,v),f.prototype._transform=function(i,l,r){r(null,i)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,I,T){(function(f,v){"use strict";function a(F){return B.from(F)}function i(F){return B.isBuffer(F)||F instanceof te}function l(F,U,$){if(typeof F.prependListener=="function")return F.prependListener(U,$);F._events&&F._events[U]?D(F._events[U])?F._events[U].unshift($):F._events[U]=[$,F._events[U]]:F.on(U,$)}function r(F,U){X=X||n("./_stream_duplex"),F=F||{};var $=U instanceof X;this.objectMode=!!F.objectMode,$&&(this.objectMode=this.objectMode||!!F.readableObjectMode);var Z=F.highWaterMark,ue=F.readableHighWaterMark,k=this.objectMode?16:16384;this.highWaterMark=Z||Z===0?Z:$&&(ue||ue===0)?ue:k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new fe,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=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(se||(se=n("string_decoder/").StringDecoder),this.decoder=new se(F.encoding),this.encoding=F.encoding)}function e(F){if(X=X||n("./_stream_duplex"),!(this instanceof e))return new e(F);this._readableState=new r(F,this),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),M.call(this)}function o(F,U,$,Z,ue){var k=F._readableState;if(U===null)k.reading=!1,b(F,k);else{var t;ue||(t=p(k,U)),t?F.emit("error",t):k.objectMode||U&&U.length>0?(typeof U=="string"||k.objectMode||(0,re.default)(U)===B.prototype||(U=a(U)),Z?k.endEmitted?F.emit("error",new Error("stream.unshift() after end event")):s(F,k,U,!0):k.ended?F.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!$?(U=k.decoder.write(U),k.objectMode||U.length!==0?s(F,k,U,!1):x(F,k)):s(F,k,U,!1))):Z||(k.reading=!1)}return d(k)}function s(F,U,$,Z){U.flowing&&U.length===0&&!U.sync?(F.emit("data",$),F.read(0)):(U.length+=U.objectMode?1:$.length,Z?U.buffer.unshift($):U.buffer.push($),U.needReadable&&m(F)),x(F,U)}function p(F,U){var $;return i(U)||typeof U=="string"||U===void 0||F.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$}function d(F){return!F.ended&&(F.needReadable||F.length<F.highWaterMark||F.length===0)}function c(F){return F>=ee?F=ee:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}function w(F,U){return F<=0||U.length===0&&U.ended?0:U.objectMode?1:F!==F?U.flowing&&U.length?U.buffer.head.data.length:U.length:(F>U.highWaterMark&&(U.highWaterMark=c(F)),F<=U.length?F:U.ended?U.length:(U.needReadable=!0,0))}function b(F,U){if(!U.ended){if(U.decoder){var $=U.decoder.end();$&&$.length&&(U.buffer.push($),U.length+=U.objectMode?1:$.length)}U.ended=!0,m(F)}}function m(F){var U=F._readableState;U.needReadable=!1,U.emittedReadable||(ne("emitReadable",U.flowing),U.emittedReadable=!0,U.sync?V.nextTick(S,F):S(F))}function S(F){ne("emit readable"),F.emit("readable"),R(F)}function x(F,U){U.readingMore||(U.readingMore=!0,V.nextTick(h,F,U))}function h(F,U){for(var $=U.length;!U.reading&&!U.flowing&&!U.ended&&U.length<U.highWaterMark&&(ne("maybeReadMore read 0"),F.read(0),$!==U.length);)$=U.length;U.readingMore=!1}function _(F){return function(){var U=F._readableState;ne("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&L(F,"data")&&(U.flowing=!0,R(F))}}function O(F){ne("readable nexttick read 0"),F.read(0)}function j(F,U){U.resumeScheduled||(U.resumeScheduled=!0,V.nextTick(y,F,U))}function y(F,U){U.reading||(ne("resume read 0"),F.read(0)),U.resumeScheduled=!1,U.awaitDrain=0,F.emit("resume"),R(F),U.flowing&&!U.reading&&F.read(0)}function R(F){var U=F._readableState;for(ne("flow",U.flowing);U.flowing&&F.read()!==null;);}function P(F,U){if(U.length===0)return null;var $;return U.objectMode?$=U.buffer.shift():!F||F>=U.length?($=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.head.data:U.buffer.concat(U.length),U.buffer.clear()):$=C(F,U.buffer,U.decoder),$}function C(F,U,$){var Z;return F<U.head.data.length?(Z=U.head.data.slice(0,F),U.head.data=U.head.data.slice(F)):Z=F===U.head.data.length?U.shift():$?N(F,U):G(F,U),Z}function N(F,U){var $=U.head,Z=1,ue=$.data;for(F-=ue.length;$=$.next;){var k=$.data,t=F>k.length?k.length:F;if(t===k.length?ue+=k:ue+=k.slice(0,F),(F-=t)===0){t===k.length?(++Z,$.next?U.head=$.next:U.head=U.tail=null):(U.head=$,$.data=k.slice(t));break}++Z}return U.length-=Z,ue}function G(F,U){var $=B.allocUnsafe(F),Z=U.head,ue=1;for(Z.data.copy($),F-=Z.data.length;Z=Z.next;){var k=Z.data,t=F>k.length?k.length:F;if(k.copy($,$.length-F,0,t),(F-=t)===0){t===k.length?(++ue,Z.next?U.head=Z.next:U.head=U.tail=null):(U.head=Z,Z.data=k.slice(t));break}++ue}return U.length-=ue,$}function H(F){var U=F._readableState;if(U.length>0)throw new Error('"endReadable()" called on non-empty stream');U.endEmitted||(U.ended=!0,V.nextTick(K,U,F))}function K(F,U){F.endEmitted||F.length!==0||(F.endEmitted=!0,U.readable=!1,U.emit("end"))}function ie(F,U){for(var $=0,Z=F.length;$<Z;$++)if(F[$]===U)return $;return-1}var z=n("babel-runtime/core-js/object/get-prototype-of"),re=function(F){return F&&F.__esModule?F:{default:F}}(z),V=n("process-nextick-args");I.exports=e;var X,D=n("isarray");e.ReadableState=r;var L=(n("events").EventEmitter,function(F,U){return F.listeners(U).length}),M=n("./internal/streams/stream"),B=n("safe-buffer").Buffer,te=v.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 se,fe=n("./internal/streams/BufferList"),J=n("./internal/streams/destroy");Y.inherits(e,M);var Q=["error","close","destroy","pause","resume"];Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),e.prototype.destroy=J.destroy,e.prototype._undestroy=J.undestroy,e.prototype._destroy=function(F,U){this.push(null),U(F)},e.prototype.push=function(F,U){var $,Z=this._readableState;return Z.objectMode?$=!0:typeof F=="string"&&(U=U||Z.defaultEncoding,U!==Z.encoding&&(F=B.from(F,U),U=""),$=!0),o(this,F,U,!1,$)},e.prototype.unshift=function(F){return o(this,F,null,!0,!1)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(F){return se||(se=n("string_decoder/").StringDecoder),this._readableState.decoder=new se(F),this._readableState.encoding=F,this};var ee=8388608;e.prototype.read=function(F){ne("read",F),F=parseInt(F,10);var U=this._readableState,$=F;if(F!==0&&(U.emittedReadable=!1),F===0&&U.needReadable&&(U.length>=U.highWaterMark||U.ended))return ne("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):m(this),null;if((F=w(F,U))===0&&U.ended)return U.length===0&&H(this),null;var Z=U.needReadable;ne("need readable",Z),(U.length===0||U.length-F<U.highWaterMark)&&(Z=!0,ne("length less than watermark",Z)),U.ended||U.reading?(Z=!1,ne("reading or ended",Z)):Z&&(ne("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(F=w($,U)));var ue;return ue=F>0?P(F,U):null,ue===null?(U.needReadable=!0,F=0):U.length-=F,U.length===0&&(U.ended||(U.needReadable=!0),$!==F&&U.ended&&H(this)),ue!==null&&this.emit("data",ue),ue},e.prototype._read=function(F){this.emit("error",new Error("_read() is not implemented"))},e.prototype.pipe=function(F,U){function $(ve,me){ne("onunpipe"),ve===E&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,ue())}function Z(){ne("onend"),F.end()}function ue(){ne("cleanup"),F.removeListener("close",u),F.removeListener("finish",A),F.removeListener("drain",ae),F.removeListener("error",t),F.removeListener("unpipe",$),E.removeListener("end",Z),E.removeListener("end",g),E.removeListener("data",k),pe=!0,!q.awaitDrain||F._writableState&&!F._writableState.needDrain||ae()}function k(ve){ne("ondata"),de=!1,F.write(ve)!==!1||de||((q.pipesCount===1&&q.pipes===F||q.pipesCount>1&&ie(q.pipes,F)!==-1)&&!pe&&(ne("false write response, pause",E._readableState.awaitDrain),E._readableState.awaitDrain++,de=!0),E.pause())}function t(ve){ne("onerror",ve),g(),F.removeListener("error",t),L(F,"error")===0&&F.emit("error",ve)}function u(){F.removeListener("finish",A),g()}function A(){ne("onfinish"),F.removeListener("close",u),g()}function g(){ne("unpipe"),E.unpipe(F)}var E=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=F;break;case 1:q.pipes=[q.pipes,F];break;default:q.pipes.push(F)}q.pipesCount+=1,ne("pipe count=%d opts=%j",q.pipesCount,U);var W=(!U||U.end!==!1)&&F!==f.stdout&&F!==f.stderr,le=W?Z:g;q.endEmitted?V.nextTick(le):E.once("end",le),F.on("unpipe",$);var ae=_(E);F.on("drain",ae);var pe=!1,de=!1;return E.on("data",k),l(F,"error",t),F.once("close",u),F.once("finish",A),F.emit("pipe",E),q.flowing||(ne("pipe resume"),E.resume()),F},e.prototype.unpipe=function(F){var U=this._readableState,$={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return F&&F!==U.pipes?this:(F||(F=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,F&&F.emit("unpipe",this,$),this);if(!F){var Z=U.pipes,ue=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var k=0;k<ue;k++)Z[k].emit("unpipe",this,$);return this}var t=ie(U.pipes,F);return t===-1?this:(U.pipes.splice(t,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),F.emit("unpipe",this,$),this)},e.prototype.on=function(F,U){var $=M.prototype.on.call(this,F,U);if(F==="data")this._readableState.flowing!==!1&&this.resume();else if(F==="readable"){var Z=this._readableState;Z.endEmitted||Z.readableListening||(Z.readableListening=Z.needReadable=!0,Z.emittedReadable=!1,Z.reading?Z.length&&m(this):V.nextTick(O,this))}return $},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var F=this._readableState;return F.flowing||(ne("resume"),F.flowing=!0,j(this,F)),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(F){var U=this,$=this._readableState,Z=!1;F.on("end",function(){if(ne("wrapped end"),$.decoder&&!$.ended){var t=$.decoder.end();t&&t.length&&U.push(t)}U.push(null)}),F.on("data",function(t){(ne("wrapped data"),$.decoder&&(t=$.decoder.write(t)),(!$.objectMode||t!=null)&&($.objectMode||t&&t.length))&&(U.push(t)||(Z=!0,F.pause()))});for(var ue in F)this[ue]===void 0&&typeof F[ue]=="function"&&(this[ue]=function(t){return function(){return F[t].apply(F,arguments)}}(ue));for(var k=0;k<Q.length;k++)F.on(Q[k],this.emit.bind(this,Q[k]));return this._read=function(t){ne("wrapped _read",t),Z&&(Z=!1,F.resume())},this},Object.defineProperty(e.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),e._fromList=P}).call(this,n("_process"),typeof be!="undefined"?be: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,I,T){"use strict";function f(e,o){var s=this._transformState;s.transforming=!1;var p=s.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,o!=null&&this.push(o),p(e);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function v(e){if(!(this instanceof v))return new v(e);l.call(this,e),this._transformState={afterTransform:f.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",a)}function a(){var e=this;typeof this._flush=="function"?this._flush(function(o,s){i(e,o,s)}):i(this,null,null)}function i(e,o,s){if(o)return e.emit("error",o);if(s!=null&&e.push(s),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}I.exports=v;var l=n("./_stream_duplex"),r=n("core-util-is");r.inherits=n("inherits"),r.inherits(v,l),v.prototype.push=function(e,o){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,o)},v.prototype._transform=function(e,o,s){throw new Error("_transform() is not implemented")},v.prototype._write=function(e,o,s){var p=this._transformState;if(p.writecb=s,p.writechunk=e,p.writeencoding=o,!p.transforming){var d=this._readableState;(p.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},v.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},v.prototype._destroy=function(e,o){var s=this;l.prototype._destroy.call(this,e,function(p){o(p),s.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,I,T){(function(f,v){"use strict";function a(J){return J&&J.__esModule?J:{default:J}}function i(J){var Q=this;this.next=null,this.entry=null,this.finish=function(){N(Q,J)}}function l(J){return oe.from(J)}function r(J){return oe.isBuffer(J)||J instanceof ne}function e(){}function o(J,Q){L=L||n("./_stream_duplex"),J=J||{};var ee=Q instanceof L;this.objectMode=!!J.objectMode,ee&&(this.objectMode=this.objectMode||!!J.writableObjectMode);var F=J.highWaterMark,U=J.writableHighWaterMark,$=this.objectMode?16:16384;this.highWaterMark=F||F===0?F:ee&&(U||U===0)?U:$,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 Z=J.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ue){x(Q,ue)},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 i(this)}function s(J){if(L=L||n("./_stream_duplex"),!(fe.call(s,this)||this instanceof L))return new s(J);this._writableState=new o(J,this),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),Y.call(this)}function p(J,Q){var ee=new Error("write after end");J.emit("error",ee),D.nextTick(Q,ee)}function d(J,Q,ee,F){var U=!0,$=!1;return ee===null?$=new TypeError("May not write null values to stream"):typeof ee=="string"||ee===void 0||Q.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$&&(J.emit("error",$),D.nextTick(F,$),U=!1),U}function c(J,Q,ee){return J.objectMode||J.decodeStrings===!1||typeof Q!="string"||(Q=oe.from(Q,ee)),Q}function w(J,Q,ee,F,U,$){if(!ee){var Z=c(Q,F,U);F!==Z&&(ee=!0,U="buffer",F=Z)}var ue=Q.objectMode?1:F.length;Q.length+=ue;var k=Q.length<Q.highWaterMark;if(k||(Q.needDrain=!0),Q.writing||Q.corked){var t=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:F,encoding:U,isBuf:ee,callback:$,next:null},t?t.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else b(J,Q,!1,ue,F,U,$);return k}function b(J,Q,ee,F,U,$,Z){Q.writelen=F,Q.writecb=Z,Q.writing=!0,Q.sync=!0,ee?J._writev(U,Q.onwrite):J._write(U,$,Q.onwrite),Q.sync=!1}function m(J,Q,ee,F,U){--Q.pendingcb,ee?(D.nextTick(U,F),D.nextTick(P,J,Q),J._writableState.errorEmitted=!0,J.emit("error",F)):(U(F),J._writableState.errorEmitted=!0,J.emit("error",F),P(J,Q))}function S(J){J.writing=!1,J.writecb=null,J.length-=J.writelen,J.writelen=0}function x(J,Q){var ee=J._writableState,F=ee.sync,U=ee.writecb;if(S(ee),Q)m(J,ee,F,Q,U);else{var $=j(ee);$||ee.corked||ee.bufferProcessing||!ee.bufferedRequest||O(J,ee),F?M(h,J,ee,$,U):h(J,ee,$,U)}}function h(J,Q,ee,F){ee||_(J,Q),Q.pendingcb--,F(),P(J,Q)}function _(J,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,J.emit("drain"))}function O(J,Q){Q.bufferProcessing=!0;var ee=Q.bufferedRequest;if(J._writev&&ee&&ee.next){var F=Q.bufferedRequestCount,U=new Array(F),$=Q.corkedRequestsFree;$.entry=ee;for(var Z=0,ue=!0;ee;)U[Z]=ee,ee.isBuf||(ue=!1),ee=ee.next,Z+=1;U.allBuffers=ue,b(J,Q,!0,Q.length,U,"",$.finish),Q.pendingcb++,Q.lastBufferedRequest=null,$.next?(Q.corkedRequestsFree=$.next,$.next=null):Q.corkedRequestsFree=new i(Q),Q.bufferedRequestCount=0}else{for(;ee;){var k=ee.chunk,t=ee.encoding,u=ee.callback;if(b(J,Q,!1,Q.objectMode?1:k.length,k,t,u),ee=ee.next,Q.bufferedRequestCount--,Q.writing)break}ee===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=ee,Q.bufferProcessing=!1}function j(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function y(J,Q){J._final(function(ee){Q.pendingcb--,ee&&J.emit("error",ee),Q.prefinished=!0,J.emit("prefinish"),P(J,Q)})}function R(J,Q){Q.prefinished||Q.finalCalled||(typeof J._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,D.nextTick(y,J,Q)):(Q.prefinished=!0,J.emit("prefinish")))}function P(J,Q){var ee=j(Q);return ee&&(R(J,Q),Q.pendingcb===0&&(Q.finished=!0,J.emit("finish"))),ee}function C(J,Q,ee){Q.ending=!0,P(J,Q),ee&&(Q.finished?D.nextTick(ee):J.once("finish",ee)),Q.ended=!0,J.writable=!1}function N(J,Q,ee){var F=J.entry;for(J.entry=null;F;){var U=F.callback;Q.pendingcb--,U(ee),F=F.next}Q.corkedRequestsFree?Q.corkedRequestsFree.next=J:Q.corkedRequestsFree=J}var G=n("babel-runtime/core-js/object/define-property"),H=a(G),K=n("babel-runtime/core-js/symbol/has-instance"),ie=a(K),z=n("babel-runtime/core-js/symbol"),re=a(z),V=n("babel-runtime/core-js/set-immediate"),X=a(V),D=n("process-nextick-args");I.exports=s;var L,M=!f.browser&&["v0.10","v0.9."].indexOf(f.version.slice(0,5))>-1?X.default:D.nextTick;s.WritableState=o;var B=n("core-util-is");B.inherits=n("inherits");var te={deprecate:n("util-deprecate")},Y=n("./internal/streams/stream"),oe=n("safe-buffer").Buffer,ne=v.Uint8Array||function(){},se=n("./internal/streams/destroy");B.inherits(s,Y),o.prototype.getBuffer=function(){for(var J=this.bufferedRequest,Q=[];J;)Q.push(J),J=J.next;return Q},function(){try{Object.defineProperty(o.prototype,"buffer",{get:te.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(J){}}();var fe;typeof re.default=="function"&&ie.default&&typeof Function.prototype[ie.default]=="function"?(fe=Function.prototype[ie.default],(0,H.default)(s,ie.default,{value:function(J){return!!fe.call(this,J)||this===s&&J&&J._writableState instanceof o}})):fe=function(J){return J instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(J,Q,ee){var F=this._writableState,U=!1,$=!F.objectMode&&r(J);return $&&!oe.isBuffer(J)&&(J=l(J)),typeof Q=="function"&&(ee=Q,Q=null),$?Q="buffer":Q||(Q=F.defaultEncoding),typeof ee!="function"&&(ee=e),F.ended?p(this,ee):($||d(this,F,J,ee))&&(F.pendingcb++,U=w(this,F,$,J,Q,ee)),U},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,J.writing||J.corked||J.finished||J.bufferProcessing||!J.bufferedRequest||O(this,J))},s.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=J.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((J+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),s.prototype._write=function(J,Q,ee){ee(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(J,Q,ee){var F=this._writableState;typeof J=="function"?(ee=J,J=null,Q=null):typeof Q=="function"&&(ee=Q,Q=null),J!=null&&this.write(J,Q),F.corked&&(F.corked=1,this.uncork()),F.ending||F.finished||C(this,F,ee)},Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(J){this._writableState&&(this._writableState.destroyed=J)}}),s.prototype.destroy=se.destroy,s.prototype._undestroy=se.undestroy,s.prototype._destroy=function(J,Q){this.end(),Q(J)}}).call(this,n("_process"),typeof be!="undefined"?be: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,I,T){"use strict";function f(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function v(l,r,e){l.copy(r,e)}var a=n("safe-buffer").Buffer,i=n("util");I.exports=function(){function l(){f(this,l),this.head=null,this.tail=null,this.length=0}return l.prototype.push=function(r){var e={data:r,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},l.prototype.unshift=function(r){var e={data:r,next:this.head};this.length===0&&(this.tail=e),this.head=e,++this.length},l.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},l.prototype.clear=function(){this.head=this.tail=null,this.length=0},l.prototype.join=function(r){if(this.length===0)return"";for(var e=this.head,o=""+e.data;e=e.next;)o+=r+e.data;return o},l.prototype.concat=function(r){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;for(var e=a.allocUnsafe(r>>>0),o=this.head,s=0;o;)v(o.data,e,s),s+=o.data.length,o=o.next;return e},l}(),i&&i.inspect&&i.inspect.custom&&(I.exports.prototype[i.inspect.custom]=function(){var l=i.inspect({length:this.length});return this.constructor.name+" "+l})},{"safe-buffer":193,util:36}],185:[function(n,I,T){"use strict";function f(l,r){var e=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(r?r(l):!l||this._writableState&&this._writableState.errorEmitted||i.nextTick(a,this,l),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,function(p){!r&&p?(i.nextTick(a,e,p),e._writableState&&(e._writableState.errorEmitted=!0)):r&&r(p)}),this)}function v(){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 a(l,r){l.emit("error",r)}var i=n("process-nextick-args");I.exports={destroy:f,undestroy:v}},{"process-nextick-args":172}],186:[function(n,I,T){"use strict";I.exports=n("events").EventEmitter},{events:158}],187:[function(n,I,T){I.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,I,T){T=I.exports=n("./lib/_stream_readable.js"),T.Stream=T,T.Readable=T,T.Writable=n("./lib/_stream_writable.js"),T.Duplex=n("./lib/_stream_duplex.js"),T.Transform=n("./lib/_stream_transform.js"),T.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,I,T){I.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,I,T){I.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,I,T){var f=function(){return this}()||Function("return this")(),v=f.regeneratorRuntime&&Object.getOwnPropertyNames(f).indexOf("regeneratorRuntime")>=0,a=v&&f.regeneratorRuntime;if(f.regeneratorRuntime=void 0,I.exports=n("./runtime"),v)f.regeneratorRuntime=a;else try{delete f.regeneratorRuntime}catch(i){f.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,I,T){!function(f){"use strict";function v(X,D,L,M){var B=D&&D.prototype instanceof i?D:i,te=Object.create(B.prototype),Y=new w(M||[]);return te._invoke=s(X,L,Y),te}function a(X,D,L){try{return{type:"normal",arg:X.call(D,L)}}catch(M){return{type:"throw",arg:M}}}function i(){}function l(){}function r(){}function e(X){["next","throw","return"].forEach(function(D){X[D]=function(L){return this._invoke(D,L)}})}function o(X){function D(B,te,Y,oe){var ne=a(X[B],X,te);if(ne.type!=="throw"){var se=ne.arg,fe=se.value;return fe&&typeof fe=="object"&&h.call(fe,"__await")?Promise.resolve(fe.__await).then(function(J){D("next",J,Y,oe)},function(J){D("throw",J,Y,oe)}):Promise.resolve(fe).then(function(J){se.value=J,Y(se)},oe)}oe(ne.arg)}function L(B,te){function Y(){return new Promise(function(oe,ne){D(B,te,oe,ne)})}return M=M?M.then(Y,Y):Y()}var M;this._invoke=L}function s(X,D,L){var M=C;return function(B,te){if(M===G)throw new Error("Generator is already running");if(M===H){if(B==="throw")throw te;return m()}for(L.method=B,L.arg=te;;){var Y=L.delegate;if(Y){var oe=p(Y,L);if(oe){if(oe===K)continue;return oe}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(M===C)throw M=H,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);M=G;var ne=a(X,D,L);if(ne.type==="normal"){if(M=L.done?H:N,ne.arg===K)continue;return{value:ne.arg,done:L.done}}ne.type==="throw"&&(M=H,L.method="throw",L.arg=ne.arg)}}}function p(X,D){var L=X.iterator[D.method];if(L===S){if(D.delegate=null,D.method==="throw"){if(X.iterator.return&&(D.method="return",D.arg=S,p(X,D),D.method==="throw"))return K;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return K}var M=a(L,X.iterator,D.arg);if(M.type==="throw")return D.method="throw",D.arg=M.arg,D.delegate=null,K;var B=M.arg;return B?B.done?(D[X.resultName]=B.value,D.next=X.nextLoc,D.method!=="return"&&(D.method="next",D.arg=S),D.delegate=null,K):B:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,K)}function d(X){var D={tryLoc:X[0]};1 in X&&(D.catchLoc=X[1]),2 in X&&(D.finallyLoc=X[2],D.afterLoc=X[3]),this.tryEntries.push(D)}function c(X){var D=X.completion||{};D.type="normal",delete D.arg,X.completion=D}function w(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(d,this),this.reset(!0)}function b(X){if(X){var D=X[O];if(D)return D.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var L=-1,M=function B(){for(;++L<X.length;)if(h.call(X,L))return B.value=X[L],B.done=!1,B;return B.value=S,B.done=!0,B};return M.next=M}}return{next:m}}function m(){return{value:S,done:!0}}var S,x=Object.prototype,h=x.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},O=_.iterator||"@@iterator",j=_.asyncIterator||"@@asyncIterator",y=_.toStringTag||"@@toStringTag",R=typeof I=="object",P=f.regeneratorRuntime;if(P)return void(R&&(I.exports=P));P=f.regeneratorRuntime=R?I.exports:{},P.wrap=v;var C="suspendedStart",N="suspendedYield",G="executing",H="completed",K={},ie={};ie[O]=function(){return this};var z=Object.getPrototypeOf,re=z&&z(z(b([])));re&&re!==x&&h.call(re,O)&&(ie=re);var V=r.prototype=i.prototype=Object.create(ie);l.prototype=V.constructor=r,r.constructor=l,r[y]=l.displayName="GeneratorFunction",P.isGeneratorFunction=function(X){var D=typeof X=="function"&&X.constructor;return!!D&&(D===l||(D.displayName||D.name)==="GeneratorFunction")},P.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,r):(X.__proto__=r,y in X||(X[y]="GeneratorFunction")),X.prototype=Object.create(V),X},P.awrap=function(X){return{__await:X}},e(o.prototype),o.prototype[j]=function(){return this},P.AsyncIterator=o,P.async=function(X,D,L,M){var B=new o(v(X,D,L,M));return P.isGeneratorFunction(D)?B:B.next().then(function(te){return te.done?te.value:B.next()})},e(V),V[y]="Generator",V[O]=function(){return this},V.toString=function(){return"[object Generator]"},P.keys=function(X){var D=[];for(var L in X)D.push(L);return D.reverse(),function M(){for(;D.length;){var B=D.pop();if(B in X)return M.value=B,M.done=!1,M}return M.done=!0,M}},P.values=b,w.prototype={constructor:w,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(c),!X)for(var D in this)D.charAt(0)==="t"&&h.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=S)},stop:function(){this.done=!0;var X=this.tryEntries[0],D=X.completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(X){function D(ne,se){return te.type="throw",te.arg=X,L.next=ne,se&&(L.method="next",L.arg=S),!!se}if(this.done)throw X;for(var L=this,M=this.tryEntries.length-1;M>=0;--M){var B=this.tryEntries[M],te=B.completion;if(B.tryLoc==="root")return D("end");if(B.tryLoc<=this.prev){var Y=h.call(B,"catchLoc"),oe=h.call(B,"finallyLoc");if(Y&&oe){if(this.prev<B.catchLoc)return D(B.catchLoc,!0);if(this.prev<B.finallyLoc)return D(B.finallyLoc)}else if(Y){if(this.prev<B.catchLoc)return D(B.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return D(B.finallyLoc)}}}},abrupt:function(X,D){for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L];if(M.tryLoc<=this.prev&&h.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var B=M;break}}B&&(X==="break"||X==="continue")&&B.tryLoc<=D&&D<=B.finallyLoc&&(B=null);var te=B?B.completion:{};return te.type=X,te.arg=D,B?(this.method="next",this.next=B.finallyLoc,K):this.complete(te)},complete:function(X,D){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&D&&(this.next=D),K},finish:function(X){for(var D=this.tryEntries.length-1;D>=0;--D){var L=this.tryEntries[D];if(L.finallyLoc===X)return this.complete(L.completion,L.afterLoc),c(L),K}},catch:function(X){for(var D=this.tryEntries.length-1;D>=0;--D){var L=this.tryEntries[D];if(L.tryLoc===X){var M=L.completion;if(M.type==="throw"){var B=M.arg;c(L)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(X,D,L){return this.delegate={iterator:b(X),resultName:D,nextLoc:L},this.method==="next"&&(this.arg=S),K}}}(function(){return this}()||Function("return this")())},{}],193:[function(n,I,T){function f(l,r){for(var e in l)r[e]=l[e]}function v(l,r,e){return i(l,r,e)}var a=n("buffer"),i=a.Buffer;i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?I.exports=a:(f(a,T),T.Buffer=v),f(i,v),v.from=function(l,r,e){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,r,e)},v.alloc=function(l,r,e){if(typeof l!="number")throw new TypeError("Argument must be a number");var o=i(l);return r!==void 0?typeof e=="string"?o.fill(r,e):o.fill(r):o.fill(0),o},v.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},v.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(l)}},{buffer:38}],194:[function(n,I,T){(function(f){"use strict";function v(m){return m&&m.__esModule?m:{default:m}}var a=n("babel-runtime/core-js/string/from-code-point"),i=v(a),l=n("babel-runtime/core-js/json/stringify"),r=v(l),e=n("babel-runtime/helpers/typeof"),o=v(e),s=n("babel-runtime/core-js/object/define-property"),p=v(s),d=n("babel-runtime/core-js/object/keys"),c=v(d),w=n("babel-runtime/core-js/object/create"),b=v(w);!function(m){function S(g,E){if(!(this instanceof S))return new S(g,E);var q=this;h(q),q.q=q.c="",q.bufferCheckPosition=m.MAX_BUFFER_LENGTH,q.opt=E||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!g,q.noscript=!(!g&&!q.opt.noscript),q.state=u.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?(0,b.default)(m.XML_ENTITIES):(0,b.default)(m.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=(0,b.default)($)),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),G(q,"onready")}function x(g){for(var E=Math.max(m.MAX_BUFFER_LENGTH,10),q=0,W=0,le=se.length;W<le;W++){var ae=g[se[W]].length;if(ae>E)switch(se[W]){case"textNode":K(g);break;case"cdata":H(g,"oncdata",g.cdata),g.cdata="";break;case"script":H(g,"onscript",g.script),g.script="";break;default:z(g,"Max buffer length exceeded: "+se[W])}q=Math.max(q,ae)}var pe=m.MAX_BUFFER_LENGTH-q;g.bufferCheckPosition=pe+g.position}function h(g){for(var E=0,q=se.length;E<q;E++)g[se[E]]=""}function _(g){K(g),g.cdata!==""&&(H(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(H(g,"onscript",g.script),g.script="")}function O(g,E){return new j(g,E)}function j(g,E){if(!(this instanceof j))return new j(g,E);fe.apply(this),this._parser=new S(g,E),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function(W){q.emit("error",W),q._parser.error=null},this._decoder=null,J.forEach(function(W){(0,p.default)(q,"on"+W,{get:function(){return q._parser["on"+W]},set:function(le){if(!le)return q.removeAllListeners(W),q._parser["on"+W]=le,le;q.on(W,le)},enumerable:!0,configurable:!1})})}function y(g){return g===" "||g===`
|
|
|
`||g==="\r"||g===" "}function R(g){return g==='"'||g==="'"}function P(g){return g===">"||y(g)}function C(g,E){return g.test(E)}function N(g,E){return!C(g,E)}function G(g,E,q){g[E]&&g[E](q)}function H(g,E,q){g.textNode&&K(g),G(g,E,q)}function K(g){g.textNode=ie(g.opt,g.textNode),g.textNode&&G(g,"ontext",g.textNode),g.textNode=""}function ie(g,E){return g.trim&&(E=E.trim()),g.normalize&&(E=E.replace(/\s+/g," ")),E}function z(g,E){return K(g),g.trackPosition&&(E+=`
|
|
|
Line: `+g.line+`
|
|
|
Column: `+g.column+`
|
|
|
Char: `+g.c),E=new Error(E),g.error=E,G(g,"onerror",E),g}function re(g){return g.sawRoot&&!g.closedRoot&&V(g,"Unclosed root tag"),g.state!==u.BEGIN&&g.state!==u.BEGIN_WHITESPACE&&g.state!==u.TEXT&&z(g,"Unexpected end"),K(g),g.c="",g.closed=!0,G(g,"onend"),S.call(g,g.strict,g.opt),g}function V(g,E){if((g===void 0?"undefined":(0,o.default)(g))!=="object"||!(g instanceof S))throw new Error("bad call to strictFail");g.strict&&z(g,E)}function X(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var E=g.tags[g.tags.length-1]||g,q=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(q.ns=E.ns),g.attribList.length=0,H(g,"onopentagstart",q)}function D(g,E){var q=g.indexOf(":"),W=q<0?["",g]:g.split(":"),le=W[0],ae=W[1];return E&&g==="xmlns"&&(le="xmlns",ae=""),{prefix:le,local:ae}}function L(g){if(g.strict||(g.attribName=g.attribName[g.looseCase]()),g.attribList.indexOf(g.attribName)!==-1||g.tag.attributes.hasOwnProperty(g.attribName))return void(g.attribName=g.attribValue="");if(g.opt.xmlns){var E=D(g.attribName,!0),q=E.prefix,W=E.local;if(q==="xmlns")if(W==="xml"&&g.attribValue!==F)V(g,"xml: prefix must be bound to "+F+`
|
|
|
Actual: `+g.attribValue);else if(W==="xmlns"&&g.attribValue!==U)V(g,"xmlns: prefix must be bound to "+U+`
|
|
|
Actual: `+g.attribValue);else{var le=g.tag,ae=g.tags[g.tags.length-1]||g;le.ns===ae.ns&&(le.ns=(0,b.default)(ae.ns)),le.ns[W]=g.attribValue}g.attribList.push([g.attribName,g.attribValue])}else g.tag.attributes[g.attribName]=g.attribValue,H(g,"onattribute",{name:g.attribName,value:g.attribValue});g.attribName=g.attribValue=""}function M(g,E){if(g.opt.xmlns){var q=g.tag,W=D(g.tagName);q.prefix=W.prefix,q.local=W.local,q.uri=q.ns[W.prefix]||"",q.prefix&&!q.uri&&(V(g,"Unbound namespace prefix: "+(0,r.default)(g.tagName)),q.uri=W.prefix);var le=g.tags[g.tags.length-1]||g;q.ns&&le.ns!==q.ns&&(0,c.default)(q.ns).forEach(function(Te){H(g,"onopennamespace",{prefix:Te,uri:q.ns[Te]})});for(var ae=0,pe=g.attribList.length;ae<pe;ae++){var de=g.attribList[ae],ve=de[0],me=de[1],ce=D(ve,!0),ye=ce.prefix,we=ce.local,_e=ye===""?"":q.ns[ye]||"",xe={name:ve,value:me,prefix:ye,local:we,uri:_e};ye&&ye!=="xmlns"&&!_e&&(V(g,"Unbound namespace prefix: "+(0,r.default)(ye)),xe.uri=ye),g.tag.attributes[ve]=xe,H(g,"onattribute",xe)}g.attribList.length=0}g.tag.isSelfClosing=!!E,g.sawRoot=!0,g.tags.push(g.tag),H(g,"onopentag",g.tag),E||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=u.TEXT:g.state=u.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function B(g){if(!g.tagName)return V(g,"Weird empty close tag."),g.textNode+="</>",void(g.state=u.TEXT);if(g.script){if(g.tagName!=="script")return g.script+="</"+g.tagName+">",g.tagName="",void(g.state=u.SCRIPT);H(g,"onscript",g.script),g.script=""}var E=g.tags.length,q=g.tagName;g.strict||(q=q[g.looseCase]());for(var W=q;E--&&!(g.tags[E].name===W);)V(g,"Unexpected close tag");if(E<0)return V(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",void(g.state=u.TEXT);g.tagName=q;for(var le=g.tags.length;le-- >E;){var ae=g.tag=g.tags.pop();g.tagName=g.tag.name,H(g,"onclosetag",g.tagName);var pe={};for(var de in ae.ns)pe[de]=ae.ns[de];var ve=g.tags[g.tags.length-1]||g;g.opt.xmlns&&ae.ns!==ve.ns&&(0,c.default)(ae.ns).forEach(function(me){var ce=ae.ns[me];H(g,"onclosenamespace",{prefix:me,uri:ce})})}E===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=u.TEXT}function te(g){var E,q=g.entity,W=q.toLowerCase(),le="";return g.ENTITIES[q]?g.ENTITIES[q]:g.ENTITIES[W]?g.ENTITIES[W]:(q=W,q.charAt(0)==="#"&&(q.charAt(1)==="x"?(q=q.slice(2),E=parseInt(q,16),le=E.toString(16)):(q=q.slice(1),E=parseInt(q,10),le=E.toString(10))),q=q.replace(/^0+/,""),isNaN(E)||le.toLowerCase()!==q?(V(g,"Invalid character entity"),"&"+g.entity+";"):(0,i.default)(E))}function Y(g,E){E==="<"?(g.state=u.OPEN_WAKA,g.startTagPosition=g.position):y(E)||(V(g,"Non-whitespace before first tag."),g.textNode=E,g.state=u.TEXT)}function oe(g,E){var q="";return E<g.length&&(q=g.charAt(E)),q}function ne(g){var E=this;if(this.error)throw this.error;if(E.closed)return z(E,"Cannot write after close. Assign an onready handler.");if(g===null)return re(E);(g===void 0?"undefined":(0,o.default)(g))==="object"&&(g=g.toString());for(var q=0,W="";!(W=oe(g,q++),E.c=W,!W);)switch(E.trackPosition&&(E.position++,W===`
|
|
|
`?(E.line++,E.column=0):E.column++),E.state){case u.BEGIN:if(E.state=u.BEGIN_WHITESPACE,W==="\uFEFF")continue;Y(E,W);continue;case u.BEGIN_WHITESPACE:Y(E,W);continue;case u.TEXT:if(E.sawRoot&&!E.closedRoot){for(var le=q-1;W&&W!=="<"&&W!=="&";)(W=oe(g,q++))&&E.trackPosition&&(E.position++,W===`
|
|
|
`?(E.line++,E.column=0):E.column++);E.textNode+=g.substring(le,q-1)}W!=="<"||E.sawRoot&&E.closedRoot&&!E.strict?(y(W)||E.sawRoot&&!E.closedRoot||V(E,"Text data outside of root node."),W==="&"?E.state=u.TEXT_ENTITY:E.textNode+=W):(E.state=u.OPEN_WAKA,E.startTagPosition=E.position);continue;case u.SCRIPT:W==="<"?E.state=u.SCRIPT_ENDING:E.script+=W;continue;case u.SCRIPT_ENDING:W==="/"?E.state=u.CLOSE_TAG:(E.script+="<"+W,E.state=u.SCRIPT);continue;case u.OPEN_WAKA:if(W==="!")E.state=u.SGML_DECL,E.sgmlDecl="";else if(!y(W))if(C(Z,W))E.state=u.OPEN_TAG,E.tagName=W;else if(W==="/")E.state=u.CLOSE_TAG,E.tagName="";else if(W==="?")E.state=u.PROC_INST,E.procInstName=E.procInstBody="";else{if(V(E,"Unencoded <"),E.startTagPosition+1<E.position){var ae=E.position-E.startTagPosition;W=new Array(ae).join(" ")+W}E.textNode+="<"+W,E.state=u.TEXT}continue;case u.SGML_DECL:(E.sgmlDecl+W).toUpperCase()===Q?(H(E,"onopencdata"),E.state=u.CDATA,E.sgmlDecl="",E.cdata=""):E.sgmlDecl+W==="--"?(E.state=u.COMMENT,E.comment="",E.sgmlDecl=""):(E.sgmlDecl+W).toUpperCase()===ee?(E.state=u.DOCTYPE,(E.doctype||E.sawRoot)&&V(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):W===">"?(H(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=u.TEXT):(R(W)&&(E.state=u.SGML_DECL_QUOTED),E.sgmlDecl+=W);continue;case u.SGML_DECL_QUOTED:W===E.q&&(E.state=u.SGML_DECL,E.q=""),E.sgmlDecl+=W;continue;case u.DOCTYPE:W===">"?(E.state=u.TEXT,H(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=W,W==="["?E.state=u.DOCTYPE_DTD:R(W)&&(E.state=u.DOCTYPE_QUOTED,E.q=W));continue;case u.DOCTYPE_QUOTED:E.doctype+=W,W===E.q&&(E.q="",E.state=u.DOCTYPE);continue;case u.DOCTYPE_DTD:E.doctype+=W,W==="]"?E.state=u.DOCTYPE:R(W)&&(E.state=u.DOCTYPE_DTD_QUOTED,E.q=W);continue;case u.DOCTYPE_DTD_QUOTED:E.doctype+=W,W===E.q&&(E.state=u.DOCTYPE_DTD,E.q="");continue;case u.COMMENT:W==="-"?E.state=u.COMMENT_ENDING:E.comment+=W;continue;case u.COMMENT_ENDING:W==="-"?(E.state=u.COMMENT_ENDED,E.comment=ie(E.opt,E.comment),E.comment&&H(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+W,E.state=u.COMMENT);continue;case u.COMMENT_ENDED:W!==">"?(V(E,"Malformed comment"),E.comment+="--"+W,E.state=u.COMMENT):E.state=u.TEXT;continue;case u.CDATA:W==="]"?E.state=u.CDATA_ENDING:E.cdata+=W;continue;case u.CDATA_ENDING:W==="]"?E.state=u.CDATA_ENDING_2:(E.cdata+="]"+W,E.state=u.CDATA);continue;case u.CDATA_ENDING_2:W===">"?(E.cdata&&H(E,"oncdata",E.cdata),H(E,"onclosecdata"),E.cdata="",E.state=u.TEXT):W==="]"?E.cdata+="]":(E.cdata+="]]"+W,E.state=u.CDATA);continue;case u.PROC_INST:W==="?"?E.state=u.PROC_INST_ENDING:y(W)?E.state=u.PROC_INST_BODY:E.procInstName+=W;continue;case u.PROC_INST_BODY:if(!E.procInstBody&&y(W))continue;W==="?"?E.state=u.PROC_INST_ENDING:E.procInstBody+=W;continue;case u.PROC_INST_ENDING:W===">"?(H(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=u.TEXT):(E.procInstBody+="?"+W,E.state=u.PROC_INST_BODY);continue;case u.OPEN_TAG:C(ue,W)?E.tagName+=W:(X(E),W===">"?M(E):W==="/"?E.state=u.OPEN_TAG_SLASH:(y(W)||V(E,"Invalid character in tag name"),E.state=u.ATTRIB));continue;case u.OPEN_TAG_SLASH:W===">"?(M(E,!0),B(E)):(V(E,"Forward-slash in opening tag not followed by >"),E.state=u.ATTRIB);continue;case u.ATTRIB:if(y(W))continue;W===">"?M(E):W==="/"?E.state=u.OPEN_TAG_SLASH:C(Z,W)?(E.attribName=W,E.attribValue="",E.state=u.ATTRIB_NAME):V(E,"Invalid attribute name");continue;case u.ATTRIB_NAME:W==="="?E.state=u.ATTRIB_VALUE:W===">"?(V(E,"Attribute without value"),E.attribValue=E.attribName,L(E),M(E)):y(W)?E.state=u.ATTRIB_NAME_SAW_WHITE:C(ue,W)?E.attribName+=W:V(E,"Invalid attribute name");continue;case u.ATTRIB_NAME_SAW_WHITE:if(W==="=")E.state=u.ATTRIB_VALUE;else{if(y(W))continue;V(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",H(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",W===">"?M(E):C(Z,W)?(E.attribName=W,E.state=u.ATTRIB_NAME):(V(E,"Invalid attribute name"),E.state=u.ATTRIB)}continue;case u.ATTRIB_VALUE:if(y(W))continue;R(W)?(E.q=W,E.state=u.ATTRIB_VALUE_QUOTED):(V(E,"Unquoted attribute value"),E.state=u.ATTRIB_VALUE_UNQUOTED,E.attribValue=W);continue;case u.ATTRIB_VALUE_QUOTED:if(W!==E.q){W==="&"?E.state=u.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=W;continue}L(E),E.q="",E.state=u.ATTRIB_VALUE_CLOSED;continue;case u.ATTRIB_VALUE_CLOSED:y(W)?E.state=u.ATTRIB:W===">"?M(E):W==="/"?E.state=u.OPEN_TAG_SLASH:C(Z,W)?(V(E,"No whitespace between attributes"),E.attribName=W,E.attribValue="",E.state=u.ATTRIB_NAME):V(E,"Invalid attribute name");continue;case u.ATTRIB_VALUE_UNQUOTED:if(!P(W)){W==="&"?E.state=u.ATTRIB_VALUE_ENTITY_U:E.attribValue+=W;continue}L(E),W===">"?M(E):E.state=u.ATTRIB;continue;case u.CLOSE_TAG:if(E.tagName)W===">"?B(E):C(ue,W)?E.tagName+=W:E.script?(E.script+="</"+E.tagName,E.tagName="",E.state=u.SCRIPT):(y(W)||V(E,"Invalid tagname in closing tag"),E.state=u.CLOSE_TAG_SAW_WHITE);else{if(y(W))continue;N(Z,W)?E.script?(E.script+="</"+W,E.state=u.SCRIPT):V(E,"Invalid tagname in closing tag."):E.tagName=W}continue;case u.CLOSE_TAG_SAW_WHITE:if(y(W))continue;W===">"?B(E):V(E,"Invalid characters in closing tag");continue;case u.TEXT_ENTITY:case u.ATTRIB_VALUE_ENTITY_Q:case u.ATTRIB_VALUE_ENTITY_U:var pe,de;switch(E.state){case u.TEXT_ENTITY:pe=u.TEXT,de="textNode";break;case u.ATTRIB_VALUE_ENTITY_Q:pe=u.ATTRIB_VALUE_QUOTED,de="attribValue";break;case u.ATTRIB_VALUE_ENTITY_U:pe=u.ATTRIB_VALUE_UNQUOTED,de="attribValue"}W===";"?(E[de]+=te(E),E.entity="",E.state=pe):C(E.entity.length?t:k,W)?E.entity+=W:(V(E,"Invalid character in entity name"),E[de]+="&"+E.entity+W,E.entity="",E.state=pe);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&x(E),E}m.parser=function(g,E){return new S(g,E)},m.SAXParser=S,m.SAXStream=j,m.createStream=O,m.MAX_BUFFER_LENGTH=65536;var se=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];m.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],b.default||(Object.create=function(g){function E(){}return E.prototype=g,new E}),c.default||(Object.keys=function(g){var E=[];for(var q in g)g.hasOwnProperty(q)&&E.push(q);return E}),S.prototype={end:function(){re(this)},write:ne,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){_(this)}};var fe;try{fe=n("stream").Stream}catch(g){fe=function(){}}var J=m.EVENTS.filter(function(g){return g!=="error"&&g!=="end"});j.prototype=(0,b.default)(fe.prototype,{constructor:{value:j}}),j.prototype.write=function(g){if(typeof f=="function"&&typeof f.isBuffer=="function"&&f.isBuffer(g)){if(!this._decoder){var E=n("string_decoder").StringDecoder;this._decoder=new E("utf8")}g=this._decoder.write(g)}return this._parser.write(g.toString()),this.emit("data",g),!0},j.prototype.end=function(g){return g&&g.length&&this.write(g),this._parser.end(),!0},j.prototype.on=function(g,E){var q=this;return q._parser["on"+g]||J.indexOf(g)===-1||(q._parser["on"+g]=function(){var W=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,g),q.emit.apply(q,W)}),fe.prototype.on.call(q,g,E)};var Q="[CDATA[",ee="DOCTYPE",F="http://www.w3.org/XML/1998/namespace",U="http://www.w3.org/2000/xmlns/",$={xml:F,xmlns:U},Z=/[:_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]/,ue=/[:_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-]/,u=0;m.STATE={BEGIN:u++,BEGIN_WHITESPACE:u++,TEXT:u++,TEXT_ENTITY:u++,OPEN_WAKA:u++,SGML_DECL:u++,SGML_DECL_QUOTED:u++,DOCTYPE:u++,DOCTYPE_QUOTED:u++,DOCTYPE_DTD:u++,DOCTYPE_DTD_QUOTED:u++,COMMENT_STARTING:u++,COMMENT:u++,COMMENT_ENDING:u++,COMMENT_ENDED:u++,CDATA:u++,CDATA_ENDING:u++,CDATA_ENDING_2:u++,PROC_INST:u++,PROC_INST_BODY:u++,PROC_INST_ENDING:u++,OPEN_TAG:u++,OPEN_TAG_SLASH:u++,ATTRIB:u++,ATTRIB_NAME:u++,ATTRIB_NAME_SAW_WHITE:u++,ATTRIB_VALUE:u++,ATTRIB_VALUE_QUOTED:u++,ATTRIB_VALUE_CLOSED:u++,ATTRIB_VALUE_UNQUOTED:u++,ATTRIB_VALUE_ENTITY_Q:u++,ATTRIB_VALUE_ENTITY_U:u++,CLOSE_TAG:u++,CLOSE_TAG_SAW_WHITE:u++,SCRIPT:u++,SCRIPT_ENDING:u++},m.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},m.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,c.default)(m.ENTITIES).forEach(function(g){var E=m.ENTITIES[g],q=typeof E=="number"?String.fromCharCode(E):E;m.ENTITIES[g]=q});for(var A in m.STATE)m.STATE[m.STATE[A]]=A;u=m.STATE,i.default||function(){var g=String.fromCharCode,E=Math.floor,q=function(){var W,le,ae=[],pe=-1,de=arguments.length;if(!de)return"";for(var ve="";++pe<de;){var me=Number(arguments[pe]);if(!isFinite(me)||me<0||me>1114111||E(me)!==me)throw RangeError("Invalid code point: "+me);me<=65535?ae.push(me):(me-=65536,W=55296+(me>>10),le=me%1024+56320,ae.push(W,le)),(pe+1===de||ae.length>16384)&&(ve+=g.apply(null,ae),ae.length=0)}return ve};p.default?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q}()}(T===void 0?(void 0).sax={}:T)}).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,I,T){function f(){v.call(this)}I.exports=f;var v=n("events").EventEmitter;n("inherits")(f,v),f.Readable=n("readable-stream/readable.js"),f.Writable=n("readable-stream/writable.js"),f.Duplex=n("readable-stream/duplex.js"),f.Transform=n("readable-stream/transform.js"),f.PassThrough=n("readable-stream/passthrough.js"),f.Stream=f,f.prototype.pipe=function(a,i){function l(w){a.writable&&a.write(w)===!1&&d.pause&&d.pause()}function r(){d.readable&&d.resume&&d.resume()}function e(){c||(c=!0,a.end())}function o(){c||(c=!0,typeof a.destroy=="function"&&a.destroy())}function s(w){if(p(),v.listenerCount(this,"error")===0)throw w}function p(){d.removeListener("data",l),a.removeListener("drain",r),d.removeListener("end",e),d.removeListener("close",o),d.removeListener("error",s),a.removeListener("error",s),d.removeListener("end",p),d.removeListener("close",p),a.removeListener("close",p)}var d=this;d.on("data",l),a.on("drain",r),a._isStdio||i&&i.end===!1||(d.on("end",e),d.on("close",o));var c=!1;return d.on("error",s),a.on("error",s),d.on("end",p),d.on("close",p),a.on("close",p),a.emit("pipe",d),a}},{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,I,T){(function(f){var v=n("./lib/request"),a=n("./lib/response"),i=n("xtend"),l=n("builtin-status-codes"),r=n("url"),e=T;e.request=function(o,s){o=typeof o=="string"?r.parse(o):i(o);var p=f.location.protocol.search(/^https?:$/)===-1?"http:":"",d=o.protocol||p,c=o.hostname||o.host,w=o.port,b=o.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),o.url=(c?d+"//"+c:"")+(w?":"+w:"")+b,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var m=new v(o);return s&&m.on("response",s),m},e.get=function(o,s){var p=e.request(o,s);return p.end(),p},e.ClientRequest=v,e.IncomingMessage=a.IncomingMessage,e.Agent=function(){},e.Agent.defaultMaxSockets=4,e.globalAgent=new e.Agent,e.STATUS_CODES=l,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 be!="undefined"?be: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,I,T){(function(f){"use strict";function v(){if(l!==void 0)return l;if(f.XMLHttpRequest){l=new f.XMLHttpRequest;try{l.open("GET",f.XDomainRequest?"/":"https://example.com")}catch(o){l=null}}else l=null;return l}function a(o){var s=v();if(!s)return!1;try{return s.responseType=o,s.responseType===o}catch(p){}return!1}function i(o){return typeof o=="function"}T.fetch=i(f.fetch)&&i(f.ReadableStream),T.writableStream=i(f.WritableStream),T.abortController=i(f.AbortController),T.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),T.blobConstructor=!0}catch(o){}var l,r=f.ArrayBuffer!==void 0,e=r&&i(f.ArrayBuffer.prototype.slice);T.arraybuffer=T.fetch||r&&a("arraybuffer"),T.msstream=!T.fetch&&e&&a("ms-stream"),T.mozchunkedarraybuffer=!T.fetch&&r&&a("moz-chunked-arraybuffer"),T.overrideMimeType=T.fetch||!!v()&&i(v().overrideMimeType),T.vbArray=i(f.VBArray),l=null}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,I,T){(function(f,v,a){"use strict";function i(x,h){return o.fetch&&h?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&x?"arraybuffer":o.vbArray&&x?"text:vbarray":"text"}function l(x){try{var h=x.status;return h!==null&&h!==0}catch(_){return!1}}var r=n("babel-runtime/core-js/object/keys"),e=function(x){return x&&x.__esModule?x:{default:x}}(r),o=n("./capability"),s=n("inherits"),p=n("./response"),d=n("readable-stream"),c=n("to-arraybuffer"),w=p.IncomingMessage,b=p.readyStates,m=I.exports=function(x){var h=this;d.Writable.call(h),h._opts=x,h._body=[],h._headers={},x.auth&&h.setHeader("Authorization","Basic "+new a(x.auth).toString("base64")),(0,e.default)(x.headers).forEach(function(j){h.setHeader(j,x.headers[j])});var _,O=!0;if(x.mode==="disable-fetch"||"requestTimeout"in x&&!o.abortController)O=!1,_=!0;else if(x.mode==="prefer-streaming")_=!1;else if(x.mode==="allow-wrong-content-type")_=!o.overrideMimeType;else{if(x.mode&&x.mode!=="default"&&x.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}h._mode=i(_,O),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};s(m,d.Writable),m.prototype.setHeader=function(x,h){var _=this,O=x.toLowerCase();S.indexOf(O)===-1&&(_._headers[O]={name:x,value:h})},m.prototype.getHeader=function(x){var h=this._headers[x.toLowerCase()];return h?h.value:null},m.prototype.removeHeader=function(x){delete this._headers[x.toLowerCase()]},m.prototype._onFinish=function(){var x=this;if(!x._destroyed){var h=x._opts,_=x._headers,O=null;h.method!=="GET"&&h.method!=="HEAD"&&(O=o.arraybuffer?c(a.concat(x._body)):o.blobConstructor?new v.Blob(x._body.map(function(C){return c(C)}),{type:(_["content-type"]||{}).value||""}):a.concat(x._body).toString());var j=[];if((0,e.default)(_).forEach(function(C){var N=_[C].name,G=_[C].value;Array.isArray(G)?G.forEach(function(H){j.push([N,H])}):j.push([N,G])}),x._mode==="fetch"){var y=null;if(o.abortController){var R=new AbortController;y=R.signal,x._fetchAbortController=R,"requestTimeout"in h&&h.requestTimeout!==0&&(x._fetchTimer=v.setTimeout(function(){x.emit("requestTimeout"),x._fetchAbortController&&x._fetchAbortController.abort()},h.requestTimeout))}v.fetch(x._opts.url,{method:x._opts.method,headers:j,body:O||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:y}).then(function(C){x._fetchResponse=C,x._connect()},function(C){v.clearTimeout(x._fetchTimer),x._destroyed||x.emit("error",C)})}else{var P=x._xhr=new v.XMLHttpRequest;try{P.open(x._opts.method,x._opts.url,!0)}catch(C){return void f.nextTick(function(){x.emit("error",C)})}"responseType"in P&&(P.responseType=x._mode.split(":")[0]),"withCredentials"in P&&(P.withCredentials=!!h.withCredentials),x._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(P.timeout=h.requestTimeout,P.ontimeout=function(){x.emit("requestTimeout")}),j.forEach(function(C){P.setRequestHeader(C[0],C[1])}),x._response=null,P.onreadystatechange=function(){switch(P.readyState){case b.LOADING:case b.DONE:x._onXHRProgress()}},x._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){x._onXHRProgress()}),P.onerror=function(){x._destroyed||x.emit("error",new Error("XHR error"))};try{P.send(O)}catch(C){return void f.nextTick(function(){x.emit("error",C)})}}}},m.prototype._onXHRProgress=function(){var x=this;l(x._xhr)&&!x._destroyed&&(x._response||x._connect(),x._response._onXHRProgress())},m.prototype._connect=function(){var x=this;x._destroyed||(x._response=new w(x._xhr,x._fetchResponse,x._mode,x._fetchTimer),x._response.on("error",function(h){x.emit("error",h)}),x.emit("response",x._response))},m.prototype._write=function(x,h,_){this._body.push(x),_()},m.prototype.abort=m.prototype.destroy=function(){var x=this;x._destroyed=!0,v.clearTimeout(x._fetchTimer),x._response&&(x._response._destroyed=!0),x._xhr?x._xhr.abort():x._fetchAbortController&&x._fetchAbortController.abort()},m.prototype.end=function(x,h,_){var O=this;typeof x=="function"&&(_=x,x=void 0),d.Writable.prototype.end.call(O,x,h,_)},m.prototype.flushHeaders=function(){},m.prototype.setTimeout=function(){},m.prototype.setNoDelay=function(){},m.prototype.setSocketKeepAlive=function(){};var S=["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 be!="undefined"?be: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,I,T){(function(f,v,a){"use strict";var i=n("babel-runtime/core-js/promise"),l=function(d){return d&&d.__esModule?d:{default:d}}(i),r=n("./capability"),e=n("inherits"),o=n("readable-stream"),s=T.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},p=T.IncomingMessage=function(d,c,w,b){var m=this;if(o.Readable.call(m),m._mode=w,m.headers={},m.rawHeaders=[],m.trailers={},m.rawTrailers=[],m.on("end",function(){f.nextTick(function(){m.emit("close")})}),w==="fetch"){if(m._fetchResponse=c,m.url=c.url,m.statusCode=c.status,m.statusMessage=c.statusText,c.headers.forEach(function(O,j){m.headers[j.toLowerCase()]=O,m.rawHeaders.push(j,O)}),r.writableStream){var S=new WritableStream({write:function(O){return new l.default(function(j,y){m._destroyed?y():m.push(new a(O))?j():m._resumeFetch=j})},close:function(){v.clearTimeout(b),m._destroyed||m.push(null)},abort:function(O){m._destroyed||m.emit("error",O)}});try{return void c.body.pipeTo(S).catch(function(O){v.clearTimeout(b),m._destroyed||m.emit("error",O)})}catch(O){}}var x=c.body.getReader();!function O(){x.read().then(function(j){if(!m._destroyed){if(j.done)return v.clearTimeout(b),void m.push(null);m.push(new a(j.value)),O()}}).catch(function(j){v.clearTimeout(b),m._destroyed||m.emit("error",j)})}()}else if(m._xhr=d,m._pos=0,m.url=d.responseURL,m.statusCode=d.status,m.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var j=O.match(/^([^:]+):\s*(.*)/);if(j){var y=j[1].toLowerCase();y==="set-cookie"?(m.headers[y]===void 0&&(m.headers[y]=[]),m.headers[y].push(j[2])):m.headers[y]!==void 0?m.headers[y]+=", "+j[2]:m.headers[y]=j[2],m.rawHeaders.push(j[1],j[2])}}),m._charset="x-user-defined",!r.overrideMimeType){var h=m.rawHeaders["mime-type"];if(h){var _=h.match(/;\s*charset=([^;])(;|$)/);_&&(m._charset=_[1].toLowerCase())}m._charset||(m._charset="utf-8")}};e(p,o.Readable),p.prototype._read=function(){var d=this,c=d._resumeFetch;c&&(d._resumeFetch=null,c())},p.prototype._onXHRProgress=function(){var d=this,c=d._xhr,w=null;switch(d._mode){case"text:vbarray":if(c.readyState!==s.DONE)break;try{w=new v.VBArray(c.responseBody).toArray()}catch(h){}if(w!==null){d.push(new a(w));break}case"text":try{w=c.responseText}catch(h){d._mode="text:vbarray";break}if(w.length>d._pos){var b=w.substr(d._pos);if(d._charset==="x-user-defined"){for(var m=new a(b.length),S=0;S<b.length;S++)m[S]=255&b.charCodeAt(S);d.push(m)}else d.push(b,d._charset);d._pos=w.length}break;case"arraybuffer":if(c.readyState!==s.DONE||!c.response)break;w=c.response,d.push(new a(new Uint8Array(w)));break;case"moz-chunked-arraybuffer":if(w=c.response,c.readyState!==s.LOADING||!w)break;d.push(new a(new Uint8Array(w)));break;case"ms-stream":if(w=c.response,c.readyState!==s.LOADING)break;var x=new v.MSStreamReader;x.onprogress=function(){x.result.byteLength>d._pos&&(d.push(new a(new Uint8Array(x.result.slice(d._pos)))),d._pos=x.result.byteLength)},x.onload=function(){d.push(null)},x.readAsArrayBuffer(w)}d._xhr.readyState===s.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,n("_process"),typeof be!="undefined"?be: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,I,T){"use strict";function f(h){if(!h)return"utf8";for(var _;;)switch(h){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 h;default:if(_)return;h=(""+h).toLowerCase(),_=!0}}function v(h){var _=f(h);if(typeof _!="string"&&(S.isEncoding===x||!x(h)))throw new Error("Unknown encoding: "+h);return _||h}function a(h){this.encoding=v(h);var _;switch(this.encoding){case"utf16le":this.text=p,this.end=d,_=4;break;case"utf8":this.fillLast=e,_=4;break;case"base64":this.text=c,this.end=w,_=3;break;default:return this.write=b,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(_)}function i(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function l(h,_,O){var j=_.length-1;if(j<O)return 0;var y=i(_[j]);return y>=0?(y>0&&(h.lastNeed=y-1),y):--j<O||y===-2?0:(y=i(_[j]))>=0?(y>0&&(h.lastNeed=y-2),y):--j<O||y===-2?0:(y=i(_[j]),y>=0?(y>0&&(y===2?y=0:h.lastNeed=y-3),y):0)}function r(h,_,O){if((192&_[0])!=128)return h.lastNeed=0,"\u951F\uFFFD";if(h.lastNeed>1&&_.length>1){if((192&_[1])!=128)return h.lastNeed=1,"\u951F\uFFFD";if(h.lastNeed>2&&_.length>2&&(192&_[2])!=128)return h.lastNeed=2,"\u951F\uFFFD"}}function e(h){var _=this.lastTotal-this.lastNeed,O=r(this,h,_);return O!==void 0?O:this.lastNeed<=h.length?(h.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,_,0,h.length),void(this.lastNeed-=h.length))}function o(h,_){var O=l(this,h,_);if(!this.lastNeed)return h.toString("utf8",_);this.lastTotal=O;var j=h.length-(O-this.lastNeed);return h.copy(this.lastChar,0,j),h.toString("utf8",_,j)}function s(h){var _=h&&h.length?this.write(h):"";return this.lastNeed?_+"\u951F\uFFFD":_}function p(h,_){if((h.length-_)%2==0){var O=h.toString("utf16le",_);if(O){var j=O.charCodeAt(O.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",_,h.length-1)}function d(h){var _=h&&h.length?this.write(h):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,O)}return _}function c(h,_){var O=(h.length-_)%3;return O===0?h.toString("base64",_):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",_,h.length-O))}function w(h){var _=h&&h.length?this.write(h):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function b(h){return h.toString(this.encoding)}function m(h){return h&&h.length?this.write(h):""}var S=n("safe-buffer").Buffer,x=S.isEncoding||function(h){switch((h=""+h)&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};T.StringDecoder=a,a.prototype.write=function(h){if(h.length===0)return"";var _,O;if(this.lastNeed){if((_=this.fillLast(h))===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<h.length?_?_+this.text(h,O):this.text(h,O):_||""},a.prototype.end=s,a.prototype.text=o,a.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length}},{"safe-buffer":193}],201:[function(n,I,T){(function(f,v){function a(s,p){this._id=s,this._clearFn=p}var i=n("process/browser.js").nextTick,l=Function.prototype.apply,r=Array.prototype.slice,e={},o=0;T.setTimeout=function(){return new a(l.call(setTimeout,window,arguments),clearTimeout)},T.setInterval=function(){return new a(l.call(setInterval,window,arguments),clearInterval)},T.clearTimeout=T.clearInterval=function(s){s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},T.enroll=function(s,p){clearTimeout(s._idleTimeoutId),s._idleTimeout=p},T.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},T._unrefActive=T.active=function(s){clearTimeout(s._idleTimeoutId);var p=s._idleTimeout;p>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},p))},T.setImmediate=typeof f=="function"?f:function(s){var p=o++,d=!(arguments.length<2)&&r.call(arguments,1);return e[p]=!0,i(function(){e[p]&&(d?s.apply(null,d):s.call(null),T.clearImmediate(p))}),p},T.clearImmediate=typeof v=="function"?v:function(s){delete e[s]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,I,T){var f=n("buffer").Buffer;I.exports=function(v){if(v instanceof Uint8Array){if(v.byteOffset===0&&v.byteLength===v.buffer.byteLength)return v.buffer;if(typeof v.buffer.slice=="function")return v.buffer.slice(v.byteOffset,v.byteOffset+v.byteLength)}if(f.isBuffer(v)){for(var a=new Uint8Array(v.length),i=v.length,l=0;l<i;l++)a[l]=v[l];return a.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,I,T){"use strict";function f(){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 v(y,R,P){if(y&&e.isObject(y)&&y instanceof f)return y;var C=new f;return C.parse(y,R,P),C}function a(y){return e.isString(y)&&(y=v(y)),y instanceof f?y.format():f.prototype.format.call(y)}function i(y,R){return v(y,!1,!0).resolve(R)}function l(y,R){return y?v(y,!1,!0).resolveObject(R):R}var r=n("punycode"),e=n("./util");T.parse=v,T.resolve=i,T.resolveObject=l,T.format=a,T.Url=f;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(d),w=["'"].concat(c),b=["%","/","?",";","#"].concat(w),m=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},_={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},j=n("querystring");f.prototype.parse=function(y,R,P){if(!e.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var C=y.indexOf("?"),N=C!==-1&&C<y.indexOf("#")?"?":"#",G=y.split(N),H=/\\/g;G[0]=G[0].replace(H,"/"),y=G.join(N);var K=y;if(K=K.trim(),!P&&y.split("#").length===1){var ie=p.exec(K);if(ie)return this.path=K,this.href=K,this.pathname=ie[1],ie[2]?(this.search=ie[2],this.query=R?j.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var z=o.exec(K);if(z){z=z[0];var re=z.toLowerCase();this.protocol=re,K=K.substr(z.length)}if(P||z||K.match(/^\/\/[^@\/]+@[^@\/]+/)){var V=K.substr(0,2)==="//";!V||z&&_[z]||(K=K.substr(2),this.slashes=!0)}if(!_[z]&&(V||z&&!O[z])){for(var X=-1,D=0;D<m.length;D++){var L=K.indexOf(m[D]);L!==-1&&(X===-1||L<X)&&(X=L)}var M,B;B=X===-1?K.lastIndexOf("@"):K.lastIndexOf("@",X),B!==-1&&(M=K.slice(0,B),K=K.slice(B+1),this.auth=decodeURIComponent(M)),X=-1;for(var D=0;D<b.length;D++){var L=K.indexOf(b[D]);L!==-1&&(X===-1||L<X)&&(X=L)}X===-1&&(X=K.length),this.host=K.slice(0,X),K=K.slice(X),this.parseHost(),this.hostname=this.hostname||"";var te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te)for(var Y=this.hostname.split(/\./),D=0,oe=Y.length;D<oe;D++){var ne=Y[D];if(ne&&!ne.match(S)){for(var se="",fe=0,J=ne.length;fe<J;fe++)ne.charCodeAt(fe)>127?se+="x":se+=ne[fe];if(!se.match(S)){var Q=Y.slice(0,D),ee=Y.slice(D+1),F=ne.match(x);F&&(Q.push(F[1]),ee.unshift(F[2])),ee.length&&(K="/"+ee.join(".")+K),this.hostname=Q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),te||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+U,this.href+=this.host,te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),K[0]!=="/"&&(K="/"+K))}if(!h[re])for(var D=0,oe=w.length;D<oe;D++){var Z=w[D];if(K.indexOf(Z)!==-1){var ue=encodeURIComponent(Z);ue===Z&&(ue=escape(Z)),K=K.split(Z).join(ue)}}var k=K.indexOf("#");k!==-1&&(this.hash=K.substr(k),K=K.slice(0,k));var t=K.indexOf("?");if(t!==-1?(this.search=K.substr(t),this.query=K.substr(t+1),R&&(this.query=j.parse(this.query)),K=K.slice(0,t)):R&&(this.search="",this.query={}),K&&(this.pathname=K),O[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",u=this.search||"";this.path=U+u}return this.href=this.format(),this},f.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var R=this.protocol||"",P=this.pathname||"",C=this.hash||"",N=!1,G="";this.host?N=y+this.host:this.hostname&&(N=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&e.isObject(this.query)&&Object.keys(this.query).length&&(G=j.stringify(this.query));var H=this.search||G&&"?"+G||"";return R&&R.substr(-1)!==":"&&(R+=":"),this.slashes||(!R||O[R])&&N!==!1?(N="//"+(N||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):N||(N=""),C&&C.charAt(0)!=="#"&&(C="#"+C),H&&H.charAt(0)!=="?"&&(H="?"+H),P=P.replace(/[?#]/g,function(K){return encodeURIComponent(K)}),H=H.replace("#","%23"),R+N+P+H+C},f.prototype.resolve=function(y){return this.resolveObject(v(y,!1,!0)).format()},f.prototype.resolveObject=function(y){if(e.isString(y)){var R=new f;R.parse(y,!1,!0),y=R}for(var P=new f,C=Object.keys(this),N=0;N<C.length;N++){var G=C[N];P[G]=this[G]}if(P.hash=y.hash,y.href==="")return P.href=P.format(),P;if(y.slashes&&!y.protocol){for(var H=Object.keys(y),K=0;K<H.length;K++){var ie=H[K];ie!=="protocol"&&(P[ie]=y[ie])}return O[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(y.protocol&&y.protocol!==P.protocol){if(!O[y.protocol]){for(var z=Object.keys(y),re=0;re<z.length;re++){var V=z[re];P[V]=y[V]}return P.href=P.format(),P}if(P.protocol=y.protocol,y.host||_[y.protocol])P.pathname=y.pathname;else{for(var oe=(y.pathname||"").split("/");oe.length&&!(y.host=oe.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),P.pathname=oe.join("/")}if(P.search=y.search,P.query=y.query,P.host=y.host||"",P.auth=y.auth,P.hostname=y.hostname||y.host,P.port=y.port,P.pathname||P.search){var X=P.pathname||"",D=P.search||"";P.path=X+D}return P.slashes=P.slashes||y.slashes,P.href=P.format(),P}var L=P.pathname&&P.pathname.charAt(0)==="/",M=y.host||y.pathname&&y.pathname.charAt(0)==="/",B=M||L||P.host&&y.pathname,te=B,Y=P.pathname&&P.pathname.split("/")||[],oe=y.pathname&&y.pathname.split("/")||[],ne=P.protocol&&!O[P.protocol];if(ne&&(P.hostname="",P.port=null,P.host&&(Y[0]===""?Y[0]=P.host:Y.unshift(P.host)),P.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(oe[0]===""?oe[0]=y.host:oe.unshift(y.host)),y.host=null),B=B&&(oe[0]===""||Y[0]==="")),M)P.host=y.host||y.host===""?y.host:P.host,P.hostname=y.hostname||y.hostname===""?y.hostname:P.hostname,P.search=y.search,P.query=y.query,Y=oe;else if(oe.length)Y||(Y=[]),Y.pop(),Y=Y.concat(oe),P.search=y.search,P.query=y.query;else if(!e.isNullOrUndefined(y.search)){if(ne){P.hostname=P.host=Y.shift();var se=!!(P.host&&P.host.indexOf("@")>0)&&P.host.split("@");se&&(P.auth=se.shift(),P.host=P.hostname=se.shift())}return P.search=y.search,P.query=y.query,e.isNull(P.pathname)&&e.isNull(P.search)||(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!Y.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var fe=Y.slice(-1)[0],J=(P.host||y.host||Y.length>1)&&(fe==="."||fe==="..")||fe==="",Q=0,ee=Y.length;ee>=0;ee--)fe=Y[ee],fe==="."?Y.splice(ee,1):fe===".."?(Y.splice(ee,1),Q++):Q&&(Y.splice(ee,1),Q--);if(!B&&!te)for(;Q--;Q)Y.unshift("..");!B||Y[0]===""||Y[0]&&Y[0].charAt(0)==="/"||Y.unshift(""),J&&Y.join("/").substr(-1)!=="/"&&Y.push("");var F=Y[0]===""||Y[0]&&Y[0].charAt(0)==="/";if(ne){P.hostname=P.host=F?"":Y.length?Y.shift():"";var se=!!(P.host&&P.host.indexOf("@")>0)&&P.host.split("@");se&&(P.auth=se.shift(),P.host=P.hostname=se.shift())}return B=B||P.host&&Y.length,B&&!F&&Y.unshift(""),Y.length?P.pathname=Y.join("/"):(P.pathname=null,P.path=null),e.isNull(P.pathname)&&e.isNull(P.search)||(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=y.auth||P.auth,P.slashes=P.slashes||y.slashes,P.href=P.format(),P},f.prototype.parseHost=function(){var y=this.host,R=s.exec(y);R&&(R=R[0],R!==":"&&(this.port=R.substr(1)),y=y.substr(0,y.length-R.length)),y&&(this.hostname=y)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,I,T){"use strict";I.exports={isString:function(f){return typeof f=="string"},isObject:function(f){return typeof f=="object"&&f!==null},isNull:function(f){return f===null},isNullOrUndefined:function(f){return f==null}}},{}],205:[function(n,I,T){(function(f){function v(i,l){function r(){if(!e){if(a("throwDeprecation"))throw new Error(l);a("traceDeprecation")?console.trace(l):console.warn(l),e=!0}return i.apply(this,arguments)}if(a("noDeprecation"))return i;var e=!1;return r}function a(i){try{if(!f.localStorage)return!1}catch(r){return!1}var l=f.localStorage[i];return l!=null&&String(l).toLowerCase()==="true"}I.exports=v}).call(this,typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,I,T){I.exports=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"}},{}],207:[function(n,I,T){(function(f,v){function a(D,L){var M={seen:[],stylize:l};return arguments.length>=3&&(M.depth=arguments[2]),arguments.length>=4&&(M.colors=arguments[3]),b(L)?M.showHidden=L:L&&T._extend(M,L),O(M.showHidden)&&(M.showHidden=!1),O(M.depth)&&(M.depth=2),O(M.colors)&&(M.colors=!1),O(M.customInspect)&&(M.customInspect=!0),M.colors&&(M.stylize=i),e(M,D,M.depth)}function i(D,L){var M=a.styles[L];return M?"["+a.colors[M][0]+"m"+D+"["+a.colors[M][1]+"m":D}function l(D,L){return D}function r(D){var L={};return D.forEach(function(M,B){L[M]=!0}),L}function e(D,L,M){if(D.customInspect&&L&&C(L.inspect)&&L.inspect!==T.inspect&&(!L.constructor||L.constructor.prototype!==L)){var B=L.inspect(M,D);return h(B)||(B=e(D,B,M)),B}var te=o(D,L);if(te)return te;var Y=Object.keys(L),oe=r(Y);if(D.showHidden&&(Y=Object.getOwnPropertyNames(L)),P(L)&&(Y.indexOf("message")>=0||Y.indexOf("description")>=0))return s(L);if(Y.length===0){if(C(L)){var ne=L.name?": "+L.name:"";return D.stylize("[Function"+ne+"]","special")}if(j(L))return D.stylize(RegExp.prototype.toString.call(L),"regexp");if(R(L))return D.stylize(Date.prototype.toString.call(L),"date");if(P(L))return s(L)}var se="",fe=!1,J=["{","}"];if((w(L)&&(fe=!0,J=["[","]"]),C(L))&&(se=" [Function"+(L.name?": "+L.name:"")+"]"),j(L)&&(se=" "+RegExp.prototype.toString.call(L)),R(L)&&(se=" "+Date.prototype.toUTCString.call(L)),P(L)&&(se=" "+s(L)),Y.length===0&&(!fe||L.length==0))return J[0]+se+J[1];if(M<0)return j(L)?D.stylize(RegExp.prototype.toString.call(L),"regexp"):D.stylize("[Object]","special");D.seen.push(L);var Q;return Q=fe?p(D,L,M,oe,Y):Y.map(function(ee){return d(D,L,M,oe,ee,fe)}),D.seen.pop(),c(Q,se,J)}function o(D,L){if(O(L))return D.stylize("undefined","undefined");if(h(L)){var M="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(M,"string")}return x(L)?D.stylize(""+L,"number"):b(L)?D.stylize(""+L,"boolean"):m(L)?D.stylize("null","null"):void 0}function s(D){return"["+Error.prototype.toString.call(D)+"]"}function p(D,L,M,B,te){for(var Y=[],oe=0,ne=L.length;oe<ne;++oe)ie(L,String(oe))?Y.push(d(D,L,M,B,String(oe),!0)):Y.push("");return te.forEach(function(se){se.match(/^\d+$/)||Y.push(d(D,L,M,B,se,!0))}),Y}function d(D,L,M,B,te,Y){var oe,ne,se;if(se=Object.getOwnPropertyDescriptor(L,te)||{value:L[te]},se.get?ne=se.set?D.stylize("[Getter/Setter]","special"):D.stylize("[Getter]","special"):se.set&&(ne=D.stylize("[Setter]","special")),ie(B,te)||(oe="["+te+"]"),ne||(D.seen.indexOf(se.value)<0?(ne=m(M)?e(D,se.value,null):e(D,se.value,M-1),ne.indexOf(`
|
|
|
`)>-1&&(ne=Y?ne.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`).substr(2):`
|
|
|
`+ne.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`))):ne=D.stylize("[Circular]","special")),O(oe)){if(Y&&te.match(/^\d+$/))return ne;oe=JSON.stringify(""+te),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=D.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=D.stylize(oe,"string"))}return oe+": "+ne}function c(D,L,M){var B=0;return D.reduce(function(te,Y){return B++,Y.indexOf(`
|
|
|
`)>=0&&B++,te+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?M[0]+(L===""?"":L+`
|
|
|
`)+" "+D.join(`,
|
|
|
`)+" "+M[1]:M[0]+L+" "+D.join(", ")+" "+M[1]}function w(D){return Array.isArray(D)}function b(D){return typeof D=="boolean"}function m(D){return D===null}function S(D){return D==null}function x(D){return typeof D=="number"}function h(D){return typeof D=="string"}function _(D){return typeof D=="symbol"}function O(D){return D===void 0}function j(D){return y(D)&&G(D)==="[object RegExp]"}function y(D){return typeof D=="object"&&D!==null}function R(D){return y(D)&&G(D)==="[object Date]"}function P(D){return y(D)&&(G(D)==="[object Error]"||D instanceof Error)}function C(D){return typeof D=="function"}function N(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||D===void 0}function G(D){return Object.prototype.toString.call(D)}function H(D){return D<10?"0"+D.toString(10):D.toString(10)}function K(){var D=new Date,L=[H(D.getHours()),H(D.getMinutes()),H(D.getSeconds())].join(":");return[D.getDate(),X[D.getMonth()],L].join(" ")}function ie(D,L){return Object.prototype.hasOwnProperty.call(D,L)}var z=/%[sdj%]/g;T.format=function(D){if(!h(D)){for(var L=[],M=0;M<arguments.length;M++)L.push(a(arguments[M]));return L.join(" ")}for(var M=1,B=arguments,te=B.length,Y=String(D).replace(z,function(se){if(se==="%%")return"%";if(M>=te)return se;switch(se){case"%s":return String(B[M++]);case"%d":return Number(B[M++]);case"%j":try{return JSON.stringify(B[M++])}catch(fe){return"[Circular]"}default:return se}}),oe=B[M];M<te;oe=B[++M])m(oe)||!y(oe)?Y+=" "+oe:Y+=" "+a(oe);return Y},T.deprecate=function(D,L){function M(){if(!B){if(f.throwDeprecation)throw new Error(L);f.traceDeprecation?console.trace(L):console.error(L),B=!0}return D.apply(this,arguments)}if(O(v.process))return function(){return T.deprecate(D,L).apply(this,arguments)};if(f.noDeprecation===!0)return D;var B=!1;return M};var re,V={};T.debuglog=function(D){if(O(re)&&(re=f.env.NODE_DEBUG||""),D=D.toUpperCase(),!V[D])if(new RegExp("\\b"+D+"\\b","i").test(re)){var L=f.pid;V[D]=function(){var M=T.format.apply(T,arguments);console.error("%s %d: %s",D,L,M)}}else V[D]=function(){};return V[D]},T.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=w,T.isBoolean=b,T.isNull=m,T.isNullOrUndefined=S,T.isNumber=x,T.isString=h,T.isSymbol=_,T.isUndefined=O,T.isRegExp=j,T.isObject=y,T.isDate=R,T.isError=P,T.isFunction=C,T.isPrimitive=N,T.isBuffer=n("./support/isBuffer");var X=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];T.log=function(){console.log("%s - %s",K(),T.format.apply(T,arguments))},T.inherits=n("inherits"),T._extend=function(D,L){if(!L||!y(L))return D;for(var M=Object.keys(L),B=M.length;B--;)D[M[B]]=L[M[B]];return D}}).call(this,n("_process"),typeof be!="undefined"?be:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,I,T){"use strict";(function(){T.stripBOM=function(f){return f[0]==="\uFEFF"?f.substring(1):f}}).call(void 0)},{}],209:[function(n,I,T){"use strict";function f(r){return r&&r.__esModule?r:{default:r}}var v=n("babel-runtime/helpers/typeof"),a=f(v),i=n("babel-runtime/core-js/object/keys"),l=f(i);(function(){var r,e,o,s,p,d={}.hasOwnProperty;r=n("xmlbuilder"),e=n("./defaults").defaults,s=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},p=function(c){return"<![CDATA["+o(c)+"]]>"},o=function(c){return c.replace("]]>","]]]]><![CDATA[>")},T.Builder=function(){function c(w){var b,m,S;this.options={},m=e[.2];for(b in m)d.call(m,b)&&(S=m[b],this.options[b]=S);for(b in w)d.call(w,b)&&(S=w[b],this.options[b]=S)}return c.prototype.buildObject=function(w){var b,m,S,x,h;return b=this.options.attrkey,m=this.options.charkey,(0,l.default)(w).length===1&&this.options.rootName===e[.2].rootName?(h=(0,l.default)(w)[0],w=w[h]):h=this.options.rootName,S=function(_){return function(O,j){var y,R,P,C,N,G;if((j===void 0?"undefined":(0,a.default)(j))!=="object")_.options.cdata&&s(j)?O.raw(p(j)):O.txt(j);else if(Array.isArray(j)){for(C in j)if(d.call(j,C)){R=j[C];for(N in R)P=R[N],O=S(O.ele(N),P).up()}}else for(N in j)if(d.call(j,N))if(R=j[N],N===b){if((R===void 0?"undefined":(0,a.default)(R))==="object")for(y in R)G=R[y],O=O.att(y,G)}else if(N===m)O=_.options.cdata&&s(R)?O.raw(p(R)):O.txt(R);else if(Array.isArray(R))for(C in R)d.call(R,C)&&(P=R[C],O=typeof P=="string"?_.options.cdata&&s(P)?O.ele(N).raw(p(P)).up():O.ele(N,P).up():S(O.ele(N),P).up());else(R===void 0?"undefined":(0,a.default)(R))==="object"?O=S(O.ele(N),R).up():typeof R=="string"&&_.options.cdata&&s(R)?O=O.ele(N).raw(p(R)).up():(R==null&&(R=""),O=O.ele(N,R.toString()).up());return O}}(this),x=r.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),S(x,w).end(this.options.renderOpts)},c}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,I,T){"use strict";(function(){T.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,I,T){"use strict";function f(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-own-property-names"),a=f(v),i=n("babel-runtime/core-js/object/keys"),l=f(i),r=n("babel-runtime/helpers/typeof"),e=f(r);(function(){var o,s,p,d,c,w,b,m,S=function(_,O){return function(){return _.apply(O,arguments)}},x=function(_,O){function j(){this.constructor=_}for(var y in O)h.call(O,y)&&(_[y]=O[y]);return j.prototype=O.prototype,_.prototype=new j,_.__super__=O.prototype,_},h={}.hasOwnProperty;b=n("sax"),p=n("events"),o=n("./bom"),w=n("./processors"),m=n("timers").setImmediate,s=n("./defaults").defaults,d=function(_){return(_===void 0?"undefined":(0,e.default)(_))==="object"&&_!=null&&(0,l.default)(_).length===0},c=function(_,O,j){var y,R,P;for(y=0,R=_.length;y<R;y++)P=_[y],O=P(O,j);return O},T.Parser=function(_){function O(j){this.parseString=S(this.parseString,this),this.reset=S(this.reset,this),this.assignOrPush=S(this.assignOrPush,this),this.processAsync=S(this.processAsync,this);var y,R,P;if(!(this instanceof T.Parser))return new T.Parser(j);this.options={},R=s[.2];for(y in R)h.call(R,y)&&(P=R[y],this.options[y]=P);for(y in j)h.call(j,y)&&(P=j[y],this.options[y]=P);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(w.normalize)),this.reset()}return x(O,_),O.prototype.processAsync=function(){var j,y;try{return this.remaining.length<=this.options.chunkSize?(j=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(j),this.saxParser.close()):(j=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(j),m(this.processAsync))}catch(R){if(y=R,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(y)}},O.prototype.assignOrPush=function(j,y,R){return y in j?(j[y]instanceof Array||(j[y]=[j[y]]),j[y].push(R)):this.options.explicitArray?j[y]=[R]:j[y]=R},O.prototype.reset=function(){var j,y,R,P;return this.removeAllListeners(),this.saxParser=b.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(C){return function(N){if(C.saxParser.resume(),!C.saxParser.errThrown)return C.saxParser.errThrown=!0,C.emit("error",N)}}(this),this.saxParser.onend=function(C){return function(){if(!C.saxParser.ended)return C.saxParser.ended=!0,C.emit("end",C.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,P=[],j=this.options.attrkey,y=this.options.charkey,this.saxParser.onopentag=function(C){return function(N){var G,H,K,ie,z;if(K={},K[y]="",!C.options.ignoreAttrs){z=N.attributes;for(G in z)h.call(z,G)&&(j in K||C.options.mergeAttrs||(K[j]={}),H=C.options.attrValueProcessors?c(C.options.attrValueProcessors,N.attributes[G],G):N.attributes[G],ie=C.options.attrNameProcessors?c(C.options.attrNameProcessors,G):G,C.options.mergeAttrs?C.assignOrPush(K,ie,H):K[j][ie]=H)}return K["#name"]=C.options.tagNameProcessors?c(C.options.tagNameProcessors,N.name):N.name,C.options.xmlns&&(K[C.options.xmlnskey]={uri:N.uri,local:N.local}),P.push(K)}}(this),this.saxParser.onclosetag=function(C){return function(){var N,G,H,K,ie,z,re,V,X,D;if(z=P.pop(),ie=z["#name"],C.options.explicitChildren&&C.options.preserveChildrenOrder||delete z["#name"],z.cdata===!0&&(N=z.cdata,delete z.cdata),X=P[P.length-1],z[y].match(/^\s*$/)&&!N?(G=z[y],delete z[y]):(C.options.trim&&(z[y]=z[y].trim()),C.options.normalize&&(z[y]=z[y].replace(/\s{2,}/g," ").trim()),z[y]=C.options.valueProcessors?c(C.options.valueProcessors,z[y],ie):z[y],(0,l.default)(z).length===1&&y in z&&!C.EXPLICIT_CHARKEY&&(z=z[y])),d(z)&&(z=C.options.emptyTag!==""?C.options.emptyTag:G),C.options.validator!=null&&(D="/"+function(){var L,M,B;for(B=[],L=0,M=P.length;L<M;L++)K=P[L],B.push(K["#name"]);return B}().concat(ie).join("/"),function(){var L;try{z=C.options.validator(D,X&&X[ie],z)}catch(M){return L=M,C.emit("error",L)}}()),C.options.explicitChildren&&!C.options.mergeAttrs&&(z===void 0?"undefined":(0,e.default)(z))==="object")if(C.options.preserveChildrenOrder){if(X){X[C.options.childkey]=X[C.options.childkey]||[],re={};for(H in z)h.call(z,H)&&(re[H]=z[H]);X[C.options.childkey].push(re),delete z["#name"],(0,l.default)(z).length===1&&y in z&&!C.EXPLICIT_CHARKEY&&(z=z[y])}}else K={},C.options.attrkey in z&&(K[C.options.attrkey]=z[C.options.attrkey],delete z[C.options.attrkey]),!C.options.charsAsChildren&&C.options.charkey in z&&(K[C.options.charkey]=z[C.options.charkey],delete z[C.options.charkey]),(0,a.default)(z).length>0&&(K[C.options.childkey]=z),z=K;return P.length>0?C.assignOrPush(X,ie,z):(C.options.explicitRoot&&(V=z,z={},z[ie]=V),C.resultObject=z,C.saxParser.ended=!0,C.emit("end",C.resultObject))}}(this),R=function(C){return function(N){var G,H;if(H=P[P.length-1])return H[y]+=N,C.options.explicitChildren&&C.options.preserveChildrenOrder&&C.options.charsAsChildren&&(C.options.includeWhiteChars||N.replace(/\\n/g,"").trim()!=="")&&(H[C.options.childkey]=H[C.options.childkey]||[],G={"#name":"__text__"},G[y]=N,C.options.normalize&&(G[y]=G[y].replace(/\s{2,}/g," ").trim()),H[C.options.childkey].push(G)),H}}(this),this.saxParser.ontext=R,this.saxParser.oncdata=function(C){return function(N){var G;if(G=R(N))return G.cdata=!0}}()},O.prototype.parseString=function(j,y){var R;y!=null&&typeof y=="function"&&(this.on("end",function(P){return this.reset(),y(null,P)}),this.on("error",function(P){return this.reset(),y(P)}));try{return j=j.toString(),j.trim()===""?(this.emit("end",null),!0):(j=o.stripBOM(j),this.options.async?(this.remaining=j,m(this.processAsync),this.saxParser):this.saxParser.write(j).close())}catch(P){if(R=P,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",R),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw R}},O}(p.EventEmitter),T.parseString=function(_,O,j){var y,R,P;return j!=null?(typeof j=="function"&&(y=j),(O===void 0?"undefined":(0,e.default)(O))==="object"&&(R=O)):(typeof O=="function"&&(y=O),R={}),P=new T.Parser(R),P.parseString(_,y)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(n,I,T){"use strict";(function(){var f;f=new RegExp(/(?!xmlns)^.*:/),T.normalize=function(v){return v.toLowerCase()},T.firstCharLowerCase=function(v){return v.charAt(0).toLowerCase()+v.slice(1)},T.stripPrefix=function(v){return v.replace(f,"")},T.parseNumbers=function(v){return isNaN(v)||(v=v%1==0?parseInt(v,10):parseFloat(v)),v},T.parseBooleans=function(v){return/^(?:true|false)$/i.test(v)&&(v=v.toLowerCase()==="true"),v}}).call(void 0)},{}],213:[function(n,I,T){"use strict";(function(){var f,v,a,i,l=function(e,o){function s(){this.constructor=e}for(var p in o)r.call(o,p)&&(e[p]=o[p]);return s.prototype=o.prototype,e.prototype=new s,e.__super__=o.prototype,e},r={}.hasOwnProperty;v=n("./defaults"),f=n("./builder"),a=n("./parser"),i=n("./processors"),T.defaults=v.defaults,T.processors=i,T.ValidationError=function(e){function o(s){this.message=s}return l(o,e),o}(Error),T.Builder=f.Builder,T.Parser=a.Parser,T.parseString=a.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,I,T){"use strict";function f(o){return o&&o.__esModule?o:{default:o}}var v=n("babel-runtime/core-js/object/get-prototype-of"),a=f(v),i=n("babel-runtime/helpers/typeof"),l=f(i),r=n("babel-runtime/core-js/object/assign"),e=f(r);(function(){var o,s,p,d,c,w,b=[].slice,m={}.hasOwnProperty;o=function(){var S,x,h,_,O,j;if(j=arguments[0],O=2<=arguments.length?b.call(arguments,1):[],d(e.default))e.default.apply(null,arguments);else for(S=0,h=O.length;S<h;S++)if((_=O[S])!=null)for(x in _)m.call(_,x)&&(j[x]=_[x]);return j},d=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},c=function(S){var x;return!!S&&((x=S===void 0?"undefined":(0,l.default)(S))==="function"||x==="object")},s=function(S){return d(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},p=function(S){var x;if(s(S))return!S.length;for(x in S)if(m.call(S,x))return!1;return!0},w=function(S){var x,h;return c(S)&&(h=(0,a.default)(S))&&(x=h.constructor)&&typeof x=="function"&&x instanceof x&&Function.prototype.toString.call(x)===Function.prototype.toString.call(Object)},I.exports.assign=o,I.exports.isFunction=d,I.exports.isObject=c,I.exports.isArray=s,I.exports.isEmpty=p,I.exports.isPlainObject=w}).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,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){I.exports=function(){function a(i,l,r){if(this.options=i.options,this.stringify=i.stringify,l==null)throw new Error("Missing attribute name of element "+i.name);if(r==null)throw new Error("Missing attribute value for attribute "+l+" of element "+i.name);this.name=this.stringify.attName(l),this.value=this.stringify.attValue(r)}return a.prototype.clone=function(){return(0,v.default)(this)},a.prototype.toString=function(i){return this.options.writer.set(i).attribute(this)},a}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)l.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},l={}.hasOwnProperty;a=n("./XMLNode"),I.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).cdata(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)l.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},l={}.hasOwnProperty;a=n("./XMLNode"),I.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing comment text");this.text=this.stringify.comment(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).comment(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,I,T){"use strict";(function(){var f,v=function(i,l){function r(){this.constructor=i}for(var e in l)a.call(l,e)&&(i[e]=l[e]);return r.prototype=l.prototype,i.prototype=new r,i.__super__=l.prototype,i},a={}.hasOwnProperty;f=n("./XMLNode"),I.exports=function(i){function l(r,e,o,s,p,d){if(l.__super__.constructor.call(this,r),e==null)throw new Error("Missing DTD element name");if(o==null)throw new Error("Missing DTD attribute name");if(!s)throw new Error("Missing DTD attribute type");if(!p)throw new Error("Missing DTD attribute default");if(p.indexOf("#")!==0&&(p="#"+p),!p.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(d&&!p.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(o),this.attributeType=this.stringify.dtdAttType(s),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=p}return v(l,i),l.prototype.toString=function(r){return this.options.writer.set(r).dtdAttList(this)},l}(f)}).call(void 0)},{"./XMLNode":227}],219:[function(n,I,T){"use strict";(function(){var f,v=function(i,l){function r(){this.constructor=i}for(var e in l)a.call(l,e)&&(i[e]=l[e]);return r.prototype=l.prototype,i.prototype=new r,i.__super__=l.prototype,i},a={}.hasOwnProperty;f=n("./XMLNode"),I.exports=function(i){function l(r,e,o){if(l.__super__.constructor.call(this,r),e==null)throw new Error("Missing DTD element name");o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.eleName(e),this.value=this.stringify.dtdElementValue(o)}return v(l,i),l.prototype.toString=function(r){return this.options.writer.set(r).dtdElement(this)},l}(f)}).call(void 0)},{"./XMLNode":227}],220:[function(n,I,T){"use strict";(function(){var f,v,a=function(l,r){function e(){this.constructor=l}for(var o in r)i.call(r,o)&&(l[o]=r[o]);return e.prototype=r.prototype,l.prototype=new e,l.__super__=r.prototype,l},i={}.hasOwnProperty;v=n("./Utility").isObject,f=n("./XMLNode"),I.exports=function(l){function r(e,o,s,p){if(r.__super__.constructor.call(this,e),s==null)throw new Error("Missing entity name");if(p==null)throw new Error("Missing entity value");if(this.pe=!!o,this.name=this.stringify.eleName(s),v(p)){if(!p.pubID&&!p.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(p.pubID&&!p.sysID)throw new Error("System identifier is required for a public external entity");if(p.pubID!=null&&(this.pubID=this.stringify.dtdPubID(p.pubID)),p.sysID!=null&&(this.sysID=this.stringify.dtdSysID(p.sysID)),p.nData!=null&&(this.nData=this.stringify.dtdNData(p.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(p)}return a(r,l),r.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},r}(f)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,I,T){"use strict";(function(){var f,v=function(i,l){function r(){this.constructor=i}for(var e in l)a.call(l,e)&&(i[e]=l[e]);return r.prototype=l.prototype,i.prototype=new r,i.__super__=l.prototype,i},a={}.hasOwnProperty;f=n("./XMLNode"),I.exports=function(i){function l(r,e,o){if(l.__super__.constructor.call(this,r),e==null)throw new Error("Missing notation name");if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return v(l,i),l.prototype.toString=function(r){return this.options.writer.set(r).dtdNotation(this)},l}(f)}).call(void 0)},{"./XMLNode":227}],222:[function(n,I,T){"use strict";(function(){var f,v,a=function(l,r){function e(){this.constructor=l}for(var o in r)i.call(r,o)&&(l[o]=r[o]);return e.prototype=r.prototype,l.prototype=new e,l.__super__=r.prototype,l},i={}.hasOwnProperty;v=n("./Utility").isObject,f=n("./XMLNode"),I.exports=function(l){function r(e,o,s,p){var d;r.__super__.constructor.call(this,e),v(o)&&(d=o,o=d.version,s=d.encoding,p=d.standalone),o||(o="1.0"),this.version=this.stringify.xmlVersion(o),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),p!=null&&(this.standalone=this.stringify.xmlStandalone(p))}return a(r,l),r.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},r}(f)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,I,T){"use strict";(function(){var f,v,a,i,l,r,e=function(s,p){function d(){this.constructor=s}for(var c in p)o.call(p,c)&&(s[c]=p[c]);return d.prototype=p.prototype,s.prototype=new d,s.__super__=p.prototype,s},o={}.hasOwnProperty;r=n("./Utility").isObject,l=n("./XMLNode"),f=n("./XMLDTDAttList"),a=n("./XMLDTDEntity"),v=n("./XMLDTDElement"),i=n("./XMLDTDNotation"),I.exports=function(s){function p(d,c,w){var b,m;p.__super__.constructor.call(this,d),this.documentObject=d,r(c)&&(b=c,c=b.pubID,w=b.sysID),w==null&&(m=[c,w],w=m[0],c=m[1]),c!=null&&(this.pubID=this.stringify.dtdPubID(c)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return e(p,s),p.prototype.element=function(d,c){var w;return w=new v(this,d,c),this.children.push(w),this},p.prototype.attList=function(d,c,w,b,m){var S;return S=new f(this,d,c,w,b,m),this.children.push(S),this},p.prototype.entity=function(d,c){var w;return w=new a(this,!1,d,c),this.children.push(w),this},p.prototype.pEntity=function(d,c){var w;return w=new a(this,!0,d,c),this.children.push(w),this},p.prototype.notation=function(d,c){var w;return w=new i(this,d,c),this.children.push(w),this},p.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},p.prototype.ele=function(d,c){return this.element(d,c)},p.prototype.att=function(d,c,w,b,m){return this.attList(d,c,w,b,m)},p.prototype.ent=function(d,c){return this.entity(d,c)},p.prototype.pent=function(d,c){return this.pEntity(d,c)},p.prototype.not=function(d,c){return this.notation(d,c)},p.prototype.up=function(){return this.root()||this.documentObject},p}(l)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,I,T){"use strict";(function(){var f,v,a,i,l=function(e,o){function s(){this.constructor=e}for(var p in o)r.call(o,p)&&(e[p]=o[p]);return s.prototype=o.prototype,e.prototype=new s,e.__super__=o.prototype,e},r={}.hasOwnProperty;i=n("./Utility").isPlainObject,f=n("./XMLNode"),a=n("./XMLStringifier"),v=n("./XMLStringWriter"),I.exports=function(e){function o(s){o.__super__.constructor.call(this,null),s||(s={}),s.writer||(s.writer=new v),this.options=s,this.stringify=new a(s),this.isDocument=!0}return l(o,e),o.prototype.end=function(s){var p;return s?i(s)&&(p=s,s=this.options.writer.set(p)):s=this.options.writer,s.document(this)},o.prototype.toString=function(s){return this.options.writer.set(s).document(this)},o}(f)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,I,T){"use strict";(function(){var f,v,a,i,l,r,e,o,s,p,d,c,w,b,m,S,x,h,_,O={}.hasOwnProperty;_=n("./Utility"),x=_.isObject,S=_.isFunction,h=_.isPlainObject,p=n("./XMLElement"),v=n("./XMLCData"),a=n("./XMLComment"),c=n("./XMLRaw"),m=n("./XMLText"),d=n("./XMLProcessingInstruction"),o=n("./XMLDeclaration"),s=n("./XMLDocType"),i=n("./XMLDTDAttList"),r=n("./XMLDTDEntity"),l=n("./XMLDTDElement"),e=n("./XMLDTDNotation"),f=n("./XMLAttribute"),b=n("./XMLStringifier"),w=n("./XMLStringWriter"),I.exports=function(){function j(y,R,P){var C;y||(y={}),y.writer?h(y.writer)&&(C=y.writer,y.writer=new w(C)):y.writer=new w(y),this.options=y,this.writer=y.writer,this.stringify=new b(y),this.onDataCallback=R||function(){},this.onEndCallback=P||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return j.prototype.node=function(y,R,P){var C;if(y==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),y=y.valueOf(),R==null&&(R={}),R=R.valueOf(),x(R)||(C=[R,P],P=C[0],R=C[1]),this.currentNode=new p(this,y,R),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,P!=null&&this.text(P),this},j.prototype.element=function(y,R,P){return this.currentNode&&this.currentNode instanceof s?this.dtdElement.apply(this,arguments):this.node(y,R,P)},j.prototype.attribute=function(y,R){var P,C;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(y!=null&&(y=y.valueOf()),x(y))for(P in y)O.call(y,P)&&(C=y[P],this.attribute(P,C));else S(R)&&(R=R.apply()),this.options.skipNullAttributes&&R==null||(this.currentNode.attributes[y]=new f(this,y,R));return this},j.prototype.text=function(y){var R;return this.openCurrent(),R=new m(this,y),this.onData(this.writer.text(R,this.currentLevel+1)),this},j.prototype.cdata=function(y){var R;return this.openCurrent(),R=new v(this,y),this.onData(this.writer.cdata(R,this.currentLevel+1)),this},j.prototype.comment=function(y){var R;return this.openCurrent(),R=new a(this,y),this.onData(this.writer.comment(R,this.currentLevel+1)),this},j.prototype.raw=function(y){var R;return this.openCurrent(),R=new c(this,y),this.onData(this.writer.raw(R,this.currentLevel+1)),this},j.prototype.instruction=function(y,R){var P,C,N,G,H;if(this.openCurrent(),y!=null&&(y=y.valueOf()),R!=null&&(R=R.valueOf()),Array.isArray(y))for(P=0,G=y.length;P<G;P++)C=y[P],this.instruction(C);else if(x(y))for(C in y)O.call(y,C)&&(N=y[C],this.instruction(C,N));else S(R)&&(R=R.apply()),H=new d(this,y,R),this.onData(this.writer.processingInstruction(H,this.currentLevel+1));return this},j.prototype.declaration=function(y,R,P){var C;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return C=new o(this,y,R,P),this.onData(this.writer.declaration(C,this.currentLevel+1)),this},j.prototype.doctype=function(y,R,P){if(this.openCurrent(),y==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new s(this,R,P),this.currentNode.rootNodeName=y,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},j.prototype.dtdElement=function(y,R){var P;return this.openCurrent(),P=new l(this,y,R),this.onData(this.writer.dtdElement(P,this.currentLevel+1)),this},j.prototype.attList=function(y,R,P,C,N){var G;return this.openCurrent(),G=new i(this,y,R,P,C,N),this.onData(this.writer.dtdAttList(G,this.currentLevel+1)),this},j.prototype.entity=function(y,R){var P;return this.openCurrent(),P=new r(this,!1,y,R),this.onData(this.writer.dtdEntity(P,this.currentLevel+1)),this},j.prototype.pEntity=function(y,R){var P;return this.openCurrent(),P=new r(this,!0,y,R),this.onData(this.writer.dtdEntity(P,this.currentLevel+1)),this},j.prototype.notation=function(y,R){var P;return this.openCurrent(),P=new e(this,y,R),this.onData(this.writer.dtdNotation(P,this.currentLevel+1)),this},j.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},j.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},j.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},j.prototype.openNode=function(y){if(!y.isOpen)return!this.root&&this.currentLevel===0&&y instanceof p&&(this.root=y),this.onData(this.writer.openNode(y,this.currentLevel)),y.isOpen=!0},j.prototype.closeNode=function(y){if(!y.isClosed)return this.onData(this.writer.closeNode(y,this.currentLevel)),y.isClosed=!0},j.prototype.onData=function(y){return this.documentStarted=!0,this.onDataCallback(y)},j.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},j.prototype.ele=function(){return this.element.apply(this,arguments)},j.prototype.nod=function(y,R,P){return this.node(y,R,P)},j.prototype.txt=function(y){return this.text(y)},j.prototype.dat=function(y){return this.cdata(y)},j.prototype.com=function(y){return this.comment(y)},j.prototype.ins=function(y,R){return this.instruction(y,R)},j.prototype.dec=function(y,R,P){return this.declaration(y,R,P)},j.prototype.dtd=function(y,R,P){return this.doctype(y,R,P)},j.prototype.e=function(y,R,P){return this.element(y,R,P)},j.prototype.n=function(y,R,P){return this.node(y,R,P)},j.prototype.t=function(y){return this.text(y)},j.prototype.d=function(y){return this.cdata(y)},j.prototype.c=function(y){return this.comment(y)},j.prototype.r=function(y){return this.raw(y)},j.prototype.i=function(y,R){return this.instruction(y,R)},j.prototype.att=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},j.prototype.a=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},j.prototype.ent=function(y,R){return this.entity(y,R)},j.prototype.pent=function(y,R){return this.pEntity(y,R)},j.prototype.not=function(y,R){return this.notation(y,R)},j}()}).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,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i,l,r,e,o=function(p,d){function c(){this.constructor=p}for(var w in d)s.call(d,w)&&(p[w]=d[w]);return c.prototype=d.prototype,p.prototype=new c,p.__super__=d.prototype,p},s={}.hasOwnProperty;e=n("./Utility"),r=e.isObject,l=e.isFunction,i=n("./XMLNode"),a=n("./XMLAttribute"),I.exports=function(p){function d(c,w,b){if(d.__super__.constructor.call(this,c),w==null)throw new Error("Missing element name");this.name=this.stringify.eleName(w),this.attributes={},b!=null&&this.attribute(b),c.isDocument&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this)}return o(d,p),d.prototype.clone=function(){var c,w,b,m;b=(0,v.default)(this),b.isRoot&&(b.documentObject=null),b.attributes={},m=this.attributes;for(w in m)s.call(m,w)&&(c=m[w],b.attributes[w]=c.clone());return b.children=[],this.children.forEach(function(S){var x;return x=S.clone(),x.parent=b,b.children.push(x)}),b},d.prototype.attribute=function(c,w){var b,m;if(c!=null&&(c=c.valueOf()),r(c))for(b in c)s.call(c,b)&&(m=c[b],this.attribute(b,m));else l(w)&&(w=w.apply()),this.options.skipNullAttributes&&w==null||(this.attributes[c]=new a(this,c,w));return this},d.prototype.removeAttribute=function(c){var w,b,m;if(c==null)throw new Error("Missing attribute name");if(c=c.valueOf(),Array.isArray(c))for(b=0,m=c.length;b<m;b++)w=c[b],delete this.attributes[w];else delete this.attributes[c];return this},d.prototype.toString=function(c){return this.options.writer.set(c).element(this)},d.prototype.att=function(c,w){return this.attribute(c,w)},d.prototype.a=function(c,w){return this.attribute(c,w)},d}(i)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,I,T){"use strict";(function(){var f,v,a,i,l,r,e,o,s,p,d,c,w={}.hasOwnProperty;c=n("./Utility"),d=c.isObject,p=c.isFunction,s=c.isEmpty,l=null,f=null,v=null,a=null,i=null,e=null,o=null,r=null,I.exports=function(){function b(m){this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],l||(l=n("./XMLElement"),f=n("./XMLCData"),v=n("./XMLComment"),a=n("./XMLDeclaration"),i=n("./XMLDocType"),e=n("./XMLRaw"),o=n("./XMLText"),r=n("./XMLProcessingInstruction"))}return b.prototype.element=function(m,S,x){var h,_,O,j,y,R,P,C,N,G;if(R=null,S==null&&(S={}),S=S.valueOf(),d(S)||(N=[S,x],x=N[0],S=N[1]),m!=null&&(m=m.valueOf()),Array.isArray(m))for(O=0,P=m.length;O<P;O++)_=m[O],R=this.element(_);else if(p(m))R=this.element(m.apply());else if(d(m)){for(y in m)if(w.call(m,y))if(G=m[y],p(G)&&(G=G.apply()),d(G)&&s(G)&&(G=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&y.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(y.substr(this.stringify.convertAttKey.length),G);else if(!this.options.separateArrayItems&&Array.isArray(G))for(j=0,C=G.length;j<C;j++)_=G[j],h={},h[y]=_,R=this.element(h);else d(G)?(R=this.element(y),R.element(G)):R=this.element(y,G)}else R=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&m.indexOf(this.stringify.convertTextKey)===0?this.text(x):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&m.indexOf(this.stringify.convertCDataKey)===0?this.cdata(x):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&m.indexOf(this.stringify.convertCommentKey)===0?this.comment(x):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&m.indexOf(this.stringify.convertRawKey)===0?this.raw(x):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&m.indexOf(this.stringify.convertPIKey)===0?this.instruction(m.substr(this.stringify.convertPIKey.length),x):this.node(m,S,x);if(R==null)throw new Error("Could not create any elements with: "+m);return R},b.prototype.insertBefore=function(m,S,x){var h,_,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),O=this.parent.children.splice(_),h=this.parent.element(m,S,x),Array.prototype.push.apply(this.parent.children,O),h},b.prototype.insertAfter=function(m,S,x){var h,_,O;if(this.isRoot)throw new Error("Cannot insert elements at root level");return _=this.parent.children.indexOf(this),O=this.parent.children.splice(_+1),h=this.parent.element(m,S,x),Array.prototype.push.apply(this.parent.children,O),h},b.prototype.remove=function(){var m;if(this.isRoot)throw new Error("Cannot remove the root element");return m=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[m,m-m+1].concat([])),this.parent},b.prototype.node=function(m,S,x){var h,_;return m!=null&&(m=m.valueOf()),S||(S={}),S=S.valueOf(),d(S)||(_=[S,x],x=_[0],S=_[1]),h=new l(this,m,S),x!=null&&h.text(x),this.children.push(h),h},b.prototype.text=function(m){var S;return S=new o(this,m),this.children.push(S),this},b.prototype.cdata=function(m){var S;return S=new f(this,m),this.children.push(S),this},b.prototype.comment=function(m){var S;return S=new v(this,m),this.children.push(S),this},b.prototype.commentBefore=function(m){var S,x;return S=this.parent.children.indexOf(this),x=this.parent.children.splice(S),this.parent.comment(m),Array.prototype.push.apply(this.parent.children,x),this},b.prototype.commentAfter=function(m){var S,x;return S=this.parent.children.indexOf(this),x=this.parent.children.splice(S+1),this.parent.comment(m),Array.prototype.push.apply(this.parent.children,x),this},b.prototype.raw=function(m){var S;return S=new e(this,m),this.children.push(S),this},b.prototype.instruction=function(m,S){var x,h,_,O,j;if(m!=null&&(m=m.valueOf()),S!=null&&(S=S.valueOf()),Array.isArray(m))for(O=0,j=m.length;O<j;O++)x=m[O],this.instruction(x);else if(d(m))for(x in m)w.call(m,x)&&(h=m[x],this.instruction(x,h));else p(S)&&(S=S.apply()),_=new r(this,m,S),this.children.push(_);return this},b.prototype.instructionBefore=function(m,S){var x,h;return x=this.parent.children.indexOf(this),h=this.parent.children.splice(x),this.parent.instruction(m,S),Array.prototype.push.apply(this.parent.children,h),this},b.prototype.instructionAfter=function(m,S){var x,h;return x=this.parent.children.indexOf(this),h=this.parent.children.splice(x+1),this.parent.instruction(m,S),Array.prototype.push.apply(this.parent.children,h),this},b.prototype.declaration=function(m,S,x){var h,_;return h=this.document(),_=new a(h,m,S,x),h.children[0]instanceof a?h.children[0]=_:h.children.unshift(_),h.root()||h},b.prototype.doctype=function(m,S){var x,h,_,O,j,y,R,P,C,N;for(h=this.document(),_=new i(h,m,S),C=h.children,O=j=0,R=C.length;j<R;O=++j)if((x=C[O])instanceof i)return h.children[O]=_,_;for(N=h.children,O=y=0,P=N.length;y<P;O=++y)if(x=N[O],x.isRoot)return h.children.splice(O,0,_),_;return h.children.push(_),_},b.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},b.prototype.root=function(){var m;for(m=this;m;){if(m.isDocument)return m.rootObject;if(m.isRoot)return m;m=m.parent}},b.prototype.document=function(){var m;for(m=this;m;){if(m.isDocument)return m;m=m.parent}},b.prototype.end=function(m){return this.document().end(m)},b.prototype.prev=function(){var m;if((m=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[m-1]},b.prototype.next=function(){var m;if((m=this.parent.children.indexOf(this))===-1||m===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[m+1]},b.prototype.importDocument=function(m){var S;return S=m.root().clone(),S.parent=this,S.isRoot=!1,this.children.push(S),this},b.prototype.ele=function(m,S,x){return this.element(m,S,x)},b.prototype.nod=function(m,S,x){return this.node(m,S,x)},b.prototype.txt=function(m){return this.text(m)},b.prototype.dat=function(m){return this.cdata(m)},b.prototype.com=function(m){return this.comment(m)},b.prototype.ins=function(m,S){return this.instruction(m,S)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(m,S,x){return this.declaration(m,S,x)},b.prototype.dtd=function(m,S){return this.doctype(m,S)},b.prototype.e=function(m,S,x){return this.element(m,S,x)},b.prototype.n=function(m,S,x){return this.node(m,S,x)},b.prototype.t=function(m){return this.text(m)},b.prototype.d=function(m){return this.cdata(m)},b.prototype.c=function(m){return this.comment(m)},b.prototype.r=function(m){return this.raw(m)},b.prototype.i=function(m,S){return this.instruction(m,S)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(m){return this.importDocument(m)},b}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)l.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},l={}.hasOwnProperty;a=n("./XMLNode"),I.exports=function(r){function e(o,s,p){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(s),p&&(this.value=this.stringify.insValue(p))}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).processingInstruction(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)l.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},l={}.hasOwnProperty;a=n("./XMLNode"),I.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing raw text");this.value=this.stringify.raw(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).raw(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,I,T){"use strict";(function(){var f,v,a,i,l,r,e,o,s,p,d,c,w,b=function(S,x){function h(){this.constructor=S}for(var _ in x)m.call(x,_)&&(S[_]=x[_]);return h.prototype=x.prototype,S.prototype=new h,S.__super__=x.prototype,S},m={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),f=n("./XMLCData"),v=n("./XMLComment"),s=n("./XMLElement"),d=n("./XMLRaw"),c=n("./XMLText"),p=n("./XMLProcessingInstruction"),a=n("./XMLDTDAttList"),i=n("./XMLDTDElement"),l=n("./XMLDTDEntity"),r=n("./XMLDTDNotation"),w=n("./XMLWriterBase"),I.exports=function(S){function x(h,_){x.__super__.constructor.call(this,_),this.stream=h}return b(x,S),x.prototype.document=function(h){var _,O,j,y,R,P,C,N;for(P=h.children,O=0,y=P.length;O<y;O++)_=P[O],_.isLastRootNode=!1;for(h.children[h.children.length-1].isLastRootNode=!0,C=h.children,N=[],j=0,R=C.length;j<R;j++)switch(_=C[j],!1){case!(_ instanceof e):N.push(this.declaration(_));break;case!(_ instanceof o):N.push(this.docType(_));break;case!(_ instanceof v):N.push(this.comment(_));break;case!(_ instanceof p):N.push(this.processingInstruction(_));break;default:N.push(this.element(_))}return N},x.prototype.attribute=function(h){return this.stream.write(" "+h.name+'="'+h.value+'"')},x.prototype.cdata=function(h,_){return this.stream.write(this.space(_)+"<![CDATA["+h.text+"]]>"+this.endline(h))},x.prototype.comment=function(h,_){return this.stream.write(this.space(_)+"<!-- "+h.text+" -->"+this.endline(h))},x.prototype.declaration=function(h,_){return this.stream.write(this.space(_)),this.stream.write('<?xml version="'+h.version+'"'),h.encoding!=null&&this.stream.write(' encoding="'+h.encoding+'"'),h.standalone!=null&&this.stream.write(' standalone="'+h.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(h))},x.prototype.docType=function(h,_){var O,j,y,R;if(_||(_=0),this.stream.write(this.space(_)),this.stream.write("<!DOCTYPE "+h.root().name),h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(h)),R=h.children,j=0,y=R.length;j<y;j++)switch(O=R[j],!1){case!(O instanceof a):this.dtdAttList(O,_+1);break;case!(O instanceof i):this.dtdElement(O,_+1);break;case!(O instanceof l):this.dtdEntity(O,_+1);break;case!(O instanceof r):this.dtdNotation(O,_+1);break;case!(O instanceof f):this.cdata(O,_+1);break;case!(O instanceof v):this.comment(O,_+1);break;case!(O instanceof p):this.processingInstruction(O,_+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(h))},x.prototype.element=function(h,_){var O,j,y,R,P,C,N,G;_||(_=0),G=this.space(_),this.stream.write(G+"<"+h.name),C=h.attributes;for(P in C)m.call(C,P)&&(O=C[P],this.attribute(O));if(h.children.length===0||h.children.every(function(H){return H.value===""}))this.allowEmpty?this.stream.write("></"+h.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)this.stream.write(">"),this.stream.write(h.children[0].value),this.stream.write("</"+h.name+">");else{for(this.stream.write(">"+this.newline),N=h.children,y=0,R=N.length;y<R;y++)switch(j=N[y],!1){case!(j instanceof f):this.cdata(j,_+1);break;case!(j instanceof v):this.comment(j,_+1);break;case!(j instanceof s):this.element(j,_+1);break;case!(j instanceof d):this.raw(j,_+1);break;case!(j instanceof c):this.text(j,_+1);break;case!(j instanceof p):this.processingInstruction(j,_+1);break;default:throw new Error("Unknown XML node type: "+j.constructor.name)}this.stream.write(G+"</"+h.name+">")}return this.stream.write(this.endline(h))},x.prototype.processingInstruction=function(h,_){return this.stream.write(this.space(_)+"<?"+h.target),h.value&&this.stream.write(" "+h.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(h))},x.prototype.raw=function(h,_){return this.stream.write(this.space(_)+h.value+this.endline(h))},x.prototype.text=function(h,_){return this.stream.write(this.space(_)+h.value+this.endline(h))},x.prototype.dtdAttList=function(h,_){return this.stream.write(this.space(_)+"<!ATTLIST "+h.elementName+" "+h.attributeName+" "+h.attributeType),h.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+h.defaultValueType),h.defaultValue&&this.stream.write(' "'+h.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},x.prototype.dtdElement=function(h,_){return this.stream.write(this.space(_)+"<!ELEMENT "+h.name+" "+h.value),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},x.prototype.dtdEntity=function(h,_){return this.stream.write(this.space(_)+"<!ENTITY"),h.pe&&this.stream.write(" %"),this.stream.write(" "+h.name),h.value?this.stream.write(' "'+h.value+'"'):(h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),h.nData&&this.stream.write(" NDATA "+h.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},x.prototype.dtdNotation=function(h,_){return this.stream.write(this.space(_)+"<!NOTATION "+h.name),h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.pubID?this.stream.write(' PUBLIC "'+h.pubID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},x.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},x}(w)}).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,I,T){"use strict";(function(){var f,v,a,i,l,r,e,o,s,p,d,c,w,b=function(S,x){function h(){this.constructor=S}for(var _ in x)m.call(x,_)&&(S[_]=x[_]);return h.prototype=x.prototype,S.prototype=new h,S.__super__=x.prototype,S},m={}.hasOwnProperty;e=n("./XMLDeclaration"),o=n("./XMLDocType"),f=n("./XMLCData"),v=n("./XMLComment"),s=n("./XMLElement"),d=n("./XMLRaw"),c=n("./XMLText"),p=n("./XMLProcessingInstruction"),a=n("./XMLDTDAttList"),i=n("./XMLDTDElement"),l=n("./XMLDTDEntity"),r=n("./XMLDTDNotation"),w=n("./XMLWriterBase"),I.exports=function(S){function x(h){x.__super__.constructor.call(this,h)}return b(x,S),x.prototype.document=function(h){var _,O,j,y,R;for(this.textispresent=!1,y="",R=h.children,O=0,j=R.length;O<j;O++)_=R[O],y+=function(){switch(!1){case!(_ instanceof e):return this.declaration(_);case!(_ instanceof o):return this.docType(_);case!(_ instanceof v):return this.comment(_);case!(_ instanceof p):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&y.slice(-this.newline.length)===this.newline&&(y=y.slice(0,-this.newline.length)),y},x.prototype.attribute=function(h){return" "+h.name+'="'+h.value+'"'},x.prototype.cdata=function(h,_){return this.space(_)+"<![CDATA["+h.text+"]]>"+this.newline},x.prototype.comment=function(h,_){return this.space(_)+"<!-- "+h.text+" -->"+this.newline},x.prototype.declaration=function(h,_){var O;return O=this.space(_),O+='<?xml version="'+h.version+'"',h.encoding!=null&&(O+=' encoding="'+h.encoding+'"'),h.standalone!=null&&(O+=' standalone="'+h.standalone+'"'),O+=this.spacebeforeslash+"?>",O+=this.newline},x.prototype.docType=function(h,_){var O,j,y,R,P;if(_||(_=0),R=this.space(_),R+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?R+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(R+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(R+=" [",R+=this.newline,P=h.children,j=0,y=P.length;j<y;j++)O=P[j],R+=function(){switch(!1){case!(O instanceof a):return this.dtdAttList(O,_+1);case!(O instanceof i):return this.dtdElement(O,_+1);case!(O instanceof l):return this.dtdEntity(O,_+1);case!(O instanceof r):return this.dtdNotation(O,_+1);case!(O instanceof f):return this.cdata(O,_+1);case!(O instanceof v):return this.comment(O,_+1);case!(O instanceof p):return this.processingInstruction(O,_+1);default:throw new Error("Unknown DTD node type: "+O.constructor.name)}}.call(this);R+="]"}return R+=this.spacebeforeslash+">",R+=this.newline},x.prototype.element=function(h,_){var O,j,y,R,P,C,N,G,H,K,ie,z,re;_||(_=0),re=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),z=this.space(_),G="",G+=z+"<"+h.name,H=h.attributes;for(N in H)m.call(H,N)&&(O=H[N],G+=this.attribute(O));if(h.children.length===0||h.children.every(function(V){return V.value===""}))this.allowEmpty?G+="></"+h.name+">"+this.newline:G+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)G+=">",G+=h.children[0].value,G+="</"+h.name+">"+this.newline;else{if(this.dontprettytextnodes){for(K=h.children,y=0,P=K.length;y<P;y++)if(j=K[y],j.value!=null){this.textispresent++,re=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,z=this.space(_)),G+=">"+this.newline,ie=h.children,R=0,C=ie.length;R<C;R++)j=ie[R],G+=function(){switch(!1){case!(j instanceof f):return this.cdata(j,_+1);case!(j instanceof v):return this.comment(j,_+1);case!(j instanceof s):return this.element(j,_+1);case!(j instanceof d):return this.raw(j,_+1);case!(j instanceof c):return this.text(j,_+1);case!(j instanceof p):return this.processingInstruction(j,_+1);default:throw new Error("Unknown XML node type: "+j.constructor.name)}}.call(this);re&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),G+=z+"</"+h.name+">"+this.newline}return G},x.prototype.processingInstruction=function(h,_){var O;return O=this.space(_)+"<?"+h.target,h.value&&(O+=" "+h.value),O+=this.spacebeforeslash+"?>"+this.newline},x.prototype.raw=function(h,_){return this.space(_)+h.value+this.newline},x.prototype.text=function(h,_){return this.space(_)+h.value+this.newline},x.prototype.dtdAttList=function(h,_){var O;return O=this.space(_)+"<!ATTLIST "+h.elementName+" "+h.attributeName+" "+h.attributeType,h.defaultValueType!=="#DEFAULT"&&(O+=" "+h.defaultValueType),h.defaultValue&&(O+=' "'+h.defaultValue+'"'),O+=this.spacebeforeslash+">"+this.newline},x.prototype.dtdElement=function(h,_){return this.space(_)+"<!ELEMENT "+h.name+" "+h.value+this.spacebeforeslash+">"+this.newline},x.prototype.dtdEntity=function(h,_){var O;return O=this.space(_)+"<!ENTITY",h.pe&&(O+=" %"),O+=" "+h.name,h.value?O+=' "'+h.value+'"':(h.pubID&&h.sysID?O+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(O+=' SYSTEM "'+h.sysID+'"'),h.nData&&(O+=" NDATA "+h.nData)),O+=this.spacebeforeslash+">"+this.newline},x.prototype.dtdNotation=function(h,_){var O;return O=this.space(_)+"<!NOTATION "+h.name,h.pubID&&h.sysID?O+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.pubID?O+=' PUBLIC "'+h.pubID+'"':h.sysID&&(O+=' SYSTEM "'+h.sysID+'"'),O+=this.spacebeforeslash+">"+this.newline},x.prototype.openNode=function(h,_){var O,j,y,R;if(_||(_=0),h instanceof s){y=this.space(_)+"<"+h.name,R=h.attributes;for(j in R)m.call(R,j)&&(O=R[j],y+=this.attribute(O));return y+=(h.children?">":"/>")+this.newline}return y=this.space(_)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?y+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(y+=' SYSTEM "'+h.sysID+'"'),y+=(h.children?" [":">")+this.newline},x.prototype.closeNode=function(h,_){switch(_||(_=0),!1){case!(h instanceof s):return this.space(_)+"</"+h.name+">"+this.newline;case!(h instanceof o):return this.space(_)+"]>"+this.newline}},x}(w)}).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,I,T){"use strict";(function(){var f=function(a,i){return function(){return a.apply(i,arguments)}},v={}.hasOwnProperty;I.exports=function(){function a(i){this.assertLegalChar=f(this.assertLegalChar,this);var l,r,e;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,r=i.stringify||{};for(l in r)v.call(r,l)&&(e=r[l],this[l]=e)}return a.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},a.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},a.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},a.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},a.prototype.raw=function(i){return""+i||""},a.prototype.attName=function(i){return i=""+i||""},a.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},a.prototype.insTarget=function(i){return""+i||""},a.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return i},a.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},a.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return i},a.prototype.xmlStandalone=function(i){return i?"yes":"no"},a.prototype.dtdPubID=function(i){return""+i||""},a.prototype.dtdSysID=function(i){return""+i||""},a.prototype.dtdElementValue=function(i){return""+i||""},a.prototype.dtdAttType=function(i){return""+i||""},a.prototype.dtdAttDefault=function(i){return i!=null?""+i||"":i},a.prototype.dtdEntityValue=function(i){return""+i||""},a.prototype.dtdNData=function(i){return""+i||""},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(i){var l;if(l=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+i+" at index "+l.index);return i},a.prototype.elEscape=function(i){var l;return l=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(l,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},a.prototype.attEscape=function(i){var l;return l=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(l,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},a}()}).call(void 0)},{}],233:[function(n,I,T){"use strict";var f=n("babel-runtime/core-js/object/create"),v=function(a){return a&&a.__esModule?a:{default:a}}(f);(function(){var a,i=function(r,e){function o(){this.constructor=r}for(var s in e)l.call(e,s)&&(r[s]=e[s]);return o.prototype=e.prototype,r.prototype=new o,r.__super__=e.prototype,r},l={}.hasOwnProperty;a=n("./XMLNode"),I.exports=function(r){function e(o,s){if(e.__super__.constructor.call(this,o),s==null)throw new Error("Missing element text");this.value=this.stringify.eleText(s)}return i(e,r),e.prototype.clone=function(){return(0,v.default)(this)},e.prototype.toString=function(o){return this.options.writer.set(o).text(this)},e}(a)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,I,T){"use strict";(function(){var f={}.hasOwnProperty;I.exports=function(){function v(a){var i,l,r,e,o,s,p,d,c;a||(a={}),this.pretty=a.pretty||!1,this.allowEmpty=(l=a.allowEmpty)!=null&&l,this.pretty?(this.indent=(r=a.indent)!=null?r:" ",this.newline=(e=a.newline)!=null?e:`
|
|
|
`,this.offset=(o=a.offset)!=null?o:0,this.dontprettytextnodes=(s=a.dontprettytextnodes)!=null?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(p=a.spacebeforeslash)!=null?p:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=a.writer||{};for(i in d)f.call(d,i)&&(c=d[i],this[i]=c)}return v.prototype.set=function(a){var i,l,r;a||(a={}),"pretty"in a&&(this.pretty=a.pretty),"allowEmpty"in a&&(this.allowEmpty=a.allowEmpty),this.pretty?(this.indent="indent"in a?a.indent:" ",this.newline="newline"in a?a.newline:`
|
|
|
`,this.offset="offset"in a?a.offset:0,this.dontprettytextnodes="dontprettytextnodes"in a?a.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in a?a.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,l=a.writer||{};for(i in l)f.call(l,i)&&(r=l[i],this[i]=r);return this},v.prototype.space=function(a){var i;return this.pretty?(i=(a||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},v}()}).call(void 0)},{}],235:[function(n,I,T){"use strict";(function(){var f,v,a,i,l,r,e;e=n("./Utility"),l=e.assign,r=e.isFunction,f=n("./XMLDocument"),v=n("./XMLDocumentCB"),i=n("./XMLStringWriter"),a=n("./XMLStreamWriter"),I.exports.create=function(o,s,p,d){var c,w;if(o==null)throw new Error("Root element needs a name");return d=l({},s,p,d),c=new f(d),w=c.element(o),d.headless||(c.declaration(d),d.pubID==null&&d.sysID==null||c.doctype(d)),w},I.exports.begin=function(o,s,p){var d;return r(o)&&(d=[o,s],s=d[0],p=d[1],o={}),s?new v(o,s,p):new f(o)},I.exports.stringWriter=function(o){return new i(o)},I.exports.streamWriter=function(o,s){return new a(o,s)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,I,T){function f(){for(var a={},i=0;i<arguments.length;i++){var l=arguments[i];for(var r in l)v.call(l,r)&&(a[r]=l[r])}return a}I.exports=f;var v=Object.prototype.hasOwnProperty},{}],237:[function(n,I,T){"use strict";function f(d,c,w){i.isBuffer(c)||(c=new i(c)),i.isBuffer(w)||(w=new i(w)),c.length>s?c=d(c):c.length<s&&(c=i.concat([c,p],s));for(var b=new i(s),m=new i(s),S=0;S<s;S++)b[S]=54^c[S],m[S]=92^c[S];var x=d(i.concat([b,w]));return d(i.concat([m,x]))}function v(d,c){d=d||"sha1";var w=o[d],b=[],m=0;return w||a("algorithm:",d,"is not yet supported"),{update:function(S){return i.isBuffer(S)||(S=new i(S)),b.push(S),m+=S.length,this},digest:function(S){var x=i.concat(b),h=c?f(w,c,x):w(x);return b=null,S?h.toString(S):h}}}function a(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var i=n("buffer").Buffer,l=n("./sha"),r=n("./sha256"),e=n("./md5"),o={sha1:l,sha256:r,md5:e},s=64,p=new i(s);p.fill(0),T.createHash=function(d){return v(d)},T.createHmac=function(d,c){return v(d,c)},function(d,c){for(var w in d)c(d[w],w)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(d){T[d]=function(){a("sorry,",d,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,I,T){"use strict";function f(o,s){if(o.length%l!=0){var p=o.length+(l-o.length%l);o=i.concat([o,r],p)}for(var d=[],c=s?o.readInt32BE:o.readInt32LE,w=0;w<o.length;w+=l)d.push(c.call(o,w));return d}function v(o,s,p){for(var d=new i(s),c=p?d.writeInt32BE:d.writeInt32LE,w=0;w<o.length;w++)c.call(d,o[w],4*w,!0);return d}function a(o,s,p,d){return i.isBuffer(o)||(o=new i(o)),v(s(f(o,d),o.length*e),p,d)}var i=n("buffer").Buffer,l=4,r=new i(l);r.fill(0);var e=8;I.exports={hash:a}},{buffer:38}],239:[function(n,I,T){"use strict";function f(p,d){p[d>>5]|=128<<d%32,p[14+(d+64>>>9<<4)]=d;for(var c=1732584193,w=-271733879,b=-1732584194,m=271733878,S=0;S<p.length;S+=16){var x=c,h=w,_=b,O=m;c=a(c,w,b,m,p[S+0],7,-680876936),m=a(m,c,w,b,p[S+1],12,-389564586),b=a(b,m,c,w,p[S+2],17,606105819),w=a(w,b,m,c,p[S+3],22,-1044525330),c=a(c,w,b,m,p[S+4],7,-176418897),m=a(m,c,w,b,p[S+5],12,1200080426),b=a(b,m,c,w,p[S+6],17,-1473231341),w=a(w,b,m,c,p[S+7],22,-45705983),c=a(c,w,b,m,p[S+8],7,1770035416),m=a(m,c,w,b,p[S+9],12,-1958414417),b=a(b,m,c,w,p[S+10],17,-42063),w=a(w,b,m,c,p[S+11],22,-1990404162),c=a(c,w,b,m,p[S+12],7,1804603682),m=a(m,c,w,b,p[S+13],12,-40341101),b=a(b,m,c,w,p[S+14],17,-1502002290),w=a(w,b,m,c,p[S+15],22,1236535329),c=i(c,w,b,m,p[S+1],5,-165796510),m=i(m,c,w,b,p[S+6],9,-1069501632),b=i(b,m,c,w,p[S+11],14,643717713),w=i(w,b,m,c,p[S+0],20,-373897302),c=i(c,w,b,m,p[S+5],5,-701558691),m=i(m,c,w,b,p[S+10],9,38016083),b=i(b,m,c,w,p[S+15],14,-660478335),w=i(w,b,m,c,p[S+4],20,-405537848),c=i(c,w,b,m,p[S+9],5,568446438),m=i(m,c,w,b,p[S+14],9,-1019803690),b=i(b,m,c,w,p[S+3],14,-187363961),w=i(w,b,m,c,p[S+8],20,1163531501),c=i(c,w,b,m,p[S+13],5,-1444681467),m=i(m,c,w,b,p[S+2],9,-51403784),b=i(b,m,c,w,p[S+7],14,1735328473),w=i(w,b,m,c,p[S+12],20,-1926607734),c=l(c,w,b,m,p[S+5],4,-378558),m=l(m,c,w,b,p[S+8],11,-2022574463),b=l(b,m,c,w,p[S+11],16,1839030562),w=l(w,b,m,c,p[S+14],23,-35309556),c=l(c,w,b,m,p[S+1],4,-1530992060),m=l(m,c,w,b,p[S+4],11,1272893353),b=l(b,m,c,w,p[S+7],16,-155497632),w=l(w,b,m,c,p[S+10],23,-1094730640),c=l(c,w,b,m,p[S+13],4,681279174),m=l(m,c,w,b,p[S+0],11,-358537222),b=l(b,m,c,w,p[S+3],16,-722521979),w=l(w,b,m,c,p[S+6],23,76029189),c=l(c,w,b,m,p[S+9],4,-640364487),m=l(m,c,w,b,p[S+12],11,-421815835),b=l(b,m,c,w,p[S+15],16,530742520),w=l(w,b,m,c,p[S+2],23,-995338651),c=r(c,w,b,m,p[S+0],6,-198630844),m=r(m,c,w,b,p[S+7],10,1126891415),b=r(b,m,c,w,p[S+14],15,-1416354905),w=r(w,b,m,c,p[S+5],21,-57434055),c=r(c,w,b,m,p[S+12],6,1700485571),m=r(m,c,w,b,p[S+3],10,-1894986606),b=r(b,m,c,w,p[S+10],15,-1051523),w=r(w,b,m,c,p[S+1],21,-2054922799),c=r(c,w,b,m,p[S+8],6,1873313359),m=r(m,c,w,b,p[S+15],10,-30611744),b=r(b,m,c,w,p[S+6],15,-1560198380),w=r(w,b,m,c,p[S+13],21,1309151649),c=r(c,w,b,m,p[S+4],6,-145523070),m=r(m,c,w,b,p[S+11],10,-1120210379),b=r(b,m,c,w,p[S+2],15,718787259),w=r(w,b,m,c,p[S+9],21,-343485551),c=e(c,x),w=e(w,h),b=e(b,_),m=e(m,O)}return Array(c,w,b,m)}function v(p,d,c,w,b,m){return e(o(e(e(d,p),e(w,m)),b),c)}function a(p,d,c,w,b,m,S){return v(d&c|~d&w,p,d,b,m,S)}function i(p,d,c,w,b,m,S){return v(d&w|c&~w,p,d,b,m,S)}function l(p,d,c,w,b,m,S){return v(d^c^w,p,d,b,m,S)}function r(p,d,c,w,b,m,S){return v(c^(d|~w),p,d,b,m,S)}function e(p,d){var c=(65535&p)+(65535&d);return(p>>16)+(d>>16)+(c>>16)<<16|65535&c}function o(p,d){return p<<d|p>>>32-d}var s=n("./helpers");I.exports=function(p){return s.hash(p,f,16)}},{"./helpers":238}],240:[function(n,I,T){"use strict";function f(e,o){e[o>>5]|=128<<24-o%32,e[15+(o+64>>9<<4)]=o;for(var s=Array(80),p=1732584193,d=-271733879,c=-1732584194,w=271733878,b=-1009589776,m=0;m<e.length;m+=16){for(var S=p,x=d,h=c,_=w,O=b,j=0;j<80;j++){s[j]=j<16?e[m+j]:l(s[j-3]^s[j-8]^s[j-14]^s[j-16],1);var y=i(i(l(p,5),v(j,d,c,w)),i(i(b,s[j]),a(j)));b=w,w=c,c=l(d,30),d=p,p=y}p=i(p,S),d=i(d,x),c=i(c,h),w=i(w,_),b=i(b,O)}return Array(p,d,c,w,b)}function v(e,o,s,p){return e<20?o&s|~o&p:e<40?o^s^p:e<60?o&s|o&p|s&p:o^s^p}function a(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(e,o){var s=(65535&e)+(65535&o);return(e>>16)+(o>>16)+(s>>16)<<16|65535&s}function l(e,o){return e<<o|e>>>32-o}var r=n("./helpers");I.exports=function(e){return r.hash(e,f,20,!0)}},{"./helpers":238}],241:[function(n,I,T){"use strict";var f=n("./helpers"),v=function(c,w){var b=(65535&c)+(65535&w);return(c>>16)+(w>>16)+(b>>16)<<16|65535&b},a=function(c,w){return c>>>w|c<<32-w},i=function(c,w){return c>>>w},l=function(c,w,b){return c&w^~c&b},r=function(c,w,b){return c&w^c&b^w&b},e=function(c){return a(c,2)^a(c,13)^a(c,22)},o=function(c){return a(c,6)^a(c,11)^a(c,25)},s=function(c){return a(c,7)^a(c,18)^i(c,3)},p=function(c){return a(c,17)^a(c,19)^i(c,10)},d=function(c,w){var b,m,S,x,h,_,O,j,y,R,P,C,N=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),G=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),H=new Array(64);c[w>>5]|=128<<24-w%32,c[15+(w+64>>9<<4)]=w;for(var y=0;y<c.length;y+=16){b=G[0],m=G[1],S=G[2],x=G[3],h=G[4],_=G[5],O=G[6],j=G[7];for(var R=0;R<64;R++)H[R]=R<16?c[R+y]:v(v(v(p(H[R-2]),H[R-7]),s(H[R-15])),H[R-16]),P=v(v(v(v(j,o(h)),l(h,_,O)),N[R]),H[R]),C=v(e(b),r(b,m,S)),j=O,O=_,_=h,h=v(x,P),x=S,S=m,m=b,b=v(P,C);G[0]=v(b,G[0]),G[1]=v(m,G[1]),G[2]=v(S,G[2]),G[3]=v(x,G[3]),G[4]=v(h,G[4]),G[5]=v(_,G[5]),G[6]=v(O,G[6]),G[7]=v(j,G[7])}return G};I.exports=function(c){return f.hash(c,d,32,!0)}},{"./helpers":238}],242:[function(n,I,T){(function(f){"use strict";function v(d){return d&&d.__esModule?d:{default:d}}var a=n("babel-runtime/core-js/object/create"),i=v(a),l=n("babel-runtime/helpers/classCallCheck"),r=v(l),e=n("babel-runtime/helpers/createClass"),o=v(e),s=n("babel-runtime/helpers/typeof"),p=v(s);!function(d){if((T===void 0?"undefined":(0,p.default)(T))==="object"&&I!==void 0)I.exports=d();else if(typeof he=="function"&&he.amd)he([],d);else{var c;c=typeof window!="undefined"?window:f!==void 0?f:typeof self!="undefined"?self:this,c.mime=d()}}(function(){return function d(c,w,b){function m(h,_){if(!w[h]){if(!c[h]){var O=typeof n=="function"&&n;if(!_&&O)return O(h,!0);if(S)return S(h,!0);var j=new Error("Cannot find module '"+h+"'");throw j.code="MODULE_NOT_FOUND",j}var y=w[h]={exports:{}};c[h][0].call(y.exports,function(R){var P=c[h][1][R];return m(P||R)},y,y.exports,d,c,w,b)}return w[h].exports}for(var S=typeof n=="function"&&n,x=0;x<b.length;x++)m(b[x]);return m}({1:[function(d,c,w){var b=function(){function m(){(0,r.default)(this,m),this._types=(0,i.default)(null),this._extensions=(0,i.default)(null);for(var S=0;S<arguments.length;S++)this.define(arguments[S])}return(0,o.default)(m,[{key:"define",value:function(S,x){for(var h in S){for(var _=S[h],O=0;O<_.length;O++){var j=_[O];if(!x&&j in this._types)throw new Error('Attempt to change mapping for "'+j+'" extension from "'+this._types[j]+'" to "'+h+'". Pass `force=true` to allow this, otherwise remove "'+j+'" from the list of extensions for "'+h+'".');this._types[j]=h}!x&&this._extensions[h]||(this._extensions[h]=_[0])}}},{key:"getType",value:function(S){S=String(S);var x=S.replace(/^.*[\/\\]/,"").toLowerCase(),h=x.replace(/^.*\./,"").toLowerCase(),_=x.length<S.length;return(h.length<x.length-1||!_)&&this._types[h]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),m}();c.exports=b},{}],2:[function(d,c,w){var b=d("./Mime");c.exports=new b(d("./types/standard"),d("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(d,c,w){c.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(d,c,w){c.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof be!="undefined"?be: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,I,T){"use strict";T.encodeURIComponent=function(f){try{return encodeURIComponent(f)}catch(v){return f}},T.escape=n("escape-html"),T.timestamp=function(f){if(f){var v=f;return typeof v=="string"&&(v=Number(v)),String(f).length===10&&(v*=1e3),new Date(v)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,I,T){(function(f,v){"use strict";function a(j){return j&&j.__esModule?j:{default:j}}function i(j,y){return j===void 0?y:j}function l(j,y){return function(R,P,C){if(R)return y(R);j({data:P,status:C.statusCode,headers:C.headers,res:C})}}var r,e=n("babel-runtime/core-js/json/stringify"),o=a(e),s=n("babel-runtime/helpers/typeof"),p=a(s),d=n("util"),c=n("url"),w=n("http"),b=n("https"),m=n("debug")("urllib"),S=n("humanize-ms"),x=0,h=Math.pow(2,31)-10,_=/^https?:\/\//i;T.TIMEOUTS=[S("300s"),S("300s")];var O=["json","text"];T.request=function(j,y,R){return arguments.length===2&&typeof y=="function"&&(R=y,y=null),typeof R=="function"?T.requestWithCallback(j,y,R):(r||(r=n("any-promise")),new r(function(P,C){T.requestWithCallback(j,y,l(P,C))}))},T.requestWithCallback=function(j,y,R){function P(){ue&&(clearTimeout(ue),ue=null)}function C(){k&&(clearTimeout(k),k=null)}function N(ce,ye,we){if(C(),!R)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),V,f.pid,ne.method,j),void(ce&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),V,f.pid,ce.name,ce.message,ce.stack));var _e=R;R=null;var xe={};if(we&&(E=we.statusCode,xe=we.headers),E===401&&xe["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Te=xe["www-authenticate"];if(Te.indexOf("Digest ")>=0)return m("Request#%d %s: got digest auth header WWW-Authenticate: %s",V,j,Te),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(ne.method,ne.path,Te,y.digestAuth),m("Request#%d %s: auth with digest header: %s",V,j,y.headers.Authorization),we.headers["set-cookie"]&&(y.headers.Cookie=we.headers["set-cookie"].join(";")),T.requestWithCallback(j,y,_e)}var Se=Date.now()-L;ae&&(ae.contentDownload=Se),m("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Se,g,E,ne.method,ne.host,ne.path,A,ae);var Oe={status:E,statusCode:E,headers:xe,size:g,aborted:q,rt:Se,keepAliveSocket:A,data:ye,requestUrls:y.requestUrls,timing:ae,remoteAddress:W,remotePort:le};if(ce){var Ie="";Y&&typeof Y.getCurrentStatus=="function"&&(Ie=", agent status: "+(0,o.default)(Y.getCurrentStatus())),ce.message+=", "+ne.method+" "+j+" "+E+" (connected: "+u+", keepalive socket: "+A+Ie+`)
|
|
|
headers: `+(0,o.default)(xe),ce.data=ye,ce.path=ne.path,ce.status=E,ce.headers=xe,ce.res=Oe}_e(ce,ye,y.streaming?we:Oe),y.emitter&&(X.url=j,X.socket=me&&me.connection,X.options=ne,X.size=$,y.emitter.emit("response",{requestId:V,error:ce,ctx:y.ctx,req:X,res:Oe}))}function G(ce){var ye=null;if(y.followRedirect&&statuses.redirect[ce.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var we=ce.headers.location;if(we){if(!(y._followRedirectCount>y.maxRedirects)){var _e=y.formatRedirectUrl?y.formatRedirectUrl(j,we):c.resolve(j,we);m("Request#%d %s: `redirected` from %s to %s",V,ne.path,j,_e),C(),y.headers&&y.headers.Host&&_.test(we)&&(y.headers.Host=null);var xe=R;return R=null,T.requestWithCallback(_e,y,xe),{redirect:!0,error:null}}ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+j),ye.name="MaxRedirectError"}else ye=new Error("Got statusCode "+ce.statusCode+" but cannot resolve next location from headers"),ye.name="FollowRedirectError"}return{redirect:!1,error:ye}}function H(ce,ye,we){return we(null,ye,ce.headers["content-encoding"])}function K(ce){if(ae&&(ae.waiting=Date.now()-L),m("Request#%d %s `req response` event emit: status %d, headers: %j",V,j,ce.statusCode,ce.headers),y.streaming){var ye=G(ce);return ye.redirect?void ce.resume():ye.error?(ce.resume(),N(ye.error,null,ce)):N(null,null,ce)}if(ce.on("close",function(){m("Request#%d %s: `res close` event emit, total size %d",V,j,g)}),ce.on("error",function(){m("Request#%d %s: `res error` event emit, total size %d",V,j,g)}),ce.on("aborted",function(){q=!0,m("Request#%d %s: `res aborted` event emit, total size %d",V,j,g)}),pe){var ye=G(ce);return ye.redirect?void ce.resume():ye.error?(ce.resume(),pe.end(),N(ye.error,null,ce)):(y.consumeWriteStream===!1?ce.on("end",N.bind(null,null,null,ce)):isNode010||isNode012?first([[pe,"close"],[ce,"aborted"]],function(xe,Te,Se){m("Request#%d %s: writeStream or res %s event emitted",V,j,Se),N(t||null,null,ce)}):pe.on("close",function(){m("Request#%d %s: writeStream close event emitted",V,j),N(t||null,null,ce)}),ce.pipe(pe))}var we=[];ce.on("data",function(_e){m("Request#%d %s: `res data` event emit, size %d",V,j,_e.length),g+=_e.length,we.push(_e)}),ce.on("end",function(){var _e=v.concat(we,g);if(m("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",V,j,g,ce._dumped),t)return N(t,_e,ce);var xe=G(ce);if(xe.error)return N(xe.error,_e,ce);xe.redirect||H(ce,_e,function(Te,Se,Oe){if(Te)return N(Te,_e,ce);if(!Oe&&O.indexOf(y.dataType)>=0){try{Se=decodeBodyByCharset(Se,ce)}catch(Ce){return m("decodeBodyByCharset error: %s",Ce),N(null,Se,ce)}if(y.dataType==="json")if(g===0)Se=null;else{var Ie=parseJSON(Se,oe);Ie.error?Te=Ie.error:Se=Ie.data}}q&&m("Request#%d %s: Remote socket was terminated before `response.end()` was called",V,j),N(Te,Se,ce)})})}function ie(){m("Response timer ticking, timeout: %d",ve),k=setTimeout(function(){k=null;var ce="Response timeout for "+ve+"ms";t=new Error(ce),t.name="ResponseTimeoutError",t.requestId=V,m("ResponseTimeout: Request#%d %s %s: %s, connected: %s",V,j,t.name,ce,u),z()},ve)}function z(){m("Request#%d %s abort, connected: %s",V,j,u),me.socket||(t.noSocket=!0,N(t)),me.abort()}if(!j||typeof j!="string"&&(j===void 0?"undefined":(0,p.default)(j))!=="object"){var re=d.format("expect request url to be a string or a http request options, but got %j",j);throw new Error(re)}arguments.length===2&&typeof y=="function"&&(R=y,y=null),y=y||{},x>=h&&(x=0);var V=++x;y.requestUrls=y.requestUrls||[];var X={requestId:V,url:j,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",X),y.timeout=y.timeout||T.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var D,L=Date.now();typeof j=="string"?(_.test(j)||(j="http://"+j),D=c.parse(j)):D=j;var M=(y.type||y.method||D.method||"GET").toUpperCase(),B=D.port||80,te=w,Y=i(y.agent,T.agent),oe=y.fixJSONCtlChars;D.protocol==="https:"&&(te=b,Y=i(y.httpsAgent,T.httpsAgent),D.port||(B=443));var ne={host:D.hostname||D.host||"localhost",path:D.path||"/",method:M,port:B,agent:Y,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?ne.requestTimeout=y.timeout[y.timeout.length-1]:y.timeout!==void 0&&(ne.requestTimeout=y.timeout);for(var se=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],fe=0;fe<se.length;fe++){var J=se[fe];y.hasOwnProperty(J)&&(ne[J]=y[J])}ne.rejectUnauthorized!==!1||ne.hasOwnProperty("secureOptions")||(ne.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var Q=y.auth||D.auth;Q&&(ne.auth=Q);var ee=y.content||y.data,F=M==="GET"||M==="HEAD"||y.dataAsQueryString;if(!y.content&&ee&&typeof ee!="string"&&!v.isBuffer(ee))if(F)ee=y.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var U=ne.headers["Content-Type"]||ne.headers["content-type"];U||(U=y.contentType==="json"?"application/json":"application/x-www-form-urlencoded",ne.headers["Content-Type"]=U),ee=parseContentType(U).type==="application/json"?(0,o.default)(ee):y.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}F&&ee&&(ne.path+=(D.query?"&":"?")+ee,ee=null);var $=0;if(ee){var Z=ee.length;v.isBuffer(ee)||(Z=v.byteLength(ee)),$=ne.headers["Content-Length"]=Z}y.dataType==="json"&&(ne.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(ne);var ue=null,k=null,t=null,u=!1,A=!1,g=0,E=-1,q=!1,W="",le="",ae=null;y.timing&&(ae={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),y.gzip&&(ne.headers["Accept-Encoding"]||ne.headers["accept-encoding"]||(ne.headers["Accept-Encoding"]="gzip"));var pe=y.writeStream;m("Request#%d %s %s with headers %j, options.path: %s",V,M,j,ne.headers,ne.path),y.requestUrls.push(j);var de,ve;Array.isArray(y.timeout)?(de=S(y.timeout[0]),ve=S(y.timeout[1])):de=ve=S(y.timeout),m("ConnectTimeout: %d, ResponseTimeout: %d",de,ve);var me;try{me=te.request(ne,K)}catch(ce){return N(ce)}return typeof window=="undefined"?function(){m("Connect timer ticking, timeout: %d",de),ue=setTimeout(function(){ue=null,E===-1&&(E=-2);var ce="Connect timeout for "+de+"ms",ye="ConnectionTimeoutError";me.socket||(ye="SocketAssignTimeoutError",ce+=", working sockets is full"),t=new Error(ce),t.name=ye,t.requestId=V,m("ConnectTimeout: Request#%d %s %s: %s, connected: %s",V,j,t.name,ce,u),z()},de)}():me.on("requestTimeout",function(){E===-1&&(E=-2);var ce="Connect timeout for "+de+"ms";t=new Error(ce),t.name="ConnectionTimeoutError",t.requestId=V,z()}),ae&&me.on("finish",function(){ae.requestSent=Date.now()-L}),me.once("socket",function(ce){ae&&(ae.queuing=Date.now()-L),isNode010&&ce.socket&&(ce=ce.socket);var ye=ce.readyState;if(ye==="opening")return ce.once("lookup",function(we,_e,xe){m("Request#%d %s lookup: %s, %s, %s",V,j,we,_e,xe),ae&&(ae.dnslookup=Date.now()-L),_e&&(W=_e)}),void ce.once("connect",function(){ae&&(ae.connected=Date.now()-L),P(),ie(),m("Request#%d %s new socket connected",V,j),u=!0,W||(W=ce.remoteAddress),le=ce.remotePort});m("Request#%d %s reuse socket connected, readyState: %s",V,j,ye),u=!0,A=!0,W||(W=ce.remoteAddress),le=ce.remotePort,P(),ie()}),me.on("error",function(ce){ce.name!=="Error"&&ce.name!=="TypeError"||(ce.name=u?"ResponseError":"RequestError"),ce.message+=' (req "error")',m("Request#%d %s `req error` event emit, %s: %s",V,j,ce.name,ce.message),N(t||ce)}),pe&&pe.once("error",function(ce){ce.message+=' (writeStream "error")',t=ce,m("Request#%d %s `writeStream error` event emit, %s: %s",V,j,ce.name,ce.message),z()}),y.stream?(y.stream.pipe(me),y.stream.once("error",function(ce){ce.message+=' (stream "error")',t=ce,m("Request#%d %s `readStream error` event emit, %s: %s",V,j,ce.name,ce.message),z()})):me.end(ee),me.requestId=V,me}}).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(T){if(I[T])return I[T].exports;var f=I[T]={i:T,l:!1,exports:{}};return he[T].call(f.exports,f,f.exports,n),f.l=!0,f.exports}var I={};n.m=he,n.c=I,n.d=function(T,f,v){n.o(T,f)||Object.defineProperty(T,f,{configurable:!1,enumerable:!0,get:v})},n.n=function(T){var f=T&&T.__esModule?function(){return T.default}:function(){return T};return n.d(f,"a",f),f},n.o=function(T,f){return Object.prototype.hasOwnProperty.call(T,f)},n.p="",n(n.s=12)}([function(he,n,I){!function(T,f){he.exports=n=f()}(0,function(){var T=T||function(f,v){var a=Object.create||function(){function b(){}return function(m){var S;return b.prototype=m,S=new b,b.prototype=null,S}}(),i={},l=i.lib={},r=l.Base=function(){return{extend:function(b){var m=a(this);return b&&m.mixIn(b),m.hasOwnProperty("init")&&this.init!==m.init||(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var m in b)b.hasOwnProperty(m)&&(this[m]=b[m]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),e=l.WordArray=r.extend({init:function(b,m){b=this.words=b||[],this.sigBytes=m!=null?m:4*b.length},toString:function(b){return(b||s).stringify(this)},concat:function(b){var m=this.words,S=b.words,x=this.sigBytes,h=b.sigBytes;if(this.clamp(),x%4)for(var _=0;_<h;_++){var O=S[_>>>2]>>>24-_%4*8&255;m[x+_>>>2]|=O<<24-(x+_)%4*8}else for(var _=0;_<h;_+=4)m[x+_>>>2]=S[_>>>2];return this.sigBytes+=h,this},clamp:function(){var b=this.words,m=this.sigBytes;b[m>>>2]&=4294967295<<32-m%4*8,b.length=f.ceil(m/4)},clone:function(){var b=r.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var m,S=[],x=0;x<b;x+=4){var h=function(_){var _=_,O=987654321,j=4294967295;return function(){O=36969*(65535&O)+(O>>16)&j,_=18e3*(65535&_)+(_>>16)&j;var y=(O<<16)+_&j;return y/=4294967296,(y+=.5)*(f.random()>.5?1:-1)}}(4294967296*(m||f.random()));m=987654071*h(),S.push(4294967296*h()|0)}return new e.init(S,b)}}),o=i.enc={},s=o.Hex={stringify:function(b){for(var m=b.words,S=b.sigBytes,x=[],h=0;h<S;h++){var _=m[h>>>2]>>>24-h%4*8&255;x.push((_>>>4).toString(16)),x.push((15&_).toString(16))}return x.join("")},parse:function(b){for(var m=b.length,S=[],x=0;x<m;x+=2)S[x>>>3]|=parseInt(b.substr(x,2),16)<<24-x%8*4;return new e.init(S,m/2)}},p=o.Latin1={stringify:function(b){for(var m=b.words,S=b.sigBytes,x=[],h=0;h<S;h++){var _=m[h>>>2]>>>24-h%4*8&255;x.push(String.fromCharCode(_))}return x.join("")},parse:function(b){for(var m=b.length,S=[],x=0;x<m;x++)S[x>>>2]|=(255&b.charCodeAt(x))<<24-x%4*8;return new e.init(S,m)}},d=o.Utf8={stringify:function(b){try{return decodeURIComponent(escape(p.stringify(b)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(b){return p.parse(unescape(encodeURIComponent(b)))}},c=l.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new e.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=d.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var m=this._data,S=m.words,x=m.sigBytes,h=this.blockSize,_=4*h,O=x/_;O=b?f.ceil(O):f.max((0|O)-this._minBufferSize,0);var j=O*h,y=f.min(4*j,x);if(j){for(var R=0;R<j;R+=h)this._doProcessBlock(S,R);var P=S.splice(0,j);m.sigBytes-=y}return new e.init(P,y)},clone:function(){var b=r.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0}),w=(l.Hasher=c.extend({cfg:r.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){return b&&this._append(b),this._doFinalize()},blockSize:16,_createHelper:function(b){return function(m,S){return new b.init(S).finalize(m)}},_createHmacHelper:function(b){return function(m,S){return new w.HMAC.init(b,S).finalize(m)}}}),i.algo={});return i}(Math);return T})},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"detectIEVersion",value:function(){for(var i=4,l=document.createElement("div"),r=l.getElementsByTagName("i");l.innerHTML="<!--[if gt IE "+i+"]><i></i><![endif]-->",r[0];)i++;return i>4&&i}},{key:"extend",value:function(i,l){for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&l[r]&&(i[r]=l[r])}},{key:"isArray",value:function(i){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(i){return i=i.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(i)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(i)?"audio":/.bmp|.jpg|.jpeg|.png/.test(i)?"img":"other"}},{key:"isImage",value:function(i){return i=i.toLowerCase(),!!/.jpg|.jpeg|.png/.test(i)}},{key:"ISODateString",value:function(i){function l(r){return r<10?"0"+r:r}return i.getUTCFullYear()+"-"+l(i.getUTCMonth()+1)+"-"+l(i.getUTCDate())+"T"+l(i.getUTCHours())+":"+l(i.getUTCMinutes())+":"+l(i.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(i){return!!/^\d+$/.test(i)}}]),a}();n.default=v},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return function(f){function v(w,b,m,S,x,h,_){var O=w+(b&m|~b&S)+x+_;return(O<<h|O>>>32-h)+b}function a(w,b,m,S,x,h,_){var O=w+(b&S|m&~S)+x+_;return(O<<h|O>>>32-h)+b}function i(w,b,m,S,x,h,_){var O=w+(b^m^S)+x+_;return(O<<h|O>>>32-h)+b}function l(w,b,m,S,x,h,_){var O=w+(m^(b|~S))+x+_;return(O<<h|O>>>32-h)+b}var r=T,e=r.lib,o=e.WordArray,s=e.Hasher,p=r.algo,d=[];!function(){for(var w=0;w<64;w++)d[w]=4294967296*f.abs(f.sin(w+1))|0}();var c=p.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(w,b){for(var m=0;m<16;m++){var S=b+m,x=w[S];w[S]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8)}var h=this._hash.words,_=w[b+0],O=w[b+1],j=w[b+2],y=w[b+3],R=w[b+4],P=w[b+5],C=w[b+6],N=w[b+7],G=w[b+8],H=w[b+9],K=w[b+10],ie=w[b+11],z=w[b+12],re=w[b+13],V=w[b+14],X=w[b+15],D=h[0],L=h[1],M=h[2],B=h[3];D=v(D,L,M,B,_,7,d[0]),B=v(B,D,L,M,O,12,d[1]),M=v(M,B,D,L,j,17,d[2]),L=v(L,M,B,D,y,22,d[3]),D=v(D,L,M,B,R,7,d[4]),B=v(B,D,L,M,P,12,d[5]),M=v(M,B,D,L,C,17,d[6]),L=v(L,M,B,D,N,22,d[7]),D=v(D,L,M,B,G,7,d[8]),B=v(B,D,L,M,H,12,d[9]),M=v(M,B,D,L,K,17,d[10]),L=v(L,M,B,D,ie,22,d[11]),D=v(D,L,M,B,z,7,d[12]),B=v(B,D,L,M,re,12,d[13]),M=v(M,B,D,L,V,17,d[14]),L=v(L,M,B,D,X,22,d[15]),D=a(D,L,M,B,O,5,d[16]),B=a(B,D,L,M,C,9,d[17]),M=a(M,B,D,L,ie,14,d[18]),L=a(L,M,B,D,_,20,d[19]),D=a(D,L,M,B,P,5,d[20]),B=a(B,D,L,M,K,9,d[21]),M=a(M,B,D,L,X,14,d[22]),L=a(L,M,B,D,R,20,d[23]),D=a(D,L,M,B,H,5,d[24]),B=a(B,D,L,M,V,9,d[25]),M=a(M,B,D,L,y,14,d[26]),L=a(L,M,B,D,G,20,d[27]),D=a(D,L,M,B,re,5,d[28]),B=a(B,D,L,M,j,9,d[29]),M=a(M,B,D,L,N,14,d[30]),L=a(L,M,B,D,z,20,d[31]),D=i(D,L,M,B,P,4,d[32]),B=i(B,D,L,M,G,11,d[33]),M=i(M,B,D,L,ie,16,d[34]),L=i(L,M,B,D,V,23,d[35]),D=i(D,L,M,B,O,4,d[36]),B=i(B,D,L,M,R,11,d[37]),M=i(M,B,D,L,N,16,d[38]),L=i(L,M,B,D,K,23,d[39]),D=i(D,L,M,B,re,4,d[40]),B=i(B,D,L,M,_,11,d[41]),M=i(M,B,D,L,y,16,d[42]),L=i(L,M,B,D,C,23,d[43]),D=i(D,L,M,B,H,4,d[44]),B=i(B,D,L,M,z,11,d[45]),M=i(M,B,D,L,X,16,d[46]),L=i(L,M,B,D,j,23,d[47]),D=l(D,L,M,B,_,6,d[48]),B=l(B,D,L,M,N,10,d[49]),M=l(M,B,D,L,V,15,d[50]),L=l(L,M,B,D,P,21,d[51]),D=l(D,L,M,B,z,6,d[52]),B=l(B,D,L,M,y,10,d[53]),M=l(M,B,D,L,K,15,d[54]),L=l(L,M,B,D,O,21,d[55]),D=l(D,L,M,B,G,6,d[56]),B=l(B,D,L,M,X,10,d[57]),M=l(M,B,D,L,C,15,d[58]),L=l(L,M,B,D,re,21,d[59]),D=l(D,L,M,B,R,6,d[60]),B=l(B,D,L,M,ie,10,d[61]),M=l(M,B,D,L,j,15,d[62]),L=l(L,M,B,D,H,21,d[63]),h[0]=h[0]+D|0,h[1]=h[1]+L|0,h[2]=h[2]+M|0,h[3]=h[3]+B|0},_doFinalize:function(){var w=this._data,b=w.words,m=8*this._nDataBytes,S=8*w.sigBytes;b[S>>>5]|=128<<24-S%32;var x=f.floor(m/4294967296),h=m;b[15+(S+64>>>9<<4)]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8),b[14+(S+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),w.sigBytes=4*(b.length+1),this._process();for(var _=this._hash,O=_.words,j=0;j<4;j++){var y=O[j];O[j]=16711935&(y<<8|y>>>24)|4278255360&(y<<24|y>>>8)}return _},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});r.MD5=s._createHelper(c),r.HmacMD5=s._createHmacHelper(c)}(Math),T.MD5})},function(he,n,I){"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,I){"use strict";function T(c){return c&&c.__esModule?c:{default:c}}function f(c,w){if(!(c instanceof w))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function c(w,b){for(var m=0;m<b.length;m++){var S=b[m];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,b,m){return b&&c(w.prototype,b),m&&c(w,m),w}}(),a=I(5),i=T(a),l=I(25),r=T(l),e=I(6),o=T(e),s=I(7),p=T(s),d=function(){function c(w){f(this,c);var b=p.default.os.name,m=p.default.os.version||"",S=p.default.browser.name,x=p.default.browser.version||"",h=window.location.href,_="";h&&(_=p.default.getHost(h));var O="pc";p.default.os.ipad?O="pad":(p.default.os.iphone||p.default.os.android)&&(O="phone"),this._ri=i.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:o.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:c.getUuid(),os:b,ov:m,et:S,ev:x,uat:navigator.userAgent,app_n:_,tt:O,dm:"h5",ut:""}}return v(c,[{key:"log",value:function(w,b){b&&b.ri?(this._ri=b.ri,delete b.ri):this._ri=i.default.create(),b&&b.ut&&(this.initParam.ut=b.ut,delete b.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=w=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=w;var m=[];if(b)for(var S in b)m.push(S+"="+b[S]);var x=m.join("&");this.initParam.args=encodeURIComponent(x==""?"0":x);var h=[];for(var S in this.initParam)h.push(S+"="+this.initParam[S]);var _=h.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(_):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+_}}],[{key:"getUuid",value:function(){var w=r.default.get("p_h5_upload_u");return w||(w=i.default.create(),r.default.set("p_h5_upload_u",w,730)),w}},{key:"getClientId",value:function(){return r.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(w){return w||(w=i.default.create()),r.default.set("p_h5_upload_clientId",w,730),w}}]),c}();n.default=d},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"create",value:function(i,l){var r,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(l=l||e.length,i)for(r=0;r<i;r++)o[r]=e[0|Math.random()*l];else{var s;for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",r=0;r<36;r++)o[r]||(s=0|16*Math.random(),o[r]=e[r==19?3&s|8:s])}return o.join("")}}]),a}();n.default=v},function(he,n,I){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var T={version:"1.5.0"};n.default=T},function(he,n,I){"use strict";function T(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function e(o,s){for(var p=0;p<s.length;p++){var d=s[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,s,p){return s&&e(o.prototype,s),p&&e(o,p),o}}(),v=function(e){var o=navigator.userAgent,s="other";if(e.ios)return"iOS";if(e.android)return"android";if(o.indexOf("Baiduspider")>-1)return"Baiduspider";if(o.indexOf("PlayStation")>-1)return"PS4";var p=navigator.platform=="Win32"||navigator.platform=="Windows"||o.indexOf("Windows")>-1,d=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return d&&(s="macOS"),navigator.platform=="X11"&&!p&&!d&&(s="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(s="Linux"),p?"windows":s},a=function(){var e=navigator.userAgent,o="";return(e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1)&&(o="2000"),(e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1)&&(o="XP"),(e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1)&&(o="2003"),(e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1)&&(o="Vista"),(e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1)&&(o="7"),(e.indexOf("Windows NT 6.2")>-1||e.indexOf("Windows 8")>-1)&&(o="8"),(e.indexOf("Windows NT 6.3")>-1||e.indexOf("Windows 8.1")>-1)&&(o="8.1"),(e.indexOf("Windows NT 10")>-1||e.indexOf("Windows 10")>-1)&&(o="10"),o},i=function(e){var o=navigator.userAgent.toLowerCase();return e.chrome?"Chrome":e.firefox?"Firefox":e.safari?"Safari":e.webview?"webview":e.ie?/edge/.test(o)?"Edge":"IE":/baiduspider/.test(o)?"Baiduspider":/ucweb/.test(o)||/UCBrowser/.test(o)?"UC":/opera/.test(o)?"Opera":/ucweb/.test(o)?"UC":/360se/.test(o)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(o)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(o)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(o)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(o)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(o)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(o)?"PS4\u6D4F\u89C8\u5668":void 0},l=function(){var e={},o={},s=navigator.userAgent,p=navigator.platform,d=s.match(/Web[kK]it[\/]{0,1}([\d.]+)/),c=s.match(/(Android);?[\s\/]+([\d.]+)?/),w=!!s.match(/\(Macintosh\; Intel /),b=s.match(/(iPad).*OS\s([\d_]+)/),m=s.match(/(iPod)(.*OS\s([\d_]+))?/),S=!b&&s.match(/(iPhone\sOS)\s([\d_]+)/),x=s.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(p),_=s.match(/Windows Phone ([\d.]+)/),O=x&&s.match(/TouchPad/),j=s.match(/Kindle\/([\d.]+)/),y=s.match(/Silk\/([\d._]+)/),R=s.match(/(BlackBerry).*Version\/([\d.]+)/),P=s.match(/(BB10).*Version\/([\d.]+)/),C=s.match(/(RIM\sTablet\sOS)\s([\d.]+)/),N=s.match(/PlayBook/),G=s.match(/Chrome\/([\d.]+)/)||s.match(/CriOS\/([\d.]+)/),H=s.match(/Firefox\/([\d.]+)/),K=s.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),ie=s.match(/MSIE\s([\d.]+)/)||s.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),z=!G&&s.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),re=z||s.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!d)&&(o.version=d[1]),c&&(e.android=!0,e.version=c[2]),S&&!m&&(e.ios=e.iphone=!0,e.version=S[2].replace(/_/g,".")),b&&(e.ios=e.ipad=!0,e.version=b[2].replace(/_/g,".")),m&&(e.ios=e.ipod=!0,e.version=m[3]?m[3].replace(/_/g,"."):null),_&&(e.wp=!0,e.version=_[1]),x&&(e.webos=!0,e.version=x[2]),O&&(e.touchpad=!0),R&&(e.blackberry=!0,e.version=R[2]),P&&(e.bb10=!0,e.version=P[2]),C&&(e.rimtabletos=!0,e.version=C[2]),N&&(o.playbook=!0),j&&(e.kindle=!0,e.version=j[1]),y&&(o.silk=!0,o.version=y[1]),!y&&e.android&&s.match(/Kindle Fire/)&&(o.silk=!0),G&&(o.chrome=!0,o.version=G[1]),H&&(o.firefox=!0,o.version=H[1]),K&&(e.firefoxos=!0,e.version=K[1]),ie&&(o.ie=!0,o.version=ie[1]),re&&(w||e.ios||h||c)&&(o.safari=!0,e.ios||(o.version=re[1])),z&&(o.webview=!0),w){var V=s.match(/[\d]*_[\d]*_[\d]*/);V&&V.length>0&&V[0]&&(e.version=V[0].replace(/_/g,"."))}return e.tablet=!!(b||N||c&&!s.match(/Mobile/)||H&&s.match(/Tablet/)||ie&&!s.match(/Phone/)&&s.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(c||S||x||R||P||G&&s.match(/Android/)||G&&s.match(/CriOS\/([\d.]+)/)||H&&s.match(/Mobile/)||ie&&s.match(/Touch/))),e.pc=!e.tablet&&!e.phone,w?e.name="macOS":h?(e.name="windows",e.version=a()):e.name=v(e),o.name=i(o),{os:e,browser:o}}(),r=function(){function e(){T(this,e)}return f(e,null,[{key:"getHost",value:function(o){var s="";if(o===void 0||o==null||o=="")return"";var p=o.indexOf("//"),d=o;p>-1&&(d=o.substring(p+2));var s=d,c=d.split("/");return c&&c.length>0&&(s=c[0]),c=s.split(":"),c&&c.length>0&&(s=c[0]),s}},{key:"os",get:function(){return l.os}},{key:"browser",get:function(){var o=l.browser;return o.name||(o.name=i()),o}}]),e}();n.default=r},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"get",value:function(i,l,r,e,o){var s;r=r||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(p){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(p){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(p){}throw new Error("This browser does not support XMLHttpRequest.")}),s=new XMLHttpRequest,s.onreadystatechange=function(){s.readyState===4&&(s.status===200?l(s.responseText):r(s.responseText))};try{e===void 0&&(e=!0),s.open("GET",i,e),o&&(s.withCredentials=!0)}catch(p){return void r(p)}try{s.send()}catch(p){r(p)}}}]),a}();n.default=v},function(he,n,I){"use strict";function T(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function l(r,e){for(var o=0;o<e.length;o++){var s=e[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,e,o){return e&&l(r.prototype,e),o&&l(r,o),r}}(),v=I(27),a=I(30),i=(I(10),function(){function l(){T(this,l)}return f(l,null,[{key:"randomUUID",value:function(){for(var r=[],e="0123456789abcdef",o=0;o<36;o++)r[o]=e.substr(Math.floor(16*Math.random()),1);return r[14]="4",r[19]=e.substr(3&r[19]|8,1),r[8]=r[13]=r[18]=r[23]="-",r.join("")}},{key:"aliyunEncodeURI",value:function(r){var e=encodeURIComponent(r);return e=e.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(r,e,o){if(!r)throw new Error("PrismPlayer Error: vid should not be null!");var s=[];for(var p in r)s.push(p);for(var d=s.sort(),c="",w=d.length,p=0;p<w;p++){var b=l.aliyunEncodeURI(d[p]),m=l.aliyunEncodeURI(r[d[p]]);c==""?c=b+e+m:c+=o+b+e+m}return c}},{key:"makeChangeSiga",value:function(r,e){if(!r)throw new Error("PrismPlayer Error: vid should not be null!");return a.stringify(v("GET&"+l.aliyunEncodeURI("/")+"&"+l.aliyunEncodeURI(l.makeUTF8sort(r,"=","&")),e+"&"))}}]),l}());n.default=i},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return T.enc.Utf8})},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return T.enc.Hex})},function(he,n,I){he.exports=I(13)},function(he,n,I){"use strict";var T,f,v=(typeof Symbol=="function"&&Symbol.iterator,I(14)),a=function(l){return l&&l.__esModule?l:{default:l}}(v),i={Vod:a.default};T=[],(f=function(){return i}.apply(n,T))!==void 0&&(he.exports=f),window.AliyunUpload=i,Ae.exports=AliyunUpload},function(he,n,I){"use strict";function T(P){return P&&P.__esModule?P:{default:P}}function f(P,C){if(!(P instanceof C))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function P(C,N){for(var G=0;G<N.length;G++){var H=N[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}return function(C,N,G){return N&&P(C.prototype,N),G&&P(C,G),C}}(),a=I(15),i=I(3),l=I(16),r=T(l),e=I(18),o=T(e),s=I(24),p=T(s),d=I(4),c=T(d),w=I(1),b=T(w),m=I(5),S=T(m),x=I(26),h=T(x),_=I(31),O=T(_),j=I(32),y=T(j),R=(I(2),function(){function P(C){f(this,P),this.options=C,this.options.partSize=this.options.partSize||i.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||i.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=a.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new c.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=a.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return v(P,[{key:"init",value:function(C,N,G,H){return this._retryCount=0,!(G&&!H||!G&&H)&&!(C&&!N||!C&&N)&&(this._ossCreditor.accessKeyId=C,this._ossCreditor.accessKeySecret=N,this._ossCreditor.securityToken=G,this._ossCreditor.expireTime=H,!0)}},{key:"addFile",value:function(C,N,G,H,K,ie){if(!C)return!1;if(C.size==0)try{this.options.onUploadFailed({file:C},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(X){console.log(X)}for(var z=(this.options,0);z<this._uploadList.length;z++)if(this._uploadList[z].file==C)return!1;var re=new Object;if(re.file=C,re._endpoint=N,re._bucket=G,re._object=H,re.state=a.UPLOADSTATE.INIT,re.isImage=b.default.isImage(C.name),!re.isImage&&this.options.enableUploadProgress){var V=this;y.default.getMd5(C,function(X){re.fileHash=X;var D=V._getCheckoutpoint(re);V.options.localCheckpoint||D||V._getCheckoutpointFromCloud(re,function(L){if(L.UploadPoint){var M=JSON.parse(L.UploadPoint);M.loaded!=1&&(re.checkpoint=M.checkpoint,re.loaded=M.loaded,re.videoId=L.VideoId,V._saveCheckoutpoint(re,M.checkpoint))}},function(L){try{if((L=JSON.parse(L))&&L.Code=="InvalidParameter"&&L.Message.indexOf("UserId")>0){V._invalidUserId=!0;var M=L.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(M)}}catch(B){console.log(B)}})})}K&&(re.videoInfo=K?JSON.parse(K).Vod:{},re.userData=o.default.encode(K)),re.ri=S.default.create(),this._uploadList.push(re),this._reportLog("20001",re,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(re)}catch(X){console.log(X)}return!0}},{key:"deleteFile",value:function(C){return!!this.cancelFile(C)&&(this._uploadList.splice(C,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(C){if(this.options,C<0||C>=this._uploadList.length)return!1;var N=this._uploadList[C];if(C==this._curIndex&&N.state==a.UPLOADSTATE.UPLOADING){N.state=a.UPLOADSTATE.CANCELED;var G=this._getCheckoutpoint(N);G&&G.checkpoint&&(G=G.checkpoint),G&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=a.UPLOADSTATE.SUCCESS&&(N.state=a.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(C){if(this.options,C<0||C>=this._uploadList.length)return!1;var N=this._uploadList[C];return N.state==a.UPLOADSTATE.CANCELED&&(N.state=a.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(C){return this._getCheckoutpoint({file:C})}},{key:"startUpload",value:function(C){if(this._retryCount=0,this.options,this._state==a.VODSTATE.START||this._state==a.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=a.VODSTATE.END);var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=a.VODSTATE.START}},{key:"nextUpload",value:function(){var C=this.options;if(this._state==a.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N)}else{this._state=a.VODSTATE.END;try{C.onUploadEnd&&C.onUploadEnd(N)}catch(G){console.log(G)}}}},{key:"clear",value:function(C){for(var N=this.options,G=0,H=0;H<this._uploadList.length;H++)N.uploadList[H].state==a.UPLOADSTATE.SUCCESS&&G++,this._uploadList[H].state==C&&(N.uploadList.splice(H,1),H--);N.onClear&&N.onClear(N.uploadList.length,G)}},{key:"stopUpload",value:function(){if((this._state==a.VODSTATE.START||this._state==a.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var C=this._uploadList[this._curIndex];this._state=a.VODSTATE.STOP,C.state=a.UPLOADSTATE.STOPED,this._changeState(C,a.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(C){var N=this;if(!C)return!1;var G=JSON.parse(o.default.decode(C));return!!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration)&&N.resumeUploadWithToken(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration)}},{key:"resumeUploadWithToken",value:function(C,N,G,H){if(this.options,!(C&&N&&G&&H))return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var K="";return this._uploadList.length>this._curIndex&&(K=this._uploadList[this._curIndex]),K&&(this.init(C,N,G,H),this._state=a.VODSTATE.START,this._ossUpload=null,this._uploadCore(K,K.retry),K.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(C,N,G){if(this._curIndex==-1)return!1;if(this._state!=a.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var H=this._uploadList[this._curIndex];H.object?this._refreshSTSTokenUpload(H,C,N,G):this.setSTSToken(H,C,N,G)}}},{key:"setSTSTokenDirectlyUpload",value:function(C,N,G,H,K){if(!(N&&G&&H&&K))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var ie=C;this.init(N,G,H,K),ie.endpoint=ie._endpoint,ie.bucket=ie._bucket,ie.object=ie._object,this._ossUpload=null,this._uploadCore(ie,C.retry),C.retry=!1}},{key:"setSTSToken",value:function(C,N,G,H){if(!N||!G||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var K=C.videoInfo,ie={accessKeyId:N,securityToken:H,accessKeySecret:G,fileName:C.file.name,title:K.Title,requestId:C.ri,region:this.options.region};K.ImageType&&(ie.imageType=K.ImageType),K.ImageExt&&(ie.imageExt=K.ImageExt),K.FileSize&&(ie.fileSize=K.FileSize),K.Description&&(ie.description=K.Description),K.CateId&&(ie.cateId=K.CateId),K.Tags&&(ie.tags=K.Tags),K.TemplateGroupId&&(ie.templateGroupId=K.TemplateGroupId),K.StorageLocation&&(ie.storageLocation=K.StorageLocation),K.CoverURL&&(ie.coverUrl=K.CoverURL),K.TransCodeMode&&(ie.transCodeMode=K.TransCodeMode),K.UserData&&(ie.userData=K.UserData);var z=this,re="getUploadAuth";C.videoId?(ie.videoId=C.videoId,re="refreshUploadAuth"):C.isImage&&(re="getImageUploadAuth"),h.default[re](ie,function(V){C.videoId=V.VideoId?V.VideoId:C.videoId,z.setUploadAuthAndAddress(C,V.UploadAuth,V.UploadAddress),z._state=a.VODSTATE.START},function(V){z._error(C,{name:V.Code,code:V.Code,message:V.Message,requestId:V.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(C,N,G,H){if(!C||!N||!G)return!1;var K=JSON.parse(o.default.decode(N));if(!(K.AccessKeyId&&K.AccessKeySecret&&K.SecurityToken&&K.Expiration))return console.error("uploadauth is invalid"),!1;var ie={},z=C;if(G){if(ie=JSON.parse(o.default.decode(G)),!ie.Endpoint||!ie.Bucket||!ie.FileName)return console.error("uploadAddress is invalid"),!1}else ie.Endpoint=z.endpoint,ie.Bucket=z.bucket,ie.FileName=z.object;this._ut="vod",this._uploadWay="vod",this.options.region=K.Region||this.options.region,this.init(K.AccessKeyId,K.AccessKeySecret,K.SecurityToken,K.Expiration),z.endpoint=z._endpoint?z._endpoint:ie.Endpoint,z.bucket=z._bucket?z._bucket:ie.Bucket,z.object=z._object?z._object:ie.FileName,z.region=this.options.region,H&&(z.videoId=H),this._ossUpload=null,this._uploadCore(z,C.retry),C.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(C,N,G,H){if(!N||!G||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var K={accessKeyId:N,securityToken:H,accessKeySecret:G,videoId:C.object,requestId:C.ri,region:this.options.region},ie=this,z="refreshUploadAuth";C.isImage&&(z="getImageUploadAuth"),h.default[z](K,function(re){ie.setUploadAuthAndAddress(C,re.UploadAuth,UploadAddress),ie._state=a.VODSTATE.START},function(re){ie._error(C,{name:re.Code,code:re.Code,message:re.Message,requestId:re.RequestId})})}},{key:"_upload",value:function(C){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=this.options;if(C.retry=N,G.onUploadstarted&&!N)try{var H=this._getCheckoutpoint(C);H&&H.state!=a.UPLOADSTATE.UPLOADING&&(C.checkpoint=H,C.videoId=H.videoId),G.onUploadstarted(C)}catch(K){console.log(K)}}},{key:"_uploadCore",value:function(C){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(C.state=a.UPLOADSTATE.UPLOADING,!this._ossUpload){C.endpoint=C.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new r.default({bucket:C.bucket,endpoint:C.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(V,X){N._error.call(N,V,X)},oncomplete:function(V,X){N._complete.call(N,V,X)},onprogress:function(V,X,D){N._progress.call(N,V,X,D)}})}var G=b.default.getFileType(C.file.name),H=this._getCheckoutpoint(C),K="",ie="";H&&H.checkpoint&&(ie=H.state,K=H.videoId,H=H.checkpoint),H&&K==C.videoId&&ie!=a.UPLOADSTATE.UPLOADING&&(H.file=C.file,C.checkpoint=H,H.uploadId);var z=this._adjustPartSize(C);this._reportLog("20002",C,{ft:G,fs:C.file.size,bu:C.bucket,ok:C.object,vid:C.videoId||"",fn:C.file.name,fw:null,fh:null,ps:z});var re={headers:{"x-oss-notification":C.userData?C.userData:""},partSize:z,parallel:this.options.parallel};this._ossUpload.upload(C,re)}},{key:"_findUploadIndex",value:function(){for(var C=-1,N=0;N<this._uploadList.length;N++)if(this._uploadList[N].state==a.UPLOADSTATE.INIT){C=N;break}return C}},{key:"_error",value:function(C,N){if(N.name=="cancel")try{this.options.onUploadCanceled(C,N)}catch(H){console.log(H)}else{if(N.message.indexOf("InvalidAccessKeyIdError")>0||N.name=="SignatureDoesNotMatchError"||N.code=="SecurityTokenExpired"||N.code=="InvalidSecurityToken.Expired"||N.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=a.VODSTATE.EXPIRE,C.state=a.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(C,N)}catch(H){console.log(H)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var G=this;return setTimeout(function(){G._uploadCore(C,!0)},1e3*G._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(C),this._handleError(C,N)}}},{key:"_handleError",value:function(C,N){var G=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],H=a.UPLOADSTATE.FAIlURE;if(C.state!=a.UPLOADSTATE.CANCELED&&(C.state=a.UPLOADSTATE.FAIlURE,this._state=a.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(C,N.code,N.message)}catch(ie){console.log(ie)}if(G&&this._changeState(C,H),this._reportLog("20006",C,{code:N.name,message:N.message,requestId:N.requestId,fs:C.file.size,bu:C.bucket,ok:C.object,fn:C.file.name}),this._reportLog("20004",C,{requestId:N.requestId,fs:C.file.size,bu:C.bucket,ok:C.object,fn:C.file.name}),C.ri=S.default.create(),this._findUploadIndex()!=-1){var K=this;this._state=a.VODSTATE.START,setTimeout(function(){K.nextUpload()},100)}}},{key:"_complete",value:function(C,N){if(C.state=a.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(C)}catch(K){console.log(K)}var G=0;N&&N.res&&N.res.headers&&(G=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(C);var H=this;setTimeout(function(){H.nextUpload()},100),this._retryCount=0,this._reportLog("20003",C,{requestId:G})}},{key:"_progress",value:function(C,N,G){if(this.options.onUploadProgress)try{C.loaded=N.loaded,this.options.onUploadProgress(C,N.total,N.loaded)}catch(X){console.log(X)}var H=N.checkpoint,K=0;H&&(C.checkpoint=H,this._saveCheckoutpoint(C,H,a.UPLOADSTATE.UPLOADING),K=H.uploadId),this._retryCount=0;var ie=this._getPortNumber(H),z=0;if(G&&G.headers&&(z=G.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",C,{pn:ie,requestId:z}),N.loaded!=1&&this._reportLog("20005",C,{UploadId:K,pn:ie+1,pr:C.retry?1:0,fs:C.file.size,bu:C.bucket,ok:C.object,fn:C.file.name}),!this._invalidUserId&&!C.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var re={file:C.file,checkpoint:N,userId:this.options.userId,videoId:C.videoId,region:this.options.region,fileHash:C.fileHash};try{var V=this;O.default.upload(re,function(){},function(X){if((X=JSON.parse(X))&&X.Code=="InvalidParameter"&&X.Message.indexOf("UserId")>0){V._invalidUserId=!0;var D=X.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(D)}})}catch(X){console.log(X)}}}},{key:"_getPortNumber",value:function(C){if(C){var N=C.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(C){var N=this._getCheckoutpointKey(C);p.default.remove(N)}},{key:"_getCheckoutpoint",value:function(C){var N=this._getCheckoutpointKey(C),G=p.default.get(N);if(G)try{return JSON.parse(G)}catch(H){}return""}},{key:"_saveCheckoutpoint",value:function(C,N,G){if(N){var H=this._getCheckoutpointKey(C),K=C.file,ie={fileName:K.name,lastModified:K.lastModified,size:K.size,object:C.object,videoId:C.videoId,bucket:C.bucket,endpoint:C.endpoint,checkpoint:N,loaded:C.loaded,state:G};p.default.set(H,JSON.stringify(ie))}}},{key:"_changeState",value:function(C,N){var G=this._getCheckoutpoint(C);G&&((this._onbeforeunload=!0)&&(N=a.UPLOADSTATE.STOPED),this._saveCheckoutpoint(C,G.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(C){return"upload_"+C.file.lastModified+"_"+C.file.name+"_"+C.file.size}},{key:"_getCheckoutpointFromCloud",value:function(C,N,G){var H={userId:this.options.userId,uploadInfoList:[{FileName:C.file.name,FileSize:C.file.size,FileCreateTime:C.file.lastModified,FileHash:C.fileHash}],region:this.options.region};O.default.get(H,function(K){N(K)},G)}},{key:"_reportLog",value:function(C,N,G){G||(G={}),G.ri=N.ri,this._ut&&(G.ut=this._ut),this._log.log(C,G)}},{key:"_initEvent",value:function(){var C=this;window&&(window.onbeforeunload=function(N){if(C._onbeforeunload=!0,C._curIndex!=-1&&C._uploadList.length>C._curIndex){var G=C._uploadList[C._curIndex];C._changeState(G,a.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var C=0;C<this._uploadList.length;C++){var N=this._uploadList[C];N.state!=a.UPLOADSTATE.FAIlURE&&N.state!=a.UPLOADSTATE.STOPED||(N.state=a.UPLOADSTATE.INIT)}this._state=a.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(C){return C.file.size/this.options.partSize>1e4?C.file.size/9999:this.options.partSize}}]),P}());n.default=R},function(he,n,I){"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,I){"use strict";function T(e){return e&&e.__esModule?e:{default:e}}function f(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function e(o,s){for(var p=0;p<s.length;p++){var d=s[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}return function(o,s,p){return s&&e(o.prototype,s),p&&e(o,p),o}}(),a=I(3),i=I(17),l=(T(i),I(1)),r=(T(l),function(){function e(o,s){if(f(this,e),o){this._config=o,this.create(this._config),this._uploadInfo=null,this._callback={};var p=function(){};this._callback.onerror=s.onerror||p,this._callback.oncomplete=s.oncomplete||p,this._callback.onprogress=s.onprogress||p}}return v(e,[{key:"create",value:function(o){if(o.endpoint=o.endpoint||this._config.endpoint,o.bucket=o.bucket||this._config.bucket,!(o.AccessKeyId&&o.AccessKeySecret&&o.endpoint&&o.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var s={accessKeyId:o.AccessKeyId,accessKeySecret:o.AccessKeySecret,stsToken:o.SecurityToken,endpoint:o.endpoint||this._config.endpoint,bucket:o.bucket||this._config.bucket,secure:!0,cname:o.cname};o.timeout&&(s.timeout=o.timeout),this.oss=new OSS.Wrapper(s)}},{key:"abort",value:function(o){if(o.checkpoint){var s=o.checkpoint.uploadId;this.oss.abortMultipartUpload(o.object,s)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(o,s){this._uploadInfo=o;var p=this,d=function(w,b,m){return function(S){p._progress(w,b,m),S()}},c={parallel:s.parallel||this._config.parallel||a.UPLOADDEFAULT.PARALLEL,partSize:s.partSize||this._config.partSize||a.UPLOADDEFAULT.PARTSIZE,progress:d};s.headers&&(c.headers=s.headers),o.checkpoint&&(c.checkpoint=o.checkpoint),o.bucket||(this.oss.options.bucket=o.bucket),o.endpoint||(this.oss.options.endpoint=o.endpoint),this.oss.multipartUpload(o.object,o.file,c).then(function(w,b){p._complete(w)}).catch(function(w){p.oss.cancel&&(p.oss&&p.oss.isCancel()?console.log("oss is cancel as error"):p.oss.cancel()),p._error(w)})}},{key:"header",value:function(o,s,p){this.oss.get(o.object).then(function(d){s(d)}).catch(function(d){p(d)})}},{key:"_progress",value:function(o,s,p){this._callback.onprogress(this._uploadInfo,{loaded:o,total:this._uploadInfo.file.size,checkpoint:s},p)}},{key:"_error",value:function(o){this._callback.onerror(this._uploadInfo,o)}},{key:"_complete",value:function(o){this._callback.oncomplete(this._uploadInfo,o)}}]),e}());n.default=r},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"format",value:function(i){if(arguments.length<2)return null;for(var l=arguments[1],r=1;r<arguments.length;r++){var e=new RegExp("\\{"+(r-1)+"\\}","gm");l=l.replace(e,arguments[r+1])}return{code:i,message:l}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),a}();n.default=v},function(he,n,I){"use strict";(function(T){function f(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function i(l,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,o.key,o)}}return function(l,r,e){return r&&i(l.prototype,r),e&&i(l,e),l}}(),a=function(){function i(){f(this,i)}return v(i,null,[{key:"encode",value:function(l){return new T(l).toString("base64")}},{key:"decode",value:function(l){return new T(l,"base64").toString()}}]),i}();n.default=a}).call(n,I(19).Buffer)},function(he,n,I){"use strict";(function(T){function f(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(k,t){if(f()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(k=new Uint8Array(t),k.__proto__=a.prototype):(k===null&&(k=new a(t)),k.length=t),k}function a(k,t,u){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(k,t,u);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 i(this,k,t,u)}function i(k,t,u,A){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?p(k,t,u,A):typeof t=="string"?o(k,t,u):d(k,t)}function l(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 r(k,t,u,A){return l(t),t<=0?v(k,t):u!==void 0?typeof A=="string"?v(k,t).fill(u,A):v(k,t).fill(u):v(k,t)}function e(k,t){if(l(t),k=v(k,t<0?0:0|c(t)),!a.TYPED_ARRAY_SUPPORT)for(var u=0;u<t;++u)k[u]=0;return k}function o(k,t,u){if(typeof u=="string"&&u!==""||(u="utf8"),!a.isEncoding(u))throw new TypeError('"encoding" must be a valid string encoding');var A=0|b(t,u);k=v(k,A);var g=k.write(t,u);return g!==A&&(k=k.slice(0,g)),k}function s(k,t){var u=t.length<0?0:0|c(t.length);k=v(k,u);for(var A=0;A<u;A+=1)k[A]=255&t[A];return k}function p(k,t,u,A){if(t.byteLength,u<0||t.byteLength<u)throw new RangeError("'offset' is out of bounds");if(t.byteLength<u+(A||0))throw new RangeError("'length' is out of bounds");return t=u===void 0&&A===void 0?new Uint8Array(t):A===void 0?new Uint8Array(t,u):new Uint8Array(t,u,A),a.TYPED_ARRAY_SUPPORT?(k=t,k.__proto__=a.prototype):k=s(k,t),k}function d(k,t){if(a.isBuffer(t)){var u=0|c(t.length);return k=v(k,u),k.length===0||t.copy(k,0,0,u),k}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||ee(t.length)?v(k,0):s(k,t);if(t.type==="Buffer"&&$(t.data))return s(k,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(k){if(k>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|k}function w(k){return+k!=k&&(k=0),a.alloc(+k)}function b(k,t){if(a.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 u=k.length;if(u===0)return 0;for(var A=!1;;)switch(t){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":case void 0:return ne(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*u;case"hex":return u>>>1;case"base64":return J(k).length;default:if(A)return ne(k).length;t=(""+t).toLowerCase(),A=!0}}function m(k,t,u){var A=!1;if((t===void 0||t<0)&&(t=0),t>this.length)return"";if((u===void 0||u>this.length)&&(u=this.length),u<=0)return"";if(u>>>=0,t>>>=0,u<=t)return"";for(k||(k="utf8");;)switch(k){case"hex":return ie(this,t,u);case"utf8":case"utf-8":return N(this,t,u);case"ascii":return H(this,t,u);case"latin1":case"binary":return K(this,t,u);case"base64":return C(this,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,u);default:if(A)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),A=!0}}function S(k,t,u){var A=k[t];k[t]=k[u],k[u]=A}function x(k,t,u,A,g){if(k.length===0)return-1;if(typeof u=="string"?(A=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,isNaN(u)&&(u=g?0:k.length-1),u<0&&(u=k.length+u),u>=k.length){if(g)return-1;u=k.length-1}else if(u<0){if(!g)return-1;u=0}if(typeof t=="string"&&(t=a.from(t,A)),a.isBuffer(t))return t.length===0?-1:h(k,t,u,A,g);if(typeof t=="number")return t&=255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(k,t,u):Uint8Array.prototype.lastIndexOf.call(k,t,u):h(k,[t],u,A,g);throw new TypeError("val must be string, number or Buffer")}function h(k,t,u,A,g){function E(me,ce){return q===1?me[ce]:me.readUInt16BE(ce*q)}var q=1,W=k.length,le=t.length;if(A!==void 0&&((A=String(A).toLowerCase())==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(k.length<2||t.length<2)return-1;q=2,W/=2,le/=2,u/=2}var ae;if(g){var pe=-1;for(ae=u;ae<W;ae++)if(E(k,ae)===E(t,pe===-1?0:ae-pe)){if(pe===-1&&(pe=ae),ae-pe+1===le)return pe*q}else pe!==-1&&(ae-=ae-pe),pe=-1}else for(u+le>W&&(u=W-le),ae=u;ae>=0;ae--){for(var de=!0,ve=0;ve<le;ve++)if(E(k,ae+ve)!==E(t,ve)){de=!1;break}if(de)return ae}return-1}function _(k,t,u,A){u=Number(u)||0;var g=k.length-u;A?(A=Number(A))>g&&(A=g):A=g;var E=t.length;if(E%2!=0)throw new TypeError("Invalid hex string");A>E/2&&(A=E/2);for(var q=0;q<A;++q){var W=parseInt(t.substr(2*q,2),16);if(isNaN(W))return q;k[u+q]=W}return q}function O(k,t,u,A){return Q(ne(t,k.length-u),k,u,A)}function j(k,t,u,A){return Q(se(t),k,u,A)}function y(k,t,u,A){return j(k,t,u,A)}function R(k,t,u,A){return Q(J(t),k,u,A)}function P(k,t,u,A){return Q(fe(t,k.length-u),k,u,A)}function C(k,t,u){return t===0&&u===k.length?F.fromByteArray(k):F.fromByteArray(k.slice(t,u))}function N(k,t,u){u=Math.min(k.length,u);for(var A=[],g=t;g<u;){var E=k[g],q=null,W=E>239?4:E>223?3:E>191?2:1;if(g+W<=u){var le,ae,pe,de;switch(W){case 1:E<128&&(q=E);break;case 2:le=k[g+1],(192&le)==128&&(de=(31&E)<<6|63&le)>127&&(q=de);break;case 3:le=k[g+1],ae=k[g+2],(192&le)==128&&(192&ae)==128&&(de=(15&E)<<12|(63&le)<<6|63&ae)>2047&&(de<55296||de>57343)&&(q=de);break;case 4:le=k[g+1],ae=k[g+2],pe=k[g+3],(192&le)==128&&(192&ae)==128&&(192&pe)==128&&(de=(15&E)<<18|(63&le)<<12|(63&ae)<<6|63&pe)>65535&&de<1114112&&(q=de)}}q===null?(q=65533,W=1):q>65535&&(q-=65536,A.push(q>>>10&1023|55296),q=56320|1023&q),A.push(q),g+=W}return G(A)}function G(k){var t=k.length;if(t<=Z)return String.fromCharCode.apply(String,k);for(var u="",A=0;A<t;)u+=String.fromCharCode.apply(String,k.slice(A,A+=Z));return u}function H(k,t,u){var A="";u=Math.min(k.length,u);for(var g=t;g<u;++g)A+=String.fromCharCode(127&k[g]);return A}function K(k,t,u){var A="";u=Math.min(k.length,u);for(var g=t;g<u;++g)A+=String.fromCharCode(k[g]);return A}function ie(k,t,u){var A=k.length;(!t||t<0)&&(t=0),(!u||u<0||u>A)&&(u=A);for(var g="",E=t;E<u;++E)g+=oe(k[E]);return g}function z(k,t,u){for(var A=k.slice(t,u),g="",E=0;E<A.length;E+=2)g+=String.fromCharCode(A[E]+256*A[E+1]);return g}function re(k,t,u){if(k%1!=0||k<0)throw new RangeError("offset is not uint");if(k+t>u)throw new RangeError("Trying to access beyond buffer length")}function V(k,t,u,A,g,E){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>g||t<E)throw new RangeError('"value" argument is out of bounds');if(u+A>k.length)throw new RangeError("Index out of range")}function X(k,t,u,A){t<0&&(t=65535+t+1);for(var g=0,E=Math.min(k.length-u,2);g<E;++g)k[u+g]=(t&255<<8*(A?g:1-g))>>>8*(A?g:1-g)}function D(k,t,u,A){t<0&&(t=4294967295+t+1);for(var g=0,E=Math.min(k.length-u,4);g<E;++g)k[u+g]=t>>>8*(A?g:3-g)&255}function L(k,t,u,A,g,E){if(u+A>k.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function M(k,t,u,A,g){return g||L(k,t,u,4,34028234663852886e22,-34028234663852886e22),U.write(k,t,u,A,23,4),u+4}function B(k,t,u,A,g){return g||L(k,t,u,8,17976931348623157e292,-17976931348623157e292),U.write(k,t,u,A,52,8),u+8}function te(k){if(k=Y(k).replace(ue,""),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 u,A=k.length,g=null,E=[],q=0;q<A;++q){if((u=k.charCodeAt(q))>55295&&u<57344){if(!g){if(u>56319){(t-=3)>-1&&E.push(239,191,189);continue}if(q+1===A){(t-=3)>-1&&E.push(239,191,189);continue}g=u;continue}if(u<56320){(t-=3)>-1&&E.push(239,191,189),g=u;continue}u=65536+(g-55296<<10|u-56320)}else g&&(t-=3)>-1&&E.push(239,191,189);if(g=null,u<128){if((t-=1)<0)break;E.push(u)}else if(u<2048){if((t-=2)<0)break;E.push(u>>6|192,63&u|128)}else if(u<65536){if((t-=3)<0)break;E.push(u>>12|224,u>>6&63|128,63&u|128)}else{if(!(u<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;E.push(u>>18|240,u>>12&63|128,u>>6&63|128,63&u|128)}}return E}function se(k){for(var t=[],u=0;u<k.length;++u)t.push(255&k.charCodeAt(u));return t}function fe(k,t){for(var u,A,g,E=[],q=0;q<k.length&&!((t-=2)<0);++q)u=k.charCodeAt(q),A=u>>8,g=u%256,E.push(g),E.push(A);return E}function J(k){return F.toByteArray(te(k))}function Q(k,t,u,A){for(var g=0;g<A&&!(g+u>=t.length||g>=k.length);++g)t[g+u]=k[g];return g}function ee(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 F=I(21),U=I(22),$=I(23);n.Buffer=a,n.SlowBuffer=w,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=T.TYPED_ARRAY_SUPPORT!==void 0?T.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=f(),a.poolSize=8192,a._augment=function(k){return k.__proto__=a.prototype,k},a.from=function(k,t,u){return i(null,k,t,u)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(k,t,u){return r(null,k,t,u)},a.allocUnsafe=function(k){return e(null,k)},a.allocUnsafeSlow=function(k){return e(null,k)},a.isBuffer=function(k){return!(k==null||!k._isBuffer)},a.compare=function(k,t){if(!a.isBuffer(k)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(k===t)return 0;for(var u=k.length,A=t.length,g=0,E=Math.min(u,A);g<E;++g)if(k[g]!==t[g]){u=k[g],A=t[g];break}return u<A?-1:A<u?1:0},a.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}},a.concat=function(k,t){if(!$(k))throw new TypeError('"list" argument must be an Array of Buffers');if(k.length===0)return a.alloc(0);var u;if(t===void 0)for(t=0,u=0;u<k.length;++u)t+=k[u].length;var A=a.allocUnsafe(t),g=0;for(u=0;u<k.length;++u){var E=k[u];if(!a.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(A,g),g+=E.length}return A},a.byteLength=b,a.prototype._isBuffer=!0,a.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)S(this,t,t+1);return this},a.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)S(this,t,t+3),S(this,t+1,t+2);return this},a.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)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},a.prototype.toString=function(){var k=0|this.length;return k===0?"":arguments.length===0?N(this,0,k):m.apply(this,arguments)},a.prototype.equals=function(k){if(!a.isBuffer(k))throw new TypeError("Argument must be a Buffer");return this===k||a.compare(this,k)===0},a.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+">"},a.prototype.compare=function(k,t,u,A,g){if(!a.isBuffer(k))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),u===void 0&&(u=k?k.length:0),A===void 0&&(A=0),g===void 0&&(g=this.length),t<0||u>k.length||A<0||g>this.length)throw new RangeError("out of range index");if(A>=g&&t>=u)return 0;if(A>=g)return-1;if(t>=u)return 1;if(t>>>=0,u>>>=0,A>>>=0,g>>>=0,this===k)return 0;for(var E=g-A,q=u-t,W=Math.min(E,q),le=this.slice(A,g),ae=k.slice(t,u),pe=0;pe<W;++pe)if(le[pe]!==ae[pe]){E=le[pe],q=ae[pe];break}return E<q?-1:q<E?1:0},a.prototype.includes=function(k,t,u){return this.indexOf(k,t,u)!==-1},a.prototype.indexOf=function(k,t,u){return x(this,k,t,u,!0)},a.prototype.lastIndexOf=function(k,t,u){return x(this,k,t,u,!1)},a.prototype.write=function(k,t,u,A){if(t===void 0)A="utf8",u=this.length,t=0;else if(u===void 0&&typeof t=="string")A=t,u=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(u)?(u|=0,A===void 0&&(A="utf8")):(A=u,u=void 0)}var g=this.length-t;if((u===void 0||u>g)&&(u=g),k.length>0&&(u<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var E=!1;;)switch(A){case"hex":return _(this,k,t,u);case"utf8":case"utf-8":return O(this,k,t,u);case"ascii":return j(this,k,t,u);case"latin1":case"binary":return y(this,k,t,u);case"base64":return R(this,k,t,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,k,t,u);default:if(E)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),E=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;a.prototype.slice=function(k,t){var u=this.length;k=~~k,t=t===void 0?u:~~t,k<0?(k+=u)<0&&(k=0):k>u&&(k=u),t<0?(t+=u)<0&&(t=0):t>u&&(t=u),t<k&&(t=k);var A;if(a.TYPED_ARRAY_SUPPORT)A=this.subarray(k,t),A.__proto__=a.prototype;else{var g=t-k;A=new a(g,void 0);for(var E=0;E<g;++E)A[E]=this[E+k]}return A},a.prototype.readUIntLE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k],g=1,E=0;++E<t&&(g*=256);)A+=this[k+E]*g;return A},a.prototype.readUIntBE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k+--t],g=1;t>0&&(g*=256);)A+=this[k+--t]*g;return A},a.prototype.readUInt8=function(k,t){return t||re(k,1,this.length),this[k]},a.prototype.readUInt16LE=function(k,t){return t||re(k,2,this.length),this[k]|this[k+1]<<8},a.prototype.readUInt16BE=function(k,t){return t||re(k,2,this.length),this[k]<<8|this[k+1]},a.prototype.readUInt32LE=function(k,t){return t||re(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},a.prototype.readUInt32BE=function(k,t){return t||re(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},a.prototype.readIntLE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=this[k],g=1,E=0;++E<t&&(g*=256);)A+=this[k+E]*g;return g*=128,A>=g&&(A-=Math.pow(2,8*t)),A},a.prototype.readIntBE=function(k,t,u){k|=0,t|=0,u||re(k,t,this.length);for(var A=t,g=1,E=this[k+--A];A>0&&(g*=256);)E+=this[k+--A]*g;return g*=128,E>=g&&(E-=Math.pow(2,8*t)),E},a.prototype.readInt8=function(k,t){return t||re(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},a.prototype.readInt16LE=function(k,t){t||re(k,2,this.length);var u=this[k]|this[k+1]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt16BE=function(k,t){t||re(k,2,this.length);var u=this[k+1]|this[k]<<8;return 32768&u?4294901760|u:u},a.prototype.readInt32LE=function(k,t){return t||re(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},a.prototype.readInt32BE=function(k,t){return t||re(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},a.prototype.readFloatLE=function(k,t){return t||re(k,4,this.length),U.read(this,k,!0,23,4)},a.prototype.readFloatBE=function(k,t){return t||re(k,4,this.length),U.read(this,k,!1,23,4)},a.prototype.readDoubleLE=function(k,t){return t||re(k,8,this.length),U.read(this,k,!0,52,8)},a.prototype.readDoubleBE=function(k,t){return t||re(k,8,this.length),U.read(this,k,!1,52,8)},a.prototype.writeUIntLE=function(k,t,u,A){(k=+k,t|=0,u|=0,!A)&&V(this,k,t,u,Math.pow(2,8*u)-1,0);var g=1,E=0;for(this[t]=255&k;++E<u&&(g*=256);)this[t+E]=k/g&255;return t+u},a.prototype.writeUIntBE=function(k,t,u,A){(k=+k,t|=0,u|=0,!A)&&V(this,k,t,u,Math.pow(2,8*u)-1,0);var g=u-1,E=1;for(this[t+g]=255&k;--g>=0&&(E*=256);)this[t+g]=k/E&255;return t+u},a.prototype.writeUInt8=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),this[t]=255&k,t+1},a.prototype.writeUInt16LE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):X(this,k,t,!0),t+2},a.prototype.writeUInt16BE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):X(this,k,t,!1),t+2},a.prototype.writeUInt32LE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=k>>>24,this[t+2]=k>>>16,this[t+1]=k>>>8,this[t]=255&k):D(this,k,t,!0),t+4},a.prototype.writeUInt32BE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):D(this,k,t,!1),t+4},a.prototype.writeIntLE=function(k,t,u,A){if(k=+k,t|=0,!A){var g=Math.pow(2,8*u-1);V(this,k,t,u,g-1,-g)}var E=0,q=1,W=0;for(this[t]=255&k;++E<u&&(q*=256);)k<0&&W===0&&this[t+E-1]!==0&&(W=1),this[t+E]=(k/q>>0)-W&255;return t+u},a.prototype.writeIntBE=function(k,t,u,A){if(k=+k,t|=0,!A){var g=Math.pow(2,8*u-1);V(this,k,t,u,g-1,-g)}var E=u-1,q=1,W=0;for(this[t+E]=255&k;--E>=0&&(q*=256);)k<0&&W===0&&this[t+E+1]!==0&&(W=1),this[t+E]=(k/q>>0)-W&255;return t+u},a.prototype.writeInt8=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(k=Math.floor(k)),k<0&&(k=255+k+1),this[t]=255&k,t+1},a.prototype.writeInt16LE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8):X(this,k,t,!0),t+2},a.prototype.writeInt16BE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>8,this[t+1]=255&k):X(this,k,t,!1),t+2},a.prototype.writeInt32LE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&k,this[t+1]=k>>>8,this[t+2]=k>>>16,this[t+3]=k>>>24):D(this,k,t,!0),t+4},a.prototype.writeInt32BE=function(k,t,u){return k=+k,t|=0,u||V(this,k,t,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),a.TYPED_ARRAY_SUPPORT?(this[t]=k>>>24,this[t+1]=k>>>16,this[t+2]=k>>>8,this[t+3]=255&k):D(this,k,t,!1),t+4},a.prototype.writeFloatLE=function(k,t,u){return M(this,k,t,!0,u)},a.prototype.writeFloatBE=function(k,t,u){return M(this,k,t,!1,u)},a.prototype.writeDoubleLE=function(k,t,u){return B(this,k,t,!0,u)},a.prototype.writeDoubleBE=function(k,t,u){return B(this,k,t,!1,u)},a.prototype.copy=function(k,t,u,A){if(u||(u=0),A||A===0||(A=this.length),t>=k.length&&(t=k.length),t||(t=0),A>0&&A<u&&(A=u),A===u)return 0;if(k.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),k.length-t<A-u&&(A=k.length-t+u);var g,E=A-u;if(this===k&&u<t&&t<A)for(g=E-1;g>=0;--g)k[g+t]=this[g+u];else if(E<1e3||!a.TYPED_ARRAY_SUPPORT)for(g=0;g<E;++g)k[g+t]=this[g+u];else Uint8Array.prototype.set.call(k,this.subarray(u,u+E),t);return E},a.prototype.fill=function(k,t,u,A){if(typeof k=="string"){if(typeof t=="string"?(A=t,t=0,u=this.length):typeof u=="string"&&(A=u,u=this.length),k.length===1){var g=k.charCodeAt(0);g<256&&(k=g)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!a.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof k=="number"&&(k&=255);if(t<0||this.length<t||this.length<u)throw new RangeError("Out of range index");if(u<=t)return this;t>>>=0,u=u===void 0?this.length:u>>>0,k||(k=0);var E;if(typeof k=="number")for(E=t;E<u;++E)this[E]=k;else{var q=a.isBuffer(k)?k:ne(new a(k,A).toString()),W=q.length;for(E=0;E<u-t;++E)this[E+t]=q[E%W]}return this};var ue=/[^+\/0-9A-Za-z-_]/g}).call(n,I(20))},function(he,n){var I;I=function(){return this}();try{I=I||Function("return this")()||(0,eval)("this")}catch(T){typeof window=="object"&&(I=window)}he.exports=I},function(he,n,I){"use strict";function T(c){var w=c.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return c[w-2]==="="?2:c[w-1]==="="?1:0}function f(c){return 3*c.length/4-T(c)}function v(c){var w,b,m,S,x,h=c.length;S=T(c),x=new o(3*h/4-S),b=S>0?h-4:h;var _=0;for(w=0;w<b;w+=4)m=e[c.charCodeAt(w)]<<18|e[c.charCodeAt(w+1)]<<12|e[c.charCodeAt(w+2)]<<6|e[c.charCodeAt(w+3)],x[_++]=m>>16&255,x[_++]=m>>8&255,x[_++]=255&m;return S===2?(m=e[c.charCodeAt(w)]<<2|e[c.charCodeAt(w+1)]>>4,x[_++]=255&m):S===1&&(m=e[c.charCodeAt(w)]<<10|e[c.charCodeAt(w+1)]<<4|e[c.charCodeAt(w+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x}function a(c){return r[c>>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]}function i(c,w,b){for(var m,S=[],x=w;x<b;x+=3)m=(c[x]<<16)+(c[x+1]<<8)+c[x+2],S.push(a(m));return S.join("")}function l(c){for(var w,b=c.length,m=b%3,S="",x=[],h=0,_=b-m;h<_;h+=16383)x.push(i(c,h,h+16383>_?_:h+16383));return m===1?(w=c[b-1],S+=r[w>>2],S+=r[w<<4&63],S+="=="):m===2&&(w=(c[b-2]<<8)+c[b-1],S+=r[w>>10],S+=r[w>>4&63],S+=r[w<<2&63],S+="="),x.push(S),x.join("")}n.byteLength=f,n.toByteArray=v,n.fromByteArray=l;for(var r=[],e=[],o=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=s.length;p<d;++p)r[p]=s[p],e[s.charCodeAt(p)]=p;e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(he,n){n.read=function(I,T,f,v,a){var i,l,r=8*a-v-1,e=(1<<r)-1,o=e>>1,s=-7,p=f?a-1:0,d=f?-1:1,c=I[T+p];for(p+=d,i=c&(1<<-s)-1,c>>=-s,s+=r;s>0;i=256*i+I[T+p],p+=d,s-=8);for(l=i&(1<<-s)-1,i>>=-s,s+=v;s>0;l=256*l+I[T+p],p+=d,s-=8);if(i===0)i=1-o;else{if(i===e)return l?NaN:1/0*(c?-1:1);l+=Math.pow(2,v),i-=o}return(c?-1:1)*l*Math.pow(2,i-v)},n.write=function(I,T,f,v,a,i){var l,r,e,o=8*i-a-1,s=(1<<o)-1,p=s>>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=v?0:i-1,w=v?1:-1,b=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(r=isNaN(T)?1:0,l=s):(l=Math.floor(Math.log(T)/Math.LN2),T*(e=Math.pow(2,-l))<1&&(l--,e*=2),T+=l+p>=1?d/e:d*Math.pow(2,1-p),T*e>=2&&(l++,e/=2),l+p>=s?(r=0,l=s):l+p>=1?(r=(T*e-1)*Math.pow(2,a),l+=p):(r=T*Math.pow(2,p-1)*Math.pow(2,a),l=0));a>=8;I[f+c]=255&r,c+=w,r/=256,a-=8);for(l=l<<a|r,o+=a;o>0;I[f+c]=255&l,c+=w,l/=256,o-=8);I[f+c-w]|=128*b}},function(he,n){var I={}.toString;he.exports=Array.isArray||function(T){return I.call(T)=="[object Array]"}},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"set",value:function(i,l){try{window.localStorage&&localStorage.setItem(i,l)}catch(r){window[i+"_localStorage"]=l}}},{key:"get",value:function(i){try{if(window.localStorage)return localStorage.getItem(i)}catch(l){return window[i+"_localStorage"]}return""}},{key:"remove",value:function(i){try{window.localStorage&&localStorage.removeItem(i)}catch(l){delete window[i+"_localStorage"]}}}]),a}();n.default=v},function(he,n,I){"use strict";function T(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function a(i,l){for(var r=0;r<l.length;r++){var e=l[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(i,l,r){return l&&a(i.prototype,l),r&&a(i,r),i}}(),v=function(){function a(){T(this,a)}return f(a,null,[{key:"get",value:function(i){for(var l=i+"",r=document.cookie.split(";"),e=0;e<r.length;e++){var o=r[e].trim();if(o.indexOf(l)==0)return unescape(o.substring(l.length+1,o.length))}return""}},{key:"set",value:function(i,l,r){var e=new Date;e.setTime(e.getTime()+24*r*60*60*1e3);var o="expires="+e.toGMTString();document.cookie=i+"="+escape(l)+"; "+o}}]),a}();n.default=v},function(he,n,I){"use strict";function T(o){return o&&o.__esModule?o:{default:o}}function f(o,s){if(!(o instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function o(s,p){for(var d=0;d<p.length;d++){var c=p[d];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(s,c.key,c)}}return function(s,p,d){return p&&o(s.prototype,p),d&&o(s,d),s}}(),a=I(8),i=T(a),l=I(9),r=T(l),e=function(){function o(){f(this,o)}return v(o,null,[{key:"refreshUploadAuth",value:function(s,p,d){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"RefreshUploadVideo",VideoId:s.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId},b=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),m="https://vod."+s.region+".aliyuncs.com/?"+b;i.default.get(m,function(S){var S=JSON.parse(S);p&&p(S)},function(S){if(d){var x=JSON.parse(S);d(x)}})}},{key:"getUploadAuth",value:function(s,p,d){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"CreateUploadVideo",Title:s.title,FileName:s.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId};s.fileSize&&(w.FileSize=s.fileSize),s.description&&(w.Description=s.description),s.cateId&&(w.CateId=s.cateId),s.tags&&(w.Tags=s.tags),s.templateGroupId&&(w.TemplateGroupId=s.templateGroupId),s.storageLocation&&(w.StorageLocation=s.storageLocation),s.coverUrl&&(w.CoverURL=s.coverUrl),s.transCodeMode&&(w.TransCodeMode=s.transCodeMode),s.userData&&(w.UserData=JSON.stringify(s.userData));var b=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),m="https://vod."+s.region+".aliyuncs.com/?"+b;i.default.get(m,function(S){try{S=JSON.parse(S)}catch(x){if(d)return void d({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}p&&p(S)},function(S){if(d){var x={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{x=JSON.parse(S)}catch(h){}d(x)}})}},{key:"getImageUploadAuth",value:function(s,p,d){var c=(r.default.randomUUID(),r.default.randomUUID()),w={AccessKeyId:s.accessKeyId,SecurityToken:s.securityToken,Action:"CreateUploadImage",ImageType:s.imageType?s.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:c,RequestId:s.requestId};s.title&&(w.Title=s.title),s.imageExt&&(w.ImageExt=s.imageExt),s.tags&&(w.Tags=s.tags),s.storageLocation&&(w.StorageLocation=s.storageLocation);var b=r.default.makeUTF8sort(w,"=","&")+"&Signature="+r.default.aliyunEncodeURI(r.default.makeChangeSiga(w,s.accessKeySecret)),m="https://vod."+s.region+".aliyuncs.com/?"+b;i.default.get(m,function(S){S=JSON.parse(S),p&&p(S)},function(S){if(d){var x=JSON.parse(S);d(x)}})}}]),o}();n.default=e},function(he,n,I){!function(T,f,v){he.exports=n=f(I(0),I(28),I(29))}(0,function(T){return T.HmacSHA1})},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return function(){var f=T,v=f.lib,a=v.WordArray,i=v.Hasher,l=f.algo,r=[],e=l.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,s){for(var p=this._hash.words,d=p[0],c=p[1],w=p[2],b=p[3],m=p[4],S=0;S<80;S++){if(S<16)r[S]=0|o[s+S];else{var x=r[S-3]^r[S-8]^r[S-14]^r[S-16];r[S]=x<<1|x>>>31}var h=(d<<5|d>>>27)+m+r[S];h+=S<20?1518500249+(c&w|~c&b):S<40?1859775393+(c^w^b):S<60?(c&w|c&b|w&b)-1894007588:(c^w^b)-899497514,m=b,b=w,w=c<<30|c>>>2,c=d,d=h}p[0]=p[0]+d|0,p[1]=p[1]+c|0,p[2]=p[2]+w|0,p[3]=p[3]+b|0,p[4]=p[4]+m|0},_doFinalize:function(){var o=this._data,s=o.words,p=8*this._nDataBytes,d=8*o.sigBytes;return s[d>>>5]|=128<<24-d%32,s[14+(d+64>>>9<<4)]=Math.floor(p/4294967296),s[15+(d+64>>>9<<4)]=p,o.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var o=i.clone.call(this);return o._hash=this._hash.clone(),o}});f.SHA1=i._createHelper(e),f.HmacSHA1=i._createHmacHelper(e)}(),T.SHA1})},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){!function(){var f=T,v=f.lib,a=v.Base,i=f.enc,l=i.Utf8,r=f.algo;r.HMAC=a.extend({init:function(e,o){e=this._hasher=new e.init,typeof o=="string"&&(o=l.parse(o));var s=e.blockSize,p=4*s;o.sigBytes>p&&(o=e.finalize(o)),o.clamp();for(var d=this._oKey=o.clone(),c=this._iKey=o.clone(),w=d.words,b=c.words,m=0;m<s;m++)w[m]^=1549556828,b[m]^=909522486;d.sigBytes=c.sigBytes=p,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var o=this._hasher,s=o.finalize(e);return o.reset(),o.finalize(this._oKey.clone().concat(s))}})}()})},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return function(){function f(r,e,o){for(var s=[],p=0,d=0;d<e;d++)if(d%4){var c=o[r.charCodeAt(d-1)]<<d%4*2,w=o[r.charCodeAt(d)]>>>6-d%4*2;s[p>>>2]|=(c|w)<<24-p%4*8,p++}return i.create(s,p)}var v=T,a=v.lib,i=a.WordArray,l=v.enc;l.Base64={stringify:function(r){var e=r.words,o=r.sigBytes,s=this._map;r.clamp();for(var p=[],d=0;d<o;d+=3)for(var c=e[d>>>2]>>>24-d%4*8&255,w=e[d+1>>>2]>>>24-(d+1)%4*8&255,b=e[d+2>>>2]>>>24-(d+2)%4*8&255,m=c<<16|w<<8|b,S=0;S<4&&d+.75*S<o;S++)p.push(s.charAt(m>>>6*(3-S)&63));var x=s.charAt(64);if(x)for(;p.length%4;)p.push(x);return p.join("")},parse:function(r){var e=r.length,o=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var p=0;p<o.length;p++)s[o.charCodeAt(p)]=p}var d=o.charAt(64);if(d){var c=r.indexOf(d);c!==-1&&(e=c)}return f(r,e,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),T.enc.Base64})},function(he,n,I){"use strict";function T(_){return _&&_.__esModule?_:{default:_}}function f(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var v=function(){function _(O,j){for(var y=0;y<j.length;y++){var R=j[y];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(O,R.key,R)}}return function(O,j,y){return j&&_(O.prototype,j),y&&_(O,y),O}}(),a=I(8),i=T(a),l=I(7),r=T(l),e=I(4),o=T(e),s=I(6),p=T(s),d=I(1),c=T(d),w=I(9),b=T(w),m=I(2),S=I(11),x=I(10),h=function(){function _(){f(this,_)}return v(_,null,[{key:"getAuthInfo",value:function(O,j,y){var R=O+"|f#Ylm&^1TppeRhLg|"+y;return j&&(R=O+"|"+j+"|f#Ylm&^1TppeRhLg|"+y),m(x.parse(R)).toString(S)}},{key:"upload",value:function(O,j,y){var R=c.default.ISODateString(new Date),P=Math.floor(new Date().valueOf()/1e3),C=o.default.getClientId();C=o.default.setClientId(C);var N=_.getAuthInfo(O.userId,C,P),G=b.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:r.default.browser.name+(r.default.browser.version||""),AppVersion:p.default.version,AuthTimestamp:P,Timestamp:R,AuthInfo:N,FileName:O.file.name,FileSize:O.file.size,FileCreateTime:O.file.lastModified,FileHash:O.fileHash,UploadId:O.checkpoint.checkpoint.uploadId,PartSize:O.checkpoint.checkpoint.partSize,DonePartsCount:O.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(O.checkpoint),UploadRatio:O.checkpoint.loaded,UserId:O.userId,VideoId:O.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};C&&(H.ClientId=C);var K=b.default.makeUTF8sort(H,"=","&")+"&Signature="+b.default.aliyunEncodeURI(b.default.makeChangeSiga(H,O.accessKeySecret)),ie="https://vod."+O.region+".aliyuncs.com/?"+K;i.default.get(ie,function(z){j&&j()},function(z){z&&(y(z),console.log(z))})}},{key:"get",value:function(O,j,y){var R=c.default.ISODateString(new Date),P=Math.floor(new Date().valueOf()/1e3),C=o.default.getClientId(),N=_.getAuthInfo(O.userId,C,P),G=b.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:r.default.browser.name+(r.default.browser.version||""),AppVersion:p.default.version,AuthTimestamp:P,Timestamp:R,AuthInfo:N,UserId:O.userId,UploadInfoList:JSON.stringify(O.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:G};C&&(H.ClientId=C);var K=b.default.makeUTF8sort(H,"=","&")+"&Signature="+b.default.aliyunEncodeURI(b.default.makeChangeSiga(H,O.accessKeySecret)),ie="https://vod."+O.region+".aliyuncs.com/?"+K;i.default.get(ie,function(z){var re={},V=C;z=z?JSON.parse(z):{},z.UploadProgress&&z.UploadProgress.UploadProgressList&&z.UploadProgress.UploadProgressList.length>0&&(re=z.UploadProgress.UploadProgressList[0],V=re.ClientId),o.default.setClientId(V),j&&j(re)},function(z){z&&(y(z),console.log(z))})}}]),_}();n.default=h},function(he,n,I){"use strict";function T(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function l(r,e){for(var o=0;o<e.length;o++){var s=e[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,e,o){return e&&l(r.prototype,e),o&&l(r,o),r}}(),v=I(2),a=I(33),i=(I(11),function(){function l(){T(this,l)}return f(l,null,[{key:"getMd5",value:function(r,e,o){var s=new FileReader;s.onload=function(c){try{if(c&&c.target){var w=v(a.parse(c.target.result)),b=w.toString();e(b)}}catch(m){console.log(m)}},s.onerror=function(c){console.log(c),errorCallback(c)};var p=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,d=p.call(r,0,1024);s.readAsBinaryString(d)}}]),l}());n.default=i},function(he,n,I){!function(T,f){he.exports=n=f(I(0))}(0,function(T){return T.enc.Latin1})}])}).call(this,ge("IyRk"))}}]);
|