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

96 lines
560 KiB

This file contains invisible Unicode characters!

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[59,5,6,9],{"+ibC":function(e,b,c){e.exports={modalWarp:"modalWarp___2OUik",modal:"modal___1xmy0",head:"head___2FB--",body:"body___1ObZm",site:"site___tzxzz",imgWarp:"imgWarp___3WKik",LeftButton:"LeftButton___fKyNM",RightButton:"RightButton___23ga7",title:"title___1ERn2"}},"+uyH":function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.Track=void 0;var t=i(c("pVnL")),_=i(c("lwsE")),y=i(c("W8MJ")),d=i(c("PJYZ")),h=i(c("7W2i")),n=i(c("LQ03")),s=i(c("lSNA")),l=i(c("3tO9")),a=i(c("q1tI")),o=i(c("TSYQ")),v=c("3K4p"),p=function(D){var C,T,m,r,L;D.rtl?L=D.slideCount-1-D.index:L=D.index,m=L<0||L>=D.slideCount,D.centerMode?(r=Math.floor(D.slidesToShow/2),T=(L-D.currentSlide)%D.slideCount===0,L>D.currentSlide-r-1&&L<=D.currentSlide+r&&(C=!0)):C=D.currentSlide<=L&&L<D.currentSlide+D.slidesToShow;var M;D.targetSlide<0?M=D.targetSlide+D.slideCount:D.targetSlide>=D.slideCount?M=D.targetSlide-D.slideCount:M=D.targetSlide;var u=L===M;return{"slick-slide":!0,"slick-active":C,"slick-center":T,"slick-cloned":m,"slick-current":u}},g=function(D){var C={};return(D.variableWidth===void 0||D.variableWidth===!1)&&(C.width=D.slideWidth),D.fade&&(C.position="relative",D.vertical?C.top=-D.index*parseInt(D.slideHeight):C.left=-D.index*parseInt(D.slideWidth),C.opacity=D.currentSlide===D.index?1:0,D.useCSS&&(C.transition="opacity "+D.speed+"ms "+D.cssEase+", visibility "+D.speed+"ms "+D.cssEase)),C},E=function(D,C){return D.key+"-"+C},w=function(D){var C,T=[],m=[],r=[],L=a.default.Children.count(D.children),M=(0,v.lazyStartIndex)(D),u=(0,v.lazyEndIndex)(D);return a.default.Children.forEach(D.children,function(j,O){var k,H={message:"children",index:O,slidesToScroll:D.slidesToScroll,currentSlide:D.currentSlide};!D.lazyLoad||D.lazyLoad&&D.lazyLoadedList.indexOf(O)>=0?k=j:k=a.default.createElement("div",null);var Q=g((0,l.default)((0,l.default)({},D),{},{index:O})),F=k.props.className||"",q=p((0,l.default)((0,l.default)({},D),{},{index:O}));if(T.push(a.default.cloneElement(k,{key:"original"+E(k,O),"data-index":O,className:(0,o.default)(q,F),tabIndex:"-1","aria-hidden":!q["slick-active"],style:(0,l.default)((0,l.default)({outline:"none"},k.props.style||{}),Q),onClick:function(B){k.props&&k.props.onClick&&k.props.onClick(B),D.focusOnSelect&&D.focusOnSelect(H)}})),D.infinite&&D.fade===!1){var W=L-O;W<=(0,v.getPreClones)(D)&&L!==D.slidesToShow&&(C=-W,C>=M&&(k=j),q=p((0,l.default)((0,l.default)({},D),{},{index:C})),m.push(a.default.cloneElement(k,{key:"precloned"+E(k,C),"data-index":C,tabIndex:"-1",className:(0,o.default)(q,F),"aria-hidden":!q["slick-active"],style:(0,l.default)((0,l.default)({},k.props.style||{}),Q),onClick:function(B){k.props&&k.props.onClick&&k.props.onClick(B),D.focusOnSelect&&D.focusOnSelect(H)}}))),L!==D.slidesToShow&&(C=L+O,C<u&&(k=j),q=p((0,l.default)((0,l.default)({},D),{},{index:C})),r.push(a.default.cloneElement(k,{key:"postcloned"+E(k,C),"data-index":C,tabIndex:"-1",className:(0,o.default)(q,F),"aria-hidden":!q["slick-active"],style:(0,l.default)((0,l.default)({},k.props.style||{}),Q),onClick:function(B){k.props&&k.props.onClick&&k.props.onClick(B),D.focusOnSelect&&D.focusOnSelect(H)}})))}}),D.rtl?m.concat(T,r).reverse():m.concat(T,r)},P=function(x){(0,h.default)(C,x);var D=(0,n.default)(C);function C(){var T;(0,_.default)(this,C);for(var m=arguments.length,r=new Array(m),L=0;L<m;L++)r[L]=arguments[L];return T=D.call.apply(D,[this].concat(r)),(0,s.default)((0,d.default)(T),"node",null),(0,s.default)((0,d.default)(T),"handleRef",function(M){T.node=M}),T}return(0,y.default)(C,[{key:"render",value:function(){var m=w(this.props),r=this.props,L=r.onMouseEnter,M=r.onMouseOver,u=r.onMouseLeave,j={onMouseEnter:L,onMouseOver:M,onMouseLeave:u};return a.default.createElement("div",(0,t.default)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},j),m)}}]),C}(a.default.PureComponent);b.Track=P},"3Fjq":function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.NextArrow=b.PrevArrow=void 0;var t=i(c("pVnL")),_=i(c("3tO9")),y=i(c("lwsE")),d=i(c("W8MJ")),h=i(c("7W2i")),n=i(c("LQ03")),s=i(c("q1tI")),l=i(c("TSYQ")),a=c("3K4p"),o=function(p){(0,h.default)(E,p);var g=(0,n.default)(E);function E(){return(0,y.default)(this,E),g.apply(this,arguments)}return(0,d.default)(E,[{key:"clickHandler",value:function(P,x){x&&x.preventDefault(),this.props.clickHandler(P,x)}},{key:"render",value:function(){var P={"slick-arrow":!0,"slick-prev":!0},x=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(P["slick-disabled"]=!0,x=null);var D={key:"0","data-role":"none",className:(0,l.default)(P),style:{display:"block"},onClick:x},C={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},T;return this.props.prevArrow?T=s.default.cloneElement(this.props.prevArrow,(0,_.default)((0,_.default)({},D),C)):T=s.default.createElement("button",(0,t.default)({key:"0",type:"button"},D)," ","Previous"),T}}]),E}(s.default.PureComponent);b.PrevArrow=o;var v=function(p){(0,h.default)(E,p);var g=(0,n.default)(E);function E(){return(0,y.default)(this,E),g.apply(this,arguments)}return(0,d.default)(E,[{key:"clickHandler",value:function(P,x){x&&x.preventDefault(),this.props.clickHandler(P,x)}},{key:"render",value:function(){var P={"slick-arrow":!0,"slick-next":!0},x=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(P["slick-disabled"]=!0,x=null);var D={key:"1","data-role":"none",className:(0,l.default)(P),style:{display:"block"},onClick:x},C={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},T;return this.props.nextArrow?T=s.default.cloneElement(this.props.nextArrow,(0,_.default)((0,_.default)({},D),C)):T=s.default.createElement("button",(0,t.default)({key:"1",type:"button"},D)," ","Next"),T}}]),E}(s.default.PureComponent);b.NextArrow=v},"3K4p":function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.clamp=y,b.canUseDOM=b.slidesOnLeft=b.slidesOnRight=b.siblingDirection=b.getTotalSlides=b.getPostClones=b.getPreClones=b.getTrackLeft=b.getTrackAnimateCSS=b.getTrackCSS=b.checkSpecKeys=b.getSlideCount=b.checkNavigable=b.getNavigableIndexes=b.swipeEnd=b.swipeMove=b.swipeStart=b.keyHandler=b.changeSlide=b.slideHandler=b.initializedState=b.extractObject=b.canGoNext=b.getSwipeDirection=b.getHeight=b.getWidth=b.lazySlidesOnRight=b.lazySlidesOnLeft=b.lazyEndIndex=b.lazyStartIndex=b.getRequiredLazySlides=b.getOnDemandLazySlides=void 0;var t=i(c("3tO9")),_=i(c("q1tI"));function y($,I,A){return Math.max(I,Math.min($,A))}var d=function(I){for(var A=[],z=n(I),K=s(I),V=z;V<K;V++)I.lazyLoadedList.indexOf(V)<0&&A.push(V);return A};b.getOnDemandLazySlides=d;var h=function(I){for(var A=[],z=n(I),K=s(I),V=z;V<K;V++)A.push(V);return A};b.getRequiredLazySlides=h;var n=function(I){return I.currentSlide-l(I)};b.lazyStartIndex=n;var s=function(I){return I.currentSlide+a(I)};b.lazyEndIndex=s;var l=function(I){return I.centerMode?Math.floor(I.slidesToShow/2)+(parseInt(I.centerPadding)>0?1:0):0};b.lazySlidesOnLeft=l;var a=function(I){return I.centerMode?Math.floor((I.slidesToShow-1)/2)+1+(parseInt(I.centerPadding)>0?1:0):I.slidesToShow};b.lazySlidesOnRight=a;var o=function(I){return I&&I.offsetWidth||0};b.getWidth=o;var v=function(I){return I&&I.offsetHeight||0};b.getHeight=v;var p=function(I){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,z,K,V,re;return z=I.startX-I.curX,K=I.startY-I.curY,V=Math.atan2(K,z),re=Math.round(V*180/Math.PI),re<0&&(re=360-Math.abs(re)),re<=45&&re>=0||re<=360&&re>=315?"left":re>=135&&re<=225?"right":A===!0?re>=35&&re<=135?"up":"down":"vertical"};b.getSwipeDirection=p;var g=function(I){var A=!0;return I.infinite||(I.centerMode&&I.currentSlide>=I.slideCount-1||(I.slideCount<=I.slidesToShow||I.currentSlide>=I.slideCount-I.slidesToShow))&&(A=!1),A};b.canGoNext=g;var E=function(I,A){var z={};return A.forEach(function(K){return z[K]=I[K]}),z};b.extractObject=E;var w=function(I){var A=_.default.Children.count(I.children),z=I.listRef,K=Math.ceil(o(z)),V=I.trackRef&&I.trackRef.node,re=Math.ceil(o(V)),ie;if(I.vertical)ie=K;else{var J=I.centerMode&&parseInt(I.centerPadding)*2;typeof I.centerPadding=="string"&&I.centerPadding.slice(-1)==="%"&&(J*=K/100),ie=Math.ceil((K-J)/I.slidesToShow)}var ce=z&&v(z.querySelector('[data-index="0"]')),se=ce*I.slidesToShow,ee=I.currentSlide===void 0?I.initialSlide:I.currentSlide;I.rtl&&I.currentSlide===void 0&&(ee=A-1-I.initialSlide);var te=I.lazyLoadedList||[],ae=d((0,t.default)((0,t.default)({},I),{},{currentSlide:ee,lazyLoadedList:te}));te.concat(ae);var fe={slideCount:A,slideWidth:ie,listWidth:K,trackWidth:re,currentSlide:ee,slideHeight:ce,listHeight:se,lazyLoadedList:te};return I.autoplaying===null&&I.autoplay&&(fe.autoplaying="playing"),fe};b.initializedState=w;var P=function(I){var A=I.waitForAnimate,z=I.animating,K=I.fade,V=I.infinite,re=I.index,ie=I.slideCount,J=I.lazyLoadedList,ce=I.lazyLoad,se=I.currentSlide,ee=I.centerMode,te=I.slidesToScroll,ae=I.slidesToShow,fe=I.useCSS;if(A&&z)return{};var G=re,X,oe,U,R={},f={},S=V?re:y(re,0,ie-1);if(K){if(!V&&(re<0||re>=ie))return{};re<0?G=re+ie:re>=ie&&(G=re-ie),ce&&J.indexOf(G)<0&&J.push(G),R={animating:!0,currentSlide:G,lazyLoadedList:J,targetSlide:G},f={animating:!1,targetSlide:G}}else X=G,G<0?(X=G+ie,V?ie%te!==0&&(X=ie-ie%te):X=0):!g(I)&&G>se?G=X=se:ee&&G>=ie?(G=V?ie:ie-1,X=V?0:ie-1):G>=ie&&(X=G-ie,V?ie%te!==0&&(X=0):X=ie-ae),!V&&G+ae>=ie&&(X=ie-ae),oe=k((0,t.default)((0,t.default)({},I),{},{slideIndex:G})),U=k((0,t.default)((0,t.default)({},I),{},{slideIndex:X})),V||(oe===U&&(G=X),oe=U),ce&&J.concat(d((0,t.default)((0,t.default)({},I),{},{currentSlide:G}))),fe?(R={animating:!0,currentSlide:X,trackStyle:O((0,t.default)((0,t.default)({},I),{},{left:oe})),lazyLoadedList:J,targetSlide:S},f={animating:!1,currentSlide:X,trackStyle:j((0,t.default)((0,t.default)({},I),{},{left:U})),swipeLeft:null,targetSlide:S}):R={currentSlide:X,trackStyle:j((0,t.default)((0,t.default)({},I),{},{left:U})),lazyLoadedList:J,targetSlide:S};return{state:R,nextState:f}};b.slideHandler=P;var x=function(I,A){var z,K,V,re,ie,J=I.slidesToScroll,ce=I.slidesToShow,se=I.slideCount,ee=I.currentSlide,te=I.targetSlide,ae=I.lazyLoad,fe=I.infinite;if(re=se%J!==0,z=re?0:(se-ee)%J,A.message==="previous")V=z===0?J:ce-z,ie=ee-V,ae&&!fe&&(K=ee-V,ie=K===-1?se-1:K),fe||(ie=te-J);else if(A.message==="next")V=z===0?J:z,ie=ee+V,ae&&!fe&&(ie=(ee+J)%se+z),fe||(ie=te+J);else if(A.message==="dots")ie=A.index*A.slidesToScroll;else if(A.message==="children"){if(ie=A.index,fe){var G=q((0,t.default)((0,t.default)({},I),{},{targetSlide:ie}));ie>A.currentSlide&&G==="left"?ie=ie-se:ie<A.currentSlide&&G==="right"&&(ie=ie+se)}}else A.message==="index"&&(ie=Number(A.index));return ie};b.changeSlide=x;var D=function(I,A,z){return I.target.tagName.match("TEXTAREA|INPUT|SELECT")||!A?"":I.keyCode===37?z?"next":"previous":I.keyCode===39?z?"previous":"next":""};b.keyHandler=D;var C=function(I,A,z){return I.target.tagName==="IMG"&&I.preventDefault(),!A||!z&&I.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:I.touches?I.touches[0].pageX:I.clientX,startY:I.touches?I.touches[0].pageY:I.clientY,curX:I.touches?I.touches[0].pageX:I.clientX,curY:I.touches?I.touches[0].pageY:I.clientY}}};b.swipeStart=C;var T=function(I,A){var z=A.scrolling,K=A.animating,V=A.vertical,re=A.swipeToSlide,ie=A.verticalSwiping,J=A.rtl,ce=A.currentSlide,se=A.edgeFriction,ee=A.edgeDragged,te=A.onEdge,ae=A.swiped,fe=A.swiping,G=A.slideCount,X=A.slidesToScroll,oe=A.infinite,U=A.touchObject,R=A.swipeEvent,f=A.listHeight,S=A.listWidth;if(z)return;if(K)return I.preventDefault();V&&re&&ie&&I.preventDefault();var Z,Y={},ne=k(A);U.curX=I.touches?I.touches[0].pageX:I.clientX,U.curY=I.touches?I.touches[0].pageY:I.clientY,U.swipeLength=Math.round(Math.sqrt(Math.pow(U.curX-U.startX,2)));var he=Math.round(Math.sqrt(Math.pow(U.curY-U.startY,2)));if(!ie&&!fe&&he>10)return{scrolling:!0};ie&&(U.swipeLength=he);var ve=(J?-1:1)*(U.curX>U.startX?1:-1);ie&&(ve=U.curY>U.startY?1:-1);var we=Math.ceil(G/X),Ce=p(A.touchObject,ie),Se=U.swipeLength;return oe||(ce===0&&Ce==="right"||ce+1>=we&&Ce==="left"||!g(A)&&Ce==="left")&&(Se=U.swipeLength*se,ee===!1&&te&&(te(Ce),Y.edgeDragged=!0)),!ae&&R&&(R(Ce),Y.swiped=!0),V?Z=ne+Se*(f/S)*ve:J?Z=ne-Se*ve:Z=ne+Se*ve,ie&&(Z=ne+Se*ve),Y=(0,t.default)((0,t.default)({},Y),{},{touchObject:U,swipeLeft:Z,trackStyle:j((0,t.default)((0,t.default)({},A),{},{left:Z}))}),Math.abs(U.curX-U.startX)<Math.abs(U.curY-U.startY)*.8||U.swipeLength>10&&(Y.swiping=!0,I.preventDefault()),Y};b.swipeMove=T;var m=function(I,A){var z=A.dragging,K=A.swipe,V=A.touchObject,re=A.listWidth,ie=A.touchThreshold,J=A.verticalSwiping,ce=A.listHeight,se=A.swipeToSlide,ee=A.scrolling,te=A.onSwipe,ae=A.targetSlide,fe=A.currentSlide,G=A.infinite;if(!z)return K&&I.preventDefault(),{};var X=J?ce/ie:re/ie,oe=p(V,J),U={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(ee)return U;if(!V.swipeLength)return U;if(V.swipeLength>X){I.preventDefault(),te&&te(oe);var R,f,S=G?fe:ae;switch(oe){case"left":case"up":f=S+M(A),R=se?L(A,f):f,U.currentDirection=0;break;case"right":case"down":f=S-M(A),R=se?L(A,f):f,U.currentDirection=1;break;default:R=S}U.triggerSlideHandler=R}else{var Z=k(A);U.trackStyle=O((0,t.default)((0,t.default)({},A),{},{left:Z}))}return U};b.swipeEnd=m;var r=function(I){for(var A=I.infinite?I.slideCount*2:I.slideCount,z=I.infinite?I.slidesToShow*-1:0,K=I.infinite?I.slidesToShow*-1:0,V=[];z<A;)V.push(z),z=K+I.slidesToScroll,K+=Math.min(I.slidesToScroll,I.slidesToShow);return V};b.getNavigableIndexes=r;var L=function(I,A){var z=r(I),K=0;if(A>z[z.length-1])A=z[z.length-1];else for(var V in z){if(A<z[V]){A=K;break}K=z[V]}return A};b.checkNavigable=L;var M=function(I){var A=I.centerMode?I.slideWidth*Math.floor(I.slidesToShow/2):0;if(I.swipeToSlide){var z,K=I.listRef,V=K.querySelectorAll(".slick-slide");if(Array.from(V).every(function(J){if(I.vertical){if(J.offsetTop+v(J)/2>I.swipeLeft*-1)return z=J,!1}else if(J.offsetLeft-A+o(J)/2>I.swipeLeft*-1)return z=J,!1;return!0}),!z)return 0;var re=I.rtl===!0?I.slideCount-I.currentSlide:I.currentSlide,ie=Math.abs(z.dataset.index-re)||1;return ie}else return I.slidesToScroll};b.getSlideCount=M;var u=function(I,A){return A.reduce(function(z,K){return z&&I.hasOwnProperty(K)},!0)?null:console.error("Keys Missing:",I)};b.checkSpecKeys=u;var j=function(I){u(I,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var A,z,K=I.slideCount+2*I.slidesToShow;I.vertical?z=K*I.slideHeight:A=F(I)*I.slideWidth;var V={opacity:1,transition:"",WebkitTransition:""};if(I.useTransform){var re=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",ie=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",J=I.vertical?"translateY("+I.left+"px)":"translateX("+I.left+"px)";V=(0,t.default)((0,t.default)({},V),{},{WebkitTransform:re,transform:ie,msTransform:J})}else I.vertical?V.top=I.left:V.left=I.left;return I.fade&&(V={opacity:1}),A&&(V.width=A),z&&(V.height=z),window&&!window.addEventListener&&window.attachEvent&&(I.vertical?V.marginTop=I.left+"px":V.marginLeft=I.left+"px"),V};b.getTrackCSS=j;var O=function(I){u(I,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var A=j(I);return I.useTransform?(A.WebkitTransition="-webkit-transform "+I.speed+"ms "+I.cssEase,A.transition="transform "+I.speed+"ms "+I.cssEase):I.vertical?A.transition="top "+I.speed+"ms "+I.cssEase:A.transition="left "+I.speed+"ms "+I.cssEase,A};b.getTrackAnimateCSS=O;var k=function(I){if(I.unslick)return 0;u(I,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var A=I.slideIndex,z=I.trackRef,K=I.infinite,V=I.centerMode,re=I.slideCount,ie=I.slidesToShow,J=I.slidesToScroll,ce=I.slideWidth,se=I.listWidth,ee=I.variableWidth,te=I.slideHeight,ae=I.fade,fe=I.vertical,G=0,X,oe,U=0;if(ae||I.slideCount===1)return 0;var R=0;if(K?(R=-H(I),re%J!==0&&A+J>re&&(R=-(A>re?ie-(A-re):re%J)),V&&(R+=parseInt(ie/2))):(re%J!==0&&A+J>re&&(R=ie-re%J),V&&(R=parseInt(ie/2))),G=R*ce,U=R*te,fe?X=A*te*-1+U:X=A*ce*-1+G,ee===!0){var f,S=z&&z.node;if(f=A+H(I),oe=S&&S.childNodes[f],X=oe?oe.offsetLeft*-1:0,V===!0){f=K?A+H(I):A,oe=S&&S.children[f],X=0;for(var Z=0;Z<f;Z++)X-=S&&S.children[Z]&&S.children[Z].offsetWidth;X-=parseInt(I.centerPadding),X+=oe&&(se-oe.offsetWidth)/2}}return X};b.getTrackLeft=k;var H=function(I){return I.unslick||!I.infinite?0:I.variableWidth?I.slideCount:I.slidesToShow+(I.centerMode?1:0)};b.getPreClones=H;var Q=function(I){return I.unslick||!I.infinite?0:I.slideCount};b.getPostClones=Q;var F=function(I){return I.slideCount===1?1:H(I)+I.slideCount+Q(I)};b.getTotalSlides=F;var q=function(I){return I.targetSlide>I.currentSlide?I.targetSlide>I.currentSlide+W(I)?"left":"right":I.targetSlide<I.currentSlide-N(I)?"right":"left"};b.siblingDirection=q;var W=function(I){var A=I.slidesToShow,z=I.centerMode,K=I.rtl,V=I.centerPadding;if(z){var re=(A-1)/2+1;return parseInt(V)>0&&(re+=1),K&&A%2===0&&(re+=1),re}return K?0:A-1};b.slidesOnRight=W;var N=function(I){var A=I.slidesToShow,z=I.centerMode,K=I.rtl,V=I.centerPadding;if(z){var re=(A-1)/2+1;return parseInt(V)>0&&(re+=1),!K&&A%2===0&&(re+=1),re}return K?A-1:0};b.slidesOnLeft=N;var B=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)};b.canUseDOM=B},"6/k+":function(e,b,c){},"7Cbv":function(e,b,c){"use strict";var i=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),t=new Uint8Array(16);function _(){if(!i)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(t)}var y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function d(p){return typeof p=="string"&&y.test(p)}for(var h=d,n=[],s=0;s<256;++s)n.push((s+256).toString(16).substr(1));function l(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=(n[p[g+0]]+n[p[g+1]]+n[p[g+2]]+n[p[g+3]]+"-"+n[p[g+4]]+n[p[g+5]]+"-"+n[p[g+6]]+n[p[g+7]]+"-"+n[p[g+8]]+n[p[g+9]]+"-"+n[p[g+10]]+n[p[g+11]]+n[p[g+12]]+n[p[g+13]]+n[p[g+14]]+n[p[g+15]]).toLowerCase();if(!h(E))throw TypeError("Stringified UUID is invalid");return E}var a=l;function o(p,g,E){p=p||{};var w=p.random||(p.rng||_)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,g){E=E||0;for(var P=0;P<16;++P)g[E+P]=w[P];return g}return a(w)}var v=b.a=o},"7ahc":function(e,b,c){"use strict";c.d(b,"a",function(){return T});var i=c("k1fw"),t=c("0Owb"),_=c("+L6B"),y=c("2/Rp"),d=c("y8nQ"),h=c("Vl3Y"),n=c("tJVT"),s=c("OaEy"),l=c("2fM7"),a=c("q1tI"),o=c.n(a),v=c("VrN/"),p=c.n(v),g=c("p77/"),E=c.n(g),w=c("c5Ni"),P=c.n(w),x=l.a.Option,D={labelCol:{span:4},wrapperCol:{span:20}},C={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};b.b=function(m){var r=m.callback,L=m.onCancel,M=Object(a.useState)("python"),u=Object(n.a)(M,2),j=u[0],O=u[1];function k(Q){O(C[Q][1])}function H(Q){r(Q)}return o.a.createElement(h.a,Object(t.a)({},D,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:H}),o.a.createElement(h.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},o.a.createElement(l.a,{onChange:k},Object.keys(C).map(function(Q){return o.a.createElement(x,{key:Q,value:Q},C[Q][0])}))),o.a.createElement(h.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},o.a.createElement(T,{mode:j})),o.a.createElement("div",{className:"flex-container flex-end"},o.a.createElement(y.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),o.a.createElement(y.a,{type:"ghost",onClick:L},"\u53D6\u6D88")))};function T(m){var r=m.value,L=m.onChange,M=m.mode,u=m.options,j=u===void 0?{}:u,O=Object(a.useRef)(),k=Object(a.useState)(),H=Object(n.a)(k,2),Q=H[0],F=H[1];return Object(a.useEffect)(function(){if(Q){var q=function(N){var B=N.getValue();L&&L(B)};return Q.on("change",q),function(){Q.off("change",q)}}},[Q,L]),Object(a.useEffect)(function(){Q&&Q.setOption("mode",M)},[Q,M]),Object(a.useEffect)(function(){Q&&((r!==Q.getValue()||r==="")&&setTimeout(function(){Q.setValue(r||" ")},300))},[Q,r]),Object(a.useEffect)(function(){if(O.current&&!Q){var q=p.a.fromTextArea(O.current,Object(i.a)({mode:M,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},j));F(q)}},[O.current,Q]),o.a.createElement("div",{className:"my-codemirror-container"},o.a.createElement("textarea",{ref:O}))}},"8N4D":function(e,b,c){"use strict";function i(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(H){return typeof H}:i=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},i(O)}Object.defineProperty(b,"__esModule",{value:!0}),b.matchesSelector=a,b.matchesSelectorAndParentsTo=o,b.addEvent=v,b.removeEvent=p,b.outerHeight=g,b.outerWidth=E,b.innerHeight=w,b.innerWidth=P,b.offsetXYFromParent=x,b.createCSSTransform=D,b.createSVGTransform=C,b.getTranslation=T,b.getTouch=m,b.getTouchIdentifier=r,b.addUserSelectStyles=L,b.removeUserSelectStyles=M,b.addClassName=u,b.removeClassName=j;var t=c("gbW8"),_=d(c("Ga4A"));function y(O){if(typeof WeakMap!="function")return null;var k=new WeakMap,H=new WeakMap;return(y=function(F){return F?H:k})(O)}function d(O,k){if(!k&&O&&O.__esModule)return O;if(O===null||i(O)!=="object"&&typeof O!="function")return{default:O};var H=y(k);if(H&&H.has(O))return H.get(O);var Q={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in O)if(q!=="default"&&Object.prototype.hasOwnProperty.call(O,q)){var W=F?Object.getOwnPropertyDescriptor(O,q):null;W&&(W.get||W.set)?Object.defineProperty(Q,q,W):Q[q]=O[q]}return Q.default=O,H&&H.set(O,Q),Q}function h(O,k){var H=Object.keys(O);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(O);k&&(Q=Q.filter(function(F){return Object.getOwnPropertyDescriptor(O,F).enumerable})),H.push.apply(H,Q)}return H}function n(O){for(var k=1;k<arguments.length;k++){var H=arguments[k]!=null?arguments[k]:{};k%2?h(Object(H),!0).forEach(function(Q){s(O,Q,H[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(H)):h(Object(H)).forEach(function(Q){Object.defineProperty(O,Q,Object.getOwnPropertyDescriptor(H,Q))})}return O}function s(O,k,H){return k in O?Object.defineProperty(O,k,{value:H,enumerable:!0,configurable:!0,writable:!0}):O[k]=H,O}var l="";function a(O,k){return l||(l=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(H){return(0,t.isFunction)(O[H])})),(0,t.isFunction)(O[l])?O[l](k):!1}function o(O,k,H){var Q=O;do{if(a(Q,k))return!0;if(Q===H)return!1;Q=Q.parentNode}while(Q);return!1}function v(O,k,H,Q){if(!O)return;var F=n({capture:!0},Q);O.addEventListener?O.addEventListener(k,H,F):O.attachEvent?O.attachEvent("on"+k,H):O["on"+k]=H}function p(O,k,H,Q){if(!O)return;var F=n({capture:!0},Q);O.removeEventListener?O.removeEventListener(k,H,F):O.detachEvent?O.detachEvent("on"+k,H):O["on"+k]=null}function g(O){var k=O.clientHeight,H=O.ownerDocument.defaultView.getComputedStyle(O);return k+=(0,t.int)(H.borderTopWidth),k+=(0,t.int)(H.borderBottomWidth),k}function E(O){var k=O.clientWidth,H=O.ownerDocument.defaultView.getComputedStyle(O);return k+=(0,t.int)(H.borderLeftWidth),k+=(0,t.int)(H.borderRightWidth),k}function w(O){var k=O.clientHeight,H=O.ownerDocument.defaultView.getComputedStyle(O);return k-=(0,t.int)(H.paddingTop),k-=(0,t.int)(H.paddingBottom),k}function P(O){var k=O.clientWidth,H=O.ownerDocument.defaultView.getComputedStyle(O);return k-=(0,t.int)(H.paddingLeft),k-=(0,t.int)(H.paddingRight),k}function x(O,k,H){var Q=k===k.ownerDocument.body,F=Q?{left:0,top:0}:k.getBoundingClientRect(),q=(O.clientX+k.scrollLeft-F.left)/H,W=(O.clientY+k.scrollTop-F.top)/H;return{x:q,y:W}}function D(O,k){var H=T(O,k,"px");return s({},(0,_.browserPrefixToKey)("transform",_.default),H)}function C(O,k){var H=T(O,k,"");return H}function T(O,k,H){var Q=O.x,F=O.y,q="translate(".concat(Q).concat(H,",").concat(F).concat(H,")");if(k){var W="".concat(typeof k.x=="string"?k.x:k.x+H),N="".concat(typeof k.y=="string"?k.y:k.y+H);q="translate(".concat(W,", ").concat(N,")")+q}return q}function m(O,k){return O.targetTouches&&(0,t.findInArray)(O.targetTouches,function(H){return k===H.identifier})||O.changedTouches&&(0,t.findInArray)(O.changedTouches,function(H){return k===H.identifier})}function r(O){if(O.targetTouches&&O.targetTouches[0])return O.targetTouches[0].identifier;if(O.changedTouches&&O.changedTouches[0])return O.changedTouches[0].identifier}function L(O){if(!O)return;var k=O.getElementById("react-draggable-style-el");k||(k=O.createElement("style"),k.type="text/css",k.id="react-draggable-style-el",k.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,k.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,O.getElementsByTagName("head")[0].appendChild(k)),O.body&&u(O.body,"react-draggable-transparent-selection")}function M(O){if(!O)return;try{if(O.body&&j(O.body,"react-draggable-transparent-selection"),O.selection)O.selection.empty();else{var k=(O.defaultView||window).getSelection();k&&k.type!=="Caret"&&k.removeAllRanges()}}catch(H){}}function u(O,k){O.classList?O.classList.add(k):O.className.match(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)")))||(O.className+=" ".concat(k))}function j(O,k){O.classList?O.classList.remove(k):O.className=O.className.replace(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)"),"g"),"")}},"9Bee":function(e,b,c){"use strict";var i=c("q1tI"),t=c.n(i),_=c("vg9a"),y=c("tJVT"),d=c("DlQD"),h=c.n(d),n=c("rUJ1");function s(W,N){var B=W.match(/^(\s+)(?:```)/);if(B===null)return N;var $=B[1];return N.split(`
`).map(function(I){var A=I.match(/^\s+/);if(A===null)return I;var z=Object(y.a)(A,1),K=z[0];return K.length>=$.length?I.slice($.length):I}).join(`
`)}var l=[],a=["<ul>"],o=new h.a.Renderer,v=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){l.length=0,a=["<ul>"]}function g(W,N,B,$){if(N>=W.length||W[N].level<=B)return N;var I=W[N];$.push("<li><a href='#"+I.anchor+"'>"+I.text+"</a>"),N++;var A=[];return N=g(W,N,I.level,A),A.length>0&&($.push("<ul>"),A.forEach(function(z){$.push(z)}),$.push("</ul>")),$.push("</li>"),N=g(W,N,B,$),N}function E(){return g(l,0,0,a),a.push("</ul>"),a.join("")}var w={heading:function(N){var B=v.exec(N);if(B)return{type:"heading",raw:B[0],depth:B[1].length,text:B[2]}},fences:function(N){var B=this.rules.block.fences.exec(N);if(B){var $=B[0],I=s($,B[3]||""),A=B[2]?B[2].trim():B[2];if(["latex","katex","math"].indexOf(A)>=0){var z=D(),K=I;I=z,C[z]={type:"block",expression:K}}return{type:"code",raw:$,lang:A,text:I}}}},P=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,D=function(){return"__special_katext_id_".concat(x++,"__")},C={};function T(){return C}function m(){x=0,C={}}function r(W){return W=W.replace(P,function(N,B){var $=D();return C[$]={type:"inline",expression:B},$}),W}var L=o.listitem;o.listitem=function(W){return L(r(W))};var M=o.paragraph;o.paragraph=function(W){return M(r(W))};var u=o.tablecell;o.tablecell=function(W,N){return u(r(W),N)},o.code=function(W,N,B){var $=(N||"").match(/\S*/)[0];return $?["latex","katex","math"].indexOf($)>=0?"<p class='editormd-tex'>".concat(W,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(N,'">').concat(B?W:Object(n.escape)(W,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(B?W:Object(n.escape)(W,!0))+"</code></pre>"},o.heading=function(W,N,B){var $=this.options.headerPrefix+B.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return l.push({anchor:$,level:N,text:W}),"<h"+N+' id="'+$+'">'+W+"</h"+N+">"},h.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),h.a.use({tokenizer:w,renderer:o});var j=h.a,O=c("SJMd"),k=c("m3rI"),H=c("Oy/b"),Q=/<pre[^>]*>/g;function F(W){var N=document.createElement("div");return N.innerHTML=W,N.childNodes.length===0?"":N.childNodes[0].nodeValue}var q=b.a=function(W){var N=W.value,B=N===void 0?"":N,$=W.className,I=W.style,A=I===void 0?{}:I,z=String(B),K=Object(i.useMemo)(function(){try{var ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,J=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ce=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;z=z.replace(ie,"("+k.a.API_SERVER+"/api/attachments/").replace(J,'"'+k.a.API_SERVER+"/api/attachments/").replace(ce,'"'+k.a.API_SERVER+"/files/uploads/")}catch(te){}var se=j(z),ee=T();return z.match(/\[TOC\]/)&&(se=se.replace("<p>[TOC]</p>",E()),p()),se=se.replace(/(__special_katext_id_\d+__)/g,function(te,ae){var fe=ee[ae],G=fe.type,X=fe.expression;return Object(H.renderToString)(F(X)||"",{displayMode:G==="block",throwOnError:!1,output:"html"})}),se=se.replace(/▁/g,"\u2581\u2581\u2581"),m(),se},[z]),V=Object(i.useRef)();function re(ie){var J=ie.target;if(J.tagName.toUpperCase()==="A"){var ce=J.getAttribute("href");if(ce.startsWith("#")){ie.preventDefault();var se=document.getElementById(ce.replace("#",""));se&&se.scrollIntoView(!0)}}}return Object(i.useEffect)(function(){if(V.current&&K&&(K.match(Q)&&window.PR.prettyPrint()),V.current)return V.current.addEventListener("click",re),function(){V.current.removeEventListener("click",re),m(),p()}},[K,V.current,re]),t.a.createElement("div",{ref:V,style:A,className:"".concat($||""," markdown-body"),dangerouslySetInnerHTML:{__html:K}})}},"9VGf":function(e,b,c){"use strict";c.d(b,"a",function(){return _});var i=c("q1tI"),t=c.n(i);function _(y,d){var h=Object(i.useRef)();Object(i.useEffect)(function(){h.current=y}),Object(i.useEffect)(function(){function n(){h.current()}if(d!==null){var s=setInterval(n,d);return function(){return clearInterval(s)}}},[d])}},BJfS:function(e,b){var c=function(t){return t.replace(/[A-Z]/g,function(_){return"-"+_.toLowerCase()}).toLowerCase()};e.exports=c},BjJ7:function(e,b,c){"use strict";c.d(b,"d",function(){return t}),c.d(b,"c",function(){return _}),c.d(b,"e",function(){return y}),c.d(b,"b",function(){return d}),c.d(b,"a",function(){return n});var i=c("m3rI");function t(s){var l=!0;if(s.length>0){for(var a=0;a<s.length;a++)if(s[a].compile_success==0||!s[a].compile_success){l=!1;break}}else l=!1;return l}function _(s){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=[],o=0;o<s.length;o++){var v=s[o],p=l?"".concat(l,"/").concat(v.name):"".concat(v.name);a.push({title:v.name,isLeaf:!(v.type==="tree"),key:p})}return a}function y(s,l,a){for(var o=0;o<s.length;o++){var v=s[o];if(v.key===l){v.children=a;break}v.children&&y(v.children,l,a)}return s}function d(s,l,a){var o;return function(){var v=this,p=arguments,g=function(){o=null,a||s.apply(v,p)},E=a&&!o;clearTimeout(o),o=setTimeout(g,l),E&&s.apply(v,p)}}var h=!0,n=i.a.API_SERVER},"C+DQ":function(e,b,c){},DR4n:function(e,b,c){e.exports={flex_box_center:"flex_box_center___2zmmW",flex_space_between:"flex_space_between___3nCIw",flex_box_vertical_center:"flex_box_vertical_center___1PFij",flex_box_center_end:"flex_box_center_end___2FA05",flex_box_column:"flex_box_column___2k0kx",video:"video___1mYnG"}},F1Ou:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var i={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},t=i;b.default=t},Ga4A:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getPrefix=t,b.browserPrefixToKey=_,b.browserPrefixToStyle=y,b.default=void 0;var i=["Moz","Webkit","O","ms"];function t(){var n,s,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var a=(n=window.document)===null||n===void 0||((s=n.documentElement)===null||s===void 0)?void 0:s.style;if(!a)return"";if(l in a)return"";for(var o=0;o<i.length;o++)if(_(l,i[o])in a)return i[o];return""}function _(n,s){return s?"".concat(s).concat(d(n)):n}function y(n,s){return s?"-".concat(s.toLowerCase(),"-").concat(n):n}function d(n){for(var s="",l=!0,a=0;a<n.length;a++)l?(s+=n[a].toUpperCase(),l=!1):n[a]==="-"?l=!0:s+=n[a];return s}var h=t();b.default=h},HmJG:function(e,b,c){},Lkat:function(e,b,c){e.exports={flex_box_center:"flex_box_center___1-4ze",flex_space_between:"flex_space_between___17465",flex_box_vertical_center:"flex_box_vertical_center___3Om4M",flex_box_center_end:"flex_box_center_end___17QHy",flex_box_column:"flex_box_column___3KCL8",iframe:"iframe___1tAeZ",tips:"tips___7dULl",title:"title___3YOzK",customBtn:"customBtn___1mRBE",table:"table___8-F5o",row:"row___arjAZ",single:"single___3ZuSc",multiple:"multiple___2huie",judgment:"judgment___1zw2a",completion:"completion___3rPnh",qs:"qs___2djYN",qsActive:"qsActive___2fO9a",ms:"ms___1F_Kw",msActive:"msActive___2mEyM",answer:"answer___1tg19",analysis:"analysis___119sk",fill:"fill___38Dox",subjective:"subjective___3eb-y",program:"program___q1j96",practice:"practice___1RHok"}},M8RZ:function(e,b,c){"use strict";c.d(b,"a",function(){return l});var i=c("fWQN"),t=c("mtLc"),_=c("yKVA"),y=c("879j"),d=c("q1tI"),h=c.n(d),n=c("i8i4"),s=c.n(n),l=function(a){Object(_.a)(v,a);var o=Object(y.a)(v);function v(p){var g;Object(i.a)(this,v),g=o.call(this,p);var E=window.document;return g.node=E.createElement("div"),E.body.appendChild(g.node),g}return Object(t.a)(v,[{key:"render",value:function(){var g=this.props.children;return Object(n.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),v}(h.a.Component)},"N/JB":function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=i(c("ToDW")),_=t.default;b.default=_},Ot1p:function(e,b,c){"use strict";var i=c("2qtc"),t=c("kLXV"),_=c("rAM+"),y=c("tJVT"),d=c("jrin"),h=c("q1tI"),n=c.n(h),s=c("VrN/"),l=c.n(s),a=c("bdgK"),o=c("p77/"),v=c("Bd2K"),p=c("ELLl"),g=c("19Vz"),E=c("lZu9"),w=c("kSUc"),P=c("9Bee"),x=c("0Owb"),D=c("dejd"),C=c("C+DQ"),T=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function m(ue){var He=ue.onActionCallback,Ye=ue.title,Je=ue.icon,ft=ue.actionName,wt=ue.className,Rt=wt===void 0?"":wt,Ft=ue.children;function Ut(){He(ft)}return n.a.createElement("a",{title:Ye,className:Rt,onClick:Ut},n.a.createElement("i",{className:"md-iconfont ".concat(Je)}),Ft)}var r=function(ue){var He=ue.watch,Ye=ue.showNullButton,Je=ue.onActionCallback,ft=ue.fullScreen,wt=ue.insertTemp,Rt=ue.readOnly,Ft=[].concat(T,[{title:"".concat(He?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(He?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return n.a.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&n.a.createElement(n.a.Fragment,null,Ft.map(function(Ut,zt){return n.a.createElement("li",{key:zt},Ut.actionName?n.a.createElement(m,Object(x.a)({},Ut,{onActionCallback:Je})):n.a.createElement("span",{className:"v-line"}))}),Ye?n.a.createElement("li",null,n.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Je},n.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,wt&&n.a.createElement("li",null,n.a.createElement(m,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(wt),onActionCallback:Je},n.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F")))),n.a.createElement("li",{className:"btn-full-screen"},n.a.createElement(m,{icon:"".concat(ft?"icon-shrink":"icon-enlarge"),title:ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Je})))},L=c("M8RZ"),M=c("+L6B"),u=c("2/Rp"),j=c("y8nQ"),O=c("Vl3Y"),k=c("5NDa"),H=c("5rEg"),Q={labelCol:{span:4},wrapperCol:{span:20}},F=function(ue){var He=ue.callback,Ye=ue.onCancel;function Je(ft){He(ft)}return n.a.createElement(O.a,Object(x.a)({},Q,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Je}),n.a.createElement(O.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},n.a.createElement(H.a,null)),n.a.createElement(O.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},n.a.createElement(H.a,null)),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(u.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(u.a,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},q=c("7ahc"),W=c("HmJG"),N=c("BjJ7"),B=O.a.useForm,$={width:280,marginRight:10},I={labelCol:{span:5},wrapperCol:{span:19}},A=function(ue){var He=ue.callback,Ye=ue.onCancel,Je=B(),ft=Object(y.a)(Je,1),wt=ft[0];function Rt(zt){He(zt)}function Ft(zt){wt.setFieldsValue({src:"/api/attachments/".concat(zt.id)})}function Ut(zt){var Qe=zt.target.files[0];K(Qe,Ft)}return n.a.createElement(O.a,Object(x.a)({form:wt},I,{className:"upload-image-panel",onFinish:Rt}),n.a.createElement(O.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},n.a.createElement("div",{className:"flex-container"},n.a.createElement(O.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},n.a.createElement(H.a,{style:$})),n.a.createElement(z,{onFileChange:Ut}))),n.a.createElement(O.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},n.a.createElement(H.a,{style:{width:264}})),n.a.createElement(O.a.Item,{style:{textAlign:"right"}},n.a.createElement(u.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(u.a,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))};function z(ue){var He=ue.onFileChange;return n.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",n.a.createElement("input",{type:"file",accept:"image/*",onChange:He}))}function K(ue,He){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ye=new FormData;Ye.append("editormd-image-file",ue),Ye.append("file_param_name","editormd-image-file"),Ye.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(ft){He(JSON.parse(ft.target.responseText))},!1),Je.addEventListener("error",function(ft){console.error(ft)},!1),Je.open("POST","".concat(N.a,"/api/attachments.json")),Je.send(Ye)}var V=c("giR+"),re=c("fyUT"),ie=c("7Kak"),J=c("9yH6"),ce=J.a.Group,se={margin:"0 8px"},ee=function(ue){var He=ue.callback,Ye=ue.onCancel;function Je(ft){He(ft)}return n.a.createElement(O.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Je},n.a.createElement("div",{className:"flex-container"},n.a.createElement("span",{style:se},"\u5355\u5143\u683C\u6570\uFF1A"),n.a.createElement("span",{style:se},"\u884C\u6570"),n.a.createElement(O.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},n.a.createElement(re.a,null)),n.a.createElement("span",{style:se},"\u5217\u6570"),n.a.createElement(O.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},n.a.createElement(re.a,null))),n.a.createElement("div",{className:"flex-container",style:{marginTop:12}},n.a.createElement("span",{style:se},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),n.a.createElement(O.a.Item,{name:"align"},n.a.createElement(ce,null,n.a.createElement(J.a,{value:"default"},n.a.createElement("i",{className:"fa fa-align-justify"})),n.a.createElement(J.a,{value:"left"},n.a.createElement("i",{className:"fa fa-align-left"})),n.a.createElement(J.a,{value:"center"},n.a.createElement("i",{className:"fa fa-align-center"})),n.a.createElement(J.a,{value:"right"},n.a.createElement("i",{className:"fa fa-align-right"}))))),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(u.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(u.a,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},te="link",ae="upload-image",fe="code-block",G="add-table",X="------------",oe={default:X,left:":".concat(X),center:":".concat(X,":"),right:"".concat(X,":")},U=c("9VGf"),R,f;function S(){}var Z=0,Y=1e4,ne="\u2581",he=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ve(ue){return/^\d+$/.test(ue)?"".concat(ue,"px"):ue}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ce=we?"Cmd":"Ctrl",Se=(R={},Object(d.a)(R,Ce+"-B","bold"),Object(d.a)(R,Ce+"-I","italic"),R),De=(f={},Object(d.a)(f,te,"\u6DFB\u52A0\u94FE\u63A5"),Object(d.a)(f,fe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(d.a)(f,ae,"\u6DFB\u52A0\u56FE\u7247"),Object(d.a)(f,G,"\u6DFB\u52A0\u8868\u683C"),f),Xe=b.a=function(ue){var He=ue.defaultValue,Ye=He===void 0?"":He,Je=ue.onChange,ft=ue.width,wt=ft===void 0?"100%":ft,Rt=ue.height,Ft=Rt===void 0?400:Rt,Ut=ue.miniToolbar,zt=Ut===void 0?!1:Ut,Qe=ue.isFocus,ut=Qe===void 0?!1:Qe,Mt=ue.watch,Bt=ue.insertTemp,Vt=ue.id,tr=Vt===void 0?"markdown-editor-id":Vt,Sr=ue.showResizeBar,Mr=Sr===void 0?!1:Sr,kr=ue.noStorage,Lr=kr===void 0?!1:kr,Tr=ue.showNullButton,Ur=Tr===void 0?!1:Tr,Or=ue.fullScreen,ur=Or===void 0?!1:Or,mr=ue.onBlur,vr=ue.onFocus,cr=ue.onCMBeforeChange,xr=ue.className,Fr=xr===void 0?"":xr,Cr=ue.placeholder,an=Cr===void 0?"":Cr,Rr=ue.values,dr=Rr===void 0?"":Rr,Dr=ue.readOnly,gr=Dr===void 0?!1:Dr,Ar=Object(h.useState)(null),Ir=Object(y.a)(Ar,2),_e=Ir[0],on=Ir[1],jt=Object(h.useState)(Ye),rt=Object(y.a)(jt,2),dt=rt[0],Ue=rt[1],ge=Object(h.useState)(Mt),nt=Object(y.a)(ge,2),Ee=nt[0],it=nt[1],Pe=Object(h.useState)(ur),le=Object(y.a)(Pe,2),Re=le[0],Ae=le[1],St=Object(h.useState)(""),ot=Object(y.a)(St,2),ct=ot[0],gt=ot[1],Tt=Object(h.useState)(0),Ct=Object(y.a)(Tt,2),vt=Ct[0],bt=Ct[1],At=Object(h.useState)(Ft),$e=Object(y.a)(At,2),de=$e[0],ke=$e[1],Fe=Object(h.useState)(!1),Ve=Object(y.a)(Fe,2),st=Ve[0],Ke=Ve[1],Ze=Object(h.useRef)(),at=Object(h.useRef)(),yt=Object(h.useRef)(),Ne=Object(h.useRef)();Object(h.useEffect)(function(){Ue(dr),_e==null||_e.setValue(dr)},[dr]),Object(h.useEffect)(function(){if(Ze.current){var Oe=function(_t,ht){var Pt=ht.clipboardData;if(Pt){var Ht=Pt.types.toString(),Xt=Pt.items;if(Ht==="text/html,Files"||Ht==="Files"||Pt.types.indexOf("Files")){var Nt=Xt[1];Ht==="Files"&&(Nt=Xt[0]),Nt.kind==="file"&&Nt.type.match(/^image\//i)&&K(Nt.getAsFile(),function(Yt){Yt.id?je.replaceSelection("![,](/api/attachments/".concat(Yt.id,")")):(Yt==null?void 0:Yt.status)===401&&(document.location.href="/user/login")})}else return!0}return!0},je=l.a.fromTextArea(Ze.current,{mode:"markdown",lineNumbers:!zt,lineWrapping:!0,value:Ye,autoCloseTags:!0,autoCloseBrackets:!0,readOnly:gr});return ut&&je.focus(),je.on("paste",Oe),on(je),function(){je.off("paste",Oe)}}},[gr]);var mt=Object(h.useCallback)(function(){if(at.current)try{var Oe=at.current.getElementsByClassName("markdown-toolbar-container")[0].offsetHeight,je=at.current.getElementsByClassName("markdown-editor-body")[0];Re?je.style.height="calc(100vh - ".concat(Oe,"px)"):je.style.height="".concat(de-Oe,"px")}catch(Be){console.log(Be,"---- to set md editor body height")}},[de,at,Re]);Object(h.useEffect)(function(){function Oe(){var Be=new a.default(function(_t){var ht=Object(_.a)(_t),Pt;try{for(ht.s();!(Pt=ht.n()).done;){var Ht=Pt.value;(Ht.target.offsetHeight>0||Ht.target.offsetWidth>0)&&(mt(),_e.setSize("100%","100%"),_e.refresh())}}catch(Xt){ht.e(Xt)}finally{ht.f()}});return Be.observe(Ze.current.parentElement),Be}if(_e){var je=Oe();return function(){je.unobserve(Ze.current.parentElement)}}},[_e,mt]),Object(h.useEffect)(function(){if(_e){for(var Oe=[],je=function(){var Ht=_t[Be];ht=Object(y.a)(Ht,2);var Xt=ht[0],Nt=ht[1],Yt=Object(d.a)({},Xt,function(){qe(Nt)});Oe.push(Yt),_e.addKeyMap(Yt)},Be=0,_t=Object.entries(Se);Be<_t.length;Be++){var ht;je()}return function(){var Pt=Object(_.a)(Oe),Ht;try{for(Pt.s();!(Ht=Pt.n()).done;){var Xt=Ht.value;_e.removeKeyMap(Xt)}}catch(Nt){Pt.e(Nt)}finally{Pt.f()}}}},[_e]),Object(h.useEffect)(function(){ur!==Re&&Ae(ur)},[ur]),Object(U.a)(function(){if(!Lr&&vt>0){var Oe=new Date().getTime(),je=window.sessionStorage.getItem(tr);Oe>=vt+Y&&(!je||je!==dt)&&(window.sessionStorage.setItem(tr,dt),Ke(!0))}},Y),Object(h.useEffect)(function(){it(Mt)},[_e,Mt]),Object(h.useEffect)(function(){_e&&(ut&&_e.focus())},[_e,ut]),Object(h.useEffect)(function(){if(Ee&&_e){var Oe=function(_t){var ht=_t.target;if(Ne.current){var Pt=ht.scrollTop/ht.scrollHeight;Ne.current.scrollTop=Ne.current.scrollHeight*Pt}},je=_e.getScrollerElement();return je.addEventListener("scroll",Oe),function(){je.removeEventListener("scroll",Oe)}}},[_e,Ee]),Object(h.useEffect)(function(){if(_e&&cr){var Oe=function(Be,_t){cr(Be,_t)};return _e.on("beforeChange",Oe),function(){_e.off("beforeChange",Oe)}}},[_e,cr]),Object(h.useEffect)(function(){if(_e&&mr){var Oe=function(){mr(_e.getValue())};return _e.on("blur",Oe),function(){_e.off("blur",Oe)}}},[_e,mr]),Object(h.useEffect)(function(){if(_e&&vr){var Oe=function(){vr(_e.getValue())};return _e.on("focus",Oe),function(){_e.off("focus",Oe)}}},[_e,vr]),Object(h.useEffect)(function(){if(_e){var Oe=function(Be){var _t=Be.getValue();Ue(_t),bt(new Date().getTime()),Be.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&Je(_t)};return _e.on("change",Oe),function(){_e.off("change",Oe)}}},[_e,Je]),Object(h.useEffect)(function(){_e&&(Ye==null?(_e.setValue(""),Ue("")):Ye!==_e.getValue()&&(_e.setValue(Ye),Ue(Ye),_e.setCursor(_e.lineCount(),0)))},[_e,Ye]);var qe=Object(h.useCallback)(function(Oe){var je=_e.getCursor(),Be=_e.getSelection(),_t=Be.split(`
`);switch(Oe){case"bold":return _e.replaceSelection("**"+Be+"**"),Be===""&&_e.setCursor(je.line,je.ch+2),_e.focus();case"italic":return _e.replaceSelection("*"+Be+"*"),Be===""&&_e.setCursor(je.line,je.ch+1),_e.focus();case"code":return _e.replaceSelection("`"+Be+"`"),Be===""&&_e.setCursor(je.line,je.ch+1),_e.focus();case"inline-latex":return _e.replaceSelection("`$$"+Be+"$$`"),Be===""&&_e.setCursor(je.line,je.ch+3),_e.focus();case"latex":return _e.replaceSelection("```latex\n"+Be+"\n```"),_e.setCursor(je.line+1,Be.length+1),_e.focus();case"line-break":return _e.replaceSelection(`<br/>
`),_e.focus();case"list-ul":return Be===""?_e.replaceSelection("- "+Be):_e.replaceSelection(_t.map(function(ht){return ht===""?"":"- ".concat(ht)}).join(`
`)),_e.focus();case"list-ol":return Be===""?_e.replaceSelection("1. "+Be):_e.replaceSelection(_t.map(function(ht,Pt){return ht===""?"":"".concat(Pt+1,". ").concat(ht)}).join(`
`)),_e.focus();case"add-null-ch":return Be===""&&_e.setCursor(je.line,je.ch+1),_e.replaceSelection(ne),_e.focus();case"inster-template-1":return Be===""&&_e.setCursor(je.line,je.ch),_e.replaceSelection(he),_e.focus();case"eraser":return _e.setValue(""),_e.focus();case"trigger-watch":return it(!Ee),_e.focus();case"trigger-full-screen":return Ae(!Re),_e.focus();case te:gt(te);return;case fe:gt(fe);return;case ae:gt(ae);return;case G:gt(G);return;default:throw new Error}},[_e,Ee,Re]),Le=Object(h.useCallback)(function(Oe){gt("");switch(ct){case te:var je=Oe.title,Be=Oe.link;return _e.replaceSelection("[".concat(je,"](").concat(Be,")")),_e.focus();case fe:var _t=Oe.language,ht=Oe.content;return _e.replaceSelection(["```"+_t,ht,"```"].join(`
`)),_e.focus();case ae:var Pt=Oe.src,Ht=Oe.alt;return _e.replaceSelection("![ ".concat(Ht," ]( ").concat(Pt,' "').concat(Ht,'" )')),_e.focus();case G:for(var Xt=Oe.row,Nt=Oe.col,Yt=Oe.align,br=`
`,ar=0;ar<Xt;ar++){for(var We=[],rr=[],Nr=0;Nr<Nt;Nr++)ar===1&&rr.push(oe[Yt]),We.push(" ");ar===1&&(br+="| ".concat(rr.join(" | "),` |
`)),br+="| ".concat(We.join(Nt===1?"":" | "),` |
`)}return _e.replaceSelection(br+`
`),_e.focus();default:throw new Error}},[_e,ct]),tt=Object(h.useMemo)(function(){switch(ct){case te:return n.a.createElement(F,{callback:Le,onCancel:ze});case fe:return n.a.createElement(q.b,{callback:Le,onCancel:ze});case ae:return n.a.createElement(A,{callback:Le,onCancel:ze});case G:return n.a.createElement(ee,{callback:Le,onCancel:ze});default:return null}},[ct]);function ze(){gt("")}Object(h.useEffect)(function(){if(yt.current){var Oe=function(Xt){ht=!0,Pt=Xt.pageY},je=function(){ht=!1},Be=function(Xt){if(ht){var Nt=Xt.pageY-Pt;Nt<0&&(Nt=0),Nt>300&&(Nt=300);var Yt=Ft+Nt+"px";ke(Yt)}},_t=yt.current,ht=!1,Pt=0;return _t.addEventListener("mousedown",Oe),document.addEventListener("mousemove",Be),document.addEventListener("mouseup",je),function(){_t.removeEventListener("mousedown",Oe),document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",je)}}},[_e,yt]),Object(h.useEffect)(function(){ke(Ft)},[Ft]);var kt=ve(wt),Dt=ve(de),Et={width:kt,height:Dt},lt=Object(h.useMemo)(function(){if(vt){var Oe=new Date(vt),je=Oe.getHours(),Be=Oe.getMinutes(),_t=Oe.getSeconds();return je=je<10?"0"+je:je,Be=Be<10?"0"+Be:Be,_t=_t<10?"0"+_t:_t,"".concat(je,":").concat(Be,":").concat(_t)}return 0},[vt]);function Me(){window.sessionStorage.removeItem(tr),Ke(!1),bt(0)}function It(){Ke(!1),bt(0),_e.setValue(window.sessionStorage.getItem(tr))}return n.a.createElement(h.Fragment,null,n.a.createElement("div",{className:"markdown-editor-wrapper",ref:at},n.a.createElement("div",{className:"markdown-editor-container ".concat(Fr," ").concat(Ee?"on-preview":""," ").concat(zt?"mini":""," ").concat(Re?"full-screen":""),style:Et},n.a.createElement(r,{insertTemp:Bt,watch:Ee,fullScreen:Re,showNullButton:Ur,onActionCallback:qe,readOnly:gr}),n.a.createElement("div",{className:"markdown-editor-body"},n.a.createElement("div",{className:"codemirror-container"},n.a.createElement("textarea",{ref:Ze,placeholder:an})),Ee?n.a.createElement("div",{ref:Ne,className:"preview-container"},n.a.createElement(P.a,{value:dt})):null))),Mr?n.a.createElement("a",{ref:yt,className:"editor-resize"}):null,n.a.createElement(L.a,null,De[ct]?n.a.createElement(t.a,{centered:!0,title:De[ct],visible:!0,onCancel:ze,footer:null},tt):null))}},R155:function(e,b,c){"use strict";function i(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(W){return typeof W}:i=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},i(F)}Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=o(c("q1tI")),_=l(c("17x9")),y=l(c("i8i4")),d=c("8N4D"),h=c("fJi3"),n=c("gbW8"),s=l(c("sS6v"));function l(F){return F&&F.__esModule?F:{default:F}}function a(F){if(typeof WeakMap!="function")return null;var q=new WeakMap,W=new WeakMap;return(a=function(B){return B?W:q})(F)}function o(F,q){if(!q&&F&&F.__esModule)return F;if(F===null||i(F)!=="object"&&typeof F!="function")return{default:F};var W=a(q);if(W&&W.has(F))return W.get(F);var N={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in F)if($!=="default"&&Object.prototype.hasOwnProperty.call(F,$)){var I=B?Object.getOwnPropertyDescriptor(F,$):null;I&&(I.get||I.set)?Object.defineProperty(N,$,I):N[$]=F[$]}return N.default=F,W&&W.set(F,N),N}function v(F,q){return P(F)||w(F,q)||g(F,q)||p()}function p(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(F,q){if(!F)return;if(typeof F=="string")return E(F,q);var W=Object.prototype.toString.call(F).slice(8,-1);if(W==="Object"&&F.constructor&&(W=F.constructor.name),W==="Map"||W==="Set")return Array.from(F);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return E(F,q)}function E(F,q){(q==null||q>F.length)&&(q=F.length);for(var W=0,N=new Array(q);W<q;W++)N[W]=F[W];return N}function w(F,q){var W=F==null?null:typeof Symbol!="undefined"&&F[Symbol.iterator]||F["@@iterator"];if(W==null)return;var N=[],B=!0,$=!1,I,A;try{for(W=W.call(F);!(B=(I=W.next()).done)&&!(N.push(I.value),q&&N.length===q);B=!0);}catch(z){$=!0,A=z}finally{try{!B&&W.return!=null&&W.return()}finally{if($)throw A}}return N}function P(F){if(Array.isArray(F))return F}function x(F,q){if(!(F instanceof q))throw new TypeError("Cannot call a class as a function")}function D(F,q){for(var W=0;W<q.length;W++){var N=q[W];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(F,N.key,N)}}function C(F,q,W){return q&&D(F.prototype,q),W&&D(F,W),F}function T(F,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(q&&q.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),q&&m(F,q)}function m(F,q){return m=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N},m(F,q)}function r(F){var q=u();return function(){var N=j(F),B;if(q){var $=j(this).constructor;B=Reflect.construct(N,arguments,$)}else B=N.apply(this,arguments);return L(this,B)}}function L(F,q){if(q&&(i(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(F)}function M(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function u(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(F){return!1}}function j(F){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},j(F)}function O(F,q,W){return q in F?Object.defineProperty(F,q,{value:W,enumerable:!0,configurable:!0,writable:!0}):F[q]=W,F}var k={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},H=k.mouse,Q=function(F){T(W,F);var q=r(W);function W(){var N;x(this,W);for(var B=arguments.length,$=new Array(B),I=0;I<B;I++)$[I]=arguments[I];return N=q.call.apply(q,[this].concat($)),O(M(N),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),O(M(N),"mounted",!1),O(M(N),"handleDragStart",function(A){if(N.props.onMouseDown(A),!N.props.allowAnyClick&&typeof A.button=="number"&&A.button!==0)return!1;var z=N.findDOMNode();if(!z||!z.ownerDocument||!z.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var K=z.ownerDocument;if(N.props.disabled||!(A.target instanceof K.defaultView.Node)||N.props.handle&&!(0,d.matchesSelectorAndParentsTo)(A.target,N.props.handle,z)||N.props.cancel&&(0,d.matchesSelectorAndParentsTo)(A.target,N.props.cancel,z))return;A.type==="touchstart"&&A.preventDefault();var V=(0,d.getTouchIdentifier)(A);N.setState({touchIdentifier:V});var re=(0,h.getControlPosition)(A,V,M(N));if(re==null)return;var ie=re.x,J=re.y,ce=(0,h.createCoreData)(M(N),ie,J);(0,s.default)("DraggableCore: handleDragStart: %j",ce),(0,s.default)("calling",N.props.onStart);var se=N.props.onStart(A,ce);if(se===!1||N.mounted===!1)return;N.props.enableUserSelectHack&&(0,d.addUserSelectStyles)(K),N.setState({dragging:!0,lastX:ie,lastY:J}),(0,d.addEvent)(K,H.move,N.handleDrag),(0,d.addEvent)(K,H.stop,N.handleDragStop)}),O(M(N),"handleDrag",function(A){var z=(0,h.getControlPosition)(A,N.state.touchIdentifier,M(N));if(z==null)return;var K=z.x,V=z.y;if(Array.isArray(N.props.grid)){var re=K-N.state.lastX,ie=V-N.state.lastY,J=(0,h.snapToGrid)(N.props.grid,re,ie),ce=v(J,2);if(re=ce[0],ie=ce[1],!re&&!ie)return;K=N.state.lastX+re,V=N.state.lastY+ie}var se=(0,h.createCoreData)(M(N),K,V);(0,s.default)("DraggableCore: handleDrag: %j",se);var ee=N.props.onDrag(A,se);if(ee===!1||N.mounted===!1){try{N.handleDragStop(new MouseEvent("mouseup"))}catch(ae){var te=document.createEvent("MouseEvents");te.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),N.handleDragStop(te)}return}N.setState({lastX:K,lastY:V})}),O(M(N),"handleDragStop",function(A){if(!N.state.dragging)return;var z=(0,h.getControlPosition)(A,N.state.touchIdentifier,M(N));if(z==null)return;var K=z.x,V=z.y,re=(0,h.createCoreData)(M(N),K,V),ie=N.props.onStop(A,re);if(ie===!1||N.mounted===!1)return!1;var J=N.findDOMNode();J&&(N.props.enableUserSelectHack&&(0,d.removeUserSelectStyles)(J.ownerDocument)),(0,s.default)("DraggableCore: handleDragStop: %j",re),N.setState({dragging:!1,lastX:NaN,lastY:NaN}),J&&((0,s.default)("DraggableCore: Removing handlers"),(0,d.removeEvent)(J.ownerDocument,H.move,N.handleDrag),(0,d.removeEvent)(J.ownerDocument,H.stop,N.handleDragStop))}),O(M(N),"onMouseDown",function(A){return H=k.mouse,N.handleDragStart(A)}),O(M(N),"onMouseUp",function(A){return H=k.mouse,N.handleDragStop(A)}),O(M(N),"onTouchStart",function(A){return H=k.touch,N.handleDragStart(A)}),O(M(N),"onTouchEnd",function(A){return H=k.touch,N.handleDragStop(A)}),N}return C(W,[{key:"componentDidMount",value:function(){this.mounted=!0;var B=this.findDOMNode();B&&(0,d.addEvent)(B,k.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var B=this.findDOMNode();if(B){var $=B.ownerDocument;(0,d.removeEvent)($,k.mouse.move,this.handleDrag),(0,d.removeEvent)($,k.touch.move,this.handleDrag),(0,d.removeEvent)($,k.mouse.stop,this.handleDragStop),(0,d.removeEvent)($,k.touch.stop,this.handleDragStop),(0,d.removeEvent)(B,k.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,d.removeUserSelectStyles)($)}}},{key:"findDOMNode",value:function(){var B,$,I;return(B=($=this.props)===null||$===void 0||((I=$.nodeRef)===null||I===void 0)?void 0:I.current)!==null&&B!==void 0?B:y.default.findDOMNode(this)}},{key:"render",value:function(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),W}(t.Component);b.default=Q,O(Q,"displayName","DraggableCore"),O(Q,"propTypes",{allowAnyClick:_.default.bool,disabled:_.default.bool,enableUserSelectHack:_.default.bool,offsetParent:function(q,W){if(q[W]&&q[W].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_.default.arrayOf(_.default.number),handle:_.default.string,cancel:_.default.string,nodeRef:_.default.object,onStart:_.default.func,onDrag:_.default.func,onStop:_.default.func,onMouseDown:_.default.func,scale:_.default.number,className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe}),O(Q,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},ToDW:function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=i(c("pVnL")),_=i(c("3tO9")),y=i(c("lwsE")),d=i(c("W8MJ")),h=i(c("PJYZ")),n=i(c("7W2i")),s=i(c("LQ03")),l=i(c("lSNA")),a=i(c("q1tI")),o=c("hQUZ"),v=i(c("pIsd")),p=i(c("cZFH")),g=c("3K4p"),E=function(w){(0,n.default)(x,w);var P=(0,s.default)(x);function x(D){var C;return(0,y.default)(this,x),C=P.call(this,D),(0,l.default)((0,h.default)(C),"innerSliderRefHandler",function(T){return C.innerSlider=T}),(0,l.default)((0,h.default)(C),"slickPrev",function(){return C.innerSlider.slickPrev()}),(0,l.default)((0,h.default)(C),"slickNext",function(){return C.innerSlider.slickNext()}),(0,l.default)((0,h.default)(C),"slickGoTo",function(T){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return C.innerSlider.slickGoTo(T,m)}),(0,l.default)((0,h.default)(C),"slickPause",function(){return C.innerSlider.pause("paused")}),(0,l.default)((0,h.default)(C),"slickPlay",function(){return C.innerSlider.autoPlay("play")}),C.state={breakpoint:null},C._responsiveMediaHandlers=[],C}return(0,d.default)(x,[{key:"media",value:function(C,T){var m=window.matchMedia(C),r=function(M){var u=M.matches;u&&T()};m.addListener(r),r(m),this._responsiveMediaHandlers.push({mql:m,query:C,listener:r})}},{key:"componentDidMount",value:function(){var C=this;if(this.props.responsive){var T=this.props.responsive.map(function(r){return r.breakpoint});T.sort(function(r,L){return r-L}),T.forEach(function(r,L){var M;L===0?M=(0,v.default)({minWidth:0,maxWidth:r}):M=(0,v.default)({minWidth:T[L-1]+1,maxWidth:r}),(0,g.canUseDOM)()&&C.media(M,function(){C.setState({breakpoint:r})})});var m=(0,v.default)({minWidth:T.slice(-1)[0]});(0,g.canUseDOM)()&&this.media(m,function(){C.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(C){C.mql.removeListener(C.listener)})}},{key:"render",value:function(){var C=this,T,m;this.state.breakpoint?(m=this.props.responsive.filter(function(F){return F.breakpoint===C.state.breakpoint}),T=m[0].settings==="unslick"?"unslick":(0,_.default)((0,_.default)((0,_.default)({},p.default),this.props),m[0].settings)):T=(0,_.default)((0,_.default)({},p.default),this.props),T.centerMode&&(T.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(T.slidesToScroll)),T.slidesToScroll=1),T.fade&&(T.slidesToShow>1&&!1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(T.slidesToShow)),T.slidesToScroll>1&&!1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(T.slidesToScroll)),T.slidesToShow=1,T.slidesToScroll=1);var r=a.default.Children.toArray(this.props.children);r=r.filter(function(F){return typeof F=="string"?!!F.trim():!!F}),T.variableWidth&&(T.rows>1||T.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),T.variableWidth=!1);for(var L=[],M=null,u=0;u<r.length;u+=T.rows*T.slidesPerRow){for(var j=[],O=u;O<u+T.rows*T.slidesPerRow;O+=T.slidesPerRow){for(var k=[],H=O;H<O+T.slidesPerRow&&!(T.variableWidth&&r[H].props.style&&(M=r[H].props.style.width),H>=r.length);H+=1)k.push(a.default.cloneElement(r[H],{key:100*u+10*O+H,tabIndex:-1,style:{width:"".concat(100/T.slidesPerRow,"%"),display:"inline-block"}}));j.push(a.default.createElement("div",{key:10*u+O},k))}T.variableWidth?L.push(a.default.createElement("div",{key:u,style:{width:M}},j)):L.push(a.default.createElement("div",{key:u},j))}if(T==="unslick"){var Q="regular slider "+(this.props.className||"");return a.default.createElement("div",{className:Q},r)}else L.length<=T.slidesToShow&&(T.unslick=!0);return a.default.createElement(o.InnerSlider,(0,t.default)({style:this.props.style,ref:this.innerSliderRefHandler},T),L)}}]),x}(a.default.Component);b.default=E},ZW9T:function(e,b,c){"use strict";var i=c("k1fw"),t=c("miYZ"),_=c("tsqr"),y=c("rAM+"),d=c("tJVT"),h=c("PpiC"),n=c("q1tI"),s=c.n(n),l=c("bdgK");function a(m,r,L,M,u){var j=r.getWordUntilPosition(L),O={startLineNumber:L.lineNumber,endLineNumber:L.lineNumber,startColumn:j.startColumn,endColumn:j.endColumn},k=M.map(function(H){return{label:H,kind:m.languages.CompletionItemKind.Keyword,insertText:H,insertTextRules:m.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:O}});return u.map(function(H){k.push(Object(i.a)(Object(i.a)({},H),{},{range:O}))}),k}var o=function(m){var r={label:"ifelse",kind:m.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:m.languages.CompletionItemInsertTextRule.InsertAsSnippet},L=["auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];m.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(O,k){var H=a(m,O,k,L,[r]);return{suggestions:H}}});var M=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];m.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(O,k){var H=[{label:"print",kind:m.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:m.languages.CompletionItemInsertTextRule.InsertAsSnippet}],Q=a(m,O,k,M,H);return{suggestions:Q}}});var u=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];m.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(O,k){var H=[r,{label:"main",kind:m.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:m.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:m.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:m.languages.CompletionItemInsertTextRule.InsertAsSnippet}],Q=a(m,O,k,u,H);return{suggestions:Q}}})},v="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",p=c("LvDl");function g(m){return/^\d+$/.test(m)?"".concat(m,"px"):m}function E(){}var w=!1,P={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function x(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=m;if(Array.isArray(m)){for(var L=0;L<m.length;L++){var M=P[m[L]];if(M)return M}return r[0]}return P[r]||r}var D=null,C=b.a=function(m){var r=m.width,L=r===void 0?"100%":r,M=m.height,u=M===void 0?"100%":M,j=m.value,O=m.language,k=O===void 0?"javascript":O,H=m.style,Q=H===void 0?{}:H,F=m.options,q=F===void 0?{}:F,W=m.overrideServices,N=W===void 0?{}:W,B=m.theme,$=B===void 0?"vs-dark":B,I=m.onEditBlur,A=m.onSave,z=m.autoHeight,K=z===void 0?!1:z,V=m.forbidCopy,re=V===void 0?!1:V,ie=m.onChange,J=ie===void 0?E:ie,ce=m.editorDidMount,se=ce===void 0?E:ce,ee=m.onFocus,te=ee===void 0?E:ee,ae=m.filename,fe=ae===void 0?"educoder.txt":ae,G=Object(h.a)(m,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),X=Object(n.useRef)(),oe=Object(n.useRef)({}),U=Object(n.useRef)(),R=Object(n.useRef)(!1),f=Object(n.useRef)(),S=Object(n.useState)(!1),Z=Object(d.a)(S,2),Y=Z[0],ne=Z[1];function he(){var Qe;return X.current&&(Qe=new l.default(function(ut){var Mt=Object(y.a)(ut),Bt;try{for(Mt.s();!(Bt=Mt.n()).done;){var Vt=Bt.value;(Vt.target.offsetHeight>0||Vt.target.offsetWidth>0)&&oe.current.instance.layout()}}catch(tr){Mt.e(tr)}finally{Mt.f()}}),Qe.observe(X.current)),Qe}function ve(){_.b.warn(decodeURIComponent(v))}var we=function(){var ut=oe.current.instance;if(j!=null&&ut&&Y){var Mt=ut.getModel();Mt&&j!==Mt.getValue()&&(w=!0,Mt.setValue(j),ut.layout(),w=!1)}};Object(n.useEffect)(function(){U.current&&clearTimeout(U.current),U.current=setTimeout(function(){we()},500)},[j,Y,oe.current]);function Ce(){var Qe=oe.current.instance;if(Qe){var ut=Qe.getSelection(),Mt=oe.current.pastePos||{},Bt=new D.Range(Mt.startLineNumber||ut.endLineNumber,Mt.startColumn||ut.endColumn,Mt.endLineNumber||ut.endLineNumber,Mt.endColumn||ut.endColumn);setTimeout(function(){Qe.executeEdits("",[{range:Bt,text:""}])},300)}}function Se(Qe){(window.navigator.platform.match("Mac")?Qe.metaKey:Qe.ctrlKey)&&Qe.keyCode==83&&(Qe.preventDefault(),A())}var De=function(){if(K&&oe.current.instance){var ut=oe.current.instance.getContentHeight();Ut(ut<u?u:ut)}else Ut(u)};function Xe(Qe){var ut=document.createEvent("MouseEvents");ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Qe.dispatchEvent(ut)}function ue(Qe,ut){var Mt=window.URL||window.webkitURL||window,Bt=new Blob([ut]),Vt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vt.href=Mt.createObjectURL(Bt),Vt.download=Qe,Xe(Vt)}Object(n.useEffect)(function(){De()},[De]),Object(n.useEffect)(function(){X.current&&!Y&&c.e(27).then(c.t.bind(null,"M/lh",7)).then(function(Qe){try{D=Qe,window.Monaco||o(D),window.Monaco=D,oe.current.instance=D.editor.create(X.current,Object(i.a)(Object(i.a)({value:j,language:x(k),theme:$,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}}},q),{},{wordWrap:!0}),N);var ut=oe.current.instance;if(se(ut,D),setTimeout(function(){De()},500),oe.current.subscription=ut.onDidChangeModelContent(function(Bt){R.current?clearTimeout(f.current):(De(),J(ut.getValue(),Bt)),f.current=setTimeout(function(){R.current=!1},500)}),re&&(ut.addCommand(D.KeyMod.CtrlCmd|D.KeyMod.Shift|D.KeyCode.KEY_V,function(){return ve(),null}),ut.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_C,function(){return ve(),null})),I&&ut.onDidBlurEditorWidget(function(){I(ut.getValue())}),te&&ut.onDidFocusEditorText(function(){te(ut.getValue())}),re){ut.addCommand(D.KeyMod.CtrlCmd|D.KeyCode.KEY_V,function(){return ve(),null}),ut.onDidPaste(function(Bt){oe.current.pastePos=Bt});try{window.addEventListener("paste",Ce)}catch(Bt){}}var Mt=he();return ne(!0),function(){var Bt=oe.current.instance;Bt.dispose();var Vt=Bt.getModel();Vt&&Vt.dispose(),oe.current.subscription&&oe.current.subscription.dispose(),re&&window.removeEventListener("paste",Ce),Mt.unobserve(X.current)}}catch(Bt){}})},[]),Object(n.useEffect)(function(){var Qe=oe.current.instance;if(Qe&&Y)return document.addEventListener("keydown",Se,!1),function(){document.removeEventListener("keydown",Se)}},[A,Y]),Object(n.useEffect)(function(){var Qe=oe.current.instance;if(Qe&&Y){var ut=x(k);D.editor.setModelLanguage(Qe.getModel(),ut),console.log("language:",k,Qe.getModel(),ut)}},[k,Y]),Object(n.useEffect)(function(){var Qe=oe.current.instance;Qe&&Y&&D.editor.setTheme($)},[$,Y]),Object(n.useEffect)(function(){var Qe=oe.current.instance;Qe&&Y&&Qe.updateOptions(q)},[JSON.stringify(q),Y]),Object(n.useEffect)(function(){var Qe=oe.current.instance;Qe&&Y&&Qe.layout()},[L,u,Y]);var He=Object(n.useState)(g(L)),Ye=Object(d.a)(He,2),Je=Ye[0],ft=Ye[1],wt=Object(n.useState)(g(u)),Rt=Object(d.a)(wt,2),Ft=Rt[0],Ut=Rt[1],zt=Object(i.a)(Object(i.a)({},Q),{},{width:Je,height:Ft});return s.a.createElement("div",{className:"my-monaco-editor",ref:X,style:zt})};function T(m){var r=m.width,L=r===void 0?"100%":r,M=m.height,u=M===void 0?"100%":M,j=m.original,O=m.modified,k=m.language,H=m.options,Q=H===void 0?{}:H,F=Object(n.useRef)(),q=Object(n.useState)(null),W=Object(d.a)(q,2),N=W[0],B=W[1];function $(K){var V;return F.current&&(V=new l.default(function(re){var ie=Object(y.a)(re),J;try{for(ie.s();!(J=ie.n()).done;){var ce=J.value;(ce.target.offsetHeight>0||ce.target.offsetWidth>0)&&K.layout()}}catch(se){ie.e(se)}finally{ie.f()}}),V.observe(F.current)),V}Object(n.useEffect)(function(){F.current&&c.e(27).then(c.t.bind(null,"M/lh",7)).then(function(K){D=K;var V=D.editor.createDiffEditor(F.current,Object(i.a)(Object(i.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Q),{},{wordWrap:!0}));B(V);var re=$(V);return function(){V.dispose();var ie=V.getModel();ie&&ie.dispose(),re.unobserve(F.current)}})},[]),Object(n.useEffect)(function(){N&&N.setModel({original:D.editor.createModel(j,k),modified:D.editor.createModel(O,k)})},[j,O,k,N]);var I=g(L),A=g(u),z={width:I,height:A};return s.a.createElement("div",{className:"my-diff-editor",ref:F,style:z})}},an1a:function(e,b,c){"use strict";var i=c("tJVT"),t=c("q1tI"),_=c.n(t),y=function(h){var n=h.value,s=h.onChange,l=s===void 0?function(){}:s,a=h.onFinish,o=a===void 0?function(){}:a,v=h.remainSeconds,p=v===void 0?function(){}:v,g=h.second,E=Object(t.useState)("00:00:00"),w=Object(i.a)(E,2),P=w[0],x=w[1],D=Object(t.useRef)(null);return Object(t.useEffect)(function(){if(!n&&n!==0)return;var C=function(){var m=Number(n)-Date.now();if(m<=0){x("00:00:00"),clearInterval(D.current),p(!0),o();return}var r=Math.floor(m/1e3%60).toString().padStart(2,"0"),L=Math.floor(m/1e3/60%60).toString().padStart(2,"0"),M=Math.floor(m/(1e3*60*60)).toString().padStart(2,"0"),u="".concat(M,":").concat(L,":").concat(r),j=Math.floor(m/1e3)<=g;p(j),l(u,m),x(u)};return D.current=setInterval(function(){C()},1e3),C(),function(){clearInterval(D.current)}},[n]),_.a.createElement("span",null,P)};b.a=y},apBC:function(e,b,c){e.exports={flex_box_center:"flex_box_center___o_fdQ",flex_space_between:"flex_space_between___1ybQM",flex_box_vertical_center:"flex_box_vertical_center___20cex",flex_box_center_end:"flex_box_center_end___1layX",flex_box_column:"flex_box_column___17Gww",listBtn:"listBtn___32BFF",active:"active___1k7CR",header:"header___1ipBp",name:"name___OPb4Y",btn:"btn___3nWbs",time:"time___3WwxJ",s2:"s2___As24t",wrap:"wrap___Et-3q",left:"left___2iDNp",camera:"camera___3J-pC",totalScore:"totalScore___2tAU0",totalAnswerScore:"totalAnswerScore___2TAb4",answerInfo:"answerInfo___3TfSb",answerSheet:"answerSheet___R-JDH",fold:"fold___3rQR4",back:"back___25GC1",right:"right___3jGbP",content:"content___2I3Ew",btns:"btns___1u_wH",countDownTip:"countDownTip___dXN1q",leftheight:"leftheight___QOw_1"}},cZFH:function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var t=i(c("q1tI")),_={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(h){return t.default.createElement("ul",{style:{display:"block"}},h)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(h){return t.default.createElement("button",null,h+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},y=_;b.default=y},coqV:function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.Dots=void 0;var t=i(c("3tO9")),_=i(c("lwsE")),y=i(c("W8MJ")),d=i(c("7W2i")),h=i(c("LQ03")),n=i(c("q1tI")),s=i(c("TSYQ")),l=c("3K4p"),a=function(p){var g;return p.infinite?g=Math.ceil(p.slideCount/p.slidesToScroll):g=Math.ceil((p.slideCount-p.slidesToShow)/p.slidesToScroll)+1,g},o=function(v){(0,d.default)(g,v);var p=(0,h.default)(g);function g(){return(0,_.default)(this,g),p.apply(this,arguments)}return(0,y.default)(g,[{key:"clickHandler",value:function(w,P){P.preventDefault(),this.props.clickHandler(w)}},{key:"render",value:function(){for(var w=this.props,P=w.onMouseEnter,x=w.onMouseOver,D=w.onMouseLeave,C=w.infinite,T=w.slidesToScroll,m=w.slidesToShow,r=w.slideCount,L=w.currentSlide,M=a({slideCount:r,slidesToScroll:T,slidesToShow:m,infinite:C}),u={onMouseEnter:P,onMouseOver:x,onMouseLeave:D},j=[],O=0;O<M;O++){var k=(O+1)*T-1,H=C?k:(0,l.clamp)(k,0,r-1),Q=H-(T-1),F=C?Q:(0,l.clamp)(Q,0,r-1),q=(0,s.default)({"slick-active":C?L>=F&&L<=H:L===F}),W={message:"dots",index:O,slidesToScroll:T,currentSlide:L},N=this.clickHandler.bind(this,W);j=j.concat(n.default.createElement("li",{key:O,className:q},n.default.cloneElement(this.props.customPaging(O),{onClick:N})))}return n.default.cloneElement(this.props.appendDots(j),(0,t.default)({className:this.props.dotsClass},u))}}]),g}(n.default.PureComponent);b.Dots=o},dejd:function(e,b,c){},doQp:function(e,b,c){"use strict";var i=c("pzsr"),t=i.default,_=i.DraggableCore;e.exports=t,e.exports.default=t,e.exports.DraggableCore=_},ebz4:function(e,b,c){"use strict";c.r(b);var i=c("cWXX"),t=c("/ezw"),_=c("14J3"),y=c("BMrR"),d=c("MXD1"),h=c("CFYs"),n=c("jCWc"),s=c("kPKH"),l=c("+L6B"),a=c("2/Rp"),o=c("k1fw"),v=c("/xke"),p=c("TeRw"),g=c("WmNS"),E=c.n(g),w=c("9og8"),P=c("2qtc"),x=c("kLXV"),D=c("tJVT"),C=c("aHsQ"),T=c("sGsY"),m=c("q1tI"),r=c.n(m),L=c("apBC"),M=c.n(L),u=c("9kvl"),j=c("55Ip"),O=c("ErOA"),k=c("1vsH"),H=c("miYZ"),Q=c("tsqr"),F=c("Ty5D"),q=c("7Cbv"),W=c("DR4n"),N=c.n(W),B=c("mxV5"),$=function(rt,dt){for(var Ue=rt.split(","),ge=Ue[0].match(/:(.*?);/)[1],nt=atob(Ue[1]),Ee=nt.length,it=new Uint8Array(Ee);Ee--;)it[Ee]=nt.charCodeAt(Ee);return new Blob([it],{type:ge})},I=Object(m.forwardRef)(function(jt,rt){var dt=jt.time,Ue=jt.number,ge=jt.supportCamera,nt=jt.take_photo,Ee=jt.update,it=jt.width,Pe=it===void 0?"288":it,le=jt.custom,Re=Object(m.useRef)(),Ae=Object(m.useRef)(),St=Object(F.m)(),ot=Object(m.useState)([]),ct=Object(D.a)(ot,2),gt=ct[0],Tt=ct[1],Ct=Object(m.useState)(0),vt=Object(D.a)(Ct,2),bt=vt[0],At=vt[1],$e=Object(m.useState)(""),de=Object(D.a)($e,2),ke=de[0],Fe=de[1],Ve=Object(m.useState)(),st=Object(D.a)(Ve,2),Ke=st[0],Ze=st[1],at=Object(m.useState)(0),yt=Object(D.a)(at,2),Ne=yt[0],mt=yt[1];Object(m.useEffect)(function(){return tt(),function(){kt(),qe()}},[]),Object(m.useEffect)(function(){bt===2&&dt&&Ue>0&&(Le(),mt(1))},[dt,bt]),Object(m.useEffect)(function(){if(Ne===0)return;if(Ne===2)clearInterval(Ke);else{var Et=0,lt=setInterval(function(){gt.includes(Et)&&ze(),Et++},1e3);Ze(lt)}return function(){return clearInterval(Ke)}},[Ne]),Object(m.useImperativeHandle)(rt,function(){return{handlePhoto:ze}});var qe=function(){mt(2)},Le=function(){var lt=dt/Ue,Me=[];function It(Oe,je){return parseInt(Math.floor(Math.random()*(je-Oe+1))+Oe)}new Array(Ue).fill(0).map(function(Oe,je){nt?Me.push(It(lt*je,lt*(je+1))):je==0?Me.push(0):Me.push(It(lt*je,lt*(je+1)))}),gt=Me,Tt([].concat(Me)),console.log(Me)},tt=function(){navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(lt){var Me=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return Me?new Promise(function(It,Oe){Me.call(navigator,lt,It,Oe)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:1280,height:720}}).then(function(lt){ge&&ge(2),At(2),"srcObject"in Re.current?Re.current.srcObject=lt:Re.current.src=window.URL.createObjectURL(lt),Re.current.onloadedmetadata=function(Me){Re.current.play()},Re.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),qe(),Q.b.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(lt){At(1),ge&&ge(1),lt.message==="Permission denied"||lt.name==="NotAllowedError"?Q.b.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):Q.b.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+lt.name),console.log("err: "+lt.message)})},ze=function(){try{Ae.current.width=Re.current.videoWidth,Ae.current.height=Re.current.videoHeight;var lt=Ae.current.getContext("2d");lt.drawImage(Re.current,0,0,Ae.current.width,Ae.current.height),Fe(Ae.current.toDataURL("image/png")),Dt(Ae.current.toDataURL("image/png"))}catch(Me){}},kt=function(){try{var lt=Re.current.srcObject,Me=lt.getTracks();Me.forEach(function(It){It.stop()}),Re.current.srcObject=null}catch(It){}},Dt=function(){var Et=Object(w.a)(E.a.mark(function lt(Me){var It,Oe,je,Be;return E.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return It=Object(q.a)(),Oe=$(Me,It),je=new FormData,je.append("file",Oe),ht.next=6,Object(O.a)("/api/attachments.json",{method:"post",body:je},!0);case 6:if(Be=ht.sent,console.log(Be,"result"),!(Be==null?void 0:Be.id)){ht.next=11;break}return ht.next=11,Object(O.a)("/api/students/exercises/".concat(le.categoryId,"/save_photo.json"),{method:"post",body:{attachment_id:Be==null?void 0:Be.id}});case 11:case"end":return ht.stop()}},lt)}));return function(Me){return Et.apply(this,arguments)}}();return r.a.createElement(r.a.Fragment,null,bt!==3&&r.a.createElement("aside",{className:N.a.video,id:"screenshot"},bt===0&&r.a.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),bt===1&&r.a.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),bt===2&&r.a.createElement("div",null,r.a.createElement("video",{width:Pe,ref:Re,autoPlay:!0}),r.a.createElement("canvas",{style:{display:"none"},ref:Ae}))))}),A=I,z=c("V0Rq"),K=c("an1a"),V=c("bntm"),re=c("T2oS"),ie=c("W9HT"),J=c("Lkat"),ce=c.n(J),se=c("LvDl"),ee=c("9Bee"),te=c("cIOH"),ae=c("6/k+"),fe=c("lSNA"),G=c.n(fe),X=c("pVnL"),oe=c.n(X),U=c("lwsE"),R=c.n(U),f=c("W8MJ"),S=c.n(f),Z=c("7W2i"),Y=c.n(Z),ne=c("LQ03"),he=c.n(ne),ve=c("sEfC"),we=c.n(ve),Ce=c("N/JB"),Se=c.n(Ce),De=c("TSYQ"),Xe=c.n(De),ue=c("H84U"),He=function(jt){Y()(dt,jt);var rt=he()(dt);function dt(Ue){var ge;return R()(this,dt),ge=rt.call(this,Ue),ge.saveSlick=function(nt){ge.slick=nt},ge.onWindowResized=function(){var nt=ge.props.autoplay;nt&&ge.slick&&ge.slick.innerSlider&&ge.slick.innerSlider.autoPlay&&ge.slick.innerSlider.autoPlay()},ge.renderCarousel=function(nt){var Ee,it=nt.getPrefixCls,Pe=nt.direction,le,Re=oe()({},ge.props);Re.effect==="fade"&&(Re.fade=!0);var Ae=it("carousel",Re.prefixCls),St="slick-dots",ot=ge.getDotPosition();Re.vertical=ot==="left"||ot==="right";var ct=!!Re.dots,gt=Xe()(St,"".concat(St,"-").concat(ot||"bottom"),typeof Re.dots=="boolean"?!1:(le=Re.dots)===null||le===void 0?void 0:le.className),Tt=Xe()(Ae,(Ee={},G()(Ee,"".concat(Ae,"-rtl"),Pe==="rtl"),G()(Ee,"".concat(Ae,"-vertical"),Re.vertical),Ee));return m.createElement("div",{className:Tt},m.createElement(Se.a,oe()({ref:ge.saveSlick},Re,{dots:ct,dotsClass:gt})))},ge.onWindowResized=we()(ge.onWindowResized,500,{leading:!1}),ge}return S()(dt,[{key:"componentDidMount",value:function(){var ge=this.props.autoplay;ge&&window.addEventListener("resize",this.onWindowResized),this.innerSlider=this.slick&&this.slick.innerSlider}},{key:"componentDidUpdate",value:function(ge){m.Children.count(this.props.children)!==m.Children.count(ge.children)&&this.goTo(this.props.initialSlide||0,!1)}},{key:"componentWillUnmount",value:function(){var ge=this.props.autoplay;ge&&(window.removeEventListener("resize",this.onWindowResized),this.onWindowResized.cancel())}},{key:"getDotPosition",value:function(){var ge=this.props.dotPosition,nt=ge===void 0?"bottom":ge;return nt}},{key:"next",value:function(){this.slick.slickNext()}},{key:"prev",value:function(){this.slick.slickPrev()}},{key:"goTo",value:function(ge){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.slick.slickGoTo(ge,nt)}},{key:"render",value:function(){return m.createElement(ue.a,null,this.renderCarousel)}}]),dt}(m.Component);He.defaultProps={dots:!0,arrows:!1,draggable:!1};var Ye=c("doQp"),Je=c.n(Ye),ft=c("+ibC"),wt=c.n(ft),Rt=c("5bA4"),Ft=c("UESt"),Ut=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],zt=function(rt){var dt=rt.editData,Ue=dt===void 0?{}:dt,ge=Object(m.useState)(!1),nt=Object(D.a)(ge,2),Ee=nt[0],it=nt[1],Pe=Object(m.useState)(!0),le=Object(D.a)(Pe,2),Re=le[0],Ae=le[1],St=Object(m.useState)([]),ot=Object(D.a)(St,2),ct=ot[0],gt=ot[1],Tt=Object(m.useState)(0),Ct=Object(D.a)(Tt,2),vt=Ct[0],bt=Ct[1],At=Object(m.useState)({left:0,top:0,bottom:0,right:0}),$e=Object(D.a)(At,2),de=$e[0],ke=$e[1],Fe=Object(m.useRef)(),Ve=Object(m.useRef)(null),st=Object(m.useRef)(null);Object(m.useEffect)(function(){return st.current&&st.current.addEventListener("click",Ke),function(){st.current.removeEventListener("click",Ke)}},[st]);var Ke=function(qe){var Le=function(Me,It){if(Me.localName===It)return Me;for(var Oe=0,je=Me;je=je.parentNode;Oe++){if(je.localName===It)return je;if(je==document.documentElement)return!1}},tt=qe.target,ze=Le(tt,"a");if(ze==null?void 0:ze.href)return;if(tt.tagName.toUpperCase()==="IMG"){var kt=tt.src||tt.getAttribute("src");if(kt&&kt.indexOf("/images/avatars/User")===-1){qe.stopPropagation(),qe.preventDefault();var Dt=at(),Et=Dt.findIndex(function(lt){return lt.src===kt});bt(Et),it(!0)}}},Ze=function(){it(!1)},at=function(){var qe=st.current.getElementsByTagName("img"),Le=[];return qe.forEach(function(tt){Le.push({src:tt==null?void 0:tt.currentSrc,img:r.a.createElement("img",{style:{width:"100%",height:"100%",objectFit:"contain"},src:tt==null?void 0:tt.currentSrc})})}),gt(Le),Le},yt=function(qe,Le){var tt,ze,kt,Dt=(tt=window)===null||tt===void 0||((ze=tt.document)===null||ze===void 0)?void 0:ze.documentElement,Et=Dt.clientWidth,lt=Dt.clientHeight,Me=Fe==null||((kt=Fe.current)===null||kt===void 0)?void 0:kt.getBoundingClientRect();ke({bounds:{left:-(Me==null?void 0:Me.left)+(Le==null?void 0:Le.x),right:Et-((Me==null?void 0:Me.right)-(Le==null?void 0:Le.x)),top:-(Me==null?void 0:Me.top)+(Le==null?void 0:Le.y),bottom:lt-((Me==null?void 0:Me.bottom)-(Le==null?void 0:Le.y))}})},Ne=function(){var qe="<span>".concat((Ue==null?void 0:Ue.q_position)||(Ue==null?void 0:Ue.question_num),". </span><span>\u3010").concat(Ut[Ue.question_type],'\u3011</span><span class="c-grey-999">\uFF08').concat(Ue==null?void 0:Ue.question_score,"\u5206\uFF09</span>");return qe};return r.a.createElement(m.Fragment,null,Ee&&r.a.createElement("div",{className:wt.a.modalWarp},r.a.createElement(Je.a,{disabled:Re,bounds:de,onStart:function(qe,Le){return yt(qe,Le)}},r.a.createElement("div",{className:wt.a.modal},r.a.createElement("div",{className:wt.a.head,onMouseOver:function(){Re&&Ae(!1)},onMouseOut:function(){Ae(!0)}},r.a.createElement("i",{className:"iconfont icon-guanbi1",onClick:Ze})),r.a.createElement("div",{className:wt.a.body},r.a.createElement(Rt.a,{className:wt.a.LeftButton,onClick:function(){Ve.current.prev()}}),r.a.createElement(He,{className:wt.a.site,ref:Ve,dots:!1,initialSlide:vt},ct==null?void 0:ct.map(function(mt,qe){return r.a.createElement("div",{key:qe},r.a.createElement("aside",{className:wt.a.imgWarp},mt.img))})),r.a.createElement(Ft.a,{className:wt.a.RightButton,onClick:function(){Ve.current.next()}}))))),r.a.createElement("div",{className:wt.a.title,ref:st},r.a.createElement(ee.a,{value:Ne()+(Ue==null?void 0:Ue.question_title)})))},Qe=zt,ut=function(rt,dt){var Ue,ge=rt.data,nt=rt.callback,Ee=rt.params;Object(m.useEffect)(function(){var $e,de,ke=ge==null||(($e=ge.question_choices)===null||$e===void 0||((de=$e.filter(function(Fe){return Fe.user_answer_boolean}))===null||de===void 0))?void 0:de.map(function(Fe){return Fe.choice_id});Re(Object(o.a)(Object(o.a)({},ge),{},{user_answer:(ge==null?void 0:ge.user_answer)||ke}))},[ge]);var it=Object(m.useState)({}),Pe=Object(D.a)(it,2),le=Pe[0],Re=Pe[1],Ae=Object(m.useState)(!1),St=Object(D.a)(Ae,2),ot=St[0],ct=St[1],gt=Object(m.useState)(!1),Tt=Object(D.a)(gt,2),Ct=Tt[0],vt=Tt[1],bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=function(){var $e=Object(w.a)(E.a.mark(function de(ke,Fe){var Ve,st,Ke,Ze,at;return E.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(le==null||((Ve=le.user_answer)===null||Ve===void 0)?void 0:Ve.includes(ke.choice_id))){Ne.next=2;break}return Ne.abrupt("return");case 2:if(!(Ee==null?void 0:Ee.lastMoment)){Ne.next=8;break}return Q.b.destroy(),x.a.destroyAll(),Q.b.warn("\u8003\u8BD5\u6700\u540E".concat(Ee==null||((Ke=Ee.exercise)===null||Ke===void 0)?void 0:Ke.limit_submit_time,"\u5206\u949F\u53EA\u80FD\u8FDB\u884C\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u8BC4\u6D4B\uFF0C\u4E0D\u80FD\u8C03\u6574\u5176\u4ED6\u9898\u76EE\u7B54\u6848")),Object(k.g)(Ee.examId),Ne.abrupt("return");case 8:return ct(!1),vt(!0),Ze=Object(se.cloneDeep)(le),Ze.user_answer=[ke.choice_id],Ne.next=14,Object(k.f)(Ee.examId,Ee==null||((st=Ee.exercise)===null||st===void 0)?void 0:st.ip_limit);case 14:return Re(Ze),Ne.next=17,Object(O.a)("/api/exercise_questions/".concat(le.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:ke.choice_id}});case 17:if(at=Ne.sent,nt(Ze,1),!(at.status===0)){Ne.next=25;break}return Ne.next=22,Object(k.g)(Ee.examId,"",at);case 22:ct(!0),Ne.next=26;break;case 25:at.status===-1?u.c.push("/exam/studentClient"):Q.b.warn("\u4FDD\u5B58\u5931\u8D25");case 26:vt(!1);case 27:case"end":return Ne.stop()}},de)}));return function(ke,Fe){return $e.apply(this,arguments)}}();return Object(m.useImperativeHandle)(dt,function(){return{editData:le}}),r.a.createElement("div",{className:ce.a.single},r.a.createElement("div",{className:ce.a.tips,style:{opacity:ot?1:0}},r.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),r.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),r.a.createElement(Qe,{editData:le}),r.a.createElement(ie.a,{spinning:Ct},le==null||((Ue=le.question_choices)===null||Ue===void 0)?void 0:Ue.map(function($e,de){var ke;return r.a.createElement("ul",{onClick:function(){return At($e,de)},style:{pointerEvents:Ee.checkState?"none":"auto"},key:$e.choice_id,className:(le==null||((ke=le.user_answer)===null||ke===void 0)?void 0:ke.includes($e.choice_id))?ce.a.qsActive:ce.a.qs},r.a.createElement("li",null,bt[de]),r.a.createElement("li",null,r.a.createElement(ee.a,{value:$e.choice_text})))})),((le==null?void 0:le.standard_answer_show)||(le==null?void 0:le.user_score))&&r.a.createElement("div",{className:ce.a.answer},(le==null?void 0:le.user_score)&&r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(le==null?void 0:le.user_score)==="0.0"?0:le==null?void 0:le.user_score,"\u5206"),(le==null?void 0:le.standard_answer_show)&&r.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",le==null?void 0:le.standard_answer_show)),(le==null?void 0:le.analysis)&&r.a.createElement("div",{className:ce.a.analysis},r.a.createElement("div",null,"\u89E3\u6790\uFF1A"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:le==null?void 0:le.analysis}))))},Mt=Object(m.forwardRef)(ut),Bt=function(rt,dt){var Ue,ge=rt.data,nt=rt.callback,Ee=rt.params;Object(m.useEffect)(function(){var $e,de,ke=ge==null||(($e=ge.question_choices)===null||$e===void 0||((de=$e.filter(function(Fe){return Fe.user_answer_boolean}))===null||de===void 0))?void 0:de.map(function(Fe){return Fe.choice_id});Re(Object(o.a)(Object(o.a)({},ge),{},{user_answer:(ge==null?void 0:ge.user_answer)||ke}))},[ge]);var it=Object(m.useState)({}),Pe=Object(D.a)(it,2),le=Pe[0],Re=Pe[1],Ae=Object(m.useState)(!1),St=Object(D.a)(Ae,2),ot=St[0],ct=St[1],gt=Object(m.useState)(!1),Tt=Object(D.a)(gt,2),Ct=Tt[0],vt=Tt[1],bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=function(){var $e=Object(w.a)(E.a.mark(function de(ke,Fe){var Ve,st,Ke,Ze,at;return E.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(Ee==null?void 0:Ee.lastMoment)){Ne.next=6;break}return Q.b.destroy(),x.a.destroyAll(),Q.b.warn("\u8003\u8BD5\u6700\u540E".concat(Ee==null||((st=Ee.exercise)===null||st===void 0)?void 0:st.limit_submit_time,"\u5206\u949F\u53EA\u80FD\u8FDB\u884C\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u8BC4\u6D4B\uFF0C\u4E0D\u80FD\u8C03\u6574\u5176\u4ED6\u9898\u76EE\u7B54\u6848")),Object(k.g)(Ee.examId),Ne.abrupt("return");case 6:return ct(!1),vt(!0),Ke=Object(se.cloneDeep)(le),Ke.user_answer.includes(ke.choice_id)?Object(se.pull)(Ke.user_answer,ke.choice_id):Ke.user_answer=Ke==null||((Ze=Ke.user_answer)===null||Ze===void 0)?void 0:Ze.concat(ke.choice_id),Ne.next=12,Object(k.f)(Ee.examId,Ee==null||((Ve=Ee.exercise)===null||Ve===void 0)?void 0:Ve.ip_limit);case 12:return Re(Ke),Ne.next=15,Object(O.a)("/api/exercise_questions/".concat(le.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:Ke.user_answer}});case 15:if(at=Ne.sent,nt(Ke,Ke.user_answer.length>0?1:0),!(at.status===0)){Ne.next=23;break}return Ne.next=20,Object(k.g)(Ee.examId,"",at);case 20:ct(!0),Ne.next=24;break;case 23:at.status===-1?u.c.push("/exam/studentClient"):Q.b.warn("\u4FDD\u5B58\u5931\u8D25");case 24:vt(!1);case 25:case"end":return Ne.stop()}},de)}));return function(ke,Fe){return $e.apply(this,arguments)}}();return Object(m.useImperativeHandle)(dt,function(){return{editData:le}}),r.a.createElement("div",{className:ce.a.multiple},r.a.createElement("div",{className:ce.a.tips,style:{opacity:ot?1:0}},r.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),r.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),r.a.createElement(Qe,{editData:le}),r.a.createElement(ie.a,{spinning:Ct},le==null||((Ue=le.question_choices)===null||Ue===void 0)?void 0:Ue.map(function($e,de){var ke;return r.a.createElement("ul",{onClick:function(){return At($e,de)},style:{pointerEvents:Ee.checkState?"none":"auto"},key:$e.choice_id,className:(le==null||((ke=le.user_answer)===null||ke===void 0)?void 0:ke.includes($e.choice_id))?ce.a.msActive:ce.a.ms},r.a.createElement("li",null,bt[de]),r.a.createElement("li",null,r.a.createElement(ee.a,{value:$e.choice_text})))})),((le==null?void 0:le.standard_answer_show)||(le==null?void 0:le.user_score))&&r.a.createElement("div",{className:ce.a.answer},(le==null?void 0:le.user_score)&&r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(le==null?void 0:le.user_score)==="0.0"?0:le==null?void 0:le.user_score,"\u5206"),(le==null?void 0:le.standard_answer_show)&&r.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",le==null?void 0:le.standard_answer_show)),(le==null?void 0:le.analysis)&&r.a.createElement("div",{className:ce.a.analysis},r.a.createElement("div",null,"\u89E3\u6790\uFF1A"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:le==null?void 0:le.analysis}))))},Vt=Object(m.forwardRef)(Bt),tr=function(rt,dt){var Ue,ge=rt.data,nt=rt.callback,Ee=rt.params;Object(m.useEffect)(function(){var $e,de,ke=ge==null||(($e=ge.question_choices)===null||$e===void 0||((de=$e.filter(function(Fe){return Fe.user_answer_boolean}))===null||de===void 0))?void 0:de.map(function(Fe){return Fe.choice_id});Re(Object(o.a)(Object(o.a)({},ge),{},{user_answer:(ge==null?void 0:ge.user_answer)||ke}))},[ge]);var it=Object(m.useState)({}),Pe=Object(D.a)(it,2),le=Pe[0],Re=Pe[1],Ae=Object(m.useState)(!1),St=Object(D.a)(Ae,2),ot=St[0],ct=St[1],gt=Object(m.useState)(!1),Tt=Object(D.a)(gt,2),Ct=Tt[0],vt=Tt[1],bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=function(){var $e=Object(w.a)(E.a.mark(function de(ke,Fe){var Ve,st,Ke,Ze,at;return E.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(le==null||((Ve=le.user_answer)===null||Ve===void 0)?void 0:Ve.includes(ke.choice_id))){Ne.next=2;break}return Ne.abrupt("return");case 2:if(!(Ee==null?void 0:Ee.lastMoment)){Ne.next=8;break}return Q.b.destroy(),x.a.destroyAll(),Q.b.warn("\u8003\u8BD5\u6700\u540E".concat(Ee==null||((Ke=Ee.exercise)===null||Ke===void 0)?void 0:Ke.limit_submit_time,"\u5206\u949F\u53EA\u80FD\u8FDB\u884C\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u8BC4\u6D4B\uFF0C\u4E0D\u80FD\u8C03\u6574\u5176\u4ED6\u9898\u76EE\u7B54\u6848")),Object(k.g)(Ee.examId),Ne.abrupt("return");case 8:return ct(!1),vt(!0),Ze=Object(se.cloneDeep)(le),Ze.user_answer=[ke.choice_id],Ne.next=14,Object(k.f)(Ee.examId,Ee==null||((st=Ee.exercise)===null||st===void 0)?void 0:st.ip_limit);case 14:return Re(Ze),Ne.next=17,Object(O.a)("/api/exercise_questions/".concat(le.question_id,"/exercise_answers.json"),{method:"post",body:{exercise_choice_id:ke.choice_id}});case 17:if(at=Ne.sent,nt(Ze,1),!(at.status===0)){Ne.next=25;break}return Ne.next=22,Object(k.g)(Ee.examId,"",at);case 22:ct(!0),Ne.next=26;break;case 25:at.status===-1?u.c.push("/exam/studentClient"):Q.b.warn("\u4FDD\u5B58\u5931\u8D25");case 26:vt(!1);case 27:case"end":return Ne.stop()}},de)}));return function(ke,Fe){return $e.apply(this,arguments)}}();return Object(m.useImperativeHandle)(dt,function(){return{editData:le}}),r.a.createElement("div",{className:ce.a.judgment},r.a.createElement("div",{className:ce.a.tips,style:{opacity:ot?1:0}},r.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),r.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),r.a.createElement(Qe,{editData:le}),r.a.createElement(ie.a,{spinning:Ct},le==null||((Ue=le.question_choices)===null||Ue===void 0)?void 0:Ue.map(function($e,de){var ke;return r.a.createElement("ul",{onClick:function(){return At($e,de)},style:{pointerEvents:Ee.checkState?"none":"auto"},key:$e.choice_id,className:(le==null||((ke=le.user_answer)===null||ke===void 0)?void 0:ke.includes($e.choice_id))?ce.a.qsActive:ce.a.qs},r.a.createElement("li",null,r.a.createElement("span",null)),r.a.createElement("li",null,r.a.createElement(ee.a,{value:$e.choice_text})))})),((le==null?void 0:le.standard_answer_show)||(le==null?void 0:le.user_score))&&r.a.createElement("div",{className:ce.a.answer},(le==null?void 0:le.user_score)&&r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(le==null?void 0:le.user_score)==="0.0"?0:le==null?void 0:le.user_score,"\u5206"),(le==null?void 0:le.standard_answer_show)&&r.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",le==null?void 0:le.standard_answer_show)),(le==null?void 0:le.analysis)&&r.a.createElement("div",{className:ce.a.analysis},r.a.createElement("div",null,"\u89E3\u6790\uFF1A"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:le==null?void 0:le.analysis}))))},Sr=Object(m.forwardRef)(tr),Mr=c("oBTY"),kr=c("5NDa"),Lr=c("5rEg"),Tr=Lr.a.TextArea,Ur=function(rt,dt){var Ue,ge=rt.data,nt=rt.callback,Ee=rt.params,it=Object(m.useState)({}),Pe=Object(D.a)(it,2),le=Pe[0],Re=Pe[1],Ae=Object(m.useState)([]),St=Object(D.a)(Ae,2),ot=St[0],ct=St[1],gt=Object(m.useState)(!1),Tt=Object(D.a)(gt,2),Ct=Tt[0],vt=Tt[1],bt=Object(m.useRef)(null),At=Object(m.useRef)(null);Object(m.useEffect)(function(){for(var ke=[],Fe=function(Ke){var Ze;ke.push(Object(o.a)({},(ge==null||((Ze=ge.user_answer)===null||Ze===void 0)?void 0:Ze.find(function(at){return at.choice_id===Ke+1}))||{}))},Ve=0;Ve<(ge==null?void 0:ge.multi_count);Ve++)Fe(Ve);Re(ge),ct(ke)},[ge]);var $e=function(Fe,Ve){if(Ee==null?void 0:Ee.lastMoment){var st;Q.b.destroy(),Q.b.warn("\u8003\u8BD5\u6700\u540E".concat(Ee==null||((st=Ee.exercise)===null||st===void 0)?void 0:st.limit_submit_time,"\u5206\u949F\u53EA\u80FD\u8FDB\u884C\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u8BC4\u6D4B\uFF0C\u4E0D\u80FD\u8C03\u6574\u5176\u4ED6\u9898\u76EE\u7B54\u6848"));var Ke=Object(se.cloneDeep)(ot);Ke[Ve].answer_text=ot[Ve].answer_text||"",Ke[Ve].choice_id=Ve+1,ct(Ke),clearTimeout(At.current),At.current=setTimeout(Object(w.a)(E.a.mark(function at(){return E.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return x.a.destroyAll(),Ne.next=3,Object(k.g)(Ee.examId);case 3:case"end":return Ne.stop()}},at)})),500);return}vt(!1);var Ze=Object(se.cloneDeep)(le);ot[Ve].answer_text=Fe.target.value,ot[Ve].choice_id=Ve+1,Ze.user_answer=ot,Re(Ze),ct(Object(Mr.a)(ot)),clearTimeout(bt.current),bt.current=setTimeout(Object(w.a)(E.a.mark(function at(){var yt,Ne;return E.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Object(k.f)(Ee.examId,Ee==null||((yt=Ee.exercise)===null||yt===void 0)?void 0:yt.ip_limit);case 2:return qe.next=4,Object(O.a)("/api/exercise_questions/".concat(le.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:ot[Ve].answer_text,exercise_choice_id:Ve+1}});case 4:if(Ne=qe.sent,nt(Ze,ot.some(function(Le){return!!Le.answer_text})?1:0),!(Ne.status===0)){qe.next=12;break}return qe.next=9,Object(k.g)(Ee.examId,"",Ne);case 9:vt(!0),qe.next=13;break;case 12:Ne.status===-1?u.c.push("/exam/studentClient"):Q.b.warn("\u4FDD\u5B58\u5931\u8D25");case 13:case"end":return qe.stop()}},at)})),500)};Object(m.useImperativeHandle)(dt,function(){return{editData:le}});var de=function(){var Fe;return le==null||((Fe=le.standard_answer)===null||Fe===void 0)?void 0:Fe.map(function(Ve,st){var Ke;return r.a.createElement("span",{style:{fontWeight:400,fontSize:14},key:st},"\u586B\u7A7A\u9898",st+1,"\uFF1A",(Ke=Ve.answer_text)===null||Ke===void 0?void 0:Ke.join("\u3001"),r.a.createElement("br",null))})};return console.log("userAnswer",ot),r.a.createElement("div",{className:ce.a.completion},r.a.createElement("div",{className:ce.a.tips,style:{opacity:Ct?1:0}},r.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),r.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),r.a.createElement(Qe,{editData:le}),ot==null?void 0:ot.map(function(ke,Fe){return r.a.createElement("ul",{key:Fe,className:ce.a.fill},r.a.createElement("li",null,"\u586B\u7A7A",Fe+1,":"),r.a.createElement("li",null,r.a.createElement(Tr,{disabled:Ee.checkState,value:ke==null?void 0:ke.answer_text,rows:3,onChange:function(st){return $e(st,Fe)}})))}),(le==null?void 0:le.user_score)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(le==null?void 0:le.user_score)==="0.0"?0:le==null?void 0:le.user_score,"\u5206")),!!(le==null||((Ue=le.standard_answer)===null||Ue===void 0)?void 0:Ue.length)&&r.a.createElement("div",{className:ce.a.analysis,style:{marginTop:"-20px"}},r.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),r.a.createElement("aside",null,de())),(le==null?void 0:le.analysis)&&r.a.createElement("div",{className:ce.a.analysis},r.a.createElement("div",null,"\u89E3\u6790\uFF1A"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:le==null?void 0:le.analysis}))))},Or=Object(m.forwardRef)(Ur),ur=c("Ot1p"),mr=function(rt,dt){var Ue,ge,nt,Ee=rt.data,it=rt.callback,Pe=rt.params,le=Object(m.useState)({}),Re=Object(D.a)(le,2),Ae=Re[0],St=Re[1],ot=Object(m.useState)(!1),ct=Object(D.a)(ot,2),gt=ct[0],Tt=ct[1],Ct=Object(m.useRef)(null),vt=Object(m.useRef)(!1),bt=Object(m.useRef)(null);Object(m.useEffect)(function(){St(Ee)},[Ee]),Object(m.useEffect)(function(){if(Pe==null?void 0:Pe.lastMoment)return window.addEventListener("keydown",At),function(){window.removeEventListener("keydown",At)}},[Pe==null?void 0:Pe.lastMoment]);var At=function(ke){var Fe=ke.keyCode;if(Object(k.A)(Fe)&&vt.current){var Ve;Q.b.destroy(),Q.b.warn("\u8003\u8BD5\u6700\u540E".concat(Pe==null||((Ve=Pe.exercise)===null||Ve===void 0)?void 0:Ve.limit_submit_time,"\u5206\u949F\u53EA\u80FD\u8FDB\u884C\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u8BC4\u6D4B\uFF0C\u4E0D\u80FD\u8C03\u6574\u5176\u4ED6\u9898\u76EE\u7B54\u6848")),clearTimeout(bt.current),bt.current=setTimeout(Object(w.a)(E.a.mark(function st(){return E.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return x.a.destroyAll(),Ze.next=3,Object(k.g)(Pe.examId);case 3:case"end":return Ze.stop()}},st)})),500)}},$e=function(){var de=Object(w.a)(E.a.mark(function ke(Fe){var Ve;return E.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!(Fe===Ae.user_answer[0])){Ke.next=2;break}return Ke.abrupt("return");case 2:Tt(!1),Ve=Object(se.cloneDeep)(Ae),Ve.user_answer[0]=Fe,St(Ve),clearTimeout(Ct.current),Ct.current=setTimeout(Object(w.a)(E.a.mark(function Ze(){var at,yt;return E.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return mt.next=2,Object(k.f)(Pe.examId,Pe==null||((at=Pe.exercise)===null||at===void 0)?void 0:at.ip_limit);case 2:return mt.next=4,Object(O.a)("/api/exercise_questions/".concat(Ae.question_id,"/exercise_answers.json"),{method:"post",body:{answer_text:Fe}});case 4:if(yt=mt.sent,it(Ve,Fe?1:0),!(yt.status===0)){mt.next=12;break}return mt.next=9,Object(k.g)(Pe.examId,"",yt);case 9:Tt(!0),mt.next=13;break;case 12:yt.status===-1?u.c.push("/exam/studentClient"):Q.b.warn("\u4FDD\u5B58\u5931\u8D25");case 13:case"end":return mt.stop()}},Ze)})),500);case 8:case"end":return Ke.stop()}},ke)}));return function(Fe){return de.apply(this,arguments)}}();return Object(m.useImperativeHandle)(dt,function(){return{editData:Ae}}),r.a.createElement("div",{className:ce.a.subjective},r.a.createElement("div",{className:ce.a.tips,style:{opacity:gt?1:0}},r.a.createElement("i",{className:"iconfont icon-xuanzhong5"}),r.a.createElement("span",null,"\u7B54\u6848\u4FDD\u5B58\u6210\u529F")),r.a.createElement(Qe,{editData:Ae}),!Pe.checkState&&r.a.createElement(ur.a,{height:320,onFocus:function(){vt.current=!0,console.log("onFocus")},onBlur:function(){vt.current=!1,console.log("onBlur")},readOnly:Pe==null?void 0:Pe.lastMoment,placeholder:"\u8BF7\u5F00\u59CB\u4F5C\u7B54",defaultValue:Ae==null||((Ue=Ae.user_answer)===null||Ue===void 0)?void 0:Ue[0],id:Ae==null?void 0:Ae.question_id,onChange:function(ke){return $e(ke)}}),Pe.checkState&&r.a.createElement(r.a.Fragment,null,(Ae==null?void 0:Ae.user_answer)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u6211\u7684\u4F5C\u7B54:"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:Ae==null||((ge=Ae.user_answer)===null||ge===void 0)?void 0:ge[0]}))),(Ae==null?void 0:Ae.user_score)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(Ae==null?void 0:Ae.user_score)==="0.0"?0:Ae==null?void 0:Ae.user_score,"\u5206")),(Ae==null?void 0:Ae.standard_answer)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u53C2\u8003\u7B54\u6848:"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:Ae==null||((nt=Ae.standard_answer)===null||nt===void 0)?void 0:nt[0]}))),(Ae==null?void 0:Ae.analysis)&&r.a.createElement("div",{className:ce.a.analysis},r.a.createElement("div",null,"\u89E3\u6790\uFF1A"),r.a.createElement("aside",null,r.a.createElement(ee.a,{value:Ae==null?void 0:Ae.analysis})))))},vr=Object(m.forwardRef)(mr),cr=c("ZW9T"),xr=c("J66h"),Fr=function(rt,dt){var Ue=rt.data,ge=rt.params,nt=rt.callback,Ee=Object(m.useState)({}),it=Object(D.a)(Ee,2),Pe=it[0],le=it[1],Re=Object(m.useState)(""),Ae=Object(D.a)(Re,2),St=Ae[0],ot=Ae[1],ct=Object(m.useState)(!1),gt=Object(D.a)(ct,2),Tt=gt[0],Ct=gt[1],vt=Object(m.useState)("none"),bt=Object(D.a)(vt,2),At=bt[0],$e=bt[1],de=Object(m.useRef)();Object(m.useEffect)(function(){return window.addEventListener("message",ke),function(){window.removeEventListener("message",ke)}},[]),Object(m.useEffect)(function(){le(Ue)},[Ue]);var ke=function(at){at.data==="backExercise"&&Fe()},Fe=function(){$e("none"),ot(""),nt()},Ve=function(){var Ze=Object(w.a)(E.a.mark(function at(){var yt,Ne,mt;return E.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ct(!0),Le.next=3,Object(k.f)(ge.examId,ge==null||((yt=ge.exercise)===null||yt===void 0)?void 0:yt.ip_limit);case 3:return Le.next=5,Object(k.g)(ge.examId);case 5:if(!Pe.hack_identifier){Le.next=12;break}return Le.next=8,Object(z.J)({id:Pe.hack_identifier,exercise_id:ge.examId});case 8:Ne=Le.sent,(Ne==null?void 0:Ne.status)===0&&(mt={exercise:Ne},localStorage.setItem("exercise_data",JSON.stringify(mt)),ot("/myproblems/".concat(Ne.identifier,"?type=exercises&sign=exam&exercisesId=").concat(ge==null?void 0:ge.examId,"&login=").concat(ge==null?void 0:ge.login,"&questionId=").concat(Pe.question_id,"&q_position=").concat(Pe.question_num)),$e("block")),localStorage.setItem("ismain","1"),p.a.destroy();case 12:Ct(!1);case 13:case"end":return Le.stop()}},at)}));return function(){return Ze.apply(this,arguments)}}(),st={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(m.useImperativeHandle)(dt,function(){return{editData:Pe}});var Ke=[{title:"\u6D4B\u8BD5\u96C6",dataIndex:"key",align:"center"},{title:"\u8F93\u51FA",dataIndex:"error_msg",align:"center"},{title:"\u5F97\u5206",dataIndex:"sore",align:"center"}];return r.a.createElement("div",{className:ce.a.program},r.a.createElement("iframe",{style:{display:At},id:"iframeShixuns",className:ce.a.iframe,src:St,ref:de,frameBorder:"0"}),r.a.createElement(Qe,{editData:Pe}),r.a.createElement(ee.a,{value:Pe==null?void 0:Pe.description}),!ge.checkState&&r.a.createElement("div",{className:ce.a.customBtn},r.a.createElement(a.a,{loading:Tt,onClick:Ve,type:"primary"},"\u8FDB\u5165\u7B54\u9898")),ge.checkState&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",r.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),r.a.createElement("aside",null,r.a.createElement(cr.a,{height:300,language:"python",theme:"vs-light",value:(Pe==null?void 0:Pe.passed_code)?xr.Base64.decode(Pe==null?void 0:Pe.passed_code):"",options:st}))),(Pe==null?void 0:Pe.user_score)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(Pe==null?void 0:Pe.user_score)==="0.0"?0:Pe==null?void 0:Pe.user_score,"\u5206"))))},Cr=Object(m.forwardRef)(Fr),an=c("g9YV"),Rr=c("wCAj"),dr=c("HBuW"),Dr=function(rt,dt){var Ue,ge,nt=rt.data,Ee=rt.callback,it=rt.params;Object(m.useEffect)(function(){Ae(nt)},[nt]);var Pe=Object(m.useState)({}),le=Object(D.a)(Pe,2),Re=le[0],Ae=le[1],St=Object(m.useState)(""),ot=Object(D.a)(St,2),ct=ot[0],gt=ot[1],Tt=Object(m.useState)(!1),Ct=Object(D.a)(Tt,2),vt=Ct[0],bt=Ct[1],At=Object(m.useState)("none"),$e=Object(D.a)(At,2),de=$e[0],ke=$e[1],Fe=Object(m.useRef)();Object(m.useEffect)(function(){return window.addEventListener("message",Ve),function(){window.removeEventListener("message",Ve)}},[]),Object(m.useEffect)(function(){Ae(nt)},[nt]);var Ve=function(Le){Le.data==="backExercise"&&st()},st=function(){ke("none"),gt(""),Ee()},Ke={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};Object(m.useImperativeHandle)(dt,function(){return{editData:Re}});var Ze=function qe(Le,tt){var ze;Le=((ze=Le)===null||ze===void 0?void 0:ze.includes(".json"))?Le:"".concat(Le,".json"),x.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:r.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var kt=Object(w.a)(E.a.mark(function Et(){var lt,Me;return E.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,Object(z.G)({url:Le});case 2:if(lt=Oe.sent,lt){Oe.next=5;break}return Oe.abrupt("return");case 5:return Q.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Oe.next=8,Object(dr.A)({id:lt.shixun_identifier});case 8:if(Me=Oe.sent,!(Me==null?void 0:Me.game_identifier)){Oe.next=12;break}return yt({shixun_identifier:Me==null?void 0:Me.game_identifier,question_id:tt}),Oe.abrupt("return");case 12:(Me==null?void 0:Me.status)===2?qe(Me==null?void 0:Me.message,tt):(Me==null?void 0:Me.status)===3&&at(Me==null?void 0:Me.message);case 13:case"end":return Oe.stop()}},Et)}));function Dt(){return kt.apply(this,arguments)}return Dt}()})},at=function(Le){x.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:r.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Le,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},yt=function(){var qe=Object(w.a)(E.a.mark(function Le(tt){var ze,kt;return E.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Object(dr.A)({id:tt.shixun_identifier,exercise_id:it.examId});case 2:ze=Et.sent,(ze==null?void 0:ze.game_identifier)&&(kt={exercise:ze},localStorage.setItem("exercise_data",JSON.stringify(kt)),gt("/tasks/".concat(ze.game_identifier,"?type=exercises&sign=exam&exercisesId=").concat(it.examId,"&questionId=").concat(tt.question_id,"&q_position=").concat(Re.question_num)),ke("block")),(ze==null?void 0:ze.status)===-3?Object(k.e)():(ze==null?void 0:ze.status)===2?Ze(ze==null?void 0:ze.message,tt.question_id):(ze==null?void 0:ze.status)===3&&at(ze==null?void 0:ze.message);case 5:case"end":return Et.stop()}},Le)}));return function(tt){return qe.apply(this,arguments)}}(),Ne=function(){var qe=Object(w.a)(E.a.mark(function Le(tt){var ze;return E.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return bt(!0),Dt.next=3,Object(k.f)(it.examId,it==null||((ze=it.exercise)===null||ze===void 0)?void 0:ze.ip_limit);case 3:return Dt.next=5,Object(k.g)(it.examId);case 5:if(!tt.redo){Dt.next=9;break}x.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:r.a.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:function(){var Et=Object(w.a)(E.a.mark(function Me(){var It,Oe;return E.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,Object(z.G)({id:tt.myshixun_identifier,url:tt.url});case 2:It=Be.sent,It&&(Oe=Object(o.a)(Object(o.a)({},tt),{},{shixun_identifier:It.shixun_identifier}),yt(Oe),localStorage.setItem("ismain","1"),p.a.destroy());case 4:case"end":return Be.stop()}},Me)}));function lt(){return Et.apply(this,arguments)}return lt}()}),Dt.next=13;break;case 9:return Dt.next=11,yt(tt);case 11:localStorage.setItem("ismain","1"),p.a.destroy();case 13:bt(!1);case 14:case"end":return Dt.stop()}},Le)}));return function(tt){return qe.apply(this,arguments)}}(),mt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"outputs",align:"center",render:function(Le,tt){var ze;return r.a.createElement("span",null,Le==null||((ze=Le[0])===null||ze===void 0)?void 0:ze.output_detail)}}];return r.a.createElement("div",{className:ce.a.practice},r.a.createElement("iframe",{style:{display:de},id:"iframeShixuns",className:ce.a.iframe,src:ct,ref:Fe,frameBorder:"0"}),r.a.createElement(Qe,{editData:Re}),Re==null||((Ue=Re.shixun)===null||Ue===void 0)?void 0:Ue.map(function(qe,Le){return r.a.createElement(y.a,{className:"font16",gutter:[0,20],key:Le},r.a.createElement(s.a,{flex:"1"},Le+1,". ",qe.challenge_name," ",r.a.createElement("span",{className:"c-grey-999"},"(",qe.challenge_score,"\u5206)")),r.a.createElement(s.a,{flex:"100px",className:"tr"},qe.answer_status===0&&r.a.createElement("span",{className:"font16 c-grey-999"},"\u672A\u5B8C\u6210"),qe.answer_status===1&&r.a.createElement("span",{className:"font16 c-grey-333"},"\u5DF2\u5B8C\u6210")))}),!it.checkState&&r.a.createElement("div",{className:ce.a.customBtn},r.a.createElement(a.a,{loading:vt,onClick:function(){return Ne(Re)},type:"primary"},"\u8FDB\u5165\u7B54\u9898")),it.checkState&&(Re==null||((ge=Re.shixun_details)===null||ge===void 0)?void 0:ge.map(function(qe,Le){var tt,ze,kt,Dt,Et,lt=qe.shixun_detail,Me=lt===void 0?[]:lt,It=qe.stage_list,Oe=It===void 0?[]:It,je=Oe==null?void 0:Oe.map(function(Be,_t){return Object(o.a)(Object(o.a)({},Oe[_t]),Me[_t])});return console.log(je,"items"),r.a.createElement(m.Fragment,{key:Le},r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u7B2C",Le+1,"\u5173\uFF1A",Me==null||((tt=Me[0])===null||tt===void 0)?void 0:tt.name),(it==null||((ze=it.exercise)===null||ze===void 0)?void 0:ze.exercise_status)===3&&(Re==null?void 0:Re.user_score)&&r.a.createElement("div",null,"\u672C\u5173\u5F97\u5206\uFF1A",Oe==null||((kt=Oe[0])===null||kt===void 0)?void 0:kt.user_score,"\u5206")),r.a.createElement(Rr.a,{className:ce.a.table,pagination:!1,dataSource:je,columns:mt}),!!(Me==null||((Dt=Me[0])===null||Dt===void 0)?void 0:Dt.passed_code)&&r.a.createElement("div",{className:ce.a.answer,style:{display:"block"}},r.a.createElement("div",{style:{marginBottom:16}},"\u6700\u540E\u4E00\u6B21\u901A\u8FC7\u6D4B\u8BC4\u7684\u4EE3\u7801",r.a.createElement("span",{className:"c-grey-999"},"\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09")),r.a.createElement("aside",null,r.a.createElement(cr.a,{height:300,language:"python",theme:"vs-light",value:Me==null||((Et=Me[0])===null||Et===void 0)?void 0:Et.passed_code,options:Ke}))))})),(Re==null?void 0:Re.user_score)&&r.a.createElement("div",{className:ce.a.answer},r.a.createElement("div",null,"\u672C\u9898\u5F97\u5206\uFF1A",(Re==null?void 0:Re.user_score)==="0.0"?0:Re==null?void 0:Re.user_score,"\u5206")))},gr=Object(m.forwardRef)(Dr),Ar=c("m3rI"),Ir=T.a.Countdown,_e=function(rt){var dt,Ue,ge,nt,Ee,it,Pe,le,Re,Ae,St,ot,ct,gt,Tt,Ct,vt,bt,At,$e,de=rt.location,ke=rt.user,Fe=rt.globalSetting,Ve=Object(m.useState)(!1),st=Object(D.a)(Ve,2),Ke=st[0],Ze=st[1],at=Object(m.useState)(!1),yt=Object(D.a)(at,2),Ne=yt[0],mt=yt[1],qe=Object(m.useState)(!0),Le=Object(D.a)(qe,2),tt=Le[0],ze=Le[1],kt=Object(m.useState)(!1),Dt=Object(D.a)(kt,2),Et=Dt[0],lt=Dt[1],Me=Object(m.useState)(!1),It=Object(D.a)(Me,2),Oe=It[0],je=It[1],Be=Object(m.useState)(0),_t=Object(D.a)(Be,2),ht=_t[0],Pt=_t[1],Ht=Object(m.useState)(!1),Xt=Object(D.a)(Ht,2),Nt=Xt[0],Yt=Xt[1],br=Object(m.useState)({}),ar=Object(D.a)(br,2),We=ar[0],rr=ar[1],Nr=Object(m.useState)({}),sn=Object(D.a)(Nr,2),me=sn[0],jn=sn[1],Pn=Object(m.useState)([]),ln=Object(D.a)(Pn,2),pt=ln[0],jr=ln[1],Mn=Object(m.useState)([]),un=Object(D.a)(Mn,2),ir=un[0],cn=un[1],kn=Object(m.useState)(!1),dn=Object(D.a)(kn,2),Wt=dn[0],Ln=dn[1],or=Object(m.useRef)({}),fn=Object(m.useRef)(),yr=Object(m.useRef)(0),Un=Object(m.useState)(null),hn=Object(D.a)(Un,2),Fn=hn[0],Pr=hn[1],Bn=Object(m.useState)(null),pn=Object(D.a)(Bn,2),Br=pn[0],Hn=pn[1],Hr=Object(m.useRef)(),Xn=Object(m.useState)(null),mn=Object(D.a)(Xn,2),fr=mn[0],Wn=mn[1],er=ke.userInfo,Xr=Object(m.useRef)(),vn=Object(m.useRef)(!1),gn=Object(m.useRef)(),sr=Object(m.useMemo)(function(){return new WebSocket("ws://localhost:8082")},[]),Gn=Object(m.useState)(!1),bn=Object(D.a)(Gn,2),zn=bn[0],_r=bn[1];Object(m.useEffect)(function(){var Ie,be;(de==null||((Ie=de.query)===null||Ie===void 0)?void 0:Ie.examId)&&(ke==null||((be=ke.userInfo)===null||be===void 0)?void 0:be.user_id)&&(localStorage.setItem("ismain","2"),Wr())},[de==null||((dt=de.query)===null||dt===void 0)?void 0:dt.examId,ke.userInfo]),Object(m.useEffect)(function(){var Ie,be,xe,ye,Te,Ge,pe;console.log("globalSetting.deviceStatus:",Fe.deviceStatus,(Ie=Fe.deviceStatus)===null||Ie===void 0?void 0:Ie.usb),((be=Fe.deviceStatus)===null||be===void 0?void 0:be.usb)&&(me==null||((xe=me.exercise)===null||xe===void 0)?void 0:xe.disbale_usb)||((ye=Fe.deviceStatus)===null||ye===void 0?void 0:ye.bluetooth)&&(me==null||((Te=me.exercise)===null||Te===void 0)?void 0:Te.disable_bluebooth)||((Ge=Fe.deviceStatus)===null||Ge===void 0?void 0:Ge.openShare)&&(me==null||((pe=me.exercise)===null||pe===void 0)?void 0:pe.disable_share_file)?wn():wn(!0)},[Fe.deviceStatus]),console.log(We,"editData"),Object(m.useEffect)(function(){return window.addEventListener("offline",yn),window.addEventListener("keydown",_n),window.addEventListener("beforeunload",En),document.oncontextmenu=new Function("event.returnValue=false;"),function(){Object(k.i)(" ",!1),window.removeEventListener("beforeunload",En),window.removeEventListener("offline",yn),window.removeEventListener("keydown",_n),document.oncontextmenu=new Function("event.returnValue=true;")}},[]);var yn=function(){var be=6,xe=null,ye=function(){if(be=be-1,be===0){Object(V.b)(),clearInterval(xe),Te.destroy(),sr.send(JSON.stringify({type:"toggleLockExit",data:!1})),u.c.replace("/exam/studentClient");return}Te.update({content:r.a.createElement("div",null,r.a.createElement("p",null,"\u5F53\u524D\u7F51\u7EDC\u8FDE\u63A5\u4E2D\u65AD\uFF0C\u8BF7\u786E\u8BA4\u7F51\u7EDC\u8FDE\u63A5\u6B63\u5E38\u540E\uFF0C\u518D\u8FDB\u884C\u8003\u8BD5\u3002"),r.a.createElement("p",null,be,"\u79D2\u5185\u672A\u6062\u590D\u7F51\u7EDC\u8FDE\u63A5\uFF0C\u5C06\u9000\u51FA\u8003\u8BD5\u3002"))})},Te=x.a.info({keyboard:!1,maskClosable:!1,okText:"\u68C0\u6D4B\u7F51\u7EDC",icon:null,width:500,content:r.a.createElement("div",null,r.a.createElement("p",null,"\u5F53\u524D\u7F51\u7EDC\u8FDE\u63A5\u4E2D\u65AD\uFF0C\u8BF7\u786E\u8BA4\u7F51\u7EDC\u8FDE\u63A5\u6B63\u5E38\u540E\uFF0C\u518D\u8FDB\u884C\u8003\u8BD5\u3002"),r.a.createElement("p",null,"5\u79D2\u5185\u672A\u6062\u590D\u7F51\u7EDC\u8FDE\u63A5\uFF0C\u5C06\u9000\u51FA\u8003\u8BD5\u3002")),onOk:function(){var Ge=Object(w.a)(E.a.mark(function et(){return E.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!navigator.onLine){Ot.next=5;break}clearInterval(xe),Te.destroy(),Ot.next=6;break;case 5:return Ot.abrupt("return",Promise.reject());case 6:case"end":return Ot.stop()}},et)}));function pe(){return Ge.apply(this,arguments)}return pe}()});xe=setInterval(ye,1e3)},_n=function(be){be.keyCode==83&&(navigator.platform.match("Mac")?be.metaKey:be.ctrlKey)&&be.preventDefault()},ta=function(){p.a.close("offline"),p.a.success({message:"\u7F51\u7EDC\u6062\u590D\u6B63\u5E38",description:"\u7F51\u7EDC\u6062\u590D\u6B63\u5E38\uFF0C\u611F\u8C22\u4F7F\u7528\u3002"})};function wn(Ie){var be,xe,ye,Te,Ge,pe;if(clearInterval(Xr.current),clearInterval(gn.current),Ie){x.a.destroyAll();return}var et=15;x.a.destroyAll();var Lt=x.a.warn({title:"\u63D0\u793A",centered:!0,width:500,className:M.a.countDownTip,content:r.a.createElement("div",null,r.a.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u7981\u6B62 ",r.a.createElement("span",{className:"c-red"},((be=Fe.deviceStatus)===null||be===void 0?void 0:be.openShare)&&(me==null||((xe=me.exercise)===null||xe===void 0)?void 0:xe.disable_share_file)&&"\u5171\u4EAB\u6587\u4EF6\u5939",((ye=Fe.deviceStatus)===null||ye===void 0?void 0:ye.bluetooth)&&(me==null||((Te=me.exercise)===null||Te===void 0)?void 0:Te.disable_bluebooth)&&"\u84DD\u7259",((Ge=Fe.deviceStatus)===null||Ge===void 0?void 0:Ge.usb)&&(me==null||((pe=me.exercise)===null||pe===void 0)?void 0:pe.disbale_usb)&&"USB\u63A5\u53E3"),"\u3002"),r.a.createElement("div",null,"\u8BF7\u5728 ",r.a.createElement("span",{className:"c-red font16"},et,"s")," \u5185\u505C\u6B62\u76F8\u5173\u64CD\u4F5C\uFF0C\u5426\u5219\u7CFB\u7EDF\u5C06\u5F3A\u5236\u4EA4\u5377"))});Xr.current=setInterval(function(){var Ot,xt,Kt,Gt,Jt,Qt;et-=1,Lt.update({content:r.a.createElement("div",null,r.a.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u7981\u6B62 ",r.a.createElement("span",{className:"c-red"},((Ot=Fe.deviceStatus)===null||Ot===void 0?void 0:Ot.openShare)&&(me==null||((xt=me.exercise)===null||xt===void 0)?void 0:xt.disable_share_file)&&"\u5171\u4EAB\u6587\u4EF6\u5939",((Kt=Fe.deviceStatus)===null||Kt===void 0?void 0:Kt.bluetooth)&&(me==null||((Gt=me.exercise)===null||Gt===void 0)?void 0:Gt.disable_bluebooth)&&"\u84DD\u7259",((Jt=Fe.deviceStatus)===null||Jt===void 0?void 0:Jt.usb)&&(me==null||((Qt=me.exercise)===null||Qt===void 0)?void 0:Qt.disbale_usb)&&"USB\u63A5\u53E3"),"\u3002"),r.a.createElement("div",null,"\u8BF7\u5728 ",r.a.createElement("span",{className:"c-red font16"},et,"s")," \u5185\u505C\u6B62\u76F8\u5173\u64CD\u4F5C\uFF0C\u5426\u5219\u7CFB\u7EDF\u5C06\u5F3A\u5236\u4EA4\u5377"))})},1e3),gn.current=setTimeout(function(){hr(1),clearInterval(Xr.current),Lt.destroy()},et*1e3)}var En=function(be){Object(k.i)(" ",!1);var xe="\u8BF7\u786E\u8BA4\u662F\u5426\u8981\u79BB\u5F00\u300AXXXXXXX\u300B\u7B54\u9898\u9875\u9762\uFF1F\u518D\u6B21\u8FDB\u5165\u8003\u8BD5\u65F6\uFF0C\u9700\u8981\u8F93\u5165\u76D1\u8003\u5BC6\u7801\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002";return(be||window.event).returnValue=xe,xe};Object(m.useEffect)(function(){return Ne&&(Object(V.d)(document.documentElement),setTimeout(function(){window.addEventListener("blur",Sn,!1),document.addEventListener(Object(V.c)(),xn)},500),setTimeout(function(){console.log(V.a,44),Object(V.a)()||x.a.info({icon:null,keyboard:!1,maskClosable:!1,centered:!0,maskStyle:{backgroundColor:"#000"},okText:"\u6211\u77E5\u9053\u4E86",content:r.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C\u60A8\u5DF2\u5207\u5C4F",r.a.createElement("span",{className:"c-red"},yr.current+1),"\u6B21",r.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),onOk:function(){Object(V.d)(document.documentElement),Tn(yr.current+1)}})},1500)),function(){document.removeEventListener(Object(V.c)(),xn),window.removeEventListener("blur",Sn,!1)}},[Ne]),Object(m.useEffect)(function(){return(We==null?void 0:We.question_num)&&sessionStorage.setItem("answer_position",(We==null?void 0:We.question_num)||1),function(){sessionStorage.clear()}},[We==null?void 0:We.question_num]),Object(m.useEffect)(function(){return Object(u.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),function(){Object(u.b)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0})}},[]);var Sn=function(be){var xe,ye;if(zn){setTimeout(function(){_r(!1)},500);return}localStorage.setItem("111","2222"),Object(V.a)()&&(!document.getElementById("iframeShixuns")||((xe=document.getElementById("iframeShixuns"))===null||xe===void 0||((ye=xe.style)===null||ye===void 0)?void 0:ye.display)=="none")&&Object(V.b)()},Tn=function(){var Ie=Object(w.a)(E.a.mark(function be(xe){var ye,Te;return E.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(z.E)({id:de==null||((ye=de.query)===null||ye===void 0)?void 0:ye.examId});case 2:xe>=(me==null||((Te=me.exercise)===null||Te===void 0)?void 0:Te.screen_num)?(x.a.destroyAll(),hr(1,!0)):(yr.current=xe,On(xe+1));case 3:case"end":return pe.stop()}},be)}));return function(xe){return Ie.apply(this,arguments)}}(),On=function(){var Ie=Object(w.a)(E.a.mark(function be(xe){var ye,Te,Ge;return E.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(!vn.current){et.next=2;break}return et.abrupt("return");case 2:x.a.destroyAll(),window.parent.postMessage("backExercise","*"),Ge=x.a.info({keyboard:!1,maskClosable:!1,centered:!0,maskStyle:{backgroundColor:"#000"},okText:r.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:r.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",r.a.createElement("span",{className:"c-red"},xe-1),"\u6B21\uFF0C\u5207\u5C4F\u8FBE\u5230",r.a.createElement("span",{className:"c-red"},me==null||((ye=me.exercise)===null||ye===void 0)?void 0:ye.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",r.a.createElement("span",{className:"c-red"},r.a.createElement("br",null),r.a.createElement("span",{style:{display:"inline-block",marginLeft:38}},r.a.createElement(Ir,{onFinish:function(){return Tn(xe)},valueStyle:{fontSize:14,lineHeight:1.4,color:"#fb3226",display:"inline-block"},format:"ss",value:Date.now()+((me==null||((Te=me.exercise)===null||Te===void 0)?void 0:Te.screen_sec)+1)*1e3}))),"\u79D2\u5185\u56DE\u5230\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002"),onOk:function(){var Lt=Object(w.a)(E.a.mark(function xt(){return E.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:Object(V.d)(document.documentElement),Ge.destroy();case 2:case"end":return Gt.stop()}},xt)}));function Ot(){return Lt.apply(this,arguments)}return Ot}()});case 5:case"end":return et.stop()}},be)}));return function(xe){return Ie.apply(this,arguments)}}(),xn=function(be){document.fullscreenElement?console.log("\u8FDB\u5165\u5168\u5C4F"):(Object(k.i)(" ",!1),On(yr.current+1))},$n=function(be){var xe=[];return be.forEach(function(ye){xe=xe.concat(ye.items)}),xe=xe.map(function(ye){return Object(o.a)(Object(o.a)({},ye),{},{question_num:(ye==null?void 0:ye.question_num)||(ye==null?void 0:ye.q_position)})}),xe},Wr=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye,Te,Ge,pe,et,Lt,Ot,xt,Kt,Gt,Jt,Qt,qt,zr,$r,Vr,Yr,Kr,Jr,qr,nr,An,In,Nn,Qr,Zr,en;return E.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return je(!0),Zt.next=3,Object(O.a)("/api/students/exercises/".concat(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId,"/").concat((de==null||((ye=de.query)===null||ye===void 0)?void 0:ye.check)?"start_answer":"start",".json"),{method:"get"});case 3:if(pe=Zt.sent,((pe==null||((Te=pe.exercise)===null||Te===void 0)?void 0:Te.question_random)||(pe==null||((Ge=pe.exercise)===null||Ge===void 0)?void 0:Ge.choice_random))&&(Lt=1,pe.exercise.question_random=pe==null||((et=pe.exercise_question_types)===null||et===void 0)?void 0:et.map(function($t){var Er;if(pe==null||((Er=pe.exercise)===null||Er===void 0)?void 0:Er.question_random){var tn,rn;$t.items=Object(k.D)($t.items,(tn=ke.userInfo)===null||tn===void 0?void 0:tn.user_id),(pe==null||((rn=pe.exercise)===null||rn===void 0)?void 0:rn.choice_random)&&(($t.question_type===0||$t.question_type===1)&&$t.items.map(function(pr){var nn;return pr.question_choices=Object(k.D)(pr.question_choices,(nn=ke.userInfo)===null||nn===void 0?void 0:nn.user_id),pr})),$t.items.map(function(pr){return pr.question_num=Lt,Lt++,pr})}return $t})),!(pe==null?void 0:pe.exercise_question_types)){Zt.next=28;break}if(!(((Ot=pe.exercise)===null||Ot===void 0?void 0:Ot.left_time)===0)){Zt.next=9;break}return hr(1),Zt.abrupt("return");case 9:try{sr.send(JSON.stringify({type:"toggleLockExit",data:!0})),sr.send(JSON.stringify({type:"network-close",data:""}))}catch($t){}if((pe==null||((xt=pe.exercise)===null||xt===void 0||((Kt=xt.client_blacklist)===null||Kt===void 0))?void 0:Kt.length)&&sr.send(JSON.stringify({type:"blacklistAppOpen",data:pe==null||((Jr=pe.exercise)===null||Jr===void 0)?void 0:Jr.client_blacklist})),!(((Gt=pe.exercise)===null||Gt===void 0?void 0:Gt.exercise_status)<3&&pe.exercise.is_normal)){Zt.next=14;break}return Zt.next=14,Object(k.g)(de==null||((qr=de.query)===null||qr===void 0)?void 0:qr.examId,"\u8003\u8BD5\u65F6\u95F4\u5DF2\u5230\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u6536\u5377\u3002");case 14:Pr(((Jt=pe.exercise)===null||Jt===void 0?void 0:Jt.left_time)&&Date.now()+(pe==null||((Qt=pe.exercise)===null||Qt===void 0)?void 0:Qt.left_time)*1e3),Hn(parseInt(pe==null||((qt=pe.exercise)===null||qt===void 0)?void 0:qt.limit_submit_time)*60),Wn((zr=pe.exercise)===null||zr===void 0?void 0:zr.left_time),nr=$n(pe==null?void 0:pe.exercise_question_types),An=sessionStorage.getItem("answer_position")||1,jn(pe),In=pe==null||(($r=pe.exercise_question_types)===null||$r===void 0)?void 0:$r.reduce(function($t,Er){return $t+=Number(Er.score)},0),Pt(In),(de==null||((Vr=de.query)===null||Vr===void 0)?void 0:Vr.check)?jr((pe==null?void 0:pe.question_status)||[]):(Nn=nr==null?void 0:nr.map(function($t){return{is_marked:$t.is_marked,ques_id:$t.question_id,ques_number:$t.question_num,ques_status:$t.ques_status}}),jr(Nn||[])),cn(nr),rr((nr==null?void 0:nr[Number(An)-1])||{}),je(!1),Ln((pe==null||((Yr=pe.exercise)===null||Yr===void 0)?void 0:Yr.user_exercise_status)===1),(pe==null||((Kr=pe.exercise)===null||Kr===void 0)?void 0:Kr.user_exercise_status)!==1&&(Ze(!!(pe==null||((Qr=pe.exercise)===null||Qr===void 0)?void 0:Qr.open_camera)),mt(!!(pe==null||((Zr=pe.exercise)===null||Zr===void 0)?void 0:Zr.screen_open)),yr.current=(pe==null||((en=pe.exercise)===null||en===void 0)?void 0:en.used_screen_num)||0);case 28:case"end":return Zt.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}(),wr=function(be,xe){var ye=pt.map(function(Ge){return Ge.ques_id===(be==null?void 0:be.question_id)?Object(o.a)(Object(o.a)({},Ge),{},{ques_status:xe}):Ge}),Te=ir.map(function(Ge){return Ge.question_id===(be==null?void 0:be.question_id)?be:Ge});jr(ye),cn(Te)},lr=function(be,xe){var ye,Te,Ge,pe,et=me==null||((ye=me.exercise_question_types)===null||ye===void 0)?void 0:ye.find(function(Ot){return Ot.question_type===xe}),Lt=me==null||((Te=me.exercise_question_types)===null||Te===void 0)?void 0:Te.findIndex(function(Ot){return Ot.question_type===xe});return r.a.createElement(m.Fragment,null,r.a.createElement("span",{className:"blod font14 c-grey-333"},Object(k.J)(Lt+1),"\u3001",be,"\uFF08\u5171",et==null||((Ge=et.items)===null||Ge===void 0)?void 0:Ge.length,"\u9898\uFF0C\u5171",et==null?void 0:et.score,"\u5206\uFF09"),r.a.createElement("ul",{className:M.a.answerSheet,key:xe},et==null||((pe=et.items)===null||pe===void 0)?void 0:pe.map(function(Ot,xt){var Kt,Gt=(pt==null?void 0:pt.some(function(qt){return qt.ques_id===Ot.question_id&&!!qt.ques_status}))?M.a.active:"",Jt=!!(pt==null?void 0:pt.some(function(qt){return qt.ques_id===Ot.question_id&&!!qt.is_marked})),Qt=pt==null||((Kt=pt.find(function(qt){return qt.ques_id===Ot.question_id}))===null||Kt===void 0)?void 0:Kt.ques_number;if(et.question_type===xe)return r.a.createElement("li",{onClick:function(){return rr(ir[Qt-1])},key:xt,className:Gt},r.a.createElement("span",null,Qt),Jt&&r.a.createElement("i",{className:"iconfont icon-biaoji"}))})))},Vn=function(be){return r.a.createElement(m.Fragment,null,be.question_type===0&&lr("\u5355\u9009\u9898",0),be.question_type===1&&lr("\u591A\u9009\u9898",1),be.question_type===2&&lr("\u5224\u65AD\u9898",2),be.question_type===3&&lr("\u586B\u7A7A\u9898",3),be.question_type===4&&lr("\u7B80\u7B54\u9898",4),be.question_type===5&&lr("\u5B9E\u8BAD\u9898",5),be.question_type===6&&lr("\u7F16\u7A0B\u9898",6))},Yn=function(){var be,xe,ye,Te,Ge,pe,et;return r.a.createElement(m.Fragment,null,We.question_type===0&&r.a.createElement(Mt,{key:We==null?void 0:We.question_id,ref:or,data:We,callback:wr,params:{checkState:Wt,examId:de==null||((be=de.query)===null||be===void 0)?void 0:be.examId,exercise:me==null?void 0:me.exercise,lastMoment:Nt}}),We.question_type===1&&r.a.createElement(Vt,{key:We==null?void 0:We.question_id,ref:or,data:We,callback:wr,params:{checkState:Wt,examId:de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId,exercise:me==null?void 0:me.exercise,lastMoment:Nt}}),We.question_type===2&&r.a.createElement(Sr,{key:We==null?void 0:We.question_id,ref:or,data:We,callback:wr,params:{checkState:Wt,examId:de==null||((ye=de.query)===null||ye===void 0)?void 0:ye.examId,exercise:me==null?void 0:me.exercise,lastMoment:Nt}}),We.question_type===3&&r.a.createElement(Or,{key:We==null?void 0:We.question_id,ref:or,data:We,callback:wr,params:{checkState:Wt,examId:de==null||((Te=de.query)===null||Te===void 0)?void 0:Te.examId,exercise:me==null?void 0:me.exercise,lastMoment:Nt}}),We.question_type===4&&r.a.createElement(vr,{key:We==null?void 0:We.question_id,ref:or,data:We,callback:wr,params:{checkState:Wt,examId:de==null||((Ge=de.query)===null||Ge===void 0)?void 0:Ge.examId,exercise:me==null?void 0:me.exercise,lastMoment:Nt}}),We.question_type===5&&r.a.createElement(gr,{key:We==null?void 0:We.question_id,params:{examId:de==null||((pe=de.query)===null||pe===void 0)?void 0:pe.examId,login:er==null?void 0:er.login,checkState:Wt,exercise:me==null?void 0:me.exercise,lastMoment:Nt},ref:or,data:We,callback:Wr}),We.question_type===6&&r.a.createElement(Cr,{key:We==null?void 0:We.question_id,params:{examId:de==null||((et=de.query)===null||et===void 0)?void 0:et.examId,login:er==null?void 0:er.login,checkState:Wt,exercise:me==null?void 0:me.exercise,lastMoment:Nt},ref:or,data:We,callback:Wr}))},Cn=function(){var Ie=Object(w.a)(E.a.mark(function be(xe){return E.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(!(xe==="prev")){Te.next=3;break}return rr(ir[We.question_num-2]),Te.abrupt("return");case 3:rr(ir[We.question_num]);case 4:case"end":return Te.stop()}},be)}));return function(xe){return Ie.apply(this,arguments)}}(),hr=function(){var Ie=Object(w.a)(E.a.mark(function be(xe,ye){var Te,Ge,pe,et,Lt;return E.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Object(O.a)("/api/students/exercises/".concat(de==null||((Te=de.query)===null||Te===void 0)?void 0:Te.examId,"/commit_exercise.json"),{method:"post",body:{commit_method:xe}});case 2:if(Ge=xt.sent,!((Ge==null?void 0:Ge.status)===0)){xt.next=16;break}Qn(),Object(k.i)(" ",!1);try{sr.send(JSON.stringify({type:"blacklistAppDisabled",data:Ge==null||((pe=Ge.exercise)===null||pe===void 0)?void 0:pe.client_blacklist})),sr.send(JSON.stringify({type:"toggleLockExit",data:!1})),sr.send(JSON.stringify({type:"network-open",data:""}))}catch(Kt){}if(Ze(!1),p.a.destroy(),x.a.destroyAll(),vn.current=!0,!(xe===1)){xt.next=15;break}return Object(V.b)(),u.c.replace("/exam/succeed?examId=".concat(de==null||((et=de.query)===null||et===void 0)?void 0:et.examId,"&used_screen_count=").concat(ye?me==null||((Lt=me.exercise)===null||Lt===void 0)?void 0:Lt.screen_num:0)),xt.abrupt("return");case 15:x.a.info({width:530,title:"\u63D0\u793A",centered:!0,zIndex:1e3,keyboard:!1,maskClosable:!1,okText:"\u786E\u5B9A",content:r.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",r.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var Gt,Jt;Object(V.b)(),u.c.replace("/exam/succeed?examId=".concat(de==null||((Gt=de.query)===null||Gt===void 0)?void 0:Gt.examId,"&used_screen_count=").concat(ye?me==null||((Jt=me.exercise)===null||Jt===void 0)?void 0:Jt.screen_num:0))}});case 16:case"end":return xt.stop()}},be)}));return function(xe,ye){return Ie.apply(this,arguments)}}(),Kn=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye,Te;return E.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(k.g)(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId);case 2:return pe.next=4,Object(O.a)("/api/students/exercises/".concat(de==null||((ye=de.query)===null||ye===void 0)?void 0:ye.examId,"/check_status.json"),{method:"get"});case 4:Te=pe.sent,(Te==null?void 0:Te.status)===0&&((Te==null?void 0:Te.left_time)===0?hr(2):Pr((Te==null?void 0:Te.left_time)&&Date.now()+(Te==null?void 0:Te.left_time)*1e3));case 6:case"end":return pe.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}(),Rn=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye;return E.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(O.a)("/api/students/exercises/".concat(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId,"/check_status.json"),{method:"get"});case 2:ye=Ge.sent,(ye==null?void 0:ye.status)===0&&((ye==null?void 0:ye.left_time)===0?hr(1):x.a.confirm({centered:!0,width:440,okText:"\u786E\u8BA4",keyboard:!1,cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",className:"custom-modal-divider",content:"\u5F53\u524D\u8003\u8BD5\u5269\u4F59".concat(Math.floor((ye==null?void 0:ye.left_time)/60),"\u5206\u949F\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var pe=Object(w.a)(E.a.mark(function Lt(){return E.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,hr(1);case 2:case"end":return xt.stop()}},Lt)}));function et(){return pe.apply(this,arguments)}return et}(),onCancel:function(){var pe=Object(w.a)(E.a.mark(function Lt(){return E.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.abrupt("return",Pr((ye==null?void 0:ye.left_time)&&Date.now()+(ye==null?void 0:ye.left_time)*1e3));case 1:case"end":return xt.stop()}},Lt)}));function et(){return pe.apply(this,arguments)}return et}()}));case 4:case"end":return Ge.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}(),Jn=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye;return E.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return lt(!0),Ge.next=3,Object(k.g)(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId);case 3:if(ye=[],ir.forEach(function(pe,et){var Lt=pt.findIndex(function(Ot){return Ot.ques_id===pe.question_id&&!Ot.ques_status});Lt>-1&&ye.push(et+1)}),lt(!1),ye.length){Ge.next=9;break}return x.a.confirm({centered:!0,width:440,okText:"\u68C0\u67E5\u4E00\u4E0B",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:"\u4EA4\u5377\u540E\u65E0\u6CD5\u4FEE\u6539\u8BD5\u5377\u7B54\u6848\uFF0C\u786E\u5B9A\u8981\u73B0\u5728\u4EA4\u5377\u5417\uFF1F",onOk:function(){return Promise.resolve()},onCancel:Rn}),Ge.abrupt("return");case 9:x.a.confirm({centered:!0,width:440,okText:"\u7EE7\u7EED\u7B54\u9898",cancelText:"\u4EA4\u5377",icon:null,title:"\u63D0\u793A",keyboard:!1,className:"custom-modal-divider",content:r.a.createElement("div",null,r.a.createElement("p",{style:{color:"#FF8C29"}},"\u4F60\u8FD8\u6709\u4EE5\u4E0B",ye.length,"\u9053\u9898\u672A\u5B8C\u6210\uFF0C\u786E\u5B9A\u8981\u63D0\u4EA4\u8BD5\u5377\u5417\uFF1F"),r.a.createElement("div",null,ye.map(function(pe){return r.a.createElement("div",{onClick:function(){rr(ir[pe-1]),x.a.destroyAll()},className:M.a.listBtn,key:pe},pe)}))),onOk:function(){return Promise.resolve()},onCancel:Rn});case 10:case"end":return Ge.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}(),qn=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye,Te;return E.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(O.a)("/api/students/exercises/".concat(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId,"/mark"),{method:"post",body:{exercise_question_id:We==null?void 0:We.question_id}});case 2:ye=pe.sent,ye.status===0&&(Te=pt.map(function(et){return et.ques_id===(We==null?void 0:We.question_id)?Object(o.a)(Object(o.a)({},et),{},{is_marked:!et.is_marked}):et}),jr(Te));case 4:case"end":return pe.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}();function Qn(){return Gr.apply(this,arguments)}function Gr(){return Gr=Object(w.a)(E.a.mark(function Ie(){var be;return E.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,Object(O.a)("/api/students/exercises/".concat(de==null||((be=de.query)===null||be===void 0)?void 0:be.examId,`/last_leave_time_and_status.json?last_leave_status=true
`),{method:"post"});case 2:case"end":return ye.stop()}},Ie)})),Gr.apply(this,arguments)}var Dn=!((Ue=window)===null||Ue===void 0||((ge=Ue.navigator)===null||ge===void 0)?void 0:ge.userAgent.indexOf("Firefox"));window.onunload=function(){if(Dn){var Ie;window.navigator.sendBeacon("".concat(Ar.a.API_SERVER,"/api/students/exercises/").concat(de==null||((Ie=de.query)===null||Ie===void 0)?void 0:Ie.examId,"/last_leave_time_and_status.json?last_leave_status=true"),{})}else console.log("\u5237\u65B0\u64CD\u4F5C")},window.onbeforeunload=function(){if(Dn)console.log("\u5237\u65B0\u64CD\u4F5C");else try{var Ie,be=window.navigator.sendBeacon("".concat(Ar.a.API_SERVER,"/api/students/exercises/").concat(de==null||((Ie=de.query)===null||Ie===void 0)?void 0:Ie.examId,"/last_leave_time_and_status.json?last_leave_status=true"),{})}catch(xe){}},Object(m.useEffect)(function(){return fr>60&&me&&(Hr.current=setInterval(function(){var Ie,be,xe;if(fr--,fr===60&&clearInterval(Hr.current),localStorage.getItem("ismain")==="1")return;if(me==null||((Ie=me.exercise)===null||Ie===void 0||((be=Ie.exercise_events)===null||be===void 0))||be.map(function(Te,Ge){parseInt(Te==null?void 0:Te.reminder_time)*60===fr&&p.a.open({message:"\u6E29\u99A8\u63D0\u793A",top:76,description:r.a.createElement("span",null,Te==null?void 0:Te.reminder_content),duration:60,onClick:function(){_r(!0)},onClose:function(){_r(!0)}})}),(me==null||((xe=me.exercise)===null||xe===void 0)?void 0:xe.limit_submit_time)*60===fr){var ye;p.a.open({message:"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\uFF01",top:76,description:r.a.createElement("div",null,r.a.createElement("div",null,"1.\u8BF7\u68C0\u67E5\u5B9E\u8BAD\u9898/\u7F16\u7A0B\u9898\u662F\u5426\u5747\u5DF2\u8BC4\u6D4B\uFF0C\u5982\u672A\u8BC4\u6D4B\uFF0C\u73B0\u5728\u4F60\u8FD8\u53EF\u4EE5\u8FDB\u884C\u8BC4\u6D4B\u3002"),r.a.createElement("div",{className:"c-red"},"\u7279\u522B\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u9898/\u7F16\u7A0B\u9898\u5F97\u5206\u4EE5\u6700\u540E\u4E00\u6B21\u8BC4\u6D4B\u4E3A\u51C6\u3002"),r.a.createElement("div",null,"2.\u8BF7\u70B9\u51FB\u201D\u4EA4\u5377\u201D\u6309\u94AE\u4E3B\u52A8\u4EA4\u5377\uFF0C",me==null||((ye=me.exercise)===null||ye===void 0)?void 0:ye.limit_submit_time,"\u5206\u949F\u540E\u7CFB\u7EDF\u5C06\u5F3A\u5236\u6536\u5377\u3002")),duration:60,onClick:function(){_r(!0)},onClose:function(){_r(!0)}})}},1e3)),function(){clearInterval(Hr.current),p.a.destroy()}},[fr,me]);var ra=function(){var be;(be=fn.current)===null||be===void 0||be.handlePhoto()},Zn=function(){var Ie=Object(w.a)(E.a.mark(function be(){var xe,ye,Te;return E.a.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,Object(k.g)(de==null||((xe=de.query)===null||xe===void 0)?void 0:xe.examId);case 2:return pe.next=4,Object(O.a)("/api/students/exercises/".concat(de==null||((ye=de.query)===null||ye===void 0)?void 0:ye.examId,"/check_status.json"),{method:"get"});case 4:Te=pe.sent,(Te==null?void 0:Te.status)===0&&Pr((Te==null?void 0:Te.left_time)&&Date.now()+(Te==null?void 0:Te.left_time)*1e3);case 6:case"end":return pe.stop()}},be)}));return function(){return Ie.apply(this,arguments)}}(),ea=!!(pt==null?void 0:pt.some(function(Ie){return Ie.ques_id===We.question_id&&!!Ie.is_marked}));return r.a.createElement(t.a,{loading:!1,paragraph:{rows:5},active:!0,className:"p20"},r.a.createElement(m.Fragment,null,r.a.createElement("div",{className:M.a.header},r.a.createElement("div",{className:M.a.num,style:{fontWeight:600,marginRight:20}},me==null||((nt=me.exercise)===null||nt===void 0)?void 0:nt.user_name),r.a.createElement("div",{className:M.a.num},r.a.createElement("div",null,"\u8003\u53F7\uFF1A",(me==null||((Ee=me.exercise)===null||Ee===void 0)?void 0:Ee.exercise_no)||"--"," "),r.a.createElement("div",null,"\u5B66\u53F7\uFF1A",me==null||((it=me.exercise)===null||it===void 0)?void 0:it.student_id," ")),r.a.createElement("div",{title:me==null||((Pe=me.exercise)===null||Pe===void 0)?void 0:Pe.exercise_name,className:M.a.name},me==null||((le=me.exercise)===null||le===void 0)?void 0:le.exercise_name),r.a.createElement("div",{style:{visibility:Wt?"hidden":"visible"},className:M.a.time},r.a.createElement("span",null,"\u5269\u4F59\u7B54\u9898\u65F6\u95F4\uFF1A"),r.a.createElement("span",{className:M.a.s2},Br&&r.a.createElement(K.a,{value:Fn,second:Br,remainSeconds:function(be){console.log(Br),Yt(be)},onFinish:Kn})),r.a.createElement(a.a,{size:"small",ghost:!0,type:"primary",className:"ml10",disabled:Wt,onClick:Zn},"\u5237\u65B0")),r.a.createElement(a.a,{className:M.a.btn,style:{visibility:Wt?"hidden":"visible",background:"red",border:"1px solid red"},disabled:Wt,loading:Et,onClick:Jn,type:"primary"},"\u4EA4\u5377")),r.a.createElement("div",{className:M.a.wrap},Wt&&r.a.createElement("div",{className:M.a.back},r.a.createElement("span",{onClick:function(){return u.c.push("/exam/studentClient")}},r.a.createElement("i",{className:"iconfont icon-fanhui1"})," \u8FD4\u56DE\u8003\u8BD5\u5217\u8868"))),r.a.createElement("div",{className:M.a.wrap,style:{marginTop:"0px"}},r.a.createElement("div",{className:M.a.left,style:{width:tt?280:0}},r.a.createElement("section",{style:{opacity:tt?1:0}},Ke&&r.a.createElement("div",{className:M.a.camera},r.a.createElement(A,{number:(me==null||((Re=me.exercise)===null||Re===void 0)?void 0:Re.photo_count)-(me==null||((Ae=me.exercise)===null||Ae===void 0)?void 0:Ae.take_photo),take_photo:me==null||((St=me.exercise)===null||St===void 0)?void 0:St.take_photo,ref:fn,width:"232",custom:{categoryId:de==null||((ot=de.query)===null||ot===void 0)?void 0:ot.examId,login:er==null?void 0:er.login},time:(ct=me.exercise)===null||ct===void 0?void 0:ct.left_time,supportCamera:function(be){console.log(be,333),be===2||be===1&&(Object(V.a)()&&Object(V.b)(),setTimeout(function(){return u.c.replace("/exam/studentClient")},2e3))}})),Wt&&((me==null?void 0:me.user_score)||(me==null||((gt=me.exercise)===null||gt===void 0)?void 0:gt.can_view_scores))&&r.a.createElement("div",{className:M.a.totalScore},(me==null?void 0:me.user_score)&&r.a.createElement(m.Fragment,null,r.a.createElement("span",null,me==null?void 0:me.user_score),r.a.createElement("span",null,"\u8003\u8BD5\u5F97\u5206")),(me==null||((Tt=me.exercise)===null||Tt===void 0)?void 0:Tt.can_view_scores)&&r.a.createElement(j.Link,{className:"font14",to:"/exam/studentList/".concat(de==null||((Ct=de.query)===null||Ct===void 0)?void 0:Ct.examId)},"\u67E5\u770B\u6210\u7EE9\u7EDF\u8BA1>>")),Wt&&r.a.createElement("div",{className:M.a.totalAnswerScore},r.a.createElement("span",null,"\u7B54\u9898",r.a.createElement("i",null,pt==null||((vt=pt.filter(function(Ie){return Ie.ques_status}))===null||vt===void 0)?void 0:vt.length)),r.a.createElement("span",null,"\u5171",r.a.createElement("i",null,pt==null?void 0:pt.length),"\u9898\uFF0C\u6EE1\u5206",r.a.createElement("i",null,ht),"\u5206")),r.a.createElement("div",{className:"relative",style:{minHeight:236}},r.a.createElement("aside",{className:"bg-white p20"},!Wt&&r.a.createElement("aside",{className:M.a.answerInfo},r.a.createElement(y.a,null,r.a.createElement(s.a,{span:12},"\u7B54\u9898\u8FDB\u5EA6"),r.a.createElement(s.a,{span:12,className:"tr c-light-primary"},pt==null||((bt=pt.filter(function(Ie){return!!Ie.ques_status}))===null||bt===void 0)?void 0:bt.length," / ",pt==null?void 0:pt.length),r.a.createElement(s.a,{span:24},r.a.createElement(h.a,{trailColor:"#c3ced2",percent:(pt==null||((At=pt.filter(function(Ie){return!!Ie.ques_status}))===null||At===void 0)?void 0:At.length)/(pt==null?void 0:pt.length)*100,showInfo:!1})),r.a.createElement(s.a,null,r.a.createElement("span",{className:"c-grey-333"},"\u5171 ",r.a.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.length)," \u9898\uFF1A"),r.a.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",r.a.createElement("span",{className:"c-light-primary"},ht)," \u5206")))),r.a.createElement("aside",{className:M.a.leftheight},me==null||(($e=me.exercise_question_types)===null||$e===void 0)?void 0:$e.map(function(Ie){return r.a.createElement(m.Fragment,{key:Ie.question_type},Vn(Ie))}))))),r.a.createElement("div",{className:M.a.fold,onClick:function(){return ze(!tt)}},tt&&r.a.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"}),!tt&&r.a.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"}))),r.a.createElement("div",{className:M.a.right},r.a.createElement("div",{style:{height:Wt?"calc(100vh - 176px)":"calc(100vh - 108px)"},className:M.a.content},Yn()),r.a.createElement("div",{className:M.a.btns},!Wt&&r.a.createElement(a.a,{onClick:qn,ghost:!0,type:"primary"},ea?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BD5\u9898"),We.question_num>1&&r.a.createElement(a.a,{onClick:function(){return Cn("prev")},type:"primary"},"\u4E0A\u4E00\u9898"),We.question_num<ir.length&&r.a.createElement(a.a,{onClick:function(){return Cn("next")},type:"primary"},"\u4E0B\u4E00\u9898"))))))},on=b.default=Object(u.a)(function(jt){var rt=jt.globalSetting,dt=jt.user;return{globalSetting:rt,user:dt}})(_e)},fJi3:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getBoundPosition=_,b.snapToGrid=y,b.canDragX=d,b.canDragY=h,b.getControlPosition=n,b.createCoreData=s,b.createDraggableData=l;var i=c("gbW8"),t=c("8N4D");function _(v,p,g){if(!v.props.bounds)return[p,g];var E=v.props.bounds;E=typeof E=="string"?E:a(E);var w=o(v);if(typeof E=="string"){var P=w.ownerDocument,x=P.defaultView,D;if(E==="parent"?D=w.parentNode:D=P.querySelector(E),!(D instanceof x.HTMLElement))throw new Error('Bounds selector "'+E+'" could not find an element.');var C=D,T=x.getComputedStyle(w),m=x.getComputedStyle(C);E={left:-w.offsetLeft+(0,i.int)(m.paddingLeft)+(0,i.int)(T.marginLeft),top:-w.offsetTop+(0,i.int)(m.paddingTop)+(0,i.int)(T.marginTop),right:(0,t.innerWidth)(C)-(0,t.outerWidth)(w)-w.offsetLeft+(0,i.int)(m.paddingRight)-(0,i.int)(T.marginRight),bottom:(0,t.innerHeight)(C)-(0,t.outerHeight)(w)-w.offsetTop+(0,i.int)(m.paddingBottom)-(0,i.int)(T.marginBottom)}}return(0,i.isNum)(E.right)&&(p=Math.min(p,E.right)),(0,i.isNum)(E.bottom)&&(g=Math.min(g,E.bottom)),(0,i.isNum)(E.left)&&(p=Math.max(p,E.left)),(0,i.isNum)(E.top)&&(g=Math.max(g,E.top)),[p,g]}function y(v,p,g){var E=Math.round(p/v[0])*v[0],w=Math.round(g/v[1])*v[1];return[E,w]}function d(v){return v.props.axis==="both"||v.props.axis==="x"}function h(v){return v.props.axis==="both"||v.props.axis==="y"}function n(v,p,g){var E=typeof p=="number"?(0,t.getTouch)(v,p):null;if(typeof p=="number"&&!E)return null;var w=o(g),P=g.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,t.offsetXYFromParent)(E||v,P,g.props.scale)}function s(v,p,g){var E=v.state,w=!(0,i.isNum)(E.lastX),P=o(v);return w?{node:P,deltaX:0,deltaY:0,lastX:p,lastY:g,x:p,y:g}:{node:P,deltaX:p-E.lastX,deltaY:g-E.lastY,lastX:E.lastX,lastY:E.lastY,x:p,y:g}}function l(v,p){var g=v.props.scale;return{node:p.node,x:v.state.x+p.deltaX/g,y:v.state.y+p.deltaY/g,deltaX:p.deltaX/g,deltaY:p.deltaY/g,lastX:v.state.x,lastY:v.state.y}}function a(v){return{left:v.left,top:v.top,right:v.right,bottom:v.bottom}}function o(v){var p=v.findDOMNode();if(!p)throw new Error("<DraggableCore>: Unmounted during event!");return p}},gbW8:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.findInArray=i,b.isFunction=t,b.isNum=_,b.int=y,b.dontSetMe=d;function i(h,n){for(var s=0,l=h.length;s<l;s++)if(n.apply(n,[h[s],s,h]))return h[s]}function t(h){return typeof h=="function"||Object.prototype.toString.call(h)==="[object Function]"}function _(h){return typeof h=="number"&&!isNaN(h)}function y(h){return parseInt(h,10)}function d(h,n,s){if(h[n])return new Error("Invalid prop ".concat(n," passed to ").concat(s," - do not set this, set it on the child."))}},hQUZ:function(e,b,c){"use strict";var i=c("TqRt");Object.defineProperty(b,"__esModule",{value:!0}),b.InnerSlider=void 0;var t=i(c("cDf5")),_=i(c("pVnL")),y=i(c("QILm")),d=i(c("3tO9")),h=i(c("lwsE")),n=i(c("W8MJ")),s=i(c("PJYZ")),l=i(c("7W2i")),a=i(c("LQ03")),o=i(c("lSNA")),v=i(c("q1tI")),p=i(c("F1Ou")),g=i(c("sEfC")),E=i(c("TSYQ")),w=c("3K4p"),P=c("+uyH"),x=c("coqV"),D=c("3Fjq"),C=i(c("bdgK")),T=function(m){(0,l.default)(L,m);var r=(0,a.default)(L);function L(M){var u;(0,h.default)(this,L),u=r.call(this,M),(0,o.default)((0,s.default)(u),"listRefHandler",function(O){return u.list=O}),(0,o.default)((0,s.default)(u),"trackRefHandler",function(O){return u.track=O}),(0,o.default)((0,s.default)(u),"adaptHeight",function(){if(u.props.adaptiveHeight&&u.list){var O=u.list.querySelector('[data-index="'.concat(u.state.currentSlide,'"]'));u.list.style.height=(0,w.getHeight)(O)+"px"}}),(0,o.default)((0,s.default)(u),"componentDidMount",function(){if(u.props.onInit&&u.props.onInit(),u.props.lazyLoad){var O=(0,w.getOnDemandLazySlides)((0,d.default)((0,d.default)({},u.props),u.state));O.length>0&&(u.setState(function(H){return{lazyLoadedList:H.lazyLoadedList.concat(O)}}),u.props.onLazyLoad&&u.props.onLazyLoad(O))}var k=(0,d.default)({listRef:u.list,trackRef:u.track},u.props);u.updateState(k,!0,function(){u.adaptHeight(),u.props.autoplay&&u.autoPlay("update")}),u.props.lazyLoad==="progressive"&&(u.lazyLoadTimer=setInterval(u.progressiveLazyLoad,1e3)),u.ro=new C.default(function(){u.state.animating?(u.onWindowResized(!1),u.callbackTimers.push(setTimeout(function(){return u.onWindowResized()},u.props.speed))):u.onWindowResized()}),u.ro.observe(u.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(H){H.onfocus=u.props.pauseOnFocus?u.onSlideFocus:null,H.onblur=u.props.pauseOnFocus?u.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",u.onWindowResized):window.attachEvent("onresize",u.onWindowResized)}),(0,o.default)((0,s.default)(u),"componentWillUnmount",function(){u.animationEndCallback&&clearTimeout(u.animationEndCallback),u.lazyLoadTimer&&clearInterval(u.lazyLoadTimer),u.callbackTimers.length&&(u.callbackTimers.forEach(function(O){return clearTimeout(O)}),u.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",u.onWindowResized):window.detachEvent("onresize",u.onWindowResized),u.autoplayTimer&&clearInterval(u.autoplayTimer),u.ro.disconnect()}),(0,o.default)((0,s.default)(u),"componentDidUpdate",function(O){if(u.checkImagesLoad(),u.props.onReInit&&u.props.onReInit(),u.props.lazyLoad){var k=(0,w.getOnDemandLazySlides)((0,d.default)((0,d.default)({},u.props),u.state));k.length>0&&(u.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(k)}}),u.props.onLazyLoad&&u.props.onLazyLoad(k))}u.adaptHeight();var H=(0,d.default)((0,d.default)({listRef:u.list,trackRef:u.track},u.props),u.state),Q=u.didPropsChange(O);Q&&u.updateState(H,Q,function(){u.state.currentSlide>=v.default.Children.count(u.props.children)&&u.changeSlide({message:"index",index:v.default.Children.count(u.props.children)-u.props.slidesToShow,currentSlide:u.state.currentSlide}),(O.autoplay!==u.props.autoplay||O.autoplaySpeed!==u.props.autoplaySpeed)&&(u.props.autoplay?u.autoPlay("update"):u.pause("paused"))})}),(0,o.default)((0,s.default)(u),"onWindowResized",function(O){u.debouncedResize&&u.debouncedResize.cancel(),u.debouncedResize=(0,g.default)(function(){return u.resizeWindow(O)},50),u.debouncedResize()}),(0,o.default)((0,s.default)(u),"resizeWindow",function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,k=Boolean(u.track&&u.track.node);if(!k)return;var H=(0,d.default)((0,d.default)({listRef:u.list,trackRef:u.track},u.props),u.state);u.updateState(H,O,function(){u.props.autoplay?u.autoPlay("update"):u.pause("paused")}),u.setState({animating:!1}),clearTimeout(u.animationEndCallback),delete u.animationEndCallback}),(0,o.default)((0,s.default)(u),"updateState",function(O,k,H){var Q=(0,w.initializedState)(O);O=(0,d.default)((0,d.default)((0,d.default)({},O),Q),{},{slideIndex:Q.currentSlide});var F=(0,w.getTrackLeft)(O);O=(0,d.default)((0,d.default)({},O),{},{left:F});var q=(0,w.getTrackCSS)(O);(k||v.default.Children.count(u.props.children)!==v.default.Children.count(O.children))&&(Q.trackStyle=q),u.setState(Q,H)}),(0,o.default)((0,s.default)(u),"ssrInit",function(){if(u.props.variableWidth){var O=0,k=0,H=[],Q=(0,w.getPreClones)((0,d.default)((0,d.default)((0,d.default)({},u.props),u.state),{},{slideCount:u.props.children.length})),F=(0,w.getPostClones)((0,d.default)((0,d.default)((0,d.default)({},u.props),u.state),{},{slideCount:u.props.children.length}));u.props.children.forEach(function(J){H.push(J.props.style.width),O+=J.props.style.width});for(var q=0;q<Q;q++)k+=H[H.length-1-q],O+=H[H.length-1-q];for(var W=0;W<F;W++)O+=H[W];for(var N=0;N<u.state.currentSlide;N++)k+=H[N];var B={width:O+"px",left:-k+"px"};if(u.props.centerMode){var $="".concat(H[u.state.currentSlide],"px");B.left="calc(".concat(B.left," + (100% - ").concat($,") / 2 ) ")}return{trackStyle:B}}var I=v.default.Children.count(u.props.children),A=(0,d.default)((0,d.default)((0,d.default)({},u.props),u.state),{},{slideCount:I}),z=(0,w.getPreClones)(A)+(0,w.getPostClones)(A)+I,K=100/u.props.slidesToShow*z,V=100/z,re=-V*((0,w.getPreClones)(A)+u.state.currentSlide)*K/100;u.props.centerMode&&(re+=(100-V*K/100)/2);var ie={width:K+"%",left:re+"%"};return{slideWidth:V+"%",trackStyle:ie}}),(0,o.default)((0,s.default)(u),"checkImagesLoad",function(){var O=u.list.querySelectorAll(".slick-slide img"),k=O.length,H=0;Array.prototype.forEach.call(O,function(Q){var F=function(){return++H&&H>=k&&u.onWindowResized()};if(!Q.onclick)Q.onclick=function(){return Q.parentNode.focus()};else{var q=Q.onclick;Q.onclick=function(){q(),Q.parentNode.focus()}}Q.onload||(u.props.lazyLoad?Q.onload=function(){u.adaptHeight(),u.callbackTimers.push(setTimeout(u.onWindowResized,u.props.speed))}:(Q.onload=F,Q.onerror=function(){F(),u.props.onLazyLoadError&&u.props.onLazyLoadError()}))})}),(0,o.default)((0,s.default)(u),"progressiveLazyLoad",function(){for(var O=[],k=(0,d.default)((0,d.default)({},u.props),u.state),H=u.state.currentSlide;H<u.state.slideCount+(0,w.getPostClones)(k);H++)if(u.state.lazyLoadedList.indexOf(H)<0){O.push(H);break}for(var Q=u.state.currentSlide-1;Q>=-(0,w.getPreClones)(k);Q--)if(u.state.lazyLoadedList.indexOf(Q)<0){O.push(Q);break}O.length>0?(u.setState(function(F){return{lazyLoadedList:F.lazyLoadedList.concat(O)}}),u.props.onLazyLoad&&u.props.onLazyLoad(O)):u.lazyLoadTimer&&(clearInterval(u.lazyLoadTimer),delete u.lazyLoadTimer)}),(0,o.default)((0,s.default)(u),"slideHandler",function(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,H=u.props,Q=H.asNavFor,F=H.beforeChange,q=H.onLazyLoad,W=H.speed,N=H.afterChange,B=u.state.currentSlide,$=(0,w.slideHandler)((0,d.default)((0,d.default)((0,d.default)({index:O},u.props),u.state),{},{trackRef:u.track,useCSS:u.props.useCSS&&!k})),I=$.state,A=$.nextState;if(!I)return;F&&F(B,I.currentSlide);var z=I.lazyLoadedList.filter(function(K){return u.state.lazyLoadedList.indexOf(K)<0});q&&z.length>0&&q(z),!u.props.waitForAnimate&&u.animationEndCallback&&(clearTimeout(u.animationEndCallback),N&&N(B),delete u.animationEndCallback),u.setState(I,function(){if(Q&&u.asNavForIndex!==O&&(u.asNavForIndex=O,Q.innerSlider.slideHandler(O)),!A)return;u.animationEndCallback=setTimeout(function(){var K=A.animating,V=(0,y.default)(A,["animating"]);u.setState(V,function(){u.callbackTimers.push(setTimeout(function(){return u.setState({animating:K})},10)),N&&N(I.currentSlide),delete u.animationEndCallback})},W)})}),(0,o.default)((0,s.default)(u),"changeSlide",function(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,H=(0,d.default)((0,d.default)({},u.props),u.state),Q=(0,w.changeSlide)(H,O);if(Q!==0&&!Q)return;if(k===!0?u.slideHandler(Q,k):u.slideHandler(Q),u.props.autoplay&&u.autoPlay("update"),u.props.focusOnSelect){var F=u.list.querySelectorAll(".slick-current");F[0]&&F[0].focus()}}),(0,o.default)((0,s.default)(u),"clickHandler",function(O){u.clickable===!1&&(O.stopPropagation(),O.preventDefault()),u.clickable=!0}),(0,o.default)((0,s.default)(u),"keyHandler",function(O){var k=(0,w.keyHandler)(O,u.props.accessibility,u.props.rtl);k!==""&&u.changeSlide({message:k})}),(0,o.default)((0,s.default)(u),"selectHandler",function(O){u.changeSlide(O)}),(0,o.default)((0,s.default)(u),"disableBodyScroll",function(){var O=function(H){H=H||window.event,H.preventDefault&&H.preventDefault(),H.returnValue=!1};window.ontouchmove=O}),(0,o.default)((0,s.default)(u),"enableBodyScroll",function(){window.ontouchmove=null}),(0,o.default)((0,s.default)(u),"swipeStart",function(O){u.props.verticalSwiping&&u.disableBodyScroll();var k=(0,w.swipeStart)(O,u.props.swipe,u.props.draggable);k!==""&&u.setState(k)}),(0,o.default)((0,s.default)(u),"swipeMove",function(O){var k=(0,w.swipeMove)(O,(0,d.default)((0,d.default)((0,d.default)({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));if(!k)return;k.swiping&&(u.clickable=!1),u.setState(k)}),(0,o.default)((0,s.default)(u),"swipeEnd",function(O){var k=(0,w.swipeEnd)(O,(0,d.default)((0,d.default)((0,d.default)({},u.props),u.state),{},{trackRef:u.track,listRef:u.list,slideIndex:u.state.currentSlide}));if(!k)return;var H=k.triggerSlideHandler;if(delete k.triggerSlideHandler,u.setState(k),H===void 0)return;u.slideHandler(H),u.props.verticalSwiping&&u.enableBodyScroll()}),(0,o.default)((0,s.default)(u),"touchEnd",function(O){u.swipeEnd(O),u.clickable=!0}),(0,o.default)((0,s.default)(u),"slickPrev",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"previous"})},0))}),(0,o.default)((0,s.default)(u),"slickNext",function(){u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"next"})},0))}),(0,o.default)((0,s.default)(u),"slickGoTo",function(O){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O=Number(O),isNaN(O))return"";u.callbackTimers.push(setTimeout(function(){return u.changeSlide({message:"index",index:O,currentSlide:u.state.currentSlide},k)},0))}),(0,o.default)((0,s.default)(u),"play",function(){var O;if(u.props.rtl)O=u.state.currentSlide-u.props.slidesToScroll;else if((0,w.canGoNext)((0,d.default)((0,d.default)({},u.props),u.state)))O=u.state.currentSlide+u.props.slidesToScroll;else return!1;u.slideHandler(O)}),(0,o.default)((0,s.default)(u),"autoPlay",function(O){u.autoplayTimer&&clearInterval(u.autoplayTimer);var k=u.state.autoplaying;if(O==="update"){if(k==="hovered"||k==="focused"||k==="paused")return}else if(O==="leave"){if(k==="paused"||k==="focused")return}else if(O==="blur"&&(k==="paused"||k==="hovered"))return;u.autoplayTimer=setInterval(u.play,u.props.autoplaySpeed+50),u.setState({autoplaying:"playing"})}),(0,o.default)((0,s.default)(u),"pause",function(O){u.autoplayTimer&&(clearInterval(u.autoplayTimer),u.autoplayTimer=null);var k=u.state.autoplaying;O==="paused"?u.setState({autoplaying:"paused"}):O==="focused"?(k==="hovered"||k==="playing")&&u.setState({autoplaying:"focused"}):k==="playing"&&u.setState({autoplaying:"hovered"})}),(0,o.default)((0,s.default)(u),"onDotsOver",function(){return u.props.autoplay&&u.pause("hovered")}),(0,o.default)((0,s.default)(u),"onDotsLeave",function(){return u.props.autoplay&&u.state.autoplaying==="hovered"&&u.autoPlay("leave")}),(0,o.default)((0,s.default)(u),"onTrackOver",function(){return u.props.autoplay&&u.pause("hovered")}),(0,o.default)((0,s.default)(u),"onTrackLeave",function(){return u.props.autoplay&&u.state.autoplaying==="hovered"&&u.autoPlay("leave")}),(0,o.default)((0,s.default)(u),"onSlideFocus",function(){return u.props.autoplay&&u.pause("focused")}),(0,o.default)((0,s.default)(u),"onSlideBlur",function(){return u.props.autoplay&&u.state.autoplaying==="focused"&&u.autoPlay("blur")}),(0,o.default)((0,s.default)(u),"render",function(){var O=(0,E.default)("slick-slider",u.props.className,{"slick-vertical":u.props.vertical,"slick-initialized":!0}),k=(0,d.default)((0,d.default)({},u.props),u.state),H=(0,w.extractObject)(k,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Q=u.props.pauseOnHover;H=(0,d.default)((0,d.default)({},H),{},{onMouseEnter:Q?u.onTrackOver:null,onMouseLeave:Q?u.onTrackLeave:null,onMouseOver:Q?u.onTrackOver:null,focusOnSelect:u.props.focusOnSelect&&u.clickable?u.selectHandler:null});var F;if(u.props.dots===!0&&u.state.slideCount>=u.props.slidesToShow){var q=(0,w.extractObject)(k,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),W=u.props.pauseOnDotsHover;q=(0,d.default)((0,d.default)({},q),{},{clickHandler:u.changeSlide,onMouseEnter:W?u.onDotsLeave:null,onMouseOver:W?u.onDotsOver:null,onMouseLeave:W?u.onDotsLeave:null}),F=v.default.createElement(x.Dots,q)}var N,B,$=(0,w.extractObject)(k,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);$.clickHandler=u.changeSlide,u.props.arrows&&(N=v.default.createElement(D.PrevArrow,$),B=v.default.createElement(D.NextArrow,$));var I=null;u.props.vertical&&(I={height:u.state.listHeight});var A=null;u.props.vertical===!1?u.props.centerMode===!0&&(A={padding:"0px "+u.props.centerPadding}):u.props.centerMode===!0&&(A={padding:u.props.centerPadding+" 0px"});var z=(0,d.default)((0,d.default)({},I),A),K=u.props.touchMove,V={className:"slick-list",style:z,onClick:u.clickHandler,onMouseDown:K?u.swipeStart:null,onMouseMove:u.state.dragging&&K?u.swipeMove:null,onMouseUp:K?u.swipeEnd:null,onMouseLeave:u.state.dragging&&K?u.swipeEnd:null,onTouchStart:K?u.swipeStart:null,onTouchMove:u.state.dragging&&K?u.swipeMove:null,onTouchEnd:K?u.touchEnd:null,onTouchCancel:u.state.dragging&&K?u.swipeEnd:null,onKeyDown:u.props.accessibility?u.keyHandler:null},re={className:O,dir:"ltr",style:u.props.style};return u.props.unslick&&(V={className:"slick-list"},re={className:O}),v.default.createElement("div",re,u.props.unslick?"":N,v.default.createElement("div",(0,_.default)({ref:u.listRefHandler},V),v.default.createElement(P.Track,(0,_.default)({ref:u.trackRefHandler},H),u.props.children)),u.props.unslick?"":B,u.props.unslick?"":F)}),u.list=null,u.track=null,u.state=(0,d.default)((0,d.default)({},p.default),{},{currentSlide:u.props.initialSlide,slideCount:v.default.Children.count(u.props.children)}),u.callbackTimers=[],u.clickable=!0,u.debouncedResize=null;var j=u.ssrInit();return u.state=(0,d.default)((0,d.default)({},u.state),j),u}return(0,n.default)(L,[{key:"didPropsChange",value:function(u){for(var j=!1,O=0,k=Object.keys(this.props);O<k.length;O++){var H=k[O];if(!u.hasOwnProperty(H)){j=!0;break}if((0,t.default)(u[H])==="object"||typeof u[H]=="function")continue;if(u[H]!==this.props[H]){j=!0;break}}return j||v.default.Children.count(this.props.children)!==v.default.Children.count(u.children)}}]),L}(v.default.Component);b.InnerSlider=T},iuhU:function(e,b,c){"use strict";c.r(b);function i(t){var _,y,d="";if(typeof t=="string"||typeof t=="number")d+=t;else if(typeof t=="object")if(Array.isArray(t))for(_=0;_<t.length;_++)t[_]&&((y=i(t[_]))&&(d&&(d+=" "),d+=y));else for(_ in t)t[_]&&(d&&(d+=" "),d+=_);return d}b.default=function(){for(var t=0,_,y,d="";t<arguments.length;)(_=arguments[t++])&&((y=i(_))&&(d&&(d+=" "),d+=y));return d}},kSUc:function(e,b,c){},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(e){if(!0)module.exports=e();else var b})(function(){var define,module,exports;return function(){function e(b,c,i){function t(d,h){if(!c[d]){if(!b[d]){var n=typeof require=="function"&&require;if(!h&&n)return require(d,!0);if(_)return _(d,!0);var s=new Error("Cannot find module '"+d+"'");throw s.code="MODULE_NOT_FOUND",s}var l=c[d]={exports:{}};b[d][0].call(l.exports,function(a){var o=b[d][1][a];return t(o||a)},l,l.exports,e,b,c,i)}return c[d].exports}for(var _=typeof require=="function"&&require,y=0;y<i.length;y++)t(i[y]);return t}return e}()({1:[function(e,b,c){"use strict";var i=e("./browser/client");i.Buffer=e("buffer").Buffer,i.urllib=e("../shims/xhr"),i.version=e("./browser/version").version,b.exports=i},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(e,b,c){(function(i,t){"use strict";var _=e("babel-runtime/core-js/promise"),y=l(_),d=e("babel-runtime/regenerator"),h=l(d),n=e("babel-runtime/core-js/object/assign"),s=l(n);function l(q){return q&&q.__esModule?q:{default:q}}var a=e("debug")("ali-oss"),o=e("copy-to"),v=e("xml2js"),p=e("agentkeepalive"),g=e("merge-descriptors"),E=e("url"),w=e("is-type-of"),P=e("platform"),x=e("utility"),D=e("urllib"),C=e("./version"),T=e("bowser"),m=e("../common/signUtils"),r=e("../common/utils/isIP"),L=r.isIP,M=e("../common/client/initOptions"),u=e("../common/utils/createRequest"),j=u.createRequest,O=new p;function k(){var q=P.name,W=P.version;q&&q.toLowerCase&&q.toLowerCase()==="ie"&&W.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function H(){return location&&location.protocol==="https:"}function Q(q,W){if(k(),!(this instanceof Q))return new Q(q,W);q&&q.inited?this.options=q:this.options=Q.initOptions(q),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=D,this.agent=this.options.agent||O),this.ctx=W,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}b.exports=Q,Q.initOptions=function(W){W.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var N=(0,s.default)({secure:H(),useFetch:!1},W);return M(N)};var F=Q.prototype;F.debug=a,g(F,e("./object")),g(F,e("../common/bucket/getBucketWebsite")),g(F,e("../common/bucket/putBucketWebsite")),g(F,e("../common/bucket/deleteBucketWebsite")),g(F,e("../common/bucket/getBucketLifecycle")),g(F,e("../common/bucket/putBucketLifecycle")),g(F,e("../common/bucket/deleteBucketLifecycle")),g(F,e("../common/bucket/putBucketVersioning")),g(F,e("../common/bucket/getBucketVersioning")),g(F,e("./managed-upload")),g(F,e("../common/multipart")),g(F,e("../common/parallel")),F.signature=function(W){return this.debug("authorization stringToSign: %s",W,"info"),m.computeSignature(this.options.accessKeySecret,W)},F.authorization=function(W,N,B,$){var I=m.buildCanonicalString(W.toUpperCase(),N,{headers:$,parameters:B});return m.authorization(this.options.accessKeyId,this.options.accessKeySecret,I)},F.request=function(W){var N,B,$,I,A,z;return h.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:return N=j.call(this,W),this.options.useFetch||(N.params.mode="disable-fetch"),B=void 0,$=void 0,I=!!W.stream,V.prev=5,V.next=8,h.default.awrap(this.urllib.request(N.url,N.params));case 8:B=V.sent,this.debug("response %s %s, got %s, headers: %j",W.method,N.url,B.status,B.headers,"info"),V.next=15;break;case 12:V.prev=12,V.t0=V.catch(5),$=V.t0;case 15:if(A=void 0,!(B&&W.successStatuses&&W.successStatuses.indexOf(B.status)===-1)){V.next=28;break}return V.next=19,h.default.awrap(this.requestError(B));case 19:if(A=V.sent,!(A.code==="RequestTimeTooSkewed"&&!I)){V.next=25;break}return this.options.amendTimeSkewed=+new Date(A.serverTime)-new Date,V.next=24,h.default.awrap(this.request(W));case 24:return V.abrupt("return",V.sent);case 25:A.params=W,V.next=32;break;case 28:if(!$){V.next=32;break}return V.next=31,h.default.awrap(this.requestError($));case 31:A=V.sent;case 32:if(!A){V.next=34;break}throw A;case 34:if(!W.xmlResponse){V.next=39;break}return V.next=37,h.default.awrap(this.parseXML(B.data));case 37:z=V.sent,B.data=z;case 39:return V.abrupt("return",B);case 40:case"end":return V.stop()}},null,this,[[5,12]])},F._getResource=function(W){var N="/";return W.bucket&&(N+=W.bucket+"/"),W.object&&(N+=W.object),N},F._isIP=L,F._escape=function(W){return x.encodeURIComponent(W).replace(/%2F/g,"/")},F._getReqUrl=function(W){var N={};o(this.options.endpoint).to(N);var B=this._isIP(N.hostname),$=this.options.cname;W.bucket&&!$&&!B&&(N.host=W.bucket+"."+N.host);var I="/";W.bucket&&B&&(I+=W.bucket+"/"),W.object&&(I+=this._escape(W.object).replace(/\+/g,"%2B")),N.pathname=I;var A={};if(W.query&&g(A,W.query),W.subres){var z={};w.string(W.subres)?z[W.subres]="":w.array(W.subres)?W.subres.forEach(function(K){z[K]=""}):z=W.subres,g(A,z)}return N.query=A,E.format(N)},F._getUserAgent=function(){var W=t&&t.browser?"js":"nodejs",N="aliyun-sdk-"+W+"/"+C.version,B=P.description;return!B&&t&&(B="Node.js "+t.version.slice(1)+" on "+t.platform+" "+t.arch),this._checkUserAgent(N+" "+B)},F._checkUserAgent=function(W){var N=W.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return N},F.checkBrowserAndVersion=function(W,N){return T.name===W&&T.version.split(".")[0]===N},F.parseXML=function(W){return new y.default(function(N,B){i.isBuffer(W)&&(W=W.toString()),v.parseString(W,{explicitRoot:!1,explicitArray:!1},function($,I){$?B($):N(I)})})},F.requestError=function(W){var N,B,$,I;return h.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(N=null,!(!W.data||!W.data.length)){z.next=5;break}W.status===-1||W.status===-2?(N=new Error(W.message),N.name=W.name,N.status=W.status,N.code=W.name):(W.status===404?(N=new Error("Object not exists"),N.name="NoSuchKeyError",N.status=404,N.code="NoSuchKey"):W.status===412?(N=new Error("Pre condition failed"),N.name="PreconditionFailedError",N.status=412,N.code="PreconditionFailed"):(N=new Error("Unknow error, status: "+W.status),N.name="UnknowError",N.status=W.status),N.requestId=W.headers["x-oss-request-id"],N.host=""),z.next=33;break;case 5:return B=String(W.data),this.debug("request response error data: %s",B,"error"),$=void 0,z.prev=8,z.next=11,h.default.awrap(this.parseXML(B));case 11:if(z.t0=z.sent,z.t0){z.next=14;break}z.t0={};case 14:$=z.t0,z.next=24;break;case 17:return z.prev=17,z.t1=z.catch(8),this.debug(B,"error"),z.t1.message+=`
raw xml: `+B,z.t1.status=W.status,z.t1.requestId=W.headers["x-oss-request-id"],z.abrupt("return",z.t1);case 24:I=$.Message||"unknow request error, status: "+W.status,$.Condition&&(I+=" (condition: "+$.Condition+")"),N=new Error(I),N.name=$.Code?$.Code+"Error":"UnknowError",N.status=W.status,N.code=$.Code,N.requestId=$.RequestId,N.hostId=$.HostId,N.serverTime=$.ServerTime;case 33:return this.debug("generate error %j",N,"error"),z.abrupt("return",N);case 35:case"end":return z.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/core-js/array/from"),_=s(t),y=e("babel-runtime/core-js/promise"),d=s(y),h=e("babel-runtime/regenerator"),n=s(h);function s(m){return m&&m.__esModule?m:{default:m}}var l=e("is-type-of"),a=e("util"),o=e("path"),v=e("mime"),p=e("copy-to"),g=e("../common/utils/isBlob"),E=g.isBlob,w=e("../common/utils/isFile"),P=w.isFile,x=c;x.multipartUpload=function(r,L,M){var u,j,O,k,H,Q,F,q,W;return n.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(this.resetCancelFlag(),M=M||{},!(M.checkpoint&&M.checkpoint.uploadId)){B.next=6;break}return B.next=5,n.default.awrap(this._resumeMultipart(M.checkpoint,M));case 5:return B.abrupt("return",B.sent);case 6:return u=100*1024,M.mime||(P(L)?M.mime=v.getType(o.extname(L.name)):E(L)?M.mime=L.type:M.mime=v.getType(o.extname(L))),M.headers=M.headers||{},this._convertMetaToHeaders(M.meta,M.headers),B.next=12,n.default.awrap(this._getFileSize(L));case 12:if(j=B.sent,!(j<u)){B.next=25;break}return O=this._createStream(L,0,j),M.contentLength=j,B.next=18,n.default.awrap(this.putStream(r,O,M));case 18:if(k=B.sent,!(M&&M.progress)){B.next=22;break}return B.next=22,n.default.awrap(M.progress(1));case 22:return H={res:k.res,bucket:this.options.bucket,name:r,etag:k.res.headers.etag},(M.headers&&M.headers["x-oss-callback"]||M.callback)&&(H.data=k.data),B.abrupt("return",H);case 25:if(!(M.partSize&&!(parseInt(M.partSize,10)===M.partSize))){B.next=27;break}throw new Error("partSize must be int number");case 27:if(!(M.partSize&&M.partSize<u)){B.next=29;break}throw new Error("partSize must not be smaller than "+u);case 29:return B.next=31,n.default.awrap(this.initMultipartUpload(r,M));case 31:if(Q=B.sent,F=Q.uploadId,q=this._getPartSize(j,M.partSize),W={file:L,name:r,fileSize:j,partSize:q,uploadId:F,doneParts:[]},!(M&&M.progress)){B.next=38;break}return B.next=38,n.default.awrap(M.progress(0,W,Q.res));case 38:return B.next=40,n.default.awrap(this._resumeMultipart(W,M));case 40:return B.abrupt("return",B.sent);case 41:case"end":return B.stop()}},null,this)},x._resumeMultipart=function(r,L){var M,u,j,O,k,H,Q,F,q,W,N,B,$,I,A,z,K,V;return n.default.async(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(M=this,!this.isCancel()){ie.next=3;break}throw this._makeCancelEvent();case 3:return u=r.file,j=r.fileSize,O=r.partSize,k=r.uploadId,H=r.doneParts,Q=r.name,F=[],H.length>0&&p(H).to(F),q=this._divideParts(j,O),W=q.length,N=!1,B=function(ce,se){var ee=this;return new d.default(function(ae,fe){var G,X,oe,U;return n.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:if(f.prev=0,ce.isCancel()){f.next=18;break}return G=q[se-1],X={stream:ce._createStream(u,G.start,G.end),size:G.end-G.start},f.next=6,n.default.awrap(ce._uploadPart(Q,k,se,X));case 6:if(oe=f.sent,!(!ce.isCancel()&&!N)){f.next=15;break}if(r.doneParts.push({number:se,etag:oe.res.headers.etag}),!L.progress){f.next=12;break}return f.next=12,n.default.awrap(L.progress(H.length/W,r,oe.res));case 12:ae({number:se,etag:oe.res.headers.etag}),f.next=16;break;case 15:ae();case 16:f.next=19;break;case 18:ae();case 19:f.next=30;break;case 21:f.prev=21,f.t0=f.catch(0),U=new Error,U.name=f.t0.name,U.message=f.t0.message,U.stack=f.t0.stack,U.partNum=se,p(f.t0).to(U),fe(U);case 30:case"end":return f.stop()}},null,ee,[[0,21]])})},$=(0,_.default)(new Array(W),function(J,ce){return ce+1}),I=F.map(function(J){return J.number}),A=$.filter(function(J){return I.indexOf(J)<0}),z=5,K=L.parallel||z,ie.next=17,n.default.awrap(this._parallel(A,K,function(J){return new d.default(function(ce,se){B(M,J).then(function(ee){ee&&F.push(ee),ce()}).catch(function(ee){se(ee)})})}));case 17:if(V=ie.sent,N=!0,!this.isCancel()){ie.next=22;break}throw B=null,this._makeCancelEvent();case 22:if(!(V&&V.length>0)){ie.next=25;break}throw V[0].message="Failed to upload some parts with error: "+V[0].toString()+" part_num: "+V[0].partNum,V[0];case 25:return ie.next=27,n.default.awrap(this.completeMultipartUpload(Q,k,F,L));case 27:return ie.abrupt("return",ie.sent);case 28:case"end":return ie.stop()}},null,this)},x._getFileSize=function(r){return n.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(!l.buffer(r)){M.next=4;break}return M.abrupt("return",r.length);case 4:if(!(E(r)||P(r))){M.next=6;break}return M.abrupt("return",r.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return M.stop()}},null,this)};var D=e("stream"),C=D.Readable;function T(m,r){if(!(this instanceof T))return new T(m,r);C.call(this,r),this.file=m,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}a.inherits(T,C),T.prototype.readFileAndPush=function(r){if(this.fileBuffer)for(var L=!0;L&&this.fileBuffer&&this.start<this.fileBuffer.length;){var M=this.start,u=M+r;u=u>this.fileBuffer.length?this.fileBuffer.length:u,this.start=u,L=this.push(this.fileBuffer.slice(M,u))}},T.prototype._read=function(r){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var L=16*1024;r=r||L;var M=this;this.reader.onload=function(j){M.fileBuffer=i.from(new Uint8Array(j.target.result)),M.file=null,M.readFileAndPush(r)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(r)},x._createStream=function(r,L,M){if(E(r)||P(r))return new T(r.slice(L,M));throw new Error("_createStream requires File/Blob.")},x._getPartSize=function(r,L){var M=10*1e3,u=1024*1024;return L?Math.max(Math.ceil(r/M),L):u},x._divideParts=function(r,L){for(var M=Math.ceil(r/L),u=[],j=0;j<M;j++){var O=L*j,k=Math.min(O+L,r);u.push({start:O,end:k})}return u}}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/promise"),t=l(i),_=e("babel-runtime/core-js/object/keys"),y=l(_),d=e("babel-runtime/core-js/object/assign"),h=l(d),n=e("babel-runtime/regenerator"),s=l(n);function l(M){return M&&M.__esModule?M:{default:M}}var a=e("utility"),o=e("fs"),v=e("is-type-of"),p=e("url"),g=e("copy-to"),E=e("path"),w=e("mime"),P=e("../common/callback"),x=e("../common/signUtils"),D=e("merge-descriptors"),C=e("../common/utils/isBlob"),T=C.isBlob,m=e("../common/utils/isFile"),r=m.isFile,L=c;L.append=function(u,j,O){var k;return s.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",Q.next=6,s.default.awrap(this.put(u,j,O));case 6:return k=Q.sent,k.nextAppendPosition=k.res.headers["x-oss-next-append-position"],Q.abrupt("return",k);case 9:case"end":return Q.stop()}},null,this)},L.put=function(u,j,O){var k,H,Q,F,q,W,N;return s.default.async(function($){for(;;)switch($.prev=$.next){case 0:if(k=void 0,O=O||{},u=this._objectName(u),!v.buffer(j)){$.next=7;break}k=j,$.next=33;break;case 7:if(!(T(j)||r(j))){$.next=32;break}return O.mime||(r(j)?O.mime=w.getType(E.extname(j.name)):O.mime=j.type),H=this._createStream(j,0,j.size),$.next=12,s.default.awrap(this._getFileSize(j));case 12:return O.contentLength=$.sent,$.prev=13,$.next=16,s.default.awrap(this.putStream(u,H,O));case 16:return Q=$.sent,$.abrupt("return",Q);case 20:if($.prev=20,$.t0=$.catch(13),!($.t0.code==="RequestTimeTooSkewed")){$.next=29;break}return this.options.amendTimeSkewed=+new Date($.t0.serverTime)-new Date,$.next=26,s.default.awrap(this.put(u,j,O));case 26:return $.abrupt("return",$.sent);case 29:throw $.t0;case 30:$.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),F=O.method||"PUT",q=this._objectRequestParams(F,u,O),P.encodeCallback(q,O),q.mime=O.mime,q.content=k,q.successStatuses=[200],$.next=43,s.default.awrap(this.request(q));case 43:return W=$.sent,N={name:u,url:this._objectUrl(u),res:W.res},q.headers&&q.headers["x-oss-callback"]&&(N.data=JSON.parse(W.data.toString())),$.abrupt("return",N);case 47:case"end":return $.stop()}},null,this,[[13,20]])},L.putStream=function(u,j,O){var k,H,Q,F;return s.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:return O=O||{},O.headers=O.headers||{},u=this._objectName(u),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),k=O.method||"PUT",H=this._objectRequestParams(k,u,O),P.encodeCallback(H,O),H.mime=O.mime,H.stream=j,H.successStatuses=[200],W.next=13,s.default.awrap(this.request(H));case 13:return Q=W.sent,F={name:u,url:this._objectUrl(u),res:Q.res},H.headers&&H.headers["x-oss-callback"]&&(F.data=JSON.parse(Q.data.toString())),W.abrupt("return",F);case 17:case"end":return W.stop()}},null,this)},D(L,e("../common/object/copyObject")),D(L,e("../common/object/getObjectTagging")),D(L,e("../common/object/putObjectTagging")),D(L,e("../common/object/deleteObjectTagging")),D(L,e("../common/image")),D(L,e("../common/object/getBucketVersions")),D(L,e("../common/object/getACL")),D(L,e("../common/object/putACL")),D(L,e("../common/object/head")),D(L,e("../common/object/delete")),D(L,e("../common/object/get")),D(L,e("../common/object/putSymlink")),D(L,e("../common/object/getSymlink")),D(L,e("../common/object/deleteMulti")),D(L,e("../common/object/getObjectMeta")),L.putMeta=function(u,j,O){var k;return s.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,s.default.awrap(this.copy(u,u,{meta:j||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return k=Q.sent,Q.abrupt("return",k);case 4:case"end":return Q.stop()}},null,this)},L.list=function(u,j){var O,k,H,Q,F;return s.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:return O=this._objectRequestParams("GET","",j),O.query=u,O.xmlResponse=!0,O.successStatuses=[200],W.next=6,s.default.awrap(this.request(O));case 6:return k=W.sent,H=k.data.Contents,Q=this,H&&(Array.isArray(H)||(H=[H]),H=H.map(function(N){return{name:N.Key,url:Q._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}}})),F=k.data.CommonPrefixes||null,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(N){return N.Prefix})),W.abrupt("return",{res:k.res,objects:H,prefixes:F,nextMarker:k.data.NextMarker||null,isTruncated:k.data.IsTruncated==="true"});case 13:case"end":return W.stop()}},null,this)},L.restore=function(u,j){var O,k;return s.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return j=j||{},j.subres=(0,h.default)({restore:""},j.subres),j.versionId&&(j.subres.versionId=j.versionId),O=this._objectRequestParams("POST",u,j),O.successStatuses=[202],Q.next=7,s.default.awrap(this.request(O));case 7:return k=Q.sent,Q.abrupt("return",{res:k.res});case 9:case"end":return Q.stop()}},null,this)},L.signatureUrl=function(u,j){j=j||{},u=this._objectName(u),j.method=j.method||"GET";var O=a.timestamp()+(j.expires||1800),k={bucket:this.options.bucket,object:u},H=this._getResource(k);this.options.stsToken&&(j["security-token"]=this.options.stsToken);var Q=x._signatureForURL(this.options.accessKeySecret,j,H,O),F=p.parse(this._getReqUrl(k));return F.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:Q.Signature},g(Q.subResource).to(F.query),F.format()},L.getObjectUrl=function(u,j){return j?j[j.length-1]!=="/"&&(j+="/"):j=this.options.endpoint.format(),j+this._escape(this._objectName(u))},L._objectUrl=function(u){return this._getReqUrl({bucket:this.options.bucket,object:u})},L.generateObjectUrl=function(M,u){if(u)u[u.length-1]!=="/"&&(u+="/");else{u=this.options.endpoint.format();var j=p.parse(u),O=this.options.bucket;j.hostname=O+"."+j.hostname,j.host=O+"."+j.host,u=j.format()}return u+this._escape(this._objectName(M))},L._objectRequestParams=function(u,j,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},j=this._objectName(j);var k={object:j,bucket:this.options.bucket,method:u,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(k.headers={},g(O.headers).to(k.headers)),k},L._objectName=function(u){return u.replace(/^\/+/,"")},L._convertMetaToHeaders=function(u,j){if(!u)return;(0,y.default)(u).forEach(function(O){j["x-oss-meta-"+O]=u[O]})},L._deleteFileSafe=function(u){var j=this;return new t.default(function(O){o.exists(u,function(k){k?o.unlink(u,function(H){H&&j.debug("unlink %j error: %s",u,H,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(e,b,c){"use strict";c.version="6.10.0"},{}],6:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(n){return n&&n.__esModule?n:{default:n}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=c;h.deleteBucketLifecycle=function(s,l){var a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return d(s),a=this._bucketRequestParams("DELETE",s,"lifecycle",l),a.successStatuses=[204],p.next=5,t.default.awrap(this.request(a));case 5:return o=p.sent,p.abrupt("return",{res:o.res});case 7:case"end":return p.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(n){return n&&n.__esModule?n:{default:n}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=c;h.deleteBucketWebsite=function(s,l){var a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return d(s),a=this._bucketRequestParams("DELETE",s,"website",l),a.successStatuses=[204],p.next=5,t.default.awrap(this.request(a));case 5:return o=p.sent,p.abrupt("return",{res:o.res});case 7:case"end":return p.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(o){return o&&o.__esModule?o:{default:o}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("../utils/isArray"),n=h.isArray,s=e("../utils/formatObjKey"),l=s.formatObjKey,a=c;a.getBucketLifecycle=function(v,p){var g,E,w;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return d(v),g=this._bucketRequestParams("GET",v,"lifecycle",p),g.successStatuses=[200],g.xmlResponse=!0,x.next=6,t.default.awrap(this.request(g));case 6:return E=x.sent,w=E.data.Rule||null,w&&(n(w)||(w=[w]),w=w.map(function(D){return D.ID&&(D.id=D.ID,delete D.ID),D.Tag&&!n(D.Tag)&&(D.Tag=[D.Tag]),l(D,"firstLowerCase")})),x.abrupt("return",{rules:w,res:E.res});case 10:case"end":return x.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(n){return n&&n.__esModule?n:{default:n}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=c;h.getBucketVersioning=function(s,l){var a,o,v;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return d(s),a=this._bucketRequestParams("GET",s,"versioning",l),a.xmlResponse=!0,a.successStatuses=[200],g.next=6,t.default.awrap(this.request(a));case 6:return o=g.sent,v=o.data.Status,g.abrupt("return",{status:o.status,versionStatus:v,res:o.res});case 9:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(l){return l&&l.__esModule?l:{default:l}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("../utils/isObject"),n=h.isObject,s=c;s.getBucketWebsite=function(a,o){var v,p,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return d(a),v=this._bucketRequestParams("GET",a,"website",o),v.successStatuses=[200],v.xmlResponse=!0,w.next=6,t.default.awrap(this.request(v));case 6:return p=w.sent,g=[],p.data.RoutingRules&&p.data.RoutingRules.RoutingRule&&(n(p.data.RoutingRules.RoutingRule)?g=[p.data.RoutingRules.RoutingRule]:g=p.data.RoutingRules.RoutingRule),w.abrupt("return",{index:p.data.IndexDocument&&p.data.IndexDocument.Suffix||"",supportSubDir:p.data.IndexDocument&&p.data.IndexDocument.SupportSubDir||"false",type:p.data.IndexDocument&&p.data.IndexDocument.Type,routingRules:g,error:p.data.ErrorDocument&&p.data.ErrorDocument.Key||null,res:p.res});case 10:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(r){return r&&r.__esModule?r:{default:r}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("../utils/isArray"),n=h.isArray,s=e("../utils/deepCopy"),l=s.deepCopy,a=e("../utils/isObject"),o=a.isObject,v=e("../utils/obj2xml"),p=v.obj2xml,g=e("../utils/checkObjectTag"),E=g.checkObjectTag,w=e("../utils/getStrBytesCount"),P=w.getStrBytesCount,x=c;x.putBucketLifecycle=function(L,M,u){var j,O,k,H,Q;return t.default.async(function(q){for(;;)switch(q.prev=q.next){case 0:if(d(L),n(M)){q.next=3;break}throw new Error("rules must be Array");case 3:return j=this._bucketRequestParams("PUT",L,"lifecycle",u),O=[],k={LifecycleConfiguration:{Rule:O}},M.forEach(function(W){D(W),m(W),W.id&&(W.ID=W.id,delete W.id),O.push(W)}),H=p(k,{headers:!0,firstUpperCase:!0}),j.content=H,j.mime="xml",j.successStatuses=[200],q.next=13,t.default.awrap(this.request(j));case 13:return Q=q.sent,q.abrupt("return",{res:Q.res});case 15:case"end":return q.stop()}},null,this)};function D(r){r.days&&(r.expiration={days:r.days}),r.date&&(r.expiration={createdBeforeDate:r.date})}function C(r,L){var M=r.days,u=r.createdBeforeDate;if(!M&&!u)throw new Error(L+" must includes days or createdBeforeDate");if(M&&!/^[1-9][0-9]*$/.test(M))throw new Error("days must be a positive integer");if(u&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(u))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function T(r){if(!n(r)&&!o(r))throw new Error("tag must be Object or Array");r=o(r)?[r]:r;var L={},M=l(r);M.forEach(function(u){L[u.key]=u.value}),E(L)}function m(r){if(r.id&&P(r.id)>255)throw new Error("ID is composed of 255 bytes at most");if(r.prefix===""||r.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(r.status))throw new Error("Status must be Enabled or Disabled");if(r.transition){if(!["IA","Archive"].includes(r.transition.storageClass))throw new Error("StorageClass must be IA or Archive");C(r.transition,"Transition")}if(r.expiration){if(!r.expiration.expiredObjectDeleteMarker)C(r.expiration,"Expiration");else if(r.expiration.days||r.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(r.abortMultipartUpload&&C(r.abortMultipartUpload,"AbortMultipartUpload"),!r.expiration&&!r.abortMultipartUpload&&!r.transition&&!r.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(r.tag){if(r.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");T(r.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(l){return l&&l.__esModule?l:{default:l}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("../utils/obj2xml"),n=h.obj2xml,s=c;s.putBucketVersioning=function(a,o){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p,g,E;return t.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(d(a),["Enabled","Suspended"].includes(o)){P.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return p=this._bucketRequestParams("PUT",a,"versioning",v),g={VersioningConfiguration:{Status:o}},p.mime="xml",p.content=n(g,{headers:!0}),P.next=9,t.default.awrap(this.request(p));case 9:return E=P.sent,P.abrupt("return",{res:E.res,status:E.status});case 11:case"end":return P.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(o){return o&&o.__esModule?o:{default:o}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("../utils/obj2xml"),n=h.obj2xml,s=e("../utils/isArray"),l=s.isArray,a=c;a.putBucketWebsite=function(v){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments[2],E,w,P,x,D;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(d(v),E=this._bucketRequestParams("PUT",v,"website",g),w={Suffix:p.index||"index.html"},P={IndexDocument:w},x={WebsiteConfiguration:P},p.supportSubDir&&(w.SupportSubDir=p.supportSubDir),p.type&&(w.Type=p.type),p.error&&(P.ErrorDocument={Key:p.error}),!(p.routingRules!==void 0)){T.next=12;break}if(l(p.routingRules)){T.next=11;break}throw new Error("RoutingRules must be Array");case 11:P.RoutingRules={RoutingRule:p.routingRules};case 12:return x=n(x),E.content=x,E.mime="xml",E.successStatuses=[200],T.next=18,t.default.awrap(this.request(E));case 18:return D=T.sent,T.abrupt("return",{res:D.res});case 20:case"end":return T.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/core-js/object/keys"),_=h(t),y=e("babel-runtime/core-js/json/stringify"),d=h(y);function h(n){return n&&n.__esModule?n:{default:n}}c.encodeCallback=function(s,l){if(s.headers=s.headers||{},!Object.prototype.hasOwnProperty.call(s.headers,"x-oss-callback")&&l.callback){var a={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};l.callback.host&&(a.callbackHost=l.callback.host),l.callback.contentType&&(a.callbackBodyType=l.callback.contentType);var o=i.from((0,d.default)(a)).toString("base64");if(s.headers["x-oss-callback"]=o,l.callback.customValue){var v={};(0,_.default)(l.callback.customValue).forEach(function(p){v["x:"+p]=l.callback.customValue[p]}),s.headers["x-oss-callback-var"]=i.from((0,d.default)(v)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/assign"),t=_(i);function _(a){return a&&a.__esModule?a:{default:a}}var y=e("humanize-ms"),d=e("url"),h=e("../utils/checkBucketName"),n=h.checkBucketName;function s(a,o){var v=d.parse(a);if(v.protocol||(v=d.parse("http"+(o?"s":"")+"://"+a)),v.protocol!=="http:"&&v.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return v}function l(a,o,v){var p=v?"https://":"http://",g=o?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return a.substr(0,E.length)===E&&(g=".aliyuncs.com"),d.parse(p+a+g)}b.exports=function(a){if(!a||!a.accessKeyId||!a.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");a.bucket&&n(a.bucket);var o=(0,t.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},a);if(o.accessKeyId=o.accessKeyId.trim(),o.accessKeySecret=o.accessKeySecret.trim(),o.timeout&&(o.timeout=y(o.timeout)),o.endpoint)o.endpoint=s(o.endpoint,o.secure);else if(o.region)o.endpoint=l(o.region,o.internal,o.secure);else throw new Error("require options.endpoint or options.region");return o.inited=!0,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(e,b,c){"use strict";var i=e("merge-descriptors"),t=c;i(t,e("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(o){return o&&o.__esModule?o:{default:o}}var y=e("../utils/checkBucketName"),d=y.checkBucketName,h=e("querystring"),n=e("js-base64"),s=n.Base64.encode,l=c;l.processObjectSave=function(v,p,g,E){var w,P,x,D;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return a(v,"sourceObject"),a(p,"targetObject"),a(g,"process"),p=this._objectName(p),E&&d(E),w=this._objectRequestParams("POST",v,{subres:"x-oss-process"}),P=E?",b_"+s(E):"",p=s(p),x={"x-oss-process":g+"|sys/saveas,o_"+p+P},w.content=h.stringify(x),T.next=12,t.default.awrap(this.request(w));case 12:return D=T.sent,T.abrupt("return",{res:D.res,status:D.res.status});case 14:case"end":return T.stop()}},null,this)};function a(o,v){if(!o)throw new Error(v+" is required");if(typeof o!="string")throw new Error(v+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=_(i);function _(l){return l&&l.__esModule?l:{default:l}}var y=e("copy-to"),d=e("./callback"),h=e("./utils/deepCopy"),n=h.deepCopy,s=c;s.listUploads=function(a,o){var v,p,g,E;return t.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return o=o||{},v={},y(o).to(v),v.subres="uploads",p=this._objectRequestParams("GET","",v),p.query=a,p.xmlResponse=!0,p.successStatuses=[200],P.next=10,t.default.awrap(this.request(p));case 10:return g=P.sent,E=g.data.Upload||[],Array.isArray(E)||(E=[E]),E=E.map(function(x){return{name:x.Key,uploadId:x.UploadId,initiated:x.Initiated}}),P.abrupt("return",{res:g.res,uploads:E,bucket:g.data.Bucket,nextKeyMarker:g.data.NextKeyMarker,nextUploadIdMarker:g.data.NextUploadIdMarker,isTruncated:g.data.IsTruncated==="true"});case 15:case"end":return P.stop()}},null,this)},s.listParts=function(a,o,v,p){var g,E,w;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return p=p||{},g={},y(p).to(g),g.subres={uploadId:o},E=this._objectRequestParams("GET",a,g),E.query=v,E.xmlResponse=!0,E.successStatuses=[200],x.next=10,t.default.awrap(this.request(E));case 10:return w=x.sent,x.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return x.stop()}},null,this)},s.abortMultipartUpload=function(a,o,v){var p,g,E;return t.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return this._stop(),v=v||{},p={},y(v).to(p),p.subres={uploadId:o},g=this._objectRequestParams("DELETE",a,p),g.successStatuses=[204],P.next=9,t.default.awrap(this.request(g));case 9:return E=P.sent,P.abrupt("return",{res:E.res});case 11:case"end":return P.stop()}},null,this)},s.initMultipartUpload=function(a,o){var v,p,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return o=o||{},v={},y(o).to(v),v.headers=v.headers||{},this._convertMetaToHeaders(o.meta,v.headers),v.subres="uploads",p=this._objectRequestParams("POST",a,v),p.mime=o.mime,p.xmlResponse=!0,p.successStatuses=[200],w.next=12,t.default.awrap(this.request(p));case 12:return g=w.sent,w.abrupt("return",{res:g.res,bucket:g.data.Bucket,name:g.data.Key,uploadId:g.data.UploadId});case 14:case"end":return w.stop()}},null,this)},s.uploadPart=function(a,o,v,p,g,E,w){var P;return t.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return P={stream:this._createStream(p,g,E),size:E-g},D.next=3,t.default.awrap(this._uploadPart(a,o,v,P,w));case 3:return D.abrupt("return",D.sent);case 4:case"end":return D.stop()}},null,this)},s.completeMultipartUpload=function(a,o,v,p){var g,E,w,P,x,D,C,T;return t.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:for(g=v.concat().sort(function(L,M){return L.number-M.number}).filter(function(L,M,u){return!M||L.number!==u[M-1].number}),E=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,w=0;w<g.length;w++)P=g[w],E+=`<Part>
`,E+="<PartNumber>"+P.number+`</PartNumber>
`,E+="<ETag>"+P.etag+`</ETag>
`,E+=`</Part>
`;return E+="</CompleteMultipartUpload>",p=p||{},x={},x=n(p),x.headers&&delete x.headers["x-oss-server-side-encryption"],x.subres={uploadId:o},D=this._objectRequestParams("POST",a,x),d.encodeCallback(D,x),D.mime="xml",D.content=E,D.headers&&D.headers["x-oss-callback"]||(D.xmlResponse=!0),D.successStatuses=[200],r.next=17,t.default.awrap(this.request(D));case 17:return C=r.sent,T={res:C.res,bucket:D.bucket,name:a,etag:C.res.headers.etag},D.headers&&D.headers["x-oss-callback"]&&(T.data=JSON.parse(C.data.toString())),r.abrupt("return",T);case 21:case"end":return r.stop()}},null,this)},s._uploadPart=function(a,o,v,p,g){var E,w,P;return t.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return g=g||{},E={},y(g).to(E),E.headers={"Content-Length":p.size},E.subres={partNumber:v,uploadId:o},w=this._objectRequestParams("PUT",a,E),w.mime=E.mime,w.stream=p.stream,w.successStatuses=[200],D.next=11,t.default.awrap(this.request(w));case 11:if(P=D.sent,P.res.headers.etag){D.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return p.stream=null,w.stream=null,D.abrupt("return",{name:a,etag:P.res.headers.etag,res:P.res});case 17:case"end":return D.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=n(i),_=e("babel-runtime/core-js/object/keys"),y=n(_),d=e("babel-runtime/helpers/typeof"),h=n(d);function n(o){return o&&o.__esModule?o:{default:o}}var s=e("../utils/checkBucketName"),l=s.checkBucketName,a=c;a.copy=function(v,p,g,E){var w,P,x;return t.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return(typeof g=="undefined"?"undefined":(0,h.default)(g))==="object"&&(E=g),E=E||{},E.headers=E.headers||{},(0,y.default)(E.headers).forEach(function(T){E.headers["x-oss-copy-source-"+T.toLowerCase()]=E.headers[T]}),E.meta&&(E.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(E.meta,E.headers),p=this._getSourceName(p,g),E.versionId&&(p=p+"?versionId="+E.versionId),E.headers["x-oss-copy-source"]=p,w=this._objectRequestParams("PUT",v,E),w.xmlResponse=!0,w.successStatuses=[200,304],C.next=14,t.default.awrap(this.request(w));case 14:return P=C.sent,x=P.data,x&&(x={etag:x.ETag,lastModified:x.LastModified}),C.abrupt("return",{data:x,res:P.res});case 18:case"end":return C.stop()}},null,this)},a._getSourceName=function(v,p){return typeof p=="string"?v=this._objectName(v):v[0]!=="/"?p=this.options.bucket:(p=v.replace(/\/(.+?)(\/.*)/,"$1"),v=v.replace(/(\/.+?\/)(.*)/,"$2")),l(p),v=encodeURI(v),v="/"+p+"/"+v,v}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.delete=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return l.subres=(0,y.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),a=this._objectRequestParams("DELETE",s,l),a.successStatuses=[204],p.next=6,t.default.awrap(this.request(a));case 6:return o=p.sent,p.abrupt("return",{res:o.res});case 8:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(a){return a&&a.__esModule?a:{default:a}}var h=e("utility"),n=e("../utils/obj2xml"),s=n.obj2xml,l=c;l.deleteMulti=function(o){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p,g,E,w,P,x,D,C,T,m,r,L;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(p=[],!(!o||!o.length)){u.next=3;break}throw new Error("names is required");case 3:for(g=0;g<o.length;g++)E={},typeof o[g]=="string"?E.Key=h.escape(this._objectName(o[g])):(w=o[g],P=w.key,x=w.versionId,E.Key=h.escape(this._objectName(P)),E.VersionId=x),p.push(E);return D={Delete:{Quiet:!!v.quiet,Object:p}},C=s(D,{headers:!0}),v.subres=(0,y.default)({delete:""},v.subres),v.versionId&&(v.subres.versionId=v.versionId),T=this._objectRequestParams("POST","",v),T.mime="xml",T.content=C,T.xmlResponse=!0,T.successStatuses=[200],u.next=15,t.default.awrap(this.request(T));case 15:return m=u.sent,r=m.data,L=r&&r.Deleted||null,L&&(Array.isArray(L)||(L=[L])),u.abrupt("return",{res:m.res,deleted:L||[]});case 20:case"end":return u.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.deleteObjectTagging=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return l.subres=(0,y.default)({tagging:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),s=this._objectName(s),a=this._objectRequestParams("DELETE",s,l),a.successStatuses=[204],p.next=7,t.default.awrap(this.request(a));case 7:return o=p.sent,p.abrupt("return",{status:o.status,res:o.res});case 9:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(l){return l&&l.__esModule?l:{default:l}}var h=e("fs"),n=e("is-type-of"),s=c;s.get=function(a,o){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p,g,E,w;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return p=null,g=!1,n.writableStream(o)?p=o:n.string(o)?(p=h.createWriteStream(o),g=!0):v=o,v=v||{},v.subres=(0,y.default)({},v.subres),v.versionId&&(v.subres.versionId=v.versionId),v.process&&(v.subres["x-oss-process"]=v.process),E=void 0,x.prev=8,w=this._objectRequestParams("GET",a,v),w.writeStream=p,w.successStatuses=[200,206,304],x.next=14,t.default.awrap(this.request(w));case 14:E=x.sent,g&&p.destroy(),x.next=25;break;case 18:if(x.prev=18,x.t0=x.catch(8),!g){x.next=24;break}return p.destroy(),x.next=24,t.default.awrap(this._deleteFileSafe(o));case 24:throw x.t0;case 25:return x.abrupt("return",{res:E.res,content:E.data});case 26:case"end":return x.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.getACL=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return l.subres=(0,y.default)({acl:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),s=this._objectName(s),a=this._objectRequestParams("GET",s,l),a.successStatuses=[200],a.xmlResponse=!0,p.next=8,t.default.awrap(this.request(a));case 8:return o=p.sent,p.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 10:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=n(i),_=e("babel-runtime/regenerator"),y=n(_),d=e("babel-runtime/core-js/object/assign"),h=n(d);function n(w){return w&&w.__esModule?w:{default:w}}var s=c,l=e("../utils/isObject"),a=l.isObject,o=e("../utils/isArray"),v=o.isArray;s.getBucketVersions=p,s.listObjectVersions=p;function p(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x,D,C,T,m,r;return y.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(w.versionIdMarker&&w.keyMarker===void 0)){M.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return P.subres=(0,h.default)({versions:""},P.subres),P.versionId&&(P.subres.versionId=P.versionId),x=this._objectRequestParams("GET","",P),x.xmlResponse=!0,x.successStatuses=[200],x.query=E(w),M.next=10,y.default.awrap(this.request(x));case 10:return D=M.sent,C=D.data.Version||[],T=D.data.DeleteMarker||[],m=this,C&&(Array.isArray(C)||(C=[C]),C=C.map(function(u){return{name:u.Key,url:m._objectUrl(u.Key),lastModified:u.LastModified,isLatest:u.IsLatest==="true",versionId:u.VersionId,etag:u.ETag,type:u.Type,size:Number(u.Size),storageClass:u.StorageClass,owner:{id:u.Owner.ID,displayName:u.Owner.DisplayName}}})),T&&(v(T)||(T=[T]),T=T.map(function(u){return{name:u.Key,lastModified:u.LastModified,versionId:u.VersionId,owner:{id:u.Owner.ID,displayName:u.Owner.DisplayName}}})),r=D.data.CommonPrefixes||null,r&&(v(r)||(r=[r]),r=r.map(function(u){return u.Prefix})),M.abrupt("return",{res:D.res,objects:C,deleteMarker:T,prefixes:r,nextMarker:D.data.NextMarker||null,NextVersionIdMarker:D.data.NextVersionIdMarker||null,isTruncated:D.data.IsTruncated==="true"});case 19:case"end":return M.stop()}},null,this)}function g(w){return w.replace(/([A-Z])/g,"-$1").toLowerCase()}function E(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P={};return a(w)&&(0,t.default)(w).forEach(function(x){P[g(x)]=w[x]}),P}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.getObjectMeta=function(s,l){var a,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return l=l||{},s=this._objectName(s),l.subres=(0,y.default)({objectMeta:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),a=this._objectRequestParams("HEAD",s,l),a.successStatuses=[200],p.next=8,t.default.awrap(this.request(a));case 8:return o=p.sent,p.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return p.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(l){return l&&l.__esModule?l:{default:l}}var h=c,n=e("../utils/isObject"),s=n.isObject;h.getObjectTagging=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v,p,g,E,w;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return o.subres=(0,y.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),a=this._objectName(a),v=this._objectRequestParams("GET",a,o),v.successStatuses=[200],x.next=7,t.default.awrap(this.request(v));case 7:return p=x.sent,x.next=10,t.default.awrap(this.parseXML(p.data));case 10:return g=x.sent,E=g.TagSet.Tag,E=E&&s(E)?[E]:E||[],w={},E.forEach(function(D){w[D.Key]=D.Value}),x.abrupt("return",{status:p.status,res:p.res,tag:w});case 16:case"end":return x.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.getSymlink=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,o,v;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l.subres=(0,y.default)({symlink:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),s=this._objectName(s),a=this._objectRequestParams("GET",s,l),a.successStatuses=[200],g.next=7,t.default.awrap(this.request(a));case 7:return o=g.sent,v=o.res.headers["x-oss-symlink-target"],g.abrupt("return",{targetName:decodeURIComponent(v),res:o.res});case 10:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=n(i),_=e("babel-runtime/core-js/object/keys"),y=n(_),d=e("babel-runtime/core-js/object/assign"),h=n(d);function n(l){return l&&l.__esModule?l:{default:l}}var s=c;s.head=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v,p,g;return t.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return o.subres=(0,h.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),v=this._objectRequestParams("HEAD",a,o),v.successStatuses=[200,304],w.next=6,t.default.awrap(this.request(v));case 6:return p=w.sent,g={meta:null,res:p.res,status:p.status},p.status===200&&(0,y.default)(p.headers).forEach(function(P){P.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[P.substring(11)]=p.headers[P])}),w.abrupt("return",g);case 10:case"end":return w.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.putACL=function(s,l,a){var o,v;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return a=a||{},a.subres=(0,y.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.headers=a.headers||{},a.headers["x-oss-object-acl"]=l,s=this._objectName(s),o=this._objectRequestParams("PUT",s,a),o.successStatuses=[200],g.next=10,t.default.awrap(this.request(o));case 10:return v=g.sent,g.abrupt("return",{res:v.res});case 12:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=n(i),_=e("babel-runtime/core-js/object/keys"),y=n(_),d=e("babel-runtime/core-js/object/assign"),h=n(d);function n(p){return p&&p.__esModule?p:{default:p}}var s=e("../utils/obj2xml"),l=s.obj2xml,a=e("../utils/checkObjectTag"),o=a.checkObjectTag,v=c;v.putObjectTagging=function(g,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},P,x,D;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return o(E),w.subres=(0,h.default)({tagging:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),g=this._objectName(g),P=this._objectRequestParams("PUT",g,w),P.successStatuses=[200],E=(0,y.default)(E).map(function(m){return{Key:m,Value:E[m]}}),x={Tagging:{TagSet:{Tag:E}}},P.mime="xml",P.content=l(x),T.next=12,t.default.awrap(this.request(P));case 12:return D=T.sent,T.abrupt("return",{res:D.res,status:D.status});case 14:case"end":return T.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/object/assign"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h.putSymlink=function(s,l,a){var o,v;return t.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return a=a||{},a.headers=a.headers||{},l=this._escape(this._objectName(l)),this._convertMetaToHeaders(a.meta,a.headers),a.headers["x-oss-symlink-target"]=l,a.subres=(0,y.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.storageClass&&(a.headers["x-oss-storage-class"]=a.storageClass),s=this._objectName(s),o=this._objectRequestParams("PUT",s,a),o.successStatuses=[200],g.next=13,t.default.awrap(this.request(o));case 13:return v=g.sent,g.abrupt("return",{res:v.res});case 15:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(e,b,c){"use strict";var i=e("babel-runtime/regenerator"),t=d(i),_=e("babel-runtime/core-js/promise"),y=d(_);function d(n){return n&&n.__esModule?n:{default:n}}var h=c;h._parallelNode=function(s,l,a,o){var v,p,g,E,w,P,x,D;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:v=this,p=[],g=[],E=s.length/l,w=s.length%l,P=w===0?E:(s.length-w)/l+1,x=1,D=0;case 8:if(!(D<s.length)){T.next=26;break}if(!v.isCancel()){T.next=11;break}return T.abrupt("break",26);case 11:if(o?g.push(a(v,s[D],o)):g.push(a(v,s[D])),!(g.length===l||x===P&&D===s.length-1)){T.next=23;break}return T.prev=13,x+=1,T.next=17,t.default.awrap(y.default.all(g));case 17:T.next=22;break;case 19:T.prev=19,T.t0=T.catch(13),p.push(T.t0);case 22:g=[];case 23:D++,T.next=8;break;case 26:return T.abrupt("return",p);case 27:case"end":return T.stop()}},null,this,[[13,19]])},h._parallel=function(s,l,a){var o=this;return new y.default(function(v){var p=[];if(l<=0||!s){v(p);return}function g(r){return function(){if(r===null)throw new Error("Callback was already called.");var L=r;r=null;for(var M=arguments.length,u=Array(M),j=0;j<M;j++)u[j]=arguments[j];L.apply(this,u)}}function E(r){var L=-1,M=r.length;return function(){return++L<M&&!o.isCancel()?{value:r[L],key:L}:null}}var w=E(s),P=!1,x=0,D=!1;function C(r,L){x-=1,r?(P=!0,p.push(r),v(p)):L==={}||P&&x<=0?(P=!0,v(p)):D||(o.isCancel()?v(p):m())}function T(r,L){a(r).then(function(M){L(null,M)}).catch(function(M){L(M)})}function m(){for(D=!0;x<l&&!P&&!o.isCancel();){var r=w();if(r===null||p.length>0){P=!0,x<=0&&v(p);return}x+=1,T(r.value,g(C))}D=!1}m()})},h.cancel=function(s){this.options.cancelFlag=!0,s&&this.abortMultipartUpload(s.name,s.uploadId,s.options)},h.isCancel=function(){return this.options.cancelFlag},h.resetCancelFlag=function(){this.options.cancelFlag=!1},h._stop=function(){this.options.cancelFlag=!0},h._makeCancelEvent=function(){var s={status:0,name:"cancel"};return s}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/core-js/json/stringify"),_=h(t),y=e("babel-runtime/core-js/object/keys"),d=h(y);function h(l){return l&&l.__esModule?l:{default:l}}var n=e("./../../shims/crypto/crypto.js"),s=e("is-type-of");c.buildCanonicalizedResource=function(a,o){var v=""+a,p="?";if(s.string(o)&&o.trim()!=="")v+=p+o;else if(s.array(o))o.sort(),v+=p+o.join("&");else if(o){var g=function(P,x){return P[0]>x[0]?1:P[0]<x[0]?-1:0},E=function(P){v+=p+P,o[P]&&(v+="="+o[P]),p="&"};(0,d.default)(o).sort(g).forEach(E)}return v},c.buildCanonicalString=function(a,o,v,p){v=v||{};var g=v.headers||{},E="x-oss-",w=[],P={},x=[a.toUpperCase(),g["Content-Md5"]||"",g["Content-Type"]||g["Content-Type".toLowerCase()],p||g["x-oss-date"]];return(0,d.default)(g).forEach(function(D){var C=D.toLowerCase();C.indexOf(E)===0&&(P[C]=String(g[D]).trim())}),(0,d.default)(P).sort().forEach(function(D){w.push(D+":"+P[D])}),x=x.concat(w),x.push(this.buildCanonicalizedResource(o,v.parameters)),x.join(`
`)},c.computeSignature=function(a,o){var v=n.createHmac("sha1",a);return v.update(i.from(o,"utf8")).digest("base64")},c.authorization=function(a,o,v){return"OSS "+a+":"+this.computeSignature(o,v)},c._signatureForURL=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments[2],p=arguments[3],g={},E=o.subResource,w=E===void 0?{}:E;if(o.process){var P="x-oss-process";w[P]=o.process}if(o.trafficLimit){var x="x-oss-traffic-limit";w[x]=o.trafficLimit}if(o.response&&(0,d.default)(o.response).forEach(function(m){var r="response-"+m.toLowerCase();w[r]=o.response[m]}),(0,d.default)(o).forEach(function(m){var r=m.toLowerCase(),L=o[m];r.indexOf("x-oss-")===0?g[r]=L:(r.indexOf("content-md5")===0||r.indexOf("content-type")===0)&&(g[m]=L)}),Object.prototype.hasOwnProperty.call(o,"security-token")&&(w["security-token"]=o["security-token"]),Object.prototype.hasOwnProperty.call(o,"callback")){var D={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};if(o.callback.host&&(D.callbackHost=o.callback.host),o.callback.contentType&&(D.callbackBodyType=o.callback.contentType),w.callback=i.from((0,_.default)(D)).toString("base64"),o.callback.customValue){var C={};(0,d.default)(o.callback.customValue).forEach(function(m){C["x:"+m]=o.callback.customValue[m]}),w["callback-var"]=i.from((0,_.default)(C)).toString("base64")}}var T=this.buildCanonicalString(o.method,v,{headers:g,parameters:w},p.toString());return{Signature:this.computeSignature(a,T),subResource:w}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.checkBucketName=void 0,c.checkBucketName=function(i,t){var _=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!_.test(i))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/entries"),t=_(i);function _(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(c,"__esModule",{value:!0}),c.checkObjectTag=void 0;var y=e("./checkValid"),d=y.checkValid,h=e("./isObject"),n=h.isObject,s=[{validator:function(v){if(typeof v!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],l={key:[].concat(s,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(s,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function a(o){if(!n(o))throw new Error("tag must be Object");var v=(0,t.default)(o);if(v.length>10)throw new Error("maximum of 10 tags for a object");var p=["key","value"];v.forEach(function(g){g.forEach(function(E,w){d(E,l[p[w]])})})}c.checkObjectTag=a},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.checkValid=void 0;function i(t,_){_.forEach(function(y){if(y.validator)y.validator(t);else if(y.pattern&&!y.pattern.test(t))throw new Error(y.msg)})}c.checkValid=i},{}],38:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/core-js/object/assign"),_=y(t);function y(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(c,"__esModule",{value:!0}),c.createRequest=void 0;var d=e("./../../../shims/crypto/crypto.js"),h=e("debug")("ali-oss"),n=e("mime"),s=e("dateformat"),l=e("copy-to"),a=e("path");function o(g,E){return g[E]||g[E.toLowerCase()]}function v(g,E){delete g[E],delete g[E.toLowerCase()]}function p(g){var E=new Date;this.options.amendTimeSkewed&&(E=+new Date+this.options.amendTimeSkewed);var w={"x-oss-date":s(E,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(w["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,_.default)(w,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(w["x-oss-security-token"]=this.options.stsToken),l(g.headers).to(w),o(w,"Content-Type")||(g.mime&&g.mime.indexOf("/")>0?w["Content-Type"]=g.mime:w["Content-Type"]=n.getType(g.mime||a.extname(g.object||""))),o(w,"Content-Type")||v(w,"Content-Type"),g.content&&(w["Content-Md5"]=d.createHash("md5").update(i.from(g.content,"utf8")).digest("base64"),w["Content-Length"]||(w["Content-Length"]=g.content.length));var P=this._getResource(g);w.authorization=this.authorization(g.method,P,g.subres,w);var x=this._getReqUrl(g);h("request %s %s, with headers %j, !!stream: %s",g.method,x,w,!!g.stream);var D=g.timeout||this.options.timeout,C={method:g.method,content:g.content,stream:g.stream,headers:w,timeout:D,writeStream:g.writeStream,customResponse:g.customResponse,ctx:g.ctx||this.ctx};return this.agent&&(C.agent=this.agent),this.httpsAgent&&(C.httpsAgent=this.httpsAgent),{url:x,params:C}}c.createRequest=p}).call(this,e("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=d(i),_=e("babel-runtime/helpers/typeof"),y=d(_);function d(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(c,"__esModule",{value:!0}),c.deepCopy=void 0,c.deepCopy=function(h){if(h===null||(typeof h=="undefined"?"undefined":(0,y.default)(h))!=="object")return h;var n=Array.isArray(h)?[]:{};return(0,t.default)(h).forEach(function(s){n[s]=c.deepCopy(h[s])}),n}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=d(i),_=e("babel-runtime/helpers/typeof"),y=d(_);function d(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(c,"__esModule",{value:!0}),c.formatObjKey=void 0;function h(s,l){if(s===null||(typeof s=="undefined"?"undefined":(0,y.default)(s))!=="object")return s;var a=void 0;if(Array.isArray(s)){a=[];for(var o=0;o<s.length;o++)a.push(h(s[o],l))}else a={},(0,t.default)(s).forEach(function(v){a[n(v,l)]=h(s[v],l)});return a}c.formatObjKey=h;function n(s,l){return l==="firstUpperCase"?s=s.replace(/^./,function(a){return a.toUpperCase()}):l==="firstLowerCase"&&(s=s.replace(/^./,function(a){return a.toLowerCase()})),s}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.getStrBytesCount=void 0;function i(t){for(var _=0,y=0;y<t.length;y++){var d=t.charAt(y);/^[\u00-\uff]$/.test(d)?_+=1:_+=2}return _}c.getStrBytesCount=i},{}],42:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isArray=void 0,c.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}},{}],43:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isBlob=void 0;function i(t){return typeof Blob!="undefined"&&t instanceof Blob}c.isBlob=i},{}],44:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isFile=void 0,c.isFile=function(i){return typeof File!="undefined"&&i instanceof File}},{}],45:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isIP=void 0,c.isIP=function(i){var t=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,_=/^\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 t.test(i)||_.test(i)}},{}],46:[function(e,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isObject=void 0,c.isObject=function(i){return Object.prototype.toString.call(i)==="[object Object]"}},{}],47:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=_(i);function _(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(c,"__esModule",{value:!0}),c.obj2xml=void 0;var y=e("./formatObjKey");function d(n){return Object.prototype.toString.call(n).replace(/(.*? |])/g,"").toLowerCase()}function h(n,s){var l="";return s&&s.headers&&(l=`<?xml version="1.0" encoding="UTF-8"?>
`),s&&s.firstUpperCase&&(n=y.formatObjKey(n,"firstUpperCase")),d(n)==="object"?(0,t.default)(n).forEach(function(a){d(n[a])==="string"||d(n[a])==="number"?l+="<"+a+">"+n[a]+"</"+a+">":d(n[a])==="object"?l+="<"+a+">"+h(n[a])+"</"+a+">":d(n[a])==="array"?l+=n[a].map(function(o){return"<"+a+">"+h(o)+"</"+a+">"}).join(""):l+="<"+a+">"+n[a].toString()+"</"+a+">"}):l+=n.toString(),l}c.obj2xml=h},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(e,b,c){b.exports=i,b.exports.HttpsAgent=i;function i(){}},{}],49:[function(e,b,c){b.exports=e("./register")().Promise},{"./register":51}],50:[function(e,b,c){"use strict";var i="@@any-promise/REGISTRATION",t=null;b.exports=function(_,y){return function(h,n){h=h||null,n=n||{};var s=n.global!==!1;if(t===null&&s&&(t=_[i]||null),t!==null&&h!==null&&t.implementation!==h)throw new Error('any-promise already defined as "'+t.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return t===null&&(h!==null&&typeof n.Promise!="undefined"?t={Promise:n.Promise,implementation:h}:t=y(h),s&&(_[i]=t)),t}}},{}],51:[function(e,b,c){"use strict";b.exports=e("./loader")(window,i);function i(){if(typeof window.Promise=="undefined")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"}}},{"./loader":50}],52:[function(e,b,c){b.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(e,b,c){b.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(e,b,c){b.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(e,b,c){b.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(e,b,c){b.exports={default:e("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(e,b,c){b.exports={default:e("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(e,b,c){b.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(e,b,c){b.exports={default:e("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(e,b,c){b.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(e,b,c){"use strict";c.__esModule=!0;var i=e("../core-js/symbol/iterator"),t=h(i),_=e("../core-js/symbol"),y=h(_),d=typeof y.default=="function"&&typeof t.default=="symbol"?function(n){return typeof n}:function(n){return n&&typeof y.default=="function"&&n.constructor===y.default&&n!==y.default.prototype?"symbol":typeof n};function h(n){return n&&n.__esModule?n:{default:n}}c.default=typeof y.default=="function"&&d(t.default)==="symbol"?function(n){return typeof n=="undefined"?"undefined":d(n)}:function(n){return n&&typeof y.default=="function"&&n.constructor===y.default&&n!==y.default.prototype?"symbol":typeof n=="undefined"?"undefined":d(n)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(e,b,c){b.exports=e("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(e,b,c){"use strict";c.byteLength=s,c.toByteArray=a,c.fromByteArray=p;for(var i=[],t=[],_=typeof Uint8Array!="undefined"?Uint8Array:Array,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,h=y.length;d<h;++d)i[d]=y[d],t[y.charCodeAt(d)]=d;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function n(g){var E=g.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=g.indexOf("=");w===-1&&(w=E);var P=w===E?0:4-w%4;return[w,P]}function s(g){var E=n(g),w=E[0],P=E[1];return(w+P)*3/4-P}function l(g,E,w){return(E+w)*3/4-w}function a(g){var E,w=n(g),P=w[0],x=w[1],D=new _(l(g,P,x)),C=0,T=x>0?P-4:P,m;for(m=0;m<T;m+=4)E=t[g.charCodeAt(m)]<<18|t[g.charCodeAt(m+1)]<<12|t[g.charCodeAt(m+2)]<<6|t[g.charCodeAt(m+3)],D[C++]=E>>16&255,D[C++]=E>>8&255,D[C++]=E&255;return x===2&&(E=t[g.charCodeAt(m)]<<2|t[g.charCodeAt(m+1)]>>4,D[C++]=E&255),x===1&&(E=t[g.charCodeAt(m)]<<10|t[g.charCodeAt(m+1)]<<4|t[g.charCodeAt(m+2)]>>2,D[C++]=E>>8&255,D[C++]=E&255),D}function o(g){return i[g>>18&63]+i[g>>12&63]+i[g>>6&63]+i[g&63]}function v(g,E,w){for(var P,x=[],D=E;D<w;D+=3)P=(g[D]<<16&16711680)+(g[D+1]<<8&65280)+(g[D+2]&255),x.push(o(P));return x.join("")}function p(g){for(var E,w=g.length,P=w%3,x=[],D=16383,C=0,T=w-P;C<T;C+=D)x.push(v(g,C,C+D>T?T:C+D));return P===1?(E=g[w-1],x.push(i[E>>2]+i[E<<4&63]+"==")):P===2&&(E=(g[w-2]<<8)+g[w-1],x.push(i[E>>10]+i[E>>4&63]+i[E<<2&63]+"=")),x.join("")}},{}],70:[function(e,b,c){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(i,t,_){typeof b!="undefined"&&b.exports?b.exports=_():typeof define=="function"&&define.amd?define(t,_):i[t]=_()}(this,"bowser",function(){var i=!0;function t(l){function a(B){var $=l.match(B);return $&&$.length>1&&$[1]||""}function o(B){var $=l.match(B);return $&&$.length>1&&$[2]||""}var v=a(/(ipod|iphone|ipad)/i).toLowerCase(),p=/like android/i.test(l),g=!p&&/android/i.test(l),E=/nexus\s*[0-6]\s*/i.test(l),w=!E&&/nexus\s*[0-9]+/i.test(l),P=/CrOS/.test(l),x=/silk/i.test(l),D=/sailfish/i.test(l),C=/tizen/i.test(l),T=/(web|hpw)(o|0)s/i.test(l),m=/windows phone/i.test(l),r=/SamsungBrowser/i.test(l),L=!m&&/windows/i.test(l),M=!v&&!x&&/macintosh/i.test(l),u=!g&&!D&&!C&&!T&&/linux/i.test(l),j=o(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=a(/version\/(\d+(\.\d+)?)/i),k=/tablet/i.test(l)&&!/tablet pc/i.test(l),H=!k&&/[^-]mobi/i.test(l),Q=/xbox/i.test(l),F;/opera/i.test(l)?F={name:"Opera",opera:i,version:O||a(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?F={name:"Opera",opera:i,version:a(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(l)?F={name:"Samsung Internet for Android",samsungBrowser:i,version:O||a(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(l)?F={name:"NAVER Whale browser",whale:i,version:a(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(l)?F={name:"MZ Browser",mzbrowser:i,version:a(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(l)?F={name:"Opera Coast",coast:i,version:O||a(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(l)?F={name:"Focus",focus:i,version:a(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(l)?F={name:"Yandex Browser",yandexbrowser:i,version:O||a(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?F={name:"UC Browser",ucbrowser:i,version:a(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?F={name:"Maxthon",maxthon:i,version:a(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?F={name:"Epiphany",epiphany:i,version:a(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?F={name:"Puffin",puffin:i,version:a(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?F={name:"Sleipnir",sleipnir:i,version:a(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?F={name:"K-Meleon",kMeleon:i,version:a(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(F={name:"Windows Phone",osname:"Windows Phone",windowsphone:i},j?(F.msedge=i,F.version=j):(F.msie=i,F.version=a(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?F={name:"Internet Explorer",msie:i,version:a(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:P?F={name:"Chrome",osname:"Chrome OS",chromeos:i,chromeBook:i,chrome:i,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?F={name:"Microsoft Edge",msedge:i,version:j}:/vivaldi/i.test(l)?F={name:"Vivaldi",vivaldi:i,version:a(/vivaldi\/(\d+(\.\d+)?)/i)||O}:D?F={name:"Sailfish",osname:"Sailfish OS",sailfish:i,version:a(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?F={name:"SeaMonkey",seamonkey:i,version:a(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(F={name:"Firefox",firefox:i,version:a(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(F.firefoxos=i,F.osname="Firefox OS")):x?F={name:"Amazon Silk",silk:i,version:a(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?F={name:"PhantomJS",phantom:i,version:a(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?F={name:"SlimerJS",slimer:i,version:a(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?F={name:"BlackBerry",osname:"BlackBerry OS",blackberry:i,version:O||a(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:T?(F={name:"WebOS",osname:"WebOS",webos:i,version:O||a(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(F.touchpad=i)):/bada/i.test(l)?F={name:"Bada",osname:"Bada",bada:i,version:a(/dolfin\/(\d+(\.\d+)?)/i)}:C?F={name:"Tizen",osname:"Tizen",tizen:i,version:a(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(l)?F={name:"QupZilla",qupzilla:i,version:a(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(l)?F={name:"Chromium",chromium:i,version:a(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(l)?F={name:"Chrome",chrome:i,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:g?F={name:"Android",version:O}:/safari|applewebkit/i.test(l)?(F={name:"Safari",safari:i},O&&(F.version=O)):v?(F={name:v=="iphone"?"iPhone":v=="ipad"?"iPad":"iPod"},O&&(F.version=O)):/googlebot/i.test(l)?F={name:"Googlebot",googlebot:i,version:a(/googlebot\/(\d+(\.\d+))/i)||O}:F={name:a(/^(.*)\/(.*) /),version:o(/^(.*)\/(.*) /)},!F.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(F.name=F.name||"Blink",F.blink=i):(F.name=F.name||"Webkit",F.webkit=i),!F.version&&O&&(F.version=O)):!F.opera&&/gecko\//i.test(l)&&(F.name=F.name||"Gecko",F.gecko=i,F.version=F.version||a(/gecko\/(\d+(\.\d+)?)/i)),!F.windowsphone&&(g||F.silk)?(F.android=i,F.osname="Android"):!F.windowsphone&&v?(F[v]=i,F.ios=i,F.osname="iOS"):M?(F.mac=i,F.osname="macOS"):Q?(F.xbox=i,F.osname="Xbox"):L?(F.windows=i,F.osname="Windows"):u&&(F.linux=i,F.osname="Linux");function q(B){switch(B){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}}var W="";F.windows?W=q(a(/Windows ((NT|XP)( \d\d?.\d)?)/i)):F.windowsphone?W=a(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):F.mac?(W=a(/Mac OS X (\d+([_\.\s]\d+)*)/i),W=W.replace(/[_\s]/g,".")):v?(W=a(/os (\d+([_\s]\d+)*) like mac os x/i),W=W.replace(/[_\s]/g,".")):g?W=a(/android[ \/-](\d+(\.\d+)*)/i):F.webos?W=a(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):F.blackberry?W=a(/rim\stablet\sos\s(\d+(\.\d+)*)/i):F.bada?W=a(/bada\/(\d+(\.\d+)*)/i):F.tizen&&(W=a(/tizen[\/\s](\d+(\.\d+)*)/i)),W&&(F.osversion=W);var N=!F.windows&&W.split(".")[0];return k||w||v=="ipad"||g&&(N==3||N>=4&&!H)||F.silk?F.tablet=i:(H||v=="iphone"||v=="ipod"||g||E||F.blackberry||F.webos||F.bada)&&(F.mobile=i),F.msedge||F.msie&&F.version>=10||F.yandexbrowser&&F.version>=15||F.vivaldi&&F.version>=1||F.chrome&&F.version>=20||F.samsungBrowser&&F.version>=4||F.whale&&h([F.version,"1.0"])===1||F.mzbrowser&&h([F.version,"6.0"])===1||F.focus&&h([F.version,"1.0"])===1||F.firefox&&F.version>=20||F.safari&&F.version>=6||F.opera&&F.version>=10||F.ios&&F.osversion&&F.osversion.split(".")[0]>=6||F.blackberry&&F.version>=10.1||F.chromium&&F.version>=20?F.a=i:F.msie&&F.version<10||F.chrome&&F.version<20||F.firefox&&F.version<20||F.safari&&F.version<6||F.opera&&F.version<10||F.ios&&F.osversion&&F.osversion.split(".")[0]<6||F.chromium&&F.version<20?F.c=i:F.x=i,F}var _=t(typeof navigator!="undefined"&&navigator.userAgent||"");_.test=function(l){for(var a=0;a<l.length;++a){var o=l[a];if(typeof o=="string"&&o in _)return!0}return!1};function y(l){return l.split(".").length}function d(l,a){var o=[],v;if(Array.prototype.map)return Array.prototype.map.call(l,a);for(v=0;v<l.length;v++)o.push(a(l[v]));return o}function h(l){for(var a=Math.max(y(l[0]),y(l[1])),o=d(l,function(v){var p=a-y(v);return v=v+new Array(p+1).join(".0"),d(v.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--a>=0;){if(o[0][a]>o[1][a])return 1;if(o[0][a]===o[1][a]){if(a===0)return 0}else return-1}}function n(l,a,o){var v=_;typeof a=="string"&&(o=a,a=void 0),a===void 0&&(a=!1),o&&(v=t(o));var p=""+v.version;for(var g in l)if(l.hasOwnProperty(g)&&v[g]){if(typeof l[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(l));return h([p,l[g]])<0}return a}function s(l,a,o){return!n(l,a,o)}return _.isUnsupportedBrowser=n,_.compareVersions=h,_.check=s,_._detect=t,_.detect=t,_})},{}],71:[function(e,b,c){},{}],72:[function(e,b,c){var i=e("buffer").Buffer,t=i.isEncoding||function(s){switch(s&&s.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _(s){if(s&&!t(s))throw new Error("Unknown encoding: "+s)}var y=c.StringDecoder=function(s){this.encoding=(s||"utf8").toLowerCase().replace(/[-_]/,""),_(s);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=h;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=n;break;default:this.write=d;return}this.charBuffer=new i(6),this.charReceived=0,this.charLength=0};y.prototype.write=function(s){for(var l="";this.charLength;){var a=s.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:s.length;if(s.copy(this.charBuffer,this.charReceived,0,a),this.charReceived+=a,this.charReceived<this.charLength)return"";s=s.slice(a,s.length),l=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var v=l.charCodeAt(l.length-1);if(v>=55296&&v<=56319){this.charLength+=this.surrogateSize,l="";continue}if(this.charReceived=this.charLength=0,s.length===0)return l;break}this.detectIncompleteChar(s);var o=s.length;this.charLength&&(s.copy(this.charBuffer,0,s.length-this.charReceived,o),o-=this.charReceived),l+=s.toString(this.encoding,0,o);var o=l.length-1,v=l.charCodeAt(o);if(v>=55296&&v<=56319){var p=this.surrogateSize;return this.charLength+=p,this.charReceived+=p,this.charBuffer.copy(this.charBuffer,p,0,p),s.copy(this.charBuffer,0,0,p),l.substring(0,o)}return l},y.prototype.detectIncompleteChar=function(s){for(var l=s.length>=3?3:s.length;l>0;l--){var a=s[s.length-l];if(l==1&&a>>5==6){this.charLength=2;break}if(l<=2&&a>>4==14){this.charLength=3;break}if(l<=3&&a>>3==30){this.charLength=4;break}}this.charReceived=l},y.prototype.end=function(s){var l="";if(s&&s.length&&(l=this.write(s)),this.charReceived){var a=this.charReceived,o=this.charBuffer,v=this.encoding;l+=o.slice(0,a).toString(v)}return l};function d(s){return s.toString(this.encoding)}function h(s){this.charReceived=s.length%2,this.charLength=this.charReceived?2:0}function n(s){this.charReceived=s.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(e,b,c){(function(i,t){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var _=e("base64-js"),y=e("ieee754"),d=e("isarray");c.Buffer=t,c.SlowBuffer=x,c.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=i.TYPED_ARRAY_SUPPORT!==void 0?i.TYPED_ARRAY_SUPPORT:h(),c.kMaxLength=n();function h(){try{var U=new Uint8Array(1);return U.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},U.foo()===42&&typeof U.subarray=="function"&&U.subarray(1,1).byteLength===0}catch(R){return!1}}function n(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(U,R){if(n()<R)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(U=new Uint8Array(R),U.__proto__=t.prototype):(U===null&&(U=new t(R)),U.length=R),U}function t(U,R,f){if(!t.TYPED_ARRAY_SUPPORT&&!(this instanceof t))return new t(U,R,f);if(typeof U=="number"){if(typeof R=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,U)}return l(this,U,R,f)}t.poolSize=8192,t._augment=function(U){return U.__proto__=t.prototype,U};function l(U,R,f,S){if(typeof R=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&R instanceof ArrayBuffer?E(U,R,f,S):typeof R=="string"?p(U,R,f):w(U,R)}t.from=function(U,R,f){return l(null,U,R,f)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0}));function a(U){if(typeof U!="number")throw new TypeError('"size" argument must be a number');if(U<0)throw new RangeError('"size" argument must not be negative')}function o(U,R,f,S){return a(R),R<=0?s(U,R):f!==void 0?typeof S=="string"?s(U,R).fill(f,S):s(U,R).fill(f):s(U,R)}t.alloc=function(U,R,f){return o(null,U,R,f)};function v(U,R){if(a(R),U=s(U,R<0?0:P(R)|0),!t.TYPED_ARRAY_SUPPORT)for(var f=0;f<R;++f)U[f]=0;return U}t.allocUnsafe=function(U){return v(null,U)},t.allocUnsafeSlow=function(U){return v(null,U)};function p(U,R,f){if((typeof f!="string"||f==="")&&(f="utf8"),!t.isEncoding(f))throw new TypeError('"encoding" must be a valid string encoding');var S=D(R,f)|0;U=s(U,S);var Z=U.write(R,f);return Z!==S&&(U=U.slice(0,Z)),U}function g(U,R){var f=R.length<0?0:P(R.length)|0;U=s(U,f);for(var S=0;S<f;S+=1)U[S]=R[S]&255;return U}function E(U,R,f,S){if(R.byteLength,f<0||R.byteLength<f)throw new RangeError("'offset' is out of bounds");if(R.byteLength<f+(S||0))throw new RangeError("'length' is out of bounds");return f===void 0&&S===void 0?R=new Uint8Array(R):S===void 0?R=new Uint8Array(R,f):R=new Uint8Array(R,f,S),t.TYPED_ARRAY_SUPPORT?(U=R,U.__proto__=t.prototype):U=g(U,R),U}function w(U,R){if(t.isBuffer(R)){var f=P(R.length)|0;return U=s(U,f),U.length===0||R.copy(U,0,0,f),U}if(R){if(typeof ArrayBuffer!="undefined"&&R.buffer instanceof ArrayBuffer||"length"in R)return typeof R.length!="number"||oe(R.length)?s(U,0):g(U,R);if(R.type==="Buffer"&&d(R.data))return g(U,R.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function P(U){if(U>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return U|0}function x(U){return+U!=U&&(U=0),t.alloc(+U)}t.isBuffer=function(R){return!!(R!=null&&R._isBuffer)},t.compare=function(R,f){if(!t.isBuffer(R)||!t.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(R===f)return 0;for(var S=R.length,Z=f.length,Y=0,ne=Math.min(S,Z);Y<ne;++Y)if(R[Y]!==f[Y]){S=R[Y],Z=f[Y];break}return S<Z?-1:Z<S?1:0},t.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(R,f){if(!d(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return t.alloc(0);var S;if(f===void 0)for(f=0,S=0;S<R.length;++S)f+=R[S].length;var Z=t.allocUnsafe(f),Y=0;for(S=0;S<R.length;++S){var ne=R[S];if(!t.isBuffer(ne))throw new TypeError('"list" argument must be an Array of Buffers');ne.copy(Z,Y),Y+=ne.length}return Z};function D(U,R){if(t.isBuffer(U))return U.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(U)||U instanceof ArrayBuffer))return U.byteLength;typeof U!="string"&&(U=""+U);var f=U.length;if(f===0)return 0;for(var S=!1;;)switch(R){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":case void 0:return te(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return G(U).length;default:if(S)return te(U).length;R=(""+R).toLowerCase(),S=!0}}t.byteLength=D;function C(U,R,f){var S=!1;if((R===void 0||R<0)&&(R=0),R>this.length)return"";if((f===void 0||f>this.length)&&(f=this.length),f<=0)return"";if(f>>>=0,R>>>=0,f<=R)return"";for(U||(U="utf8");;)switch(U){case"hex":return B(this,R,f);case"utf8":case"utf-8":return Q(this,R,f);case"ascii":return W(this,R,f);case"latin1":case"binary":return N(this,R,f);case"base64":return H(this,R,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,R,f);default:if(S)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),S=!0}}t.prototype._isBuffer=!0;function T(U,R,f){var S=U[R];U[R]=U[f],U[f]=S}t.prototype.swap16=function(){var R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<R;f+=2)T(this,f,f+1);return this},t.prototype.swap32=function(){var R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<R;f+=4)T(this,f,f+3),T(this,f+1,f+2);return this},t.prototype.swap64=function(){var R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<R;f+=8)T(this,f,f+7),T(this,f+1,f+6),T(this,f+2,f+5),T(this,f+3,f+4);return this},t.prototype.toString=function(){var R=this.length|0;return R===0?"":arguments.length===0?Q(this,0,R):C.apply(this,arguments)},t.prototype.equals=function(R){if(!t.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:t.compare(this,R)===0},t.prototype.inspect=function(){var R="",f=c.INSPECT_MAX_BYTES;return this.length>0&&(R=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(R+=" ... ")),"<Buffer "+R+">"},t.prototype.compare=function(R,f,S,Z,Y){if(!t.isBuffer(R))throw new TypeError("Argument must be a Buffer");if(f===void 0&&(f=0),S===void 0&&(S=R?R.length:0),Z===void 0&&(Z=0),Y===void 0&&(Y=this.length),f<0||S>R.length||Z<0||Y>this.length)throw new RangeError("out of range index");if(Z>=Y&&f>=S)return 0;if(Z>=Y)return-1;if(f>=S)return 1;if(f>>>=0,S>>>=0,Z>>>=0,Y>>>=0,this===R)return 0;for(var ne=Y-Z,he=S-f,ve=Math.min(ne,he),we=this.slice(Z,Y),Ce=R.slice(f,S),Se=0;Se<ve;++Se)if(we[Se]!==Ce[Se]){ne=we[Se],he=Ce[Se];break}return ne<he?-1:he<ne?1:0};function m(U,R,f,S,Z){if(U.length===0)return-1;if(typeof f=="string"?(S=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,isNaN(f)&&(f=Z?0:U.length-1),f<0&&(f=U.length+f),f>=U.length){if(Z)return-1;f=U.length-1}else if(f<0)if(Z)f=0;else return-1;if(typeof R=="string"&&(R=t.from(R,S)),t.isBuffer(R))return R.length===0?-1:r(U,R,f,S,Z);if(typeof R=="number")return R=R&255,t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(U,R,f):Uint8Array.prototype.lastIndexOf.call(U,R,f):r(U,[R],f,S,Z);throw new TypeError("val must be string, number or Buffer")}function r(U,R,f,S,Z){var Y=1,ne=U.length,he=R.length;if(S!==void 0&&(S=String(S).toLowerCase(),S==="ucs2"||S==="ucs-2"||S==="utf16le"||S==="utf-16le")){if(U.length<2||R.length<2)return-1;Y=2,ne/=2,he/=2,f/=2}function ve(Xe,ue){return Y===1?Xe[ue]:Xe.readUInt16BE(ue*Y)}var we;if(Z){var Ce=-1;for(we=f;we<ne;we++)if(ve(U,we)===ve(R,Ce===-1?0:we-Ce)){if(Ce===-1&&(Ce=we),we-Ce+1===he)return Ce*Y}else Ce!==-1&&(we-=we-Ce),Ce=-1}else for(f+he>ne&&(f=ne-he),we=f;we>=0;we--){for(var Se=!0,De=0;De<he;De++)if(ve(U,we+De)!==ve(R,De)){Se=!1;break}if(Se)return we}return-1}t.prototype.includes=function(R,f,S){return this.indexOf(R,f,S)!==-1},t.prototype.indexOf=function(R,f,S){return m(this,R,f,S,!0)},t.prototype.lastIndexOf=function(R,f,S){return m(this,R,f,S,!1)};function L(U,R,f,S){f=Number(f)||0;var Z=U.length-f;S?(S=Number(S),S>Z&&(S=Z)):S=Z;var Y=R.length;if(Y%2!==0)throw new TypeError("Invalid hex string");S>Y/2&&(S=Y/2);for(var ne=0;ne<S;++ne){var he=parseInt(R.substr(ne*2,2),16);if(isNaN(he))return ne;U[f+ne]=he}return ne}function M(U,R,f,S){return X(te(R,U.length-f),U,f,S)}function u(U,R,f,S){return X(ae(R),U,f,S)}function j(U,R,f,S){return u(U,R,f,S)}function O(U,R,f,S){return X(G(R),U,f,S)}function k(U,R,f,S){return X(fe(R,U.length-f),U,f,S)}t.prototype.write=function(R,f,S,Z){if(f===void 0)Z="utf8",S=this.length,f=0;else if(S===void 0&&typeof f=="string")Z=f,S=this.length,f=0;else if(isFinite(f))f=f|0,isFinite(S)?(S=S|0,Z===void 0&&(Z="utf8")):(Z=S,S=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Y=this.length-f;if((S===void 0||S>Y)&&(S=Y),R.length>0&&(S<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");Z||(Z="utf8");for(var ne=!1;;)switch(Z){case"hex":return L(this,R,f,S);case"utf8":case"utf-8":return M(this,R,f,S);case"ascii":return u(this,R,f,S);case"latin1":case"binary":return j(this,R,f,S);case"base64":return O(this,R,f,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,R,f,S);default:if(ne)throw new TypeError("Unknown encoding: "+Z);Z=(""+Z).toLowerCase(),ne=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(U,R,f){return R===0&&f===U.length?_.fromByteArray(U):_.fromByteArray(U.slice(R,f))}function Q(U,R,f){f=Math.min(U.length,f);for(var S=[],Z=R;Z<f;){var Y=U[Z],ne=null,he=Y>239?4:Y>223?3:Y>191?2:1;if(Z+he<=f){var ve,we,Ce,Se;switch(he){case 1:Y<128&&(ne=Y);break;case 2:ve=U[Z+1],(ve&192)===128&&(Se=(Y&31)<<6|ve&63,Se>127&&(ne=Se));break;case 3:ve=U[Z+1],we=U[Z+2],(ve&192)===128&&(we&192)===128&&(Se=(Y&15)<<12|(ve&63)<<6|we&63,Se>2047&&(Se<55296||Se>57343)&&(ne=Se));break;case 4:ve=U[Z+1],we=U[Z+2],Ce=U[Z+3],(ve&192)===128&&(we&192)===128&&(Ce&192)===128&&(Se=(Y&15)<<18|(ve&63)<<12|(we&63)<<6|Ce&63,Se>65535&&Se<1114112&&(ne=Se))}}ne===null?(ne=65533,he=1):ne>65535&&(ne-=65536,S.push(ne>>>10&1023|55296),ne=56320|ne&1023),S.push(ne),Z+=he}return q(S)}var F=4096;function q(U){var R=U.length;if(R<=F)return String.fromCharCode.apply(String,U);for(var f="",S=0;S<R;)f+=String.fromCharCode.apply(String,U.slice(S,S+=F));return f}function W(U,R,f){var S="";f=Math.min(U.length,f);for(var Z=R;Z<f;++Z)S+=String.fromCharCode(U[Z]&127);return S}function N(U,R,f){var S="";f=Math.min(U.length,f);for(var Z=R;Z<f;++Z)S+=String.fromCharCode(U[Z]);return S}function B(U,R,f){var S=U.length;(!R||R<0)&&(R=0),(!f||f<0||f>S)&&(f=S);for(var Z="",Y=R;Y<f;++Y)Z+=ee(U[Y]);return Z}function $(U,R,f){for(var S=U.slice(R,f),Z="",Y=0;Y<S.length;Y+=2)Z+=String.fromCharCode(S[Y]+S[Y+1]*256);return Z}t.prototype.slice=function(R,f){var S=this.length;R=~~R,f=f===void 0?S:~~f,R<0?(R+=S,R<0&&(R=0)):R>S&&(R=S),f<0?(f+=S,f<0&&(f=0)):f>S&&(f=S),f<R&&(f=R);var Z;if(t.TYPED_ARRAY_SUPPORT)Z=this.subarray(R,f),Z.__proto__=t.prototype;else{var Y=f-R;Z=new t(Y,void 0);for(var ne=0;ne<Y;++ne)Z[ne]=this[ne+R]}return Z};function I(U,R,f){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+R>f)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUIntLE=function(R,f,S){R=R|0,f=f|0,S||I(R,f,this.length);for(var Z=this[R],Y=1,ne=0;++ne<f&&(Y*=256);)Z+=this[R+ne]*Y;return Z},t.prototype.readUIntBE=function(R,f,S){R=R|0,f=f|0,S||I(R,f,this.length);for(var Z=this[R+--f],Y=1;f>0&&(Y*=256);)Z+=this[R+--f]*Y;return Z},t.prototype.readUInt8=function(R,f){return f||I(R,1,this.length),this[R]},t.prototype.readUInt16LE=function(R,f){return f||I(R,2,this.length),this[R]|this[R+1]<<8},t.prototype.readUInt16BE=function(R,f){return f||I(R,2,this.length),this[R]<<8|this[R+1]},t.prototype.readUInt32LE=function(R,f){return f||I(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},t.prototype.readUInt32BE=function(R,f){return f||I(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},t.prototype.readIntLE=function(R,f,S){R=R|0,f=f|0,S||I(R,f,this.length);for(var Z=this[R],Y=1,ne=0;++ne<f&&(Y*=256);)Z+=this[R+ne]*Y;return Y*=128,Z>=Y&&(Z-=Math.pow(2,8*f)),Z},t.prototype.readIntBE=function(R,f,S){R=R|0,f=f|0,S||I(R,f,this.length);for(var Z=f,Y=1,ne=this[R+--Z];Z>0&&(Y*=256);)ne+=this[R+--Z]*Y;return Y*=128,ne>=Y&&(ne-=Math.pow(2,8*f)),ne},t.prototype.readInt8=function(R,f){return f||I(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},t.prototype.readInt16LE=function(R,f){f||I(R,2,this.length);var S=this[R]|this[R+1]<<8;return S&32768?S|4294901760:S},t.prototype.readInt16BE=function(R,f){f||I(R,2,this.length);var S=this[R+1]|this[R]<<8;return S&32768?S|4294901760:S},t.prototype.readInt32LE=function(R,f){return f||I(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},t.prototype.readInt32BE=function(R,f){return f||I(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},t.prototype.readFloatLE=function(R,f){return f||I(R,4,this.length),y.read(this,R,!0,23,4)},t.prototype.readFloatBE=function(R,f){return f||I(R,4,this.length),y.read(this,R,!1,23,4)},t.prototype.readDoubleLE=function(R,f){return f||I(R,8,this.length),y.read(this,R,!0,52,8)},t.prototype.readDoubleBE=function(R,f){return f||I(R,8,this.length),y.read(this,R,!1,52,8)};function A(U,R,f,S,Z,Y){if(!t.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>Z||R<Y)throw new RangeError('"value" argument is out of bounds');if(f+S>U.length)throw new RangeError("Index out of range")}t.prototype.writeUIntLE=function(R,f,S,Z){if(R=+R,f=f|0,S=S|0,!Z){var Y=Math.pow(2,8*S)-1;A(this,R,f,S,Y,0)}var ne=1,he=0;for(this[f]=R&255;++he<S&&(ne*=256);)this[f+he]=R/ne&255;return f+S},t.prototype.writeUIntBE=function(R,f,S,Z){if(R=+R,f=f|0,S=S|0,!Z){var Y=Math.pow(2,8*S)-1;A(this,R,f,S,Y,0)}var ne=S-1,he=1;for(this[f+ne]=R&255;--ne>=0&&(he*=256);)this[f+ne]=R/he&255;return f+S},t.prototype.writeUInt8=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,1,255,0),t.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),this[f]=R&255,f+1};function z(U,R,f,S){R<0&&(R=65535+R+1);for(var Z=0,Y=Math.min(U.length-f,2);Z<Y;++Z)U[f+Z]=(R&255<<8*(S?Z:1-Z))>>>(S?Z:1-Z)*8}t.prototype.writeUInt16LE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[f]=R&255,this[f+1]=R>>>8):z(this,R,f,!0),f+2},t.prototype.writeUInt16BE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[f]=R>>>8,this[f+1]=R&255):z(this,R,f,!1),f+2};function K(U,R,f,S){R<0&&(R=4294967295+R+1);for(var Z=0,Y=Math.min(U.length-f,4);Z<Y;++Z)U[f+Z]=R>>>(S?Z:3-Z)*8&255}t.prototype.writeUInt32LE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[f+3]=R>>>24,this[f+2]=R>>>16,this[f+1]=R>>>8,this[f]=R&255):K(this,R,f,!0),f+4},t.prototype.writeUInt32BE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[f]=R>>>24,this[f+1]=R>>>16,this[f+2]=R>>>8,this[f+3]=R&255):K(this,R,f,!1),f+4},t.prototype.writeIntLE=function(R,f,S,Z){if(R=+R,f=f|0,!Z){var Y=Math.pow(2,8*S-1);A(this,R,f,S,Y-1,-Y)}var ne=0,he=1,ve=0;for(this[f]=R&255;++ne<S&&(he*=256);)R<0&&ve===0&&this[f+ne-1]!==0&&(ve=1),this[f+ne]=(R/he>>0)-ve&255;return f+S},t.prototype.writeIntBE=function(R,f,S,Z){if(R=+R,f=f|0,!Z){var Y=Math.pow(2,8*S-1);A(this,R,f,S,Y-1,-Y)}var ne=S-1,he=1,ve=0;for(this[f+ne]=R&255;--ne>=0&&(he*=256);)R<0&&ve===0&&this[f+ne+1]!==0&&(ve=1),this[f+ne]=(R/he>>0)-ve&255;return f+S},t.prototype.writeInt8=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,1,127,-128),t.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),R<0&&(R=255+R+1),this[f]=R&255,f+1},t.prototype.writeInt16LE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[f]=R&255,this[f+1]=R>>>8):z(this,R,f,!0),f+2},t.prototype.writeInt16BE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[f]=R>>>8,this[f+1]=R&255):z(this,R,f,!1),f+2},t.prototype.writeInt32LE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[f]=R&255,this[f+1]=R>>>8,this[f+2]=R>>>16,this[f+3]=R>>>24):K(this,R,f,!0),f+4},t.prototype.writeInt32BE=function(R,f,S){return R=+R,f=f|0,S||A(this,R,f,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),t.TYPED_ARRAY_SUPPORT?(this[f]=R>>>24,this[f+1]=R>>>16,this[f+2]=R>>>8,this[f+3]=R&255):K(this,R,f,!1),f+4};function V(U,R,f,S,Z,Y){if(f+S>U.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function re(U,R,f,S,Z){return Z||V(U,R,f,4,34028234663852886e22,-34028234663852886e22),y.write(U,R,f,S,23,4),f+4}t.prototype.writeFloatLE=function(R,f,S){return re(this,R,f,!0,S)},t.prototype.writeFloatBE=function(R,f,S){return re(this,R,f,!1,S)};function ie(U,R,f,S,Z){return Z||V(U,R,f,8,17976931348623157e292,-17976931348623157e292),y.write(U,R,f,S,52,8),f+8}t.prototype.writeDoubleLE=function(R,f,S){return ie(this,R,f,!0,S)},t.prototype.writeDoubleBE=function(R,f,S){return ie(this,R,f,!1,S)},t.prototype.copy=function(R,f,S,Z){if(S||(S=0),!Z&&Z!==0&&(Z=this.length),f>=R.length&&(f=R.length),f||(f=0),Z>0&&Z<S&&(Z=S),Z===S)return 0;if(R.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("sourceStart out of bounds");if(Z<0)throw new RangeError("sourceEnd out of bounds");Z>this.length&&(Z=this.length),R.length-f<Z-S&&(Z=R.length-f+S);var Y=Z-S,ne;if(this===R&&S<f&&f<Z)for(ne=Y-1;ne>=0;--ne)R[ne+f]=this[ne+S];else if(Y<1e3||!t.TYPED_ARRAY_SUPPORT)for(ne=0;ne<Y;++ne)R[ne+f]=this[ne+S];else Uint8Array.prototype.set.call(R,this.subarray(S,S+Y),f);return Y},t.prototype.fill=function(R,f,S,Z){if(typeof R=="string"){if(typeof f=="string"?(Z=f,f=0,S=this.length):typeof S=="string"&&(Z=S,S=this.length),R.length===1){var Y=R.charCodeAt(0);Y<256&&(R=Y)}if(Z!==void 0&&typeof Z!="string")throw new TypeError("encoding must be a string");if(typeof Z=="string"&&!t.isEncoding(Z))throw new TypeError("Unknown encoding: "+Z)}else typeof R=="number"&&(R=R&255);if(f<0||this.length<f||this.length<S)throw new RangeError("Out of range index");if(S<=f)return this;f=f>>>0,S=S===void 0?this.length:S>>>0,R||(R=0);var ne;if(typeof R=="number")for(ne=f;ne<S;++ne)this[ne]=R;else{var he=t.isBuffer(R)?R:te(new t(R,Z).toString()),ve=he.length;for(ne=0;ne<S-f;++ne)this[ne+f]=he[ne%ve]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function ce(U){if(U=se(U).replace(J,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function se(U){return U.trim?U.trim():U.replace(/^\s+|\s+$/g,"")}function ee(U){return U<16?"0"+U.toString(16):U.toString(16)}function te(U,R){R=R||Infinity;for(var f,S=U.length,Z=null,Y=[],ne=0;ne<S;++ne){if(f=U.charCodeAt(ne),f>55295&&f<57344){if(!Z){if(f>56319){(R-=3)>-1&&Y.push(239,191,189);continue}else if(ne+1===S){(R-=3)>-1&&Y.push(239,191,189);continue}Z=f;continue}if(f<56320){(R-=3)>-1&&Y.push(239,191,189),Z=f;continue}f=(Z-55296<<10|f-56320)+65536}else Z&&((R-=3)>-1&&Y.push(239,191,189));if(Z=null,f<128){if((R-=1)<0)break;Y.push(f)}else if(f<2048){if((R-=2)<0)break;Y.push(f>>6|192,f&63|128)}else if(f<65536){if((R-=3)<0)break;Y.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((R-=4)<0)break;Y.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return Y}function ae(U){for(var R=[],f=0;f<U.length;++f)R.push(U.charCodeAt(f)&255);return R}function fe(U,R){for(var f,S,Z,Y=[],ne=0;ne<U.length&&!((R-=2)<0);++ne)f=U.charCodeAt(ne),S=f>>8,Z=f%256,Y.push(Z),Y.push(S);return Y}function G(U){return _.toByteArray(ce(U))}function X(U,R,f,S){for(var Z=0;Z<S&&!(Z+f>=R.length||Z>=U.length);++Z)R[Z+f]=U[Z];return Z}function oe(U){return U!==U}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(e,b,c){b.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"}},{}],75:[function(e,b,c){b.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}},{}],76:[function(e,b,c){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var i=Array.prototype.slice;b.exports=t;function t(y,d){if(!(this instanceof t))return new t(y,d);this.src=y,this._withAccess=d}t.prototype.withAccess=function(y){return this._withAccess=y!==!1,this},t.prototype.pick=function(y){return Array.isArray(y)||(y=i.call(arguments)),y.length&&(this.keys=y),this},t.prototype.to=function(y){if(y=y||{},!this.src)return y;var d=this.keys||Object.keys(this.src);if(!this._withAccess){for(var h=0;h<d.length;h++){if(n=d[h],y[n]!==void 0)continue;y[n]=this.src[n]}return y}for(var h=0;h<d.length;h++){var n=d[h];if(!_(y,n))continue;var s=this.src.__lookupGetter__(n),l=this.src.__lookupSetter__(n);s&&y.__defineGetter__(n,s),l&&y.__defineSetter__(n,l),!s&&!l&&(y[n]=this.src[n])}return y},t.prototype.toCover=function(y){for(var d=this.keys||Object.keys(this.src),h=0;h<d.length;h++){var n=d[h];delete y[n];var s=this.src.__lookupGetter__(n),l=this.src.__lookupSetter__(n);s&&y.__defineGetter__(n,s),l&&y.__defineSetter__(n,l),!s&&!l&&(y[n]=this.src[n])}},t.prototype.override=t.prototype.toCover,t.prototype.and=function(y){var d={};return this.to(d),this.src=y,this.to(d),this.src=d,this};function _(y,d){return y[d]===void 0&&y.__lookupGetter__(d)===void 0&&y.__lookupSetter__(d)===void 0}},{}],77:[function(e,b,c){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),b.exports=e("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(e,b,c){var i=e("../../modules/_core"),t=i.JSON||(i.JSON={stringify:JSON.stringify});b.exports=function(y){return t.stringify.apply(t,arguments)}},{"../../modules/_core":99}],79:[function(e,b,c){e("../../modules/es6.object.assign"),b.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(e,b,c){e("../../modules/es6.object.create");var i=e("../../modules/_core").Object;b.exports=function(_,y){return i.create(_,y)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(e,b,c){e("../../modules/es6.object.define-property");var i=e("../../modules/_core").Object;b.exports=function(_,y,d){return i.defineProperty(_,y,d)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(e,b,c){e("../../modules/es7.object.entries"),b.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(e,b,c){e("../../modules/es6.object.get-own-property-names");var i=e("../../modules/_core").Object;b.exports=function(_){return i.getOwnPropertyNames(_)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(e,b,c){e("../../modules/es6.object.get-prototype-of"),b.exports=e("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(e,b,c){e("../../modules/es6.object.keys"),b.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(e,b,c){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),b.exports=e("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(e,b,c){e("../modules/web.immediate"),b.exports=e("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(e,b,c){e("../../modules/es6.string.from-code-point"),b.exports=e("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(e,b,c){e("../../modules/es6.function.has-instance"),b.exports=e("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(e,b,c){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),b.exports=e("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(e,b,c){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),b.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(e,b,c){b.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},{}],93:[function(e,b,c){b.exports=function(){}},{}],94:[function(e,b,c){b.exports=function(i,t,_,y){if(!(i instanceof t)||y!==void 0&&y in i)throw TypeError(_+": incorrect invocation!");return i}},{}],95:[function(e,b,c){var i=e("./_is-object");b.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":119}],96:[function(e,b,c){var i=e("./_to-iobject"),t=e("./_to-length"),_=e("./_to-absolute-index");b.exports=function(y){return function(d,h,n){var s=i(d),l=t(s.length),a=_(n,l),o;if(y&&h!=h){for(;l>a;)if(o=s[a++],o!=o)return!0}else for(;l>a;a++)if((y||a in s)&&s[a]===h)return y||a||0;return!y&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(e,b,c){var i=e("./_cof"),t=e("./_wks")("toStringTag"),_=i(function(){return arguments}())=="Arguments",y=function(h,n){try{return h[n]}catch(s){}};b.exports=function(d){var h,n,s;return d===void 0?"Undefined":d===null?"Null":typeof(n=y(h=Object(d),t))=="string"?n:_?i(h):(s=i(h))=="Object"&&typeof h.callee=="function"?"Arguments":s}},{"./_cof":98,"./_wks":166}],98:[function(e,b,c){var i={}.toString;b.exports=function(t){return i.call(t).slice(8,-1)}},{}],99:[function(e,b,c){var i=b.exports={version:"2.6.11"};typeof __e=="number"&&(__e=i)},{}],100:[function(e,b,c){"use strict";var i=e("./_object-dp"),t=e("./_property-desc");b.exports=function(_,y,d){y in _?i.f(_,y,t(0,d)):_[y]=d}},{"./_object-dp":132,"./_property-desc":146}],101:[function(e,b,c){var i=e("./_a-function");b.exports=function(t,_,y){if(i(t),_===void 0)return t;switch(y){case 1:return function(d){return t.call(_,d)};case 2:return function(d,h){return t.call(_,d,h)};case 3:return function(d,h,n){return t.call(_,d,h,n)}}return function(){return t.apply(_,arguments)}}},{"./_a-function":92}],102:[function(e,b,c){b.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},{}],103:[function(e,b,c){b.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(e,b,c){var i=e("./_is-object"),t=e("./_global").document,_=i(t)&&i(t.createElement);b.exports=function(y){return _?t.createElement(y):{}}},{"./_global":110,"./_is-object":119}],105:[function(e,b,c){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(e,b,c){var i=e("./_object-keys"),t=e("./_object-gops"),_=e("./_object-pie");b.exports=function(y){var d=i(y),h=t.f;if(h)for(var n=h(y),s=_.f,l=0,a;n.length>l;)s.call(y,a=n[l++])&&d.push(a);return d}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(e,b,c){var i=e("./_global"),t=e("./_core"),_=e("./_ctx"),y=e("./_hide"),d=e("./_has"),h="prototype",n=function s(l,a,o){var v=l&s.F,p=l&s.G,g=l&s.S,E=l&s.P,w=l&s.B,P=l&s.W,x=p?t:t[a]||(t[a]={}),D=x[h],C=p?i:g?i[a]:(i[a]||{})[h],T,m,r;p&&(o=a);for(T in o){if(m=!v&&C&&C[T]!==void 0,m&&d(x,T))continue;r=m?C[T]:o[T],x[T]=p&&typeof C[T]!="function"?o[T]:w&&m?_(r,i):P&&C[T]==r?function(L){var M=function(j,O,k){if(this instanceof L){switch(arguments.length){case 0:return new L;case 1:return new L(j);case 2:return new L(j,O)}return new L(j,O,k)}return L.apply(this,arguments)};return M[h]=L[h],M}(r):E&&typeof r=="function"?_(Function.call,r):r,E&&((x.virtual||(x.virtual={}))[T]=r,l&s.R&&D&&!D[T]&&y(D,T,r))}};n.F=1,n.G=2,n.S=4,n.P=8,n.B=16,n.W=32,n.U=64,n.R=128,b.exports=n},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(e,b,c){b.exports=function(i){try{return!!i()}catch(t){return!0}}},{}],109:[function(e,b,c){var i=e("./_ctx"),t=e("./_iter-call"),_=e("./_is-array-iter"),y=e("./_an-object"),d=e("./_to-length"),h=e("./core.get-iterator-method"),n={},s={},c=b.exports=function(l,a,o,v,p){var g=p?function(){return l}:h(l),E=i(o,v,a?2:1),w=0,P,x,D,C;if(typeof g!="function")throw TypeError(l+" is not iterable!");if(_(g)){for(P=d(l.length);P>w;w++)if(C=a?E(y(x=l[w])[0],x[1]):E(l[w]),C===n||C===s)return C}else for(D=g.call(l);!(x=D.next()).done;)if(C=t(D,E,x.value,a),C===n||C===s)return C};c.BREAK=n,c.RETURN=s},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(e,b,c){var i=b.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},{}],111:[function(e,b,c){var i={}.hasOwnProperty;b.exports=function(t,_){return i.call(t,_)}},{}],112:[function(e,b,c){var i=e("./_object-dp"),t=e("./_property-desc");b.exports=e("./_descriptors")?function(_,y,d){return i.f(_,y,t(1,d))}:function(_,y,d){return _[y]=d,_}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(e,b,c){var i=e("./_global").document;b.exports=i&&i.documentElement},{"./_global":110}],114:[function(e,b,c){b.exports=!e("./_descriptors")&&!e("./_fails")(function(){return Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(e,b,c){b.exports=function(i,t,_){var y=_===void 0;switch(t.length){case 0:return y?i():i.call(_);case 1:return y?i(t[0]):i.call(_,t[0]);case 2:return y?i(t[0],t[1]):i.call(_,t[0],t[1]);case 3:return y?i(t[0],t[1],t[2]):i.call(_,t[0],t[1],t[2]);case 4:return y?i(t[0],t[1],t[2],t[3]):i.call(_,t[0],t[1],t[2],t[3])}return i.apply(_,t)}},{}],116:[function(e,b,c){var i=e("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return i(t)=="String"?t.split(""):Object(t)}},{"./_cof":98}],117:[function(e,b,c){var i=e("./_iterators"),t=e("./_wks")("iterator"),_=Array.prototype;b.exports=function(y){return y!==void 0&&(i.Array===y||_[t]===y)}},{"./_iterators":125,"./_wks":166}],118:[function(e,b,c){var i=e("./_cof");b.exports=Array.isArray||function(_){return i(_)=="Array"}},{"./_cof":98}],119:[function(e,b,c){b.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},{}],120:[function(e,b,c){var i=e("./_an-object");b.exports=function(t,_,y,d){try{return d?_(i(y)[0],y[1]):_(y)}catch(n){var h=t.return;throw h!==void 0&&i(h.call(t)),n}}},{"./_an-object":95}],121:[function(e,b,c){"use strict";var i=e("./_object-create"),t=e("./_property-desc"),_=e("./_set-to-string-tag"),y={};e("./_hide")(y,e("./_wks")("iterator"),function(){return this}),b.exports=function(d,h,n){d.prototype=i(y,{next:t(1,n)}),_(d,h+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(e,b,c){"use strict";var i=e("./_library"),t=e("./_export"),_=e("./_redefine"),y=e("./_hide"),d=e("./_iterators"),h=e("./_iter-create"),n=e("./_set-to-string-tag"),s=e("./_object-gpo"),l=e("./_wks")("iterator"),a=!([].keys&&"next"in[].keys()),o="@@iterator",v="keys",p="values",g=function(){return this};b.exports=function(E,w,P,x,D,C,T){h(P,w,x);var m=function(N){if(!a&&N in u)return u[N];switch(N){case v:return function(){return new P(this,N)};case p:return function(){return new P(this,N)}}return function(){return new P(this,N)}},r=w+" Iterator",L=D==p,M=!1,u=E.prototype,j=u[l]||u[o]||D&&u[D],O=j||m(D),k=D?L?m("entries"):O:void 0,H=w=="Array"&&u.entries||j,Q,F,q;if(H&&(q=s(H.call(new E)),q!==Object.prototype&&q.next&&(n(q,r,!0),!i&&typeof q[l]!="function"&&y(q,l,g))),L&&j&&j.name!==p&&(M=!0,O=function(){return j.call(this)}),(!i||T)&&(a||M||!u[l])&&y(u,l,O),d[w]=O,d[r]=g,D)if(Q={values:L?O:m(p),keys:C?O:m(v),entries:k},T)for(F in Q)F in u||_(u,F,Q[F]);else t(t.P+t.F*(a||M),w,Q);return Q}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(e,b,c){var i=e("./_wks")("iterator"),t=!1;try{var _=[7][i]();_.return=function(){t=!0},Array.from(_,function(){throw 2})}catch(y){}b.exports=function(y,d){if(!d&&!t)return!1;var h=!1;try{var n=[7],s=n[i]();s.next=function(){return{done:h=!0}},n[i]=function(){return s},y(n)}catch(l){}return h}},{"./_wks":166}],124:[function(e,b,c){b.exports=function(i,t){return{value:t,done:!!i}}},{}],125:[function(e,b,c){b.exports={}},{}],126:[function(e,b,c){b.exports=!0},{}],127:[function(e,b,c){var i=e("./_uid")("meta"),t=e("./_is-object"),_=e("./_has"),y=e("./_object-dp").f,d=0,h=Object.isExtensible||function(){return!0},n=!e("./_fails")(function(){return h(Object.preventExtensions({}))}),s=function(g){y(g,i,{value:{i:"O"+ ++d,w:{}}})},l=function(g,E){if(!t(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!_(g,i)){if(!h(g))return"F";if(!E)return"E";s(g)}return g[i].i},a=function(g,E){if(!_(g,i)){if(!h(g))return!0;if(!E)return!1;s(g)}return g[i].w},o=function(g){return n&&v.NEED&&h(g)&&!_(g,i)&&s(g),g},v=b.exports={KEY:i,NEED:!1,fastKey:l,getWeak:a,onFreeze:o}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(e,b,c){var i=e("./_global"),t=e("./_task").set,_=i.MutationObserver||i.WebKitMutationObserver,y=i.process,d=i.Promise,h=e("./_cof")(y)=="process";b.exports=function(){var n,s,l,a=function(){var E,w;for(h&&(E=y.domain)&&E.exit();n;){w=n.fn,n=n.next;try{w()}catch(P){throw n?l():s=void 0,P}}s=void 0,E&&E.enter()};if(h)l=function(){y.nextTick(a)};else if(_&&!(i.navigator&&i.navigator.standalone)){var o=!0,v=document.createTextNode("");new _(a).observe(v,{characterData:!0}),l=function(){v.data=o=!o}}else if(d&&d.resolve){var p=d.resolve(void 0);l=function(){p.then(a)}}else l=function(){t.call(i,a)};return function(g){var E={fn:g,next:void 0};s&&(s.next=E),n||(n=E,l()),s=E}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(e,b,c){"use strict";var i=e("./_a-function");function t(_){var y,d;this.promise=new _(function(h,n){if(y!==void 0||d!==void 0)throw TypeError("Bad Promise constructor");y=h,d=n}),this.resolve=i(y),this.reject=i(d)}b.exports.f=function(_){return new t(_)}},{"./_a-function":92}],130:[function(e,b,c){"use strict";var i=e("./_descriptors"),t=e("./_object-keys"),_=e("./_object-gops"),y=e("./_object-pie"),d=e("./_to-object"),h=e("./_iobject"),n=Object.assign;b.exports=!n||e("./_fails")(function(){var s={},l={},a=Symbol(),o="abcdefghijklmnopqrst";return s[a]=7,o.split("").forEach(function(v){l[v]=v}),n({},s)[a]!=7||Object.keys(n({},l)).join("")!=o})?function(l,a){for(var o=d(l),v=arguments.length,p=1,g=_.f,E=y.f;v>p;)for(var w=h(arguments[p++]),P=g?t(w).concat(g(w)):t(w),x=P.length,D=0,C;x>D;)C=P[D++],(!i||E.call(w,C))&&(o[C]=w[C]);return o}:n},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(e,b,c){var i=e("./_an-object"),t=e("./_object-dps"),_=e("./_enum-bug-keys"),y=e("./_shared-key")("IE_PROTO"),d=function(){},h="prototype",n=function(){var l=e("./_dom-create")("iframe"),a=_.length,o="<",v=">",p;for(l.style.display="none",e("./_html").appendChild(l),l.src="javascript:",p=l.contentWindow.document,p.open(),p.write(o+"script"+v+"document.F=Object"+o+"/script"+v),p.close(),n=p.F;a--;)delete n[h][_[a]];return n()};b.exports=Object.create||function(l,a){var o;return l!==null?(d[h]=i(l),o=new d,d[h]=null,o[y]=l):o=n(),a===void 0?o:t(o,a)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(e,b,c){var i=e("./_an-object"),t=e("./_ie8-dom-define"),_=e("./_to-primitive"),y=Object.defineProperty;c.f=e("./_descriptors")?Object.defineProperty:function(h,n,s){if(i(h),n=_(n,!0),i(s),t)try{return y(h,n,s)}catch(l){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(h[n]=s.value),h}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(e,b,c){var i=e("./_object-dp"),t=e("./_an-object"),_=e("./_object-keys");b.exports=e("./_descriptors")?Object.defineProperties:function(d,h){t(d);for(var n=_(h),s=n.length,l=0,a;s>l;)i.f(d,a=n[l++],h[a]);return d}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(e,b,c){var i=e("./_object-pie"),t=e("./_property-desc"),_=e("./_to-iobject"),y=e("./_to-primitive"),d=e("./_has"),h=e("./_ie8-dom-define"),n=Object.getOwnPropertyDescriptor;c.f=e("./_descriptors")?n:function(l,a){if(l=_(l),a=y(a,!0),h)try{return n(l,a)}catch(o){}if(d(l,a))return t(!i.f.call(l,a),l[a])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(e,b,c){var i=e("./_to-iobject"),t=e("./_object-gopn").f,_={}.toString,y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(n){try{return t(n)}catch(s){return y.slice()}};b.exports.f=function(n){return y&&_.call(n)=="[object Window]"?d(n):t(i(n))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(e,b,c){var i=e("./_object-keys-internal"),t=e("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(y){return i(y,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(e,b,c){c.f=Object.getOwnPropertySymbols},{}],138:[function(e,b,c){var i=e("./_has"),t=e("./_to-object"),_=e("./_shared-key")("IE_PROTO"),y=Object.prototype;b.exports=Object.getPrototypeOf||function(d){return d=t(d),i(d,_)?d[_]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?y:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(e,b,c){var i=e("./_has"),t=e("./_to-iobject"),_=e("./_array-includes")(!1),y=e("./_shared-key")("IE_PROTO");b.exports=function(d,h){var n=t(d),s=0,l=[],a;for(a in n)a!=y&&(i(n,a)&&l.push(a));for(;h.length>s;)i(n,a=h[s++])&&(~_(l,a)||l.push(a));return l}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(e,b,c){var i=e("./_object-keys-internal"),t=e("./_enum-bug-keys");b.exports=Object.keys||function(y){return i(y,t)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(e,b,c){c.f={}.propertyIsEnumerable},{}],142:[function(e,b,c){var i=e("./_export"),t=e("./_core"),_=e("./_fails");b.exports=function(y,d){var h=(t.Object||{})[y]||Object[y],n={};n[y]=d(h),i(i.S+i.F*_(function(){h(1)}),"Object",n)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(e,b,c){var i=e("./_descriptors"),t=e("./_object-keys"),_=e("./_to-iobject"),y=e("./_object-pie").f;b.exports=function(d){return function(h){for(var n=_(h),s=t(n),l=s.length,a=0,o=[],v;l>a;)v=s[a++],(!i||y.call(n,v))&&o.push(d?[v,n[v]]:n[v]);return o}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(e,b,c){b.exports=function(i){try{return{e:!1,v:i()}}catch(t){return{e:!0,v:t}}}},{}],145:[function(e,b,c){var i=e("./_an-object"),t=e("./_is-object"),_=e("./_new-promise-capability");b.exports=function(y,d){if(i(y),t(d)&&d.constructor===y)return d;var h=_.f(y),n=h.resolve;return n(d),h.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(e,b,c){b.exports=function(i,t){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:t}}},{}],147:[function(e,b,c){var i=e("./_hide");b.exports=function(t,_,y){for(var d in _)y&&t[d]?t[d]=_[d]:i(t,d,_[d]);return t}},{"./_hide":112}],148:[function(e,b,c){b.exports=e("./_hide")},{"./_hide":112}],149:[function(e,b,c){"use strict";var i=e("./_global"),t=e("./_core"),_=e("./_object-dp"),y=e("./_descriptors"),d=e("./_wks")("species");b.exports=function(h){var n=typeof t[h]=="function"?t[h]:i[h];y&&n&&!n[d]&&_.f(n,d,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(e,b,c){var i=e("./_object-dp").f,t=e("./_has"),_=e("./_wks")("toStringTag");b.exports=function(y,d,h){y&&!t(y=h?y:y.prototype,_)&&i(y,_,{configurable:!0,value:d})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(e,b,c){var i=e("./_shared")("keys"),t=e("./_uid");b.exports=function(_){return i[_]||(i[_]=t(_))}},{"./_shared":152,"./_uid":162}],152:[function(e,b,c){var i=e("./_core"),t=e("./_global"),_="__core-js_shared__",y=t[_]||(t[_]={});(b.exports=function(d,h){return y[d]||(y[d]=h!==void 0?h:{})})("versions",[]).push({version:i.version,mode:e("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(e,b,c){var i=e("./_an-object"),t=e("./_a-function"),_=e("./_wks")("species");b.exports=function(y,d){var h=i(y).constructor,n;return h===void 0||(n=i(h)[_])==null?d:t(n)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(e,b,c){var i=e("./_to-integer"),t=e("./_defined");b.exports=function(_){return function(y,d){var h=String(t(y)),n=i(d),s=h.length,l,a;return n<0||n>=s?_?"":void 0:(l=h.charCodeAt(n),l<55296||l>56319||n+1===s||(a=h.charCodeAt(n+1))<56320||a>57343?_?h.charAt(n):l:_?h.slice(n,n+2):(l-55296<<10)+(a-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(e,b,c){var i=e("./_ctx"),t=e("./_invoke"),_=e("./_html"),y=e("./_dom-create"),d=e("./_global"),h=d.process,n=d.setImmediate,s=d.clearImmediate,l=d.MessageChannel,a=d.Dispatch,o=0,v={},p="onreadystatechange",g,E,w,P=function(){var C=+this;if(v.hasOwnProperty(C)){var T=v[C];delete v[C],T()}},x=function(C){P.call(C.data)};(!n||!s)&&(n=function(C){for(var T=[],m=1;arguments.length>m;)T.push(arguments[m++]);return v[++o]=function(){t(typeof C=="function"?C:Function(C),T)},g(o),o},s=function(C){delete v[C]},e("./_cof")(h)=="process"?g=function(C){h.nextTick(i(P,C,1))}:a&&a.now?g=function(C){a.now(i(P,C,1))}:l?(E=new l,w=E.port2,E.port1.onmessage=x,g=i(w.postMessage,w,1)):d.addEventListener&&typeof postMessage=="function"&&!d.importScripts?(g=function(C){d.postMessage(C+"","*")},d.addEventListener("message",x,!1)):p in y("script")?g=function(C){_.appendChild(y("script"))[p]=function(){_.removeChild(this),P.call(C)}}:g=function(C){setTimeout(i(P,C,1),0)}),b.exports={set:n,clear:s}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(e,b,c){var i=e("./_to-integer"),t=Math.max,_=Math.min;b.exports=function(y,d){return y=i(y),y<0?t(y+d,0):_(y,d)}},{"./_to-integer":157}],157:[function(e,b,c){var i=Math.ceil,t=Math.floor;b.exports=function(_){return isNaN(_=+_)?0:(_>0?t:i)(_)}},{}],158:[function(e,b,c){var i=e("./_iobject"),t=e("./_defined");b.exports=function(_){return i(t(_))}},{"./_defined":102,"./_iobject":116}],159:[function(e,b,c){var i=e("./_to-integer"),t=Math.min;b.exports=function(_){return _>0?t(i(_),9007199254740991):0}},{"./_to-integer":157}],160:[function(e,b,c){var i=e("./_defined");b.exports=function(t){return Object(i(t))}},{"./_defined":102}],161:[function(e,b,c){var i=e("./_is-object");b.exports=function(t,_){if(!i(t))return t;var y,d;if(_&&typeof(y=t.toString)=="function"&&!i(d=y.call(t)))return d;if(typeof(y=t.valueOf)=="function"&&!i(d=y.call(t)))return d;if(!_&&typeof(y=t.toString)=="function"&&!i(d=y.call(t)))return d;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(e,b,c){var i=0,t=Math.random();b.exports=function(_){return"Symbol(".concat(_===void 0?"":_,")_",(++i+t).toString(36))}},{}],163:[function(e,b,c){var i=e("./_global"),t=i.navigator;b.exports=t&&t.userAgent||""},{"./_global":110}],164:[function(e,b,c){var i=e("./_global"),t=e("./_core"),_=e("./_library"),y=e("./_wks-ext"),d=e("./_object-dp").f;b.exports=function(h){var n=t.Symbol||(t.Symbol=_?{}:i.Symbol||{});h.charAt(0)!="_"&&!(h in n)&&d(n,h,{value:y.f(h)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(e,b,c){c.f=e("./_wks")},{"./_wks":166}],166:[function(e,b,c){var i=e("./_shared")("wks"),t=e("./_uid"),_=e("./_global").Symbol,y=typeof _=="function",d=b.exports=function(h){return i[h]||(i[h]=y&&_[h]||(y?_:t)("Symbol."+h))};d.store=i},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(e,b,c){var i=e("./_classof"),t=e("./_wks")("iterator"),_=e("./_iterators");b.exports=e("./_core").getIteratorMethod=function(y){if(y!=null)return y[t]||y["@@iterator"]||_[i(y)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(e,b,c){"use strict";var i=e("./_ctx"),t=e("./_export"),_=e("./_to-object"),y=e("./_iter-call"),d=e("./_is-array-iter"),h=e("./_to-length"),n=e("./_create-property"),s=e("./core.get-iterator-method");t(t.S+t.F*!e("./_iter-detect")(function(l){Array.from(l)}),"Array",{from:function(a){var o=_(a),v=typeof this=="function"?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,E=g!==void 0,w=0,P=s(o),x,D,C,T;if(E&&(g=i(g,p>2?arguments[2]:void 0,2)),P!=null&&!(v==Array&&d(P)))for(T=P.call(o),D=new v;!(C=T.next()).done;w++)n(D,w,E?y(T,g,[C.value,w],!0):C.value);else for(x=h(o.length),D=new v(x);x>w;w++)n(D,w,E?g(o[w],w):o[w]);return D.length=w,D}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(e,b,c){"use strict";var i=e("./_add-to-unscopables"),t=e("./_iter-step"),_=e("./_iterators"),y=e("./_to-iobject");b.exports=e("./_iter-define")(Array,"Array",function(d,h){this._t=y(d),this._i=0,this._k=h},function(){var d=this._t,h=this._k,n=this._i++;return!d||n>=d.length?(this._t=void 0,t(1)):h=="keys"?t(0,n):h=="values"?t(0,d[n]):t(0,[n,d[n]])},"values"),_.Arguments=_.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(e,b,c){"use strict";var i=e("./_is-object"),t=e("./_object-gpo"),_=e("./_wks")("hasInstance"),y=Function.prototype;_ in y||e("./_object-dp").f(y,_,{value:function(h){if(typeof this!="function"||!i(h))return!1;if(!i(this.prototype))return h instanceof this;for(;h=t(h);)if(this.prototype===h)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(e,b,c){var i=e("./_export");i(i.S+i.F,"Object",{assign:e("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(e,b,c){var i=e("./_export");i(i.S,"Object",{create:e("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(e,b,c){var i=e("./_export");i(i.S+i.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(e,b,c){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(e,b,c){var i=e("./_to-object"),t=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(y){return t(i(y))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(e,b,c){var i=e("./_to-object"),t=e("./_object-keys");e("./_object-sap")("keys",function(){return function(y){return t(i(y))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(e,b,c){arguments[4][71][0].apply(c,arguments)},{dup:71}],178:[function(e,b,c){"use strict";var i=e("./_library"),t=e("./_global"),_=e("./_ctx"),y=e("./_classof"),d=e("./_export"),h=e("./_is-object"),n=e("./_a-function"),s=e("./_an-instance"),l=e("./_for-of"),a=e("./_species-constructor"),o=e("./_task").set,v=e("./_microtask")(),p=e("./_new-promise-capability"),g=e("./_perform"),E=e("./_user-agent"),w=e("./_promise-resolve"),P="Promise",x=t.TypeError,D=t.process,C=D&&D.versions,T=C&&C.v8||"",m=t[P],r=y(D)=="process",L=function(){},M,u,j,O,k=u=p.f,H=!!function(){try{var I=m.resolve(1),A=(I.constructor={})[e("./_wks")("species")]=function(z){z(L,L)};return(r||typeof PromiseRejectionEvent=="function")&&I.then(L)instanceof A&&T.indexOf("6.6")!==0&&E.indexOf("Chrome/66")===-1}catch(z){}}(),Q=function(A){var z;return h(A)&&typeof(z=A.then)=="function"?z:!1},F=function(A,z){if(A._n)return;A._n=!0;var K=A._c;v(function(){for(var V=A._v,re=A._s==1,ie=0,J=function(se){var ee=re?se.ok:se.fail,te=se.resolve,ae=se.reject,fe=se.domain,G,X,oe;try{ee?(re||(A._h==2&&N(A),A._h=1),ee===!0?G=V:(fe&&fe.enter(),G=ee(V),fe&&(fe.exit(),oe=!0)),G===se.promise?ae(x("Promise-chain cycle")):(X=Q(G))?X.call(G,te,ae):te(G)):ae(V)}catch(U){fe&&!oe&&fe.exit(),ae(U)}};K.length>ie;)J(K[ie++]);A._c=[],A._n=!1,z&&!A._h&&q(A)})},q=function(A){o.call(t,function(){var z=A._v,K=W(A),V,re,ie;if(K&&(V=g(function(){r?D.emit("unhandledRejection",z,A):(re=t.onunhandledrejection)?re({promise:A,reason:z}):(ie=t.console)&&ie.error&&ie.error("Unhandled promise rejection",z)}),A._h=r||W(A)?2:1),A._a=void 0,K&&V.e)throw V.v})},W=function(A){return A._h!==1&&(A._a||A._c).length===0},N=function(A){o.call(t,function(){var z;r?D.emit("rejectionHandled",A):(z=t.onrejectionhandled)&&z({promise:A,reason:A._v})})},B=function(A){var z=this;if(z._d)return;z._d=!0,z=z._w||z,z._v=A,z._s=2,z._a||(z._a=z._c.slice()),F(z,!0)},$=function I(A){var z=this,K;if(z._d)return;z._d=!0,z=z._w||z;try{if(z===A)throw x("Promise can't be resolved itself");(K=Q(A))?v(function(){var V={_w:z,_d:!1};try{K.call(A,_(I,V,1),_(B,V,1))}catch(re){B.call(V,re)}}):(z._v=A,z._s=1,F(z,!1))}catch(V){B.call({_w:z,_d:!1},V)}};H||(m=function(A){s(this,m,P,"_h"),n(A),M.call(this);try{A(_($,this,1),_(B,this,1))}catch(z){B.call(this,z)}},M=function(A){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},M.prototype=e("./_redefine-all")(m.prototype,{then:function(A,z){var K=k(a(this,m));return K.ok=typeof A=="function"?A:!0,K.fail=typeof z=="function"&&z,K.domain=r?D.domain:void 0,this._c.push(K),this._a&&this._a.push(K),this._s&&F(this,!1),K.promise},catch:function(A){return this.then(void 0,A)}}),j=function(){var A=new M;this.promise=A,this.resolve=_($,A,1),this.reject=_(B,A,1)},p.f=k=function(A){return A===m||A===O?new j(A):u(A)}),d(d.G+d.W+d.F*!H,{Promise:m}),e("./_set-to-string-tag")(m,P),e("./_set-species")(P),O=e("./_core")[P],d(d.S+d.F*!H,P,{reject:function(A){var z=k(this),K=z.reject;return K(A),z.promise}}),d(d.S+d.F*(i||!H),P,{resolve:function(A){return w(i&&this===O?m:this,A)}}),d(d.S+d.F*!(H&&e("./_iter-detect")(function(I){m.all(I).catch(L)})),P,{all:function(A){var z=this,K=k(z),V=K.resolve,re=K.reject,ie=g(function(){var J=[],ce=0,se=1;l(A,!1,function(ee){var te=ce++,ae=!1;J.push(void 0),se++,z.resolve(ee).then(function(fe){if(ae)return;ae=!0,J[te]=fe,--se||V(J)},re)}),--se||V(J)});return ie.e&&re(ie.v),K.promise},race:function(A){var z=this,K=k(z),V=K.reject,re=g(function(){l(A,!1,function(ie){z.resolve(ie).then(K.resolve,V)})});return re.e&&V(re.v),K.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(e,b,c){var i=e("./_export"),t=e("./_to-absolute-index"),_=String.fromCharCode,y=String.fromCodePoint;i(i.S+i.F*(!!y&&y.length!=1),"String",{fromCodePoint:function(h){for(var n=[],s=arguments.length,l=0,a;s>l;){if(a=+arguments[l++],t(a,1114111)!==a)throw RangeError(a+" is not a valid code point");n.push(a<65536?_(a):_(((a-=65536)>>10)+55296,a%1024+56320))}return n.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(e,b,c){"use strict";var i=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,_=this._i,y;return _>=t.length?{value:void 0,done:!0}:(y=i(t,_),this._i+=y.length,{value:y,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(e,b,c){"use strict";var i=e("./_global"),t=e("./_has"),_=e("./_descriptors"),y=e("./_export"),d=e("./_redefine"),h=e("./_meta").KEY,n=e("./_fails"),s=e("./_shared"),l=e("./_set-to-string-tag"),a=e("./_uid"),o=e("./_wks"),v=e("./_wks-ext"),p=e("./_wks-define"),g=e("./_enum-keys"),E=e("./_is-array"),w=e("./_an-object"),P=e("./_is-object"),x=e("./_to-object"),D=e("./_to-iobject"),C=e("./_to-primitive"),T=e("./_property-desc"),m=e("./_object-create"),r=e("./_object-gopn-ext"),L=e("./_object-gopd"),M=e("./_object-gops"),u=e("./_object-dp"),j=e("./_object-keys"),O=L.f,k=u.f,H=r.f,Q=i.Symbol,F=i.JSON,q=F&&F.stringify,W="prototype",N=o("_hidden"),B=o("toPrimitive"),$={}.propertyIsEnumerable,I=s("symbol-registry"),A=s("symbols"),z=s("op-symbols"),K=Object[W],V=typeof Q=="function"&&!!M.f,re=i.QObject,ie=!re||!re[W]||!re[W].findChild,J=_&&n(function(){return m(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a!=7})?function(Y,ne,he){var ve=O(K,ne);ve&&delete K[ne],k(Y,ne,he),ve&&Y!==K&&k(K,ne,ve)}:k,ce=function(ne){var he=A[ne]=m(Q[W]);return he._k=ne,he},se=V&&typeof Q.iterator=="symbol"?function(Y){return typeof Y=="symbol"}:function(Y){return Y instanceof Q},ee=function(ne,he,ve){return ne===K&&ee(z,he,ve),w(ne),he=C(he,!0),w(ve),t(A,he)?(ve.enumerable?(t(ne,N)&&ne[N][he]&&(ne[N][he]=!1),ve=m(ve,{enumerable:T(0,!1)})):(t(ne,N)||k(ne,N,T(1,{})),ne[N][he]=!0),J(ne,he,ve)):k(ne,he,ve)},te=function(ne,he){w(ne);for(var ve=g(he=D(he)),we=0,Ce=ve.length,Se;Ce>we;)ee(ne,Se=ve[we++],he[Se]);return ne},ae=function(ne,he){return he===void 0?m(ne):te(m(ne),he)},fe=function(ne){var he=$.call(this,ne=C(ne,!0));return this===K&&t(A,ne)&&!t(z,ne)?!1:he||!t(this,ne)||!t(A,ne)||t(this,N)&&this[N][ne]?he:!0},G=function(ne,he){if(ne=D(ne),he=C(he,!0),ne===K&&t(A,he)&&!t(z,he))return;var ve=O(ne,he);return ve&&t(A,he)&&!(t(ne,N)&&ne[N][he])&&(ve.enumerable=!0),ve},X=function(ne){for(var he=H(D(ne)),ve=[],we=0,Ce;he.length>we;)!t(A,Ce=he[we++])&&Ce!=N&&Ce!=h&&ve.push(Ce);return ve},oe=function(ne){for(var he=ne===K,ve=H(he?z:D(ne)),we=[],Ce=0,Se;ve.length>Ce;)t(A,Se=ve[Ce++])&&(he?t(K,Se):!0)&&we.push(A[Se]);return we};V||(Q=function(){if(this instanceof Q)throw TypeError("Symbol is not a constructor!");var ne=a(arguments.length>0?arguments[0]:void 0),he=function ve(we){this===K&&ve.call(z,we),t(this,N)&&t(this[N],ne)&&(this[N][ne]=!1),J(this,ne,T(1,we))};return _&&ie&&J(K,ne,{configurable:!0,set:he}),ce(ne)},d(Q[W],"toString",function(){return this._k}),L.f=G,u.f=ee,e("./_object-gopn").f=r.f=X,e("./_object-pie").f=fe,M.f=oe,_&&!e("./_library")&&d(K,"propertyIsEnumerable",fe,!0),v.f=function(Y){return ce(o(Y))}),y(y.G+y.W+y.F*!V,{Symbol:Q});for(var U="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),R=0;U.length>R;)o(U[R++]);for(var f=j(o.store),S=0;f.length>S;)p(f[S++]);y(y.S+y.F*!V,"Symbol",{for:function(ne){return t(I,ne+="")?I[ne]:I[ne]=Q(ne)},keyFor:function(ne){if(!se(ne))throw TypeError(ne+" is not a symbol!");for(var he in I)if(I[he]===ne)return he},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),y(y.S+y.F*!V,"Object",{create:ae,defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:G,getOwnPropertyNames:X,getOwnPropertySymbols:oe});var Z=n(function(){M.f(1)});y(y.S+y.F*Z,"Object",{getOwnPropertySymbols:function(ne){return M.f(x(ne))}}),F&&y(y.S+y.F*(!V||n(function(){var Y=Q();return q([Y])!="[null]"||q({a:Y})!="{}"||q(Object(Y))!="{}"})),"JSON",{stringify:function(ne){for(var he=[ne],ve=1,we,Ce;arguments.length>ve;)he.push(arguments[ve++]);return Ce=we=he[1],!P(we)&&ne===void 0||se(ne)?void 0:(E(we)||(we=function(De,Xe){if(typeof Ce=="function"&&(Xe=Ce.call(this,De,Xe)),!se(Xe))return Xe}),he[1]=we,q.apply(F,he))}}),Q[W][B]||e("./_hide")(Q[W],B,Q[W].valueOf),l(Q,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(e,b,c){var i=e("./_export"),t=e("./_object-to-array")(!0);i(i.S,"Object",{entries:function(y){return t(y)}})},{"./_export":107,"./_object-to-array":143}],183:[function(e,b,c){"use strict";var i=e("./_export"),t=e("./_core"),_=e("./_global"),y=e("./_species-constructor"),d=e("./_promise-resolve");i(i.P+i.R,"Promise",{finally:function(n){var s=y(this,t.Promise||_.Promise),l=typeof n=="function";return this.then(l?function(a){return d(s,n()).then(function(){return a})}:n,l?function(a){return d(s,n()).then(function(){throw a})}:n)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(e,b,c){"use strict";var i=e("./_export"),t=e("./_new-promise-capability"),_=e("./_perform");i(i.S,"Promise",{try:function(d){var h=t.f(this),n=_(d);return(n.e?h.reject:h.resolve)(n.v),h.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(e,b,c){e("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(e,b,c){e("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(e,b,c){e("./es6.array.iterator");for(var i=e("./_global"),t=e("./_hide"),_=e("./_iterators"),y=e("./_wks")("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;h<d.length;h++){var n=d[h],s=i[n],l=s&&s.prototype;l&&!l[y]&&t(l,y,n),_[n]=_.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(e,b,c){var i=e("./_export"),t=e("./_task");i(i.G+i.B,{setImmediate:t.set,clearImmediate:t.clear})},{"./_export":107,"./_task":155}],189:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/helpers/typeof"),_=y(t);function y(C){return C&&C.__esModule?C:{default:C}}function d(C){return Array.isArray?Array.isArray(C):D(C)==="[object Array]"}c.isArray=d;function h(C){return typeof C=="boolean"}c.isBoolean=h;function n(C){return C===null}c.isNull=n;function s(C){return C==null}c.isNullOrUndefined=s;function l(C){return typeof C=="number"}c.isNumber=l;function a(C){return typeof C=="string"}c.isString=a;function o(C){return(typeof C=="undefined"?"undefined":(0,_.default)(C))==="symbol"}c.isSymbol=o;function v(C){return C===void 0}c.isUndefined=v;function p(C){return D(C)==="[object RegExp]"}c.isRegExp=p;function g(C){return(typeof C=="undefined"?"undefined":(0,_.default)(C))==="object"&&C!==null}c.isObject=g;function E(C){return D(C)==="[object Date]"}c.isDate=E;function w(C){return D(C)==="[object Error]"||C instanceof Error}c.isError=w;function P(C){return typeof C=="function"}c.isFunction=P;function x(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||(typeof C=="undefined"?"undefined":(0,_.default)(C))==="symbol"||typeof C=="undefined"}c.isPrimitive=x,c.isBuffer=i.isBuffer;function D(C){return Object.prototype.toString.call(C)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(e,b,c){"use strict";var i=e("babel-runtime/helpers/typeof"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(y){"use strict";var d=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,o=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,v=/[^-+\dA-Z]/g;return function(p,g,E,w){if(arguments.length===1&&l(p)==="string"&&!/\d/.test(p)&&(g=p,p=void 0),p=p||new Date,p instanceof Date||(p=new Date(p)),isNaN(p))throw TypeError("Invalid date");g=String(d.masks[g]||g||d.masks.default);var P=g.slice(0,4);(P==="UTC:"||P==="GMT:")&&(g=g.slice(4),E=!0,P==="GMT:"&&(w=!0));var x=E?"getUTC":"get",D=p[x+"Date"](),C=p[x+"Day"](),T=p[x+"Month"](),m=p[x+"FullYear"](),r=p[x+"Hours"](),L=p[x+"Minutes"](),M=p[x+"Seconds"](),u=p[x+"Milliseconds"](),j=E?0:p.getTimezoneOffset(),O=n(p),k=s(p),H={d:D,dd:h(D),ddd:d.i18n.dayNames[C],dddd:d.i18n.dayNames[C+7],m:T+1,mm:h(T+1),mmm:d.i18n.monthNames[T],mmmm:d.i18n.monthNames[T+12],yy:String(m).slice(2),yyyy:m,h:r%12||12,hh:h(r%12||12),H:r,HH:h(r),M:L,MM:h(L),s:M,ss:h(M),l:h(u,3),L:h(Math.round(u/10)),t:r<12?"a":"p",tt:r<12?"am":"pm",T:r<12?"A":"P",TT:r<12?"AM":"PM",Z:w?"GMT":E?"UTC":(String(p).match(o)||[""]).pop().replace(v,""),o:(j>0?"-":"+")+h(Math.floor(Math.abs(j)/60)*100+Math.abs(j)%60,4),S:["th","st","nd","rd"][D%10>3?0:(D%100-D%10!=10)*D%10],W:O,N:k};return g.replace(a,function(Q){return Q in H?H[Q]:Q.slice(1,Q.length-1)})}}();d.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"},d.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"]};function h(a,o){for(a=String(a),o=o||2;a.length<o;)a="0"+a;return a}function n(a){var o=new Date(a.getFullYear(),a.getMonth(),a.getDate());o.setDate(o.getDate()-(o.getDay()+6)%7+3);var v=new Date(o.getFullYear(),0,4);v.setDate(v.getDate()-(v.getDay()+6)%7+3);var p=o.getTimezoneOffset()-v.getTimezoneOffset();o.setHours(o.getHours()-p);var g=(o-v)/(864e5*7);return 1+Math.floor(g)}function s(a){var o=a.getDay();return o===0&&(o=7),o}function l(a){return a===null?"null":a===void 0?"undefined":(typeof a=="undefined"?"undefined":(0,t.default)(a))!=="object"?typeof a=="undefined"?"undefined":(0,t.default)(a):Array.isArray(a)?"array":{}.toString.call(a).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return d}):(typeof c=="undefined"?"undefined":(0,t.default)(c))==="object"?b.exports=d:y.dateFormat=d})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(e,b,c){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var i=/["'&<>]/;b.exports=t;function t(_){var y=""+_,d=i.exec(y);if(!d)return y;var h,n="",s=0,l=0;for(s=d.index;s<y.length;s++){switch(y.charCodeAt(s)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#39;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}l!==s&&(n+=y.substring(l,s)),l=s+1,n+=h}return l!==s?n+y.substring(l,s):n}},{}],192:[function(e,b,c){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}b.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(h){if(!_(h)||h<0||isNaN(h))throw TypeError("n must be a positive number");return this._maxListeners=h,this},i.prototype.emit=function(h){var n,s,l,a,o,v;if(this._events||(this._events={}),h==="error"&&(!this._events.error||y(this._events.error)&&!this._events.error.length)){if(n=arguments[1],n instanceof Error)throw n;var p=new Error('Uncaught, unspecified "error" event. ('+n+")");throw p.context=n,p}if(s=this._events[h],d(s))return!1;if(t(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),s.apply(this,a)}else if(y(s))for(a=Array.prototype.slice.call(arguments,1),v=s.slice(),l=v.length,o=0;o<l;o++)v[o].apply(this,a);return!0},i.prototype.addListener=function(h,n){var s;if(!t(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",h,t(n.listener)?n.listener:n),this._events[h]?y(this._events[h])?this._events[h].push(n):this._events[h]=[this._events[h],n]:this._events[h]=n,y(this._events[h])&&!this._events[h].warned&&(d(this._maxListeners)?s=i.defaultMaxListeners:s=this._maxListeners,s&&s>0&&this._events[h].length>s&&(this._events[h].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[h].length),typeof console.trace=="function"&&console.trace())),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(h,n){if(!t(n))throw TypeError("listener must be a function");var s=!1;function l(){this.removeListener(h,l),s||(s=!0,n.apply(this,arguments))}return l.listener=n,this.on(h,l),this},i.prototype.removeListener=function(h,n){var s,l,a,o;if(!t(n))throw TypeError("listener must be a function");if(!this._events||!this._events[h])return this;if(s=this._events[h],a=s.length,l=-1,s===n||t(s.listener)&&s.listener===n)delete this._events[h],this._events.removeListener&&this.emit("removeListener",h,n);else if(y(s)){for(o=a;o-- >0;)if(s[o]===n||s[o].listener&&s[o].listener===n){l=o;break}if(l<0)return this;s.length===1?(s.length=0,delete this._events[h]):s.splice(l,1),this._events.removeListener&&this.emit("removeListener",h,n)}return this},i.prototype.removeAllListeners=function(h){var n,s;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[h]&&delete this._events[h],this;if(arguments.length===0){for(n in this._events){if(n==="removeListener")continue;this.removeAllListeners(n)}return this.removeAllListeners("removeListener"),this._events={},this}if(s=this._events[h],t(s))this.removeListener(h,s);else if(s)for(;s.length;)this.removeListener(h,s[s.length-1]);return delete this._events[h],this},i.prototype.listeners=function(h){var n;return!this._events||!this._events[h]?n=[]:t(this._events[h])?n=[this._events[h]]:n=this._events[h].slice(),n},i.prototype.listenerCount=function(h){if(this._events){var n=this._events[h];if(t(n))return 1;if(n)return n.length}return 0},i.listenerCount=function(h,n){return h.listenerCount(n)};function t(h){return typeof h=="function"}function _(h){return typeof h=="number"}function y(h){return typeof h=="object"&&h!==null}function d(h){return h===void 0}},{}],193:[function(e,b,c){var i=e("http"),t=b.exports;for(var _ in i)i.hasOwnProperty(_)&&(t[_]=i[_]);t.request=function(y,d){return y||(y={}),y.scheme="https",y.protocol="https:",i.request.call(this,y,d)}},{http:231}],194:[function(e,b,c){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var i=e("util"),t=e("ms");b.exports=function(_){if(typeof _=="number")return _;var y=t(_);if(y===void 0){var d=new Error(i.format("humanize-ms(%j) result undefined",_));console.warn(d.stack)}return y}},{ms:204,util:243}],195:[function(e,b,c){c.read=function(i,t,_,y,d){var h,n,s=d*8-y-1,l=(1<<s)-1,a=l>>1,o=-7,v=_?d-1:0,p=_?-1:1,g=i[t+v];for(v+=p,h=g&(1<<-o)-1,g>>=-o,o+=s;o>0;h=h*256+i[t+v],v+=p,o-=8);for(n=h&(1<<-o)-1,h>>=-o,o+=y;o>0;n=n*256+i[t+v],v+=p,o-=8);if(h===0)h=1-a;else{if(h===l)return n?NaN:(g?-1:1)*Infinity;n=n+Math.pow(2,y),h=h-a}return(g?-1:1)*n*Math.pow(2,h-y)},c.write=function(i,t,_,y,d,h){var n,s,l,a=h*8-d-1,o=(1<<a)-1,v=o>>1,p=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=y?0:h-1,E=y?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(s=isNaN(t)?1:0,n=o):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+v>=1?t+=p/l:t+=p*Math.pow(2,1-v),t*l>=2&&(n++,l/=2),n+v>=o?(s=0,n=o):n+v>=1?(s=(t*l-1)*Math.pow(2,d),n=n+v):(s=t*Math.pow(2,v-1)*Math.pow(2,d),n=0));d>=8;i[_+g]=s&255,g+=E,s/=256,d-=8);for(n=n<<d|s,a+=d;a>0;i[_+g]=n&255,g+=E,n/=256,a-=8);i[_+g-E]|=w*128}},{}],196:[function(e,b,c){typeof Object.create=="function"?b.exports=function(t,_){_&&(t.super_=_,t.prototype=Object.create(_.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:b.exports=function(t,_){if(_){t.super_=_;var y=function(){};y.prototype=_.prototype,t.prototype=new y,t.prototype.constructor=t}}},{}],197:[function(e,b,c){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/b.exports=function(_){return _!=null&&(i(_)||t(_)||!!_._isBuffer)};function i(_){return!!_.constructor&&typeof _.constructor.isBuffer=="function"&&_.constructor.isBuffer(_)}function t(_){return typeof _.readFloatLE=="function"&&typeof _.slice=="function"&&i(_.slice(0,0))}},{}],198:[function(e,b,c){var i={}.toString;b.exports=Array.isArray||function(t){return i.call(t)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(e,b){typeof exports=="object"&&typeof module!="undefined"?module.exports=b(e):typeof define=="function"&&define.amd?define(b):b(e)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var b={},c=0,i=e.length;c<i;c++)b[e.charAt(c)]=c;return b}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(b){if(b.length<2){var c=b.charCodeAt(0);return c<128?b:c<2048?fromCharCode(192|c>>>6)+fromCharCode(128|c&63):fromCharCode(224|c>>>12&15)+fromCharCode(128|c>>>6&63)+fromCharCode(128|c&63)}else{var c=65536+(b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320);return fromCharCode(240|c>>>18&7)+fromCharCode(128|c>>>12&63)+fromCharCode(128|c>>>6&63)+fromCharCode(128|c&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(b){return b.replace(re_utob,cb_utob)},cb_encode=function(b){var c=[0,2,1][b.length%3],i=b.charCodeAt(0)<<16|(b.length>1?b.charCodeAt(1):0)<<8|(b.length>2?b.charCodeAt(2):0),t=[b64chars.charAt(i>>>18),b64chars.charAt(i>>>12&63),c>=2?"=":b64chars.charAt(i>>>6&63),c>=1?"=":b64chars.charAt(i&63)];return t.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(b){var c=Object.prototype.toString.call(b)==="[object Uint8Array]";return c?b.toString("base64"):btoa(utob(String(b)))},encode=function(b,c){return c?_encode(String(b)).replace(/[+\/]/g,function(i){return i=="+"?"-":"_"}).replace(/=/g,""):_encode(b)},encodeURI=function(b){return encode(b,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(b){switch(b.length){case 4:var c=(7&b.charCodeAt(0))<<18|(63&b.charCodeAt(1))<<12|(63&b.charCodeAt(2))<<6|63&b.charCodeAt(3),i=c-65536;return fromCharCode((i>>>10)+55296)+fromCharCode((i&1023)+56320);case 3:return fromCharCode((15&b.charCodeAt(0))<<12|(63&b.charCodeAt(1))<<6|63&b.charCodeAt(2));default:return fromCharCode((31&b.charCodeAt(0))<<6|63&b.charCodeAt(1))}},btou=function(b){return b.replace(re_btou,cb_btou)},cb_decode=function(b){var c=b.length,i=c%4,t=(c>0?b64tab[b.charAt(0)]<<18:0)|(c>1?b64tab[b.charAt(1)]<<12:0)|(c>2?b64tab[b.charAt(2)]<<6:0)|(c>3?b64tab[b.charAt(3)]:0),_=[fromCharCode(t>>>16),fromCharCode(t>>>8&255),fromCharCode(t&255)];return _.length-=[0,0,2,1][i],_.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(b){return _atob(String(b).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(b){return _decode(String(b).replace(/[-_]/g,function(c){return c=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var b=global.Base64;return global.Base64=_Base64,b};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(b){return{value:b,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(e,b,c){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";b.exports=t;var i=Object.prototype.hasOwnProperty;function t(_,y,d){if(!_)throw new TypeError("argument dest is required");if(!y)throw new TypeError("argument src is required");return d===void 0&&(d=!0),Object.getOwnPropertyNames(y).forEach(function(n){if(!d&&i.call(_,n))return;var s=Object.getOwnPropertyDescriptor(y,n);Object.defineProperty(_,n,s)}),_}},{}],201:[function(e,b,c){"use strict";function i(){this._types=Object.create(null),this._extensions=Object.create(null);for(var t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}i.prototype.define=function(t,_){for(var y in t){var d=t[y].map(function(s){return s.toLowerCase()});y=y.toLowerCase();for(var h=0;h<d.length;h++){var n=d[h];if(n[0]=="*")continue;if(!_&&n in this._types)throw new Error('Attempt to change mapping for "'+n+'" extension from "'+this._types[n]+'" to "'+y+'". Pass `force=true` to allow this, otherwise remove "'+n+'" from the list of extensions for "'+y+'".');this._types[n]=y}if(_||!this._extensions[y]){var n=d[0];this._extensions[y]=n[0]!="*"?n:n.substr(1)}}},i.prototype.getType=function(t){t=String(t);var _=t.replace(/^.*[/\\]/,"").toLowerCase(),y=_.replace(/^.*\./,"").toLowerCase(),d=_.length<t.length,h=y.length<_.length-1;return(h||!d)&&this._types[y]||null},i.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null},b.exports=i},{}],202:[function(e,b,c){"use strict";var i=e("./Mime");b.exports=new i(e("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(e,b,c){b.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"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","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"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/lgr+xml":["lgr"],"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/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"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/p2p-overlay+xml":["relo"],"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/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"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/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"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/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"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/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"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":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*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":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"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":["*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"]}},{}],204:[function(e,b,c){var i=1e3,t=i*60,_=t*60,y=_*24,d=y*7,h=y*365.25;b.exports=function(o,v){v=v||{};var p=typeof o;if(p==="string"&&o.length>0)return n(o);if(p==="number"&&isFinite(o))return v.long?l(o):s(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function n(o){if(o=String(o),o.length>100)return;var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!v)return;var p=parseFloat(v[1]),g=(v[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*h;case"weeks":case"week":case"w":return p*d;case"days":case"day":case"d":return p*y;case"hours":case"hour":case"hrs":case"hr":case"h":return p*_;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}function s(o){var v=Math.abs(o);return v>=y?Math.round(o/y)+"d":v>=_?Math.round(o/_)+"h":v>=t?Math.round(o/t)+"m":v>=i?Math.round(o/i)+"s":o+"ms"}function l(o){var v=Math.abs(o);return v>=y?a(o,v,y,"day"):v>=_?a(o,v,_,"hour"):v>=t?a(o,v,t,"minute"):v>=i?a(o,v,i,"second"):o+" ms"}function a(o,v,p,g){var E=v>=p*1.5;return Math.round(o/p)+" "+g+(E?"s":"")}},{}],205:[function(e,b,c){(function(i){function t(h,n){for(var s=0,l=h.length-1;l>=0;l--){var a=h[l];a==="."?h.splice(l,1):a===".."?(h.splice(l,1),s++):s&&(h.splice(l,1),s--)}if(n)for(;s--;s)h.unshift("..");return h}c.resolve=function(){for(var h="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var l=s>=0?arguments[s]:i.cwd();if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)continue;h=l+"/"+h,n=l.charAt(0)==="/"}return h=t(y(h.split("/"),function(a){return!!a}),!n).join("/"),(n?"/":"")+h||"."},c.normalize=function(h){var n=c.isAbsolute(h),s=d(h,-1)==="/";return h=t(y(h.split("/"),function(l){return!!l}),!n).join("/"),!h&&!n&&(h="."),h&&s&&(h+="/"),(n?"/":"")+h},c.isAbsolute=function(h){return h.charAt(0)==="/"},c.join=function(){var h=Array.prototype.slice.call(arguments,0);return c.normalize(y(h,function(n,s){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},c.relative=function(h,n){h=c.resolve(h).substr(1),n=c.resolve(n).substr(1);function s(E){for(var w=0;w<E.length&&!(E[w]!=="");w++);for(var P=E.length-1;P>=0&&!(E[P]!=="");P--);return w>P?[]:E.slice(w,P-w+1)}for(var l=s(h.split("/")),a=s(n.split("/")),o=Math.min(l.length,a.length),v=o,p=0;p<o;p++)if(l[p]!==a[p]){v=p;break}for(var g=[],p=v;p<l.length;p++)g.push("..");return g=g.concat(a.slice(v)),g.join("/")},c.sep="/",c.delimiter=":",c.dirname=function(h){if(typeof h!="string"&&(h=h+""),h.length===0)return".";for(var n=h.charCodeAt(0),s=n===47,l=-1,a=!0,o=h.length-1;o>=1;--o)if(n=h.charCodeAt(o),n===47){if(!a){l=o;break}}else a=!1;return l===-1?s?"/":".":s&&l===1?"/":h.slice(0,l)};function _(h){typeof h!="string"&&(h=h+"");var n=0,s=-1,l=!0,a;for(a=h.length-1;a>=0;--a)if(h.charCodeAt(a)===47){if(!l){n=a+1;break}}else s===-1&&(l=!1,s=a+1);return s===-1?"":h.slice(n,s)}c.basename=function(h,n){var s=_(h);return n&&s.substr(-1*n.length)===n&&(s=s.substr(0,s.length-n.length)),s},c.extname=function(h){typeof h!="string"&&(h=h+"");for(var n=-1,s=0,l=-1,a=!0,o=0,v=h.length-1;v>=0;--v){var p=h.charCodeAt(v);if(p===47){if(!a){s=v+1;break}continue}l===-1&&(a=!1,l=v+1),p===46?n===-1?n=v:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||l===-1||o===0||o===1&&n===l-1&&n===s+1?"":h.slice(n,l)};function y(h,n){if(h.filter)return h.filter(n);for(var s=[],l=0;l<h.length;l++)n(h[l],l,h)&&s.push(h[l]);return s}var d="ab".substr(-1)==="b"?function(h,n,s){return h.substr(n,s)}:function(h,n,s){return n<0&&(n=h.length+n),h.substr(n,s)}}).call(this,e("_process"))},{_process:208}],206:[function(e,b,c){(function(i){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var t={function:!0,object:!0},_=t[typeof window]&&window||this,y=_,d=t[typeof c]&&c,h=t[typeof b]&&b&&!b.nodeType&&b,n=d&&h&&typeof i=="object"&&i;n&&(n.global===n||n.window===n||n.self===n)&&(_=n);var s=Math.pow(2,53)-1,l=/\bOpera/,a=this,o=Object.prototype,v=o.hasOwnProperty,p=o.toString;function g(u){return u=String(u),u.charAt(0).toUpperCase()+u.slice(1)}function E(u,j,O){var k={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return j&&O&&/^Win/i.test(u)&&!/^Windows Phone /i.test(u)&&(k=k[/[\d.]+$/.exec(u)])&&(u="Windows "+k),u=String(u),j&&O&&(u=u.replace(RegExp(j,"i"),O)),u=P(u.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),u}function w(u,j){var O=-1,k=u?u.length:0;if(typeof k=="number"&&k>-1&&k<=s)for(;++O<k;)j(u[O],O,u);else x(u,j)}function P(u){return u=r(u),/^(?:webOS|i(?:OS|P))/.test(u)?u:g(u)}function x(u,j){for(var O in u)v.call(u,O)&&j(u[O],O,u)}function D(u){return u==null?g(u):p.call(u).slice(8,-1)}function C(u,j){var O=u!=null?typeof u[j]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!u[j]:!0)}function T(u){return String(u).replace(/([ -])(?!$)/g,"$1?")}function m(u,j){var O=null;return w(u,function(k,H){O=j(O,k,H,u)}),O}function r(u){return String(u).replace(/^ +| +$/g,"")}function L(u){var j=_,O=u&&typeof u=="object"&&D(u)!="String";O&&(j=u,u=null);var k=j.navigator||{},H=k.userAgent||"";u||(u=H);var Q=O||a==y,F=O?!!k.likeChrome:/\bChrome\b/.test(u)&&!/internal|\n/i.test(p.toString()),q="Object",W=O?q:"ScriptBridgingProxyObject",N=O?q:"Environment",B=O&&j.java?"JavaPackage":D(j.java),$=O?q:"RuntimeObject",I=/\bJava/.test(B)&&j.java,A=I&&D(j.environment)==N,z=I?"a":"\u03B1",K=I?"b":"\u03B2",V=j.document||{},re=j.operamini||j.opera,ie=l.test(ie=O&&re?re["[[Class]]"]:D(re))?ie:re=null,J,ce=u,se=[],ee=null,te=u==H,ae=te&&re&&typeof re.version=="function"&&re.version(),fe,G=f([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),X=Z(["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"]),oe=ne([{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"]),U=S({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}}),R=Y(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function f(Ce){return m(Ce,function(Se,De){return Se||RegExp("\\b"+(De.pattern||T(De))+"\\b","i").exec(u)&&(De.label||De)})}function S(Ce){return m(Ce,function(Se,De,Xe){return Se||(De[oe]||De[/^[a-z]+(?: +[a-z]+\b)*/i.exec(oe)]||RegExp("\\b"+T(Xe)+"(?:\\b|\\w*\\d)","i").exec(u))&&Xe})}function Z(Ce){return m(Ce,function(Se,De){return Se||RegExp("\\b"+(De.pattern||T(De))+"\\b","i").exec(u)&&(De.label||De)})}function Y(Ce){return m(Ce,function(Se,De){var Xe=De.pattern||T(De);return!Se&&(Se=RegExp("\\b"+Xe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(u))&&(Se=E(Se,Xe,De.label||De)),Se})}function ne(Ce){return m(Ce,function(Se,De){var Xe=De.pattern||T(De);return!Se&&(Se=RegExp("\\b"+Xe+" *\\d+[.\\w_]*","i").exec(u)||RegExp("\\b"+Xe+" *\\w+-[\\w]*","i").exec(u)||RegExp("\\b"+Xe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(u))&&((Se=String(De.label&&!RegExp(Xe,"i").test(De.label)?De.label:Se).split("/"))[1]&&!/[\d.]+/.test(Se[0])&&(Se[0]+=" "+Se[1]),De=De.label||De,Se=P(Se[0].replace(RegExp(Xe,"i"),De).replace(RegExp("; *(?:"+De+"[_-])?","i")," ").replace(RegExp("("+De+")[-_.]?(\\w)","i"),"$1 $2"))),Se})}function he(Ce){return m(Ce,function(Se,De){return Se||(RegExp(De+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(u)||0)[1]||null})}function ve(){return this.description||""}if(G&&(G=[G]),U&&!oe&&(oe=ne([U])),(J=/\bGoogle TV\b/.exec(oe))&&(oe=J[0]),/\bSimulator\b/i.test(u)&&(oe=(oe?oe+" ":"")+"Simulator"),X=="Opera Mini"&&/\bOPiOS\b/.test(u)&&se.push("running in Turbo/Uncompressed mode"),X=="IE"&&/\blike iPhone OS\b/.test(u)?(J=L(u.replace(/like iPhone OS/,"")),U=J.manufacturer,oe=J.product):/^iP/.test(oe)?(X||(X="Safari"),R="iOS"+((J=/ OS ([\d_]+)/i.exec(u))?" "+J[1].replace(/_/g,"."):"")):X=="Konqueror"&&!/buntu/i.test(R)?R="Kubuntu":U&&U!="Google"&&(/Chrome/.test(X)&&!/\bMobile Safari\b/i.test(u)||/\bVita\b/.test(oe))||/\bAndroid\b/.test(R)&&/^Chrome/.test(X)&&/\bVersion\//i.test(u)?(X="Android Browser",R=/\bAndroid\b/.test(R)?R:"Android"):X=="Silk"?(/\bMobi/i.test(u)||(R="Android",se.unshift("desktop mode")),/Accelerated *= *true/i.test(u)&&se.unshift("accelerated")):X=="PaleMoon"&&(J=/\bFirefox\/([\d.]+)\b/.exec(u))?se.push("identifying as Firefox "+J[1]):X=="Firefox"&&(J=/\b(Mobile|Tablet|TV)\b/i.exec(u))?(R||(R="Firefox OS"),oe||(oe=J[1])):!X||(J=!/\bMinefield\b/i.test(u)&&/\b(?:Firefox|Safari)\b/.exec(X))?(X&&!oe&&/[\/,]|^[^(]+?\)/.test(u.slice(u.indexOf(J+"/")+8))&&(X=null),(J=oe||U||R)&&(oe||U||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(R))&&(X=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(R)?R:J)+" Browser")):X=="Electron"&&(J=(/\bChrome\/([\d.]+)\b/.exec(u)||0)[1])&&se.push("Chromium "+J),ae||(ae=he(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",T(X),"(?:Firefox|Minefield|NetFront)"])),(J=G=="iCab"&&parseFloat(ae)>3&&"WebKit"||/\bOpera\b/.test(X)&&(/\bOPR\b/.test(u)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(u)&&!/^(?:Trident|EdgeHTML)$/.test(G)&&"WebKit"||!G&&/\bMSIE\b/i.test(u)&&(R=="Mac OS"?"Tasman":"Trident")||G=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(X)&&"NetFront")&&(G=[J]),X=="IE"&&(J=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(u)||0)[1])?(X+=" Mobile",R="Windows Phone "+(/\+$/.test(J)?J:J+".x"),se.unshift("desktop mode")):/\bWPDesktop\b/i.test(u)?(X="IE Mobile",R="Windows Phone 8.x",se.unshift("desktop mode"),ae||(ae=(/\brv:([\d.]+)/.exec(u)||0)[1])):X!="IE"&&G=="Trident"&&(J=/\brv:([\d.]+)/.exec(u))&&(X&&se.push("identifying as "+X+(ae?" "+ae:"")),X="IE",ae=J[1]),te){if(C(j,"global"))if(I&&(J=I.lang.System,ce=J.getProperty("os.arch"),R=R||J.getProperty("os.name")+" "+J.getProperty("os.version")),A){try{ae=j.require("ringo/engine").version.join("."),X="RingoJS"}catch(Ce){(J=j.system)&&J.global.system==j.system&&(X="Narwhal",R||(R=J[0].os||null))}X||(X="Rhino")}else typeof j.process=="object"&&!j.process.browser&&(J=j.process)&&(typeof J.versions=="object"&&(typeof J.versions.electron=="string"?(se.push("Node "+J.versions.node),X="Electron",ae=J.versions.electron):typeof J.versions.nw=="string"&&(se.push("Chromium "+ae,"Node "+J.versions.node),X="NW.js",ae=J.versions.nw)),X||(X="Node.js",ce=J.arch,R=J.platform,ae=/[\d.]+/.exec(J.version),ae=ae?ae[0]:null));else D(J=j.runtime)==W?(X="Adobe AIR",R=J.flash.system.Capabilities.os):D(J=j.phantom)==$?(X="PhantomJS",ae=(J=J.version||null)&&J.major+"."+J.minor+"."+J.patch):typeof V.documentMode=="number"&&(J=/\bTrident\/(\d+)/i.exec(u))?(ae=[ae,V.documentMode],(J=+J[1]+4)!=ae[1]&&(se.push("IE "+ae[1]+" mode"),G&&(G[1]=""),ae[1]=J),ae=X=="IE"?String(ae[1].toFixed(1)):ae[0]):typeof V.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(X)&&(se.push("masking as "+X+" "+ae),X="IE",ae="11.0",G=["Trident"],R="Windows");R=R&&P(R)}if(ae&&(J=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ae)||/(?:alpha|beta)(?: ?\d)?/i.exec(u+";"+(te&&k.appMinorVersion))||/\bMinefield\b/i.test(u)&&"a")&&(ee=/b/i.test(J)?"beta":"alpha",ae=ae.replace(RegExp(J+"\\+?$"),"")+(ee=="beta"?K:z)+(/\d+\+?/.exec(J)||"")),X=="Fennec"||X=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(R))X="Firefox Mobile";else if(X=="Maxthon"&&ae)ae=ae.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(oe))oe=="Xbox 360"&&(R=null),oe=="Xbox 360"&&/\bIEMobile\b/.test(u)&&se.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(X)||X&&!oe&&!/Browser|Mobi/.test(X))&&(R=="Windows CE"||/Mobi/i.test(u)))X+=" Mobile";else if(X=="IE"&&te)try{j.external===null&&se.unshift("platform preview")}catch(Ce){se.unshift("embedded")}else(/\bBlackBerry\b/.test(oe)||/\bBB10\b/.test(u))&&(J=(RegExp(oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(u)||0)[1]||ae)?(J=[J,/BB10/.test(u)],R=(J[1]?(oe=null,U="BlackBerry"):"Device Software")+" "+J[0],ae=null):this!=x&&oe!="Wii"&&(te&&re||/Opera/.test(X)&&/\b(?:MSIE|Firefox)\b/i.test(u)||X=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(R)||X=="IE"&&(R&&!/^Win/.test(R)&&ae>5.5||/\bWindows XP\b/.test(R)&&ae>8||ae==8&&!/\bTrident\b/.test(u)))&&!l.test(J=L.call(x,u.replace(l,"")+";"))&&J.name&&(J="ing as "+J.name+((J=J.version)?" "+J:""),l.test(X)?(/\bIE\b/.test(J)&&R=="Mac OS"&&(R=null),J="identify"+J):(J="mask"+J,ie?X=P(ie.replace(/([a-z])([A-Z])/g,"$1 $2")):X="Opera",/\bIE\b/.test(J)&&(R=null),te||(ae=null)),G=["Presto"],se.push(J));(J=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(u)||0)[1])&&(J=[parseFloat(J.replace(/\.(\d)$/,".0$1")),J],X=="Safari"&&J[1].slice(-1)=="+"?(X="WebKit Nightly",ee="alpha",ae=J[1].slice(0,-1)):(ae==J[1]||ae==(J[2]=(/\bSafari\/([\d.]+\+?)/i.exec(u)||0)[1]))&&(ae=null),J[1]=(/\bChrome\/([\d.]+)/i.exec(u)||0)[1],J[0]==537.36&&J[2]==537.36&&parseFloat(J[1])>=28&&G=="WebKit"&&(G=["Blink"]),!te||!F&&!J[1]?(G&&(G[1]="like Safari"),J=(J=J[0],J<400?1:J<500?2:J<526?3:J<533?4:J<534?"4+":J<535?5:J<537?6:J<538?7:J<601?8:"8")):(G&&(G[1]="like Chrome"),J=J[1]||(J=J[0],J<530?1:J<532?2:J<532.05?3:J<533?4:J<534.03?5:J<534.07?6:J<534.1?7:J<534.13?8:J<534.16?9:J<534.24?10:J<534.3?11:J<535.01?12:J<535.02?"13+":J<535.07?15:J<535.11?16:J<535.19?17:J<536.05?18:J<536.1?19:J<537.01?20:J<537.11?"21+":J<537.13?23:J<537.18?24:J<537.24?25:J<537.36?26:G!="Blink"?"27":"28")),G&&(G[1]+=" "+(J+=typeof J=="number"?".x":/[.+]/.test(J)?"":"+")),X=="Safari"&&(!ae||parseInt(ae)>45)&&(ae=J)),X=="Opera"&&(J=/\bzbov|zvav$/.exec(R))?(X+=" ",se.unshift("desktop mode"),J=="zvav"?(X+="Mini",ae=null):X+="Mobile",R=R.replace(RegExp(" *"+J+"$"),"")):X=="Safari"&&/\bChrome\b/.exec(G&&G[1])&&(se.unshift("desktop mode"),X="Chrome Mobile",ae=null,/\bOS X\b/.test(R)?(U="Apple",R="iOS 4.3+"):R=null),ae&&ae.indexOf(J=/[\d.]+$/.exec(R))==0&&u.indexOf("/"+J+"-")>-1&&(R=r(R.replace(J,""))),G&&!/\b(?:Avant|Nook)\b/.test(X)&&(/Browser|Lunascape|Maxthon/.test(X)||X!="Safari"&&/^iOS/.test(R)&&/\bSafari\b/.test(G[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(X)&&G[1])&&((J=G[G.length-1])&&se.push(J)),se.length&&(se=["("+se.join("; ")+")"]),U&&oe&&oe.indexOf(U)<0&&se.push("on "+U),oe&&se.push((/^on /.test(se[se.length-1])?"":"on ")+oe),R&&(J=/ ([\d.+]+)$/.exec(R),fe=J&&R.charAt(R.length-J[0].length-1)=="/",R={architecture:32,family:J&&!fe?R.replace(J[0],""):R,version:J?J[1]:null,toString:function(){var Se=this.version;return this.family+(Se&&!fe?" "+Se:"")+(this.architecture==64?" 64-bit":"")}}),(J=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ce))&&!/\bi686\b/i.test(ce)?(R&&(R.architecture=64,R.family=R.family.replace(RegExp(" *"+J),"")),X&&(/\bWOW64\b/i.test(u)||te&&/\w(?:86|32)$/.test(k.cpuClass||k.platform)&&!/\bWin64; x64\b/i.test(u))&&se.unshift("32-bit")):R&&/^OS X/.test(R.family)&&X=="Chrome"&&parseFloat(ae)>=39&&(R.architecture=64),u||(u=null);var we={};return we.description=u,we.layout=G&&G[0],we.manufacturer=U,we.name=X,we.prerelease=ee,we.product=oe,we.ua=u,we.version=X&&ae,we.os=R||{architecture:null,family:null,version:null,toString:function(){return"null"}},we.parse=L,we.toString=ve,we.version&&se.unshift(ae),we.name&&se.unshift(X),R&&X&&!(R==String(R).split(" ")[0]&&(R==X.split(" ")[0]||oe))&&se.push(oe?"("+R+")":"on "+R),se.length&&(we.description=se.join(" ")),we}var M=L();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(_.platform=M,define(function(){return M})):d&&h?x(M,function(u,j){d[j]=u}):_.platform=M}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(e,b,c){(function(i){"use strict";typeof i=="undefined"||!i.version||i.version.indexOf("v0.")===0||i.version.indexOf("v1.")===0&&i.version.indexOf("v1.8.")!==0?b.exports={nextTick:t}:b.exports=i;function t(_,y,d,h){if(typeof _!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,l;switch(n){case 0:case 1:return i.nextTick(_);case 2:return i.nextTick(function(){_.call(null,y)});case 3:return i.nextTick(function(){_.call(null,y,d)});case 4:return i.nextTick(function(){_.call(null,y,d,h)});default:for(s=new Array(n-1),l=0;l<s.length;)s[l++]=arguments[l];return i.nextTick(function(){_.apply(null,s)})}}}).call(this,e("_process"))},{_process:208}],208:[function(e,b,c){var i=b.exports={},t,_;function y(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=y}catch(w){t=y}try{typeof clearTimeout=="function"?_=clearTimeout:_=d}catch(w){_=d}})();function h(w){if(t===setTimeout)return setTimeout(w,0);if((t===y||!t)&&setTimeout)return t=setTimeout,setTimeout(w,0);try{return t(w,0)}catch(P){try{return t.call(null,w,0)}catch(x){return t.call(this,w,0)}}}function n(w){if(_===clearTimeout)return clearTimeout(w);if((_===d||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(w);try{return _(w)}catch(P){try{return _.call(null,w)}catch(x){return _.call(this,w)}}}var s=[],l=!1,a,o=-1;function v(){if(!l||!a)return;l=!1,a.length?s=a.concat(s):o=-1,s.length&&p()}function p(){if(l)return;var w=h(v);l=!0;for(var P=s.length;P;){for(a=s,s=[];++o<P;)a&&a[o].run();o=-1,P=s.length}a=null,l=!1,n(w)}i.nextTick=function(w){var P=new Array(arguments.length-1);if(arguments.length>1)for(var x=1;x<arguments.length;x++)P[x-1]=arguments[x];s.push(new g(w,P)),s.length===1&&!l&&h(p)};function g(w,P){this.fun=w,this.array=P}g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function E(){}i.on=E,i.addListener=E,i.once=E,i.off=E,i.removeListener=E,i.removeAllListeners=E,i.emit=E,i.prependListener=E,i.prependOnceListener=E,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],209:[function(e,b,c){(function(i){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(t){var _=typeof c=="object"&&c&&!c.nodeType&&c,y=typeof b=="object"&&b&&!b.nodeType&&b,d=typeof i=="object"&&i;(d.global===d||d.window===d||d.self===d)&&(t=d);var h,n=2147483647,s=36,l=1,a=26,o=38,v=700,p=72,g=128,E="-",w=/^xn--/,P=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=s-l,T=Math.floor,m=String.fromCharCode,r;function L(B){throw new RangeError(D[B])}function M(B,$){for(var I=B.length,A=[];I--;)A[I]=$(B[I]);return A}function u(B,$){var I=B.split("@"),A="";I.length>1&&(A=I[0]+"@",B=I[1]),B=B.replace(x,".");var z=B.split("."),K=M(z,$).join(".");return A+K}function j(B){for(var $=[],I=0,A=B.length,z,K;I<A;)z=B.charCodeAt(I++),z>=55296&&z<=56319&&I<A?(K=B.charCodeAt(I++),(K&64512)==56320?$.push(((z&1023)<<10)+(K&1023)+65536):($.push(z),I--)):$.push(z);return $}function O(B){return M(B,function($){var I="";return $>65535&&($-=65536,I+=m($>>>10&1023|55296),$=56320|$&1023),I+=m($),I}).join("")}function k(B){return B-48<10?B-22:B-65<26?B-65:B-97<26?B-97:s}function H(B,$){return B+22+75*(B<26)-(($!=0)<<5)}function Q(B,$,I){var A=0;for(B=I?T(B/v):B>>1,B+=T(B/$);B>C*a>>1;A+=s)B=T(B/C);return T(A+(C+1)*B/(B+o))}function F(B){var $=[],I=B.length,A,z=0,K=g,V=p,re,ie,J,ce,se,ee,te,ae,fe;for(re=B.lastIndexOf(E),re<0&&(re=0),ie=0;ie<re;++ie)B.charCodeAt(ie)>=128&&L("not-basic"),$.push(B.charCodeAt(ie));for(J=re>0?re+1:0;J<I;){for(ce=z,se=1,ee=s;!(J>=I&&L("invalid-input"),te=k(B.charCodeAt(J++)),(te>=s||te>T((n-z)/se))&&L("overflow"),z+=te*se,ae=ee<=V?l:ee>=V+a?a:ee-V,te<ae);ee+=s)fe=s-ae,se>T(n/fe)&&L("overflow"),se*=fe;A=$.length+1,V=Q(z-ce,A,ce==0),T(z/A)>n-K&&L("overflow"),K+=T(z/A),z%=A,$.splice(z++,0,K)}return O($)}function q(B){var $,I,A,z,K,V,re,ie,J,ce,se,ee=[],te,ae,fe,G;for(B=j(B),te=B.length,$=g,I=0,K=p,V=0;V<te;++V)se=B[V],se<128&&ee.push(m(se));for(A=z=ee.length,z&&ee.push(E);A<te;){for(re=n,V=0;V<te;++V)se=B[V],se>=$&&se<re&&(re=se);for(ae=A+1,re-$>T((n-I)/ae)&&L("overflow"),I+=(re-$)*ae,$=re,V=0;V<te;++V)if(se=B[V],se<$&&++I>n&&L("overflow"),se==$){for(ie=I,J=s;!(ce=J<=K?l:J>=K+a?a:J-K,ie<ce);J+=s)G=ie-ce,fe=s-ce,ee.push(m(H(ce+G%fe,0))),ie=T(G/fe);ee.push(m(H(ie,0))),K=Q(I,ae,A==z),I=0,++A}++I,++$}return ee.join("")}function W(B){return u(B,function($){return w.test($)?F($.slice(4).toLowerCase()):$})}function N(B){return u(B,function($){return P.test($)?"xn--"+q($):$})}if(h={version:"1.4.1",ucs2:{decode:j,encode:O},decode:F,encode:q,toASCII:N,toUnicode:W},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return h});else if(_&&y)if(b.exports==_)y.exports=h;else for(r in h)h.hasOwnProperty(r)&&(_[r]=h[r]);else t.punycode=h})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(e,b,c){"use strict";function i(_,y){return Object.prototype.hasOwnProperty.call(_,y)}b.exports=function(_,y,d,h){y=y||"&",d=d||"=";var n={};if(typeof _!="string"||_.length===0)return n;var s=/\+/g;_=_.split(y);var l=1e3;h&&typeof h.maxKeys=="number"&&(l=h.maxKeys);var a=_.length;l>0&&a>l&&(a=l);for(var o=0;o<a;++o){var v=_[o].replace(s,"%20"),p=v.indexOf(d),g,E,w,P;p>=0?(g=v.substr(0,p),E=v.substr(p+1)):(g=v,E=""),w=decodeURIComponent(g),P=decodeURIComponent(E),i(n,w)?t(n[w])?n[w].push(P):n[w]=[n[w],P]:n[w]=P}return n};var t=Array.isArray||function(_){return Object.prototype.toString.call(_)==="[object Array]"}},{}],211:[function(e,b,c){"use strict";var i=function(h){switch(typeof h){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}};b.exports=function(d,h,n,s){return h=h||"&",n=n||"=",d===null&&(d=void 0),typeof d=="object"?_(y(d),function(l){var a=encodeURIComponent(i(l))+n;return t(d[l])?_(d[l],function(o){return a+encodeURIComponent(i(o))}).join(h):a+encodeURIComponent(i(d[l]))}).join(h):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(d)):""};var t=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function _(d,h){if(d.map)return d.map(h);for(var n=[],s=0;s<d.length;s++)n.push(h(d[s],s));return n}var y=Object.keys||function(d){var h=[];for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&h.push(n);return h}},{}],212:[function(e,b,c){"use strict";c.decode=c.parse=e("./decode"),c.encode=c.stringify=e("./encode")},{"./decode":210,"./encode":211}],213:[function(e,b,c){b.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=d(i),_=e("babel-runtime/core-js/object/keys"),y=d(_);function d(P){return P&&P.__esModule?P:{default:P}}var h=e("process-nextick-args"),n=y.default||function(P){var x=[];for(var D in P)x.push(D);return x};b.exports=g;var s=(0,t.default)(e("core-util-is"));s.inherits=e("inherits");var l=e("./_stream_readable"),a=e("./_stream_writable");s.inherits(g,l);for(var o=n(a.prototype),v=0;v<o.length;v++){var p=o[v];g.prototype[p]||(g.prototype[p]=a.prototype[p])}function g(P){if(!(this instanceof g))return new g(P);l.call(this,P),a.call(this,P),P&&P.readable===!1&&(this.readable=!1),P&&P.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,P&&P.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",E)}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(){if(this.allowHalfOpen||this._writableState.ended)return;h.nextTick(w,this)}function w(P){P.end()}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(x){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=x,this._writableState.destroyed=x}}),g.prototype._destroy=function(P,x){this.push(null),this.end(),h.nextTick(x,P)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(n){return n&&n.__esModule?n:{default:n}}b.exports=h;var y=e("./_stream_transform"),d=(0,t.default)(e("core-util-is"));d.inherits=e("inherits"),d.inherits(h,y);function h(n){if(!(this instanceof h))return new h(n);y.call(this,n)}h.prototype._transform=function(n,s,l){l(null,n)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(e,b,c){(function(i,t){"use strict";var _=e("babel-runtime/core-js/object/get-prototype-of"),y=n(_),d=e("babel-runtime/core-js/object/create"),h=n(d);function n(G){return G&&G.__esModule?G:{default:G}}var s=e("process-nextick-args");b.exports=j;var l=e("isarray"),a;j.ReadableState=u;var o=e("events").EventEmitter,v=function(X,oe){return X.listeners(oe).length},p=e("./internal/streams/stream"),g=e("safe-buffer").Buffer,E=t.Uint8Array||function(){};function w(G){return g.from(G)}function P(G){return g.isBuffer(G)||G instanceof E}var x=(0,h.default)(e("core-util-is"));x.inherits=e("inherits");var D=e("util"),C=void 0;D&&D.debuglog?C=D.debuglog("stream"):C=function(){};var T=e("./internal/streams/BufferList"),m=e("./internal/streams/destroy"),r;x.inherits(j,p);var L=["error","close","destroy","pause","resume"];function M(G,X,oe){if(typeof G.prependListener=="function")return G.prependListener(X,oe);!G._events||!G._events[X]?G.on(X,oe):l(G._events[X])?G._events[X].unshift(oe):G._events[X]=[oe,G._events[X]]}function u(G,X){a=a||e("./_stream_duplex"),G=G||{};var oe=X instanceof a;this.objectMode=!!G.objectMode,oe&&(this.objectMode=this.objectMode||!!G.readableObjectMode);var U=G.highWaterMark,R=G.readableHighWaterMark,f=this.objectMode?16:16*1024;U||U===0?this.highWaterMark=U:oe&&(R||R===0)?this.highWaterMark=R:this.highWaterMark=f,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new T,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=G.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,G.encoding&&(r||(r=e("string_decoder/").StringDecoder),this.decoder=new r(G.encoding),this.encoding=G.encoding)}function j(G){if(a=a||e("./_stream_duplex"),!(this instanceof j))return new j(G);this._readableState=new u(G,this),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),p.call(this)}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(X){if(!this._readableState)return;this._readableState.destroyed=X}}),j.prototype.destroy=m.destroy,j.prototype._undestroy=m.undestroy,j.prototype._destroy=function(G,X){this.push(null),X(G)},j.prototype.push=function(G,X){var oe=this._readableState,U;return oe.objectMode?U=!0:typeof G=="string"&&(X=X||oe.defaultEncoding,X!==oe.encoding&&(G=g.from(G,X),X=""),U=!0),O(this,G,X,!1,U)},j.prototype.unshift=function(G){return O(this,G,null,!0,!1)};function O(G,X,oe,U,R){var f=G._readableState;if(X===null)f.reading=!1,N(G,f);else{var S;R||(S=H(f,X)),S?G.emit("error",S):f.objectMode||X&&X.length>0?(typeof X!="string"&&!f.objectMode&&(0,y.default)(X)!==g.prototype&&(X=w(X)),U?f.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):k(G,f,X,!0):f.ended?G.emit("error",new Error("stream.push() after EOF")):(f.reading=!1,f.decoder&&!oe?(X=f.decoder.write(X),f.objectMode||X.length!==0?k(G,f,X,!1):I(G,f)):k(G,f,X,!1))):U||(f.reading=!1)}return Q(f)}function k(G,X,oe,U){X.flowing&&X.length===0&&!X.sync?(G.emit("data",oe),G.read(0)):(X.length+=X.objectMode?1:oe.length,U?X.buffer.unshift(oe):X.buffer.push(oe),X.needReadable&&B(G)),I(G,X)}function H(G,X){var oe;return!P(X)&&typeof X!="string"&&X!==void 0&&!G.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe}function Q(G){return!G.ended&&(G.needReadable||G.length<G.highWaterMark||G.length===0)}j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(G){return r||(r=e("string_decoder/").StringDecoder),this._readableState.decoder=new r(G),this._readableState.encoding=G,this};var F=8388608;function q(G){return G>=F?G=F:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}function W(G,X){return G<=0||X.length===0&&X.ended?0:X.objectMode?1:G!==G?X.flowing&&X.length?X.buffer.head.data.length:X.length:(G>X.highWaterMark&&(X.highWaterMark=q(G)),G<=X.length?G:X.ended?X.length:(X.needReadable=!0,0))}j.prototype.read=function(G){C("read",G),G=parseInt(G,10);var X=this._readableState,oe=G;if(G!==0&&(X.emittedReadable=!1),G===0&&X.needReadable&&(X.length>=X.highWaterMark||X.ended))return C("read: emitReadable",X.length,X.ended),X.length===0&&X.ended?te(this):B(this),null;if(G=W(G,X),G===0&&X.ended)return X.length===0&&te(this),null;var U=X.needReadable;C("need readable",U),(X.length===0||X.length-G<X.highWaterMark)&&(U=!0,C("length less than watermark",U)),X.ended||X.reading?(U=!1,C("reading or ended",U)):U&&(C("do read"),X.reading=!0,X.sync=!0,X.length===0&&(X.needReadable=!0),this._read(X.highWaterMark),X.sync=!1,X.reading||(G=W(oe,X)));var R;return G>0?R=J(G,X):R=null,R===null?(X.needReadable=!0,G=0):X.length-=G,X.length===0&&(X.ended||(X.needReadable=!0),oe!==G&&X.ended&&te(this)),R!==null&&this.emit("data",R),R};function N(G,X){if(X.ended)return;if(X.decoder){var oe=X.decoder.end();oe&&oe.length&&(X.buffer.push(oe),X.length+=X.objectMode?1:oe.length)}X.ended=!0,B(G)}function B(G){var X=G._readableState;X.needReadable=!1,X.emittedReadable||(C("emitReadable",X.flowing),X.emittedReadable=!0,X.sync?s.nextTick($,G):$(G))}function $(G){C("emit readable"),G.emit("readable"),ie(G)}function I(G,X){X.readingMore||(X.readingMore=!0,s.nextTick(A,G,X))}function A(G,X){for(var oe=X.length;!X.reading&&!X.flowing&&!X.ended&&X.length<X.highWaterMark&&!(C("maybeReadMore read 0"),G.read(0),oe===X.length);)oe=X.length;X.readingMore=!1}j.prototype._read=function(G){this.emit("error",new Error("_read() is not implemented"))},j.prototype.pipe=function(G,X){var oe=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=G;break;case 1:U.pipes=[U.pipes,G];break;default:U.pipes.push(G);break}U.pipesCount+=1,C("pipe count=%d opts=%j",U.pipesCount,X);var R=(!X||X.end!==!1)&&G!==i.stdout&&G!==i.stderr,f=R?Z:Xe;U.endEmitted?s.nextTick(f):oe.once("end",f),G.on("unpipe",S);function S(ue,He){C("onunpipe"),ue===oe&&(He&&He.hasUnpiped===!1&&(He.hasUnpiped=!0,he()))}function Z(){C("onend"),G.end()}var Y=z(oe);G.on("drain",Y);var ne=!1;function he(){C("cleanup"),G.removeListener("close",Se),G.removeListener("finish",De),G.removeListener("drain",Y),G.removeListener("error",Ce),G.removeListener("unpipe",S),oe.removeListener("end",Z),oe.removeListener("end",Xe),oe.removeListener("data",we),ne=!0,U.awaitDrain&&(!G._writableState||G._writableState.needDrain)&&Y()}var ve=!1;oe.on("data",we);function we(ue){C("ondata"),ve=!1;var He=G.write(ue);He===!1&&!ve&&((U.pipesCount===1&&U.pipes===G||U.pipesCount>1&&fe(U.pipes,G)!==-1)&&!ne&&(C("false write response, pause",oe._readableState.awaitDrain),oe._readableState.awaitDrain++,ve=!0),oe.pause())}function Ce(ue){C("onerror",ue),Xe(),G.removeListener("error",Ce),v(G,"error")===0&&G.emit("error",ue)}M(G,"error",Ce);function Se(){G.removeListener("finish",De),Xe()}G.once("close",Se);function De(){C("onfinish"),G.removeListener("close",Se),Xe()}G.once("finish",De);function Xe(){C("unpipe"),oe.unpipe(G)}return G.emit("pipe",oe),U.flowing||(C("pipe resume"),oe.resume()),G};function z(G){return function(){var X=G._readableState;C("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,X.awaitDrain===0&&v(G,"data")&&(X.flowing=!0,ie(G))}}j.prototype.unpipe=function(G){var X=this._readableState,oe={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1)return G&&G!==X.pipes?this:(G||(G=X.pipes),X.pipes=null,X.pipesCount=0,X.flowing=!1,G&&G.emit("unpipe",this,oe),this);if(!G){var U=X.pipes,R=X.pipesCount;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var f=0;f<R;f++)U[f].emit("unpipe",this,oe);return this}var S=fe(X.pipes,G);return S===-1?this:(X.pipes.splice(S,1),X.pipesCount-=1,X.pipesCount===1&&(X.pipes=X.pipes[0]),G.emit("unpipe",this,oe),this)},j.prototype.on=function(G,X){var oe=p.prototype.on.call(this,G,X);if(G==="data")this._readableState.flowing!==!1&&this.resume();else if(G==="readable"){var U=this._readableState;!U.endEmitted&&!U.readableListening&&(U.readableListening=U.needReadable=!0,U.emittedReadable=!1,U.reading?U.length&&B(this):s.nextTick(K,this))}return oe},j.prototype.addListener=j.prototype.on;function K(G){C("readable nexttick read 0"),G.read(0)}j.prototype.resume=function(){var G=this._readableState;return G.flowing||(C("resume"),G.flowing=!0,V(this,G)),this};function V(G,X){X.resumeScheduled||(X.resumeScheduled=!0,s.nextTick(re,G,X))}function re(G,X){X.reading||(C("resume read 0"),G.read(0)),X.resumeScheduled=!1,X.awaitDrain=0,G.emit("resume"),ie(G),X.flowing&&!X.reading&&G.read(0)}j.prototype.pause=function(){return C("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(C("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ie(G){var X=G._readableState;for(C("flow",X.flowing);X.flowing&&G.read()!==null;);}j.prototype.wrap=function(G){var X=this,oe=this._readableState,U=!1;G.on("end",function(){if(C("wrapped end"),oe.decoder&&!oe.ended){var S=oe.decoder.end();S&&S.length&&X.push(S)}X.push(null)}),G.on("data",function(S){if(C("wrapped data"),oe.decoder&&(S=oe.decoder.write(S)),oe.objectMode&&S==null)return;if(!oe.objectMode&&(!S||!S.length))return;var Z=X.push(S);Z||(U=!0,G.pause())});for(var R in G)this[R]===void 0&&typeof G[R]=="function"&&(this[R]=function(S){return function(){return G[S].apply(G,arguments)}}(R));for(var f=0;f<L.length;f++)G.on(L[f],this.emit.bind(this,L[f]));return this._read=function(S){C("wrapped _read",S),U&&(U=!1,G.resume())},this},Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),j._fromList=J;function J(G,X){if(X.length===0)return null;var oe;return X.objectMode?oe=X.buffer.shift():!G||G>=X.length?(X.decoder?oe=X.buffer.join(""):X.buffer.length===1?oe=X.buffer.head.data:oe=X.buffer.concat(X.length),X.buffer.clear()):oe=ce(G,X.buffer,X.decoder),oe}function ce(G,X,oe){var U;return G<X.head.data.length?(U=X.head.data.slice(0,G),X.head.data=X.head.data.slice(G)):G===X.head.data.length?U=X.shift():U=oe?se(G,X):ee(G,X),U}function se(G,X){var oe=X.head,U=1,R=oe.data;for(G-=R.length;oe=oe.next;){var f=oe.data,S=G>f.length?f.length:G;if(S===f.length?R+=f:R+=f.slice(0,G),G-=S,G===0){S===f.length?(++U,oe.next?X.head=oe.next:X.head=X.tail=null):(X.head=oe,oe.data=f.slice(S));break}++U}return X.length-=U,R}function ee(G,X){var oe=g.allocUnsafe(G),U=X.head,R=1;for(U.data.copy(oe),G-=U.data.length;U=U.next;){var f=U.data,S=G>f.length?f.length:G;if(f.copy(oe,oe.length-G,0,S),G-=S,G===0){S===f.length?(++R,U.next?X.head=U.next:X.head=X.tail=null):(X.head=U,U.data=f.slice(S));break}++R}return X.length-=R,oe}function te(G){var X=G._readableState;if(X.length>0)throw new Error('"endReadable()" called on non-empty stream');X.endEmitted||(X.ended=!0,s.nextTick(ae,X,G))}function ae(G,X){!G.endEmitted&&G.length===0&&(G.endEmitted=!0,X.readable=!1,X.emit("end"))}function fe(G,X){for(var oe=0,U=G.length;oe<U;oe++)if(G[oe]===X)return oe;return-1}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(a){return a&&a.__esModule?a:{default:a}}b.exports=n;var y=e("./_stream_duplex"),d=(0,t.default)(e("core-util-is"));d.inherits=e("inherits"),d.inherits(n,y);function h(a,o){var v=this._transformState;v.transforming=!1;var p=v.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));v.writechunk=null,v.writecb=null,o!=null&&this.push(o),p(a);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function n(a){if(!(this instanceof n))return new n(a);y.call(this,a),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",s)}function s(){var a=this;typeof this._flush=="function"?this._flush(function(o,v){l(a,o,v)}):l(this,null,null)}n.prototype.push=function(a,o){return this._transformState.needTransform=!1,y.prototype.push.call(this,a,o)},n.prototype._transform=function(a,o,v){throw new Error("_transform() is not implemented")},n.prototype._write=function(a,o,v){var p=this._transformState;if(p.writecb=v,p.writechunk=a,p.writeencoding=o,!p.transforming){var g=this._readableState;(p.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},n.prototype._read=function(a){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},n.prototype._destroy=function(a,o){var v=this;y.prototype._destroy.call(this,a,function(p){o(p),v.emit("close")})};function l(a,o,v){if(o)return a.emit("error",o);if(v!=null&&a.push(v),a._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw new Error("Calling transform done when still transforming");return a.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(e,b,c){(function(i,t){"use strict";var _=e("babel-runtime/core-js/object/define-property"),y=p(_),d=e("babel-runtime/core-js/symbol/has-instance"),h=p(d),n=e("babel-runtime/core-js/symbol"),s=p(n),l=e("babel-runtime/core-js/object/create"),a=p(l),o=e("babel-runtime/core-js/set-immediate"),v=p(o);function p(ee){return ee&&ee.__esModule?ee:{default:ee}}var g=e("process-nextick-args");b.exports=H;function E(ee,te,ae){this.chunk=ee,this.encoding=te,this.callback=ae,this.next=null}function w(ee){var te=this;this.next=null,this.entry=null,this.finish=function(){se(te,ee)}}var P=!i.browser&&["v0.10","v0.9."].indexOf(i.version.slice(0,5))>-1?v.default:g.nextTick,x;H.WritableState=O;var D=(0,a.default)(e("core-util-is"));D.inherits=e("inherits");var C={deprecate:e("util-deprecate")},T=e("./internal/streams/stream"),m=e("safe-buffer").Buffer,r=t.Uint8Array||function(){};function L(ee){return m.from(ee)}function M(ee){return m.isBuffer(ee)||ee instanceof r}var u=e("./internal/streams/destroy");D.inherits(H,T);function j(){}function O(ee,te){x=x||e("./_stream_duplex"),ee=ee||{};var ae=te instanceof x;this.objectMode=!!ee.objectMode,ae&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var fe=ee.highWaterMark,G=ee.writableHighWaterMark,X=this.objectMode?16:16*1024;fe||fe===0?this.highWaterMark=fe:ae&&(G||G===0)?this.highWaterMark=G:this.highWaterMark=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 oe=ee.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){I(te,U)},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 w(this)}O.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ae=[];te;)ae.push(te),te=te.next;return ae},function(){try{Object.defineProperty(O.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ee){}}();var k;typeof s.default=="function"&&h.default&&typeof Function.prototype[h.default]=="function"?(k=Function.prototype[h.default],(0,y.default)(H,h.default,{value:function(te){return k.call(this,te)?!0:this!==H?!1:te&&te._writableState instanceof O}})):k=function(te){return te instanceof this};function H(ee){if(x=x||e("./_stream_duplex"),!k.call(H,this)&&!(this instanceof x))return new H(ee);this._writableState=new O(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)),T.call(this)}H.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Q(ee,te){var ae=new Error("write after end");ee.emit("error",ae),g.nextTick(te,ae)}function F(ee,te,ae,fe){var G=!0,X=!1;return ae===null?X=new TypeError("May not write null values to stream"):typeof ae!="string"&&ae!==void 0&&!te.objectMode&&(X=new TypeError("Invalid non-string/buffer chunk")),X&&(ee.emit("error",X),g.nextTick(fe,X),G=!1),G}H.prototype.write=function(ee,te,ae){var fe=this._writableState,G=!1,X=!fe.objectMode&&M(ee);return X&&!m.isBuffer(ee)&&(ee=L(ee)),typeof te=="function"&&(ae=te,te=null),X?te="buffer":te||(te=fe.defaultEncoding),typeof ae!="function"&&(ae=j),fe.ended?Q(this,ae):(X||F(this,fe,ee,ae))&&(fe.pendingcb++,G=W(this,fe,X,ee,te,ae)),G},H.prototype.cork=function(){var ee=this._writableState;ee.corked++},H.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,!ee.writing&&!ee.corked&&!ee.finished&&!ee.bufferProcessing&&ee.bufferedRequest&&K(this,ee))},H.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+te);return this._writableState.defaultEncoding=te,this};function q(ee,te,ae){return!ee.objectMode&&ee.decodeStrings!==!1&&typeof te=="string"&&(te=m.from(te,ae)),te}Object.defineProperty(H.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(ee,te,ae,fe,G,X){if(!ae){var oe=q(te,fe,G);fe!==oe&&(ae=!0,G="buffer",fe=oe)}var U=te.objectMode?1:fe.length;te.length+=U;var R=te.length<te.highWaterMark;if(R||(te.needDrain=!0),te.writing||te.corked){var f=te.lastBufferedRequest;te.lastBufferedRequest={chunk:fe,encoding:G,isBuf:ae,callback:X,next:null},f?f.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else N(ee,te,!1,U,fe,G,X);return R}function N(ee,te,ae,fe,G,X,oe){te.writelen=fe,te.writecb=oe,te.writing=!0,te.sync=!0,ae?ee._writev(G,te.onwrite):ee._write(G,X,te.onwrite),te.sync=!1}function B(ee,te,ae,fe,G){--te.pendingcb,ae?(g.nextTick(G,fe),g.nextTick(J,ee,te),ee._writableState.errorEmitted=!0,ee.emit("error",fe)):(G(fe),ee._writableState.errorEmitted=!0,ee.emit("error",fe),J(ee,te))}function $(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}function I(ee,te){var ae=ee._writableState,fe=ae.sync,G=ae.writecb;if($(ae),te)B(ee,ae,fe,te,G);else{var X=V(ae);!X&&!ae.corked&&!ae.bufferProcessing&&ae.bufferedRequest&&K(ee,ae),fe?P(A,ee,ae,X,G):A(ee,ae,X,G)}}function A(ee,te,ae,fe){ae||z(ee,te),te.pendingcb--,fe(),J(ee,te)}function z(ee,te){te.length===0&&te.needDrain&&(te.needDrain=!1,ee.emit("drain"))}function K(ee,te){te.bufferProcessing=!0;var ae=te.bufferedRequest;if(ee._writev&&ae&&ae.next){var fe=te.bufferedRequestCount,G=new Array(fe),X=te.corkedRequestsFree;X.entry=ae;for(var oe=0,U=!0;ae;)G[oe]=ae,ae.isBuf||(U=!1),ae=ae.next,oe+=1;G.allBuffers=U,N(ee,te,!0,te.length,G,"",X.finish),te.pendingcb++,te.lastBufferedRequest=null,X.next?(te.corkedRequestsFree=X.next,X.next=null):te.corkedRequestsFree=new w(te),te.bufferedRequestCount=0}else{for(;ae;){var R=ae.chunk,f=ae.encoding,S=ae.callback,Z=te.objectMode?1:R.length;if(N(ee,te,!1,Z,R,f,S),ae=ae.next,te.bufferedRequestCount--,te.writing)break}ae===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=ae,te.bufferProcessing=!1}H.prototype._write=function(ee,te,ae){ae(new Error("_write() is not implemented"))},H.prototype._writev=null,H.prototype.end=function(ee,te,ae){var fe=this._writableState;typeof ee=="function"?(ae=ee,ee=null,te=null):typeof te=="function"&&(ae=te,te=null),ee!=null&&this.write(ee,te),fe.corked&&(fe.corked=1,this.uncork()),!fe.ending&&!fe.finished&&ce(this,fe,ae)};function V(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function re(ee,te){ee._final(function(ae){te.pendingcb--,ae&&ee.emit("error",ae),te.prefinished=!0,ee.emit("prefinish"),J(ee,te)})}function ie(ee,te){!te.prefinished&&!te.finalCalled&&(typeof ee._final=="function"?(te.pendingcb++,te.finalCalled=!0,g.nextTick(re,ee,te)):(te.prefinished=!0,ee.emit("prefinish")))}function J(ee,te){var ae=V(te);return ae&&(ie(ee,te),te.pendingcb===0&&(te.finished=!0,ee.emit("finish"))),ae}function ce(ee,te,ae){te.ending=!0,J(ee,te),ae&&(te.finished?g.nextTick(ae):ee.once("finish",ae)),te.ended=!0,ee.writable=!1}function se(ee,te,ae){var fe=ee.entry;for(ee.entry=null;fe;){var G=fe.callback;te.pendingcb--,G(ae),fe=fe.next}te.corkedRequestsFree?te.corkedRequestsFree.next=ee:te.corkedRequestsFree=ee}Object.defineProperty(H.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){if(!this._writableState)return;this._writableState.destroyed=te}}),H.prototype.destroy=u.destroy,H.prototype._undestroy=u.undestroy,H.prototype._destroy=function(ee,te){this.end(),te(ee)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(e,b,c){"use strict";function i(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var t=e("safe-buffer").Buffer,_=e("util");function y(d,h,n){d.copy(h,n)}b.exports=function(){function d(){i(this,d),this.head=null,this.tail=null,this.length=0}return d.prototype.push=function(n){var s={data:n,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length},d.prototype.unshift=function(n){var s={data:n,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length},d.prototype.shift=function(){if(this.length===0)return;var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n},d.prototype.clear=function(){this.head=this.tail=null,this.length=0},d.prototype.join=function(n){if(this.length===0)return"";for(var s=this.head,l=""+s.data;s=s.next;)l+=n+s.data;return l},d.prototype.concat=function(n){if(this.length===0)return t.alloc(0);if(this.length===1)return this.head.data;for(var s=t.allocUnsafe(n>>>0),l=this.head,a=0;l;)y(l.data,s,a),a+=l.data.length,l=l.next;return s},d}(),_&&_.inspect&&_.inspect.custom&&(b.exports.prototype[_.inspect.custom]=function(){var d=_.inspect({length:this.length});return this.constructor.name+" "+d})},{"safe-buffer":228,util:71}],220:[function(e,b,c){"use strict";var i=e("process-nextick-args");function t(d,h){var n=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(h?h(d):d&&(!this._writableState||!this._writableState.errorEmitted)&&i.nextTick(y,this,d),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(d||null,function(a){!h&&a?(i.nextTick(y,n,a),n._writableState&&(n._writableState.errorEmitted=!0)):h&&h(a)}),this)}function _(){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 y(d,h){d.emit("error",h)}b.exports={destroy:t,undestroy:_}},{"process-nextick-args":207}],221:[function(e,b,c){"use strict";b.exports=e("events").EventEmitter},{events:192}],222:[function(e,b,c){b.exports=e("./readable").PassThrough},{"./readable":223}],223:[function(e,b,c){c=b.exports=e("./lib/_stream_readable.js"),c.Stream=c,c.Readable=c,c.Writable=e("./lib/_stream_writable.js"),c.Duplex=e("./lib/_stream_duplex.js"),c.Transform=e("./lib/_stream_transform.js"),c.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(e,b,c){b.exports=e("./readable").Transform},{"./readable":223}],225:[function(e,b,c){b.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(e,b,c){var i=function(){return this}()||Function("return this")(),t=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,_=t&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,b.exports=e("./runtime"),t)i.regeneratorRuntime=_;else try{delete i.regeneratorRuntime}catch(y){i.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(e,b,c){!function(i){"use strict";var t=Object.prototype,_=t.hasOwnProperty,y,d=typeof Symbol=="function"?Symbol:{},h=d.iterator||"@@iterator",n=d.asyncIterator||"@@asyncIterator",s=d.toStringTag||"@@toStringTag",l=typeof b=="object",a=i.regeneratorRuntime;if(a){l&&(b.exports=a);return}a=i.regeneratorRuntime=l?b.exports:{};function o(W,N,B,$){var I=N&&N.prototype instanceof x?N:x,A=Object.create(I.prototype),z=new Q($||[]);return A._invoke=j(W,B,z),A}a.wrap=o;function v(W,N,B){try{return{type:"normal",arg:W.call(N,B)}}catch($){return{type:"throw",arg:$}}}var p="suspendedStart",g="suspendedYield",E="executing",w="completed",P={};function x(){}function D(){}function C(){}var T={};T[h]=function(){return this};var m=Object.getPrototypeOf,r=m&&m(m(F([])));r&&r!==t&&_.call(r,h)&&(T=r);var L=C.prototype=x.prototype=Object.create(T);D.prototype=L.constructor=C,C.constructor=D,C[s]=D.displayName="GeneratorFunction";function M(W){["next","throw","return"].forEach(function(N){W[N]=function(B){return this._invoke(N,B)}})}a.isGeneratorFunction=function(W){var N=typeof W=="function"&&W.constructor;return N?N===D||(N.displayName||N.name)==="GeneratorFunction":!1},a.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,C):(W.__proto__=C,s in W||(W[s]="GeneratorFunction")),W.prototype=Object.create(L),W},a.awrap=function(W){return{__await:W}};function u(W){function N(I,A,z,K){var V=v(W[I],W,A);if(V.type==="throw")K(V.arg);else{var re=V.arg,ie=re.value;return ie&&typeof ie=="object"&&_.call(ie,"__await")?Promise.resolve(ie.__await).then(function(J){N("next",J,z,K)},function(J){N("throw",J,z,K)}):Promise.resolve(ie).then(function(J){re.value=J,z(re)},K)}}var B;function $(I,A){function z(){return new Promise(function(K,V){N(I,A,K,V)})}return B=B?B.then(z,z):z()}this._invoke=$}M(u.prototype),u.prototype[n]=function(){return this},a.AsyncIterator=u,a.async=function(W,N,B,$){var I=new u(o(W,N,B,$));return a.isGeneratorFunction(N)?I:I.next().then(function(A){return A.done?A.value:I.next()})};function j(W,N,B){var $=p;return function(A,z){if($===E)throw new Error("Generator is already running");if($===w){if(A==="throw")throw z;return q()}for(B.method=A,B.arg=z;;){var K=B.delegate;if(K){var V=O(K,B);if(V){if(V===P)continue;return V}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if($===p)throw $=w,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);$=E;var re=v(W,N,B);if(re.type==="normal"){if($=B.done?w:g,re.arg===P)continue;return{value:re.arg,done:B.done}}else re.type==="throw"&&($=w,B.method="throw",B.arg=re.arg)}}}function O(W,N){var B=W.iterator[N.method];if(B===y){if(N.delegate=null,N.method==="throw"){if(W.iterator.return&&(N.method="return",N.arg=y,O(W,N),N.method==="throw"))return P;N.method="throw",N.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var $=v(B,W.iterator,N.arg);if($.type==="throw")return N.method="throw",N.arg=$.arg,N.delegate=null,P;var I=$.arg;if(!I)return N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,P;if(I.done)N[W.resultName]=I.value,N.next=W.nextLoc,N.method!=="return"&&(N.method="next",N.arg=y);else return I;return N.delegate=null,P}M(L),L[s]="Generator",L[h]=function(){return this},L.toString=function(){return"[object Generator]"};function k(W){var N={tryLoc:W[0]};1 in W&&(N.catchLoc=W[1]),2 in W&&(N.finallyLoc=W[2],N.afterLoc=W[3]),this.tryEntries.push(N)}function H(W){var N=W.completion||{};N.type="normal",delete N.arg,W.completion=N}function Q(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(k,this),this.reset(!0)}a.keys=function(W){var N=[];for(var B in W)N.push(B);return N.reverse(),function $(){for(;N.length;){var I=N.pop();if(I in W)return $.value=I,$.done=!1,$}return $.done=!0,$}};function F(W){if(W){var N=W[h];if(N)return N.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var B=-1,$=function I(){for(;++B<W.length;)if(_.call(W,B))return I.value=W[B],I.done=!1,I;return I.value=y,I.done=!0,I};return $.next=$}}return{next:q}}a.values=F;function q(){return{value:y,done:!0}}Q.prototype={constructor:Q,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(H),!N)for(var B in this)B.charAt(0)==="t"&&_.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=y)},stop:function(){this.done=!0;var N=this.tryEntries[0],B=N.completion;if(B.type==="throw")throw B.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var B=this;function $(re,ie){return z.type="throw",z.arg=N,B.next=re,ie&&(B.method="next",B.arg=y),!!ie}for(var I=this.tryEntries.length-1;I>=0;--I){var A=this.tryEntries[I],z=A.completion;if(A.tryLoc==="root")return $("end");if(A.tryLoc<=this.prev){var K=_.call(A,"catchLoc"),V=_.call(A,"finallyLoc");if(K&&V){if(this.prev<A.catchLoc)return $(A.catchLoc,!0);if(this.prev<A.finallyLoc)return $(A.finallyLoc)}else if(K){if(this.prev<A.catchLoc)return $(A.catchLoc,!0)}else if(V){if(this.prev<A.finallyLoc)return $(A.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(N,B){for(var $=this.tryEntries.length-1;$>=0;--$){var I=this.tryEntries[$];if(I.tryLoc<=this.prev&&_.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var A=I;break}}A&&(N==="break"||N==="continue")&&A.tryLoc<=B&&B<=A.finallyLoc&&(A=null);var z=A?A.completion:{};return z.type=N,z.arg=B,A?(this.method="next",this.next=A.finallyLoc,P):this.complete(z)},complete:function(N,B){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&B&&(this.next=B),P},finish:function(N){for(var B=this.tryEntries.length-1;B>=0;--B){var $=this.tryEntries[B];if($.finallyLoc===N)return this.complete($.completion,$.afterLoc),H($),P}},catch:function(N){for(var B=this.tryEntries.length-1;B>=0;--B){var $=this.tryEntries[B];if($.tryLoc===N){var I=$.completion;if(I.type==="throw"){var A=I.arg;H($)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(N,B,$){return this.delegate={iterator:F(N),resultName:B,nextLoc:$},this.method==="next"&&(this.arg=y),P}}}(function(){return this}()||Function("return this")())},{}],228:[function(e,b,c){var i=e("buffer"),t=i.Buffer;function _(d,h){for(var n in d)h[n]=d[n]}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?b.exports=i:(_(i,c),c.Buffer=y);function y(d,h,n){return t(d,h,n)}_(t,y),y.from=function(d,h,n){if(typeof d=="number")throw new TypeError("Argument must not be a number");return t(d,h,n)},y.alloc=function(d,h,n){if(typeof d!="number")throw new TypeError("Argument must be a number");var s=t(d);return h!==void 0?typeof n=="string"?s.fill(h,n):s.fill(h):s.fill(0),s},y.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return t(d)},y.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(d)}},{buffer:73}],229:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/core-js/string/from-code-point"),_=g(t),y=e("babel-runtime/core-js/json/stringify"),d=g(y),h=e("babel-runtime/helpers/typeof"),n=g(h),s=e("babel-runtime/core-js/object/define-property"),l=g(s),a=e("babel-runtime/core-js/object/keys"),o=g(a),v=e("babel-runtime/core-js/object/create"),p=g(v);function g(E){return E&&E.__esModule?E:{default:E}}(function(E){E.parser=function(f,S){return new P(f,S)},E.SAXParser=P,E.SAXStream=L,E.createStream=r,E.MAX_BUFFER_LENGTH=64*1024;var w=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function P(f,S){if(!(this instanceof P))return new P(f,S);var Z=this;D(Z),Z.q=Z.c="",Z.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Z.opt=S||{},Z.opt.lowercase=Z.opt.lowercase||Z.opt.lowercasetags,Z.looseCase=Z.opt.lowercase?"toLowerCase":"toUpperCase",Z.tags=[],Z.closed=Z.closedRoot=Z.sawRoot=!1,Z.tag=Z.error=null,Z.strict=!!f,Z.noscript=!!(f||Z.opt.noscript),Z.state=A.BEGIN,Z.strictEntities=Z.opt.strictEntities,Z.ENTITIES=Z.strictEntities?(0,p.default)(E.XML_ENTITIES):(0,p.default)(E.ENTITIES),Z.attribList=[],Z.opt.xmlns&&(Z.ns=(0,p.default)(k)),Z.trackPosition=Z.opt.position!==!1,Z.trackPosition&&(Z.position=Z.line=Z.column=0),K(Z,"onready")}p.default||(Object.create=function(f){function S(){}S.prototype=f;var Z=new S;return Z}),o.default||(Object.keys=function(f){var S=[];for(var Z in f)f.hasOwnProperty(Z)&&S.push(Z);return S});function x(f){for(var S=Math.max(E.MAX_BUFFER_LENGTH,10),Z=0,Y=0,ne=w.length;Y<ne;Y++){var he=f[w[Y]].length;if(he>S)switch(w[Y]){case"textNode":re(f);break;case"cdata":V(f,"oncdata",f.cdata),f.cdata="";break;case"script":V(f,"onscript",f.script),f.script="";break;default:J(f,"Max buffer length exceeded: "+w[Y])}Z=Math.max(Z,he)}var ve=E.MAX_BUFFER_LENGTH-Z;f.bufferCheckPosition=ve+f.position}function D(f){for(var S=0,Z=w.length;S<Z;S++)f[w[S]]=""}function C(f){re(f),f.cdata!==""&&(V(f,"oncdata",f.cdata),f.cdata=""),f.script!==""&&(V(f,"onscript",f.script),f.script="")}P.prototype={end:function(){ce(this)},write:R,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){C(this)}};var T;try{T=e("stream").Stream}catch(f){T=function(){}}var m=E.EVENTS.filter(function(f){return f!=="error"&&f!=="end"});function r(f,S){return new L(f,S)}function L(f,S){if(!(this instanceof L))return new L(f,S);T.apply(this),this._parser=new P(f,S),this.writable=!0,this.readable=!0;var Z=this;this._parser.onend=function(){Z.emit("end")},this._parser.onerror=function(Y){Z.emit("error",Y),Z._parser.error=null},this._decoder=null,m.forEach(function(Y){(0,l.default)(Z,"on"+Y,{get:function(){return Z._parser["on"+Y]},set:function(he){if(!he)return Z.removeAllListeners(Y),Z._parser["on"+Y]=he,he;Z.on(Y,he)},enumerable:!0,configurable:!1})})}L.prototype=(0,p.default)(T.prototype,{constructor:{value:L}}),L.prototype.write=function(f){if(typeof i=="function"&&typeof i.isBuffer=="function"&&i.isBuffer(f)){if(!this._decoder){var S=e("string_decoder").StringDecoder;this._decoder=new S("utf8")}f=this._decoder.write(f)}return this._parser.write(f.toString()),this.emit("data",f),!0},L.prototype.end=function(f){return f&&f.length&&this.write(f),this._parser.end(),!0},L.prototype.on=function(f,S){var Z=this;return!Z._parser["on"+f]&&m.indexOf(f)!==-1&&(Z._parser["on"+f]=function(){var Y=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Y.splice(0,0,f),Z.emit.apply(Z,Y)}),T.prototype.on.call(Z,f,S)};var M="[CDATA[",u="DOCTYPE",j="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",k={xml:j,xmlns:O},H=/[:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function W(f){return f===" "||f===`
`||f==="\r"||f===" "}function N(f){return f==='"'||f==="'"}function B(f){return f===">"||W(f)}function $(f,S){return f.test(S)}function I(f,S){return!$(f,S)}var A=0;E.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++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.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,o.default)(E.ENTITIES).forEach(function(f){var S=E.ENTITIES[f],Z=typeof S=="number"?String.fromCharCode(S):S;E.ENTITIES[f]=Z});for(var z in E.STATE)E.STATE[E.STATE[z]]=z;A=E.STATE;function K(f,S,Z){f[S]&&f[S](Z)}function V(f,S,Z){f.textNode&&re(f),K(f,S,Z)}function re(f){f.textNode=ie(f.opt,f.textNode),f.textNode&&K(f,"ontext",f.textNode),f.textNode=""}function ie(f,S){return f.trim&&(S=S.trim()),f.normalize&&(S=S.replace(/\s+/g," ")),S}function J(f,S){return re(f),f.trackPosition&&(S+=`
Line: `+f.line+`
Column: `+f.column+`
Char: `+f.c),S=new Error(S),f.error=S,K(f,"onerror",S),f}function ce(f){return f.sawRoot&&!f.closedRoot&&se(f,"Unclosed root tag"),f.state!==A.BEGIN&&f.state!==A.BEGIN_WHITESPACE&&f.state!==A.TEXT&&J(f,"Unexpected end"),re(f),f.c="",f.closed=!0,K(f,"onend"),P.call(f,f.strict,f.opt),f}function se(f,S){if((typeof f=="undefined"?"undefined":(0,n.default)(f))!=="object"||!(f instanceof P))throw new Error("bad call to strictFail");f.strict&&J(f,S)}function ee(f){f.strict||(f.tagName=f.tagName[f.looseCase]());var S=f.tags[f.tags.length-1]||f,Z=f.tag={name:f.tagName,attributes:{}};f.opt.xmlns&&(Z.ns=S.ns),f.attribList.length=0,V(f,"onopentagstart",Z)}function te(f,S){var Z=f.indexOf(":"),Y=Z<0?["",f]:f.split(":"),ne=Y[0],he=Y[1];return S&&f==="xmlns"&&(ne="xmlns",he=""),{prefix:ne,local:he}}function ae(f){if(f.strict||(f.attribName=f.attribName[f.looseCase]()),f.attribList.indexOf(f.attribName)!==-1||f.tag.attributes.hasOwnProperty(f.attribName)){f.attribName=f.attribValue="";return}if(f.opt.xmlns){var S=te(f.attribName,!0),Z=S.prefix,Y=S.local;if(Z==="xmlns")if(Y==="xml"&&f.attribValue!==j)se(f,"xml: prefix must be bound to "+j+`
Actual: `+f.attribValue);else if(Y==="xmlns"&&f.attribValue!==O)se(f,"xmlns: prefix must be bound to "+O+`
Actual: `+f.attribValue);else{var ne=f.tag,he=f.tags[f.tags.length-1]||f;ne.ns===he.ns&&(ne.ns=(0,p.default)(he.ns)),ne.ns[Y]=f.attribValue}f.attribList.push([f.attribName,f.attribValue])}else f.tag.attributes[f.attribName]=f.attribValue,V(f,"onattribute",{name:f.attribName,value:f.attribValue});f.attribName=f.attribValue=""}function fe(f,S){if(f.opt.xmlns){var Z=f.tag,Y=te(f.tagName);Z.prefix=Y.prefix,Z.local=Y.local,Z.uri=Z.ns[Y.prefix]||"",Z.prefix&&!Z.uri&&(se(f,"Unbound namespace prefix: "+(0,d.default)(f.tagName)),Z.uri=Y.prefix);var ne=f.tags[f.tags.length-1]||f;Z.ns&&ne.ns!==Z.ns&&(0,o.default)(Z.ns).forEach(function(Je){V(f,"onopennamespace",{prefix:Je,uri:Z.ns[Je]})});for(var he=0,ve=f.attribList.length;he<ve;he++){var we=f.attribList[he],Ce=we[0],Se=we[1],De=te(Ce,!0),Xe=De.prefix,ue=De.local,He=Xe===""?"":Z.ns[Xe]||"",Ye={name:Ce,value:Se,prefix:Xe,local:ue,uri:He};Xe&&Xe!=="xmlns"&&!He&&(se(f,"Unbound namespace prefix: "+(0,d.default)(Xe)),Ye.uri=Xe),f.tag.attributes[Ce]=Ye,V(f,"onattribute",Ye)}f.attribList.length=0}f.tag.isSelfClosing=!!S,f.sawRoot=!0,f.tags.push(f.tag),V(f,"onopentag",f.tag),S||(!f.noscript&&f.tagName.toLowerCase()==="script"?f.state=A.SCRIPT:f.state=A.TEXT,f.tag=null,f.tagName=""),f.attribName=f.attribValue="",f.attribList.length=0}function G(f){if(!f.tagName){se(f,"Weird empty close tag."),f.textNode+="</>",f.state=A.TEXT;return}if(f.script){if(f.tagName!=="script"){f.script+="</"+f.tagName+">",f.tagName="",f.state=A.SCRIPT;return}V(f,"onscript",f.script),f.script=""}var S=f.tags.length,Z=f.tagName;f.strict||(Z=Z[f.looseCase]());for(var Y=Z;S--;){var ne=f.tags[S];if(ne.name!==Y)se(f,"Unexpected close tag");else break}if(S<0){se(f,"Unmatched closing tag: "+f.tagName),f.textNode+="</"+f.tagName+">",f.state=A.TEXT;return}f.tagName=Z;for(var he=f.tags.length;he-- >S;){var ve=f.tag=f.tags.pop();f.tagName=f.tag.name,V(f,"onclosetag",f.tagName);var we={};for(var Ce in ve.ns)we[Ce]=ve.ns[Ce];var Se=f.tags[f.tags.length-1]||f;f.opt.xmlns&&ve.ns!==Se.ns&&(0,o.default)(ve.ns).forEach(function(De){var Xe=ve.ns[De];V(f,"onclosenamespace",{prefix:De,uri:Xe})})}S===0&&(f.closedRoot=!0),f.tagName=f.attribValue=f.attribName="",f.attribList.length=0,f.state=A.TEXT}function X(f){var S=f.entity,Z=S.toLowerCase(),Y,ne="";return f.ENTITIES[S]?f.ENTITIES[S]:f.ENTITIES[Z]?f.ENTITIES[Z]:(S=Z,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),Y=parseInt(S,16),ne=Y.toString(16)):(S=S.slice(1),Y=parseInt(S,10),ne=Y.toString(10))),S=S.replace(/^0+/,""),isNaN(Y)||ne.toLowerCase()!==S?(se(f,"Invalid character entity"),"&"+f.entity+";"):(0,_.default)(Y))}function oe(f,S){S==="<"?(f.state=A.OPEN_WAKA,f.startTagPosition=f.position):W(S)||(se(f,"Non-whitespace before first tag."),f.textNode=S,f.state=A.TEXT)}function U(f,S){var Z="";return S<f.length&&(Z=f.charAt(S)),Z}function R(f){var S=this;if(this.error)throw this.error;if(S.closed)return J(S,"Cannot write after close. Assign an onready handler.");if(f===null)return ce(S);(typeof f=="undefined"?"undefined":(0,n.default)(f))==="object"&&(f=f.toString());for(var Z=0,Y="";!(Y=U(f,Z++),S.c=Y,!Y);){S.trackPosition&&(S.position++,Y===`
`?(S.line++,S.column=0):S.column++);switch(S.state){case A.BEGIN:if(S.state=A.BEGIN_WHITESPACE,Y==="\uFEFF")continue;oe(S,Y);continue;case A.BEGIN_WHITESPACE:oe(S,Y);continue;case A.TEXT:if(S.sawRoot&&!S.closedRoot){for(var ne=Z-1;Y&&Y!=="<"&&Y!=="&";)Y=U(f,Z++),Y&&S.trackPosition&&(S.position++,Y===`
`?(S.line++,S.column=0):S.column++);S.textNode+=f.substring(ne,Z-1)}Y==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=A.OPEN_WAKA,S.startTagPosition=S.position):(!W(Y)&&(!S.sawRoot||S.closedRoot)&&se(S,"Text data outside of root node."),Y==="&"?S.state=A.TEXT_ENTITY:S.textNode+=Y);continue;case A.SCRIPT:Y==="<"?S.state=A.SCRIPT_ENDING:S.script+=Y;continue;case A.SCRIPT_ENDING:Y==="/"?S.state=A.CLOSE_TAG:(S.script+="<"+Y,S.state=A.SCRIPT);continue;case A.OPEN_WAKA:if(Y==="!")S.state=A.SGML_DECL,S.sgmlDecl="";else if(!W(Y))if($(H,Y))S.state=A.OPEN_TAG,S.tagName=Y;else if(Y==="/")S.state=A.CLOSE_TAG,S.tagName="";else if(Y==="?")S.state=A.PROC_INST,S.procInstName=S.procInstBody="";else{if(se(S,"Unencoded <"),S.startTagPosition+1<S.position){var he=S.position-S.startTagPosition;Y=new Array(he).join(" ")+Y}S.textNode+="<"+Y,S.state=A.TEXT}continue;case A.SGML_DECL:(S.sgmlDecl+Y).toUpperCase()===M?(V(S,"onopencdata"),S.state=A.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+Y==="--"?(S.state=A.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+Y).toUpperCase()===u?(S.state=A.DOCTYPE,(S.doctype||S.sawRoot)&&se(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):Y===">"?(V(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=A.TEXT):(N(Y)&&(S.state=A.SGML_DECL_QUOTED),S.sgmlDecl+=Y);continue;case A.SGML_DECL_QUOTED:Y===S.q&&(S.state=A.SGML_DECL,S.q=""),S.sgmlDecl+=Y;continue;case A.DOCTYPE:Y===">"?(S.state=A.TEXT,V(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=Y,Y==="["?S.state=A.DOCTYPE_DTD:N(Y)&&(S.state=A.DOCTYPE_QUOTED,S.q=Y));continue;case A.DOCTYPE_QUOTED:S.doctype+=Y,Y===S.q&&(S.q="",S.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:S.doctype+=Y,Y==="]"?S.state=A.DOCTYPE:N(Y)&&(S.state=A.DOCTYPE_DTD_QUOTED,S.q=Y);continue;case A.DOCTYPE_DTD_QUOTED:S.doctype+=Y,Y===S.q&&(S.state=A.DOCTYPE_DTD,S.q="");continue;case A.COMMENT:Y==="-"?S.state=A.COMMENT_ENDING:S.comment+=Y;continue;case A.COMMENT_ENDING:Y==="-"?(S.state=A.COMMENT_ENDED,S.comment=ie(S.opt,S.comment),S.comment&&V(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+Y,S.state=A.COMMENT);continue;case A.COMMENT_ENDED:Y!==">"?(se(S,"Malformed comment"),S.comment+="--"+Y,S.state=A.COMMENT):S.state=A.TEXT;continue;case A.CDATA:Y==="]"?S.state=A.CDATA_ENDING:S.cdata+=Y;continue;case A.CDATA_ENDING:Y==="]"?S.state=A.CDATA_ENDING_2:(S.cdata+="]"+Y,S.state=A.CDATA);continue;case A.CDATA_ENDING_2:Y===">"?(S.cdata&&V(S,"oncdata",S.cdata),V(S,"onclosecdata"),S.cdata="",S.state=A.TEXT):Y==="]"?S.cdata+="]":(S.cdata+="]]"+Y,S.state=A.CDATA);continue;case A.PROC_INST:Y==="?"?S.state=A.PROC_INST_ENDING:W(Y)?S.state=A.PROC_INST_BODY:S.procInstName+=Y;continue;case A.PROC_INST_BODY:if(!S.procInstBody&&W(Y))continue;Y==="?"?S.state=A.PROC_INST_ENDING:S.procInstBody+=Y;continue;case A.PROC_INST_ENDING:Y===">"?(V(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=A.TEXT):(S.procInstBody+="?"+Y,S.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:$(Q,Y)?S.tagName+=Y:(ee(S),Y===">"?fe(S):Y==="/"?S.state=A.OPEN_TAG_SLASH:(W(Y)||se(S,"Invalid character in tag name"),S.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:Y===">"?(fe(S,!0),G(S)):(se(S,"Forward-slash in opening tag not followed by >"),S.state=A.ATTRIB);continue;case A.ATTRIB:if(W(Y))continue;Y===">"?fe(S):Y==="/"?S.state=A.OPEN_TAG_SLASH:$(H,Y)?(S.attribName=Y,S.attribValue="",S.state=A.ATTRIB_NAME):se(S,"Invalid attribute name");continue;case A.ATTRIB_NAME:Y==="="?S.state=A.ATTRIB_VALUE:Y===">"?(se(S,"Attribute without value"),S.attribValue=S.attribName,ae(S),fe(S)):W(Y)?S.state=A.ATTRIB_NAME_SAW_WHITE:$(Q,Y)?S.attribName+=Y:se(S,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if(Y==="=")S.state=A.ATTRIB_VALUE;else{if(W(Y))continue;se(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",V(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",Y===">"?fe(S):$(H,Y)?(S.attribName=Y,S.state=A.ATTRIB_NAME):(se(S,"Invalid attribute name"),S.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(W(Y))continue;N(Y)?(S.q=Y,S.state=A.ATTRIB_VALUE_QUOTED):(se(S,"Unquoted attribute value"),S.state=A.ATTRIB_VALUE_UNQUOTED,S.attribValue=Y);continue;case A.ATTRIB_VALUE_QUOTED:if(Y!==S.q){Y==="&"?S.state=A.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=Y;continue}ae(S),S.q="",S.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:W(Y)?S.state=A.ATTRIB:Y===">"?fe(S):Y==="/"?S.state=A.OPEN_TAG_SLASH:$(H,Y)?(se(S,"No whitespace between attributes"),S.attribName=Y,S.attribValue="",S.state=A.ATTRIB_NAME):se(S,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!B(Y)){Y==="&"?S.state=A.ATTRIB_VALUE_ENTITY_U:S.attribValue+=Y;continue}ae(S),Y===">"?fe(S):S.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(S.tagName)Y===">"?G(S):$(Q,Y)?S.tagName+=Y:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=A.SCRIPT):(W(Y)||se(S,"Invalid tagname in closing tag"),S.state=A.CLOSE_TAG_SAW_WHITE);else{if(W(Y))continue;I(H,Y)?S.script?(S.script+="</"+Y,S.state=A.SCRIPT):se(S,"Invalid tagname in closing tag."):S.tagName=Y}continue;case A.CLOSE_TAG_SAW_WHITE:if(W(Y))continue;Y===">"?G(S):se(S,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var ve,we;switch(S.state){case A.TEXT_ENTITY:ve=A.TEXT,we="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:ve=A.ATTRIB_VALUE_QUOTED,we="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:ve=A.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}Y===";"?(S[we]+=X(S),S.entity="",S.state=ve):$(S.entity.length?q:F,Y)?S.entity+=Y:(se(S,"Invalid character in entity name"),S[we]+="&"+S.entity+Y,S.entity="",S.state=ve);continue;default:throw new Error(S,"Unknown state: "+S.state)}}return S.position>=S.bufferCheckPosition&&x(S),S}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */_.default||function(){var f=String.fromCharCode,S=Math.floor,Z=function(){var ne=16384,he=[],ve,we,Ce=-1,Se=arguments.length;if(!Se)return"";for(var De="";++Ce<Se;){var Xe=Number(arguments[Ce]);if(!isFinite(Xe)||Xe<0||Xe>1114111||S(Xe)!==Xe)throw RangeError("Invalid code point: "+Xe);Xe<=65535?he.push(Xe):(Xe-=65536,ve=(Xe>>10)+55296,we=Xe%1024+56320,he.push(ve,we)),(Ce+1===Se||he.length>ne)&&(De+=f.apply(null,he),he.length=0)}return De};l.default?Object.defineProperty(String,"fromCodePoint",{value:Z,configurable:!0,writable:!0}):String.fromCodePoint=Z}()})(typeof c=="undefined"?(void 0).sax={}:c)}).call(this,e("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(e,b,c){b.exports=_;var i=e("events").EventEmitter,t=e("inherits");t(_,i),_.Readable=e("readable-stream/readable.js"),_.Writable=e("readable-stream/writable.js"),_.Duplex=e("readable-stream/duplex.js"),_.Transform=e("readable-stream/transform.js"),_.PassThrough=e("readable-stream/passthrough.js"),_.Stream=_;function _(){i.call(this)}_.prototype.pipe=function(y,d){var h=this;function n(g){y.writable&&(y.write(g)===!1&&h.pause&&h.pause())}h.on("data",n);function s(){h.readable&&h.resume&&h.resume()}y.on("drain",s),!y._isStdio&&(!d||d.end!==!1)&&(h.on("end",a),h.on("close",o));var l=!1;function a(){if(l)return;l=!0,y.end()}function o(){if(l)return;l=!0,typeof y.destroy=="function"&&y.destroy()}function v(g){if(p(),i.listenerCount(this,"error")===0)throw g}h.on("error",v),y.on("error",v);function p(){h.removeListener("data",n),y.removeListener("drain",s),h.removeListener("end",a),h.removeListener("close",o),h.removeListener("error",v),y.removeListener("error",v),h.removeListener("end",p),h.removeListener("close",p),y.removeListener("close",p)}return h.on("end",p),h.on("close",p),y.on("close",p),y.emit("pipe",h),y}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(e,b,c){(function(i){var t=e("./lib/request"),_=e("./lib/response"),y=e("xtend"),d=e("builtin-status-codes"),h=e("url"),n=c;n.request=function(s,l){typeof s=="string"?s=h.parse(s):s=y(s);var a=i.location.protocol.search(/^https?:$/)===-1?"http:":"",o=s.protocol||a,v=s.hostname||s.host,p=s.port,g=s.path||"/";v&&v.indexOf(":")!==-1&&(v="["+v+"]"),s.url=(v?o+"//"+v:"")+(p?":"+p:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var E=new t(s);return l&&E.on("response",l),E},n.get=function(l,a){var o=n.request(l,a);return o.end(),o},n.ClientRequest=t,n.IncomingMessage=_.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=d,n.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 global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(e,b,c){(function(i){"use strict";c.fetch=n(i.fetch)&&n(i.ReadableStream),c.writableStream=n(i.WritableStream),c.abortController=n(i.AbortController),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(s){}var t;function _(){if(t!==void 0)return t;if(i.XMLHttpRequest){t=new i.XMLHttpRequest;try{t.open("GET",i.XDomainRequest?"/":"https://example.com")}catch(s){t=null}}else t=null;return t}function y(s){var l=_();if(!l)return!1;try{return l.responseType=s,l.responseType===s}catch(a){}return!1}var d=typeof i.ArrayBuffer!="undefined",h=d&&n(i.ArrayBuffer.prototype.slice);c.arraybuffer=c.fetch||d&&y("arraybuffer"),c.msstream=!c.fetch&&h&&y("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&d&&y("moz-chunked-arraybuffer"),c.overrideMimeType=c.fetch||(_()?n(_().overrideMimeType):!1),c.vbArray=n(i.VBArray);function n(s){return typeof s=="function"}t=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(e,b,c){(function(i,t,_){"use strict";var y=e("babel-runtime/core-js/object/keys"),d=h(y);function h(x){return x&&x.__esModule?x:{default:x}}var n=e("./capability"),s=e("inherits"),l=e("./response"),a=e("readable-stream"),o=e("to-arraybuffer"),v=l.IncomingMessage,p=l.readyStates;function g(x,D){return n.fetch&&D?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&x?"arraybuffer":n.vbArray&&x?"text:vbarray":"text"}var E=b.exports=function(x){var D=this;a.Writable.call(D),D._opts=x,D._body=[],D._headers={},x.auth&&D.setHeader("Authorization","Basic "+new _(x.auth).toString("base64")),(0,d.default)(x.headers).forEach(function(m){D.setHeader(m,x.headers[m])});var C,T=!0;if(x.mode==="disable-fetch"||"requestTimeout"in x&&!n.abortController)T=!1,C=!0;else if(x.mode==="prefer-streaming")C=!1;else if(x.mode==="allow-wrong-content-type")C=!n.overrideMimeType;else if(!x.mode||x.mode==="default"||x.mode==="prefer-fast")C=!0;else throw new Error("Invalid value for opts.mode");D._mode=g(C,T),D._fetchTimer=null,D.on("finish",function(){D._onFinish()})};s(E,a.Writable),E.prototype.setHeader=function(x,D){var C=this,T=x.toLowerCase();if(P.indexOf(T)!==-1)return;C._headers[T]={name:x,value:D}},E.prototype.getHeader=function(x){var D=this._headers[x.toLowerCase()];return D?D.value:null},E.prototype.removeHeader=function(x){var D=this;delete D._headers[x.toLowerCase()]},E.prototype._onFinish=function(){var x=this;if(x._destroyed)return;var D=x._opts,C=x._headers,T=null;D.method!=="GET"&&D.method!=="HEAD"&&(n.arraybuffer?T=o(_.concat(x._body)):n.blobConstructor?T=new t.Blob(x._body.map(function(j){return o(j)}),{type:(C["content-type"]||{}).value||""}):T=_.concat(x._body).toString());var m=[];if((0,d.default)(C).forEach(function(j){var O=C[j].name,k=C[j].value;Array.isArray(k)?k.forEach(function(H){m.push([O,H])}):m.push([O,k])}),x._mode==="fetch"){var r=null,L=null;if(n.abortController){var M=new AbortController;r=M.signal,x._fetchAbortController=M,"requestTimeout"in D&&D.requestTimeout!==0&&(x._fetchTimer=t.setTimeout(function(){x.emit("requestTimeout"),x._fetchAbortController&&x._fetchAbortController.abort()},D.requestTimeout))}t.fetch(x._opts.url,{method:x._opts.method,headers:m,body:T||void 0,mode:"cors",credentials:D.withCredentials?"include":"same-origin",signal:r}).then(function(j){x._fetchResponse=j,x._connect()},function(j){t.clearTimeout(x._fetchTimer),x._destroyed||x.emit("error",j)})}else{var u=x._xhr=new t.XMLHttpRequest;try{u.open(x._opts.method,x._opts.url,!0)}catch(j){i.nextTick(function(){x.emit("error",j)});return}"responseType"in u&&(u.responseType=x._mode.split(":")[0]),"withCredentials"in u&&(u.withCredentials=!!D.withCredentials),x._mode==="text"&&"overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in D&&(u.timeout=D.requestTimeout,u.ontimeout=function(){x.emit("requestTimeout")}),m.forEach(function(j){u.setRequestHeader(j[0],j[1])}),x._response=null,u.onreadystatechange=function(){switch(u.readyState){case p.LOADING:case p.DONE:x._onXHRProgress();break}},x._mode==="moz-chunked-arraybuffer"&&(u.onprogress=function(){x._onXHRProgress()}),u.onerror=function(){if(x._destroyed)return;x.emit("error",new Error("XHR error"))};try{u.send(T)}catch(j){i.nextTick(function(){x.emit("error",j)});return}}};function w(x){try{var D=x.status;return D!==null&&D!==0}catch(C){return!1}}E.prototype._onXHRProgress=function(){var x=this;if(!w(x._xhr)||x._destroyed)return;x._response||x._connect(),x._response._onXHRProgress()},E.prototype._connect=function(){var x=this;if(x._destroyed)return;x._response=new v(x._xhr,x._fetchResponse,x._mode,x._fetchTimer),x._response.on("error",function(D){x.emit("error",D)}),x.emit("response",x._response)},E.prototype._write=function(x,D,C){var T=this;T._body.push(x),C()},E.prototype.abort=E.prototype.destroy=function(){var x=this;x._destroyed=!0,t.clearTimeout(x._fetchTimer),x._response&&(x._response._destroyed=!0),x._xhr?x._xhr.abort():x._fetchAbortController&&x._fetchAbortController.abort()},E.prototype.end=function(x,D,C){var T=this;typeof x=="function"&&(C=x,x=void 0),a.Writable.prototype.end.call(T,x,D,C)},E.prototype.flushHeaders=function(){},E.prototype.setTimeout=function(){},E.prototype.setNoDelay=function(){},E.prototype.setSocketKeepAlive=function(){};var P=["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,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(e,b,c){(function(i,t,_){"use strict";var y=e("babel-runtime/core-js/promise"),d=h(y);function h(v){return v&&v.__esModule?v:{default:v}}var n=e("./capability"),s=e("inherits"),l=e("readable-stream"),a=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=c.IncomingMessage=function(v,p,g,E){var w=this;if(l.Readable.call(w),w._mode=g,w.headers={},w.rawHeaders=[],w.trailers={},w.rawTrailers=[],w.on("end",function(){i.nextTick(function(){w.emit("close")})}),g==="fetch"){var P=function r(){D.read().then(function(L){if(w._destroyed)return;if(L.done){t.clearTimeout(E),w.push(null);return}w.push(new _(L.value)),r()}).catch(function(L){t.clearTimeout(E),w._destroyed||w.emit("error",L)})};if(w._fetchResponse=p,w.url=p.url,w.statusCode=p.status,w.statusMessage=p.statusText,p.headers.forEach(function(r,L){w.headers[L.toLowerCase()]=r,w.rawHeaders.push(L,r)}),n.writableStream){var x=new WritableStream({write:function(L){return new d.default(function(M,u){w._destroyed?u():w.push(new _(L))?M():w._resumeFetch=M})},close:function(){t.clearTimeout(E),w._destroyed||w.push(null)},abort:function(L){w._destroyed||w.emit("error",L)}});try{p.body.pipeTo(x).catch(function(r){t.clearTimeout(E),w._destroyed||w.emit("error",r)});return}catch(r){}}var D=p.body.getReader();P()}else{w._xhr=v,w._pos=0,w.url=v.responseURL,w.statusCode=v.status,w.statusMessage=v.statusText;var C=v.getAllResponseHeaders().split(/\r?\n/);if(C.forEach(function(r){var L=r.match(/^([^:]+):\s*(.*)/);if(L){var M=L[1].toLowerCase();M==="set-cookie"?(w.headers[M]===void 0&&(w.headers[M]=[]),w.headers[M].push(L[2])):w.headers[M]!==void 0?w.headers[M]+=", "+L[2]:w.headers[M]=L[2],w.rawHeaders.push(L[1],L[2])}}),w._charset="x-user-defined",!n.overrideMimeType){var T=w.rawHeaders["mime-type"];if(T){var m=T.match(/;\s*charset=([^;])(;|$)/);m&&(w._charset=m[1].toLowerCase())}w._charset||(w._charset="utf-8")}}};s(o,l.Readable),o.prototype._read=function(){var v=this,p=v._resumeFetch;p&&(v._resumeFetch=null,p())},o.prototype._onXHRProgress=function(){var v=this,p=v._xhr,g=null;switch(v._mode){case"text:vbarray":if(p.readyState!==a.DONE)break;try{g=new t.VBArray(p.responseBody).toArray()}catch(D){}if(g!==null){v.push(new _(g));break}case"text":try{g=p.responseText}catch(D){v._mode="text:vbarray";break}if(g.length>v._pos){var E=g.substr(v._pos);if(v._charset==="x-user-defined"){for(var w=new _(E.length),P=0;P<E.length;P++)w[P]=E.charCodeAt(P)&255;v.push(w)}else v.push(E,v._charset);v._pos=g.length}break;case"arraybuffer":if(p.readyState!==a.DONE||!p.response)break;g=p.response,v.push(new _(new Uint8Array(g)));break;case"moz-chunked-arraybuffer":if(g=p.response,p.readyState!==a.LOADING||!g)break;v.push(new _(new Uint8Array(g)));break;case"ms-stream":if(g=p.response,p.readyState!==a.LOADING)break;var x=new t.MSStreamReader;x.onprogress=function(){x.result.byteLength>v._pos&&(v.push(new _(new Uint8Array(x.result.slice(v._pos)))),v._pos=x.result.byteLength)},x.onload=function(){v.push(null)},x.readAsArrayBuffer(g);break}v._xhr.readyState===a.DONE&&v._mode!=="ms-stream"&&v.push(null)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},e("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(e,b,c){"use strict";var i=e("safe-buffer").Buffer,t=i.isEncoding||function(x){x=""+x;switch(x&&x.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}};function _(x){if(!x)return"utf8";for(var D;;)switch(x){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 x;default:if(D)return;x=(""+x).toLowerCase(),D=!0}}function y(x){var D=_(x);if(typeof D!="string"&&(i.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return D||x}c.StringDecoder=d;function d(x){this.encoding=y(x);var D;switch(this.encoding){case"utf16le":this.text=v,this.end=p,D=4;break;case"utf8":this.fillLast=l,D=4;break;case"base64":this.text=g,this.end=E,D=3;break;default:this.write=w,this.end=P;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(D)}d.prototype.write=function(x){if(x.length===0)return"";var D,C;if(this.lastNeed){if(D=this.fillLast(x),D===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<x.length?D?D+this.text(x,C):this.text(x,C):D||""},d.prototype.end=o,d.prototype.text=a,d.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function h(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function n(x,D,C){var T=D.length-1;if(T<C)return 0;var m=h(D[T]);return m>=0?(m>0&&(x.lastNeed=m-1),m):--T<C||m===-2?0:(m=h(D[T]),m>=0?(m>0&&(x.lastNeed=m-2),m):--T<C||m===-2?0:(m=h(D[T]),m>=0?(m>0&&(m===2?m=0:x.lastNeed=m-3),m):0))}function s(x,D,C){if((D[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&D.length>1){if((D[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&D.length>2&&(D[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var D=this.lastTotal-this.lastNeed,C=s(this,x,D);if(C!==void 0)return C;if(this.lastNeed<=x.length)return x.copy(this.lastChar,D,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,D,0,x.length),this.lastNeed-=x.length}function a(x,D){var C=n(this,x,D);if(!this.lastNeed)return x.toString("utf8",D);this.lastTotal=C;var T=x.length-(C-this.lastNeed);return x.copy(this.lastChar,0,T),x.toString("utf8",D,T)}function o(x){var D=x&&x.length?this.write(x):"";return this.lastNeed?D+"\uFFFD":D}function v(x,D){if((x.length-D)%2===0){var C=x.toString("utf16le",D);if(C){var T=C.charCodeAt(C.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",D,x.length-1)}function p(x){var D=x&&x.length?this.write(x):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return D+this.lastChar.toString("utf16le",0,C)}return D}function g(x,D){var C=(x.length-D)%3;return C===0?x.toString("base64",D):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",D,x.length-C))}function E(x){var D=x&&x.length?this.write(x):"";return this.lastNeed?D+this.lastChar.toString("base64",0,3-this.lastNeed):D}function w(x){return x.toString(this.encoding)}function P(x){return x&&x.length?this.write(x):""}},{"safe-buffer":228}],236:[function(e,b,c){(function(i,t){var _=e("process/browser.js").nextTick,y=Function.prototype.apply,d=Array.prototype.slice,h={},n=0;c.setTimeout=function(){return new s(y.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new s(y.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(l){l.close()};function s(l,a){this._id=l,this._clearFn=a}s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(l,a){clearTimeout(l._idleTimeoutId),l._idleTimeout=a},c.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},c._unrefActive=c.active=function(l){clearTimeout(l._idleTimeoutId);var a=l._idleTimeout;a>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},a))},c.setImmediate=typeof i=="function"?i:function(l){var a=n++,o=arguments.length<2?!1:d.call(arguments,1);return h[a]=!0,_(function(){h[a]&&(o?l.apply(null,o):l.call(null),c.clearImmediate(a))}),a},c.clearImmediate=typeof t=="function"?t:function(l){delete h[l]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(e,b,c){var i=e("buffer").Buffer;b.exports=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(i.isBuffer(t)){for(var _=new Uint8Array(t.length),y=t.length,d=0;d<y;d++)_[d]=t[d];return _.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(e,b,c){"use strict";var i=e("punycode"),t=e("./util");c.parse=D,c.resolve=T,c.resolveObject=m,c.format=C,c.Url=_;function _(){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}var y=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r",`
`," "],s=["{","}","|","\\","^","`"].concat(n),l=["'"].concat(s),a=["%","/","?",";","#"].concat(l),o=["/","?","#"],v=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=e("querystring");function D(r,L,M){if(r&&t.isObject(r)&&r instanceof _)return r;var u=new _;return u.parse(r,L,M),u}_.prototype.parse=function(r,L,M){if(!t.isString(r))throw new TypeError("Parameter 'url' must be a string, not "+typeof r);var u=r.indexOf("?"),j=u!==-1&&u<r.indexOf("#")?"?":"#",O=r.split(j),k=/\\/g;O[0]=O[0].replace(k,"/"),r=O.join(j);var H=r;if(H=H.trim(),!M&&r.split("#").length===1){var Q=h.exec(H);if(Q)return this.path=H,this.href=H,this.pathname=Q[1],Q[2]?(this.search=Q[2],L?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):L&&(this.search="",this.query={}),this}var F=y.exec(H);if(F){F=F[0];var q=F.toLowerCase();this.protocol=q,H=H.substr(F.length)}if(M||F||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var W=H.substr(0,2)==="//";W&&!(F&&w[F])&&(H=H.substr(2),this.slashes=!0)}if(!w[F]&&(W||F&&!P[F])){for(var N=-1,B=0;B<o.length;B++){var $=H.indexOf(o[B]);$!==-1&&(N===-1||$<N)&&(N=$)}var I,A;N===-1?A=H.lastIndexOf("@"):A=H.lastIndexOf("@",N),A!==-1&&(I=H.slice(0,A),H=H.slice(A+1),this.auth=decodeURIComponent(I)),N=-1;for(var B=0;B<a.length;B++){var $=H.indexOf(a[B]);$!==-1&&(N===-1||$<N)&&(N=$)}N===-1&&(N=H.length),this.host=H.slice(0,N),H=H.slice(N),this.parseHost(),this.hostname=this.hostname||"";var z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!z)for(var K=this.hostname.split(/\./),B=0,V=K.length;B<V;B++){var re=K[B];if(!re)continue;if(!re.match(p)){for(var ie="",J=0,ce=re.length;J<ce;J++)re.charCodeAt(J)>127?ie+="x":ie+=re[J];if(!ie.match(p)){var se=K.slice(0,B),ee=K.slice(B+1),te=re.match(g);te&&(se.push(te[1]),ee.unshift(te[2])),ee.length&&(H="/"+ee.join(".")+H),this.hostname=se.join(".");break}}}this.hostname.length>v?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=i.toASCII(this.hostname));var ae=this.port?":"+this.port:"",fe=this.hostname||"";this.host=fe+ae,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!E[q])for(var B=0,V=l.length;B<V;B++){var G=l[B];if(H.indexOf(G)===-1)continue;var X=encodeURIComponent(G);X===G&&(X=escape(G)),H=H.split(G).join(X)}var oe=H.indexOf("#");oe!==-1&&(this.hash=H.substr(oe),H=H.slice(0,oe));var U=H.indexOf("?");if(U!==-1?(this.search=H.substr(U),this.query=H.substr(U+1),L&&(this.query=x.parse(this.query)),H=H.slice(0,U)):L&&(this.search="",this.query={}),H&&(this.pathname=H),P[q]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ae=this.pathname||"",R=this.search||"";this.path=ae+R}return this.href=this.format(),this};function C(r){return t.isString(r)&&(r=D(r)),r instanceof _?r.format():_.prototype.format.call(r)}_.prototype.format=function(){var r=this.auth||"";r&&(r=encodeURIComponent(r),r=r.replace(/%3A/i,":"),r+="@");var L=this.protocol||"",M=this.pathname||"",u=this.hash||"",j=!1,O="";this.host?j=r+this.host:this.hostname&&(j=r+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(O=x.stringify(this.query));var k=this.search||O&&"?"+O||"";return L&&L.substr(-1)!==":"&&(L+=":"),this.slashes||(!L||P[L])&&j!==!1?(j="//"+(j||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):j||(j=""),u&&u.charAt(0)!=="#"&&(u="#"+u),k&&k.charAt(0)!=="?"&&(k="?"+k),M=M.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),k=k.replace("#","%23"),L+j+M+k+u};function T(r,L){return D(r,!1,!0).resolve(L)}_.prototype.resolve=function(r){return this.resolveObject(D(r,!1,!0)).format()};function m(r,L){return r?D(r,!1,!0).resolveObject(L):L}_.prototype.resolveObject=function(r){if(t.isString(r)){var L=new _;L.parse(r,!1,!0),r=L}for(var M=new _,u=Object.keys(this),j=0;j<u.length;j++){var O=u[j];M[O]=this[O]}if(M.hash=r.hash,r.href==="")return M.href=M.format(),M;if(r.slashes&&!r.protocol){for(var k=Object.keys(r),H=0;H<k.length;H++){var Q=k[H];Q!=="protocol"&&(M[Q]=r[Q])}return P[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(r.protocol&&r.protocol!==M.protocol){if(!P[r.protocol]){for(var F=Object.keys(r),q=0;q<F.length;q++){var W=F[q];M[W]=r[W]}return M.href=M.format(),M}if(M.protocol=r.protocol,!r.host&&!w[r.protocol]){for(var V=(r.pathname||"").split("/");V.length&&!(r.host=V.shift()););r.host||(r.host=""),r.hostname||(r.hostname=""),V[0]!==""&&V.unshift(""),V.length<2&&V.unshift(""),M.pathname=V.join("/")}else M.pathname=r.pathname;if(M.search=r.search,M.query=r.query,M.host=r.host||"",M.auth=r.auth,M.hostname=r.hostname||r.host,M.port=r.port,M.pathname||M.search){var N=M.pathname||"",B=M.search||"";M.path=N+B}return M.slashes=M.slashes||r.slashes,M.href=M.format(),M}var $=M.pathname&&M.pathname.charAt(0)==="/",I=r.host||r.pathname&&r.pathname.charAt(0)==="/",A=I||$||M.host&&r.pathname,z=A,K=M.pathname&&M.pathname.split("/")||[],V=r.pathname&&r.pathname.split("/")||[],re=M.protocol&&!P[M.protocol];if(re&&(M.hostname="",M.port=null,M.host&&(K[0]===""?K[0]=M.host:K.unshift(M.host)),M.host="",r.protocol&&(r.hostname=null,r.port=null,r.host&&(V[0]===""?V[0]=r.host:V.unshift(r.host)),r.host=null),A=A&&(V[0]===""||K[0]==="")),I)M.host=r.host||r.host===""?r.host:M.host,M.hostname=r.hostname||r.hostname===""?r.hostname:M.hostname,M.search=r.search,M.query=r.query,K=V;else if(V.length)K||(K=[]),K.pop(),K=K.concat(V),M.search=r.search,M.query=r.query;else if(!t.isNullOrUndefined(r.search)){if(re){M.hostname=M.host=K.shift();var ie=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ie&&(M.auth=ie.shift(),M.host=M.hostname=ie.shift())}return M.search=r.search,M.query=r.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 J=K.slice(-1)[0],ce=(M.host||r.host||K.length>1)&&(J==="."||J==="..")||J==="",se=0,ee=K.length;ee>=0;ee--)J=K[ee],J==="."?K.splice(ee,1):J===".."?(K.splice(ee,1),se++):se&&(K.splice(ee,1),se--);if(!A&&!z)for(;se--;se)K.unshift("..");A&&K[0]!==""&&(!K[0]||K[0].charAt(0)!=="/")&&K.unshift(""),ce&&K.join("/").substr(-1)!=="/"&&K.push("");var te=K[0]===""||K[0]&&K[0].charAt(0)==="/";if(re){M.hostname=M.host=te?"":K.length?K.shift():"";var ie=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ie&&(M.auth=ie.shift(),M.host=M.hostname=ie.shift())}return A=A||M.host&&K.length,A&&!te&&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=r.auth||M.auth,M.slashes=M.slashes||r.slashes,M.href=M.format(),M},_.prototype.parseHost=function(){var r=this.host,L=d.exec(r);L&&(L=L[0],L!==":"&&(this.port=L.substr(1)),r=r.substr(0,r.length-L.length)),r&&(this.hostname=r)}},{"./util":239,punycode:209,querystring:212}],239:[function(e,b,c){"use strict";b.exports={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}}},{}],240:[function(e,b,c){(function(i){b.exports=t;function t(y,d){if(_("noDeprecation"))return y;var h=!1;function n(){if(!h){if(_("throwDeprecation"))throw new Error(d);_("traceDeprecation")?console.trace(d):console.warn(d),h=!0}return y.apply(this,arguments)}return n}function _(y){try{if(!i.localStorage)return!1}catch(h){return!1}var d=i.localStorage[y];return d==null?!1:String(d).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(e,b,c){typeof Object.create=="function"?b.exports=function(t,_){t.super_=_,t.prototype=Object.create(_.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(t,_){t.super_=_;var y=function(){};y.prototype=_.prototype,t.prototype=new y,t.prototype.constructor=t}},{}],242:[function(e,b,c){b.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],243:[function(e,b,c){(function(i,t){var _=/%[sdj%]/g;c.format=function(N){if(!T(N)){for(var B=[],$=0;$<arguments.length;$++)B.push(h(arguments[$]));return B.join(" ")}for(var $=1,I=arguments,A=I.length,z=String(N).replace(_,function(V){if(V==="%%")return"%";if($>=A)return V;switch(V){case"%s":return String(I[$++]);case"%d":return Number(I[$++]);case"%j":try{return JSON.stringify(I[$++])}catch(re){return"[Circular]"}default:return V}}),K=I[$];$<A;K=I[++$])x(K)||!M(K)?z+=" "+K:z+=" "+h(K);return z},c.deprecate=function(N,B){if(r(t.process))return function(){return c.deprecate(N,B).apply(this,arguments)};if(i.noDeprecation===!0)return N;var $=!1;function I(){if(!$){if(i.throwDeprecation)throw new Error(B);i.traceDeprecation?console.trace(B):console.error(B),$=!0}return N.apply(this,arguments)}return I};var y={},d;c.debuglog=function(N){if(r(d)&&(d=i.env.NODE_DEBUG||""),N=N.toUpperCase(),!y[N])if(new RegExp("\\b"+N+"\\b","i").test(d)){var B=i.pid;y[N]=function(){var $=c.format.apply(c,arguments);console.error("%s %d: %s",N,B,$)}}else y[N]=function(){};return y[N]};function h(N,B){var $={seen:[],stylize:s};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),P(B)?$.showHidden=B:B&&c._extend($,B),r($.showHidden)&&($.showHidden=!1),r($.depth)&&($.depth=2),r($.colors)&&($.colors=!1),r($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=n),a($,N,$.depth)}c.inspect=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n(N,B){var $=h.styles[B];return $?"["+h.colors[$][0]+"m"+N+"["+h.colors[$][1]+"m":N}function s(N,B){return N}function l(N){var B={};return N.forEach(function($,I){B[$]=!0}),B}function a(N,B,$){if(N.customInspect&&B&&O(B.inspect)&&B.inspect!==c.inspect&&!(B.constructor&&B.constructor.prototype===B)){var I=B.inspect($,N);return T(I)||(I=a(N,I,$)),I}var A=o(N,B);if(A)return A;var z=Object.keys(B),K=l(z);if(N.showHidden&&(z=Object.getOwnPropertyNames(B)),j(B)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return v(B);if(z.length===0){if(O(B)){var V=B.name?": "+B.name:"";return N.stylize("[Function"+V+"]","special")}if(L(B))return N.stylize(RegExp.prototype.toString.call(B),"regexp");if(u(B))return N.stylize(Date.prototype.toString.call(B),"date");if(j(B))return v(B)}var re="",ie=!1,J=["{","}"];if(w(B)&&(ie=!0,J=["[","]"]),O(B)){var ce=B.name?": "+B.name:"";re=" [Function"+ce+"]"}if(L(B)&&(re=" "+RegExp.prototype.toString.call(B)),u(B)&&(re=" "+Date.prototype.toUTCString.call(B)),j(B)&&(re=" "+v(B)),z.length===0&&(!ie||B.length==0))return J[0]+re+J[1];if($<0)return L(B)?N.stylize(RegExp.prototype.toString.call(B),"regexp"):N.stylize("[Object]","special");N.seen.push(B);var se;return ie?se=p(N,B,$,K,z):se=z.map(function(ee){return g(N,B,$,K,ee,ie)}),N.seen.pop(),E(se,re,J)}function o(N,B){if(r(B))return N.stylize("undefined","undefined");if(T(B)){var $="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize($,"string")}if(C(B))return N.stylize(""+B,"number");if(P(B))return N.stylize(""+B,"boolean");if(x(B))return N.stylize("null","null")}function v(N){return"["+Error.prototype.toString.call(N)+"]"}function p(N,B,$,I,A){for(var z=[],K=0,V=B.length;K<V;++K)W(B,String(K))?z.push(g(N,B,$,I,String(K),!0)):z.push("");return A.forEach(function(re){re.match(/^\d+$/)||z.push(g(N,B,$,I,re,!0))}),z}function g(N,B,$,I,A,z){var K,V,re;if(re=Object.getOwnPropertyDescriptor(B,A)||{value:B[A]},re.get?re.set?V=N.stylize("[Getter/Setter]","special"):V=N.stylize("[Getter]","special"):re.set&&(V=N.stylize("[Setter]","special")),W(I,A)||(K="["+A+"]"),V||(N.seen.indexOf(re.value)<0?(x($)?V=a(N,re.value,null):V=a(N,re.value,$-1),V.indexOf(`
`)>-1&&(z?V=V.split(`
`).map(function(ie){return" "+ie}).join(`
`).substr(2):V=`
`+V.split(`
`).map(function(ie){return" "+ie}).join(`
`))):V=N.stylize("[Circular]","special")),r(K)){if(z&&A.match(/^\d+$/))return V;K=JSON.stringify(""+A),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.substr(1,K.length-2),K=N.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=N.stylize(K,"string"))}return K+": "+V}function E(N,B,$){var I=0,A=N.reduce(function(z,K){return I++,K.indexOf(`
`)>=0&&I++,z+K.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?$[0]+(B===""?"":B+`
`)+" "+N.join(`,
`)+" "+$[1]:$[0]+B+" "+N.join(", ")+" "+$[1]}function w(N){return Array.isArray(N)}c.isArray=w;function P(N){return typeof N=="boolean"}c.isBoolean=P;function x(N){return N===null}c.isNull=x;function D(N){return N==null}c.isNullOrUndefined=D;function C(N){return typeof N=="number"}c.isNumber=C;function T(N){return typeof N=="string"}c.isString=T;function m(N){return typeof N=="symbol"}c.isSymbol=m;function r(N){return N===void 0}c.isUndefined=r;function L(N){return M(N)&&H(N)==="[object RegExp]"}c.isRegExp=L;function M(N){return typeof N=="object"&&N!==null}c.isObject=M;function u(N){return M(N)&&H(N)==="[object Date]"}c.isDate=u;function j(N){return M(N)&&(H(N)==="[object Error]"||N instanceof Error)}c.isError=j;function O(N){return typeof N=="function"}c.isFunction=O;function k(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||typeof N=="symbol"||typeof N=="undefined"}c.isPrimitive=k,c.isBuffer=e("./support/isBuffer");function H(N){return Object.prototype.toString.call(N)}function Q(N){return N<10?"0"+N.toString(10):N.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(){var N=new Date,B=[Q(N.getHours()),Q(N.getMinutes()),Q(N.getSeconds())].join(":");return[N.getDate(),F[N.getMonth()],B].join(" ")}c.log=function(){console.log("%s - %s",q(),c.format.apply(c,arguments))},c.inherits=e("inherits"),c._extend=function(N,B){if(!B||!M(B))return N;for(var $=Object.keys(B),I=$.length;I--;)N[$[I]]=B[$[I]];return N};function W(N,B){return Object.prototype.hasOwnProperty.call(N,B)}}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(e,b,c){"use strict";(function(){"use strict";c.stripBOM=function(i){return i[0]==="\uFEFF"?i.substring(1):i}}).call(void 0)},{}],245:[function(e,b,c){"use strict";var i=e("babel-runtime/helpers/typeof"),t=d(i),_=e("babel-runtime/core-js/object/keys"),y=d(_);function d(h){return h&&h.__esModule?h:{default:h}}(function(){"use strict";var h,n,s,l,a,o={}.hasOwnProperty;h=e("xmlbuilder"),n=e("./defaults").defaults,l=function(p){return typeof p=="string"&&(p.indexOf("&")>=0||p.indexOf(">")>=0||p.indexOf("<")>=0)},a=function(p){return"<![CDATA["+s(p)+"]]>"},s=function(p){return p.replace("]]>","]]]]><![CDATA[>")},c.Builder=function(){function v(p){var g,E,w;this.options={},E=n["0.2"];for(g in E){if(!o.call(E,g))continue;w=E[g],this.options[g]=w}for(g in p){if(!o.call(p,g))continue;w=p[g],this.options[g]=w}}return v.prototype.buildObject=function(p){var g,E,w,P,x;return g=this.options.attrkey,E=this.options.charkey,(0,y.default)(p).length===1&&this.options.rootName===n["0.2"].rootName?(x=(0,y.default)(p)[0],p=p[x]):x=this.options.rootName,w=function(D){return function(C,T){var m,r,L,M,u,j;if((typeof T=="undefined"?"undefined":(0,t.default)(T))!=="object")D.options.cdata&&l(T)?C.raw(a(T)):C.txt(T);else if(Array.isArray(T))for(M in T){if(!o.call(T,M))continue;r=T[M];for(u in r)L=r[u],C=w(C.ele(u),L).up()}else for(u in T){if(!o.call(T,u))continue;if(r=T[u],u===g){if((typeof r=="undefined"?"undefined":(0,t.default)(r))==="object")for(m in r)j=r[m],C=C.att(m,j)}else if(u===E)D.options.cdata&&l(r)?C=C.raw(a(r)):C=C.txt(r);else if(Array.isArray(r))for(M in r){if(!o.call(r,M))continue;L=r[M],typeof L=="string"?D.options.cdata&&l(L)?C=C.ele(u).raw(a(L)).up():C=C.ele(u,L).up():C=w(C.ele(u),L).up()}else(typeof r=="undefined"?"undefined":(0,t.default)(r))==="object"?C=w(C.ele(u),r).up():typeof r=="string"&&D.options.cdata&&l(r)?C=C.ele(u).raw(a(r)).up():(r==null&&(r=""),C=C.ele(u,r.toString()).up())}return C}}(this),P=h.create(x,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),w(P,p).end(this.options.renderOpts)},v}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(e,b,c){"use strict";(function(){c.defaults={"0.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:""},"0.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)},{}],247:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/promise"),t=l(i),_=e("babel-runtime/core-js/object/get-own-property-names"),y=l(_),d=e("babel-runtime/core-js/object/keys"),h=l(d),n=e("babel-runtime/helpers/typeof"),s=l(n);function l(a){return a&&a.__esModule?a:{default:a}}(function(){"use strict";var a,o,v,p,g,E,w,P,x=function(m,r){return function(){return m.apply(r,arguments)}},D=function(m,r){for(var L in r)C.call(r,L)&&(m[L]=r[L]);function M(){this.constructor=m}return M.prototype=r.prototype,m.prototype=new M,m.__super__=r.prototype,m},C={}.hasOwnProperty;w=e("sax"),v=e("events"),a=e("./bom"),E=e("./processors"),P=e("timers").setImmediate,o=e("./defaults").defaults,p=function(m){return(typeof m=="undefined"?"undefined":(0,s.default)(m))==="object"&&m!=null&&(0,h.default)(m).length===0},g=function(m,r,L){var M,u,j;for(M=0,u=m.length;M<u;M++)j=m[M],r=j(r,L);return r},c.Parser=function(T){D(m,T);function m(r){this.parseStringPromise=x(this.parseStringPromise,this),this.parseString=x(this.parseString,this),this.reset=x(this.reset,this),this.assignOrPush=x(this.assignOrPush,this),this.processAsync=x(this.processAsync,this);var L,M,u;if(!(this instanceof c.Parser))return new c.Parser(r);this.options={},M=o["0.2"];for(L in M){if(!C.call(M,L))continue;u=M[L],this.options[L]=u}for(L in r){if(!C.call(r,L))continue;u=r[L],this.options[L]=u}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return m.prototype.processAsync=function(){var r,L;try{return this.remaining.length<=this.options.chunkSize?(r=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(r),this.saxParser.close()):(r=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(r),P(this.processAsync))}catch(M){if(L=M,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(L)}},m.prototype.assignOrPush=function(r,L,M){return L in r?(r[L]instanceof Array||(r[L]=[r[L]]),r[L].push(M)):this.options.explicitArray?r[L]=[M]:r[L]=M},m.prototype.reset=function(){var r,L,M,u;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(j){return function(O){if(j.saxParser.resume(),!j.saxParser.errThrown)return j.saxParser.errThrown=!0,j.emit("error",O)}}(this),this.saxParser.onend=function(j){return function(){if(!j.saxParser.ended)return j.saxParser.ended=!0,j.emit("end",j.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,u=[],r=this.options.attrkey,L=this.options.charkey,this.saxParser.onopentag=function(j){return function(O){var k,H,Q,F,q;if(Q={},Q[L]="",!j.options.ignoreAttrs){q=O.attributes;for(k in q){if(!C.call(q,k))continue;!(r in Q)&&!j.options.mergeAttrs&&(Q[r]={}),H=j.options.attrValueProcessors?g(j.options.attrValueProcessors,O.attributes[k],k):O.attributes[k],F=j.options.attrNameProcessors?g(j.options.attrNameProcessors,k):k,j.options.mergeAttrs?j.assignOrPush(Q,F,H):Q[r][F]=H}}return Q["#name"]=j.options.tagNameProcessors?g(j.options.tagNameProcessors,O.name):O.name,j.options.xmlns&&(Q[j.options.xmlnskey]={uri:O.uri,local:O.local}),u.push(Q)}}(this),this.saxParser.onclosetag=function(j){return function(){var O,k,H,Q,F,q,W,N,B,$;if(q=u.pop(),F=q["#name"],(!j.options.explicitChildren||!j.options.preserveChildrenOrder)&&delete q["#name"],q.cdata===!0&&(O=q.cdata,delete q.cdata),B=u[u.length-1],q[L].match(/^\s*$/)&&!O?(k=q[L],delete q[L]):(j.options.trim&&(q[L]=q[L].trim()),j.options.normalize&&(q[L]=q[L].replace(/\s{2,}/g," ").trim()),q[L]=j.options.valueProcessors?g(j.options.valueProcessors,q[L],F):q[L],(0,h.default)(q).length===1&&L in q&&!j.EXPLICIT_CHARKEY&&(q=q[L])),p(q)&&(q=j.options.emptyTag!==""?j.options.emptyTag:k),j.options.validator!=null&&($="/"+function(){var I,A,z;for(z=[],I=0,A=u.length;I<A;I++)Q=u[I],z.push(Q["#name"]);return z}().concat(F).join("/"),function(){var I;try{return q=j.options.validator($,B&&B[F],q)}catch(A){return I=A,j.emit("error",I)}}()),j.options.explicitChildren&&!j.options.mergeAttrs&&(typeof q=="undefined"?"undefined":(0,s.default)(q))==="object"){if(!j.options.preserveChildrenOrder)Q={},j.options.attrkey in q&&(Q[j.options.attrkey]=q[j.options.attrkey],delete q[j.options.attrkey]),!j.options.charsAsChildren&&j.options.charkey in q&&(Q[j.options.charkey]=q[j.options.charkey],delete q[j.options.charkey]),(0,y.default)(q).length>0&&(Q[j.options.childkey]=q),q=Q;else if(B){B[j.options.childkey]=B[j.options.childkey]||[],W={};for(H in q){if(!C.call(q,H))continue;W[H]=q[H]}B[j.options.childkey].push(W),delete q["#name"],(0,h.default)(q).length===1&&L in q&&!j.EXPLICIT_CHARKEY&&(q=q[L])}}return u.length>0?j.assignOrPush(B,F,q):(j.options.explicitRoot&&(N=q,q={},q[F]=N),j.resultObject=q,j.saxParser.ended=!0,j.emit("end",j.resultObject))}}(this),M=function(j){return function(O){var k,H;if(H=u[u.length-1],H)return H[L]+=O,j.options.explicitChildren&&j.options.preserveChildrenOrder&&j.options.charsAsChildren&&(j.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(H[j.options.childkey]=H[j.options.childkey]||[],k={"#name":"__text__"},k[L]=O,j.options.normalize&&(k[L]=k[L].replace(/\s{2,}/g," ").trim()),H[j.options.childkey].push(k)),H}}(this),this.saxParser.ontext=M,this.saxParser.oncdata=function(j){return function(O){var k;if(k=M(O),k)return k.cdata=!0}}(this)},m.prototype.parseString=function(r,L){var M;L!=null&&typeof L=="function"&&(this.on("end",function(u){return this.reset(),L(null,u)}),this.on("error",function(u){return this.reset(),L(u)}));try{return r=r.toString(),r.trim()===""?(this.emit("end",null),!0):(r=a.stripBOM(r),this.options.async?(this.remaining=r,P(this.processAsync),this.saxParser):this.saxParser.write(r).close())}catch(u){if(M=u,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw M}else return this.emit("error",M),this.saxParser.errThrown=!0}},m.prototype.parseStringPromise=function(r){return new t.default(function(L){return function(M,u){return L.parseString(r,function(j,O){return j?u(j):M(O)})}}(this))},m}(v),c.parseString=function(T,m,r){var L,M,u;return r!=null?(typeof r=="function"&&(L=r),(typeof m=="undefined"?"undefined":(0,s.default)(m))==="object"&&(M=m)):(typeof m=="function"&&(L=m),M={}),u=new c.Parser(M),u.parseString(T,L)},c.parseStringPromise=function(T,m){var r,L;return(typeof m=="undefined"?"undefined":(0,s.default)(m))==="object"&&(r=m),L=new c.Parser(r),L.parseStringPromise(T)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(e,b,c){"use strict";(function(){"use strict";var i;i=new RegExp(/(?!xmlns)^.*:/),c.normalize=function(t){return t.toLowerCase()},c.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},c.stripPrefix=function(t){return t.replace(i,"")},c.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},c.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(void 0)},{}],249:[function(e,b,c){"use strict";(function(){"use strict";var i,t,_,y,d=function(s,l){for(var a in l)h.call(l,a)&&(s[a]=l[a]);function o(){this.constructor=s}return o.prototype=l.prototype,s.prototype=new o,s.__super__=l.prototype,s},h={}.hasOwnProperty;t=e("./defaults"),i=e("./builder"),_=e("./parser"),y=e("./processors"),c.defaults=t.defaults,c.processors=y,c.ValidationError=function(n){d(s,n);function s(l){this.message=l}return s}(Error),c.Builder=i.Builder,c.Parser=_.Parser,c.parseString=_.parseString,c.parseStringPromise=_.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(e,b,c){"use strict";(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(e,b,c){"use strict";(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/get-prototype-of"),t=n(i),_=e("babel-runtime/helpers/typeof"),y=n(_),d=e("babel-runtime/core-js/object/assign"),h=n(d);function n(s){return s&&s.__esModule?s:{default:s}}(function(){var s,l,a,o,v,p,g,E=[].slice,w={}.hasOwnProperty;s=function(){var x,D,C,T,m,r;if(r=arguments[0],m=2<=arguments.length?E.call(arguments,1):[],v(h.default))h.default.apply(null,arguments);else for(x=0,C=m.length;x<C;x++)if(T=m[x],T!=null)for(D in T){if(!w.call(T,D))continue;r[D]=T[D]}return r},v=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},p=function(x){var D;return!!x&&((D=typeof x=="undefined"?"undefined":(0,y.default)(x))==="function"||D==="object")},a=function(x){return v(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},o=function(x){var D;if(a(x))return!x.length;for(D in x){if(!w.call(x,D))continue;return!1}return!0},g=function(x){var D,C;return p(x)&&(C=(0,t.default)(x))&&(D=C.constructor)&&typeof D=="function"&&D instanceof D&&Function.prototype.toString.call(D)===Function.prototype.toString.call(Object)},l=function(x){return v(x.valueOf)?x.valueOf():x},b.exports.assign=s,b.exports.isFunction=v,b.exports.isObject=p,b.exports.isArray=a,b.exports.isEmpty=o,b.exports.isPlainObject=g,b.exports.getValue=l}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(e,b,c){"use strict";(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h;y=e("./NodeType"),h=e("./XMLNode"),b.exports=d=function(){function n(s,l,a){if(this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),l==null)throw new Error("Missing attribute name. "+this.debugInfo(l));this.name=this.stringify.name(l),this.value=this.stringify.attValue(a),this.type=y.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||""}}),Object.defineProperty(n.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(n.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(n.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(n.prototype,"specified",{get:function(){return!0}}),n.prototype.clone=function(){return(0,t.default)(this)},n.prototype.toString=function(s){return this.options.writer.attribute(this,this.options.writer.filterOptions(s))},n.prototype.debugInfo=function(s){return s=s||this.name,s==null?"parent: <"+this.parent.name+">":"attribute: {"+s+"}, parent: <"+this.parent.name+">"},n.prototype.isEqualNode=function(s){return s.namespaceURI!==this.namespaceURI||(s.prefix!==this.prefix||s.localName!==this.localName)?!1:!(s.value!==this.value)},n}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;y=e("./NodeType"),h=e("./XMLCharacterData"),b.exports=d=function(l){n(a,l);function a(o,v){if(a.__super__.constructor.call(this,o),v==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=y.CData,this.value=this.stringify.cdata(v)}return a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return this.options.writer.cdata(this,this.options.writer.filterOptions(o))},a}(h)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h=function(l,a){for(var o in a)n.call(a,o)&&(l[o]=a[o]);function v(){this.constructor=l}return v.prototype=a.prototype,l.prototype=new v,l.__super__=a.prototype,l},n={}.hasOwnProperty;d=e("./XMLNode"),b.exports=y=function(s){h(l,s);function l(a){l.__super__.constructor.call(this,a),this.value=""}return Object.defineProperty(l.prototype,"data",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(l.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(l.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),l.prototype.clone=function(){return(0,t.default)(this)},l.prototype.substringData=function(a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.insertData=function(a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.deleteData=function(a,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.replaceData=function(a,o,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(a){return l.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.data!==this.data):!1},l}(d)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;y=e("./NodeType"),d=e("./XMLCharacterData"),b.exports=h=function(l){n(a,l);function a(o,v){if(a.__super__.constructor.call(this,o),v==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=y.Comment,this.value=this.stringify.comment(v)}return a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return this.options.writer.comment(this,this.options.writer.filterOptions(o))},a}(d)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=d(i),_=e("babel-runtime/core-js/object/create"),y=d(_);function d(h){return h&&h.__esModule?h:{default:h}}(function(){var h,n,s;n=e("./XMLDOMErrorHandler"),s=e("./XMLDOMStringList"),b.exports=h=function(){function l(){var a;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new n,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=a=(0,y.default)(this.defaultParams)}return Object.defineProperty(l.prototype,"parameterNames",{get:function(){return new s((0,t.default)(this.defaultParams))}}),l.prototype.getParameter=function(a){return this.params.hasOwnProperty(a)?this.params[a]:null},l.prototype.canSetParameter=function(a,o){return!0},l.prototype.setParameter=function(a,o){return o!=null?this.params[a]=o:delete this.params[a]},l}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(e,b,c){"use strict";(function(){var i;b.exports=i=function(){function t(){}return t.prototype.handleError=function(_){throw new Error(_)},t}()}).call(void 0)},{}],260:[function(e,b,c){"use strict";(function(){var i;b.exports=i=function(){function t(){}return t.prototype.hasFeature=function(_,y){return!0},t.prototype.createDocumentType=function(_,y,d){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(_,y,d){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(_){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(_,y){throw new Error("This DOM method is not implemented.")},t}()}).call(void 0)},{}],261:[function(e,b,c){"use strict";(function(){var i;b.exports=i=function(){function t(_){this.arr=_||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(_){return this.arr[_]||null},t.prototype.contains=function(_){return this.arr.indexOf(_)!==-1},t}()}).call(void 0)},{}],262:[function(e,b,c){"use strict";(function(){var i,t,_,y=function(n,s){for(var l in s)d.call(s,l)&&(n[l]=s[l]);function a(){this.constructor=n}return a.prototype=s.prototype,n.prototype=new a,n.__super__=s.prototype,n},d={}.hasOwnProperty;_=e("./XMLNode"),i=e("./NodeType"),b.exports=t=function(h){y(n,h);function n(s,l,a,o,v,p){if(n.__super__.constructor.call(this,s),l==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(l));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(l));if(!v)throw new Error("Missing DTD attribute default. "+this.debugInfo(l));if(v.indexOf("#")!==0&&(v="#"+v),!v.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(l));if(p&&!v.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(l));this.elementName=this.stringify.name(l),this.type=i.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(o),p&&(this.defaultValue=this.stringify.dtdAttDefault(p)),this.defaultValueType=v}return n.prototype.toString=function(s){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(s))},n}(_)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(e,b,c){"use strict";(function(){var i,t,_,y=function(n,s){for(var l in s)d.call(s,l)&&(n[l]=s[l]);function a(){this.constructor=n}return a.prototype=s.prototype,n.prototype=new a,n.__super__=s.prototype,n},d={}.hasOwnProperty;_=e("./XMLNode"),i=e("./NodeType"),b.exports=t=function(h){y(n,h);function n(s,l,a){if(n.__super__.constructor.call(this,s),l==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(l),this.type=i.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}return n.prototype.toString=function(s){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(s))},n}(_)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(e,b,c){"use strict";(function(){var i,t,_,y,d=function(s,l){for(var a in l)h.call(l,a)&&(s[a]=l[a]);function o(){this.constructor=s}return o.prototype=l.prototype,s.prototype=new o,s.__super__=l.prototype,s},h={}.hasOwnProperty;y=e("./Utility").isObject,_=e("./XMLNode"),i=e("./NodeType"),b.exports=t=function(n){d(s,n);function s(l,a,o,v){if(s.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(v==null)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!a,this.name=this.stringify.name(o),this.type=i.EntityDeclaration,!y(v))this.value=this.stringify.dtdEntityValue(v),this.internal=!0;else{if(!v.pubID&&!v.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(v.pubID&&!v.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,v.pubID!=null&&(this.pubID=this.stringify.dtdPubID(v.pubID)),v.sysID!=null&&(this.sysID=this.stringify.dtdSysID(v.sysID)),v.nData!=null&&(this.nData=this.stringify.dtdNData(v.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(s.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return null}}),s.prototype.toString=function(l){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(l))},s}(_)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(e,b,c){"use strict";(function(){var i,t,_,y=function(n,s){for(var l in s)d.call(s,l)&&(n[l]=s[l]);function a(){this.constructor=n}return a.prototype=s.prototype,n.prototype=new a,n.__super__=s.prototype,n},d={}.hasOwnProperty;_=e("./XMLNode"),i=e("./NodeType"),b.exports=t=function(h){y(n,h);function n(s,l,a){if(n.__super__.constructor.call(this,s),l==null)throw new Error("Missing DTD notation name. "+this.debugInfo(l));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(l));this.name=this.stringify.name(l),this.type=i.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(s){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(s))},n}(_)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(e,b,c){"use strict";(function(){var i,t,_,y,d=function(s,l){for(var a in l)h.call(l,a)&&(s[a]=l[a]);function o(){this.constructor=s}return o.prototype=l.prototype,s.prototype=new o,s.__super__=l.prototype,s},h={}.hasOwnProperty;y=e("./Utility").isObject,_=e("./XMLNode"),i=e("./NodeType"),b.exports=t=function(n){d(s,n);function s(l,a,o,v){var p;s.__super__.constructor.call(this,l),y(a)&&(p=a,a=p.version,o=p.encoding,v=p.standalone),a||(a="1.0"),this.type=i.Declaration,this.version=this.stringify.xmlVersion(a),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),v!=null&&(this.standalone=this.stringify.xmlStandalone(v))}return s.prototype.toString=function(l){return this.options.writer.declaration(this,this.options.writer.filterOptions(l))},s}(_)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l,a=function(p,g){for(var E in g)o.call(g,E)&&(p[E]=g[E]);function w(){this.constructor=p}return w.prototype=g.prototype,p.prototype=new w,p.__super__=g.prototype,p},o={}.hasOwnProperty;l=e("./Utility").isObject,s=e("./XMLNode"),i=e("./NodeType"),t=e("./XMLDTDAttList"),y=e("./XMLDTDEntity"),_=e("./XMLDTDElement"),d=e("./XMLDTDNotation"),n=e("./XMLNamedNodeMap"),b.exports=h=function(v){a(p,v);function p(g,E,w){var P,x,D,C,T,m;if(p.__super__.constructor.call(this,g),this.type=i.DocType,g.children){for(C=g.children,x=0,D=C.length;x<D;x++)if(P=C[x],P.type===i.Element){this.name=P.name;break}}this.documentObject=g,l(E)&&(T=E,E=T.pubID,w=T.sysID),w==null&&(m=[E,w],w=m[0],E=m[1]),E!=null&&(this.pubID=this.stringify.dtdPubID(E)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return Object.defineProperty(p.prototype,"entities",{get:function(){var E,w,P,x,D;for(x={},D=this.children,w=0,P=D.length;w<P;w++)E=D[w],E.type===i.EntityDeclaration&&!E.pe&&(x[E.name]=E);return new n(x)}}),Object.defineProperty(p.prototype,"notations",{get:function(){var E,w,P,x,D;for(x={},D=this.children,w=0,P=D.length;w<P;w++)E=D[w],E.type===i.NotationDeclaration&&(x[E.name]=E);return new n(x)}}),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),p.prototype.element=function(g,E){var w;return w=new _(this,g,E),this.children.push(w),this},p.prototype.attList=function(g,E,w,P,x){var D;return D=new t(this,g,E,w,P,x),this.children.push(D),this},p.prototype.entity=function(g,E){var w;return w=new y(this,!1,g,E),this.children.push(w),this},p.prototype.pEntity=function(g,E){var w;return w=new y(this,!0,g,E),this.children.push(w),this},p.prototype.notation=function(g,E){var w;return w=new d(this,g,E),this.children.push(w),this},p.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},p.prototype.ele=function(g,E){return this.element(g,E)},p.prototype.att=function(g,E,w,P,x){return this.attList(g,E,w,P,x)},p.prototype.ent=function(g,E){return this.entity(g,E)},p.prototype.pent=function(g,E){return this.pEntity(g,E)},p.prototype.not=function(g,E){return this.notation(g,E)},p.prototype.up=function(){return this.root()||this.documentObject},p.prototype.isEqualNode=function(g){return p.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)?g.name!==this.name||g.publicId!==this.publicId?!1:!(g.systemId!==this.systemId):!1},p}(s)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l=function(v,p){for(var g in p)a.call(p,g)&&(v[g]=p[g]);function E(){this.constructor=v}return E.prototype=p.prototype,v.prototype=new E,v.__super__=p.prototype,v},a={}.hasOwnProperty;s=e("./Utility").isPlainObject,_=e("./XMLDOMImplementation"),t=e("./XMLDOMConfiguration"),d=e("./XMLNode"),i=e("./NodeType"),n=e("./XMLStringifier"),h=e("./XMLStringWriter"),b.exports=y=function(o){l(v,o);function v(p){v.__super__.constructor.call(this,null),this.name="#document",this.type=i.Document,this.documentURI=null,this.domConfig=new t,p||(p={}),p.writer||(p.writer=new h),this.options=p,this.stringify=new n(p)}return Object.defineProperty(v.prototype,"implementation",{value:new _}),Object.defineProperty(v.prototype,"doctype",{get:function(){var g,E,w,P;for(P=this.children,E=0,w=P.length;E<w;E++)if(g=P[E],g.type===i.DocType)return g;return null}}),Object.defineProperty(v.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(v.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(v.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(v.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].encoding:null}}),Object.defineProperty(v.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(v.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(v.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(v.prototype,"origin",{get:function(){return null}}),Object.defineProperty(v.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(v.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(v.prototype,"contentType",{get:function(){return null}}),v.prototype.end=function(p){var g;return g={},p?s(p)&&(g=p,p=this.options.writer):p=this.options.writer,p.document(this,p.filterOptions(g))},v.prototype.toString=function(p){return this.options.writer.document(this,this.options.writer.filterOptions(p))},v.prototype.createElement=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createTextNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createComment=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createCDATASection=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createProcessingInstruction=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createAttribute=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createEntityReference=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByTagName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.importNode=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createElementNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createAttributeNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByTagNameNS=function(p,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementById=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.adoptNode=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.renameNode=function(p,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByClassName=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createEvent=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createNodeIterator=function(p,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createTreeWalker=function(p,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v}(d)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l,a,o,v,p,g,E,w,P,x,D,C,T,m,r,L,M={}.hasOwnProperty;L=e("./Utility"),m=L.isObject,T=L.isFunction,r=L.isPlainObject,C=L.getValue,i=e("./NodeType"),v=e("./XMLDocument"),g=e("./XMLElement"),y=e("./XMLCData"),d=e("./XMLComment"),w=e("./XMLRaw"),D=e("./XMLText"),E=e("./XMLProcessingInstruction"),a=e("./XMLDeclaration"),o=e("./XMLDocType"),h=e("./XMLDTDAttList"),s=e("./XMLDTDEntity"),n=e("./XMLDTDElement"),l=e("./XMLDTDNotation"),_=e("./XMLAttribute"),x=e("./XMLStringifier"),P=e("./XMLStringWriter"),t=e("./WriterState"),b.exports=p=function(){function u(j,O,k){var H;this.name="?xml",this.type=i.Document,j||(j={}),H={},j.writer?r(j.writer)&&(H=j.writer,j.writer=new P):j.writer=new P,this.options=j,this.writer=j.writer,this.writerOptions=this.writer.filterOptions(H),this.stringify=new x(j),this.onDataCallback=O||function(){},this.onEndCallback=k||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return u.prototype.createChildNode=function(j){var O,k,H,Q,F,q,W,N;switch(j.type){case i.CData:this.cdata(j.value);break;case i.Comment:this.comment(j.value);break;case i.Element:H={},W=j.attribs;for(k in W){if(!M.call(W,k))continue;O=W[k],H[k]=O.value}this.node(j.name,H);break;case i.Dummy:this.dummy();break;case i.Raw:this.raw(j.value);break;case i.Text:this.text(j.value);break;case i.ProcessingInstruction:this.instruction(j.target,j.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+j.constructor.name)}for(N=j.children,F=0,q=N.length;F<q;F++)Q=N[F],this.createChildNode(Q),Q.type===i.Element&&this.up();return this},u.prototype.dummy=function(){return this},u.prototype.node=function(j,O,k){var H;if(j==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(j));return this.openCurrent(),j=C(j),O==null&&(O={}),O=C(O),m(O)||(H=[O,k],k=H[0],O=H[1]),this.currentNode=new g(this,j,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,k!=null&&this.text(k),this},u.prototype.element=function(j,O,k){var H,Q,F,q,W,N;if(this.currentNode&&this.currentNode.type===i.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(j)||m(j)||T(j))for(q=this.options.noValidation,this.options.noValidation=!0,N=new v(this.options).element("TEMP_ROOT"),N.element(j),this.options.noValidation=q,W=N.children,Q=0,F=W.length;Q<F;Q++)H=W[Q],this.createChildNode(H),H.type===i.Element&&this.up();else this.node(j,O,k);return this},u.prototype.attribute=function(j,O){var k,H;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(j));if(j!=null&&(j=C(j)),m(j))for(k in j){if(!M.call(j,k))continue;H=j[k],this.attribute(k,H)}else T(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[j]=new _(this,j,""):O!=null&&(this.currentNode.attribs[j]=new _(this,j,O));return this},u.prototype.text=function(j){var O;return this.openCurrent(),O=new D(this,j),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.cdata=function(j){var O;return this.openCurrent(),O=new y(this,j),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.comment=function(j){var O;return this.openCurrent(),O=new d(this,j),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.raw=function(j){var O;return this.openCurrent(),O=new w(this,j),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.instruction=function(j,O){var k,H,Q,F,q;if(this.openCurrent(),j!=null&&(j=C(j)),O!=null&&(O=C(O)),Array.isArray(j))for(k=0,F=j.length;k<F;k++)H=j[k],this.instruction(H);else if(m(j))for(H in j){if(!M.call(j,H))continue;Q=j[H],this.instruction(H,Q)}else T(O)&&(O=O.apply()),q=new E(this,j,O),this.onData(this.writer.processingInstruction(q,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},u.prototype.declaration=function(j,O,k){var H;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return H=new a(this,j,O,k),this.onData(this.writer.declaration(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.doctype=function(j,O,k){if(this.openCurrent(),j==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 o(this,O,k),this.currentNode.rootNodeName=j,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},u.prototype.dtdElement=function(j,O){var k;return this.openCurrent(),k=new n(this,j,O),this.onData(this.writer.dtdElement(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.attList=function(j,O,k,H,Q){var F;return this.openCurrent(),F=new h(this,j,O,k,H,Q),this.onData(this.writer.dtdAttList(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.entity=function(j,O){var k;return this.openCurrent(),k=new s(this,!1,j,O),this.onData(this.writer.dtdEntity(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.pEntity=function(j,O){var k;return this.openCurrent(),k=new s(this,!0,j,O),this.onData(this.writer.dtdEntity(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.prototype.notation=function(j,O){var k;return this.openCurrent(),k=new l(this,j,O),this.onData(this.writer.dtdNotation(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},u.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},u.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},u.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},u.prototype.openNode=function(j){var O,k,H,Q;if(!j.isOpen){if(!this.root&&this.currentLevel===0&&j.type===i.Element&&(this.root=j),k="",j.type===i.Element){this.writerOptions.state=t.OpenTag,k=this.writer.indent(j,this.writerOptions,this.currentLevel)+"<"+j.name,Q=j.attribs;for(H in Q){if(!M.call(Q,H))continue;O=Q[H],k+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}k+=(j.children?">":"/>")+this.writer.endline(j,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,k=this.writer.indent(j,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+j.rootNodeName,j.pubID&&j.sysID?k+=' PUBLIC "'+j.pubID+'" "'+j.sysID+'"':j.sysID&&(k+=' SYSTEM "'+j.sysID+'"'),j.children?(k+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,k+=">"),k+=this.writer.endline(j,this.writerOptions,this.currentLevel);return this.onData(k,this.currentLevel),j.isOpen=!0}},u.prototype.closeNode=function(j){var O;if(!j.isClosed)return O="",this.writerOptions.state=t.CloseTag,j.type===i.Element?O=this.writer.indent(j,this.writerOptions,this.currentLevel)+"</"+j.name+">"+this.writer.endline(j,this.writerOptions,this.currentLevel):O=this.writer.indent(j,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(j,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(O,this.currentLevel),j.isClosed=!0},u.prototype.onData=function(j,O){return this.documentStarted=!0,this.onDataCallback(j,O+1)},u.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},u.prototype.debugInfo=function(j){return j==null?"":"node: <"+j+">"},u.prototype.ele=function(){return this.element.apply(this,arguments)},u.prototype.nod=function(j,O,k){return this.node(j,O,k)},u.prototype.txt=function(j){return this.text(j)},u.prototype.dat=function(j){return this.cdata(j)},u.prototype.com=function(j){return this.comment(j)},u.prototype.ins=function(j,O){return this.instruction(j,O)},u.prototype.dec=function(j,O,k){return this.declaration(j,O,k)},u.prototype.dtd=function(j,O,k){return this.doctype(j,O,k)},u.prototype.e=function(j,O,k){return this.element(j,O,k)},u.prototype.n=function(j,O,k){return this.node(j,O,k)},u.prototype.t=function(j){return this.text(j)},u.prototype.d=function(j){return this.cdata(j)},u.prototype.c=function(j){return this.comment(j)},u.prototype.r=function(j){return this.raw(j)},u.prototype.i=function(j,O){return this.instruction(j,O)},u.prototype.att=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},u.prototype.a=function(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},u.prototype.ent=function(j,O){return this.entity(j,O)},u.prototype.pent=function(j,O){return this.pEntity(j,O)},u.prototype.not=function(j,O){return this.notation(j,O)},u}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;h=e("./XMLNode"),y=e("./NodeType"),b.exports=d=function(l){n(a,l);function a(o){a.__super__.constructor.call(this,o),this.type=y.Dummy}return a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return""},a}(h)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n,s,l,a,o,v,p=function(w,P){for(var x in P)g.call(P,x)&&(w[x]=P[x]);function D(){this.constructor=w}return D.prototype=P.prototype,w.prototype=new D,w.__super__=P.prototype,w},g={}.hasOwnProperty;v=e("./Utility"),o=v.isObject,a=v.isFunction,l=v.getValue,s=e("./XMLNode"),y=e("./NodeType"),d=e("./XMLAttribute"),n=e("./XMLNamedNodeMap"),b.exports=h=function(E){p(w,E);function w(P,x,D){var C,T,m,r;if(w.__super__.constructor.call(this,P),x==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(x),this.type=y.Element,this.attribs={},this.schemaTypeInfo=null,D!=null&&this.attribute(D),P.type===y.Document&&(this.isRoot=!0,this.documentObject=P,P.rootObject=this,P.children)){for(r=P.children,T=0,m=r.length;T<m;T++)if(C=r[T],C.type===y.DocType){C.name=this.name;break}}}return Object.defineProperty(w.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new n(this.attribs)),this.attributeMap}}),w.prototype.clone=function(){var P,x,D,C;D=(0,t.default)(this),D.isRoot&&(D.documentObject=null),D.attribs={},C=this.attribs;for(x in C){if(!g.call(C,x))continue;P=C[x],D.attribs[x]=P.clone()}return D.children=[],this.children.forEach(function(T){var m;return m=T.clone(),m.parent=D,D.children.push(m)}),D},w.prototype.attribute=function(P,x){var D,C;if(P!=null&&(P=l(P)),o(P))for(D in P){if(!g.call(P,D))continue;C=P[D],this.attribute(D,C)}else a(x)&&(x=x.apply()),this.options.keepNullAttributes&&x==null?this.attribs[P]=new d(this,P,""):x!=null&&(this.attribs[P]=new d(this,P,x));return this},w.prototype.removeAttribute=function(P){var x,D,C;if(P==null)throw new Error("Missing attribute name. "+this.debugInfo());if(P=l(P),Array.isArray(P))for(D=0,C=P.length;D<C;D++)x=P[D],delete this.attribs[x];else delete this.attribs[P];return this},w.prototype.toString=function(P){return this.options.writer.element(this,this.options.writer.filterOptions(P))},w.prototype.att=function(P,x){return this.attribute(P,x)},w.prototype.a=function(P,x){return this.attribute(P,x)},w.prototype.getAttribute=function(P){return this.attribs.hasOwnProperty(P)?this.attribs[P].value:null},w.prototype.setAttribute=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNode=function(P){return this.attribs.hasOwnProperty(P)?this.attribs[P]:null},w.prototype.setAttributeNode=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNode=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNS=function(P,x,D){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNodeNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNodeNS=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasAttribute=function(P){return this.attribs.hasOwnProperty(P)},w.prototype.hasAttributeNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttribute=function(P,x){return this.attribs.hasOwnProperty(P)?this.attribs[P].isId:x},w.prototype.setIdAttributeNS=function(P,x,D){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttributeNode=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(P,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByClassName=function(P){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(P){var x,D,C;if(!w.__super__.isEqualNode.apply(this,arguments).isEqualNode(P))return!1;if(P.namespaceURI!==this.namespaceURI)return!1;if(P.prefix!==this.prefix)return!1;if(P.localName!==this.localName)return!1;if(P.attribs.length!==this.attribs.length)return!1;for(x=D=0,C=this.attribs.length-1;0<=C?D<=C:D>=C;x=0<=C?++D:--D)if(!this.attribs[x].isEqualNode(P.attribs[x]))return!1;return!0},w}(s)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/keys"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y;b.exports=y=function(){function d(h){this.nodes=h}return Object.defineProperty(d.prototype,"length",{get:function(){return(0,t.default)(this.nodes).length||0}}),d.prototype.clone=function(){return this.nodes=null},d.prototype.getNamedItem=function(h){return this.nodes[h]},d.prototype.setNamedItem=function(h){var n;return n=this.nodes[h.nodeName],this.nodes[h.nodeName]=h,n||null},d.prototype.removeNamedItem=function(h){var n;return n=this.nodes[h],delete this.nodes[h],n||null},d.prototype.item=function(h){return this.nodes[(0,t.default)(this.nodes)[h]]||null},d.prototype.getNamedItemNS=function(h,n){throw new Error("This DOM method is not implemented.")},d.prototype.setNamedItemNS=function(h){throw new Error("This DOM method is not implemented.")},d.prototype.removeNamedItemNS=function(h,n){throw new Error("This DOM method is not implemented.")},d}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l,a,o,v,p,g,E,w,P,x,D,C={}.hasOwnProperty;D=e("./Utility"),x=D.isObject,P=D.isFunction,w=D.isEmpty,E=D.getValue,s=null,_=null,y=null,d=null,h=null,p=null,g=null,v=null,n=null,t=null,o=null,l=null,i=null,b.exports=a=function(){function T(m){this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,s||(s=e("./XMLElement"),_=e("./XMLCData"),y=e("./XMLComment"),d=e("./XMLDeclaration"),h=e("./XMLDocType"),p=e("./XMLRaw"),g=e("./XMLText"),v=e("./XMLProcessingInstruction"),n=e("./XMLDummy"),t=e("./NodeType"),o=e("./XMLNodeList"),l=e("./XMLNamedNodeMap"),i=e("./DocumentPosition"))}return Object.defineProperty(T.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(T.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(T.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(T.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new o(this.children)),this.childNodeList}}),Object.defineProperty(T.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(T.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(T.prototype,"previousSibling",{get:function(){var r;return r=this.parent.children.indexOf(this),this.parent.children[r-1]||null}}),Object.defineProperty(T.prototype,"nextSibling",{get:function(){var r;return r=this.parent.children.indexOf(this),this.parent.children[r+1]||null}}),Object.defineProperty(T.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(T.prototype,"textContent",{get:function(){var r,L,M,u,j;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(j="",u=this.children,L=0,M=u.length;L<M;L++)r=u[L],r.textContent&&(j+=r.textContent);return j}else return null},set:function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),T.prototype.setParent=function(m){var r,L,M,u,j;for(this.parent=m,m&&(this.options=m.options,this.stringify=m.stringify),u=this.children,j=[],L=0,M=u.length;L<M;L++)r=u[L],j.push(r.setParent(this));return j},T.prototype.element=function(m,r,L){var M,u,j,O,k,H,Q,F,q,W,N;if(H=null,r===null&&L==null&&(q=[{},null],r=q[0],L=q[1]),r==null&&(r={}),r=E(r),x(r)||(W=[r,L],L=W[0],r=W[1]),m!=null&&(m=E(m)),Array.isArray(m))for(j=0,Q=m.length;j<Q;j++)u=m[j],H=this.element(u);else if(P(m))H=this.element(m.apply());else if(x(m))for(k in m){if(!C.call(m,k))continue;if(N=m[k],P(N)&&(N=N.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&k.indexOf(this.stringify.convertAttKey)===0)H=this.attribute(k.substr(this.stringify.convertAttKey.length),N);else if(!this.options.separateArrayItems&&Array.isArray(N)&&w(N))H=this.dummy();else if(x(N)&&w(N))H=this.element(k);else if(!this.options.keepNullNodes&&N==null)H=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(N))for(O=0,F=N.length;O<F;O++)u=N[O],M={},M[k]=u,H=this.element(M);else x(N)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&k.indexOf(this.stringify.convertTextKey)===0?H=this.element(N):(H=this.element(k),H.element(N)):H=this.element(k,N)}else!this.options.keepNullNodes&&L===null?H=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&m.indexOf(this.stringify.convertTextKey)===0?H=this.text(L):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&m.indexOf(this.stringify.convertCDataKey)===0?H=this.cdata(L):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&m.indexOf(this.stringify.convertCommentKey)===0?H=this.comment(L):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&m.indexOf(this.stringify.convertRawKey)===0?H=this.raw(L):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&m.indexOf(this.stringify.convertPIKey)===0?H=this.instruction(m.substr(this.stringify.convertPIKey.length),L):H=this.node(m,r,L);if(H==null)throw new Error("Could not create any elements with: "+m+". "+this.debugInfo());return H},T.prototype.insertBefore=function(m,r,L){var M,u,j,O,k;if(m!=null?m.type:void 0)return j=m,O=r,j.setParent(this),O?(u=children.indexOf(O),k=children.splice(u),children.push(j),Array.prototype.push.apply(children,k)):children.push(j),j;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(m));return u=this.parent.children.indexOf(this),k=this.parent.children.splice(u),M=this.parent.element(m,r,L),Array.prototype.push.apply(this.parent.children,k),M},T.prototype.insertAfter=function(m,r,L){var M,u,j;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(m));return u=this.parent.children.indexOf(this),j=this.parent.children.splice(u+1),M=this.parent.element(m,r,L),Array.prototype.push.apply(this.parent.children,j),M},T.prototype.remove=function(){var m,r;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return m=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[m,m-m+1].concat(r=[])),this.parent},T.prototype.node=function(m,r,L){var M,u;return m!=null&&(m=E(m)),r||(r={}),r=E(r),x(r)||(u=[r,L],L=u[0],r=u[1]),M=new s(this,m,r),L!=null&&M.text(L),this.children.push(M),M},T.prototype.text=function(m){var r;return x(m)&&this.element(m),r=new g(this,m),this.children.push(r),this},T.prototype.cdata=function(m){var r;return r=new _(this,m),this.children.push(r),this},T.prototype.comment=function(m){var r;return r=new y(this,m),this.children.push(r),this},T.prototype.commentBefore=function(m){var r,L,M;return L=this.parent.children.indexOf(this),M=this.parent.children.splice(L),r=this.parent.comment(m),Array.prototype.push.apply(this.parent.children,M),this},T.prototype.commentAfter=function(m){var r,L,M;return L=this.parent.children.indexOf(this),M=this.parent.children.splice(L+1),r=this.parent.comment(m),Array.prototype.push.apply(this.parent.children,M),this},T.prototype.raw=function(m){var r;return r=new p(this,m),this.children.push(r),this},T.prototype.dummy=function(){var m;return m=new n(this),m},T.prototype.instruction=function(m,r){var L,M,u,j,O;if(m!=null&&(m=E(m)),r!=null&&(r=E(r)),Array.isArray(m))for(j=0,O=m.length;j<O;j++)L=m[j],this.instruction(L);else if(x(m))for(L in m){if(!C.call(m,L))continue;M=m[L],this.instruction(L,M)}else P(r)&&(r=r.apply()),u=new v(this,m,r),this.children.push(u);return this},T.prototype.instructionBefore=function(m,r){var L,M,u;return M=this.parent.children.indexOf(this),u=this.parent.children.splice(M),L=this.parent.instruction(m,r),Array.prototype.push.apply(this.parent.children,u),this},T.prototype.instructionAfter=function(m,r){var L,M,u;return M=this.parent.children.indexOf(this),u=this.parent.children.splice(M+1),L=this.parent.instruction(m,r),Array.prototype.push.apply(this.parent.children,u),this},T.prototype.declaration=function(m,r,L){var M,u;return M=this.document(),u=new d(M,m,r,L),M.children.length===0?M.children.unshift(u):M.children[0].type===t.Declaration?M.children[0]=u:M.children.unshift(u),M.root()||M},T.prototype.dtd=function(m,r){var L,M,u,j,O,k,H,Q,F,q;for(M=this.document(),u=new h(M,m,r),F=M.children,j=O=0,H=F.length;O<H;j=++O)if(L=F[j],L.type===t.DocType)return M.children[j]=u,u;for(q=M.children,j=k=0,Q=q.length;k<Q;j=++k)if(L=q[j],L.isRoot)return M.children.splice(j,0,u),u;return M.children.push(u),u},T.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},T.prototype.root=function(){var m;for(m=this;m;){if(m.type===t.Document)return m.rootObject;if(m.isRoot)return m;m=m.parent}},T.prototype.document=function(){var m;for(m=this;m;){if(m.type===t.Document)return m;m=m.parent}},T.prototype.end=function(m){return this.document().end(m)},T.prototype.prev=function(){var m;if(m=this.parent.children.indexOf(this),m<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[m-1]},T.prototype.next=function(){var m;if(m=this.parent.children.indexOf(this),m===-1||m===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[m+1]},T.prototype.importDocument=function(m){var r;return r=m.root().clone(),r.parent=this,r.isRoot=!1,this.children.push(r),this},T.prototype.debugInfo=function(m){var r,L;return m=m||this.name,m==null&&!((r=this.parent)!=null?r.name:void 0)?"":m==null?"parent: <"+this.parent.name+">":((L=this.parent)!=null?L.name:void 0)?"node: <"+m+">, parent: <"+this.parent.name+">":"node: <"+m+">"},T.prototype.ele=function(m,r,L){return this.element(m,r,L)},T.prototype.nod=function(m,r,L){return this.node(m,r,L)},T.prototype.txt=function(m){return this.text(m)},T.prototype.dat=function(m){return this.cdata(m)},T.prototype.com=function(m){return this.comment(m)},T.prototype.ins=function(m,r){return this.instruction(m,r)},T.prototype.doc=function(){return this.document()},T.prototype.dec=function(m,r,L){return this.declaration(m,r,L)},T.prototype.e=function(m,r,L){return this.element(m,r,L)},T.prototype.n=function(m,r,L){return this.node(m,r,L)},T.prototype.t=function(m){return this.text(m)},T.prototype.d=function(m){return this.cdata(m)},T.prototype.c=function(m){return this.comment(m)},T.prototype.r=function(m){return this.raw(m)},T.prototype.i=function(m,r){return this.instruction(m,r)},T.prototype.u=function(){return this.up()},T.prototype.importXMLBuilder=function(m){return this.importDocument(m)},T.prototype.replaceChild=function(m,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.appendChild=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.hasChildNodes=function(){return this.children.length!==0},T.prototype.cloneNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isSupported=function(m,r){return!0},T.prototype.hasAttributes=function(){return this.attribs.length!==0},T.prototype.compareDocumentPosition=function(m){var r,L;return r=this,r===m?0:this.document()!==m.document()?(L=i.Disconnected|i.ImplementationSpecific,Math.random()<.5?L|=i.Preceding:L|=i.Following,L):r.isAncestor(m)?i.Contains|i.Preceding:r.isDescendant(m)?i.Contains|i.Following:r.isPreceding(m)?i.Preceding:i.Following},T.prototype.isSameNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.lookupPrefix=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isDefaultNamespace=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.lookupNamespaceURI=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isEqualNode=function(m){var r,L,M;if(m.nodeType!==this.nodeType)return!1;if(m.children.length!==this.children.length)return!1;for(r=L=0,M=this.children.length-1;0<=M?L<=M:L>=M;r=0<=M?++L:--L)if(!this.children[r].isEqualNode(m.children[r]))return!1;return!0},T.prototype.getFeature=function(m,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setUserData=function(m,r,L){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getUserData=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.contains=function(m){return m?m===this||this.isDescendant(m):!1},T.prototype.isDescendant=function(m){var r,L,M,u,j;for(j=this.children,M=0,u=j.length;M<u;M++){if(r=j[M],m===r)return!0;if(L=r.isDescendant(m),L)return!0}return!1},T.prototype.isAncestor=function(m){return m.isDescendant(this)},T.prototype.isPreceding=function(m){var r,L;return r=this.treePosition(m),L=this.treePosition(this),r===-1||L===-1?!1:r<L},T.prototype.isFollowing=function(m){var r,L;return r=this.treePosition(m),L=this.treePosition(this),r===-1||L===-1?!1:r>L},T.prototype.treePosition=function(m){var r,L;return L=0,r=!1,this.foreachTreeNode(this.document(),function(M){if(L++,!r&&M===m)return r=!0}),r?L:-1},T.prototype.foreachTreeNode=function(m,r){var L,M,u,j,O;for(m||(m=this.document()),j=m.children,M=0,u=j.length;M<u;M++){if(L=j[M],O=r(L))return O;if(O=this.foreachTreeNode(L,r),O)return O}},T}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(e,b,c){"use strict";(function(){var i;b.exports=i=function(){function t(_){this.nodes=_}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(_){return this.nodes[_]||null},t}()}).call(void 0)},{}],275:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;y=e("./NodeType"),d=e("./XMLCharacterData"),b.exports=h=function(l){n(a,l);function a(o,v,p){if(a.__super__.constructor.call(this,o),v==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=y.ProcessingInstruction,this.target=this.stringify.insTarget(v),this.name=this.target,p&&(this.value=this.stringify.insValue(p))}return a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(o))},a.prototype.isEqualNode=function(o){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(o)?!(o.target!==this.target):!1},a}(d)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;y=e("./NodeType"),d=e("./XMLNode"),b.exports=h=function(l){n(a,l);function a(o,v){if(a.__super__.constructor.call(this,o),v==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=y.Raw,this.value=this.stringify.raw(v)}return a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return this.options.writer.raw(this,this.options.writer.filterOptions(o))},a}(d)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(e,b,c){"use strict";(function(){var i,t,_,y,d=function(s,l){for(var a in l)h.call(l,a)&&(s[a]=l[a]);function o(){this.constructor=s}return o.prototype=l.prototype,s.prototype=new o,s.__super__=l.prototype,s},h={}.hasOwnProperty;i=e("./NodeType"),y=e("./XMLWriterBase"),t=e("./WriterState"),b.exports=_=function(n){d(s,n);function s(l,a){this.stream=l,s.__super__.constructor.call(this,a)}return s.prototype.endline=function(l,a,o){return l.isLastRootNode&&a.state===t.CloseTag?"":s.__super__.endline.call(this,l,a,o)},s.prototype.document=function(l,a){var o,v,p,g,E,w,P,x,D;for(P=l.children,v=p=0,E=P.length;p<E;v=++p)o=P[v],o.isLastRootNode=v===l.children.length-1;for(a=this.filterOptions(a),x=l.children,D=[],g=0,w=x.length;g<w;g++)o=x[g],D.push(this.writeChildNode(o,a,0));return D},s.prototype.attribute=function(l,a,o){return this.stream.write(s.__super__.attribute.call(this,l,a,o))},s.prototype.cdata=function(l,a,o){return this.stream.write(s.__super__.cdata.call(this,l,a,o))},s.prototype.comment=function(l,a,o){return this.stream.write(s.__super__.comment.call(this,l,a,o))},s.prototype.declaration=function(l,a,o){return this.stream.write(s.__super__.declaration.call(this,l,a,o))},s.prototype.docType=function(l,a,o){var v,p,g,E;if(o||(o=0),this.openNode(l,a,o),a.state=t.OpenTag,this.stream.write(this.indent(l,a,o)),this.stream.write("<!DOCTYPE "+l.root().name),l.pubID&&l.sysID?this.stream.write(' PUBLIC "'+l.pubID+'" "'+l.sysID+'"'):l.sysID&&this.stream.write(' SYSTEM "'+l.sysID+'"'),l.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(l,a,o)),a.state=t.InsideTag,E=l.children,p=0,g=E.length;p<g;p++)v=E[p],this.writeChildNode(v,a,o+1);a.state=t.CloseTag,this.stream.write("]")}return a.state=t.CloseTag,this.stream.write(a.spaceBeforeSlash+">"),this.stream.write(this.endline(l,a,o)),a.state=t.None,this.closeNode(l,a,o)},s.prototype.element=function(l,a,o){var v,p,g,E,w,P,x,D,C,T;o||(o=0),this.openNode(l,a,o),a.state=t.OpenTag,this.stream.write(this.indent(l,a,o)+"<"+l.name),C=l.attribs;for(x in C){if(!h.call(C,x))continue;v=C[x],this.attribute(v,a,o)}if(g=l.children.length,E=g===0?null:l.children[0],g===0||l.children.every(function(m){return(m.type===i.Text||m.type===i.Raw)&&m.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=t.CloseTag,this.stream.write("</"+l.name+">")):(a.state=t.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&g===1&&(E.type===i.Text||E.type===i.Raw)&&E.value!=null)this.stream.write(">"),a.state=t.InsideTag,a.suppressPrettyCount++,D=!0,this.writeChildNode(E,a,o+1),a.suppressPrettyCount--,D=!1,a.state=t.CloseTag,this.stream.write("</"+l.name+">");else{for(this.stream.write(">"+this.endline(l,a,o)),a.state=t.InsideTag,T=l.children,w=0,P=T.length;w<P;w++)p=T[w],this.writeChildNode(p,a,o+1);a.state=t.CloseTag,this.stream.write(this.indent(l,a,o)+"</"+l.name+">")}return this.stream.write(this.endline(l,a,o)),a.state=t.None,this.closeNode(l,a,o)},s.prototype.processingInstruction=function(l,a,o){return this.stream.write(s.__super__.processingInstruction.call(this,l,a,o))},s.prototype.raw=function(l,a,o){return this.stream.write(s.__super__.raw.call(this,l,a,o))},s.prototype.text=function(l,a,o){return this.stream.write(s.__super__.text.call(this,l,a,o))},s.prototype.dtdAttList=function(l,a,o){return this.stream.write(s.__super__.dtdAttList.call(this,l,a,o))},s.prototype.dtdElement=function(l,a,o){return this.stream.write(s.__super__.dtdElement.call(this,l,a,o))},s.prototype.dtdEntity=function(l,a,o){return this.stream.write(s.__super__.dtdEntity.call(this,l,a,o))},s.prototype.dtdNotation=function(l,a,o){return this.stream.write(s.__super__.dtdNotation.call(this,l,a,o))},s}(y)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(e,b,c){"use strict";(function(){var i,t,_=function(h,n){for(var s in n)y.call(n,s)&&(h[s]=n[s]);function l(){this.constructor=h}return l.prototype=n.prototype,h.prototype=new l,h.__super__=n.prototype,h},y={}.hasOwnProperty;t=e("./XMLWriterBase"),b.exports=i=function(d){_(h,d);function h(n){h.__super__.constructor.call(this,n)}return h.prototype.document=function(n,s){var l,a,o,v,p;for(s=this.filterOptions(s),v="",p=n.children,a=0,o=p.length;a<o;a++)l=p[a],v+=this.writeChildNode(l,s,0);return s.pretty&&v.slice(-s.newline.length)===s.newline&&(v=v.slice(0,-s.newline.length)),v},h}(t)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(e,b,c){"use strict";(function(){var i,t=function(d,h){return function(){return d.apply(h,arguments)}},_={}.hasOwnProperty;b.exports=i=function(){function y(d){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var h,n,s;d||(d={}),this.options=d,this.options.version||(this.options.version="1.0"),n=d.stringify||{};for(h in n){if(!_.call(n,h))continue;s=n[h],this[h]=s}}return y.prototype.name=function(d){return this.options.noValidation?d:this.assertLegalName(""+d||"")},y.prototype.text=function(d){return this.options.noValidation?d:this.assertLegalChar(this.textEscape(""+d||""))},y.prototype.cdata=function(d){return this.options.noValidation?d:(d=""+d||"",d=d.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(d))},y.prototype.comment=function(d){if(this.options.noValidation)return d;if(d=""+d||"",d.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+d);return this.assertLegalChar(d)},y.prototype.raw=function(d){return this.options.noValidation?d:""+d||""},y.prototype.attValue=function(d){return this.options.noValidation?d:this.assertLegalChar(this.attEscape(d=""+d||""))},y.prototype.insTarget=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.insValue=function(d){if(this.options.noValidation)return d;if(d=""+d||"",d.match(/\?>/))throw new Error("Invalid processing instruction value: "+d);return this.assertLegalChar(d)},y.prototype.xmlVersion=function(d){if(this.options.noValidation)return d;if(d=""+d||"",!d.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+d);return d},y.prototype.xmlEncoding=function(d){if(this.options.noValidation)return d;if(d=""+d||"",!d.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+d);return this.assertLegalChar(d)},y.prototype.xmlStandalone=function(d){return this.options.noValidation?d:d?"yes":"no"},y.prototype.dtdPubID=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdSysID=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdElementValue=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdAttType=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdAttDefault=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdEntityValue=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.dtdNData=function(d){return this.options.noValidation?d:this.assertLegalChar(""+d||"")},y.prototype.convertAttKey="@",y.prototype.convertPIKey="?",y.prototype.convertTextKey="#text",y.prototype.convertCDataKey="#cdata",y.prototype.convertCommentKey="#comment",y.prototype.convertRawKey="#raw",y.prototype.assertLegalChar=function(d){var h,n;if(this.options.noValidation)return d;if(h="",this.options.version==="1.0"){if(h=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=d.match(h))throw new Error("Invalid character in string: "+d+" at index "+n.index)}else if(this.options.version==="1.1"&&(h=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=d.match(h)))throw new Error("Invalid character in string: "+d+" at index "+n.index);return d},y.prototype.assertLegalName=function(d){var h;if(this.options.noValidation)return d;if(this.assertLegalChar(d),h=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!d.match(h))throw new Error("Invalid character in name");return d},y.prototype.textEscape=function(d){var h;return this.options.noValidation?d:(h=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,d.replace(h,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},y.prototype.attEscape=function(d){var h;return this.options.noValidation?d:(h=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,d.replace(h,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},y}()}).call(void 0)},{}],280:[function(e,b,c){"use strict";var i=e("babel-runtime/core-js/object/create"),t=_(i);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,d,h,n=function(a,o){for(var v in o)s.call(o,v)&&(a[v]=o[v]);function p(){this.constructor=a}return p.prototype=o.prototype,a.prototype=new p,a.__super__=o.prototype,a},s={}.hasOwnProperty;y=e("./NodeType"),d=e("./XMLCharacterData"),b.exports=h=function(l){n(a,l);function a(o,v){if(a.__super__.constructor.call(this,o),v==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=y.Text,this.value=this.stringify.text(v)}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var v,p,g;for(g="",p=this.previousSibling;p;)g=p.data+g,p=p.previousSibling;for(g+=this.data,v=this.nextSibling;v;)g=g+v.data,v=v.nextSibling;return g}}),a.prototype.clone=function(){return(0,t.default)(this)},a.prototype.toString=function(o){return this.options.writer.text(this,this.options.writer.filterOptions(o))},a.prototype.splitText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(d)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l,a,o,v,p,g,E,w,P,x={}.hasOwnProperty;P=e("./Utility").assign,i=e("./NodeType"),l=e("./XMLDeclaration"),a=e("./XMLDocType"),_=e("./XMLCData"),y=e("./XMLComment"),v=e("./XMLElement"),g=e("./XMLRaw"),E=e("./XMLText"),p=e("./XMLProcessingInstruction"),o=e("./XMLDummy"),d=e("./XMLDTDAttList"),h=e("./XMLDTDElement"),n=e("./XMLDTDEntity"),s=e("./XMLDTDNotation"),t=e("./WriterState"),b.exports=w=function(){function D(C){var T,m,r;C||(C={}),this.options=C,m=C.writer||{};for(T in m){if(!x.call(m,T))continue;r=m[T],this["_"+T]=this[T],this[T]=r}}return D.prototype.filterOptions=function(C){var T,m,r,L,M,u,j,O;return C||(C={}),C=P({},this.options,C),T={writer:this},T.pretty=C.pretty||!1,T.allowEmpty=C.allowEmpty||!1,T.indent=(m=C.indent)!=null?m:" ",T.newline=(r=C.newline)!=null?r:`
`,T.offset=(L=C.offset)!=null?L:0,T.dontPrettyTextNodes=(M=(u=C.dontPrettyTextNodes)!=null?u:C.dontprettytextnodes)!=null?M:0,T.spaceBeforeSlash=(j=(O=C.spaceBeforeSlash)!=null?O:C.spacebeforeslash)!=null?j:"",T.spaceBeforeSlash===!0&&(T.spaceBeforeSlash=" "),T.suppressPrettyCount=0,T.user={},T.state=t.None,T},D.prototype.indent=function(C,T,m){var r;return!T.pretty||T.suppressPrettyCount?"":T.pretty&&(r=(m||0)+T.offset+1,r>0)?new Array(r).join(T.indent):""},D.prototype.endline=function(C,T,m){return!T.pretty||T.suppressPrettyCount?"":T.newline},D.prototype.attribute=function(C,T,m){var r;return this.openAttribute(C,T,m),r=" "+C.name+'="'+C.value+'"',this.closeAttribute(C,T,m),r},D.prototype.cdata=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<![CDATA[",T.state=t.InsideTag,r+=C.value,T.state=t.CloseTag,r+="]]>"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.comment=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<!-- ",T.state=t.InsideTag,r+=C.value,T.state=t.CloseTag,r+=" -->"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.declaration=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<?xml",T.state=t.InsideTag,r+=' version="'+C.version+'"',C.encoding!=null&&(r+=' encoding="'+C.encoding+'"'),C.standalone!=null&&(r+=' standalone="'+C.standalone+'"'),T.state=t.CloseTag,r+=T.spaceBeforeSlash+"?>",r+=this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.docType=function(C,T,m){var r,L,M,u,j;if(m||(m=0),this.openNode(C,T,m),T.state=t.OpenTag,u=this.indent(C,T,m),u+="<!DOCTYPE "+C.root().name,C.pubID&&C.sysID?u+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.sysID&&(u+=' SYSTEM "'+C.sysID+'"'),C.children.length>0){for(u+=" [",u+=this.endline(C,T,m),T.state=t.InsideTag,j=C.children,L=0,M=j.length;L<M;L++)r=j[L],u+=this.writeChildNode(r,T,m+1);T.state=t.CloseTag,u+="]"}return T.state=t.CloseTag,u+=T.spaceBeforeSlash+">",u+=this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),u},D.prototype.element=function(C,T,m){var r,L,M,u,j,O,k,H,Q,F,q,W,N,B;m||(m=0),F=!1,q="",this.openNode(C,T,m),T.state=t.OpenTag,q+=this.indent(C,T,m)+"<"+C.name,W=C.attribs;for(Q in W){if(!x.call(W,Q))continue;r=W[Q],q+=this.attribute(r,T,m)}if(M=C.children.length,u=M===0?null:C.children[0],M===0||C.children.every(function($){return($.type===i.Text||$.type===i.Raw)&&$.value===""}))T.allowEmpty?(q+=">",T.state=t.CloseTag,q+="</"+C.name+">"+this.endline(C,T,m)):(T.state=t.CloseTag,q+=T.spaceBeforeSlash+"/>"+this.endline(C,T,m));else if(T.pretty&&M===1&&(u.type===i.Text||u.type===i.Raw)&&u.value!=null)q+=">",T.state=t.InsideTag,T.suppressPrettyCount++,F=!0,q+=this.writeChildNode(u,T,m+1),T.suppressPrettyCount--,F=!1,T.state=t.CloseTag,q+="</"+C.name+">"+this.endline(C,T,m);else{if(T.dontPrettyTextNodes){for(N=C.children,j=0,k=N.length;j<k;j++)if(L=N[j],(L.type===i.Text||L.type===i.Raw)&&L.value!=null){T.suppressPrettyCount++,F=!0;break}}for(q+=">"+this.endline(C,T,m),T.state=t.InsideTag,B=C.children,O=0,H=B.length;O<H;O++)L=B[O],q+=this.writeChildNode(L,T,m+1);T.state=t.CloseTag,q+=this.indent(C,T,m)+"</"+C.name+">",F&&T.suppressPrettyCount--,q+=this.endline(C,T,m),T.state=t.None}return this.closeNode(C,T,m),q},D.prototype.writeChildNode=function(C,T,m){switch(C.type){case i.CData:return this.cdata(C,T,m);case i.Comment:return this.comment(C,T,m);case i.Element:return this.element(C,T,m);case i.Raw:return this.raw(C,T,m);case i.Text:return this.text(C,T,m);case i.ProcessingInstruction:return this.processingInstruction(C,T,m);case i.Dummy:return"";case i.Declaration:return this.declaration(C,T,m);case i.DocType:return this.docType(C,T,m);case i.AttributeDeclaration:return this.dtdAttList(C,T,m);case i.ElementDeclaration:return this.dtdElement(C,T,m);case i.EntityDeclaration:return this.dtdEntity(C,T,m);case i.NotationDeclaration:return this.dtdNotation(C,T,m);default:throw new Error("Unknown XML node type: "+C.constructor.name)}},D.prototype.processingInstruction=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<?",T.state=t.InsideTag,r+=C.target,C.value&&(r+=" "+C.value),T.state=t.CloseTag,r+=T.spaceBeforeSlash+"?>",r+=this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.raw=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m),T.state=t.InsideTag,r+=C.value,T.state=t.CloseTag,r+=this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.text=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m),T.state=t.InsideTag,r+=C.value,T.state=t.CloseTag,r+=this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.dtdAttList=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<!ATTLIST",T.state=t.InsideTag,r+=" "+C.elementName+" "+C.attributeName+" "+C.attributeType,C.defaultValueType!=="#DEFAULT"&&(r+=" "+C.defaultValueType),C.defaultValue&&(r+=' "'+C.defaultValue+'"'),T.state=t.CloseTag,r+=T.spaceBeforeSlash+">"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.dtdElement=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<!ELEMENT",T.state=t.InsideTag,r+=" "+C.name+" "+C.value,T.state=t.CloseTag,r+=T.spaceBeforeSlash+">"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.dtdEntity=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<!ENTITY",T.state=t.InsideTag,C.pe&&(r+=" %"),r+=" "+C.name,C.value?r+=' "'+C.value+'"':(C.pubID&&C.sysID?r+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.sysID&&(r+=' SYSTEM "'+C.sysID+'"'),C.nData&&(r+=" NDATA "+C.nData)),T.state=t.CloseTag,r+=T.spaceBeforeSlash+">"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.dtdNotation=function(C,T,m){var r;return this.openNode(C,T,m),T.state=t.OpenTag,r=this.indent(C,T,m)+"<!NOTATION",T.state=t.InsideTag,r+=" "+C.name,C.pubID&&C.sysID?r+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.pubID?r+=' PUBLIC "'+C.pubID+'"':C.sysID&&(r+=' SYSTEM "'+C.sysID+'"'),T.state=t.CloseTag,r+=T.spaceBeforeSlash+">"+this.endline(C,T,m),T.state=t.None,this.closeNode(C,T,m),r},D.prototype.openNode=function(C,T,m){},D.prototype.closeNode=function(C,T,m){},D.prototype.openAttribute=function(C,T,m){},D.prototype.closeAttribute=function(C,T,m){},D}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(e,b,c){"use strict";(function(){var i,t,_,y,d,h,n,s,l,a;a=e("./Utility"),s=a.assign,l=a.isFunction,_=e("./XMLDOMImplementation"),y=e("./XMLDocument"),d=e("./XMLDocumentCB"),n=e("./XMLStringWriter"),h=e("./XMLStreamWriter"),i=e("./NodeType"),t=e("./WriterState"),b.exports.create=function(o,v,p,g){var E,w;if(o==null)throw new Error("Root element needs a name.");return g=s({},v,p,g),E=new y(g),w=E.element(o),g.headless||(E.declaration(g),(g.pubID!=null||g.sysID!=null)&&E.dtd(g)),w},b.exports.begin=function(o,v,p){var g;return l(o)&&(g=[o,v],v=g[0],p=g[1],o={}),v?new d(o,v,p):new y(o)},b.exports.stringWriter=function(o){return new n(o)},b.exports.streamWriter=function(o,v){return new h(o,v)},b.exports.implementation=new _,b.exports.nodeType=i,b.exports.writerState=t}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(e,b,c){b.exports=t;var i=Object.prototype.hasOwnProperty;function t(){for(var _={},y=0;y<arguments.length;y++){var d=arguments[y];for(var h in d)i.call(d,h)&&(_[h]=d[h])}return _}},{}],284:[function(e,b,c){"use strict";var i=e("buffer").Buffer,t=e("./sha"),_=e("./md5"),y={sha1:t,md5:_},d=64,h=i.alloc(d);h.fill(0);function n(a,o,v){i.isBuffer(o)||(o=i.from(o)),i.isBuffer(v)||(v=i.from(v)),o.length>d?o=a(o):o.length<d&&(o=i.concat([o,h],d));for(var p=i.alloc(d),g=i.alloc(d),E=0;E<d;E++)p[E]=o[E]^54,g[E]=o[E]^92;var w=a(i.concat([p,v]));return a(i.concat([g,w]))}function s(a,o){a=a||"sha1";var v=y[a],p=[],g=0;return v||l("algorithm:",a,"is not yet supported"),{update:function(w){return i.isBuffer(w)||(w=i.from(w)),p.push(w),g+=w.length,this},digest:function(w){var P=i.concat(p),x=o?n(v,o,P):v(P);return p=null,w?x.toString(w):x}}}function l(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}c.createHash=function(a){return s(a)},c.createHmac=function(a,o){return s(a,o)},c.createCredentials=function(){l("sorry,createCredentials is not implemented yet")},c.createCipher=function(){l("sorry,createCipher is not implemented yet")},c.createCipheriv=function(){l("sorry,createCipheriv is not implemented yet")},c.createDecipher=function(){l("sorry,createDecipher is not implemented yet")},c.createDecipheriv=function(){l("sorry,createDecipheriv is not implemented yet")},c.createSign=function(){l("sorry,createSign is not implemented yet")},c.createVerify=function(){l("sorry,createVerify is not implemented yet")},c.createDiffieHellman=function(){l("sorry,createDiffieHellman is not implemented yet")},c.pbkdf2=function(){l("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(e,b,c){"use strict";var i=e("buffer").Buffer,t=4,_=i.alloc(t);_.fill(0);var y=8;function d(s,l){if(s.length%t!==0){var a=s.length+(t-s.length%t);s=i.concat([s,_],a)}for(var o=[],v=l?s.readInt32BE:s.readInt32LE,p=0;p<s.length;p+=t)o.push(v.call(s,p));return o}function h(s,l,a){for(var o=i.alloc(l),v=a?o.writeInt32BE:o.writeInt32LE,p=0;p<s.length;p++)v.call(o,s[p],p*4,!0);return o}function n(s,l,a,o){i.isBuffer(s)||(s=i.from(s));var v=l(d(s,o),s.length*y);return h(v,a,o)}b.exports={hash:n}},{buffer:73}],286:[function(e,b,c){"use strict";var i=e("./helpers");function t(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function _(o,v){o[v>>5]|=128<<v%32,o[(v+64>>>9<<4)+14]=v;for(var p=1732584193,g=-271733879,E=-1732584194,w=271733878,P=0;P<o.length;P+=16){var x=p,D=g,C=E,T=w;p=d(p,g,E,w,o[P+0],7,-680876936),w=d(w,p,g,E,o[P+1],12,-389564586),E=d(E,w,p,g,o[P+2],17,606105819),g=d(g,E,w,p,o[P+3],22,-1044525330),p=d(p,g,E,w,o[P+4],7,-176418897),w=d(w,p,g,E,o[P+5],12,1200080426),E=d(E,w,p,g,o[P+6],17,-1473231341),g=d(g,E,w,p,o[P+7],22,-45705983),p=d(p,g,E,w,o[P+8],7,1770035416),w=d(w,p,g,E,o[P+9],12,-1958414417),E=d(E,w,p,g,o[P+10],17,-42063),g=d(g,E,w,p,o[P+11],22,-1990404162),p=d(p,g,E,w,o[P+12],7,1804603682),w=d(w,p,g,E,o[P+13],12,-40341101),E=d(E,w,p,g,o[P+14],17,-1502002290),g=d(g,E,w,p,o[P+15],22,1236535329),p=h(p,g,E,w,o[P+1],5,-165796510),w=h(w,p,g,E,o[P+6],9,-1069501632),E=h(E,w,p,g,o[P+11],14,643717713),g=h(g,E,w,p,o[P+0],20,-373897302),p=h(p,g,E,w,o[P+5],5,-701558691),w=h(w,p,g,E,o[P+10],9,38016083),E=h(E,w,p,g,o[P+15],14,-660478335),g=h(g,E,w,p,o[P+4],20,-405537848),p=h(p,g,E,w,o[P+9],5,568446438),w=h(w,p,g,E,o[P+14],9,-1019803690),E=h(E,w,p,g,o[P+3],14,-187363961),g=h(g,E,w,p,o[P+8],20,1163531501),p=h(p,g,E,w,o[P+13],5,-1444681467),w=h(w,p,g,E,o[P+2],9,-51403784),E=h(E,w,p,g,o[P+7],14,1735328473),g=h(g,E,w,p,o[P+12],20,-1926607734),p=n(p,g,E,w,o[P+5],4,-378558),w=n(w,p,g,E,o[P+8],11,-2022574463),E=n(E,w,p,g,o[P+11],16,1839030562),g=n(g,E,w,p,o[P+14],23,-35309556),p=n(p,g,E,w,o[P+1],4,-1530992060),w=n(w,p,g,E,o[P+4],11,1272893353),E=n(E,w,p,g,o[P+7],16,-155497632),g=n(g,E,w,p,o[P+10],23,-1094730640),p=n(p,g,E,w,o[P+13],4,681279174),w=n(w,p,g,E,o[P+0],11,-358537222),E=n(E,w,p,g,o[P+3],16,-722521979),g=n(g,E,w,p,o[P+6],23,76029189),p=n(p,g,E,w,o[P+9],4,-640364487),w=n(w,p,g,E,o[P+12],11,-421815835),E=n(E,w,p,g,o[P+15],16,530742520),g=n(g,E,w,p,o[P+2],23,-995338651),p=s(p,g,E,w,o[P+0],6,-198630844),w=s(w,p,g,E,o[P+7],10,1126891415),E=s(E,w,p,g,o[P+14],15,-1416354905),g=s(g,E,w,p,o[P+5],21,-57434055),p=s(p,g,E,w,o[P+12],6,1700485571),w=s(w,p,g,E,o[P+3],10,-1894986606),E=s(E,w,p,g,o[P+10],15,-1051523),g=s(g,E,w,p,o[P+1],21,-2054922799),p=s(p,g,E,w,o[P+8],6,1873313359),w=s(w,p,g,E,o[P+15],10,-30611744),E=s(E,w,p,g,o[P+6],15,-1560198380),g=s(g,E,w,p,o[P+13],21,1309151649),p=s(p,g,E,w,o[P+4],6,-145523070),w=s(w,p,g,E,o[P+11],10,-1120210379),E=s(E,w,p,g,o[P+2],15,718787259),g=s(g,E,w,p,o[P+9],21,-343485551),p=l(p,x),g=l(g,D),E=l(E,C),w=l(w,T)}return Array(p,g,E,w)}function y(o,v,p,g,E,w){return l(a(l(l(v,o),l(g,w)),E),p)}function d(o,v,p,g,E,w,P){return y(v&p|~v&g,o,v,E,w,P)}function h(o,v,p,g,E,w,P){return y(v&g|p&~g,o,v,E,w,P)}function n(o,v,p,g,E,w,P){return y(v^p^g,o,v,E,w,P)}function s(o,v,p,g,E,w,P){return y(p^(v|~g),o,v,E,w,P)}function l(o,v){var p=(o&65535)+(v&65535),g=(o>>16)+(v>>16)+(p>>16);return g<<16|p&65535}function a(o,v){return o<<v|o>>>32-v}b.exports=function(v){return i.hash(v,_,16)}},{"./helpers":285}],287:[function(e,b,c){"use strict";var i=e("./helpers");function t(n,s){n[s>>5]|=128<<24-s%32,n[(s+64>>9<<4)+15]=s;for(var l=Array(80),a=1732584193,o=-271733879,v=-1732584194,p=271733878,g=-1009589776,E=0;E<n.length;E+=16){for(var w=a,P=o,x=v,D=p,C=g,T=0;T<80;T++){T<16?l[T]=n[E+T]:l[T]=h(l[T-3]^l[T-8]^l[T-14]^l[T-16],1);var m=d(d(h(a,5),_(T,o,v,p)),d(d(g,l[T]),y(T)));g=p,p=v,v=h(o,30),o=a,a=m}a=d(a,w),o=d(o,P),v=d(v,x),p=d(p,D),g=d(g,C)}return Array(a,o,v,p,g)}function _(n,s,l,a){return n<20?s&l|~s&a:n<40?s^l^a:n<60?s&l|s&a|l&a:s^l^a}function y(n){return n<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514}function d(n,s){var l=(n&65535)+(s&65535),a=(n>>16)+(s>>16)+(l>>16);return a<<16|l&65535}function h(n,s){return n<<s|n>>>32-s}b.exports=function(s){return i.hash(s,t,20,!0)}},{"./helpers":285}],288:[function(e,b,c){"use strict";b.exports=function(){return function(){}}},{}],289:[function(e,b,c){(function(i){"use strict";var t=e("babel-runtime/helpers/typeof"),_=y(t);function y(a){return a&&a.__esModule?a:{default:a}}var d=e("stream"),h=d.Stream,n=e("../lib/common/utils/isArray"),s=n.isArray;b.exports.string=function(o){return typeof o=="string"},b.exports.array=s,b.exports.buffer=i.isBuffer;function l(a){return a instanceof h}b.exports.writableStream=function(o){return l(o)&&typeof o._write=="function"&&(0,_.default)(o._writableState)==="object"}}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(e,b,c){"use strict";c.encodeURIComponent=function(i){try{return encodeURIComponent(i)}catch(t){return i}},c.escape=e("escape-html"),c.timestamp=function(t){if(t){var _=t;return typeof _=="string"&&(_=Number(_)),String(t).length===10&&(_*=1e3),new Date(_)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(e,b,c){(function(i,t){"use strict";var _=e("babel-runtime/core-js/json/stringify"),y=n(_),d=e("babel-runtime/helpers/typeof"),h=n(d);function n(T){return T&&T.__esModule?T:{default:T}}var s=e("util"),l=e("url"),a=e("http"),o=e("https"),v=e("debug")("urllib"),p=e("humanize-ms"),g,E=0,w=Math.pow(2,31)-10,P=/^https?:\/\//i;function x(T,m){return T===void 0?m:T}function D(T,m){return function(r,L,M){if(r)return m(r);T({data:L,status:M.statusCode,headers:M.headers,res:M})}}c.TIMEOUTS=[p("300s"),p("300s")];var C=["json","text"];c.request=function(m,r,L){return arguments.length===2&&typeof r=="function"&&(L=r,r=null),typeof L=="function"?c.requestWithCallback(m,r,L):(g||(g=e("any-promise")),new g(function(M,u){c.requestWithCallback(m,r,D(M,u))}))},c.requestWithCallback=function(m,r,L){if(!m||typeof m!="string"&&(typeof m=="undefined"?"undefined":(0,h.default)(m))!=="object"){var M=s.format("expect request url to be a string or a http request options, but got %j",m);throw new Error(M)}arguments.length===2&&typeof r=="function"&&(L=r,r=null),r=r||{},E>=w&&(E=0);var u=++E;r.requestUrls=r.requestUrls||[];var j={requestId:u,url:m,args:r,ctx:r.ctx};r.emitter&&r.emitter.emit("request",j),r.timeout=r.timeout||c.TIMEOUTS,r.maxRedirects=r.maxRedirects||10,r.streaming=r.streaming||r.customResponse;var O=Date.now(),k;typeof m=="string"?(P.test(m)||(m="http://"+m),k=l.parse(m)):k=m;var H=(r.type||r.method||k.method||"GET").toUpperCase(),Q=k.port||80,F=a,q=x(r.agent,c.agent),W=r.fixJSONCtlChars;k.protocol==="https:"&&(F=o,q=x(r.httpsAgent,c.httpsAgent),k.port||(Q=443));var N={host:k.hostname||k.host||"localhost",path:k.path||"/",method:H,port:Q,agent:q,headers:r.headers||{},lookup:r.lookup};Array.isArray(r.timeout)?N.requestTimeout=r.timeout[r.timeout.length-1]:typeof r.timeout!="undefined"&&(N.requestTimeout=r.timeout);for(var B=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],$=0;$<B.length;$++){var I=B[$];r.hasOwnProperty(I)&&(N[I]=r[I])}N.rejectUnauthorized===!1&&!N.hasOwnProperty("secureOptions")&&(N.secureOptions=e("constants").SSL_OP_NO_TLSv1_2);var A=r.auth||k.auth;A&&(N.auth=A);var z=r.content||r.data,K=H==="GET"||H==="HEAD"||r.dataAsQueryString;if(!r.content&&(z&&!(typeof z=="string"||t.isBuffer(z))))if(K)z=r.nestedQuerystring?qs.stringify(z):querystring.stringify(z);else{var V=N.headers["Content-Type"]||N.headers["content-type"];V||(r.contentType==="json"?V="application/json":V="application/x-www-form-urlencoded",N.headers["Content-Type"]=V),parseContentType(V).type==="application/json"?z=(0,y.default)(z):z=r.nestedQuerystring?qs.stringify(z):querystring.stringify(z)}K&&z&&(N.path+=(k.query?"&":"?")+z,z=null);var re=0;if(z){var ie=z.length;t.isBuffer(z)||(ie=t.byteLength(z)),re=N.headers["Content-Length"]=ie}r.dataType==="json"&&(N.headers.Accept="application/json"),typeof r.beforeRequest=="function"&&r.beforeRequest(N);var J=null,ce=null,se=null,ee=!1,te=!1,ae=0,fe=-1,G=!1,X="",oe="",U=null;r.timing&&(U={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function R(){J&&(clearTimeout(J),J=null)}function f(){ce&&(clearTimeout(ce),ce=null)}function S(ue,He,Ye){if(f(),!L){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),u,i.pid,N.method,m),ue&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),u,i.pid,ue.name,ue.message,ue.stack);return}var Je=L;L=null;var ft={};if(Ye&&(fe=Ye.statusCode,ft=Ye.headers),fe===401&&ft["www-authenticate"]&&(!r.headers||!r.headers.Authorization)&&r.digestAuth){var wt=ft["www-authenticate"];if(wt.indexOf("Digest ")>=0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",u,m,wt),r.headers=r.headers||{},r.headers.Authorization=digestAuthHeader(N.method,N.path,wt,r.digestAuth),v("Request#%d %s: auth with digest header: %s",u,m,r.headers.Authorization),Ye.headers["set-cookie"]&&(r.headers.Cookie=Ye.headers["set-cookie"].join(";")),c.requestWithCallback(m,r,Je)}var Rt=Date.now()-O;U&&(U.contentDownload=Rt),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Rt,ae,fe,N.method,N.host,N.path,te,U);var Ft={status:fe,statusCode:fe,headers:ft,size:ae,aborted:G,rt:Rt,keepAliveSocket:te,data:He,requestUrls:r.requestUrls,timing:U,remoteAddress:X,remotePort:oe};if(ue){var Ut="";q&&typeof q.getCurrentStatus=="function"&&(Ut=", agent status: "+(0,y.default)(q.getCurrentStatus())),ue.message+=", "+N.method+" "+m+" "+fe+" (connected: "+ee+", keepalive socket: "+te+Ut+`)
headers: `+(0,y.default)(ft),ue.data=He,ue.path=N.path,ue.status=fe,ue.headers=ft,ue.res=Ft}Je(ue,He,r.streaming?Ye:Ft),r.emitter&&(j.url=m,j.socket=De&&De.connection,j.options=N,j.size=re,r.emitter.emit("response",{requestId:u,error:ue,ctx:r.ctx,req:j,res:Ft}))}function Z(ue){var He=null;if(r.followRedirect&&statuses.redirect[ue.statusCode]){r._followRedirectCount=(r._followRedirectCount||0)+1;var Ye=ue.headers.location;if(!Ye)He=new Error("Got statusCode "+ue.statusCode+" but cannot resolve next location from headers"),He.name="FollowRedirectError";else if(r._followRedirectCount>r.maxRedirects)He=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+m),He.name="MaxRedirectError";else{var Je=r.formatRedirectUrl?r.formatRedirectUrl(m,Ye):l.resolve(m,Ye);v("Request#%d %s: `redirected` from %s to %s",u,N.path,m,Je),f(),r.headers&&r.headers.Host&&P.test(Ye)&&(r.headers.Host=null);var ft=L;return L=null,c.requestWithCallback(Je,r,ft),{redirect:!0,error:null}}}return{redirect:!1,error:He}}!N.headers["User-Agent"]&&!N.headers["user-agent"]&&(N.headers["User-Agent"]=navigator.userAgent),r.gzip&&(!N.headers["Accept-Encoding"]&&!N.headers["accept-encoding"]&&(N.headers["Accept-Encoding"]="gzip"));function Y(ue,He,Ye){var Je=ue.headers["content-encoding"];return Ye(null,He,Je)}var ne=r.writeStream;v("Request#%d %s %s with headers %j, options.path: %s",u,H,m,N.headers,N.path),r.requestUrls.push(m);function he(ue){if(U&&(U.waiting=Date.now()-O),v("Request#%d %s `req response` event emit: status %d, headers: %j",u,m,ue.statusCode,ue.headers),r.streaming){var He=Z(ue);if(He.redirect){ue.resume();return}return He.error?(ue.resume(),S(He.error,null,ue)):S(null,null,ue)}if(ue.on("close",function(){v("Request#%d %s: `res close` event emit, total size %d",u,m,ae)}),ue.on("error",function(){v("Request#%d %s: `res error` event emit, total size %d",u,m,ae)}),ue.on("aborted",function(){G=!0,v("Request#%d %s: `res aborted` event emit, total size %d",u,m,ae)}),ne){var He=Z(ue);if(He.redirect){ue.resume();return}return He.error?(ue.resume(),ne.end(),S(He.error,null,ue)):(r.consumeWriteStream===!1?ue.on("end",S.bind(null,null,null,ue)):isNode010||isNode012?first([[ne,"close"],[ue,"aborted"]],function(ft,wt,Rt){v("Request#%d %s: writeStream or res %s event emitted",u,m,Rt),S(se||null,null,ue)}):ne.on("close",function(){v("Request#%d %s: writeStream close event emitted",u,m),S(se||null,null,ue)}),ue.pipe(ne))}var Ye=[];ue.on("data",function(Je){v("Request#%d %s: `res data` event emit, size %d",u,m,Je.length),ae+=Je.length,Ye.push(Je)}),ue.on("end",function(){var Je=t.concat(Ye,ae);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",u,m,ae,ue._dumped),se)return S(se,Je,ue);var ft=Z(ue);if(ft.error)return S(ft.error,Je,ue);if(ft.redirect)return;Y(ue,Je,function(wt,Rt,Ft){if(wt)return S(wt,Je,ue);if(!Ft&&C.indexOf(r.dataType)>=0){try{Rt=decodeBodyByCharset(Rt,ue)}catch(zt){return v("decodeBodyByCharset error: %s",zt),S(null,Rt,ue)}if(r.dataType==="json")if(ae===0)Rt=null;else{var Ut=parseJSON(Rt,W);Ut.error?wt=Ut.error:Rt=Ut.data}}G&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",u,m),S(wt,Rt,ue)})})}var ve,we;Array.isArray(r.timeout)?(ve=p(r.timeout[0]),we=p(r.timeout[1])):ve=we=p(r.timeout),v("ConnectTimeout: %d, ResponseTimeout: %d",ve,we);function Ce(){v("Connect timer ticking, timeout: %d",ve),J=setTimeout(function(){J=null,fe===-1&&(fe=-2);var ue="Connect timeout for "+ve+"ms",He="ConnectionTimeoutError";De.socket||(He="SocketAssignTimeoutError",ue+=", working sockets is full"),se=new Error(ue),se.name=He,se.requestId=u,v("ConnectTimeout: Request#%d %s %s: %s, connected: %s",u,m,se.name,ue,ee),Xe()},ve)}function Se(){v("Response timer ticking, timeout: %d",we),ce=setTimeout(function(){ce=null;var ue="Response timeout for "+we+"ms",He="ResponseTimeoutError";se=new Error(ue),se.name=He,se.requestId=u,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",u,m,se.name,ue,ee),Xe()},we)}var De;N.mode=r.mode?r.mode:"";try{De=F.request(N,he)}catch(ue){return S(ue)}typeof window=="undefined"?Ce():De.on("requestTimeout",function(){fe===-1&&(fe=-2);var ue="Connect timeout for "+ve+"ms",He="ConnectionTimeoutError";se=new Error(ue),se.name=He,se.requestId=u,Xe()});function Xe(){v("Request#%d %s abort, connected: %s",u,m,ee),De.socket||(se.noSocket=!0,S(se)),De.abort()}return U&&De.on("finish",function(){U.requestSent=Date.now()-O}),De.once("socket",function(ue){U&&(U.queuing=Date.now()-O),isNode010&&ue.socket&&(ue=ue.socket);var He=ue.readyState;if(He==="opening"){ue.once("lookup",function(Ye,Je,ft){v("Request#%d %s lookup: %s, %s, %s",u,m,Ye,Je,ft),U&&(U.dnslookup=Date.now()-O),Je&&(X=Je)}),ue.once("connect",function(){U&&(U.connected=Date.now()-O),R(),Se(),v("Request#%d %s new socket connected",u,m),ee=!0,X||(X=ue.remoteAddress),oe=ue.remotePort});return}v("Request#%d %s reuse socket connected, readyState: %s",u,m,He),ee=!0,te=!0,X||(X=ue.remoteAddress),oe=ue.remotePort,R(),Se()}),De.on("error",function(ue){(ue.name==="Error"||ue.name==="TypeError")&&(ue.name=ee?"ResponseError":"RequestError"),ue.message+=' (req "error")',v("Request#%d %s `req error` event emit, %s: %s",u,m,ue.name,ue.message),S(se||ue)}),ne&&ne.once("error",function(ue){ue.message+=' (writeStream "error")',se=ue,v("Request#%d %s `writeStream error` event emit, %s: %s",u,m,ue.name,ue.message),Xe()}),r.stream?(r.stream.pipe(De),r.stream.once("error",function(ue){ue.message+=' (stream "error")',se=ue,v("Request#%d %s `readStream error` event emit, %s: %s",u,m,ue.name,ue.message),Xe()})):De.end(z),De.requestId=u,De}}).call(this,e("_process"),e("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},pIsd:function(e,b,c){var i=c("BJfS"),t=function(h){var n=/[height|width]$/;return n.test(h)},_=function(h){var n="",s=Object.keys(h);return s.forEach(function(l,a){var o=h[l];l=i(l),t(l)&&typeof o=="number"&&(o=o+"px"),o===!0?n+=l:o===!1?n+="not "+l:n+="("+l+": "+o+")",a<s.length-1&&(n+=" and ")}),n},y=function(h){var n="";return typeof h=="string"?h:h instanceof Array?(h.forEach(function(s,l){n+=_(s),l<h.length-1&&(n+=", ")}),n):_(h)};e.exports=y},pzsr:function(e,b,c){"use strict";function i(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(z){return typeof z}:i=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},i(I)}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),b.default=void 0;var t=g(c("q1tI")),_=v(c("17x9")),y=v(c("i8i4")),d=v(c("iuhU")),h=c("8N4D"),n=c("fJi3"),s=c("gbW8"),l=v(c("R155")),a=v(c("sS6v")),o=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function v(I){return I&&I.__esModule?I:{default:I}}function p(I){if(typeof WeakMap!="function")return null;var A=new WeakMap,z=new WeakMap;return(p=function(V){return V?z:A})(I)}function g(I,A){if(!A&&I&&I.__esModule)return I;if(I===null||i(I)!=="object"&&typeof I!="function")return{default:I};var z=p(A);if(z&&z.has(I))return z.get(I);var K={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in I)if(re!=="default"&&Object.prototype.hasOwnProperty.call(I,re)){var ie=V?Object.getOwnPropertyDescriptor(I,re):null;ie&&(ie.get||ie.set)?Object.defineProperty(K,re,ie):K[re]=I[re]}return K.default=I,z&&z.set(I,K),K}function E(){return E=Object.assign||function(I){for(var A=1;A<arguments.length;A++){var z=arguments[A];for(var K in z)Object.prototype.hasOwnProperty.call(z,K)&&(I[K]=z[K])}return I},E.apply(this,arguments)}function w(I,A){if(I==null)return{};var z=P(I,A),K,V;if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(I);for(V=0;V<re.length;V++){if(K=re[V],A.indexOf(K)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(I,K))continue;z[K]=I[K]}}return z}function P(I,A){if(I==null)return{};var z={},K=Object.keys(I),V,re;for(re=0;re<K.length;re++){if(V=K[re],A.indexOf(V)>=0)continue;z[V]=I[V]}return z}function x(I,A){var z=Object.keys(I);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(I);A&&(K=K.filter(function(V){return Object.getOwnPropertyDescriptor(I,V).enumerable})),z.push.apply(z,K)}return z}function D(I){for(var A=1;A<arguments.length;A++){var z=arguments[A]!=null?arguments[A]:{};A%2?x(Object(z),!0).forEach(function(K){B(I,K,z[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(z)):x(Object(z)).forEach(function(K){Object.defineProperty(I,K,Object.getOwnPropertyDescriptor(z,K))})}return I}function C(I,A){return M(I)||L(I,A)||m(I,A)||T()}function T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(I,A){if(!I)return;if(typeof I=="string")return r(I,A);var z=Object.prototype.toString.call(I).slice(8,-1);if(z==="Object"&&I.constructor&&(z=I.constructor.name),z==="Map"||z==="Set")return Array.from(I);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return r(I,A)}function r(I,A){(A==null||A>I.length)&&(A=I.length);for(var z=0,K=new Array(A);z<A;z++)K[z]=I[z];return K}function L(I,A){var z=I==null?null:typeof Symbol!="undefined"&&I[Symbol.iterator]||I["@@iterator"];if(z==null)return;var K=[],V=!0,re=!1,ie,J;try{for(z=z.call(I);!(V=(ie=z.next()).done)&&!(K.push(ie.value),A&&K.length===A);V=!0);}catch(ce){re=!0,J=ce}finally{try{!V&&z.return!=null&&z.return()}finally{if(re)throw J}}return K}function M(I){if(Array.isArray(I))return I}function u(I,A){if(!(I instanceof A))throw new TypeError("Cannot call a class as a function")}function j(I,A){for(var z=0;z<A.length;z++){var K=A[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(I,K.key,K)}}function O(I,A,z){return A&&j(I.prototype,A),z&&j(I,z),I}function k(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&H(I,A)}function H(I,A){return H=Object.setPrototypeOf||function(K,V){return K.__proto__=V,K},H(I,A)}function Q(I){var A=W();return function(){var K=N(I),V;if(A){var re=N(this).constructor;V=Reflect.construct(K,arguments,re)}else V=K.apply(this,arguments);return F(this,V)}}function F(I,A){if(A&&(i(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(I)}function q(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function W(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(I){return!1}}function N(I){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(z){return z.__proto__||Object.getPrototypeOf(z)},N(I)}function B(I,A,z){return A in I?Object.defineProperty(I,A,{value:z,enumerable:!0,configurable:!0,writable:!0}):I[A]=z,I}var $=function(I){k(z,I);var A=Q(z);function z(K){var V;return u(this,z),V=A.call(this,K),B(q(V),"onDragStart",function(re,ie){(0,a.default)("Draggable: onDragStart: %j",ie);var J=V.props.onStart(re,(0,n.createDraggableData)(q(V),ie));if(J===!1)return!1;V.setState({dragging:!0,dragged:!0})}),B(q(V),"onDrag",function(re,ie){if(!V.state.dragging)return!1;(0,a.default)("Draggable: onDrag: %j",ie);var J=(0,n.createDraggableData)(q(V),ie),ce={x:J.x,y:J.y};if(V.props.bounds){var se=ce.x,ee=ce.y;ce.x+=V.state.slackX,ce.y+=V.state.slackY;var te=(0,n.getBoundPosition)(q(V),ce.x,ce.y),ae=C(te,2),fe=ae[0],G=ae[1];ce.x=fe,ce.y=G,ce.slackX=V.state.slackX+(se-ce.x),ce.slackY=V.state.slackY+(ee-ce.y),J.x=ce.x,J.y=ce.y,J.deltaX=ce.x-V.state.x,J.deltaY=ce.y-V.state.y}var X=V.props.onDrag(re,J);if(X===!1)return!1;V.setState(ce)}),B(q(V),"onDragStop",function(re,ie){if(!V.state.dragging)return!1;var J=V.props.onStop(re,(0,n.createDraggableData)(q(V),ie));if(J===!1)return!1;(0,a.default)("Draggable: onDragStop: %j",ie);var ce={dragging:!1,slackX:0,slackY:0},se=Boolean(V.props.position);if(se){var ee=V.props.position,te=ee.x,ae=ee.y;ce.x=te,ce.y=ae}V.setState(ce)}),V.state={dragging:!1,dragged:!1,x:K.position?K.position.x:K.defaultPosition.x,y:K.position?K.position.y:K.defaultPosition.y,prevPropsPosition:D({},K.position),slackX:0,slackY:0,isElementSVG:!1},K.position&&!(K.onDrag||K.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),V}return O(z,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var V,re,ie;return(V=(re=this.props)===null||re===void 0||((ie=re.nodeRef)===null||ie===void 0)?void 0:ie.current)!==null&&V!==void 0?V:y.default.findDOMNode(this)}},{key:"render",value:function(){var V,re=this.props,ie=re.axis,J=re.bounds,ce=re.children,se=re.defaultPosition,ee=re.defaultClassName,te=re.defaultClassNameDragging,ae=re.defaultClassNameDragged,fe=re.position,G=re.positionOffset,X=re.scale,oe=w(re,o),U={},R=null,f=Boolean(fe),S=!f||this.state.dragging,Z=fe||se,Y={x:(0,n.canDragX)(this)&&S?this.state.x:Z.x,y:(0,n.canDragY)(this)&&S?this.state.y:Z.y};this.state.isElementSVG?R=(0,h.createSVGTransform)(Y,G):U=(0,h.createCSSTransform)(Y,G);var ne=(0,d.default)(ce.props.className||"",ee,(V={},B(V,te,this.state.dragging),B(V,ae,this.state.dragged),V));return t.createElement(l.default,E({},oe,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(ce),{className:ne,style:D(D({},ce.props.style),U),transform:R}))}}],[{key:"getDerivedStateFromProps",value:function(V,re){var ie=V.position,J=re.prevPropsPosition;return ie&&(!J||ie.x!==J.x||ie.y!==J.y)?((0,a.default)("Draggable: getDerivedStateFromProps %j",{position:ie,prevPropsPosition:J}),{x:ie.x,y:ie.y,prevPropsPosition:D({},ie)}):null}}]),z}(t.Component);b.default=$,B($,"displayName","Draggable"),B($,"propTypes",D(D({},l.default.propTypes),{},{axis:_.default.oneOf(["both","x","y","none"]),bounds:_.default.oneOfType([_.default.shape({left:_.default.number,right:_.default.number,top:_.default.number,bottom:_.default.number}),_.default.string,_.default.oneOf([!1])]),defaultClassName:_.default.string,defaultClassNameDragging:_.default.string,defaultClassNameDragged:_.default.string,defaultPosition:_.default.shape({x:_.default.number,y:_.default.number}),positionOffset:_.default.shape({x:_.default.oneOfType([_.default.number,_.default.string]),y:_.default.oneOfType([_.default.number,_.default.string])}),position:_.default.shape({x:_.default.number,y:_.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe})),B($,"defaultProps",D(D({},l.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},sS6v:function(e,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=i;function i(){var t}}}]);