(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2409],{72167:function(d,g){"use strict";function u(a,D){return D===void 0&&(D=Object),D&&typeof D.freeze=="function"?D.freeze(a):a}function h(a,D){if(a===null||typeof a!="object")throw new TypeError("target is not an object");for(var N in D)Object.prototype.hasOwnProperty.call(D,N)&&(a[N]=D[N]);return a}var n=u({HTML:"text/html",isHTML:function(a){return a===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),z=u({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===z.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});g.assign=h,g.freeze=u,g.MIME_TYPE=n,g.NAMESPACE=z},86129:function(d,g,u){var h,n=u(72167),z=u(41146),a=u(31045),D=u(76925),N=z.DOMImplementation,T=n.NAMESPACE,_=D.ParseError,w=D.XMLReader;function M(x){return x.replace(/\r[\n\u0085]/g,` `).replace(/[\r\u0085\u2028]/g,` `)}function P(x){this.options=x||{locator:{}}}P.prototype.parseFromString=function(x,v){var K=this.options,m=new w,b=K.domBuilder||new R,J=K.errorHandler,$=K.locator,oe=K.xmlns||{},C=/\/x?html?$/.test(v),A=C?a.HTML_ENTITIES:a.XML_ENTITIES;$&&b.setDocumentLocator($),m.errorHandler=Z(J,b,$),m.domBuilder=K.domBuilder||b,C&&(oe[""]=T.HTML),oe.xml=oe.xml||T.XML;var F=K.normalizeLineEndings||M;return x&&typeof x=="string"?m.parse(F(x),oe,A):m.errorHandler.error("invalid doc source"),b.doc};function Z(x,v,K){if(!x){if(v instanceof R)return v;x=v}var m={},b=x instanceof Function;K=K||{};function J($){var oe=x[$];!oe&&b&&(oe=x.length==2?function(C){x($,C)}:x),m[$]=oe&&function(C){oe("[xmldom "+$+"] "+C+ie(K))}||function(){}}return J("warning"),J("error"),J("fatalError"),m}function R(){this.cdata=!1}function I(x,v){v.lineNumber=x.lineNumber,v.columnNumber=x.columnNumber}R.prototype={startDocument:function(){this.doc=new N().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(x,v,K,m){var b=this.doc,J=b.createElementNS(x,K||v),$=m.length;B(this,J),this.currentElement=J,this.locator&&I(this.locator,J);for(var oe=0;oe<$;oe++){var x=m.getURI(oe),C=m.getValue(oe),K=m.getQName(oe),A=b.createAttributeNS(x,K);this.locator&&I(m.getLocator(oe),A),A.value=A.nodeValue=C,J.setAttributeNode(A)}},endElement:function(x,v,K){var m=this.currentElement,b=m.tagName;this.currentElement=m.parentNode},startPrefixMapping:function(x,v){},endPrefixMapping:function(x){},processingInstruction:function(x,v){var K=this.doc.createProcessingInstruction(x,v);this.locator&&I(this.locator,K),B(this,K)},ignorableWhitespace:function(x,v,K){},characters:function(x,v,K){if(x=ce.apply(this,arguments),x){if(this.cdata)var m=this.doc.createCDATASection(x);else var m=this.doc.createTextNode(x);this.currentElement?this.currentElement.appendChild(m):/^\s*$/.test(x)&&this.doc.appendChild(m),this.locator&&I(this.locator,m)}},skippedEntity:function(x){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(x){(this.locator=x)&&(x.lineNumber=0)},comment:function(x,v,K){x=ce.apply(this,arguments);var m=this.doc.createComment(x);this.locator&&I(this.locator,m),B(this,m)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(x,v,K){var m=this.doc.implementation;if(m&&m.createDocumentType){var b=m.createDocumentType(x,v,K);this.locator&&I(this.locator,b),B(this,b),this.doc.doctype=b}},warning:function(x){console.warn("[xmldom warning] "+x,ie(this.locator))},error:function(x){console.error("[xmldom error] "+x,ie(this.locator))},fatalError:function(x){throw new _(x,this.locator)}};function ie(x){if(x)return` @`+(x.systemId||"")+"#[line:"+x.lineNumber+",col:"+x.columnNumber+"]"}function ce(x,v,K){return typeof x=="string"?x.substr(v,K):x.length>=v+K||v?new java.lang.String(x,v,K)+"":x}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(x){R.prototype[x]=function(){return null}});function B(x,v){x.currentElement?x.currentElement.appendChild(v):x.doc.appendChild(v)}h=R,h=M,g.DOMParser=P},41146:function(d,g,u){var h=u(72167),n=h.NAMESPACE;function z(r){return r!==""}function a(r){return r?r.split(/[\t\n\f\r ]+/).filter(z):[]}function D(r,s){return r.hasOwnProperty(s)||(r[s]=!0),r}function N(r){if(!r)return[];var s=a(r);return Object.keys(s.reduce(D,{}))}function T(r){return function(s){return r&&r.indexOf(s)!==-1}}function _(r,s){for(var c in r)s[c]=r[c]}function w(r,s){var c=r.prototype;if(!(c instanceof s)){let Y=function(){};var O=Y;Y.prototype=s.prototype,Y=new Y,_(c,Y),r.prototype=c=Y}c.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),c.constructor=r)}var M={},P=M.ELEMENT_NODE=1,Z=M.ATTRIBUTE_NODE=2,R=M.TEXT_NODE=3,I=M.CDATA_SECTION_NODE=4,ie=M.ENTITY_REFERENCE_NODE=5,ce=M.ENTITY_NODE=6,B=M.PROCESSING_INSTRUCTION_NODE=7,x=M.COMMENT_NODE=8,v=M.DOCUMENT_NODE=9,K=M.DOCUMENT_TYPE_NODE=10,m=M.DOCUMENT_FRAGMENT_NODE=11,b=M.NOTATION_NODE=12,J={},$={},oe=J.INDEX_SIZE_ERR=($[1]="Index size error",1),C=J.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),A=J.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),F=J.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),W=J.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),ee=J.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),ne=J.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),H=J.NOT_FOUND_ERR=($[8]="Not found",8),ue=J.NOT_SUPPORTED_ERR=($[9]="Not supported",9),de=J.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),V=J.INVALID_STATE_ERR=($[11]="Invalid state",11),L=J.SYNTAX_ERR=($[12]="Syntax error",12),U=J.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),j=J.NAMESPACE_ERR=($[14]="Invalid namespace",14),re=J.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function se(r,s){if(s instanceof Error)var c=s;else c=this,Error.call(this,$[r]),this.message=$[r],Error.captureStackTrace&&Error.captureStackTrace(this,se);return c.code=r,s&&(this.message=this.message+": "+s),c}se.prototype=Error.prototype,_(J,se);function Q(){}Q.prototype={length:0,item:function(r){return this[r]||null},toString:function(r,s){for(var c=[],O=0;O=0){for(var Y=s.length-1;O0},lookupPrefix:function(r){for(var s=this;s;){var c=s._nsMap;if(c){for(var O in c)if(c[O]==r)return O}s=s.nodeType==Z?s.ownerDocument:s.parentNode}return null},lookupNamespaceURI:function(r){for(var s=this;s;){var c=s._nsMap;if(c&&r in c)return c[r];s=s.nodeType==Z?s.ownerDocument:s.parentNode}return null},isDefaultNamespace:function(r){var s=this.lookupPrefix(r);return s==null}};function fe(r){return r=="<"&&"<"||r==">"&&">"||r=="&"&&"&"||r=='"'&&"""||"&#"+r.charCodeAt()+";"}_(M,q),_(M,q.prototype);function Ce(r,s){if(s(r))return!0;if(r=r.firstChild)do if(Ce(r,s))return!0;while(r=r.nextSibling)}function he(){}function ke(r,s,c){r&&r._inc++;var O=c.namespaceURI;O===n.XMLNS&&(s._nsMap[c.prefix?c.localName:""]=c.value)}function Be(r,s,c,O){r&&r._inc++;var Y=c.namespaceURI;Y===n.XMLNS&&delete s._nsMap[c.prefix?c.localName:""]}function me(r,s,c){if(r&&r._inc){r._inc++;var O=s.childNodes;if(c)O[O.length++]=c;else{for(var Y=s.firstChild,Ee=0;Y;)O[Ee++]=Y,Y=Y.nextSibling;O.length=Ee,delete O[O.length]}}}function pe(r,s){var c=s.previousSibling,O=s.nextSibling;return c?c.nextSibling=O:r.firstChild=O,O?O.previousSibling=c:r.lastChild=c,s.parentNode=null,s.previousSibling=null,s.nextSibling=null,me(r.ownerDocument,r),s}function Pe(r,s,c){var O=s.parentNode;if(O&&O.removeChild(s),s.nodeType===m){var Y=s.firstChild;if(Y==null)return s;var Ee=s.lastChild}else Y=Ee=s;var e=c?c.previousSibling:r.lastChild;Y.previousSibling=e,Ee.nextSibling=c,e?e.nextSibling=Y:r.firstChild=Y,c==null?r.lastChild=Ee:c.previousSibling=Ee;do Y.parentNode=r;while(Y!==Ee&&(Y=Y.nextSibling));return me(r.ownerDocument||r,r),s.nodeType==m&&(s.firstChild=s.lastChild=null),s}function xe(r,s){return s.parentNode&&s.parentNode.removeChild(s),s.parentNode=r,s.previousSibling=r.lastChild,s.nextSibling=null,s.previousSibling?s.previousSibling.nextSibling=s:r.firstChild=s,r.lastChild=s,me(r.ownerDocument,r,s),s}he.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,s){if(r.nodeType==m){for(var c=r.firstChild;c;){var O=c.nextSibling;this.insertBefore(c,s),c=O}return r}return this.documentElement==null&&r.nodeType==P&&(this.documentElement=r),Pe(this,r,s),r.ownerDocument=this,r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),pe(this,r)},importNode:function(r,s){return Je(this,r,s)},getElementById:function(r){var s=null;return Ce(this.documentElement,function(c){if(c.nodeType==P&&c.getAttribute("id")==r)return s=c,!0}),s},getElementsByClassName:function(r){var s=N(r);return new te(this,function(c){var O=[];return s.length>0&&Ce(c.documentElement,function(Y){if(Y!==c&&Y.nodeType===P){var Ee=Y.getAttribute("class");if(Ee){var e=r===Ee;if(!e){var o=N(Ee);e=s.every(T(o))}e&&O.push(Y)}}}),O})},createElement:function(r){var s=new Ae;s.ownerDocument=this,s.nodeName=r,s.tagName=r,s.localName=r,s.childNodes=new Q;var c=s.attributes=new ye;return c._ownerElement=s,s},createDocumentFragment:function(){var r=new Qe;return r.ownerDocument=this,r.childNodes=new Q,r},createTextNode:function(r){var s=new He;return s.ownerDocument=this,s.appendData(r),s},createComment:function(r){var s=new Ke;return s.ownerDocument=this,s.appendData(r),s},createCDATASection:function(r){var s=new ze;return s.ownerDocument=this,s.appendData(r),s},createProcessingInstruction:function(r,s){var c=new $e;return c.ownerDocument=this,c.tagName=c.target=r,c.nodeValue=c.data=s,c},createAttribute:function(r){var s=new we;return s.ownerDocument=this,s.name=r,s.nodeName=r,s.localName=r,s.specified=!0,s},createEntityReference:function(r){var s=new je;return s.ownerDocument=this,s.nodeName=r,s},createElementNS:function(r,s){var c=new Ae,O=s.split(":"),Y=c.attributes=new ye;return c.childNodes=new Q,c.ownerDocument=this,c.nodeName=s,c.tagName=s,c.namespaceURI=r,O.length==2?(c.prefix=O[0],c.localName=O[1]):c.localName=s,Y._ownerElement=c,c},createAttributeNS:function(r,s){var c=new we,O=s.split(":");return c.ownerDocument=this,c.nodeName=s,c.name=s,c.namespaceURI=r,c.specified=!0,O.length==2?(c.prefix=O[0],c.localName=O[1]):c.localName=s,c}},w(he,q);function Ae(){this._nsMap={}}Ae.prototype={nodeType:P,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var s=this.getAttributeNode(r);return s&&s.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,s){var c=this.ownerDocument.createAttribute(r);c.value=c.nodeValue=""+s,this.setAttributeNode(c)},removeAttribute:function(r){var s=this.getAttributeNode(r);s&&this.removeAttributeNode(s)},appendChild:function(r){return r.nodeType===m?this.insertBefore(r,null):xe(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,s){var c=this.getAttributeNodeNS(r,s);c&&this.removeAttributeNode(c)},hasAttributeNS:function(r,s){return this.getAttributeNodeNS(r,s)!=null},getAttributeNS:function(r,s){var c=this.getAttributeNodeNS(r,s);return c&&c.value||""},setAttributeNS:function(r,s,c){var O=this.ownerDocument.createAttributeNS(r,s);O.value=O.nodeValue=""+c,this.setAttributeNode(O)},getAttributeNodeNS:function(r,s){return this.attributes.getNamedItemNS(r,s)},getElementsByTagName:function(r){return new te(this,function(s){var c=[];return Ce(s,function(O){O!==s&&O.nodeType==P&&(r==="*"||O.tagName==r)&&c.push(O)}),c})},getElementsByTagNameNS:function(r,s){return new te(this,function(c){var O=[];return Ce(c,function(Y){Y!==c&&Y.nodeType===P&&(r==="*"||Y.namespaceURI===r)&&(s==="*"||Y.localName==s)&&O.push(Y)}),O})}},he.prototype.getElementsByTagName=Ae.prototype.getElementsByTagName,he.prototype.getElementsByTagNameNS=Ae.prototype.getElementsByTagNameNS,w(Ae,q);function we(){}we.prototype.nodeType=Z,w(we,q);function Ue(){}Ue.prototype={data:"",substringData:function(r,s){return this.data.substring(r,r+s)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,s){this.replaceData(r,0,s)},appendChild:function(r){throw new Error($[A])},deleteData:function(r,s){this.replaceData(r,s,"")},replaceData:function(r,s,c){var O=this.data.substring(0,r),Y=this.data.substring(r+s);c=O+c+Y,this.nodeValue=this.data=c,this.length=c.length}},w(Ue,q);function He(){}He.prototype={nodeName:"#text",nodeType:R,splitText:function(r){var s=this.data,c=s.substring(r);s=s.substring(0,r),this.data=this.nodeValue=s,this.length=s.length;var O=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(O,this.nextSibling),O}},w(He,Ue);function Ke(){}Ke.prototype={nodeName:"#comment",nodeType:x},w(Ke,Ue);function ze(){}ze.prototype={nodeName:"#cdata-section",nodeType:I},w(ze,Ue);function Le(){}Le.prototype.nodeType=K,w(Le,q);function Xe(){}Xe.prototype.nodeType=b,w(Xe,q);function We(){}We.prototype.nodeType=ce,w(We,q);function je(){}je.prototype.nodeType=ie,w(je,q);function Qe(){}Qe.prototype.nodeName="#document-fragment",Qe.prototype.nodeType=m,w(Qe,q);function $e(){}$e.prototype.nodeType=B,w($e,q);function tt(){}tt.prototype.serializeToString=function(r,s,c){return nt.call(r,s,c)},q.prototype.toString=nt;function nt(r,s){var c=[],O=this.nodeType==9&&this.documentElement||this,Y=O.prefix,Ee=O.namespaceURI;if(Ee&&Y==null){var Y=O.lookupPrefix(Ee);if(Y==null)var e=[{namespace:Ee,prefix:null}]}return Fe(this,c,r,s,e),c.join("")}function it(r,s,c){var O=r.prefix||"",Y=r.namespaceURI;if(!Y||O==="xml"&&Y===n.XML||Y===n.XMLNS)return!1;for(var Ee=c.length;Ee--;){var e=c[Ee];if(e.prefix===O)return e.namespace!==Y}return!0}function Ye(r,s,c){r.push(" ",s,'="',c.replace(/[<>&"\t\n\r]/g,fe),'"')}function Fe(r,s,c,O,Y){if(Y||(Y=[]),O)if(r=O(r),r){if(typeof r=="string"){s.push(r);return}}else return;switch(r.nodeType){case P:var Ee=r.attributes,e=Ee.length,o=r.firstChild,t=r.tagName;c=n.isHTML(r.namespaceURI)||c;var i=t;if(!c&&!r.prefix&&r.namespaceURI){for(var l,f=0;f=0;p--){var S=Y[p];if(S.prefix===""&&S.namespace===r.namespaceURI){l=S.namespace;break}}if(l!==r.namespaceURI)for(var p=Y.length-1;p>=0;p--){var S=Y[p];if(S.namespace===r.namespaceURI){S.prefix&&(i=S.prefix+":"+t);break}}}s.push("<",i);for(var X=0;X"),c&&/^script$/i.test(t))for(;o;)o.data?s.push(o.data):Fe(o,s,c,O,Y.slice()),o=o.nextSibling;else for(;o;)Fe(o,s,c,O,Y.slice()),o=o.nextSibling;s.push("")}else s.push("/>");return;case v:case m:for(var o=r.firstChild;o;)Fe(o,s,c,O,Y.slice()),o=o.nextSibling;return;case Z:return Ye(s,r.name,r.value);case R:return s.push(r.data.replace(/[<&>]/g,fe));case I:return s.push("");case x:return s.push("");case K:var ae=r.publicId,Oe=r.systemId;if(s.push("");else if(Oe&&Oe!=".")s.push(" SYSTEM ",Oe,">");else{var be=r.internalSubset;be&&s.push(" [",be,"]"),s.push(">")}return;case B:return s.push("");case ie:return s.push("&",r.nodeName,";");default:s.push("??",r.nodeName)}}function Je(r,s,c){var O;switch(s.nodeType){case P:O=s.cloneNode(!1),O.ownerDocument=r;case m:break;case Z:c=!0;break}if(O||(O=s.cloneNode(!1)),O.ownerDocument=r,O.parentNode=null,c)for(var Y=s.firstChild;Y;)O.appendChild(Je(r,Y,c)),Y=Y.nextSibling;return O}function qe(r,s,c){var O=new s.constructor;for(var Y in s){var Ee=s[Y];typeof Ee!="object"&&Ee!=O[Y]&&(O[Y]=Ee)}switch(s.childNodes&&(O.childNodes=new Q),O.ownerDocument=r,O.nodeType){case P:var e=s.attributes,o=O.attributes=new ye,t=e.length;o._ownerElement=O;for(var i=0;i",lt:"<",quot:'"'}),g.HTML_ENTITIES=h({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),g.entityMap=g.HTML_ENTITIES},3969:function(d,g,u){var h,n=u(41146);h=n.DOMImplementation,h=n.XMLSerializer,g.DOMParser=u(86129).DOMParser},76925:function(d,g,u){var h=u(72167).NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+n.source+z.source+"*(?::"+n.source+z.source+"*)?$"),D=0,N=1,T=2,_=3,w=4,M=5,P=6,Z=7;function R(C,A){this.message=C,this.locator=A,Error.captureStackTrace&&Error.captureStackTrace(this,R)}R.prototype=new Error,R.prototype.name=R.name;function I(){}I.prototype={parse:function(C,A,F){var W=this.domBuilder;W.startDocument(),m(A,A={}),ie(C,A,F,W,this.errorHandler),W.endDocument()}};function ie(C,A,F,W,ee){function ne(xe){if(xe>65535){xe-=65536;var Ae=55296+(xe>>10),we=56320+(xe&1023);return String.fromCharCode(Ae,we)}else return String.fromCharCode(xe)}function H(xe){var Ae=xe.slice(1,-1);return Object.hasOwnProperty.call(F,Ae)?F[Ae]:Ae.charAt(0)==="#"?ne(parseInt(Ae.substr(1).replace("x","0x"))):(ee.error("entity not found:"+xe),xe)}function ue(xe){if(xe>Q){var Ae=C.substring(Q,xe).replace(/&#?\w+;/g,H);j&&de(Q),W.characters(Ae,0,xe-Q),Q=xe}}function de(xe,Ae){for(;xe>=L&&(Ae=U.exec(C));)V=Ae.index,L=V+Ae[0].length,j.lineNumber++;j.columnNumber=xe-V+1}for(var V=0,L=0,U=/.*(?:\r\n?|\n)|.*$/g,j=W.locator,re=[{currentNSMap:A}],se={},Q=0;;){try{var te=C.indexOf("<",Q);if(te<0){if(!C.substr(Q).match(/^\s*$/)){var Re=W.doc,ye=Re.createTextNode(C.substr(Q));Re.appendChild(ye),W.currentElement=ye}return}switch(te>Q&&ue(te),C.charAt(te+1)){case"/":var y=C.indexOf(">",te+3),E=C.substring(te+2,y).replace(/[ \t\n\r]+$/g,""),k=re.pop();y<0?(E=C.substring(te+2).replace(/[\s<].*/,""),ee.error("end tag name: "+E+" is not complete:"+k.tagName),y=te+1+E.length):E.match(/\sQ?Q=y:ue(Math.max(te,Q)+1)}}function ce(C,A){return A.lineNumber=C.lineNumber,A.columnNumber=C.columnNumber,A}function B(C,A,F,W,ee,ne){function H(re,se,Q){F.attributeNames.hasOwnProperty(re)&&ne.fatalError("Attribute "+re+" redefined"),F.addValue(re,se.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,ee),Q)}for(var ue,de,V=++A,L=D;;){var U=C.charAt(V);switch(U){case"=":if(L===N)ue=C.slice(A,V),L=_;else if(L===T)L=_;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(L===_||L===N)if(L===N&&(ne.warning('attribute value must after "="'),ue=C.slice(A,V)),A=V+1,V=C.indexOf(U,A),V>0)de=C.slice(A,V),H(ue,de,A-1),L=M;else throw new Error("attribute value no end '"+U+"' match");else if(L==w)de=C.slice(A,V),H(ue,de,A),ne.warning('attribute "'+ue+'" missed start quot('+U+")!!"),A=V+1,L=M;else throw new Error('attribute value must after "="');break;case"/":switch(L){case D:F.setTagName(C.slice(A,V));case M:case P:case Z:L=Z,F.closed=!0;case w:case N:case T:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ne.error("unexpected end of input"),L==D&&F.setTagName(C.slice(A,V)),V;case">":switch(L){case D:F.setTagName(C.slice(A,V));case M:case P:case Z:break;case w:case N:de=C.slice(A,V),de.slice(-1)==="/"&&(F.closed=!0,de=de.slice(0,-1));case T:L===T&&(de=ue),L==w?(ne.warning('attribute "'+de+'" missed quot(")!'),H(ue,de,A)):((!h.isHTML(W[""])||!de.match(/^(?:disabled|checked|selected)$/i))&&ne.warning('attribute "'+de+'" missed value!! "'+de+'" instead!!'),H(de,de,A));break;case _:throw new Error("attribute value missed!!")}return V;case"\x80":U=" ";default:if(U<=" ")switch(L){case D:F.setTagName(C.slice(A,V)),L=P;break;case N:ue=C.slice(A,V),L=T;break;case w:var de=C.slice(A,V);ne.warning('attribute "'+de+'" missed quot(")!!'),H(ue,de,A);case M:L=P;break}else switch(L){case T:var j=F.tagName;(!h.isHTML(W[""])||!ue.match(/^(?:disabled|checked|selected)$/i))&&ne.warning('attribute "'+ue+'" missed value!! "'+ue+'" instead2!!'),H(ue,ue,A),A=V,L=N;break;case M:ne.warning('attribute space is required"'+ue+'"!!');case P:L=N,A=V;break;case _:L=w,A=V;break;case Z:throw new Error("elements closed character '/' and '>' must be connected to")}}V++}}function x(C,A,F){for(var W=C.tagName,ee=null,ne=C.length;ne--;){var H=C[ne],ue=H.qName,de=H.value,j=ue.indexOf(":");if(j>0)var V=H.prefix=ue.slice(0,j),L=ue.slice(j+1),U=V==="xmlns"&&L;else L=ue,V=null,U=ue==="xmlns"&&"";H.localName=L,U!==!1&&(ee==null&&(ee={},m(F,F={})),F[U]=ee[U]=de,H.uri=h.XMLNS,A.startPrefixMapping(U,de))}for(var ne=C.length;ne--;){H=C[ne];var V=H.prefix;V&&(V==="xml"&&(H.uri=h.XML),V!=="xmlns"&&(H.uri=F[V||""]))}var j=W.indexOf(":");j>0?(V=C.prefix=W.slice(0,j),L=C.localName=W.slice(j+1)):(V=null,L=C.localName=W);var re=C.uri=F[V||""];if(A.startElement(re,L,W,C),C.closed){if(A.endElement(re,L,W),ee)for(V in ee)A.endPrefixMapping(V)}else return C.currentNSMap=F,C.localNSMap=ee,!0}function v(C,A,F,W,ee){if(/^(?:script|textarea)$/i.test(F)){var ne=C.indexOf("",A),H=C.substring(A+1,ne);if(/[&<]/.test(H))return/^script$/i.test(F)?(ee.characters(H,0,H.length),ne):(H=H.replace(/&#?\w+;/g,W),ee.characters(H,0,H.length),ne)}return A+1}function K(C,A,F,W){var ee=W[F];return ee==null&&(ee=C.lastIndexOf(""),ee",A+4);return ne>A?(F.comment(C,A+4,ne-A-4),ne+3):(W.error("Unclosed comment"),-1)}else return-1;default:if(C.substr(A+3,6)=="CDATA["){var ne=C.indexOf("]]>",A+9);return F.startCDATA(),F.characters(C,A+9,ne-A-9),F.endCDATA(),ne+3}var H=oe(C,A),ue=H.length;if(ue>1&&/!doctype/i.test(H[0][0])){var de=H[1][0],V=!1,L=!1;ue>3&&(/^public$/i.test(H[2][0])?(V=H[3][0],L=ue>4&&H[4][0]):/^system$/i.test(H[2][0])&&(L=H[3][0]));var U=H[ue-1];return F.startDTD(de,V,L),F.endDTD(),U.index+U[0].length}}return-1}function J(C,A,F){var W=C.indexOf("?>",A);if(W){var ee=C.substring(A,W).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(ee){var ne=ee[0].length;return F.processingInstruction(ee[1],ee[2]),W+2}else return-1}return-1}function $(){this.attributeNames={}}$.prototype={setTagName:function(C){if(!a.test(C))throw new Error("invalid tagName:"+C);this.tagName=C},addValue:function(C,A,F){if(!a.test(C))throw new Error("invalid attribute:"+C);this.attributeNames[C]=this.length,this[this.length++]={qName:C,value:A,offset:F}},length:0,getLocalName:function(C){return this[C].localName},getLocator:function(C){return this[C].locator},getQName:function(C){return this[C].qName},getURI:function(C){return this[C].uri},getValue:function(C){return this[C].value}};function oe(C,A){var F,W=[],ee=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(ee.lastIndex=A,ee.exec(C);F=ee.exec(C);)if(W.push(F),F[1])return W}g.XMLReader=I,g.ParseError=R},92409:function(d,g,u){var h=u(21715);d.exports=h},81595:function(d){var g=g||function(u,h){var n={},z=n.lib={},a=function(){},D=z.Base={extend:function(R){a.prototype=this;var I=new a;return R&&I.mixIn(R),I.hasOwnProperty("init")||(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var R=this.extend();return R.init.apply(R,arguments),R},init:function(){},mixIn:function(R){for(var I in R)R.hasOwnProperty(I)&&(this[I]=R[I]);R.hasOwnProperty("toString")&&(this.toString=R.toString)},clone:function(){return this.init.prototype.extend(this)}},N=z.WordArray=D.extend({init:function(R,I){R=this.words=R||[],this.sigBytes=I!=h?I:4*R.length},toString:function(R){return(R||_).stringify(this)},concat:function(R){var I=this.words,ie=R.words,ce=this.sigBytes;if(R=R.sigBytes,this.clamp(),ce%4)for(var B=0;B>>2]|=(ie[B>>>2]>>>24-8*(B%4)&255)<<24-8*((ce+B)%4);else if(65535>>2]=ie[B>>>2];else I.push.apply(I,ie);return this.sigBytes+=R,this},clamp:function(){var R=this.words,I=this.sigBytes;R[I>>>2]&=4294967295<<32-8*(I%4),R.length=u.ceil(I/4)},clone:function(){var R=D.clone.call(this);return R.words=this.words.slice(0),R},random:function(R){for(var I=[],ie=0;ie>>2]>>>24-8*(ce%4)&255;ie.push((B>>>4).toString(16)),ie.push((B&15).toString(16))}return ie.join("")},parse:function(R){for(var I=R.length,ie=[],ce=0;ce>>3]|=parseInt(R.substr(ce,2),16)<<24-4*(ce%8);return new N.init(ie,I/2)}},w=T.Latin1={stringify:function(R){var I=R.words;R=R.sigBytes;for(var ie=[],ce=0;ce>>2]>>>24-8*(ce%4)&255));return ie.join("")},parse:function(R){for(var I=R.length,ie=[],ce=0;ce>>2]|=(R.charCodeAt(ce)&255)<<24-8*(ce%4);return new N.init(ie,I)}},M=T.Utf8={stringify:function(R){try{return decodeURIComponent(escape(w.stringify(R)))}catch(I){throw Error("Malformed UTF-8 data")}},parse:function(R){return w.parse(unescape(encodeURIComponent(R)))}},P=z.BufferedBlockAlgorithm=D.extend({reset:function(){this._data=new N.init,this._nDataBytes=0},_append:function(R){typeof R=="string"&&(R=M.parse(R)),this._data.concat(R),this._nDataBytes+=R.sigBytes},_process:function(R){var I=this._data,ie=I.words,ce=I.sigBytes,B=this.blockSize,x=ce/(4*B),x=R?u.ceil(x):u.max((x|0)-this._minBufferSize,0);if(R=x*B,ce=u.min(4*R,ce),R){for(var v=0;vR;R++){if(16>R)a[R]=D[N+R]|0;else{var I=a[R-3]^a[R-8]^a[R-14]^a[R-16];a[R]=I<<1|I>>>31}I=(_<<5|_>>>27)+Z+a[R],I=20>R?I+((w&M|~w&P)+1518500249):40>R?I+((w^M^P)+1859775393):60>R?I+((w&M|w&P|M&P)-1894007588):I+((w^M^P)-899497514),Z=P,P=M,M=w<<30|w>>>2,w=_,_=I}T[0]=T[0]+_|0,T[1]=T[1]+w|0,T[2]=T[2]+M|0,T[3]=T[3]+P|0,T[4]=T[4]+Z|0},_doFinalize:function(){var D=this._data,N=D.words,T=8*this._nDataBytes,_=8*D.sigBytes;return N[_>>>5]|=128<<24-_%32,N[(_+64>>>9<<4)+14]=Math.floor(T/4294967296),N[(_+64>>>9<<4)+15]=T,D.sigBytes=4*N.length,this._process(),this._hash},clone:function(){var D=z.clone.call(this);return D._hash=this._hash.clone(),D}});u.SHA1=z._createHelper(h),u.HmacSHA1=z._createHmacHelper(h)})(),function(){var u=g,h=u.enc.Utf8;u.algo.HMAC=u.lib.Base.extend({init:function(n,z){n=this._hasher=new n.init,typeof z=="string"&&(z=h.parse(z));var a=n.blockSize,D=4*a;z.sigBytes>D&&(z=n.finalize(z)),z.clamp();for(var N=this._oKey=z.clone(),T=this._iKey=z.clone(),_=N.words,w=T.words,M=0;M>>2]>>>24-M%4*8&255,Z=N[M+1>>>2]>>>24-(M+1)%4*8&255,R=N[M+2>>>2]>>>24-(M+2)%4*8&255,I=P<<16|Z<<8|R,ie=0;ie<4&&M+ie*.75>>6*(3-ie)&63));var ce=_.charAt(64);if(ce)for(;w.length%4;)w.push(ce);return w.join("")},parse:function(D){var N=D.length,T=this._map,_=T.charAt(64);if(_){var w=D.indexOf(_);w!=-1&&(N=w)}for(var M=[],P=0,Z=0;Z>>6-Z%4*2;M[P>>>2]|=(R|I)<<24-P%4*8,P++}return n.create(M,P)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),d.exports=g},37494:function(d){var g="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",u="-.0-9\xB7\u0300-\u036F\u203F\u2040",h=new RegExp("^([^"+g+"])|^((x|X)(m|M)(l|L))|([^"+g+u+"])","g"),n=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,z=function(T){var _=[];if(T instanceof Object)for(var w in T)T.hasOwnProperty(w)&&_.push(w);return _},a=function(T,_){var w=function(M,P,Z,R,I){var ie=_.indent!==void 0?_.indent:" ",ce=_.prettyPrint?` `+new Array(R).join(ie):"";_.removeIllegalNameCharacters&&(M=M.replace(h,"_"));var B=[ce,"<",M,Z||""];return P&&P.length>0?(B.push(">"),B.push(P),I&&B.push(ce),B.push("")):B.push("/>"),B.join("")};return function M(P,Z,R){var I=typeof P;switch((Array.isArray?Array.isArray(P):P instanceof Array)?I="array":P instanceof Date&&(I="date"),I){case"array":var ie=[];return P.map(function(v){ie.push(M(v,1,R+1))}),_.prettyPrint&&ie.push(` `),ie.join("");break;case"date":return P.toJSON?P.toJSON():P+"";case"object":var ce=[];for(var B in P)if(P.hasOwnProperty(B))if(P[B]instanceof Array)for(var x=0;x0&&ce.push(` `),ce.join("");break;case"function":return P();default:return _.escape?N(P):""+P}}(T,0,0)},D=function(T){var _=['"),_.join("")};function N(T){return(""+T).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(n,"")}d.exports=function(T,_){if(_||(_={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof T=="string")try{T=JSON.parse(T.toString())}catch(Z){return!1}var w="",M="";_&&(typeof _=="object"?(_.xmlHeader&&(w=D(!!_.xmlHeader.standalone)),typeof _.docType!="undefined"&&(M="")):w=D()),_=_||{};var P=[w,_.prettyPrint&&M?` `:"",M,a(T,_)];return P.join("").replace(/\n{2,}/g,` `).replace(/\s+$/g,"")}},55432:function(module,exports,__webpack_require__){var process=__webpack_require__(34155),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(d){return Object.prototype.toString.call(d)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(d){return typeof d=="object"&&d.buffer&&d.buffer.constructor===ArrayBuffer});var createOutputMethod=function(d){return function(g,u){return new Md5(!0).update(g,u)[d]()}},createMethod=function(){var d=createOutputMethod("hex");NODE_JS&&(d=nodeWrap(d)),d.getCtx=d.create=function(){return new Md5},d.update=function(h){return d.create().update(h)};for(var g=0;g>6,D[n++]=128|u&63):u<55296||u>=57344?(D[n++]=224|u>>12,D[n++]=128|u>>6&63,D[n++]=128|u&63):(u=65536+((u&1023)<<10|d.charCodeAt(++h)&1023),D[n++]=240|u>>18,D[n++]=128|u>>12&63,D[n++]=128|u>>6&63,D[n++]=128|u&63);else for(n=this.start;h>2]|=u<>2]|=(192|u>>6)<>2]|=(128|u&63)<=57344?(a[n>>2]|=(224|u>>12)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<>2]|=(240|u>>18)<>2]|=(128|u>>12&63)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var d=this.blocks,g=this.lastByteIndex;d[g>>2]|=EXTRA[g&3],g>=56&&(this.hashed||this.hash(),d[0]=d[16],d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0),d[14]=this.bytes<<3,d[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var d,g,u,h,n,z,a=this.blocks;this.first?(d=a[0]-680876937,d=(d<<7|d>>>25)-271733879<<0,h=(-1732584194^d&2004318071)+a[1]-117830708,h=(h<<12|h>>>20)+d<<0,u=(-271733879^h&(d^-271733879))+a[2]-1126478375,u=(u<<17|u>>>15)+h<<0,g=(d^u&(h^d))+a[3]-1316259209,g=(g<<22|g>>>10)+u<<0):(d=this.h0,g=this.h1,u=this.h2,h=this.h3,d+=(h^g&(u^h))+a[0]-680876936,d=(d<<7|d>>>25)+g<<0,h+=(u^d&(g^u))+a[1]-389564586,h=(h<<12|h>>>20)+d<<0,u+=(g^h&(d^g))+a[2]+606105819,u=(u<<17|u>>>15)+h<<0,g+=(d^u&(h^d))+a[3]-1044525330,g=(g<<22|g>>>10)+u<<0),d+=(h^g&(u^h))+a[4]-176418897,d=(d<<7|d>>>25)+g<<0,h+=(u^d&(g^u))+a[5]+1200080426,h=(h<<12|h>>>20)+d<<0,u+=(g^h&(d^g))+a[6]-1473231341,u=(u<<17|u>>>15)+h<<0,g+=(d^u&(h^d))+a[7]-45705983,g=(g<<22|g>>>10)+u<<0,d+=(h^g&(u^h))+a[8]+1770035416,d=(d<<7|d>>>25)+g<<0,h+=(u^d&(g^u))+a[9]-1958414417,h=(h<<12|h>>>20)+d<<0,u+=(g^h&(d^g))+a[10]-42063,u=(u<<17|u>>>15)+h<<0,g+=(d^u&(h^d))+a[11]-1990404162,g=(g<<22|g>>>10)+u<<0,d+=(h^g&(u^h))+a[12]+1804603682,d=(d<<7|d>>>25)+g<<0,h+=(u^d&(g^u))+a[13]-40341101,h=(h<<12|h>>>20)+d<<0,u+=(g^h&(d^g))+a[14]-1502002290,u=(u<<17|u>>>15)+h<<0,g+=(d^u&(h^d))+a[15]+1236535329,g=(g<<22|g>>>10)+u<<0,d+=(u^h&(g^u))+a[1]-165796510,d=(d<<5|d>>>27)+g<<0,h+=(g^u&(d^g))+a[6]-1069501632,h=(h<<9|h>>>23)+d<<0,u+=(d^g&(h^d))+a[11]+643717713,u=(u<<14|u>>>18)+h<<0,g+=(h^d&(u^h))+a[0]-373897302,g=(g<<20|g>>>12)+u<<0,d+=(u^h&(g^u))+a[5]-701558691,d=(d<<5|d>>>27)+g<<0,h+=(g^u&(d^g))+a[10]+38016083,h=(h<<9|h>>>23)+d<<0,u+=(d^g&(h^d))+a[15]-660478335,u=(u<<14|u>>>18)+h<<0,g+=(h^d&(u^h))+a[4]-405537848,g=(g<<20|g>>>12)+u<<0,d+=(u^h&(g^u))+a[9]+568446438,d=(d<<5|d>>>27)+g<<0,h+=(g^u&(d^g))+a[14]-1019803690,h=(h<<9|h>>>23)+d<<0,u+=(d^g&(h^d))+a[3]-187363961,u=(u<<14|u>>>18)+h<<0,g+=(h^d&(u^h))+a[8]+1163531501,g=(g<<20|g>>>12)+u<<0,d+=(u^h&(g^u))+a[13]-1444681467,d=(d<<5|d>>>27)+g<<0,h+=(g^u&(d^g))+a[2]-51403784,h=(h<<9|h>>>23)+d<<0,u+=(d^g&(h^d))+a[7]+1735328473,u=(u<<14|u>>>18)+h<<0,g+=(h^d&(u^h))+a[12]-1926607734,g=(g<<20|g>>>12)+u<<0,n=g^u,d+=(n^h)+a[5]-378558,d=(d<<4|d>>>28)+g<<0,h+=(n^d)+a[8]-2022574463,h=(h<<11|h>>>21)+d<<0,z=h^d,u+=(z^g)+a[11]+1839030562,u=(u<<16|u>>>16)+h<<0,g+=(z^u)+a[14]-35309556,g=(g<<23|g>>>9)+u<<0,n=g^u,d+=(n^h)+a[1]-1530992060,d=(d<<4|d>>>28)+g<<0,h+=(n^d)+a[4]+1272893353,h=(h<<11|h>>>21)+d<<0,z=h^d,u+=(z^g)+a[7]-155497632,u=(u<<16|u>>>16)+h<<0,g+=(z^u)+a[10]-1094730640,g=(g<<23|g>>>9)+u<<0,n=g^u,d+=(n^h)+a[13]+681279174,d=(d<<4|d>>>28)+g<<0,h+=(n^d)+a[0]-358537222,h=(h<<11|h>>>21)+d<<0,z=h^d,u+=(z^g)+a[3]-722521979,u=(u<<16|u>>>16)+h<<0,g+=(z^u)+a[6]+76029189,g=(g<<23|g>>>9)+u<<0,n=g^u,d+=(n^h)+a[9]-640364487,d=(d<<4|d>>>28)+g<<0,h+=(n^d)+a[12]-421815835,h=(h<<11|h>>>21)+d<<0,z=h^d,u+=(z^g)+a[15]+530742520,u=(u<<16|u>>>16)+h<<0,g+=(z^u)+a[2]-995338651,g=(g<<23|g>>>9)+u<<0,d+=(u^(g|~h))+a[0]-198630844,d=(d<<6|d>>>26)+g<<0,h+=(g^(d|~u))+a[7]+1126891415,h=(h<<10|h>>>22)+d<<0,u+=(d^(h|~g))+a[14]-1416354905,u=(u<<15|u>>>17)+h<<0,g+=(h^(u|~d))+a[5]-57434055,g=(g<<21|g>>>11)+u<<0,d+=(u^(g|~h))+a[12]+1700485571,d=(d<<6|d>>>26)+g<<0,h+=(g^(d|~u))+a[3]-1894986606,h=(h<<10|h>>>22)+d<<0,u+=(d^(h|~g))+a[10]-1051523,u=(u<<15|u>>>17)+h<<0,g+=(h^(u|~d))+a[1]-2054922799,g=(g<<21|g>>>11)+u<<0,d+=(u^(g|~h))+a[8]+1873313359,d=(d<<6|d>>>26)+g<<0,h+=(g^(d|~u))+a[15]-30611744,h=(h<<10|h>>>22)+d<<0,u+=(d^(h|~g))+a[6]-1560198380,u=(u<<15|u>>>17)+h<<0,g+=(h^(u|~d))+a[13]+1309151649,g=(g<<21|g>>>11)+u<<0,d+=(u^(g|~h))+a[4]-145523070,d=(d<<6|d>>>26)+g<<0,h+=(g^(d|~u))+a[11]-1120210379,h=(h<<10|h>>>22)+d<<0,u+=(d^(h|~g))+a[2]+718787259,u=(u<<15|u>>>17)+h<<0,g+=(h^(u|~d))+a[9]-343485551,g=(g<<21|g>>>11)+u<<0,this.first?(this.h0=d+1732584193<<0,this.h1=g-271733879<<0,this.h2=u-1732584194<<0,this.h3=h+271733878<<0,this.first=!1):(this.h0=this.h0+d<<0,this.h1=this.h1+g<<0,this.h2=this.h2+u<<0,this.h3=this.h3+h<<0)},Md5.prototype.hex=function(){this.finalize();var d=this.h0,g=this.h1,u=this.h2,h=this.h3;return HEX_CHARS[d>>4&15]+HEX_CHARS[d&15]+HEX_CHARS[d>>12&15]+HEX_CHARS[d>>8&15]+HEX_CHARS[d>>20&15]+HEX_CHARS[d>>16&15]+HEX_CHARS[d>>28&15]+HEX_CHARS[d>>24&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[g&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[h&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(d){if(d==="hex")return this.hex();this.finalize();var g=this.h0,u=this.h1,h=this.h2,n=this.h3,z=[g&255,g>>8&255,g>>16&255,g>>24&255,u&255,u>>8&255,u>>16&255,u>>24&255,h&255,h>>8&255,h>>16&255,h>>24&255,n&255,n>>8&255,n>>16&255,n>>24&255];return z},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var d=new ArrayBuffer(16),g=new Uint32Array(d);return g[0]=this.h0,g[1]=this.h1,g[2]=this.h2,g[3]=this.h3,d},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var d,g,u,h="",n=this.array(),z=0;z<15;)d=n[z++],g=n[z++],u=n[z++],h+=BASE64_ENCODE_CHAR[d>>>2]+BASE64_ENCODE_CHAR[(d<<4|g>>>4)&63]+BASE64_ENCODE_CHAR[(g<<2|u>>>6)&63]+BASE64_ENCODE_CHAR[u&63];return d=n[z],h+=BASE64_ENCODE_CHAR[d>>>2]+BASE64_ENCODE_CHAR[d<<4&63]+"==",h};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},6860:function(d){var g=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}},u=function(a,D,N,T){return D=D||"&",N=N||"=",a===null&&(a=void 0),typeof a=="object"?Object.keys(a).map(function(_){var w=encodeURIComponent(g(_))+N;return Array.isArray(a[_])?a[_].map(function(M){return w+encodeURIComponent(g(M))}).join(D):w+encodeURIComponent(g(a[_]))}).filter(Boolean).join(D):T?encodeURIComponent(g(T))+N+encodeURIComponent(g(a)):""},h=function(a,D,N){var T={};return D.getAllResponseHeaders().trim().split(` `).forEach(function(_){if(_){var w=_.indexOf(":"),M=_.substr(0,w).trim().toLowerCase(),P=_.substr(w+1).trim();T[M]=P}}),{error:a,statusCode:D.status,statusMessage:D.statusText,headers:T,body:N}},n=function(a,D){return!D&&D==="text"?a.responseText:a.response},z=function(a,D){var N=(a.method||"GET").toUpperCase(),T=a.url;if(a.qs){var _=u(a.qs);_&&(T+=(T.indexOf("?")===-1?"?":"&")+_)}var w=new XMLHttpRequest;if(w.open(N,T,!0),w.responseType=a.dataType||"text",a.xhrFields)for(var M in a.xhrFields)w[M]=a.xhrFields[M];var P=a.headers;if(P)for(var Z in P)P.hasOwnProperty(Z)&&Z.toLowerCase()!=="content-length"&&Z.toLowerCase()!=="user-agent"&&Z.toLowerCase()!=="origin"&&Z.toLowerCase()!=="host"&&w.setRequestHeader(Z,P[Z]);return a.onProgress&&w.upload&&(w.upload.onprogress=a.onProgress),a.onDownloadProgress&&(w.onprogress=a.onDownloadProgress),a.timeout&&(w.timeout=a.timeout),w.ontimeout=function(R){var I=new Error("timeout");D(h(I,w))},w.onload=function(){D(h(null,w,n(w,a.dataType)))},w.onerror=function(R){var I=n(w,a.dataType);if(I)D(h(null,w,I));else{var ie=w.statusText;!ie&&w.status===0&&(ie=new Error("CORS blocked or network error")),D(h(ie,w,I))}},w.send(a.body||""),w};d.exports=z},17509:function(d,g,u){var h=u(3969).DOMParser,n=function(){this.version="1.3.5";var a={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},D=new RegExp(/(?!xmlns)^.*:/),N=new RegExp(/^\s+|\s+$/g);return this.grokType=function(T){return/^\s*$/.test(T)?null:/^(?:true|false)$/i.test(T)?T.toLowerCase()==="true":isFinite(T)?parseFloat(T):T},this.parseString=function(T,_){if(T){var w=this.stringToXML(T);return w.getElementsByTagName("parsererror").length?null:this.parseXML(w,_)}else return null},this.parseXML=function(T,_){for(var w in _)a[w]=_[w];var M={},P=0,Z="",R=T.childNodes.length;if(R)for(var I,ie,ce,B=0;Bee)return j(null,!1);if(re>1){var se=Math.max(U[0].Size,U[1].Size);if(se!==W)return j(null,!1)}var Q=function(te){if(te=re.length){L.emit("has_and_check_upload_id",U);return}var te=re[Q];if(!a.isInArray(U,te)){h.removeUploadId.call(C,te),se(Q+1);return}if(h.using[te]){se(Q+1);return}_.call(C,{Bucket:b,Region:J,Key:$,UploadId:te},function(Re,ye){!C._isRunningTask(m)||(Re?(h.removeUploadId.call(C,te),se(Q+1)):L.emit("upload_id_available",{UploadId:te,PartList:ye.PartList}))})};se(0)}),L.on("get_remote_upload_id_list",function(){T.call(C,{Bucket:b,Region:J,Key:$},function(U,j){if(!!C._isRunningTask(m)){if(U)return L.emit("error",U);var re=a.filter(j.UploadList,function(te){return te.Key===$&&(!oe||te.StorageClass.toUpperCase()===oe.toUpperCase())}).reverse().map(function(te){return te.UploadId||te.UploadID});if(re.length)L.emit("seek_local_avail_upload_id",re);else{var se=h.getFileId(v.Body,v.ChunkSize,b,$),Q;se&&(Q=h.getUploadIdList.call(C,se))&&a.each(Q,function(te){h.removeUploadId.call(C,te)}),L.emit("no_available_upload_id")}}})}),L.emit("get_remote_upload_id_list")}function T(v,K){var m=this,b=[],J={Bucket:v.Bucket,Region:v.Region,Prefix:v.Key},$=function(){m.multipartList(J,function(oe,C){if(oe)return K(oe);b.push.apply(b,C.Upload||[]),C.IsTruncated==="true"?(J.KeyMarker=C.NextKeyMarker,J.UploadIdMarker=C.NextUploadIdMarker,$()):K(null,{UploadList:b})})};$()}function _(v,K){var m=this,b=[],J={Bucket:v.Bucket,Region:v.Region,Key:v.Key,UploadId:v.UploadId},$=function(){m.multipartListPart(J,function(oe,C){if(oe)return K(oe);b.push.apply(b,C.Part||[]),C.IsTruncated==="true"?(J.PartNumberMarker=C.NextPartNumberMarker,$()):K(null,{PartList:b})})};$()}function w(v,K){var m=this,b=v.TaskId,J=v.Bucket,$=v.Region,oe=v.Key,C=v.UploadData,A=v.FileSize,F=v.SliceSize,W=Math.min(v.AsyncLimit||m.options.ChunkParallelLimit||1,256),ee=v.Body,ne=Math.ceil(A/F),H=0,ue=v.ServerSideEncryption,de=v.Headers,V=a.filter(C.PartList,function(U){return U.Uploaded&&(H+=U.PartNumber>=ne&&A%F||F),!U.Uploaded}),L=v.onProgress;n.eachLimit(V,W,function(U,j){if(!!m._isRunningTask(b)){var re=U.PartNumber,se=Math.min(A,U.PartNumber*F)-(U.PartNumber-1)*F,Q=0;M.call(m,{TaskId:b,Bucket:J,Region:$,Key:oe,SliceSize:F,FileSize:A,PartNumber:re,ServerSideEncryption:ue,Body:ee,UploadData:C,Headers:de,onProgress:function(te){H+=te.loaded-Q,Q=te.loaded,L({loaded:H,total:A})}},function(te,Re){!m._isRunningTask(b)||(!te&&!Re.ETag&&(te='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),te?H-=Q:(H+=se-Q,U.ETag=Re.ETag),L({loaded:H,total:A}),j(te||null,Re))})}},function(U){if(!!m._isRunningTask(b)){if(U)return K(U);K(null,{UploadId:C.UploadId,SliceList:C.PartList})}})}function M(v,K){var m=this,b=v.TaskId,J=v.Bucket,$=v.Region,oe=v.Key,C=v.FileSize,A=v.Body,F=v.PartNumber*1,W=v.SliceSize,ee=v.ServerSideEncryption,ne=v.UploadData,H=v.Headers||{},ue=m.options.ChunkRetryTimes+1,de=W*(F-1),V=W,L=de+W;L>C&&(L=C,V=L-de);var U=["x-cos-traffic-limit","x-cos-mime-limit"],j={};a.each(H,function(se,Q){U.indexOf(Q)>-1&&(j[Q]=se)});var re=ne.PartList[F-1];n.retry(ue,function(se){!m._isRunningTask(b)||a.fileSlice(A,de,L,!0,function(Q){m.multipartUpload({TaskId:b,Bucket:J,Region:$,Key:oe,ContentLength:V,PartNumber:F,UploadId:ne.UploadId,ServerSideEncryption:ee,Body:Q,Headers:j,onProgress:v.onProgress},function(te,Re){if(!!m._isRunningTask(b))return te?se(te):(re.Uploaded=!0,se(null,Re))})})},function(se,Q){if(!!m._isRunningTask(b))return K(se,Q)})}function P(v,K){var m=v.Bucket,b=v.Region,J=v.Key,$=v.UploadId,oe=v.SliceList,C=this,A=this.options.ChunkRetryTimes+1,F=v.Headers,W=oe.map(function(ee){return{PartNumber:ee.PartNumber,ETag:ee.ETag}});n.retry(A,function(ee){C.multipartComplete({Bucket:m,Region:b,Key:J,UploadId:$,Parts:W,Headers:F},ee)},function(ee,ne){K(ee,ne)})}function Z(v,K){var m=v.Bucket,b=v.Region,J=v.Key,$=v.UploadId,oe=v.Level||"task",C=v.AsyncLimit,A=this,F=new z;if(F.on("error",function(W){return K(W)}),F.on("get_abort_array",function(W){R.call(A,{Bucket:m,Region:b,Key:J,Headers:v.Headers,AsyncLimit:C,AbortArray:W},K)}),oe==="bucket")T.call(A,{Bucket:m,Region:b},function(W,ee){if(W)return K(W);F.emit("get_abort_array",ee.UploadList||[])});else if(oe==="file"){if(!J)return K(a.error(new Error("abort_upload_task_no_key")));T.call(A,{Bucket:m,Region:b,Key:J},function(W,ee){if(W)return K(W);F.emit("get_abort_array",ee.UploadList||[])})}else if(oe==="task"){if(!$)return K(a.error(new Error("abort_upload_task_no_id")));if(!J)return K(a.error(new Error("abort_upload_task_no_key")));F.emit("get_abort_array",[{Key:J,UploadId:$}])}else return K(a.error(new Error("abort_unknown_level")))}function R(v,K){var m=v.Bucket,b=v.Region,J=v.Key,$=v.AbortArray,oe=v.AsyncLimit||1,C=this,A=0,F=new Array($.length);n.eachLimit($,oe,function(W,ee){var ne=A;if(J&&J!==W.Key){F[ne]={error:{KeyNotMatch:!0}},ee(null);return}var H=W.UploadId||W.UploadID;C.multipartAbort({Bucket:m,Region:b,Key:W.Key,Headers:v.Headers,UploadId:H},function(ue){var de={Bucket:m,Region:b,Key:W.Key,UploadId:H};F[ne]={error:ue,task:de},ee(null)}),A++},function(W){if(W)return K(W);for(var ee=[],ne=[],H=0,ue=F.length;Hb?"sliceUploadFile":"putObject";J.push({api:ne,params:v,callback:ee}),m._addTasks(J)}function ie(v,K){var m=this,b=v.SliceSize===void 0?m.options.SliceSize:v.SliceSize,J=0,$=0,oe=a.throttleOnProgress.call(m,$,v.onProgress),C=v.files.length,A=v.onFileFinish,F=Array(C),W=function(ne,H,ue){oe(null,!0),A&&A(ne,H,ue),F[ue.Index]={options:ue,error:ne,data:H},--C<=0&&K&&K(null,{files:F})},ee=[];a.each(v.files,function(ne,H){(function(){var ue=ne.Body,de=ue.size||ue.length||0,V={Index:H,TaskId:""};J+=de,a.each(ne,function(ye,y){typeof ye!="object"&&typeof ye!="function"&&(V[y]=ye)});var L=ne.onTaskReady,U=function(ye){V.TaskId=ye,L&&L(ye)};ne.onTaskReady=U;var j=0,re=ne.onProgress,se=function(ye){$=$-j+ye.loaded,j=ye.loaded,re&&re(ye),oe({loaded:$,total:J})};ne.onProgress=se;var Q=ne.onFileFinish,te=function(ye,y){Q&&Q(ye,y),W&&W(ye,y,V)},Re=de>b?"sliceUploadFile":"putObject";ee.push({api:Re,params:ne,callback:te})})()}),m._addTasks(ee)}function ce(v,K){var m=new z,b=this,J=v.Bucket,$=v.Region,oe=v.Key,C=v.CopySource,A=a.getSourceParams.call(this,C);if(!A){K(a.error(new Error("CopySource format error")));return}var F=A.Bucket,W=A.Region,ee=decodeURIComponent(A.Key),ne=v.CopySliceSize===void 0?b.options.CopySliceSize:v.CopySliceSize;ne=Math.max(0,ne);var H=v.CopyChunkSize||this.options.CopyChunkSize,ue=this.options.CopyChunkParallelLimit,de=0,V,L;m.on("copy_slice_complete",function(U){var j={};a.each(v.Headers,function(se,Q){Q.toLowerCase().indexOf("x-cos-meta-")===0&&(j[Q]=se)});var re=a.map(U.PartList,function(se){return{PartNumber:se.PartNumber,ETag:se.ETag}});b.multipartComplete({Bucket:J,Region:$,Key:oe,UploadId:U.UploadId,Parts:re},function(se,Q){if(se)return L(null,!0),K(se);L({loaded:V,total:V},!0),K(null,Q)})}),m.on("get_copy_data_finish",function(U){n.eachLimit(U.PartList,ue,function(j,re){var se=j.PartNumber,Q=j.CopySourceRange,te=j.end-j.start;B.call(b,{Bucket:J,Region:$,Key:oe,CopySource:C,UploadId:U.UploadId,PartNumber:se,CopySourceRange:Q},function(Re,ye){if(Re)return re(Re);de+=te,L({loaded:de,total:V}),j.ETag=ye.ETag,re(Re||null,ye)})},function(j){if(j)return L(null,!0),K(j);m.emit("copy_slice_complete",U)})}),m.on("get_file_size_finish",function(U){(function(){for(var se=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],Q=1024*1024,te=0;teRe.length&&(se[te]=Q)}),m.emit("get_file_size_finish",se)}})}function B(v,K){var m=v.TaskId,b=v.Bucket,J=v.Region,$=v.Key,oe=v.CopySource,C=v.UploadId,A=v.PartNumber*1,F=v.CopySourceRange,W=this.options.ChunkRetryTimes+1,ee=this;n.retry(W,function(ne){ee.uploadPartCopy({TaskId:m,Bucket:b,Region:J,Key:$,CopySource:oe,UploadId:C,PartNumber:A,CopySourceRange:F},function(H,ue){ne(H||null,ue)})},function(ne,H){return K(ne,H)})}var x={sliceUploadFile:D,abortUploadTask:Z,uploadFile:I,uploadFiles:ie,sliceCopyFile:ce};d.exports.init=function(v,K){K.transferToTaskMethod(x,"sliceUploadFile"),a.each(x,function(m,b){v.prototype[b]=a.apiWrapper(b,m)})}},11660:function(d){var g=function(n,z,a,D){if(D=D||function(){},!n.length||z<=0)return D();var N=0,T=0,_=0;(function w(){if(N>=n.length)return D();for(;_=n.length?D():w())})})()},u=function(n,z,a){var D=function(N){z(function(T,_){T&&N/ig,"<$1Rule>"),i=i.replace(/<(\/?)Tags>/ig,"<$1Tag>");var l=e.Headers;l["Content-Type"]="application/xml",l["Content-MD5"]=n.binaryBase64(n.md5(i)),c.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"replication",headers:l},function(f,p){if(f&&f.statusCode===204)return o(null,{statusCode:f.statusCode});if(f)return o(f);o(null,{statusCode:p.statusCode,headers:p.headers})})}function C(e,o){c.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(t,i){if(t){if(t.statusCode===404&&t.error&&(t.error==="Not Found"||t.error.Code==="ReplicationConfigurationnotFoundError")){var l={ReplicationConfiguration:{Rules:[]},statusCode:t.statusCode};t.headers&&(l.headers=t.headers),o(null,l)}else o(t);return}!i.ReplicationConfiguration&&(i.ReplicationConfiguration={}),i.ReplicationConfiguration.Rule&&(i.ReplicationConfiguration.Rules=n.makeArray(i.ReplicationConfiguration.Rule),delete i.ReplicationConfiguration.Rule),o(t,i)})}function A(e,o){c.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function F(e,o){if(!e.WebsiteConfiguration){o(n.error(new Error("missing param WebsiteConfiguration")));return}var t=n.clone(e.WebsiteConfiguration||{}),i=t.RoutingRules||t.RoutingRule||[];i=n.isArray(i)?i:[i],delete t.RoutingRule,delete t.RoutingRules,i.length&&(t.RoutingRules={RoutingRule:i});var l=n.json2xml({WebsiteConfiguration:t}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"website",headers:f},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function W(e,o){c.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},function(t,i){if(t){if(t.statusCode===404&&t.error.Code==="NoSuchWebsiteConfiguration"){var l={WebsiteConfiguration:{},statusCode:t.statusCode};t.headers&&(l.headers=t.headers),o(null,l)}else o(t);return}var f=i.WebsiteConfiguration||{};if(f.RoutingRules){var p=n.clone(f.RoutingRules.RoutingRule||[]);p=n.makeArray(p),f.RoutingRules=p}o(null,{WebsiteConfiguration:f,statusCode:i.statusCode,headers:i.headers})})}function ee(e,o){c.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function ne(e,o){if(!e.RefererConfiguration){o(n.error(new Error("missing param RefererConfiguration")));return}var t=n.clone(e.RefererConfiguration||{}),i=t.DomainList||{},l=i.Domains||i.Domain||[];l=n.isArray(l)?l:[l],l.length&&(t.DomainList={Domain:l});var f=n.json2xml({RefererConfiguration:t}),p=e.Headers;p["Content-Type"]="application/xml",p["Content-MD5"]=n.binaryBase64(n.md5(f)),c.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:f,action:"referer",headers:p},function(S,X){if(S&&S.statusCode===204)return o(null,{statusCode:S.statusCode});if(S)return o(S);o(null,{statusCode:X.statusCode,headers:X.headers})})}function H(e,o){c.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},function(t,i){if(t){if(t.statusCode===404&&t.error.Code==="NoSuchRefererConfiguration"){var l={WebsiteConfiguration:{},statusCode:t.statusCode};t.headers&&(l.headers=t.headers),o(null,l)}else o(t);return}var f=i.RefererConfiguration||{};if(f.DomainList){var p=n.makeArray(f.DomainList.Domain||[]);f.DomainList={Domains:p}}o(null,{RefererConfiguration:f,statusCode:i.statusCode,headers:i.headers})})}function ue(e,o){var t=e.DomainConfiguration||{},i=t.DomainRule||e.DomainRule||[];i=n.clone(i);var l=n.json2xml({DomainConfiguration:{DomainRule:i}}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"domain",headers:f},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function de(e,o){c.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(t,i){if(t)return o(t);var l=[];try{l=i.DomainConfiguration.DomainRule||[]}catch(f){}l=n.clone(n.isArray(l)?l:[l]),o(null,{DomainRule:l,statusCode:i.statusCode,headers:i.headers})})}function V(e,o){c.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function L(e,o){var t=e.OriginConfiguration||{},i=t.OriginRule||e.OriginRule||[];i=n.clone(i);var l=n.json2xml({OriginConfiguration:{OriginRule:i}}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"origin",headers:f},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function U(e,o){c.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(t,i){if(t)return o(t);var l=[];try{l=i.OriginConfiguration.OriginRule||[]}catch(f){}l=n.clone(n.isArray(l)?l:[l]),o(null,{OriginRule:l,statusCode:i.statusCode,headers:i.headers})})}function j(e,o){c.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function re(e,o){var t=n.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=n.binaryBase64(n.md5(t)),c.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"logging",headers:i},function(l,f){if(l&&l.statusCode===204)return o(null,{statusCode:l.statusCode});if(l)return o(l);o(null,{statusCode:f.statusCode,headers:f.headers})})}function se(e,o){c.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},function(t,i){if(t)return o(t);o(null,{BucketLoggingStatus:i.BucketLoggingStatus,statusCode:i.statusCode,headers:i.headers})})}function Q(e,o){var t=n.clone(e.InventoryConfiguration);if(t.OptionalFields){var i=t.OptionalFields||[];t.OptionalFields={Field:i}}if(t.Destination&&t.Destination.COSBucketDestination&&t.Destination.COSBucketDestination.Encryption){var l=t.Destination.COSBucketDestination.Encryption;Object.keys(l).indexOf("SSECOS")>-1&&(l["SSE-COS"]=l.SSECOS,delete l.SSECOS)}var f=n.json2xml({InventoryConfiguration:t}),p=e.Headers;p["Content-Type"]="application/xml",p["Content-MD5"]=n.binaryBase64(n.md5(f)),c.call(this,{Action:"name/cos:PutBucketInventory",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:f,action:"inventory",qs:{id:e.Id},headers:p},function(S,X){if(S&&S.statusCode===204)return o(null,{statusCode:S.statusCode});if(S)return o(S);o(null,{statusCode:X.statusCode,headers:X.headers})})}function te(e,o){c.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(t,i){if(t)return o(t);var l=i.InventoryConfiguration;if(l&&l.OptionalFields&&l.OptionalFields.Field){var f=l.OptionalFields.Field;n.isArray(f)||(f=[f]),l.OptionalFields=f}if(l.Destination&&l.Destination.COSBucketDestination&&l.Destination.COSBucketDestination.Encryption){var p=l.Destination.COSBucketDestination.Encryption;Object.keys(p).indexOf("SSE-COS")>-1&&(p.SSECOS=p["SSE-COS"],delete p["SSE-COS"])}o(null,{InventoryConfiguration:l,statusCode:i.statusCode,headers:i.headers})})}function Re(e,o){c.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},function(t,i){if(t)return o(t);var l=i.ListInventoryConfigurationResult,f=l.InventoryConfiguration||[];f=n.isArray(f)?f:[f],delete l.InventoryConfiguration,n.each(f,function(p){if(p&&p.OptionalFields&&p.OptionalFields.Field){var S=p.OptionalFields.Field;n.isArray(S)||(S=[S]),p.OptionalFields=S}if(p.Destination&&p.Destination.COSBucketDestination&&p.Destination.COSBucketDestination.Encryption){var X=p.Destination.COSBucketDestination.Encryption;Object.keys(X).indexOf("SSE-COS")>-1&&(X.SSECOS=X["SSE-COS"],delete X["SSE-COS"])}}),l.InventoryConfigurations=f,n.extend(l,{statusCode:i.statusCode,headers:i.headers}),o(null,l)})}function ye(e,o){c.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function y(e,o){if(!e.AccelerateConfiguration){o(n.error(new Error("missing param AccelerateConfiguration")));return}var t={AccelerateConfiguration:e.AccelerateConfiguration||{}},i=n.json2xml(t),l={};l["Content-Type"]="application/xml",l["Content-MD5"]=n.binaryBase64(n.md5(i)),c.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"accelerate",headers:l},function(f,p){if(f)return o(f);o(null,{statusCode:p.statusCode,headers:p.headers})})}function E(e,o){c.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},function(t,i){t||!i.AccelerateConfiguration&&(i.AccelerateConfiguration={}),o(t,i)})}function k(e,o){var t=e.ServerSideEncryptionConfiguration||{},i=t.Rule||t.Rules||[],l=n.json2xml({ServerSideEncryptionConfiguration:{Rule:i}}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:l,action:"encryption",headers:f},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function G(e,o){c.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(t,i){if(t){if(t.statusCode===404&&t.code==="NoSuchEncryptionConfiguration"){var l={EncryptionConfiguration:{Rules:[]},statusCode:t.statusCode};t.headers&&(l.headers=t.headers),o(null,l)}else o(t);return}var f=n.makeArray(i.EncryptionConfiguration&&i.EncryptionConfiguration.Rule||[]);i.EncryptionConfiguration={Rules:f},o(t,i)})}function q(e,o){c.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function fe(e,o){c.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(t,i){if(t){var l=t.statusCode;return e.Headers["If-Modified-Since"]&&l&&l===304?o(null,{NotModified:!0,statusCode:l}):o(t)}i.ETag=n.attr(i.headers,"etag",""),o(null,i)})}function Ce(e,o){var t={};t.prefix=e.Prefix||"",t.delimiter=e.Delimiter,t["key-marker"]=e.KeyMarker,t["version-id-marker"]=e.VersionIdMarker,t["max-keys"]=e.MaxKeys,t["encoding-type"]=e.EncodingType,c.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:t.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:t,action:"versions"},function(i,l){if(i)return o(i);var f=l.ListVersionsResult||{},p=f.DeleteMarker||[];p=n.isArray(p)?p:[p];var S=f.Version||[];S=n.isArray(S)?S:[S];var X=n.clone(f);delete X.DeleteMarker,delete X.Version,n.extend(X,{DeleteMarkers:p,Versions:S,statusCode:l.statusCode,headers:l.headers}),o(null,X)})}function he(e,o){var t=e.Query||{},i=e.QueryString||"",l=n.throttleOnProgress.call(this,0,e.onProgress);t["response-content-type"]=e.ResponseContentType,t["response-content-language"]=e.ResponseContentLanguage,t["response-expires"]=e.ResponseExpires,t["response-cache-control"]=e.ResponseCacheControl,t["response-content-disposition"]=e.ResponseContentDisposition,t["response-content-encoding"]=e.ResponseContentEncoding,c.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:t,qsStr:i,rawBody:!0,onDownloadProgress:l},function(f,p){if(l(null,!0),f){var S=f.statusCode;return e.Headers["If-Modified-Since"]&&S&&S===304?o(null,{NotModified:!0}):o(f)}o(null,{Body:p.body,ETag:n.attr(p.headers,"etag",""),statusCode:p.statusCode,headers:p.headers})})}function ke(e,o){var t=this,i=e.ContentLength,l=n.throttleOnProgress.call(t,i,e.onProgress),f=e.Headers;!f["Cache-Control"]&&!f["cache-control"]&&(f["Cache-Control"]=""),!f["Content-Type"]&&!f["content-type"]&&(f["Content-Type"]=e.Body&&e.Body.type||"");var p=e.UploadAddMetaMd5||t.options.UploadAddMetaMd5||t.options.UploadCheckContentMd5;n.getBodyMd5(p,e.Body,function(S){S&&(t.options.UploadCheckContentMd5&&(f["Content-MD5"]=n.binaryBase64(S)),(e.UploadAddMetaMd5||t.options.UploadAddMetaMd5)&&(f["x-cos-meta-md5"]=S)),e.ContentLength!==void 0&&(f["Content-Length"]=e.ContentLength),l(null,!0),c.call(t,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:l},function(X,ve){if(X)return l(null,!0),o(X);l({loaded:i,total:i},!0);var le=Ne({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:t.options.UseAccelerate?"accelerate":e.Region,object:e.Key});le=le.substr(le.indexOf("://")+3),ve.Location=le,ve.ETag=n.attr(ve.headers,"etag",""),o(null,ve)})},e.onHashProgress)}function Be(e,o){c.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},function(t,i){if(t){var l=t.statusCode;return l&&l===404?o(null,{BucketNotFound:!0,statusCode:l}):o(t)}o(null,{statusCode:i.statusCode,headers:i.headers})})}function me(e,o){c.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"acl"},function(t,i){if(t)return o(t);var l=i.AccessControlPolicy||{},f=l.Owner||{},p=l.AccessControlList&&l.AccessControlList.Grant||[];p=n.isArray(p)?p:[p];var S=Je(l);delete S.GrantWrite,i.headers&&i.headers["x-cos-acl"]&&(S.ACL=i.headers["x-cos-acl"]),S=n.extend(S,{Owner:f,Grants:p,statusCode:i.statusCode,headers:i.headers}),o(null,S)})}function pe(e,o){var t=e.Headers,i="";if(e.AccessControlPolicy){var l=n.clone(e.AccessControlPolicy||{}),f=l.Grants||l.Grant;f=n.isArray(f)?f:[f],delete l.Grant,delete l.Grants,l.AccessControlList={Grant:f},i=n.json2xml({AccessControlPolicy:l}),t["Content-Type"]="application/xml",t["Content-MD5"]=n.binaryBase64(n.md5(i))}n.each(t,function(p,S){S.indexOf("x-cos-grant-")===0&&(t[S]=qe(t[S]))}),c.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:t,body:i},function(p,S){if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function Pe(e,o){var t=e.Headers;t.Origin=e.Origin,t["Access-Control-Request-Method"]=e.AccessControlRequestMethod,t["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,c.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:t},function(i,l){if(i)return i.statusCode&&i.statusCode===403?o(null,{OptionsForbidden:!0,statusCode:i.statusCode}):o(i);var f=l.headers||{};o(null,{AccessControlAllowOrigin:f["access-control-allow-origin"],AccessControlAllowMethods:f["access-control-allow-methods"],AccessControlAllowHeaders:f["access-control-allow-headers"],AccessControlExposeHeaders:f["access-control-expose-headers"],AccessControlMaxAge:f["access-control-max-age"],statusCode:l.statusCode,headers:l.headers})})}function xe(e,o){var t=this,i=e.Headers;!i["Cache-Control"]&&!i["cache-control"]&&(i["Cache-Control"]="");var l=e.CopySource||"",f=n.getSourceParams.call(this,l);if(!f){o(n.error(new Error("CopySource format error")));return}var p=f[1],S=f[3],X=decodeURIComponent(f[4]);c.call(this,{Scope:[{action:"name/cos:GetObject",bucket:p,region:S,prefix:X},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(ve,le){if(ve)return o(ve);var ge=n.clone(le.CopyObjectResult||{}),ae=Ne({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});n.extend(ge,{Location:ae,statusCode:le.statusCode,headers:le.headers}),o(null,ge)})}function Ae(e,o){var t=e.CopySource||"",i=n.getSourceParams.call(this,t);if(!i){o(n.error(new Error("CopySource format error")));return}var l=i[1],f=i[3],p=decodeURIComponent(i[4]);c.call(this,{Scope:[{action:"name/cos:GetObject",bucket:l,region:f,prefix:p},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},function(S,X){if(S)return o(S);var ve=n.clone(X.CopyPartResult||{});n.extend(ve,{statusCode:X.statusCode,headers:X.headers}),o(null,ve)})}function we(e,o){var t=e.Objects||[],i=e.Quiet;t=n.isArray(t)?t:[t];var l=n.json2xml({Delete:{Object:t,Quiet:i||!1}}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l));var p=n.map(t,function(S){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:S.Key}});c.call(this,{Scope:p,method:"POST",Bucket:e.Bucket,Region:e.Region,body:l,action:"delete",headers:f},function(S,X){if(S)return o(S);var ve=X.DeleteResult||{},le=ve.Deleted||[],ge=ve.Error||[];le=n.isArray(le)?le:[le],ge=n.isArray(ge)?ge:[ge];var ae=n.clone(ve);n.extend(ae,{Error:ge,Deleted:le,statusCode:X.statusCode,headers:X.headers}),o(null,ae)})}function Ue(e,o){var t=e.Headers;if(!e.RestoreRequest){o(n.error(new Error("missing param RestoreRequest")));return}var i=e.RestoreRequest||{},l=n.json2xml({RestoreRequest:i});t["Content-Type"]="application/xml",t["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:l,action:"restore",headers:t},o)}function He(e,o){var t=e.Tagging||{},i=t.TagSet||t.Tags||e.Tags||[];i=n.clone(n.isArray(i)?i:[i]);var l=n.json2xml({Tagging:{TagSet:{Tag:i}}}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:l,action:"tagging",headers:f,VersionId:e.VersionId},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);o(null,{statusCode:S.statusCode,headers:S.headers})})}function Ke(e,o){c.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(t,i){if(t){if(t.statusCode===404&&t.error&&(t.error==="Not Found"||t.error.Code==="NoSuchTagSet")){var l={Tags:[],statusCode:t.statusCode};t.headers&&(l.headers=t.headers),o(null,l)}else o(t);return}var f=[];try{f=i.Tagging.TagSet.Tag||[]}catch(p){}f=n.clone(n.isArray(f)?f:[f]),o(null,{Tags:f,statusCode:i.statusCode,headers:i.headers})})}function ze(e,o){c.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(t,i){if(t&&t.statusCode===204)return o(null,{statusCode:t.statusCode});if(t)return o(t);o(null,{statusCode:i.statusCode,headers:i.headers})})}function Le(e,o){var t=e.SelectType;if(!t)return o(n.error(new Error("missing param SelectType")));var i=e.SelectRequest||{},l=n.json2xml({SelectRequest:i}),f=e.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=n.binaryBase64(n.md5(l)),c.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:l,DataType:"arraybuffer",rawBody:!0},function(p,S){if(p&&p.statusCode===204)return o(null,{statusCode:p.statusCode});if(p)return o(p);var X=n.parseSelectPayload(S.body);o(null,{statusCode:S.statusCode,headers:S.headers,Body:X.body,Payload:X.payload})})}function Xe(e,o){var t=this,i=e.Headers;!i["Cache-Control"]&&!i["cache-control"]&&(i["Cache-Control"]=""),!i["Content-Type"]&&!i["content-type"]&&(i["Content-Type"]=e.Body&&e.Body.type||""),n.getBodyMd5(e.Body&&(e.UploadAddMetaMd5||t.options.UploadAddMetaMd5),e.Body,function(l){l&&(e.Headers["x-cos-meta-md5"]=l),c.call(t,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query},function(f,p){if(f)return o(f);if(p=n.clone(p||{}),p&&p.InitiateMultipartUploadResult)return o(null,n.extend(p.InitiateMultipartUploadResult,{statusCode:p.statusCode,headers:p.headers}));o(null,p)})},e.onHashProgress)}function We(e,o){var t=this;n.getFileSize("multipartUpload",e,function(){n.getBodyMd5(t.options.UploadCheckContentMd5,e.Body,function(i){i&&(e.Headers["Content-MD5"]=n.binaryBase64(i)),c.call(t,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null},function(l,f){if(l)return o(l);o(null,{ETag:n.attr(f.headers,"etag",""),statusCode:f.statusCode,headers:f.headers})})})})}function je(e,o){for(var t=this,i=e.UploadId,l=e.Parts,f=0,p=l.length;f-1?ge(le.Authorization):"sign="+encodeURIComponent(le.Authorization)),le.SecurityToken&&(ae+="&x-cos-security-token="+le.SecurityToken),le.ClientIP&&(ae+="&clientIP="+le.ClientIP),le.ClientUA&&(ae+="&clientUA="+le.ClientUA),le.Token&&(ae+="&token="+le.Token),f&&(ae+="&"+f),setTimeout(function(){o(null,{Url:ae})})}});return X?(p+="?"+X.Authorization+(X.SecurityToken?"&x-cos-security-token="+X.SecurityToken:""),f&&(p+="&"+f)):f&&(p+="?"+f),p}function Je(e){var o={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},t={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},i=e&&e.AccessControlList||{},l=i.Grant;l&&(l=n.isArray(l)?l:[l]);var f={READ:0,WRITE:0,FULL_CONTROL:0};return l&&l.length&&n.each(l,function(p){p.Grantee.ID==="qcs::cam::anyone:anyone"||p.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?f[p.Permission]=1:p.Grantee.ID!==e.Owner.ID&&o[t[p.Permission]].push('id="'+p.Grantee.ID+'"')}),f.FULL_CONTROL||f.WRITE&&f.READ?o.ACL="public-read-write":f.READ?o.ACL="public-read":o.ACL="private",n.each(t,function(p){o[p]=qe(o[p].join(","))}),o}function qe(e){var o=e.split(","),t={},i,l;for(i=0;i-1?f="{Region}.myqcloud.com":f="cos.{Region}.myqcloud.com",e.ForcePathStyle||(f="{Bucket}."+f)),f=f.replace(/\{\{AppId\}\}/ig,l).replace(/\{\{Bucket\}\}/ig,i).replace(/\{\{Region\}\}/ig,o).replace(/\{\{.*?\}\}/ig,""),f=f.replace(/\{AppId\}/ig,l).replace(/\{BucketName\}/ig,i).replace(/\{Bucket\}/ig,t).replace(/\{Region\}/ig,o).replace(/\{.*?\}/ig,""),/^[a-zA-Z]+:\/\//.test(f)||(f=S+"//"+f),f.slice(-1)==="/"&&(f=f.slice(0,-1));var X=f;return e.ForcePathStyle&&(X+="/"+t),X+="/",p&&(X+=n.camSafeUrlEncode(p).replace(/%2F/g,"/")),e.isLocation&&(X=X.replace(/^https?:\/\//,"")),X}var at=function(e){if(!e.Bucket||!e.Region)return"";var o=e.UseAccelerate===void 0?this.options.UseAccelerate:e.UseAccelerate,t=e.Url||Ne({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:o?"accelerate":e.Region}),i=t.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),l=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return l.test(i)?i:""};function r(e,o){var t=n.clone(e.Headers),i="";n.each(t,function(Te,Se){(Te===""||["content-type","cache-control","expires"].indexOf(Se.toLowerCase())>-1)&&delete t[Se],Se.toLowerCase()==="host"&&(i=Te)});var l=e.ForceSignHost!==!1;!i&&e.SignHost&&l&&(t.Host=e.SignHost);var f=!1,p=function(Te,Se){f||(f=!0,Se&&Se.XCosSecurityToken&&!Se.SecurityToken&&(Se=n.clone(Se),Se.SecurityToken=Se.XCosSecurityToken,delete Se.XCosSecurityToken),o&&o(Te,Se))},S=this,X=e.Bucket||"",ve=e.Region||"",le=e.Key||"";S.options.ForcePathStyle&&X&&(le=X+"/"+le);var ge="/"+le,ae={},Oe=e.Scope;if(!Oe){var be=e.Action||"",Ge=e.ResourceKey||e.Key||"";Oe=e.Scope||[{action:be,bucket:X,region:ve,prefix:Ge}]}var Ie=n.md5(JSON.stringify(Oe));S._StsCache=S._StsCache||[],function(){var Te,Se;for(Te=S._StsCache.length-1;Te>=0;Te--){Se=S._StsCache[Te];var _e=Math.round(n.getSkewTime(S.options.SystemClockOffset)/1e3)+30;if(Se.StartTime&&_e=Se.ExpiredTime){S._StsCache.splice(Te,1);continue}if(!Se.ScopeLimit||Se.ScopeLimit&&Se.ScopeKey===Ie){ae=Se;break}}}();var Me=function(){var Te="";ae.StartTime&&e.Expires?Te=ae.StartTime+";"+(ae.StartTime+e.Expires*1):ae.StartTime&&ae.ExpiredTime&&(Te=ae.StartTime+";"+ae.ExpiredTime);var Se=n.getAuth({SecretId:ae.TmpSecretId,SecretKey:ae.TmpSecretKey,Method:e.Method,Pathname:ge,Query:e.Query,Headers:t,Expires:e.Expires,UseRawKey:S.options.UseRawKey,SystemClockOffset:S.options.SystemClockOffset,KeyTime:Te,ForceSignHost:l}),_e={Authorization:Se,SecurityToken:ae.SecurityToken||ae.XCosSecurityToken||"",Token:ae.Token||"",ClientIP:ae.ClientIP||"",ClientUA:ae.ClientUA||""};p(null,_e)},De=function(Te){if(Te.Authorization){var Se=!1,_e=Te.Authorization;if(_e)if(_e.indexOf(" ")>-1)Se=!1;else if(_e.indexOf("q-sign-algorithm=")>-1&&_e.indexOf("q-ak=")>-1&&_e.indexOf("q-sign-time=")>-1&&_e.indexOf("q-key-time=")>-1&&_e.indexOf("q-url-param-list=")>-1)Se=!0;else try{_e=atob(_e),_e.indexOf("a=")>-1&&_e.indexOf("k=")>-1&&_e.indexOf("t=")>-1&&_e.indexOf("r=")>-1&&_e.indexOf("b=")>-1&&(Se=!0)}catch(Ve){}if(!Se)return n.error(new Error("getAuthorization callback params format error"))}else{if(!Te.TmpSecretId)return n.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Te.TmpSecretKey)return n.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Te.SecurityToken&&!Te.XCosSecurityToken)return n.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Te.ExpiredTime)return n.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Te.ExpiredTime&&Te.ExpiredTime.toString().length!==10)return n.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Te.StartTime&&Te.StartTime.toString().length!==10)return n.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(ae.ExpiredTime&&ae.ExpiredTime-n.getSkewTime(S.options.SystemClockOffset)/1e3>60)Me();else if(S.options.getAuthorization)S.options.getAuthorization.call(S,{Bucket:X,Region:ve,Method:e.Method,Key:le,Pathname:ge,Query:e.Query,Headers:t,Scope:Oe,SystemClockOffset:S.options.SystemClockOffset,ForceSignHost:l},function(Te){typeof Te=="string"&&(Te={Authorization:Te});var Se=De(Te);if(Se)return p(Se);Te.Authorization?p(null,Te):(ae=Te||{},ae.Scope=Oe,ae.ScopeKey=Ie,S._StsCache.push(ae),Me())});else if(S.options.getSTS)S.options.getSTS.call(S,{Bucket:X,Region:ve},function(Te){ae=Te||{},ae.Scope=Oe,ae.ScopeKey=Ie,ae.TmpSecretId||(ae.TmpSecretId=ae.SecretId),ae.TmpSecretKey||(ae.TmpSecretKey=ae.SecretKey);var Se=De(ae);if(Se)return p(Se);S._StsCache.push(ae),Me()});else return function(){var Te=n.getAuth({SecretId:e.SecretId||S.options.SecretId,SecretKey:e.SecretKey||S.options.SecretKey,Method:e.Method,Pathname:ge,Query:e.Query,Headers:t,Expires:e.Expires,UseRawKey:S.options.UseRawKey,SystemClockOffset:S.options.SystemClockOffset,ForceSignHost:l}),Se={Authorization:Te,SecurityToken:S.options.SecurityToken||S.options.XCosSecurityToken};return p(null,Se),Se}();return""}function s(e){var o=!1,t=!1,i=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var l=e.error.Code,f=e.error.Message;(l==="RequestTimeTooSkewed"||l==="AccessDenied"&&f==="Request has expired")&&(t=!0)}catch(S){}if(e)if(t&&i){var p=Date.parse(i);this.options.CorrectClockSkew&&Math.abs(n.getSkewTime(this.options.SystemClockOffset)-p)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=p-Date.now(),o=!0)}else Math.floor(e.statusCode/100)===5&&(o=!0);return o}function c(e,o){var t=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=n.clearKey(e.qs),e.headers&&(e.headers=n.clearKey(e.headers)),e.qs&&(e.qs=n.clearKey(e.qs));var i=n.clone(e.qs);e.action&&(i[e.action]="");var l=e.url||e.Url,f=e.SignHost||at.call(this,{Bucket:e.Bucket,Region:e.Region,Url:l}),p=function(S){var X=t.options.SystemClockOffset;r.call(t,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:i,Headers:e.headers,SignHost:f,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:t.options.ForceSignHost},function(ve,le){if(ve){o(ve);return}e.AuthData=le,O.call(t,e,function(ge,ae){ge&&S<2&&(X!==t.options.SystemClockOffset||s.call(t,ge))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),p(S+1)):o(ge,ae)})})};p(1)}function O(e,o){var t=this,i=e.TaskId;if(!(i&&!t._isRunningTask(i))){var l=e.Bucket,f=e.Region,p=e.Key,S=e.method||"GET",X=e.Url||e.url,ve=e.body,le=e.rawBody;t.options.UseAccelerate&&(f="accelerate"),X=X||Ne({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:l,region:f,object:p}),e.action&&(X=X+"?"+e.action),e.qsStr&&(X.indexOf("?")>-1?X=X+"&"+e.qsStr:X=X+"?"+e.qsStr);var ge={method:S,url:X,headers:e.headers,qs:e.qs,body:ve},ae="x-cos-security-token";if(n.isCIHost(X)&&(ae="x-ci-security-token"),ge.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(ge.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(ge.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(ge.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(ge.headers[ae]=e.AuthData.SecurityToken),ge.headers&&(ge.headers=n.clearKey(ge.headers)),ge=n.clearKey(ge),e.onProgress&&typeof e.onProgress=="function"){var Oe=ve&&(ve.size||ve.length)||0;ge.onProgress=function(Ie){if(!(i&&!t._isRunningTask(i))){var Me=Ie?Ie.loaded:0;e.onProgress({loaded:Me,total:Oe})}}}e.onDownloadProgress&&(ge.onDownloadProgress=e.onDownloadProgress),e.DataType&&(ge.dataType=e.DataType),this.options.Timeout&&(ge.timeout=this.options.Timeout),t.options.ForcePathStyle&&(ge.pathStyle=t.options.ForcePathStyle),t.emit("before-send",ge);var be=(t.options.Request||h)(ge,function(Ie){if(Ie.error!=="abort"){var Me={options:ge,error:Te,statusCode:De&&De.statusCode||0,headers:De&&De.headers||{},body:Se};t.emit("after-receive",Me),Te=Me.error,Se=Me.body,De={statusCode:Me.statusCode,headers:Me.headers},t.emit("after-receive",Ie);var De={statusCode:Ie.statusCode,statusMessage:Ie.statusMessage,headers:Ie.headers},Te=Ie.error,Se=Ie.body,_e,Ve=function(et,ut){if(i&&t.off("inner-kill-task",Ge),!_e){_e=!0;var st={};De&&De.statusCode&&(st.statusCode=De.statusCode),De&&De.headers&&(st.headers=De.headers),et?(et=n.extend(et||{},st),o(et,null)):(ut=n.extend(ut||{},st),o(null,ut)),be=null}};if(Te)return Ve(n.error(Te));var ot=De.statusCode,ct=Math.floor(ot/100)===2;if(le&&ct)return Ve(null,{body:Se});var Ze;try{Ze=Se&&Se.indexOf("<")>-1&&Se.indexOf(">")>-1&&n.xml2json(Se)||{}}catch(et){Ze={}}var rt=Ze&&Ze.Error;ct?Ve(null,Ze):rt?Ve(n.error(new Error(rt.Message),{code:rt.Code,error:rt})):ot?Ve(n.error(new Error(De.statusMessage),{code:""+ot})):ot&&Ve(n.error(new Error("statusCode error")))}}),Ge=function(Ie){Ie.TaskId===i&&(be&&be.abort&&be.abort(),t.off("inner-kill-task",Ge))};i&&t.on("inner-kill-task",Ge)}}var Y={getService:z,putBucket:a,headBucket:D,getBucket:N,deleteBucket:T,putBucketAcl:_,getBucketAcl:w,putBucketCors:M,getBucketCors:P,deleteBucketCors:Z,getBucketLocation:R,getBucketPolicy:ie,putBucketPolicy:I,deleteBucketPolicy:ce,putBucketTagging:B,getBucketTagging:x,deleteBucketTagging:v,putBucketLifecycle:K,getBucketLifecycle:m,deleteBucketLifecycle:b,putBucketVersioning:J,getBucketVersioning:$,putBucketReplication:oe,getBucketReplication:C,deleteBucketReplication:A,putBucketWebsite:F,getBucketWebsite:W,deleteBucketWebsite:ee,putBucketReferer:ne,getBucketReferer:H,putBucketDomain:ue,getBucketDomain:de,deleteBucketDomain:V,putBucketOrigin:L,getBucketOrigin:U,deleteBucketOrigin:j,putBucketLogging:re,getBucketLogging:se,putBucketInventory:Q,getBucketInventory:te,listBucketInventory:Re,deleteBucketInventory:ye,putBucketAccelerate:y,getBucketAccelerate:E,putBucketEncryption:k,getBucketEncryption:G,deleteBucketEncryption:q,getObject:he,headObject:fe,listObjectVersions:Ce,putObject:ke,deleteObject:Be,getObjectAcl:me,putObjectAcl:pe,optionsObject:Pe,putObjectCopy:xe,deleteMultipleObject:we,restoreObject:Ue,putObjectTagging:He,getObjectTagging:Ke,deleteObjectTagging:ze,selectObjectContent:Le,appendObject:it,uploadPartCopy:Ae,multipartInit:Xe,multipartUpload:We,multipartComplete:je,multipartList:Qe,multipartListPart:$e,multipartAbort:tt,request:nt,getObjectUrl:Fe,getAuth:Ye};function Ee(e,o,t){n.each(["Cors","Acl"],function(i){if(e.slice(-i.length)===i){var l=e.slice(0,-i.length)+i.toUpperCase(),f=n.apiWrapper(e,o),p=!1;t[l]=function(){!p&&console.warn("warning: cos."+l+" has been deprecated. Please Use cos."+e+" instead."),p=!0,f.apply(this,arguments)}}})}d.exports.init=function(e,o){o.transferToTaskMethod(Y,"putObject"),n.each(Y,function(t,i){e.prototype[i]=n.apiWrapper(i,t),Ee(i,t,e.prototype)})}},21715:function(d,g,u){"use strict";var h=u(81728),n=u(29589),z=u(45369),a=u(24257),D=u(46044),N={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0},T=function(_){this.options=h.extend(h.clone(N),_||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),h.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),n.init(this),z.init(this)};a.init(T,z),D.init(T,z),T.util={md5:h.md5,xml2json:h.xml2json,json2xml:h.json2xml},T.getAuthorization=h.getAuth,T.version="1.3.9",d.exports=T},29589:function(d){var g=function(h){var n={},z=function(a){return!n[a]&&(n[a]=[]),n[a]};h.on=function(a,D){a==="task-list-update"&&console.warn('warning: Event "'+a+'" has been deprecated. Please use "list-update" instead.'),z(a).push(D)},h.off=function(a,D){for(var N=z(a),T=N.length-1;T>=0;T--)D===N[T]&&N.splice(T,1)},h.emit=function(a,D){for(var N=z(a).map(function(_){return _}),T=0;T=0;R--){var I=a[R][2];(!I||I+z=0;I--){var ie=a[I];ie[0]===P&&ie[1]===Z&&a.splice(I,1)}a.unshift([P,Z,Math.round(Date.now()/1e3)]),a.length>R&&a.splice(R),w()}},removeUploadId:function(P){_.call(this),delete M.using[P];for(var Z=a.length-1;Z>=0;Z--)a[Z][1]===P&&a.splice(Z,1);w()}};d.exports=M},45369:function(d,g,u){var h=u(61718),n=u(81728),z={},a=function(N,T){z[T]=N[T],N[T]=function(_,w){_.SkipTask?z[T].call(this,_,w):this._addTask(T,_,w)}},D=function(N){var T=[],_={},w=0,M=0,P=function(B){var x={id:B.id,Bucket:B.Bucket,Region:B.Region,Key:B.Key,FilePath:B.FilePath,state:B.state,loaded:B.loaded,size:B.size,speed:B.speed,percent:B.percent,hashPercent:B.hashPercent,error:B.error};return B.FilePath&&(x.FilePath=B.FilePath),B._custom&&(x._custom=B._custom),x},Z=function(){var B,x=function(){B=0,N.emit("task-list-update",{list:n.map(T,P)}),N.emit("list-update",{list:n.map(T,P)})};return function(){B||(B=setTimeout(x))}}(),R=function(){if(!(T.length<=N.options.UploadQueueSize)){for(var B=0;BN.options.UploadQueueSize;){var x=T[B].state==="waiting"||T[B].state==="checking"||T[B].state==="uploading";!T[B]||!x?(_[T[B].id]&&delete _[T[B].id],T.splice(B,1),M--):B++}Z()}},I=function(){if(!(w>=N.options.FileParallelLimit)){for(;T[M]&&T[M].state!=="waiting";)M++;if(!(M>=T.length)){var B=T[M];M++,w++,B.state="checking",B.params.onTaskStart&&B.params.onTaskStart(P(B)),!B.params.UploadData&&(B.params.UploadData={});var x=n.formatParams(B.api,B.params);z[B.api].call(N,x,function(v,K){!N._isRunningTask(B.id)||((B.state==="checking"||B.state==="uploading")&&(B.state=v?"error":"success",v&&(B.error=v),w--,Z(),I(),B.callback&&B.callback(v,K),B.state==="success"&&(B.params&&(delete B.params.UploadData,delete B.params.Body,delete B.params),delete B.callback)),R())}),Z(),setTimeout(I)}}},ie=function(B,x){var v=_[B];if(!!v){var K=v&&v.state==="waiting",m=v&&(v.state==="checking"||v.state==="uploading");if(x==="canceled"&&v.state!=="canceled"||x==="paused"&&K||x==="paused"&&m){if(x==="paused"&&v.params.Body&&typeof v.params.Body.pipe=="function"){console.error("stream not support pause");return}v.state=x,N.emit("inner-kill-task",{TaskId:B,toState:x});try{var b=v&&v.params&&v.params.UploadData.UploadId}catch(J){}x==="canceled"&&b&&h.removeUsing(b),Z(),m&&(w--,I()),x==="canceled"&&(v.params&&(delete v.params.UploadData,delete v.params.Body,delete v.params),delete v.callback)}R()}};N._addTasks=function(B){n.each(B,function(x){N._addTask(x.api,x.params,x.callback,!0)}),Z()};var ce=!0;N._addTask=function(B,x,v,K){x=n.formatParams(B,x);var m=n.uuid();x.TaskId=m,x.onTaskReady&&x.onTaskReady(m),x.TaskReady&&(x.TaskReady(m),ce&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),ce=!1);var b={params:x,callback:v,api:B,index:T.length,id:m,Bucket:x.Bucket,Region:x.Region,Key:x.Key,FilePath:x.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:x._custom},J=x.onHashProgress;x.onHashProgress=function(oe){!N._isRunningTask(b.id)||(b.hashPercent=oe.percent,J&&J(oe),Z())};var $=x.onProgress;return x.onProgress=function(oe){!N._isRunningTask(b.id)||(b.state==="checking"&&(b.state="uploading"),b.loaded=oe.loaded,b.speed=oe.speed,b.percent=oe.percent,$&&$(oe),Z())},n.getFileSize(B,x,function(oe,C){if(oe)return v(n.error(oe));_[m]=b,T.push(b),b.size=C,!K&&Z(),I(),R()}),m},N._isRunningTask=function(B){var x=_[B];return!!(x&&(x.state==="checking"||x.state==="uploading"))},N.getTaskList=function(){return n.map(T,P)},N.cancelTask=function(B){ie(B,"canceled")},N.pauseTask=function(B){ie(B,"paused")},N.restartTask=function(B){var x=_[B];x&&(x.state==="paused"||x.state==="error")&&(x.state="waiting",Z(),M=Math.min(M,x.index),I())},N.isUploadRunning=function(){return w||Mfe?1:-1})}var _=function(y,E){var k,G,q,fe=[],Ce=T(y);for(k=0;k-1||w.indexOf(G)>-1)&&(E[k]=y[k])}return E},P=function(y){y=y||{};var E=y.SecretId,k=y.SecretKey,G=y.KeyTime,q=(y.method||y.Method||"get").toLowerCase(),fe=$(y.Query||y.params||{}),Ce=M($(y.Headers||y.headers||{})),he=y.Key||"",ke;y.UseRawKey?ke=y.Pathname||y.pathname||"/"+he:(ke=y.Pathname||y.pathname||he,ke.indexOf("/")!==0&&(ke="/"+ke));var Be=y.ForceSignHost!==!1;if(!Ce.Host&&!Ce.host&&y.Bucket&&y.Region&&Be&&(Ce.Host=y.Bucket+".cos."+y.Region+".myqcloud.com"),!E)throw new Error("missing param SecretId");if(!k)throw new Error("missing param SecretKey");var me=Math.round(se(y.SystemClockOffset)/1e3)-1,pe=me,Pe=y.Expires||y.expires;Pe===void 0?pe+=900:pe+=Pe*1||0;var xe="sha1",Ae=E,we=G||me+";"+pe,Ue=G||me+";"+pe,He=T(Ce,!0).join(";").toLowerCase(),Ke=T(fe,!0).join(";").toLowerCase(),ze=z.HmacSHA1(Ue,k).toString(),Le=[q,ke,ye.obj2str(fe,!0),ye.obj2str(Ce,!0),""].join(` `),Xe=["sha1",we,z.SHA1(Le).toString(),""].join(` `),We=z.HmacSHA1(Xe,ze).toString(),je=["q-sign-algorithm="+xe,"q-ak="+Ae,"q-sign-time="+we,"q-key-time="+Ue,"q-header-list="+He,"q-url-param-list="+Ke,"q-signature="+We].join("&");return je},Z=function(y,E,k){var G=E/8,q=y.slice(k,k+G);return new Uint8Array(q).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[E](q)[0]},R=function(y,E,k,G){var q=y.slice(E,k),fe="";return new Uint8Array(q).forEach(function(Ce){fe+=String.fromCharCode(Ce)}),G&&(fe=decodeURIComponent(escape(fe))),fe},I=function(y){for(var E={},k=R(y),G={records:[]};y.byteLength;){var q=Z(y,32,0),fe=Z(y,32,4),Ce=q-fe-16,he=0,ke;for(y=y.slice(12);heparseInt(G[q])?1:-1;return 0},E=function(k){if(!k)return!1;var G=(k.match(/Chrome\/([.\d]+)/)||[])[1],q=(k.match(/QBCore\/([.\d]+)/)||[])[1],fe=(k.match(/QQBrowser\/([.\d]+)/)||[])[1],Ce=G&&y(G,"53.0.2785.116")<0&&q&&y(q,"3.53.991.400")<0&&fe&&y(fe,"9.0.2524.400")<=0||!1;return Ce};return E(typeof navigator!="undefined"&&navigator.userAgent)}(),K=function(y,E,k,G,q){var fe;if(y.slice?fe=y.slice(E,k):y.mozSlice?fe=y.mozSlice(E,k):y.webkitSlice&&(fe=y.webkitSlice(E,k)),G&&v){var Ce=new FileReader;Ce.onload=function(he){fe=null,q(new Blob([Ce.result]))},Ce.readAsArrayBuffer(fe)}else q(fe)},m=function(y,E,k,G){k=k||ce,y?typeof E=="string"?k(ye.md5(E,!0)):Blob&&E instanceof Blob?ye.getFileMd5(E,function(q,fe){k(fe)},G):k():k()},b=1024*1024,J=function(y,E,k){var G=y.size,q=0,fe=n.getCtx(),Ce=function(he){if(he>=G){var ke=fe.digest("hex");E(null,ke);return}var Be=Math.min(G,he+b);ye.fileSlice(y,he,Be,!1,function(me){x(me,function(pe){me=null,fe=fe.update(pe,!0),q+=pe.length,pe=null,k&&k({loaded:q,total:G,percent:Math.round(q/G*1e4)/1e4}),Ce(he+b)})})};Ce(0)};function $(y){return ne(y,function(E){return typeof E=="object"&&E!==null?$(E):E})}function oe(y,E,k){return y&&E in y?y[E]:k}function C(y,E){return ee(E,function(k,G){y[G]=E[G]}),y}function A(y){return y instanceof Array}function F(y,E){for(var k=!1,G=0;G-1,he=!fe||typeof fe=="string"&&fe.indexOf("{Region}")>-1;if(y.indexOf("Bucket")>-1||y==="deleteMultipleObject"||y==="multipartList"||y==="listObjectVersions"){if(Ce&&!k)return"Bucket";if(he&&!G)return"Region"}else if(y.indexOf("Object")>-1||y.indexOf("multipart")>-1||y==="sliceUploadFile"||y==="abortUploadTask"){if(Ce&&!k)return"Bucket";if(he&&!G)return"Region";if(!q)return"Key"}return!1},L=function(y,E){if(E=C({},E),y!=="getAuth"&&y!=="getV4Auth"&&y!=="getObjectUrl"){var k=E.Headers||{};if(E&&typeof E=="object"){(function(){for(var q in E)E.hasOwnProperty(q)&&q.indexOf("x-cos-")>-1&&(k[q]=E[q])})();var G={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext"};ye.each(G,function(q,fe){E[q]!==void 0&&(k[fe]=E[q])}),E.Headers=B(k)}}return E},U=function(y,E){return function(k,G){var q=this;typeof k=="function"&&(G=k,k={}),k=L(y,k);var fe=function(pe){return pe&&pe.headers&&(pe.headers["x-cos-request-id"]&&(pe.RequestId=pe.headers["x-cos-request-id"]),pe.headers["x-ci-request-id"]&&(pe.RequestId=pe.headers["x-ci-request-id"]),pe.headers["x-cos-version-id"]&&(pe.VersionId=pe.headers["x-cos-version-id"]),pe.headers["x-cos-delete-marker"]&&(pe.DeleteMarker=pe.headers["x-cos-delete-marker"])),pe},Ce=function(pe,Pe){G&&G(fe(pe),fe(Pe))},he=function(){if(y!=="getService"&&y!=="abortUploadTask"){var pe=V.call(q,y,k);if(pe)return"missing param "+pe;if(k.Region){if(q.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(k.Region))return"Region format error."}else{if(k.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(k.Region))return"Region format error."}!q.options.CompatibilityMode&&k.Region.indexOf("-")===-1&&k.Region!=="yfb"&&k.Region!=="default"&&k.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(k.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(k.Bucket))if(k.AppId)k.Bucket=k.Bucket+"-"+k.AppId;else if(q.options.AppId)k.Bucket=k.Bucket+"-"+q.options.AppId;else return'Bucket should format as "test-1250000000".';k.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete k.AppId)}!q.options.UseRawKey&&k.Key&&k.Key.substr(0,1)==="/"&&(k.Key=k.Key.substr(1))}},ke=he(),Be=y==="getAuth"||y==="getObjectUrl";if(typeof Promise=="function"&&!Be&&!G)return new Promise(function(pe,Pe){if(G=function(xe,Ae){xe?Pe(xe):pe(Ae)},ke)return Ce(ye.error(new Error(ke)));E.call(q,k,Ce)});if(ke)return Ce(ye.error(new Error(ke)));var me=E.call(q,k,Ce);if(Be)return me}},j=function(y,E){var k=this,G=0,q=0,fe=Date.now(),Ce,he;function ke(){if(he=0,E&&typeof E=="function"){Ce=Date.now();var Be=Math.max(0,Math.round((q-G)/((Ce-fe)/1e3)*100)/100)||0,me;q===0&&y===0?me=1:me=Math.floor(q/y*100)/100||0,fe=Ce,G=q;try{E({loaded:q,total:y,speed:Be,percent:me})}catch(pe){}}}return function(Be,me){if(Be&&(q=Be.loaded,y=Be.total),me)clearTimeout(he),ke();else{if(he)return;he=setTimeout(ke,k.options.ProgressInterval)}}},re=function(y,E,k){var G;if(typeof E.Body=="string"?E.Body=new Blob([E.Body],{type:"text/plain"}):E.Body instanceof ArrayBuffer&&(E.Body=new Blob([E.Body])),E.Body&&(E.Body instanceof Blob||E.Body.toString()==="[object File]"||E.Body.toString()==="[object Blob]"))G=E.Body.size;else{k(ye.error(new Error("params body format error, Only allow File|Blob|String.")));return}E.ContentLength=G,k(null,G)},se=function(y){return Date.now()+(y||0)},Q=function(y,E){var k=y;return y.message=y.message||null,typeof E=="string"?(y.error=E,y.message=E):typeof E=="object"&&E!==null&&(C(y,E),(E.code||E.name)&&(y.code=E.code||E.name),E.message&&(y.message=E.message),E.stack&&(y.stack=E.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(y,"name",{writable:!0,enumerable:!1}),Object.defineProperty(y,"message",{enumerable:!0})),y.name=E&&E.name||y.name||y.code||"Error",y.code||(y.code=y.name),y.error||(y.error=$(k)),y},te=function(){return typeof window!="object"&&typeof h=="object"&&!0},Re=function(y){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(y)},ye={noop:ce,formatParams:L,apiWrapper:U,xml2json:a,json2xml:D,md5:n,clearKey:B,fileSlice:K,getBodyMd5:m,getFileMd5:J,binaryBase64:ue,extend:C,isArray:A,isInArray:F,makeArray:W,each:ee,map:ne,filter:H,clone:$,attr:oe,uuid:de,camSafeUrlEncode:N,throttleOnProgress:j,getFileSize:re,getSkewTime:se,error:Q,obj2str:_,getAuth:P,parseSelectPayload:I,getSourceParams:ie,isBrowser:!0,isNode:te,isCIHost:Re};d.exports=ye}}]);