You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
502 KiB
51 lines
502 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[3220],{65030:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Z:function(){return oe}});var ue=ae(33885),n=ae(42978),k=ae(75931),S=ae(43403),d=ae(92310),m=ae.n(d),i=ae(29301),s=ae(76846),f=ae(96452),o=ae(6089),t=ae(80402),r=ae(34280),u=ae(49658),c=ae(59301),p=ae(54476),l=ae(77900),T=ae(8654);function x(L){var j=L.prefixCls,X=L.align,Q=L.arrow,ie=L.arrowPos,C=Q||{},e=C.className,a=C.content,A=ie.x,g=A===void 0?0:A,y=ie.y,V=y===void 0?0:y,q=c.useRef();if(!X||!X.points)return null;var le={position:"absolute"};if(X.autoArrow!==!1){var pe=X.points[0],he=X.points[1],me=pe[0],be=pe[1],ve=he[0],de=he[1];me===ve||!["t","b"].includes(me)?le.top=V:me==="t"?le.top=0:le.bottom=0,be===de||!["l","r"].includes(be)?le.left=g:be==="l"?le.left=0:le.right=0}return c.createElement("div",{ref:q,className:m()("".concat(j,"-arrow"),e),style:le},a)}function v(L){var j=L.prefixCls,X=L.open,Q=L.zIndex,ie=L.mask,C=L.motion;return ie?c.createElement(l.default,(0,p.Z)({},C,{motionAppear:!0,visible:X,removeOnLeave:!0}),function(e){var a=e.className;return c.createElement("div",{style:{zIndex:Q},className:m()("".concat(j,"-mask"),a)})}):null}var w=c.memo(function(L){var j=L.children;return j},function(L,j){return j.cache}),E=w,h=c.forwardRef(function(L,j){var X=L.popup,Q=L.className,ie=L.prefixCls,C=L.style,e=L.target,a=L.onVisibleChanged,A=L.open,g=L.keepDom,y=L.fresh,V=L.onClick,q=L.mask,le=L.arrow,pe=L.arrowPos,he=L.align,me=L.motion,be=L.maskMotion,ve=L.forceRender,de=L.getPopupContainer,ye=L.autoDestroy,_e=L.portal,ge=L.zIndex,xe=L.onMouseEnter,Ie=L.onMouseLeave,Me=L.onPointerEnter,ze=L.onPointerDownCapture,We=L.ready,Te=L.offsetX,Ae=L.offsetY,De=L.offsetR,He=L.offsetB,Re=L.onAlign,Le=L.onPrepare,Se=L.stretch,Xe=L.targetWidth,$e=L.targetHeight,Ge=typeof X=="function"?X():X,Oe=A||g,ht=(de==null?void 0:de.length)>0,Lt=c.useState(!de||!ht),bt=(0,n.Z)(Lt,2),Qe=bt[0],Nt=bt[1];if((0,r.Z)(function(){!Qe&&ht&&e&&Nt(!0)},[Qe,ht,e]),!Qe)return null;var st="auto",Je={left:"-1000vw",top:"-1000vh",right:st,bottom:st};if(We||!A){var xt,mt=he.points,et=he.dynamicInset||((xt=he._experimental)===null||xt===void 0?void 0:xt.dynamicInset),ut=et&&mt[0][1]==="r",tt=et&&mt[0][0]==="b";ut?(Je.right=De,Je.left=st):(Je.left=Te,Je.right=st),tt?(Je.bottom=He,Je.top=st):(Je.top=Ae,Je.bottom=st)}var ke={};return Se&&(Se.includes("height")&&$e?ke.height=$e:Se.includes("minHeight")&&$e&&(ke.minHeight=$e),Se.includes("width")&&Xe?ke.width=Xe:Se.includes("minWidth")&&Xe&&(ke.minWidth=Xe)),A||(ke.pointerEvents="none"),c.createElement(_e,{open:ve||Oe,getContainer:de&&function(){return de(e)},autoDestroy:ye},c.createElement(v,{prefixCls:ie,open:A,zIndex:ge,mask:q,motion:be}),c.createElement(i.Z,{onResize:Re,disabled:!A},function(Ce){return c.createElement(l.default,(0,p.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ve,leavedClassName:"".concat(ie,"-hidden")},me,{onAppearPrepare:Le,onEnterPrepare:Le,visible:A,onVisibleChanged:function(it){var ot;me==null||(ot=me.onVisibleChanged)===null||ot===void 0||ot.call(me,it),a(it)}}),function(Ke,it){var ot=Ke.className,jt=Ke.style,ct=m()(ie,ot,Q);return c.createElement("div",{ref:(0,T.sQ)(Ce,j,it),className:ct,style:(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({"--arrow-x":"".concat(pe.x||0,"px"),"--arrow-y":"".concat(pe.y||0,"px")},Je),ke),jt),{},{boxSizing:"border-box",zIndex:ge},C),onMouseEnter:xe,onMouseLeave:Ie,onPointerEnter:Me,onClick:V,onPointerDownCapture:ze},le&&c.createElement(x,{prefixCls:ie,arrow:le,arrowPos:pe,align:he}),c.createElement(E,{cache:!A&&!y},Ge))})}))}),_=h,O=c.forwardRef(function(L,j){var X=L.children,Q=L.getTriggerDOMNode,ie=(0,T.Yr)(X),C=c.useCallback(function(a){(0,T.mH)(j,Q?Q(a):a)},[Q]),e=(0,T.x1)(C,(0,T.C4)(X));return ie?c.cloneElement(X,{ref:e}):X}),I=O,b=c.createContext(null),W=b;function M(L){return L?Array.isArray(L)?L:[L]:[]}function R(L,j,X,Q){return c.useMemo(function(){var ie=M(X!=null?X:j),C=M(Q!=null?Q:j),e=new Set(ie),a=new Set(C);return L&&(e.has("hover")&&(e.delete("hover"),e.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[e,a]},[L,j,X,Q])}var N=ae(29194);function F(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=arguments.length>2?arguments[2]:void 0;return X?L[0]===j[0]:L[0]===j[0]&&L[1]===j[1]}function H(L,j,X,Q){for(var ie=X.points,C=Object.keys(L),e=0;e<C.length;e+=1){var a,A=C[e];if(F((a=L[A])===null||a===void 0?void 0:a.points,ie,Q))return"".concat(j,"-placement-").concat(A)}return""}function G(L,j,X,Q){return j||(X?{motionName:"".concat(L,"-").concat(X)}:Q?{motionName:Q}:null)}function Y(L){return L.ownerDocument.defaultView}function U(L){for(var j=[],X=L==null?void 0:L.parentElement,Q=["hidden","scroll","clip","auto"];X;){var ie=Y(X).getComputedStyle(X),C=ie.overflowX,e=ie.overflowY,a=ie.overflow;[C,e,a].some(function(A){return Q.includes(A)})&&j.push(X),X=X.parentElement}return j}function $(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(L)?j:L}function J(L){return $(parseFloat(L),0)}function Z(L,j){var X=(0,ue.Z)({},L);return(j||[]).forEach(function(Q){if(!(Q instanceof HTMLBodyElement||Q instanceof HTMLHtmlElement)){var ie=Y(Q).getComputedStyle(Q),C=ie.overflow,e=ie.overflowClipMargin,a=ie.borderTopWidth,A=ie.borderBottomWidth,g=ie.borderLeftWidth,y=ie.borderRightWidth,V=Q.getBoundingClientRect(),q=Q.offsetHeight,le=Q.clientHeight,pe=Q.offsetWidth,he=Q.clientWidth,me=J(a),be=J(A),ve=J(g),de=J(y),ye=$(Math.round(V.width/pe*1e3)/1e3),_e=$(Math.round(V.height/q*1e3)/1e3),ge=(pe-he-ve-de)*ye,xe=(q-le-me-be)*_e,Ie=me*_e,Me=be*_e,ze=ve*ye,We=de*ye,Te=0,Ae=0;if(C==="clip"){var De=J(e);Te=De*ye,Ae=De*_e}var He=V.x+ze-Te,Re=V.y+Ie-Ae,Le=He+V.width+2*Te-ze-We-ge,Se=Re+V.height+2*Ae-Ie-Me-xe;X.left=Math.max(X.left,He),X.top=Math.max(X.top,Re),X.right=Math.min(X.right,Le),X.bottom=Math.min(X.bottom,Se)}}),X}function P(L){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X="".concat(j),Q=X.match(/^(.*)\%$/);return Q?L*(parseFloat(Q[1])/100):parseFloat(X)}function D(L,j){var X=j||[],Q=(0,n.Z)(X,2),ie=Q[0],C=Q[1];return[P(L.width,ie),P(L.height,C)]}function B(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[L[0],L[1]]}function z(L,j){var X=j[0],Q=j[1],ie,C;return X==="t"?C=L.y:X==="b"?C=L.y+L.height:C=L.y+L.height/2,Q==="l"?ie=L.x:Q==="r"?ie=L.x+L.width:ie=L.x+L.width/2,{x:ie,y:C}}function ne(L,j){var X={t:"b",b:"t",l:"r",r:"l"};return L.map(function(Q,ie){return ie===j?X[Q]||"c":Q}).join("")}function K(L,j,X,Q,ie,C,e){var a=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ie[Q]||{}}),A=(0,n.Z)(a,2),g=A[0],y=A[1],V=c.useRef(0),q=c.useMemo(function(){return j?U(j):[]},[j]),le=c.useRef({}),pe=function(){le.current={}};L||pe();var he=(0,o.Z)(function(){if(j&&X&&L){let pt=function(an,At){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jt,sn=Oe.x+an,Cn=Oe.y+At,Xn=sn+tt,Kn=Cn+ut,qn=Math.max(sn,Rt.left),we=Math.max(Cn,Rt.top),Ee=Math.min(Xn,Rt.right),Ue=Math.min(Kn,Rt.bottom);return Math.max(0,(Ee-qn)*(Ue-we))},$t=function(){Pt=Oe.y+Fe,Ot=Pt+ut,Wt=Oe.x+je,Tt=Wt+tt};var ve,de,ye,_e,ge=j,xe=ge.ownerDocument,Ie=Y(ge),Me=Ie.getComputedStyle(ge),ze=Me.position,We=ge.style.left,Te=ge.style.top,Ae=ge.style.right,De=ge.style.bottom,He=ge.style.overflow,Re=(0,ue.Z)((0,ue.Z)({},ie[Q]),C),Le=xe.createElement("div");(ve=ge.parentElement)===null||ve===void 0||ve.appendChild(Le),Le.style.left="".concat(ge.offsetLeft,"px"),Le.style.top="".concat(ge.offsetTop,"px"),Le.style.position=ze,Le.style.height="".concat(ge.offsetHeight,"px"),Le.style.width="".concat(ge.offsetWidth,"px"),ge.style.left="0",ge.style.top="0",ge.style.right="auto",ge.style.bottom="auto",ge.style.overflow="hidden";var Se;if(Array.isArray(X))Se={x:X[0],y:X[1],width:0,height:0};else{var Xe,$e,Ge=X.getBoundingClientRect();Ge.x=(Xe=Ge.x)!==null&&Xe!==void 0?Xe:Ge.left,Ge.y=($e=Ge.y)!==null&&$e!==void 0?$e:Ge.top,Se={x:Ge.x,y:Ge.y,width:Ge.width,height:Ge.height}}var Oe=ge.getBoundingClientRect(),ht=Ie.getComputedStyle(ge),Lt=ht.height,bt=ht.width;Oe.x=(de=Oe.x)!==null&&de!==void 0?de:Oe.left,Oe.y=(ye=Oe.y)!==null&&ye!==void 0?ye:Oe.top;var Qe=xe.documentElement,Nt=Qe.clientWidth,st=Qe.clientHeight,Je=Qe.scrollWidth,xt=Qe.scrollHeight,mt=Qe.scrollTop,et=Qe.scrollLeft,ut=Oe.height,tt=Oe.width,ke=Se.height,Ce=Se.width,Ke={left:0,top:0,right:Nt,bottom:st},it={left:-et,top:-mt,right:Je-et,bottom:xt-mt},ot=Re.htmlRegion,jt="visible",ct="visibleFirst";ot!=="scroll"&&ot!==ct&&(ot=jt);var Ut=ot===ct,On=Z(it,q),Ne=Z(Ke,q),Jt=ot===jt?Ne:On,qe=Ut?Ne:Jt;ge.style.left="auto",ge.style.top="auto",ge.style.right="0",ge.style.bottom="0";var un=ge.getBoundingClientRect();ge.style.left=We,ge.style.top=Te,ge.style.right=Ae,ge.style.bottom=De,ge.style.overflow=He,(_e=ge.parentElement)===null||_e===void 0||_e.removeChild(Le);var Et=$(Math.round(tt/parseFloat(bt)*1e3)/1e3),Ct=$(Math.round(ut/parseFloat(Lt)*1e3)/1e3);if(Et===0||Ct===0||(0,s.Sh)(X)&&!(0,N.Z)(X))return;var In=Re.offset,cn=Re.targetOffset,wt=D(Oe,In),ln=(0,n.Z)(wt,2),lt=ln[0],vt=ln[1],Kt=D(Se,cn),at=(0,n.Z)(Kt,2),kt=at[0],Dn=at[1];Se.x-=kt,Se.y-=Dn;var Mn=Re.points||[],fn=(0,n.Z)(Mn,2),Rn=fn[0],dn=fn[1],St=B(dn),nt=B(Rn),Ye=z(Se,St),pn=z(Oe,nt),ft=(0,ue.Z)({},Re),je=Ye.x-pn.x+lt,Fe=Ye.y-pn.y+vt,gt=pt(je,Fe),Ft=pt(je,Fe,Ne),dt=z(Se,["t","l"]),hn=z(Oe,["t","l"]),Qt=z(Se,["b","r"]),Bt=z(Oe,["b","r"]),zt=Re.overflow||{},Ln=zt.adjustX,mn=zt.adjustY,qt=zt.shiftX,en=zt.shiftY,vn=function(At){return typeof At=="boolean"?At:At>=0},Pt,Ot,Wt,Tt;$t();var gn=vn(mn),rt=nt[0]===St[0];if(gn&&nt[0]==="t"&&(Ot>qe.bottom||le.current.bt)){var Zt=Fe;rt?Zt-=ut-ke:Zt=dt.y-Bt.y-vt;var yn=pt(je,Zt),Nn=pt(je,Zt,Ne);yn>gt||yn===gt&&(!Ut||Nn>=Ft)?(le.current.bt=!0,Fe=Zt,vt=-vt,ft.points=[ne(nt,0),ne(St,0)]):le.current.bt=!1}if(gn&&nt[0]==="b"&&(Pt<qe.top||le.current.tb)){var Ht=Fe;rt?Ht+=ut-ke:Ht=Qt.y-hn.y-vt;var bn=pt(je,Ht),jn=pt(je,Ht,Ne);bn>gt||bn===gt&&(!Ut||jn>=Ft)?(le.current.tb=!0,Fe=Ht,vt=-vt,ft.points=[ne(nt,0),ne(St,0)]):le.current.tb=!1}var wn=vn(Ln),_n=nt[1]===St[1];if(wn&&nt[1]==="l"&&(Tt>qe.right||le.current.rl)){var Gt=je;_n?Gt-=tt-Ce:Gt=dt.x-Bt.x-lt;var Vt=pt(Gt,Fe),tn=pt(Gt,Fe,Ne);Vt>gt||Vt===gt&&(!Ut||tn>=Ft)?(le.current.rl=!0,je=Gt,lt=-lt,ft.points=[ne(nt,1),ne(St,1)]):le.current.rl=!1}if(wn&&nt[1]==="r"&&(Wt<qe.left||le.current.lr)){var Xt=je;_n?Xt+=tt-Ce:Xt=Qt.x-hn.x-lt;var nn=pt(Xt,Fe),Yt=pt(Xt,Fe,Ne);nn>gt||nn===gt&&(!Ut||Yt>=Ft)?(le.current.lr=!0,je=Xt,lt=-lt,ft.points=[ne(nt,1),ne(St,1)]):le.current.lr=!1}$t();var yt=qt===!0?0:qt;typeof yt=="number"&&(Wt<Ne.left&&(je-=Wt-Ne.left-lt,Se.x+Ce<Ne.left+yt&&(je+=Se.x-Ne.left+Ce-yt)),Tt>Ne.right&&(je-=Tt-Ne.right-lt,Se.x>Ne.right-yt&&(je+=Se.x-Ne.right+yt)));var It=en===!0?0:en;typeof It=="number"&&(Pt<Ne.top&&(Fe-=Pt-Ne.top-vt,Se.y+ke<Ne.top+It&&(Fe+=Se.y-Ne.top+ke-It)),Ot>Ne.bottom&&(Fe-=Ot-Ne.bottom-vt,Se.y>Ne.bottom-It&&(Fe+=Se.y-Ne.bottom+It)));var Dt=Oe.x+je,Mt=Dt+tt,rn=Oe.y+Fe,Un=rn+ut,xn=Se.x,En=xn+Ce,Sn=Se.y,Fn=Sn+ke,Bn=Math.max(Dt,xn),Tn=Math.min(Mt,En),zn=(Bn+Tn)/2,Wn=zn-Dt,An=Math.max(rn,Sn),Zn=Math.min(Un,Fn),Hn=(An+Zn)/2,Gn=Hn-rn;e==null||e(j,ft);var _t=un.right-Oe.x-(je+Oe.width),on=un.bottom-Oe.y-(Fe+Oe.height);Et===1&&(je=Math.round(je),_t=Math.round(_t)),Ct===1&&(Fe=Math.round(Fe),on=Math.round(on));var Vn={ready:!0,offsetX:je/Et,offsetY:Fe/Ct,offsetR:_t/Et,offsetB:on/Ct,arrowX:Wn/Et,arrowY:Gn/Ct,scaleX:Et,scaleY:Ct,align:ft};y(Vn)}}),me=function(){V.current+=1;var de=V.current;Promise.resolve().then(function(){V.current===de&&he()})},be=function(){y(function(de){return(0,ue.Z)((0,ue.Z)({},de),{},{ready:!1})})};return(0,r.Z)(be,[Q]),(0,r.Z)(function(){L||be()},[L]),[g.ready,g.offsetX,g.offsetY,g.offsetR,g.offsetB,g.arrowX,g.arrowY,g.scaleX,g.scaleY,g.align,me]}var se=ae(94480);function re(L,j,X,Q,ie){(0,r.Z)(function(){if(L&&j&&X){let V=function(){Q(),ie()};var C=j,e=X,a=U(C),A=U(e),g=Y(e),y=new Set([g].concat((0,se.Z)(a),(0,se.Z)(A)));return y.forEach(function(q){q.addEventListener("scroll",V,{passive:!0})}),g.addEventListener("resize",V,{passive:!0}),Q(),function(){y.forEach(function(q){q.removeEventListener("scroll",V),g.removeEventListener("resize",V)})}}},[L,j,X])}var ce=ae(48736);function fe(L,j,X,Q,ie,C,e,a){var A=c.useRef(L);A.current=L;var g=c.useRef(!1);c.useEffect(function(){if(j&&Q&&(!ie||C)){var V=function(){g.current=!1},q=function(ye){var _e;A.current&&!e(((_e=ye.composedPath)===null||_e===void 0||(_e=_e.call(ye))===null||_e===void 0?void 0:_e[0])||ye.target)&&!g.current&&a(!1)},le=Y(Q);le.addEventListener("pointerdown",V,!0),le.addEventListener("mousedown",q,!0),le.addEventListener("contextmenu",q,!0);var pe=(0,f.A)(X);if(pe&&(pe.addEventListener("mousedown",q,!0),pe.addEventListener("contextmenu",q,!0)),0)var he,me,be,ve;return function(){le.removeEventListener("pointerdown",V,!0),le.removeEventListener("mousedown",q,!0),le.removeEventListener("contextmenu",q,!0),pe&&(pe.removeEventListener("mousedown",q,!0),pe.removeEventListener("contextmenu",q,!0))}}},[j,X,Q,ie,C]);function y(){g.current=!0}return y}var ee=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function te(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.Z,j=c.forwardRef(function(X,Q){var ie=X.prefixCls,C=ie===void 0?"rc-trigger-popup":ie,e=X.children,a=X.action,A=a===void 0?"hover":a,g=X.showAction,y=X.hideAction,V=X.popupVisible,q=X.defaultPopupVisible,le=X.onPopupVisibleChange,pe=X.afterPopupVisibleChange,he=X.mouseEnterDelay,me=X.mouseLeaveDelay,be=me===void 0?.1:me,ve=X.focusDelay,de=X.blurDelay,ye=X.mask,_e=X.maskClosable,ge=_e===void 0?!0:_e,xe=X.getPopupContainer,Ie=X.forceRender,Me=X.autoDestroy,ze=X.destroyPopupOnHide,We=X.popup,Te=X.popupClassName,Ae=X.popupStyle,De=X.popupPlacement,He=X.builtinPlacements,Re=He===void 0?{}:He,Le=X.popupAlign,Se=X.zIndex,Xe=X.stretch,$e=X.getPopupClassNameFromAlign,Ge=X.fresh,Oe=X.alignPoint,ht=X.onPopupClick,Lt=X.onPopupAlign,bt=X.arrow,Qe=X.popupMotion,Nt=X.maskMotion,st=X.popupTransitionName,Je=X.popupAnimation,xt=X.maskTransitionName,mt=X.maskAnimation,et=X.className,ut=X.getTriggerDOMNode,tt=(0,k.Z)(X,ee),ke=Me||ze||!1,Ce=c.useState(!1),Ke=(0,n.Z)(Ce,2),it=Ke[0],ot=Ke[1];(0,r.Z)(function(){ot((0,u.Z)())},[]);var jt=c.useRef({}),ct=c.useContext(W),Ut=c.useMemo(function(){return{registerSubPopup:function(Ee,Ue){jt.current[Ee]=Ue,ct==null||ct.registerSubPopup(Ee,Ue)}}},[ct]),On=(0,t.Z)(),Ne=c.useState(null),Jt=(0,n.Z)(Ne,2),qe=Jt[0],un=Jt[1],Et=c.useRef(null),Ct=(0,o.Z)(function(we){Et.current=we,(0,s.Sh)(we)&&qe!==we&&un(we),ct==null||ct.registerSubPopup(On,we)}),In=c.useState(null),cn=(0,n.Z)(In,2),wt=cn[0],ln=cn[1],lt=c.useRef(null),vt=(0,o.Z)(function(we){(0,s.Sh)(we)&&wt!==we&&(ln(we),lt.current=we)}),Kt=c.Children.only(e),at=(Kt==null?void 0:Kt.props)||{},kt={},Dn=(0,o.Z)(function(we){var Ee,Ue,Ze=wt;return(Ze==null?void 0:Ze.contains(we))||((Ee=(0,f.A)(Ze))===null||Ee===void 0?void 0:Ee.host)===we||we===Ze||(qe==null?void 0:qe.contains(we))||((Ue=(0,f.A)(qe))===null||Ue===void 0?void 0:Ue.host)===we||we===qe||Object.values(jt.current).some(function(Be){return(Be==null?void 0:Be.contains(we))||we===Be})}),Mn=G(C,Qe,Je,st),fn=G(C,Nt,mt,xt),Rn=c.useState(q||!1),dn=(0,n.Z)(Rn,2),St=dn[0],nt=dn[1],Ye=V!=null?V:St,pn=(0,o.Z)(function(we){V===void 0&&nt(we)});(0,r.Z)(function(){nt(V||!1)},[V]);var ft=c.useRef(Ye);ft.current=Ye;var je=c.useRef([]);je.current=[];var Fe=(0,o.Z)(function(we){var Ee;pn(we),((Ee=je.current[je.current.length-1])!==null&&Ee!==void 0?Ee:Ye)!==we&&(je.current.push(we),le==null||le(we))}),gt=c.useRef(),Ft=function(){clearTimeout(gt.current)},dt=function(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ft(),Ue===0?Fe(Ee):gt.current=setTimeout(function(){Fe(Ee)},Ue*1e3)};c.useEffect(function(){return Ft},[]);var hn=c.useState(!1),Qt=(0,n.Z)(hn,2),Bt=Qt[0],zt=Qt[1];(0,r.Z)(function(we){(!we||Ye)&&zt(!0)},[Ye]);var Ln=c.useState(null),mn=(0,n.Z)(Ln,2),qt=mn[0],en=mn[1],vn=c.useState(null),Pt=(0,n.Z)(vn,2),Ot=Pt[0],Wt=Pt[1],Tt=function(Ee){Wt([Ee.clientX,Ee.clientY])},gn=K(Ye,qe,Oe&&Ot!==null?Ot:wt,De,Re,Le,Lt),rt=(0,n.Z)(gn,11),Zt=rt[0],yn=rt[1],Nn=rt[2],Ht=rt[3],bn=rt[4],jn=rt[5],wn=rt[6],_n=rt[7],Gt=rt[8],Vt=rt[9],tn=rt[10],Xt=R(it,A,g,y),nn=(0,n.Z)(Xt,2),Yt=nn[0],yt=nn[1],It=Yt.has("click"),Dt=yt.has("click")||yt.has("contextMenu"),Mt=(0,o.Z)(function(){Bt||tn()}),rn=function(){ft.current&&Oe&&Dt&&dt(!1)};re(Ye,wt,qe,Mt,rn),(0,r.Z)(function(){Mt()},[Ot,De]),(0,r.Z)(function(){Ye&&!(Re!=null&&Re[De])&&Mt()},[JSON.stringify(Le)]);var Un=c.useMemo(function(){var we=H(Re,C,Vt,Oe);return m()(we,$e==null?void 0:$e(Vt))},[Vt,$e,Re,C,Oe]);c.useImperativeHandle(Q,function(){return{nativeElement:lt.current,popupElement:Et.current,forceAlign:Mt}});var xn=c.useState(0),En=(0,n.Z)(xn,2),Sn=En[0],Fn=En[1],Bn=c.useState(0),Tn=(0,n.Z)(Bn,2),zn=Tn[0],Wn=Tn[1],An=function(){if(Xe&&wt){var Ee=wt.getBoundingClientRect();Fn(Ee.width),Wn(Ee.height)}},Zn=function(){An(),Mt()},Hn=function(Ee){zt(!1),tn(),pe==null||pe(Ee)},Gn=function(){return new Promise(function(Ee){An(),en(function(){return Ee})})};(0,r.Z)(function(){qt&&(tn(),qt(),en(null))},[qt]);function _t(we,Ee,Ue,Ze){kt[we]=function(Be){var kn;Ze==null||Ze(Be),dt(Ee,Ue);for(var Yn=arguments.length,$n=new Array(Yn>1?Yn-1:0),Pn=1;Pn<Yn;Pn++)$n[Pn-1]=arguments[Pn];(kn=at[we])===null||kn===void 0||kn.call.apply(kn,[at,Be].concat($n))}}(It||Dt)&&(kt.onClick=function(we){var Ee;ft.current&&Dt?dt(!1):!ft.current&&It&&(Tt(we),dt(!0));for(var Ue=arguments.length,Ze=new Array(Ue>1?Ue-1:0),Be=1;Be<Ue;Be++)Ze[Be-1]=arguments[Be];(Ee=at.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[at,we].concat(Ze))});var on=fe(Ye,Dt,wt,qe,ye,ge,Dn,dt),Vn=Yt.has("hover"),pt=yt.has("hover"),$t,an;Vn&&(_t("onMouseEnter",!0,he,function(we){Tt(we)}),_t("onPointerEnter",!0,he,function(we){Tt(we)}),$t=function(Ee){(Ye||Bt)&&qe!==null&&qe!==void 0&&qe.contains(Ee.target)&&dt(!0,he)},Oe&&(kt.onMouseMove=function(we){var Ee;(Ee=at.onMouseMove)===null||Ee===void 0||Ee.call(at,we)})),pt&&(_t("onMouseLeave",!1,be),_t("onPointerLeave",!1,be),an=function(){dt(!1,be)}),Yt.has("focus")&&_t("onFocus",!0,ve),yt.has("focus")&&_t("onBlur",!1,de),Yt.has("contextMenu")&&(kt.onContextMenu=function(we){var Ee;ft.current&&yt.has("contextMenu")?dt(!1):(Tt(we),dt(!0)),we.preventDefault();for(var Ue=arguments.length,Ze=new Array(Ue>1?Ue-1:0),Be=1;Be<Ue;Be++)Ze[Be-1]=arguments[Be];(Ee=at.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[at,we].concat(Ze))}),et&&(kt.className=m()(at.className,et));var At=c.useRef(!1);At.current||(At.current=Ie||Ye||Bt);var Rt=(0,ue.Z)((0,ue.Z)({},at),kt),sn={},Cn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Cn.forEach(function(we){tt[we]&&(sn[we]=function(){for(var Ee,Ue=arguments.length,Ze=new Array(Ue),Be=0;Be<Ue;Be++)Ze[Be]=arguments[Be];(Ee=Rt[we])===null||Ee===void 0||Ee.call.apply(Ee,[Rt].concat(Ze)),tt[we].apply(tt,Ze)})});var Xn=c.cloneElement(Kt,(0,ue.Z)((0,ue.Z)({},Rt),sn)),Kn={x:jn,y:wn},qn=bt?(0,ue.Z)({},bt!==!0?bt:{}):null;return c.createElement(c.Fragment,null,c.createElement(i.Z,{disabled:!Ye,ref:vt,onResize:Zn},c.createElement(I,{getTriggerDOMNode:ut},Xn)),At.current&&c.createElement(W.Provider,{value:Ut},c.createElement(_,{portal:L,ref:Ct,prefixCls:C,popup:We,className:m()(Te,Un),style:Ae,target:wt,onMouseEnter:$t,onMouseLeave:an,onPointerEnter:$t,zIndex:Se,open:Ye,keepDom:Bt,fresh:Ge,onClick:ht,onPointerDownCapture:on,mask:ye,motion:Mn,maskMotion:fn,onVisibleChanged:Hn,onPrepare:Gn,forceRender:Ie,autoDestroy:ke,getPopupContainer:xe,align:Vt,arrow:qn,arrowPos:Kn,ready:Zt,offsetX:yn,offsetY:Nn,offsetR:Ht,offsetB:bn,onAlign:Mt,stretch:Xe,targetWidth:Sn/_n,targetHeight:zn/Gt})))});return j}var oe=te(S.Z)},92887:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Z:function(){return o}});var ue=ae(59301),n=ae(7939),k=ae(6767),S=ae(14566),d=ae(32050),m=ae(19248),i=ae(26869),s={img:"img___BgL9D"},o=({value:t,onChange:r,getFileProgress:u})=>{const[c,p]=(0,ue.useState)(!1),l=ue.createElement(n.ZP,{loading:c,icon:ue.createElement(d.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),T=()=>ue.createElement("div",{className:s.img},ue.createElement("img",{src:i.Z.API_SERVER+"/api/attachments/"+t,alt:"avatar",style:{width:288}}),ue.createElement("div",null,ue.createElement(m.Z,{onClick:()=>r(""),style:{fontSize:"16px",color:"red"}}))),x=v=>{var w,E,h,_,O,I;if(u&&u(v),v.file.status==="uploading"){p(!0);return}if(v.file.status==="done"){if(p(!1),v.file.status==="done"&&((E=(w=v.file)==null?void 0:w.response)==null?void 0:E.status)===-1){k.ZP.error((_=(h=v.file)==null?void 0:h.response)==null?void 0:_.message);return}r((I=(O=v==null?void 0:v.file)==null?void 0:O.response)==null?void 0:I.id)}};return ue.createElement(ue.Fragment,null,t?T():ue.createElement("div",null,ue.createElement(S.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${i.Z.API_SERVER}/api/attachments.json`,onChange:x,accept:"image/*"},l),ue.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),ue.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},45895:function(Ve,Pe,ae){"use strict";ae.r(Pe),ae.d(Pe,{default:function(){return H}});var ue=ae(59301),n=ae(58106),k=ae(33853),S=ae(6767),d=ae(62957),m=ae(29787),i=ae(60242),s=ae(7939),f=ae(37568),o=ae(77019),t=ae(62673),r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAIVBMVEVHcExMrf9Qr/9TuP9Mrf9Nrf9Mrf9MrP9Nrv9Orv9MrP98EuefAAAACnRSTlMA3CULV5jA84JH4j3LZgAAANVJREFUOMvl1a0OwjAUBeCb/QgcGckSphqeAASBoKaR4KpwJDwAYhaHQuGbLNtynpKWmTWs92rg2n45orc7I9qeEZzrjSgqwIxRtAI7M7rzoKMLjhScNRqqsAyDGC0BxIw9/UYQKQEUHQ9SoGSBBmoOpG4/JQO0A3UYpP2KyyDQaGG8CB/YgDnMfhjhAw2zgEmGER6wAVkEQzbiMQp29g07YCOmo2CDjBywEadRkOSqB5NcBa/6Dbhd/AmIq0Z41c/DL3y8n0AsMbEGxSIVq1gsc+l38AI000Nd23IRqQAAAABJRU5ErkJggg==",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABgBAMAAAAnVGd6AAAAJFBMVEVHcExMrf9Orf9Nrf90uv9MrP////95wP/M5//z+v+x2/9cs//eVCejAAAABXRSTlMA10ycBa32wqwAAAFsSURBVFjD7dk/TsMwFMfxJ8QNIHsHOABDduAGJXoyUnZTsmcoByg3KANz/0i9AHA6YruBIjXPr/6hLrWlLlXy0dcZrPSViOj+puCENb64Ir/Okm73xMjdf15y8qpuO+COgXXZASUCVN0TYGiNsB24PVxjwAP2CNxDKDBgjAMMrgxkIANHAr5aDPiwtoWAubVPCPBobSxBBmYOeEsHfIB9bpMBHxBJoGhAJIHiAXICxQPkBFIEiAmkCBATSBMgJZAmQEogMWDiPnMxgcSAlQOmYgJJAY1xgBETSApYeIDFBJICOABiAkkBW0BM2A8sQ0APhIR3PVBvA3ogJDR6wPTX94BPmBwILHYAn3AA4A7jhncBM3g87wemIeAX+PlGCdTrFf8FeP2acqybwa1nIAMZODWgHjyMtW+qM/BNlT+HjkItUL9s8i+WDGTgSECB3f8Ps7QSAyp8IAmPROGhLDwWxgfT8GgcHs6Dfw98A1V0Ca+XaA0MAAAAAElFTkSuQmCC",c={bg:"bg___A_od2",main:"main___f6Wx0",uploadTop:"uploadTop___Yx2Un",imgWrap:"imgWrap___S6ChW",defaultImg:"defaultImg___qUJQT",hoverImg:"hoverImg___pZT3G",uploadTitle:"uploadTitle___FLy1b",colorBlue:"colorBlue___HfgxM",uploadDescription:"uploadDescription___Cn5KA",description:"description___qbCxZ",colorOrange:"colorOrange___ZuvEg",fileMain:"fileMain___asNqA",fileWrap:"fileWrap___gPP0_",fileProgress:"fileProgress___xmdZ4",fileCancel:"fileCancel___ikgzZ",fileInputWrap:"fileInputWrap___mvunl",fileImgWrap:"fileImgWrap___zdrgz",fileInput:"fileInput___Tw2dZ",flexRowCenter:"flexRowCenter___pGglA",continueAdd:"continueAdd___SV9wg"},p=ae(74681),l=ae(92887),T=ae(47226),x=ae(31735),v=ae(11968),w=Object.defineProperty,E=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,O=(G,Y,U)=>Y in G?w(G,Y,{enumerable:!0,configurable:!0,writable:!0,value:U}):G[Y]=U,I=(G,Y)=>{for(var U in Y||(Y={}))h.call(Y,U)&&O(G,U,Y[U]);if(E)for(var U of E(Y))_.call(Y,U)&&O(G,U,Y[U]);return G},b=(G,Y)=>{var U={};for(var $ in G)h.call(G,$)&&Y.indexOf($)<0&&(U[$]=G[$]);if(G!=null&&E)for(var $ of E(G))Y.indexOf($)<0&&_.call(G,$)&&(U[$]=G[$]);return U},W=(G,Y,U)=>new Promise(($,J)=>{var Z=B=>{try{D(U.next(B))}catch(z){J(z)}},P=B=>{try{D(U.throw(B))}catch(z){J(z)}},D=B=>B.done?$(B.value):Promise.resolve(B.value).then(Z,P);D((U=U.apply(G,Y)).next())});const M=30,R=1024,N=(G,Y)=>{var U,$,J,Z;const{uploadInfo:P}=Y.payload;switch(Y.type){case"addVideo":return console.log("videoList: ",P,P.videoId,[...G.videoList,{name:P.file.name,size:P.file.size,type:P.file.type,filename:P.file.name,fileHash:P.fileHash,state:P.state,videoId:P.videoId,attachment_id:"",loaded:0,title:""}]),{videoList:[...G.videoList,{name:P.file.name,size:P.file.size,type:P.file.type,filename:P.file.name,fileHash:P.fileHash,state:P.state,videoId:P.videoId,attachment_id:"",loaded:0,title:"",allow_skip:!0,allow_download:!1}]};case"removeVideo":return{videoList:G.videoList.filter(D=>D.name!==Y.payload.name)};case"removeAll":return[];case"updateProgress":return{videoList:G.videoList.map(D=>D.name===Y.payload.uploadInfo.file.name?I(I({},D),{loaded:Y.payload.progressPercent,videoId:P.videoId,fileHash:P.fileHash}):D)};case"updateTitle":return{videoList:(U=G.videoList)==null?void 0:U.map(D=>D.name===Y.payload.item.name?I(I({},D),{title:Y.payload.title}):D)};case"updateImg":return{videoList:($=G.videoList)==null?void 0:$.map(D=>D.name===Y.payload.item.name?I(I({},D),{attachment_id:Y.payload.attachment_id}):D)};case"updateAllowSkip":return{videoList:(J=G.videoList)==null?void 0:J.map(D=>D.name===Y.payload.item.name?I(I({},D),{allow_skip:Y.payload.allow_skip}):D)};case"updateAllowOtherTeacherDownload":return{videoList:(Z=G.videoList)==null?void 0:Z.map(D=>D.name===Y.payload.item.name?I(I({},D),{allow_download:Y.payload.allow_download}):D)};default:return[]}},F=G=>{var Y=G,{user:U,userDetail:$,globalSetting:J,loading:Z,dispatch:P}=Y,D=b(Y,["user","userDetail","globalSetting","loading","dispatch"]),B;const z=(0,n.useParams)(),ne=(0,n.useLocation)(),[K]=(0,n.useSearchParams)(),[se,re]=(0,ue.useState)(!1),[ce,fe]=(0,ue.useReducer)(N,{videoList:[]}),ee=(0,ue.useRef)(),te=(0,ue.useRef)();(0,ue.useEffect)(()=>(window.addEventListener("beforeunload",oe),()=>{window.removeEventListener("beforeunload",oe)}),[]);const oe=A=>{A.preventDefault(),A.returnValue=""},L=()=>{const A=document.getElementById("fileUpload");A.value=""},j=A=>{var g,y,V;const q=A.target.files[0];if(!q){L();return}let le=q.name.toLowerCase();if(le&&le.indexOf(".avi")==-1&&le.indexOf(".flv")==-1&&le.indexOf(".f4v")==-1&&le.indexOf(".m4v")==-1&&le.indexOf(".mov")==-1&&le.indexOf(".mp4")==-1&&le.indexOf(".rmvb")==-1&&le.indexOf(".swf")==-1&&le.indexOf(".webm")==-1&&le.indexOf(".wmv")==-1){S.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),L();return}if(!((g=U.userInfo)!=null&&g.admin||(y=U.userInfo)!=null&&y.business)&&q.size>R*1024*1024){S.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${R}M`),L();return}if((V=ce.videoList)!=null&&V.find(pe=>pe.name===q.name)){S.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),L();return}Q(q)},X=(A,g)=>{d.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ue.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",g?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{L(),fe({type:"removeVideo",payload:{name:A}})}})},Q=A=>{var g='{"Vod":{}}';if(re(!0),ee.current){ee.current.addFile(A,null,null,null,g);return}(0,p.o)(z==null?void 0:z.username,"",{create:!ee,addFileSuccess:y=>{fe({type:"addVideo",payload:{uploadInfo:y}})},onUploadProgress:(y,V,q)=>{const le=Math.ceil(q*100);fe({type:"updateProgress",payload:{uploadInfo:y,progressPercent:le}}),L()},onUploadFailed:y=>{S.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:y=>{re(!1)},onUploadSucceed:y=>{re(!1),console.log("files.current",te.current)},onUploadError:y=>{re(!1)},gotUploader:y=>{y.addFile(A,null,null,null,g),ee.current=y}})},ie=()=>W(void 0,null,function*(){var A;if(!((A=ce.videoList)!=null&&A.length)){S.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891");return}console.log(ce.videoList);let g=localStorage.getItem("videoCapacity")?JSON.parse(localStorage.getItem("videoCapacity")):{};if((0,v.k5)()&&ce.videoList.reduce((V,q)=>V+q.size,g==null?void 0:g.used)>(g==null?void 0:g.total)){P({type:"user/setActionTabs",payload:{key:"\u5BB9\u91CF\u5DF2\u6EE1",title:`\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u4E86\u89C6\u9891\u5B58\u50A8\u5269\u4F59\u7A7A\u95F4\uFF08${(0,x.RD)((g==null?void 0:g.total)-(g==null?void 0:g.used))} MB\uFF09\u3002`,capacityInfo:g,type:"video"}});return}const y=yield(0,T.dt)({username:z.username,videos:ce.videoList.map(V=>({video_id:V.videoId,title:V.title,filename:V.filename,attachment_id:V.attachment_id,course_id:z.coursesId,category_id:K.get("categoryId"),allow_skip:V.allow_skip,allow_download:V.allow_download}))});(y==null?void 0:y.status)===0&&((0,x.L9)(["\u6559\u5B66\u8BFE\u5802","\u89C6\u9891","\u4E0A\u4F20\u89C6\u9891"]),n.history.back(),P({type:"classroomList/getClassroomLeftMenus",payload:{id:z.coursesId}}))}),C=(B=ce.videoList)==null?void 0:B.length,e=()=>ue.createElement("div",{className:c.main},ue.createElement("div",{className:c.uploadTop},ue.createElement("label",{htmlFor:"fileUpload",className:c.imgWrap},ue.createElement("img",{className:c.defaultImg,src:r}),ue.createElement("img",{className:c.hoverImg,src:u})),ue.createElement("div",{className:c.uploadTitle},"\u9009\u62E9\u60A8\u8981\u4E0A\u4F20\u7684\u89C6\u9891"),ue.createElement("div",null,"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ue.createElement(n.Link,{to:`/users/${z==null?void 0:z.username}/videos/protocol`,className:c.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1")),ue.createElement("div",{className:c.uploadDescription},ue.createElement("div",{className:c.description},ue.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 "),ue.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),ue.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",ue.createElement("span",{className:c.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)"))))),a=()=>{var A,g;return ue.createElement("div",{className:c.fileMain},ue.createElement(m.Z,{spinning:se},(A=ce.videoList)==null?void 0:A.map((y,V)=>ue.createElement("div",{className:c.fileWrap},ue.createElement("div",null,V+1,". ",y.name),ue.createElement("div",{className:c.fileProgress},ue.createElement(i.Z,{percent:y.loaded,status:y.loaded==100?"normal":"active"}),ue.createElement("div",{className:c.fileCancel},ue.createElement(s.ZP,{type:"primary",onClick:()=>X(y.name,y.loaded==100)},y.loaded===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20"))),ue.createElement("div",{className:c.fileInputWrap},ue.createElement("span",{className:"mr5"},"\u6807\u9898:"),ue.createElement(f.default,{value:y.title,onChange:q=>{fe({type:"updateTitle",payload:{title:q.target.value,item:y}})},className:c.fileInput,placeholder:`\u6807\u9898\u652F\u6301\u6700\u591A${M}\u4E2A\u5B57\u7B26`,maxLength:M,addonAfter:ue.createElement("span",{className:"c-light-black font12"},String(y.title.length),"/",M)})),ue.createElement("div",{className:c.fileImgWrap},ue.createElement("aside",{className:"mr5"},"\u4E0A\u4F20\u5C01\u9762\u56FE:"),ue.createElement(l.Z,{value:y==null?void 0:y.attachment_id,onChange:q=>{fe({type:"updateImg",payload:{attachment_id:q,item:y}})}})),ue.createElement(o.Z,{align:"middle",className:"mt10"},ue.createElement("span",{className:"mr5"},"\u64AD\u653E\u8BBE\u7F6E:"),ue.createElement(t.default,{className:"font14",checked:y.allow_skip,onChange:q=>{fe({type:"updateAllowSkip",payload:{allow_skip:q.target.checked,item:y}})}},"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),ue.createElement(o.Z,{align:"middle",className:"mt10"},ue.createElement("span",{className:"mr5"},"\u4E0B\u8F7D\u8BBE\u7F6E:"),ue.createElement(t.default,{className:"font14",checked:y.allow_download,onChange:q=>{fe({type:"updateAllowOtherTeacherDownload",payload:{allow_download:q.target.checked,item:y}})}},"\u5141\u8BB8\u8BFE\u5802\u5185\u5176\u4ED6\u6559\u5E08\u4E0B\u8F7D"))))),ue.createElement("div",{className:"mt10"},((g=ce.videoList)==null?void 0:g.length)<=2?ue.createElement("label",{htmlFor:"fileUpload",className:`${c.continueAdd} current`},"\u7EE7\u7EED\u6DFB\u52A0"):"\u63D0\u793A\uFF1A\u5355\u6B21\u6700\u591A\u652F\u63013\u4E2A\u89C6\u9891\u6587\u4EF6\u4E0A\u4F20"),ue.createElement("div",{className:c.description},ue.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 "),ue.createElement("div",null,"\u89C6\u9891\u89C4\u683C\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv "),ue.createElement("div",null,"\u6E29\u99A8\u63D0\u793A\uFF1A",ue.createElement("span",{className:c.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)"))),ue.createElement("div",{className:c.flexRowCenter},ue.createElement(s.ZP,{type:"primary",onClick:ie},"\u7ACB\u5373\u53D1\u5E03")),ue.createElement("div",{className:`${c.flexRowCenter} mt10`},"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ue.createElement(n.Link,{to:`/users/${z==null?void 0:z.username}/videos/protocol`,className:c.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"))};return ue.createElement("section",{className:c.bg,style:{width:"100%"}},ue.createElement("div",{className:"mt5",style:{display:"flex",alignItems:"baseline"}},ue.createElement(k.Z,{style:{marginTop:"8px"},className:"current mr10 font16",onClick:()=>{n.history.push(`/classrooms/${z.coursesId}/video`)}}),ue.createElement("h2",null,"\u4E0A\u4F20\u89C6\u9891")),C?a():e(),ue.createElement("input",{ref:te,type:"file",id:"fileUpload",style:{display:"none"},onChange:j,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}))};var H=(0,n.connect)(({user:G,userDetail:Y,loading:U,globalSetting:$})=>({user:G,userDetail:Y,globalSetting:$,loading:U.models.index}))(F)},74681:function(Ve,Pe,ae){"use strict";ae.d(Pe,{o:function(){return f}});var ue=ae(97013),n=ae(93125),k=ae.n(n);let S="",d,m="";function i(o){s(o)}function s(o){d=new(k()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(t){console.log("addFileSuccess: "+t.file.name),o.addFileSuccess&&o.addFileSuccess(t),d.startUpload()},onUploadstarted:function(t){const r=t.file.name;if(t.videoId){var c=`/api/users/${S}/video_auths.json`;(0,ue.ZP)(c,{method:"put",body:{video_id:t.videoId,title:r,file_name:r,virtual_classroom_id:m}}).then(p=>{if(p.status==-1){o.onUploadError&&o.onUploadError(t);return}const l=p.data;var T=l.UploadAuth,x=l.UploadAddress,v=l.VideoId;d.setUploadAuthAndAddress(t,T,x)}).catch(p=>{d.deleteFile(d._curIndex),d.nextUpload(),console.log(p)})}else{var u=`/api/users/${S}/video_auths.json`;const p="";(0,ue.ZP)(u,{method:"Post",body:{title:p+r,file_name:p+r,virtual_classroom_id:m}}).then(l=>{if(l){const w=l.data;var T=w.UploadAuth,x=w.UploadAddress,v=w.VideoId;d.setUploadAuthAndAddress(t,T,x,v)}}).catch(l=>{d.deleteFile(d._curIndex),d.nextUpload(),console.log(l)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(t){o.onUploadSucceed&&o.onUploadSucceed(t),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(t,r,u){o.onUploadFailed&&o.onUploadFailed(t),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(t,r,u){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(t,r,u){o.onUploadProgress&&o.onUploadProgress(t,r,u);var c=Math.ceil(u*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(t){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var r=`/api/users/${S}/video_auths.json`;(0,ue.ZP)(r,{method:"put",body:{video_id:t.videoId}}).then(u=>{var p=u.data.UploadAuth;d.resumeUploadWithAuth(p)}).catch(u=>{console.log(u)})},onUploadEnd:function(t){o.onUploadEnd&&o.onUploadEnd(t),console.log("onUploadEnd: uploaded all the files")}}),o.gotUploader&&o.gotUploader(d)}function f(o,t,r){o&&(S=o),t&&(m=t),i(r)}},93125:function(Ve,Pe,ae){(function(ue){if(1)window.OSS=ue(),Ve.exports=ue();else var n})(function(){var ue;return function(){function n(k,S,d){function m(f,o){if(!S[f]){if(!k[f]){var t=void 0;if(!o&&t)return require(f,!0);if(i)return i(f,!0);var r=new Error("Cannot find module '"+f+"'");throw r.code="MODULE_NOT_FOUND",r}var u=S[f]={exports:{}};k[f][0].call(u.exports,function(c){return m(k[f][1][c]||c)},u,u.exports,n,k,S,d)}return S[f].exports}for(var i=void 0,s=0;s<d.length;s++)m(d[s]);return m}return n}()({1:[function(n,k,S){"use strict";var d=n("./browser/client");d.Buffer=n("buffer").Buffer,d.co=n("co"),d.urllib=n("../shims/xhr"),d.version=n("./browser/version").version,k.exports=d},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(n,k,S){(function(d,m){"use strict";function i(Z){return Z&&Z.__esModule?Z:{default:Z}}function s(Z,P){return Z[P]||Z[P.toLowerCase()]}function f(Z,P){var D=b.parse(Z);if(!D.protocol){var B=P?"https://":"http://";D=b.parse(B+Z)}if(D.protocol!=="http:"&&D.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return D}function o(Z,P,D){var B=D?"https://":"http://",z=P?"-internal.aliyuncs.com":".aliyuncs.com";return Z.substr(0,14)==="vpc100-oss-cn-"&&(z=".aliyuncs.com"),b.parse(B+Z+z)}function t(){return document&&document.location&&document.location.protocol==="https:"}function r(Z,P){if(!(this instanceof r))return new r(Z,P);Z&&Z.inited?this.options=Z:this.options=r.initOptions(Z),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=N,this.agent=this.options.agent||$),this.ctx=P,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var u=n("babel-runtime/regenerator"),c=i(u),p=n("babel-runtime/core-js/object/keys"),l=i(p),T=n("debug")("ali-oss"),x=n("./../../shims/crypto/crypto.js"),v=n("path"),w=n("copy-to"),E=n("mime"),h=n("xml2js"),_=n("humanize-ms"),O=n("agentkeepalive"),I=n("merge-descriptors"),b=n("url"),W=n("is-type-of"),M=n("platform"),R=n("utility"),N=n("urllib"),F=n("./version"),H=n("dateformat"),G=n("bowser"),Y=n("../common/signUtils"),U=n("../common/utils"),$=new O;k.exports=r,r.initOptions=function(Z){if(!Z||!Z.accessKeyId||!Z.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var P=t(),D={region:"oss-cn-hangzhou",internal:!1,secure:P,bucket:null,endpoint:null,cname:!1};if((0,l.default)(Z).forEach(function(B){Z[B]!==void 0&&(D[B]=Z[B])}),D.accessKeyId=D.accessKeyId.trim(),D.accessKeySecret=D.accessKeySecret.trim(),D.timeout&&(D.timeout=_(D.timeout)),D.endpoint)D.endpoint=f(D.endpoint,D.secure);else{if(!D.region)throw new Error("require options.endpoint or options.region");D.endpoint=o(D.region,D.internal,D.secure)}return D.inited=!0,D};var J=r.prototype;I(J,n("./object")),I(J,n("./managed_upload")),I(J,n("../common/multipart")),I(J,n("../common/thunkpool.js")),r.Wrapper=n("./wrapper"),J.signature=function(Z){return T("authorization stringToSign: %s",Z),Y.computeSignature(this.options.accessKeySecret,Z)},J.authorization=function(Z,P,D,B){var z=Y.buildCanonicalString(Z.toUpperCase(),P,{headers:B,parameters:D});return Y.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},J.createRequest=function(Z){var P={"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&&(P["x-oss-security-token"]=this.options.stsToken),w(Z.headers).to(P),s(P,"Content-Type")||(Z.mime===E.default_type&&(Z.mime=""),Z.mime&&Z.mime.indexOf("/")>0?P["Content-Type"]=Z.mime:P["Content-Type"]=E.getType(Z.mime||v.extname(Z.object||""))||"application/octet-stream"),Z.content&&(P["Content-Md5"]=x.createHash("md5").update(new m(Z.content,"utf8")).digest("base64"),P["Content-Length"]||(P["Content-Length"]=Z.content.length));var D=this._getResource(Z);P.authorization=this.authorization(Z.method,D,Z.subres,P);var B=this._getReqUrl(Z);T("request %s %s, with headers %j, !!stream: %s",Z.method,B,P,!!Z.stream);var z=Z.timeout||this.options.timeout;return{url:B,params:{agent:this.agent,method:Z.method,content:Z.content,stream:Z.stream,headers:P,timeout:z,writeStream:Z.writeStream,customResponse:Z.customResponse,ctx:Z.ctx||this.ctx}}},J.request=c.default.mark(function Z(P){var D,B,z,ne;return c.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return D=this.createRequest(P),B=void 0,z=void 0,K.prev=3,K.next=6,this.urllib.request(D.url,D.params);case 6:B=K.sent,T("response %s %s, got %s, headers: %j",P.method,D.url,B.status,B.headers),K.next=13;break;case 10:K.prev=10,K.t0=K.catch(3),z=K.t0;case 13:if(ne=void 0,!B||!P.successStatuses||P.successStatuses.indexOf(B.status)!==-1){K.next=26;break}return K.next=17,this.requestError(B);case 17:if(ne=K.sent,ne.code!=="RequestTimeTooSkewed"){K.next=23;break}return this.options.amendTimeSkewed=+new Date(ne.serverTime)-new Date,K.next=22,this.request(P);case 22:return K.abrupt("return",K.sent);case 23:ne.params=P,K.next=30;break;case 26:if(!z){K.next=30;break}return K.next=29,this.requestError(z);case 29:ne=K.sent;case 30:if(!ne){K.next=32;break}throw ne;case 32:if(!P.xmlResponse){K.next=36;break}return K.next=35,this.parseXML(B.data);case 35:B.data=K.sent;case 36:return K.abrupt("return",B);case 37:case"end":return K.stop()}},Z,this,[[3,10]])}),J._getResource=function(Z){var P="/";return Z.bucket&&(P+=Z.bucket+"/"),Z.object&&(P+=Z.object),P},J._isIP=function(Z){return U._isIP(Z)},J._escape=function(Z){return R.encodeURIComponent(Z).replace(/%2F/g,"/")},J._getReqUrl=function(Z){var P={};w(this.options.endpoint).to(P);var D=this._isIP(P.hostname),B=this.options.cname;!Z.bucket||B||D||(P.host=Z.bucket+"."+P.host);var z="/";Z.bucket&&D&&(z+=Z.bucket+"/"),Z.object&&(z+=this._escape(Z.object).replace(/\+/g,"%2B")),P.pathname=z;var ne={};if(Z.query&&I(ne,Z.query),Z.subres){var K={};W.string(Z.subres)?K[Z.subres]="":W.array(Z.subres)?Z.subres.forEach(function(se){K[se]=""}):K=Z.subres,I(ne,K)}return P.query=ne,b.format(P)},J._getUserAgent=function(){var Z=d&&d.browser?"js":"nodejs",P="aliyun-sdk-"+Z+"/"+F.version,D=M.description;return!D&&d&&(D="Node.js "+d.version.slice(1)+" on "+d.platform+" "+d.arch),this._checkUserAgent(P+" "+D)},J._checkUserAgent=function(Z){return Z.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},J.checkBrowserAndVersion=function(Z,P){return G.name===Z&&G.version.split(".")[0]===P},J.parseXML=function(Z){return function(P){m.isBuffer(Z)&&(Z=Z.toString()),h.parseString(Z,{explicitRoot:!1,explicitArray:!1},P)}},J.requestError=c.default.mark(function Z(P){var D,B,z,ne;return c.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(D=null,P.data&&P.data.length){K.next=5;break}P.status===-1||P.status===-2?(D=new Error(P.message),D.name=P.name,D.status=P.status,D.code=P.name):(P.status===404?(D=new Error("Object not exists"),D.name="NoSuchKeyError",D.status=404,D.code="NoSuchKey"):P.status===412?(D=new Error("Pre condition failed"),D.name="PreconditionFailedError",D.status=412,D.code="PreconditionFailed"):(D=new Error("Unknow error, status: "+P.status),D.name="UnknowError",D.status=P.status),D.requestId=P.headers["x-oss-request-id"],D.host=""),K.next=30;break;case 5:return B=String(P.data),T("request response error data: %s",B),z=void 0,K.prev=8,K.next=11,this.parseXML(B)||{};case 11:z=K.sent,K.next=21;break;case 14:return K.prev=14,K.t0=K.catch(8),T(B),K.t0.message+=`
|
|
raw xml: `+B,K.t0.status=P.status,K.t0.requestId=P.headers["x-oss-request-id"],K.abrupt("return",K.t0);case 21:ne=z.Message||"unknow request error, status: "+P.status,z.Condition&&(ne+=" (condition: "+z.Condition+")"),D=new Error(ne),D.name=z.Code?z.Code+"Error":"UnknowError",D.status=P.status,D.code=z.Code,D.requestId=z.RequestId,D.hostId=z.HostId,D.serverTime=z.ServerTime;case 30:return T("generate error %j",D),K.abrupt("return",D);case 32:case"end":return K.stop()}},Z,this,[[8,14]])})}).call(this,n("_process"),n("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(n,k,S){(function(d){"use strict";function m(w){return w&&w.__esModule?w:{default:w}}function i(w,E){if(!(this instanceof i))return new i(w,E);v.call(this,E),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var s=n("babel-runtime/core-js/array/from"),f=m(s),o=n("babel-runtime/regenerator"),t=m(o),r=n("is-type-of"),u=n("util"),c=n("path"),p=n("mime"),l=n("copy-to"),T=S;T.multipartUpload=t.default.mark(function w(E,h,_){var O,I,b,W,M,R,N,F,H;return t.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(this.resetCancelFlag(),_=_||{},!_.checkpoint||!_.checkpoint.uploadId){G.next=6;break}return G.next=5,this._resumeMultipart(_.checkpoint,_);case 5:return G.abrupt("return",G.sent);case 6:return O=102400,_.mime||(r.file(h)?_.mime=p.getType(c.extname(h.name)):r.blob(h)?_.mime=h.type:_.mime=p.getType(c.extname(h))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),G.next=12,this._getFileSize(h);case 12:if(!((I=G.sent)<O)){G.next=25;break}return b=this._createStream(h,0,I),_.contentLength=I,G.next=18,this.putStream(E,b,_);case 18:if(W=G.sent,!_||!_.progress){G.next=22;break}return G.next=22,_.progress(1);case 22:return M={res:W.res,bucket:this.options.bucket,name:E,etag:W.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(M.data=W.data),G.abrupt("return",M);case 25:if(!(_.partSize&&_.partSize<O)){G.next=27;break}throw new Error("partSize must not be smaller than "+O);case 27:return G.next=29,this.initMultipartUpload(E,_);case 29:if(R=G.sent,N=R.uploadId,F=this._getPartSize(I,_.partSize),H={file:h,name:E,fileSize:I,partSize:F,uploadId:N,doneParts:[]},!_||!_.progress){G.next=36;break}return G.next=36,_.progress(0,H,R.res);case 36:return G.next=38,this._resumeMultipart(H,_);case 38:return G.abrupt("return",G.sent);case 39:case"end":return G.stop()}},w,this)}),T._resumeMultipart=t.default.mark(function w(E,h){var _,O,I,b,W,M,R,N,F,H,G,Y,U,$,J,Z,P,D,B,z,ne;return t.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!this.isCancel()){K.next=2;break}throw this._makeCancelEvent();case 2:if(_=E.file,O=E.fileSize,I=E.partSize,b=E.uploadId,W=E.doneParts,M=E.name,R=[],W.length>0&&l(W).to(R),N=this._divideParts(O,I),F=N.length,H=!1,G=t.default.mark(function se(re,ce){var fe,ee,te;return t.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(re.isCancel()){oe.next=21;break}return oe.prev=1,fe=N[ce-1],ee={stream:re._createStream(_,fe.start,fe.end),size:fe.end-fe.start},oe.next=6,re._uploadPart(M,b,ce,ee);case 6:if(te=oe.sent,re.isCancel()||H){oe.next=13;break}if(E.doneParts.push({number:ce,etag:te.res.headers.etag}),R.push({number:ce,etag:te.res.headers.etag}),!h||!h.progress){oe.next=13;break}return oe.next=13,h.progress(W.length/F,E,te.res);case 13:oe.next=21;break;case 15:if(oe.prev=15,oe.t0=oe.catch(1),re.isCancel()){oe.next=21;break}throw re.cancel(),oe.t0.partNum=ce,oe.t0;case 21:case"end":return oe.stop()}},se,this,[[1,15]])}),Y=(0,f.default)(new Array(F),function(se,re){return re+1}),U=R.map(function(se){return se.number}),$=Y.filter(function(se){return U.indexOf(se)<0}),J=5,Z=h.parallel||J,!this.checkBrowserAndVersion("Internet Explorer","10")&&Z!==1){K.next=26;break}P=0;case 16:if(!(P<$.length)){K.next=24;break}if(!this.isCancel()){K.next=19;break}throw this._makeCancelEvent();case 19:return K.next=21,G(this,$[P]);case 21:P++,K.next=16;break;case 24:K.next=40;break;case 26:for(D=[],B=0;B<$.length;B++)D.push(G(this,$[B]));return K.next=30,this._thunkPool(D,Z);case 30:if(z=K.sent,H=!0,!(z&&z.length>0)){K.next=37;break}throw this.resetCancelFlag(),ne=z[0],ne.message="Failed to upload some parts with error: "+ne.toString()+" part_num: "+ne.partNum,ne;case 37:if(!this.isCancel()){K.next=40;break}throw D=null,this._makeCancelEvent();case 40:return K.next=42,this.completeMultipartUpload(M,b,R,h);case 42:return K.abrupt("return",K.sent);case 43:case"end":return K.stop()}},w,this)}),r.file=function(w){return typeof File!="undefined"&&w instanceof File},r.blob=function(w){return typeof Blob!="undefined"&&w instanceof Blob},T._getFileSize=t.default.mark(function w(E){var h;return t.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!r.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!r.blob(E)&&!r.file(E)){_.next=6;break}return _.abrupt("return",E.size);case 6:if(!r.string(E)){_.next=11;break}return _.next=9,this._statFile(E);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()}},w,this)});var x=n("stream"),v=x.Readable;u.inherits(i,v),i.prototype.readFileAndPush=function(w){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var h=this.start,_=h+w;_=_>this.fileBuffer.length?this.fileBuffer.length:_,this.start=_,E=this.push(this.fileBuffer.slice(h,_))}},i.prototype._read=function(w){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);w=w||16384;var E=this;this.reader.onload=function(h){E.fileBuffer=new d(new Uint8Array(h.target.result)),E.file=null,E.readFileAndPush(w)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(w)},T._createStream=function(w,E,h){if(r.blob(w)||r.file(w))return new i(w.slice(E,h));throw new Error("_createStream requires File/String.")},T._getPartSize=function(w,E){return E?Math.max(Math.ceil(w/1e4),E):1048576},T._divideParts=function(w,E){for(var h=Math.ceil(w/E),_=[],O=0;O<h;O++){var I=E*O,b=Math.min(I+E,w);_.push({start:I,end:b})}return _},T._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(n,k,S){"use strict";function d(E){return E&&E.__esModule?E:{default:E}}var m=n("babel-runtime/core-js/object/keys"),i=d(m),s=n("babel-runtime/regenerator"),f=d(s),o=n("debug")("ali-oss:object"),t=n("utility"),r=n("fs"),u=n("is-type-of"),c=n("url"),p=n("copy-to"),l=n("path"),T=n("mime"),x=n("../common/callback"),v=n("../common/signUtils"),w=S;w.append=f.default.mark(function E(h,_,O){var I;return f.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",b.next=6,this.put(h,_,O);case 6:return I=b.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],b.abrupt("return",I);case 9:case"end":return b.stop()}},E,this)}),w.put=f.default.mark(function E(h,_,O){var I,b,W,M,R,N;return f.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(I=void 0,O=O||{},!u.buffer(_)){F.next=6;break}I=_,F.next=18;break;case 6:if(!u.blob(_)&&!u.file(_)){F.next=17;break}return O.mime||(u.file(_)?O.mime=T.getType(l.extname(_.name)):O.mime=_.type),b=this._createStream(_,0,_.size),F.next=11,this._getFileSize(_);case 11:return O.contentLength=F.sent,F.next=14,this.putStream(h,b,O);case 14:return F.abrupt("return",F.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),W=O.method||"PUT",M=this._objectRequestParams(W,h,O),x.encodeCallback(M,O),M.mime=O.mime,M.content=I,M.successStatuses=[200],F.next=28,this.request(M);case 28:return R=F.sent,N={name:h,url:this._objectUrl(h),res:R.res},M.headers&&M.headers["x-oss-callback"]&&(N.data=JSON.parse(R.data.toString())),F.abrupt("return",N);case 32:case"end":return F.stop()}},E,this)}),w.putStream=f.default.mark(function E(h,_,O){var I,b,W,M;return f.default.wrap(function(R){for(;;)switch(R.prev=R.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),I=O.method||"PUT",b=this._objectRequestParams(I,h,O),x.encodeCallback(b,O),b.mime=O.mime,b.stream=_,b.successStatuses=[200],R.next=12,this.request(b);case 12:return W=R.sent,M={name:h,url:this._objectUrl(h),res:W.res},b.headers&&b.headers["x-oss-callback"]&&(M.data=JSON.parse(W.data.toString())),R.abrupt("return",M);case 16:case"end":return R.stop()}},E,this)}),w.head=f.default.mark(function E(h,_){var O,I,b;return f.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return O=this._objectRequestParams("HEAD",h,_),O.successStatuses=[200,304],W.next=4,this.request(O);case 4:return I=W.sent,b={meta:null,res:I.res,status:I.status},I.status===200&&(0,i.default)(I.headers).forEach(function(M){M.indexOf("x-oss-meta-")===0&&(b.meta||(b.meta={}),b.meta[M.substring(11)]=I.headers[M])}),W.abrupt("return",b);case 8:case"end":return W.stop()}},E,this)}),w.get=f.default.mark(function E(h,_,O){var I,b,W,M;return f.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return I=null,b=!1,u.writableStream(_)?I=_:u.string(_)?(I=r.createWriteStream(_),b=!0):O=_,O=O||{},O.process&&(O.subres=O.subres||{},O.subres["x-oss-process"]=O.process),W=void 0,R.prev=6,M=this._objectRequestParams("GET",h,O),M.writeStream=I,M.successStatuses=[200,206,304],R.next=12,this.request(M);case 12:W=R.sent,b&&I.destroy(),R.next=24;break;case 16:if(R.prev=16,R.t0=R.catch(6),!b){R.next=23;break}return I.destroy(),o("get error: %s, delete the exists file %s",R.t0,_),R.next=23,this._deleteFileSafe(_);case 23:throw R.t0;case 24:return R.abrupt("return",{res:W.res,content:W.data});case 25:case"end":return R.stop()}},E,this,[[6,16]])}),w.getStream=f.default.mark(function E(h,_){var O,I;return f.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},O=this._objectRequestParams("GET",h,_),O.customResponse=!0,O.successStatuses=[200,206,304],b.next=6,this.request(O);case 6:return I=b.sent,b.abrupt("return",{stream:I.res,res:{status:I.status,headers:I.headers}});case 8:case"end":return b.stop()}},E,this)}),w.delete=f.default.mark(function E(h,_){var O,I;return f.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return O=this._objectRequestParams("DELETE",h,_),O.successStatuses=[204],b.next=4,this.request(O);case 4:return I=b.sent,b.abrupt("return",{res:I.res});case 6:case"end":return b.stop()}},E,this)}),w.deleteMulti=f.default.mark(function E(h,_){var O,I,b,W,M,R;return f.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>
|
|
`,I=0;I<h.length;I++)O+=" <Object><Key>"+t.escape(this._objectName(h[I]))+`</Key></Object>
|
|
`;return O+="</Delete>",o("delete multi objects: %s",O),_.subres="delete",b=this._objectRequestParams("POST","",_),b.mime="xml",b.content=O,b.xmlResponse=!0,b.successStatuses=[200],N.next=14,this.request(b);case 14:return W=N.sent,M=W.data,R=M&&M.Deleted||null,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(F){return F.Key})),N.abrupt("return",{res:W.res,deleted:R});case 19:case"end":return N.stop()}},E,this)}),w.copy=f.default.mark(function E(h,_,O){var I,b,W;return f.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.headers=O.headers||{},(0,i.default)(O.headers).forEach(function(R){O.headers["x-oss-copy-source-"+R.toLowerCase()]=O.headers[R]}),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"]=_,I=this._objectRequestParams("PUT",h,O),I.xmlResponse=!0,I.successStatuses=[200,304],M.next=12,this.request(I);case 12:return b=M.sent,W=b.data,W&&(W={etag:W.ETag,lastModified:W.LastModified}),M.abrupt("return",{data:W,res:b.res});case 16:case"end":return M.stop()}},E,this)}),w.putMeta=f.default.mark(function E(h,_,O){return f.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,this.copy(h,h,{meta:_||{},timeout:O&&O.timeout,ctx:O&&O.ctx});case 2:return I.abrupt("return",I.sent);case 3:case"end":return I.stop()}},E,this)}),w.list=f.default.mark(function E(h,_){var O,I,b,W,M;return f.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return O=this._objectRequestParams("GET","",_),O.query=h,O.xmlResponse=!0,O.successStatuses=[200],R.next=6,this.request(O);case 6:return I=R.sent,b=I.data.Contents,W=this,b&&(Array.isArray(b)||(b=[b]),b=b.map(function(N){return{name:N.Key,url:W._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}}})),M=I.data.CommonPrefixes||null,M&&(Array.isArray(M)||(M=[M]),M=M.map(function(N){return N.Prefix})),R.abrupt("return",{res:I.res,objects:b,prefixes:M,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return R.stop()}},E,this)}),w.putACL=f.default.mark(function E(h,_,O){var I,b;return f.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return O=O||{},O.subres="acl",O.headers=O.headers||{},O.headers["x-oss-object-acl"]=_,h=this._objectName(h),I=this._objectRequestParams("PUT",h,O),I.successStatuses=[200],W.next=9,this.request(I);case 9:return b=W.sent,W.abrupt("return",{res:b.res});case 11:case"end":return W.stop()}},E,this)}),w.getACL=f.default.mark(function E(h,_){var O,I;return f.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},_.subres="acl",h=this._objectName(h),O=this._objectRequestParams("GET",h,_),O.successStatuses=[200],O.xmlResponse=!0,b.next=8,this.request(O);case 8:return I=b.sent,b.abrupt("return",{acl:I.data.AccessControlList.Grant,owner:{id:I.data.Owner.ID,displayName:I.data.Owner.DisplayName},res:I.res});case 10:case"end":return b.stop()}},E,this)}),w.restore=f.default.mark(function E(h,_){var O,I;return f.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return _=_||{},_.subres="restore",O=this._objectRequestParams("POST",h,_),O.successStatuses=[202],b.next=6,this.request(O);case 6:return I=b.sent,b.abrupt("return",{res:I.res});case 8:case"end":return b.stop()}},E,this)}),w.signatureUrl=function(E,h){h=h||{},E=this._objectName(E),h.method=h.method||"GET";var _=t.timestamp()+(h.expires||1800),O={bucket:this.options.bucket,object:E},I=this._getResource(O);this.options.stsToken&&(h["security-token"]=this.options.stsToken);var b=v._signatureForURL(this.options.accessKeySecret,h,I,_),W=c.parse(this._getReqUrl(O));return W.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:b.Signature},p(b.subResource).to(W.query),W.format()},w.getObjectUrl=function(E,h){return h?h[h.length-1]!=="/"&&(h+="/"):h=this.options.endpoint.format(),h+this._escape(this._objectName(E))},w._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},w.generateObjectUrl=function(E,h){if(h)h[h.length-1]!=="/"&&(h+="/");else{h=this.options.endpoint.format();var _=c.parse(h),O=this.options.bucket;_.hostname=O+"."+_.hostname,_.host=O+"."+_.host,h=_.format()}return h+this._escape(this._objectName(E))},w._objectRequestParams=function(E,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:E,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(O.headers={},p(_.headers).to(O.headers)),O},w._objectName=function(E){return E.replace(/^\/+/,"")},w._statFile=function(E){return function(h){r.stat(E,h)}},w._convertMetaToHeaders=function(E,h){E&&(0,i.default)(E).forEach(function(_){h["x-oss-meta-"+_]=E[_]})},w._deleteFileSafe=function(E){return function(h){r.exists(E,function(_){_?r.unlink(E,function(O){O&&o("unlink %j error: %s",E,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,k,S){"use strict";S.version="5.3.1"},{}],6:[function(n,k,S){"use strict";function d(l){return l&&l.__esModule?l:{default:l}}function m(l){return l&&typeof l.next=="function"&&typeof l.throw=="function"}function i(l){if(!l)return!1;var T=l.constructor;return!!T&&(T.name==="GeneratorFunction"||T.displayName==="GeneratorFunction"||m(T.prototype)||m(l.prototype))}function s(l,T){var x=new l(T),v=(0,u.default)(x),w=(0,u.default)((0,t.default)(x));v.concat(w).forEach(function(E){i(x[E])?this[E]=c.wrap(x[E]).bind(x):this[E]=x[E]},this)}function f(l){if(!(this instanceof f))return new f(l);s.call(this,p,l)}var o=n("babel-runtime/core-js/object/get-prototype-of"),t=d(o),r=n("babel-runtime/core-js/object/keys"),u=d(r),c=n("co"),p=n("./client");k.exports=f,f.STS=function l(T){if(!(this instanceof l))return new l(T);s.call(this,p.STS,T)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(n,k,S){(function(d){"use strict";function m(t){return t&&t.__esModule?t:{default:t}}var i=n("babel-runtime/core-js/object/keys"),s=m(i),f=n("babel-runtime/core-js/json/stringify"),o=m(f);S.encodeCallback=function(t,r){if(t.headers=t.headers||{},!Object.prototype.hasOwnProperty.call(t.headers,"x-oss-callback")&&r.callback){var u={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(u.callbackHost=r.callback.host),r.callback.contentType&&(u.callbackBodyType=r.callback.contentType);var c=new d((0,o.default)(u)).toString("base64");if(t.headers["x-oss-callback"]=c,r.callback.customValue){var p={};(0,s.default)(r.callback.customValue).forEach(function(l){p["x:"+l]=r.callback.customValue[l]}),t.headers["x-oss-callback-var"]=new d((0,o.default)(p)).toString("base64")}}}}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(n,k,S){"use strict";var d=n("babel-runtime/regenerator"),m=function(o){return o&&o.__esModule?o:{default:o}}(d),i=n("copy-to"),s=n("./callback"),f=S;f.listUploads=m.default.mark(function o(t,r){var u,c,p,l;return m.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return r=r||{},u={},i(r).to(u),u.subres="uploads",c=this._objectRequestParams("GET","",u),c.query=t,c.xmlResponse=!0,c.successStatuses=[200],T.next=10,this.request(c);case 10:return p=T.sent,l=p.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(x){return{name:x.Key,uploadId:x.UploadId,initiated:x.Initiated}}),T.abrupt("return",{res:p.res,uploads:l,bucket:p.data.Bucket,nextKeyMarker:p.data.NextKeyMarker,nextUploadIdMarker:p.data.NextUploadIdMarker,isTruncated:p.data.IsTruncated==="true"});case 15:case"end":return T.stop()}},o,this)}),f.listParts=m.default.mark(function o(t,r,u,c){var p,l,T;return m.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return c=c||{},p={},i(c).to(p),p.subres={uploadId:r},l=this._objectRequestParams("GET",t,p),l.query=u,l.xmlResponse=!0,l.successStatuses=[200],x.next=10,this.request(l);case 10:return T=x.sent,x.abrupt("return",{res:T.res,uploadId:T.data.UploadId,bucket:T.data.Bucket,name:T.data.Key,partNumberMarker:T.data.PartNumberMarker,nextPartNumberMarker:T.data.NextPartNumberMarker,maxParts:T.data.MaxParts,isTruncated:T.data.IsTruncated,parts:T.data.Part||[]});case 12:case"end":return x.stop()}},o,this)}),f.abortMultipartUpload=m.default.mark(function o(t,r,u){var c,p,l;return m.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return this.cancel(),u=u||{},c={},i(u).to(c),c.subres={uploadId:r},p=this._objectRequestParams("DELETE",t,c),p.successStatuses=[204],T.next=9,this.request(p);case 9:return l=T.sent,T.abrupt("return",{res:l.res});case 11:case"end":return T.stop()}},o,this)}),f.initMultipartUpload=m.default.mark(function o(t,r){var u,c,p;return m.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},u={},i(r).to(u),u.headers=u.headers||{},this._convertMetaToHeaders(r.meta,u.headers),u.subres="uploads",c=this._objectRequestParams("POST",t,u),c.mime=r.mime,c.xmlResponse=!0,c.successStatuses=[200],l.next=12,this.request(c);case 12:return p=l.sent,l.abrupt("return",{res:p.res,bucket:p.data.Bucket,name:p.data.Key,uploadId:p.data.UploadId});case 14:case"end":return l.stop()}},o,this)}),f.uploadPart=m.default.mark(function o(t,r,u,c,p,l,T){var x;return m.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return x={stream:this._createStream(c,p,l),size:l-p},v.next=3,this._uploadPart(t,r,u,x,T);case 3:return v.abrupt("return",v.sent);case 4:case"end":return v.stop()}},o,this)}),f.completeMultipartUpload=m.default.mark(function o(t,r,u,c){var p,l,T,x,v,w,E,h;return m.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:for(p=u.concat().sort(function(O,I){return O.number-I.number}).filter(function(O,I,b){return!I||O.number!==b[I-1].number}),l=`<?xml version="1.0" encoding="UTF-8"?>
|
|
<CompleteMultipartUpload>
|
|
`,T=0;T<p.length;T++)x=p[T],l+=`<Part>
|
|
`,l+="<PartNumber>"+x.number+`</PartNumber>
|
|
`,l+="<ETag>"+x.etag+`</ETag>
|
|
`,l+=`</Part>
|
|
`;return l+="</CompleteMultipartUpload>",c=c||{},v={},i(c).to(v),v.subres={uploadId:r},w=this._objectRequestParams("POST",t,v),s.encodeCallback(w,v),w.mime="xml",w.content=l,w.headers&&w.headers["x-oss-callback"]||(w.xmlResponse=!0),w.successStatuses=[200],_.next=16,this.request(w);case 16:return E=_.sent,h={res:E.res,bucket:w.bucket,name:t,etag:E.res.headers.etag},w.headers&&w.headers["x-oss-callback"]&&(h.data=JSON.parse(E.data.toString())),_.abrupt("return",h);case 20:case"end":return _.stop()}},o,this)}),f._uploadPart=m.default.mark(function o(t,r,u,c,p){var l,T,x;return m.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return p=p||{},l={},i(p).to(l),l.headers={"Content-Length":c.size},l.subres={partNumber:u,uploadId:r},T=this._objectRequestParams("PUT",t,l),T.mime=l.mime,T.stream=c.stream,T.successStatuses=[200],v.next=11,this.request(T);case 11:return x=v.sent,c.stream=null,T.stream=null,v.abrupt("return",{name:t,etag:x.res.headers.etag,res:x.res});case 15:case"end":return v.stop()}},o,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(n,k,S){(function(d){"use strict";function m(u){return u&&u.__esModule?u:{default:u}}var i=n("babel-runtime/core-js/json/stringify"),s=m(i),f=n("babel-runtime/core-js/object/keys"),o=m(f),t=n("./../../shims/crypto/crypto.js"),r=n("is-type-of");S.buildCanonicalizedResource=function(u,c){var p=""+u,l="?";if(r.string(c)&&c.trim()!=="")p+=l+c;else if(r.array(c))c.sort(),p+=l+c.join("&");else if(c){var T=function(v,w){return v[0]>w[0]?1:v[0]<w[0]?-1:0},x=function(v){p+=l+v,c[v]&&(p+="="+c[v]),l="&"};(0,o.default)(c).sort(T).forEach(x)}return p},S.buildCanonicalString=function(u,c,p,l){p=p||{};var T=p.headers||{},x=[],v={},w=[u.toUpperCase(),T["Content-Md5"]||"",T["Content-Type"]||T["Content-Type".toLowerCase()],l||T["x-oss-date"]];return(0,o.default)(T).forEach(function(E){var h=E.toLowerCase();h.indexOf("x-oss-")===0&&(v[h]=String(T[E]).trim())}),(0,o.default)(v).sort().forEach(function(E){x.push(E+":"+v[E])}),w=w.concat(x),w.push(this.buildCanonicalizedResource(c,p.parameters)),w.join(`
|
|
`)},S.computeSignature=function(u,c){return t.createHmac("sha1",u).update(new d(c,"utf8")).digest("base64")},S.authorization=function(u,c,p){return"OSS "+u+":"+this.computeSignature(c,p)},S._signatureForURL=function(u,c,p,l){var T={},x={};if(c.process&&(x["x-oss-process"]=c.process),c.response&&(0,o.default)(c.response).forEach(function(h){var _="response-"+h.toLowerCase();x[_]=c.response[h]}),(0,o.default)(c).forEach(function(h){var _=h.toLowerCase(),O=c[h];_.indexOf("x-oss-")===0?T[_]=O:_.indexOf("content-md5")===0||_.indexOf("content-type")===0?T[h]=O:_!=="expires"&&_!=="response"&&_!=="process"&&_!=="method"&&(x[_]=O)}),Object.prototype.hasOwnProperty.call(c,"security-token")&&(x["security-token"]=c["security-token"]),Object.prototype.hasOwnProperty.call(c,"callback")){var v={callbackUrl:encodeURI(c.callback.url),callbackBody:c.callback.body};if(c.callback.host&&(v.callbackHost=c.callback.host),c.callback.contentType&&(v.callbackBodyType=c.callback.contentType),x.callback=new d((0,s.default)(v)).toString("base64"),c.callback.customValue){var w={};(0,o.default)(c.callback.customValue).forEach(function(h){w["x:"+h]=c.callback.customValue[h]}),x["callback-var"]=new d((0,s.default)(w)).toString("base64")}}var E=this.buildCanonicalString(c.method,p,{headers:T,parameters:x},l.toString());return{Signature:this.computeSignature(u,E),subResource:x}}}).call(this,n("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(n,k,S){"use strict";var d=n("babel-runtime/regenerator"),m=function(t){return t&&t.__esModule?t:{default:t}}(d),i=n("co"),s=n("co-priority-queue"),f=n("any-promise"),o=S;o._thunkPool=function(t,r){function u(x,v){++l===x.length&&v(T)}function c(x,v){function w(){var b;return m.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:b=void 0;case 1:if(p.isCancel()){W.next=9;break}return W.next=4,_.next();case 4:return b=W.sent,W.next=7,b();case 7:W.next=1;break;case 9:O+=1,O===x&&(_.fns=[],_.buffer=[],v(T));case 11:case"end":return W.stop()}},h,this)}function E(b){console.error(b.stack)}for(var h=m.default.mark(w),_=new s,O=0,I=0;I<x;I++)i(w).catch(E);return function(b,W){return function(M){_.push(m.default.mark(function R(){return m.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,N.t0=M,N.next=4,b;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),M(N.t2);case 11:case"end":return N.stop()}},R,this,[[0,8]])}),W)}}}var p=this,l=0,T=[];return new f(function(x){function v(O){return m.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,h(t[O]);case 2:u(t,x);case 3:case"end":return I.stop()}},E,this)}function w(O){T.push(O),u(t,x)}for(var E=m.default.mark(v),h=new c(r,x),_=0;_<t.length;_++)i(v(_)).catch(w)})},o.cancel=function(){this.options.cancelFlag=!0},o.isCancel=function(){return this.options.cancelFlag},o.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(n,k,S){"use strict";S._isIP=function(d){var m=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,i=/^\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 m.test(d)||i.test(d)}},{}],12:[function(n,k,S){function d(){}k.exports=d,k.exports.HttpsAgent=d},{}],13:[function(n,k,S){k.exports=n("./register")().Promise},{"./register":15}],14:[function(n,k,S){"use strict";var d=null;k.exports=function(m,i){return function(s,f){s=s||null,f=f||{};var o=f.global!==!1;if(d===null&&o&&(d=m["@@any-promise/REGISTRATION"]||null),d!==null&&s!==null&&d.implementation!==s)throw new Error('any-promise already defined as "'+d.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return d===null&&(d=s!==null&&f.Promise!==void 0?{Promise:f.Promise,implementation:s}:i(s),o&&(m["@@any-promise/REGISTRATION"]=d)),d}}},{}],15:[function(n,k,S){"use strict";function d(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}k.exports=n("./loader")(window,d)},{"./loader":14}],16:[function(n,k,S){k.exports={default:n("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(n,k,S){k.exports={default:n("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(n,k,S){k.exports={default:n("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(n,k,S){k.exports={default:n("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(n,k,S){k.exports={default:n("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(n,k,S){k.exports={default:n("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(n,k,S){k.exports={default:n("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(n,k,S){k.exports={default:n("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(n,k,S){k.exports={default:n("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(n,k,S){"use strict";S.__esModule=!0,S.default=function(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(n,k,S){"use strict";S.__esModule=!0;var d=n("../core-js/object/define-property"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);S.default=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),(0,m.default)(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}()},{"../core-js/object/define-property":20}],32:[function(n,k,S){"use strict";function d(t){return t&&t.__esModule?t:{default:t}}S.__esModule=!0;var m=n("../core-js/symbol/iterator"),i=d(m),s=n("../core-js/symbol"),f=d(s),o=typeof f.default=="function"&&typeof i.default=="symbol"?function(t){return typeof t}:function(t){return t&&typeof f.default=="function"&&t.constructor===f.default&&t!==f.default.prototype?"symbol":typeof t};S.default=typeof f.default=="function"&&o(i.default)==="symbol"?function(t){return t===void 0?"undefined":o(t)}:function(t){return t&&typeof f.default=="function"&&t.constructor===f.default&&t!==f.default.prototype?"symbol":t===void 0?"undefined":o(t)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(n,k,S){k.exports=n("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(n,k,S){"use strict";function d(x){var v=x.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=x.indexOf("=");return w===-1&&(w=v),[w,w===v?0:4-w%4]}function m(x){var v=d(x),w=v[0],E=v[1];return 3*(w+E)/4-E}function i(x,v,w){return 3*(v+w)/4-w}function s(x){for(var v,w=d(x),E=w[0],h=w[1],_=new c(i(x,E,h)),O=0,I=h>0?E-4:E,b=0;b<I;b+=4)v=u[x.charCodeAt(b)]<<18|u[x.charCodeAt(b+1)]<<12|u[x.charCodeAt(b+2)]<<6|u[x.charCodeAt(b+3)],_[O++]=v>>16&255,_[O++]=v>>8&255,_[O++]=255&v;return h===2&&(v=u[x.charCodeAt(b)]<<2|u[x.charCodeAt(b+1)]>>4,_[O++]=255&v),h===1&&(v=u[x.charCodeAt(b)]<<10|u[x.charCodeAt(b+1)]<<4|u[x.charCodeAt(b+2)]>>2,_[O++]=v>>8&255,_[O++]=255&v),_}function f(x){return r[x>>18&63]+r[x>>12&63]+r[x>>6&63]+r[63&x]}function o(x,v,w){for(var E,h=[],_=v;_<w;_+=3)E=(x[_]<<16&16711680)+(x[_+1]<<8&65280)+(255&x[_+2]),h.push(f(E));return h.join("")}function t(x){for(var v,w=x.length,E=w%3,h=[],_=0,O=w-E;_<O;_+=16383)h.push(o(x,_,_+16383>O?O:_+16383));return E===1?(v=x[w-1],h.push(r[v>>2]+r[v<<4&63]+"==")):E===2&&(v=(x[w-2]<<8)+x[w-1],h.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),h.join("")}S.byteLength=m,S.toByteArray=s,S.fromByteArray=t;for(var r=[],u=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,T=p.length;l<T;++l)r[l]=p[l],u[p.charCodeAt(l)]=l;u[45]=62,u[95]=63},{}],35:[function(n,k,S){(function(d,m,i){k!==void 0&&k.exports?k.exports=i():typeof ue=="function"&&ue.amd?ue("bowser",i):d.bowser=i()})(this,0,function(){function d(u){function c(Z){var P=u.match(Z);return P&&P.length>1&&P[1]||""}function p(Z){var P=u.match(Z);return P&&P.length>1&&P[2]||""}var l,T=c(/(ipod|iphone|ipad)/i).toLowerCase(),x=/like android/i.test(u),v=!x&&/android/i.test(u),w=/nexus\s*[0-6]\s*/i.test(u),E=!w&&/nexus\s*[0-9]+/i.test(u),h=/CrOS/.test(u),_=/silk/i.test(u),O=/sailfish/i.test(u),I=/tizen/i.test(u),b=/(web|hpw)os/i.test(u),W=/windows phone/i.test(u),M=(/SamsungBrowser/i.test(u),!W&&/windows/i.test(u)),R=!T&&!_&&/macintosh/i.test(u),N=!v&&!O&&!I&&!b&&/linux/i.test(u),F=p(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),H=c(/version\/(\d+(\.\d+)?)/i),G=/tablet/i.test(u)&&!/tablet pc/i.test(u),Y=!G&&/[^-]mobi/i.test(u),U=/xbox/i.test(u);/opera/i.test(u)?l={name:"Opera",opera:t,version:H||c(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(u)?l={name:"Opera",opera:t,version:c(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||H}:/SamsungBrowser/i.test(u)?l={name:"Samsung Internet for Android",samsungBrowser:t,version:H||c(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(u)?l={name:"Opera Coast",coast:t,version:H||c(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(u)?l={name:"Yandex Browser",yandexbrowser:t,version:H||c(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(u)?l={name:"UC Browser",ucbrowser:t,version:c(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(u)?l={name:"Maxthon",maxthon:t,version:c(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(u)?l={name:"Epiphany",epiphany:t,version:c(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(u)?l={name:"Puffin",puffin:t,version:c(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(u)?l={name:"Sleipnir",sleipnir:t,version:c(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(u)?l={name:"K-Meleon",kMeleon:t,version:c(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:W?(l={name:"Windows Phone",osname:"Windows Phone",windowsphone:t},F?(l.msedge=t,l.version=F):(l.msie=t,l.version=c(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(u)?l={name:"Internet Explorer",msie:t,version:c(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?l={name:"Chrome",osname:"Chrome OS",chromeos:t,chromeBook:t,chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(u)?l={name:"Microsoft Edge",msedge:t,version:F}:/vivaldi/i.test(u)?l={name:"Vivaldi",vivaldi:t,version:c(/vivaldi\/(\d+(\.\d+)?)/i)||H}:O?l={name:"Sailfish",osname:"Sailfish OS",sailfish:t,version:c(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(u)?l={name:"SeaMonkey",seamonkey:t,version:c(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(u)?(l={name:"Firefox",firefox:t,version:c(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(u)&&(l.firefoxos=t,l.osname="Firefox OS")):_?l={name:"Amazon Silk",silk:t,version:c(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(u)?l={name:"PhantomJS",phantom:t,version:c(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(u)?l={name:"SlimerJS",slimer:t,version:c(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(u)||/rim\stablet/i.test(u)?l={name:"BlackBerry",osname:"BlackBerry OS",blackberry:t,version:H||c(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(l={name:"WebOS",osname:"WebOS",webos:t,version:H||c(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(u)&&(l.touchpad=t)):/bada/i.test(u)?l={name:"Bada",osname:"Bada",bada:t,version:c(/dolfin\/(\d+(\.\d+)?)/i)}:I?l={name:"Tizen",osname:"Tizen",tizen:t,version:c(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||H}:/qupzilla/i.test(u)?l={name:"QupZilla",qupzilla:t,version:c(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||H}:/chromium/i.test(u)?l={name:"Chromium",chromium:t,version:c(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||H}:/chrome|crios|crmo/i.test(u)?l={name:"Chrome",chrome:t,version:c(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:v?l={name:"Android",version:H}:/safari|applewebkit/i.test(u)?(l={name:"Safari",safari:t},H&&(l.version=H)):T?(l={name:T=="iphone"?"iPhone":T=="ipad"?"iPad":"iPod"},H&&(l.version=H)):l=/googlebot/i.test(u)?{name:"Googlebot",googlebot:t,version:c(/googlebot\/(\d+(\.\d+))/i)||H}:{name:c(/^(.*)\/(.*) /),version:p(/^(.*)\/(.*) /)},!l.msedge&&/(apple)?webkit/i.test(u)?(/(apple)?webkit\/537\.36/i.test(u)?(l.name=l.name||"Blink",l.blink=t):(l.name=l.name||"Webkit",l.webkit=t),!l.version&&H&&(l.version=H)):!l.opera&&/gecko\//i.test(u)&&(l.name=l.name||"Gecko",l.gecko=t,l.version=l.version||c(/gecko\/(\d+(\.\d+)?)/i)),l.windowsphone||!v&&!l.silk?!l.windowsphone&&T?(l[T]=t,l.ios=t,l.osname="iOS"):R?(l.mac=t,l.osname="macOS"):U?(l.xbox=t,l.osname="Xbox"):M?(l.windows=t,l.osname="Windows"):N&&(l.linux=t,l.osname="Linux"):(l.android=t,l.osname="Android");var $="";l.windows?$=function(Z){switch(Z){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(c(/Windows ((NT|XP)( \d\d?.\d)?)/i)):l.windowsphone?$=c(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):l.mac?($=c(/Mac OS X (\d+([_\.\s]\d+)*)/i),$=$.replace(/[_\s]/g,".")):T?($=c(/os (\d+([_\s]\d+)*) like mac os x/i),$=$.replace(/[_\s]/g,".")):v?$=c(/android[ \/-](\d+(\.\d+)*)/i):l.webos?$=c(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):l.blackberry?$=c(/rim\stablet\sos\s(\d+(\.\d+)*)/i):l.bada?$=c(/bada\/(\d+(\.\d+)*)/i):l.tizen&&($=c(/tizen[\/\s](\d+(\.\d+)*)/i)),$&&(l.osversion=$);var J=!l.windows&&$.split(".")[0];return G||E||T=="ipad"||v&&(J==3||J>=4&&!Y)||l.silk?l.tablet=t:(Y||T=="iphone"||T=="ipod"||v||w||l.blackberry||l.webos||l.bada)&&(l.mobile=t),l.msedge||l.msie&&l.version>=10||l.yandexbrowser&&l.version>=15||l.vivaldi&&l.version>=1||l.chrome&&l.version>=20||l.samsungBrowser&&l.version>=4||l.firefox&&l.version>=20||l.safari&&l.version>=6||l.opera&&l.version>=10||l.ios&&l.osversion&&l.osversion.split(".")[0]>=6||l.blackberry&&l.version>=10.1||l.chromium&&l.version>=20?l.a=t:l.msie&&l.version<10||l.chrome&&l.version<20||l.firefox&&l.version<20||l.safari&&l.version<6||l.opera&&l.version<10||l.ios&&l.osversion&&l.osversion.split(".")[0]<6||l.chromium&&l.version<20?l.c=t:l.x=t,l}function m(u){return u.split(".").length}function i(u,c){var p,l=[];if(Array.prototype.map)return Array.prototype.map.call(u,c);for(p=0;p<u.length;p++)l.push(c(u[p]));return l}function s(u){for(var c=Math.max(m(u[0]),m(u[1])),p=i(u,function(l){var T=c-m(l);return l+=new Array(T+1).join(".0"),i(l.split("."),function(x){return new Array(20-x.length).join("0")+x}).reverse()});--c>=0;){if(p[0][c]>p[1][c])return 1;if(p[0][c]!==p[1][c])return-1;if(c===0)return 0}}function f(u,c,p){var l=r;typeof c=="string"&&(p=c,c=void 0),c===void 0&&(c=!1),p&&(l=d(p));var T=""+l.version;for(var x in u)if(u.hasOwnProperty(x)&&l[x]){if(typeof u[x]!="string")throw new Error("Browser version in the minVersion map should be a string: "+x+": "+String(u));return s([T,u[x]])<0}return c}function o(u,c,p){return!f(u,c,p)}var t=!0,r=d(typeof navigator!="undefined"&&navigator.userAgent||"");return r.test=function(u){for(var c=0;c<u.length;++c){var p=u[c];if(typeof p=="string"&&p in r)return!0}return!1},r.isUnsupportedBrowser=f,r.compareVersions=s,r.check=o,r._detect=d,r.detect=d,r})},{}],36:[function(n,k,S){},{}],37:[function(n,k,S){function d(r){if(r&&!o(r))throw new Error("Unknown encoding: "+r)}function m(r){return r.toString(this.encoding)}function i(r){this.charReceived=r.length%2,this.charLength=this.charReceived?2:0}function s(r){this.charReceived=r.length%3,this.charLength=this.charReceived?3:0}var f=n("buffer").Buffer,o=f.isEncoding||function(r){switch(r&&r.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=S.StringDecoder=function(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),d(r),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=m)}this.charBuffer=new f(6),this.charReceived=0,this.charLength=0};t.prototype.write=function(r){for(var u="";this.charLength;){var c=r.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:r.length;if(r.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";r=r.slice(c,r.length),u=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=u.charCodeAt(u.length-1);if(!(l>=55296&&l<=56319)){if(this.charReceived=this.charLength=0,r.length===0)return u;break}this.charLength+=this.surrogateSize,u=""}this.detectIncompleteChar(r);var p=r.length;this.charLength&&(r.copy(this.charBuffer,0,r.length-this.charReceived,p),p-=this.charReceived),u+=r.toString(this.encoding,0,p);var p=u.length-1,l=u.charCodeAt(p);if(l>=55296&&l<=56319){var T=this.surrogateSize;return this.charLength+=T,this.charReceived+=T,this.charBuffer.copy(this.charBuffer,T,0,T),r.copy(this.charBuffer,0,0,T),u.substring(0,p)}return u},t.prototype.detectIncompleteChar=function(r){for(var u=r.length>=3?3:r.length;u>0;u--){var c=r[r.length-u];if(u==1&&c>>5==6){this.charLength=2;break}if(u<=2&&c>>4==14){this.charLength=3;break}if(u<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=u},t.prototype.end=function(r){var u="";if(r&&r.length&&(u=this.write(r)),this.charReceived){var c=this.charReceived,p=this.charBuffer,l=this.encoding;u+=p.slice(0,c).toString(l)}return u}},{buffer:38}],38:[function(n,k,S){(function(d){"use strict";function m(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,a){if(m()<a)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(a),e.__proto__=s.prototype):(e===null&&(e=new s(a)),e.length=a),e}function s(e,a,A){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,a,A);if(typeof e=="number"){if(typeof a=="string")throw new Error("If encoding is specified then the first argument must be a string");return r(this,e)}return f(this,e,a,A)}function f(e,a,A,g){if(typeof a=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&a instanceof ArrayBuffer?p(e,a,A,g):typeof a=="string"?u(e,a,A):l(e,a)}function o(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function t(e,a,A,g){return o(a),a<=0?i(e,a):A!==void 0?typeof g=="string"?i(e,a).fill(A,g):i(e,a).fill(A):i(e,a)}function r(e,a){if(o(a),e=i(e,a<0?0:0|T(a)),!s.TYPED_ARRAY_SUPPORT)for(var A=0;A<a;++A)e[A]=0;return e}function u(e,a,A){if(typeof A=="string"&&A!==""||(A="utf8"),!s.isEncoding(A))throw new TypeError('"encoding" must be a valid string encoding');var g=0|v(a,A);e=i(e,g);var y=e.write(a,A);return y!==g&&(e=e.slice(0,y)),e}function c(e,a){var A=a.length<0?0:0|T(a.length);e=i(e,A);for(var g=0;g<A;g+=1)e[g]=255&a[g];return e}function p(e,a,A,g){if(a.byteLength,A<0||a.byteLength<A)throw new RangeError("'offset' is out of bounds");if(a.byteLength<A+(g||0))throw new RangeError("'length' is out of bounds");return a=A===void 0&&g===void 0?new Uint8Array(a):g===void 0?new Uint8Array(a,A):new Uint8Array(a,A,g),s.TYPED_ARRAY_SUPPORT?(e=a,e.__proto__=s.prototype):e=c(e,a),e}function l(e,a){if(s.isBuffer(a)){var A=0|T(a.length);return e=i(e,A),e.length===0||a.copy(e,0,0,A),e}if(a){if(typeof ArrayBuffer!="undefined"&&a.buffer instanceof ArrayBuffer||"length"in a)return typeof a.length!="number"||L(a.length)?i(e,0):c(e,a);if(a.type==="Buffer"&&Q(a.data))return c(e,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function T(e){if(e>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|e}function x(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,a){if(s.isBuffer(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var A=e.length;if(A===0)return 0;for(var g=!1;;)switch(a){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case void 0:return ce(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return te(e).length;default:if(g)return ce(e).length;a=(""+a).toLowerCase(),g=!0}}function w(e,a,A){var g=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((A===void 0||A>this.length)&&(A=this.length),A<=0)||(A>>>=0,a>>>=0,A<=a))return"";for(e||(e="utf8");;)switch(e){case"hex":return U(this,a,A);case"utf8":case"utf-8":return F(this,a,A);case"ascii":return G(this,a,A);case"latin1":case"binary":return Y(this,a,A);case"base64":return N(this,a,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,a,A);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),g=!0}}function E(e,a,A){var g=e[a];e[a]=e[A],e[A]=g}function h(e,a,A,g,y){if(e.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=y?0:e.length-1),A<0&&(A=e.length+A),A>=e.length){if(y)return-1;A=e.length-1}else if(A<0){if(!y)return-1;A=0}if(typeof a=="string"&&(a=s.from(a,g)),s.isBuffer(a))return a.length===0?-1:_(e,a,A,g,y);if(typeof a=="number")return a&=255,s.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?y?Uint8Array.prototype.indexOf.call(e,a,A):Uint8Array.prototype.lastIndexOf.call(e,a,A):_(e,[a],A,g,y);throw new TypeError("val must be string, number or Buffer")}function _(e,a,A,g,y){function V(de,ye){return q===1?de[ye]:de.readUInt16BE(ye*q)}var q=1,le=e.length,pe=a.length;if(g!==void 0&&((g=String(g).toLowerCase())==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(e.length<2||a.length<2)return-1;q=2,le/=2,pe/=2,A/=2}var he;if(y){var me=-1;for(he=A;he<le;he++)if(V(e,he)===V(a,me===-1?0:he-me)){if(me===-1&&(me=he),he-me+1===pe)return me*q}else me!==-1&&(he-=he-me),me=-1}else for(A+pe>le&&(A=le-pe),he=A;he>=0;he--){for(var be=!0,ve=0;ve<pe;ve++)if(V(e,he+ve)!==V(a,ve)){be=!1;break}if(be)return he}return-1}function O(e,a,A,g){A=Number(A)||0;var y=e.length-A;g?(g=Number(g))>y&&(g=y):g=y;var V=a.length;if(V%2!=0)throw new TypeError("Invalid hex string");g>V/2&&(g=V/2);for(var q=0;q<g;++q){var le=parseInt(a.substr(2*q,2),16);if(isNaN(le))return q;e[A+q]=le}return q}function I(e,a,A,g){return oe(ce(a,e.length-A),e,A,g)}function b(e,a,A,g){return oe(fe(a),e,A,g)}function W(e,a,A,g){return b(e,a,A,g)}function M(e,a,A,g){return oe(te(a),e,A,g)}function R(e,a,A,g){return oe(ee(a,e.length-A),e,A,g)}function N(e,a,A){return a===0&&A===e.length?j.fromByteArray(e):j.fromByteArray(e.slice(a,A))}function F(e,a,A){A=Math.min(e.length,A);for(var g=[],y=a;y<A;){var V=e[y],q=null,le=V>239?4:V>223?3:V>191?2:1;if(y+le<=A){var pe,he,me,be;switch(le){case 1:V<128&&(q=V);break;case 2:pe=e[y+1],(192&pe)==128&&(be=(31&V)<<6|63&pe)>127&&(q=be);break;case 3:pe=e[y+1],he=e[y+2],(192&pe)==128&&(192&he)==128&&(be=(15&V)<<12|(63&pe)<<6|63&he)>2047&&(be<55296||be>57343)&&(q=be);break;case 4:pe=e[y+1],he=e[y+2],me=e[y+3],(192&pe)==128&&(192&he)==128&&(192&me)==128&&(be=(15&V)<<18|(63&pe)<<12|(63&he)<<6|63&me)>65535&&be<1114112&&(q=be)}}q===null?(q=65533,le=1):q>65535&&(q-=65536,g.push(q>>>10&1023|55296),q=56320|1023&q),g.push(q),y+=le}return H(g)}function H(e){var a=e.length;if(a<=ie)return String.fromCharCode.apply(String,e);for(var A="",g=0;g<a;)A+=String.fromCharCode.apply(String,e.slice(g,g+=ie));return A}function G(e,a,A){var g="";A=Math.min(e.length,A);for(var y=a;y<A;++y)g+=String.fromCharCode(127&e[y]);return g}function Y(e,a,A){var g="";A=Math.min(e.length,A);for(var y=a;y<A;++y)g+=String.fromCharCode(e[y]);return g}function U(e,a,A){var g=e.length;(!a||a<0)&&(a=0),(!A||A<0||A>g)&&(A=g);for(var y="",V=a;V<A;++V)y+=re(e[V]);return y}function $(e,a,A){for(var g=e.slice(a,A),y="",V=0;V<g.length;V+=2)y+=String.fromCharCode(g[V]+256*g[V+1]);return y}function J(e,a,A){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+a>A)throw new RangeError("Trying to access beyond buffer length")}function Z(e,a,A,g,y,V){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>y||a<V)throw new RangeError('"value" argument is out of bounds');if(A+g>e.length)throw new RangeError("Index out of range")}function P(e,a,A,g){a<0&&(a=65535+a+1);for(var y=0,V=Math.min(e.length-A,2);y<V;++y)e[A+y]=(a&255<<8*(g?y:1-y))>>>8*(g?y:1-y)}function D(e,a,A,g){a<0&&(a=4294967295+a+1);for(var y=0,V=Math.min(e.length-A,4);y<V;++y)e[A+y]=a>>>8*(g?y:3-y)&255}function B(e,a,A,g,y,V){if(A+g>e.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function z(e,a,A,g,y){return y||B(e,a,A,4,34028234663852886e22,-34028234663852886e22),X.write(e,a,A,g,23,4),A+4}function ne(e,a,A,g,y){return y||B(e,a,A,8,17976931348623157e292,-17976931348623157e292),X.write(e,a,A,g,52,8),A+8}function K(e){if(e=se(e).replace(C,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function se(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function re(e){return e<16?"0"+e.toString(16):e.toString(16)}function ce(e,a){a=a||1/0;for(var A,g=e.length,y=null,V=[],q=0;q<g;++q){if((A=e.charCodeAt(q))>55295&&A<57344){if(!y){if(A>56319){(a-=3)>-1&&V.push(239,191,189);continue}if(q+1===g){(a-=3)>-1&&V.push(239,191,189);continue}y=A;continue}if(A<56320){(a-=3)>-1&&V.push(239,191,189),y=A;continue}A=65536+(y-55296<<10|A-56320)}else y&&(a-=3)>-1&&V.push(239,191,189);if(y=null,A<128){if((a-=1)<0)break;V.push(A)}else if(A<2048){if((a-=2)<0)break;V.push(A>>6|192,63&A|128)}else if(A<65536){if((a-=3)<0)break;V.push(A>>12|224,A>>6&63|128,63&A|128)}else{if(!(A<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;V.push(A>>18|240,A>>12&63|128,A>>6&63|128,63&A|128)}}return V}function fe(e){for(var a=[],A=0;A<e.length;++A)a.push(255&e.charCodeAt(A));return a}function ee(e,a){for(var A,g,y,V=[],q=0;q<e.length&&!((a-=2)<0);++q)A=e.charCodeAt(q),g=A>>8,y=A%256,V.push(y),V.push(g);return V}function te(e){return j.toByteArray(K(e))}function oe(e,a,A,g){for(var y=0;y<g&&!(y+A>=a.length||y>=e.length);++y)a[y+A]=e[y];return y}function L(e){return e!==e}var j=n("base64-js"),X=n("ieee754"),Q=n("isarray");S.Buffer=s,S.SlowBuffer=x,S.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=d.TYPED_ARRAY_SUPPORT!==void 0?d.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},e.foo()===42&&typeof e.subarray=="function"&&e.subarray(1,1).byteLength===0}catch(a){return!1}}(),S.kMaxLength=m(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,a,A){return f(null,e,a,A)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,a,A){return t(null,e,a,A)},s.allocUnsafe=function(e){return r(null,e)},s.allocUnsafeSlow=function(e){return r(null,e)},s.isBuffer=function(e){return!(e==null||!e._isBuffer)},s.compare=function(e,a){if(!s.isBuffer(e)||!s.isBuffer(a))throw new TypeError("Arguments must be Buffers");if(e===a)return 0;for(var A=e.length,g=a.length,y=0,V=Math.min(A,g);y<V;++y)if(e[y]!==a[y]){A=e[y],g=a[y];break}return A<g?-1:g<A?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,a){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var A;if(a===void 0)for(a=0,A=0;A<e.length;++A)a+=e[A].length;var g=s.allocUnsafe(a),y=0;for(A=0;A<e.length;++A){var V=e[A];if(!s.isBuffer(V))throw new TypeError('"list" argument must be an Array of Buffers');V.copy(g,y),y+=V.length}return g},s.byteLength=v,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<e;a+=2)E(this,a,a+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<e;a+=4)E(this,a,a+3),E(this,a+1,a+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<e;a+=8)E(this,a,a+7),E(this,a+1,a+6),E(this,a+2,a+5),E(this,a+3,a+4);return this},s.prototype.toString=function(){var e=0|this.length;return e===0?"":arguments.length===0?F(this,0,e):w.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){var e="",a=S.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,a,A,g,y){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(a===void 0&&(a=0),A===void 0&&(A=e?e.length:0),g===void 0&&(g=0),y===void 0&&(y=this.length),a<0||A>e.length||g<0||y>this.length)throw new RangeError("out of range index");if(g>=y&&a>=A)return 0;if(g>=y)return-1;if(a>=A)return 1;if(a>>>=0,A>>>=0,g>>>=0,y>>>=0,this===e)return 0;for(var V=y-g,q=A-a,le=Math.min(V,q),pe=this.slice(g,y),he=e.slice(a,A),me=0;me<le;++me)if(pe[me]!==he[me]){V=pe[me],q=he[me];break}return V<q?-1:q<V?1:0},s.prototype.includes=function(e,a,A){return this.indexOf(e,a,A)!==-1},s.prototype.indexOf=function(e,a,A){return h(this,e,a,A,!0)},s.prototype.lastIndexOf=function(e,a,A){return h(this,e,a,A,!1)},s.prototype.write=function(e,a,A,g){if(a===void 0)g="utf8",A=this.length,a=0;else if(A===void 0&&typeof a=="string")g=a,A=this.length,a=0;else{if(!isFinite(a))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");a|=0,isFinite(A)?(A|=0,g===void 0&&(g="utf8")):(g=A,A=void 0)}var y=this.length-a;if((A===void 0||A>y)&&(A=y),e.length>0&&(A<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var V=!1;;)switch(g){case"hex":return O(this,e,a,A);case"utf8":case"utf-8":return I(this,e,a,A);case"ascii":return b(this,e,a,A);case"latin1":case"binary":return W(this,e,a,A);case"base64":return M(this,e,a,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,a,A);default:if(V)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),V=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;s.prototype.slice=function(e,a){var A=this.length;e=~~e,a=a===void 0?A:~~a,e<0?(e+=A)<0&&(e=0):e>A&&(e=A),a<0?(a+=A)<0&&(a=0):a>A&&(a=A),a<e&&(a=e);var g;if(s.TYPED_ARRAY_SUPPORT)g=this.subarray(e,a),g.__proto__=s.prototype;else{var y=a-e;g=new s(y,void 0);for(var V=0;V<y;++V)g[V]=this[V+e]}return g},s.prototype.readUIntLE=function(e,a,A){e|=0,a|=0,A||J(e,a,this.length);for(var g=this[e],y=1,V=0;++V<a&&(y*=256);)g+=this[e+V]*y;return g},s.prototype.readUIntBE=function(e,a,A){e|=0,a|=0,A||J(e,a,this.length);for(var g=this[e+--a],y=1;a>0&&(y*=256);)g+=this[e+--a]*y;return g},s.prototype.readUInt8=function(e,a){return a||J(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,a){return a||J(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,a){return a||J(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,a){return a||J(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,a){return a||J(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,a,A){e|=0,a|=0,A||J(e,a,this.length);for(var g=this[e],y=1,V=0;++V<a&&(y*=256);)g+=this[e+V]*y;return y*=128,g>=y&&(g-=Math.pow(2,8*a)),g},s.prototype.readIntBE=function(e,a,A){e|=0,a|=0,A||J(e,a,this.length);for(var g=a,y=1,V=this[e+--g];g>0&&(y*=256);)V+=this[e+--g]*y;return y*=128,V>=y&&(V-=Math.pow(2,8*a)),V},s.prototype.readInt8=function(e,a){return a||J(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,a){a||J(e,2,this.length);var A=this[e]|this[e+1]<<8;return 32768&A?4294901760|A:A},s.prototype.readInt16BE=function(e,a){a||J(e,2,this.length);var A=this[e+1]|this[e]<<8;return 32768&A?4294901760|A:A},s.prototype.readInt32LE=function(e,a){return a||J(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,a){return a||J(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,a){return a||J(e,4,this.length),X.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,a){return a||J(e,4,this.length),X.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,a){return a||J(e,8,this.length),X.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,a){return a||J(e,8,this.length),X.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,a,A,g){e=+e,a|=0,A|=0,!g&&Z(this,e,a,A,Math.pow(2,8*A)-1,0);var y=1,V=0;for(this[a]=255&e;++V<A&&(y*=256);)this[a+V]=e/y&255;return a+A},s.prototype.writeUIntBE=function(e,a,A,g){e=+e,a|=0,A|=0,!g&&Z(this,e,a,A,Math.pow(2,8*A)-1,0);var y=A-1,V=1;for(this[a+y]=255&e;--y>=0&&(V*=256);)this[a+y]=e/V&255;return a+A},s.prototype.writeUInt8=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[a]=255&e,a+1},s.prototype.writeUInt16LE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):P(this,e,a,!0),a+2},s.prototype.writeUInt16BE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):P(this,e,a,!1),a+2},s.prototype.writeUInt32LE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=255&e):D(this,e,a,!0),a+4},s.prototype.writeUInt32BE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):D(this,e,a,!1),a+4},s.prototype.writeIntLE=function(e,a,A,g){if(e=+e,a|=0,!g){var y=Math.pow(2,8*A-1);Z(this,e,a,A,y-1,-y)}var V=0,q=1,le=0;for(this[a]=255&e;++V<A&&(q*=256);)e<0&&le===0&&this[a+V-1]!==0&&(le=1),this[a+V]=(e/q>>0)-le&255;return a+A},s.prototype.writeIntBE=function(e,a,A,g){if(e=+e,a|=0,!g){var y=Math.pow(2,8*A-1);Z(this,e,a,A,y-1,-y)}var V=A-1,q=1,le=0;for(this[a+V]=255&e;--V>=0&&(q*=256);)e<0&&le===0&&this[a+V+1]!==0&&(le=1),this[a+V]=(e/q>>0)-le&255;return a+A},s.prototype.writeInt8=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[a]=255&e,a+1},s.prototype.writeInt16LE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8):P(this,e,a,!0),a+2},s.prototype.writeInt16BE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[a]=e>>>8,this[a+1]=255&e):P(this,e,a,!1),a+2},s.prototype.writeInt32LE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[a]=255&e,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24):D(this,e,a,!0),a+4},s.prototype.writeInt32BE=function(e,a,A){return e=+e,a|=0,A||Z(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=255&e):D(this,e,a,!1),a+4},s.prototype.writeFloatLE=function(e,a,A){return z(this,e,a,!0,A)},s.prototype.writeFloatBE=function(e,a,A){return z(this,e,a,!1,A)},s.prototype.writeDoubleLE=function(e,a,A){return ne(this,e,a,!0,A)},s.prototype.writeDoubleBE=function(e,a,A){return ne(this,e,a,!1,A)},s.prototype.copy=function(e,a,A,g){if(A||(A=0),g||g===0||(g=this.length),a>=e.length&&(a=e.length),a||(a=0),g>0&&g<A&&(g=A),g===A||e.length===0||this.length===0)return 0;if(a<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),e.length-a<g-A&&(g=e.length-a+A);var y,V=g-A;if(this===e&&A<a&&a<g)for(y=V-1;y>=0;--y)e[y+a]=this[y+A];else if(V<1e3||!s.TYPED_ARRAY_SUPPORT)for(y=0;y<V;++y)e[y+a]=this[y+A];else Uint8Array.prototype.set.call(e,this.subarray(A,A+V),a);return V},s.prototype.fill=function(e,a,A,g){if(typeof e=="string"){if(typeof a=="string"?(g=a,a=0,A=this.length):typeof A=="string"&&(g=A,A=this.length),e.length===1){var y=e.charCodeAt(0);y<256&&(e=y)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!s.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof e=="number"&&(e&=255);if(a<0||this.length<a||this.length<A)throw new RangeError("Out of range index");if(A<=a)return this;a>>>=0,A=A===void 0?this.length:A>>>0,e||(e=0);var V;if(typeof e=="number")for(V=a;V<A;++V)this[V]=e;else{var q=s.isBuffer(e)?e:ce(new s(e,g).toString()),le=q.length;for(V=0;V<A-a;++V)this[V+a]=q[V%le]}return this};var C=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(n,k,S){k.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(n,k,S){"use strict";var d=function(){this.buffer=[],this.fns=[]};d.prototype.push=function(i,s){if(this.fns.length)return this.fns.shift()(null,i);var f={data:i,priority:s},o=m(this.buffer,f,function(t){return t.priority});this.buffer.splice(o,0,f)},d.prototype.next=function(){var i=this;return function(s){if(i.buffer.length)return s(null,i.buffer.pop().data);i.fns.push(s)}};var m=function(i,s,f){s=f(s);for(var o=0,t=i?i.length:o;o<t;){var r=o+t>>>1;f(i[r])<s?o=r+1:t=r}return o};k.exports=d},{}],41:[function(n,k,S){function d(p){var l=this,T=c.call(arguments,1);return new Promise(function(x,v){function w(_){var O;try{O=p.next(_)}catch(I){return v(I)}h(O)}function E(_){var O;try{O=p.throw(_)}catch(I){return v(I)}h(O)}function h(_){if(_.done)return x(_.value);var O=m.call(l,_.value);return O&&o(O)?O.then(w,E):E(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(_.value)+'"'))}if(typeof p=="function"&&(p=p.apply(l,T)),!p||typeof p.next!="function")return x(p);w()})}function m(p){return p&&(o(p)?p:r(p)||t(p)?d.call(this,p):typeof p=="function"?i.call(this,p):Array.isArray(p)?s.call(this,p):u(p)?f.call(this,p):p)}function i(p){var l=this;return new Promise(function(T,x){p.call(l,function(v,w){if(v)return x(v);arguments.length>2&&(w=c.call(arguments,1)),T(w)})})}function s(p){return Promise.all(p.map(m,this))}function f(p){for(var l=new p.constructor,T=Object.keys(p),x=[],v=0;v<T.length;v++){var w=T[v],E=m.call(this,p[w]);E&&o(E)?function(h,_){l[_]=void 0,x.push(h.then(function(O){l[_]=O}))}(E,w):l[w]=p[w]}return Promise.all(x).then(function(){return l})}function o(p){return typeof p.then=="function"}function t(p){return typeof p.next=="function"&&typeof p.throw=="function"}function r(p){var l=p.constructor;return!!l&&(l.name==="GeneratorFunction"||l.displayName==="GeneratorFunction"||t(l.prototype))}function u(p){return Object==p.constructor}var c=Array.prototype.slice;k.exports=d.default=d.co=d,d.wrap=function(p){function l(){return d.call(this,p.apply(this,arguments))}return l.__generatorFunction__=p,l}},{}],42:[function(n,k,S){k.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(n,k,S){"use strict";function d(s,f){if(!(this instanceof d))return new d(s,f);this.src=s,this._withAccess=f}function m(s,f){return s[f]===void 0&&s.__lookupGetter__(f)===void 0&&s.__lookupSetter__(f)===void 0}var i=Array.prototype.slice;k.exports=d,d.prototype.withAccess=function(s){return this._withAccess=s!==!1,this},d.prototype.pick=function(s){return Array.isArray(s)||(s=i.call(arguments)),s.length&&(this.keys=s),this},d.prototype.to=function(s){if(s=s||{},!this.src)return s;var f=this.keys||Object.keys(this.src);if(!this._withAccess){for(var o=0;o<f.length;o++)t=f[o],s[t]===void 0&&(s[t]=this.src[t]);return s}for(var o=0;o<f.length;o++){var t=f[o];if(m(s,t)){var r=this.src.__lookupGetter__(t),u=this.src.__lookupSetter__(t);r&&s.__defineGetter__(t,r),u&&s.__defineSetter__(t,u),r||u||(s[t]=this.src[t])}}return s},d.prototype.toCover=function(s){for(var f=this.keys||Object.keys(this.src),o=0;o<f.length;o++){var t=f[o];delete s[t];var r=this.src.__lookupGetter__(t),u=this.src.__lookupSetter__(t);r&&s.__defineGetter__(t,r),u&&s.__defineSetter__(t,u),r||u||(s[t]=this.src[t])}},d.prototype.override=d.prototype.toCover,d.prototype.and=function(s){var f={};return this.to(f),this.src=s,this.to(f),this.src=f,this}},{}],44:[function(n,k,S){n("../../modules/es6.string.iterator"),n("../../modules/es6.array.from"),k.exports=n("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(n,k,S){var d=n("../../modules/_core"),m=d.JSON||(d.JSON={stringify:JSON.stringify});k.exports=function(i){return m.stringify.apply(m,arguments)}},{"../../modules/_core":65}],46:[function(n,k,S){n("../../modules/es6.object.assign"),k.exports=n("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(n,k,S){n("../../modules/es6.object.create");var d=n("../../modules/_core").Object;k.exports=function(m,i){return d.create(m,i)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(n,k,S){n("../../modules/es6.object.define-property");var d=n("../../modules/_core").Object;k.exports=function(m,i,s){return d.defineProperty(m,i,s)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(n,k,S){n("../../modules/es6.object.get-own-property-names");var d=n("../../modules/_core").Object;k.exports=function(m){return d.getOwnPropertyNames(m)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(n,k,S){n("../../modules/es6.object.get-prototype-of"),k.exports=n("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(n,k,S){n("../../modules/es6.object.keys"),k.exports=n("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(n,k,S){n("../modules/es6.object.to-string"),n("../modules/es6.string.iterator"),n("../modules/web.dom.iterable"),n("../modules/es6.promise"),n("../modules/es7.promise.finally"),n("../modules/es7.promise.try"),k.exports=n("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(n,k,S){n("../modules/web.immediate"),k.exports=n("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(n,k,S){n("../../modules/es6.string.from-code-point"),k.exports=n("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(n,k,S){n("../../modules/es6.function.has-instance"),k.exports=n("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(n,k,S){n("../../modules/es6.symbol"),n("../../modules/es6.object.to-string"),n("../../modules/es7.symbol.async-iterator"),n("../../modules/es7.symbol.observable"),k.exports=n("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(n,k,S){n("../../modules/es6.string.iterator"),n("../../modules/web.dom.iterable"),k.exports=n("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(n,k,S){k.exports=function(d){if(typeof d!="function")throw TypeError(d+" is not a function!");return d}},{}],59:[function(n,k,S){k.exports=function(){}},{}],60:[function(n,k,S){k.exports=function(d,m,i,s){if(!(d instanceof m)||s!==void 0&&s in d)throw TypeError(i+": incorrect invocation!");return d}},{}],61:[function(n,k,S){var d=n("./_is-object");k.exports=function(m){if(!d(m))throw TypeError(m+" is not an object!");return m}},{"./_is-object":85}],62:[function(n,k,S){var d=n("./_to-iobject"),m=n("./_to-length"),i=n("./_to-absolute-index");k.exports=function(s){return function(f,o,t){var r,u=d(f),c=m(u.length),p=i(t,c);if(s&&o!=o){for(;c>p;)if((r=u[p++])!=r)return!0}else for(;c>p;p++)if((s||p in u)&&u[p]===o)return s||p||0;return!s&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(n,k,S){var d=n("./_cof"),m=n("./_wks")("toStringTag"),i=d(function(){return arguments}())=="Arguments",s=function(f,o){try{return f[o]}catch(t){}};k.exports=function(f){var o,t,r;return f===void 0?"Undefined":f===null?"Null":typeof(t=s(o=Object(f),m))=="string"?t:i?d(o):(r=d(o))=="Object"&&typeof o.callee=="function"?"Arguments":r}},{"./_cof":64,"./_wks":131}],64:[function(n,k,S){var d={}.toString;k.exports=function(m){return d.call(m).slice(8,-1)}},{}],65:[function(n,k,S){var d=k.exports={version:"2.5.7"};typeof __e=="number"&&(__e=d)},{}],66:[function(n,k,S){"use strict";var d=n("./_object-dp"),m=n("./_property-desc");k.exports=function(i,s,f){s in i?d.f(i,s,m(0,f)):i[s]=f}},{"./_object-dp":98,"./_property-desc":111}],67:[function(n,k,S){var d=n("./_a-function");k.exports=function(m,i,s){if(d(m),i===void 0)return m;switch(s){case 1:return function(f){return m.call(i,f)};case 2:return function(f,o){return m.call(i,f,o)};case 3:return function(f,o,t){return m.call(i,f,o,t)}}return function(){return m.apply(i,arguments)}}},{"./_a-function":58}],68:[function(n,k,S){k.exports=function(d){if(d==null)throw TypeError("Can't call method on "+d);return d}},{}],69:[function(n,k,S){k.exports=!n("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(n,k,S){var d=n("./_is-object"),m=n("./_global").document,i=d(m)&&d(m.createElement);k.exports=function(s){return i?m.createElement(s):{}}},{"./_global":76,"./_is-object":85}],71:[function(n,k,S){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(n,k,S){var d=n("./_object-keys"),m=n("./_object-gops"),i=n("./_object-pie");k.exports=function(s){var f=d(s),o=m.f;if(o)for(var t,r=o(s),u=i.f,c=0;r.length>c;)u.call(s,t=r[c++])&&f.push(t);return f}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(n,k,S){var d=n("./_global"),m=n("./_core"),i=n("./_ctx"),s=n("./_hide"),f=n("./_has"),o=function(t,r,u){var c,p,l,T=t&o.F,x=t&o.G,v=t&o.S,w=t&o.P,E=t&o.B,h=t&o.W,_=x?m:m[r]||(m[r]={}),O=_.prototype,I=x?d:v?d[r]:(d[r]||{}).prototype;x&&(u=r);for(c in u)(p=!T&&I&&I[c]!==void 0)&&f(_,c)||(l=p?I[c]:u[c],_[c]=x&&typeof I[c]!="function"?u[c]:E&&p?i(l,d):h&&I[c]==l?function(b){var W=function(M,R,N){if(this instanceof b){switch(arguments.length){case 0:return new b;case 1:return new b(M);case 2:return new b(M,R)}return new b(M,R,N)}return b.apply(this,arguments)};return W.prototype=b.prototype,W}(l):w&&typeof l=="function"?i(Function.call,l):l,w&&((_.virtual||(_.virtual={}))[c]=l,t&o.R&&O&&!O[c]&&s(O,c,l)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,k.exports=o},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(n,k,S){k.exports=function(d){try{return!!d()}catch(m){return!0}}},{}],75:[function(n,k,u){var d=n("./_ctx"),m=n("./_iter-call"),i=n("./_is-array-iter"),s=n("./_an-object"),f=n("./_to-length"),o=n("./core.get-iterator-method"),t={},r={},u=k.exports=function(c,p,l,T,x){var v,w,E,h,_=x?function(){return c}:o(c),O=d(l,T,p?2:1),I=0;if(typeof _!="function")throw TypeError(c+" is not iterable!");if(i(_)){for(v=f(c.length);v>I;I++)if((h=p?O(s(w=c[I])[0],w[1]):O(c[I]))===t||h===r)return h}else for(E=_.call(c);!(w=E.next()).done;)if((h=m(E,O,w.value,p))===t||h===r)return h};u.BREAK=t,u.RETURN=r},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(n,k,S){var d=k.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=d)},{}],77:[function(n,k,S){var d={}.hasOwnProperty;k.exports=function(m,i){return d.call(m,i)}},{}],78:[function(n,k,S){var d=n("./_object-dp"),m=n("./_property-desc");k.exports=n("./_descriptors")?function(i,s,f){return d.f(i,s,m(1,f))}:function(i,s,f){return i[s]=f,i}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(n,k,S){var d=n("./_global").document;k.exports=d&&d.documentElement},{"./_global":76}],80:[function(n,k,S){k.exports=!n("./_descriptors")&&!n("./_fails")(function(){return Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(n,k,S){k.exports=function(d,m,i){var s=i===void 0;switch(m.length){case 0:return s?d():d.call(i);case 1:return s?d(m[0]):d.call(i,m[0]);case 2:return s?d(m[0],m[1]):d.call(i,m[0],m[1]);case 3:return s?d(m[0],m[1],m[2]):d.call(i,m[0],m[1],m[2]);case 4:return s?d(m[0],m[1],m[2],m[3]):d.call(i,m[0],m[1],m[2],m[3])}return d.apply(i,m)}},{}],82:[function(n,k,S){var d=n("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return d(m)=="String"?m.split(""):Object(m)}},{"./_cof":64}],83:[function(n,k,S){var d=n("./_iterators"),m=n("./_wks")("iterator"),i=Array.prototype;k.exports=function(s){return s!==void 0&&(d.Array===s||i[m]===s)}},{"./_iterators":91,"./_wks":131}],84:[function(n,k,S){var d=n("./_cof");k.exports=Array.isArray||function(m){return d(m)=="Array"}},{"./_cof":64}],85:[function(n,k,S){k.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},{}],86:[function(n,k,S){var d=n("./_an-object");k.exports=function(m,i,s,f){try{return f?i(d(s)[0],s[1]):i(s)}catch(t){var o=m.return;throw o!==void 0&&d(o.call(m)),t}}},{"./_an-object":61}],87:[function(n,k,S){"use strict";var d=n("./_object-create"),m=n("./_property-desc"),i=n("./_set-to-string-tag"),s={};n("./_hide")(s,n("./_wks")("iterator"),function(){return this}),k.exports=function(f,o,t){f.prototype=d(s,{next:m(1,t)}),i(f,o+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(n,k,S){"use strict";var d=n("./_library"),m=n("./_export"),i=n("./_redefine"),s=n("./_hide"),f=n("./_iterators"),o=n("./_iter-create"),t=n("./_set-to-string-tag"),r=n("./_object-gpo"),u=n("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),p=function(){return this};k.exports=function(l,T,x,v,w,E,h){o(x,T,v);var _,O,I,b=function(U){if(!c&&U in N)return N[U];switch(U){case"keys":case"values":return function(){return new x(this,U)}}return function(){return new x(this,U)}},W=T+" Iterator",M=w=="values",R=!1,N=l.prototype,F=N[u]||N["@@iterator"]||w&&N[w],H=F||b(w),G=w?M?b("entries"):H:void 0,Y=T=="Array"&&N.entries||F;if(Y&&(I=r(Y.call(new l)))!==Object.prototype&&I.next&&(t(I,W,!0),d||typeof I[u]=="function"||s(I,u,p)),M&&F&&F.name!=="values"&&(R=!0,H=function(){return F.call(this)}),d&&!h||!c&&!R&&N[u]||s(N,u,H),f[T]=H,f[W]=p,w)if(_={values:M?H:b("values"),keys:E?H:b("keys"),entries:G},h)for(O in _)O in N||i(N,O,_[O]);else m(m.P+m.F*(c||R),T,_);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,k,S){var d=n("./_wks")("iterator"),m=!1;try{var i=[7][d]();i.return=function(){m=!0},Array.from(i,function(){throw 2})}catch(s){}k.exports=function(s,f){if(!f&&!m)return!1;var o=!1;try{var t=[7],r=t[d]();r.next=function(){return{done:o=!0}},t[d]=function(){return r},s(t)}catch(u){}return o}},{"./_wks":131}],90:[function(n,k,S){k.exports=function(d,m){return{value:m,done:!!d}}},{}],91:[function(n,k,S){k.exports={}},{}],92:[function(n,k,S){k.exports=!0},{}],93:[function(n,k,S){var d=n("./_uid")("meta"),m=n("./_is-object"),i=n("./_has"),s=n("./_object-dp").f,f=0,o=Object.isExtensible||function(){return!0},t=!n("./_fails")(function(){return o(Object.preventExtensions({}))}),r=function(T){s(T,d,{value:{i:"O"+ ++f,w:{}}})},u=function(T,x){if(!m(T))return typeof T=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!i(T,d)){if(!o(T))return"F";if(!x)return"E";r(T)}return T[d].i},c=function(T,x){if(!i(T,d)){if(!o(T))return!0;if(!x)return!1;r(T)}return T[d].w},p=function(T){return t&&l.NEED&&o(T)&&!i(T,d)&&r(T),T},l=k.exports={KEY:d,NEED:!1,fastKey:u,getWeak:c,onFreeze:p}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(n,k,S){var d=n("./_global"),m=n("./_task").set,i=d.MutationObserver||d.WebKitMutationObserver,s=d.process,f=d.Promise,o=n("./_cof")(s)=="process";k.exports=function(){var t,r,u,c=function(){var x,v;for(o&&(x=s.domain)&&x.exit();t;){v=t.fn,t=t.next;try{v()}catch(w){throw t?u():r=void 0,w}}r=void 0,x&&x.enter()};if(o)u=function(){s.nextTick(c)};else if(!i||d.navigator&&d.navigator.standalone)if(f&&f.resolve){var p=f.resolve(void 0);u=function(){p.then(c)}}else u=function(){m.call(d,c)};else{var l=!0,T=document.createTextNode("");new i(c).observe(T,{characterData:!0}),u=function(){T.data=l=!l}}return function(x){var v={fn:x,next:void 0};r&&(r.next=v),t||(t=v,u()),r=v}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(n,k,S){"use strict";function d(i){var s,f;this.promise=new i(function(o,t){if(s!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");s=o,f=t}),this.resolve=m(s),this.reject=m(f)}var m=n("./_a-function");k.exports.f=function(i){return new d(i)}},{"./_a-function":58}],96:[function(n,k,S){"use strict";var d=n("./_object-keys"),m=n("./_object-gops"),i=n("./_object-pie"),s=n("./_to-object"),f=n("./_iobject"),o=Object.assign;k.exports=!o||n("./_fails")(function(){var t={},r={},u=Symbol(),c="abcdefghijklmnopqrst";return t[u]=7,c.split("").forEach(function(p){r[p]=p}),o({},t)[u]!=7||Object.keys(o({},r)).join("")!=c})?function(t,r){for(var u=s(t),c=arguments.length,p=1,l=m.f,T=i.f;c>p;)for(var x,v=f(arguments[p++]),w=l?d(v).concat(l(v)):d(v),E=w.length,h=0;E>h;)T.call(v,x=w[h++])&&(u[x]=v[x]);return u}:o},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(n,k,S){var d=n("./_an-object"),m=n("./_object-dps"),i=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),f=function(){},o=function(){var t,r=n("./_dom-create")("iframe"),u=i.length;for(r.style.display="none",n("./_html").appendChild(r),r.src="javascript:",t=r.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),o=t.F;u--;)delete o.prototype[i[u]];return o()};k.exports=Object.create||function(t,r){var u;return t!==null?(f.prototype=d(t),u=new f,f.prototype=null,u[s]=t):u=o(),r===void 0?u:m(u,r)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(n,k,S){var d=n("./_an-object"),m=n("./_ie8-dom-define"),i=n("./_to-primitive"),s=Object.defineProperty;S.f=n("./_descriptors")?Object.defineProperty:function(f,o,t){if(d(f),o=i(o,!0),d(t),m)try{return s(f,o,t)}catch(r){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(f[o]=t.value),f}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(n,k,S){var d=n("./_object-dp"),m=n("./_an-object"),i=n("./_object-keys");k.exports=n("./_descriptors")?Object.defineProperties:function(s,f){m(s);for(var o,t=i(f),r=t.length,u=0;r>u;)d.f(s,o=t[u++],f[o]);return s}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(n,k,S){var d=n("./_object-pie"),m=n("./_property-desc"),i=n("./_to-iobject"),s=n("./_to-primitive"),f=n("./_has"),o=n("./_ie8-dom-define"),t=Object.getOwnPropertyDescriptor;S.f=n("./_descriptors")?t:function(r,u){if(r=i(r),u=s(u,!0),o)try{return t(r,u)}catch(c){}if(f(r,u))return m(!d.f.call(r,u),r[u])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(n,k,S){var d=n("./_to-iobject"),m=n("./_object-gopn").f,i={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(o){try{return m(o)}catch(t){return s.slice()}};k.exports.f=function(o){return s&&i.call(o)=="[object Window]"?f(o):m(d(o))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(n,k,S){var d=n("./_object-keys-internal"),m=n("./_enum-bug-keys").concat("length","prototype");S.f=Object.getOwnPropertyNames||function(i){return d(i,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(n,k,S){S.f=Object.getOwnPropertySymbols},{}],104:[function(n,k,S){var d=n("./_has"),m=n("./_to-object"),i=n("./_shared-key")("IE_PROTO"),s=Object.prototype;k.exports=Object.getPrototypeOf||function(f){return f=m(f),d(f,i)?f[i]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?s:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(n,k,S){var d=n("./_has"),m=n("./_to-iobject"),i=n("./_array-includes")(!1),s=n("./_shared-key")("IE_PROTO");k.exports=function(f,o){var t,r=m(f),u=0,c=[];for(t in r)t!=s&&d(r,t)&&c.push(t);for(;o.length>u;)d(r,t=o[u++])&&(~i(c,t)||c.push(t));return c}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(n,k,S){var d=n("./_object-keys-internal"),m=n("./_enum-bug-keys");k.exports=Object.keys||function(i){return d(i,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(n,k,S){S.f={}.propertyIsEnumerable},{}],108:[function(n,k,S){var d=n("./_export"),m=n("./_core"),i=n("./_fails");k.exports=function(s,f){var o=(m.Object||{})[s]||Object[s],t={};t[s]=f(o),d(d.S+d.F*i(function(){o(1)}),"Object",t)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(n,k,S){k.exports=function(d){try{return{e:!1,v:d()}}catch(m){return{e:!0,v:m}}}},{}],110:[function(n,k,S){var d=n("./_an-object"),m=n("./_is-object"),i=n("./_new-promise-capability");k.exports=function(s,f){if(d(s),m(f)&&f.constructor===s)return f;var o=i.f(s);return(0,o.resolve)(f),o.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(n,k,S){k.exports=function(d,m){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:m}}},{}],112:[function(n,k,S){var d=n("./_hide");k.exports=function(m,i,s){for(var f in i)s&&m[f]?m[f]=i[f]:d(m,f,i[f]);return m}},{"./_hide":78}],113:[function(n,k,S){k.exports=n("./_hide")},{"./_hide":78}],114:[function(n,k,S){"use strict";var d=n("./_global"),m=n("./_core"),i=n("./_object-dp"),s=n("./_descriptors"),f=n("./_wks")("species");k.exports=function(o){var t=typeof m[o]=="function"?m[o]:d[o];s&&t&&!t[f]&&i.f(t,f,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(n,k,S){var d=n("./_object-dp").f,m=n("./_has"),i=n("./_wks")("toStringTag");k.exports=function(s,f,o){s&&!m(s=o?s:s.prototype,i)&&d(s,i,{configurable:!0,value:f})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(n,k,S){var d=n("./_shared")("keys"),m=n("./_uid");k.exports=function(i){return d[i]||(d[i]=m(i))}},{"./_shared":117,"./_uid":127}],117:[function(n,k,S){var d=n("./_core"),m=n("./_global"),i=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(k.exports=function(s,f){return i[s]||(i[s]=f!==void 0?f:{})})("versions",[]).push({version:d.version,mode:n("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(n,k,S){var d=n("./_an-object"),m=n("./_a-function"),i=n("./_wks")("species");k.exports=function(s,f){var o,t=d(s).constructor;return t===void 0||(o=d(t)[i])==null?f:m(o)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(n,k,S){var d=n("./_to-integer"),m=n("./_defined");k.exports=function(i){return function(s,f){var o,t,r=String(m(s)),u=d(f),c=r.length;return u<0||u>=c?i?"":void 0:(o=r.charCodeAt(u),o<55296||o>56319||u+1===c||(t=r.charCodeAt(u+1))<56320||t>57343?i?r.charAt(u):o:i?r.slice(u,u+2):t-56320+(o-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(n,k,S){var d,m,i,s=n("./_ctx"),f=n("./_invoke"),o=n("./_html"),t=n("./_dom-create"),r=n("./_global"),u=r.process,c=r.setImmediate,p=r.clearImmediate,l=r.MessageChannel,T=r.Dispatch,x=0,v={},w=function(){var h=+this;if(v.hasOwnProperty(h)){var _=v[h];delete v[h],_()}},E=function(h){w.call(h.data)};c&&p||(c=function(h){for(var _=[],O=1;arguments.length>O;)_.push(arguments[O++]);return v[++x]=function(){f(typeof h=="function"?h:Function(h),_)},d(x),x},p=function(h){delete v[h]},n("./_cof")(u)=="process"?d=function(h){u.nextTick(s(w,h,1))}:T&&T.now?d=function(h){T.now(s(w,h,1))}:l?(m=new l,i=m.port2,m.port1.onmessage=E,d=s(i.postMessage,i,1)):r.addEventListener&&typeof postMessage=="function"&&!r.importScripts?(d=function(h){r.postMessage(h+"","*")},r.addEventListener("message",E,!1)):d="onreadystatechange"in t("script")?function(h){o.appendChild(t("script")).onreadystatechange=function(){o.removeChild(this),w.call(h)}}:function(h){setTimeout(s(w,h,1),0)}),k.exports={set:c,clear:p}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(n,k,S){var d=n("./_to-integer"),m=Math.max,i=Math.min;k.exports=function(s,f){return s=d(s),s<0?m(s+f,0):i(s,f)}},{"./_to-integer":122}],122:[function(n,k,S){var d=Math.ceil,m=Math.floor;k.exports=function(i){return isNaN(i=+i)?0:(i>0?m:d)(i)}},{}],123:[function(n,k,S){var d=n("./_iobject"),m=n("./_defined");k.exports=function(i){return d(m(i))}},{"./_defined":68,"./_iobject":82}],124:[function(n,k,S){var d=n("./_to-integer"),m=Math.min;k.exports=function(i){return i>0?m(d(i),9007199254740991):0}},{"./_to-integer":122}],125:[function(n,k,S){var d=n("./_defined");k.exports=function(m){return Object(d(m))}},{"./_defined":68}],126:[function(n,k,S){var d=n("./_is-object");k.exports=function(m,i){if(!d(m))return m;var s,f;if(i&&typeof(s=m.toString)=="function"&&!d(f=s.call(m))||typeof(s=m.valueOf)=="function"&&!d(f=s.call(m))||!i&&typeof(s=m.toString)=="function"&&!d(f=s.call(m)))return f;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(n,k,S){var d=0,m=Math.random();k.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++d+m).toString(36))}},{}],128:[function(n,k,S){var d=n("./_global"),m=d.navigator;k.exports=m&&m.userAgent||""},{"./_global":76}],129:[function(n,k,S){var d=n("./_global"),m=n("./_core"),i=n("./_library"),s=n("./_wks-ext"),f=n("./_object-dp").f;k.exports=function(o){var t=m.Symbol||(m.Symbol=i?{}:d.Symbol||{});o.charAt(0)=="_"||o in t||f(t,o,{value:s.f(o)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(n,k,S){S.f=n("./_wks")},{"./_wks":131}],131:[function(n,k,S){var d=n("./_shared")("wks"),m=n("./_uid"),i=n("./_global").Symbol,s=typeof i=="function";(k.exports=function(f){return d[f]||(d[f]=s&&i[f]||(s?i:m)("Symbol."+f))}).store=d},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(n,k,S){var d=n("./_classof"),m=n("./_wks")("iterator"),i=n("./_iterators");k.exports=n("./_core").getIteratorMethod=function(s){if(s!=null)return s[m]||s["@@iterator"]||i[d(s)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(n,k,S){"use strict";var d=n("./_ctx"),m=n("./_export"),i=n("./_to-object"),s=n("./_iter-call"),f=n("./_is-array-iter"),o=n("./_to-length"),t=n("./_create-property"),r=n("./core.get-iterator-method");m(m.S+m.F*!n("./_iter-detect")(function(u){Array.from(u)}),"Array",{from:function(u){var c,p,l,T,x=i(u),v=typeof this=="function"?this:Array,w=arguments.length,E=w>1?arguments[1]:void 0,h=E!==void 0,_=0,O=r(x);if(h&&(E=d(E,w>2?arguments[2]:void 0,2)),O==null||v==Array&&f(O))for(c=o(x.length),p=new v(c);c>_;_++)t(p,_,h?E(x[_],_):x[_]);else for(T=O.call(x),p=new v;!(l=T.next()).done;_++)t(p,_,h?s(T,E,[l.value,_],!0):l.value);return p.length=_,p}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(n,k,S){"use strict";var d=n("./_add-to-unscopables"),m=n("./_iter-step"),i=n("./_iterators"),s=n("./_to-iobject");k.exports=n("./_iter-define")(Array,"Array",function(f,o){this._t=s(f),this._i=0,this._k=o},function(){var f=this._t,o=this._k,t=this._i++;return!f||t>=f.length?(this._t=void 0,m(1)):o=="keys"?m(0,t):o=="values"?m(0,f[t]):m(0,[t,f[t]])},"values"),i.Arguments=i.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(n,k,S){"use strict";var d=n("./_is-object"),m=n("./_object-gpo"),i=n("./_wks")("hasInstance"),s=Function.prototype;i in s||n("./_object-dp").f(s,i,{value:function(f){if(typeof this!="function"||!d(f))return!1;if(!d(this.prototype))return f instanceof this;for(;f=m(f);)if(this.prototype===f)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(n,k,S){var d=n("./_export");d(d.S+d.F,"Object",{assign:n("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(n,k,S){var d=n("./_export");d(d.S,"Object",{create:n("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(n,k,S){var d=n("./_export");d(d.S+d.F*!n("./_descriptors"),"Object",{defineProperty:n("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(n,k,S){n("./_object-sap")("getOwnPropertyNames",function(){return n("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(n,k,S){var d=n("./_to-object"),m=n("./_object-gpo");n("./_object-sap")("getPrototypeOf",function(){return function(i){return m(d(i))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(n,k,S){var d=n("./_to-object"),m=n("./_object-keys");n("./_object-sap")("keys",function(){return function(i){return m(d(i))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(n,k,S){arguments[4][36][0].apply(S,arguments)},{dup:36}],143:[function(n,k,S){"use strict";var d,m,i,s,f=n("./_library"),o=n("./_global"),t=n("./_ctx"),r=n("./_classof"),u=n("./_export"),c=n("./_is-object"),p=n("./_a-function"),l=n("./_an-instance"),T=n("./_for-of"),x=n("./_species-constructor"),v=n("./_task").set,w=n("./_microtask")(),E=n("./_new-promise-capability"),h=n("./_perform"),_=n("./_user-agent"),O=n("./_promise-resolve"),I=o.TypeError,b=o.process,W=b&&b.versions,M=W&&W.v8||"",R=o.Promise,N=r(b)=="process",F=function(){},H=m=E.f,G=!!function(){try{var B=R.resolve(1),z=(B.constructor={})[n("./_wks")("species")]=function(ne){ne(F,F)};return(N||typeof PromiseRejectionEvent=="function")&&B.then(F)instanceof z&&M.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch(ne){}}(),Y=function(B){var z;return!(!c(B)||typeof(z=B.then)!="function")&&z},U=function(B,z){if(!B._n){B._n=!0;var ne=B._c;w(function(){for(var K=B._v,se=B._s==1,re=0;ne.length>re;)(function(ce){var fe,ee,te,oe=se?ce.ok:ce.fail,L=ce.resolve,j=ce.reject,X=ce.domain;try{oe?(se||(B._h==2&&Z(B),B._h=1),oe===!0?fe=K:(X&&X.enter(),fe=oe(K),X&&(X.exit(),te=!0)),fe===ce.promise?j(I("Promise-chain cycle")):(ee=Y(fe))?ee.call(fe,L,j):L(fe)):j(K)}catch(Q){X&&!te&&X.exit(),j(Q)}})(ne[re++]);B._c=[],B._n=!1,z&&!B._h&&$(B)})}},$=function(B){v.call(o,function(){var z,ne,K,se=B._v,re=J(B);if(re&&(z=h(function(){N?b.emit("unhandledRejection",se,B):(ne=o.onunhandledrejection)?ne({promise:B,reason:se}):(K=o.console)&&K.error&&K.error("Unhandled promise rejection",se)}),B._h=N||J(B)?2:1),B._a=void 0,re&&z.e)throw z.v})},J=function(B){return B._h!==1&&(B._a||B._c).length===0},Z=function(B){v.call(o,function(){var z;N?b.emit("rejectionHandled",B):(z=o.onrejectionhandled)&&z({promise:B,reason:B._v})})},P=function(B){var z=this;z._d||(z._d=!0,z=z._w||z,z._v=B,z._s=2,z._a||(z._a=z._c.slice()),U(z,!0))},D=function(B){var z,ne=this;if(!ne._d){ne._d=!0,ne=ne._w||ne;try{if(ne===B)throw I("Promise can't be resolved itself");(z=Y(B))?w(function(){var K={_w:ne,_d:!1};try{z.call(B,t(D,K,1),t(P,K,1))}catch(se){P.call(K,se)}}):(ne._v=B,ne._s=1,U(ne,!1))}catch(K){P.call({_w:ne,_d:!1},K)}}};G||(R=function(B){l(this,R,"Promise","_h"),p(B),d.call(this);try{B(t(D,this,1),t(P,this,1))}catch(z){P.call(this,z)}},d=function(B){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=n("./_redefine-all")(R.prototype,{then:function(B,z){var ne=H(x(this,R));return ne.ok=typeof B!="function"||B,ne.fail=typeof z=="function"&&z,ne.domain=N?b.domain:void 0,this._c.push(ne),this._a&&this._a.push(ne),this._s&&U(this,!1),ne.promise},catch:function(B){return this.then(void 0,B)}}),i=function(){var B=new d;this.promise=B,this.resolve=t(D,B,1),this.reject=t(P,B,1)},E.f=H=function(B){return B===R||B===s?new i(B):m(B)}),u(u.G+u.W+u.F*!G,{Promise:R}),n("./_set-to-string-tag")(R,"Promise"),n("./_set-species")("Promise"),s=n("./_core").Promise,u(u.S+u.F*!G,"Promise",{reject:function(B){var z=H(this);return(0,z.reject)(B),z.promise}}),u(u.S+u.F*(f||!G),"Promise",{resolve:function(B){return O(f&&this===s?R:this,B)}}),u(u.S+u.F*!(G&&n("./_iter-detect")(function(B){R.all(B).catch(F)})),"Promise",{all:function(B){var z=this,ne=H(z),K=ne.resolve,se=ne.reject,re=h(function(){var ce=[],fe=0,ee=1;T(B,!1,function(te){var oe=fe++,L=!1;ce.push(void 0),ee++,z.resolve(te).then(function(j){L||(L=!0,ce[oe]=j,--ee||K(ce))},se)}),--ee||K(ce)});return re.e&&se(re.v),ne.promise},race:function(B){var z=this,ne=H(z),K=ne.reject,se=h(function(){T(B,!1,function(re){z.resolve(re).then(ne.resolve,K)})});return se.e&&K(se.v),ne.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(n,k,S){var d=n("./_export"),m=n("./_to-absolute-index"),i=String.fromCharCode,s=String.fromCodePoint;d(d.S+d.F*(!!s&&s.length!=1),"String",{fromCodePoint:function(f){for(var o,t=[],r=arguments.length,u=0;r>u;){if(o=+arguments[u++],m(o,1114111)!==o)throw RangeError(o+" is not a valid code point");t.push(o<65536?i(o):i(55296+((o-=65536)>>10),o%1024+56320))}return t.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(n,k,S){"use strict";var d=n("./_string-at")(!0);n("./_iter-define")(String,"String",function(m){this._t=String(m),this._i=0},function(){var m,i=this._t,s=this._i;return s>=i.length?{value:void 0,done:!0}:(m=d(i,s),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(n,k,S){"use strict";var d=n("./_global"),m=n("./_has"),i=n("./_descriptors"),s=n("./_export"),f=n("./_redefine"),o=n("./_meta").KEY,t=n("./_fails"),r=n("./_shared"),u=n("./_set-to-string-tag"),c=n("./_uid"),p=n("./_wks"),l=n("./_wks-ext"),T=n("./_wks-define"),x=n("./_enum-keys"),v=n("./_is-array"),w=n("./_an-object"),E=n("./_is-object"),h=n("./_to-iobject"),_=n("./_to-primitive"),O=n("./_property-desc"),I=n("./_object-create"),b=n("./_object-gopn-ext"),W=n("./_object-gopd"),M=n("./_object-dp"),R=n("./_object-keys"),N=W.f,F=M.f,H=b.f,G=d.Symbol,Y=d.JSON,U=Y&&Y.stringify,$=p("_hidden"),J=p("toPrimitive"),Z={}.propertyIsEnumerable,P=r("symbol-registry"),D=r("symbols"),B=r("op-symbols"),z=Object.prototype,ne=typeof G=="function",K=d.QObject,se=!K||!K.prototype||!K.prototype.findChild,re=i&&t(function(){return I(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a!=7})?function(A,g,y){var V=N(z,g);V&&delete z[g],F(A,g,y),V&&A!==z&&F(z,g,V)}:F,ce=function(A){var g=D[A]=I(G.prototype);return g._k=A,g},fe=ne&&typeof G.iterator=="symbol"?function(A){return typeof A=="symbol"}:function(A){return A instanceof G},ee=function(A,g,y){return A===z&&ee(B,g,y),w(A),g=_(g,!0),w(y),m(D,g)?(y.enumerable?(m(A,$)&&A[$][g]&&(A[$][g]=!1),y=I(y,{enumerable:O(0,!1)})):(m(A,$)||F(A,$,O(1,{})),A[$][g]=!0),re(A,g,y)):F(A,g,y)},te=function(A,g){w(A);for(var y,V=x(g=h(g)),q=0,le=V.length;le>q;)ee(A,y=V[q++],g[y]);return A},oe=function(A,g){return g===void 0?I(A):te(I(A),g)},L=function(A){var g=Z.call(this,A=_(A,!0));return!(this===z&&m(D,A)&&!m(B,A))&&(!(g||!m(this,A)||!m(D,A)||m(this,$)&&this[$][A])||g)},j=function(A,g){if(A=h(A),g=_(g,!0),A!==z||!m(D,g)||m(B,g)){var y=N(A,g);return!y||!m(D,g)||m(A,$)&&A[$][g]||(y.enumerable=!0),y}},X=function(A){for(var g,y=H(h(A)),V=[],q=0;y.length>q;)m(D,g=y[q++])||g==$||g==o||V.push(g);return V},Q=function(A){for(var g,y=A===z,V=H(y?B:h(A)),q=[],le=0;V.length>le;)!m(D,g=V[le++])||y&&!m(z,g)||q.push(D[g]);return q};ne||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var A=c(arguments.length>0?arguments[0]:void 0),g=function(y){this===z&&g.call(B,y),m(this,$)&&m(this[$],A)&&(this[$][A]=!1),re(this,A,O(1,y))};return i&&se&&re(z,A,{configurable:!0,set:g}),ce(A)},f(G.prototype,"toString",function(){return this._k}),W.f=j,M.f=ee,n("./_object-gopn").f=b.f=X,n("./_object-pie").f=L,n("./_object-gops").f=Q,i&&!n("./_library")&&f(z,"propertyIsEnumerable",L,!0),l.f=function(A){return ce(p(A))}),s(s.G+s.W+s.F*!ne,{Symbol:G});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),C=0;ie.length>C;)p(ie[C++]);for(var e=R(p.store),a=0;e.length>a;)T(e[a++]);s(s.S+s.F*!ne,"Symbol",{for:function(A){return m(P,A+="")?P[A]:P[A]=G(A)},keyFor:function(A){if(!fe(A))throw TypeError(A+" is not a symbol!");for(var g in P)if(P[g]===A)return g},useSetter:function(){se=!0},useSimple:function(){se=!1}}),s(s.S+s.F*!ne,"Object",{create:oe,defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:j,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),Y&&s(s.S+s.F*(!ne||t(function(){var A=G();return U([A])!="[null]"||U({a:A})!="{}"||U(Object(A))!="{}"})),"JSON",{stringify:function(A){for(var g,y,V=[A],q=1;arguments.length>q;)V.push(arguments[q++]);if(y=g=V[1],(E(g)||A!==void 0)&&!fe(A))return v(g)||(g=function(le,pe){if(typeof y=="function"&&(pe=y.call(this,le,pe)),!fe(pe))return pe}),V[1]=g,U.apply(Y,V)}}),G.prototype[J]||n("./_hide")(G.prototype,J,G.prototype.valueOf),u(G,"Symbol"),u(Math,"Math",!0),u(d.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(n,k,S){"use strict";var d=n("./_export"),m=n("./_core"),i=n("./_global"),s=n("./_species-constructor"),f=n("./_promise-resolve");d(d.P+d.R,"Promise",{finally:function(o){var t=s(this,m.Promise||i.Promise),r=typeof o=="function";return this.then(r?function(u){return f(t,o()).then(function(){return u})}:o,r?function(u){return f(t,o()).then(function(){throw u})}:o)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(n,k,S){"use strict";var d=n("./_export"),m=n("./_new-promise-capability"),i=n("./_perform");d(d.S,"Promise",{try:function(s){var f=m.f(this),o=i(s);return(o.e?f.reject:f.resolve)(o.v),f.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(n,k,S){n("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(n,k,S){n("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(n,k,S){n("./es6.array.iterator");for(var d=n("./_global"),m=n("./_hide"),i=n("./_iterators"),s=n("./_wks")("toStringTag"),f="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(","),o=0;o<f.length;o++){var t=f[o],r=d[t],u=r&&r.prototype;u&&!u[s]&&m(u,s,t),i[t]=i.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(n,k,S){var d=n("./_export"),m=n("./_task");d(d.G+d.B,{setImmediate:m.set,clearImmediate:m.clear})},{"./_export":73,"./_task":120}],153:[function(n,k,S){(function(d){"use strict";function m(_){return Array.isArray?Array.isArray(_):w(_)==="[object Array]"}function i(_){return typeof _=="boolean"}function s(_){return _===null}function f(_){return _==null}function o(_){return typeof _=="number"}function t(_){return typeof _=="string"}function r(_){return(_===void 0?"undefined":(0,h.default)(_))==="symbol"}function u(_){return _===void 0}function c(_){return w(_)==="[object RegExp]"}function p(_){return(_===void 0?"undefined":(0,h.default)(_))==="object"&&_!==null}function l(_){return w(_)==="[object Date]"}function T(_){return w(_)==="[object Error]"||_ instanceof Error}function x(_){return typeof _=="function"}function v(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||(_===void 0?"undefined":(0,h.default)(_))==="symbol"||_===void 0}function w(_){return Object.prototype.toString.call(_)}var E=n("babel-runtime/helpers/typeof"),h=function(_){return _&&_.__esModule?_:{default:_}}(E);S.isArray=m,S.isBoolean=i,S.isNull=s,S.isNullOrUndefined=f,S.isNumber=o,S.isString=t,S.isSymbol=r,S.isUndefined=u,S.isRegExp=c,S.isObject=p,S.isDate=l,S.isError=T,S.isFunction=x,S.isPrimitive=v,S.isBuffer=d.isBuffer}).call(this,{isBuffer:n("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(n,k,S){"use strict";var d=n("babel-runtime/helpers/typeof"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(i){function s(u,c){for(u=String(u),c=c||2;u.length<c;)u="0"+u;return u}function f(u){var c=new Date(u.getFullYear(),u.getMonth(),u.getDate());c.setDate(c.getDate()-(c.getDay()+6)%7+3);var p=new Date(c.getFullYear(),0,4);p.setDate(p.getDate()-(p.getDay()+6)%7+3);var l=c.getTimezoneOffset()-p.getTimezoneOffset();c.setHours(c.getHours()-l);var T=(c-p)/6048e5;return 1+Math.floor(T)}function o(u){var c=u.getDay();return c===0&&(c=7),c}function t(u){return u===null?"null":u===void 0?"undefined":(u===void 0?"undefined":(0,m.default)(u))!=="object"?u===void 0?"undefined":(0,m.default)(u):Array.isArray(u)?"array":{}.toString.call(u).slice(8,-1).toLowerCase()}var r=function(){var u=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g;return function(l,T,x,v){if(arguments.length!==1||t(l)!=="string"||/\d/.test(l)||(T=l,l=void 0),l=l||new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");T=String(r.masks[T]||T||r.masks.default);var w=T.slice(0,4);w!=="UTC:"&&w!=="GMT:"||(T=T.slice(4),x=!0,w==="GMT:"&&(v=!0));var E=x?"getUTC":"get",h=l[E+"Date"](),_=l[E+"Day"](),O=l[E+"Month"](),I=l[E+"FullYear"](),b=l[E+"Hours"](),W=l[E+"Minutes"](),M=l[E+"Seconds"](),R=l[E+"Milliseconds"](),N=x?0:l.getTimezoneOffset(),F=f(l),H=o(l),G={d:h,dd:s(h),ddd:r.i18n.dayNames[_],dddd:r.i18n.dayNames[_+7],m:O+1,mm:s(O+1),mmm:r.i18n.monthNames[O],mmmm:r.i18n.monthNames[O+12],yy:String(I).slice(2),yyyy:I,h:b%12||12,hh:s(b%12||12),H:b,HH:s(b),M:W,MM:s(W),s:M,ss:s(M),l:s(R,3),L:s(Math.round(R/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:v?"GMT":x?"UTC":(String(l).match(c)||[""]).pop().replace(p,""),o:(N>0?"-":"+")+s(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:F,N:H};return T.replace(u,function(Y){return Y in G?G[Y]:Y.slice(1,Y.length-1)})}}();r.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"},r.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 ue=="function"&&ue.amd?ue(function(){return r}):(S===void 0?"undefined":(0,m.default)(S))==="object"?k.exports=r:i.dateFormat=r})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(n,k,S){(function(d){function m(){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 i(t){var r=this.useColors;if(t[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+t[0]+(r?"%c ":" ")+"+"+S.humanize(this.diff),r){var u="color: "+this.color;t.splice(1,0,u,"color: inherit");var c=0,p=0;t[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(c++,l==="%c"&&(p=c))}),t.splice(p,0,u)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function f(t){try{t==null?S.storage.removeItem("debug"):S.storage.debug=t}catch(r){}}function o(){var t;try{t=S.storage.debug}catch(r){}return!t&&d!==void 0&&"env"in d&&(t=d.env.DEBUG),t}S=k.exports=n("./debug"),S.log=s,S.formatArgs=i,S.save=f,S.load=o,S.useColors=m,S.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),S.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],S.formatters.j=function(t){try{return JSON.stringify(t)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}},S.enable(o())}).call(this,n("_process"))},{"./debug":156,_process:173}],156:[function(n,k,S){function d(r){var u,c=0;for(u in r)c=(c<<5)-c+r.charCodeAt(u),c|=0;return S.colors[Math.abs(c)%S.colors.length]}function m(r){function u(){if(u.enabled){var c=u,p=+new Date,l=p-(t||p);c.diff=l,c.prev=t,c.curr=p,t=p;for(var T=new Array(arguments.length),x=0;x<T.length;x++)T[x]=arguments[x];T[0]=S.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");var v=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,function(w,E){if(w==="%%")return w;v++;var h=S.formatters[E];if(typeof h=="function"){var _=T[v];w=h.call(c,_),T.splice(v,1),v--}return w}),S.formatArgs.call(c,T),(u.log||S.log||console.log.bind(console)).apply(c,T)}}return u.namespace=r,u.enabled=S.enabled(r),u.useColors=S.useColors(),u.color=d(r),typeof S.init=="function"&&S.init(u),u}function i(r){S.save(r),S.names=[],S.skips=[];for(var u=(typeof r=="string"?r:"").split(/[\s,]+/),c=u.length,p=0;p<c;p++)u[p]&&(r=u[p].replace(/\*/g,".*?"),r[0]==="-"?S.skips.push(new RegExp("^"+r.substr(1)+"$")):S.names.push(new RegExp("^"+r+"$")))}function s(){S.enable("")}function f(r){var u,c;for(u=0,c=S.skips.length;u<c;u++)if(S.skips[u].test(r))return!1;for(u=0,c=S.names.length;u<c;u++)if(S.names[u].test(r))return!0;return!1}function o(r){return r instanceof Error?r.stack||r.message:r}S=k.exports=m.debug=m.default=m,S.coerce=o,S.disable=s,S.enable=i,S.enabled=f,S.humanize=n("ms"),S.names=[],S.skips=[],S.formatters={};var t},{ms:169}],157:[function(n,k,S){"use strict";function d(i){var s=""+i,f=m.exec(s);if(!f)return s;var o,t="",r=0,u=0;for(r=f.index;r<s.length;r++){switch(s.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}u!==r&&(t+=s.substring(u,r)),u=r+1,t+=o}return u!==r?t+s.substring(u,r):t}var m=/["'&<>]/;k.exports=d},{}],158:[function(n,k,S){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function m(o){return typeof o=="function"}function i(o){return typeof o=="number"}function s(o){return typeof o=="object"&&o!==null}function f(o){return o===void 0}k.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(o){if(!i(o)||o<0||isNaN(o))throw TypeError("n must be a positive number");return this._maxListeners=o,this},d.prototype.emit=function(o){var t,r,u,c,p,l;if(this._events||(this._events={}),o==="error"&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var T=new Error('Uncaught, unspecified "error" event. ('+t+")");throw T.context=t,T}if(r=this._events[o],f(r))return!1;if(m(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),r.apply(this,c)}else if(s(r))for(c=Array.prototype.slice.call(arguments,1),l=r.slice(),u=l.length,p=0;p<u;p++)l[p].apply(this,c);return!0},d.prototype.addListener=function(o,t){var r;if(!m(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",o,m(t.listener)?t.listener:t),this._events[o]?s(this._events[o])?this._events[o].push(t):this._events[o]=[this._events[o],t]:this._events[o]=t,s(this._events[o])&&!this._events[o].warned&&(r=f(this._maxListeners)?d.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[o].length>r&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace()),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(o,t){function r(){this.removeListener(o,r),u||(u=!0,t.apply(this,arguments))}if(!m(t))throw TypeError("listener must be a function");var u=!1;return r.listener=t,this.on(o,r),this},d.prototype.removeListener=function(o,t){var r,u,c,p;if(!m(t))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(r=this._events[o],c=r.length,u=-1,r===t||m(r.listener)&&r.listener===t)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,t);else if(s(r)){for(p=c;p-- >0;)if(r[p]===t||r[p].listener&&r[p].listener===t){u=p;break}if(u<0)return this;r.length===1?(r.length=0,delete this._events[o]):r.splice(u,1),this._events.removeListener&&this.emit("removeListener",o,t)}return this},d.prototype.removeAllListeners=function(o){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[o],m(r))this.removeListener(o,r);else if(r)for(;r.length;)this.removeListener(o,r[r.length-1]);return delete this._events[o],this},d.prototype.listeners=function(o){return this._events&&this._events[o]?m(this._events[o])?[this._events[o]]:this._events[o].slice():[]},d.prototype.listenerCount=function(o){if(this._events){var t=this._events[o];if(m(t))return 1;if(t)return t.length}return 0},d.listenerCount=function(o,t){return o.listenerCount(t)}},{}],159:[function(n,k,S){var d=n("http"),m=k.exports;for(var i in d)d.hasOwnProperty(i)&&(m[i]=d[i]);m.request=function(s,f){return s||(s={}),s.scheme="https",s.protocol="https:",d.request.call(this,s,f)}},{http:196}],160:[function(n,k,S){"use strict";var d=n("util"),m=n("ms");k.exports=function(i){if(typeof i=="number")return i;var s=m(i);if(s===void 0){var f=new Error(d.format("humanize-ms(%j) result undefined",i));console.warn(f.stack)}return s}},{ms:169,util:207}],161:[function(n,k,S){S.read=function(d,m,i,s,f){var o,t,r=8*f-s-1,u=(1<<r)-1,c=u>>1,p=-7,l=i?f-1:0,T=i?-1:1,x=d[m+l];for(l+=T,o=x&(1<<-p)-1,x>>=-p,p+=r;p>0;o=256*o+d[m+l],l+=T,p-=8);for(t=o&(1<<-p)-1,o>>=-p,p+=s;p>0;t=256*t+d[m+l],l+=T,p-=8);if(o===0)o=1-c;else{if(o===u)return t?NaN:1/0*(x?-1:1);t+=Math.pow(2,s),o-=c}return(x?-1:1)*t*Math.pow(2,o-s)},S.write=function(d,m,i,s,f,o){var t,r,u,c=8*o-f-1,p=(1<<c)-1,l=p>>1,T=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:o-1,v=s?1:-1,w=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(r=isNaN(m)?1:0,t=p):(t=Math.floor(Math.log(m)/Math.LN2),m*(u=Math.pow(2,-t))<1&&(t--,u*=2),m+=t+l>=1?T/u:T*Math.pow(2,1-l),m*u>=2&&(t++,u/=2),t+l>=p?(r=0,t=p):t+l>=1?(r=(m*u-1)*Math.pow(2,f),t+=l):(r=m*Math.pow(2,l-1)*Math.pow(2,f),t=0));f>=8;d[i+x]=255&r,x+=v,r/=256,f-=8);for(t=t<<f|r,c+=f;c>0;d[i+x]=255&t,x+=v,t/=256,c-=8);d[i+x-v]|=128*w}},{}],162:[function(n,k,S){typeof Object.create=="function"?k.exports=function(d,m){d.super_=m,d.prototype=Object.create(m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(d,m){d.super_=m;var i=function(){};i.prototype=m.prototype,d.prototype=new i,d.prototype.constructor=d}},{}],163:[function(n,k,S){function d(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function m(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&d(i.slice(0,0))}k.exports=function(i){return i!=null&&(d(i)||m(i)||!!i._isBuffer)}},{}],164:[function(n,k,S){(function(d){function m(f){return s.call(f).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function i(f){return typeof f=="function"&&(/^class(\s|\{\}$)/.test(s.call(f))||/^.*classCallCheck\(/.test(m(f)))}var s=Function.prototype.toString;S!==void 0?(k!==void 0&&k.exports&&(S=k.exports=i),S.isClass=i):typeof ue=="function"&&ue.amd?ue([],function(){return i}):d.isClass=i})(this)},{}],165:[function(n,k,S){"use strict";function d(o){var t=o.slice(2);return t=t[0].toLowerCase()+t.slice(1)}var m=n("core-util-is"),i=n("isstream"),s=n("is-class");Object.keys(m).map(function(o){S[d(o)]=m[o]}),S.stream=i,S.readableStream=i.isReadable,S.writableStream=i.isWritable,S.duplexStream=i.isDuplex,S.class=s,S.finite=function(o){return Number.isFinite(o)},S.NaN=function(o){return Number.isNaN(o)},S.generator=function(o){return o&&typeof o.next=="function"&&typeof o.throw=="function"},S.generatorFunction=function(o){return o&&o.constructor&&o.constructor.name==="GeneratorFunction"},S.asyncFunction=function(o){return o&&o.constructor&&o.constructor.name==="AsyncFunction"},S.promise=function(o){return o&&typeof o.then=="function"};var f=Math.pow(2,31);S.int=function(o){return m.isNumber(o)&&o%1==0},S.int32=function(o){return S.int(o)&&o<f&&o>=-f},S.long=function(o){return S.int(o)&&(o>=f||o<-f)},S.Long=function(o){return S.object(o)&&S.number(o.high)&&S.number(o.low)},S.double=function(o){return m.isNumber(o)&&!isNaN(o)&&o%1!=0},S.date=function(o){return o instanceof Date},S.regExp=function(o){return o instanceof RegExp},S.regexp=S.regExp,S.error=function(o){return o instanceof Error},S.array=function(o){return Array.isArray(o)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(n,k,S){var d={}.toString;k.exports=Array.isArray||function(m){return d.call(m)=="[object Array]"}},{}],167:[function(n,k,S){function d(o){return o instanceof f.Stream}function m(o){return d(o)&&typeof o._read=="function"&&typeof o._readableState=="object"}function i(o){return d(o)&&typeof o._write=="function"&&typeof o._writableState=="object"}function s(o){return m(o)&&i(o)}var f=n("stream");k.exports=d,k.exports.isReadable=m,k.exports.isWritable=i,k.exports.isDuplex=s},{stream:195}],168:[function(n,k,S){"use strict";function d(i,s,f){if(!i)throw new TypeError("argument dest is required");if(!s)throw new TypeError("argument src is required");return f===void 0&&(f=!0),Object.getOwnPropertyNames(s).forEach(function(o){if(f||!m.call(i,o)){var t=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(i,o,t)}}),i}k.exports=d;var m=Object.prototype.hasOwnProperty},{}],169:[function(n,k,S){function d(c){if(c=String(c),!(c.length>100)){var p=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(p){var l=parseFloat(p[1]);switch((p[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*u;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*t;case"minutes":case"minute":case"mins":case"min":case"m":return l*o;case"seconds":case"second":case"secs":case"sec":case"s":return l*f;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function m(c){return c>=r?Math.round(c/r)+"d":c>=t?Math.round(c/t)+"h":c>=o?Math.round(c/o)+"m":c>=f?Math.round(c/f)+"s":c+"ms"}function i(c){return s(c,r,"day")||s(c,t,"hour")||s(c,o,"minute")||s(c,f,"second")||c+" ms"}function s(c,p,l){if(!(c<p))return c<1.5*p?Math.floor(c/p)+" "+l:Math.ceil(c/p)+" "+l+"s"}var f=1e3,o=60*f,t=60*o,r=24*t,u=365.25*r;k.exports=function(c,p){p=p||{};var l=typeof c;if(l==="string"&&c.length>0)return d(c);if(l==="number"&&isNaN(c)===!1)return p.long?i(c):m(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},{}],170:[function(n,k,S){(function(d){function m(o,t){for(var r=0,u=o.length-1;u>=0;u--){var c=o[u];c==="."?o.splice(u,1):c===".."?(o.splice(u,1),r++):r&&(o.splice(u,1),r--)}if(t)for(;r--;r)o.unshift("..");return o}function i(o){typeof o!="string"&&(o+="");var t,r=0,u=-1,c=!0;for(t=o.length-1;t>=0;--t)if(o.charCodeAt(t)===47){if(!c){r=t+1;break}}else u===-1&&(c=!1,u=t+1);return u===-1?"":o.slice(r,u)}function s(o,t){if(o.filter)return o.filter(t);for(var r=[],u=0;u<o.length;u++)t(o[u],u,o)&&r.push(o[u]);return r}S.resolve=function(){for(var o="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var u=r>=0?arguments[r]:d.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");u&&(o=u+"/"+o,t=u.charAt(0)==="/")}return o=m(s(o.split("/"),function(c){return!!c}),!t).join("/"),(t?"/":"")+o||"."},S.normalize=function(o){var t=S.isAbsolute(o),r=f(o,-1)==="/";return o=m(s(o.split("/"),function(u){return!!u}),!t).join("/"),o||t||(o="."),o&&r&&(o+="/"),(t?"/":"")+o},S.isAbsolute=function(o){return o.charAt(0)==="/"},S.join=function(){var o=Array.prototype.slice.call(arguments,0);return S.normalize(s(o,function(t,r){if(typeof t!="string")throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},S.relative=function(o,t){function r(v){for(var w=0;w<v.length&&v[w]==="";w++);for(var E=v.length-1;E>=0&&v[E]==="";E--);return w>E?[]:v.slice(w,E-w+1)}o=S.resolve(o).substr(1),t=S.resolve(t).substr(1);for(var u=r(o.split("/")),c=r(t.split("/")),p=Math.min(u.length,c.length),l=p,T=0;T<p;T++)if(u[T]!==c[T]){l=T;break}for(var x=[],T=l;T<u.length;T++)x.push("..");return x=x.concat(c.slice(l)),x.join("/")},S.sep="/",S.delimiter=":",S.dirname=function(o){if(typeof o!="string"&&(o+=""),o.length===0)return".";for(var t=o.charCodeAt(0),r=t===47,u=-1,c=!0,p=o.length-1;p>=1;--p)if((t=o.charCodeAt(p))===47){if(!c){u=p;break}}else c=!1;return u===-1?r?"/":".":r&&u===1?"/":o.slice(0,u)},S.basename=function(o,t){var r=i(o);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},S.extname=function(o){typeof o!="string"&&(o+="");for(var t=-1,r=0,u=-1,c=!0,p=0,l=o.length-1;l>=0;--l){var T=o.charCodeAt(l);if(T!==47)u===-1&&(c=!1,u=l+1),T===46?t===-1?t=l:p!==1&&(p=1):t!==-1&&(p=-1);else if(!c){r=l+1;break}}return t===-1||u===-1||p===0||p===1&&t===u-1&&t===r+1?"":o.slice(t,u)};var f=function(o,t,r){return o.substr(t,r)}}).call(this,n("_process"))},{_process:173}],171:[function(n,k,S){(function(d){(function(){"use strict";function m(M){return M=String(M),M.charAt(0).toUpperCase()+M.slice(1)}function i(M,R,N){var F={"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 R&&N&&/^Win/i.test(M)&&!/^Windows Phone /i.test(M)&&(F=F[/[\d.]+$/.exec(M)])&&(M="Windows "+F),M=String(M),R&&N&&(M=M.replace(RegExp(R,"i"),N)),M=f(M.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function s(M,R){var N=-1,F=M?M.length:0;if(typeof F=="number"&&F>-1&&F<=h)for(;++N<F;)R(M[N],N,M);else o(M,R)}function f(M){return M=p(M),/^(?:webOS|i(?:OS|P))/.test(M)?M:m(M)}function o(M,R){for(var N in M)I.call(M,N)&&R(M[N],N,M)}function t(M){return M==null?m(M):b.call(M).slice(8,-1)}function r(M,R){var N=M!=null?typeof M[R]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(N)||N=="object"&&!M[R])}function u(M){return String(M).replace(/([ -])(?!$)/g,"$1?")}function c(M,R){var N=null;return s(M,function(F,H){N=R(N,F,H,M)}),N}function p(M){return String(M).replace(/^ +| +$/g,"")}function l(M){function R(A){return c(A,function(g,y){var V=y.pattern||u(y);return!g&&(g=RegExp("\\b"+V+" *\\d+[.\\w_]*","i").exec(M)||RegExp("\\b"+V+" *\\w+-[\\w]*","i").exec(M)||RegExp("\\b"+V+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(M))&&((g=String(y.label&&!RegExp(V,"i").test(y.label)?y.label:g).split("/"))[1]&&!/[\d.]+/.test(g[0])&&(g[0]+=" "+g[1]),y=y.label||y,g=f(g[0].replace(RegExp(V,"i"),y).replace(RegExp("; *(?:"+y+"[_-])?","i")," ").replace(RegExp("("+y+")[-_.]?(\\w)","i"),"$1 $2"))),g})}function N(){return this.description||""}var F=x,H=M&&typeof M=="object"&&t(M)!="String";H&&(F=M,M=null);var G=F.navigator||{},Y=G.userAgent||"";M||(M=Y);var U,$,J=H?!!G.likeChrome:/\bChrome\b/.test(M)&&!/internal|\n/i.test(b.toString()),Z=H?"Object":"ScriptBridgingProxyObject",P=H?"Object":"Environment",D=H&&F.java?"JavaPackage":t(F.java),B=H?"Object":"RuntimeObject",z=/\bJava/.test(D)&&F.java,ne=z&&t(F.environment)==P,K=z?"a":"\u4F2A",se=z?"b":"\u5C3E",re=F.document||{},ce=F.operamini||F.opera,fe=_.test(fe=H&&ce?ce["[[Class]]"]:t(ce))?fe:ce=null,ee=M,te=[],oe=null,L=M==Y,j=L&&ce&&typeof ce.version=="function"&&ce.version(),X=function(A){return c(A,function(g,y){return g||RegExp("\\b"+(y.pattern||u(y))+"\\b","i").exec(M)&&(y.label||y)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Q=function(A){return c(A,function(g,y){return g||RegExp("\\b"+(y.pattern||u(y))+"\\b","i").exec(M)&&(y.label||y)})}(["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"]),ie=R([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),C=function(A){return c(A,function(g,y,V){return g||(y[ie]||y[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ie)]||RegExp("\\b"+u(V)+"(?:\\b|\\w*\\d)","i").exec(M))&&V})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),e=function(A){return c(A,function(g,y){var V=y.pattern||u(y);return!g&&(g=RegExp("\\b"+V+"(?:/[\\d.]+|[ \\w.]*)","i").exec(M))&&(g=i(g,V,y.label||y)),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(X&&(X=[X]),C&&!ie&&(ie=R([C])),(U=/\bGoogle TV\b/.exec(ie))&&(ie=U[0]),/\bSimulator\b/i.test(M)&&(ie=(ie?ie+" ":"")+"Simulator"),Q=="Opera Mini"&&/\bOPiOS\b/.test(M)&&te.push("running in Turbo/Uncompressed mode"),Q=="IE"&&/\blike iPhone OS\b/.test(M)?(U=l(M.replace(/like iPhone OS/,"")),C=U.manufacturer,ie=U.product):/^iP/.test(ie)?(Q||(Q="Safari"),e="iOS"+((U=/ OS ([\d_]+)/i.exec(M))?" "+U[1].replace(/_/g,"."):"")):Q!="Konqueror"||/buntu/i.test(e)?C&&C!="Google"&&(/Chrome/.test(Q)&&!/\bMobile Safari\b/i.test(M)||/\bVita\b/.test(ie))||/\bAndroid\b/.test(e)&&/^Chrome/.test(Q)&&/\bVersion\//i.test(M)?(Q="Android Browser",e=/\bAndroid\b/.test(e)?e:"Android"):Q=="Silk"?(/\bMobi/i.test(M)||(e="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(M)&&te.unshift("accelerated")):Q=="PaleMoon"&&(U=/\bFirefox\/([\d.]+)\b/.exec(M))?te.push("identifying as Firefox "+U[1]):Q=="Firefox"&&(U=/\b(Mobile|Tablet|TV)\b/i.exec(M))?(e||(e="Firefox OS"),ie||(ie=U[1])):!Q||(U=!/\bMinefield\b/i.test(M)&&/\b(?:Firefox|Safari)\b/.exec(Q))?(Q&&!ie&&/[\/,]|^[^(]+?\)/.test(M.slice(M.indexOf(U+"/")+8))&&(Q=null),(U=ie||C||e)&&(ie||C||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(e))&&(Q=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(e)?e:U)+" Browser")):Q=="Electron"&&(U=(/\bChrome\/([\d.]+)\b/.exec(M)||0)[1])&&te.push("Chromium "+U):e="Kubuntu",j||(j=function(A){return c(A,function(g,y){return g||(RegExp(y+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(M)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",u(Q),"(?:Firefox|Minefield|NetFront)"])),(U=X=="iCab"&&parseFloat(j)>3&&"WebKit"||/\bOpera\b/.test(Q)&&(/\bOPR\b/.test(M)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(M)&&!/^(?:Trident|EdgeHTML)$/.test(X)&&"WebKit"||!X&&/\bMSIE\b/i.test(M)&&(e=="Mac OS"?"Tasman":"Trident")||X=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Q)&&"NetFront")&&(X=[U]),Q=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(M)||0)[1])?(Q+=" Mobile",e="Windows Phone "+(/\+$/.test(U)?U:U+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(M)?(Q="IE Mobile",e="Windows Phone 8.x",te.unshift("desktop mode"),j||(j=(/\brv:([\d.]+)/.exec(M)||0)[1])):Q!="IE"&&X=="Trident"&&(U=/\brv:([\d.]+)/.exec(M))&&(Q&&te.push("identifying as "+Q+(j?" "+j:"")),Q="IE",j=U[1]),L){if(r(F,"global"))if(z&&(U=z.lang.System,ee=U.getProperty("os.arch"),e=e||U.getProperty("os.name")+" "+U.getProperty("os.version")),ne){try{j=F.require("ringo/engine").version.join("."),Q="RingoJS"}catch(A){(U=F.system)&&U.global.system==F.system&&(Q="Narwhal",e||(e=U[0].os||null))}Q||(Q="Rhino")}else typeof F.process=="object"&&!F.process.browser&&(U=F.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(te.push("Node "+U.versions.node),Q="Electron",j=U.versions.electron):typeof U.versions.nw=="string"&&(te.push("Chromium "+j,"Node "+U.versions.node),Q="NW.js",j=U.versions.nw)),Q||(Q="Node.js",ee=U.arch,e=U.platform,j=/[\d.]+/.exec(U.version),j=j?j[0]:null));else t(U=F.runtime)==Z?(Q="Adobe AIR",e=U.flash.system.Capabilities.os):t(U=F.phantom)==B?(Q="PhantomJS",j=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof re.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(M))?(j=[j,re.documentMode],(U=+U[1]+4)!=j[1]&&(te.push("IE "+j[1]+" mode"),X&&(X[1]=""),j[1]=U),j=Q=="IE"?String(j[1].toFixed(1)):j[0]):typeof re.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Q)&&(te.push("masking as "+Q+" "+j),Q="IE",j="11.0",X=["Trident"],e="Windows");e=e&&f(e)}if(j&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(M+";"+(L&&G.appMinorVersion))||/\bMinefield\b/i.test(M)&&"a")&&(oe=/b/i.test(U)?"beta":"alpha",j=j.replace(RegExp(U+"\\+?$"),"")+(oe=="beta"?se:K)+(/\d+\+?/.exec(U)||"")),Q=="Fennec"||Q=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(e))Q="Firefox Mobile";else if(Q=="Maxthon"&&j)j=j.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ie))ie=="Xbox 360"&&(e=null),ie=="Xbox 360"&&/\bIEMobile\b/.test(M)&&te.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Q)&&(!Q||ie||/Browser|Mobi/.test(Q))||e!="Windows CE"&&!/Mobi/i.test(M))if(Q=="IE"&&L)try{F.external===null&&te.unshift("platform preview")}catch(A){te.unshift("embedded")}else(/\bBlackBerry\b/.test(ie)||/\bBB10\b/.test(M))&&(U=(RegExp(ie.replace(/ +/g," *")+"/([.\\d]+)","i").exec(M)||0)[1]||j)?(U=[U,/BB10/.test(M)],e=(U[1]?(ie=null,C="BlackBerry"):"Device Software")+" "+U[0],j=null):this!=o&&ie!="Wii"&&(L&&ce||/Opera/.test(Q)&&/\b(?:MSIE|Firefox)\b/i.test(M)||Q=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(e)||Q=="IE"&&(e&&!/^Win/.test(e)&&j>5.5||/\bWindows XP\b/.test(e)&&j>8||j==8&&!/\bTrident\b/.test(M)))&&!_.test(U=l.call(o,M.replace(_,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),_.test(Q)?(/\bIE\b/.test(U)&&e=="Mac OS"&&(e=null),U="identify"+U):(U="mask"+U,Q=fe?f(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(e=null),L||(j=null)),X=["Presto"],te.push(U));else Q+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(M)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],Q=="Safari"&&U[1].slice(-1)=="+"?(Q="WebKit Nightly",oe="alpha",j=U[1].slice(0,-1)):j!=U[1]&&j!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(M)||0)[1])||(j=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(M)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&X=="WebKit"&&(X=["Blink"]),L&&(J||U[1])?(X&&(X[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:X!="Blink"?"27":"28")):(X&&(X[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),X&&(X[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),Q=="Safari"&&(!j||parseInt(j)>45)&&(j=U)),Q=="Opera"&&(U=/\bzbov|zvav$/.exec(e))?(Q+=" ",te.unshift("desktop mode"),U=="zvav"?(Q+="Mini",j=null):Q+="Mobile",e=e.replace(RegExp(" *"+U+"$"),"")):Q=="Safari"&&/\bChrome\b/.exec(X&&X[1])&&(te.unshift("desktop mode"),Q="Chrome Mobile",j=null,/\bOS X\b/.test(e)?(C="Apple",e="iOS 4.3+"):e=null),j&&j.indexOf(U=/[\d.]+$/.exec(e))==0&&M.indexOf("/"+U+"-")>-1&&(e=p(e.replace(U,""))),X&&!/\b(?:Avant|Nook)\b/.test(Q)&&(/Browser|Lunascape|Maxthon/.test(Q)||Q!="Safari"&&/^iOS/.test(e)&&/\bSafari\b/.test(X[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Q)&&X[1])&&(U=X[X.length-1])&&te.push(U),te.length&&(te=["("+te.join("; ")+")"]),C&&ie&&ie.indexOf(C)<0&&te.push("on "+C),ie&&te.push((/^on /.test(te[te.length-1])?"":"on ")+ie),e&&(U=/ ([\d.+]+)$/.exec(e),$=U&&e.charAt(e.length-U[0].length-1)=="/",e={architecture:32,family:U&&!$?e.replace(U[0],""):e,version:U?U[1]:null,toString:function(){var A=this.version;return this.family+(A&&!$?" "+A:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ee))&&!/\bi686\b/i.test(ee)?(e&&(e.architecture=64,e.family=e.family.replace(RegExp(" *"+U),"")),Q&&(/\bWOW64\b/i.test(M)||L&&/\w(?:86|32)$/.test(G.cpuClass||G.platform)&&!/\bWin64; x64\b/i.test(M))&&te.unshift("32-bit")):e&&/^OS X/.test(e.family)&&Q=="Chrome"&&parseFloat(j)>=39&&(e.architecture=64),M||(M=null);var a={};return a.description=M,a.layout=X&&X[0],a.manufacturer=C,a.name=Q,a.prerelease=oe,a.product=ie,a.ua=M,a.version=Q&&j,a.os=e||{architecture:null,family:null,version:null,toString:function(){return"null"}},a.parse=l,a.toString=N,a.version&&te.unshift(j),a.name&&te.unshift(Q),e&&Q&&(e!=String(e).split(" ")[0]||e!=Q.split(" ")[0]&&!ie)&&te.push(ie?"("+e+")":"on "+e),te.length&&(a.description=te.join(" ")),a}var T={function:!0,object:!0},x=T[typeof window]&&window||this,v=T[typeof S]&&S,w=T[typeof k]&&k&&!k.nodeType&&k,E=v&&w&&typeof d=="object"&&d;!E||E.global!==E&&E.window!==E&&E.self!==E||(x=E);var h=Math.pow(2,53)-1,_=/\bOpera/,O=Object.prototype,I=O.hasOwnProperty,b=O.toString,W=l();typeof ue=="function"&&typeof ue.amd=="object"&&ue.amd?(x.platform=W,ue(function(){return W})):v&&w?o(W,function(M,R){v[R]=M}):x.platform=W}).call(this)}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(n,k,S){(function(d){"use strict";function m(i,s,f,o){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var t,r,u=arguments.length;switch(u){case 0:case 1:return d.nextTick(i);case 2:return d.nextTick(function(){i.call(null,s)});case 3:return d.nextTick(function(){i.call(null,s,f)});case 4:return d.nextTick(function(){i.call(null,s,f,o)});default:for(t=new Array(u-1),r=0;r<t.length;)t[r++]=arguments[r];return d.nextTick(function(){i.apply(null,t)})}}!d.version||d.version.indexOf("v0.")===0||d.version.indexOf("v1.")===0&&d.version.indexOf("v1.8.")!==0?k.exports={nextTick:m}:k.exports=d}).call(this,n("_process"))},{_process:173}],173:[function(n,k,S){function d(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}function i(w){if(u===setTimeout)return setTimeout(w,0);if((u===d||!u)&&setTimeout)return u=setTimeout,setTimeout(w,0);try{return u(w,0)}catch(E){try{return u.call(null,w,0)}catch(h){return u.call(this,w,0)}}}function s(w){if(c===clearTimeout)return clearTimeout(w);if((c===m||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(w);try{return c(w)}catch(E){try{return c.call(null,w)}catch(h){return c.call(this,w)}}}function f(){x&&l&&(x=!1,l.length?T=l.concat(T):v=-1,T.length&&o())}function o(){if(!x){var w=i(f);x=!0;for(var E=T.length;E;){for(l=T,T=[];++v<E;)l&&l[v].run();v=-1,E=T.length}l=null,x=!1,s(w)}}function t(w,E){this.fun=w,this.array=E}function r(){}var u,c,p=k.exports={};(function(){try{u=typeof setTimeout=="function"?setTimeout:d}catch(w){u=d}try{c=typeof clearTimeout=="function"?clearTimeout:m}catch(w){c=m}})();var l,T=[],x=!1,v=-1;p.nextTick=function(w){var E=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)E[h-1]=arguments[h];T.push(new t(w,E)),T.length!==1||x||i(o)},t.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=r,p.addListener=r,p.once=r,p.off=r,p.removeListener=r,p.removeAllListeners=r,p.emit=r,p.prependListener=r,p.prependOnceListener=r,p.listeners=function(w){return[]},p.binding=function(w){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(w){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],174:[function(n,k,S){(function(d){(function(m){function i(D){throw new RangeError($[D])}function s(D,B){for(var z=D.length,ne=[];z--;)ne[z]=B(D[z]);return ne}function f(D,B){var z=D.split("@"),ne="";return z.length>1&&(ne=z[0]+"@",D=z[1]),D=D.replace(U,"."),ne+s(D.split("."),B).join(".")}function o(D){for(var B,z,ne=[],K=0,se=D.length;K<se;)B=D.charCodeAt(K++),B>=55296&&B<=56319&&K<se?(z=D.charCodeAt(K++),(64512&z)==56320?ne.push(((1023&B)<<10)+(1023&z)+65536):(ne.push(B),K--)):ne.push(B);return ne}function t(D){return s(D,function(B){var z="";return B>65535&&(B-=65536,z+=P(B>>>10&1023|55296),B=56320|1023&B),z+=P(B)}).join("")}function r(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:I}function u(D,B){return D+22+75*(D<26)-((B!=0)<<5)}function c(D,B,z){var ne=0;for(D=z?Z(D/R):D>>1,D+=Z(D/B);D>J*W>>1;ne+=I)D=Z(D/J);return Z(ne+(J+1)*D/(D+M))}function p(D){var B,z,ne,K,se,re,ce,fe,ee,te,oe=[],L=D.length,j=0,X=F,Q=N;for(z=D.lastIndexOf(H),z<0&&(z=0),ne=0;ne<z;++ne)D.charCodeAt(ne)>=128&&i("not-basic"),oe.push(D.charCodeAt(ne));for(K=z>0?z+1:0;K<L;){for(se=j,re=1,ce=I;K>=L&&i("invalid-input"),fe=r(D.charCodeAt(K++)),(fe>=I||fe>Z((O-j)/re))&&i("overflow"),j+=fe*re,ee=ce<=Q?b:ce>=Q+W?W:ce-Q,!(fe<ee);ce+=I)te=I-ee,re>Z(O/te)&&i("overflow"),re*=te;B=oe.length+1,Q=c(j-se,B,se==0),Z(j/B)>O-X&&i("overflow"),X+=Z(j/B),j%=B,oe.splice(j++,0,X)}return t(oe)}function l(D){var B,z,ne,K,se,re,ce,fe,ee,te,oe,L,j,X,Q,ie=[];for(D=o(D),L=D.length,B=F,z=0,se=N,re=0;re<L;++re)(oe=D[re])<128&&ie.push(P(oe));for(ne=K=ie.length,K&&ie.push(H);ne<L;){for(ce=O,re=0;re<L;++re)(oe=D[re])>=B&&oe<ce&&(ce=oe);for(j=ne+1,ce-B>Z((O-z)/j)&&i("overflow"),z+=(ce-B)*j,B=ce,re=0;re<L;++re)if(oe=D[re],oe<B&&++z>O&&i("overflow"),oe==B){for(fe=z,ee=I;te=ee<=se?b:ee>=se+W?W:ee-se,!(fe<te);ee+=I)Q=fe-te,X=I-te,ie.push(P(u(te+Q%X,0))),fe=Z(Q/X);ie.push(P(u(fe,0))),se=c(z,j,ne==K),z=0,++ne}++z,++B}return ie.join("")}function T(D){return f(D,function(B){return G.test(B)?p(B.slice(4).toLowerCase()):B})}function x(D){return f(D,function(B){return Y.test(B)?"xn--"+l(B):B})}var v=typeof S=="object"&&S&&!S.nodeType&&S,w=typeof k=="object"&&k&&!k.nodeType&&k,E=typeof d=="object"&&d;E.global!==E&&E.window!==E&&E.self!==E||(m=E);var h,_,O=2147483647,I=36,b=1,W=26,M=38,R=700,N=72,F=128,H="-",G=/^xn--/,Y=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=I-b,Z=Math.floor,P=String.fromCharCode;if(h={version:"1.4.1",ucs2:{decode:o,encode:t},decode:p,encode:l,toASCII:x,toUnicode:T},typeof ue=="function"&&typeof ue.amd=="object"&&ue.amd)ue("punycode",function(){return h});else if(v&&w)if(k.exports==v)w.exports=h;else for(_ in h)h.hasOwnProperty(_)&&(v[_]=h[_]);else m.punycode=h})(this)}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(n,k,S){"use strict";function d(i,s){return Object.prototype.hasOwnProperty.call(i,s)}k.exports=function(i,s,f,o){s=s||"&",f=f||"=";var t={};if(typeof i!="string"||i.length===0)return t;var r=/\+/g;i=i.split(s);var u=1e3;o&&typeof o.maxKeys=="number"&&(u=o.maxKeys);var c=i.length;u>0&&c>u&&(c=u);for(var p=0;p<c;++p){var l,T,x,v,w=i[p].replace(r,"%20"),E=w.indexOf(f);E>=0?(l=w.substr(0,E),T=w.substr(E+1)):(l=w,T=""),x=decodeURIComponent(l),v=decodeURIComponent(T),d(t,x)?m(t[x])?t[x].push(v):t[x]=[t[x],v]:t[x]=v}return t};var m=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],176:[function(n,k,S){"use strict";function d(f,o){if(f.map)return f.map(o);for(var t=[],r=0;r<f.length;r++)t.push(o(f[r],r));return t}var m=function(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};k.exports=function(f,o,t,r){return o=o||"&",t=t||"=",f===null&&(f=void 0),typeof f=="object"?d(s(f),function(u){var c=encodeURIComponent(m(u))+t;return i(f[u])?d(f[u],function(p){return c+encodeURIComponent(m(p))}).join(o):c+encodeURIComponent(m(f[u]))}).join(o):r?encodeURIComponent(m(r))+t+encodeURIComponent(m(f)):""};var i=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},s=Object.keys||function(f){var o=[];for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&o.push(t);return o}},{}],177:[function(n,k,S){"use strict";S.decode=S.parse=n("./decode"),S.encode=S.stringify=n("./encode")},{"./decode":175,"./encode":176}],178:[function(n,k,S){k.exports=n("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(n,k,S){"use strict";function d(x){if(!(this instanceof d))return new d(x);u.call(this,x),c.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",m)}function m(){this.allowHalfOpen||this._writableState.ended||o.nextTick(i,this)}function i(x){x.end()}var s=n("babel-runtime/core-js/object/keys"),f=function(x){return x&&x.__esModule?x:{default:x}}(s),o=n("process-nextick-args"),t=f.default||function(x){var v=[];for(var w in x)v.push(w);return v};k.exports=d;var r=n("core-util-is");r.inherits=n("inherits");var u=n("./_stream_readable"),c=n("./_stream_writable");r.inherits(d,u);for(var p=t(c.prototype),l=0;l<p.length;l++){var T=p[l];d.prototype[T]||(d.prototype[T]=c.prototype[T])}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),d.prototype._destroy=function(x,v){this.push(null),this.end(),o.nextTick(v,x)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(n,k,S){"use strict";function d(s){if(!(this instanceof d))return new d(s);m.call(this,s)}k.exports=d;var m=n("./_stream_transform"),i=n("core-util-is");i.inherits=n("inherits"),i.inherits(d,m),d.prototype._transform=function(s,f,o){o(null,s)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(n,k,S){(function(d,m){"use strict";function i(L){return z.from(L)}function s(L){return z.isBuffer(L)||L instanceof ne}function f(L,j,X){if(typeof L.prependListener=="function")return L.prependListener(j,X);L._events&&L._events[j]?P(L._events[j])?L._events[j].unshift(X):L._events[j]=[X,L._events[j]]:L.on(j,X)}function o(L,j){Z=Z||n("./_stream_duplex"),L=L||{};var X=j instanceof Z;this.objectMode=!!L.objectMode,X&&(this.objectMode=this.objectMode||!!L.readableObjectMode);var Q=L.highWaterMark,ie=L.readableHighWaterMark,C=this.objectMode?16:16384;this.highWaterMark=Q||Q===0?Q:X&&(ie||ie===0)?ie:C,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=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(ce||(ce=n("string_decoder/").StringDecoder),this.decoder=new ce(L.encoding),this.encoding=L.encoding)}function t(L){if(Z=Z||n("./_stream_duplex"),!(this instanceof t))return new t(L);this._readableState=new o(L,this),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),B.call(this)}function r(L,j,X,Q,ie){var C=L._readableState;if(j===null)C.reading=!1,x(L,C);else{var e;ie||(e=c(C,j)),e?L.emit("error",e):C.objectMode||j&&j.length>0?(typeof j=="string"||C.objectMode||(0,$.default)(j)===z.prototype||(j=i(j)),Q?C.endEmitted?L.emit("error",new Error("stream.unshift() after end event")):u(L,C,j,!0):C.ended?L.emit("error",new Error("stream.push() after EOF")):(C.reading=!1,C.decoder&&!X?(j=C.decoder.write(j),C.objectMode||j.length!==0?u(L,C,j,!1):E(L,C)):u(L,C,j,!1))):Q||(C.reading=!1)}return p(C)}function u(L,j,X,Q){j.flowing&&j.length===0&&!j.sync?(L.emit("data",X),L.read(0)):(j.length+=j.objectMode?1:X.length,Q?j.buffer.unshift(X):j.buffer.push(X),j.needReadable&&v(L)),E(L,j)}function c(L,j){var X;return s(j)||typeof j=="string"||j===void 0||L.objectMode||(X=new TypeError("Invalid non-string/buffer chunk")),X}function p(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)}function l(L){return L>=oe?L=oe:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function T(L,j){return L<=0||j.length===0&&j.ended?0:j.objectMode?1:L!==L?j.flowing&&j.length?j.buffer.head.data.length:j.length:(L>j.highWaterMark&&(j.highWaterMark=l(L)),L<=j.length?L:j.ended?j.length:(j.needReadable=!0,0))}function x(L,j){if(!j.ended){if(j.decoder){var X=j.decoder.end();X&&X.length&&(j.buffer.push(X),j.length+=j.objectMode?1:X.length)}j.ended=!0,v(L)}}function v(L){var j=L._readableState;j.needReadable=!1,j.emittedReadable||(re("emitReadable",j.flowing),j.emittedReadable=!0,j.sync?J.nextTick(w,L):w(L))}function w(L){re("emit readable"),L.emit("readable"),W(L)}function E(L,j){j.readingMore||(j.readingMore=!0,J.nextTick(h,L,j))}function h(L,j){for(var X=j.length;!j.reading&&!j.flowing&&!j.ended&&j.length<j.highWaterMark&&(re("maybeReadMore read 0"),L.read(0),X!==j.length);)X=j.length;j.readingMore=!1}function _(L){return function(){var j=L._readableState;re("pipeOnDrain",j.awaitDrain),j.awaitDrain&&j.awaitDrain--,j.awaitDrain===0&&D(L,"data")&&(j.flowing=!0,W(L))}}function O(L){re("readable nexttick read 0"),L.read(0)}function I(L,j){j.resumeScheduled||(j.resumeScheduled=!0,J.nextTick(b,L,j))}function b(L,j){j.reading||(re("resume read 0"),L.read(0)),j.resumeScheduled=!1,j.awaitDrain=0,L.emit("resume"),W(L),j.flowing&&!j.reading&&L.read(0)}function W(L){var j=L._readableState;for(re("flow",j.flowing);j.flowing&&L.read()!==null;);}function M(L,j){if(j.length===0)return null;var X;return j.objectMode?X=j.buffer.shift():!L||L>=j.length?(X=j.decoder?j.buffer.join(""):j.buffer.length===1?j.buffer.head.data:j.buffer.concat(j.length),j.buffer.clear()):X=R(L,j.buffer,j.decoder),X}function R(L,j,X){var Q;return L<j.head.data.length?(Q=j.head.data.slice(0,L),j.head.data=j.head.data.slice(L)):Q=L===j.head.data.length?j.shift():X?N(L,j):F(L,j),Q}function N(L,j){var X=j.head,Q=1,ie=X.data;for(L-=ie.length;X=X.next;){var C=X.data,e=L>C.length?C.length:L;if(e===C.length?ie+=C:ie+=C.slice(0,L),(L-=e)===0){e===C.length?(++Q,X.next?j.head=X.next:j.head=j.tail=null):(j.head=X,X.data=C.slice(e));break}++Q}return j.length-=Q,ie}function F(L,j){var X=z.allocUnsafe(L),Q=j.head,ie=1;for(Q.data.copy(X),L-=Q.data.length;Q=Q.next;){var C=Q.data,e=L>C.length?C.length:L;if(C.copy(X,X.length-L,0,e),(L-=e)===0){e===C.length?(++ie,Q.next?j.head=Q.next:j.head=j.tail=null):(j.head=Q,Q.data=C.slice(e));break}++ie}return j.length-=ie,X}function H(L){var j=L._readableState;if(j.length>0)throw new Error('"endReadable()" called on non-empty stream');j.endEmitted||(j.ended=!0,J.nextTick(G,j,L))}function G(L,j){L.endEmitted||L.length!==0||(L.endEmitted=!0,j.readable=!1,j.emit("end"))}function Y(L,j){for(var X=0,Q=L.length;X<Q;X++)if(L[X]===j)return X;return-1}var U=n("babel-runtime/core-js/object/get-prototype-of"),$=function(L){return L&&L.__esModule?L:{default:L}}(U),J=n("process-nextick-args");k.exports=t;var Z,P=n("isarray");t.ReadableState=o;var D=(n("events").EventEmitter,function(L,j){return L.listeners(j).length}),B=n("./internal/streams/stream"),z=n("safe-buffer").Buffer,ne=m.Uint8Array||function(){},K=n("core-util-is");K.inherits=n("inherits");var se=n("util"),re=void 0;re=se&&se.debuglog?se.debuglog("stream"):function(){};var ce,fe=n("./internal/streams/BufferList"),ee=n("./internal/streams/destroy");K.inherits(t,B);var te=["error","close","destroy","pause","resume"];Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),t.prototype.destroy=ee.destroy,t.prototype._undestroy=ee.undestroy,t.prototype._destroy=function(L,j){this.push(null),j(L)},t.prototype.push=function(L,j){var X,Q=this._readableState;return Q.objectMode?X=!0:typeof L=="string"&&(j=j||Q.defaultEncoding,j!==Q.encoding&&(L=z.from(L,j),j=""),X=!0),r(this,L,j,!1,X)},t.prototype.unshift=function(L){return r(this,L,null,!0,!1)},t.prototype.isPaused=function(){return this._readableState.flowing===!1},t.prototype.setEncoding=function(L){return ce||(ce=n("string_decoder/").StringDecoder),this._readableState.decoder=new ce(L),this._readableState.encoding=L,this};var oe=8388608;t.prototype.read=function(L){re("read",L),L=parseInt(L,10);var j=this._readableState,X=L;if(L!==0&&(j.emittedReadable=!1),L===0&&j.needReadable&&(j.length>=j.highWaterMark||j.ended))return re("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?H(this):v(this),null;if((L=T(L,j))===0&&j.ended)return j.length===0&&H(this),null;var Q=j.needReadable;re("need readable",Q),(j.length===0||j.length-L<j.highWaterMark)&&(Q=!0,re("length less than watermark",Q)),j.ended||j.reading?(Q=!1,re("reading or ended",Q)):Q&&(re("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(L=T(X,j)));var ie;return ie=L>0?M(L,j):null,ie===null?(j.needReadable=!0,L=0):j.length-=L,j.length===0&&(j.ended||(j.needReadable=!0),X!==L&&j.ended&&H(this)),ie!==null&&this.emit("data",ie),ie},t.prototype._read=function(L){this.emit("error",new Error("_read() is not implemented"))},t.prototype.pipe=function(L,j){function X(be,ve){re("onunpipe"),be===y&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,ie())}function Q(){re("onend"),L.end()}function ie(){re("cleanup"),L.removeListener("close",a),L.removeListener("finish",A),L.removeListener("drain",pe),L.removeListener("error",e),L.removeListener("unpipe",X),y.removeListener("end",Q),y.removeListener("end",g),y.removeListener("data",C),he=!0,!V.awaitDrain||L._writableState&&!L._writableState.needDrain||pe()}function C(be){re("ondata"),me=!1,L.write(be)!==!1||me||((V.pipesCount===1&&V.pipes===L||V.pipesCount>1&&Y(V.pipes,L)!==-1)&&!he&&(re("false write response, pause",y._readableState.awaitDrain),y._readableState.awaitDrain++,me=!0),y.pause())}function e(be){re("onerror",be),g(),L.removeListener("error",e),D(L,"error")===0&&L.emit("error",be)}function a(){L.removeListener("finish",A),g()}function A(){re("onfinish"),L.removeListener("close",a),g()}function g(){re("unpipe"),y.unpipe(L)}var y=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=L;break;case 1:V.pipes=[V.pipes,L];break;default:V.pipes.push(L)}V.pipesCount+=1,re("pipe count=%d opts=%j",V.pipesCount,j);var q=(!j||j.end!==!1)&&L!==d.stdout&&L!==d.stderr,le=q?Q:g;V.endEmitted?J.nextTick(le):y.once("end",le),L.on("unpipe",X);var pe=_(y);L.on("drain",pe);var he=!1,me=!1;return y.on("data",C),f(L,"error",e),L.once("close",a),L.once("finish",A),L.emit("pipe",y),V.flowing||(re("pipe resume"),y.resume()),L},t.prototype.unpipe=function(L){var j=this._readableState,X={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return L&&L!==j.pipes?this:(L||(L=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,L&&L.emit("unpipe",this,X),this);if(!L){var Q=j.pipes,ie=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var C=0;C<ie;C++)Q[C].emit("unpipe",this,X);return this}var e=Y(j.pipes,L);return e===-1?this:(j.pipes.splice(e,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),L.emit("unpipe",this,X),this)},t.prototype.on=function(L,j){var X=B.prototype.on.call(this,L,j);if(L==="data")this._readableState.flowing!==!1&&this.resume();else if(L==="readable"){var Q=this._readableState;Q.endEmitted||Q.readableListening||(Q.readableListening=Q.needReadable=!0,Q.emittedReadable=!1,Q.reading?Q.length&&v(this):J.nextTick(O,this))}return X},t.prototype.addListener=t.prototype.on,t.prototype.resume=function(){var L=this._readableState;return L.flowing||(re("resume"),L.flowing=!0,I(this,L)),this},t.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this},t.prototype.wrap=function(L){var j=this,X=this._readableState,Q=!1;L.on("end",function(){if(re("wrapped end"),X.decoder&&!X.ended){var e=X.decoder.end();e&&e.length&&j.push(e)}j.push(null)}),L.on("data",function(e){re("wrapped data"),X.decoder&&(e=X.decoder.write(e)),(!X.objectMode||e!=null)&&(X.objectMode||e&&e.length)&&(j.push(e)||(Q=!0,L.pause()))});for(var ie in L)this[ie]===void 0&&typeof L[ie]=="function"&&(this[ie]=function(e){return function(){return L[e].apply(L,arguments)}}(ie));for(var C=0;C<te.length;C++)L.on(te[C],this.emit.bind(this,te[C]));return this._read=function(e){re("wrapped _read",e),Q&&(Q=!1,L.resume())},this},Object.defineProperty(t.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),t._fromList=M}).call(this,n("_process"),typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(n,k,S){"use strict";function d(t,r){var u=this._transformState;u.transforming=!1;var c=u.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));u.writechunk=null,u.writecb=null,r!=null&&this.push(r),c(t);var p=this._readableState;p.reading=!1,(p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}function m(t){if(!(this instanceof m))return new m(t);f.call(this,t),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var t=this;typeof this._flush=="function"?this._flush(function(r,u){s(t,r,u)}):s(this,null,null)}function s(t,r,u){if(r)return t.emit("error",r);if(u!=null&&t.push(u),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}k.exports=m;var f=n("./_stream_duplex"),o=n("core-util-is");o.inherits=n("inherits"),o.inherits(m,f),m.prototype.push=function(t,r){return this._transformState.needTransform=!1,f.prototype.push.call(this,t,r)},m.prototype._transform=function(t,r,u){throw new Error("_transform() is not implemented")},m.prototype._write=function(t,r,u){var c=this._transformState;if(c.writecb=u,c.writechunk=t,c.writeencoding=r,!c.transforming){var p=this._readableState;(c.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},m.prototype._read=function(t){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},m.prototype._destroy=function(t,r){var u=this;f.prototype._destroy.call(this,t,function(c){r(c),u.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(n,k,S){(function(d,m){"use strict";function i(ee){return ee&&ee.__esModule?ee:{default:ee}}function s(ee){var te=this;this.next=null,this.entry=null,this.finish=function(){N(te,ee)}}function f(ee){return se.from(ee)}function o(ee){return se.isBuffer(ee)||ee instanceof re}function t(){}function r(ee,te){D=D||n("./_stream_duplex"),ee=ee||{};var oe=te instanceof D;this.objectMode=!!ee.objectMode,oe&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var L=ee.highWaterMark,j=ee.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=L||L===0?L:oe&&(j||j===0)?j:X,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 Q=ee.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ie){E(te,ie)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function u(ee){if(D=D||n("./_stream_duplex"),!(fe.call(u,this)||this instanceof D))return new u(ee);this._writableState=new r(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),K.call(this)}function c(ee,te){var oe=new Error("write after end");ee.emit("error",oe),P.nextTick(te,oe)}function p(ee,te,oe,L){var j=!0,X=!1;return oe===null?X=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||te.objectMode||(X=new TypeError("Invalid non-string/buffer chunk")),X&&(ee.emit("error",X),P.nextTick(L,X),j=!1),j}function l(ee,te,oe){return ee.objectMode||ee.decodeStrings===!1||typeof te!="string"||(te=se.from(te,oe)),te}function T(ee,te,oe,L,j,X){if(!oe){var Q=l(te,L,j);L!==Q&&(oe=!0,j="buffer",L=Q)}var ie=te.objectMode?1:L.length;te.length+=ie;var C=te.length<te.highWaterMark;if(C||(te.needDrain=!0),te.writing||te.corked){var e=te.lastBufferedRequest;te.lastBufferedRequest={chunk:L,encoding:j,isBuf:oe,callback:X,next:null},e?e.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else x(ee,te,!1,ie,L,j,X);return C}function x(ee,te,oe,L,j,X,Q){te.writelen=L,te.writecb=Q,te.writing=!0,te.sync=!0,oe?ee._writev(j,te.onwrite):ee._write(j,X,te.onwrite),te.sync=!1}function v(ee,te,oe,L,j){--te.pendingcb,oe?(P.nextTick(j,L),P.nextTick(M,ee,te),ee._writableState.errorEmitted=!0,ee.emit("error",L)):(j(L),ee._writableState.errorEmitted=!0,ee.emit("error",L),M(ee,te))}function w(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}function E(ee,te){var oe=ee._writableState,L=oe.sync,j=oe.writecb;if(w(oe),te)v(ee,oe,L,te,j);else{var X=I(oe);X||oe.corked||oe.bufferProcessing||!oe.bufferedRequest||O(ee,oe),L?B(h,ee,oe,X,j):h(ee,oe,X,j)}}function h(ee,te,oe,L){oe||_(ee,te),te.pendingcb--,L(),M(ee,te)}function _(ee,te){te.length===0&&te.needDrain&&(te.needDrain=!1,ee.emit("drain"))}function O(ee,te){te.bufferProcessing=!0;var oe=te.bufferedRequest;if(ee._writev&&oe&&oe.next){var L=te.bufferedRequestCount,j=new Array(L),X=te.corkedRequestsFree;X.entry=oe;for(var Q=0,ie=!0;oe;)j[Q]=oe,oe.isBuf||(ie=!1),oe=oe.next,Q+=1;j.allBuffers=ie,x(ee,te,!0,te.length,j,"",X.finish),te.pendingcb++,te.lastBufferedRequest=null,X.next?(te.corkedRequestsFree=X.next,X.next=null):te.corkedRequestsFree=new s(te),te.bufferedRequestCount=0}else{for(;oe;){var C=oe.chunk,e=oe.encoding,a=oe.callback;if(x(ee,te,!1,te.objectMode?1:C.length,C,e,a),oe=oe.next,te.bufferedRequestCount--,te.writing)break}oe===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=oe,te.bufferProcessing=!1}function I(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function b(ee,te){ee._final(function(oe){te.pendingcb--,oe&&ee.emit("error",oe),te.prefinished=!0,ee.emit("prefinish"),M(ee,te)})}function W(ee,te){te.prefinished||te.finalCalled||(typeof ee._final=="function"?(te.pendingcb++,te.finalCalled=!0,P.nextTick(b,ee,te)):(te.prefinished=!0,ee.emit("prefinish")))}function M(ee,te){var oe=I(te);return oe&&(W(ee,te),te.pendingcb===0&&(te.finished=!0,ee.emit("finish"))),oe}function R(ee,te,oe){te.ending=!0,M(ee,te),oe&&(te.finished?P.nextTick(oe):ee.once("finish",oe)),te.ended=!0,ee.writable=!1}function N(ee,te,oe){var L=ee.entry;for(ee.entry=null;L;){var j=L.callback;te.pendingcb--,j(oe),L=L.next}te.corkedRequestsFree?te.corkedRequestsFree.next=ee:te.corkedRequestsFree=ee}var F=n("babel-runtime/core-js/object/define-property"),H=i(F),G=n("babel-runtime/core-js/symbol/has-instance"),Y=i(G),U=n("babel-runtime/core-js/symbol"),$=i(U),J=n("babel-runtime/core-js/set-immediate"),Z=i(J),P=n("process-nextick-args");k.exports=u;var D,B=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?Z.default:P.nextTick;u.WritableState=r;var z=n("core-util-is");z.inherits=n("inherits");var ne={deprecate:n("util-deprecate")},K=n("./internal/streams/stream"),se=n("safe-buffer").Buffer,re=m.Uint8Array||function(){},ce=n("./internal/streams/destroy");z.inherits(u,K),r.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,te=[];ee;)te.push(ee),ee=ee.next;return te},function(){try{Object.defineProperty(r.prototype,"buffer",{get:ne.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ee){}}();var fe;typeof $.default=="function"&&Y.default&&typeof Function.prototype[Y.default]=="function"?(fe=Function.prototype[Y.default],(0,H.default)(u,Y.default,{value:function(ee){return!!fe.call(this,ee)||this===u&&ee&&ee._writableState instanceof r}})):fe=function(ee){return ee instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(ee,te,oe){var L=this._writableState,j=!1,X=!L.objectMode&&o(ee);return X&&!se.isBuffer(ee)&&(ee=f(ee)),typeof te=="function"&&(oe=te,te=null),X?te="buffer":te||(te=L.defaultEncoding),typeof oe!="function"&&(oe=t),L.ended?c(this,oe):(X||p(this,L,ee,oe))&&(L.pendingcb++,j=T(this,L,X,ee,te,oe)),j},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||ee.corked||ee.finished||ee.bufferProcessing||!ee.bufferedRequest||O(this,ee))},u.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),u.prototype._write=function(ee,te,oe){oe(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(ee,te,oe){var L=this._writableState;typeof ee=="function"?(oe=ee,ee=null,te=null):typeof te=="function"&&(oe=te,te=null),ee!=null&&this.write(ee,te),L.corked&&(L.corked=1,this.uncork()),L.ending||L.finished||R(this,L,oe)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),u.prototype.destroy=ce.destroy,u.prototype._undestroy=ce.undestroy,u.prototype._destroy=function(ee,te){this.end(),te(ee)}}).call(this,n("_process"),typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(n,k,S){"use strict";function d(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function m(f,o,t){f.copy(o,t)}var i=n("safe-buffer").Buffer,s=n("util");k.exports=function(){function f(){d(this,f),this.head=null,this.tail=null,this.length=0}return f.prototype.push=function(o){var t={data:o,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},f.prototype.unshift=function(o){var t={data:o,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},f.prototype.shift=function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}},f.prototype.clear=function(){this.head=this.tail=null,this.length=0},f.prototype.join=function(o){if(this.length===0)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=o+t.data;return r},f.prototype.concat=function(o){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var t=i.allocUnsafe(o>>>0),r=this.head,u=0;r;)m(r.data,t,u),u+=r.data.length,r=r.next;return t},f}(),s&&s.inspect&&s.inspect.custom&&(k.exports.prototype[s.inspect.custom]=function(){var f=s.inspect({length:this.length});return this.constructor.name+" "+f})},{"safe-buffer":193,util:36}],185:[function(n,k,S){"use strict";function d(f,o){var t=this,r=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return r||u?(o?o(f):!f||this._writableState&&this._writableState.errorEmitted||s.nextTick(i,this,f),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(c){!o&&c?(s.nextTick(i,t,c),t._writableState&&(t._writableState.errorEmitted=!0)):o&&o(c)}),this)}function m(){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 i(f,o){f.emit("error",o)}var s=n("process-nextick-args");k.exports={destroy:d,undestroy:m}},{"process-nextick-args":172}],186:[function(n,k,S){"use strict";k.exports=n("events").EventEmitter},{events:158}],187:[function(n,k,S){k.exports=n("./readable").PassThrough},{"./readable":188}],188:[function(n,k,S){S=k.exports=n("./lib/_stream_readable.js"),S.Stream=S,S.Readable=S,S.Writable=n("./lib/_stream_writable.js"),S.Duplex=n("./lib/_stream_duplex.js"),S.Transform=n("./lib/_stream_transform.js"),S.PassThrough=n("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(n,k,S){k.exports=n("./readable").Transform},{"./readable":188}],190:[function(n,k,S){k.exports=n("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(n,k,S){var d=function(){return this}()||Function("return this")(),m=d.regeneratorRuntime&&Object.getOwnPropertyNames(d).indexOf("regeneratorRuntime")>=0,i=m&&d.regeneratorRuntime;if(d.regeneratorRuntime=void 0,k.exports=n("./runtime"),m)d.regeneratorRuntime=i;else try{delete d.regeneratorRuntime}catch(s){d.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(n,k,S){(function(d){"use strict";function m(Z,P,D,B){var z=P&&P.prototype instanceof s?P:s,ne=Object.create(z.prototype),K=new T(B||[]);return ne._invoke=u(Z,D,K),ne}function i(Z,P,D){try{return{type:"normal",arg:Z.call(P,D)}}catch(B){return{type:"throw",arg:B}}}function s(){}function f(){}function o(){}function t(Z){["next","throw","return"].forEach(function(P){Z[P]=function(D){return this._invoke(P,D)}})}function r(Z){function P(z,ne,K,se){var re=i(Z[z],Z,ne);if(re.type!=="throw"){var ce=re.arg,fe=ce.value;return fe&&typeof fe=="object"&&h.call(fe,"__await")?Promise.resolve(fe.__await).then(function(ee){P("next",ee,K,se)},function(ee){P("throw",ee,K,se)}):Promise.resolve(fe).then(function(ee){ce.value=ee,K(ce)},se)}se(re.arg)}function D(z,ne){function K(){return new Promise(function(se,re){P(z,ne,se,re)})}return B=B?B.then(K,K):K()}var B;this._invoke=D}function u(Z,P,D){var B=R;return function(z,ne){if(B===F)throw new Error("Generator is already running");if(B===H){if(z==="throw")throw ne;return v()}for(D.method=z,D.arg=ne;;){var K=D.delegate;if(K){var se=c(K,D);if(se){if(se===G)continue;return se}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(B===R)throw B=H,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);B=F;var re=i(Z,P,D);if(re.type==="normal"){if(B=D.done?H:N,re.arg===G)continue;return{value:re.arg,done:D.done}}re.type==="throw"&&(B=H,D.method="throw",D.arg=re.arg)}}}function c(Z,P){var D=Z.iterator[P.method];if(D===w){if(P.delegate=null,P.method==="throw"){if(Z.iterator.return&&(P.method="return",P.arg=w,c(Z,P),P.method==="throw"))return G;P.method="throw",P.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var B=i(D,Z.iterator,P.arg);if(B.type==="throw")return P.method="throw",P.arg=B.arg,P.delegate=null,G;var z=B.arg;return z?z.done?(P[Z.resultName]=z.value,P.next=Z.nextLoc,P.method!=="return"&&(P.method="next",P.arg=w),P.delegate=null,G):z:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,G)}function p(Z){var P={tryLoc:Z[0]};1 in Z&&(P.catchLoc=Z[1]),2 in Z&&(P.finallyLoc=Z[2],P.afterLoc=Z[3]),this.tryEntries.push(P)}function l(Z){var P=Z.completion||{};P.type="normal",delete P.arg,Z.completion=P}function T(Z){this.tryEntries=[{tryLoc:"root"}],Z.forEach(p,this),this.reset(!0)}function x(Z){if(Z){var P=Z[O];if(P)return P.call(Z);if(typeof Z.next=="function")return Z;if(!isNaN(Z.length)){var D=-1,B=function z(){for(;++D<Z.length;)if(h.call(Z,D))return z.value=Z[D],z.done=!1,z;return z.value=w,z.done=!0,z};return B.next=B}}return{next:v}}function v(){return{value:w,done:!0}}var w,E=Object.prototype,h=E.hasOwnProperty,_=typeof Symbol=="function"?Symbol:{},O=_.iterator||"@@iterator",I=_.asyncIterator||"@@asyncIterator",b=_.toStringTag||"@@toStringTag",W=typeof k=="object",M=d.regeneratorRuntime;if(M)return void(W&&(k.exports=M));M=d.regeneratorRuntime=W?k.exports:{},M.wrap=m;var R="suspendedStart",N="suspendedYield",F="executing",H="completed",G={},Y={};Y[O]=function(){return this};var U=Object.getPrototypeOf,$=U&&U(U(x([])));$&&$!==E&&h.call($,O)&&(Y=$);var J=o.prototype=s.prototype=Object.create(Y);f.prototype=J.constructor=o,o.constructor=f,o[b]=f.displayName="GeneratorFunction",M.isGeneratorFunction=function(Z){var P=typeof Z=="function"&&Z.constructor;return!!P&&(P===f||(P.displayName||P.name)==="GeneratorFunction")},M.mark=function(Z){return Object.setPrototypeOf?Object.setPrototypeOf(Z,o):(Z.__proto__=o,b in Z||(Z[b]="GeneratorFunction")),Z.prototype=Object.create(J),Z},M.awrap=function(Z){return{__await:Z}},t(r.prototype),r.prototype[I]=function(){return this},M.AsyncIterator=r,M.async=function(Z,P,D,B){var z=new r(m(Z,P,D,B));return M.isGeneratorFunction(P)?z:z.next().then(function(ne){return ne.done?ne.value:z.next()})},t(J),J[b]="Generator",J[O]=function(){return this},J.toString=function(){return"[object Generator]"},M.keys=function(Z){var P=[];for(var D in Z)P.push(D);return P.reverse(),function B(){for(;P.length;){var z=P.pop();if(z in Z)return B.value=z,B.done=!1,B}return B.done=!0,B}},M.values=x,T.prototype={constructor:T,reset:function(Z){if(this.prev=0,this.next=0,this.sent=this._sent=w,this.done=!1,this.delegate=null,this.method="next",this.arg=w,this.tryEntries.forEach(l),!Z)for(var P in this)P.charAt(0)==="t"&&h.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=w)},stop:function(){this.done=!0;var Z=this.tryEntries[0],P=Z.completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(Z){function P(re,ce){return ne.type="throw",ne.arg=Z,D.next=re,ce&&(D.method="next",D.arg=w),!!ce}if(this.done)throw Z;for(var D=this,B=this.tryEntries.length-1;B>=0;--B){var z=this.tryEntries[B],ne=z.completion;if(z.tryLoc==="root")return P("end");if(z.tryLoc<=this.prev){var K=h.call(z,"catchLoc"),se=h.call(z,"finallyLoc");if(K&&se){if(this.prev<z.catchLoc)return P(z.catchLoc,!0);if(this.prev<z.finallyLoc)return P(z.finallyLoc)}else if(K){if(this.prev<z.catchLoc)return P(z.catchLoc,!0)}else{if(!se)throw new Error("try statement without catch or finally");if(this.prev<z.finallyLoc)return P(z.finallyLoc)}}}},abrupt:function(Z,P){for(var D=this.tryEntries.length-1;D>=0;--D){var B=this.tryEntries[D];if(B.tryLoc<=this.prev&&h.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var z=B;break}}z&&(Z==="break"||Z==="continue")&&z.tryLoc<=P&&P<=z.finallyLoc&&(z=null);var ne=z?z.completion:{};return ne.type=Z,ne.arg=P,z?(this.method="next",this.next=z.finallyLoc,G):this.complete(ne)},complete:function(Z,P){if(Z.type==="throw")throw Z.arg;return Z.type==="break"||Z.type==="continue"?this.next=Z.arg:Z.type==="return"?(this.rval=this.arg=Z.arg,this.method="return",this.next="end"):Z.type==="normal"&&P&&(this.next=P),G},finish:function(Z){for(var P=this.tryEntries.length-1;P>=0;--P){var D=this.tryEntries[P];if(D.finallyLoc===Z)return this.complete(D.completion,D.afterLoc),l(D),G}},catch:function(Z){for(var P=this.tryEntries.length-1;P>=0;--P){var D=this.tryEntries[P];if(D.tryLoc===Z){var B=D.completion;if(B.type==="throw"){var z=B.arg;l(D)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(Z,P,D){return this.delegate={iterator:x(Z),resultName:P,nextLoc:D},this.method==="next"&&(this.arg=w),G}}})(function(){return this}()||Function("return this")())},{}],193:[function(n,k,S){function d(f,o){for(var t in f)o[t]=f[t]}function m(f,o,t){return s(f,o,t)}var i=n("buffer"),s=i.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?k.exports=i:(d(i,S),S.Buffer=m),d(s,m),m.from=function(f,o,t){if(typeof f=="number")throw new TypeError("Argument must not be a number");return s(f,o,t)},m.alloc=function(f,o,t){if(typeof f!="number")throw new TypeError("Argument must be a number");var r=s(f);return o!==void 0?typeof t=="string"?r.fill(o,t):r.fill(o):r.fill(0),r},m.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return s(f)},m.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(f)}},{buffer:38}],194:[function(n,k,S){(function(d){"use strict";function m(v){return v&&v.__esModule?v:{default:v}}var i=n("babel-runtime/core-js/string/from-code-point"),s=m(i),f=n("babel-runtime/core-js/json/stringify"),o=m(f),t=n("babel-runtime/helpers/typeof"),r=m(t),u=n("babel-runtime/core-js/object/define-property"),c=m(u),p=n("babel-runtime/core-js/object/keys"),l=m(p),T=n("babel-runtime/core-js/object/create"),x=m(T);(function(v){function w(g,y){if(!(this instanceof w))return new w(g,y);var V=this;h(V),V.q=V.c="",V.bufferCheckPosition=v.MAX_BUFFER_LENGTH,V.opt=y||{},V.opt.lowercase=V.opt.lowercase||V.opt.lowercasetags,V.looseCase=V.opt.lowercase?"toLowerCase":"toUpperCase",V.tags=[],V.closed=V.closedRoot=V.sawRoot=!1,V.tag=V.error=null,V.strict=!!g,V.noscript=!(!g&&!V.opt.noscript),V.state=a.BEGIN,V.strictEntities=V.opt.strictEntities,V.ENTITIES=V.strictEntities?(0,x.default)(v.XML_ENTITIES):(0,x.default)(v.ENTITIES),V.attribList=[],V.opt.xmlns&&(V.ns=(0,x.default)(X)),V.trackPosition=V.opt.position!==!1,V.trackPosition&&(V.position=V.line=V.column=0),F(V,"onready")}function E(g){for(var y=Math.max(v.MAX_BUFFER_LENGTH,10),V=0,q=0,le=ce.length;q<le;q++){var pe=g[ce[q]].length;if(pe>y)switch(ce[q]){case"textNode":G(g);break;case"cdata":H(g,"oncdata",g.cdata),g.cdata="";break;case"script":H(g,"onscript",g.script),g.script="";break;default:U(g,"Max buffer length exceeded: "+ce[q])}V=Math.max(V,pe)}var he=v.MAX_BUFFER_LENGTH-V;g.bufferCheckPosition=he+g.position}function h(g){for(var y=0,V=ce.length;y<V;y++)g[ce[y]]=""}function _(g){G(g),g.cdata!==""&&(H(g,"oncdata",g.cdata),g.cdata=""),g.script!==""&&(H(g,"onscript",g.script),g.script="")}function O(g,y){return new I(g,y)}function I(g,y){if(!(this instanceof I))return new I(g,y);fe.apply(this),this._parser=new w(g,y),this.writable=!0,this.readable=!0;var V=this;this._parser.onend=function(){V.emit("end")},this._parser.onerror=function(q){V.emit("error",q),V._parser.error=null},this._decoder=null,ee.forEach(function(q){(0,c.default)(V,"on"+q,{get:function(){return V._parser["on"+q]},set:function(le){if(!le)return V.removeAllListeners(q),V._parser["on"+q]=le,le;V.on(q,le)},enumerable:!0,configurable:!1})})}function b(g){return g===" "||g===`
|
|
`||g==="\r"||g===" "}function W(g){return g==='"'||g==="'"}function M(g){return g===">"||b(g)}function R(g,y){return g.test(y)}function N(g,y){return!R(g,y)}function F(g,y,V){g[y]&&g[y](V)}function H(g,y,V){g.textNode&&G(g),F(g,y,V)}function G(g){g.textNode=Y(g.opt,g.textNode),g.textNode&&F(g,"ontext",g.textNode),g.textNode=""}function Y(g,y){return g.trim&&(y=y.trim()),g.normalize&&(y=y.replace(/\s+/g," ")),y}function U(g,y){return G(g),g.trackPosition&&(y+=`
|
|
Line: `+g.line+`
|
|
Column: `+g.column+`
|
|
Char: `+g.c),y=new Error(y),g.error=y,F(g,"onerror",y),g}function $(g){return g.sawRoot&&!g.closedRoot&&J(g,"Unclosed root tag"),g.state!==a.BEGIN&&g.state!==a.BEGIN_WHITESPACE&&g.state!==a.TEXT&&U(g,"Unexpected end"),G(g),g.c="",g.closed=!0,F(g,"onend"),w.call(g,g.strict,g.opt),g}function J(g,y){if((g===void 0?"undefined":(0,r.default)(g))!=="object"||!(g instanceof w))throw new Error("bad call to strictFail");g.strict&&U(g,y)}function Z(g){g.strict||(g.tagName=g.tagName[g.looseCase]());var y=g.tags[g.tags.length-1]||g,V=g.tag={name:g.tagName,attributes:{}};g.opt.xmlns&&(V.ns=y.ns),g.attribList.length=0,H(g,"onopentagstart",V)}function P(g,y){var V=g.indexOf(":"),q=V<0?["",g]:g.split(":"),le=q[0],pe=q[1];return y&&g==="xmlns"&&(le="xmlns",pe=""),{prefix:le,local:pe}}function D(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 y=P(g.attribName,!0),V=y.prefix,q=y.local;if(V==="xmlns")if(q==="xml"&&g.attribValue!==L)J(g,"xml: prefix must be bound to "+L+`
|
|
Actual: `+g.attribValue);else if(q==="xmlns"&&g.attribValue!==j)J(g,"xmlns: prefix must be bound to "+j+`
|
|
Actual: `+g.attribValue);else{var le=g.tag,pe=g.tags[g.tags.length-1]||g;le.ns===pe.ns&&(le.ns=(0,x.default)(pe.ns)),le.ns[q]=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 B(g,y){if(g.opt.xmlns){var V=g.tag,q=P(g.tagName);V.prefix=q.prefix,V.local=q.local,V.uri=V.ns[q.prefix]||"",V.prefix&&!V.uri&&(J(g,"Unbound namespace prefix: "+(0,o.default)(g.tagName)),V.uri=q.prefix);var le=g.tags[g.tags.length-1]||g;V.ns&&le.ns!==V.ns&&(0,l.default)(V.ns).forEach(function(Ie){H(g,"onopennamespace",{prefix:Ie,uri:V.ns[Ie]})});for(var pe=0,he=g.attribList.length;pe<he;pe++){var me=g.attribList[pe],be=me[0],ve=me[1],de=P(be,!0),ye=de.prefix,_e=de.local,ge=ye===""?"":V.ns[ye]||"",xe={name:be,value:ve,prefix:ye,local:_e,uri:ge};ye&&ye!=="xmlns"&&!ge&&(J(g,"Unbound namespace prefix: "+(0,o.default)(ye)),xe.uri=ye),g.tag.attributes[be]=xe,H(g,"onattribute",xe)}g.attribList.length=0}g.tag.isSelfClosing=!!y,g.sawRoot=!0,g.tags.push(g.tag),H(g,"onopentag",g.tag),y||(g.noscript||g.tagName.toLowerCase()!=="script"?g.state=a.TEXT:g.state=a.SCRIPT,g.tag=null,g.tagName=""),g.attribName=g.attribValue="",g.attribList.length=0}function z(g){if(!g.tagName)return J(g,"Weird empty close tag."),g.textNode+="</>",void(g.state=a.TEXT);if(g.script){if(g.tagName!=="script")return g.script+="</"+g.tagName+">",g.tagName="",void(g.state=a.SCRIPT);H(g,"onscript",g.script),g.script=""}var y=g.tags.length,V=g.tagName;g.strict||(V=V[g.looseCase]());for(var q=V;y--&&g.tags[y].name!==q;)J(g,"Unexpected close tag");if(y<0)return J(g,"Unmatched closing tag: "+g.tagName),g.textNode+="</"+g.tagName+">",void(g.state=a.TEXT);g.tagName=V;for(var le=g.tags.length;le-- >y;){var pe=g.tag=g.tags.pop();g.tagName=g.tag.name,H(g,"onclosetag",g.tagName);var he={};for(var me in pe.ns)he[me]=pe.ns[me];var be=g.tags[g.tags.length-1]||g;g.opt.xmlns&&pe.ns!==be.ns&&(0,l.default)(pe.ns).forEach(function(ve){var de=pe.ns[ve];H(g,"onclosenamespace",{prefix:ve,uri:de})})}y===0&&(g.closedRoot=!0),g.tagName=g.attribValue=g.attribName="",g.attribList.length=0,g.state=a.TEXT}function ne(g){var y,V=g.entity,q=V.toLowerCase(),le="";return g.ENTITIES[V]?g.ENTITIES[V]:g.ENTITIES[q]?g.ENTITIES[q]:(V=q,V.charAt(0)==="#"&&(V.charAt(1)==="x"?(V=V.slice(2),y=parseInt(V,16),le=y.toString(16)):(V=V.slice(1),y=parseInt(V,10),le=y.toString(10))),V=V.replace(/^0+/,""),isNaN(y)||le.toLowerCase()!==V?(J(g,"Invalid character entity"),"&"+g.entity+";"):(0,s.default)(y))}function K(g,y){y==="<"?(g.state=a.OPEN_WAKA,g.startTagPosition=g.position):b(y)||(J(g,"Non-whitespace before first tag."),g.textNode=y,g.state=a.TEXT)}function se(g,y){var V="";return y<g.length&&(V=g.charAt(y)),V}function re(g){var y=this;if(this.error)throw this.error;if(y.closed)return U(y,"Cannot write after close. Assign an onready handler.");if(g===null)return $(y);(g===void 0?"undefined":(0,r.default)(g))==="object"&&(g=g.toString());for(var V=0,q="";q=se(g,V++),y.c=q,!!q;)switch(y.trackPosition&&(y.position++,q===`
|
|
`?(y.line++,y.column=0):y.column++),y.state){case a.BEGIN:if(y.state=a.BEGIN_WHITESPACE,q==="\uFEFF")continue;K(y,q);continue;case a.BEGIN_WHITESPACE:K(y,q);continue;case a.TEXT:if(y.sawRoot&&!y.closedRoot){for(var le=V-1;q&&q!=="<"&&q!=="&";)(q=se(g,V++))&&y.trackPosition&&(y.position++,q===`
|
|
`?(y.line++,y.column=0):y.column++);y.textNode+=g.substring(le,V-1)}q!=="<"||y.sawRoot&&y.closedRoot&&!y.strict?(b(q)||y.sawRoot&&!y.closedRoot||J(y,"Text data outside of root node."),q==="&"?y.state=a.TEXT_ENTITY:y.textNode+=q):(y.state=a.OPEN_WAKA,y.startTagPosition=y.position);continue;case a.SCRIPT:q==="<"?y.state=a.SCRIPT_ENDING:y.script+=q;continue;case a.SCRIPT_ENDING:q==="/"?y.state=a.CLOSE_TAG:(y.script+="<"+q,y.state=a.SCRIPT);continue;case a.OPEN_WAKA:if(q==="!")y.state=a.SGML_DECL,y.sgmlDecl="";else if(!b(q))if(R(Q,q))y.state=a.OPEN_TAG,y.tagName=q;else if(q==="/")y.state=a.CLOSE_TAG,y.tagName="";else if(q==="?")y.state=a.PROC_INST,y.procInstName=y.procInstBody="";else{if(J(y,"Unencoded <"),y.startTagPosition+1<y.position){var pe=y.position-y.startTagPosition;q=new Array(pe).join(" ")+q}y.textNode+="<"+q,y.state=a.TEXT}continue;case a.SGML_DECL:(y.sgmlDecl+q).toUpperCase()===te?(H(y,"onopencdata"),y.state=a.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+q==="--"?(y.state=a.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+q).toUpperCase()===oe?(y.state=a.DOCTYPE,(y.doctype||y.sawRoot)&&J(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):q===">"?(H(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=a.TEXT):(W(q)&&(y.state=a.SGML_DECL_QUOTED),y.sgmlDecl+=q);continue;case a.SGML_DECL_QUOTED:q===y.q&&(y.state=a.SGML_DECL,y.q=""),y.sgmlDecl+=q;continue;case a.DOCTYPE:q===">"?(y.state=a.TEXT,H(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=q,q==="["?y.state=a.DOCTYPE_DTD:W(q)&&(y.state=a.DOCTYPE_QUOTED,y.q=q));continue;case a.DOCTYPE_QUOTED:y.doctype+=q,q===y.q&&(y.q="",y.state=a.DOCTYPE);continue;case a.DOCTYPE_DTD:y.doctype+=q,q==="]"?y.state=a.DOCTYPE:W(q)&&(y.state=a.DOCTYPE_DTD_QUOTED,y.q=q);continue;case a.DOCTYPE_DTD_QUOTED:y.doctype+=q,q===y.q&&(y.state=a.DOCTYPE_DTD,y.q="");continue;case a.COMMENT:q==="-"?y.state=a.COMMENT_ENDING:y.comment+=q;continue;case a.COMMENT_ENDING:q==="-"?(y.state=a.COMMENT_ENDED,y.comment=Y(y.opt,y.comment),y.comment&&H(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+q,y.state=a.COMMENT);continue;case a.COMMENT_ENDED:q!==">"?(J(y,"Malformed comment"),y.comment+="--"+q,y.state=a.COMMENT):y.state=a.TEXT;continue;case a.CDATA:q==="]"?y.state=a.CDATA_ENDING:y.cdata+=q;continue;case a.CDATA_ENDING:q==="]"?y.state=a.CDATA_ENDING_2:(y.cdata+="]"+q,y.state=a.CDATA);continue;case a.CDATA_ENDING_2:q===">"?(y.cdata&&H(y,"oncdata",y.cdata),H(y,"onclosecdata"),y.cdata="",y.state=a.TEXT):q==="]"?y.cdata+="]":(y.cdata+="]]"+q,y.state=a.CDATA);continue;case a.PROC_INST:q==="?"?y.state=a.PROC_INST_ENDING:b(q)?y.state=a.PROC_INST_BODY:y.procInstName+=q;continue;case a.PROC_INST_BODY:if(!y.procInstBody&&b(q))continue;q==="?"?y.state=a.PROC_INST_ENDING:y.procInstBody+=q;continue;case a.PROC_INST_ENDING:q===">"?(H(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=a.TEXT):(y.procInstBody+="?"+q,y.state=a.PROC_INST_BODY);continue;case a.OPEN_TAG:R(ie,q)?y.tagName+=q:(Z(y),q===">"?B(y):q==="/"?y.state=a.OPEN_TAG_SLASH:(b(q)||J(y,"Invalid character in tag name"),y.state=a.ATTRIB));continue;case a.OPEN_TAG_SLASH:q===">"?(B(y,!0),z(y)):(J(y,"Forward-slash in opening tag not followed by >"),y.state=a.ATTRIB);continue;case a.ATTRIB:if(b(q))continue;q===">"?B(y):q==="/"?y.state=a.OPEN_TAG_SLASH:R(Q,q)?(y.attribName=q,y.attribValue="",y.state=a.ATTRIB_NAME):J(y,"Invalid attribute name");continue;case a.ATTRIB_NAME:q==="="?y.state=a.ATTRIB_VALUE:q===">"?(J(y,"Attribute without value"),y.attribValue=y.attribName,D(y),B(y)):b(q)?y.state=a.ATTRIB_NAME_SAW_WHITE:R(ie,q)?y.attribName+=q:J(y,"Invalid attribute name");continue;case a.ATTRIB_NAME_SAW_WHITE:if(q==="=")y.state=a.ATTRIB_VALUE;else{if(b(q))continue;J(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",H(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",q===">"?B(y):R(Q,q)?(y.attribName=q,y.state=a.ATTRIB_NAME):(J(y,"Invalid attribute name"),y.state=a.ATTRIB)}continue;case a.ATTRIB_VALUE:if(b(q))continue;W(q)?(y.q=q,y.state=a.ATTRIB_VALUE_QUOTED):(J(y,"Unquoted attribute value"),y.state=a.ATTRIB_VALUE_UNQUOTED,y.attribValue=q);continue;case a.ATTRIB_VALUE_QUOTED:if(q!==y.q){q==="&"?y.state=a.ATTRIB_VALUE_ENTITY_Q:y.attribValue+=q;continue}D(y),y.q="",y.state=a.ATTRIB_VALUE_CLOSED;continue;case a.ATTRIB_VALUE_CLOSED:b(q)?y.state=a.ATTRIB:q===">"?B(y):q==="/"?y.state=a.OPEN_TAG_SLASH:R(Q,q)?(J(y,"No whitespace between attributes"),y.attribName=q,y.attribValue="",y.state=a.ATTRIB_NAME):J(y,"Invalid attribute name");continue;case a.ATTRIB_VALUE_UNQUOTED:if(!M(q)){q==="&"?y.state=a.ATTRIB_VALUE_ENTITY_U:y.attribValue+=q;continue}D(y),q===">"?B(y):y.state=a.ATTRIB;continue;case a.CLOSE_TAG:if(y.tagName)q===">"?z(y):R(ie,q)?y.tagName+=q:y.script?(y.script+="</"+y.tagName,y.tagName="",y.state=a.SCRIPT):(b(q)||J(y,"Invalid tagname in closing tag"),y.state=a.CLOSE_TAG_SAW_WHITE);else{if(b(q))continue;N(Q,q)?y.script?(y.script+="</"+q,y.state=a.SCRIPT):J(y,"Invalid tagname in closing tag."):y.tagName=q}continue;case a.CLOSE_TAG_SAW_WHITE:if(b(q))continue;q===">"?z(y):J(y,"Invalid characters in closing tag");continue;case a.TEXT_ENTITY:case a.ATTRIB_VALUE_ENTITY_Q:case a.ATTRIB_VALUE_ENTITY_U:var he,me;switch(y.state){case a.TEXT_ENTITY:he=a.TEXT,me="textNode";break;case a.ATTRIB_VALUE_ENTITY_Q:he=a.ATTRIB_VALUE_QUOTED,me="attribValue";break;case a.ATTRIB_VALUE_ENTITY_U:he=a.ATTRIB_VALUE_UNQUOTED,me="attribValue"}q===";"?(y[me]+=ne(y),y.entity="",y.state=he):R(y.entity.length?e:C,q)?y.entity+=q:(J(y,"Invalid character in entity name"),y[me]+="&"+y.entity+q,y.entity="",y.state=he);continue;default:throw new Error(y,"Unknown state: "+y.state)}return y.position>=y.bufferCheckPosition&&E(y),y}v.parser=function(g,y){return new w(g,y)},v.SAXParser=w,v.SAXStream=I,v.createStream=O,v.MAX_BUFFER_LENGTH=65536;var ce=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];v.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],x.default||(Object.create=function(g){function y(){}return y.prototype=g,new y}),l.default||(Object.keys=function(g){var y=[];for(var V in g)g.hasOwnProperty(V)&&y.push(V);return y}),w.prototype={end:function(){$(this)},write:re,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 ee=v.EVENTS.filter(function(g){return g!=="error"&&g!=="end"});I.prototype=(0,x.default)(fe.prototype,{constructor:{value:I}}),I.prototype.write=function(g){if(typeof d=="function"&&typeof d.isBuffer=="function"&&d.isBuffer(g)){if(!this._decoder){var y=n("string_decoder").StringDecoder;this._decoder=new y("utf8")}g=this._decoder.write(g)}return this._parser.write(g.toString()),this.emit("data",g),!0},I.prototype.end=function(g){return g&&g.length&&this.write(g),this._parser.end(),!0},I.prototype.on=function(g,y){var V=this;return V._parser["on"+g]||ee.indexOf(g)===-1||(V._parser["on"+g]=function(){var q=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);q.splice(0,0,g),V.emit.apply(V,q)}),fe.prototype.on.call(V,g,y)};var te="[CDATA[",oe="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",j="http://www.w3.org/2000/xmlns/",X={xml:L,xmlns:j},Q=/[:_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]/,ie=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,C=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,e=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,a=0;v.STATE={BEGIN:a++,BEGIN_WHITESPACE:a++,TEXT:a++,TEXT_ENTITY:a++,OPEN_WAKA:a++,SGML_DECL:a++,SGML_DECL_QUOTED:a++,DOCTYPE:a++,DOCTYPE_QUOTED:a++,DOCTYPE_DTD:a++,DOCTYPE_DTD_QUOTED:a++,COMMENT_STARTING:a++,COMMENT:a++,COMMENT_ENDING:a++,COMMENT_ENDED:a++,CDATA:a++,CDATA_ENDING:a++,CDATA_ENDING_2:a++,PROC_INST:a++,PROC_INST_BODY:a++,PROC_INST_ENDING:a++,OPEN_TAG:a++,OPEN_TAG_SLASH:a++,ATTRIB:a++,ATTRIB_NAME:a++,ATTRIB_NAME_SAW_WHITE:a++,ATTRIB_VALUE:a++,ATTRIB_VALUE_QUOTED:a++,ATTRIB_VALUE_CLOSED:a++,ATTRIB_VALUE_UNQUOTED:a++,ATTRIB_VALUE_ENTITY_Q:a++,ATTRIB_VALUE_ENTITY_U:a++,CLOSE_TAG:a++,CLOSE_TAG_SAW_WHITE:a++,SCRIPT:a++,SCRIPT_ENDING:a++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,l.default)(v.ENTITIES).forEach(function(g){var y=v.ENTITIES[g],V=typeof y=="number"?String.fromCharCode(y):y;v.ENTITIES[g]=V});for(var A in v.STATE)v.STATE[v.STATE[A]]=A;a=v.STATE,s.default||function(){var g=String.fromCharCode,y=Math.floor,V=function(){var q,le,pe=[],he=-1,me=arguments.length;if(!me)return"";for(var be="";++he<me;){var ve=Number(arguments[he]);if(!isFinite(ve)||ve<0||ve>1114111||y(ve)!==ve)throw RangeError("Invalid code point: "+ve);ve<=65535?pe.push(ve):(ve-=65536,q=55296+(ve>>10),le=ve%1024+56320,pe.push(q,le)),(he+1===me||pe.length>16384)&&(be+=g.apply(null,pe),pe.length=0)}return be};c.default?Object.defineProperty(String,"fromCodePoint",{value:V,configurable:!0,writable:!0}):String.fromCodePoint=V}()})(S===void 0?(void 0).sax={}:S)}).call(this,n("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(n,k,S){function d(){m.call(this)}k.exports=d;var m=n("events").EventEmitter;n("inherits")(d,m),d.Readable=n("readable-stream/readable.js"),d.Writable=n("readable-stream/writable.js"),d.Duplex=n("readable-stream/duplex.js"),d.Transform=n("readable-stream/transform.js"),d.PassThrough=n("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(i,s){function f(T){i.writable&&i.write(T)===!1&&p.pause&&p.pause()}function o(){p.readable&&p.resume&&p.resume()}function t(){l||(l=!0,i.end())}function r(){l||(l=!0,typeof i.destroy=="function"&&i.destroy())}function u(T){if(c(),m.listenerCount(this,"error")===0)throw T}function c(){p.removeListener("data",f),i.removeListener("drain",o),p.removeListener("end",t),p.removeListener("close",r),p.removeListener("error",u),i.removeListener("error",u),p.removeListener("end",c),p.removeListener("close",c),i.removeListener("close",c)}var p=this;p.on("data",f),i.on("drain",o),i._isStdio||s&&s.end===!1||(p.on("end",t),p.on("close",r));var l=!1;return p.on("error",u),i.on("error",u),p.on("end",c),p.on("close",c),i.on("close",c),i.emit("pipe",p),i}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(n,k,S){(function(d){var m=n("./lib/request"),i=n("./lib/response"),s=n("xtend"),f=n("builtin-status-codes"),o=n("url"),t=S;t.request=function(r,u){r=typeof r=="string"?o.parse(r):s(r);var c=d.location.protocol.search(/^https?:$/)===-1?"http:":"",p=r.protocol||c,l=r.hostname||r.host,T=r.port,x=r.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),r.url=(l?p+"//"+l:"")+(T?":"+T:"")+x,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var v=new m(r);return u&&v.on("response",u),v},t.get=function(r,u){var c=t.request(r,u);return c.end(),c},t.ClientRequest=m,t.IncomingMessage=i.IncomingMessage,t.Agent=function(){},t.Agent.defaultMaxSockets=4,t.globalAgent=new t.Agent,t.STATUS_CODES=f,t.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(n,k,S){(function(d){"use strict";function m(){if(f!==void 0)return f;if(d.XMLHttpRequest){f=new d.XMLHttpRequest;try{f.open("GET",d.XDomainRequest?"/":"https://example.com")}catch(r){f=null}}else f=null;return f}function i(r){var u=m();if(!u)return!1;try{return u.responseType=r,u.responseType===r}catch(c){}return!1}function s(r){return typeof r=="function"}S.fetch=s(d.fetch)&&s(d.ReadableStream),S.writableStream=s(d.WritableStream),S.abortController=s(d.AbortController),S.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),S.blobConstructor=!0}catch(r){}var f,o=d.ArrayBuffer!==void 0,t=o&&s(d.ArrayBuffer.prototype.slice);S.arraybuffer=S.fetch||o&&i("arraybuffer"),S.msstream=!S.fetch&&t&&i("ms-stream"),S.mozchunkedarraybuffer=!S.fetch&&o&&i("moz-chunked-arraybuffer"),S.overrideMimeType=S.fetch||!!m()&&s(m().overrideMimeType),S.vbArray=s(d.VBArray),f=null}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(n,k,S){(function(d,m,i){"use strict";function s(E,h){return r.fetch&&h?"fetch":r.mozchunkedarraybuffer?"moz-chunked-arraybuffer":r.msstream?"ms-stream":r.arraybuffer&&E?"arraybuffer":r.vbArray&&E?"text:vbarray":"text"}function f(E){try{var h=E.status;return h!==null&&h!==0}catch(_){return!1}}var o=n("babel-runtime/core-js/object/keys"),t=function(E){return E&&E.__esModule?E:{default:E}}(o),r=n("./capability"),u=n("inherits"),c=n("./response"),p=n("readable-stream"),l=n("to-arraybuffer"),T=c.IncomingMessage,x=c.readyStates,v=k.exports=function(E){var h=this;p.Writable.call(h),h._opts=E,h._body=[],h._headers={},E.auth&&h.setHeader("Authorization","Basic "+new i(E.auth).toString("base64")),(0,t.default)(E.headers).forEach(function(I){h.setHeader(I,E.headers[I])});var _,O=!0;if(E.mode==="disable-fetch"||"requestTimeout"in E&&!r.abortController)O=!1,_=!0;else if(E.mode==="prefer-streaming")_=!1;else if(E.mode==="allow-wrong-content-type")_=!r.overrideMimeType;else{if(E.mode&&E.mode!=="default"&&E.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");_=!0}h._mode=s(_,O),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};u(v,p.Writable),v.prototype.setHeader=function(E,h){var _=this,O=E.toLowerCase();w.indexOf(O)===-1&&(_._headers[O]={name:E,value:h})},v.prototype.getHeader=function(E){var h=this._headers[E.toLowerCase()];return h?h.value:null},v.prototype.removeHeader=function(E){delete this._headers[E.toLowerCase()]},v.prototype._onFinish=function(){var E=this;if(!E._destroyed){var h=E._opts,_=E._headers,O=null;h.method!=="GET"&&h.method!=="HEAD"&&(O=r.arraybuffer?l(i.concat(E._body)):r.blobConstructor?new m.Blob(E._body.map(function(R){return l(R)}),{type:(_["content-type"]||{}).value||""}):i.concat(E._body).toString());var I=[];if((0,t.default)(_).forEach(function(R){var N=_[R].name,F=_[R].value;Array.isArray(F)?F.forEach(function(H){I.push([N,H])}):I.push([N,F])}),E._mode==="fetch"){var b=null;if(r.abortController){var W=new AbortController;b=W.signal,E._fetchAbortController=W,"requestTimeout"in h&&h.requestTimeout!==0&&(E._fetchTimer=m.setTimeout(function(){E.emit("requestTimeout"),E._fetchAbortController&&E._fetchAbortController.abort()},h.requestTimeout))}m.fetch(E._opts.url,{method:E._opts.method,headers:I,body:O||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:b}).then(function(R){E._fetchResponse=R,E._connect()},function(R){m.clearTimeout(E._fetchTimer),E._destroyed||E.emit("error",R)})}else{var M=E._xhr=new m.XMLHttpRequest;try{M.open(E._opts.method,E._opts.url,!0)}catch(R){return void d.nextTick(function(){E.emit("error",R)})}"responseType"in M&&(M.responseType=E._mode.split(":")[0]),"withCredentials"in M&&(M.withCredentials=!!h.withCredentials),E._mode==="text"&&"overrideMimeType"in M&&M.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(M.timeout=h.requestTimeout,M.ontimeout=function(){E.emit("requestTimeout")}),I.forEach(function(R){M.setRequestHeader(R[0],R[1])}),E._response=null,M.onreadystatechange=function(){switch(M.readyState){case x.LOADING:case x.DONE:E._onXHRProgress()}},E._mode==="moz-chunked-arraybuffer"&&(M.onprogress=function(){E._onXHRProgress()}),M.onerror=function(){E._destroyed||E.emit("error",new Error("XHR error"))};try{M.send(O)}catch(R){return void d.nextTick(function(){E.emit("error",R)})}}}},v.prototype._onXHRProgress=function(){var E=this;f(E._xhr)&&!E._destroyed&&(E._response||E._connect(),E._response._onXHRProgress())},v.prototype._connect=function(){var E=this;E._destroyed||(E._response=new T(E._xhr,E._fetchResponse,E._mode,E._fetchTimer),E._response.on("error",function(h){E.emit("error",h)}),E.emit("response",E._response))},v.prototype._write=function(E,h,_){this._body.push(E),_()},v.prototype.abort=v.prototype.destroy=function(){var E=this;E._destroyed=!0,m.clearTimeout(E._fetchTimer),E._response&&(E._response._destroyed=!0),E._xhr?E._xhr.abort():E._fetchAbortController&&E._fetchAbortController.abort()},v.prototype.end=function(E,h,_){var O=this;typeof E=="function"&&(_=E,E=void 0),p.Writable.prototype.end.call(O,E,h,_)},v.prototype.flushHeaders=function(){},v.prototype.setTimeout=function(){},v.prototype.setNoDelay=function(){},v.prototype.setSocketKeepAlive=function(){};var w=["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 ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(n,k,S){(function(d,m,i){"use strict";var s=n("babel-runtime/core-js/promise"),f=function(p){return p&&p.__esModule?p:{default:p}}(s),o=n("./capability"),t=n("inherits"),r=n("readable-stream"),u=S.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=S.IncomingMessage=function(p,l,T,x){var v=this;if(r.Readable.call(v),v._mode=T,v.headers={},v.rawHeaders=[],v.trailers={},v.rawTrailers=[],v.on("end",function(){d.nextTick(function(){v.emit("close")})}),T==="fetch"){if(v._fetchResponse=l,v.url=l.url,v.statusCode=l.status,v.statusMessage=l.statusText,l.headers.forEach(function(O,I){v.headers[I.toLowerCase()]=O,v.rawHeaders.push(I,O)}),o.writableStream){var w=new WritableStream({write:function(O){return new f.default(function(I,b){v._destroyed?b():v.push(new i(O))?I():v._resumeFetch=I})},close:function(){m.clearTimeout(x),v._destroyed||v.push(null)},abort:function(O){v._destroyed||v.emit("error",O)}});try{return void l.body.pipeTo(w).catch(function(O){m.clearTimeout(x),v._destroyed||v.emit("error",O)})}catch(O){}}var E=l.body.getReader();(function O(){E.read().then(function(I){if(!v._destroyed){if(I.done)return m.clearTimeout(x),void v.push(null);v.push(new i(I.value)),O()}}).catch(function(I){m.clearTimeout(x),v._destroyed||v.emit("error",I)})})()}else if(v._xhr=p,v._pos=0,v.url=p.responseURL,v.statusCode=p.status,v.statusMessage=p.statusText,p.getAllResponseHeaders().split(/\r?\n/).forEach(function(O){var I=O.match(/^([^:]+):\s*(.*)/);if(I){var b=I[1].toLowerCase();b==="set-cookie"?(v.headers[b]===void 0&&(v.headers[b]=[]),v.headers[b].push(I[2])):v.headers[b]!==void 0?v.headers[b]+=", "+I[2]:v.headers[b]=I[2],v.rawHeaders.push(I[1],I[2])}}),v._charset="x-user-defined",!o.overrideMimeType){var h=v.rawHeaders["mime-type"];if(h){var _=h.match(/;\s*charset=([^;])(;|$)/);_&&(v._charset=_[1].toLowerCase())}v._charset||(v._charset="utf-8")}};t(c,r.Readable),c.prototype._read=function(){var p=this,l=p._resumeFetch;l&&(p._resumeFetch=null,l())},c.prototype._onXHRProgress=function(){var p=this,l=p._xhr,T=null;switch(p._mode){case"text:vbarray":if(l.readyState!==u.DONE)break;try{T=new m.VBArray(l.responseBody).toArray()}catch(h){}if(T!==null){p.push(new i(T));break}case"text":try{T=l.responseText}catch(h){p._mode="text:vbarray";break}if(T.length>p._pos){var x=T.substr(p._pos);if(p._charset==="x-user-defined"){for(var v=new i(x.length),w=0;w<x.length;w++)v[w]=255&x.charCodeAt(w);p.push(v)}else p.push(x,p._charset);p._pos=T.length}break;case"arraybuffer":if(l.readyState!==u.DONE||!l.response)break;T=l.response,p.push(new i(new Uint8Array(T)));break;case"moz-chunked-arraybuffer":if(T=l.response,l.readyState!==u.LOADING||!T)break;p.push(new i(new Uint8Array(T)));break;case"ms-stream":if(T=l.response,l.readyState!==u.LOADING)break;var E=new m.MSStreamReader;E.onprogress=function(){E.result.byteLength>p._pos&&(p.push(new i(new Uint8Array(E.result.slice(p._pos)))),p._pos=E.result.byteLength)},E.onload=function(){p.push(null)},E.readAsArrayBuffer(T)}p._xhr.readyState===u.DONE&&p._mode!=="ms-stream"&&p.push(null)}}).call(this,n("_process"),typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(n,k,S){"use strict";function d(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 m(h){var _=d(h);if(typeof _!="string"&&(w.isEncoding===E||!E(h)))throw new Error("Unknown encoding: "+h);return _||h}function i(h){this.encoding=m(h);var _;switch(this.encoding){case"utf16le":this.text=c,this.end=p,_=4;break;case"utf8":this.fillLast=t,_=4;break;case"base64":this.text=l,this.end=T,_=3;break;default:return this.write=x,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=w.allocUnsafe(_)}function s(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function f(h,_,O){var I=_.length-1;if(I<O)return 0;var b=s(_[I]);return b>=0?(b>0&&(h.lastNeed=b-1),b):--I<O||b===-2?0:(b=s(_[I]))>=0?(b>0&&(h.lastNeed=b-2),b):--I<O||b===-2?0:(b=s(_[I]),b>=0?(b>0&&(b===2?b=0:h.lastNeed=b-3),b):0)}function o(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 t(h){var _=this.lastTotal-this.lastNeed,O=o(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 r(h,_){var O=f(this,h,_);if(!this.lastNeed)return h.toString("utf8",_);this.lastTotal=O;var I=h.length-(O-this.lastNeed);return h.copy(this.lastChar,0,I),h.toString("utf8",_,I)}function u(h){var _=h&&h.length?this.write(h):"";return this.lastNeed?_+"\u951F\uFFFD":_}function c(h,_){if((h.length-_)%2==0){var O=h.toString("utf16le",_);if(O){var I=O.charCodeAt(O.length-1);if(I>=55296&&I<=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 p(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 l(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 T(h){var _=h&&h.length?this.write(h):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function x(h){return h.toString(this.encoding)}function v(h){return h&&h.length?this.write(h):""}var w=n("safe-buffer").Buffer,E=w.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}};S.StringDecoder=i,i.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):_||""},i.prototype.end=u,i.prototype.text=r,i.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,k,S){(function(d,m){function i(u,c){this._id=u,this._clearFn=c}var s=n("process/browser.js").nextTick,f=Function.prototype.apply,o=Array.prototype.slice,t={},r=0;S.setTimeout=function(){return new i(f.call(setTimeout,window,arguments),clearTimeout)},S.setInterval=function(){return new i(f.call(setInterval,window,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(u){u.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},S.enroll=function(u,c){clearTimeout(u._idleTimeoutId),u._idleTimeout=c},S.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},S._unrefActive=S.active=function(u){clearTimeout(u._idleTimeoutId);var c=u._idleTimeout;c>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},c))},S.setImmediate=typeof d=="function"?d:function(u){var c=r++,p=!(arguments.length<2)&&o.call(arguments,1);return t[c]=!0,s(function(){t[c]&&(p?u.apply(null,p):u.call(null),S.clearImmediate(c))}),c},S.clearImmediate=typeof m=="function"?m:function(u){delete t[u]}}).call(this,n("timers").setImmediate,n("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(n,k,S){var d=n("buffer").Buffer;k.exports=function(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(d.isBuffer(m)){for(var i=new Uint8Array(m.length),s=m.length,f=0;f<s;f++)i[f]=m[f];return i.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(n,k,S){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function m(b,W,M){if(b&&t.isObject(b)&&b instanceof d)return b;var R=new d;return R.parse(b,W,M),R}function i(b){return t.isString(b)&&(b=m(b)),b instanceof d?b.format():d.prototype.format.call(b)}function s(b,W){return m(b,!1,!0).resolve(W)}function f(b,W){return b?m(b,!1,!0).resolveObject(W):W}var o=n("punycode"),t=n("./util");S.parse=m,S.resolve=s,S.resolveObject=f,S.format=i,S.Url=d;var r=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r",`
|
|
`," "],l=["{","}","|","\\","^","`"].concat(p),T=["'"].concat(l),x=["%","/","?",";","#"].concat(T),v=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+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},I=n("querystring");d.prototype.parse=function(b,W,M){if(!t.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var R=b.indexOf("?"),N=R!==-1&&R<b.indexOf("#")?"?":"#",F=b.split(N),H=/\\/g;F[0]=F[0].replace(H,"/"),b=F.join(N);var G=b;if(G=G.trim(),!M&&b.split("#").length===1){var Y=c.exec(G);if(Y)return this.path=G,this.href=G,this.pathname=Y[1],Y[2]?(this.search=Y[2],this.query=W?I.parse(this.search.substr(1)):this.search.substr(1)):W&&(this.search="",this.query={}),this}var U=r.exec(G);if(U){U=U[0];var $=U.toLowerCase();this.protocol=$,G=G.substr(U.length)}if(M||U||G.match(/^\/\/[^@\/]+@[^@\/]+/)){var J=G.substr(0,2)==="//";!J||U&&_[U]||(G=G.substr(2),this.slashes=!0)}if(!_[U]&&(J||U&&!O[U])){for(var Z=-1,P=0;P<v.length;P++){var D=G.indexOf(v[P]);D!==-1&&(Z===-1||D<Z)&&(Z=D)}var B,z;z=Z===-1?G.lastIndexOf("@"):G.lastIndexOf("@",Z),z!==-1&&(B=G.slice(0,z),G=G.slice(z+1),this.auth=decodeURIComponent(B)),Z=-1;for(var P=0;P<x.length;P++){var D=G.indexOf(x[P]);D!==-1&&(Z===-1||D<Z)&&(Z=D)}Z===-1&&(Z=G.length),this.host=G.slice(0,Z),G=G.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne)for(var K=this.hostname.split(/\./),P=0,se=K.length;P<se;P++){var re=K[P];if(re&&!re.match(w)){for(var ce="",fe=0,ee=re.length;fe<ee;fe++)re.charCodeAt(fe)>127?ce+="x":ce+=re[fe];if(!ce.match(w)){var te=K.slice(0,P),oe=K.slice(P+1),L=re.match(E);L&&(te.push(L[1]),oe.unshift(L[2])),oe.length&&(G="/"+oe.join(".")+G),this.hostname=te.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=o.toASCII(this.hostname));var j=this.port?":"+this.port:"",X=this.hostname||"";this.host=X+j,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),G[0]!=="/"&&(G="/"+G))}if(!h[$])for(var P=0,se=T.length;P<se;P++){var Q=T[P];if(G.indexOf(Q)!==-1){var ie=encodeURIComponent(Q);ie===Q&&(ie=escape(Q)),G=G.split(Q).join(ie)}}var C=G.indexOf("#");C!==-1&&(this.hash=G.substr(C),G=G.slice(0,C));var e=G.indexOf("?");if(e!==-1?(this.search=G.substr(e),this.query=G.substr(e+1),W&&(this.query=I.parse(this.query)),G=G.slice(0,e)):W&&(this.search="",this.query={}),G&&(this.pathname=G),O[$]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var j=this.pathname||"",a=this.search||"";this.path=j+a}return this.href=this.format(),this},d.prototype.format=function(){var b=this.auth||"";b&&(b=encodeURIComponent(b),b=b.replace(/%3A/i,":"),b+="@");var W=this.protocol||"",M=this.pathname||"",R=this.hash||"",N=!1,F="";this.host?N=b+this.host:this.hostname&&(N=b+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(F=I.stringify(this.query));var H=this.search||F&&"?"+F||"";return W&&W.substr(-1)!==":"&&(W+=":"),this.slashes||(!W||O[W])&&N!==!1?(N="//"+(N||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):N||(N=""),R&&R.charAt(0)!=="#"&&(R="#"+R),H&&H.charAt(0)!=="?"&&(H="?"+H),M=M.replace(/[?#]/g,function(G){return encodeURIComponent(G)}),H=H.replace("#","%23"),W+N+M+H+R},d.prototype.resolve=function(b){return this.resolveObject(m(b,!1,!0)).format()},d.prototype.resolveObject=function(b){if(t.isString(b)){var W=new d;W.parse(b,!1,!0),b=W}for(var M=new d,R=Object.keys(this),N=0;N<R.length;N++){var F=R[N];M[F]=this[F]}if(M.hash=b.hash,b.href==="")return M.href=M.format(),M;if(b.slashes&&!b.protocol){for(var H=Object.keys(b),G=0;G<H.length;G++){var Y=H[G];Y!=="protocol"&&(M[Y]=b[Y])}return O[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(b.protocol&&b.protocol!==M.protocol){if(!O[b.protocol]){for(var U=Object.keys(b),$=0;$<U.length;$++){var J=U[$];M[J]=b[J]}return M.href=M.format(),M}if(M.protocol=b.protocol,b.host||_[b.protocol])M.pathname=b.pathname;else{for(var se=(b.pathname||"").split("/");se.length&&!(b.host=se.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),se[0]!==""&&se.unshift(""),se.length<2&&se.unshift(""),M.pathname=se.join("/")}if(M.search=b.search,M.query=b.query,M.host=b.host||"",M.auth=b.auth,M.hostname=b.hostname||b.host,M.port=b.port,M.pathname||M.search){var Z=M.pathname||"",P=M.search||"";M.path=Z+P}return M.slashes=M.slashes||b.slashes,M.href=M.format(),M}var D=M.pathname&&M.pathname.charAt(0)==="/",B=b.host||b.pathname&&b.pathname.charAt(0)==="/",z=B||D||M.host&&b.pathname,ne=z,K=M.pathname&&M.pathname.split("/")||[],se=b.pathname&&b.pathname.split("/")||[],re=M.protocol&&!O[M.protocol];if(re&&(M.hostname="",M.port=null,M.host&&(K[0]===""?K[0]=M.host:K.unshift(M.host)),M.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(se[0]===""?se[0]=b.host:se.unshift(b.host)),b.host=null),z=z&&(se[0]===""||K[0]==="")),B)M.host=b.host||b.host===""?b.host:M.host,M.hostname=b.hostname||b.hostname===""?b.hostname:M.hostname,M.search=b.search,M.query=b.query,K=se;else if(se.length)K||(K=[]),K.pop(),K=K.concat(se),M.search=b.search,M.query=b.query;else if(!t.isNullOrUndefined(b.search)){if(re){M.hostname=M.host=K.shift();var ce=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");ce&&(M.auth=ce.shift(),M.host=M.hostname=ce.shift())}return M.search=b.search,M.query=b.query,t.isNull(M.pathname)&&t.isNull(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!K.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var fe=K.slice(-1)[0],ee=(M.host||b.host||K.length>1)&&(fe==="."||fe==="..")||fe==="",te=0,oe=K.length;oe>=0;oe--)fe=K[oe],fe==="."?K.splice(oe,1):fe===".."?(K.splice(oe,1),te++):te&&(K.splice(oe,1),te--);if(!z&&!ne)for(;te--;te)K.unshift("..");!z||K[0]===""||K[0]&&K[0].charAt(0)==="/"||K.unshift(""),ee&&K.join("/").substr(-1)!=="/"&&K.push("");var L=K[0]===""||K[0]&&K[0].charAt(0)==="/";if(re){M.hostname=M.host=L?"":K.length?K.shift():"";var ce=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");ce&&(M.auth=ce.shift(),M.host=M.hostname=ce.shift())}return z=z||M.host&&K.length,z&&!L&&K.unshift(""),K.length?M.pathname=K.join("/"):(M.pathname=null,M.path=null),t.isNull(M.pathname)&&t.isNull(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=b.auth||M.auth,M.slashes=M.slashes||b.slashes,M.href=M.format(),M},d.prototype.parseHost=function(){var b=this.host,W=u.exec(b);W&&(W=W[0],W!==":"&&(this.port=W.substr(1)),b=b.substr(0,b.length-W.length)),b&&(this.hostname=b)}},{"./util":204,punycode:174,querystring:177}],204:[function(n,k,S){"use strict";k.exports={isString:function(d){return typeof d=="string"},isObject:function(d){return typeof d=="object"&&d!==null},isNull:function(d){return d===null},isNullOrUndefined:function(d){return d==null}}},{}],205:[function(n,k,S){(function(d){function m(s,f){function o(){if(!t){if(i("throwDeprecation"))throw new Error(f);i("traceDeprecation")?console.trace(f):console.warn(f),t=!0}return s.apply(this,arguments)}if(i("noDeprecation"))return s;var t=!1;return o}function i(s){try{if(!d.localStorage)return!1}catch(o){return!1}var f=d.localStorage[s];return f!=null&&String(f).toLowerCase()==="true"}k.exports=m}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(n,k,S){k.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],207:[function(n,k,S){(function(d,m){function i(P,D){var B={seen:[],stylize:f};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),x(D)?B.showHidden=D:D&&S._extend(B,D),O(B.showHidden)&&(B.showHidden=!1),O(B.depth)&&(B.depth=2),O(B.colors)&&(B.colors=!1),O(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=s),t(B,P,B.depth)}function s(P,D){var B=i.styles[D];return B?"\x1B["+i.colors[B][0]+"m"+P+"\x1B["+i.colors[B][1]+"m":P}function f(P,D){return P}function o(P){var D={};return P.forEach(function(B,z){D[B]=!0}),D}function t(P,D,B){if(P.customInspect&&D&&R(D.inspect)&&D.inspect!==S.inspect&&(!D.constructor||D.constructor.prototype!==D)){var z=D.inspect(B,P);return h(z)||(z=t(P,z,B)),z}var ne=r(P,D);if(ne)return ne;var K=Object.keys(D),se=o(K);if(P.showHidden&&(K=Object.getOwnPropertyNames(D)),M(D)&&(K.indexOf("message")>=0||K.indexOf("description")>=0))return u(D);if(K.length===0){if(R(D)){var re=D.name?": "+D.name:"";return P.stylize("[Function"+re+"]","special")}if(I(D))return P.stylize(RegExp.prototype.toString.call(D),"regexp");if(W(D))return P.stylize(Date.prototype.toString.call(D),"date");if(M(D))return u(D)}var ce="",fe=!1,ee=["{","}"];if(T(D)&&(fe=!0,ee=["[","]"]),R(D)&&(ce=" [Function"+(D.name?": "+D.name:"")+"]"),I(D)&&(ce=" "+RegExp.prototype.toString.call(D)),W(D)&&(ce=" "+Date.prototype.toUTCString.call(D)),M(D)&&(ce=" "+u(D)),K.length===0&&(!fe||D.length==0))return ee[0]+ce+ee[1];if(B<0)return I(D)?P.stylize(RegExp.prototype.toString.call(D),"regexp"):P.stylize("[Object]","special");P.seen.push(D);var te;return te=fe?c(P,D,B,se,K):K.map(function(oe){return p(P,D,B,se,oe,fe)}),P.seen.pop(),l(te,ce,ee)}function r(P,D){if(O(D))return P.stylize("undefined","undefined");if(h(D)){var B="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(B,"string")}return E(D)?P.stylize(""+D,"number"):x(D)?P.stylize(""+D,"boolean"):v(D)?P.stylize("null","null"):void 0}function u(P){return"["+Error.prototype.toString.call(P)+"]"}function c(P,D,B,z,ne){for(var K=[],se=0,re=D.length;se<re;++se)Y(D,String(se))?K.push(p(P,D,B,z,String(se),!0)):K.push("");return ne.forEach(function(ce){ce.match(/^\d+$/)||K.push(p(P,D,B,z,ce,!0))}),K}function p(P,D,B,z,ne,K){var se,re,ce;if(ce=Object.getOwnPropertyDescriptor(D,ne)||{value:D[ne]},ce.get?re=ce.set?P.stylize("[Getter/Setter]","special"):P.stylize("[Getter]","special"):ce.set&&(re=P.stylize("[Setter]","special")),Y(z,ne)||(se="["+ne+"]"),re||(P.seen.indexOf(ce.value)<0?(re=v(B)?t(P,ce.value,null):t(P,ce.value,B-1),re.indexOf(`
|
|
`)>-1&&(re=K?re.split(`
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
`).substr(2):`
|
|
`+re.split(`
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
`))):re=P.stylize("[Circular]","special")),O(se)){if(K&&ne.match(/^\d+$/))return re;se=JSON.stringify(""+ne),se.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(se=se.substr(1,se.length-2),se=P.stylize(se,"name")):(se=se.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),se=P.stylize(se,"string"))}return se+": "+re}function l(P,D,B){var z=0;return P.reduce(function(ne,K){return z++,K.indexOf(`
|
|
`)>=0&&z++,ne+K.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?B[0]+(D===""?"":D+`
|
|
`)+" "+P.join(`,
|
|
`)+" "+B[1]:B[0]+D+" "+P.join(", ")+" "+B[1]}function T(P){return Array.isArray(P)}function x(P){return typeof P=="boolean"}function v(P){return P===null}function w(P){return P==null}function E(P){return typeof P=="number"}function h(P){return typeof P=="string"}function _(P){return typeof P=="symbol"}function O(P){return P===void 0}function I(P){return b(P)&&F(P)==="[object RegExp]"}function b(P){return typeof P=="object"&&P!==null}function W(P){return b(P)&&F(P)==="[object Date]"}function M(P){return b(P)&&(F(P)==="[object Error]"||P instanceof Error)}function R(P){return typeof P=="function"}function N(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||P===void 0}function F(P){return Object.prototype.toString.call(P)}function H(P){return P<10?"0"+P.toString(10):P.toString(10)}function G(){var P=new Date,D=[H(P.getHours()),H(P.getMinutes()),H(P.getSeconds())].join(":");return[P.getDate(),Z[P.getMonth()],D].join(" ")}function Y(P,D){return Object.prototype.hasOwnProperty.call(P,D)}var U=/%[sdj%]/g;S.format=function(P){if(!h(P)){for(var D=[],B=0;B<arguments.length;B++)D.push(i(arguments[B]));return D.join(" ")}for(var B=1,z=arguments,ne=z.length,K=String(P).replace(U,function(ce){if(ce==="%%")return"%";if(B>=ne)return ce;switch(ce){case"%s":return String(z[B++]);case"%d":return Number(z[B++]);case"%j":try{return JSON.stringify(z[B++])}catch(fe){return"[Circular]"}default:return ce}}),se=z[B];B<ne;se=z[++B])v(se)||!b(se)?K+=" "+se:K+=" "+i(se);return K},S.deprecate=function(P,D){function B(){if(!z){if(d.throwDeprecation)throw new Error(D);d.traceDeprecation?console.trace(D):console.error(D),z=!0}return P.apply(this,arguments)}if(O(m.process))return function(){return S.deprecate(P,D).apply(this,arguments)};if(d.noDeprecation===!0)return P;var z=!1;return B};var $,J={};S.debuglog=function(P){if(O($)&&($=d.env.NODE_DEBUG||""),P=P.toUpperCase(),!J[P])if(new RegExp("\\b"+P+"\\b","i").test($)){var D=d.pid;J[P]=function(){var B=S.format.apply(S,arguments);console.error("%s %d: %s",P,D,B)}}else J[P]=function(){};return J[P]},S.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},S.isArray=T,S.isBoolean=x,S.isNull=v,S.isNullOrUndefined=w,S.isNumber=E,S.isString=h,S.isSymbol=_,S.isUndefined=O,S.isRegExp=I,S.isObject=b,S.isDate=W,S.isError=M,S.isFunction=R,S.isPrimitive=N,S.isBuffer=n("./support/isBuffer");var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];S.log=function(){console.log("%s - %s",G(),S.format.apply(S,arguments))},S.inherits=n("inherits"),S._extend=function(P,D){if(!D||!b(D))return P;for(var B=Object.keys(D),z=B.length;z--;)P[B[z]]=D[B[z]];return P}}).call(this,n("_process"),typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(n,k,S){"use strict";(function(){S.stripBOM=function(d){return d[0]==="\uFEFF"?d.substring(1):d}}).call(void 0)},{}],209:[function(n,k,S){"use strict";function d(o){return o&&o.__esModule?o:{default:o}}var m=n("babel-runtime/helpers/typeof"),i=d(m),s=n("babel-runtime/core-js/object/keys"),f=d(s);(function(){var o,t,r,u,c,p={}.hasOwnProperty;o=n("xmlbuilder"),t=n("./defaults").defaults,u=function(l){return typeof l=="string"&&(l.indexOf("&")>=0||l.indexOf(">")>=0||l.indexOf("<")>=0)},c=function(l){return"<![CDATA["+r(l)+"]]>"},r=function(l){return l.replace("]]>","]]]]><![CDATA[>")},S.Builder=function(){function l(T){var x,v,w;this.options={},v=t[.2];for(x in v)p.call(v,x)&&(w=v[x],this.options[x]=w);for(x in T)p.call(T,x)&&(w=T[x],this.options[x]=w)}return l.prototype.buildObject=function(T){var x,v,w,E,h;return x=this.options.attrkey,v=this.options.charkey,(0,f.default)(T).length===1&&this.options.rootName===t[.2].rootName?(h=(0,f.default)(T)[0],T=T[h]):h=this.options.rootName,w=function(_){return function(O,I){var b,W,M,R,N,F;if((I===void 0?"undefined":(0,i.default)(I))!=="object")_.options.cdata&&u(I)?O.raw(c(I)):O.txt(I);else if(Array.isArray(I)){for(R in I)if(p.call(I,R)){W=I[R];for(N in W)M=W[N],O=w(O.ele(N),M).up()}}else for(N in I)if(p.call(I,N))if(W=I[N],N===x){if((W===void 0?"undefined":(0,i.default)(W))==="object")for(b in W)F=W[b],O=O.att(b,F)}else if(N===v)O=_.options.cdata&&u(W)?O.raw(c(W)):O.txt(W);else if(Array.isArray(W))for(R in W)p.call(W,R)&&(M=W[R],O=typeof M=="string"?_.options.cdata&&u(M)?O.ele(N).raw(c(M)).up():O.ele(N,M).up():w(O.ele(N),M).up());else(W===void 0?"undefined":(0,i.default)(W))==="object"?O=w(O.ele(N),W).up():typeof W=="string"&&_.options.cdata&&u(W)?O=O.ele(N).raw(c(W)).up():(W==null&&(W=""),O=O.ele(N,W.toString()).up());return O}}(this),E=o.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),w(E,T).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(n,k,S){"use strict";(function(){S.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(n,k,S){"use strict";function d(r){return r&&r.__esModule?r:{default:r}}var m=n("babel-runtime/core-js/object/get-own-property-names"),i=d(m),s=n("babel-runtime/core-js/object/keys"),f=d(s),o=n("babel-runtime/helpers/typeof"),t=d(o);(function(){var r,u,c,p,l,T,x,v,w=function(_,O){return function(){return _.apply(O,arguments)}},E=function(_,O){function I(){this.constructor=_}for(var b in O)h.call(O,b)&&(_[b]=O[b]);return I.prototype=O.prototype,_.prototype=new I,_.__super__=O.prototype,_},h={}.hasOwnProperty;x=n("sax"),c=n("events"),r=n("./bom"),T=n("./processors"),v=n("timers").setImmediate,u=n("./defaults").defaults,p=function(_){return(_===void 0?"undefined":(0,t.default)(_))==="object"&&_!=null&&(0,f.default)(_).length===0},l=function(_,O,I){var b,W,M;for(b=0,W=_.length;b<W;b++)M=_[b],O=M(O,I);return O},S.Parser=function(_){function O(I){this.parseString=w(this.parseString,this),this.reset=w(this.reset,this),this.assignOrPush=w(this.assignOrPush,this),this.processAsync=w(this.processAsync,this);var b,W,M;if(!(this instanceof S.Parser))return new S.Parser(I);this.options={},W=u[.2];for(b in W)h.call(W,b)&&(M=W[b],this.options[b]=M);for(b in I)h.call(I,b)&&(M=I[b],this.options[b]=M);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(T.normalize)),this.reset()}return E(O,_),O.prototype.processAsync=function(){var I,b;try{return this.remaining.length<=this.options.chunkSize?(I=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(I),this.saxParser.close()):(I=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(I),v(this.processAsync))}catch(W){if(b=W,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(b)}},O.prototype.assignOrPush=function(I,b,W){return b in I?(I[b]instanceof Array||(I[b]=[I[b]]),I[b].push(W)):this.options.explicitArray?I[b]=[W]:I[b]=W},O.prototype.reset=function(){var I,b,W,M;return this.removeAllListeners(),this.saxParser=x.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(R){return function(N){if(R.saxParser.resume(),!R.saxParser.errThrown)return R.saxParser.errThrown=!0,R.emit("error",N)}}(this),this.saxParser.onend=function(R){return function(){if(!R.saxParser.ended)return R.saxParser.ended=!0,R.emit("end",R.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,M=[],I=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=function(R){return function(N){var F,H,G,Y,U;if(G={},G[b]="",!R.options.ignoreAttrs){U=N.attributes;for(F in U)h.call(U,F)&&(I in G||R.options.mergeAttrs||(G[I]={}),H=R.options.attrValueProcessors?l(R.options.attrValueProcessors,N.attributes[F],F):N.attributes[F],Y=R.options.attrNameProcessors?l(R.options.attrNameProcessors,F):F,R.options.mergeAttrs?R.assignOrPush(G,Y,H):G[I][Y]=H)}return G["#name"]=R.options.tagNameProcessors?l(R.options.tagNameProcessors,N.name):N.name,R.options.xmlns&&(G[R.options.xmlnskey]={uri:N.uri,local:N.local}),M.push(G)}}(this),this.saxParser.onclosetag=function(R){return function(){var N,F,H,G,Y,U,$,J,Z,P;if(U=M.pop(),Y=U["#name"],R.options.explicitChildren&&R.options.preserveChildrenOrder||delete U["#name"],U.cdata===!0&&(N=U.cdata,delete U.cdata),Z=M[M.length-1],U[b].match(/^\s*$/)&&!N?(F=U[b],delete U[b]):(R.options.trim&&(U[b]=U[b].trim()),R.options.normalize&&(U[b]=U[b].replace(/\s{2,}/g," ").trim()),U[b]=R.options.valueProcessors?l(R.options.valueProcessors,U[b],Y):U[b],(0,f.default)(U).length===1&&b in U&&!R.EXPLICIT_CHARKEY&&(U=U[b])),p(U)&&(U=R.options.emptyTag!==""?R.options.emptyTag:F),R.options.validator!=null&&(P="/"+function(){var D,B,z;for(z=[],D=0,B=M.length;D<B;D++)G=M[D],z.push(G["#name"]);return z}().concat(Y).join("/"),function(){var D;try{U=R.options.validator(P,Z&&Z[Y],U)}catch(B){return D=B,R.emit("error",D)}}()),R.options.explicitChildren&&!R.options.mergeAttrs&&(U===void 0?"undefined":(0,t.default)(U))==="object")if(R.options.preserveChildrenOrder){if(Z){Z[R.options.childkey]=Z[R.options.childkey]||[],$={};for(H in U)h.call(U,H)&&($[H]=U[H]);Z[R.options.childkey].push($),delete U["#name"],(0,f.default)(U).length===1&&b in U&&!R.EXPLICIT_CHARKEY&&(U=U[b])}}else G={},R.options.attrkey in U&&(G[R.options.attrkey]=U[R.options.attrkey],delete U[R.options.attrkey]),!R.options.charsAsChildren&&R.options.charkey in U&&(G[R.options.charkey]=U[R.options.charkey],delete U[R.options.charkey]),(0,i.default)(U).length>0&&(G[R.options.childkey]=U),U=G;return M.length>0?R.assignOrPush(Z,Y,U):(R.options.explicitRoot&&(J=U,U={},U[Y]=J),R.resultObject=U,R.saxParser.ended=!0,R.emit("end",R.resultObject))}}(this),W=function(R){return function(N){var F,H;if(H=M[M.length-1])return H[b]+=N,R.options.explicitChildren&&R.options.preserveChildrenOrder&&R.options.charsAsChildren&&(R.options.includeWhiteChars||N.replace(/\\n/g,"").trim()!=="")&&(H[R.options.childkey]=H[R.options.childkey]||[],F={"#name":"__text__"},F[b]=N,R.options.normalize&&(F[b]=F[b].replace(/\s{2,}/g," ").trim()),H[R.options.childkey].push(F)),H}}(this),this.saxParser.ontext=W,this.saxParser.oncdata=function(R){return function(N){var F;if(F=W(N))return F.cdata=!0}}()},O.prototype.parseString=function(I,b){var W;b!=null&&typeof b=="function"&&(this.on("end",function(M){return this.reset(),b(null,M)}),this.on("error",function(M){return this.reset(),b(M)}));try{return I=I.toString(),I.trim()===""?(this.emit("end",null),!0):(I=r.stripBOM(I),this.options.async?(this.remaining=I,v(this.processAsync),this.saxParser):this.saxParser.write(I).close())}catch(M){if(W=M,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",W),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw W}},O}(c.EventEmitter),S.parseString=function(_,O,I){var b,W,M;return I!=null?(typeof I=="function"&&(b=I),(O===void 0?"undefined":(0,t.default)(O))==="object"&&(W=O)):(typeof O=="function"&&(b=O),W={}),M=new S.Parser(W),M.parseString(_,b)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(n,k,S){"use strict";(function(){var d;d=new RegExp(/(?!xmlns)^.*:/),S.normalize=function(m){return m.toLowerCase()},S.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},S.stripPrefix=function(m){return m.replace(d,"")},S.parseNumbers=function(m){return isNaN(m)||(m=m%1==0?parseInt(m,10):parseFloat(m)),m},S.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],213:[function(n,k,S){"use strict";(function(){var d,m,i,s,f=function(t,r){function u(){this.constructor=t}for(var c in r)o.call(r,c)&&(t[c]=r[c]);return u.prototype=r.prototype,t.prototype=new u,t.__super__=r.prototype,t},o={}.hasOwnProperty;m=n("./defaults"),d=n("./builder"),i=n("./parser"),s=n("./processors"),S.defaults=m.defaults,S.processors=s,S.ValidationError=function(t){function r(u){this.message=u}return f(r,t),r}(Error),S.Builder=d.Builder,S.Parser=i.Parser,S.parseString=i.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(n,k,S){"use strict";function d(r){return r&&r.__esModule?r:{default:r}}var m=n("babel-runtime/core-js/object/get-prototype-of"),i=d(m),s=n("babel-runtime/helpers/typeof"),f=d(s),o=n("babel-runtime/core-js/object/assign"),t=d(o);(function(){var r,u,c,p,l,T,x=[].slice,v={}.hasOwnProperty;r=function(){var w,E,h,_,O,I;if(I=arguments[0],O=2<=arguments.length?x.call(arguments,1):[],p(t.default))t.default.apply(null,arguments);else for(w=0,h=O.length;w<h;w++)if((_=O[w])!=null)for(E in _)v.call(_,E)&&(I[E]=_[E]);return I},p=function(w){return!!w&&Object.prototype.toString.call(w)==="[object Function]"},l=function(w){var E;return!!w&&((E=w===void 0?"undefined":(0,f.default)(w))==="function"||E==="object")},u=function(w){return p(Array.isArray)?Array.isArray(w):Object.prototype.toString.call(w)==="[object Array]"},c=function(w){var E;if(u(w))return!w.length;for(E in w)if(v.call(w,E))return!1;return!0},T=function(w){var E,h;return l(w)&&(h=(0,i.default)(w))&&(E=h.constructor)&&typeof E=="function"&&E instanceof E&&Function.prototype.toString.call(E)===Function.prototype.toString.call(Object)},k.exports.assign=r,k.exports.isFunction=p,k.exports.isObject=l,k.exports.isArray=u,k.exports.isEmpty=c,k.exports.isPlainObject=T}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){k.exports=function(){function i(s,f,o){if(this.options=s.options,this.stringify=s.stringify,f==null)throw new Error("Missing attribute name of element "+s.name);if(o==null)throw new Error("Missing attribute value for attribute "+f+" of element "+s.name);this.name=this.stringify.attName(f),this.value=this.stringify.attValue(o)}return i.prototype.clone=function(){return(0,m.default)(this)},i.prototype.toString=function(s){return this.options.writer.set(s).attribute(this)},i}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s=function(o,t){function r(){this.constructor=o}for(var u in t)f.call(t,u)&&(o[u]=t[u]);return r.prototype=t.prototype,o.prototype=new r,o.__super__=t.prototype,o},f={}.hasOwnProperty;i=n("./XMLNode"),k.exports=function(o){function t(r,u){if(t.__super__.constructor.call(this,r),u==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(u)}return s(t,o),t.prototype.clone=function(){return(0,m.default)(this)},t.prototype.toString=function(r){return this.options.writer.set(r).cdata(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s=function(o,t){function r(){this.constructor=o}for(var u in t)f.call(t,u)&&(o[u]=t[u]);return r.prototype=t.prototype,o.prototype=new r,o.__super__=t.prototype,o},f={}.hasOwnProperty;i=n("./XMLNode"),k.exports=function(o){function t(r,u){if(t.__super__.constructor.call(this,r),u==null)throw new Error("Missing comment text");this.text=this.stringify.comment(u)}return s(t,o),t.prototype.clone=function(){return(0,m.default)(this)},t.prototype.toString=function(r){return this.options.writer.set(r).comment(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(n,k,S){"use strict";(function(){var d,m=function(s,f){function o(){this.constructor=s}for(var t in f)i.call(f,t)&&(s[t]=f[t]);return o.prototype=f.prototype,s.prototype=new o,s.__super__=f.prototype,s},i={}.hasOwnProperty;d=n("./XMLNode"),k.exports=function(s){function f(o,t,r,u,c,p){if(f.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD element name");if(r==null)throw new Error("Missing DTD attribute name");if(!u)throw new Error("Missing DTD attribute type");if(!c)throw new Error("Missing DTD attribute default");if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(p&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(u),this.defaultValue=this.stringify.dtdAttDefault(p),this.defaultValueType=c}return m(f,s),f.prototype.toString=function(o){return this.options.writer.set(o).dtdAttList(this)},f}(d)}).call(void 0)},{"./XMLNode":227}],219:[function(n,k,S){"use strict";(function(){var d,m=function(s,f){function o(){this.constructor=s}for(var t in f)i.call(f,t)&&(s[t]=f[t]);return o.prototype=f.prototype,s.prototype=new o,s.__super__=f.prototype,s},i={}.hasOwnProperty;d=n("./XMLNode"),k.exports=function(s){function f(o,t,r){if(f.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD element name");r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(r)}return m(f,s),f.prototype.toString=function(o){return this.options.writer.set(o).dtdElement(this)},f}(d)}).call(void 0)},{"./XMLNode":227}],220:[function(n,k,S){"use strict";(function(){var d,m,i=function(f,o){function t(){this.constructor=f}for(var r in o)s.call(o,r)&&(f[r]=o[r]);return t.prototype=o.prototype,f.prototype=new t,f.__super__=o.prototype,f},s={}.hasOwnProperty;m=n("./Utility").isObject,d=n("./XMLNode"),k.exports=function(f){function o(t,r,u,c){if(o.__super__.constructor.call(this,t),u==null)throw new Error("Missing entity name");if(c==null)throw new Error("Missing entity value");if(this.pe=!!r,this.name=this.stringify.eleName(u),m(c)){if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity");if(c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(c)}return i(o,f),o.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},o}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(n,k,S){"use strict";(function(){var d,m=function(s,f){function o(){this.constructor=s}for(var t in f)i.call(f,t)&&(s[t]=f[t]);return o.prototype=f.prototype,s.prototype=new o,s.__super__=f.prototype,s},i={}.hasOwnProperty;d=n("./XMLNode"),k.exports=function(s){function f(o,t,r){if(f.__super__.constructor.call(this,o),t==null)throw new Error("Missing notation name");if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(t),r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return m(f,s),f.prototype.toString=function(o){return this.options.writer.set(o).dtdNotation(this)},f}(d)}).call(void 0)},{"./XMLNode":227}],222:[function(n,k,S){"use strict";(function(){var d,m,i=function(f,o){function t(){this.constructor=f}for(var r in o)s.call(o,r)&&(f[r]=o[r]);return t.prototype=o.prototype,f.prototype=new t,f.__super__=o.prototype,f},s={}.hasOwnProperty;m=n("./Utility").isObject,d=n("./XMLNode"),k.exports=function(f){function o(t,r,u,c){var p;o.__super__.constructor.call(this,t),m(r)&&(p=r,r=p.version,u=p.encoding,c=p.standalone),r||(r="1.0"),this.version=this.stringify.xmlVersion(r),u!=null&&(this.encoding=this.stringify.xmlEncoding(u)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return i(o,f),o.prototype.toString=function(t){return this.options.writer.set(t).declaration(this)},o}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t=function(u,c){function p(){this.constructor=u}for(var l in c)r.call(c,l)&&(u[l]=c[l]);return p.prototype=c.prototype,u.prototype=new p,u.__super__=c.prototype,u},r={}.hasOwnProperty;o=n("./Utility").isObject,f=n("./XMLNode"),d=n("./XMLDTDAttList"),i=n("./XMLDTDEntity"),m=n("./XMLDTDElement"),s=n("./XMLDTDNotation"),k.exports=function(u){function c(p,l,T){var x,v;c.__super__.constructor.call(this,p),this.documentObject=p,o(l)&&(x=l,l=x.pubID,T=x.sysID),T==null&&(v=[l,T],T=v[0],l=v[1]),l!=null&&(this.pubID=this.stringify.dtdPubID(l)),T!=null&&(this.sysID=this.stringify.dtdSysID(T))}return t(c,u),c.prototype.element=function(p,l){var T;return T=new m(this,p,l),this.children.push(T),this},c.prototype.attList=function(p,l,T,x,v){var w;return w=new d(this,p,l,T,x,v),this.children.push(w),this},c.prototype.entity=function(p,l){var T;return T=new i(this,!1,p,l),this.children.push(T),this},c.prototype.pEntity=function(p,l){var T;return T=new i(this,!0,p,l),this.children.push(T),this},c.prototype.notation=function(p,l){var T;return T=new s(this,p,l),this.children.push(T),this},c.prototype.toString=function(p){return this.options.writer.set(p).docType(this)},c.prototype.ele=function(p,l){return this.element(p,l)},c.prototype.att=function(p,l,T,x,v){return this.attList(p,l,T,x,v)},c.prototype.ent=function(p,l){return this.entity(p,l)},c.prototype.pent=function(p,l){return this.pEntity(p,l)},c.prototype.not=function(p,l){return this.notation(p,l)},c.prototype.up=function(){return this.root()||this.documentObject},c}(f)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(n,k,S){"use strict";(function(){var d,m,i,s,f=function(t,r){function u(){this.constructor=t}for(var c in r)o.call(r,c)&&(t[c]=r[c]);return u.prototype=r.prototype,t.prototype=new u,t.__super__=r.prototype,t},o={}.hasOwnProperty;s=n("./Utility").isPlainObject,d=n("./XMLNode"),i=n("./XMLStringifier"),m=n("./XMLStringWriter"),k.exports=function(t){function r(u){r.__super__.constructor.call(this,null),u||(u={}),u.writer||(u.writer=new m),this.options=u,this.stringify=new i(u),this.isDocument=!0}return f(r,t),r.prototype.end=function(u){var c;return u?s(u)&&(c=u,u=this.options.writer.set(c)):u=this.options.writer,u.document(this)},r.prototype.toString=function(u){return this.options.writer.set(u).document(this)},r}(d)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t,r,u,c,p,l,T,x,v,w,E,h,_,O={}.hasOwnProperty;_=n("./Utility"),E=_.isObject,w=_.isFunction,h=_.isPlainObject,c=n("./XMLElement"),m=n("./XMLCData"),i=n("./XMLComment"),l=n("./XMLRaw"),v=n("./XMLText"),p=n("./XMLProcessingInstruction"),r=n("./XMLDeclaration"),u=n("./XMLDocType"),s=n("./XMLDTDAttList"),o=n("./XMLDTDEntity"),f=n("./XMLDTDElement"),t=n("./XMLDTDNotation"),d=n("./XMLAttribute"),x=n("./XMLStringifier"),T=n("./XMLStringWriter"),k.exports=function(){function I(b,W,M){var R;b||(b={}),b.writer?h(b.writer)&&(R=b.writer,b.writer=new T(R)):b.writer=new T(b),this.options=b,this.writer=b.writer,this.stringify=new x(b),this.onDataCallback=W||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return I.prototype.node=function(b,W,M){var R;if(b==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(),b=b.valueOf(),W==null&&(W={}),W=W.valueOf(),E(W)||(R=[W,M],M=R[0],W=R[1]),this.currentNode=new c(this,b,W),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,M!=null&&this.text(M),this},I.prototype.element=function(b,W,M){return this.currentNode&&this.currentNode instanceof u?this.dtdElement.apply(this,arguments):this.node(b,W,M)},I.prototype.attribute=function(b,W){var M,R;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(b!=null&&(b=b.valueOf()),E(b))for(M in b)O.call(b,M)&&(R=b[M],this.attribute(M,R));else w(W)&&(W=W.apply()),this.options.skipNullAttributes&&W==null||(this.currentNode.attributes[b]=new d(this,b,W));return this},I.prototype.text=function(b){var W;return this.openCurrent(),W=new v(this,b),this.onData(this.writer.text(W,this.currentLevel+1)),this},I.prototype.cdata=function(b){var W;return this.openCurrent(),W=new m(this,b),this.onData(this.writer.cdata(W,this.currentLevel+1)),this},I.prototype.comment=function(b){var W;return this.openCurrent(),W=new i(this,b),this.onData(this.writer.comment(W,this.currentLevel+1)),this},I.prototype.raw=function(b){var W;return this.openCurrent(),W=new l(this,b),this.onData(this.writer.raw(W,this.currentLevel+1)),this},I.prototype.instruction=function(b,W){var M,R,N,F,H;if(this.openCurrent(),b!=null&&(b=b.valueOf()),W!=null&&(W=W.valueOf()),Array.isArray(b))for(M=0,F=b.length;M<F;M++)R=b[M],this.instruction(R);else if(E(b))for(R in b)O.call(b,R)&&(N=b[R],this.instruction(R,N));else w(W)&&(W=W.apply()),H=new p(this,b,W),this.onData(this.writer.processingInstruction(H,this.currentLevel+1));return this},I.prototype.declaration=function(b,W,M){var R;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return R=new r(this,b,W,M),this.onData(this.writer.declaration(R,this.currentLevel+1)),this},I.prototype.doctype=function(b,W,M){if(this.openCurrent(),b==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 u(this,W,M),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},I.prototype.dtdElement=function(b,W){var M;return this.openCurrent(),M=new f(this,b,W),this.onData(this.writer.dtdElement(M,this.currentLevel+1)),this},I.prototype.attList=function(b,W,M,R,N){var F;return this.openCurrent(),F=new s(this,b,W,M,R,N),this.onData(this.writer.dtdAttList(F,this.currentLevel+1)),this},I.prototype.entity=function(b,W){var M;return this.openCurrent(),M=new o(this,!1,b,W),this.onData(this.writer.dtdEntity(M,this.currentLevel+1)),this},I.prototype.pEntity=function(b,W){var M;return this.openCurrent(),M=new o(this,!0,b,W),this.onData(this.writer.dtdEntity(M,this.currentLevel+1)),this},I.prototype.notation=function(b,W){var M;return this.openCurrent(),M=new t(this,b,W),this.onData(this.writer.dtdNotation(M,this.currentLevel+1)),this},I.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},I.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},I.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},I.prototype.openNode=function(b){if(!b.isOpen)return!this.root&&this.currentLevel===0&&b instanceof c&&(this.root=b),this.onData(this.writer.openNode(b,this.currentLevel)),b.isOpen=!0},I.prototype.closeNode=function(b){if(!b.isClosed)return this.onData(this.writer.closeNode(b,this.currentLevel)),b.isClosed=!0},I.prototype.onData=function(b){return this.documentStarted=!0,this.onDataCallback(b)},I.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},I.prototype.ele=function(){return this.element.apply(this,arguments)},I.prototype.nod=function(b,W,M){return this.node(b,W,M)},I.prototype.txt=function(b){return this.text(b)},I.prototype.dat=function(b){return this.cdata(b)},I.prototype.com=function(b){return this.comment(b)},I.prototype.ins=function(b,W){return this.instruction(b,W)},I.prototype.dec=function(b,W,M){return this.declaration(b,W,M)},I.prototype.dtd=function(b,W,M){return this.doctype(b,W,M)},I.prototype.e=function(b,W,M){return this.element(b,W,M)},I.prototype.n=function(b,W,M){return this.node(b,W,M)},I.prototype.t=function(b){return this.text(b)},I.prototype.d=function(b){return this.cdata(b)},I.prototype.c=function(b){return this.comment(b)},I.prototype.r=function(b){return this.raw(b)},I.prototype.i=function(b,W){return this.instruction(b,W)},I.prototype.att=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.a=function(){return this.currentNode&&this.currentNode instanceof u?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},I.prototype.ent=function(b,W){return this.entity(b,W)},I.prototype.pent=function(b,W){return this.pEntity(b,W)},I.prototype.not=function(b,W){return this.notation(b,W)},I}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s,f,o,t,r=function(c,p){function l(){this.constructor=c}for(var T in p)u.call(p,T)&&(c[T]=p[T]);return l.prototype=p.prototype,c.prototype=new l,c.__super__=p.prototype,c},u={}.hasOwnProperty;t=n("./Utility"),o=t.isObject,f=t.isFunction,s=n("./XMLNode"),i=n("./XMLAttribute"),k.exports=function(c){function p(l,T,x){if(p.__super__.constructor.call(this,l),T==null)throw new Error("Missing element name");this.name=this.stringify.eleName(T),this.attributes={},x!=null&&this.attribute(x),l.isDocument&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this)}return r(p,c),p.prototype.clone=function(){var l,T,x,v;x=(0,m.default)(this),x.isRoot&&(x.documentObject=null),x.attributes={},v=this.attributes;for(T in v)u.call(v,T)&&(l=v[T],x.attributes[T]=l.clone());return x.children=[],this.children.forEach(function(w){var E;return E=w.clone(),E.parent=x,x.children.push(E)}),x},p.prototype.attribute=function(l,T){var x,v;if(l!=null&&(l=l.valueOf()),o(l))for(x in l)u.call(l,x)&&(v=l[x],this.attribute(x,v));else f(T)&&(T=T.apply()),this.options.skipNullAttributes&&T==null||(this.attributes[l]=new i(this,l,T));return this},p.prototype.removeAttribute=function(l){var T,x,v;if(l==null)throw new Error("Missing attribute name");if(l=l.valueOf(),Array.isArray(l))for(x=0,v=l.length;x<v;x++)T=l[x],delete this.attributes[T];else delete this.attributes[l];return this},p.prototype.toString=function(l){return this.options.writer.set(l).element(this)},p.prototype.att=function(l,T){return this.attribute(l,T)},p.prototype.a=function(l,T){return this.attribute(l,T)},p}(s)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t,r,u,c,p,l,T={}.hasOwnProperty;l=n("./Utility"),p=l.isObject,c=l.isFunction,u=l.isEmpty,f=null,d=null,m=null,i=null,s=null,t=null,r=null,o=null,k.exports=function(){function x(v){this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],f||(f=n("./XMLElement"),d=n("./XMLCData"),m=n("./XMLComment"),i=n("./XMLDeclaration"),s=n("./XMLDocType"),t=n("./XMLRaw"),r=n("./XMLText"),o=n("./XMLProcessingInstruction"))}return x.prototype.element=function(v,w,E){var h,_,O,I,b,W,M,R,N,F;if(W=null,w==null&&(w={}),w=w.valueOf(),p(w)||(N=[w,E],E=N[0],w=N[1]),v!=null&&(v=v.valueOf()),Array.isArray(v))for(O=0,M=v.length;O<M;O++)_=v[O],W=this.element(_);else if(c(v))W=this.element(v.apply());else if(p(v)){for(b in v)if(T.call(v,b))if(F=v[b],c(F)&&(F=F.apply()),p(F)&&u(F)&&(F=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&b.indexOf(this.stringify.convertAttKey)===0)W=this.attribute(b.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F))for(I=0,R=F.length;I<R;I++)_=F[I],h={},h[b]=_,W=this.element(h);else p(F)?(W=this.element(b),W.element(F)):W=this.element(b,F)}else W=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?this.instruction(v.substr(this.stringify.convertPIKey.length),E):this.node(v,w,E);if(W==null)throw new Error("Could not create any elements with: "+v);return W},x.prototype.insertBefore=function(v,w,E){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(v,w,E),Array.prototype.push.apply(this.parent.children,O),h},x.prototype.insertAfter=function(v,w,E){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(v,w,E),Array.prototype.push.apply(this.parent.children,O),h},x.prototype.remove=function(){var v;if(this.isRoot)throw new Error("Cannot remove the root element");return v=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[v,v-v+1].concat([])),this.parent},x.prototype.node=function(v,w,E){var h,_;return v!=null&&(v=v.valueOf()),w||(w={}),w=w.valueOf(),p(w)||(_=[w,E],E=_[0],w=_[1]),h=new f(this,v,w),E!=null&&h.text(E),this.children.push(h),h},x.prototype.text=function(v){var w;return w=new r(this,v),this.children.push(w),this},x.prototype.cdata=function(v){var w;return w=new d(this,v),this.children.push(w),this},x.prototype.comment=function(v){var w;return w=new m(this,v),this.children.push(w),this},x.prototype.commentBefore=function(v){var w,E;return w=this.parent.children.indexOf(this),E=this.parent.children.splice(w),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.commentAfter=function(v){var w,E;return w=this.parent.children.indexOf(this),E=this.parent.children.splice(w+1),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,E),this},x.prototype.raw=function(v){var w;return w=new t(this,v),this.children.push(w),this},x.prototype.instruction=function(v,w){var E,h,_,O,I;if(v!=null&&(v=v.valueOf()),w!=null&&(w=w.valueOf()),Array.isArray(v))for(O=0,I=v.length;O<I;O++)E=v[O],this.instruction(E);else if(p(v))for(E in v)T.call(v,E)&&(h=v[E],this.instruction(E,h));else c(w)&&(w=w.apply()),_=new o(this,v,w),this.children.push(_);return this},x.prototype.instructionBefore=function(v,w){var E,h;return E=this.parent.children.indexOf(this),h=this.parent.children.splice(E),this.parent.instruction(v,w),Array.prototype.push.apply(this.parent.children,h),this},x.prototype.instructionAfter=function(v,w){var E,h;return E=this.parent.children.indexOf(this),h=this.parent.children.splice(E+1),this.parent.instruction(v,w),Array.prototype.push.apply(this.parent.children,h),this},x.prototype.declaration=function(v,w,E){var h,_;return h=this.document(),_=new i(h,v,w,E),h.children[0]instanceof i?h.children[0]=_:h.children.unshift(_),h.root()||h},x.prototype.doctype=function(v,w){var E,h,_,O,I,b,W,M,R,N;for(h=this.document(),_=new s(h,v,w),R=h.children,O=I=0,W=R.length;I<W;O=++I)if((E=R[O])instanceof s)return h.children[O]=_,_;for(N=h.children,O=b=0,M=N.length;b<M;O=++b)if(E=N[O],E.isRoot)return h.children.splice(O,0,_),_;return h.children.push(_),_},x.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},x.prototype.root=function(){var v;for(v=this;v;){if(v.isDocument)return v.rootObject;if(v.isRoot)return v;v=v.parent}},x.prototype.document=function(){var v;for(v=this;v;){if(v.isDocument)return v;v=v.parent}},x.prototype.end=function(v){return this.document().end(v)},x.prototype.prev=function(){var v;if((v=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[v-1]},x.prototype.next=function(){var v;if((v=this.parent.children.indexOf(this))===-1||v===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[v+1]},x.prototype.importDocument=function(v){var w;return w=v.root().clone(),w.parent=this,w.isRoot=!1,this.children.push(w),this},x.prototype.ele=function(v,w,E){return this.element(v,w,E)},x.prototype.nod=function(v,w,E){return this.node(v,w,E)},x.prototype.txt=function(v){return this.text(v)},x.prototype.dat=function(v){return this.cdata(v)},x.prototype.com=function(v){return this.comment(v)},x.prototype.ins=function(v,w){return this.instruction(v,w)},x.prototype.doc=function(){return this.document()},x.prototype.dec=function(v,w,E){return this.declaration(v,w,E)},x.prototype.dtd=function(v,w){return this.doctype(v,w)},x.prototype.e=function(v,w,E){return this.element(v,w,E)},x.prototype.n=function(v,w,E){return this.node(v,w,E)},x.prototype.t=function(v){return this.text(v)},x.prototype.d=function(v){return this.cdata(v)},x.prototype.c=function(v){return this.comment(v)},x.prototype.r=function(v){return this.raw(v)},x.prototype.i=function(v,w){return this.instruction(v,w)},x.prototype.u=function(){return this.up()},x.prototype.importXMLBuilder=function(v){return this.importDocument(v)},x}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s=function(o,t){function r(){this.constructor=o}for(var u in t)f.call(t,u)&&(o[u]=t[u]);return r.prototype=t.prototype,o.prototype=new r,o.__super__=t.prototype,o},f={}.hasOwnProperty;i=n("./XMLNode"),k.exports=function(o){function t(r,u,c){if(t.__super__.constructor.call(this,r),u==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(u),c&&(this.value=this.stringify.insValue(c))}return s(t,o),t.prototype.clone=function(){return(0,m.default)(this)},t.prototype.toString=function(r){return this.options.writer.set(r).processingInstruction(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s=function(o,t){function r(){this.constructor=o}for(var u in t)f.call(t,u)&&(o[u]=t[u]);return r.prototype=t.prototype,o.prototype=new r,o.__super__=t.prototype,o},f={}.hasOwnProperty;i=n("./XMLNode"),k.exports=function(o){function t(r,u){if(t.__super__.constructor.call(this,r),u==null)throw new Error("Missing raw text");this.value=this.stringify.raw(u)}return s(t,o),t.prototype.clone=function(){return(0,m.default)(this)},t.prototype.toString=function(r){return this.options.writer.set(r).raw(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t,r,u,c,p,l,T,x=function(w,E){function h(){this.constructor=w}for(var _ in E)v.call(E,_)&&(w[_]=E[_]);return h.prototype=E.prototype,w.prototype=new h,w.__super__=E.prototype,w},v={}.hasOwnProperty;t=n("./XMLDeclaration"),r=n("./XMLDocType"),d=n("./XMLCData"),m=n("./XMLComment"),u=n("./XMLElement"),p=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),f=n("./XMLDTDEntity"),o=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),k.exports=function(w){function E(h,_){E.__super__.constructor.call(this,_),this.stream=h}return x(E,w),E.prototype.document=function(h){var _,O,I,b,W,M,R,N;for(M=h.children,O=0,b=M.length;O<b;O++)_=M[O],_.isLastRootNode=!1;for(h.children[h.children.length-1].isLastRootNode=!0,R=h.children,N=[],I=0,W=R.length;I<W;I++)switch(_=R[I],!1){case!(_ instanceof t):N.push(this.declaration(_));break;case!(_ instanceof r):N.push(this.docType(_));break;case!(_ instanceof m):N.push(this.comment(_));break;case!(_ instanceof c):N.push(this.processingInstruction(_));break;default:N.push(this.element(_))}return N},E.prototype.attribute=function(h){return this.stream.write(" "+h.name+'="'+h.value+'"')},E.prototype.cdata=function(h,_){return this.stream.write(this.space(_)+"<![CDATA["+h.text+"]]>"+this.endline(h))},E.prototype.comment=function(h,_){return this.stream.write(this.space(_)+"<!-- "+h.text+" -->"+this.endline(h))},E.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))},E.prototype.docType=function(h,_){var O,I,b,W;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)),W=h.children,I=0,b=W.length;I<b;I++)switch(O=W[I],!1){case!(O instanceof i):this.dtdAttList(O,_+1);break;case!(O instanceof s):this.dtdElement(O,_+1);break;case!(O instanceof f):this.dtdEntity(O,_+1);break;case!(O instanceof o):this.dtdNotation(O,_+1);break;case!(O instanceof d):this.cdata(O,_+1);break;case!(O instanceof m):this.comment(O,_+1);break;case!(O instanceof c):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))},E.prototype.element=function(h,_){var O,I,b,W,M,R,N,F;_||(_=0),F=this.space(_),this.stream.write(F+"<"+h.name),R=h.attributes;for(M in R)v.call(R,M)&&(O=R[M],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,b=0,W=N.length;b<W;b++)switch(I=N[b],!1){case!(I instanceof d):this.cdata(I,_+1);break;case!(I instanceof m):this.comment(I,_+1);break;case!(I instanceof u):this.element(I,_+1);break;case!(I instanceof p):this.raw(I,_+1);break;case!(I instanceof l):this.text(I,_+1);break;case!(I instanceof c):this.processingInstruction(I,_+1);break;default:throw new Error("Unknown XML node type: "+I.constructor.name)}this.stream.write(F+"</"+h.name+">")}return this.stream.write(this.endline(h))},E.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))},E.prototype.raw=function(h,_){return this.stream.write(this.space(_)+h.value+this.endline(h))},E.prototype.text=function(h,_){return this.stream.write(this.space(_)+h.value+this.endline(h))},E.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))},E.prototype.dtdElement=function(h,_){return this.stream.write(this.space(_)+"<!ELEMENT "+h.name+" "+h.value),this.stream.write(this.spacebeforeslash+">"+this.endline(h))},E.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))},E.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))},E.prototype.endline=function(h){return h.isLastRootNode?"":this.newline},E}(T)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t,r,u,c,p,l,T,x=function(w,E){function h(){this.constructor=w}for(var _ in E)v.call(E,_)&&(w[_]=E[_]);return h.prototype=E.prototype,w.prototype=new h,w.__super__=E.prototype,w},v={}.hasOwnProperty;t=n("./XMLDeclaration"),r=n("./XMLDocType"),d=n("./XMLCData"),m=n("./XMLComment"),u=n("./XMLElement"),p=n("./XMLRaw"),l=n("./XMLText"),c=n("./XMLProcessingInstruction"),i=n("./XMLDTDAttList"),s=n("./XMLDTDElement"),f=n("./XMLDTDEntity"),o=n("./XMLDTDNotation"),T=n("./XMLWriterBase"),k.exports=function(w){function E(h){E.__super__.constructor.call(this,h)}return x(E,w),E.prototype.document=function(h){var _,O,I,b,W;for(this.textispresent=!1,b="",W=h.children,O=0,I=W.length;O<I;O++)_=W[O],b+=function(){switch(!1){case!(_ instanceof t):return this.declaration(_);case!(_ instanceof r):return this.docType(_);case!(_ instanceof m):return this.comment(_);case!(_ instanceof c):return this.processingInstruction(_);default:return this.element(_,0)}}.call(this);return this.pretty&&b.slice(-this.newline.length)===this.newline&&(b=b.slice(0,-this.newline.length)),b},E.prototype.attribute=function(h){return" "+h.name+'="'+h.value+'"'},E.prototype.cdata=function(h,_){return this.space(_)+"<![CDATA["+h.text+"]]>"+this.newline},E.prototype.comment=function(h,_){return this.space(_)+"<!-- "+h.text+" -->"+this.newline},E.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},E.prototype.docType=function(h,_){var O,I,b,W,M;if(_||(_=0),W=this.space(_),W+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?W+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(W+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(W+=" [",W+=this.newline,M=h.children,I=0,b=M.length;I<b;I++)O=M[I],W+=function(){switch(!1){case!(O instanceof i):return this.dtdAttList(O,_+1);case!(O instanceof s):return this.dtdElement(O,_+1);case!(O instanceof f):return this.dtdEntity(O,_+1);case!(O instanceof o):return this.dtdNotation(O,_+1);case!(O instanceof d):return this.cdata(O,_+1);case!(O instanceof m):return this.comment(O,_+1);case!(O instanceof c):return this.processingInstruction(O,_+1);default:throw new Error("Unknown DTD node type: "+O.constructor.name)}}.call(this);W+="]"}return W+=this.spacebeforeslash+">",W+=this.newline},E.prototype.element=function(h,_){var O,I,b,W,M,R,N,F,H,G,Y,U,$;_||(_=0),$=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(_),F="",F+=U+"<"+h.name,H=h.attributes;for(N in H)v.call(H,N)&&(O=H[N],F+=this.attribute(O));if(h.children.length===0||h.children.every(function(J){return J.value===""}))this.allowEmpty?F+="></"+h.name+">"+this.newline:F+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)F+=">",F+=h.children[0].value,F+="</"+h.name+">"+this.newline;else{if(this.dontprettytextnodes){for(G=h.children,b=0,M=G.length;b<M;b++)if(I=G[b],I.value!=null){this.textispresent++,$=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(_)),F+=">"+this.newline,Y=h.children,W=0,R=Y.length;W<R;W++)I=Y[W],F+=function(){switch(!1){case!(I instanceof d):return this.cdata(I,_+1);case!(I instanceof m):return this.comment(I,_+1);case!(I instanceof u):return this.element(I,_+1);case!(I instanceof p):return this.raw(I,_+1);case!(I instanceof l):return this.text(I,_+1);case!(I instanceof c):return this.processingInstruction(I,_+1);default:throw new Error("Unknown XML node type: "+I.constructor.name)}}.call(this);$&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),F+=U+"</"+h.name+">"+this.newline}return F},E.prototype.processingInstruction=function(h,_){var O;return O=this.space(_)+"<?"+h.target,h.value&&(O+=" "+h.value),O+=this.spacebeforeslash+"?>"+this.newline},E.prototype.raw=function(h,_){return this.space(_)+h.value+this.newline},E.prototype.text=function(h,_){return this.space(_)+h.value+this.newline},E.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},E.prototype.dtdElement=function(h,_){return this.space(_)+"<!ELEMENT "+h.name+" "+h.value+this.spacebeforeslash+">"+this.newline},E.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},E.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},E.prototype.openNode=function(h,_){var O,I,b,W;if(_||(_=0),h instanceof u){b=this.space(_)+"<"+h.name,W=h.attributes;for(I in W)v.call(W,I)&&(O=W[I],b+=this.attribute(O));return b+=(h.children?">":"/>")+this.newline}return b=this.space(_)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?b+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(b+=' SYSTEM "'+h.sysID+'"'),b+=(h.children?" [":">")+this.newline},E.prototype.closeNode=function(h,_){switch(_||(_=0),!1){case!(h instanceof u):return this.space(_)+"</"+h.name+">"+this.newline;case!(h instanceof r):return this.space(_)+"]>"+this.newline}},E}(T)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(n,k,S){"use strict";(function(){var d=function(i,s){return function(){return i.apply(s,arguments)}},m={}.hasOwnProperty;k.exports=function(){function i(s){this.assertLegalChar=d(this.assertLegalChar,this);var f,o,t;s||(s={}),this.noDoubleEncoding=s.noDoubleEncoding,o=s.stringify||{};for(f in o)m.call(o,f)&&(t=o[f],this[f]=t)}return i.prototype.eleName=function(s){return s=""+s||"",this.assertLegalChar(s)},i.prototype.eleText=function(s){return s=""+s||"",this.assertLegalChar(this.elEscape(s))},i.prototype.cdata=function(s){return s=""+s||"",s=s.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(s)},i.prototype.comment=function(s){if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)},i.prototype.raw=function(s){return""+s||""},i.prototype.attName=function(s){return s=""+s||""},i.prototype.attValue=function(s){return s=""+s||"",this.attEscape(s)},i.prototype.insTarget=function(s){return""+s||""},i.prototype.insValue=function(s){if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return s},i.prototype.xmlVersion=function(s){if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s},i.prototype.xmlEncoding=function(s){if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return s},i.prototype.xmlStandalone=function(s){return s?"yes":"no"},i.prototype.dtdPubID=function(s){return""+s||""},i.prototype.dtdSysID=function(s){return""+s||""},i.prototype.dtdElementValue=function(s){return""+s||""},i.prototype.dtdAttType=function(s){return""+s||""},i.prototype.dtdAttDefault=function(s){return s!=null?""+s||"":s},i.prototype.dtdEntityValue=function(s){return""+s||""},i.prototype.dtdNData=function(s){return""+s||""},i.prototype.convertAttKey="@",i.prototype.convertPIKey="?",i.prototype.convertTextKey="#text",i.prototype.convertCDataKey="#cdata",i.prototype.convertCommentKey="#comment",i.prototype.convertRawKey="#raw",i.prototype.assertLegalChar=function(s){var f;if(f=s.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+s+" at index "+f.index);return s},i.prototype.elEscape=function(s){var f;return f=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(f,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},i.prototype.attEscape=function(s){var f;return f=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(f,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},i}()}).call(void 0)},{}],233:[function(n,k,S){"use strict";var d=n("babel-runtime/core-js/object/create"),m=function(i){return i&&i.__esModule?i:{default:i}}(d);(function(){var i,s=function(o,t){function r(){this.constructor=o}for(var u in t)f.call(t,u)&&(o[u]=t[u]);return r.prototype=t.prototype,o.prototype=new r,o.__super__=t.prototype,o},f={}.hasOwnProperty;i=n("./XMLNode"),k.exports=function(o){function t(r,u){if(t.__super__.constructor.call(this,r),u==null)throw new Error("Missing element text");this.value=this.stringify.eleText(u)}return s(t,o),t.prototype.clone=function(){return(0,m.default)(this)},t.prototype.toString=function(r){return this.options.writer.set(r).text(this)},t}(i)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(n,k,S){"use strict";(function(){var d={}.hasOwnProperty;k.exports=function(){function m(i){var s,f,o,t,r,u,c,p,l;i||(i={}),this.pretty=i.pretty||!1,this.allowEmpty=(f=i.allowEmpty)!=null&&f,this.pretty?(this.indent=(o=i.indent)!=null?o:" ",this.newline=(t=i.newline)!=null?t:`
|
|
`,this.offset=(r=i.offset)!=null?r:0,this.dontprettytextnodes=(u=i.dontprettytextnodes)!=null?u:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(c=i.spacebeforeslash)!=null?c:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,p=i.writer||{};for(s in p)d.call(p,s)&&(l=p[s],this[s]=l)}return m.prototype.set=function(i){var s,f,o;i||(i={}),"pretty"in i&&(this.pretty=i.pretty),"allowEmpty"in i&&(this.allowEmpty=i.allowEmpty),this.pretty?(this.indent="indent"in i?i.indent:" ",this.newline="newline"in i?i.newline:`
|
|
`,this.offset="offset"in i?i.offset:0,this.dontprettytextnodes="dontprettytextnodes"in i?i.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in i?i.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=i.writer||{};for(s in f)d.call(f,s)&&(o=f[s],this[s]=o);return this},m.prototype.space=function(i){var s;return this.pretty?(s=(i||0)+this.offset+1,s>0?new Array(s).join(this.indent):""):""},m}()}).call(void 0)},{}],235:[function(n,k,S){"use strict";(function(){var d,m,i,s,f,o,t;t=n("./Utility"),f=t.assign,o=t.isFunction,d=n("./XMLDocument"),m=n("./XMLDocumentCB"),s=n("./XMLStringWriter"),i=n("./XMLStreamWriter"),k.exports.create=function(r,u,c,p){var l,T;if(r==null)throw new Error("Root element needs a name");return p=f({},u,c,p),l=new d(p),T=l.element(r),p.headless||(l.declaration(p),p.pubID==null&&p.sysID==null||l.doctype(p)),T},k.exports.begin=function(r,u,c){var p;return o(r)&&(p=[r,u],u=p[0],c=p[1],r={}),u?new m(r,u,c):new d(r)},k.exports.stringWriter=function(r){return new s(r)},k.exports.streamWriter=function(r,u){return new i(r,u)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(n,k,S){function d(){for(var i={},s=0;s<arguments.length;s++){var f=arguments[s];for(var o in f)m.call(f,o)&&(i[o]=f[o])}return i}k.exports=d;var m=Object.prototype.hasOwnProperty},{}],237:[function(n,k,S){"use strict";function d(p,l,T){s.isBuffer(l)||(l=new s(l)),s.isBuffer(T)||(T=new s(T)),l.length>u?l=p(l):l.length<u&&(l=s.concat([l,c],u));for(var x=new s(u),v=new s(u),w=0;w<u;w++)x[w]=54^l[w],v[w]=92^l[w];var E=p(s.concat([x,T]));return p(s.concat([v,E]))}function m(p,l){p=p||"sha1";var T=r[p],x=[],v=0;return T||i("algorithm:",p,"is not yet supported"),{update:function(w){return s.isBuffer(w)||(w=new s(w)),x.push(w),v+=w.length,this},digest:function(w){var E=s.concat(x),h=l?d(T,l,E):T(E);return x=null,w?h.toString(w):h}}}function i(){var p=[].slice.call(arguments).join(" ");throw new Error([p,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
`))}var s=n("buffer").Buffer,f=n("./sha"),o=n("./sha256"),t=n("./md5"),r={sha1:f,sha256:o,md5:t},u=64,c=new s(u);c.fill(0),S.createHash=function(p){return m(p)},S.createHmac=function(p,l){return m(p,l)},function(p,l){for(var T in p)l(p[T],T)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(p){S[p]=function(){i("sorry,",p,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(n,k,S){"use strict";function d(r,u){if(r.length%f!=0){var c=r.length+(f-r.length%f);r=s.concat([r,o],c)}for(var p=[],l=u?r.readInt32BE:r.readInt32LE,T=0;T<r.length;T+=f)p.push(l.call(r,T));return p}function m(r,u,c){for(var p=new s(u),l=c?p.writeInt32BE:p.writeInt32LE,T=0;T<r.length;T++)l.call(p,r[T],4*T,!0);return p}function i(r,u,c,p){return s.isBuffer(r)||(r=new s(r)),m(u(d(r,p),r.length*t),c,p)}var s=n("buffer").Buffer,f=4,o=new s(f);o.fill(0);var t=8;k.exports={hash:i}},{buffer:38}],239:[function(n,k,S){"use strict";function d(c,p){c[p>>5]|=128<<p%32,c[14+(p+64>>>9<<4)]=p;for(var l=1732584193,T=-271733879,x=-1732584194,v=271733878,w=0;w<c.length;w+=16){var E=l,h=T,_=x,O=v;l=i(l,T,x,v,c[w+0],7,-680876936),v=i(v,l,T,x,c[w+1],12,-389564586),x=i(x,v,l,T,c[w+2],17,606105819),T=i(T,x,v,l,c[w+3],22,-1044525330),l=i(l,T,x,v,c[w+4],7,-176418897),v=i(v,l,T,x,c[w+5],12,1200080426),x=i(x,v,l,T,c[w+6],17,-1473231341),T=i(T,x,v,l,c[w+7],22,-45705983),l=i(l,T,x,v,c[w+8],7,1770035416),v=i(v,l,T,x,c[w+9],12,-1958414417),x=i(x,v,l,T,c[w+10],17,-42063),T=i(T,x,v,l,c[w+11],22,-1990404162),l=i(l,T,x,v,c[w+12],7,1804603682),v=i(v,l,T,x,c[w+13],12,-40341101),x=i(x,v,l,T,c[w+14],17,-1502002290),T=i(T,x,v,l,c[w+15],22,1236535329),l=s(l,T,x,v,c[w+1],5,-165796510),v=s(v,l,T,x,c[w+6],9,-1069501632),x=s(x,v,l,T,c[w+11],14,643717713),T=s(T,x,v,l,c[w+0],20,-373897302),l=s(l,T,x,v,c[w+5],5,-701558691),v=s(v,l,T,x,c[w+10],9,38016083),x=s(x,v,l,T,c[w+15],14,-660478335),T=s(T,x,v,l,c[w+4],20,-405537848),l=s(l,T,x,v,c[w+9],5,568446438),v=s(v,l,T,x,c[w+14],9,-1019803690),x=s(x,v,l,T,c[w+3],14,-187363961),T=s(T,x,v,l,c[w+8],20,1163531501),l=s(l,T,x,v,c[w+13],5,-1444681467),v=s(v,l,T,x,c[w+2],9,-51403784),x=s(x,v,l,T,c[w+7],14,1735328473),T=s(T,x,v,l,c[w+12],20,-1926607734),l=f(l,T,x,v,c[w+5],4,-378558),v=f(v,l,T,x,c[w+8],11,-2022574463),x=f(x,v,l,T,c[w+11],16,1839030562),T=f(T,x,v,l,c[w+14],23,-35309556),l=f(l,T,x,v,c[w+1],4,-1530992060),v=f(v,l,T,x,c[w+4],11,1272893353),x=f(x,v,l,T,c[w+7],16,-155497632),T=f(T,x,v,l,c[w+10],23,-1094730640),l=f(l,T,x,v,c[w+13],4,681279174),v=f(v,l,T,x,c[w+0],11,-358537222),x=f(x,v,l,T,c[w+3],16,-722521979),T=f(T,x,v,l,c[w+6],23,76029189),l=f(l,T,x,v,c[w+9],4,-640364487),v=f(v,l,T,x,c[w+12],11,-421815835),x=f(x,v,l,T,c[w+15],16,530742520),T=f(T,x,v,l,c[w+2],23,-995338651),l=o(l,T,x,v,c[w+0],6,-198630844),v=o(v,l,T,x,c[w+7],10,1126891415),x=o(x,v,l,T,c[w+14],15,-1416354905),T=o(T,x,v,l,c[w+5],21,-57434055),l=o(l,T,x,v,c[w+12],6,1700485571),v=o(v,l,T,x,c[w+3],10,-1894986606),x=o(x,v,l,T,c[w+10],15,-1051523),T=o(T,x,v,l,c[w+1],21,-2054922799),l=o(l,T,x,v,c[w+8],6,1873313359),v=o(v,l,T,x,c[w+15],10,-30611744),x=o(x,v,l,T,c[w+6],15,-1560198380),T=o(T,x,v,l,c[w+13],21,1309151649),l=o(l,T,x,v,c[w+4],6,-145523070),v=o(v,l,T,x,c[w+11],10,-1120210379),x=o(x,v,l,T,c[w+2],15,718787259),T=o(T,x,v,l,c[w+9],21,-343485551),l=t(l,E),T=t(T,h),x=t(x,_),v=t(v,O)}return Array(l,T,x,v)}function m(c,p,l,T,x,v){return t(r(t(t(p,c),t(T,v)),x),l)}function i(c,p,l,T,x,v,w){return m(p&l|~p&T,c,p,x,v,w)}function s(c,p,l,T,x,v,w){return m(p&T|l&~T,c,p,x,v,w)}function f(c,p,l,T,x,v,w){return m(p^l^T,c,p,x,v,w)}function o(c,p,l,T,x,v,w){return m(l^(p|~T),c,p,x,v,w)}function t(c,p){var l=(65535&c)+(65535&p);return(c>>16)+(p>>16)+(l>>16)<<16|65535&l}function r(c,p){return c<<p|c>>>32-p}var u=n("./helpers");k.exports=function(c){return u.hash(c,d,16)}},{"./helpers":238}],240:[function(n,k,S){"use strict";function d(t,r){t[r>>5]|=128<<24-r%32,t[15+(r+64>>9<<4)]=r;for(var u=Array(80),c=1732584193,p=-271733879,l=-1732584194,T=271733878,x=-1009589776,v=0;v<t.length;v+=16){for(var w=c,E=p,h=l,_=T,O=x,I=0;I<80;I++){u[I]=I<16?t[v+I]:f(u[I-3]^u[I-8]^u[I-14]^u[I-16],1);var b=s(s(f(c,5),m(I,p,l,T)),s(s(x,u[I]),i(I)));x=T,T=l,l=f(p,30),p=c,c=b}c=s(c,w),p=s(p,E),l=s(l,h),T=s(T,_),x=s(x,O)}return Array(c,p,l,T,x)}function m(t,r,u,c){return t<20?r&u|~r&c:t<40?r^u^c:t<60?r&u|r&c|u&c:r^u^c}function i(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function s(t,r){var u=(65535&t)+(65535&r);return(t>>16)+(r>>16)+(u>>16)<<16|65535&u}function f(t,r){return t<<r|t>>>32-r}var o=n("./helpers");k.exports=function(t){return o.hash(t,d,20,!0)}},{"./helpers":238}],241:[function(n,k,S){"use strict";var d=n("./helpers"),m=function(l,T){var x=(65535&l)+(65535&T);return(l>>16)+(T>>16)+(x>>16)<<16|65535&x},i=function(l,T){return l>>>T|l<<32-T},s=function(l,T){return l>>>T},f=function(l,T,x){return l&T^~l&x},o=function(l,T,x){return l&T^l&x^T&x},t=function(l){return i(l,2)^i(l,13)^i(l,22)},r=function(l){return i(l,6)^i(l,11)^i(l,25)},u=function(l){return i(l,7)^i(l,18)^s(l,3)},c=function(l){return i(l,17)^i(l,19)^s(l,10)},p=function(l,T){var x,v,w,E,h,_,O,I,b,W,M,R,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),F=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),H=new Array(64);l[T>>5]|=128<<24-T%32,l[15+(T+64>>9<<4)]=T;for(var b=0;b<l.length;b+=16){x=F[0],v=F[1],w=F[2],E=F[3],h=F[4],_=F[5],O=F[6],I=F[7];for(var W=0;W<64;W++)H[W]=W<16?l[W+b]:m(m(m(c(H[W-2]),H[W-7]),u(H[W-15])),H[W-16]),M=m(m(m(m(I,r(h)),f(h,_,O)),N[W]),H[W]),R=m(t(x),o(x,v,w)),I=O,O=_,_=h,h=m(E,M),E=w,w=v,v=x,x=m(M,R);F[0]=m(x,F[0]),F[1]=m(v,F[1]),F[2]=m(w,F[2]),F[3]=m(E,F[3]),F[4]=m(h,F[4]),F[5]=m(_,F[5]),F[6]=m(O,F[6]),F[7]=m(I,F[7])}return F};k.exports=function(l){return d.hash(l,p,32,!0)}},{"./helpers":238}],242:[function(n,k,S){(function(d){"use strict";function m(p){return p&&p.__esModule?p:{default:p}}var i=n("babel-runtime/core-js/object/create"),s=m(i),f=n("babel-runtime/helpers/classCallCheck"),o=m(f),t=n("babel-runtime/helpers/createClass"),r=m(t),u=n("babel-runtime/helpers/typeof"),c=m(u);(function(p){if((S===void 0?"undefined":(0,c.default)(S))==="object"&&k!==void 0)k.exports=p();else if(typeof ue=="function"&&ue.amd)ue([],p);else{var l;l=typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:this,l.mime=p()}})(function(){return function p(l,T,x){function v(h,_){if(!T[h]){if(!l[h]){var O=typeof n=="function"&&n;if(!_&&O)return O(h,!0);if(w)return w(h,!0);var I=new Error("Cannot find module '"+h+"'");throw I.code="MODULE_NOT_FOUND",I}var b=T[h]={exports:{}};l[h][0].call(b.exports,function(W){var M=l[h][1][W];return v(M||W)},b,b.exports,p,l,T,x)}return T[h].exports}for(var w=typeof n=="function"&&n,E=0;E<x.length;E++)v(x[E]);return v}({1:[function(p,l,T){var x=function(){function v(){(0,o.default)(this,v),this._types=(0,s.default)(null),this._extensions=(0,s.default)(null);for(var w=0;w<arguments.length;w++)this.define(arguments[w])}return(0,r.default)(v,[{key:"define",value:function(w,E){for(var h in w){for(var _=w[h],O=0;O<_.length;O++){var I=_[O];if(!E&&I in this._types)throw new Error('Attempt to change mapping for "'+I+'" extension from "'+this._types[I]+'" to "'+h+'". Pass `force=true` to allow this, otherwise remove "'+I+'" from the list of extensions for "'+h+'".');this._types[I]=h}!E&&this._extensions[h]||(this._extensions[h]=_[0])}}},{key:"getType",value:function(w){w=String(w);var E=w.replace(/^.*[\/\\]/,"").toLowerCase(),h=E.replace(/^.*\./,"").toLowerCase(),_=E.length<w.length;return(h.length<E.length-1||!_)&&this._types[h]||null}},{key:"getExtension",value:function(w){return(w=/^\s*([^;\s]*)/.test(w)&&RegExp.$1)&&this._extensions[w.toLowerCase()]||null}}]),v}();l.exports=x},{}],2:[function(p,l,T){var x=p("./Mime");l.exports=new x(p("./types/standard"),p("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(p,l,T){l.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(p,l,T){l.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(n,k,S){"use strict";S.encodeURIComponent=function(d){try{return encodeURIComponent(d)}catch(m){return d}},S.escape=n("escape-html"),S.timestamp=function(d){if(d){var m=d;return typeof m=="string"&&(m=Number(m)),String(d).length===10&&(m*=1e3),new Date(m)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(n,k,S){(function(d,m){"use strict";function i(I){return I&&I.__esModule?I:{default:I}}function s(I,b){return I===void 0?b:I}function f(I,b){return function(W,M,R){if(W)return b(W);I({data:M,status:R.statusCode,headers:R.headers,res:R})}}var o,t=n("babel-runtime/core-js/json/stringify"),r=i(t),u=n("babel-runtime/helpers/typeof"),c=i(u),p=n("util"),l=n("url"),T=n("http"),x=n("https"),v=n("debug")("urllib"),w=n("humanize-ms"),E=0,h=Math.pow(2,31)-10,_=/^https?:\/\//i;S.TIMEOUTS=[w("300s"),w("300s")];var O=["json","text"];S.request=function(I,b,W){return arguments.length===2&&typeof b=="function"&&(W=b,b=null),typeof W=="function"?S.requestWithCallback(I,b,W):(o||(o=n("any-promise")),new o(function(M,R){S.requestWithCallback(I,b,f(M,R))}))},S.requestWithCallback=function(I,b,W){function M(){ie&&(clearTimeout(ie),ie=null)}function R(){C&&(clearTimeout(C),C=null)}function N(de,ye,_e){if(R(),!W)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),J,d.pid,re.method,I),void(de&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
stack: %s`,Date(),J,d.pid,de.name,de.message,de.stack));var ge=W;W=null;var xe={};if(_e&&(y=_e.statusCode,xe=_e.headers),y===401&&xe["www-authenticate"]&&(!b.headers||!b.headers.Authorization)&&b.digestAuth){var Ie=xe["www-authenticate"];if(Ie.indexOf("Digest ")>=0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",J,I,Ie),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(re.method,re.path,Ie,b.digestAuth),v("Request#%d %s: auth with digest header: %s",J,I,b.headers.Authorization),_e.headers["set-cookie"]&&(b.headers.Cookie=_e.headers["set-cookie"].join(";")),S.requestWithCallback(I,b,ge)}var Me=Date.now()-D;pe&&(pe.contentDownload=Me),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Me,g,y,re.method,re.host,re.path,A,pe);var ze={status:y,statusCode:y,headers:xe,size:g,aborted:V,rt:Me,keepAliveSocket:A,data:ye,requestUrls:b.requestUrls,timing:pe,remoteAddress:q,remotePort:le};if(de){var We="";K&&typeof K.getCurrentStatus=="function"&&(We=", agent status: "+(0,r.default)(K.getCurrentStatus())),de.message+=", "+re.method+" "+I+" "+y+" (connected: "+a+", keepalive socket: "+A+We+`)
|
|
headers: `+(0,r.default)(xe),de.data=ye,de.path=re.path,de.status=y,de.headers=xe,de.res=ze}ge(de,ye,b.streaming?_e:ze),b.emitter&&(Z.url=I,Z.socket=ve&&ve.connection,Z.options=re,Z.size=X,b.emitter.emit("response",{requestId:J,error:de,ctx:b.ctx,req:Z,res:ze}))}function F(de){var ye=null;if(b.followRedirect&&statuses.redirect[de.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var _e=de.headers.location;if(_e){if(!(b._followRedirectCount>b.maxRedirects)){var ge=b.formatRedirectUrl?b.formatRedirectUrl(I,_e):l.resolve(I,_e);v("Request#%d %s: `redirected` from %s to %s",J,re.path,I,ge),R(),b.headers&&b.headers.Host&&_.test(_e)&&(b.headers.Host=null);var xe=W;return W=null,S.requestWithCallback(ge,b,xe),{redirect:!0,error:null}}ye=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+I),ye.name="MaxRedirectError"}else ye=new Error("Got statusCode "+de.statusCode+" but cannot resolve next location from headers"),ye.name="FollowRedirectError"}return{redirect:!1,error:ye}}function H(de,ye,_e){return _e(null,ye,de.headers["content-encoding"])}function G(de){if(pe&&(pe.waiting=Date.now()-D),v("Request#%d %s `req response` event emit: status %d, headers: %j",J,I,de.statusCode,de.headers),b.streaming){var ye=F(de);return ye.redirect?void de.resume():ye.error?(de.resume(),N(ye.error,null,de)):N(null,null,de)}if(de.on("close",function(){v("Request#%d %s: `res close` event emit, total size %d",J,I,g)}),de.on("error",function(){v("Request#%d %s: `res error` event emit, total size %d",J,I,g)}),de.on("aborted",function(){V=!0,v("Request#%d %s: `res aborted` event emit, total size %d",J,I,g)}),he){var ye=F(de);return ye.redirect?void de.resume():ye.error?(de.resume(),he.end(),N(ye.error,null,de)):(b.consumeWriteStream===!1?de.on("end",N.bind(null,null,null,de)):isNode010||isNode012?first([[he,"close"],[de,"aborted"]],function(xe,Ie,Me){v("Request#%d %s: writeStream or res %s event emitted",J,I,Me),N(e||null,null,de)}):he.on("close",function(){v("Request#%d %s: writeStream close event emitted",J,I),N(e||null,null,de)}),de.pipe(he))}var _e=[];de.on("data",function(ge){v("Request#%d %s: `res data` event emit, size %d",J,I,ge.length),g+=ge.length,_e.push(ge)}),de.on("end",function(){var ge=m.concat(_e,g);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",J,I,g,de._dumped),e)return N(e,ge,de);var xe=F(de);if(xe.error)return N(xe.error,ge,de);xe.redirect||H(de,ge,function(Ie,Me,ze){if(Ie)return N(Ie,ge,de);if(!ze&&O.indexOf(b.dataType)>=0){try{Me=decodeBodyByCharset(Me,de)}catch(Te){return v("decodeBodyByCharset error: %s",Te),N(null,Me,de)}if(b.dataType==="json")if(g===0)Me=null;else{var We=parseJSON(Me,se);We.error?Ie=We.error:Me=We.data}}V&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",J,I),N(Ie,Me,de)})})}function Y(){v("Response timer ticking, timeout: %d",be),C=setTimeout(function(){C=null;var de="Response timeout for "+be+"ms";e=new Error(de),e.name="ResponseTimeoutError",e.requestId=J,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",J,I,e.name,de,a),U()},be)}function U(){v("Request#%d %s abort, connected: %s",J,I,a),ve.socket||(e.noSocket=!0,N(e)),ve.abort()}if(!I||typeof I!="string"&&(I===void 0?"undefined":(0,c.default)(I))!=="object"){var $=p.format("expect request url to be a string or a http request options, but got %j",I);throw new Error($)}arguments.length===2&&typeof b=="function"&&(W=b,b=null),b=b||{},E>=h&&(E=0);var J=++E;b.requestUrls=b.requestUrls||[];var Z={requestId:J,url:I,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",Z),b.timeout=b.timeout||S.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var P,D=Date.now();typeof I=="string"?(_.test(I)||(I="http://"+I),P=l.parse(I)):P=I;var B=(b.type||b.method||P.method||"GET").toUpperCase(),z=P.port||80,ne=T,K=s(b.agent,S.agent),se=b.fixJSONCtlChars;P.protocol==="https:"&&(ne=x,K=s(b.httpsAgent,S.httpsAgent),P.port||(z=443));var re={host:P.hostname||P.host||"localhost",path:P.path||"/",method:B,port:z,agent:K,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?re.requestTimeout=b.timeout[b.timeout.length-1]:b.timeout!==void 0&&(re.requestTimeout=b.timeout);for(var ce=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],fe=0;fe<ce.length;fe++){var ee=ce[fe];b.hasOwnProperty(ee)&&(re[ee]=b[ee])}re.rejectUnauthorized!==!1||re.hasOwnProperty("secureOptions")||(re.secureOptions=n("constants").SSL_OP_NO_TLSv1_2);var te=b.auth||P.auth;te&&(re.auth=te);var oe=b.content||b.data,L=B==="GET"||B==="HEAD"||b.dataAsQueryString;if(!b.content&&oe&&typeof oe!="string"&&!m.isBuffer(oe))if(L)oe=b.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe);else{var j=re.headers["Content-Type"]||re.headers["content-type"];j||(j=b.contentType==="json"?"application/json":"application/x-www-form-urlencoded",re.headers["Content-Type"]=j),oe=parseContentType(j).type==="application/json"?(0,r.default)(oe):b.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe)}L&&oe&&(re.path+=(P.query?"&":"?")+oe,oe=null);var X=0;if(oe){var Q=oe.length;m.isBuffer(oe)||(Q=m.byteLength(oe)),X=re.headers["Content-Length"]=Q}b.dataType==="json"&&(re.headers.Accept="application/json"),typeof b.beforeRequest=="function"&&b.beforeRequest(re);var ie=null,C=null,e=null,a=!1,A=!1,g=0,y=-1,V=!1,q="",le="",pe=null;b.timing&&(pe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),re.headers["User-Agent"]||re.headers["user-agent"]||(re.headers["User-Agent"]=navigator.userAgent),b.gzip&&(re.headers["Accept-Encoding"]||re.headers["accept-encoding"]||(re.headers["Accept-Encoding"]="gzip"));var he=b.writeStream;v("Request#%d %s %s with headers %j, options.path: %s",J,B,I,re.headers,re.path),b.requestUrls.push(I);var me,be;Array.isArray(b.timeout)?(me=w(b.timeout[0]),be=w(b.timeout[1])):me=be=w(b.timeout),v("ConnectTimeout: %d, ResponseTimeout: %d",me,be);var ve;try{ve=ne.request(re,G)}catch(de){return N(de)}return typeof window=="undefined"?function(){v("Connect timer ticking, timeout: %d",me),ie=setTimeout(function(){ie=null,y===-1&&(y=-2);var de="Connect timeout for "+me+"ms",ye="ConnectionTimeoutError";ve.socket||(ye="SocketAssignTimeoutError",de+=", working sockets is full"),e=new Error(de),e.name=ye,e.requestId=J,v("ConnectTimeout: Request#%d %s %s: %s, connected: %s",J,I,e.name,de,a),U()},me)}():ve.on("requestTimeout",function(){y===-1&&(y=-2);var de="Connect timeout for "+me+"ms";e=new Error(de),e.name="ConnectionTimeoutError",e.requestId=J,U()}),pe&&ve.on("finish",function(){pe.requestSent=Date.now()-D}),ve.once("socket",function(de){pe&&(pe.queuing=Date.now()-D),isNode010&&de.socket&&(de=de.socket);var ye=de.readyState;if(ye==="opening")return de.once("lookup",function(_e,ge,xe){v("Request#%d %s lookup: %s, %s, %s",J,I,_e,ge,xe),pe&&(pe.dnslookup=Date.now()-D),ge&&(q=ge)}),void de.once("connect",function(){pe&&(pe.connected=Date.now()-D),M(),Y(),v("Request#%d %s new socket connected",J,I),a=!0,q||(q=de.remoteAddress),le=de.remotePort});v("Request#%d %s reuse socket connected, readyState: %s",J,I,ye),a=!0,A=!0,q||(q=de.remoteAddress),le=de.remotePort,M(),Y()}),ve.on("error",function(de){de.name!=="Error"&&de.name!=="TypeError"||(de.name=a?"ResponseError":"RequestError"),de.message+=' (req "error")',v("Request#%d %s `req error` event emit, %s: %s",J,I,de.name,de.message),N(e||de)}),he&&he.once("error",function(de){de.message+=' (writeStream "error")',e=de,v("Request#%d %s `writeStream error` event emit, %s: %s",J,I,de.name,de.message),U()}),b.stream?(b.stream.pipe(ve),b.stream.once("error",function(de){de.message+=' (stream "error")',e=de,v("Request#%d %s `readStream error` event emit, %s: %s",J,I,de.name,de.message),U()})):ve.end(oe),ve.requestId=J,ve}}).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(ue){function n(S){if(k[S])return k[S].exports;var d=k[S]={i:S,l:!1,exports:{}};return ue[S].call(d.exports,d,d.exports,n),d.l=!0,d.exports}var k={};n.m=ue,n.c=k,n.d=function(S,d,m){n.o(S,d)||Object.defineProperty(S,d,{configurable:!1,enumerable:!0,get:m})},n.n=function(S){var d=S&&S.__esModule?function(){return S.default}:function(){return S};return n.d(d,"a",d),d},n.o=function(S,d){return Object.prototype.hasOwnProperty.call(S,d)},n.p="",n(n.s=12)}([function(ue,n,k){(function(S,d){ue.exports=n=d()})(0,function(){var S=S||function(d,m){var i=Object.create||function(){function x(){}return function(v){var w;return x.prototype=v,w=new x,x.prototype=null,w}}(),s={},f=s.lib={},o=f.Base=function(){return{extend:function(x){var v=i(this);return x&&v.mixIn(x),v.hasOwnProperty("init")&&this.init!==v.init||(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var v in x)x.hasOwnProperty(v)&&(this[v]=x[v]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=f.WordArray=o.extend({init:function(x,v){x=this.words=x||[],this.sigBytes=v!=null?v:4*x.length},toString:function(x){return(x||u).stringify(this)},concat:function(x){var v=this.words,w=x.words,E=this.sigBytes,h=x.sigBytes;if(this.clamp(),E%4)for(var _=0;_<h;_++){var O=w[_>>>2]>>>24-_%4*8&255;v[E+_>>>2]|=O<<24-(E+_)%4*8}else for(var _=0;_<h;_+=4)v[E+_>>>2]=w[_>>>2];return this.sigBytes+=h,this},clamp:function(){var x=this.words,v=this.sigBytes;x[v>>>2]&=4294967295<<32-v%4*8,x.length=d.ceil(v/4)},clone:function(){var x=o.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var v,w=[],E=0;E<x;E+=4){var h=function(O){var O=O,I=987654321,b=4294967295;return function(){I=36969*(65535&I)+(I>>16)&b,O=18e3*(65535&O)+(O>>16)&b;var W=(I<<16)+O&b;return W/=4294967296,(W+=.5)*(d.random()>.5?1:-1)}}(4294967296*(v||d.random()));v=987654071*h(),w.push(4294967296*h()|0)}return new t.init(w,x)}}),r=s.enc={},u=r.Hex={stringify:function(x){for(var v=x.words,w=x.sigBytes,E=[],h=0;h<w;h++){var _=v[h>>>2]>>>24-h%4*8&255;E.push((_>>>4).toString(16)),E.push((15&_).toString(16))}return E.join("")},parse:function(x){for(var v=x.length,w=[],E=0;E<v;E+=2)w[E>>>3]|=parseInt(x.substr(E,2),16)<<24-E%8*4;return new t.init(w,v/2)}},c=r.Latin1={stringify:function(x){for(var v=x.words,w=x.sigBytes,E=[],h=0;h<w;h++){var _=v[h>>>2]>>>24-h%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(x){for(var v=x.length,w=[],E=0;E<v;E++)w[E>>>2]|=(255&x.charCodeAt(E))<<24-E%4*8;return new t.init(w,v)}},p=r.Utf8={stringify:function(x){try{return decodeURIComponent(escape(c.stringify(x)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(x){return c.parse(unescape(encodeURIComponent(x)))}},l=f.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=p.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var v=this._data,w=v.words,E=v.sigBytes,h=this.blockSize,_=4*h,O=E/_;O=x?d.ceil(O):d.max((0|O)-this._minBufferSize,0);var I=O*h,b=d.min(4*I,E);if(I){for(var W=0;W<I;W+=h)this._doProcessBlock(w,W);var M=w.splice(0,I);v.sigBytes-=b}return new t.init(M,b)},clone:function(){var x=o.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0}),T=(f.Hasher=l.extend({cfg:o.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){return x&&this._append(x),this._doFinalize()},blockSize:16,_createHelper:function(x){return function(v,w){return new x.init(w).finalize(v)}},_createHmacHelper:function(x){return function(v,w){return new T.HMAC.init(x,w).finalize(v)}}}),s.algo={});return s}(Math);return S})},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"detectIEVersion",value:function(){for(var s=4,f=document.createElement("div"),o=f.getElementsByTagName("i");f.innerHTML="<!--[if gt IE "+s+"]><i></i><![endif]-->",o[0];)s++;return s>4&&s}},{key:"extend",value:function(s,f){for(var o in f)Object.prototype.hasOwnProperty.call(f,o)&&f[o]&&(s[o]=f[o])}},{key:"isArray",value:function(s){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(s){return s=s.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(s)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(s)?"audio":/.bmp|.jpg|.jpeg|.png/.test(s)?"img":"other"}},{key:"isImage",value:function(s){return s=s.toLowerCase(),!!/.jpg|.jpeg|.png/.test(s)}},{key:"ISODateString",value:function(s){function f(o){return o<10?"0"+o:o}return s.getUTCFullYear()+"-"+f(s.getUTCMonth()+1)+"-"+f(s.getUTCDate())+"T"+f(s.getUTCHours())+":"+f(s.getUTCMinutes())+":"+f(s.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(s){return!!/^\d+$/.test(s)}}]),i}();n.default=m},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return function(d){function m(T,x,v,w,E,h,_){var O=T+(x&v|~x&w)+E+_;return(O<<h|O>>>32-h)+x}function i(T,x,v,w,E,h,_){var O=T+(x&w|v&~w)+E+_;return(O<<h|O>>>32-h)+x}function s(T,x,v,w,E,h,_){var O=T+(x^v^w)+E+_;return(O<<h|O>>>32-h)+x}function f(T,x,v,w,E,h,_){var O=T+(v^(x|~w))+E+_;return(O<<h|O>>>32-h)+x}var o=S,t=o.lib,r=t.WordArray,u=t.Hasher,c=o.algo,p=[];(function(){for(var T=0;T<64;T++)p[T]=4294967296*d.abs(d.sin(T+1))|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,x){for(var v=0;v<16;v++){var w=x+v,E=T[w];T[w]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8)}var h=this._hash.words,_=T[x+0],O=T[x+1],I=T[x+2],b=T[x+3],W=T[x+4],M=T[x+5],R=T[x+6],N=T[x+7],F=T[x+8],H=T[x+9],G=T[x+10],Y=T[x+11],U=T[x+12],$=T[x+13],J=T[x+14],Z=T[x+15],P=h[0],D=h[1],B=h[2],z=h[3];P=m(P,D,B,z,_,7,p[0]),z=m(z,P,D,B,O,12,p[1]),B=m(B,z,P,D,I,17,p[2]),D=m(D,B,z,P,b,22,p[3]),P=m(P,D,B,z,W,7,p[4]),z=m(z,P,D,B,M,12,p[5]),B=m(B,z,P,D,R,17,p[6]),D=m(D,B,z,P,N,22,p[7]),P=m(P,D,B,z,F,7,p[8]),z=m(z,P,D,B,H,12,p[9]),B=m(B,z,P,D,G,17,p[10]),D=m(D,B,z,P,Y,22,p[11]),P=m(P,D,B,z,U,7,p[12]),z=m(z,P,D,B,$,12,p[13]),B=m(B,z,P,D,J,17,p[14]),D=m(D,B,z,P,Z,22,p[15]),P=i(P,D,B,z,O,5,p[16]),z=i(z,P,D,B,R,9,p[17]),B=i(B,z,P,D,Y,14,p[18]),D=i(D,B,z,P,_,20,p[19]),P=i(P,D,B,z,M,5,p[20]),z=i(z,P,D,B,G,9,p[21]),B=i(B,z,P,D,Z,14,p[22]),D=i(D,B,z,P,W,20,p[23]),P=i(P,D,B,z,H,5,p[24]),z=i(z,P,D,B,J,9,p[25]),B=i(B,z,P,D,b,14,p[26]),D=i(D,B,z,P,F,20,p[27]),P=i(P,D,B,z,$,5,p[28]),z=i(z,P,D,B,I,9,p[29]),B=i(B,z,P,D,N,14,p[30]),D=i(D,B,z,P,U,20,p[31]),P=s(P,D,B,z,M,4,p[32]),z=s(z,P,D,B,F,11,p[33]),B=s(B,z,P,D,Y,16,p[34]),D=s(D,B,z,P,J,23,p[35]),P=s(P,D,B,z,O,4,p[36]),z=s(z,P,D,B,W,11,p[37]),B=s(B,z,P,D,N,16,p[38]),D=s(D,B,z,P,G,23,p[39]),P=s(P,D,B,z,$,4,p[40]),z=s(z,P,D,B,_,11,p[41]),B=s(B,z,P,D,b,16,p[42]),D=s(D,B,z,P,R,23,p[43]),P=s(P,D,B,z,H,4,p[44]),z=s(z,P,D,B,U,11,p[45]),B=s(B,z,P,D,Z,16,p[46]),D=s(D,B,z,P,I,23,p[47]),P=f(P,D,B,z,_,6,p[48]),z=f(z,P,D,B,N,10,p[49]),B=f(B,z,P,D,J,15,p[50]),D=f(D,B,z,P,M,21,p[51]),P=f(P,D,B,z,U,6,p[52]),z=f(z,P,D,B,b,10,p[53]),B=f(B,z,P,D,G,15,p[54]),D=f(D,B,z,P,O,21,p[55]),P=f(P,D,B,z,F,6,p[56]),z=f(z,P,D,B,Z,10,p[57]),B=f(B,z,P,D,R,15,p[58]),D=f(D,B,z,P,$,21,p[59]),P=f(P,D,B,z,W,6,p[60]),z=f(z,P,D,B,Y,10,p[61]),B=f(B,z,P,D,I,15,p[62]),D=f(D,B,z,P,H,21,p[63]),h[0]=h[0]+P|0,h[1]=h[1]+D|0,h[2]=h[2]+B|0,h[3]=h[3]+z|0},_doFinalize:function(){var T=this._data,x=T.words,v=8*this._nDataBytes,w=8*T.sigBytes;x[w>>>5]|=128<<24-w%32;var E=d.floor(v/4294967296),h=v;x[15+(w+64>>>9<<4)]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8),x[14+(w+64>>>9<<4)]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),T.sigBytes=4*(x.length+1),this._process();for(var _=this._hash,O=_.words,I=0;I<4;I++){var b=O[I];O[I]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8)}return _},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});o.MD5=u._createHelper(l),o.HmacMD5=u._createHmacHelper(l)}(Math),S.MD5})},function(ue,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},n.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},n.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(ue,n,k){"use strict";function S(l){return l&&l.__esModule?l:{default:l}}function d(l,T){if(!(l instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function l(T,x){for(var v=0;v<x.length;v++){var w=x[v];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,x,v){return x&&l(T.prototype,x),v&&l(T,v),T}}(),i=k(5),s=S(i),f=k(25),o=S(f),t=k(6),r=S(t),u=k(7),c=S(u),p=function(){function l(T){d(this,l);var x=c.default.os.name,v=c.default.os.version||"",w=c.default.browser.name,E=c.default.browser.version||"",h=window.location.href,_="";h&&(_=c.default.getHost(h));var O="pc";c.default.os.ipad?O="pad":(c.default.os.iphone||c.default.os.android)&&(O="phone"),this._ri=s.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:r.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:l.getUuid(),os:x,ov:v,et:w,ev:E,uat:navigator.userAgent,app_n:_,tt:O,dm:"h5",ut:""}}return m(l,[{key:"log",value:function(T,x){x&&x.ri?(this._ri=x.ri,delete x.ri):this._ri=s.default.create(),x&&x.ut&&(this.initParam.ut=x.ut,delete x.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=T=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=T;var v=[];if(x)for(var w in x)v.push(w+"="+x[w]);var E=v.join("&");this.initParam.args=encodeURIComponent(E==""?"0":E);var h=[];for(var w in this.initParam)h.push(w+"="+this.initParam[w]);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 T=o.default.get("p_h5_upload_u");return T||(T=s.default.create(),o.default.set("p_h5_upload_u",T,730)),T}},{key:"getClientId",value:function(){return o.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(T){return T||(T=s.default.create()),o.default.set("p_h5_upload_clientId",T,730),T}}]),l}();n.default=p},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"create",value:function(s,f){var o,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(f=f||t.length,s)for(o=0;o<s;o++)r[o]=t[0|Math.random()*f];else{var u;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",o=0;o<36;o++)r[o]||(u=0|16*Math.random(),r[o]=t[o==19?3&u|8:u])}return r.join("")}}]),i}();n.default=m},function(ue,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var S={version:"1.5.0"};n.default=S},function(ue,n,k){"use strict";function S(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function t(r,u){for(var c=0;c<u.length;c++){var p=u[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}return function(r,u,c){return u&&t(r.prototype,u),c&&t(r,c),r}}(),m=function(t){var r=navigator.userAgent,u="other";if(t.ios)return"iOS";if(t.android)return"android";if(r.indexOf("Baiduspider")>-1)return"Baiduspider";if(r.indexOf("PlayStation")>-1)return"PS4";var c=navigator.platform=="Win32"||navigator.platform=="Windows"||r.indexOf("Windows")>-1,p=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return p&&(u="macOS"),navigator.platform=="X11"&&!c&&!p&&(u="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(u="Linux"),c?"windows":u},i=function(){var t=navigator.userAgent,r="";return(t.indexOf("Windows NT 5.0")>-1||t.indexOf("Windows 2000")>-1)&&(r="2000"),(t.indexOf("Windows NT 5.1")>-1||t.indexOf("Windows XP")>-1)&&(r="XP"),(t.indexOf("Windows NT 5.2")>-1||t.indexOf("Windows 2003")>-1)&&(r="2003"),(t.indexOf("Windows NT 6.0")>-1||t.indexOf("Windows Vista")>-1)&&(r="Vista"),(t.indexOf("Windows NT 6.1")>-1||t.indexOf("Windows 7")>-1)&&(r="7"),(t.indexOf("Windows NT 6.2")>-1||t.indexOf("Windows 8")>-1)&&(r="8"),(t.indexOf("Windows NT 6.3")>-1||t.indexOf("Windows 8.1")>-1)&&(r="8.1"),(t.indexOf("Windows NT 10")>-1||t.indexOf("Windows 10")>-1)&&(r="10"),r},s=function(t){var r=navigator.userAgent.toLowerCase();return t.chrome?"Chrome":t.firefox?"Firefox":t.safari?"Safari":t.webview?"webview":t.ie?/edge/.test(r)?"Edge":"IE":/baiduspider/.test(r)?"Baiduspider":/ucweb/.test(r)||/UCBrowser/.test(r)?"UC":/opera/.test(r)?"Opera":/ucweb/.test(r)?"UC":/360se/.test(r)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(r)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(r)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(r)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(r)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(r)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(r)?"PS4\u6D4F\u89C8\u5668":void 0},f=function(){var t={},r={},u=navigator.userAgent,c=navigator.platform,p=u.match(/Web[kK]it[\/]{0,1}([\d.]+)/),l=u.match(/(Android);?[\s\/]+([\d.]+)?/),T=!!u.match(/\(Macintosh\; Intel /),x=u.match(/(iPad).*OS\s([\d_]+)/),v=u.match(/(iPod)(.*OS\s([\d_]+))?/),w=!x&&u.match(/(iPhone\sOS)\s([\d_]+)/),E=u.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=/Win\d{2}|Windows/.test(c),_=u.match(/Windows Phone ([\d.]+)/),O=E&&u.match(/TouchPad/),I=u.match(/Kindle\/([\d.]+)/),b=u.match(/Silk\/([\d._]+)/),W=u.match(/(BlackBerry).*Version\/([\d.]+)/),M=u.match(/(BB10).*Version\/([\d.]+)/),R=u.match(/(RIM\sTablet\sOS)\s([\d.]+)/),N=u.match(/PlayBook/),F=u.match(/Chrome\/([\d.]+)/)||u.match(/CriOS\/([\d.]+)/),H=u.match(/Firefox\/([\d.]+)/),G=u.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Y=u.match(/MSIE\s([\d.]+)/)||u.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!F&&u.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),$=U||u.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((r.webkit=!!p)&&(r.version=p[1]),l&&(t.android=!0,t.version=l[2]),w&&!v&&(t.ios=t.iphone=!0,t.version=w[2].replace(/_/g,".")),x&&(t.ios=t.ipad=!0,t.version=x[2].replace(/_/g,".")),v&&(t.ios=t.ipod=!0,t.version=v[3]?v[3].replace(/_/g,"."):null),_&&(t.wp=!0,t.version=_[1]),E&&(t.webos=!0,t.version=E[2]),O&&(t.touchpad=!0),W&&(t.blackberry=!0,t.version=W[2]),M&&(t.bb10=!0,t.version=M[2]),R&&(t.rimtabletos=!0,t.version=R[2]),N&&(r.playbook=!0),I&&(t.kindle=!0,t.version=I[1]),b&&(r.silk=!0,r.version=b[1]),!b&&t.android&&u.match(/Kindle Fire/)&&(r.silk=!0),F&&(r.chrome=!0,r.version=F[1]),H&&(r.firefox=!0,r.version=H[1]),G&&(t.firefoxos=!0,t.version=G[1]),Y&&(r.ie=!0,r.version=Y[1]),$&&(T||t.ios||h||l)&&(r.safari=!0,t.ios||(r.version=$[1])),U&&(r.webview=!0),T){var J=u.match(/[\d]*_[\d]*_[\d]*/);J&&J.length>0&&J[0]&&(t.version=J[0].replace(/_/g,"."))}return t.tablet=!!(x||N||l&&!u.match(/Mobile/)||H&&u.match(/Tablet/)||Y&&!u.match(/Phone/)&&u.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(l||w||E||W||M||F&&u.match(/Android/)||F&&u.match(/CriOS\/([\d.]+)/)||H&&u.match(/Mobile/)||Y&&u.match(/Touch/))),t.pc=!t.tablet&&!t.phone,T?t.name="macOS":h?(t.name="windows",t.version=i()):t.name=m(t),r.name=s(r),{os:t,browser:r}}(),o=function(){function t(){S(this,t)}return d(t,null,[{key:"getHost",value:function(r){var p="";if(r===void 0||r==null||r=="")return"";var u=r.indexOf("//"),c=r;u>-1&&(c=r.substring(u+2));var p=c,l=c.split("/");return l&&l.length>0&&(p=l[0]),l=p.split(":"),l&&l.length>0&&(p=l[0]),p}},{key:"os",get:function(){return f.os}},{key:"browser",get:function(){var r=f.browser;return r.name||(r.name=s()),r}}]),t}();n.default=o},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"get",value:function(s,f,o,t,r){var u;o=o||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(c){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(c){}throw new Error("This browser does not support XMLHttpRequest.")}),u=new XMLHttpRequest,u.onreadystatechange=function(){u.readyState===4&&(u.status===200?f(u.responseText):o(u.responseText))};try{t===void 0&&(t=!0),u.open("GET",s,t),r&&(u.withCredentials=!0)}catch(c){return void o(c)}try{u.send()}catch(c){o(c)}}}]),i}();n.default=m},function(ue,n,k){"use strict";function S(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function f(o,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}return function(o,t,r){return t&&f(o.prototype,t),r&&f(o,r),o}}(),m=k(27),i=k(30),s=(k(10),function(){function f(){S(this,f)}return d(f,null,[{key:"randomUUID",value:function(){for(var o=[],t="0123456789abcdef",r=0;r<36;r++)o[r]=t.substr(Math.floor(16*Math.random()),1);return o[14]="4",o[19]=t.substr(3&o[19]|8,1),o[8]=o[13]=o[18]=o[23]="-",o.join("")}},{key:"aliyunEncodeURI",value:function(o){var t=encodeURIComponent(o);return t=t.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(o,t,r){if(!o)throw new Error("PrismPlayer Error: vid should not be null!");var u=[];for(var c in o)u.push(c);for(var p=u.sort(),l="",T=p.length,c=0;c<T;c++){var x=f.aliyunEncodeURI(p[c]),v=f.aliyunEncodeURI(o[p[c]]);l==""?l=x+t+v:l+=r+x+t+v}return l}},{key:"makeChangeSiga",value:function(o,t){if(!o)throw new Error("PrismPlayer Error: vid should not be null!");return i.stringify(m("GET&"+f.aliyunEncodeURI("/")+"&"+f.aliyunEncodeURI(f.makeUTF8sort(o,"=","&")),t+"&"))}}]),f}());n.default=s},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return S.enc.Utf8})},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return S.enc.Hex})},function(ue,n,k){ue.exports=k(13)},function(ue,n,k){"use strict";var S,d,m=k(14),i=function(f){return f&&f.__esModule?f:{default:f}}(m),s={Vod:i.default};S=[],(d=function(){return s}.apply(n,S))!==void 0&&(ue.exports=d),window.AliyunUpload=s,Ve.exports=AliyunUpload},function(ue,n,k){"use strict";function S(M){return M&&M.__esModule?M:{default:M}}function d(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function M(R,N){for(var F=0;F<N.length;F++){var H=N[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(R,H.key,H)}}return function(R,N,F){return N&&M(R.prototype,N),F&&M(R,F),R}}(),i=k(15),s=k(3),f=k(16),o=S(f),t=k(18),r=S(t),u=k(24),c=S(u),p=k(4),l=S(p),T=k(1),x=S(T),v=k(5),w=S(v),E=k(26),h=S(E),_=k(31),O=S(_),I=k(32),b=S(I),W=(k(2),function(){function M(R){d(this,M),this.options=R,this.options.partSize=this.options.partSize||s.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||s.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=i.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new l.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=i.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return m(M,[{key:"init",value:function(R,N,F,H){return this._retryCount=0,!(F&&!H||!F&&H)&&!(R&&!N||!R&&N)&&(this._ossCreditor.accessKeyId=R,this._ossCreditor.accessKeySecret=N,this._ossCreditor.securityToken=F,this._ossCreditor.expireTime=H,!0)}},{key:"addFile",value:function(R,N,F,H,G,Y){if(!R)return!1;if(R.size==0)try{this.options.onUploadFailed({file:R},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(Z){console.log(Z)}for(var U=(this.options,0);U<this._uploadList.length;U++)if(this._uploadList[U].file==R)return!1;var $=new Object;if($.file=R,$._endpoint=N,$._bucket=F,$._object=H,$.state=i.UPLOADSTATE.INIT,$.isImage=x.default.isImage(R.name),!$.isImage&&this.options.enableUploadProgress){var J=this;b.default.getMd5(R,function(Z){$.fileHash=Z;var P=J._getCheckoutpoint($);J.options.localCheckpoint||P||J._getCheckoutpointFromCloud($,function(D){if(D.UploadPoint){var B=JSON.parse(D.UploadPoint);B.loaded!=1&&($.checkpoint=B.checkpoint,$.loaded=B.loaded,$.videoId=D.VideoId,J._saveCheckoutpoint($,B.checkpoint))}},function(D){try{if((D=JSON.parse(D))&&D.Code=="InvalidParameter"&&D.Message.indexOf("UserId")>0){J._invalidUserId=!0;var B=D.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(B)}}catch(z){console.log(z)}})})}G&&($.videoInfo=G?JSON.parse(G).Vod:{},$.userData=r.default.encode(G)),$.ri=w.default.create(),this._uploadList.push($),this._reportLog("20001",$,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess($)}catch(Z){console.log(Z)}return!0}},{key:"deleteFile",value:function(R){return!!this.cancelFile(R)&&(this._uploadList.splice(R,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(R){if(this.options,R<0||R>=this._uploadList.length)return!1;var N=this._uploadList[R];if(R==this._curIndex&&N.state==i.UPLOADSTATE.UPLOADING){N.state=i.UPLOADSTATE.CANCELED;var F=this._getCheckoutpoint(N);F&&F.checkpoint&&(F=F.checkpoint),F&&this._ossUpload.abort(N),this._removeCheckoutpoint(N),this.nextUpload()}else N.state!=i.UPLOADSTATE.SUCCESS&&(N.state=i.UPLOADSTATE.CANCELED);return this._reportLog("20008",N),!0}},{key:"resumeFile",value:function(R){if(this.options,R<0||R>=this._uploadList.length)return!1;var N=this._uploadList[R];return N.state==i.UPLOADSTATE.CANCELED&&(N.state=i.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(R){return this._getCheckoutpoint({file:R})}},{key:"startUpload",value:function(R){if(this._retryCount=0,this.options,this._state==i.VODSTATE.START||this._state==i.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=i.VODSTATE.END);var N=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(N),this._state=i.VODSTATE.START}},{key:"nextUpload",value:function(){var R=this.options;if(this._state==i.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=i.VODSTATE.END;try{R.onUploadEnd&&R.onUploadEnd(N)}catch(F){console.log(F)}}}},{key:"clear",value:function(R){for(var N=this.options,F=0,H=0;H<this._uploadList.length;H++)N.uploadList[H].state==i.UPLOADSTATE.SUCCESS&&F++,this._uploadList[H].state==R&&(N.uploadList.splice(H,1),H--);N.onClear&&N.onClear(N.uploadList.length,F)}},{key:"stopUpload",value:function(){if((this._state==i.VODSTATE.START||this._state==i.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var R=this._uploadList[this._curIndex];this._state=i.VODSTATE.STOP,R.state=i.UPLOADSTATE.STOPED,this._changeState(R,i.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(R){var N=this;if(!R)return!1;var F=JSON.parse(r.default.decode(R));return!!(F.AccessKeyId&&F.AccessKeySecret&&F.SecurityToken&&F.Expiration)&&N.resumeUploadWithToken(F.AccessKeyId,F.AccessKeySecret,F.SecurityToken,F.Expiration)}},{key:"resumeUploadWithToken",value:function(R,N,F,H){if(this.options,!(R&&N&&F&&H)||this._state!=i.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var G="";return this._uploadList.length>this._curIndex&&(G=this._uploadList[this._curIndex]),G&&(this.init(R,N,F,H),this._state=i.VODSTATE.START,this._ossUpload=null,this._uploadCore(G,G.retry),G.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(R,N,F){if(this._curIndex==-1||this._state!=i.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var H=this._uploadList[this._curIndex];H.object?this._refreshSTSTokenUpload(H,R,N,F):this.setSTSToken(H,R,N,F)}}},{key:"setSTSTokenDirectlyUpload",value:function(R,N,F,H,G){if(!(N&&F&&H&&G))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Y=R;this.init(N,F,H,G),Y.endpoint=Y._endpoint,Y.bucket=Y._bucket,Y.object=Y._object,this._ossUpload=null,this._uploadCore(Y,R.retry),R.retry=!1}},{key:"setSTSToken",value:function(R,N,F,H){if(!N||!F||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var G=R.videoInfo,Y={accessKeyId:N,securityToken:H,accessKeySecret:F,fileName:R.file.name,title:G.Title,requestId:R.ri,region:this.options.region};G.ImageType&&(Y.imageType=G.ImageType),G.ImageExt&&(Y.imageExt=G.ImageExt),G.FileSize&&(Y.fileSize=G.FileSize),G.Description&&(Y.description=G.Description),G.CateId&&(Y.cateId=G.CateId),G.Tags&&(Y.tags=G.Tags),G.TemplateGroupId&&(Y.templateGroupId=G.TemplateGroupId),G.StorageLocation&&(Y.storageLocation=G.StorageLocation),G.CoverURL&&(Y.coverUrl=G.CoverURL),G.TransCodeMode&&(Y.transCodeMode=G.TransCodeMode),G.UserData&&(Y.userData=G.UserData);var U=this,$="getUploadAuth";R.videoId?(Y.videoId=R.videoId,$="refreshUploadAuth"):R.isImage&&($="getImageUploadAuth"),h.default[$](Y,function(J){R.videoId=J.VideoId?J.VideoId:R.videoId,U.setUploadAuthAndAddress(R,J.UploadAuth,J.UploadAddress),U._state=i.VODSTATE.START},function(J){U._error(R,{name:J.Code,code:J.Code,message:J.Message,requestId:J.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(R,N,F,H){if(!R||!N||!F)return!1;var G=JSON.parse(r.default.decode(N));if(!(G.AccessKeyId&&G.AccessKeySecret&&G.SecurityToken&&G.Expiration))return console.error("uploadauth is invalid"),!1;var Y={},U=R;if(F){if(Y=JSON.parse(r.default.decode(F)),!Y.Endpoint||!Y.Bucket||!Y.FileName)return console.error("uploadAddress is invalid"),!1}else Y.Endpoint=U.endpoint,Y.Bucket=U.bucket,Y.FileName=U.object;this._ut="vod",this._uploadWay="vod",this.options.region=G.Region||this.options.region,this.init(G.AccessKeyId,G.AccessKeySecret,G.SecurityToken,G.Expiration),U.endpoint=U._endpoint?U._endpoint:Y.Endpoint,U.bucket=U._bucket?U._bucket:Y.Bucket,U.object=U._object?U._object:Y.FileName,U.region=this.options.region,H&&(U.videoId=H),this._ossUpload=null,this._uploadCore(U,R.retry),R.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(R,N,F,H){if(!N||!F||!H)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var G={accessKeyId:N,securityToken:H,accessKeySecret:F,videoId:R.object,requestId:R.ri,region:this.options.region},Y=this,U="refreshUploadAuth";R.isImage&&(U="getImageUploadAuth"),h.default[U](G,function($){Y.setUploadAuthAndAddress(R,$.UploadAuth,UploadAddress),Y._state=i.VODSTATE.START},function($){Y._error(R,{name:$.Code,code:$.Code,message:$.Message,requestId:$.RequestId})})}},{key:"_upload",value:function(R){var N=arguments.length>1&&arguments[1]!==void 0&&arguments[1],F=this.options;if(R.retry=N,F.onUploadstarted&&!N)try{var H=this._getCheckoutpoint(R);H&&H.state!=i.UPLOADSTATE.UPLOADING&&(R.checkpoint=H,R.videoId=H.videoId),F.onUploadstarted(R)}catch(G){console.log(G)}}},{key:"_uploadCore",value:function(R){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(R.state=i.UPLOADSTATE.UPLOADING,!this._ossUpload){R.endpoint=R.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var N=this;this._ossUpload=new o.default({bucket:R.bucket,endpoint:R.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(J,Z){N._error.call(N,J,Z)},oncomplete:function(J,Z){N._complete.call(N,J,Z)},onprogress:function(J,Z,P){N._progress.call(N,J,Z,P)}})}var F=x.default.getFileType(R.file.name),H=this._getCheckoutpoint(R),G="",Y="";H&&H.checkpoint&&(Y=H.state,G=H.videoId,H=H.checkpoint),H&&G==R.videoId&&Y!=i.UPLOADSTATE.UPLOADING&&(H.file=R.file,R.checkpoint=H,H.uploadId);var U=this._adjustPartSize(R);this._reportLog("20002",R,{ft:F,fs:R.file.size,bu:R.bucket,ok:R.object,vid:R.videoId||"",fn:R.file.name,fw:null,fh:null,ps:U});var $={headers:{"x-oss-notification":R.userData?R.userData:""},partSize:U,parallel:this.options.parallel};this._ossUpload.upload(R,$)}},{key:"_findUploadIndex",value:function(){for(var R=-1,N=0;N<this._uploadList.length;N++)if(this._uploadList[N].state==i.UPLOADSTATE.INIT){R=N;break}return R}},{key:"_error",value:function(R,N){if(N.name=="cancel")try{this.options.onUploadCanceled(R,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=i.VODSTATE.EXPIRE,R.state=i.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(R,N)}catch(H){console.log(H)}}return}if((N.name=="RequestTimeoutError"||N.name=="ConnectionTimeout"||N.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var F=this;return setTimeout(function(){F._uploadCore(R,!0)},1e3*F._retryDuration),void this._retryCount++}N.name=="NoSuchUploadError"&&this._removeCheckoutpoint(R),this._handleError(R,N)}}},{key:"_handleError",value:function(R,N){var F=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],H=i.UPLOADSTATE.FAIlURE;if(R.state!=i.UPLOADSTATE.CANCELED&&(R.state=i.UPLOADSTATE.FAIlURE,this._state=i.VODSTATE.FAILURE,this.options.onUploadFailed&&N&&N.code&&N.message))try{this.options.onUploadFailed(R,N.code,N.message)}catch(Y){console.log(Y)}if(F&&this._changeState(R,H),this._reportLog("20006",R,{code:N.name,message:N.message,requestId:N.requestId,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),this._reportLog("20004",R,{requestId:N.requestId,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),R.ri=w.default.create(),this._findUploadIndex()!=-1){var G=this;this._state=i.VODSTATE.START,setTimeout(function(){G.nextUpload()},100)}}},{key:"_complete",value:function(R,N){if(R.state=i.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(R)}catch(G){console.log(G)}var F=0;N&&N.res&&N.res.headers&&(F=N.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(R);var H=this;setTimeout(function(){H.nextUpload()},100),this._retryCount=0,this._reportLog("20003",R,{requestId:F})}},{key:"_progress",value:function(R,N,F){if(this.options.onUploadProgress)try{R.loaded=N.loaded,this.options.onUploadProgress(R,N.total,N.loaded)}catch(Z){console.log(Z)}var H=N.checkpoint,G=0;H&&(R.checkpoint=H,this._saveCheckoutpoint(R,H,i.UPLOADSTATE.UPLOADING),G=H.uploadId),this._retryCount=0;var Y=this._getPortNumber(H),U=0;if(F&&F.headers&&(U=F.headers["x-oss-request-id"]),N.loaded!=0&&this._reportLog("20007",R,{pn:Y,requestId:U}),N.loaded!=1&&this._reportLog("20005",R,{UploadId:G,pn:Y+1,pr:R.retry?1:0,fs:R.file.size,bu:R.bucket,ok:R.object,fn:R.file.name}),!this._invalidUserId&&!R.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var $={file:R.file,checkpoint:N,userId:this.options.userId,videoId:R.videoId,region:this.options.region,fileHash:R.fileHash};try{var J=this;O.default.upload($,function(){},function(Z){if((Z=JSON.parse(Z))&&Z.Code=="InvalidParameter"&&Z.Message.indexOf("UserId")>0){J._invalidUserId=!0;var P=Z.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(P)}})}catch(Z){console.log(Z)}}}},{key:"_getPortNumber",value:function(R){if(R){var N=R.doneParts;if(N&&N.length>0)return N[N.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(R){var N=this._getCheckoutpointKey(R);c.default.remove(N)}},{key:"_getCheckoutpoint",value:function(R){var N=this._getCheckoutpointKey(R),F=c.default.get(N);if(F)try{return JSON.parse(F)}catch(H){}return""}},{key:"_saveCheckoutpoint",value:function(R,N,F){if(N){var H=this._getCheckoutpointKey(R),G=R.file,Y={fileName:G.name,lastModified:G.lastModified,size:G.size,object:R.object,videoId:R.videoId,bucket:R.bucket,endpoint:R.endpoint,checkpoint:N,loaded:R.loaded,state:F};c.default.set(H,JSON.stringify(Y))}}},{key:"_changeState",value:function(R,N){var F=this._getCheckoutpoint(R);F&&((this._onbeforeunload=!0)&&(N=i.UPLOADSTATE.STOPED),this._saveCheckoutpoint(R,F.checkpoint,N))}},{key:"_getCheckoutpointKey",value:function(R){return"upload_"+R.file.lastModified+"_"+R.file.name+"_"+R.file.size}},{key:"_getCheckoutpointFromCloud",value:function(R,N,F){var H={userId:this.options.userId,uploadInfoList:[{FileName:R.file.name,FileSize:R.file.size,FileCreateTime:R.file.lastModified,FileHash:R.fileHash}],region:this.options.region};O.default.get(H,function(G){N(G)},F)}},{key:"_reportLog",value:function(R,N,F){F||(F={}),F.ri=N.ri,this._ut&&(F.ut=this._ut),this._log.log(R,F)}},{key:"_initEvent",value:function(){var R=this;window&&(window.onbeforeunload=function(N){if(R._onbeforeunload=!0,R._curIndex!=-1&&R._uploadList.length>R._curIndex){var F=R._uploadList[R._curIndex];R._changeState(F,i.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var R=0;R<this._uploadList.length;R++){var N=this._uploadList[R];N.state!=i.UPLOADSTATE.FAIlURE&&N.state!=i.UPLOADSTATE.STOPED||(N.state=i.UPLOADSTATE.INIT)}this._state=i.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(R){return R.file.size/this.options.partSize>1e4?R.file.size/9999:this.options.partSize}}]),M}());n.default=W},function(ue,n,k){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},n.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(ue,n,k){"use strict";function S(t){return t&&t.__esModule?t:{default:t}}function d(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function t(r,u){for(var c=0;c<u.length;c++){var p=u[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,p.key,p)}}return function(r,u,c){return u&&t(r.prototype,u),c&&t(r,c),r}}(),i=k(3),s=k(17),f=(S(s),k(1)),o=(S(f),function(){function t(r,u){if(d(this,t),r){this._config=r,this.create(this._config),this._uploadInfo=null,this._callback={};var c=function(){};this._callback.onerror=u.onerror||c,this._callback.oncomplete=u.oncomplete||c,this._callback.onprogress=u.onprogress||c}}return m(t,[{key:"create",value:function(r){if(r.endpoint=r.endpoint||this._config.endpoint,r.bucket=r.bucket||this._config.bucket,!(r.AccessKeyId&&r.AccessKeySecret&&r.endpoint&&r.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var u={accessKeyId:r.AccessKeyId,accessKeySecret:r.AccessKeySecret,stsToken:r.SecurityToken,endpoint:r.endpoint||this._config.endpoint,bucket:r.bucket||this._config.bucket,secure:!0,cname:r.cname};r.timeout&&(u.timeout=r.timeout),this.oss=new OSS.Wrapper(u)}},{key:"abort",value:function(r){if(r.checkpoint){var u=r.checkpoint.uploadId;this.oss.abortMultipartUpload(r.object,u)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(r,u){this._uploadInfo=r;var c=this,p=function(T,x,v){return function(w){c._progress(T,x,v),w()}},l={parallel:u.parallel||this._config.parallel||i.UPLOADDEFAULT.PARALLEL,partSize:u.partSize||this._config.partSize||i.UPLOADDEFAULT.PARTSIZE,progress:p};u.headers&&(l.headers=u.headers),r.checkpoint&&(l.checkpoint=r.checkpoint),r.bucket||(this.oss.options.bucket=r.bucket),r.endpoint||(this.oss.options.endpoint=r.endpoint),this.oss.multipartUpload(r.object,r.file,l).then(function(T,x){c._complete(T)}).catch(function(T){c.oss.cancel&&(c.oss&&c.oss.isCancel()?console.log("oss is cancel as error"):c.oss.cancel()),c._error(T)})}},{key:"header",value:function(r,u,c){this.oss.get(r.object).then(function(p){u(p)}).catch(function(p){c(p)})}},{key:"_progress",value:function(r,u,c){this._callback.onprogress(this._uploadInfo,{loaded:r,total:this._uploadInfo.file.size,checkpoint:u},c)}},{key:"_error",value:function(r){this._callback.onerror(this._uploadInfo,r)}},{key:"_complete",value:function(r){this._callback.oncomplete(this._uploadInfo,r)}}]),t}());n.default=o},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"format",value:function(s){if(arguments.length<2)return null;for(var f=arguments[1],o=1;o<arguments.length;o++){var t=new RegExp("\\{"+(o-1)+"\\}","gm");f=f.replace(t,arguments[o+1])}return{code:s,message:f}}},{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."}}}]),i}();n.default=m},function(ue,n,k){"use strict";(function(S){function d(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function s(f,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}return function(f,o,t){return o&&s(f.prototype,o),t&&s(f,t),f}}(),i=function(){function s(){d(this,s)}return m(s,null,[{key:"encode",value:function(f){return new S(f).toString("base64")}},{key:"decode",value:function(f){return new S(f,"base64").toString()}}]),s}();n.default=i}).call(n,k(19).Buffer)},function(ue,n,k){"use strict";(function(S){function d(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(C,e){if(d()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(C=new Uint8Array(e),C.__proto__=i.prototype):(C===null&&(C=new i(e)),C.length=e),C}function i(C,e,a){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(C,e,a);if(typeof C=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return t(this,C)}return s(this,C,e,a)}function s(C,e,a,A){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&e instanceof ArrayBuffer?c(C,e,a,A):typeof e=="string"?r(C,e,a):p(C,e)}function f(C){if(typeof C!="number")throw new TypeError('"size" argument must be a number');if(C<0)throw new RangeError('"size" argument must not be negative')}function o(C,e,a,A){return f(e),e<=0?m(C,e):a!==void 0?typeof A=="string"?m(C,e).fill(a,A):m(C,e).fill(a):m(C,e)}function t(C,e){if(f(e),C=m(C,e<0?0:0|l(e)),!i.TYPED_ARRAY_SUPPORT)for(var a=0;a<e;++a)C[a]=0;return C}function r(C,e,a){if(typeof a=="string"&&a!==""||(a="utf8"),!i.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var A=0|x(e,a);C=m(C,A);var g=C.write(e,a);return g!==A&&(C=C.slice(0,g)),C}function u(C,e){var a=e.length<0?0:0|l(e.length);C=m(C,a);for(var A=0;A<a;A+=1)C[A]=255&e[A];return C}function c(C,e,a,A){if(e.byteLength,a<0||e.byteLength<a)throw new RangeError("'offset' is out of bounds");if(e.byteLength<a+(A||0))throw new RangeError("'length' is out of bounds");return e=a===void 0&&A===void 0?new Uint8Array(e):A===void 0?new Uint8Array(e,a):new Uint8Array(e,a,A),i.TYPED_ARRAY_SUPPORT?(C=e,C.__proto__=i.prototype):C=u(C,e),C}function p(C,e){if(i.isBuffer(e)){var a=0|l(e.length);return C=m(C,a),C.length===0||e.copy(C,0,0,a),C}if(e){if(typeof ArrayBuffer!="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||oe(e.length)?m(C,0):u(C,e);if(e.type==="Buffer"&&X(e.data))return u(C,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(C){if(C>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|C}function T(C){return+C!=C&&(C=0),i.alloc(+C)}function x(C,e){if(i.isBuffer(C))return C.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(C)||C instanceof ArrayBuffer))return C.byteLength;typeof C!="string"&&(C=""+C);var a=C.length;if(a===0)return 0;for(var A=!1;;)switch(e){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return re(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return ee(C).length;default:if(A)return re(C).length;e=(""+e).toLowerCase(),A=!0}}function v(C,e,a){var A=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,e>>>=0,a<=e))return"";for(C||(C="utf8");;)switch(C){case"hex":return Y(this,e,a);case"utf8":case"utf-8":return N(this,e,a);case"ascii":return H(this,e,a);case"latin1":case"binary":return G(this,e,a);case"base64":return R(this,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,a);default:if(A)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),A=!0}}function w(C,e,a){var A=C[e];C[e]=C[a],C[a]=A}function E(C,e,a,A,g){if(C.length===0)return-1;if(typeof a=="string"?(A=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=g?0:C.length-1),a<0&&(a=C.length+a),a>=C.length){if(g)return-1;a=C.length-1}else if(a<0){if(!g)return-1;a=0}if(typeof e=="string"&&(e=i.from(e,A)),i.isBuffer(e))return e.length===0?-1:h(C,e,a,A,g);if(typeof e=="number")return e&=255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(C,e,a):Uint8Array.prototype.lastIndexOf.call(C,e,a):h(C,[e],a,A,g);throw new TypeError("val must be string, number or Buffer")}function h(C,e,a,A,g){function y(ve,de){return V===1?ve[de]:ve.readUInt16BE(de*V)}var V=1,q=C.length,le=e.length;if(A!==void 0&&((A=String(A).toLowerCase())==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(C.length<2||e.length<2)return-1;V=2,q/=2,le/=2,a/=2}var pe;if(g){var he=-1;for(pe=a;pe<q;pe++)if(y(C,pe)===y(e,he===-1?0:pe-he)){if(he===-1&&(he=pe),pe-he+1===le)return he*V}else he!==-1&&(pe-=pe-he),he=-1}else for(a+le>q&&(a=q-le),pe=a;pe>=0;pe--){for(var me=!0,be=0;be<le;be++)if(y(C,pe+be)!==y(e,be)){me=!1;break}if(me)return pe}return-1}function _(C,e,a,A){a=Number(a)||0;var g=C.length-a;A?(A=Number(A))>g&&(A=g):A=g;var y=e.length;if(y%2!=0)throw new TypeError("Invalid hex string");A>y/2&&(A=y/2);for(var V=0;V<A;++V){var q=parseInt(e.substr(2*V,2),16);if(isNaN(q))return V;C[a+V]=q}return V}function O(C,e,a,A){return te(re(e,C.length-a),C,a,A)}function I(C,e,a,A){return te(ce(e),C,a,A)}function b(C,e,a,A){return I(C,e,a,A)}function W(C,e,a,A){return te(ee(e),C,a,A)}function M(C,e,a,A){return te(fe(e,C.length-a),C,a,A)}function R(C,e,a){return e===0&&a===C.length?L.fromByteArray(C):L.fromByteArray(C.slice(e,a))}function N(C,e,a){a=Math.min(C.length,a);for(var A=[],g=e;g<a;){var y=C[g],V=null,q=y>239?4:y>223?3:y>191?2:1;if(g+q<=a){var le,pe,he,me;switch(q){case 1:y<128&&(V=y);break;case 2:le=C[g+1],(192&le)==128&&(me=(31&y)<<6|63&le)>127&&(V=me);break;case 3:le=C[g+1],pe=C[g+2],(192&le)==128&&(192&pe)==128&&(me=(15&y)<<12|(63&le)<<6|63&pe)>2047&&(me<55296||me>57343)&&(V=me);break;case 4:le=C[g+1],pe=C[g+2],he=C[g+3],(192&le)==128&&(192&pe)==128&&(192&he)==128&&(me=(15&y)<<18|(63&le)<<12|(63&pe)<<6|63&he)>65535&&me<1114112&&(V=me)}}V===null?(V=65533,q=1):V>65535&&(V-=65536,A.push(V>>>10&1023|55296),V=56320|1023&V),A.push(V),g+=q}return F(A)}function F(C){var e=C.length;if(e<=Q)return String.fromCharCode.apply(String,C);for(var a="",A=0;A<e;)a+=String.fromCharCode.apply(String,C.slice(A,A+=Q));return a}function H(C,e,a){var A="";a=Math.min(C.length,a);for(var g=e;g<a;++g)A+=String.fromCharCode(127&C[g]);return A}function G(C,e,a){var A="";a=Math.min(C.length,a);for(var g=e;g<a;++g)A+=String.fromCharCode(C[g]);return A}function Y(C,e,a){var A=C.length;(!e||e<0)&&(e=0),(!a||a<0||a>A)&&(a=A);for(var g="",y=e;y<a;++y)g+=se(C[y]);return g}function U(C,e,a){for(var A=C.slice(e,a),g="",y=0;y<A.length;y+=2)g+=String.fromCharCode(A[y]+256*A[y+1]);return g}function $(C,e,a){if(C%1!=0||C<0)throw new RangeError("offset is not uint");if(C+e>a)throw new RangeError("Trying to access beyond buffer length")}function J(C,e,a,A,g,y){if(!i.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>g||e<y)throw new RangeError('"value" argument is out of bounds');if(a+A>C.length)throw new RangeError("Index out of range")}function Z(C,e,a,A){e<0&&(e=65535+e+1);for(var g=0,y=Math.min(C.length-a,2);g<y;++g)C[a+g]=(e&255<<8*(A?g:1-g))>>>8*(A?g:1-g)}function P(C,e,a,A){e<0&&(e=4294967295+e+1);for(var g=0,y=Math.min(C.length-a,4);g<y;++g)C[a+g]=e>>>8*(A?g:3-g)&255}function D(C,e,a,A,g,y){if(a+A>C.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function B(C,e,a,A,g){return g||D(C,e,a,4,34028234663852886e22,-34028234663852886e22),j.write(C,e,a,A,23,4),a+4}function z(C,e,a,A,g){return g||D(C,e,a,8,17976931348623157e292,-17976931348623157e292),j.write(C,e,a,A,52,8),a+8}function ne(C){if(C=K(C).replace(ie,""),C.length<2)return"";for(;C.length%4!=0;)C+="=";return C}function K(C){return C.trim?C.trim():C.replace(/^\s+|\s+$/g,"")}function se(C){return C<16?"0"+C.toString(16):C.toString(16)}function re(C,e){e=e||1/0;for(var a,A=C.length,g=null,y=[],V=0;V<A;++V){if((a=C.charCodeAt(V))>55295&&a<57344){if(!g){if(a>56319){(e-=3)>-1&&y.push(239,191,189);continue}if(V+1===A){(e-=3)>-1&&y.push(239,191,189);continue}g=a;continue}if(a<56320){(e-=3)>-1&&y.push(239,191,189),g=a;continue}a=65536+(g-55296<<10|a-56320)}else g&&(e-=3)>-1&&y.push(239,191,189);if(g=null,a<128){if((e-=1)<0)break;y.push(a)}else if(a<2048){if((e-=2)<0)break;y.push(a>>6|192,63&a|128)}else if(a<65536){if((e-=3)<0)break;y.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;y.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return y}function ce(C){for(var e=[],a=0;a<C.length;++a)e.push(255&C.charCodeAt(a));return e}function fe(C,e){for(var a,A,g,y=[],V=0;V<C.length&&!((e-=2)<0);++V)a=C.charCodeAt(V),A=a>>8,g=a%256,y.push(g),y.push(A);return y}function ee(C){return L.toByteArray(ne(C))}function te(C,e,a,A){for(var g=0;g<A&&!(g+a>=e.length||g>=C.length);++g)e[g+a]=C[g];return g}function oe(C){return C!==C}var L=k(21),j=k(22),X=k(23);n.Buffer=i,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=S.TYPED_ARRAY_SUPPORT!==void 0?S.TYPED_ARRAY_SUPPORT:function(){try{var C=new Uint8Array(1);return C.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},C.foo()===42&&typeof C.subarray=="function"&&C.subarray(1,1).byteLength===0}catch(e){return!1}}(),n.kMaxLength=d(),i.poolSize=8192,i._augment=function(C){return C.__proto__=i.prototype,C},i.from=function(C,e,a){return s(null,C,e,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(C,e,a){return o(null,C,e,a)},i.allocUnsafe=function(C){return t(null,C)},i.allocUnsafeSlow=function(C){return t(null,C)},i.isBuffer=function(C){return!(C==null||!C._isBuffer)},i.compare=function(C,e){if(!i.isBuffer(C)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(C===e)return 0;for(var a=C.length,A=e.length,g=0,y=Math.min(a,A);g<y;++g)if(C[g]!==e[g]){a=C[g],A=e[g];break}return a<A?-1:A<a?1:0},i.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(C,e){if(!X(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return i.alloc(0);var a;if(e===void 0)for(e=0,a=0;a<C.length;++a)e+=C[a].length;var A=i.allocUnsafe(e),g=0;for(a=0;a<C.length;++a){var y=C[a];if(!i.isBuffer(y))throw new TypeError('"list" argument must be an Array of Buffers');y.copy(A,g),g+=y.length}return A},i.byteLength=x,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<C;e+=2)w(this,e,e+1);return this},i.prototype.swap32=function(){var C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<C;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},i.prototype.swap64=function(){var C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<C;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},i.prototype.toString=function(){var C=0|this.length;return C===0?"":arguments.length===0?N(this,0,C):v.apply(this,arguments)},i.prototype.equals=function(C){if(!i.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||i.compare(this,C)===0},i.prototype.inspect=function(){var C="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(C=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(C+=" ... ")),"<Buffer "+C+">"},i.prototype.compare=function(C,e,a,A,g){if(!i.isBuffer(C))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),a===void 0&&(a=C?C.length:0),A===void 0&&(A=0),g===void 0&&(g=this.length),e<0||a>C.length||A<0||g>this.length)throw new RangeError("out of range index");if(A>=g&&e>=a)return 0;if(A>=g)return-1;if(e>=a)return 1;if(e>>>=0,a>>>=0,A>>>=0,g>>>=0,this===C)return 0;for(var y=g-A,V=a-e,q=Math.min(y,V),le=this.slice(A,g),pe=C.slice(e,a),he=0;he<q;++he)if(le[he]!==pe[he]){y=le[he],V=pe[he];break}return y<V?-1:V<y?1:0},i.prototype.includes=function(C,e,a){return this.indexOf(C,e,a)!==-1},i.prototype.indexOf=function(C,e,a){return E(this,C,e,a,!0)},i.prototype.lastIndexOf=function(C,e,a){return E(this,C,e,a,!1)},i.prototype.write=function(C,e,a,A){if(e===void 0)A="utf8",a=this.length,e=0;else if(a===void 0&&typeof e=="string")A=e,a=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(a)?(a|=0,A===void 0&&(A="utf8")):(A=a,a=void 0)}var g=this.length-e;if((a===void 0||a>g)&&(a=g),C.length>0&&(a<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var y=!1;;)switch(A){case"hex":return _(this,C,e,a);case"utf8":case"utf-8":return O(this,C,e,a);case"ascii":return I(this,C,e,a);case"latin1":case"binary":return b(this,C,e,a);case"base64":return W(this,C,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,C,e,a);default:if(y)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),y=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;i.prototype.slice=function(C,e){var a=this.length;C=~~C,e=e===void 0?a:~~e,C<0?(C+=a)<0&&(C=0):C>a&&(C=a),e<0?(e+=a)<0&&(e=0):e>a&&(e=a),e<C&&(e=C);var A;if(i.TYPED_ARRAY_SUPPORT)A=this.subarray(C,e),A.__proto__=i.prototype;else{var g=e-C;A=new i(g,void 0);for(var y=0;y<g;++y)A[y]=this[y+C]}return A},i.prototype.readUIntLE=function(C,e,a){C|=0,e|=0,a||$(C,e,this.length);for(var A=this[C],g=1,y=0;++y<e&&(g*=256);)A+=this[C+y]*g;return A},i.prototype.readUIntBE=function(C,e,a){C|=0,e|=0,a||$(C,e,this.length);for(var A=this[C+--e],g=1;e>0&&(g*=256);)A+=this[C+--e]*g;return A},i.prototype.readUInt8=function(C,e){return e||$(C,1,this.length),this[C]},i.prototype.readUInt16LE=function(C,e){return e||$(C,2,this.length),this[C]|this[C+1]<<8},i.prototype.readUInt16BE=function(C,e){return e||$(C,2,this.length),this[C]<<8|this[C+1]},i.prototype.readUInt32LE=function(C,e){return e||$(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},i.prototype.readUInt32BE=function(C,e){return e||$(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},i.prototype.readIntLE=function(C,e,a){C|=0,e|=0,a||$(C,e,this.length);for(var A=this[C],g=1,y=0;++y<e&&(g*=256);)A+=this[C+y]*g;return g*=128,A>=g&&(A-=Math.pow(2,8*e)),A},i.prototype.readIntBE=function(C,e,a){C|=0,e|=0,a||$(C,e,this.length);for(var A=e,g=1,y=this[C+--A];A>0&&(g*=256);)y+=this[C+--A]*g;return g*=128,y>=g&&(y-=Math.pow(2,8*e)),y},i.prototype.readInt8=function(C,e){return e||$(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},i.prototype.readInt16LE=function(C,e){e||$(C,2,this.length);var a=this[C]|this[C+1]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt16BE=function(C,e){e||$(C,2,this.length);var a=this[C+1]|this[C]<<8;return 32768&a?4294901760|a:a},i.prototype.readInt32LE=function(C,e){return e||$(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},i.prototype.readInt32BE=function(C,e){return e||$(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},i.prototype.readFloatLE=function(C,e){return e||$(C,4,this.length),j.read(this,C,!0,23,4)},i.prototype.readFloatBE=function(C,e){return e||$(C,4,this.length),j.read(this,C,!1,23,4)},i.prototype.readDoubleLE=function(C,e){return e||$(C,8,this.length),j.read(this,C,!0,52,8)},i.prototype.readDoubleBE=function(C,e){return e||$(C,8,this.length),j.read(this,C,!1,52,8)},i.prototype.writeUIntLE=function(C,e,a,A){C=+C,e|=0,a|=0,!A&&J(this,C,e,a,Math.pow(2,8*a)-1,0);var g=1,y=0;for(this[e]=255&C;++y<a&&(g*=256);)this[e+y]=C/g&255;return e+a},i.prototype.writeUIntBE=function(C,e,a,A){C=+C,e|=0,a|=0,!A&&J(this,C,e,a,Math.pow(2,8*a)-1,0);var g=a-1,y=1;for(this[e+g]=255&C;--g>=0&&(y*=256);)this[e+g]=C/y&255;return e+a},i.prototype.writeUInt8=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),this[e]=255&C,e+1},i.prototype.writeUInt16LE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&C,this[e+1]=C>>>8):Z(this,C,e,!0),e+2},i.prototype.writeUInt16BE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=C>>>8,this[e+1]=255&C):Z(this,C,e,!1),e+2},i.prototype.writeUInt32LE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=C>>>24,this[e+2]=C>>>16,this[e+1]=C>>>8,this[e]=255&C):P(this,C,e,!0),e+4},i.prototype.writeUInt32BE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=C>>>24,this[e+1]=C>>>16,this[e+2]=C>>>8,this[e+3]=255&C):P(this,C,e,!1),e+4},i.prototype.writeIntLE=function(C,e,a,A){if(C=+C,e|=0,!A){var g=Math.pow(2,8*a-1);J(this,C,e,a,g-1,-g)}var y=0,V=1,q=0;for(this[e]=255&C;++y<a&&(V*=256);)C<0&&q===0&&this[e+y-1]!==0&&(q=1),this[e+y]=(C/V>>0)-q&255;return e+a},i.prototype.writeIntBE=function(C,e,a,A){if(C=+C,e|=0,!A){var g=Math.pow(2,8*a-1);J(this,C,e,a,g-1,-g)}var y=a-1,V=1,q=0;for(this[e+y]=255&C;--y>=0&&(V*=256);)C<0&&q===0&&this[e+y+1]!==0&&(q=1),this[e+y]=(C/V>>0)-q&255;return e+a},i.prototype.writeInt8=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(C=Math.floor(C)),C<0&&(C=255+C+1),this[e]=255&C,e+1},i.prototype.writeInt16LE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&C,this[e+1]=C>>>8):Z(this,C,e,!0),e+2},i.prototype.writeInt16BE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=C>>>8,this[e+1]=255&C):Z(this,C,e,!1),e+2},i.prototype.writeInt32LE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&C,this[e+1]=C>>>8,this[e+2]=C>>>16,this[e+3]=C>>>24):P(this,C,e,!0),e+4},i.prototype.writeInt32BE=function(C,e,a){return C=+C,e|=0,a||J(this,C,e,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),i.TYPED_ARRAY_SUPPORT?(this[e]=C>>>24,this[e+1]=C>>>16,this[e+2]=C>>>8,this[e+3]=255&C):P(this,C,e,!1),e+4},i.prototype.writeFloatLE=function(C,e,a){return B(this,C,e,!0,a)},i.prototype.writeFloatBE=function(C,e,a){return B(this,C,e,!1,a)},i.prototype.writeDoubleLE=function(C,e,a){return z(this,C,e,!0,a)},i.prototype.writeDoubleBE=function(C,e,a){return z(this,C,e,!1,a)},i.prototype.copy=function(C,e,a,A){if(a||(a=0),A||A===0||(A=this.length),e>=C.length&&(e=C.length),e||(e=0),A>0&&A<a&&(A=a),A===a||C.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=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),C.length-e<A-a&&(A=C.length-e+a);var g,y=A-a;if(this===C&&a<e&&e<A)for(g=y-1;g>=0;--g)C[g+e]=this[g+a];else if(y<1e3||!i.TYPED_ARRAY_SUPPORT)for(g=0;g<y;++g)C[g+e]=this[g+a];else Uint8Array.prototype.set.call(C,this.subarray(a,a+y),e);return y},i.prototype.fill=function(C,e,a,A){if(typeof C=="string"){if(typeof e=="string"?(A=e,e=0,a=this.length):typeof a=="string"&&(A=a,a=this.length),C.length===1){var g=C.charCodeAt(0);g<256&&(C=g)}if(A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!i.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else typeof C=="number"&&(C&=255);if(e<0||this.length<e||this.length<a)throw new RangeError("Out of range index");if(a<=e)return this;e>>>=0,a=a===void 0?this.length:a>>>0,C||(C=0);var y;if(typeof C=="number")for(y=e;y<a;++y)this[y]=C;else{var V=i.isBuffer(C)?C:re(new i(C,A).toString()),q=V.length;for(y=0;y<a-e;++y)this[y+e]=V[y%q]}return this};var ie=/[^+\/0-9A-Za-z-_]/g}).call(n,k(20))},function(ue,n){var k;k=function(){return this}();try{k=k||Function("return this")()||(0,eval)("this")}catch(S){typeof window=="object"&&(k=window)}ue.exports=k},function(ue,n,k){"use strict";function S(l){var T=l.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return l[T-2]==="="?2:l[T-1]==="="?1:0}function d(l){return 3*l.length/4-S(l)}function m(l){var T,x,v,w,E,h=l.length;w=S(l),E=new r(3*h/4-w),x=w>0?h-4:h;var _=0;for(T=0;T<x;T+=4)v=t[l.charCodeAt(T)]<<18|t[l.charCodeAt(T+1)]<<12|t[l.charCodeAt(T+2)]<<6|t[l.charCodeAt(T+3)],E[_++]=v>>16&255,E[_++]=v>>8&255,E[_++]=255&v;return w===2?(v=t[l.charCodeAt(T)]<<2|t[l.charCodeAt(T+1)]>>4,E[_++]=255&v):w===1&&(v=t[l.charCodeAt(T)]<<10|t[l.charCodeAt(T+1)]<<4|t[l.charCodeAt(T+2)]>>2,E[_++]=v>>8&255,E[_++]=255&v),E}function i(l){return o[l>>18&63]+o[l>>12&63]+o[l>>6&63]+o[63&l]}function s(l,T,x){for(var v,w=[],E=T;E<x;E+=3)v=(l[E]<<16)+(l[E+1]<<8)+l[E+2],w.push(i(v));return w.join("")}function f(l){for(var T,x=l.length,v=x%3,w="",E=[],h=0,_=x-v;h<_;h+=16383)E.push(s(l,h,h+16383>_?_:h+16383));return v===1?(T=l[x-1],w+=o[T>>2],w+=o[T<<4&63],w+="=="):v===2&&(T=(l[x-2]<<8)+l[x-1],w+=o[T>>10],w+=o[T>>4&63],w+=o[T<<2&63],w+="="),E.push(w),E.join("")}n.byteLength=d,n.toByteArray=m,n.fromByteArray=f;for(var o=[],t=[],r=typeof Uint8Array!="undefined"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,p=u.length;c<p;++c)o[c]=u[c],t[u.charCodeAt(c)]=c;t[45]=62,t[95]=63},function(ue,n){n.read=function(k,S,d,m,i){var s,f,o=8*i-m-1,t=(1<<o)-1,r=t>>1,u=-7,c=d?i-1:0,p=d?-1:1,l=k[S+c];for(c+=p,s=l&(1<<-u)-1,l>>=-u,u+=o;u>0;s=256*s+k[S+c],c+=p,u-=8);for(f=s&(1<<-u)-1,s>>=-u,u+=m;u>0;f=256*f+k[S+c],c+=p,u-=8);if(s===0)s=1-r;else{if(s===t)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,m),s-=r}return(l?-1:1)*f*Math.pow(2,s-m)},n.write=function(k,S,d,m,i,s){var f,o,t,r=8*s-i-1,u=(1<<r)-1,c=u>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=m?0:s-1,T=m?1:-1,x=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(o=isNaN(S)?1:0,f=u):(f=Math.floor(Math.log(S)/Math.LN2),S*(t=Math.pow(2,-f))<1&&(f--,t*=2),S+=f+c>=1?p/t:p*Math.pow(2,1-c),S*t>=2&&(f++,t/=2),f+c>=u?(o=0,f=u):f+c>=1?(o=(S*t-1)*Math.pow(2,i),f+=c):(o=S*Math.pow(2,c-1)*Math.pow(2,i),f=0));i>=8;k[d+l]=255&o,l+=T,o/=256,i-=8);for(f=f<<i|o,r+=i;r>0;k[d+l]=255&f,l+=T,f/=256,r-=8);k[d+l-T]|=128*x}},function(ue,n){var k={}.toString;ue.exports=Array.isArray||function(S){return k.call(S)=="[object Array]"}},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"set",value:function(s,f){try{window.localStorage&&localStorage.setItem(s,f)}catch(o){window[s+"_localStorage"]=f}}},{key:"get",value:function(s){try{if(window.localStorage)return localStorage.getItem(s)}catch(f){return window[s+"_localStorage"]}return""}},{key:"remove",value:function(s){try{window.localStorage&&localStorage.removeItem(s)}catch(f){delete window[s+"_localStorage"]}}}]),i}();n.default=m},function(ue,n,k){"use strict";function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function i(s,f){for(var o=0;o<f.length;o++){var t=f[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}return function(s,f,o){return f&&i(s.prototype,f),o&&i(s,o),s}}(),m=function(){function i(){S(this,i)}return d(i,null,[{key:"get",value:function(s){for(var f=s+"",o=document.cookie.split(";"),t=0;t<o.length;t++){var r=o[t].trim();if(r.indexOf(f)==0)return unescape(r.substring(f.length+1,r.length))}return""}},{key:"set",value:function(s,f,o){var t=new Date;t.setTime(t.getTime()+24*o*60*60*1e3);var r="expires="+t.toGMTString();document.cookie=s+"="+escape(f)+"; "+r}}]),i}();n.default=m},function(ue,n,k){"use strict";function S(r){return r&&r.__esModule?r:{default:r}}function d(r,u){if(!(r instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function r(u,c){for(var p=0;p<c.length;p++){var l=c[p];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(u,l.key,l)}}return function(u,c,p){return c&&r(u.prototype,c),p&&r(u,p),u}}(),i=k(8),s=S(i),f=k(9),o=S(f),t=function(){function r(){d(this,r)}return m(r,null,[{key:"refreshUploadAuth",value:function(u,c,p){var l=(o.default.randomUUID(),o.default.randomUUID()),T={AccessKeyId:u.accessKeyId,SecurityToken:u.securityToken,Action:"RefreshUploadVideo",VideoId:u.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:l,RequestId:u.requestId},x=o.default.makeUTF8sort(T,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(T,u.accessKeySecret)),v="https://vod."+u.region+".aliyuncs.com/?"+x;s.default.get(v,function(E){var E=JSON.parse(E);c&&c(E)},function(w){if(p){var E=JSON.parse(w);p(E)}})}},{key:"getUploadAuth",value:function(u,c,p){var l=(o.default.randomUUID(),o.default.randomUUID()),T={AccessKeyId:u.accessKeyId,SecurityToken:u.securityToken,Action:"CreateUploadVideo",Title:u.title,FileName:u.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:l,RequestId:u.requestId};u.fileSize&&(T.FileSize=u.fileSize),u.description&&(T.Description=u.description),u.cateId&&(T.CateId=u.cateId),u.tags&&(T.Tags=u.tags),u.templateGroupId&&(T.TemplateGroupId=u.templateGroupId),u.storageLocation&&(T.StorageLocation=u.storageLocation),u.coverUrl&&(T.CoverURL=u.coverUrl),u.transCodeMode&&(T.TransCodeMode=u.transCodeMode),u.userData&&(T.UserData=JSON.stringify(u.userData));var x=o.default.makeUTF8sort(T,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(T,u.accessKeySecret)),v="https://vod."+u.region+".aliyuncs.com/?"+x;s.default.get(v,function(w){try{w=JSON.parse(w)}catch(E){if(p)return void p({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}c&&c(w)},function(w){if(p){var E={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{E=JSON.parse(w)}catch(h){}p(E)}})}},{key:"getImageUploadAuth",value:function(u,c,p){var l=(o.default.randomUUID(),o.default.randomUUID()),T={AccessKeyId:u.accessKeyId,SecurityToken:u.securityToken,Action:"CreateUploadImage",ImageType:u.imageType?u.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:l,RequestId:u.requestId};u.title&&(T.Title=u.title),u.imageExt&&(T.ImageExt=u.imageExt),u.tags&&(T.Tags=u.tags),u.storageLocation&&(T.StorageLocation=u.storageLocation);var x=o.default.makeUTF8sort(T,"=","&")+"&Signature="+o.default.aliyunEncodeURI(o.default.makeChangeSiga(T,u.accessKeySecret)),v="https://vod."+u.region+".aliyuncs.com/?"+x;s.default.get(v,function(w){w=JSON.parse(w),c&&c(w)},function(w){if(p){var E=JSON.parse(w);p(E)}})}}]),r}();n.default=t},function(ue,n,k){(function(S,d,m){ue.exports=n=d(k(0),k(28),k(29))})(0,function(S){return S.HmacSHA1})},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return function(){var d=S,m=d.lib,i=m.WordArray,s=m.Hasher,f=d.algo,o=[],t=f.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,u){for(var c=this._hash.words,p=c[0],l=c[1],T=c[2],x=c[3],v=c[4],w=0;w<80;w++){if(w<16)o[w]=0|r[u+w];else{var E=o[w-3]^o[w-8]^o[w-14]^o[w-16];o[w]=E<<1|E>>>31}var h=(p<<5|p>>>27)+v+o[w];h+=w<20?1518500249+(l&T|~l&x):w<40?1859775393+(l^T^x):w<60?(l&T|l&x|T&x)-1894007588:(l^T^x)-899497514,v=x,x=T,T=l<<30|l>>>2,l=p,p=h}c[0]=c[0]+p|0,c[1]=c[1]+l|0,c[2]=c[2]+T|0,c[3]=c[3]+x|0,c[4]=c[4]+v|0},_doFinalize:function(){var r=this._data,u=r.words,c=8*this._nDataBytes,p=8*r.sigBytes;return u[p>>>5]|=128<<24-p%32,u[14+(p+64>>>9<<4)]=Math.floor(c/4294967296),u[15+(p+64>>>9<<4)]=c,r.sigBytes=4*u.length,this._process(),this._hash},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});d.SHA1=s._createHelper(t),d.HmacSHA1=s._createHmacHelper(t)}(),S.SHA1})},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){(function(){var d=S,m=d.lib,i=m.Base,s=d.enc,f=s.Utf8,o=d.algo;o.HMAC=i.extend({init:function(t,r){t=this._hasher=new t.init,typeof r=="string"&&(r=f.parse(r));var u=t.blockSize,c=4*u;r.sigBytes>c&&(r=t.finalize(r)),r.clamp();for(var p=this._oKey=r.clone(),l=this._iKey=r.clone(),T=p.words,x=l.words,v=0;v<u;v++)T[v]^=1549556828,x[v]^=909522486;p.sigBytes=l.sigBytes=c,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var r=this._hasher,u=r.finalize(t);return r.reset(),r.finalize(this._oKey.clone().concat(u))}})})()})},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return function(){function d(o,t,r){for(var u=[],c=0,p=0;p<t;p++)if(p%4){var l=r[o.charCodeAt(p-1)]<<p%4*2,T=r[o.charCodeAt(p)]>>>6-p%4*2;u[c>>>2]|=(l|T)<<24-c%4*8,c++}return s.create(u,c)}var m=S,i=m.lib,s=i.WordArray,f=m.enc;f.Base64={stringify:function(o){var t=o.words,r=o.sigBytes,u=this._map;o.clamp();for(var c=[],p=0;p<r;p+=3)for(var l=t[p>>>2]>>>24-p%4*8&255,T=t[p+1>>>2]>>>24-(p+1)%4*8&255,x=t[p+2>>>2]>>>24-(p+2)%4*8&255,v=l<<16|T<<8|x,w=0;w<4&&p+.75*w<r;w++)c.push(u.charAt(v>>>6*(3-w)&63));var E=u.charAt(64);if(E)for(;c.length%4;)c.push(E);return c.join("")},parse:function(o){var t=o.length,r=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var c=0;c<r.length;c++)u[r.charCodeAt(c)]=c}var p=r.charAt(64);if(p){var l=o.indexOf(p);l!==-1&&(t=l)}return d(o,t,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),S.enc.Base64})},function(ue,n,k){"use strict";function S(_){return _&&_.__esModule?_:{default:_}}function d(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var m=function(){function _(O,I){for(var b=0;b<I.length;b++){var W=I[b];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(O,W.key,W)}}return function(O,I,b){return I&&_(O.prototype,I),b&&_(O,b),O}}(),i=k(8),s=S(i),f=k(7),o=S(f),t=k(4),r=S(t),u=k(6),c=S(u),p=k(1),l=S(p),T=k(9),x=S(T),v=k(2),w=k(11),E=k(10),h=function(){function _(){d(this,_)}return m(_,null,[{key:"getAuthInfo",value:function(O,I,b){var W=O+"|f#Ylm&^1TppeRhLg|"+b;return I&&(W=O+"|"+I+"|f#Ylm&^1TppeRhLg|"+b),v(E.parse(W)).toString(w)}},{key:"upload",value:function(O,I,b){var W=l.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),R=r.default.getClientId();R=r.default.setClientId(R);var N=_.getAuthInfo(O.userId,R,M),F=x.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:o.default.browser.name+(o.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:M,Timestamp:W,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:F};R&&(H.ClientId=R);var G=x.default.makeUTF8sort(H,"=","&")+"&Signature="+x.default.aliyunEncodeURI(x.default.makeChangeSiga(H,O.accessKeySecret)),Y="https://vod."+O.region+".aliyuncs.com/?"+G;s.default.get(Y,function(U){I&&I()},function(U){U&&(b(U),console.log(U))})}},{key:"get",value:function(O,I,b){var W=l.default.ISODateString(new Date),M=Math.floor(new Date().valueOf()/1e3),R=r.default.getClientId(),N=_.getAuthInfo(O.userId,R,M),F=x.default.randomUUID(),H={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:o.default.browser.name+(o.default.browser.version||""),AppVersion:c.default.version,AuthTimestamp:M,Timestamp:W,AuthInfo:N,UserId:O.userId,UploadInfoList:JSON.stringify(O.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:F};R&&(H.ClientId=R);var G=x.default.makeUTF8sort(H,"=","&")+"&Signature="+x.default.aliyunEncodeURI(x.default.makeChangeSiga(H,O.accessKeySecret)),Y="https://vod."+O.region+".aliyuncs.com/?"+G;s.default.get(Y,function(U){var $={},J=R;U=U?JSON.parse(U):{},U.UploadProgress&&U.UploadProgress.UploadProgressList&&U.UploadProgress.UploadProgressList.length>0&&($=U.UploadProgress.UploadProgressList[0],J=$.ClientId),r.default.setClientId(J),I&&I($)},function(U){U&&(b(U),console.log(U))})}}]),_}();n.default=h},function(ue,n,k){"use strict";function S(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var d=function(){function f(o,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}return function(o,t,r){return t&&f(o.prototype,t),r&&f(o,r),o}}(),m=k(2),i=k(33),s=(k(11),function(){function f(){S(this,f)}return d(f,null,[{key:"getMd5",value:function(o,t,r){var u=new FileReader;u.onload=function(l){try{if(l&&l.target){var T=m(i.parse(l.target.result)),x=T.toString();t(x)}}catch(v){console.log(v)}},u.onerror=function(l){console.log(l),errorCallback(l)};var c=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,p=c.call(o,0,1024);u.readAsBinaryString(p)}}]),f}());n.default=s},function(ue,n,k){(function(S,d){ue.exports=n=d(k(0))})(0,function(S){return S.enc.Latin1})}])},16632:function(Ve,Pe,ae){"use strict";var ue=ae(54476),n=ae(33885),k=ae(20068),S=ae(42978),d=ae(75931),m=ae(92310),i=ae.n(m),s=ae(18929),f=ae(59301),o=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],t=(0,f.forwardRef)(function(r,u){var c=r.prefixCls,p=c===void 0?"rc-checkbox":c,l=r.className,T=r.style,x=r.checked,v=r.disabled,w=r.defaultChecked,E=w===void 0?!1:w,h=r.type,_=h===void 0?"checkbox":h,O=r.title,I=r.onChange,b=(0,d.Z)(r,o),W=(0,f.useRef)(null),M=(0,f.useRef)(null),R=(0,s.Z)(E,{value:x}),N=(0,S.Z)(R,2),F=N[0],H=N[1];(0,f.useImperativeHandle)(u,function(){return{focus:function($){var J;(J=W.current)===null||J===void 0||J.focus($)},blur:function(){var $;($=W.current)===null||$===void 0||$.blur()},input:W.current,nativeElement:M.current}});var G=i()(p,l,(0,k.Z)((0,k.Z)({},"".concat(p,"-checked"),F),"".concat(p,"-disabled"),v)),Y=function($){v||("checked"in r||H($.target.checked),I==null||I({target:(0,n.Z)((0,n.Z)({},r),{},{type:_,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return f.createElement("span",{className:G,title:O,style:T,ref:M},f.createElement("input",(0,ue.Z)({},b,{className:"".concat(p,"-input"),ref:W,onChange:Y,disabled:v,checked:!!F,type:_})),f.createElement("span",{className:"".concat(p,"-inner")}))});Pe.Z=t},66003:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Z:function(){return i}});var ue=ae(75931),n=ae(33885),k=ae(76190),S=ae(59301),d=["show"];function m(s,f){if(!f.max)return!0;var o=f.strategy(s);return o<=f.max}function i(s,f){return S.useMemo(function(){var o={};f&&(o.show=(0,k.Z)(f)==="object"&&f.formatter?f.formatter:!!f),o=(0,n.Z)((0,n.Z)({},o),s);var t=o,r=t.show,u=(0,ue.Z)(t,d);return(0,n.Z)((0,n.Z)({},u),{},{show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:u.strategy||function(c){return c.length}})},[s,f])}},36901:function(Ve,Pe,ae){"use strict";ae.r(Pe),ae.d(Pe,{BaseInput:function(){return o},default:function(){return w}});var ue=ae(33885),n=ae(54476),k=ae(20068),S=ae(76190),d=ae(92310),m=ae.n(d),i=ae(59301),s=ae(30292),f=i.forwardRef(function(E,h){var _,O,I,b=E.inputElement,W=E.children,M=E.prefixCls,R=E.prefix,N=E.suffix,F=E.addonBefore,H=E.addonAfter,G=E.className,Y=E.style,U=E.disabled,$=E.readOnly,J=E.focused,Z=E.triggerFocus,P=E.allowClear,D=E.value,B=E.handleReset,z=E.hidden,ne=E.classes,K=E.classNames,se=E.dataAttrs,re=E.styles,ce=E.components,fe=E.onClear,ee=W!=null?W:b,te=(ce==null?void 0:ce.affixWrapper)||"span",oe=(ce==null?void 0:ce.groupWrapper)||"span",L=(ce==null?void 0:ce.wrapper)||"span",j=(ce==null?void 0:ce.groupAddon)||"span",X=(0,i.useRef)(null),Q=function(ye){var _e;(_e=X.current)!==null&&_e!==void 0&&_e.contains(ye.target)&&(Z==null||Z())},ie=(0,s.X3)(E),C=(0,i.cloneElement)(ee,{value:D,className:m()((_=ee.props)===null||_===void 0?void 0:_.className,!ie&&(K==null?void 0:K.variant))||null}),e=(0,i.useRef)(null);if(i.useImperativeHandle(h,function(){return{nativeElement:e.current||X.current}}),ie){var a=null;if(P){var A=!U&&!$&&D,g="".concat(M,"-clear-icon"),y=(0,S.Z)(P)==="object"&&P!==null&&P!==void 0&&P.clearIcon?P.clearIcon:"\u2716";a=i.createElement("button",{type:"button",tabIndex:-1,onClick:function(ye){B==null||B(ye),fe==null||fe()},onMouseDown:function(ye){return ye.preventDefault()},className:m()(g,(0,k.Z)((0,k.Z)({},"".concat(g,"-hidden"),!A),"".concat(g,"-has-suffix"),!!N))},y)}var V="".concat(M,"-affix-wrapper"),q=m()(V,(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},"".concat(M,"-disabled"),U),"".concat(V,"-disabled"),U),"".concat(V,"-focused"),J),"".concat(V,"-readonly"),$),"".concat(V,"-input-with-clear-btn"),N&&P&&D),ne==null?void 0:ne.affixWrapper,K==null?void 0:K.affixWrapper,K==null?void 0:K.variant),le=(N||P)&&i.createElement("span",{className:m()("".concat(M,"-suffix"),K==null?void 0:K.suffix),style:re==null?void 0:re.suffix},a,N);C=i.createElement(te,(0,n.Z)({className:q,style:re==null?void 0:re.affixWrapper,onClick:Q},se==null?void 0:se.affixWrapper,{ref:X}),R&&i.createElement("span",{className:m()("".concat(M,"-prefix"),K==null?void 0:K.prefix),style:re==null?void 0:re.prefix},R),C,le)}if((0,s.He)(E)){var pe="".concat(M,"-group"),he="".concat(pe,"-addon"),me="".concat(pe,"-wrapper"),be=m()("".concat(M,"-wrapper"),pe,ne==null?void 0:ne.wrapper,K==null?void 0:K.wrapper),ve=m()(me,(0,k.Z)({},"".concat(me,"-disabled"),U),ne==null?void 0:ne.group,K==null?void 0:K.groupWrapper);C=i.createElement(oe,{className:ve,ref:e},i.createElement(L,{className:be},F&&i.createElement(j,{className:he},F),C,H&&i.createElement(j,{className:he},H)))}return i.cloneElement(C,{className:m()((O=C.props)===null||O===void 0?void 0:O.className,G)||null,style:(0,ue.Z)((0,ue.Z)({},(I=C.props)===null||I===void 0?void 0:I.style),Y),hidden:z})}),o=f,t=ae(94480),r=ae(42978),u=ae(75931),c=ae(18929),p=ae(2738),l=ae(66003),T=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],x=(0,i.forwardRef)(function(E,h){var _=E.autoComplete,O=E.onChange,I=E.onFocus,b=E.onBlur,W=E.onPressEnter,M=E.onKeyDown,R=E.onKeyUp,N=E.prefixCls,F=N===void 0?"rc-input":N,H=E.disabled,G=E.htmlSize,Y=E.className,U=E.maxLength,$=E.suffix,J=E.showCount,Z=E.count,P=E.type,D=P===void 0?"text":P,B=E.classes,z=E.classNames,ne=E.styles,K=E.onCompositionStart,se=E.onCompositionEnd,re=(0,u.Z)(E,T),ce=(0,i.useState)(!1),fe=(0,r.Z)(ce,2),ee=fe[0],te=fe[1],oe=(0,i.useRef)(!1),L=(0,i.useRef)(!1),j=(0,i.useRef)(null),X=(0,i.useRef)(null),Q=function(Ae){j.current&&(0,s.nH)(j.current,Ae)},ie=(0,c.Z)(E.defaultValue,{value:E.value}),C=(0,r.Z)(ie,2),e=C[0],a=C[1],A=e==null?"":String(e),g=(0,i.useState)(null),y=(0,r.Z)(g,2),V=y[0],q=y[1],le=(0,l.Z)(Z,J),pe=le.max||U,he=le.strategy(A),me=!!pe&&he>pe;(0,i.useImperativeHandle)(h,function(){var Te;return{focus:Q,blur:function(){var De;(De=j.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,He,Re){var Le;(Le=j.current)===null||Le===void 0||Le.setSelectionRange(De,He,Re)},select:function(){var De;(De=j.current)===null||De===void 0||De.select()},input:j.current,nativeElement:((Te=X.current)===null||Te===void 0?void 0:Te.nativeElement)||j.current}}),(0,i.useEffect)(function(){L.current&&(L.current=!1),te(function(Te){return Te&&H?!1:Te})},[H]);var be=function(Ae,De,He){var Re=De;if(!oe.current&&le.exceedFormatter&&le.max&&le.strategy(De)>le.max){if(Re=le.exceedFormatter(De,{max:le.max}),De!==Re){var Le,Se;q([((Le=j.current)===null||Le===void 0?void 0:Le.selectionStart)||0,((Se=j.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(He.source==="compositionEnd")return;a(Re),j.current&&(0,s.rJ)(j.current,Ae,O,Re)};(0,i.useEffect)(function(){if(V){var Te;(Te=j.current)===null||Te===void 0||Te.setSelectionRange.apply(Te,(0,t.Z)(V))}},[V]);var ve=function(Ae){be(Ae,Ae.target.value,{source:"change"})},de=function(Ae){oe.current=!1,be(Ae,Ae.currentTarget.value,{source:"compositionEnd"}),se==null||se(Ae)},ye=function(Ae){W&&Ae.key==="Enter"&&!L.current&&(L.current=!0,W(Ae)),M==null||M(Ae)},_e=function(Ae){Ae.key==="Enter"&&(L.current=!1),R==null||R(Ae)},ge=function(Ae){te(!0),I==null||I(Ae)},xe=function(Ae){L.current&&(L.current=!1),te(!1),b==null||b(Ae)},Ie=function(Ae){a(""),Q(),j.current&&(0,s.rJ)(j.current,Ae,O)},Me=me&&"".concat(F,"-out-of-range"),ze=function(){var Ae=(0,p.Z)(E,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return i.createElement("input",(0,n.Z)({autoComplete:_},Ae,{onChange:ve,onFocus:ge,onBlur:xe,onKeyDown:ye,onKeyUp:_e,className:m()(F,(0,k.Z)({},"".concat(F,"-disabled"),H),z==null?void 0:z.input),style:ne==null?void 0:ne.input,ref:j,size:G,type:D,onCompositionStart:function(He){oe.current=!0,K==null||K(He)},onCompositionEnd:de}))},We=function(){var Ae=Number(pe)>0;if($||le.show){var De=le.showFormatter?le.showFormatter({value:A,count:he,maxLength:pe}):"".concat(he).concat(Ae?" / ".concat(pe):"");return i.createElement(i.Fragment,null,le.show&&i.createElement("span",{className:m()("".concat(F,"-show-count-suffix"),(0,k.Z)({},"".concat(F,"-show-count-has-suffix"),!!$),z==null?void 0:z.count),style:(0,ue.Z)({},ne==null?void 0:ne.count)},De),$)}return null};return i.createElement(o,(0,n.Z)({},re,{prefixCls:F,className:m()(Y,Me),handleReset:Ie,value:A,focused:ee,triggerFocus:Q,suffix:We(),disabled:H,classes:B,classNames:z,styles:ne}),ze())}),v=x,w=v},30292:function(Ve,Pe,ae){"use strict";ae.d(Pe,{He:function(){return ue},X3:function(){return n},nH:function(){return d},rJ:function(){return S}});function ue(m){return!!(m.addonBefore||m.addonAfter)}function n(m){return!!(m.prefix||m.suffix||m.allowClear)}function k(m,i,s){var f=i.cloneNode(!0),o=Object.create(m,{target:{value:f},currentTarget:{value:f}});return f.value=s,typeof i.selectionStart=="number"&&typeof i.selectionEnd=="number"&&(f.selectionStart=i.selectionStart,f.selectionEnd=i.selectionEnd),f.setSelectionRange=function(){i.setSelectionRange.apply(i,arguments)},o}function S(m,i,s,f){if(s){var o=i;if(i.type==="click"){o=k(i,m,""),s(o);return}if(m.type!=="file"&&f!==void 0){o=k(i,m,f),s(o);return}s(o)}}function d(m,i){if(m){m.focus(i);var s=i||{},f=s.cursor;if(f){var o=m.value.length;switch(f){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(o,o);break;default:m.setSelectionRange(0,o)}}}}},25930:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Cd:function(){return M}});var ue=ae(54476),n=ae(33885),k=ae(75931),S=ae(59301),d=ae(92310),m=ae.n(d),i={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},s=function(){var F=(0,S.useRef)([]),H=(0,S.useRef)(null);return(0,S.useEffect)(function(){var G=Date.now(),Y=!1;F.current.forEach(function(U){if(U){Y=!0;var $=U.style;$.transitionDuration=".3s, .3s, .3s, .06s",H.current&&G-H.current<100&&($.transitionDuration="0s, 0s")}}),Y&&(H.current=Date.now())}),F.current},f=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],o=function(F){var H=(0,n.Z)((0,n.Z)({},i),F),G=H.className,Y=H.percent,U=H.prefixCls,$=H.strokeColor,J=H.strokeLinecap,Z=H.strokeWidth,P=H.style,D=H.trailColor,B=H.trailWidth,z=H.transition,ne=(0,k.Z)(H,f);delete ne.gapPosition;var K=Array.isArray(Y)?Y:[Y],se=Array.isArray($)?$:[$],re=s(),ce=Z/2,fe=100-Z/2,ee="M ".concat(J==="round"?ce:0,",").concat(ce,`
|
|
L `).concat(J==="round"?fe:100,",").concat(ce),te="0 0 100 ".concat(Z),oe=0;return S.createElement("svg",(0,ue.Z)({className:m()("".concat(U,"-line"),G),viewBox:te,preserveAspectRatio:"none",style:P},ne),S.createElement("path",{className:"".concat(U,"-line-trail"),d:ee,strokeLinecap:J,stroke:D,strokeWidth:B||Z,fillOpacity:"0"}),K.map(function(L,j){var X=1;switch(J){case"round":X=1-Z/100;break;case"square":X=1-Z/2/100;break;default:X=1;break}var Q={strokeDasharray:"".concat(L*X,"px, 100px"),strokeDashoffset:"-".concat(oe,"px"),transition:z||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ie=se[j]||se[se.length-1];return oe+=L,S.createElement("path",{key:j,className:"".concat(U,"-line-path"),d:ee,strokeLinecap:J,stroke:ie,strokeWidth:Z,fillOpacity:"0",ref:function(e){re[j]=e},style:Q})}))},t=o,r=ae(76190),u=ae(42978),c=ae(47273),p=0,l=(0,c.Z)();function T(){var N;return l?(N=p,p+=1):N="TEST_OR_SSR",N}var x=function(N){var F=S.useState(),H=(0,u.Z)(F,2),G=H[0],Y=H[1];return S.useEffect(function(){Y("rc_progress_".concat(T()))},[]),N||G},v=function(F){var H=F.bg,G=F.children;return S.createElement("div",{style:{width:"100%",height:"100%",background:H}},G)};function w(N,F){return Object.keys(N).map(function(H){var G=parseFloat(H),Y="".concat(Math.floor(G*F),"%");return"".concat(N[H]," ").concat(Y)})}var E=S.forwardRef(function(N,F){var H=N.prefixCls,G=N.color,Y=N.gradientId,U=N.radius,$=N.style,J=N.ptg,Z=N.strokeLinecap,P=N.strokeWidth,D=N.size,B=N.gapDegree,z=G&&(0,r.Z)(G)==="object",ne=z?"#FFF":void 0,K=D/2,se=S.createElement("circle",{className:"".concat(H,"-circle-path"),r:U,cx:K,cy:K,stroke:ne,strokeLinecap:Z,strokeWidth:P,opacity:J===0?0:1,style:$,ref:F});if(!z)return se;var re="".concat(Y,"-conic"),ce=B?"".concat(180+B/2,"deg"):"0deg",fe=w(G,(360-B)/360),ee=w(G,1),te="conic-gradient(from ".concat(ce,", ").concat(fe.join(", "),")"),oe="linear-gradient(to ".concat(B?"bottom":"top",", ").concat(ee.join(", "),")");return S.createElement(S.Fragment,null,S.createElement("mask",{id:re},se),S.createElement("foreignObject",{x:0,y:0,width:D,height:D,mask:"url(#".concat(re,")")},S.createElement(v,{bg:oe},S.createElement(v,{bg:te}))))}),h=E,_=100,O=function(F,H,G,Y,U,$,J,Z,P,D){var B=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,z=G/100*360*((360-$)/360),ne=$===0?0:{bottom:0,top:180,left:90,right:-90}[J],K=(100-Y)/100*H;P==="round"&&Y!==100&&(K+=D/2,K>=H&&(K=H-.01));var se=_/2;return{stroke:typeof Z=="string"?Z:void 0,strokeDasharray:"".concat(H,"px ").concat(F),strokeDashoffset:K+B,transform:"rotate(".concat(U+z+ne,"deg)"),transformOrigin:"".concat(se,"px ").concat(se,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},I=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function b(N){var F=N!=null?N:[];return Array.isArray(F)?F:[F]}var W=function(F){var H=(0,n.Z)((0,n.Z)({},i),F),G=H.id,Y=H.prefixCls,U=H.steps,$=H.strokeWidth,J=H.trailWidth,Z=H.gapDegree,P=Z===void 0?0:Z,D=H.gapPosition,B=H.trailColor,z=H.strokeLinecap,ne=H.style,K=H.className,se=H.strokeColor,re=H.percent,ce=(0,k.Z)(H,I),fe=_/2,ee=x(G),te="".concat(ee,"-gradient"),oe=fe-$/2,L=Math.PI*2*oe,j=P>0?90+P/2:-90,X=L*((360-P)/360),Q=(0,r.Z)(U)==="object"?U:{count:U,gap:2},ie=Q.count,C=Q.gap,e=b(re),a=b(se),A=a.find(function(he){return he&&(0,r.Z)(he)==="object"}),g=A&&(0,r.Z)(A)==="object",y=g?"butt":z,V=O(L,X,0,100,j,P,D,B,y,$),q=s(),le=function(){var me=0;return e.map(function(be,ve){var de=a[ve]||a[a.length-1],ye=O(L,X,me,be,j,P,D,de,y,$);return me+=be,S.createElement(h,{key:ve,color:de,ptg:be,radius:oe,prefixCls:Y,gradientId:te,style:ye,strokeLinecap:y,strokeWidth:$,gapDegree:P,ref:function(ge){q[ve]=ge},size:_})}).reverse()},pe=function(){var me=Math.round(ie*(e[0]/100)),be=100/ie,ve=0;return new Array(ie).fill(null).map(function(de,ye){var _e=ye<=me-1?a[0]:B,ge=_e&&(0,r.Z)(_e)==="object"?"url(#".concat(te,")"):void 0,xe=O(L,X,ve,be,j,P,D,_e,"butt",$,C);return ve+=(X-xe.strokeDashoffset+C)*100/X,S.createElement("circle",{key:ye,className:"".concat(Y,"-circle-path"),r:oe,cx:fe,cy:fe,stroke:ge,strokeWidth:$,opacity:1,style:xe,ref:function(Me){q[ye]=Me}})})};return S.createElement("svg",(0,ue.Z)({className:m()("".concat(Y,"-circle"),K),viewBox:"0 0 ".concat(_," ").concat(_),style:ne,id:G,role:"presentation"},ce),!ie&&S.createElement("circle",{className:"".concat(Y,"-circle-trail"),r:oe,cx:fe,cy:fe,stroke:B,strokeLinecap:y,strokeWidth:J||$,style:V}),ie?pe():le())},M=W,R={Line:t,Circle:M}},29301:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Z:function(){return N}});var ue=ae(54476),n=ae(59301),k=ae(11592),S=ae(48736),d=ae(33885),m=ae(76190),i=ae(76846),s=ae(8654),f=n.createContext(null);function o(F){var H=F.children,G=F.onBatchResize,Y=n.useRef(0),U=n.useRef([]),$=n.useContext(f),J=n.useCallback(function(Z,P,D){Y.current+=1;var B=Y.current;U.current.push({size:Z,element:P,data:D}),Promise.resolve().then(function(){B===Y.current&&(G==null||G(U.current),U.current=[])}),$==null||$(Z,P,D)},[G,$]);return n.createElement(f.Provider,{value:J},H)}var t=ae(76374),r=new Map;function u(F){F.forEach(function(H){var G,Y=H.target;(G=r.get(Y))===null||G===void 0||G.forEach(function(U){return U(Y)})})}var c=new t.Z(u),p=null,l=null;function T(F,H){r.has(F)||(r.set(F,new Set),c.observe(F)),r.get(F).add(H)}function x(F,H){r.has(F)&&(r.get(F).delete(H),r.get(F).size||(c.unobserve(F),r.delete(F)))}var v=ae(67732),w=ae(83652),E=ae(42403),h=ae(158),_=function(F){(0,E.Z)(G,F);var H=(0,h.Z)(G);function G(){return(0,v.Z)(this,G),H.apply(this,arguments)}return(0,w.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(n.Component);function O(F,H){var G=F.children,Y=F.disabled,U=n.useRef(null),$=n.useRef(null),J=n.useContext(f),Z=typeof G=="function",P=Z?G(U):G,D=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),B=!Z&&n.isValidElement(P)&&(0,s.Yr)(P),z=B?(0,s.C4)(P):null,ne=(0,s.x1)(z,U),K=function(){var fe;return(0,i.ZP)(U.current)||(U.current&&(0,m.Z)(U.current)==="object"?(0,i.ZP)((fe=U.current)===null||fe===void 0?void 0:fe.nativeElement):null)||(0,i.ZP)($.current)};n.useImperativeHandle(H,function(){return K()});var se=n.useRef(F);se.current=F;var re=n.useCallback(function(ce){var fe=se.current,ee=fe.onResize,te=fe.data,oe=ce.getBoundingClientRect(),L=oe.width,j=oe.height,X=ce.offsetWidth,Q=ce.offsetHeight,ie=Math.floor(L),C=Math.floor(j);if(D.current.width!==ie||D.current.height!==C||D.current.offsetWidth!==X||D.current.offsetHeight!==Q){var e={width:ie,height:C,offsetWidth:X,offsetHeight:Q};D.current=e;var a=X===Math.round(L)?L:X,A=Q===Math.round(j)?j:Q,g=(0,d.Z)((0,d.Z)({},e),{},{offsetWidth:a,offsetHeight:A});J==null||J(g,ce,te),ee&&Promise.resolve().then(function(){ee(g,ce)})}},[]);return n.useEffect(function(){var ce=K();return ce&&!Y&&T(ce,re),function(){return x(ce,re)}},[U.current,Y]),n.createElement(_,{ref:$},B?n.cloneElement(P,{ref:ne}):P)}var I=n.forwardRef(O),b=I,W="rc-observer-key";function M(F,H){var G=F.children,Y=typeof G=="function"?[G]:(0,k.Z)(G);return Y.map(function(U,$){var J=(U==null?void 0:U.key)||"".concat(W,"-").concat($);return n.createElement(b,(0,ue.Z)({},F,{key:J,ref:$===0?H:void 0}),U)})}var R=n.forwardRef(M);R.Collection=o;var N=R},22711:function(Ve,Pe,ae){"use strict";ae.r(Pe),ae.d(Pe,{ResizableTextArea:function(){return R},default:function(){return G}});var ue=ae(54476),n=ae(20068),k=ae(33885),S=ae(94480),d=ae(42978),m=ae(75931),i=ae(92310),s=ae.n(i),f=ae(36901),o=ae(66003),t=ae(30292),r=ae(18929),u=ae(59301),c=ae(76190),p=ae(29301),l=ae(34280),T=ae(16089),x=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,v=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],w={},E;function h(Y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=Y.getAttribute("id")||Y.getAttribute("data-reactid")||Y.getAttribute("name");if(U&&w[$])return w[$];var J=window.getComputedStyle(Y),Z=J.getPropertyValue("box-sizing")||J.getPropertyValue("-moz-box-sizing")||J.getPropertyValue("-webkit-box-sizing"),P=parseFloat(J.getPropertyValue("padding-bottom"))+parseFloat(J.getPropertyValue("padding-top")),D=parseFloat(J.getPropertyValue("border-bottom-width"))+parseFloat(J.getPropertyValue("border-top-width")),B=v.map(function(ne){return"".concat(ne,":").concat(J.getPropertyValue(ne))}).join(";"),z={sizingStyle:B,paddingSize:P,borderSize:D,boxSizing:Z};return U&&$&&(w[$]=z),z}function _(Y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;E||(E=document.createElement("textarea"),E.setAttribute("tab-index","-1"),E.setAttribute("aria-hidden","true"),E.setAttribute("name","hiddenTextarea"),document.body.appendChild(E)),Y.getAttribute("wrap")?E.setAttribute("wrap",Y.getAttribute("wrap")):E.removeAttribute("wrap");var Z=h(Y,U),P=Z.paddingSize,D=Z.borderSize,B=Z.boxSizing,z=Z.sizingStyle;E.setAttribute("style","".concat(z,";").concat(x)),E.value=Y.value||Y.placeholder||"";var ne=void 0,K=void 0,se,re=E.scrollHeight;if(B==="border-box"?re+=D:B==="content-box"&&(re-=P),$!==null||J!==null){E.value=" ";var ce=E.scrollHeight-P;$!==null&&(ne=ce*$,B==="border-box"&&(ne=ne+P+D),re=Math.max(ne,re)),J!==null&&(K=ce*J,B==="border-box"&&(K=K+P+D),se=re>K?"":"hidden",re=Math.min(K,re))}var fe={height:re,overflowY:se,resize:"none"};return ne&&(fe.minHeight=ne),K&&(fe.maxHeight=K),fe}var O=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],I=0,b=1,W=2,M=u.forwardRef(function(Y,U){var $=Y,J=$.prefixCls,Z=$.defaultValue,P=$.value,D=$.autoSize,B=$.onResize,z=$.className,ne=$.style,K=$.disabled,se=$.onChange,re=$.onInternalAutoSize,ce=(0,m.Z)($,O),fe=(0,r.Z)(Z,{value:P,postState:function(xe){return xe!=null?xe:""}}),ee=(0,d.Z)(fe,2),te=ee[0],oe=ee[1],L=function(xe){oe(xe.target.value),se==null||se(xe)},j=u.useRef();u.useImperativeHandle(U,function(){return{textArea:j.current}});var X=u.useMemo(function(){return D&&(0,c.Z)(D)==="object"?[D.minRows,D.maxRows]:[]},[D]),Q=(0,d.Z)(X,2),ie=Q[0],C=Q[1],e=!!D,a=function(){try{if(document.activeElement===j.current){var xe=j.current,Ie=xe.selectionStart,Me=xe.selectionEnd,ze=xe.scrollTop;j.current.setSelectionRange(Ie,Me),j.current.scrollTop=ze}}catch(We){}},A=u.useState(W),g=(0,d.Z)(A,2),y=g[0],V=g[1],q=u.useState(),le=(0,d.Z)(q,2),pe=le[0],he=le[1],me=function(){V(I)};(0,l.Z)(function(){e&&me()},[P,ie,C,e]),(0,l.Z)(function(){if(y===I)V(b);else if(y===b){var ge=_(j.current,!1,ie,C);V(W),he(ge)}else a()},[y]);var be=u.useRef(),ve=function(){T.Z.cancel(be.current)},de=function(xe){y===W&&(B==null||B(xe),D&&(ve(),be.current=(0,T.Z)(function(){me()})))};u.useEffect(function(){return ve},[]);var ye=e?pe:null,_e=(0,k.Z)((0,k.Z)({},ne),ye);return(y===I||y===b)&&(_e.overflowY="hidden",_e.overflowX="hidden"),u.createElement(p.Z,{onResize:de,disabled:!(D||B)},u.createElement("textarea",(0,ue.Z)({},ce,{ref:j,style:_e,className:s()(J,z,(0,n.Z)({},"".concat(J,"-disabled"),K)),disabled:K,value:te,onChange:L})))}),R=M,N=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],F=u.forwardRef(function(Y,U){var $,J=Y.defaultValue,Z=Y.value,P=Y.onFocus,D=Y.onBlur,B=Y.onChange,z=Y.allowClear,ne=Y.maxLength,K=Y.onCompositionStart,se=Y.onCompositionEnd,re=Y.suffix,ce=Y.prefixCls,fe=ce===void 0?"rc-textarea":ce,ee=Y.showCount,te=Y.count,oe=Y.className,L=Y.style,j=Y.disabled,X=Y.hidden,Q=Y.classNames,ie=Y.styles,C=Y.onResize,e=Y.onClear,a=Y.onPressEnter,A=Y.readOnly,g=Y.autoSize,y=Y.onKeyDown,V=(0,m.Z)(Y,N),q=(0,r.Z)(J,{value:Z,defaultValue:J}),le=(0,d.Z)(q,2),pe=le[0],he=le[1],me=pe==null?"":String(pe),be=u.useState(!1),ve=(0,d.Z)(be,2),de=ve[0],ye=ve[1],_e=u.useRef(!1),ge=u.useState(null),xe=(0,d.Z)(ge,2),Ie=xe[0],Me=xe[1],ze=(0,u.useRef)(null),We=(0,u.useRef)(null),Te=function(){var Ce;return(Ce=We.current)===null||Ce===void 0?void 0:Ce.textArea},Ae=function(){Te().focus()};(0,u.useImperativeHandle)(U,function(){var ke;return{resizableTextArea:We.current,focus:Ae,blur:function(){Te().blur()},nativeElement:((ke=ze.current)===null||ke===void 0?void 0:ke.nativeElement)||Te()}}),(0,u.useEffect)(function(){ye(function(ke){return!j&&ke})},[j]);var De=u.useState(null),He=(0,d.Z)(De,2),Re=He[0],Le=He[1];u.useEffect(function(){if(Re){var ke;(ke=Te()).setSelectionRange.apply(ke,(0,S.Z)(Re))}},[Re]);var Se=(0,o.Z)(te,ee),Xe=($=Se.max)!==null&&$!==void 0?$:ne,$e=Number(Xe)>0,Ge=Se.strategy(me),Oe=!!Xe&&Ge>Xe,ht=function(Ce,Ke){var it=Ke;!_e.current&&Se.exceedFormatter&&Se.max&&Se.strategy(Ke)>Se.max&&(it=Se.exceedFormatter(Ke,{max:Se.max}),Ke!==it&&Le([Te().selectionStart||0,Te().selectionEnd||0])),he(it),(0,t.rJ)(Ce.currentTarget,Ce,B,it)},Lt=function(Ce){_e.current=!0,K==null||K(Ce)},bt=function(Ce){_e.current=!1,ht(Ce,Ce.currentTarget.value),se==null||se(Ce)},Qe=function(Ce){ht(Ce,Ce.target.value)},Nt=function(Ce){Ce.key==="Enter"&&a&&a(Ce),y==null||y(Ce)},st=function(Ce){ye(!0),P==null||P(Ce)},Je=function(Ce){ye(!1),D==null||D(Ce)},xt=function(Ce){he(""),Ae(),(0,t.rJ)(Te(),Ce,B)},mt=re,et;Se.show&&(Se.showFormatter?et=Se.showFormatter({value:me,count:Ge,maxLength:Xe}):et="".concat(Ge).concat($e?" / ".concat(Xe):""),mt=u.createElement(u.Fragment,null,mt,u.createElement("span",{className:s()("".concat(fe,"-data-count"),Q==null?void 0:Q.count),style:ie==null?void 0:ie.count},et)));var ut=function(Ce){var Ke;C==null||C(Ce),(Ke=Te())!==null&&Ke!==void 0&&Ke.style.height&&Me(!0)},tt=!g&&!ee&&!z;return u.createElement(f.BaseInput,{ref:ze,value:me,allowClear:z,handleReset:xt,suffix:mt,prefixCls:fe,classNames:(0,k.Z)((0,k.Z)({},Q),{},{affixWrapper:s()(Q==null?void 0:Q.affixWrapper,(0,n.Z)((0,n.Z)({},"".concat(fe,"-show-count"),ee),"".concat(fe,"-textarea-allow-clear"),z))}),disabled:j,focused:de,className:s()(oe,Oe&&"".concat(fe,"-out-of-range")),style:(0,k.Z)((0,k.Z)({},L),Ie&&!tt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof et=="string"?et:void 0}},hidden:X,readOnly:A,onClear:e},u.createElement(R,(0,ue.Z)({},V,{autoSize:g,maxLength:ne,onKeyDown:Nt,onChange:Qe,onFocus:st,onBlur:Je,onCompositionStart:Lt,onCompositionEnd:bt,className:s()(Q==null?void 0:Q.textarea),style:(0,k.Z)((0,k.Z)({},ie==null?void 0:ie.textarea),{},{resize:L==null?void 0:L.resize}),disabled:j,prefixCls:fe,onResize:ut,ref:We,readOnly:A})))}),H=F,G=H},29125:function(Ve,Pe,ae){"use strict";ae.d(Pe,{G:function(){return S},Z:function(){return x}});var ue=ae(92310),n=ae.n(ue),k=ae(59301);function S(v){var w=v.children,E=v.prefixCls,h=v.id,_=v.overlayInnerStyle,O=v.bodyClassName,I=v.className,b=v.style;return k.createElement("div",{className:n()("".concat(E,"-content"),I),style:b},k.createElement("div",{className:n()("".concat(E,"-inner"),O),id:h,role:"tooltip",style:_},typeof w=="function"?w():w))}var d=ae(54476),m=ae(33885),i=ae(75931),s=ae(65030),f={shiftX:64,adjustY:1},o={adjustX:1,shiftY:!0},t=[0,0],r={left:{points:["cr","cl"],overflow:o,offset:[-4,0],targetOffset:t},right:{points:["cl","cr"],overflow:o,offset:[4,0],targetOffset:t},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:t},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:t},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:t},leftTop:{points:["tr","tl"],overflow:o,offset:[-4,0],targetOffset:t},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:t},rightTop:{points:["tl","tr"],overflow:o,offset:[4,0],targetOffset:t},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:t},rightBottom:{points:["bl","br"],overflow:o,offset:[4,0],targetOffset:t},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:t},leftBottom:{points:["br","bl"],overflow:o,offset:[-4,0],targetOffset:t}},u=null,c=ae(80402),p=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],l=function(w,E){var h=w.overlayClassName,_=w.trigger,O=_===void 0?["hover"]:_,I=w.mouseEnterDelay,b=I===void 0?0:I,W=w.mouseLeaveDelay,M=W===void 0?.1:W,R=w.overlayStyle,N=w.prefixCls,F=N===void 0?"rc-tooltip":N,H=w.children,G=w.onVisibleChange,Y=w.afterVisibleChange,U=w.transitionName,$=w.animation,J=w.motion,Z=w.placement,P=Z===void 0?"right":Z,D=w.align,B=D===void 0?{}:D,z=w.destroyTooltipOnHide,ne=z===void 0?!1:z,K=w.defaultVisible,se=w.getTooltipContainer,re=w.overlayInnerStyle,ce=w.arrowContent,fe=w.overlay,ee=w.id,te=w.showArrow,oe=te===void 0?!0:te,L=w.classNames,j=w.styles,X=(0,i.Z)(w,p),Q=(0,c.Z)(ee),ie=(0,k.useRef)(null);(0,k.useImperativeHandle)(E,function(){return ie.current});var C=(0,m.Z)({},X);"visible"in w&&(C.popupVisible=w.visible);var e=function(){return k.createElement(S,{key:"content",prefixCls:F,id:Q,bodyClassName:L==null?void 0:L.body,overlayInnerStyle:(0,m.Z)((0,m.Z)({},re),j==null?void 0:j.body)},fe)},a=function(){var g=k.Children.only(H),y=(g==null?void 0:g.props)||{},V=(0,m.Z)((0,m.Z)({},y),{},{"aria-describedby":fe?Q:null});return k.cloneElement(H,V)};return k.createElement(s.Z,(0,d.Z)({popupClassName:n()(h,L==null?void 0:L.root),prefixCls:F,popup:e,action:O,builtinPlacements:r,popupPlacement:P,ref:ie,popupAlign:B,getPopupContainer:se,onPopupVisibleChange:G,afterPopupVisibleChange:Y,popupTransitionName:U,popupAnimation:$,popupMotion:J,defaultPopupVisible:K,autoDestroy:ne,mouseLeaveDelay:M,popupStyle:(0,m.Z)((0,m.Z)({},R),j==null?void 0:j.root),mouseEnterDelay:b,arrow:oe},C),a())},T=(0,k.forwardRef)(l),x=T},90472:function(Ve,Pe,ae){"use strict";ae.d(Pe,{Z:function(){return Y}});var ue=ae(54476),n=ae(67732),k=ae(83652),S=ae(31226),d=ae(42403),m=ae(158),i=ae(20068),s=ae(59301),f=ae(33885),o=ae(75931),t=ae(76190),r=ae(75044),u=ae(3202),c=ae(94480),p=ae(92310),l=ae.n(p),T=ae(26112),x=ae(48736),v=function(U,$){if(U&&$){var J=Array.isArray($)?$:$.split(","),Z=U.name||"",P=U.type||"",D=P.replace(/\/.*$/,"");return J.some(function(B){var z=B.trim();if(/^\*(\/\*)?$/.test(B))return!0;if(z.charAt(0)==="."){var ne=Z.toLowerCase(),K=z.toLowerCase(),se=[K];return(K===".jpg"||K===".jpeg")&&(se=[".jpg",".jpeg"]),se.some(function(re){return ne.endsWith(re)})}return/\/\*$/.test(z)?D===z.replace(/\/.*$/,""):P===z?!0:/^\w+$/.test(z)?((0,x.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(z,"'.Skip for check.")),!0):!1})}return!0};function w(U,$){var J="cannot ".concat(U.method," ").concat(U.action," ").concat($.status,"'"),Z=new Error(J);return Z.status=$.status,Z.method=U.method,Z.url=U.action,Z}function E(U){var $=U.responseText||U.response;if(!$)return $;try{return JSON.parse($)}catch(J){return $}}function h(U){var $=new XMLHttpRequest;U.onProgress&&$.upload&&($.upload.onprogress=function(D){D.total>0&&(D.percent=D.loaded/D.total*100),U.onProgress(D)});var J=new FormData;U.data&&Object.keys(U.data).forEach(function(P){var D=U.data[P];if(Array.isArray(D)){D.forEach(function(B){J.append("".concat(P,"[]"),B)});return}J.append(P,D)}),U.file instanceof Blob?J.append(U.filename,U.file,U.file.name):J.append(U.filename,U.file),$.onerror=function(D){U.onError(D)},$.onload=function(){return $.status<200||$.status>=300?U.onError(w(U,$),E($)):U.onSuccess(E($),$)},$.open(U.method,U.action,!0),U.withCredentials&&"withCredentials"in $&&($.withCredentials=!0);var Z=U.headers||{};return Z["X-Requested-With"]!==null&&$.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Z).forEach(function(P){Z[P]!==null&&$.setRequestHeader(P,Z[P])}),$.send(J),{abort:function(){$.abort()}}}var _=function(){var U=(0,u.Z)((0,r.Z)().mark(function $(J,Z){var P,D,B,z,ne,K,se,re;return(0,r.Z)().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:K=function(){return K=(0,u.Z)((0,r.Z)().mark(function te(oe){return(0,r.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",new Promise(function(X){oe.file(function(Q){Z(Q)?(oe.fullPath&&!Q.webkitRelativePath&&(Object.defineProperties(Q,{webkitRelativePath:{writable:!0}}),Q.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(Q,{webkitRelativePath:{writable:!1}})),X(Q)):X(null)})}));case 1:case"end":return j.stop()}},te)})),K.apply(this,arguments)},ne=function(te){return K.apply(this,arguments)},z=function(){return z=(0,u.Z)((0,r.Z)().mark(function te(oe){var L,j,X,Q,ie;return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:L=oe.createReader(),j=[];case 2:return e.next=5,new Promise(function(a){L.readEntries(a,function(){return a([])})});case 5:if(X=e.sent,Q=X.length,Q){e.next=9;break}return e.abrupt("break",12);case 9:for(ie=0;ie<Q;ie++)j.push(X[ie]);e.next=2;break;case 12:return e.abrupt("return",j);case 13:case"end":return e.stop()}},te)})),z.apply(this,arguments)},B=function(te){return z.apply(this,arguments)},P=[],D=[],J.forEach(function(ee){return D.push(ee.webkitGetAsEntry())}),se=function(){var ee=(0,u.Z)((0,r.Z)().mark(function te(oe,L){var j,X;return(0,r.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(oe){ie.next=2;break}return ie.abrupt("return");case 2:if(oe.path=L||"",!oe.isFile){ie.next=10;break}return ie.next=6,ne(oe);case 6:j=ie.sent,j&&P.push(j),ie.next=15;break;case 10:if(!oe.isDirectory){ie.next=15;break}return ie.next=13,B(oe);case 13:X=ie.sent,D.push.apply(D,(0,c.Z)(X));case 15:case"end":return ie.stop()}},te)}));return function(oe,L){return ee.apply(this,arguments)}}(),re=0;case 9:if(!(re<D.length)){fe.next=15;break}return fe.next=12,se(D[re]);case 12:re++,fe.next=9;break;case 15:return fe.abrupt("return",P);case 16:case"end":return fe.stop()}},$)}));return function(J,Z){return U.apply(this,arguments)}}(),O=_,I=+new Date,b=0;function W(){return"rc-upload-".concat(I,"-").concat(++b)}var M=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],R=function(U){(0,d.Z)(J,U);var $=(0,m.Z)(J);function J(){var Z;(0,n.Z)(this,J);for(var P=arguments.length,D=new Array(P),B=0;B<P;B++)D[B]=arguments[B];return Z=$.call.apply($,[this].concat(D)),(0,i.Z)((0,S.Z)(Z),"state",{uid:W()}),(0,i.Z)((0,S.Z)(Z),"reqs",{}),(0,i.Z)((0,S.Z)(Z),"fileInput",void 0),(0,i.Z)((0,S.Z)(Z),"_isMounted",void 0),(0,i.Z)((0,S.Z)(Z),"onChange",function(z){var ne=Z.props,K=ne.accept,se=ne.directory,re=z.target.files,ce=(0,c.Z)(re).filter(function(fe){return!se||v(fe,K)});Z.uploadFiles(ce),Z.reset()}),(0,i.Z)((0,S.Z)(Z),"onClick",function(z){var ne=Z.fileInput;if(ne){var K=z.target,se=Z.props.onClick;if(K&&K.tagName==="BUTTON"){var re=ne.parentNode;re.focus(),K.blur()}ne.click(),se&&se(z)}}),(0,i.Z)((0,S.Z)(Z),"onKeyDown",function(z){z.key==="Enter"&&Z.onClick(z)}),(0,i.Z)((0,S.Z)(Z),"onFileDrop",function(){var z=(0,u.Z)((0,r.Z)().mark(function ne(K){var se,re,ce;return(0,r.Z)().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(se=Z.props.multiple,K.preventDefault(),K.type!=="dragover"){ee.next=4;break}return ee.abrupt("return");case 4:if(!Z.props.directory){ee.next=11;break}return ee.next=7,O(Array.prototype.slice.call(K.dataTransfer.items),function(te){return v(te,Z.props.accept)});case 7:re=ee.sent,Z.uploadFiles(re),ee.next=14;break;case 11:ce=(0,c.Z)(K.dataTransfer.files).filter(function(te){return v(te,Z.props.accept)}),se===!1&&(ce=ce.slice(0,1)),Z.uploadFiles(ce);case 14:case"end":return ee.stop()}},ne)}));return function(ne){return z.apply(this,arguments)}}()),(0,i.Z)((0,S.Z)(Z),"uploadFiles",function(z){var ne=(0,c.Z)(z),K=ne.map(function(se){return se.uid=W(),Z.processFile(se,ne)});Promise.all(K).then(function(se){var re=Z.props.onBatchStart;re==null||re(se.map(function(ce){var fe=ce.origin,ee=ce.parsedFile;return{file:fe,parsedFile:ee}})),se.filter(function(ce){return ce.parsedFile!==null}).forEach(function(ce){Z.post(ce)})})}),(0,i.Z)((0,S.Z)(Z),"processFile",function(){var z=(0,u.Z)((0,r.Z)().mark(function ne(K,se){var re,ce,fe,ee,te,oe,L,j,X;return(0,r.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(re=Z.props.beforeUpload,ce=K,!re){ie.next=14;break}return ie.prev=3,ie.next=6,re(K,se);case 6:ce=ie.sent,ie.next=12;break;case 9:ie.prev=9,ie.t0=ie.catch(3),ce=!1;case 12:if(ce!==!1){ie.next=14;break}return ie.abrupt("return",{origin:K,parsedFile:null,action:null,data:null});case 14:if(fe=Z.props.action,typeof fe!="function"){ie.next=21;break}return ie.next=18,fe(K);case 18:ee=ie.sent,ie.next=22;break;case 21:ee=fe;case 22:if(te=Z.props.data,typeof te!="function"){ie.next=29;break}return ie.next=26,te(K);case 26:oe=ie.sent,ie.next=30;break;case 29:oe=te;case 30:return L=((0,t.Z)(ce)==="object"||typeof ce=="string")&&ce?ce:K,L instanceof File?j=L:j=new File([L],K.name,{type:K.type}),X=j,X.uid=K.uid,ie.abrupt("return",{origin:K,data:oe,parsedFile:X,action:ee});case 35:case"end":return ie.stop()}},ne,null,[[3,9]])}));return function(ne,K){return z.apply(this,arguments)}}()),(0,i.Z)((0,S.Z)(Z),"saveFileInput",function(z){Z.fileInput=z}),Z}return(0,k.Z)(J,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(P){var D=this,B=P.data,z=P.origin,ne=P.action,K=P.parsedFile;if(this._isMounted){var se=this.props,re=se.onStart,ce=se.customRequest,fe=se.name,ee=se.headers,te=se.withCredentials,oe=se.method,L=z.uid,j=ce||h,X={action:ne,filename:fe,data:B,file:K,headers:ee,withCredentials:te,method:oe||"post",onProgress:function(ie){var C=D.props.onProgress;C==null||C(ie,K)},onSuccess:function(ie,C){var e=D.props.onSuccess;e==null||e(ie,K,C),delete D.reqs[L]},onError:function(ie,C){var e=D.props.onError;e==null||e(ie,C,K),delete D.reqs[L]}};re(z),this.reqs[L]=j(X)}}},{key:"reset",value:function(){this.setState({uid:W()})}},{key:"abort",value:function(P){var D=this.reqs;if(P){var B=P.uid?P.uid:P;D[B]&&D[B].abort&&D[B].abort(),delete D[B]}else Object.keys(D).forEach(function(z){D[z]&&D[z].abort&&D[z].abort(),delete D[z]})}},{key:"render",value:function(){var P=this.props,D=P.component,B=P.prefixCls,z=P.className,ne=P.classNames,K=ne===void 0?{}:ne,se=P.disabled,re=P.id,ce=P.name,fe=P.style,ee=P.styles,te=ee===void 0?{}:ee,oe=P.multiple,L=P.accept,j=P.capture,X=P.children,Q=P.directory,ie=P.openFileDialogOnClick,C=P.onMouseEnter,e=P.onMouseLeave,a=P.hasControlInside,A=(0,o.Z)(P,M),g=l()((0,i.Z)((0,i.Z)((0,i.Z)({},B,!0),"".concat(B,"-disabled"),se),z,z)),y=Q?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},V=se?{}:{onClick:ie?this.onClick:function(){},onKeyDown:ie?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:e,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:a?void 0:"0"};return s.createElement(D,(0,ue.Z)({},V,{className:g,role:a?void 0:"button",style:fe}),s.createElement("input",(0,ue.Z)({},(0,T.Z)(A,{aria:!0,data:!0}),{id:re,name:ce,disabled:se,type:"file",ref:this.saveFileInput,onClick:function(le){return le.stopPropagation()},key:this.state.uid,style:(0,f.Z)({display:"none"},te.input),className:K.input,accept:L},y,{multiple:oe,onChange:this.onChange},j!=null?{capture:j}:{})),X)}}]),J}(s.Component),N=R;function F(){}var H=function(U){(0,d.Z)(J,U);var $=(0,m.Z)(J);function J(){var Z;(0,n.Z)(this,J);for(var P=arguments.length,D=new Array(P),B=0;B<P;B++)D[B]=arguments[B];return Z=$.call.apply($,[this].concat(D)),(0,i.Z)((0,S.Z)(Z),"uploader",void 0),(0,i.Z)((0,S.Z)(Z),"saveUploader",function(z){Z.uploader=z}),Z}return(0,k.Z)(J,[{key:"abort",value:function(P){this.uploader.abort(P)}},{key:"render",value:function(){return s.createElement(N,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),J}(s.Component);(0,i.Z)(H,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:F,onError:F,onSuccess:F,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var G=H,Y=G},49658:function(Ve,Pe){"use strict";Pe.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ae=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ae)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ae==null?void 0:ae.substr(0,4))}},76374:function(Ve,Pe,ae){"use strict";var ue=function(){if(typeof Map!="undefined")return Map;function N(F,H){var G=-1;return F.some(function(Y,U){return Y[0]===H?(G=U,!0):!1}),G}return function(){function F(){this.__entries__=[]}return Object.defineProperty(F.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),F.prototype.get=function(H){var G=N(this.__entries__,H),Y=this.__entries__[G];return Y&&Y[1]},F.prototype.set=function(H,G){var Y=N(this.__entries__,H);~Y?this.__entries__[Y][1]=G:this.__entries__.push([H,G])},F.prototype.delete=function(H){var G=this.__entries__,Y=N(G,H);~Y&&G.splice(Y,1)},F.prototype.has=function(H){return!!~N(this.__entries__,H)},F.prototype.clear=function(){this.__entries__.splice(0)},F.prototype.forEach=function(H,G){G===void 0&&(G=null);for(var Y=0,U=this.__entries__;Y<U.length;Y++){var $=U[Y];H.call(G,$[1],$[0])}},F}()}(),n=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,k=function(){return typeof ae.g!="undefined"&&ae.g.Math===Math?ae.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),S=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(k):function(N){return setTimeout(function(){return N(Date.now())},1e3/60)}}(),d=2;function m(N,F){var H=!1,G=!1,Y=0;function U(){H&&(H=!1,N()),G&&J()}function $(){S(U)}function J(){var Z=Date.now();if(H){if(Z-Y<d)return;G=!0}else H=!0,G=!1,setTimeout($,F);Y=Z}return J}var i=20,s=["top","right","bottom","left","width","height","size","weight"],f=typeof MutationObserver!="undefined",o=function(){function N(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m(this.refresh.bind(this),i)}return N.prototype.addObserver=function(F){~this.observers_.indexOf(F)||this.observers_.push(F),this.connected_||this.connect_()},N.prototype.removeObserver=function(F){var H=this.observers_,G=H.indexOf(F);~G&&H.splice(G,1),!H.length&&this.connected_&&this.disconnect_()},N.prototype.refresh=function(){var F=this.updateObservers_();F&&this.refresh()},N.prototype.updateObservers_=function(){var F=this.observers_.filter(function(H){return H.gatherActive(),H.hasActive()});return F.forEach(function(H){return H.broadcastActive()}),F.length>0},N.prototype.connect_=function(){!n||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},N.prototype.disconnect_=function(){!n||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},N.prototype.onTransitionEnd_=function(F){var H=F.propertyName,G=H===void 0?"":H,Y=s.some(function(U){return!!~G.indexOf(U)});Y&&this.refresh()},N.getInstance=function(){return this.instance_||(this.instance_=new N),this.instance_},N.instance_=null,N}(),t=function(N,F){for(var H=0,G=Object.keys(F);H<G.length;H++){var Y=G[H];Object.defineProperty(N,Y,{value:F[Y],enumerable:!1,writable:!1,configurable:!0})}return N},r=function(N){var F=N&&N.ownerDocument&&N.ownerDocument.defaultView;return F||k},u=_(0,0,0,0);function c(N){return parseFloat(N)||0}function p(N){for(var F=[],H=1;H<arguments.length;H++)F[H-1]=arguments[H];return F.reduce(function(G,Y){var U=N["border-"+Y+"-width"];return G+c(U)},0)}function l(N){for(var F=["top","right","bottom","left"],H={},G=0,Y=F;G<Y.length;G++){var U=Y[G],$=N["padding-"+U];H[U]=c($)}return H}function T(N){var F=N.getBBox();return _(0,0,F.width,F.height)}function x(N){var F=N.clientWidth,H=N.clientHeight;if(!F&&!H)return u;var G=r(N).getComputedStyle(N),Y=l(G),U=Y.left+Y.right,$=Y.top+Y.bottom,J=c(G.width),Z=c(G.height);if(G.boxSizing==="border-box"&&(Math.round(J+U)!==F&&(J-=p(G,"left","right")+U),Math.round(Z+$)!==H&&(Z-=p(G,"top","bottom")+$)),!w(N)){var P=Math.round(J+U)-F,D=Math.round(Z+$)-H;Math.abs(P)!==1&&(J-=P),Math.abs(D)!==1&&(Z-=D)}return _(Y.left,Y.top,J,Z)}var v=function(){return typeof SVGGraphicsElement!="undefined"?function(N){return N instanceof r(N).SVGGraphicsElement}:function(N){return N instanceof r(N).SVGElement&&typeof N.getBBox=="function"}}();function w(N){return N===r(N).document.documentElement}function E(N){return n?v(N)?T(N):x(N):u}function h(N){var F=N.x,H=N.y,G=N.width,Y=N.height,U=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,$=Object.create(U.prototype);return t($,{x:F,y:H,width:G,height:Y,top:H,right:F+G,bottom:Y+H,left:F}),$}function _(N,F,H,G){return{x:N,y:F,width:H,height:G}}var O=function(){function N(F){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=F}return N.prototype.isActive=function(){var F=E(this.target);return this.contentRect_=F,F.width!==this.broadcastWidth||F.height!==this.broadcastHeight},N.prototype.broadcastRect=function(){var F=this.contentRect_;return this.broadcastWidth=F.width,this.broadcastHeight=F.height,F},N}(),I=function(){function N(F,H){var G=h(H);t(this,{target:F,contentRect:G})}return N}(),b=function(){function N(F,H,G){if(this.activeObservations_=[],this.observations_=new ue,typeof F!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=F,this.controller_=H,this.callbackCtx_=G}return N.prototype.observe=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof r(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var H=this.observations_;H.has(F)||(H.set(F,new O(F)),this.controller_.addObserver(this),this.controller_.refresh())}},N.prototype.unobserve=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof r(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var H=this.observations_;H.has(F)&&(H.delete(F),H.size||this.controller_.removeObserver(this))}},N.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},N.prototype.gatherActive=function(){var F=this;this.clearActive(),this.observations_.forEach(function(H){H.isActive()&&F.activeObservations_.push(H)})},N.prototype.broadcastActive=function(){if(this.hasActive()){var F=this.callbackCtx_,H=this.activeObservations_.map(function(G){return new I(G.target,G.broadcastRect())});this.callback_.call(F,H,F),this.clearActive()}},N.prototype.clearActive=function(){this.activeObservations_.splice(0)},N.prototype.hasActive=function(){return this.activeObservations_.length>0},N}(),W=typeof WeakMap!="undefined"?new WeakMap:new ue,M=function(){function N(F){if(!(this instanceof N))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var H=o.getInstance(),G=new b(F,H,this);W.set(this,G)}return N}();["observe","unobserve","disconnect"].forEach(function(N){M.prototype[N]=function(){var F;return(F=W.get(this))[N].apply(F,arguments)}});var R=function(){return typeof k.ResizeObserver!="undefined"?k.ResizeObserver:M}();Pe.Z=R}}]);
|