(window.webpackJsonp=window.webpackJsonp||[]).push([[214,3,5,7,8,19],{"++UQ":function(nt,Xe,V){},"+NIl":function(nt,Xe,V){(function(ce){ce(V("VrN/"))})(function(ce){"use strict";ce.defineMode("stex",function(ie,W){"use strict";function C(o,r){o.cmdState.push(r)}function D(o){return o.cmdState.length>0?o.cmdState[o.cmdState.length-1]:null}function T(o){var r=o.cmdState.pop();r&&r.closeBracket()}function A(o){for(var r=o.cmdState,l=r.length-1;l>=0;l--){var a=r[l];if(a.name=="DEFAULT")continue;return a}return{styleIdentifier:function(){return null}}}function O(o,r,l){return function(){this.name=o,this.bracketNo=0,this.style=r,this.styles=l,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var f={};f.importmodule=O("importmodule","tag",["string","builtin"]),f.documentclass=O("documentclass","tag",["","atom"]),f.usepackage=O("usepackage","tag",["atom"]),f.begin=O("begin","tag",["atom"]),f.end=O("end","tag",["atom"]),f.label=O("label","tag",["atom"]),f.ref=O("ref","tag",["atom"]),f.eqref=O("eqref","tag",["atom"]),f.cite=O("cite","tag",["atom"]),f.bibitem=O("bibitem","tag",["atom"]),f.Bibitem=O("Bibitem","tag",["atom"]),f.RBibitem=O("RBibitem","tag",["atom"]),f.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(o,r){o.f=r}function c(o,r){var l;if(o.match(/^\\[a-zA-Z@]+/)){var a=o.current().slice(1);return l=f.hasOwnProperty(a)?f[a]:f.DEFAULT,l=new l,C(r,l),p(r,n),l.style}if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/\\]/))return"tag";if(o.match("\\["))return p(r,function(t,d){return s(t,d,"\\]")}),"keyword";if(o.match("\\("))return p(r,function(t,d){return s(t,d,"\\)")}),"keyword";if(o.match("$$"))return p(r,function(t,d){return s(t,d,"$$")}),"keyword";if(o.match("$"))return p(r,function(t,d){return s(t,d,"$")}),"keyword";var i=o.next();if(i=="%")return o.skipToEnd(),"comment";if(i=="}"||i=="]"){if(l=D(r),l)l.closeBracket(i),p(r,n);else return"error";return"bracket"}else return i=="{"||i=="["?(l=f.DEFAULT,l=new l,C(r,l),"bracket"):/\d/.test(i)?(o.eatWhile(/[\w.%]/),"atom"):(o.eatWhile(/[\w\-_]/),l=A(r),l.name=="begin"&&(l.argument=o.current()),l.styleIdentifier())}function s(o,r,l){if(o.eatSpace())return null;if(l&&o.match(l))return p(r,c),"keyword";if(o.match(/^\\[a-zA-Z@]+/))return"tag";if(o.match(/^[a-zA-Z]+/))return"variable-2";if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/]/))return"tag";if(o.match(/^[\^_&]/))return"tag";if(o.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(o.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=o.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(o.skipToEnd(),"comment"):"error"}function n(o,r){var l=o.peek(),a;return l=="{"||l=="["?(a=D(r),a.openBracket(l),o.eat(l),p(r,c),"bracket"):/[ \t\r]/.test(l)?(o.eat(l),null):(p(r,c),T(r),c(o,r))}return{startState:function(){var o=W.inMathMode?function(r,l){return s(r,l)}:c;return{cmdState:[],f:o}},copyState:function(o){return{cmdState:o.cmdState.slice(),f:o.f}},token:function(o,r){return r.f(o,r)},blankLine:function(o){o.f=c,o.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},"+QRC":function(nt,Xe,V){"use strict";var ce=V("E9nw"),ie={"text/plain":"Text","text/html":"Url",default:"Text"},W="Copy to clipboard: #{key}, Enter";function C(T){var A=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return T.replace(/#{\s*key\s*}/g,A)}function D(T,A){var O,f,p,c,s,n,o=!1;A||(A={}),O=A.debug||!1;try{p=ce(),c=document.createRange(),s=document.getSelection(),n=document.createElement("span"),n.textContent=T,n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(l){if(l.stopPropagation(),A.format)if(l.preventDefault(),typeof l.clipboardData=="undefined"){O&&console.warn("unable to use e.clipboardData"),O&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=ie[A.format]||ie.default;window.clipboardData.setData(a,T)}else l.clipboardData.clearData(),l.clipboardData.setData(A.format,T);A.onCopy&&(l.preventDefault(),A.onCopy(l.clipboardData))}),document.body.appendChild(n),c.selectNodeContents(n),s.addRange(c);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");o=!0}catch(l){O&&console.error("unable to copy using execCommand: ",l),O&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(A.format||"text",T),A.onCopy&&A.onCopy(window.clipboardData),o=!0}catch(a){O&&console.error("unable to copy using clipboardData: ",a),O&&console.error("falling back to prompt"),f=C("message"in A?A.message:W),window.prompt(f,T)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(c):s.removeAllRanges()),n&&document.body.removeChild(n),p()}return o}nt.exports=D},"+aKw":function(nt,Xe,V){"use strict";var ce=V("tJVT"),ie=V("cDcd"),W=V.n(ie),C=function(A){return String(A).length===1?"0".concat(A):A},D=function(A){var O=A.className,f=O===void 0?"":O,p=A.onChange,c=A.defaultValue,s=c===void 0?0:c,n=Object(ie.useState)(s),o=Object(ce.a)(n,2),r=o[0],l=o[1];Object(ie.useEffect)(function(){var d=setTimeout(function(){l(r+1e3)},1e3);return p(r+1e3),function(){clearInterval(d)}},[r]);var a=parseInt(r/(60*6e4))||"00",i=parseInt(r%(60*6e4)/6e4)||"00",t=parseInt(r%6e4/1e3)||"00";return W.a.createElement("div",{className:f},C(a),":",C(i),":",C(t))};Xe.a=D},"+ua5":function(nt,Xe,V){},"07cG":function(nt,Xe,V){nt.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0r65":function(nt,Xe){var V=arguments[3],ce=arguments[4],ie=arguments[5],W=JSON.stringify;nt.exports=function(C,D){for(var T,A=Object.keys(ie),O=0,f=A.length;O ".concat(ae," [TOC] "+be+`"],t=new o.a.Renderer,d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function v(){a.length=0,i=["
"]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function b(ae,U,H,te){if(U>=ae.length||ae[U].level<=H)return U;var pe=ae[U];te.push("
"),i.join("")}var m={heading:function(U){var H=d.exec(U);if(H)return{type:"heading",raw:H[0],depth:H[1].length,text:H[2]}},fences:function(U){var H=this.rules.block.fences.exec(U);if(H){var te=H[0],pe=l(te,H[3]||""),se=H[2]?H[2].trim():H[2];if(["latex","katex","math"].indexOf(se)>=0){var $e=h(),yt=pe;pe=$e,E[$e]={type:"block",expression:yt}}return{type:"code",raw:te,lang:se,text:pe}}}},_=/(?:\${2})([^\n`]+?)(?:\${2})/gi,x=0,h=function(){return"__special_katext_id_".concat(x++,"__")},E={};function S(){return E}function w(){x=0,E={}}function R(ae){return ae=ae.replace(_,function(U,H){var te=h();return E[te]={type:"inline",expression:H},te}),ae}var N=t.listitem;t.listitem=function(ae){return N(R(ae))};var F=t.paragraph;t.paragraph=function(ae){return F(R(ae))};var z=t.tablecell;t.tablecell=function(ae,U){return z(R(ae),U)},t.code=function(ae,U,H){var te=(U||"").match(/\S*/)[0];return te?["latex","katex","math"].indexOf(te)>=0?""),se.forEach(function($e){te.push($e)}),te.push("
")),te.push("
`):'').concat(H?ae:Object(r.escape)(ae,!0),`
"},t.heading=function(ae,U,H){var te=this.options.headerPrefix+H.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return a.push({anchor:te,level:U,text:ae}),"'+(H?ae:Object(r.escape)(ae,!0))+"]*>/g;function hn(ae){var U=document.createElement("div");return U.innerHTML=ae,U.childNodes.length===0?"":U.childNodes[0].nodeValue}var rn=Xe.a=function(ae){var U=ae.value,H=U===void 0?"":U,te=ae.edit,pe=te===void 0?!1:te,se=ae.className,$e=ae.showTextOnly,yt=ae.showLines,Ot=ae.replaces,Yt=ae.zoomImg,St=ae.hasMask,Wt=ae.style,ln=Wt===void 0?{}:Wt,Bn=ae.stylesPrev,Oi=Bn===void 0?{}:Bn,mi=String(H),Wn=Object(p.useRef)(),di=Object(p.useRef)(),hr=Object(p.useState)(""),vi=Object(A.a)(hr,2),gi=vi[0],xi=vi[1],Bi=Object(p.useState)("office"),Ai=Object(A.a)(Bi,2),sr=Ai[0],Di=Ai[1],fr=function(){var wn=new ht(di.current);wn.displayMode="popup",wn.addRenderEventListener(function(){var wi=Object(T.a)(f.a.mark(function Mn(Ri){var oi;return f.a.wrap(function(Ni){for(;;)switch(Ni.prev=Ni.next){case 0:return Wn.current.style.display="none",Ni.next=3,Object(le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ri}});case 3:oi=Ni.sent,oi!=null&&oi.id&&Ot(di.current.getAttribute("src").replace(J.a.API_SERVER,""),"/api/attachments/".concat(oi==null?void 0:oi.id,"?type=").concat(oi.content_type));case 5:case"end":return Ni.stop()}},Mn)}));return function(Mn){return wi.apply(this,arguments)}}()),wn.show()},lr=function(){var wn=new Oe(di.current);wn.settings.displayMode="popup",wn.addEventListener("render",function(){var wi=Object(T.a)(f.a.mark(function Mn(Ri){var oi;return f.a.wrap(function(Ni){for(;;)switch(Ni.prev=Ni.next){case 0:if(Wn.current.style.display="none",!di.current){Ni.next=6;break}return Ni.next=4,Object(le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Ri.dataUrl}});case 4:oi=Ni.sent,oi!=null&&oi.id&&Ot(di.current.getAttribute("src").replace(J.a.API_SERVER,""),"/api/attachments/".concat(oi==null?void 0:oi.id,"?type=").concat(oi.content_type));case 6:case"end":return Ni.stop()}},Mn)}));return function(Mn){return wi.apply(this,arguments)}}()),wn.show(),window.markerArea=wn},Wi=Object(p.useMemo)(function(){Wn.current&&(Wn.current.style.zIndex=-1);try{var Hn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,wn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,wi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;mi=mi.replace(Hn,"("+J.a.API_SERVER+"/api/attachments/").replace(wn,'"'+J.a.API_SERVER+"/api/attachments/").replace(wi,'"'+J.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Lr){}var Mn=q(mi),Ri=S();if(mi.match(/\[TOC\]/)&&(Mn=Mn.replace("
`:"'+(Pe?be:re(be,!0))+`
`},Ue.blockquote=function(be){return`"+(Pe?be:re(be,!0))+`
`+be+`
`},Ue.html=function(be){return be},Ue.heading=function(be,Ce,Pe,Le){return this.options.headerIds?"
`:`
`},Ue.list=function(be,Ce,Pe){var Le=Ce?"ol":"ul",Ve=Ce&&Pe!==1?' start="'+Pe+'"':"";return"<"+Le+Ve+`>
`+be+""+Le+`>
`},Ue.listitem=function(be){return"
`+be+`
`+Ce+`
`},Ue.tablerow=function(be){return`
`+be+`
`},Ue.tablecell=function(be,Ce){var Pe=Ce.header?"th":"td",Le=Ce.align?"<"+Pe+' align="'+Ce.align+'">':"<"+Pe+">";return Le+be+""+Pe+`>
`},Ue.strong=function(be){return""+be+""},Ue.em=function(be){return""+be+""},Ue.codespan=function(be){return""+be+""},Ue.br=function(){return this.options.xhtml?"
":"
"},Ue.del=function(be){return""+be+""},Ue.link=function(be,Ce,Pe){if(be=it(this.options.sanitize,this.options.baseUrl,be),be===null)return Pe;var Le='"+Pe+"",Le},Ue.image=function(be,Ce,Pe){if(be=it(this.options.sanitize,this.options.baseUrl,be),be===null)return Pe;var Le='":">",Le},Ue.text=function(be){return be},je}(),j=function(){function je(){}var Ue=je.prototype;return Ue.strong=function(be){return be},Ue.em=function(be){return be},Ue.codespan=function(be){return be},Ue.del=function(be){return be},Ue.html=function(be){return be},Ue.text=function(be){return be},Ue.link=function(be,Ce,Pe){return""+Pe},Ue.image=function(be,Ce,Pe){return""+Pe},Ue.br=function(){return""},je}(),ee=function(){function je(){this.seen={}}var Ue=je.prototype;return Ue.slug=function(be){var Ce=be.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ce)){var Pe=Ce;do this.seen[Pe]++,Ce=Pe+"-"+this.seen[Pe];while(this.seen.hasOwnProperty(Ce))}return this.seen[Ce]=0,Ce},je}(),$=A.defaults,Q=q.unescape,xe=function(){function je(ke){this.options=ke||$,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new ee}je.parse=function(be,Ce){var Pe=new je(Ce);return Pe.parse(be)};var Ue=je.prototype;return Ue.parse=function(be,Ce){Ce===void 0&&(Ce=!0);var Pe="",Le,Ve,at,_t,kt,Bt,jt,At,pt,gt,rt,Oe,ze,vt,st,It,Pt,Ze,mt=be.length;for(Le=0;Le
"+Ne(at.message+"",!0)+"";throw at}}qe.options=qe.setOptions=function(je){return De(qe.defaults,je),tt(qe.defaults),qe},qe.getDefaults=Be,qe.defaults=lt,qe.use=function(je){var Ue=De({},je);if(je.renderer&&function(){var be=qe.defaults.renderer||new P,Ce=function(Ve){var at=be[Ve];be[Ve]=function(){for(var _t=arguments.length,kt=new Array(_t),Bt=0;Bt<_t;Bt++)kt[Bt]=arguments[Bt];var jt=je.renderer[Ve].apply(be,kt);return jt===!1&&(jt=at.apply(be,kt)),jt}};for(var Pe in je.renderer)Ce(Pe);Ue.renderer=be}(),je.tokenizer&&function(){var be=qe.defaults.tokenizer||new de,Ce=function(Ve){var at=be[Ve];be[Ve]=function(){for(var _t=arguments.length,kt=new Array(_t),Bt=0;Bt<_t;Bt++)kt[Bt]=arguments[Bt];var jt=je.tokenizer[Ve].apply(be,kt);return jt===!1&&(jt=at.apply(be,kt)),jt}};for(var Pe in je.tokenizer)Ce(Pe);Ue.tokenizer=be}(),je.walkTokens){var ke=qe.defaults.walkTokens;Ue.walkTokens=function(be){je.walkTokens(be),ke&&ke(be)}}qe.setOptions(Ue)},qe.walkTokens=function(je,Ue){for(var ke=D(je),be;!(be=ke()).done;){var Ce=be.value;Ue(Ce);switch(Ce.type){case"table":{for(var Pe=D(Ce.tokens.header),Le;!(Le=Pe()).done;){var Ve=Le.value;qe.walkTokens(Ve,Ue)}for(var at=D(Ce.tokens.cells),_t;!(_t=at()).done;)for(var kt=_t.value,Bt=D(kt),jt;!(jt=Bt()).done;){var At=jt.value;qe.walkTokens(At,Ue)}break}case"list":{qe.walkTokens(Ce.items,Ue);break}default:Ce.tokens&&qe.walkTokens(Ce.tokens,Ue)}}},qe.Parser=xe,qe.parser=xe.parse,qe.Renderer=P,qe.TextRenderer=j,qe.Lexer=We,qe.lexer=We.lex,qe.Tokenizer=de,qe.Slugger=ee,qe.parse=qe;var Ye=qe;return Ye})},"DlR+":function(nt,Xe,V){var ce=V("MFOe"),ie=ce.Global,W=ce.trim;nt.exports={name:"cookieStorage",read:D,write:A,each:T,remove:O,clearAll:f};var C=ie.document;function D(c){if(!c||!p(c))return null;var s="(?:^|.*;\\s*)"+escape(c).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(C.cookie.replace(new RegExp(s),"$1"))}function T(c){for(var s=C.cookie.split(/; ?/g),n=s.length-1;n>=0;n--){if(!W(s[n]))continue;var o=s[n].split("="),r=unescape(o[0]),l=unescape(o[1]);c(l,r)}}function A(c,s){if(!c)return;C.cookie=escape(c)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function O(c){if(!c||!p(c))return;C.cookie=escape(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function f(){T(function(c,s){O(s)})}function p(c){return new RegExp("(?:^|;\\s*)"+escape(c).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(C.cookie)}},E2g8:function(nt,Xe,V){(function(ce,ie){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */(function(W,C){nt.exports=C()})(this,function(){"use strict";function W(P){var j=typeof P;return P!==null&&(j==="object"||j==="function")}function C(P){return typeof P=="function"}var D=void 0;Array.isArray?D=Array.isArray:D=function(P){return Object.prototype.toString.call(P)==="[object Array]"};var T=D,A=0,O=void 0,f=void 0,p=function(j,ee){b[A]=j,b[A+1]=ee,A+=2,A===2&&(f?f(g):_())};function c(P){f=P}function s(P){p=P}var n=typeof window!="undefined"?window:void 0,o=n||{},r=o.MutationObserver||o.WebKitMutationObserver,l=typeof self=="undefined"&&typeof ce!="undefined"&&{}.toString.call(ce)==="[object process]",a=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function i(){return function(){return ce.nextTick(g)}}function t(){return typeof O!="undefined"?function(){O(g)}:y()}function d(){var P=0,j=new r(g),ee=document.createTextNode("");return j.observe(ee,{characterData:!0}),function(){ee.data=P=++P%2}}function v(){var P=new MessageChannel;return P.port1.onmessage=g,function(){return P.port2.postMessage(0)}}function y(){var P=setTimeout;return function(){return P(g,1)}}var b=new Array(1e3);function g(){for(var P=0;P`,triples:"",explode:"[]{}"},W=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(r,l,a){a&&a!=ce.Init&&(r.removeKeyMap(D),r.state.closeBrackets=null),l&&(T(C(l,"pairs")),r.state.closeBrackets=l,r.addKeyMap(D))});function C(r,l){return l=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[l]!=null?r[l]:ie[l]}var D={Backspace:f,Enter:p};function T(r){for(var l=0;l
>>18)+A.charAt(J>>>12&63)+(typeof M!="undefined"?A.charAt(J>>>6&63):"=")+(typeof G!="undefined"?A.charAt(J&63):"=")}return N?l(F):F});var d=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(R){switch(R.length){case 4:var N=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),F=N-65536;return f((F>>>10)+55296)+f((F&1023)+56320);case 3:return f((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return f((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},y=function(R){return R.replace(d,v)},b=function(R){var N=R.length,F=N%4,z=(N>0?O[R.charAt(0)]<<18:0)|(N>1?O[R.charAt(1)]<<12:0)|(N>2?O[R.charAt(2)]<<6:0)|(N>3?O[R.charAt(3)]:0),q=[f(z>>>16),f(z>>>8&255),f(z&255)];return q.length-=[0,0,2,1][F],q.join("")},g=C.atob&&typeof C.atob=="function"?function(R){return C.atob(R)}:function(R){return R.replace(/\S{1,4}/g,b)},m=function(R){return g(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},_=function(R){return y(g(R))},x=function(R){return String(R).replace(/[-_]/g,function(N){return N=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(R){return _(x(R))},E;C.Uint8Array&&(E=function(R){return Uint8Array.from(m(x(R)),function(N){return N.charCodeAt(0)})});var S=function(){var R=C.Base64;return C.Base64=D,R};if(C.Base64={VERSION:T,atob:m,btoa:o,fromBase64:h,toBase64:a,utob:s,encode:a,encodeURI:i,btou:y,decode:h,noConflict:S,fromUint8Array:t,toUint8Array:E},typeof Object.defineProperty=="function"){var w=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};C.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",w(function(){return h(this)})),Object.defineProperty(String.prototype,"toBase64",w(function(R){return a(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",w(function(){return a(this,!0)}))}}return C.Meteor&&(Base64=C.Base64),nt.exports?nt.exports.Base64=C.Base64:!(ie=[],W=function(){return C.Base64}.apply(Xe,ie),W!==void 0&&(nt.exports=W)),{Base64:C.Base64}})}).call(this,V("IyRk"))},JOrW:function(nt,Xe,V){nt.exports=V.p+"static/gf.09d89ab3.svg"},LdHM:function(nt,Xe,V){"use strict";V.d(Xe,"b",function(){return d}),V.d(Xe,"a",function(){return y});var ce=V("1OyB"),ie=V("vuIU"),W=V("Ji7U"),C=V("LK+K"),D=V("cDcd"),T=V("rePB"),A=V("Ff2n"),O=V("ODXe"),f=V("4IlW"),p=V("bX4T"),c=V("YrtM"),s=V("TSYQ"),n=V.n(s),o=V("+nKL"),r=V("8OUc"),l=function(G,J){var K=G.prefixCls,Z=G.id,le=G.flattenOptions,de=G.childrenAsData,Te=G.values,we=G.searchValue,Ie=G.multiple,_e=G.defaultActiveFirstOption,ye=G.height,Ke=G.itemHeight,Me=G.notFoundContent,Fe=G.open,Ge=G.menuItemSelectedIcon,Ee=G.virtual,me=G.onSelect,We=G.onToggleOpen,He=G.onActiveValue,it=G.onScroll,re=G.onMouseEnter,P="".concat(K,"-item"),j=Object(c.a)(function(){return le},[Fe,le],function(Ye,je){return je[0]&&Ye[1]!==je[1]}),ee=D.useRef(null),$=function(je){je.preventDefault()},Q=function(je){ee.current&&ee.current.scrollTo({index:je})},xe=function(je){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ke=j.length,be=0;be1&&arguments[1]!==void 0?arguments[1]:!1;return Object(g.a)(M).map(function(J,K){if(!D.isValidElement(J)||!J.type)return null;var Z=J.type.isSelectOptGroup,le=J.key,de=J.props,Te=de.children,we=Object(A.a)(de,["children"]);return G||!Z?m(J):Object(b.a)(Object(b.a)({key:"__RC_SELECT_GRP__".concat(le===null?K:le,"__"),label:le},we),{},{options:_(Te)})}).filter(function(J){return J})}var x=V("2Qr1"),h=V("qNPg"),E=V("U8pU"),S=V("Kwbf"),w=V("WKfj");function R(M){var G=M.mode,J=M.options,K=M.children,Z=M.backfill,le=M.allowClear,de=M.placeholder,Te=M.getInputElement,we=M.showSearch,Ie=M.onSearch,_e=M.defaultOpen,ye=M.autoFocus,Ke=M.labelInValue,Me=M.value,Fe=M.inputValue,Ge=M.optionLabelProp,Ee=G==="multiple"||G==="tags",me=we!==void 0?we:Ee||G==="combobox",We=J||_(K);if(Object(S.a)(G!=="tags"||We.every(function(P){return!P.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var He=We.some(function(P){return P.options?P.options.some(function(j){return typeof("value"in j?j.value:j.key)=="number"}):typeof("value"in P?P.value:P.key)=="number"});Object(S.a)(!He,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(S.a)(G!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(S.a)(G==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(S.a)(G==="combobox"||!Te,"`getInputElement` only work with `combobox` mode."),Object(S.b)(G!=="combobox"||!Te||!le||!de,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ie&&!me&&G!=="combobox"&&G!=="tags"&&Object(S.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(S.b)(!_e||ye,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Me!=null){var it=Object(w.d)(Me);Object(S.a)(!Ke||it.every(function(P){return Object(E.a)(P)==="object"&&("key"in P||"value"in P)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(S.a)(!Ee||Array.isArray(Me),"`value` should be array when `mode` is `multiple` or `tags`")}if(K){var re=null;Object(g.a)(K).some(function(P){if(!D.isValidElement(P)||!P.type)return!1;var j=P.type;if(j.isSelectOption)return!1;if(j.isSelectOptGroup){var ee=Object(g.a)(P.props.children).every(function($){return!D.isValidElement($)||!P.type||$.type.isSelectOption?!0:(re=$.type,!1)});return!ee}return re=j,!0}),re&&Object(S.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(S.a)(Fe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=R,F=Object(h.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:_,flattenOptions:x.d,getLabeledValue:x.e,filterOptions:x.b,isValueDisabled:x.g,findValueOption:x.c,warningProps:N,fillOptionsWithMissingValue:x.a}),z=function(M){Object(W.a)(J,M);var G=Object(C.a)(J);function J(){var K;return Object(ce.a)(this,J),K=G.apply(this,arguments),K.selectRef=D.createRef(),K.focus=function(){K.selectRef.current.focus()},K.blur=function(){K.selectRef.current.blur()},K}return Object(ie.a)(J,[{key:"render",value:function(){return D.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),J}(D.Component);z.Option=d,z.OptGroup=y;var q=z,B=Xe.c=q},M8RZ:function(nt,Xe,V){"use strict";V.d(Xe,"a",function(){return f});var ce=V("fWQN"),ie=V("mtLc"),W=V("yKVA"),C=V("879j"),D=V("cDcd"),T=V.n(D),A=V("faye"),O=V.n(A),f=function(p){Object(W.a)(s,p);var c=Object(C.a)(s);function s(n){var o;Object(ce.a)(this,s),o=c.call(this,n);var r=window.document;return o.node=r.createElement("div"),r.body.appendChild(o.node),o}return Object(ie.a)(s,[{key:"render",value:function(){var o=this.props.children;return Object(A.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),s}(T.a.Component)},MFOe:function(nt,Xe,V){(function(ce){var ie=T(),W=A(),C=O(),D=typeof window!="undefined"?window:ce;nt.exports={assign:ie,create:W,trim:C,bind:f,slice:p,each:c,map:s,pluck:n,isList:o,isFunction:r,isObject:l,Global:D};function T(){return Object.assign?Object.assign:function(i,t,d,v){for(var y=1;y =0;l-=1){var a=O.get(l)||new Set;a.forEach(function(i){var t=i.parent,d=i.node;if(p(d)||!i.parent||r.has(i.parent.key))return;if(p(i.parent.node)){r.add(t.key);return}var v=!0,y=!1;(t.children||[]).filter(function(b){return!p(b.node)}).forEach(function(b){var g=b.key,m=c.has(g);v&&!m&&(v=!1),!y&&(m||s.has(g))&&(y=!0)}),v&&c.add(t.key),y&&s.add(t.key),r.add(t.key)})}return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(ie(s,c))}}function D(A,O,f,p,c){for(var s=new Set(A),n=new Set(O),o=0;o<=p;o+=1){var r=f.get(o)||new Set;r.forEach(function(t){var d=t.key,v=t.node,y=t.children,b=y===void 0?[]:y;!s.has(d)&&!n.has(d)&&!c(v)&&b.filter(function(g){return!c(g.node)}).forEach(function(g){s.delete(g.key)})})}n=new Set;for(var l=new Set,a=p;a>=0;a-=1){var i=f.get(a)||new Set;i.forEach(function(t){var d=t.parent,v=t.node;if(c(v)||!t.parent||l.has(t.parent.key))return;if(c(t.parent.node)){l.add(d.key);return}var y=!0,b=!1;(d.children||[]).filter(function(g){return!c(g.node)}).forEach(function(g){var m=g.key,_=s.has(m);y&&!_&&(y=!1),!b&&(_||n.has(m))&&(b=!0)}),y||s.delete(d.key),b&&n.add(d.key),l.add(d.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(ie(n,s))}}function T(A,O,f,p){var c=[],s;p?s=p:s=W;var n=new Set(A.filter(function(a){var i=!!f[a];return i||c.push(a),i})),o=new Map,r=0;Object.keys(f).forEach(function(a){var i=f[a],t=i.level,d=o.get(t);d||(d=new Set,o.set(t,d)),d.add(i),r=Math.max(r,t)}),Object(ce.a)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(a){return"'".concat(a,"'")}).join(", ")));var l;return O===!0?l=C(n,o,r,s):l=D(n,O.halfCheckedKeys,o,r,s),l}},OLES:function(nt,Xe,V){"use strict";var ce=V("U8pU"),ie=V("VTBJ"),W=V("Ff2n"),C=V("cDcd"),D=V("uciX"),T=V("7ixt"),A=function(n){var o=n.overlay,r=n.prefixCls,l=n.id,a=n.overlayInnerStyle;return C.createElement("div",{className:"".concat(r,"-inner"),id:l,role:"tooltip",style:a},typeof o=="function"?o():o)},O=A,f=function(n,o){var r=n.overlayClassName,l=n.trigger,a=l===void 0?["hover"]:l,i=n.mouseEnterDelay,t=i===void 0?0:i,d=n.mouseLeaveDelay,v=d===void 0?.1:d,y=n.overlayStyle,b=n.prefixCls,g=b===void 0?"rc-tooltip":b,m=n.children,_=n.onVisibleChange,x=n.afterVisibleChange,h=n.transitionName,E=n.animation,S=n.placement,w=S===void 0?"right":S,R=n.align,N=R===void 0?{}:R,F=n.destroyTooltipOnHide,z=F===void 0?!1:F,q=n.defaultVisible,B=n.getTooltipContainer,M=n.overlayInnerStyle,G=Object(W.a)(n,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),J=Object(C.useRef)(null);Object(C.useImperativeHandle)(o,function(){return J.current});var K=Object(ie.a)({},G);"visible"in n&&(K.popupVisible=n.visible);var Z=function(){var Ie=n.arrowContent,_e=Ie===void 0?null:Ie,ye=n.overlay,Ke=n.id;return[C.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},_e),C.createElement(O,{key:"content",prefixCls:g,id:Ke,overlay:ye,overlayInnerStyle:M})]},le=!1,de=!1;if(typeof z=="boolean")le=z;else if(z&&Object(ce.a)(z)==="object"){var Te=z.keepParent;le=Te===!0,de=Te===!1}return C.createElement(D.a,Object.assign({popupClassName:r,prefixCls:g,popup:Z,action:a,builtinPlacements:T.a,popupPlacement:w,ref:J,popupAlign:N,getPopupContainer:B,onPopupVisibleChange:_,afterPopupVisibleChange:x,popupTransitionName:h,popupAnimation:E,defaultPopupVisible:q,destroyPopupOnHide:le,autoDestroy:de,mouseLeaveDelay:v,popupStyle:y,mouseEnterDelay:t},K),m)},p=Object(C.forwardRef)(f),c=Xe.a=p},OZM5:function(nt,Xe,V){"use strict";V.d(Xe,"b",function(){return p}),V.d(Xe,"a",function(){return c}),V.d(Xe,"k",function(){return s}),V.d(Xe,"h",function(){return n}),V.d(Xe,"i",function(){return o}),V.d(Xe,"g",function(){return r}),V.d(Xe,"c",function(){return l}),V.d(Xe,"d",function(){return a}),V.d(Xe,"j",function(){return d}),V.d(Xe,"e",function(){return v}),V.d(Xe,"f",function(){return y});var ce=V("KQm4"),ie=V("U8pU"),W=V("Ff2n"),C=V("cDcd"),D=V.n(C),T=V("Kwbf"),A=V("WaYH"),O=.25,f=2;function p(b,g){var m=b.slice(),_=m.indexOf(g);return _>=0&&m.splice(_,1),m}function c(b,g){var m=b.slice();return m.indexOf(g)===-1&&m.push(g),m}function s(b){return b.split("-")}function n(b,g){return"".concat(b,"-").concat(g)}function o(b){return b&&b.type&&b.type.isTreeNode}function r(b,g){var m=[b],_=g[b];function x(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(E){var S=E.key,w=E.children;m.push(S),x(w)})}return x(_.children),m}function l(b,g){var m=b.clientY,_=g.selectHandle.getBoundingClientRect(),x=_.top,h=_.bottom,E=_.height,S=Math.max(E*O,f);return m<=x+S?-1:m>=h-S?1:0}function a(b,g){if(!b)return;var m=g.multiple;return m?b.slice():b.length?[b[0]]:b}var i=function(g){return g};function t(b,g){if(!b)return[];var m=g||{},_=m.processProps,x=_===void 0?i:_,h=Array.isArray(b)?b:[b];return h.map(function(E){var S=E.children,w=Object(W.a)(E,["children"]),R=t(S,g);return D.a.createElement(A.a,Object.assign({},x(w)),R)})}function d(b){if(!b)return null;var g;if(Array.isArray(b))g={checkedKeys:b,halfCheckedKeys:void 0};else if(Object(ie.a)(b)==="object")g={checkedKeys:b.checked||void 0,halfCheckedKeys:b.halfChecked||void 0};else return Object(T.a)(!1,"`checkedKeys` is not an array or an object"),null;return g}function v(b,g){var m=new Set;function _(x){if(m.has(x))return;var h=g[x];if(!h)return;m.add(x);var E=h.parent,S=h.node;if(S.disabled)return;E&&_(E.key)}return(b||[]).forEach(function(x){_(x)}),Object(ce.a)(m)}function y(b){var g={};return Object.keys(b).forEach(function(m){(m.startsWith("data-")||m.startsWith("aria-"))&&(g[m]=b[m])}),g}},"OkW/":function(nt,Xe,V){},Ot1p:function(nt,Xe,V){"use strict";var ce=V("2qtc"),ie=V("kLXV"),W=V("rAM+"),C=V("miYZ"),D=V("tsqr"),T=V("9og8"),A=V("tJVT"),O=V("jrin"),f=V("WmNS"),p=V.n(f),c=V("cDcd"),s=V.n(c),n=V("VrN/"),o=V.n(n),r=V("bdgK"),l=V("p77/"),a=V("Bd2K"),i=V("ELLl"),t=V("19Vz"),d=V("lZu9"),v=V("+NIl"),y=V("kSUc"),b=V("9Bee"),g=function(Ve){var at=Ve.value,_t=at===void 0?"":at,kt=Ve.className,Bt=Ve.showTextOnly,jt=Ve.showLines,At=Ve.style,pt=At===void 0?{}:At,gt=Object(c.useMemo)(function(){return""},[_t]);return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{dangerouslySetInnerHTML:{__html:gt}}))},m=V("0Owb"),_=V("dejd"),x=V("C+DQ"),h=V("1vsH"),E=V("m3rI"),S=[{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 w(Ve){var at=Ve.onActionCallback,_t=Ve.title,kt=Ve.icon,Bt=Ve.actionName,jt=Ve.className,At=jt===void 0?"":jt,pt=Ve.children;function gt(){at(Bt)}return s.a.createElement("a",{title:_t,className:At,onClick:gt},s.a.createElement("i",{className:"md-iconfont ".concat(kt)}),pt)}var R=function(Ve){var at=Ve.watch,_t=Ve.showNullButton,kt=Ve.onActionCallback,Bt=Ve.fullScreen,jt=Ve.insertTemp,At=Ve.hidetoolBar,pt=Ve.uuid,gt=Ve.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(h.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(h.G)("_educoder_session"),"&key=").concat(pt,"&api=").concat(encodeURIComponent(E.a.PROXY_SERVER)));var rt=[].concat(S,[{title:"".concat(at?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(at?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return s.a.createElement("ul",{className:"markdown-toolbar-container"},!At&&rt.map(function(Oe,ze){return s.a.createElement("li",{key:ze},Oe.actionName?s.a.createElement(w,Object(m.a)({},Oe,{onActionCallback:kt})):s.a.createElement("span",{className:"v-line"}))}),_t?s.a.createElement("li",null,s.a.createElement(w,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kt},s.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,jt&&s.a.createElement("li",null,s.a.createElement(w,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(jt),onActionCallback:kt},s.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),s.a.createElement("li",{className:"btn-full-screen"},s.a.createElement(w,{icon:"".concat(Bt?"icon-shrink":"icon-enlarge"),title:Bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kt})))},N=V("M8RZ"),F=V("+L6B"),z=V("2/Rp"),q=V("y8nQ"),B=V("Vl3Y"),M=V("5NDa"),G=V("5rEg"),J={labelCol:{span:4},wrapperCol:{span:20}},K=function(Ve){var at=Ve.callback,_t=Ve.onCancel;function kt(Bt){at(Bt)}return s.a.createElement(B.a,Object(m.a)({},J,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:kt}),s.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},s.a.createElement(G.a,null)),s.a.createElement(B.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},s.a.createElement(G.a,null)),s.a.createElement("div",{className:"flex-container flex-end"},s.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),s.a.createElement(z.a,{type:"ghost",onClick:_t},"\u53D6\u6D88")))},Z=V("7ahc"),le=V("HmJG"),de=V("BjJ7"),Te=B.a.useForm,we={width:280,marginRight:10},Ie={labelCol:{span:5},wrapperCol:{span:19}},_e=function(Ve){var at=Ve.callback,_t=Ve.onCancel,kt=Te(),Bt=Object(A.a)(kt,1),jt=Bt[0];function At(rt){at(rt)}function pt(rt,Oe){if(rt.status===-1){D.b.error(rt.message);return}jt.setFieldsValue({src:"/api/attachments/".concat(rt.id),type:Oe.type})}function gt(rt){var Oe=rt.target.files[0];Ke(Oe,pt)}return s.a.createElement(B.a,Object(m.a)({form:jt},Ie,{className:"upload-image-panel",onFinish:At}),s.a.createElement(B.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},s.a.createElement("div",{className:"flex-container"},s.a.createElement(B.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},s.a.createElement(G.a,{style:we})),s.a.createElement(ye,{onFileChange:gt}))),s.a.createElement(B.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},s.a.createElement(G.a,{style:{width:264}})),s.a.createElement(B.a.Item,{style:{textAlign:"right"}},s.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),s.a.createElement(z.a,{type:"ghost",onClick:_t},"\u53D6\u6D88")))};function ye(Ve){var at=Ve.onFileChange;return s.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",s.a.createElement("input",{type:"file",onChange:at}))}function Ke(Ve,at){if(!Ve)throw new String("\u6CA1\u6709\u6587\u4EF6");var _t=new FormData;_t.append("editormd-image-file",Ve),_t.append("file_param_name","editormd-image-file"),_t.append("byxhr","true");var kt=new window.XMLHttpRequest;kt.withCredentials=!0,kt.addEventListener("load",function(Bt){at(JSON.parse(Bt.target.responseText),Ve)},!1),kt.addEventListener("error",function(Bt){console.error(Bt)},!1),kt.open("POST","".concat(de.a,"/api/attachments.json")),kt.send(_t)}var Me=V("giR+"),Fe=V("fyUT"),Ge=V("7Kak"),Ee=V("9yH6"),me=Ee.a.Group,We={margin:"0 8px"},He=function(Ve){var at=Ve.callback,_t=Ve.onCancel;function kt(Bt){at(Bt)}return s.a.createElement(B.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:kt},s.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},s.a.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),s.a.createElement("span",{style:We},"\u884C\u6570"),s.a.createElement(B.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},s.a.createElement(Fe.a,null)),s.a.createElement("span",{style:We},"\u5217\u6570"),s.a.createElement(B.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},s.a.createElement(Fe.a,null))),s.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},s.a.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),s.a.createElement(B.a.Item,{name:"align"},s.a.createElement(me,null,s.a.createElement(Ee.a,{value:"default"},s.a.createElement("i",{className:"fa fa-align-justify"})),s.a.createElement(Ee.a,{value:"left"},s.a.createElement("i",{className:"fa fa-align-left"})),s.a.createElement(Ee.a,{value:"center"},s.a.createElement("i",{className:"fa fa-align-center"})),s.a.createElement(Ee.a,{value:"right"},s.a.createElement("i",{className:"fa fa-align-right"}))))),s.a.createElement("div",{className:"flex-container flex-end"},s.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),s.a.createElement(z.a,{type:"ghost",onClick:_t},"\u53D6\u6D88")))},it=V("ErOA"),re=V("7Cbv"),P="link",j="upload-image",ee="code-block",$="add-table",Q="------------",xe={default:Q,left:":".concat(Q),center:":".concat(Q,":"),right:"".concat(Q,":")},De=V("9VGf"),dt,Ne;function Be(){}var tt=0,lt=1e4,qe="\u2581",Ye=` **\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 je(Ve){return/^\d+$/.test(Ve)?"".concat(Ve,"px"):Ve}var Ue=navigator.platform.toUpperCase().indexOf("MAC")>=0,ke=Ue?"Cmd":"Ctrl",be=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ce=(dt={},Object(O.a)(dt,ke+"-B","bold"),Object(O.a)(dt,ke+"-I","italic"),dt),Pe=(Ne={},Object(O.a)(Ne,P,"\u6DFB\u52A0\u94FE\u63A5"),Object(O.a)(Ne,ee,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(O.a)(Ne,j,"\u6DFB\u52A0\u6587\u4EF6"),Object(O.a)(Ne,$,"\u6DFB\u52A0\u8868\u683C"),Ne),Le=Xe.a=function(Ve){var at=Ve.defaultValue,_t=at===void 0?"":at,kt=Ve.onChange,Bt=Ve.width,jt=Bt===void 0?"100%":Bt,At=Ve.height,pt=At===void 0?400:At,gt=Ve.miniToolbar,rt=gt===void 0?!1:gt,Oe=Ve.isFocus,ze=Oe===void 0?!1:Oe,vt=Ve.watch,st=Ve.insertTemp,It=Ve.mode,Pt=It===void 0?"markdown":It,Ze=Ve.id,mt=Ze===void 0?"markdown-editor-id":Ze,Lt=Ve.showResizeBar,Mt=Lt===void 0?!1:Lt,$t=Ve.noStorage,Re=$t===void 0?!1:$t,ve=Ve.showNullButton,X=ve===void 0?!1:ve,ne=Ve.hidetoolBar,oe=ne===void 0?!1:ne,he=Ve.fullScreen,Ae=he===void 0?!1:he,Qe=Ve.onBlur,ot=Ve.onCMBeforeChange,Rt=Ve.onFullScreen,Nt=Ve.className,ht=Nt===void 0?"":Nt,Dt=Ve.disablePaste,sn=Dt===void 0?!1:Dt,Ct=Ve.placeholder,hn=Ct===void 0?"":Ct,rn=Ve.values,ae=rn===void 0?"":rn,U=Object(c.useState)(null),H=Object(A.a)(U,2),te=H[0],pe=H[1],se=Object(c.useState)(_t),$e=Object(A.a)(se,2),yt=$e[0],Ot=$e[1],Yt=Object(c.useState)(vt),St=Object(A.a)(Yt,2),Wt=St[0],ln=St[1],Bn=Object(c.useState)(Ae),Oi=Object(A.a)(Bn,2),mi=Oi[0],Wn=Oi[1],di=Object(c.useState)(""),hr=Object(A.a)(di,2),vi=hr[0],gi=hr[1],xi=Object(c.useState)(0),Bi=Object(A.a)(xi,2),Ai=Bi[0],sr=Bi[1],Di=Object(c.useState)(pt),fr=Object(A.a)(Di,2),lr=fr[0],Wi=fr[1],Gi=Object(c.useState)(!1),vr=Object(A.a)(Gi,2),Rr=vr[0],ur=vr[1],Hn=Object(c.useRef)(Object(re.a)()),wn=Object(c.useRef)(!1),wi=Object(c.useRef)(),Mn=Object(c.useRef)(),Ri=Object(c.useRef)(),oi=Object(c.useRef)(),Lr=Object(c.useRef)(),Ni=function(){var fn=Object(T.a)(p.a.mark(function Cn(){var mn,Un;return p.a.wrap(function(_i){for(;;)switch(_i.prev=_i.next){case 0:return _i.next=2,Object(it.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Hn.current}});case 2:Un=_i.sent,Un!=null&&(mn=Un.attachments)!==null&&mn!==void 0&&mn.length&&(console.log("cm:",te,Mn),Un.attachments.map(function(nn){nn.content_type.indexOf("image")>-1?te.replaceSelection(".concat(nn.content_type,")")):nn.content_type.indexOf("video")>-1?te.replaceSelection('')):nn.content_type.indexOf("pdf")>-1?te.replaceSelection('').concat(nn.name,"")):te.replaceSelection("[".concat(nn.name,"](").concat(E.a.API_SERVER,"/api/attachments/").concat(nn.id,"?type=").concat(nn.content_type,")"))}));case 4:case"end":return _i.stop()}},Cn)}));return function(){return fn.apply(this,arguments)}}();Object(c.useEffect)(function(){Ot(ae),te==null||te.setValue(ae)},[ae]),Object(c.useEffect)(function(){Rt==null||Rt(mi)},[mi]),Object(c.useEffect)(function(){if(Mn.current){var fn=o.a.fromTextArea(Mn.current,{mode:Pt,lineNumbers:!rt,lineWrapping:!0,value:_t,autoCloseTags:!0,autoCloseBrackets:!0});ze&&fn.focus();function Cn(mn,Un){if(sn){Un.preventDefault();return}var ni=Un.clipboardData;if(ni){var _i=ni.types.toString(),nn=ni.items;if(_i==="Files"||ni.types.indexOf("Files")>-1){if(Un.preventDefault(),Pt=="stex")return;try{var Li,Zi=nn[1];((Li=nn[0])===null||Li===void 0?void 0:Li.kind)==="file"&&(Zi=nn[0]);var zn=Zi.getAsFile(),Dr=zn.name.split(".").pop();Ke(zn,function(hi){if(hi.id){var Vi,ct,xt;(zn==null||((Vi=zn.type)===null||Vi===void 0)?void 0:Vi.indexOf("image"))>-1?fn.replaceSelection(".concat(hi.content_type,")")):(zn==null||((ct=zn.type)===null||ct===void 0)?void 0:ct.indexOf("video"))>-1?fn.replaceSelection('')):(zn==null||((xt=zn.type)===null||xt===void 0)?void 0:xt.indexOf("pdf"))>-1?fn.replaceSelection('').concat(zn.name,"")):be.includes(Dr)?fn.replaceSelection('').concat(zn.name,"")):fn.replaceSelection("[".concat(zn.name,"](").concat(E.a.API_SERVER,"/api/attachments/").concat(hi.id,"?type=").concat(hi.content_type,")"))}else(hi==null?void 0:hi.status)===401&&(document.location.href="/user/login")})}catch(hi){D.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return fn.on("paste",Cn),fn.on("dragleave",function(mn,Un){Ri.current.classList.remove("mouse-hover-md")}),fn.on("dragover",function(mn,Un){Ri.current.classList.add("mouse-hover-md")}),fn.on("drop",function(mn,Un){Ri.current.classList.add("mouse-hover-md");var ni;if(ni=Un.dataTransfer.files,ni.length>0){Un.preventDefault(),Un.stopPropagation();for(var _i=function(Zi){var zn=ni[Zi],Dr=zn.name.split(".").pop();Ke(zn,function(hi){if(hi.id){var Vi,ct,xt;(zn==null||((Vi=zn.type)===null||Vi===void 0)?void 0:Vi.indexOf("image"))>-1?fn.replaceSelection(".concat(hi.content_type,")")):(zn==null||((ct=zn.type)===null||ct===void 0)?void 0:ct.indexOf("video"))>-1?fn.replaceSelection('')):(zn==null||((xt=zn.type)===null||xt===void 0)?void 0:xt.indexOf("pdf"))>-1?fn.replaceSelection('').concat(zn.name,"")):be.includes(Dr)?fn.replaceSelection('').concat(zn.name,"")):fn.replaceSelection("[".concat(zn.name,"](").concat(E.a.API_SERVER,"/api/attachments/").concat(hi.id,"?type=").concat(hi.content_type,")"))}else(hi==null?void 0:hi.status)===401&&(document.location.href="/user/login")})},nn=0;nn 0||nn.target.offsetWidth>0)&&(Qi(),te.setSize("100%","100%"),te.refresh())}}catch(Li){ni.e(Li)}finally{ni.f()}});return mn.observe(Mn.current.parentElement),mn}if(te){var Cn=fn();return function(){Cn.unobserve(Mn.current.parentElement)}}},[te,Qi]),Object(c.useEffect)(function(){if(te){for(var fn=[],Cn=function(){var nn=Un[mn];ni=Object(A.a)(nn,2);var Li=ni[0],Zi=ni[1],zn=Object(O.a)({},Li,function(){Br(Zi)});fn.push(zn),te.addKeyMap(zn)},mn=0,Un=Object.entries(Ce);mn 0){var fn=new Date().getTime(),Cn=window.sessionStorage.getItem(mt);fn>=Ai+lt&&(!Cn||Cn!==yt)&&(window.sessionStorage.setItem(mt,yt),ur(!0))}},lt),Object(c.useEffect)(function(){ln(vt)},[te,vt]),Object(c.useEffect)(function(){te&&(ze&&te.focus())},[te,ze]),Object(c.useEffect)(function(){if(Wt&&te){var fn=te.getScrollerElement();function Cn(mn){var Un=mn.target;if(Lr.current){var ni=Un.scrollTop/Un.scrollHeight;Lr.current.scrollTop=Lr.current.scrollHeight*ni}}return fn.addEventListener("scroll",Cn),function(){fn.removeEventListener("scroll",Cn)}}},[te,Wt]),Object(c.useEffect)(function(){if(te&&ot){function fn(Cn,mn){ot(Cn,mn)}return te.on("beforeChange",fn),function(){te.off("beforeChange",fn)}}},[te,ot]),Object(c.useEffect)(function(){if(te&&Qe){function fn(){Qe(te.getValue())}return te.on("blur",fn),function(){te.off("blur",fn)}}},[te,Qe]),Object(c.useEffect)(function(){if(te){function fn(Cn){var mn=Cn.getValue();Ot(mn),sr(new Date().getTime()),Cn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),kt&&kt(mn)}return te.on("change",fn),function(){te.off("change",fn)}}},[te,kt]),Object(c.useEffect)(function(){te&&(_t==null?(te.setValue(""),Ot("")):_t!==te.getValue()&&(te.setValue(_t),Ot(_t),te.setCursor(te.lineCount(),0)))},[te,_t]);var Br=Object(c.useCallback)(function(fn){var Cn=te.getCursor(),mn=te.getSelection(),Un=mn.split(` `);switch(fn){case"bold":return te.replaceSelection("**"+mn+"**"),mn===""&&te.setCursor(Cn.line,Cn.ch+2),te.focus();case"italic":return te.replaceSelection("*"+mn+"*"),mn===""&&te.setCursor(Cn.line,Cn.ch+1),te.focus();case"code":return te.replaceSelection("`"+mn+"`"),mn===""&&te.setCursor(Cn.line,Cn.ch+1),te.focus();case"inline-latex":return te.replaceSelection("`$$"+mn+"$$`"),mn===""&&te.setCursor(Cn.line,Cn.ch+3),te.focus();case"latex":return te.replaceSelection("```latex\n"+mn+"\n```"),te.setCursor(Cn.line+1,mn.length+1),te.focus();case"line-break":return te.replaceSelection(`
`),te.focus();case"list-ul":return mn===""?te.replaceSelection("- "+mn):te.replaceSelection(Un.map(function(ni){return ni===""?"":"- ".concat(ni)}).join(` `)),te.focus();case"list-ol":return mn===""?te.replaceSelection("1. "+mn):te.replaceSelection(Un.map(function(ni,_i){return ni===""?"":"".concat(_i+1,". ").concat(ni)}).join(` `)),te.focus();case"add-null-ch":return mn===""&&te.setCursor(Cn.line,Cn.ch+1),te.replaceSelection(qe),te.focus();case"inster-template-1":return mn===""&&te.setCursor(Cn.line,Cn.ch),te.replaceSelection(Ye),te.focus();case"eraser":return te.setValue(""),te.focus();case"trigger-watch":return ln(!Wt),te.focus();case"trigger-full-screen":return Wn(!mi),te.focus();case P:gi(P);return;case ee:gi(ee);return;case j:gi(j);return;case $:gi($);return;default:throw new Error}},[te,Wt,mi]),qi=Object(c.useCallback)(function(fn){gi("");switch(vi){case P:var Cn=fn.title,mn=fn.link;return te.replaceSelection("[".concat(Cn,"](").concat(mn,")")),te.focus();case ee:var Un=fn.language,ni=fn.content;return te.replaceSelection(["```"+Un,ni,"```"].join(` `)),te.focus();case j:var _i=fn.src,nn=fn.alt;return nn?te.replaceSelection(".concat(_i,' "').concat(nn,'" )')):te.replaceSelection("")),te.focus();case $:for(var Li=fn.row,Zi=fn.col,zn=fn.align,Dr=` `,hi=0;hi300&&(Li=300);var Zi=pt+Li+"px";Wi(Zi)}}return fn.addEventListener("mousedown",Un),document.addEventListener("mousemove",_i),document.addEventListener("mouseup",ni),function(){fn.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",_i),document.removeEventListener("mouseup",ni)}}},[te,oi]),Object(c.useEffect)(function(){Wi(pt)},[pt]);var Ir=je(jt),Jr=je(lr),xr={width:Ir,height:Jr},Qr=Object(c.useMemo)(function(){if(Ai){var fn=new Date(Ai),Cn=fn.getHours(),mn=fn.getMinutes(),Un=fn.getSeconds();return Cn=Cn<10?"0"+Cn:Cn,mn=mn<10?"0"+mn:mn,Un=Un<10?"0"+Un:Un,"".concat(Cn,":").concat(mn,":").concat(Un)}return 0},[Ai]);function qr(){window.sessionStorage.removeItem(mt),ur(!1),sr(0)}function _r(){ur(!1),sr(0),te.setValue(window.sessionStorage.getItem(mt))}function ea(fn,Cn){var mn=te.getValue();mn=mn.replace(fn,Cn),Ot(mn),te==null||te.setValue(mn)}return s.a.createElement(c.Fragment,null,s.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ri},s.a.createElement("div",{className:"markdown-editor-container ".concat(ht," ").concat(Wt?"on-preview":""," ").concat(rt?"mini":""," ").concat(mi?"full-screen":""),style:xr},s.a.createElement(R,{insertTemp:st,watch:Wt,fullScreen:mi,showNullButton:X,onActionCallback:Br,hidetoolBar:oe,uuid:Hn.current,setOpenPhones:function(){wn.current=!0}}),s.a.createElement("div",{className:"markdown-editor-body"},s.a.createElement("div",{className:"codemirror-container"},s.a.createElement("textarea",{ref:Mn,placeholder:hn})),Wt?s.a.createElement("div",{ref:Lr,className:"preview-container"},Pt==="stex"&&s.a.createElement(g,{value:yt}),Pt!=="stex"&&s.a.createElement(b.a,{edit:!0,value:yt,replaces:ea})):null))),Mt?s.a.createElement("a",{ref:oi,className:"editor-resize"}):null,s.a.createElement(N.a,null,Pe[vi]?s.a.createElement(ie.a,{centered:!0,title:Pe[vi],visible:!0,onCancel:Nr,footer:null,className:"markdown-popup-form"},Kr):null))}},P5Jw:function(nt,Xe,V){"use strict";var ce=V("rHrb"),ie=ce.CopyToClipboard;ie.CopyToClipboard=ie,nt.exports=ie},PD8m:function(nt,Xe){nt.exports={name:"memoryStorage",read:ce,write:ie,each:W,remove:C,clearAll:D};var V={};function ce(T){return V[T]}function ie(T,A){V[T]=A}function W(T){for(var A in V)V.hasOwnProperty(A)&&T(V[A],A)}function C(T){delete V[T]}function D(T){V={}}},RELg:function(nt,Xe,V){var ce=V("MFOe"),ie=ce.Global;nt.exports={name:"oldIE-userDataStorage",write:A,read:O,each:f,remove:p,clearAll:c};var W="storejs",C=ie.document,D=o(),T=(ie.navigator?ie.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function A(r,l){if(T)return;var a=n(r);D(function(i){i.setAttribute(a,l),i.save(W)})}function O(r){if(T)return;var l=n(r),a=null;return D(function(i){a=i.getAttribute(l)}),a}function f(r){D(function(l){for(var a=l.XMLDocument.documentElement.attributes,i=a.length-1;i>=0;i--){var t=a[i];r(l.getAttribute(t.name),t.name)}})}function p(r){var l=n(r);D(function(a){a.removeAttribute(l),a.save(W)})}function c(){D(function(r){var l=r.XMLDocument.documentElement.attributes;r.load(W);for(var a=l.length-1;a>=0;a--)r.removeAttribute(l[a].name);r.save(W)})}var s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function n(r){return r.replace(/^\d/,"___$&").replace(s,"___")}function o(){if(!C||!C.documentElement||!C.documentElement.addBehavior)return null;var r="script",l,a,i;try{a=new ActiveXObject("htmlfile"),a.open(),a.write("<"+r+">document.w=window"+r+'>'),a.close(),l=a.w.frames[0].document,i=l.createElement("div")}catch(t){i=C.createElement("div"),l=C.body}return function(t){var d=[].slice.call(arguments,0);d.unshift(i),l.appendChild(i),i.addBehavior("#default#userData"),i.load(W),t.apply(this,d),l.removeChild(i);return}}},RpDr:function(nt,Xe,V){"use strict";V.d(Xe,"a",function(){return b}),V.d(Xe,"c",function(){return _});var ce=V("+L6B"),ie=V("2/Rp"),W=V("tJVT"),C=V("k1fw"),D=V("jrin"),T=V("5NDa"),A=V("5rEg"),O=V("cDcd"),f=V.n(O),p=V("8Skl"),c=V("y3Kf"),s=V("bdLU"),n=V("J66h"),o=V.n(n),r=V("++UQ"),l=V.n(r),a=V("IxHN"),i=V("9Bee"),t=V("1vsH"),d,v=A.a.TextArea,y={visible:!1,tabIndex:"0"},b=(d={},Object(D.a)(d,s.a.NOMATCH,"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D"),Object(D.a)(d,s.a.OK,"\u8C03\u8BD5\u901A\u8FC7"),Object(D.a)(d,2,"\u8C03\u8BD5\u8D85\u65F6"),Object(D.a)(d,3,"\u8C03\u8BD5pod\u5931\u8D25"),Object(D.a)(d,4,"\u7F16\u8BD1\u5931\u8D25"),Object(D.a)(d,5,"\u6267\u884C\u5931\u8D25"),d),g;(function(h){h[h.SET_VISIBLE=0]="SET_VISIBLE",h[h.SET_TABINDEX=1]="SET_TABINDEX"})(g||(g={}));function m(h,E){switch(E.type){case g.SET_VISIBLE:return Object(C.a)(Object(C.a)({},h),{},{visible:E.payload});case g.SET_TABINDEX:return Object(C.a)(Object(C.a)({},h),{},{tabIndex:E.payload});default:throw new Error}}function _(h){var E=h.status,S=h.error_msg,w=h.output,R=h.input,N=h.expected_output,F=h.is_file,z=h.input_file_url,q=h.output_file_url,B=h.expected_output_file_url,M=null,G={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(E){case s.a.NOMATCH:M=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!F&&f.a.createElement(i.a,{value:R,style:G}),F&&f.a.createElement("div",{style:G},f.a.createElement("a",{onClick:function(){return Object(t.y)(z,R)}},R)),f.a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!F&&f.a.createElement(i.a,{value:w&&n.Base64.decode(w)||"",style:G}),F&&f.a.createElement("div",{style:G},f.a.createElement("a",{onClick:function(){return Object(t.y)(q,w)}},w)),f.a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!F&&f.a.createElement(i.a,{value:N&&n.Base64.decode(N)||"",style:G}),F&&f.a.createElement("div",{style:G},f.a.createElement("a",{onClick:function(){return Object(t.y)(B,N)}},N)));break;case s.a.EXECUTEFAILURE:M=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!F&&f.a.createElement(i.a,{value:R,style:G}),F&&f.a.createElement("div",{style:G},f.a.createElement("a",{onClick:function(){return Object(t.y)(z,R)}},R)),f.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),f.a.createElement("pre",{className:"error"},n.Base64.decode(S)));break;case s.a.COMPILEFAILURE:M=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!F&&f.a.createElement(i.a,{value:R,style:G}),F&&f.a.createElement("div",{style:G},f.a.createElement("a",{onClick:function(){return Object(t.y)(z,R)}},R)),f.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),f.a.createElement("pre",{className:"error"},n.Base64.decode(S)));break;case s.a.PODFAILURE:M=f.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case s.a.TIMEOUT:M=f.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return f.a.createElement(f.a.Fragment,null," ",M," ")}function x(h){var E=h.status,S=h.error_msg,w=h.execute_time,R=h.output,N=h.input,F=h.expected_output,z=h.is_file,q=h.input_file_url,B=h.output_file_url,M=h.expected_output_file_url,G=null;switch(E){case s.a.OK:G=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",w),f.a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),f.a.createElement("pre",null,n.Base64.decode(R)));break;case s.a.NOMATCH:G=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u8F93\u5165\uFF1A",f.a.createElement("pre",null,N)),f.a.createElement("p",null,"\u8F93\u51FA\uFF1A",R&&n.Base64.decode(R)),f.a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",F&&n.Base64.decode(F)));break;case s.a.EXECUTEFAILURE:G=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",f.a.createElement("pre",null,N)),f.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),f.a.createElement("pre",{className:"error"},n.Base64.decode(S)));break;case s.a.COMPILEFAILURE:G=f.a.createElement(f.a.Fragment,null,f.a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",f.a.createElement("pre",null,N)),f.a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),f.a.createElement("pre",{className:"error"},n.Base64.decode(S)));break;case s.a.PODFAILURE:G=f.a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case s.a.TIMEOUT:G=f.a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return f.a.createElement(f.a.Fragment,null," ",G," ")}Xe.b=function(h){var E=h.id,S=h.input,w=h.debuging,R=h.submitting,N=h.executingMessage,F=h.debugResult,z=h.onChangeInput,q=h.onDebugCode,B=h.onSubmitCode,M=Object(O.useReducer)(m,y),G=Object(W.a)(M,2),J=G[0],K=G[1],Z=J.visible,le=J.tabIndex;Object(O.useEffect)(function(){K({type:g.SET_VISIBLE,payload:!1})},[E]);function de(_e){var ye=_e.target.id;K({type:g.SET_TABINDEX,payload:ye})}function Te(){K({type:g.SET_VISIBLE,payload:!Z})}var we=Object(O.useMemo)(function(){if(F){var _e=F.status;return f.a.createElement(f.a.Fragment,null,x(F))}return null},[F]);function Ie(){K({type:g.SET_VISIBLE,payload:!0}),K({type:g.SET_TABINDEX,payload:"1"}),q()}return f.a.createElement("div",{className:"test-case-panel"},f.a.createElement("div",{className:"test-case-panel-body ".concat(Z?"active":"")},f.a.createElement("ul",{className:"s-navs"},f.a.createElement("li",null,f.a.createElement("a",{className:le==="0"?"active":"",id:"0",onClick:de},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),f.a.createElement("li",null,f.a.createElement("a",{className:le==="1"?"active":"",id:"1",onClick:de},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"))),f.a.createElement("div",{className:"tab-panel-body ".concat(le==="0"?"":"hide")},f.a.createElement(v,{placeholder:"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D",value:S,onChange:z})),f.a.createElement("div",{className:"tab-panel-body ".concat(le==="1"?"":"hide")},w?f.a.createElement(a.a,{message:N}):F?f.a.createElement("section",{style:{height:200}}," ",we," "):f.a.createElement("p",{className:"tip"},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D"))),f.a.createElement("a",{className:"btn-collapse ".concat(Z?"up":""),onClick:Te},Z?f.a.createElement(p.a,null):f.a.createElement(c.a,null)),f.a.createElement("footer",{className:"footer"},f.a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),f.a.createElement("div",{className:"flex-container"},f.a.createElement(ie.a,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),f.a.createElement(ie.a,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),f.a.createElement(ie.a,{className:"btn-green",type:"ghost",loading:w,onClick:Ie},"\u8C03\u8BD5\u4EE3\u7801"),f.a.createElement(ie.a,{type:"primary",loading:R,disabled:R,onClick:function(){K({type:g.SET_VISIBLE,payload:!1}),B()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},"S/kP":function(nt,Xe,V){nt.exports=V.p+"static/time.a3dc82f3.svg"},"SA+Z":function(nt,Xe,V){var ce=V("wTVA"),ie=V("EbDI"),W=V("ZhPi"),C=V("wkBT");function D(T){return ce(T)||ie(T)||W(T)||C()}nt.exports=D,nt.exports.__esModule=!0,nt.exports.default=nt.exports},SJMd:function(nt,Xe){/** * @license * Copyright (C) 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var V,ce,ie,W=!1,C,D;window.PR_SHOULD_USE_CONTINUATION=!0;var T,A;(function(){var O=window,f=["break,continue,do,else,for,if,return,while"],p=[f,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],c=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],s=[c,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],n=[c,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[c,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",l=[c,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],a="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",i=[f,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],t=[f,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],d=[f,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],v=[s,o,n,l,a,i,t,d],y=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b="str",g="kwd",m="com",_="typ",x="lit",h="pun",E="pln",S="tag",w="dec",R="src",N="atn",F="atv",z="nocode",q="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(me){for(var We=0,He=!1,it=!1,re=0,P=me.length;re 122||(be<65||ke>90||tt.push([Math.max(65,ke)|32,Math.min(be,90)|32]),be<97||ke>122||tt.push([Math.max(97,ke)&~32,Math.min(be,122)&~32]))}}tt.sort(function(Ve,at){return Ve[0]-at[0]||at[1]-Ve[1]});for(var Ce=[],Pe=[],Ye=0;Ye
Le[0]&&(Le[1]+1>Le[0]&&qe.push("-"),qe.push(Q(Le[1])))}return qe.push("]"),qe.join("")}function De(Ne){for(var Be=Ne.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),tt=Be.length,lt=[],qe=0,Ye=0;qe=2&&ke==="["?Be[qe]=xe(je):ke!=="\\"&&(Be[qe]=je.replace(/[a-zA-Z]/g,function(Pe){var Le=Pe.charCodeAt(0);return"["+String.fromCharCode(Le&~32,Le|32)+"]"}))}return Be.join("")}for(var dt=[],re=0,P=me.length;re =0;)He[dt.charAt(Ne)]=De;var Be=De[1],tt=""+Be;$.hasOwnProperty(tt)||(ee.push(Be),$[tt]=null)}ee.push(/[\0-\uffff]/),it=B(ee)})();var re=We.length,P=function(j){for(var ee=j.sourceCode,$=j.basePos,Q=j.sourceNode,xe=[$,E],De=0,dt=ee.match(it)||[],Ne={},Be=0,tt=dt.length;Be=5&&qe.substring(0,5)==="lang-",je&&!(Ye&&typeof Ye[1]=="string")&&(je=!1,qe=R),je||(Ne[lt]=qe)}var be=De;if(De+=lt.length,!je)xe.push($+be,qe);else{var Ce=Ye[1],Pe=lt.indexOf(Ce),Le=Pe+Ce.length;Ye[2]&&(Le=lt.length-Ye[2].length,Pe=Le-Ce.length);var Ve=qe.substring(5);G(Q,$+be,lt.substring(0,Pe),P,xe),G(Q,$+be+Pe,Ce,ye(Ve,Ce),xe),G(Q,$+be+Le,lt.substring(Le),P,xe)}}j.decorations=xe};return P}function le(me){var We=[],He=[];me.tripleQuotedStrings?We.push([b,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):me.multiLineStrings?We.push([b,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):We.push([b,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),me.verbatimStrings&&He.push([b,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var it=me.hashComments;it&&(me.cStyleComments?(it>1?We.push([m,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):We.push([m,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),He.push([b,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):We.push([m,/^#[^\r\n]*/,null,"#"])),me.cStyleComments&&(He.push([m,/^\/\/[^\r\n]*/,null]),He.push([m,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var re=me.regexLiterals;if(re){var P=re>1?"":` \r`,j=P?".":"[\\S\\s]",ee="/(?=[^/*"+P+"])(?:[^/\\x5B\\x5C"+P+"]|\\x5C"+j+"|\\x5B(?:[^\\x5C\\x5D"+P+"]|\\x5C"+j+")*(?:\\x5D|$))+/";He.push(["lang-regex",RegExp("^"+q+"("+ee+")")])}var $=me.types;$&&He.push([_,$]);var Q=(""+me.keywords).replace(/^ | $/g,"");Q.length&&He.push([g,new RegExp("^(?:"+Q.replace(/[\s,]+/g,"|")+")\\b"),null]),We.push([E,/^\s+/,null,` \r \xA0`]);var xe="^.[^\\s\\w.$@'\"`/\\\\]*";return me.regexLiterals&&(xe+="(?!s*/)"),He.push([x,/^@[a-z_$][a-z_$@0-9]*/i,null],[_,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[E,/^[a-z_$][a-z_$@0-9]*/i,null],[x,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[E,/^\\[\s\S]?/,null],[h,new RegExp(xe),null]),Z(We,He)}var de=le({keywords:v,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Te(me,We,He){for(var it=/(?:^|\s)nocode(?:\s|$)/,re=/\r\n?|\n/,P=me.ownerDocument,j=P.createElement("li");me.firstChild;)j.appendChild(me.firstChild);var ee=[j];function $(Be){var tt=Be.nodeType;if(tt==1&&!it.test(Be.className))if(Be.nodeName==="br")Q(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var lt=Be.firstChild;lt;lt=lt.nextSibling)$(lt);else if((tt==3||tt==4)&&He){var qe=Be.nodeValue,Ye=qe.match(re);if(Ye){var je=qe.substring(0,Ye.index);Be.nodeValue=je;var Ue=qe.substring(Ye.index+Ye[0].length);if(Ue){var ke=Be.parentNode;ke.insertBefore(P.createTextNode(Ue),Be.nextSibling)}Q(Be),je||Be.parentNode.removeChild(Be)}}}function Q(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function tt(Ye,je){var Ue=je?Ye.cloneNode(!1):Ye,ke=Ye.parentNode;if(ke){var be=tt(ke,1),Ce=Ye.nextSibling;be.appendChild(Ue);for(var Pe=Ce;Pe;Pe=Ce)Ce=Pe.nextSibling,be.appendChild(Pe)}return Ue}for(var lt=tt(Be.nextSibling,0),qe;(qe=lt.parentNode)&&qe.nodeType===1;)lt=qe;ee.push(lt)}for(var xe=0;xe
=ke&&($+=2),P>=be&&(De+=2)}}finally{qe&&(qe.style.display=Ye)}}var Ie={};function _e(me,We){for(var He=We.length;--He>=0;){var it=We[He];Ie.hasOwnProperty(it)?O.console&&console.warn("cannot override language handler %s",it):Ie[it]=me}}function ye(me,We){return me&&Ie.hasOwnProperty(me)||(me=/^\s*]*(?:>|$)/],[m,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[h,/^(?:<[%?]|[%?]>)/],["lang-",/^ ]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^"),n.close(),s=n.F;r--;)delete s.prototype[f[r]];return s()};D.exports=Object.create||function(n,o){var r;return n!==null?(c.prototype=A(n),r=new c,c.prototype=null,r[p]=n):r=s(),o===void 0?r:O(r,o)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(C,D,T){var A=C("./_an-object"),O=C("./_ie8-dom-define"),f=C("./_to-primitive"),p=Object.defineProperty;T.f=C("./_descriptors")?Object.defineProperty:function(c,s,n){if(A(c),s=f(s,!0),A(n),O)try{return p(c,s,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(c[s]=n.value),c}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(C,D,T){var A=C("./_object-dp"),O=C("./_an-object"),f=C("./_object-keys");D.exports=C("./_descriptors")?Object.defineProperties:function(p,c){O(p);for(var s,n=f(c),o=n.length,r=0;o>r;)A.f(p,s=n[r++],c[s]);return p}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(C,D,T){var A=C("./_object-pie"),O=C("./_property-desc"),f=C("./_to-iobject"),p=C("./_to-primitive"),c=C("./_has"),s=C("./_ie8-dom-define"),n=Object.getOwnPropertyDescriptor;T.f=C("./_descriptors")?n:function(o,r){if(o=f(o),r=p(r,!0),s)try{return n(o,r)}catch(l){}if(c(o,r))return O(!A.f.call(o,r),o[r])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(C,D,T){var A=C("./_to-iobject"),O=C("./_object-gopn").f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(s){try{return O(s)}catch(n){return p.slice()}};D.exports.f=function(s){return p&&f.call(s)=="[object Window]"?c(s):O(A(s))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(C,D,T){var A=C("./_object-keys-internal"),O=C("./_enum-bug-keys").concat("length","prototype");T.f=Object.getOwnPropertyNames||function(f){return A(f,O)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(C,D,T){T.f=Object.getOwnPropertySymbols},{}],104:[function(C,D,T){var A=C("./_has"),O=C("./_to-object"),f=C("./_shared-key")("IE_PROTO"),p=Object.prototype;D.exports=Object.getPrototypeOf||function(c){return c=O(c),A(c,f)?c[f]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?p:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(C,D,T){var A=C("./_has"),O=C("./_to-iobject"),f=C("./_array-includes")(!1),p=C("./_shared-key")("IE_PROTO");D.exports=function(c,s){var n,o=O(c),r=0,l=[];for(n in o)n!=p&&A(o,n)&&l.push(n);for(;s.length>r;)A(o,n=s[r++])&&(~f(l,n)||l.push(n));return l}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(C,D,T){var A=C("./_object-keys-internal"),O=C("./_enum-bug-keys");D.exports=Object.keys||function(f){return A(f,O)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(C,D,T){T.f={}.propertyIsEnumerable},{}],108:[function(C,D,T){var A=C("./_export"),O=C("./_core"),f=C("./_fails");D.exports=function(p,c){var s=(O.Object||{})[p]||Object[p],n={};n[p]=c(s),A(A.S+A.F*f(function(){s(1)}),"Object",n)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(C,D,T){D.exports=function(A){try{return{e:!1,v:A()}}catch(O){return{e:!0,v:O}}}},{}],110:[function(C,D,T){var A=C("./_an-object"),O=C("./_is-object"),f=C("./_new-promise-capability");D.exports=function(p,c){if(A(p),O(c)&&c.constructor===p)return c;var s=f.f(p);return(0,s.resolve)(c),s.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(C,D,T){D.exports=function(A,O){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:O}}},{}],112:[function(C,D,T){var A=C("./_hide");D.exports=function(O,f,p){for(var c in f)p&&O[c]?O[c]=f[c]:A(O,c,f[c]);return O}},{"./_hide":78}],113:[function(C,D,T){D.exports=C("./_hide")},{"./_hide":78}],114:[function(C,D,T){"use strict";var A=C("./_global"),O=C("./_core"),f=C("./_object-dp"),p=C("./_descriptors"),c=C("./_wks")("species");D.exports=function(s){var n=typeof O[s]=="function"?O[s]:A[s];p&&n&&!n[c]&&f.f(n,c,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(C,D,T){var A=C("./_object-dp").f,O=C("./_has"),f=C("./_wks")("toStringTag");D.exports=function(p,c,s){p&&!O(p=s?p:p.prototype,f)&&A(p,f,{configurable:!0,value:c})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(C,D,T){var A=C("./_shared")("keys"),O=C("./_uid");D.exports=function(f){return A[f]||(A[f]=O(f))}},{"./_shared":117,"./_uid":127}],117:[function(C,D,T){var A=C("./_core"),O=C("./_global"),f=O["__core-js_shared__"]||(O["__core-js_shared__"]={});(D.exports=function(p,c){return f[p]||(f[p]=c!==void 0?c:{})})("versions",[]).push({version:A.version,mode:C("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(C,D,T){var A=C("./_an-object"),O=C("./_a-function"),f=C("./_wks")("species");D.exports=function(p,c){var s,n=A(p).constructor;return n===void 0||(s=A(n)[f])==null?c:O(s)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(C,D,T){var A=C("./_to-integer"),O=C("./_defined");D.exports=function(f){return function(p,c){var s,n,o=String(O(p)),r=A(c),l=o.length;return r<0||r>=l?f?"":void 0:(s=o.charCodeAt(r),s<55296||s>56319||r+1===l||(n=o.charCodeAt(r+1))<56320||n>57343?f?o.charAt(r):s:f?o.slice(r,r+2):n-56320+(s-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(C,D,T){var A,O,f,p=C("./_ctx"),c=C("./_invoke"),s=C("./_html"),n=C("./_dom-create"),o=C("./_global"),r=o.process,l=o.setImmediate,a=o.clearImmediate,i=o.MessageChannel,t=o.Dispatch,d=0,v={},y=function(){var g=+this;if(v.hasOwnProperty(g)){var m=v[g];delete v[g],m()}},b=function(g){y.call(g.data)};l&&a||(l=function(g){for(var m=[],_=1;arguments.length>_;)m.push(arguments[_++]);return v[++d]=function(){c(typeof g=="function"?g:Function(g),m)},A(d),d},a=function(g){delete v[g]},C("./_cof")(r)=="process"?A=function(g){r.nextTick(p(y,g,1))}:t&&t.now?A=function(g){t.now(p(y,g,1))}:i?(O=new i,f=O.port2,O.port1.onmessage=b,A=p(f.postMessage,f,1)):o.addEventListener&&typeof postMessage=="function"&&!o.importScripts?(A=function(g){o.postMessage(g+"","*")},o.addEventListener("message",b,!1)):A="onreadystatechange"in n("script")?function(g){s.appendChild(n("script")).onreadystatechange=function(){s.removeChild(this),y.call(g)}}:function(g){setTimeout(p(y,g,1),0)}),D.exports={set:l,clear:a}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(C,D,T){var A=C("./_to-integer"),O=Math.max,f=Math.min;D.exports=function(p,c){return p=A(p),p<0?O(p+c,0):f(p,c)}},{"./_to-integer":122}],122:[function(C,D,T){var A=Math.ceil,O=Math.floor;D.exports=function(f){return isNaN(f=+f)?0:(f>0?O:A)(f)}},{}],123:[function(C,D,T){var A=C("./_iobject"),O=C("./_defined");D.exports=function(f){return A(O(f))}},{"./_defined":68,"./_iobject":82}],124:[function(C,D,T){var A=C("./_to-integer"),O=Math.min;D.exports=function(f){return f>0?O(A(f),9007199254740991):0}},{"./_to-integer":122}],125:[function(C,D,T){var A=C("./_defined");D.exports=function(O){return Object(A(O))}},{"./_defined":68}],126:[function(C,D,T){var A=C("./_is-object");D.exports=function(O,f){if(!A(O))return O;var p,c;if(f&&typeof(p=O.toString)=="function"&&!A(c=p.call(O)))return c;if(typeof(p=O.valueOf)=="function"&&!A(c=p.call(O)))return c;if(!f&&typeof(p=O.toString)=="function"&&!A(c=p.call(O)))return c;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(C,D,T){var A=0,O=Math.random();D.exports=function(f){return"Symbol(".concat(f===void 0?"":f,")_",(++A+O).toString(36))}},{}],128:[function(C,D,T){var A=C("./_global"),O=A.navigator;D.exports=O&&O.userAgent||""},{"./_global":76}],129:[function(C,D,T){var A=C("./_global"),O=C("./_core"),f=C("./_library"),p=C("./_wks-ext"),c=C("./_object-dp").f;D.exports=function(s){var n=O.Symbol||(O.Symbol=f?{}:A.Symbol||{});s.charAt(0)=="_"||s in n||c(n,s,{value:p.f(s)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(C,D,T){T.f=C("./_wks")},{"./_wks":131}],131:[function(C,D,T){var A=C("./_shared")("wks"),O=C("./_uid"),f=C("./_global").Symbol,p=typeof f=="function";(D.exports=function(c){return A[c]||(A[c]=p&&f[c]||(p?f:O)("Symbol."+c))}).store=A},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(C,D,T){var A=C("./_classof"),O=C("./_wks")("iterator"),f=C("./_iterators");D.exports=C("./_core").getIteratorMethod=function(p){if(p!=null)return p[O]||p["@@iterator"]||f[A(p)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(C,D,T){"use strict";var A=C("./_ctx"),O=C("./_export"),f=C("./_to-object"),p=C("./_iter-call"),c=C("./_is-array-iter"),s=C("./_to-length"),n=C("./_create-property"),o=C("./core.get-iterator-method");O(O.S+O.F*!C("./_iter-detect")(function(r){Array.from(r)}),"Array",{from:function(r){var l,a,i,t,d=f(r),v=typeof this=="function"?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,g=b!==void 0,m=0,_=o(d);if(g&&(b=A(b,y>2?arguments[2]:void 0,2)),_==null||v==Array&&c(_))for(l=s(d.length),a=new v(l);l>m;m++)n(a,m,g?b(d[m],m):d[m]);else for(t=_.call(d),a=new v;!(i=t.next()).done;m++)n(a,m,g?p(t,b,[i.value,m],!0):i.value);return a.length=m,a}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(C,D,T){"use strict";var A=C("./_add-to-unscopables"),O=C("./_iter-step"),f=C("./_iterators"),p=C("./_to-iobject");D.exports=C("./_iter-define")(Array,"Array",function(c,s){this._t=p(c),this._i=0,this._k=s},function(){var c=this._t,s=this._k,n=this._i++;return!c||n>=c.length?(this._t=void 0,O(1)):s=="keys"?O(0,n):s=="values"?O(0,c[n]):O(0,[n,c[n]])},"values"),f.Arguments=f.Array,A("keys"),A("values"),A("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(C,D,T){"use strict";var A=C("./_is-object"),O=C("./_object-gpo"),f=C("./_wks")("hasInstance"),p=Function.prototype;f in p||C("./_object-dp").f(p,f,{value:function(c){if(typeof this!="function"||!A(c))return!1;if(!A(this.prototype))return c instanceof this;for(;c=O(c);)if(this.prototype===c)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(C,D,T){var A=C("./_export");A(A.S+A.F,"Object",{assign:C("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(C,D,T){var A=C("./_export");A(A.S,"Object",{create:C("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(C,D,T){var A=C("./_export");A(A.S+A.F*!C("./_descriptors"),"Object",{defineProperty:C("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(C,D,T){C("./_object-sap")("getOwnPropertyNames",function(){return C("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(C,D,T){var A=C("./_to-object"),O=C("./_object-gpo");C("./_object-sap")("getPrototypeOf",function(){return function(f){return O(A(f))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(C,D,T){var A=C("./_to-object"),O=C("./_object-keys");C("./_object-sap")("keys",function(){return function(f){return O(A(f))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(C,D,T){arguments[4][36][0].apply(T,arguments)},{dup:36}],143:[function(C,D,T){"use strict";var A,O,f,p,c=C("./_library"),s=C("./_global"),n=C("./_ctx"),o=C("./_classof"),r=C("./_export"),l=C("./_is-object"),a=C("./_a-function"),i=C("./_an-instance"),t=C("./_for-of"),d=C("./_species-constructor"),v=C("./_task").set,y=C("./_microtask")(),b=C("./_new-promise-capability"),g=C("./_perform"),m=C("./_user-agent"),_=C("./_promise-resolve"),x=s.TypeError,h=s.process,E=h&&h.versions,S=E&&E.v8||"",w=s.Promise,R=o(h)=="process",N=function(){},F=O=b.f,z=!!function(){try{var le=w.resolve(1),de=(le.constructor={})[C("./_wks")("species")]=function(Te){Te(N,N)};return(R||typeof PromiseRejectionEvent=="function")&&le.then(N)instanceof de&&S.indexOf("6.6")!==0&&m.indexOf("Chrome/66")===-1}catch(Te){}}(),q=function(le){var de;return!(!l(le)||typeof(de=le.then)!="function")&&de},B=function(le,de){if(!le._n){le._n=!0;var Te=le._c;y(function(){for(var we=le._v,Ie=le._s==1,_e=0;Te.length>_e;)!function(ye){var Ke,Me,Fe,Ge=Ie?ye.ok:ye.fail,Ee=ye.resolve,me=ye.reject,We=ye.domain;try{Ge?(Ie||(le._h==2&&J(le),le._h=1),Ge===!0?Ke=we:(We&&We.enter(),Ke=Ge(we),We&&(We.exit(),Fe=!0)),Ke===ye.promise?me(x("Promise-chain cycle")):(Me=q(Ke))?Me.call(Ke,Ee,me):Ee(Ke)):me(we)}catch(He){We&&!Fe&&We.exit(),me(He)}}(Te[_e++]);le._c=[],le._n=!1,de&&!le._h&&M(le)})}},M=function(le){v.call(s,function(){var de,Te,we,Ie=le._v,_e=G(le);if(_e&&(de=g(function(){R?h.emit("unhandledRejection",Ie,le):(Te=s.onunhandledrejection)?Te({promise:le,reason:Ie}):(we=s.console)&&we.error&&we.error("Unhandled promise rejection",Ie)}),le._h=R||G(le)?2:1),le._a=void 0,_e&&de.e)throw de.v})},G=function(le){return le._h!==1&&(le._a||le._c).length===0},J=function(le){v.call(s,function(){var de;R?h.emit("rejectionHandled",le):(de=s.onrejectionhandled)&&de({promise:le,reason:le._v})})},K=function(le){var de=this;de._d||(de._d=!0,de=de._w||de,de._v=le,de._s=2,de._a||(de._a=de._c.slice()),B(de,!0))},Z=function(le){var de,Te=this;if(!Te._d){Te._d=!0,Te=Te._w||Te;try{if(Te===le)throw x("Promise can't be resolved itself");(de=q(le))?y(function(){var we={_w:Te,_d:!1};try{de.call(le,n(Z,we,1),n(K,we,1))}catch(Ie){K.call(we,Ie)}}):(Te._v=le,Te._s=1,B(Te,!1))}catch(we){K.call({_w:Te,_d:!1},we)}}};z||(w=function(le){i(this,w,"Promise","_h"),a(le),A.call(this);try{le(n(Z,this,1),n(K,this,1))}catch(de){K.call(this,de)}},A=function(le){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},A.prototype=C("./_redefine-all")(w.prototype,{then:function(le,de){var Te=F(d(this,w));return Te.ok=typeof le!="function"||le,Te.fail=typeof de=="function"&&de,Te.domain=R?h.domain:void 0,this._c.push(Te),this._a&&this._a.push(Te),this._s&&B(this,!1),Te.promise},catch:function(le){return this.then(void 0,le)}}),f=function(){var le=new A;this.promise=le,this.resolve=n(Z,le,1),this.reject=n(K,le,1)},b.f=F=function(le){return le===w||le===p?new f(le):O(le)}),r(r.G+r.W+r.F*!z,{Promise:w}),C("./_set-to-string-tag")(w,"Promise"),C("./_set-species")("Promise"),p=C("./_core").Promise,r(r.S+r.F*!z,"Promise",{reject:function(le){var de=F(this);return(0,de.reject)(le),de.promise}}),r(r.S+r.F*(c||!z),"Promise",{resolve:function(le){return _(c&&this===p?w:this,le)}}),r(r.S+r.F*!(z&&C("./_iter-detect")(function(le){w.all(le).catch(N)})),"Promise",{all:function(le){var de=this,Te=F(de),we=Te.resolve,Ie=Te.reject,_e=g(function(){var ye=[],Ke=0,Me=1;t(le,!1,function(Fe){var Ge=Ke++,Ee=!1;ye.push(void 0),Me++,de.resolve(Fe).then(function(me){Ee||(Ee=!0,ye[Ge]=me,--Me||we(ye))},Ie)}),--Me||we(ye)});return _e.e&&Ie(_e.v),Te.promise},race:function(le){var de=this,Te=F(de),we=Te.reject,Ie=g(function(){t(le,!1,function(_e){de.resolve(_e).then(Te.resolve,we)})});return Ie.e&&we(Ie.v),Te.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(C,D,T){var A=C("./_export"),O=C("./_to-absolute-index"),f=String.fromCharCode,p=String.fromCodePoint;A(A.S+A.F*(!!p&&p.length!=1),"String",{fromCodePoint:function(c){for(var s,n=[],o=arguments.length,r=0;o>r;){if(s=+arguments[r++],O(s,1114111)!==s)throw RangeError(s+" is not a valid code point");n.push(s<65536?f(s):f(55296+((s-=65536)>>10),s%1024+56320))}return n.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(C,D,T){"use strict";var A=C("./_string-at")(!0);C("./_iter-define")(String,"String",function(O){this._t=String(O),this._i=0},function(){var O,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(O=A(f,p),this._i+=O.length,{value:O,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(C,D,T){"use strict";var A=C("./_global"),O=C("./_has"),f=C("./_descriptors"),p=C("./_export"),c=C("./_redefine"),s=C("./_meta").KEY,n=C("./_fails"),o=C("./_shared"),r=C("./_set-to-string-tag"),l=C("./_uid"),a=C("./_wks"),i=C("./_wks-ext"),t=C("./_wks-define"),d=C("./_enum-keys"),v=C("./_is-array"),y=C("./_an-object"),b=C("./_is-object"),g=C("./_to-iobject"),m=C("./_to-primitive"),_=C("./_property-desc"),x=C("./_object-create"),h=C("./_object-gopn-ext"),E=C("./_object-gopd"),S=C("./_object-dp"),w=C("./_object-keys"),R=E.f,N=S.f,F=h.f,z=A.Symbol,q=A.JSON,B=q&&q.stringify,M=a("_hidden"),G=a("toPrimitive"),J={}.propertyIsEnumerable,K=o("symbol-registry"),Z=o("symbols"),le=o("op-symbols"),de=Object.prototype,Te=typeof z=="function",we=A.QObject,Ie=!we||!we.prototype||!we.prototype.findChild,_e=f&&n(function(){return x(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(ee,$,Q){var xe=R(de,$);xe&&delete de[$],N(ee,$,Q),xe&&ee!==de&&N(de,$,xe)}:N,ye=function(ee){var $=Z[ee]=x(z.prototype);return $._k=ee,$},Ke=Te&&typeof z.iterator=="symbol"?function(ee){return typeof ee=="symbol"}:function(ee){return ee instanceof z},Me=function(ee,$,Q){return ee===de&&Me(le,$,Q),y(ee),$=m($,!0),y(Q),O(Z,$)?(Q.enumerable?(O(ee,M)&&ee[M][$]&&(ee[M][$]=!1),Q=x(Q,{enumerable:_(0,!1)})):(O(ee,M)||N(ee,M,_(1,{})),ee[M][$]=!0),_e(ee,$,Q)):N(ee,$,Q)},Fe=function(ee,$){y(ee);for(var Q,xe=d($=g($)),De=0,dt=xe.length;dt>De;)Me(ee,Q=xe[De++],$[Q]);return ee},Ge=function(ee,$){return $===void 0?x(ee):Fe(x(ee),$)},Ee=function(ee){var $=J.call(this,ee=m(ee,!0));return!(this===de&&O(Z,ee)&&!O(le,ee))&&(!($||!O(this,ee)||!O(Z,ee)||O(this,M)&&this[M][ee])||$)},me=function(ee,$){if(ee=g(ee),$=m($,!0),ee!==de||!O(Z,$)||O(le,$)){var Q=R(ee,$);return!Q||!O(Z,$)||O(ee,M)&&ee[M][$]||(Q.enumerable=!0),Q}},We=function(ee){for(var $,Q=F(g(ee)),xe=[],De=0;Q.length>De;)O(Z,$=Q[De++])||$==M||$==s||xe.push($);return xe},He=function(ee){for(var $,Q=ee===de,xe=F(Q?le:g(ee)),De=[],dt=0;xe.length>dt;)!O(Z,$=xe[dt++])||Q&&!O(de,$)||De.push(Z[$]);return De};Te||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var ee=l(arguments.length>0?arguments[0]:void 0),$=function(Q){this===de&&$.call(le,Q),O(this,M)&&O(this[M],ee)&&(this[M][ee]=!1),_e(this,ee,_(1,Q))};return f&&Ie&&_e(de,ee,{configurable:!0,set:$}),ye(ee)},c(z.prototype,"toString",function(){return this._k}),E.f=me,S.f=Me,C("./_object-gopn").f=h.f=We,C("./_object-pie").f=Ee,C("./_object-gops").f=He,f&&!C("./_library")&&c(de,"propertyIsEnumerable",Ee,!0),i.f=function(ee){return ye(a(ee))}),p(p.G+p.W+p.F*!Te,{Symbol:z});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;it.length>re;)a(it[re++]);for(var P=w(a.store),j=0;P.length>j;)t(P[j++]);p(p.S+p.F*!Te,"Symbol",{for:function(ee){return O(K,ee+="")?K[ee]:K[ee]=z(ee)},keyFor:function(ee){if(!Ke(ee))throw TypeError(ee+" is not a symbol!");for(var $ in K)if(K[$]===ee)return $},useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),p(p.S+p.F*!Te,"Object",{create:Ge,defineProperty:Me,defineProperties:Fe,getOwnPropertyDescriptor:me,getOwnPropertyNames:We,getOwnPropertySymbols:He}),q&&p(p.S+p.F*(!Te||n(function(){var ee=z();return B([ee])!="[null]"||B({a:ee})!="{}"||B(Object(ee))!="{}"})),"JSON",{stringify:function(ee){for(var $,Q,xe=[ee],De=1;arguments.length>De;)xe.push(arguments[De++]);if(Q=$=xe[1],(b($)||ee!==void 0)&&!Ke(ee))return v($)||($=function(dt,Ne){if(typeof Q=="function"&&(Ne=Q.call(this,dt,Ne)),!Ke(Ne))return Ne}),xe[1]=$,B.apply(q,xe)}}),z.prototype[G]||C("./_hide")(z.prototype,G,z.prototype.valueOf),r(z,"Symbol"),r(Math,"Math",!0),r(A.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(C,D,T){"use strict";var A=C("./_export"),O=C("./_core"),f=C("./_global"),p=C("./_species-constructor"),c=C("./_promise-resolve");A(A.P+A.R,"Promise",{finally:function(s){var n=p(this,O.Promise||f.Promise),o=typeof s=="function";return this.then(o?function(r){return c(n,s()).then(function(){return r})}:s,o?function(r){return c(n,s()).then(function(){throw r})}:s)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(C,D,T){"use strict";var A=C("./_export"),O=C("./_new-promise-capability"),f=C("./_perform");A(A.S,"Promise",{try:function(p){var c=O.f(this),s=f(p);return(s.e?c.reject:c.resolve)(s.v),c.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(C,D,T){C("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(C,D,T){C("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(C,D,T){C("./es6.array.iterator");for(var A=C("./_global"),O=C("./_hide"),f=C("./_iterators"),p=C("./_wks")("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s 0?"-":"+")+p(100*Math.floor(Math.abs(R)/60)+Math.abs(R)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:N,N:F};return t.replace(r,function(q){return q in z?z[q]:q.slice(1,q.length-1)})}}();o.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},o.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof W=="function"&&W.amd?W(function(){return o}):(T===void 0?"undefined":(0,O.default)(T))==="object"?D.exports=o:f.dateFormat=o}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(C,D,T){(function(A){function O(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function f(n){var o=this.useColors;if(n[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+n[0]+(o?"%c ":" ")+"+"+T.humanize(this.diff),o){var r="color: "+this.color;n.splice(1,0,r,"color: inherit");var l=0,a=0;n[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(l++,i==="%c"&&(a=l))}),n.splice(a,0,r)}}function p(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(n){try{n==null?T.storage.removeItem("debug"):T.storage.debug=n}catch(o){}}function s(){var n;try{n=T.storage.debug}catch(o){}return!n&&A!==void 0&&"env"in A&&(n=A.env.DEBUG),n}T=D.exports=C("./debug"),T.log=p,T.formatArgs=f,T.save=c,T.load=s,T.useColors=O,T.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(n){}}(),T.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],T.formatters.j=function(n){try{return JSON.stringify(n)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},T.enable(s())}).call(this,C("_process"))},{"./debug":156,_process:173}],156:[function(C,D,T){function A(o){var r,l=0;for(r in o)l=(l<<5)-l+o.charCodeAt(r),l|=0;return T.colors[Math.abs(l)%T.colors.length]}function O(o){function r(){if(r.enabled){var l=r,a=+new Date,i=a-(n||a);l.diff=i,l.prev=n,l.curr=a,n=a;for(var t=new Array(arguments.length),d=0;d ]/;D.exports=A},{}],158:[function(C,D,T){function A(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function O(s){return typeof s=="function"}function f(s){return typeof s=="number"}function p(s){return typeof s=="object"&&s!==null}function c(s){return s===void 0}D.exports=A,A.EventEmitter=A,A.prototype._events=void 0,A.prototype._maxListeners=void 0,A.defaultMaxListeners=10,A.prototype.setMaxListeners=function(s){if(!f(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},A.prototype.emit=function(s){var n,o,r,l,a,i;if(this._events||(this._events={}),s==="error"&&(!this._events.error||p(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var t=new Error('Uncaught, unspecified "error" event. ('+n+")");throw t.context=n,t}if(o=this._events[s],c(o))return!1;if(O(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:l=Array.prototype.slice.call(arguments,1),o.apply(this,l)}else if(p(o))for(l=Array.prototype.slice.call(arguments,1),i=o.slice(),r=i.length,a=0;a 0&&this._events[s].length>o&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},A.prototype.on=A.prototype.addListener,A.prototype.once=function(s,n){function o(){this.removeListener(s,o),r||(r=!0,n.apply(this,arguments))}if(!O(n))throw TypeError("listener must be a function");var r=!1;return o.listener=n,this.on(s,o),this},A.prototype.removeListener=function(s,n){var o,r,l,a;if(!O(n))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(o=this._events[s],l=o.length,r=-1,o===n||O(o.listener)&&o.listener===n)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,n);else if(p(o)){for(a=l;a-- >0;)if(o[a]===n||o[a].listener&&o[a].listener===n){r=a;break}if(r<0)return this;o.length===1?(o.length=0,delete this._events[s]):o.splice(r,1),this._events.removeListener&&this.emit("removeListener",s,n)}return this},A.prototype.removeAllListeners=function(s){var n,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(n in this._events)n!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[s],O(o))this.removeListener(s,o);else if(o)for(;o.length;)this.removeListener(s,o[o.length-1]);return delete this._events[s],this},A.prototype.listeners=function(s){return this._events&&this._events[s]?O(this._events[s])?[this._events[s]]:this._events[s].slice():[]},A.prototype.listenerCount=function(s){if(this._events){var n=this._events[s];if(O(n))return 1;if(n)return n.length}return 0},A.listenerCount=function(s,n){return s.listenerCount(n)}},{}],159:[function(C,D,T){var A=C("http"),O=D.exports;for(var f in A)A.hasOwnProperty(f)&&(O[f]=A[f]);O.request=function(p,c){return p||(p={}),p.scheme="https",p.protocol="https:",A.request.call(this,p,c)}},{http:196}],160:[function(C,D,T){"use strict";var A=C("util"),O=C("ms");D.exports=function(f){if(typeof f=="number")return f;var p=O(f);if(p===void 0){var c=new Error(A.format("humanize-ms(%j) result undefined",f));console.warn(c.stack)}return p}},{ms:169,util:207}],161:[function(C,D,T){T.read=function(A,O,f,p,c){var s,n,o=8*c-p-1,r=(1< >1,a=-7,i=f?c-1:0,t=f?-1:1,d=A[O+i];for(i+=t,s=d&(1<<-a)-1,d>>=-a,a+=o;a>0;s=256*s+A[O+i],i+=t,a-=8);for(n=s&(1<<-a)-1,s>>=-a,a+=p;a>0;n=256*n+A[O+i],i+=t,a-=8);if(s===0)s=1-l;else{if(s===r)return n?NaN:1/0*(d?-1:1);n+=Math.pow(2,p),s-=l}return(d?-1:1)*n*Math.pow(2,s-p)},T.write=function(A,O,f,p,c,s){var n,o,r,l=8*s-c-1,a=(1< >1,t=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=p?0:s-1,v=p?1:-1,y=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(o=isNaN(O)?1:0,n=a):(n=Math.floor(Math.log(O)/Math.LN2),O*(r=Math.pow(2,-n))<1&&(n--,r*=2),O+=n+i>=1?t/r:t*Math.pow(2,1-i),O*r>=2&&(n++,r/=2),n+i>=a?(o=0,n=a):n+i>=1?(o=(O*r-1)*Math.pow(2,c),n+=i):(o=O*Math.pow(2,i-1)*Math.pow(2,c),n=0));c>=8;A[f+d]=255&o,d+=v,o/=256,c-=8);for(n=n< 0;A[f+d]=255&n,d+=v,n/=256,l-=8);A[f+d-v]|=128*y}},{}],162:[function(C,D,T){typeof Object.create=="function"?D.exports=function(A,O){A.super_=O,A.prototype=Object.create(O.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(A,O){A.super_=O;var f=function(){};f.prototype=O.prototype,A.prototype=new f,A.prototype.constructor=A}},{}],163:[function(C,D,T){function A(f){return!!f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f)}function O(f){return typeof f.readFloatLE=="function"&&typeof f.slice=="function"&&A(f.slice(0,0))}D.exports=function(f){return f!=null&&(A(f)||O(f)||!!f._isBuffer)}},{}],164:[function(C,D,T){!function(A){function O(c){return p.call(c).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function f(c){return typeof c=="function"&&(/^class(\s|\{\}$)/.test(p.call(c))||/^.*classCallCheck\(/.test(O(c)))}var p=Function.prototype.toString;T!==void 0?(D!==void 0&&D.exports&&(T=D.exports=f),T.isClass=f):typeof W=="function"&&W.amd?W([],function(){return f}):A.isClass=f}(this)},{}],165:[function(C,D,T){"use strict";function A(s){var n=s.slice(2);return n=n[0].toLowerCase()+n.slice(1)}var O=C("core-util-is"),f=C("isstream"),p=C("is-class");Object.keys(O).map(function(s){T[A(s)]=O[s]}),T.stream=f,T.readableStream=f.isReadable,T.writableStream=f.isWritable,T.duplexStream=f.isDuplex,T.class=p,T.finite=function(s){return Number.isFinite(s)},T.NaN=function(s){return Number.isNaN(s)},T.generator=function(s){return s&&typeof s.next=="function"&&typeof s.throw=="function"},T.generatorFunction=function(s){return s&&s.constructor&&s.constructor.name==="GeneratorFunction"},T.asyncFunction=function(s){return s&&s.constructor&&s.constructor.name==="AsyncFunction"},T.promise=function(s){return s&&typeof s.then=="function"};var c=Math.pow(2,31);T.int=function(s){return O.isNumber(s)&&s%1==0},T.int32=function(s){return T.int(s)&&s =-c},T.long=function(s){return T.int(s)&&(s>=c||s<-c)},T.Long=function(s){return T.object(s)&&T.number(s.high)&&T.number(s.low)},T.double=function(s){return O.isNumber(s)&&!isNaN(s)&&s%1!=0},T.date=function(s){return s instanceof Date},T.regExp=function(s){return s instanceof RegExp},T.regexp=T.regExp,T.error=function(s){return s instanceof Error},T.array=function(s){return Array.isArray(s)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(C,D,T){var A={}.toString;D.exports=Array.isArray||function(O){return A.call(O)=="[object Array]"}},{}],167:[function(C,D,T){function A(s){return s instanceof c.Stream}function O(s){return A(s)&&typeof s._read=="function"&&typeof s._readableState=="object"}function f(s){return A(s)&&typeof s._write=="function"&&typeof s._writableState=="object"}function p(s){return O(s)&&f(s)}var c=C("stream");D.exports=A,D.exports.isReadable=O,D.exports.isWritable=f,D.exports.isDuplex=p},{stream:195}],168:[function(C,D,T){"use strict";function A(f,p,c){if(!f)throw new TypeError("argument dest is required");if(!p)throw new TypeError("argument src is required");return c===void 0&&(c=!0),Object.getOwnPropertyNames(p).forEach(function(s){if(c||!O.call(f,s)){var n=Object.getOwnPropertyDescriptor(p,s);Object.defineProperty(f,s,n)}}),f}D.exports=A;var O=Object.prototype.hasOwnProperty},{}],169:[function(C,D,T){function A(l){if(l=String(l),!(l.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*r;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*n;case"minutes":case"minute":case"mins":case"min":case"m":return i*s;case"seconds":case"second":case"secs":case"sec":case"s":return i*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function O(l){return l>=o?Math.round(l/o)+"d":l>=n?Math.round(l/n)+"h":l>=s?Math.round(l/s)+"m":l>=c?Math.round(l/c)+"s":l+"ms"}function f(l){return p(l,o,"day")||p(l,n,"hour")||p(l,s,"minute")||p(l,c,"second")||l+" ms"}function p(l,a,i){if(!(l0)return A(l);if(i==="number"&&isNaN(l)===!1)return a.long?f(l):O(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))}},{}],170:[function(C,D,T){(function(A){function O(s,n){for(var o=0,r=s.length-1;r>=0;r--){var l=s[r];l==="."?s.splice(r,1):l===".."?(s.splice(r,1),o++):o&&(s.splice(r,1),o--)}if(n)for(;o--;o)s.unshift("..");return s}function f(s){typeof s!="string"&&(s+="");var n,o=0,r=-1,l=!0;for(n=s.length-1;n>=0;--n)if(s.charCodeAt(n)===47){if(!l){o=n+1;break}}else r===-1&&(l=!1,r=n+1);return r===-1?"":s.slice(o,r)}function p(s,n){if(s.filter)return s.filter(n);for(var o=[],r=0;r =-1&&!n;o--){var r=o>=0?arguments[o]:A.cwd();if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");r&&(s=r+"/"+s,n=r.charAt(0)==="/")}return s=O(p(s.split("/"),function(l){return!!l}),!n).join("/"),(n?"/":"")+s||"."},T.normalize=function(s){var n=T.isAbsolute(s),o=c(s,-1)==="/";return s=O(p(s.split("/"),function(r){return!!r}),!n).join("/"),s||n||(s="."),s&&o&&(s+="/"),(n?"/":"")+s},T.isAbsolute=function(s){return s.charAt(0)==="/"},T.join=function(){var s=Array.prototype.slice.call(arguments,0);return T.normalize(p(s,function(n,o){if(typeof n!="string")throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},T.relative=function(s,n){function o(v){for(var y=0;y =0&&v[b]==="";b--);return y>b?[]:v.slice(y,b-y+1)}s=T.resolve(s).substr(1),n=T.resolve(n).substr(1);for(var r=o(s.split("/")),l=o(n.split("/")),a=Math.min(r.length,l.length),i=a,t=0;t=1;--a)if((n=s.charCodeAt(a))===47){if(!l){r=a;break}}else l=!1;return r===-1?o?"/":".":o&&r===1?"/":s.slice(0,r)},T.basename=function(s,n){var o=f(s);return n&&o.substr(-1*n.length)===n&&(o=o.substr(0,o.length-n.length)),o},T.extname=function(s){typeof s!="string"&&(s+="");for(var n=-1,o=0,r=-1,l=!0,a=0,i=s.length-1;i>=0;--i){var t=s.charCodeAt(i);if(t!==47)r===-1&&(l=!1,r=i+1),t===46?n===-1?n=i:a!==1&&(a=1):n!==-1&&(a=-1);else if(!l){o=i+1;break}}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===o+1?"":s.slice(n,r)};var c="ab".substr(-1)==="b"?function(s,n,o){return s.substr(n,o)}:function(s,n,o){return n<0&&(n=s.length+n),s.substr(n,o)}}).call(this,C("_process"))},{_process:173}],171:[function(C,D,T){(function(A){(function(){"use strict";function O(S){return S=String(S),S.charAt(0).toUpperCase()+S.slice(1)}function f(S,w,R){var N={"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 w&&R&&/^Win/i.test(S)&&!/^Windows Phone /i.test(S)&&(N=N[/[\d.]+$/.exec(S)])&&(S="Windows "+N),S=String(S),w&&R&&(S=S.replace(RegExp(w,"i"),R)),S=c(S.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function p(S,w){var R=-1,N=S?S.length:0;if(typeof N=="number"&&N>-1&&N<=g)for(;++R 3&&"WebKit"||/\bOpera\b/.test(He)&&(/\bOPR\b/.test(S)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(S)&&!/^(?:Trident|EdgeHTML)$/.test(We)&&"WebKit"||!We&&/\bMSIE\b/i.test(S)&&(P=="Mac OS"?"Tasman":"Trident")||We=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(He)&&"NetFront")&&(We=[B]),He=="IE"&&(B=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S)||0)[1])?(He+=" Mobile",P="Windows Phone "+(/\+$/.test(B)?B:B+".x"),Fe.unshift("desktop mode")):/\bWPDesktop\b/i.test(S)?(He="IE Mobile",P="Windows Phone 8.x",Fe.unshift("desktop mode"),me||(me=(/\brv:([\d.]+)/.exec(S)||0)[1])):He!="IE"&&We=="Trident"&&(B=/\brv:([\d.]+)/.exec(S))&&(He&&Fe.push("identifying as "+He+(me?" "+me:"")),He="IE",me=B[1]),Ee){if(o(N,"global"))if(de&&(B=de.lang.System,Me=B.getProperty("os.arch"),P=P||B.getProperty("os.name")+" "+B.getProperty("os.version")),Te){try{me=N.require("ringo/engine").version.join("."),He="RingoJS"}catch(ee){(B=N.system)&&B.global.system==N.system&&(He="Narwhal",P||(P=B[0].os||null))}He||(He="Rhino")}else typeof N.process=="object"&&!N.process.browser&&(B=N.process)&&(typeof B.versions=="object"&&(typeof B.versions.electron=="string"?(Fe.push("Node "+B.versions.node),He="Electron",me=B.versions.electron):typeof B.versions.nw=="string"&&(Fe.push("Chromium "+me,"Node "+B.versions.node),He="NW.js",me=B.versions.nw)),He||(He="Node.js",Me=B.arch,P=B.platform,me=/[\d.]+/.exec(B.version),me=me?me[0]:null));else n(B=N.runtime)==J?(He="Adobe AIR",P=B.flash.system.Capabilities.os):n(B=N.phantom)==le?(He="PhantomJS",me=(B=B.version||null)&&B.major+"."+B.minor+"."+B.patch):typeof _e.documentMode=="number"&&(B=/\bTrident\/(\d+)/i.exec(S))?(me=[me,_e.documentMode],(B=+B[1]+4)!=me[1]&&(Fe.push("IE "+me[1]+" mode"),We&&(We[1]=""),me[1]=B),me=He=="IE"?String(me[1].toFixed(1)):me[0]):typeof _e.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(He)&&(Fe.push("masking as "+He+" "+me),He="IE",me="11.0",We=["Trident"],P="Windows");P=P&&c(P)}if(me&&(B=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(me)||/(?:alpha|beta)(?: ?\d)?/i.exec(S+";"+(Ee&&z.appMinorVersion))||/\bMinefield\b/i.test(S)&&"a")&&(Ge=/b/i.test(B)?"beta":"alpha",me=me.replace(RegExp(B+"\\+?$"),"")+(Ge=="beta"?Ie:we)+(/\d+\+?/.exec(B)||"")),He=="Fennec"||He=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(P))He="Firefox Mobile";else if(He=="Maxthon"&&me)me=me.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(it))it=="Xbox 360"&&(P=null),it=="Xbox 360"&&/\bIEMobile\b/.test(S)&&Fe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(He)&&(!He||it||/Browser|Mobi/.test(He))||P!="Windows CE"&&!/Mobi/i.test(S))if(He=="IE"&&Ee)try{N.external===null&&Fe.unshift("platform preview")}catch(ee){Fe.unshift("embedded")}else(/\bBlackBerry\b/.test(it)||/\bBB10\b/.test(S))&&(B=(RegExp(it.replace(/ +/g," *")+"/([.\\d]+)","i").exec(S)||0)[1]||me)?(B=[B,/BB10/.test(S)],P=(B[1]?(it=null,re="BlackBerry"):"Device Software")+" "+B[0],me=null):this!=s&&it!="Wii"&&(Ee&&ye||/Opera/.test(He)&&/\b(?:MSIE|Firefox)\b/i.test(S)||He=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(P)||He=="IE"&&(P&&!/^Win/.test(P)&&me>5.5||/\bWindows XP\b/.test(P)&&me>8||me==8&&!/\bTrident\b/.test(S)))&&!m.test(B=i.call(s,S.replace(m,"")+";"))&&B.name&&(B="ing as "+B.name+((B=B.version)?" "+B:""),m.test(He)?(/\bIE\b/.test(B)&&P=="Mac OS"&&(P=null),B="identify"+B):(B="mask"+B,He=Ke?c(Ke.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(B)&&(P=null),Ee||(me=null)),We=["Presto"],Fe.push(B));else He+=" Mobile";(B=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(S)||0)[1])&&(B=[parseFloat(B.replace(/\.(\d)$/,".0$1")),B],He=="Safari"&&B[1].slice(-1)=="+"?(He="WebKit Nightly",Ge="alpha",me=B[1].slice(0,-1)):me!=B[1]&&me!=(B[2]=(/\bSafari\/([\d.]+\+?)/i.exec(S)||0)[1])||(me=null),B[1]=(/\bChrome\/([\d.]+)/i.exec(S)||0)[1],B[0]==537.36&&B[2]==537.36&&parseFloat(B[1])>=28&&We=="WebKit"&&(We=["Blink"]),Ee&&(G||B[1])?(We&&(We[1]="like Chrome"),B=B[1]||(B=B[0],B<530?1:B<532?2:B<532.05?3:B<533?4:B<534.03?5:B<534.07?6:B<534.1?7:B<534.13?8:B<534.16?9:B<534.24?10:B<534.3?11:B<535.01?12:B<535.02?"13+":B<535.07?15:B<535.11?16:B<535.19?17:B<536.05?18:B<536.1?19:B<537.01?20:B<537.11?"21+":B<537.13?23:B<537.18?24:B<537.24?25:B<537.36?26:We!="Blink"?"27":"28")):(We&&(We[1]="like Safari"),B=B[0],B=B<400?1:B<500?2:B<526?3:B<533?4:B<534?"4+":B<535?5:B<537?6:B<538?7:B<601?8:"8"),We&&(We[1]+=" "+(B+=typeof B=="number"?".x":/[.+]/.test(B)?"":"+")),He=="Safari"&&(!me||parseInt(me)>45)&&(me=B)),He=="Opera"&&(B=/\bzbov|zvav$/.exec(P))?(He+=" ",Fe.unshift("desktop mode"),B=="zvav"?(He+="Mini",me=null):He+="Mobile",P=P.replace(RegExp(" *"+B+"$"),"")):He=="Safari"&&/\bChrome\b/.exec(We&&We[1])&&(Fe.unshift("desktop mode"),He="Chrome Mobile",me=null,/\bOS X\b/.test(P)?(re="Apple",P="iOS 4.3+"):P=null),me&&me.indexOf(B=/[\d.]+$/.exec(P))==0&&S.indexOf("/"+B+"-")>-1&&(P=a(P.replace(B,""))),We&&!/\b(?:Avant|Nook)\b/.test(He)&&(/Browser|Lunascape|Maxthon/.test(He)||He!="Safari"&&/^iOS/.test(P)&&/\bSafari\b/.test(We[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(He)&&We[1])&&(B=We[We.length-1])&&Fe.push(B),Fe.length&&(Fe=["("+Fe.join("; ")+")"]),re&&it&&it.indexOf(re)<0&&Fe.push("on "+re),it&&Fe.push((/^on /.test(Fe[Fe.length-1])?"":"on ")+it),P&&(B=/ ([\d.+]+)$/.exec(P),M=B&&P.charAt(P.length-B[0].length-1)=="/",P={architecture:32,family:B&&!M?P.replace(B[0],""):P,version:B?B[1]:null,toString:function(){var ee=this.version;return this.family+(ee&&!M?" "+ee:"")+(this.architecture==64?" 64-bit":"")}}),(B=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Me))&&!/\bi686\b/i.test(Me)?(P&&(P.architecture=64,P.family=P.family.replace(RegExp(" *"+B),"")),He&&(/\bWOW64\b/i.test(S)||Ee&&/\w(?:86|32)$/.test(z.cpuClass||z.platform)&&!/\bWin64; x64\b/i.test(S))&&Fe.unshift("32-bit")):P&&/^OS X/.test(P.family)&&He=="Chrome"&&parseFloat(me)>=39&&(P.architecture=64),S||(S=null);var j={};return j.description=S,j.layout=We&&We[0],j.manufacturer=re,j.name=He,j.prerelease=Ge,j.product=it,j.ua=S,j.version=He&&me,j.os=P||{architecture:null,family:null,version:null,toString:function(){return"null"}},j.parse=i,j.toString=R,j.version&&Fe.unshift(me),j.name&&Fe.unshift(He),P&&He&&(P!=String(P).split(" ")[0]||P!=He.split(" ")[0]&&!it)&&Fe.push(it?"("+P+")":"on "+P),Fe.length&&(j.description=Fe.join(" ")),j}var t={function:!0,object:!0},d=t[typeof window]&&window||this,v=t[typeof T]&&T,y=t[typeof D]&&D&&!D.nodeType&&D,b=v&&y&&typeof A=="object"&&A;!b||b.global!==b&&b.window!==b&&b.self!==b||(d=b);var g=Math.pow(2,53)-1,m=/\bOpera/,_=Object.prototype,x=_.hasOwnProperty,h=_.toString,E=i();typeof W=="function"&&typeof W.amd=="object"&&W.amd?(d.platform=E,W(function(){return E})):v&&y?s(E,function(S,w){v[w]=S}):d.platform=E}).call(this)}).call(this,typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(C,D,T){(function(A){"use strict";function O(f,p,c,s){if(typeof f!="function")throw new TypeError('"callback" argument must be a function');var n,o,r=arguments.length;switch(r){case 0:case 1:return A.nextTick(f);case 2:return A.nextTick(function(){f.call(null,p)});case 3:return A.nextTick(function(){f.call(null,p,c)});case 4:return A.nextTick(function(){f.call(null,p,c,s)});default:for(n=new Array(r-1),o=0;o 1)for(var g=1;g 1&&(Te=de[0]+"@",Z=de[1]),Z=Z.replace(B,"."),Te+p(Z.split("."),le).join(".")}function s(Z){for(var le,de,Te=[],we=0,Ie=Z.length;we =55296&&le<=56319&&we 65535&&(le-=65536,de+=K(le>>>10&1023|55296),le=56320|1023&le),de+=K(le)}).join("")}function o(Z){return Z-48<10?Z-22:Z-65<26?Z-65:Z-97<26?Z-97:x}function r(Z,le){return Z+22+75*(Z<26)-((le!=0)<<5)}function l(Z,le,de){var Te=0;for(Z=de?J(Z/w):Z>>1,Z+=J(Z/le);Z>G*E>>1;Te+=x)Z=J(Z/G);return J(Te+(G+1)*Z/(Z+S))}function a(Z){var le,de,Te,we,Ie,_e,ye,Ke,Me,Fe,Ge=[],Ee=Z.length,me=0,We=N,He=R;for(de=Z.lastIndexOf(F),de<0&&(de=0),Te=0;Te =128&&f("not-basic"),Ge.push(Z.charCodeAt(Te));for(we=de>0?de+1:0;we =Ee&&f("invalid-input"),Ke=o(Z.charCodeAt(we++)),(Ke>=x||Ke>J((_-me)/_e))&&f("overflow"),me+=Ke*_e,Me=ye<=He?h:ye>=He+E?E:ye-He,!(Ke J(_/Fe)&&f("overflow"),_e*=Fe;le=Ge.length+1,He=l(me-Ie,le,Ie==0),J(me/le)>_-We&&f("overflow"),We+=J(me/le),me%=le,Ge.splice(me++,0,We)}return n(Ge)}function i(Z){var le,de,Te,we,Ie,_e,ye,Ke,Me,Fe,Ge,Ee,me,We,He,it=[];for(Z=s(Z),Ee=Z.length,le=N,de=0,Ie=R,_e=0;_e =le&&Ge J((_-de)/me)&&f("overflow"),de+=(ye-le)*me,le=ye,_e=0;_e _&&f("overflow"),Ge==le){for(Ke=de,Me=x;Fe=Me<=Ie?h:Me>=Ie+E?E:Me-Ie,!(Ke = 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=x-h,J=Math.floor,K=String.fromCharCode;if(g={version:"1.4.1",ucs2:{decode:s,encode:n},decode:a,encode:i,toASCII:d,toUnicode:t},typeof W=="function"&&typeof W.amd=="object"&&W.amd)W("punycode",function(){return g});else if(v&&y)if(D.exports==v)y.exports=g;else for(m in g)g.hasOwnProperty(m)&&(v[m]=g[m]);else O.punycode=g}(this)}).call(this,typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(C,D,T){"use strict";function A(f,p){return Object.prototype.hasOwnProperty.call(f,p)}D.exports=function(f,p,c,s){p=p||"&",c=c||"=";var n={};if(typeof f!="string"||f.length===0)return n;var o=/\+/g;f=f.split(p);var r=1e3;s&&typeof s.maxKeys=="number"&&(r=s.maxKeys);var l=f.length;r>0&&l>r&&(l=r);for(var a=0;a =0?(i=y.substr(0,b),t=y.substr(b+1)):(i=y,t=""),d=decodeURIComponent(i),v=decodeURIComponent(t),A(n,d)?O(n[d])?n[d].push(v):n[d]=[n[d],v]:n[d]=v}return n};var O=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"}},{}],176:[function(C,D,T){"use strict";function A(c,s){if(c.map)return c.map(s);for(var n=[],o=0;o 0?(typeof me=="string"||re.objectMode||(0,M.default)(me)===de.prototype||(me=f(me)),He?re.endEmitted?Ee.emit("error",new Error("stream.unshift() after end event")):r(Ee,re,me,!0):re.ended?Ee.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!We?(me=re.decoder.write(me),re.objectMode||me.length!==0?r(Ee,re,me,!1):b(Ee,re)):r(Ee,re,me,!1))):He||(re.reading=!1)}return a(re)}function r(Ee,me,We,He){me.flowing&&me.length===0&&!me.sync?(Ee.emit("data",We),Ee.read(0)):(me.length+=me.objectMode?1:We.length,He?me.buffer.unshift(We):me.buffer.push(We),me.needReadable&&v(Ee)),b(Ee,me)}function l(Ee,me){var We;return p(me)||typeof me=="string"||me===void 0||Ee.objectMode||(We=new TypeError("Invalid non-string/buffer chunk")),We}function a(Ee){return!Ee.ended&&(Ee.needReadable||Ee.length =Ge?Ee=Ge:(Ee--,Ee|=Ee>>>1,Ee|=Ee>>>2,Ee|=Ee>>>4,Ee|=Ee>>>8,Ee|=Ee>>>16,Ee++),Ee}function t(Ee,me){return Ee<=0||me.length===0&&me.ended?0:me.objectMode?1:Ee!==Ee?me.flowing&&me.length?me.buffer.head.data.length:me.length:(Ee>me.highWaterMark&&(me.highWaterMark=i(Ee)),Ee<=me.length?Ee:me.ended?me.length:(me.needReadable=!0,0))}function d(Ee,me){if(!me.ended){if(me.decoder){var We=me.decoder.end();We&&We.length&&(me.buffer.push(We),me.length+=me.objectMode?1:We.length)}me.ended=!0,v(Ee)}}function v(Ee){var me=Ee._readableState;me.needReadable=!1,me.emittedReadable||(_e("emitReadable",me.flowing),me.emittedReadable=!0,me.sync?G.nextTick(y,Ee):y(Ee))}function y(Ee){_e("emit readable"),Ee.emit("readable"),E(Ee)}function b(Ee,me){me.readingMore||(me.readingMore=!0,G.nextTick(g,Ee,me))}function g(Ee,me){for(var We=me.length;!me.reading&&!me.flowing&&!me.ended&&me.length =me.length?(We=me.decoder?me.buffer.join(""):me.buffer.length===1?me.buffer.head.data:me.buffer.concat(me.length),me.buffer.clear()):We=w(Ee,me.buffer,me.decoder),We}function w(Ee,me,We){var He;return Ee re.length?re.length:Ee;if(P===re.length?it+=re:it+=re.slice(0,Ee),(Ee-=P)===0){P===re.length?(++He,We.next?me.head=We.next:me.head=me.tail=null):(me.head=We,We.data=re.slice(P));break}++He}return me.length-=He,it}function N(Ee,me){var We=de.allocUnsafe(Ee),He=me.head,it=1;for(He.data.copy(We),Ee-=He.data.length;He=He.next;){var re=He.data,P=Ee>re.length?re.length:Ee;if(re.copy(We,We.length-Ee,0,P),(Ee-=P)===0){P===re.length?(++it,He.next?me.head=He.next:me.head=me.tail=null):(me.head=He,He.data=re.slice(P));break}++it}return me.length-=it,We}function F(Ee){var me=Ee._readableState;if(me.length>0)throw new Error('"endReadable()" called on non-empty stream');me.endEmitted||(me.ended=!0,G.nextTick(z,me,Ee))}function z(Ee,me){Ee.endEmitted||Ee.length!==0||(Ee.endEmitted=!0,me.readable=!1,me.emit("end"))}function q(Ee,me){for(var We=0,He=Ee.length;We =me.highWaterMark||me.ended))return _e("read: emitReadable",me.length,me.ended),me.length===0&&me.ended?F(this):v(this),null;if((Ee=t(Ee,me))===0&&me.ended)return me.length===0&&F(this),null;var He=me.needReadable;_e("need readable",He),(me.length===0||me.length-Ee 0?S(Ee,me):null,it===null?(me.needReadable=!0,Ee=0):me.length-=Ee,me.length===0&&(me.ended||(me.needReadable=!0),We!==Ee&&me.ended&&F(this)),it!==null&&this.emit("data",it),it},n.prototype._read=function(Ee){this.emit("error",new Error("_read() is not implemented"))},n.prototype.pipe=function(Ee,me){function We(lt,qe){_e("onunpipe"),lt===Q&&qe&&qe.hasUnpiped===!1&&(qe.hasUnpiped=!0,it())}function He(){_e("onend"),Ee.end()}function it(){_e("cleanup"),Ee.removeListener("close",j),Ee.removeListener("finish",ee),Ee.removeListener("drain",Ne),Ee.removeListener("error",P),Ee.removeListener("unpipe",We),Q.removeListener("end",He),Q.removeListener("end",$),Q.removeListener("data",re),Be=!0,!xe.awaitDrain||Ee._writableState&&!Ee._writableState.needDrain||Ne()}function re(lt){_e("ondata"),tt=!1,Ee.write(lt)!==!1||tt||((xe.pipesCount===1&&xe.pipes===Ee||xe.pipesCount>1&&q(xe.pipes,Ee)!==-1)&&!Be&&(_e("false write response, pause",Q._readableState.awaitDrain),Q._readableState.awaitDrain++,tt=!0),Q.pause())}function P(lt){_e("onerror",lt),$(),Ee.removeListener("error",P),Z(Ee,"error")===0&&Ee.emit("error",lt)}function j(){Ee.removeListener("finish",ee),$()}function ee(){_e("onfinish"),Ee.removeListener("close",j),$()}function $(){_e("unpipe"),Q.unpipe(Ee)}var Q=this,xe=this._readableState;switch(xe.pipesCount){case 0:xe.pipes=Ee;break;case 1:xe.pipes=[xe.pipes,Ee];break;default:xe.pipes.push(Ee)}xe.pipesCount+=1,_e("pipe count=%d opts=%j",xe.pipesCount,me);var De=(!me||me.end!==!1)&&Ee!==A.stdout&&Ee!==A.stderr,dt=De?He:$;xe.endEmitted?G.nextTick(dt):Q.once("end",dt),Ee.on("unpipe",We);var Ne=m(Q);Ee.on("drain",Ne);var Be=!1,tt=!1;return Q.on("data",re),c(Ee,"error",P),Ee.once("close",j),Ee.once("finish",ee),Ee.emit("pipe",Q),xe.flowing||(_e("pipe resume"),Q.resume()),Ee},n.prototype.unpipe=function(Ee){var me=this._readableState,We={hasUnpiped:!1};if(me.pipesCount===0)return this;if(me.pipesCount===1)return Ee&&Ee!==me.pipes?this:(Ee||(Ee=me.pipes),me.pipes=null,me.pipesCount=0,me.flowing=!1,Ee&&Ee.emit("unpipe",this,We),this);if(!Ee){var He=me.pipes,it=me.pipesCount;me.pipes=null,me.pipesCount=0,me.flowing=!1;for(var re=0;re -1?J.default:K.nextTick;r.WritableState=o;var de=C("core-util-is");de.inherits=C("inherits");var Te={deprecate:C("util-deprecate")},we=C("./internal/streams/stream"),Ie=C("safe-buffer").Buffer,_e=O.Uint8Array||function(){},ye=C("./internal/streams/destroy");de.inherits(r,we),o.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,Fe=[];Me;)Fe.push(Me),Me=Me.next;return Fe},function(){try{Object.defineProperty(o.prototype,"buffer",{get:Te.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Me){}}();var Ke;typeof M.default=="function"&&q.default&&typeof Function.prototype[q.default]=="function"?(Ke=Function.prototype[q.default],(0,F.default)(r,q.default,{value:function(Me){return!!Ke.call(this,Me)||this===r&&Me&&Me._writableState instanceof o}})):Ke=function(Me){return Me instanceof this},r.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},r.prototype.write=function(Me,Fe,Ge){var Ee=this._writableState,me=!1,We=!Ee.objectMode&&s(Me);return We&&!Ie.isBuffer(Me)&&(Me=c(Me)),typeof Fe=="function"&&(Ge=Fe,Fe=null),We?Fe="buffer":Fe||(Fe=Ee.defaultEncoding),typeof Ge!="function"&&(Ge=n),Ee.ended?l(this,Ge):(We||a(this,Ee,Me,Ge))&&(Ee.pendingcb++,me=t(this,Ee,We,Me,Fe,Ge)),me},r.prototype.cork=function(){this._writableState.corked++},r.prototype.uncork=function(){var Me=this._writableState;Me.corked&&(Me.corked--,Me.writing||Me.corked||Me.finished||Me.bufferProcessing||!Me.bufferedRequest||_(this,Me))},r.prototype.setDefaultEncoding=function(Me){if(typeof Me=="string"&&(Me=Me.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Me+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Me);return this._writableState.defaultEncoding=Me,this},Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),r.prototype._write=function(Me,Fe,Ge){Ge(new Error("_write() is not implemented"))},r.prototype._writev=null,r.prototype.end=function(Me,Fe,Ge){var Ee=this._writableState;typeof Me=="function"?(Ge=Me,Me=null,Fe=null):typeof Fe=="function"&&(Ge=Fe,Fe=null),Me!=null&&this.write(Me,Fe),Ee.corked&&(Ee.corked=1,this.uncork()),Ee.ending||Ee.finished||w(this,Ee,Ge)},Object.defineProperty(r.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Me){this._writableState&&(this._writableState.destroyed=Me)}}),r.prototype.destroy=ye.destroy,r.prototype._undestroy=ye.undestroy,r.prototype._destroy=function(Me,Fe){this.end(),Fe(Me)}}).call(this,C("_process"),typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(C,D,T){"use strict";function A(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function O(c,s,n){c.copy(s,n)}var f=C("safe-buffer").Buffer,p=C("util");D.exports=function(){function c(){A(this,c),this.head=null,this.tail=null,this.length=0}return c.prototype.push=function(s){var n={data:s,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},c.prototype.unshift=function(s){var n={data:s,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},c.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},c.prototype.clear=function(){this.head=this.tail=null,this.length=0},c.prototype.join=function(s){if(this.length===0)return"";for(var n=this.head,o=""+n.data;n=n.next;)o+=s+n.data;return o},c.prototype.concat=function(s){if(this.length===0)return f.alloc(0);if(this.length===1)return this.head.data;for(var n=f.allocUnsafe(s>>>0),o=this.head,r=0;o;)O(o.data,n,r),r+=o.data.length,o=o.next;return n},c}(),p&&p.inspect&&p.inspect.custom&&(D.exports.prototype[p.inspect.custom]=function(){var c=p.inspect({length:this.length});return this.constructor.name+" "+c})},{"safe-buffer":193,util:36}],185:[function(C,D,T){"use strict";function A(c,s){var n=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(s?s(c):!c||this._writableState&&this._writableState.errorEmitted||p.nextTick(f,this,c),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(l){!s&&l?(p.nextTick(f,n,l),n._writableState&&(n._writableState.errorEmitted=!0)):s&&s(l)}),this)}function O(){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 f(c,s){c.emit("error",s)}var p=C("process-nextick-args");D.exports={destroy:A,undestroy:O}},{"process-nextick-args":172}],186:[function(C,D,T){"use strict";D.exports=C("events").EventEmitter},{events:158}],187:[function(C,D,T){D.exports=C("./readable").PassThrough},{"./readable":188}],188:[function(C,D,T){T=D.exports=C("./lib/_stream_readable.js"),T.Stream=T,T.Readable=T,T.Writable=C("./lib/_stream_writable.js"),T.Duplex=C("./lib/_stream_duplex.js"),T.Transform=C("./lib/_stream_transform.js"),T.PassThrough=C("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(C,D,T){D.exports=C("./readable").Transform},{"./readable":188}],190:[function(C,D,T){D.exports=C("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(C,D,T){var A=function(){return this}()||Function("return this")(),O=A.regeneratorRuntime&&Object.getOwnPropertyNames(A).indexOf("regeneratorRuntime")>=0,f=O&&A.regeneratorRuntime;if(A.regeneratorRuntime=void 0,D.exports=C("./runtime"),O)A.regeneratorRuntime=f;else try{delete A.regeneratorRuntime}catch(p){A.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(C,D,T){!function(A){"use strict";function O(J,K,Z,le){var de=K&&K.prototype instanceof p?K:p,Te=Object.create(de.prototype),we=new t(le||[]);return Te._invoke=r(J,Z,we),Te}function f(J,K,Z){try{return{type:"normal",arg:J.call(K,Z)}}catch(le){return{type:"throw",arg:le}}}function p(){}function c(){}function s(){}function n(J){["next","throw","return"].forEach(function(K){J[K]=function(Z){return this._invoke(K,Z)}})}function o(J){function K(de,Te,we,Ie){var _e=f(J[de],J,Te);if(_e.type!=="throw"){var ye=_e.arg,Ke=ye.value;return Ke&&typeof Ke=="object"&&g.call(Ke,"__await")?Promise.resolve(Ke.__await).then(function(Me){K("next",Me,we,Ie)},function(Me){K("throw",Me,we,Ie)}):Promise.resolve(Ke).then(function(Me){ye.value=Me,we(ye)},Ie)}Ie(_e.arg)}function Z(de,Te){function we(){return new Promise(function(Ie,_e){K(de,Te,Ie,_e)})}return le=le?le.then(we,we):we()}var le;this._invoke=Z}function r(J,K,Z){var le=w;return function(de,Te){if(le===N)throw new Error("Generator is already running");if(le===F){if(de==="throw")throw Te;return v()}for(Z.method=de,Z.arg=Te;;){var we=Z.delegate;if(we){var Ie=l(we,Z);if(Ie){if(Ie===z)continue;return Ie}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(le===w)throw le=F,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);le=N;var _e=f(J,K,Z);if(_e.type==="normal"){if(le=Z.done?F:R,_e.arg===z)continue;return{value:_e.arg,done:Z.done}}_e.type==="throw"&&(le=F,Z.method="throw",Z.arg=_e.arg)}}}function l(J,K){var Z=J.iterator[K.method];if(Z===y){if(K.delegate=null,K.method==="throw"){if(J.iterator.return&&(K.method="return",K.arg=y,l(J,K),K.method==="throw"))return z;K.method="throw",K.arg=new TypeError("The iterator does not provide a 'throw' method")}return z}var le=f(Z,J.iterator,K.arg);if(le.type==="throw")return K.method="throw",K.arg=le.arg,K.delegate=null,z;var de=le.arg;return de?de.done?(K[J.resultName]=de.value,K.next=J.nextLoc,K.method!=="return"&&(K.method="next",K.arg=y),K.delegate=null,z):de:(K.method="throw",K.arg=new TypeError("iterator result is not an object"),K.delegate=null,z)}function a(J){var K={tryLoc:J[0]};1 in J&&(K.catchLoc=J[1]),2 in J&&(K.finallyLoc=J[2],K.afterLoc=J[3]),this.tryEntries.push(K)}function i(J){var K=J.completion||{};K.type="normal",delete K.arg,J.completion=K}function t(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(a,this),this.reset(!0)}function d(J){if(J){var K=J[_];if(K)return K.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Z=-1,le=function de(){for(;++Z =0;--le){var de=this.tryEntries[le],Te=de.completion;if(de.tryLoc==="root")return K("end");if(de.tryLoc<=this.prev){var we=g.call(de,"catchLoc"),Ie=g.call(de,"finallyLoc");if(we&&Ie){if(this.prev =0;--Z){var le=this.tryEntries[Z];if(le.tryLoc<=this.prev&&g.call(le,"finallyLoc")&&this.prev =0;--K){var Z=this.tryEntries[K];if(Z.finallyLoc===J)return this.complete(Z.completion,Z.afterLoc),i(Z),z}},catch:function(J){for(var K=this.tryEntries.length-1;K>=0;--K){var Z=this.tryEntries[K];if(Z.tryLoc===J){var le=Z.completion;if(le.type==="throw"){var de=le.arg;i(Z)}return de}}throw new Error("illegal catch attempt")},delegateYield:function(J,K,Z){return this.delegate={iterator:d(J),resultName:K,nextLoc:Z},this.method==="next"&&(this.arg=y),z}}}(function(){return this}()||Function("return this")())},{}],193:[function(C,D,T){function A(c,s){for(var n in c)s[n]=c[n]}function O(c,s,n){return p(c,s,n)}var f=C("buffer"),p=f.Buffer;p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=f:(A(f,T),T.Buffer=O),A(p,O),O.from=function(c,s,n){if(typeof c=="number")throw new TypeError("Argument must not be a number");return p(c,s,n)},O.alloc=function(c,s,n){if(typeof c!="number")throw new TypeError("Argument must be a number");var o=p(c);return s!==void 0?typeof n=="string"?o.fill(s,n):o.fill(s):o.fill(0),o},O.allocUnsafe=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return p(c)},O.allocUnsafeSlow=function(c){if(typeof c!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(c)}},{buffer:38}],194:[function(C,D,T){(function(A){"use strict";function O(v){return v&&v.__esModule?v:{default:v}}var f=C("babel-runtime/core-js/string/from-code-point"),p=O(f),c=C("babel-runtime/core-js/json/stringify"),s=O(c),n=C("babel-runtime/helpers/typeof"),o=O(n),r=C("babel-runtime/core-js/object/define-property"),l=O(r),a=C("babel-runtime/core-js/object/keys"),i=O(a),t=C("babel-runtime/core-js/object/create"),d=O(t);!function(v){function y($,Q){if(!(this instanceof y))return new y($,Q);var xe=this;g(xe),xe.q=xe.c="",xe.bufferCheckPosition=v.MAX_BUFFER_LENGTH,xe.opt=Q||{},xe.opt.lowercase=xe.opt.lowercase||xe.opt.lowercasetags,xe.looseCase=xe.opt.lowercase?"toLowerCase":"toUpperCase",xe.tags=[],xe.closed=xe.closedRoot=xe.sawRoot=!1,xe.tag=xe.error=null,xe.strict=!!$,xe.noscript=!(!$&&!xe.opt.noscript),xe.state=j.BEGIN,xe.strictEntities=xe.opt.strictEntities,xe.ENTITIES=xe.strictEntities?(0,d.default)(v.XML_ENTITIES):(0,d.default)(v.ENTITIES),xe.attribList=[],xe.opt.xmlns&&(xe.ns=(0,d.default)(We)),xe.trackPosition=xe.opt.position!==!1,xe.trackPosition&&(xe.position=xe.line=xe.column=0),N(xe,"onready")}function b($){for(var Q=Math.max(v.MAX_BUFFER_LENGTH,10),xe=0,De=0,dt=ye.length;De Q)switch(ye[De]){case"textNode":z($);break;case"cdata":F($,"oncdata",$.cdata),$.cdata="";break;case"script":F($,"onscript",$.script),$.script="";break;default:B($,"Max buffer length exceeded: "+ye[De])}xe=Math.max(xe,Ne)}var Be=v.MAX_BUFFER_LENGTH-xe;$.bufferCheckPosition=Be+$.position}function g($){for(var Q=0,xe=ye.length;Q "||h($)}function w($,Q){return $.test(Q)}function R($,Q){return!w($,Q)}function N($,Q,xe){$[Q]&&$[Q](xe)}function F($,Q,xe){$.textNode&&z($),N($,Q,xe)}function z($){$.textNode=q($.opt,$.textNode),$.textNode&&N($,"ontext",$.textNode),$.textNode=""}function q($,Q){return $.trim&&(Q=Q.trim()),$.normalize&&(Q=Q.replace(/\s+/g," ")),Q}function B($,Q){return z($),$.trackPosition&&(Q+=` Line: `+$.line+` Column: `+$.column+` Char: `+$.c),Q=new Error(Q),$.error=Q,N($,"onerror",Q),$}function M($){return $.sawRoot&&!$.closedRoot&&G($,"Unclosed root tag"),$.state!==j.BEGIN&&$.state!==j.BEGIN_WHITESPACE&&$.state!==j.TEXT&&B($,"Unexpected end"),z($),$.c="",$.closed=!0,N($,"onend"),y.call($,$.strict,$.opt),$}function G($,Q){if(($===void 0?"undefined":(0,o.default)($))!=="object"||!($ instanceof y))throw new Error("bad call to strictFail");$.strict&&B($,Q)}function J($){$.strict||($.tagName=$.tagName[$.looseCase]());var Q=$.tags[$.tags.length-1]||$,xe=$.tag={name:$.tagName,attributes:{}};$.opt.xmlns&&(xe.ns=Q.ns),$.attribList.length=0,F($,"onopentagstart",xe)}function K($,Q){var xe=$.indexOf(":"),De=xe<0?["",$]:$.split(":"),dt=De[0],Ne=De[1];return Q&&$==="xmlns"&&(dt="xmlns",Ne=""),{prefix:dt,local:Ne}}function Z($){if($.strict||($.attribName=$.attribName[$.looseCase]()),$.attribList.indexOf($.attribName)!==-1||$.tag.attributes.hasOwnProperty($.attribName))return void($.attribName=$.attribValue="");if($.opt.xmlns){var Q=K($.attribName,!0),xe=Q.prefix,De=Q.local;if(xe==="xmlns")if(De==="xml"&&$.attribValue!==Ee)G($,"xml: prefix must be bound to "+Ee+` Actual: `+$.attribValue);else if(De==="xmlns"&&$.attribValue!==me)G($,"xmlns: prefix must be bound to "+me+` Actual: `+$.attribValue);else{var dt=$.tag,Ne=$.tags[$.tags.length-1]||$;dt.ns===Ne.ns&&(dt.ns=(0,d.default)(Ne.ns)),dt.ns[De]=$.attribValue}$.attribList.push([$.attribName,$.attribValue])}else $.tag.attributes[$.attribName]=$.attribValue,F($,"onattribute",{name:$.attribName,value:$.attribValue});$.attribName=$.attribValue=""}function le($,Q){if($.opt.xmlns){var xe=$.tag,De=K($.tagName);xe.prefix=De.prefix,xe.local=De.local,xe.uri=xe.ns[De.prefix]||"",xe.prefix&&!xe.uri&&(G($,"Unbound namespace prefix: "+(0,s.default)($.tagName)),xe.uri=De.prefix);var dt=$.tags[$.tags.length-1]||$;xe.ns&&dt.ns!==xe.ns&&(0,i.default)(xe.ns).forEach(function(Ce){F($,"onopennamespace",{prefix:Ce,uri:xe.ns[Ce]})});for(var Ne=0,Be=$.attribList.length;Ne ",void($.state=j.TEXT);if($.script){if($.tagName!=="script")return $.script+=""+$.tagName+">",$.tagName="",void($.state=j.SCRIPT);F($,"onscript",$.script),$.script=""}var Q=$.tags.length,xe=$.tagName;$.strict||(xe=xe[$.looseCase]());for(var De=xe;Q--&&!($.tags[Q].name===De);)G($,"Unexpected close tag");if(Q<0)return G($,"Unmatched closing tag: "+$.tagName),$.textNode+=""+$.tagName+">",void($.state=j.TEXT);$.tagName=xe;for(var dt=$.tags.length;dt-- >Q;){var Ne=$.tag=$.tags.pop();$.tagName=$.tag.name,F($,"onclosetag",$.tagName);var Be={};for(var tt in Ne.ns)Be[tt]=Ne.ns[tt];var lt=$.tags[$.tags.length-1]||$;$.opt.xmlns&&Ne.ns!==lt.ns&&(0,i.default)(Ne.ns).forEach(function(qe){var Ye=Ne.ns[qe];F($,"onclosenamespace",{prefix:qe,uri:Ye})})}Q===0&&($.closedRoot=!0),$.tagName=$.attribValue=$.attribName="",$.attribList.length=0,$.state=j.TEXT}function Te($){var Q,xe=$.entity,De=xe.toLowerCase(),dt="";return $.ENTITIES[xe]?$.ENTITIES[xe]:$.ENTITIES[De]?$.ENTITIES[De]:(xe=De,xe.charAt(0)==="#"&&(xe.charAt(1)==="x"?(xe=xe.slice(2),Q=parseInt(xe,16),dt=Q.toString(16)):(xe=xe.slice(1),Q=parseInt(xe,10),dt=Q.toString(10))),xe=xe.replace(/^0+/,""),isNaN(Q)||dt.toLowerCase()!==xe?(G($,"Invalid character entity"),"&"+$.entity+";"):(0,p.default)(Q))}function we($,Q){Q==="<"?($.state=j.OPEN_WAKA,$.startTagPosition=$.position):h(Q)||(G($,"Non-whitespace before first tag."),$.textNode=Q,$.state=j.TEXT)}function Ie($,Q){var xe="";return Q<$.length&&(xe=$.charAt(Q)),xe}function _e($){var Q=this;if(this.error)throw this.error;if(Q.closed)return B(Q,"Cannot write after close. Assign an onready handler.");if($===null)return M(Q);($===void 0?"undefined":(0,o.default)($))==="object"&&($=$.toString());for(var xe=0,De="";!(De=Ie($,xe++),Q.c=De,!De);)switch(Q.trackPosition&&(Q.position++,De===` `?(Q.line++,Q.column=0):Q.column++),Q.state){case j.BEGIN:if(Q.state=j.BEGIN_WHITESPACE,De==="\uFEFF")continue;we(Q,De);continue;case j.BEGIN_WHITESPACE:we(Q,De);continue;case j.TEXT:if(Q.sawRoot&&!Q.closedRoot){for(var dt=xe-1;De&&De!=="<"&&De!=="&";)(De=Ie($,xe++))&&Q.trackPosition&&(Q.position++,De===` `?(Q.line++,Q.column=0):Q.column++);Q.textNode+=$.substring(dt,xe-1)}De!=="<"||Q.sawRoot&&Q.closedRoot&&!Q.strict?(h(De)||Q.sawRoot&&!Q.closedRoot||G(Q,"Text data outside of root node."),De==="&"?Q.state=j.TEXT_ENTITY:Q.textNode+=De):(Q.state=j.OPEN_WAKA,Q.startTagPosition=Q.position);continue;case j.SCRIPT:De==="<"?Q.state=j.SCRIPT_ENDING:Q.script+=De;continue;case j.SCRIPT_ENDING:De==="/"?Q.state=j.CLOSE_TAG:(Q.script+="<"+De,Q.state=j.SCRIPT);continue;case j.OPEN_WAKA:if(De==="!")Q.state=j.SGML_DECL,Q.sgmlDecl="";else if(!h(De))if(w(He,De))Q.state=j.OPEN_TAG,Q.tagName=De;else if(De==="/")Q.state=j.CLOSE_TAG,Q.tagName="";else if(De==="?")Q.state=j.PROC_INST,Q.procInstName=Q.procInstBody="";else{if(G(Q,"Unencoded <"),Q.startTagPosition+1 "?(F(Q,"onsgmldeclaration",Q.sgmlDecl),Q.sgmlDecl="",Q.state=j.TEXT):(E(De)&&(Q.state=j.SGML_DECL_QUOTED),Q.sgmlDecl+=De);continue;case j.SGML_DECL_QUOTED:De===Q.q&&(Q.state=j.SGML_DECL,Q.q=""),Q.sgmlDecl+=De;continue;case j.DOCTYPE:De===">"?(Q.state=j.TEXT,F(Q,"ondoctype",Q.doctype),Q.doctype=!0):(Q.doctype+=De,De==="["?Q.state=j.DOCTYPE_DTD:E(De)&&(Q.state=j.DOCTYPE_QUOTED,Q.q=De));continue;case j.DOCTYPE_QUOTED:Q.doctype+=De,De===Q.q&&(Q.q="",Q.state=j.DOCTYPE);continue;case j.DOCTYPE_DTD:Q.doctype+=De,De==="]"?Q.state=j.DOCTYPE:E(De)&&(Q.state=j.DOCTYPE_DTD_QUOTED,Q.q=De);continue;case j.DOCTYPE_DTD_QUOTED:Q.doctype+=De,De===Q.q&&(Q.state=j.DOCTYPE_DTD,Q.q="");continue;case j.COMMENT:De==="-"?Q.state=j.COMMENT_ENDING:Q.comment+=De;continue;case j.COMMENT_ENDING:De==="-"?(Q.state=j.COMMENT_ENDED,Q.comment=q(Q.opt,Q.comment),Q.comment&&F(Q,"oncomment",Q.comment),Q.comment=""):(Q.comment+="-"+De,Q.state=j.COMMENT);continue;case j.COMMENT_ENDED:De!==">"?(G(Q,"Malformed comment"),Q.comment+="--"+De,Q.state=j.COMMENT):Q.state=j.TEXT;continue;case j.CDATA:De==="]"?Q.state=j.CDATA_ENDING:Q.cdata+=De;continue;case j.CDATA_ENDING:De==="]"?Q.state=j.CDATA_ENDING_2:(Q.cdata+="]"+De,Q.state=j.CDATA);continue;case j.CDATA_ENDING_2:De===">"?(Q.cdata&&F(Q,"oncdata",Q.cdata),F(Q,"onclosecdata"),Q.cdata="",Q.state=j.TEXT):De==="]"?Q.cdata+="]":(Q.cdata+="]]"+De,Q.state=j.CDATA);continue;case j.PROC_INST:De==="?"?Q.state=j.PROC_INST_ENDING:h(De)?Q.state=j.PROC_INST_BODY:Q.procInstName+=De;continue;case j.PROC_INST_BODY:if(!Q.procInstBody&&h(De))continue;De==="?"?Q.state=j.PROC_INST_ENDING:Q.procInstBody+=De;continue;case j.PROC_INST_ENDING:De===">"?(F(Q,"onprocessinginstruction",{name:Q.procInstName,body:Q.procInstBody}),Q.procInstName=Q.procInstBody="",Q.state=j.TEXT):(Q.procInstBody+="?"+De,Q.state=j.PROC_INST_BODY);continue;case j.OPEN_TAG:w(it,De)?Q.tagName+=De:(J(Q),De===">"?le(Q):De==="/"?Q.state=j.OPEN_TAG_SLASH:(h(De)||G(Q,"Invalid character in tag name"),Q.state=j.ATTRIB));continue;case j.OPEN_TAG_SLASH:De===">"?(le(Q,!0),de(Q)):(G(Q,"Forward-slash in opening tag not followed by >"),Q.state=j.ATTRIB);continue;case j.ATTRIB:if(h(De))continue;De===">"?le(Q):De==="/"?Q.state=j.OPEN_TAG_SLASH:w(He,De)?(Q.attribName=De,Q.attribValue="",Q.state=j.ATTRIB_NAME):G(Q,"Invalid attribute name");continue;case j.ATTRIB_NAME:De==="="?Q.state=j.ATTRIB_VALUE:De===">"?(G(Q,"Attribute without value"),Q.attribValue=Q.attribName,Z(Q),le(Q)):h(De)?Q.state=j.ATTRIB_NAME_SAW_WHITE:w(it,De)?Q.attribName+=De:G(Q,"Invalid attribute name");continue;case j.ATTRIB_NAME_SAW_WHITE:if(De==="=")Q.state=j.ATTRIB_VALUE;else{if(h(De))continue;G(Q,"Attribute without value"),Q.tag.attributes[Q.attribName]="",Q.attribValue="",F(Q,"onattribute",{name:Q.attribName,value:""}),Q.attribName="",De===">"?le(Q):w(He,De)?(Q.attribName=De,Q.state=j.ATTRIB_NAME):(G(Q,"Invalid attribute name"),Q.state=j.ATTRIB)}continue;case j.ATTRIB_VALUE:if(h(De))continue;E(De)?(Q.q=De,Q.state=j.ATTRIB_VALUE_QUOTED):(G(Q,"Unquoted attribute value"),Q.state=j.ATTRIB_VALUE_UNQUOTED,Q.attribValue=De);continue;case j.ATTRIB_VALUE_QUOTED:if(De!==Q.q){De==="&"?Q.state=j.ATTRIB_VALUE_ENTITY_Q:Q.attribValue+=De;continue}Z(Q),Q.q="",Q.state=j.ATTRIB_VALUE_CLOSED;continue;case j.ATTRIB_VALUE_CLOSED:h(De)?Q.state=j.ATTRIB:De===">"?le(Q):De==="/"?Q.state=j.OPEN_TAG_SLASH:w(He,De)?(G(Q,"No whitespace between attributes"),Q.attribName=De,Q.attribValue="",Q.state=j.ATTRIB_NAME):G(Q,"Invalid attribute name");continue;case j.ATTRIB_VALUE_UNQUOTED:if(!S(De)){De==="&"?Q.state=j.ATTRIB_VALUE_ENTITY_U:Q.attribValue+=De;continue}Z(Q),De===">"?le(Q):Q.state=j.ATTRIB;continue;case j.CLOSE_TAG:if(Q.tagName)De===">"?de(Q):w(it,De)?Q.tagName+=De:Q.script?(Q.script+=""+Q.tagName,Q.tagName="",Q.state=j.SCRIPT):(h(De)||G(Q,"Invalid tagname in closing tag"),Q.state=j.CLOSE_TAG_SAW_WHITE);else{if(h(De))continue;R(He,De)?Q.script?(Q.script+=""+De,Q.state=j.SCRIPT):G(Q,"Invalid tagname in closing tag."):Q.tagName=De}continue;case j.CLOSE_TAG_SAW_WHITE:if(h(De))continue;De===">"?de(Q):G(Q,"Invalid characters in closing tag");continue;case j.TEXT_ENTITY:case j.ATTRIB_VALUE_ENTITY_Q:case j.ATTRIB_VALUE_ENTITY_U:var Be,tt;switch(Q.state){case j.TEXT_ENTITY:Be=j.TEXT,tt="textNode";break;case j.ATTRIB_VALUE_ENTITY_Q:Be=j.ATTRIB_VALUE_QUOTED,tt="attribValue";break;case j.ATTRIB_VALUE_ENTITY_U:Be=j.ATTRIB_VALUE_UNQUOTED,tt="attribValue"}De===";"?(Q[tt]+=Te(Q),Q.entity="",Q.state=Be):w(Q.entity.length?P:re,De)?Q.entity+=De:(G(Q,"Invalid character in entity name"),Q[tt]+="&"+Q.entity+De,Q.entity="",Q.state=Be);continue;default:throw new Error(Q,"Unknown state: "+Q.state)}return Q.position>=Q.bufferCheckPosition&&b(Q),Q}v.parser=function($,Q){return new y($,Q)},v.SAXParser=y,v.SAXStream=x,v.createStream=_,v.MAX_BUFFER_LENGTH=65536;var ye=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];v.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],d.default||(Object.create=function($){function Q(){}return Q.prototype=$,new Q}),i.default||(Object.keys=function($){var Q=[];for(var xe in $)$.hasOwnProperty(xe)&&Q.push(xe);return Q}),y.prototype={end:function(){M(this)},write:_e,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){m(this)}};var Ke;try{Ke=C("stream").Stream}catch($){Ke=function(){}}var Me=v.EVENTS.filter(function($){return $!=="error"&&$!=="end"});x.prototype=(0,d.default)(Ke.prototype,{constructor:{value:x}}),x.prototype.write=function($){if(typeof A=="function"&&typeof A.isBuffer=="function"&&A.isBuffer($)){if(!this._decoder){var Q=C("string_decoder").StringDecoder;this._decoder=new Q("utf8")}$=this._decoder.write($)}return this._parser.write($.toString()),this.emit("data",$),!0},x.prototype.end=function($){return $&&$.length&&this.write($),this._parser.end(),!0},x.prototype.on=function($,Q){var xe=this;return xe._parser["on"+$]||Me.indexOf($)===-1||(xe._parser["on"+$]=function(){var De=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);De.splice(0,0,$),xe.emit.apply(xe,De)}),Ke.prototype.on.call(xe,$,Q)};var Fe="[CDATA[",Ge="DOCTYPE",Ee="http://www.w3.org/XML/1998/namespace",me="http://www.w3.org/2000/xmlns/",We={xml:Ee,xmlns:me},He=/[:_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]/,it=/[:_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-]/,re=/[#:_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]/,P=/[#:_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-]/,j=0;v.STATE={BEGIN:j++,BEGIN_WHITESPACE:j++,TEXT:j++,TEXT_ENTITY:j++,OPEN_WAKA:j++,SGML_DECL:j++,SGML_DECL_QUOTED:j++,DOCTYPE:j++,DOCTYPE_QUOTED:j++,DOCTYPE_DTD:j++,DOCTYPE_DTD_QUOTED:j++,COMMENT_STARTING:j++,COMMENT:j++,COMMENT_ENDING:j++,COMMENT_ENDED:j++,CDATA:j++,CDATA_ENDING:j++,CDATA_ENDING_2:j++,PROC_INST:j++,PROC_INST_BODY:j++,PROC_INST_ENDING:j++,OPEN_TAG:j++,OPEN_TAG_SLASH:j++,ATTRIB:j++,ATTRIB_NAME:j++,ATTRIB_NAME_SAW_WHITE:j++,ATTRIB_VALUE:j++,ATTRIB_VALUE_QUOTED:j++,ATTRIB_VALUE_CLOSED:j++,ATTRIB_VALUE_UNQUOTED:j++,ATTRIB_VALUE_ENTITY_Q:j++,ATTRIB_VALUE_ENTITY_U:j++,CLOSE_TAG:j++,CLOSE_TAG_SAW_WHITE:j++,SCRIPT:j++,SCRIPT_ENDING:j++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,i.default)(v.ENTITIES).forEach(function($){var Q=v.ENTITIES[$],xe=typeof Q=="number"?String.fromCharCode(Q):Q;v.ENTITIES[$]=xe});for(var ee in v.STATE)v.STATE[v.STATE[ee]]=ee;j=v.STATE,p.default||function(){var $=String.fromCharCode,Q=Math.floor,xe=function(){var De,dt,Ne=[],Be=-1,tt=arguments.length;if(!tt)return"";for(var lt="";++Be1114111||Q(qe)!==qe)throw RangeError("Invalid code point: "+qe);qe<=65535?Ne.push(qe):(qe-=65536,De=55296+(qe>>10),dt=qe%1024+56320,Ne.push(De,dt)),(Be+1===tt||Ne.length>16384)&&(lt+=$.apply(null,Ne),Ne.length=0)}return lt};l.default?Object.defineProperty(String,"fromCodePoint",{value:xe,configurable:!0,writable:!0}):String.fromCodePoint=xe}()}(T===void 0?(void 0).sax={}:T)}).call(this,C("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(C,D,T){function A(){O.call(this)}D.exports=A;var O=C("events").EventEmitter;C("inherits")(A,O),A.Readable=C("readable-stream/readable.js"),A.Writable=C("readable-stream/writable.js"),A.Duplex=C("readable-stream/duplex.js"),A.Transform=C("readable-stream/transform.js"),A.PassThrough=C("readable-stream/passthrough.js"),A.Stream=A,A.prototype.pipe=function(f,p){function c(t){f.writable&&f.write(t)===!1&&a.pause&&a.pause()}function s(){a.readable&&a.resume&&a.resume()}function n(){i||(i=!0,f.end())}function o(){i||(i=!0,typeof f.destroy=="function"&&f.destroy())}function r(t){if(l(),O.listenerCount(this,"error")===0)throw t}function l(){a.removeListener("data",c),f.removeListener("drain",s),a.removeListener("end",n),a.removeListener("close",o),a.removeListener("error",r),f.removeListener("error",r),a.removeListener("end",l),a.removeListener("close",l),f.removeListener("close",l)}var a=this;a.on("data",c),f.on("drain",s),f._isStdio||p&&p.end===!1||(a.on("end",n),a.on("close",o));var i=!1;return a.on("error",r),f.on("error",r),a.on("end",l),a.on("close",l),f.on("close",l),f.emit("pipe",a),f}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(C,D,T){(function(A){var O=C("./lib/request"),f=C("./lib/response"),p=C("xtend"),c=C("builtin-status-codes"),s=C("url"),n=T;n.request=function(o,r){o=typeof o=="string"?s.parse(o):p(o);var l=A.location.protocol.search(/^https?:$/)===-1?"http:":"",a=o.protocol||l,i=o.hostname||o.host,t=o.port,d=o.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),o.url=(i?a+"//"+i:"")+(t?":"+t:"")+d,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var v=new O(o);return r&&v.on("response",r),v},n.get=function(o,r){var l=n.request(o,r);return l.end(),l},n.ClientRequest=O,n.IncomingMessage=f.IncomingMessage,n.Agent=function(){},n.Agent.defaultMaxSockets=4,n.globalAgent=new n.Agent,n.STATUS_CODES=c,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 ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(C,D,T){(function(A){"use strict";function O(){if(c!==void 0)return c;if(A.XMLHttpRequest){c=new A.XMLHttpRequest;try{c.open("GET",A.XDomainRequest?"/":"https://example.com")}catch(o){c=null}}else c=null;return c}function f(o){var r=O();if(!r)return!1;try{return r.responseType=o,r.responseType===o}catch(l){}return!1}function p(o){return typeof o=="function"}T.fetch=p(A.fetch)&&p(A.ReadableStream),T.writableStream=p(A.WritableStream),T.abortController=p(A.AbortController),T.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),T.blobConstructor=!0}catch(o){}var c,s=A.ArrayBuffer!==void 0,n=s&&p(A.ArrayBuffer.prototype.slice);T.arraybuffer=T.fetch||s&&f("arraybuffer"),T.msstream=!T.fetch&&n&&f("ms-stream"),T.mozchunkedarraybuffer=!T.fetch&&s&&f("moz-chunked-arraybuffer"),T.overrideMimeType=T.fetch||!!O()&&p(O().overrideMimeType),T.vbArray=p(A.VBArray),c=null}).call(this,typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(C,D,T){(function(A,O,f){"use strict";function p(b,g){return o.fetch&&g?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&b?"arraybuffer":o.vbArray&&b?"text:vbarray":"text"}function c(b){try{var g=b.status;return g!==null&&g!==0}catch(m){return!1}}var s=C("babel-runtime/core-js/object/keys"),n=function(b){return b&&b.__esModule?b:{default:b}}(s),o=C("./capability"),r=C("inherits"),l=C("./response"),a=C("readable-stream"),i=C("to-arraybuffer"),t=l.IncomingMessage,d=l.readyStates,v=D.exports=function(b){var g=this;a.Writable.call(g),g._opts=b,g._body=[],g._headers={},b.auth&&g.setHeader("Authorization","Basic "+new f(b.auth).toString("base64")),(0,n.default)(b.headers).forEach(function(x){g.setHeader(x,b.headers[x])});var m,_=!0;if(b.mode==="disable-fetch"||"requestTimeout"in b&&!o.abortController)_=!1,m=!0;else if(b.mode==="prefer-streaming")m=!1;else if(b.mode==="allow-wrong-content-type")m=!o.overrideMimeType;else{if(b.mode&&b.mode!=="default"&&b.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");m=!0}g._mode=p(m,_),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};r(v,a.Writable),v.prototype.setHeader=function(b,g){var m=this,_=b.toLowerCase();y.indexOf(_)===-1&&(m._headers[_]={name:b,value:g})},v.prototype.getHeader=function(b){var g=this._headers[b.toLowerCase()];return g?g.value:null},v.prototype.removeHeader=function(b){delete this._headers[b.toLowerCase()]},v.prototype._onFinish=function(){var b=this;if(!b._destroyed){var g=b._opts,m=b._headers,_=null;g.method!=="GET"&&g.method!=="HEAD"&&(_=o.arraybuffer?i(f.concat(b._body)):o.blobConstructor?new O.Blob(b._body.map(function(w){return i(w)}),{type:(m["content-type"]||{}).value||""}):f.concat(b._body).toString());var x=[];if((0,n.default)(m).forEach(function(w){var R=m[w].name,N=m[w].value;Array.isArray(N)?N.forEach(function(F){x.push([R,F])}):x.push([R,N])}),b._mode==="fetch"){var h=null;if(o.abortController){var E=new AbortController;h=E.signal,b._fetchAbortController=E,"requestTimeout"in g&&g.requestTimeout!==0&&(b._fetchTimer=O.setTimeout(function(){b.emit("requestTimeout"),b._fetchAbortController&&b._fetchAbortController.abort()},g.requestTimeout))}O.fetch(b._opts.url,{method:b._opts.method,headers:x,body:_||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:h}).then(function(w){b._fetchResponse=w,b._connect()},function(w){O.clearTimeout(b._fetchTimer),b._destroyed||b.emit("error",w)})}else{var S=b._xhr=new O.XMLHttpRequest;try{S.open(b._opts.method,b._opts.url,!0)}catch(w){return void A.nextTick(function(){b.emit("error",w)})}"responseType"in S&&(S.responseType=b._mode.split(":")[0]),"withCredentials"in S&&(S.withCredentials=!!g.withCredentials),b._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(S.timeout=g.requestTimeout,S.ontimeout=function(){b.emit("requestTimeout")}),x.forEach(function(w){S.setRequestHeader(w[0],w[1])}),b._response=null,S.onreadystatechange=function(){switch(S.readyState){case d.LOADING:case d.DONE:b._onXHRProgress()}},b._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){b._onXHRProgress()}),S.onerror=function(){b._destroyed||b.emit("error",new Error("XHR error"))};try{S.send(_)}catch(w){return void A.nextTick(function(){b.emit("error",w)})}}}},v.prototype._onXHRProgress=function(){var b=this;c(b._xhr)&&!b._destroyed&&(b._response||b._connect(),b._response._onXHRProgress())},v.prototype._connect=function(){var b=this;b._destroyed||(b._response=new t(b._xhr,b._fetchResponse,b._mode,b._fetchTimer),b._response.on("error",function(g){b.emit("error",g)}),b.emit("response",b._response))},v.prototype._write=function(b,g,m){this._body.push(b),m()},v.prototype.abort=v.prototype.destroy=function(){var b=this;b._destroyed=!0,O.clearTimeout(b._fetchTimer),b._response&&(b._response._destroyed=!0),b._xhr?b._xhr.abort():b._fetchAbortController&&b._fetchAbortController.abort()},v.prototype.end=function(b,g,m){var _=this;typeof b=="function"&&(m=b,b=void 0),a.Writable.prototype.end.call(_,b,g,m)},v.prototype.flushHeaders=function(){},v.prototype.setTimeout=function(){},v.prototype.setNoDelay=function(){},v.prototype.setSocketKeepAlive=function(){};var y=["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,C("_process"),typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{},C("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(C,D,T){(function(A,O,f){"use strict";var p=C("babel-runtime/core-js/promise"),c=function(a){return a&&a.__esModule?a:{default:a}}(p),s=C("./capability"),n=C("inherits"),o=C("readable-stream"),r=T.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=T.IncomingMessage=function(a,i,t,d){var v=this;if(o.Readable.call(v),v._mode=t,v.headers={},v.rawHeaders=[],v.trailers={},v.rawTrailers=[],v.on("end",function(){A.nextTick(function(){v.emit("close")})}),t==="fetch"){if(v._fetchResponse=i,v.url=i.url,v.statusCode=i.status,v.statusMessage=i.statusText,i.headers.forEach(function(_,x){v.headers[x.toLowerCase()]=_,v.rawHeaders.push(x,_)}),s.writableStream){var y=new WritableStream({write:function(_){return new c.default(function(x,h){v._destroyed?h():v.push(new f(_))?x():v._resumeFetch=x})},close:function(){O.clearTimeout(d),v._destroyed||v.push(null)},abort:function(_){v._destroyed||v.emit("error",_)}});try{return void i.body.pipeTo(y).catch(function(_){O.clearTimeout(d),v._destroyed||v.emit("error",_)})}catch(_){}}var b=i.body.getReader();!function _(){b.read().then(function(x){if(!v._destroyed){if(x.done)return O.clearTimeout(d),void v.push(null);v.push(new f(x.value)),_()}}).catch(function(x){O.clearTimeout(d),v._destroyed||v.emit("error",x)})}()}else if(v._xhr=a,v._pos=0,v.url=a.responseURL,v.statusCode=a.status,v.statusMessage=a.statusText,a.getAllResponseHeaders().split(/\r?\n/).forEach(function(_){var x=_.match(/^([^:]+):\s*(.*)/);if(x){var h=x[1].toLowerCase();h==="set-cookie"?(v.headers[h]===void 0&&(v.headers[h]=[]),v.headers[h].push(x[2])):v.headers[h]!==void 0?v.headers[h]+=", "+x[2]:v.headers[h]=x[2],v.rawHeaders.push(x[1],x[2])}}),v._charset="x-user-defined",!s.overrideMimeType){var g=v.rawHeaders["mime-type"];if(g){var m=g.match(/;\s*charset=([^;])(;|$)/);m&&(v._charset=m[1].toLowerCase())}v._charset||(v._charset="utf-8")}};n(l,o.Readable),l.prototype._read=function(){var a=this,i=a._resumeFetch;i&&(a._resumeFetch=null,i())},l.prototype._onXHRProgress=function(){var a=this,i=a._xhr,t=null;switch(a._mode){case"text:vbarray":if(i.readyState!==r.DONE)break;try{t=new O.VBArray(i.responseBody).toArray()}catch(g){}if(t!==null){a.push(new f(t));break}case"text":try{t=i.responseText}catch(g){a._mode="text:vbarray";break}if(t.length>a._pos){var d=t.substr(a._pos);if(a._charset==="x-user-defined"){for(var v=new f(d.length),y=0;y a._pos&&(a.push(new f(new Uint8Array(b.result.slice(a._pos)))),a._pos=b.result.byteLength)},b.onload=function(){a.push(null)},b.readAsArrayBuffer(t)}a._xhr.readyState===r.DONE&&a._mode!=="ms-stream"&&a.push(null)}}).call(this,C("_process"),typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{},C("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(C,D,T){"use strict";function A(g){if(!g)return"utf8";for(var m;;)switch(g){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 g;default:if(m)return;g=(""+g).toLowerCase(),m=!0}}function O(g){var m=A(g);if(typeof m!="string"&&(y.isEncoding===b||!b(g)))throw new Error("Unknown encoding: "+g);return m||g}function f(g){this.encoding=O(g);var m;switch(this.encoding){case"utf16le":this.text=l,this.end=a,m=4;break;case"utf8":this.fillLast=n,m=4;break;case"base64":this.text=i,this.end=t,m=3;break;default:return this.write=d,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(m)}function p(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function c(g,m,_){var x=m.length-1;if(x<_)return 0;var h=p(m[x]);return h>=0?(h>0&&(g.lastNeed=h-1),h):--x<_||h===-2?0:(h=p(m[x]))>=0?(h>0&&(g.lastNeed=h-2),h):--x<_||h===-2?0:(h=p(m[x]),h>=0?(h>0&&(h===2?h=0:g.lastNeed=h-3),h):0)}function s(g,m,_){if((192&m[0])!=128)return g.lastNeed=0,"\u951F\uFFFD";if(g.lastNeed>1&&m.length>1){if((192&m[1])!=128)return g.lastNeed=1,"\u951F\uFFFD";if(g.lastNeed>2&&m.length>2&&(192&m[2])!=128)return g.lastNeed=2,"\u951F\uFFFD"}}function n(g){var m=this.lastTotal-this.lastNeed,_=s(this,g,m);return _!==void 0?_:this.lastNeed<=g.length?(g.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,m,0,g.length),void(this.lastNeed-=g.length))}function o(g,m){var _=c(this,g,m);if(!this.lastNeed)return g.toString("utf8",m);this.lastTotal=_;var x=g.length-(_-this.lastNeed);return g.copy(this.lastChar,0,x),g.toString("utf8",m,x)}function r(g){var m=g&&g.length?this.write(g):"";return this.lastNeed?m+"\u951F\uFFFD":m}function l(g,m){if((g.length-m)%2==0){var _=g.toString("utf16le",m);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",m,g.length-1)}function a(g){var m=g&&g.length?this.write(g):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,_)}return m}function i(g,m){var _=(g.length-m)%3;return _===0?g.toString("base64",m):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",m,g.length-_))}function t(g){var m=g&&g.length?this.write(g):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function d(g){return g.toString(this.encoding)}function v(g){return g&&g.length?this.write(g):""}var y=C("safe-buffer").Buffer,b=y.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};T.StringDecoder=f,f.prototype.write=function(g){if(g.length===0)return"";var m,_;if(this.lastNeed){if((m=this.fillLast(g))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _ =0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},l))},T.setImmediate=typeof A=="function"?A:function(r){var l=o++,a=!(arguments.length<2)&&s.call(arguments,1);return n[l]=!0,p(function(){n[l]&&(a?r.apply(null,a):r.call(null),T.clearImmediate(l))}),l},T.clearImmediate=typeof O=="function"?O:function(r){delete n[r]}}).call(this,C("timers").setImmediate,C("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(C,D,T){var A=C("buffer").Buffer;D.exports=function(O){if(O instanceof Uint8Array){if(O.byteOffset===0&&O.byteLength===O.buffer.byteLength)return O.buffer;if(typeof O.buffer.slice=="function")return O.buffer.slice(O.byteOffset,O.byteOffset+O.byteLength)}if(A.isBuffer(O)){for(var f=new Uint8Array(O.length),p=O.length,c=0;c ",'"',"`"," ","\r",` `," "],i=["{","}","|","\\","^","`"].concat(a),t=["'"].concat(i),d=["%","/","?",";","#"].concat(t),v=["/","?","#"],y=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=C("querystring");A.prototype.parse=function(h,E,S){if(!n.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var w=h.indexOf("?"),R=w!==-1&&w
127?ye+="x":ye+=_e[Ke];if(!ye.match(y)){var Fe=we.slice(0,K),Ge=we.slice(K+1),Ee=_e.match(b);Ee&&(Fe.push(Ee[1]),Ge.unshift(Ee[2])),Ge.length&&(z="/"+Ge.join(".")+z),this.hostname=Fe.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Te||(this.hostname=s.toASCII(this.hostname));var me=this.port?":"+this.port:"",We=this.hostname||"";this.host=We+me,this.href+=this.host,Te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),z[0]!=="/"&&(z="/"+z))}if(!g[M])for(var K=0,Ie=t.length;K 0)&&S.host.split("@");ye&&(S.auth=ye.shift(),S.host=S.hostname=ye.shift())}return S.search=h.search,S.query=h.query,n.isNull(S.pathname)&&n.isNull(S.search)||(S.path=(S.pathname?S.pathname:"")+(S.search?S.search:"")),S.href=S.format(),S}if(!we.length)return S.pathname=null,S.search?S.path="/"+S.search:S.path=null,S.href=S.format(),S;for(var Ke=we.slice(-1)[0],Me=(S.host||h.host||we.length>1)&&(Ke==="."||Ke==="..")||Ke==="",Fe=0,Ge=we.length;Ge>=0;Ge--)Ke=we[Ge],Ke==="."?we.splice(Ge,1):Ke===".."?(we.splice(Ge,1),Fe++):Fe&&(we.splice(Ge,1),Fe--);if(!de&&!Te)for(;Fe--;Fe)we.unshift("..");!de||we[0]===""||we[0]&&we[0].charAt(0)==="/"||we.unshift(""),Me&&we.join("/").substr(-1)!=="/"&&we.push("");var Ee=we[0]===""||we[0]&&we[0].charAt(0)==="/";if(_e){S.hostname=S.host=Ee?"":we.length?we.shift():"";var ye=!!(S.host&&S.host.indexOf("@")>0)&&S.host.split("@");ye&&(S.auth=ye.shift(),S.host=S.hostname=ye.shift())}return de=de||S.host&&we.length,de&&!Ee&&we.unshift(""),we.length?S.pathname=we.join("/"):(S.pathname=null,S.path=null),n.isNull(S.pathname)&&n.isNull(S.search)||(S.path=(S.pathname?S.pathname:"")+(S.search?S.search:"")),S.auth=h.auth||S.auth,S.slashes=S.slashes||h.slashes,S.href=S.format(),S},A.prototype.parseHost=function(){var h=this.host,E=r.exec(h);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),h=h.substr(0,h.length-E.length)),h&&(this.hostname=h)}},{"./util":204,punycode:174,querystring:177}],204:[function(C,D,T){"use strict";D.exports={isString:function(A){return typeof A=="string"},isObject:function(A){return typeof A=="object"&&A!==null},isNull:function(A){return A===null},isNullOrUndefined:function(A){return A==null}}},{}],205:[function(C,D,T){(function(A){function O(p,c){function s(){if(!n){if(f("throwDeprecation"))throw new Error(c);f("traceDeprecation")?console.trace(c):console.warn(c),n=!0}return p.apply(this,arguments)}if(f("noDeprecation"))return p;var n=!1;return s}function f(p){try{if(!A.localStorage)return!1}catch(s){return!1}var c=A.localStorage[p];return c!=null&&String(c).toLowerCase()==="true"}D.exports=O}).call(this,typeof ce!="undefined"?ce:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(C,D,T){D.exports=function(A){return A&&typeof A=="object"&&typeof A.copy=="function"&&typeof A.fill=="function"&&typeof A.readUInt8=="function"}},{}],207:[function(C,D,T){(function(A,O){function f(K,Z){var le={seen:[],stylize:c};return arguments.length>=3&&(le.depth=arguments[2]),arguments.length>=4&&(le.colors=arguments[3]),d(Z)?le.showHidden=Z:Z&&T._extend(le,Z),_(le.showHidden)&&(le.showHidden=!1),_(le.depth)&&(le.depth=2),_(le.colors)&&(le.colors=!1),_(le.customInspect)&&(le.customInspect=!0),le.colors&&(le.stylize=p),n(le,K,le.depth)}function p(K,Z){var le=f.styles[Z];return le?"["+f.colors[le][0]+"m"+K+"["+f.colors[le][1]+"m":K}function c(K,Z){return K}function s(K){var Z={};return K.forEach(function(le,de){Z[le]=!0}),Z}function n(K,Z,le){if(K.customInspect&&Z&&w(Z.inspect)&&Z.inspect!==T.inspect&&(!Z.constructor||Z.constructor.prototype!==Z)){var de=Z.inspect(le,K);return g(de)||(de=n(K,de,le)),de}var Te=o(K,Z);if(Te)return Te;var we=Object.keys(Z),Ie=s(we);if(K.showHidden&&(we=Object.getOwnPropertyNames(Z)),S(Z)&&(we.indexOf("message")>=0||we.indexOf("description")>=0))return r(Z);if(we.length===0){if(w(Z)){var _e=Z.name?": "+Z.name:"";return K.stylize("[Function"+_e+"]","special")}if(x(Z))return K.stylize(RegExp.prototype.toString.call(Z),"regexp");if(E(Z))return K.stylize(Date.prototype.toString.call(Z),"date");if(S(Z))return r(Z)}var ye="",Ke=!1,Me=["{","}"];if((t(Z)&&(Ke=!0,Me=["[","]"]),w(Z))&&(ye=" [Function"+(Z.name?": "+Z.name:"")+"]"),x(Z)&&(ye=" "+RegExp.prototype.toString.call(Z)),E(Z)&&(ye=" "+Date.prototype.toUTCString.call(Z)),S(Z)&&(ye=" "+r(Z)),we.length===0&&(!Ke||Z.length==0))return Me[0]+ye+Me[1];if(le<0)return x(Z)?K.stylize(RegExp.prototype.toString.call(Z),"regexp"):K.stylize("[Object]","special");K.seen.push(Z);var Fe;return Fe=Ke?l(K,Z,le,Ie,we):we.map(function(Ge){return a(K,Z,le,Ie,Ge,Ke)}),K.seen.pop(),i(Fe,ye,Me)}function o(K,Z){if(_(Z))return K.stylize("undefined","undefined");if(g(Z)){var le="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(le,"string")}return b(Z)?K.stylize(""+Z,"number"):d(Z)?K.stylize(""+Z,"boolean"):v(Z)?K.stylize("null","null"):void 0}function r(K){return"["+Error.prototype.toString.call(K)+"]"}function l(K,Z,le,de,Te){for(var we=[],Ie=0,_e=Z.length;Ie<_e;++Ie)q(Z,String(Ie))?we.push(a(K,Z,le,de,String(Ie),!0)):we.push("");return Te.forEach(function(ye){ye.match(/^\d+$/)||we.push(a(K,Z,le,de,ye,!0))}),we}function a(K,Z,le,de,Te,we){var Ie,_e,ye;if(ye=Object.getOwnPropertyDescriptor(Z,Te)||{value:Z[Te]},ye.get?_e=ye.set?K.stylize("[Getter/Setter]","special"):K.stylize("[Getter]","special"):ye.set&&(_e=K.stylize("[Setter]","special")),q(de,Te)||(Ie="["+Te+"]"),_e||(K.seen.indexOf(ye.value)<0?(_e=v(le)?n(K,ye.value,null):n(K,ye.value,le-1),_e.indexOf(` `)>-1&&(_e=we?_e.split(` `).map(function(Ke){return" "+Ke}).join(` `).substr(2):` `+_e.split(` `).map(function(Ke){return" "+Ke}).join(` `))):_e=K.stylize("[Circular]","special")),_(Ie)){if(we&&Te.match(/^\d+$/))return _e;Ie=JSON.stringify(""+Te),Ie.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ie=Ie.substr(1,Ie.length-2),Ie=K.stylize(Ie,"name")):(Ie=Ie.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ie=K.stylize(Ie,"string"))}return Ie+": "+_e}function i(K,Z,le){var de=0;return K.reduce(function(Te,we){return de++,we.indexOf(` `)>=0&&de++,Te+we.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?le[0]+(Z===""?"":Z+` `)+" "+K.join(`, `)+" "+le[1]:le[0]+Z+" "+K.join(", ")+" "+le[1]}function t(K){return Array.isArray(K)}function d(K){return typeof K=="boolean"}function v(K){return K===null}function y(K){return K==null}function b(K){return typeof K=="number"}function g(K){return typeof K=="string"}function m(K){return typeof K=="symbol"}function _(K){return K===void 0}function x(K){return h(K)&&N(K)==="[object RegExp]"}function h(K){return typeof K=="object"&&K!==null}function E(K){return h(K)&&N(K)==="[object Date]"}function S(K){return h(K)&&(N(K)==="[object Error]"||K instanceof Error)}function w(K){return typeof K=="function"}function R(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||K===void 0}function N(K){return Object.prototype.toString.call(K)}function F(K){return K<10?"0"+K.toString(10):K.toString(10)}function z(){var K=new Date,Z=[F(K.getHours()),F(K.getMinutes()),F(K.getSeconds())].join(":");return[K.getDate(),J[K.getMonth()],Z].join(" ")}function q(K,Z){return Object.prototype.hasOwnProperty.call(K,Z)}var B=/%[sdj%]/g;T.format=function(K){if(!g(K)){for(var Z=[],le=0;le =Te)return ye;switch(ye){case"%s":return String(de[le++]);case"%d":return Number(de[le++]);case"%j":try{return JSON.stringify(de[le++])}catch(Ke){return"[Circular]"}default:return ye}}),Ie=de[le];le =0||i.indexOf(">")>=0||i.indexOf("<")>=0)},l=function(i){return""},o=function(i){return i.replace("]]>","]]]]>")},T.Builder=function(){function i(t){var d,v,y;this.options={},v=n[.2];for(d in v)a.call(v,d)&&(y=v[d],this.options[d]=y);for(d in t)a.call(t,d)&&(y=t[d],this.options[d]=y)}return i.prototype.buildObject=function(t){var d,v,y,b,g;return d=this.options.attrkey,v=this.options.charkey,(0,c.default)(t).length===1&&this.options.rootName===n[.2].rootName?(g=(0,c.default)(t)[0],t=t[g]):g=this.options.rootName,y=function(m){return function(_,x){var h,E,S,w,R,N;if((x===void 0?"undefined":(0,f.default)(x))!=="object")m.options.cdata&&r(x)?_.raw(l(x)):_.txt(x);else if(Array.isArray(x)){for(w in x)if(a.call(x,w)){E=x[w];for(R in E)S=E[R],_=y(_.ele(R),S).up()}}else for(R in x)if(a.call(x,R))if(E=x[R],R===d){if((E===void 0?"undefined":(0,f.default)(E))==="object")for(h in E)N=E[h],_=_.att(h,N)}else if(R===v)_=m.options.cdata&&r(E)?_.raw(l(E)):_.txt(E);else if(Array.isArray(E))for(w in E)a.call(E,w)&&(S=E[w],_=typeof S=="string"?m.options.cdata&&r(S)?_.ele(R).raw(l(S)).up():_.ele(R,S).up():y(_.ele(R),S).up());else(E===void 0?"undefined":(0,f.default)(E))==="object"?_=y(_.ele(R),E).up():typeof E=="string"&&m.options.cdata&&r(E)?_=_.ele(R).raw(l(E)).up():(E==null&&(E=""),_=_.ele(R,E.toString()).up());return _}}(this),b=s.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),y(b,t).end(this.options.renderOpts)},i}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(C,D,T){"use strict";(function(){T.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(C,D,T){"use strict";function A(o){return o&&o.__esModule?o:{default:o}}var O=C("babel-runtime/core-js/object/get-own-property-names"),f=A(O),p=C("babel-runtime/core-js/object/keys"),c=A(p),s=C("babel-runtime/helpers/typeof"),n=A(s);(function(){var o,r,l,a,i,t,d,v,y=function(m,_){return function(){return m.apply(_,arguments)}},b=function(m,_){function x(){this.constructor=m}for(var h in _)g.call(_,h)&&(m[h]=_[h]);return x.prototype=_.prototype,m.prototype=new x,m.__super__=_.prototype,m},g={}.hasOwnProperty;d=C("sax"),l=C("events"),o=C("./bom"),t=C("./processors"),v=C("timers").setImmediate,r=C("./defaults").defaults,a=function(m){return(m===void 0?"undefined":(0,n.default)(m))==="object"&&m!=null&&(0,c.default)(m).length===0},i=function(m,_,x){var h,E,S;for(h=0,E=m.length;h 0&&(z[w.options.childkey]=B),B=z;return S.length>0?w.assignOrPush(J,q,B):(w.options.explicitRoot&&(G=B,B={},B[q]=G),w.resultObject=B,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),E=function(w){return function(R){var N,F;if(F=S[S.length-1])return F[h]+=R,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||R.replace(/\\n/g,"").trim()!=="")&&(F[w.options.childkey]=F[w.options.childkey]||[],N={"#name":"__text__"},N[h]=R,w.options.normalize&&(N[h]=N[h].replace(/\s{2,}/g," ").trim()),F[w.options.childkey].push(N)),F}}(this),this.saxParser.ontext=E,this.saxParser.oncdata=function(w){return function(R){var N;if(N=E(R))return N.cdata=!0}}()},_.prototype.parseString=function(x,h){var E;h!=null&&typeof h=="function"&&(this.on("end",function(S){return this.reset(),h(null,S)}),this.on("error",function(S){return this.reset(),h(S)}));try{return x=x.toString(),x.trim()===""?(this.emit("end",null),!0):(x=o.stripBOM(x),this.options.async?(this.remaining=x,v(this.processAsync),this.saxParser):this.saxParser.write(x).close())}catch(S){if(E=S,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",E),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw E}},_}(l.EventEmitter),T.parseString=function(m,_,x){var h,E,S;return x!=null?(typeof x=="function"&&(h=x),(_===void 0?"undefined":(0,n.default)(_))==="object"&&(E=_)):(typeof _=="function"&&(h=_),E={}),S=new T.Parser(E),S.parseString(m,h)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(C,D,T){"use strict";(function(){var A;A=new RegExp(/(?!xmlns)^.*:/),T.normalize=function(O){return O.toLowerCase()},T.firstCharLowerCase=function(O){return O.charAt(0).toLowerCase()+O.slice(1)},T.stripPrefix=function(O){return O.replace(A,"")},T.parseNumbers=function(O){return isNaN(O)||(O=O%1==0?parseInt(O,10):parseFloat(O)),O},T.parseBooleans=function(O){return/^(?:true|false)$/i.test(O)&&(O=O.toLowerCase()==="true"),O}}).call(void 0)},{}],213:[function(C,D,T){"use strict";(function(){var A,O,f,p,c=function(n,o){function r(){this.constructor=n}for(var l in o)s.call(o,l)&&(n[l]=o[l]);return r.prototype=o.prototype,n.prototype=new r,n.__super__=o.prototype,n},s={}.hasOwnProperty;O=C("./defaults"),A=C("./builder"),f=C("./parser"),p=C("./processors"),T.defaults=O.defaults,T.processors=p,T.ValidationError=function(n){function o(r){this.message=r}return c(o,n),o}(Error),T.Builder=A.Builder,T.Parser=f.Parser,T.parseString=f.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(C,D,T){"use strict";function A(o){return o&&o.__esModule?o:{default:o}}var O=C("babel-runtime/core-js/object/get-prototype-of"),f=A(O),p=C("babel-runtime/helpers/typeof"),c=A(p),s=C("babel-runtime/core-js/object/assign"),n=A(s);(function(){var o,r,l,a,i,t,d=[].slice,v={}.hasOwnProperty;o=function(){var y,b,g,m,_,x;if(x=arguments[0],_=2<=arguments.length?d.call(arguments,1):[],a(n.default))n.default.apply(null,arguments);else for(y=0,g=_.length;y =0;)this.up();return this.onEnd()},x.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},x.prototype.openNode=function(h){if(!h.isOpen)return!this.root&&this.currentLevel===0&&h instanceof l&&(this.root=h),this.onData(this.writer.openNode(h,this.currentLevel)),h.isOpen=!0},x.prototype.closeNode=function(h){if(!h.isClosed)return this.onData(this.writer.closeNode(h,this.currentLevel)),h.isClosed=!0},x.prototype.onData=function(h){return this.documentStarted=!0,this.onDataCallback(h)},x.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},x.prototype.ele=function(){return this.element.apply(this,arguments)},x.prototype.nod=function(h,E,S){return this.node(h,E,S)},x.prototype.txt=function(h){return this.text(h)},x.prototype.dat=function(h){return this.cdata(h)},x.prototype.com=function(h){return this.comment(h)},x.prototype.ins=function(h,E){return this.instruction(h,E)},x.prototype.dec=function(h,E,S){return this.declaration(h,E,S)},x.prototype.dtd=function(h,E,S){return this.doctype(h,E,S)},x.prototype.e=function(h,E,S){return this.element(h,E,S)},x.prototype.n=function(h,E,S){return this.node(h,E,S)},x.prototype.t=function(h){return this.text(h)},x.prototype.d=function(h){return this.cdata(h)},x.prototype.c=function(h){return this.comment(h)},x.prototype.r=function(h){return this.raw(h)},x.prototype.i=function(h,E){return this.instruction(h,E)},x.prototype.att=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.a=function(){return this.currentNode&&this.currentNode instanceof r?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},x.prototype.ent=function(h,E){return this.entity(h,E)},x.prototype.pent=function(h,E){return this.pEntity(h,E)},x.prototype.not=function(h,E){return this.notation(h,E)},x}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(C,D,T){"use strict";var A=C("babel-runtime/core-js/object/create"),O=function(f){return f&&f.__esModule?f:{default:f}}(A);(function(){var f,p,c,s,n,o=function(l,a){function i(){this.constructor=l}for(var t in a)r.call(a,t)&&(l[t]=a[t]);return i.prototype=a.prototype,l.prototype=new i,l.__super__=a.prototype,l},r={}.hasOwnProperty;n=C("./Utility"),s=n.isObject,c=n.isFunction,p=C("./XMLNode"),f=C("./XMLAttribute"),D.exports=function(l){function a(i,t,d){if(a.__super__.constructor.call(this,i),t==null)throw new Error("Missing element name");this.name=this.stringify.eleName(t),this.attributes={},d!=null&&this.attribute(d),i.isDocument&&(this.isRoot=!0,this.documentObject=i,i.rootObject=this)}return o(a,l),a.prototype.clone=function(){var i,t,d,v;d=(0,O.default)(this),d.isRoot&&(d.documentObject=null),d.attributes={},v=this.attributes;for(t in v)r.call(v,t)&&(i=v[t],d.attributes[t]=i.clone());return d.children=[],this.children.forEach(function(y){var b;return b=y.clone(),b.parent=d,d.children.push(b)}),d},a.prototype.attribute=function(i,t){var d,v;if(i!=null&&(i=i.valueOf()),s(i))for(d in i)r.call(i,d)&&(v=i[d],this.attribute(d,v));else c(t)&&(t=t.apply()),this.options.skipNullAttributes&&t==null||(this.attributes[i]=new f(this,i,t));return this},a.prototype.removeAttribute=function(i){var t,d,v;if(i==null)throw new Error("Missing attribute name");if(i=i.valueOf(),Array.isArray(i))for(d=0,v=i.length;d /g,">").replace(/\r/g," ")},f.prototype.attEscape=function(p){var c;return c=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(c,"&").replace(/0?new Array(p).join(this.indent):""):""},O}()}).call(void 0)},{}],235:[function(C,D,T){"use strict";(function(){var A,O,f,p,c,s,n;n=C("./Utility"),c=n.assign,s=n.isFunction,A=C("./XMLDocument"),O=C("./XMLDocumentCB"),p=C("./XMLStringWriter"),f=C("./XMLStreamWriter"),D.exports.create=function(o,r,l,a){var i,t;if(o==null)throw new Error("Root element needs a name");return a=c({},r,l,a),i=new A(a),t=i.element(o),a.headless||(i.declaration(a),a.pubID==null&&a.sysID==null||i.doctype(a)),t},D.exports.begin=function(o,r,l){var a;return s(o)&&(a=[o,r],r=a[0],l=a[1],o={}),r?new O(o,r,l):new A(o)},D.exports.stringWriter=function(o){return new p(o)},D.exports.streamWriter=function(o,r){return new f(o,r)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(C,D,T){function A(){for(var f={},p=0;p"+this.endline(g))},b.prototype.comment=function(g,m){return this.stream.write(this.space(m)+""+this.endline(g))},b.prototype.declaration=function(g,m){return this.stream.write(this.space(m)),this.stream.write('"),this.stream.write(this.endline(g))},b.prototype.docType=function(g,m){var _,x,h,E;if(m||(m=0),this.stream.write(this.space(m)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(g)),E=g.children,x=0,h=E.length;x "),this.stream.write(this.endline(g))},b.prototype.element=function(g,m){var _,x,h,E,S,w,R,N;m||(m=0),N=this.space(m),this.stream.write(N+"<"+g.name),w=g.attributes;for(S in w)v.call(w,S)&&(_=w[S],this.attribute(_));if(g.children.length===0||g.children.every(function(F){return F.value===""}))this.allowEmpty?this.stream.write(">"+g.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&g.children.length===1&&g.children[0].value!=null)this.stream.write(">"),this.stream.write(g.children[0].value),this.stream.write(""+g.name+">");else{for(this.stream.write(">"+this.newline),R=g.children,h=0,E=R.length;h ")}return this.stream.write(this.endline(g))},b.prototype.processingInstruction=function(g,m){return this.stream.write(this.space(m)+""+g.target),g.value&&this.stream.write(" "+g.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(g))},b.prototype.raw=function(g,m){return this.stream.write(this.space(m)+g.value+this.endline(g))},b.prototype.text=function(g,m){return this.stream.write(this.space(m)+g.value+this.endline(g))},b.prototype.dtdAttList=function(g,m){return this.stream.write(this.space(m)+""+this.endline(g))},b.prototype.dtdElement=function(g,m){return this.stream.write(this.space(m)+""+this.endline(g))},b.prototype.dtdEntity=function(g,m){return this.stream.write(this.space(m)+""+this.endline(g))},b.prototype.dtdNotation=function(g,m){return this.stream.write(this.space(m)+""+this.endline(g))},b.prototype.endline=function(g){return g.isLastRootNode?"":this.newline},b}(t)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(C,D,T){"use strict";(function(){var A,O,f,p,c,s,n,o,r,l,a,i,t,d=function(y,b){function g(){this.constructor=y}for(var m in b)v.call(b,m)&&(y[m]=b[m]);return g.prototype=b.prototype,y.prototype=new g,y.__super__=b.prototype,y},v={}.hasOwnProperty;n=C("./XMLDeclaration"),o=C("./XMLDocType"),A=C("./XMLCData"),O=C("./XMLComment"),r=C("./XMLElement"),a=C("./XMLRaw"),i=C("./XMLText"),l=C("./XMLProcessingInstruction"),f=C("./XMLDTDAttList"),p=C("./XMLDTDElement"),c=C("./XMLDTDEntity"),s=C("./XMLDTDNotation"),t=C("./XMLWriterBase"),D.exports=function(y){function b(g){b.__super__.constructor.call(this,g)}return d(b,y),b.prototype.document=function(g){var m,_,x,h,E;for(this.textispresent=!1,h="",E=g.children,_=0,x=E.length;_ "+this.newline},b.prototype.comment=function(g,m){return this.space(m)+""+this.newline},b.prototype.declaration=function(g,m){var _;return _=this.space(m),_+='",_+=this.newline},b.prototype.docType=function(g,m){var _,x,h,E,S;if(m||(m=0),E=this.space(m),E+="0){for(E+=" [",E+=this.newline,S=g.children,x=0,h=S.length;x ",E+=this.newline},b.prototype.element=function(g,m){var _,x,h,E,S,w,R,N,F,z,q,B,M;m||(m=0),M=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),B=this.space(m),N="",N+=B+"<"+g.name,F=g.attributes;for(R in F)v.call(F,R)&&(_=F[R],N+=this.attribute(_));if(g.children.length===0||g.children.every(function(G){return G.value===""}))this.allowEmpty?N+=">"+g.name+">"+this.newline:N+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&g.children.length===1&&g.children[0].value!=null)N+=">",N+=g.children[0].value,N+=""+g.name+">"+this.newline;else{if(this.dontprettytextnodes){for(z=g.children,h=0,S=z.length;h "+this.newline,q=g.children,E=0,w=q.length;E"+this.newline}return N},b.prototype.processingInstruction=function(g,m){var _;return _=this.space(m)+""+g.target,g.value&&(_+=" "+g.value),_+=this.spacebeforeslash+"?>"+this.newline},b.prototype.raw=function(g,m){return this.space(m)+g.value+this.newline},b.prototype.text=function(g,m){return this.space(m)+g.value+this.newline},b.prototype.dtdAttList=function(g,m){var _;return _=this.space(m)+""+this.newline},b.prototype.dtdElement=function(g,m){return this.space(m)+""+this.newline},b.prototype.dtdEntity=function(g,m){var _;return _=this.space(m)+""+this.newline},b.prototype.dtdNotation=function(g,m){var _;return _=this.space(m)+""+this.newline},b.prototype.openNode=function(g,m){var _,x,h,E;if(m||(m=0),g instanceof r){h=this.space(m)+"<"+g.name,E=g.attributes;for(x in E)v.call(E,x)&&(_=E[x],h+=this.attribute(_));return h+=(g.children?">":"/>")+this.newline}return h=this.space(m)+"")+this.newline},b.prototype.closeNode=function(g,m){switch(m||(m=0),!1){case!(g instanceof r):return this.space(m)+""+g.name+">"+this.newline;case!(g instanceof o):return this.space(m)+"]>"+this.newline}},b}(t)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(C,D,T){"use strict";(function(){var A=function(f,p){return function(){return f.apply(p,arguments)}},O={}.hasOwnProperty;D.exports=function(){function f(p){this.assertLegalChar=A(this.assertLegalChar,this);var c,s,n;p||(p={}),this.noDoubleEncoding=p.noDoubleEncoding,s=p.stringify||{};for(c in s)O.call(s,c)&&(n=s[c],this[c]=n)}return f.prototype.eleName=function(p){return p=""+p||"",this.assertLegalChar(p)},f.prototype.eleText=function(p){return p=""+p||"",this.assertLegalChar(this.elEscape(p))},f.prototype.cdata=function(p){return p=""+p||"",p=p.replace("]]>","]]]]>"),this.assertLegalChar(p)},f.prototype.comment=function(p){if(p=""+p||"",p.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+p);return this.assertLegalChar(p)},f.prototype.raw=function(p){return""+p||""},f.prototype.attName=function(p){return p=""+p||""},f.prototype.attValue=function(p){return p=""+p||"",this.attEscape(p)},f.prototype.insTarget=function(p){return""+p||""},f.prototype.insValue=function(p){if(p=""+p||"",p.match(/\?>/))throw new Error("Invalid processing instruction value: "+p);return p},f.prototype.xmlVersion=function(p){if(p=""+p||"",!p.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+p);return p},f.prototype.xmlEncoding=function(p){if(p=""+p||"",!p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+p);return p},f.prototype.xmlStandalone=function(p){return p?"yes":"no"},f.prototype.dtdPubID=function(p){return""+p||""},f.prototype.dtdSysID=function(p){return""+p||""},f.prototype.dtdElementValue=function(p){return""+p||""},f.prototype.dtdAttType=function(p){return""+p||""},f.prototype.dtdAttDefault=function(p){return p!=null?""+p||"":p},f.prototype.dtdEntityValue=function(p){return""+p||""},f.prototype.dtdNData=function(p){return""+p||""},f.prototype.convertAttKey="@",f.prototype.convertPIKey="?",f.prototype.convertTextKey="#text",f.prototype.convertCDataKey="#cdata",f.prototype.convertCommentKey="#comment",f.prototype.convertRawKey="#raw",f.prototype.assertLegalChar=function(p){var c;if(c=p.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+p+" at index "+c.index);return p},f.prototype.elEscape=function(p){var c;return c=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,p.replace(c,"&").replace(/ r?i=a(i):i.length >5]|=128<>>9<<4)]=a;for(var i=1732584193,t=-271733879,d=-1732584194,v=271733878,y=0;y >16)+(a>>16)+(i>>16)<<16|65535&i}function o(l,a){return l<>>32-a}var r=C("./helpers");D.exports=function(l){return r.hash(l,A,16)}},{"./helpers":238}],240:[function(C,D,T){"use strict";function A(n,o){n[o>>5]|=128<<24-o%32,n[15+(o+64>>9<<4)]=o;for(var r=Array(80),l=1732584193,a=-271733879,i=-1732584194,t=271733878,d=-1009589776,v=0;v >16)+(o>>16)+(r>>16)<<16|65535&r}function c(n,o){return n< >>32-o}var s=C("./helpers");D.exports=function(n){return s.hash(n,A,20,!0)}},{"./helpers":238}],241:[function(C,D,T){"use strict";var A=C("./helpers"),O=function(i,t){var d=(65535&i)+(65535&t);return(i>>16)+(t>>16)+(d>>16)<<16|65535&d},f=function(i,t){return i>>>t|i<<32-t},p=function(i,t){return i>>>t},c=function(i,t,d){return i&t^~i&d},s=function(i,t,d){return i&t^i&d^t&d},n=function(i){return f(i,2)^f(i,13)^f(i,22)},o=function(i){return f(i,6)^f(i,11)^f(i,25)},r=function(i){return f(i,7)^f(i,18)^p(i,3)},l=function(i){return f(i,17)^f(i,19)^p(i,10)},a=function(i,t){var d,v,y,b,g,m,_,x,h,E,S,w,R=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),N=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),F=new Array(64);i[t>>5]|=128<<24-t%32,i[15+(t+64>>9<<4)]=t;for(var h=0;h =0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",G,x,Ce),h.headers=h.headers||{},h.headers.Authorization=digestAuthHeader(_e.method,_e.path,Ce,h.digestAuth),v("Request#%d %s: auth with digest header: %s",G,x,h.headers.Authorization),Ue.headers["set-cookie"]&&(h.headers.Cookie=Ue.headers["set-cookie"].join(";")),T.requestWithCallback(x,h,ke)}var Pe=Date.now()-Z;Ne&&(Ne.contentDownload=Pe),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Pe,$,Q,_e.method,_e.host,_e.path,ee,Ne);var Le={status:Q,statusCode:Q,headers:be,size:$,aborted:xe,rt:Pe,keepAliveSocket:ee,data:je,requestUrls:h.requestUrls,timing:Ne,remoteAddress:De,remotePort:dt};if(Ye){var Ve="";we&&typeof we.getCurrentStatus=="function"&&(Ve=", agent status: "+(0,o.default)(we.getCurrentStatus())),Ye.message+=", "+_e.method+" "+x+" "+Q+" (connected: "+j+", keepalive socket: "+ee+Ve+`) headers: `+(0,o.default)(be),Ye.data=je,Ye.path=_e.path,Ye.status=Q,Ye.headers=be,Ye.res=Le}ke(Ye,je,h.streaming?Ue:Le),h.emitter&&(J.url=x,J.socket=qe&&qe.connection,J.options=_e,J.size=We,h.emitter.emit("response",{requestId:G,error:Ye,ctx:h.ctx,req:J,res:Le}))}function N(Ye){var je=null;if(h.followRedirect&&statuses.redirect[Ye.statusCode]){h._followRedirectCount=(h._followRedirectCount||0)+1;var Ue=Ye.headers.location;if(Ue){if(!(h._followRedirectCount>h.maxRedirects)){var ke=h.formatRedirectUrl?h.formatRedirectUrl(x,Ue):i.resolve(x,Ue);v("Request#%d %s: `redirected` from %s to %s",G,_e.path,x,ke),w(),h.headers&&h.headers.Host&&m.test(Ue)&&(h.headers.Host=null);var be=E;return E=null,T.requestWithCallback(ke,h,be),{redirect:!0,error:null}}je=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+x),je.name="MaxRedirectError"}else je=new Error("Got statusCode "+Ye.statusCode+" but cannot resolve next location from headers"),je.name="FollowRedirectError"}return{redirect:!1,error:je}}function F(Ye,je,Ue){return Ue(null,je,Ye.headers["content-encoding"])}function z(Ye){if(Ne&&(Ne.waiting=Date.now()-Z),v("Request#%d %s `req response` event emit: status %d, headers: %j",G,x,Ye.statusCode,Ye.headers),h.streaming){var je=N(Ye);return je.redirect?void Ye.resume():je.error?(Ye.resume(),R(je.error,null,Ye)):R(null,null,Ye)}if(Ye.on("close",function(){v("Request#%d %s: `res close` event emit, total size %d",G,x,$)}),Ye.on("error",function(){v("Request#%d %s: `res error` event emit, total size %d",G,x,$)}),Ye.on("aborted",function(){xe=!0,v("Request#%d %s: `res aborted` event emit, total size %d",G,x,$)}),Be){var je=N(Ye);return je.redirect?void Ye.resume():je.error?(Ye.resume(),Be.end(),R(je.error,null,Ye)):(h.consumeWriteStream===!1?Ye.on("end",R.bind(null,null,null,Ye)):isNode010||isNode012?first([[Be,"close"],[Ye,"aborted"]],function(be,Ce,Pe){v("Request#%d %s: writeStream or res %s event emitted",G,x,Pe),R(P||null,null,Ye)}):Be.on("close",function(){v("Request#%d %s: writeStream close event emitted",G,x),R(P||null,null,Ye)}),Ye.pipe(Be))}var Ue=[];Ye.on("data",function(ke){v("Request#%d %s: `res data` event emit, size %d",G,x,ke.length),$+=ke.length,Ue.push(ke)}),Ye.on("end",function(){var ke=O.concat(Ue,$);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",G,x,$,Ye._dumped),P)return R(P,ke,Ye);var be=N(Ye);if(be.error)return R(be.error,ke,Ye);be.redirect||F(Ye,ke,function(Ce,Pe,Le){if(Ce)return R(Ce,ke,Ye);if(!Le&&_.indexOf(h.dataType)>=0){try{Pe=decodeBodyByCharset(Pe,Ye)}catch(at){return v("decodeBodyByCharset error: %s",at),R(null,Pe,Ye)}if(h.dataType==="json")if($===0)Pe=null;else{var Ve=parseJSON(Pe,Ie);Ve.error?Ce=Ve.error:Pe=Ve.data}}xe&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",G,x),R(Ce,Pe,Ye)})})}function q(){v("Response timer ticking, timeout: %d",lt),re=setTimeout(function(){re=null;var Ye="Response timeout for "+lt+"ms";P=new Error(Ye),P.name="ResponseTimeoutError",P.requestId=G,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",G,x,P.name,Ye,j),B()},lt)}function B(){v("Request#%d %s abort, connected: %s",G,x,j),qe.socket||(P.noSocket=!0,R(P)),qe.abort()}if(!x||typeof x!="string"&&(x===void 0?"undefined":(0,l.default)(x))!=="object"){var M=a.format("expect request url to be a string or a http request options, but got %j",x);throw new Error(M)}arguments.length===2&&typeof h=="function"&&(E=h,h=null),h=h||{},b>=g&&(b=0);var G=++b;h.requestUrls=h.requestUrls||[];var J={requestId:G,url:x,args:h,ctx:h.ctx};h.emitter&&h.emitter.emit("request",J),h.timeout=h.timeout||T.TIMEOUTS,h.maxRedirects=h.maxRedirects||10,h.streaming=h.streaming||h.customResponse;var K,Z=Date.now();typeof x=="string"?(m.test(x)||(x="http://"+x),K=i.parse(x)):K=x;var le=(h.type||h.method||K.method||"GET").toUpperCase(),de=K.port||80,Te=t,we=p(h.agent,T.agent),Ie=h.fixJSONCtlChars;K.protocol==="https:"&&(Te=d,we=p(h.httpsAgent,T.httpsAgent),K.port||(de=443));var _e={host:K.hostname||K.host||"localhost",path:K.path||"/",method:le,port:de,agent:we,headers:h.headers||{},lookup:h.lookup};Array.isArray(h.timeout)?_e.requestTimeout=h.timeout[h.timeout.length-1]:h.timeout!==void 0&&(_e.requestTimeout=h.timeout);for(var ye=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],Ke=0;Ke >>2]>>>24-m%4*8&255;v[b+m>>>2]|=_<<24-(b+m)%4*8}else for(var m=0;m >>2]=y[m>>>2];return this.sigBytes+=g,this},clamp:function(){var d=this.words,v=this.sigBytes;d[v>>>2]&=4294967295<<32-v%4*8,d.length=A.ceil(v/4)},clone:function(){var d=s.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var v,y=[],b=0;b >16)&x,m=18e3*(65535&m)+(m>>16)&x;var h=(_<<16)+m&x;return h/=4294967296,(h+=.5)*(A.random()>.5?1:-1)}}(4294967296*(v||A.random()));v=987654071*g(),y.push(4294967296*g()|0)}return new n.init(y,d)}}),o=p.enc={},r=o.Hex={stringify:function(d){for(var v=d.words,y=d.sigBytes,b=[],g=0;g >>2]>>>24-g%4*8&255;b.push((m>>>4).toString(16)),b.push((15&m).toString(16))}return b.join("")},parse:function(d){for(var v=d.length,y=[],b=0;b >>3]|=parseInt(d.substr(b,2),16)<<24-b%8*4;return new n.init(y,v/2)}},l=o.Latin1={stringify:function(d){for(var v=d.words,y=d.sigBytes,b=[],g=0;g >>2]>>>24-g%4*8&255;b.push(String.fromCharCode(m))}return b.join("")},parse:function(d){for(var v=d.length,y=[],b=0;b >>2]|=(255&d.charCodeAt(b))<<24-b%4*8;return new n.init(y,v)}},a=o.Utf8={stringify:function(d){try{return decodeURIComponent(escape(l.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return l.parse(unescape(encodeURIComponent(d)))}},i=c.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=a.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var v=this._data,y=v.words,b=v.sigBytes,g=this.blockSize,m=4*g,_=b/m;_=d?A.ceil(_):A.max((0|_)-this._minBufferSize,0);var x=_*g,h=A.min(4*x,b);if(x){for(var E=0;E ",s[0];)p++;return p>4&&p}},{key:"extend",value:function(p,c){for(var s in c)Object.prototype.hasOwnProperty.call(c,s)&&c[s]&&(p[s]=c[s])}},{key:"isArray",value:function(p){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(p){return p=p.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(p)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(p)?"audio":/.bmp|.jpg|.jpeg|.png/.test(p)?"img":"other"}},{key:"isImage",value:function(p){return p=p.toLowerCase(),!!/.jpg|.jpeg|.png/.test(p)}},{key:"ISODateString",value:function(p){function c(s){return s<10?"0"+s:s}return p.getUTCFullYear()+"-"+c(p.getUTCMonth()+1)+"-"+c(p.getUTCDate())+"T"+c(p.getUTCHours())+":"+c(p.getUTCMinutes())+":"+c(p.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(p){return!!/^\d+$/.test(p)}}]),f}();C.default=O},function(W,C,D){!function(T,A){W.exports=C=A(D(0))}(0,function(T){return function(A){function O(t,d,v,y,b,g,m){var _=t+(d&v|~d&y)+b+m;return(_< >>32-g)+d}function f(t,d,v,y,b,g,m){var _=t+(d&y|v&~y)+b+m;return(_< >>32-g)+d}function p(t,d,v,y,b,g,m){var _=t+(d^v^y)+b+m;return(_< >>32-g)+d}function c(t,d,v,y,b,g,m){var _=t+(v^(d|~y))+b+m;return(_< >>32-g)+d}var s=T,n=s.lib,o=n.WordArray,r=n.Hasher,l=s.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*A.abs(A.sin(t+1))|0}();var i=l.MD5=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,d){for(var v=0;v<16;v++){var y=d+v,b=t[y];t[y]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8)}var g=this._hash.words,m=t[d+0],_=t[d+1],x=t[d+2],h=t[d+3],E=t[d+4],S=t[d+5],w=t[d+6],R=t[d+7],N=t[d+8],F=t[d+9],z=t[d+10],q=t[d+11],B=t[d+12],M=t[d+13],G=t[d+14],J=t[d+15],K=g[0],Z=g[1],le=g[2],de=g[3];K=O(K,Z,le,de,m,7,a[0]),de=O(de,K,Z,le,_,12,a[1]),le=O(le,de,K,Z,x,17,a[2]),Z=O(Z,le,de,K,h,22,a[3]),K=O(K,Z,le,de,E,7,a[4]),de=O(de,K,Z,le,S,12,a[5]),le=O(le,de,K,Z,w,17,a[6]),Z=O(Z,le,de,K,R,22,a[7]),K=O(K,Z,le,de,N,7,a[8]),de=O(de,K,Z,le,F,12,a[9]),le=O(le,de,K,Z,z,17,a[10]),Z=O(Z,le,de,K,q,22,a[11]),K=O(K,Z,le,de,B,7,a[12]),de=O(de,K,Z,le,M,12,a[13]),le=O(le,de,K,Z,G,17,a[14]),Z=O(Z,le,de,K,J,22,a[15]),K=f(K,Z,le,de,_,5,a[16]),de=f(de,K,Z,le,w,9,a[17]),le=f(le,de,K,Z,q,14,a[18]),Z=f(Z,le,de,K,m,20,a[19]),K=f(K,Z,le,de,S,5,a[20]),de=f(de,K,Z,le,z,9,a[21]),le=f(le,de,K,Z,J,14,a[22]),Z=f(Z,le,de,K,E,20,a[23]),K=f(K,Z,le,de,F,5,a[24]),de=f(de,K,Z,le,G,9,a[25]),le=f(le,de,K,Z,h,14,a[26]),Z=f(Z,le,de,K,N,20,a[27]),K=f(K,Z,le,de,M,5,a[28]),de=f(de,K,Z,le,x,9,a[29]),le=f(le,de,K,Z,R,14,a[30]),Z=f(Z,le,de,K,B,20,a[31]),K=p(K,Z,le,de,S,4,a[32]),de=p(de,K,Z,le,N,11,a[33]),le=p(le,de,K,Z,q,16,a[34]),Z=p(Z,le,de,K,G,23,a[35]),K=p(K,Z,le,de,_,4,a[36]),de=p(de,K,Z,le,E,11,a[37]),le=p(le,de,K,Z,R,16,a[38]),Z=p(Z,le,de,K,z,23,a[39]),K=p(K,Z,le,de,M,4,a[40]),de=p(de,K,Z,le,m,11,a[41]),le=p(le,de,K,Z,h,16,a[42]),Z=p(Z,le,de,K,w,23,a[43]),K=p(K,Z,le,de,F,4,a[44]),de=p(de,K,Z,le,B,11,a[45]),le=p(le,de,K,Z,J,16,a[46]),Z=p(Z,le,de,K,x,23,a[47]),K=c(K,Z,le,de,m,6,a[48]),de=c(de,K,Z,le,R,10,a[49]),le=c(le,de,K,Z,G,15,a[50]),Z=c(Z,le,de,K,S,21,a[51]),K=c(K,Z,le,de,B,6,a[52]),de=c(de,K,Z,le,h,10,a[53]),le=c(le,de,K,Z,z,15,a[54]),Z=c(Z,le,de,K,_,21,a[55]),K=c(K,Z,le,de,N,6,a[56]),de=c(de,K,Z,le,J,10,a[57]),le=c(le,de,K,Z,w,15,a[58]),Z=c(Z,le,de,K,M,21,a[59]),K=c(K,Z,le,de,E,6,a[60]),de=c(de,K,Z,le,q,10,a[61]),le=c(le,de,K,Z,x,15,a[62]),Z=c(Z,le,de,K,F,21,a[63]),g[0]=g[0]+K|0,g[1]=g[1]+Z|0,g[2]=g[2]+le|0,g[3]=g[3]+de|0},_doFinalize:function(){var t=this._data,d=t.words,v=8*this._nDataBytes,y=8*t.sigBytes;d[y>>>5]|=128<<24-y%32;var b=A.floor(v/4294967296),g=v;d[15+(y+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),d[14+(y+64>>>9<<4)]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),t.sigBytes=4*(d.length+1),this._process();for(var m=this._hash,_=m.words,x=0;x<4;x++){var h=_[x];_[x]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return m},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});s.MD5=r._createHelper(i),s.HmacMD5=r._createHmacHelper(i)}(Math),T.MD5})},function(W,C,D){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},C.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},C.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(W,C,D){"use strict";function T(i){return i&&i.__esModule?i:{default:i}}function A(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(C,"__esModule",{value:!0});var O=function(){function i(t,d){for(var v=0;v -1)return"Baiduspider";if(o.indexOf("PlayStation")>-1)return"PS4";var l=navigator.platform=="Win32"||navigator.platform=="Windows"||o.indexOf("Windows")>-1,a=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return a&&(r="macOS"),navigator.platform=="X11"&&!l&&!a&&(r="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(r="Linux"),l?"windows":r},f=function(){var n=navigator.userAgent,o="";return(n.indexOf("Windows NT 5.0")>-1||n.indexOf("Windows 2000")>-1)&&(o="2000"),(n.indexOf("Windows NT 5.1")>-1||n.indexOf("Windows XP")>-1)&&(o="XP"),(n.indexOf("Windows NT 5.2")>-1||n.indexOf("Windows 2003")>-1)&&(o="2003"),(n.indexOf("Windows NT 6.0")>-1||n.indexOf("Windows Vista")>-1)&&(o="Vista"),(n.indexOf("Windows NT 6.1")>-1||n.indexOf("Windows 7")>-1)&&(o="7"),(n.indexOf("Windows NT 6.2")>-1||n.indexOf("Windows 8")>-1)&&(o="8"),(n.indexOf("Windows NT 6.3")>-1||n.indexOf("Windows 8.1")>-1)&&(o="8.1"),(n.indexOf("Windows NT 10")>-1||n.indexOf("Windows 10")>-1)&&(o="10"),o},p=function(n){var o=navigator.userAgent.toLowerCase();return n.chrome?"Chrome":n.firefox?"Firefox":n.safari?"Safari":n.webview?"webview":n.ie?/edge/.test(o)?"Edge":"IE":/baiduspider/.test(o)?"Baiduspider":/ucweb/.test(o)||/UCBrowser/.test(o)?"UC":/opera/.test(o)?"Opera":/ucweb/.test(o)?"UC":/360se/.test(o)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(o)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(o)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(o)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(o)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(o)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(o)?"PS4\u6D4F\u89C8\u5668":void 0},c=function(){var n={},o={},r=navigator.userAgent,l=navigator.platform,a=r.match(/Web[kK]it[\/]{0,1}([\d.]+)/),i=r.match(/(Android);?[\s\/]+([\d.]+)?/),t=!!r.match(/\(Macintosh\; Intel /),d=r.match(/(iPad).*OS\s([\d_]+)/),v=r.match(/(iPod)(.*OS\s([\d_]+))?/),y=!d&&r.match(/(iPhone\sOS)\s([\d_]+)/),b=r.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),g=/Win\d{2}|Windows/.test(l),m=r.match(/Windows Phone ([\d.]+)/),_=b&&r.match(/TouchPad/),x=r.match(/Kindle\/([\d.]+)/),h=r.match(/Silk\/([\d._]+)/),E=r.match(/(BlackBerry).*Version\/([\d.]+)/),S=r.match(/(BB10).*Version\/([\d.]+)/),w=r.match(/(RIM\sTablet\sOS)\s([\d.]+)/),R=r.match(/PlayBook/),N=r.match(/Chrome\/([\d.]+)/)||r.match(/CriOS\/([\d.]+)/),F=r.match(/Firefox\/([\d.]+)/),z=r.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),q=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),B=!N&&r.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),M=B||r.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((o.webkit=!!a)&&(o.version=a[1]),i&&(n.android=!0,n.version=i[2]),y&&!v&&(n.ios=n.iphone=!0,n.version=y[2].replace(/_/g,".")),d&&(n.ios=n.ipad=!0,n.version=d[2].replace(/_/g,".")),v&&(n.ios=n.ipod=!0,n.version=v[3]?v[3].replace(/_/g,"."):null),m&&(n.wp=!0,n.version=m[1]),b&&(n.webos=!0,n.version=b[2]),_&&(n.touchpad=!0),E&&(n.blackberry=!0,n.version=E[2]),S&&(n.bb10=!0,n.version=S[2]),w&&(n.rimtabletos=!0,n.version=w[2]),R&&(o.playbook=!0),x&&(n.kindle=!0,n.version=x[1]),h&&(o.silk=!0,o.version=h[1]),!h&&n.android&&r.match(/Kindle Fire/)&&(o.silk=!0),N&&(o.chrome=!0,o.version=N[1]),F&&(o.firefox=!0,o.version=F[1]),z&&(n.firefoxos=!0,n.version=z[1]),q&&(o.ie=!0,o.version=q[1]),M&&(t||n.ios||g||i)&&(o.safari=!0,n.ios||(o.version=M[1])),B&&(o.webview=!0),t){var G=r.match(/[\d]*_[\d]*_[\d]*/);G&&G.length>0&&G[0]&&(n.version=G[0].replace(/_/g,"."))}return n.tablet=!!(d||R||i&&!r.match(/Mobile/)||F&&r.match(/Tablet/)||q&&!r.match(/Phone/)&&r.match(/Touch/)),n.phone=!(n.tablet||n.ipod||!(i||y||b||E||S||N&&r.match(/Android/)||N&&r.match(/CriOS\/([\d.]+)/)||F&&r.match(/Mobile/)||q&&r.match(/Touch/))),n.pc=!n.tablet&&!n.phone,t?n.name="macOS":g?(n.name="windows",n.version=f()):n.name=O(n),o.name=p(o),{os:n,browser:o}}(),s=function(){function n(){T(this,n)}return A(n,null,[{key:"getHost",value:function(o){var r="";if(o===void 0||o==null||o=="")return"";var l=o.indexOf("//"),a=o;l>-1&&(a=o.substring(l+2));var r=a,i=a.split("/");return i&&i.length>0&&(r=i[0]),i=r.split(":"),i&&i.length>0&&(r=i[0]),r}},{key:"os",get:function(){return c.os}},{key:"browser",get:function(){var o=c.browser;return o.name||(o.name=p()),o}}]),n}();C.default=s},function(W,C,D){"use strict";function T(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(C,"__esModule",{value:!0});var A=function(){function f(p,c){for(var s=0;s 0){G._invalidUserId=!0;var le=Z.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(le)}}catch(de){console.log(de)}})})}z&&(M.videoInfo=z?JSON.parse(z).Vod:{},M.userData=o.default.encode(z)),M.ri=y.default.create(),this._uploadList.push(M),this._reportLog("20001",M,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(M)}catch(J){console.log(J)}return!0}},{key:"deleteFile",value:function(w){return!!this.cancelFile(w)&&(this._uploadList.splice(w,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(w){if(this.options,w<0||w>=this._uploadList.length)return!1;var R=this._uploadList[w];if(w==this._curIndex&&R.state==f.UPLOADSTATE.UPLOADING){R.state=f.UPLOADSTATE.CANCELED;var N=this._getCheckoutpoint(R);N&&N.checkpoint&&(N=N.checkpoint),N&&this._ossUpload.abort(R),this._removeCheckoutpoint(R),this.nextUpload()}else R.state!=f.UPLOADSTATE.SUCCESS&&(R.state=f.UPLOADSTATE.CANCELED);return this._reportLog("20008",R),!0}},{key:"resumeFile",value:function(w){if(this.options,w<0||w>=this._uploadList.length)return!1;var R=this._uploadList[w];return R.state==f.UPLOADSTATE.CANCELED&&(R.state=f.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(w){return this._getCheckoutpoint({file:w})}},{key:"startUpload",value:function(w){if(this._retryCount=0,this.options,this._state==f.VODSTATE.START||this._state==f.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=f.VODSTATE.END);var R=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(R),this._state=f.VODSTATE.START}},{key:"nextUpload",value:function(){var w=this.options;if(this._state==f.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var R=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(R)}else{this._state=f.VODSTATE.END;try{w.onUploadEnd&&w.onUploadEnd(R)}catch(N){console.log(N)}}}},{key:"clear",value:function(w){for(var R=this.options,N=0,F=0;F this._curIndex&&(z=this._uploadList[this._curIndex]),z&&(this.init(w,R,N,F),this._state=f.VODSTATE.START,this._ossUpload=null,this._uploadCore(z,z.retry),z.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(w,R,N){if(this._curIndex==-1)return!1;if(this._state!=f.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var F=this._uploadList[this._curIndex];F.object?this._refreshSTSTokenUpload(F,w,R,N):this.setSTSToken(F,w,R,N)}}},{key:"setSTSTokenDirectlyUpload",value:function(w,R,N,F,z){if(!(R&&N&&F&&z))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var q=w;this.init(R,N,F,z),q.endpoint=q._endpoint,q.bucket=q._bucket,q.object=q._object,this._ossUpload=null,this._uploadCore(q,w.retry),w.retry=!1}},{key:"setSTSToken",value:function(w,R,N,F){if(!R||!N||!F)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var z=w.videoInfo,q={accessKeyId:R,securityToken:F,accessKeySecret:N,fileName:w.file.name,title:z.Title,requestId:w.ri,region:this.options.region};z.ImageType&&(q.imageType=z.ImageType),z.ImageExt&&(q.imageExt=z.ImageExt),z.FileSize&&(q.fileSize=z.FileSize),z.Description&&(q.description=z.Description),z.CateId&&(q.cateId=z.CateId),z.Tags&&(q.tags=z.Tags),z.TemplateGroupId&&(q.templateGroupId=z.TemplateGroupId),z.StorageLocation&&(q.storageLocation=z.StorageLocation),z.CoverURL&&(q.coverUrl=z.CoverURL),z.TransCodeMode&&(q.transCodeMode=z.TransCodeMode),z.UserData&&(q.userData=z.UserData);var B=this,M="getUploadAuth";w.videoId?(q.videoId=w.videoId,M="refreshUploadAuth"):w.isImage&&(M="getImageUploadAuth"),g.default[M](q,function(G){w.videoId=G.VideoId?G.VideoId:w.videoId,B.setUploadAuthAndAddress(w,G.UploadAuth,G.UploadAddress),B._state=f.VODSTATE.START},function(G){B._error(w,{name:G.Code,code:G.Code,message:G.Message,requestId:G.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(w,R,N,F){if(!w||!R||!N)return!1;var z=JSON.parse(o.default.decode(R));if(!(z.AccessKeyId&&z.AccessKeySecret&&z.SecurityToken&&z.Expiration))return console.error("uploadauth is invalid"),!1;var q={},B=w;if(N){if(q=JSON.parse(o.default.decode(N)),!q.Endpoint||!q.Bucket||!q.FileName)return console.error("uploadAddress is invalid"),!1}else q.Endpoint=B.endpoint,q.Bucket=B.bucket,q.FileName=B.object;this._ut="vod",this._uploadWay="vod",this.options.region=z.Region||this.options.region,this.init(z.AccessKeyId,z.AccessKeySecret,z.SecurityToken,z.Expiration),B.endpoint=B._endpoint?B._endpoint:q.Endpoint,B.bucket=B._bucket?B._bucket:q.Bucket,B.object=B._object?B._object:q.FileName,B.region=this.options.region,F&&(B.videoId=F),this._ossUpload=null,this._uploadCore(B,w.retry),w.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(w,R,N,F){if(!R||!N||!F)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var z={accessKeyId:R,securityToken:F,accessKeySecret:N,videoId:w.object,requestId:w.ri,region:this.options.region},q=this,B="refreshUploadAuth";w.isImage&&(B="getImageUploadAuth"),g.default[B](z,function(M){q.setUploadAuthAndAddress(w,M.UploadAuth,UploadAddress),q._state=f.VODSTATE.START},function(M){q._error(w,{name:M.Code,code:M.Code,message:M.Message,requestId:M.RequestId})})}},{key:"_upload",value:function(w){var R=arguments.length>1&&arguments[1]!==void 0&&arguments[1],N=this.options;if(w.retry=R,N.onUploadstarted&&!R)try{var F=this._getCheckoutpoint(w);F&&F.state!=f.UPLOADSTATE.UPLOADING&&(w.checkpoint=F,w.videoId=F.videoId),N.onUploadstarted(w)}catch(z){console.log(z)}}},{key:"_uploadCore",value:function(w){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(w.state=f.UPLOADSTATE.UPLOADING,!this._ossUpload){w.endpoint=w.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var R=this;this._ossUpload=new s.default({bucket:w.bucket,endpoint:w.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(G,J){R._error.call(R,G,J)},oncomplete:function(G,J){R._complete.call(R,G,J)},onprogress:function(G,J,K){R._progress.call(R,G,J,K)}})}var N=d.default.getFileType(w.file.name),F=this._getCheckoutpoint(w),z="",q="";F&&F.checkpoint&&(q=F.state,z=F.videoId,F=F.checkpoint),F&&z==w.videoId&&q!=f.UPLOADSTATE.UPLOADING&&(F.file=w.file,w.checkpoint=F,F.uploadId);var B=this._adjustPartSize(w);this._reportLog("20002",w,{ft:N,fs:w.file.size,bu:w.bucket,ok:w.object,vid:w.videoId||"",fn:w.file.name,fw:null,fh:null,ps:B});var M={headers:{"x-oss-notification":w.userData?w.userData:""},partSize:B,parallel:this.options.parallel};this._ossUpload.upload(w,M)}},{key:"_findUploadIndex",value:function(){for(var w=-1,R=0;R 0||R.name=="SignatureDoesNotMatchError"||R.code=="SecurityTokenExpired"||R.code=="InvalidSecurityToken.Expired"||R.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=f.VODSTATE.EXPIRE,w.state=f.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(w,R)}catch(F){console.log(F)}}return}if((R.name=="RequestTimeoutError"||R.name=="ConnectionTimeout"||R.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var N=this;return setTimeout(function(){N._uploadCore(w,!0)},1e3*N._retryDuration),void this._retryCount++}R.name=="NoSuchUploadError"&&this._removeCheckoutpoint(w),this._handleError(w,R)}}},{key:"_handleError",value:function(w,R){var N=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],F=f.UPLOADSTATE.FAIlURE;if(w.state!=f.UPLOADSTATE.CANCELED&&(w.state=f.UPLOADSTATE.FAIlURE,this._state=f.VODSTATE.FAILURE,this.options.onUploadFailed&&R&&R.code&&R.message))try{this.options.onUploadFailed(w,R.code,R.message)}catch(q){console.log(q)}if(N&&this._changeState(w,F),this._reportLog("20006",w,{code:R.name,message:R.message,requestId:R.requestId,fs:w.file.size,bu:w.bucket,ok:w.object,fn:w.file.name}),this._reportLog("20004",w,{requestId:R.requestId,fs:w.file.size,bu:w.bucket,ok:w.object,fn:w.file.name}),w.ri=y.default.create(),this._findUploadIndex()!=-1){var z=this;this._state=f.VODSTATE.START,setTimeout(function(){z.nextUpload()},100)}}},{key:"_complete",value:function(w,R){if(w.state=f.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(w)}catch(z){console.log(z)}var N=0;R&&R.res&&R.res.headers&&(N=R.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(w);var F=this;setTimeout(function(){F.nextUpload()},100),this._retryCount=0,this._reportLog("20003",w,{requestId:N})}},{key:"_progress",value:function(w,R,N){if(this.options.onUploadProgress)try{w.loaded=R.loaded,this.options.onUploadProgress(w,R.total,R.loaded)}catch(J){console.log(J)}var F=R.checkpoint,z=0;F&&(w.checkpoint=F,this._saveCheckoutpoint(w,F,f.UPLOADSTATE.UPLOADING),z=F.uploadId),this._retryCount=0;var q=this._getPortNumber(F),B=0;if(N&&N.headers&&(B=N.headers["x-oss-request-id"]),R.loaded!=0&&this._reportLog("20007",w,{pn:q,requestId:B}),R.loaded!=1&&this._reportLog("20005",w,{UploadId:z,pn:q+1,pr:w.retry?1:0,fs:w.file.size,bu:w.bucket,ok:w.object,fn:w.file.name}),!this._invalidUserId&&!w.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var M={file:w.file,checkpoint:R,userId:this.options.userId,videoId:w.videoId,region:this.options.region,fileHash:w.fileHash};try{var G=this;_.default.upload(M,function(){},function(J){if((J=JSON.parse(J))&&J.Code=="InvalidParameter"&&J.Message.indexOf("UserId")>0){G._invalidUserId=!0;var K=J.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(K)}})}catch(J){console.log(J)}}}},{key:"_getPortNumber",value:function(w){if(w){var R=w.doneParts;if(R&&R.length>0)return R[R.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(w){var R=this._getCheckoutpointKey(w);l.default.remove(R)}},{key:"_getCheckoutpoint",value:function(w){var R=this._getCheckoutpointKey(w),N=l.default.get(R);if(N)try{return JSON.parse(N)}catch(F){}return""}},{key:"_saveCheckoutpoint",value:function(w,R,N){if(R){var F=this._getCheckoutpointKey(w),z=w.file,q={fileName:z.name,lastModified:z.lastModified,size:z.size,object:w.object,videoId:w.videoId,bucket:w.bucket,endpoint:w.endpoint,checkpoint:R,loaded:w.loaded,state:N};l.default.set(F,JSON.stringify(q))}}},{key:"_changeState",value:function(w,R){var N=this._getCheckoutpoint(w);N&&((this._onbeforeunload=!0)&&(R=f.UPLOADSTATE.STOPED),this._saveCheckoutpoint(w,N.checkpoint,R))}},{key:"_getCheckoutpointKey",value:function(w){return"upload_"+w.file.lastModified+"_"+w.file.name+"_"+w.file.size}},{key:"_getCheckoutpointFromCloud",value:function(w,R,N){var F={userId:this.options.userId,uploadInfoList:[{FileName:w.file.name,FileSize:w.file.size,FileCreateTime:w.file.lastModified,FileHash:w.fileHash}],region:this.options.region};_.default.get(F,function(z){R(z)},N)}},{key:"_reportLog",value:function(w,R,N){N||(N={}),N.ri=R.ri,this._ut&&(N.ut=this._ut),this._log.log(w,N)}},{key:"_initEvent",value:function(){var w=this;window&&(window.onbeforeunload=function(R){if(w._onbeforeunload=!0,w._curIndex!=-1&&w._uploadList.length>w._curIndex){var N=w._uploadList[w._curIndex];w._changeState(N,f.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var w=0;w 1e4?w.file.size/9999:this.options.partSize}}]),S}());C.default=E},function(W,C,D){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},C.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(W,C,D){"use strict";function T(n){return n&&n.__esModule?n:{default:n}}function A(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(C,"__esModule",{value:!0});var O=function(){function n(o,r){for(var l=0;l =A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return 0|re}function t(re){return+re!=re&&(re=0),f.alloc(+re)}function d(re,P){if(f.isBuffer(re))return re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var j=re.length;if(j===0)return 0;for(var ee=!1;;)switch(P){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":case void 0:return _e(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Me(re).length;default:if(ee)return _e(re).length;P=(""+P).toLowerCase(),ee=!0}}function v(re,P,j){var ee=!1;if((P===void 0||P<0)&&(P=0),P>this.length)return"";if((j===void 0||j>this.length)&&(j=this.length),j<=0)return"";if(j>>>=0,P>>>=0,j<=P)return"";for(re||(re="utf8");;)switch(re){case"hex":return q(this,P,j);case"utf8":case"utf-8":return R(this,P,j);case"ascii":return F(this,P,j);case"latin1":case"binary":return z(this,P,j);case"base64":return w(this,P,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,P,j);default:if(ee)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),ee=!0}}function y(re,P,j){var ee=re[P];re[P]=re[j],re[j]=ee}function b(re,P,j,ee,$){if(re.length===0)return-1;if(typeof j=="string"?(ee=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,isNaN(j)&&(j=$?0:re.length-1),j<0&&(j=re.length+j),j>=re.length){if($)return-1;j=re.length-1}else if(j<0){if(!$)return-1;j=0}if(typeof P=="string"&&(P=f.from(P,ee)),f.isBuffer(P))return P.length===0?-1:g(re,P,j,ee,$);if(typeof P=="number")return P&=255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(re,P,j):Uint8Array.prototype.lastIndexOf.call(re,P,j):g(re,[P],j,ee,$);throw new TypeError("val must be string, number or Buffer")}function g(re,P,j,ee,$){function Q(qe,Ye){return xe===1?qe[Ye]:qe.readUInt16BE(Ye*xe)}var xe=1,De=re.length,dt=P.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(re.length<2||P.length<2)return-1;xe=2,De/=2,dt/=2,j/=2}var Ne;if($){var Be=-1;for(Ne=j;Ne De&&(j=De-dt),Ne=j;Ne>=0;Ne--){for(var tt=!0,lt=0;lt $&&(ee=$):ee=$;var Q=P.length;if(Q%2!=0)throw new TypeError("Invalid hex string");ee>Q/2&&(ee=Q/2);for(var xe=0;xe 239?4:Q>223?3:Q>191?2:1;if($+De<=j){var dt,Ne,Be,tt;switch(De){case 1:Q<128&&(xe=Q);break;case 2:dt=re[$+1],(192&dt)==128&&(tt=(31&Q)<<6|63&dt)>127&&(xe=tt);break;case 3:dt=re[$+1],Ne=re[$+2],(192&dt)==128&&(192&Ne)==128&&(tt=(15&Q)<<12|(63&dt)<<6|63&Ne)>2047&&(tt<55296||tt>57343)&&(xe=tt);break;case 4:dt=re[$+1],Ne=re[$+2],Be=re[$+3],(192&dt)==128&&(192&Ne)==128&&(192&Be)==128&&(tt=(15&Q)<<18|(63&dt)<<12|(63&Ne)<<6|63&Be)>65535&&tt<1114112&&(xe=tt)}}xe===null?(xe=65533,De=1):xe>65535&&(xe-=65536,ee.push(xe>>>10&1023|55296),xe=56320|1023&xe),ee.push(xe),$+=De}return N(ee)}function N(re){var P=re.length;if(P<=He)return String.fromCharCode.apply(String,re);for(var j="",ee=0;ee