// Aliyun OSS SDK for JavaScript v6.17.1 // Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved. // License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).OSS=e()}(function(){return function n(s,i,o){function a(t,e){if(!i[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}},s[t][0].call(r.exports,function(e){return a(s[t][1][e]||e)},r,r.exports,n,s,i,o)}return i[t].exports}for(var c="function"==typeof require&&require,e=0;e\n\n\n').concat(t,"\n"),r&&(s+="".concat(r,"\n")),s+="\n",i.content=s,i.mime="xml",i.successStatuses=[200],e.next=9,this.request(i);case 9:return i=e.sent,e.abrupt("return",{res:i.res});case 11:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),r.getBucketLogging=function(){var r=(0,i.default)(h.default.mark(function e(t,r){var n,s;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=this._bucketRequestParams("GET",t,"logging",r)).successStatuses=[200],s.xmlResponse=!0,e.next=5,this.request(s);case 5:return n=e.sent,s=n.data.LoggingEnabled,e.abrupt("return",{enable:!!s,prefix:s&&s.TargetPrefix||null,res:n.res});case 8:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.deleteBucketLogging=function(){var r=(0,i.default)(h.default.mark(function e(t,r){var n;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"logging",r)).successStatuses=[204,200],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.putBucketCORS=function(){var n=(0,i.default)(h.default.mark(function e(t,r,n){var s,i,o,a,c,u,l,p,f;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(d((r=r||[]).length,"rules is required"),r.forEach(function(e){d(e.allowedOrigin,"allowedOrigin is required"),d(e.allowedMethod,"allowedMethod is required")}),f=this._bucketRequestParams("PUT",t,"cors",n),s='\n',i=function(e){s+="".concat(e,"")},o=function(e){s+="".concat(e,"")},a=function(e){s+="".concat(e,"")},c=function(e){s+="".concat(e,"")},u=0,l=r.length;u",m(p.allowedOrigin).forEach(i),m(p.allowedMethod).forEach(o),m(p.allowedHeader).forEach(a),m(p.exposeHeader).forEach(c),p.maxAgeSeconds&&(s+="".concat(p.maxAgeSeconds,"")),s+="";return s+="",f.content=s,f.mime="xml",f.successStatuses=[200],e.next=16,this.request(f);case 16:return f=e.sent,e.abrupt("return",{res:f.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),r.getBucketCORS=function(){var r=(0,i.default)(h.default.mark(function e(t,r){var n,s,i;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=this._bucketRequestParams("GET",t,"cors",r)).successStatuses=[200],i.xmlResponse=!0,e.next=5,this.request(i);case 5:return n=e.sent,s=[],n.data&&n.data.CORSRule&&(i=!o(i=n.data.CORSRule)?[i]:i).forEach(function(t){var r={};Object.keys(t).forEach(function(e){r[e.slice(0,1).toLowerCase()+e.slice(1,e.length)]=t[e]}),s.push(r)}),e.abrupt("return",{rules:s,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.deleteBucketCORS=function(){var r=(0,i.default)(h.default.mark(function e(t,r){var n;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"cors",r)).successStatuses=[204],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.putBucketReferer=function(){var s=(0,i.default)(h.default.mark(function e(t,r,n,s){var i,o,a;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this._bucketRequestParams("PUT",t,"referer",s),i='\n\n',i+=" ".concat(r?"true":"false","\n"),n&&0\n",o=0;o".concat(n[o],"\n");i+=" \n"}else i+=" \n";return i+="",a.content=i,a.mime="xml",a.successStatuses=[200],e.next=10,this.request(a);case 10:return a=e.sent,e.abrupt("return",{res:a.res});case 12:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),r.getBucketReferer=function(){var r=(0,i.default)(h.default.mark(function e(t,r){var n,s;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=this._bucketRequestParams("GET",t,"referer",r)).successStatuses=[200],s.xmlResponse=!0,e.next=5,this.request(s);case 5:return n=e.sent,(s=n.data.RefererList.Referer||null)&&(o(s)||(s=[s])),e.abrupt("return",{allowEmpty:"true"===n.data.AllowEmptyReferer,referers:s,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r.deleteBucketReferer=function(){var r=(0,i.default)(h.default.mark(function e(t,r){return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),r._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,assert:78,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/web.dom-collections.for-each.js":296}],3:[function(E,_,e){!function(T,k){!function(){"use strict";var e=E("@babel/runtime/helpers/interopRequireDefault"),c=e(E("@babel/runtime/regenerator")),r=e(E("@babel/runtime/helpers/asyncToGenerator"));E("core-js/modules/es.function.name.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.symbol.js"),E("core-js/modules/es.symbol.description.js"),E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.regexp.to-string.js");var t=E("debug")("ali-oss"),s=E("xml2js"),n=E("agentkeepalive"),i=E("merge-descriptors"),o=E("platform"),a=E("utility"),u=E("urllib"),l=E("./version"),p=E("bowser"),f=E("../common/signUtils"),h=E("../common/client/initOptions"),d=E("../common/utils/createRequest").createRequest,m=E("../common/utils/encoder").encoder,e=E("../common/client/getReqUrl").getReqUrl,y=E("../common/utils/setSTSToken").setSTSToken,b=E("../common/utils/retry").retry,g=E("../common/utils/isFunction").isFunction,v=new n;function w(e,t){var r,n;if(r=o.name,n=o.version,r&&r.toLowerCase&&"ie"===r.toLowerCase()&&n.split(".")[0]<10&&console.warn("ali-oss does not support the current browser"),!(this instanceof w))return new w(e,t);e&&e.inited?this.options=e:this.options=w.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=u,this.agent=this.options.agent||v),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}(_.exports=w).initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");e=Object.assign({secure:location&&"https:"===location.protocol,useFetch:!1},e);return h(e)};n=w.prototype;function j(e){return x.apply(this,arguments)}function x(){return(x=(0,r.default)(c.default.mark(function e(t){var r,n,s,i,o,a;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.stsToken&&g(this.options.refreshSTSToken))return e.next=3,y.call(this);e.next=3;break;case 3:return r=d.call(this,t),this.options.useFetch||(r.params.mode="disable-fetch"),i=!!t.stream,e.prev=6,e.next=9,this.urllib.request(r.url,r.params);case 9:n=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,r.url,n.status,n.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),s=e.t0;case 16:if(n&&t.successStatuses&&-1===t.successStatuses.indexOf(n.status))return e.next=19,this.requestError(n);e.next=28;break;case 19:if("RequestTimeTooSkewed"!==(o=e.sent).code||i){e.next=25;break}return this.options.amendTimeSkewed=+new Date(o.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:o.params=t,e.next=32;break;case 28:if(s)return e.next=31,this.requestError(s);e.next=32;break;case 31:o=e.sent;case 32:if(o)throw o;e.next=34;break;case 34:if(t.xmlResponse)return e.next=37,this.parseXML(n.data);e.next=39;break;case 37:a=e.sent,n.data=a;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}},e,this,[[6,13]])}))).apply(this,arguments)}n.debug=t,i(n,E("./object")),i(n,E("./bucket")),i(n,E("../common/bucket/getBucketWebsite")),i(n,E("../common/bucket/putBucketWebsite")),i(n,E("../common/bucket/deleteBucketWebsite")),i(n,E("../common/bucket/getBucketLifecycle")),i(n,E("../common/bucket/putBucketLifecycle")),i(n,E("../common/bucket/deleteBucketLifecycle")),i(n,E("../common/bucket/putBucketVersioning")),i(n,E("../common/bucket/getBucketVersioning")),i(n,E("../common/bucket/getBucketInventory")),i(n,E("../common/bucket/deleteBucketInventory")),i(n,E("../common/bucket/listBucketInventory")),i(n,E("../common/bucket/putBucketInventory")),i(n,E("../common/bucket/abortBucketWorm")),i(n,E("../common/bucket/completeBucketWorm")),i(n,E("../common/bucket/extendBucketWorm")),i(n,E("../common/bucket/getBucketWorm")),i(n,E("../common/bucket/initiateBucketWorm")),i(n,E("./managed-upload")),i(n,E("../common/multipart-copy")),i(n,E("../common/multipart")),i(n,E("../common/parallel")),n.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),f.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},n._getReqUrl=e,n.authorization=function(e,t,r,n){r=f.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return f.authorization(this.options.accessKeyId,this.options.accessKeySecret,r,this.options.headerEncoding)},n.request=function(){var t=(0,r.default)(c.default.mark(function e(n){var s=this;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.retryMax)return e.next=3,b(j.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(n.stream)return!1;var t=[-1,-2].includes(e.status),r=s.options.requestErrorRetryHandle||function(){return!0};return t&&r(e)}(e)}})(n);e.next=6;break;case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",j.call(this,n));case 7:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),n._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=m(e.object,this.options.headerEncoding)),t},n._escape=function(e){return a.encodeURIComponent(e).replace(/%2F/g,"/")},n._getUserAgent=function(){var e=k&&k.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(l.version),e=o.description;return!e&&k&&(e="Node.js ".concat(k.version.slice(1)," on ").concat(k.platform," ").concat(k.arch)),this._checkUserAgent("".concat(t," ").concat(e))},n._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},n.checkBrowserAndVersion=function(e,t){return p.name===e&&p.version.split(".")[0]===t},n.parseXML=function(e){return new Promise(function(r,n){T.isBuffer(e)&&(e=e.toString()),s.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,t){e?n(e):r(t)})})},n.requestError=function(){var t=(0,r.default)(c.default.mark(function e(t){var r,n,s,i;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?((r=new Error(t.message)).name=t.name,r.status=t.status,r.code=t.name):(404===t.status?((r=new Error("Object not exists")).name="NoSuchKeyError",r.status=404,r.code="NoSuchKey"):412===t.status?((r=new Error("Pre condition failed")).name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed"):((r=new Error("Unknow error, status: ".concat(t.status))).name="UnknowError",r.status=t.status),r.requestId=t.headers["x-oss-request-id"],r.host=""),e.next=32;break;case 5:return n=String(t.data),this.debug("request response error data: %s",n,"error"),e.prev=7,e.next=10,this.parseXML(n);case 10:if(e.t0=e.sent,e.t0){e.next=13;break}e.t0={};case 13:s=e.t0,e.next=23;break;case 16:return e.prev=16,e.t1=e.catch(7),this.debug(n,"error"),e.t1.message+="\nraw xml: ".concat(n),e.t1.status=t.status,e.t1.requestId=t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 23:i=s.Message||"unknow request error, status: ".concat(t.status),s.Condition&&(i+=" (condition: ".concat(s.Condition,")")),(r=new Error(i)).name=s.Code?"".concat(s.Code,"Error"):"UnknowError",r.status=t.status,r.code=s.Code,r.requestId=s.RequestId,r.hostId=s.HostId,r.serverTime=s.ServerTime;case 32:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 34:case"end":return e.stop()}},e,this,[[7,16]])}));return function(e){return t.apply(this,arguments)}}()}.call(this)}.call(this,{isBuffer:E("../../node_modules/is-buffer/index.js")},E("_process"))},{"../../node_modules/is-buffer/index.js":312,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":48,"../common/signUtils":49,"../common/utils/createRequest":54,"../common/utils/encoder":57,"../common/utils/isFunction":65,"../common/utils/retry":70,"../common/utils/setSTSToken":72,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,agentkeepalive:77,bowser:83,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.split.js":268,"core-js/modules/es.symbol.description.js":270,"core-js/modules/es.symbol.js":271,debug:397,"merge-descriptors":315,platform:322,urllib:407,utility:406,xml2js:358}],4:[function(s,e,o){!function(i){!function(){"use strict";var e=s("@babel/runtime/helpers/interopRequireDefault"),b=e(s("@babel/runtime/regenerator"));s("core-js/modules/es.function.name.js"),s("core-js/modules/es.object.to-string.js"),s("core-js/modules/es.promise.js"),s("core-js/modules/es.array.from.js"),s("core-js/modules/es.string.iterator.js"),s("core-js/modules/es.array.map.js"),s("core-js/modules/es.array.filter.js"),s("core-js/modules/es.array.find.js"),s("core-js/modules/es.array.concat.js"),s("core-js/modules/es.regexp.to-string.js"),s("core-js/modules/es.array.slice.js"),s("core-js/modules/es.array.iterator.js"),s("core-js/modules/es.array-buffer.slice.js"),s("core-js/modules/es.typed-array.uint8-array.js"),s("core-js/modules/es.typed-array.copy-within.js"),s("core-js/modules/es.typed-array.every.js"),s("core-js/modules/es.typed-array.fill.js"),s("core-js/modules/es.typed-array.filter.js"),s("core-js/modules/es.typed-array.find.js"),s("core-js/modules/es.typed-array.find-index.js"),s("core-js/modules/es.typed-array.for-each.js"),s("core-js/modules/es.typed-array.includes.js"),s("core-js/modules/es.typed-array.index-of.js"),s("core-js/modules/es.typed-array.iterator.js"),s("core-js/modules/es.typed-array.join.js"),s("core-js/modules/es.typed-array.last-index-of.js"),s("core-js/modules/es.typed-array.map.js"),s("core-js/modules/es.typed-array.reduce.js"),s("core-js/modules/es.typed-array.reduce-right.js"),s("core-js/modules/es.typed-array.reverse.js"),s("core-js/modules/es.typed-array.set.js"),s("core-js/modules/es.typed-array.slice.js"),s("core-js/modules/es.typed-array.some.js"),s("core-js/modules/es.typed-array.sort.js"),s("core-js/modules/es.typed-array.subarray.js"),s("core-js/modules/es.typed-array.to-locale-string.js"),s("core-js/modules/es.typed-array.to-string.js");var g=e(s("@babel/runtime/helpers/asyncToGenerator")),t=s("util"),p=s("path"),f=s("mime"),v=s("copy-to"),h=s("../common/utils/isBlob").isBlob,d=s("../common/utils/isFile").isFile,m=(s("../common/utils/isArray").isArray,s("../common/utils/isBuffer").isBuffer),e=(s("../common/utils/retry").retry,o);e.multipartUpload=function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,s,i,o,a,c,u,l=arguments;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=2this.fileBuffer.length?this.fileBuffer.length:n;this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},n.prototype._read=function(t){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);t=t||16384;var r=this;this.reader.onload=function(e){r.fileBuffer=i.from(new Uint8Array(e.target.result)),r.file=null,r.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},e._createBuffer=function(){var n=(0,g.default)(b.default.mark(function e(t,r,n){var s;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h(t)||d(t))return s=t.slice(r,n),e.next=4,function(n){return n.arrayBuffer?n.arrayBuffer():new Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e)},e.readAsArrayBuffer(n)})}(s);e.next=8;break;case 4:return s=e.sent,e.abrupt("return",i.from(s));case 8:if(m(t))return e.abrupt("return",t.subarray(r,n));e.next=12;break;case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}},e)}));return function(e,t,r){return n.apply(this,arguments)}}(),e._getPartSize=function(e,t){t=t||1048576;e=Math.ceil(e/1e4);return t\n\n',a=0;a\n",o+="".concat(c.number,"\n"),o+="".concat(c.etag,"\n"),o+="\n";return o+="",p={},(p=d(s=s||{},function(e){if(m(e))return null})).headers&&delete p.headers["x-oss-server-side-encryption"],p.subres={uploadId:r},u=this._objectRequestParams("POST",t,p),h.encodeCallback(u,p),u.mime="xml",u.content=o,u.headers&&u.headers["x-oss-callback"]||(u.xmlResponse=!0),u.successStatuses=[200],e.next=17,this.request(u);case 17:return l=e.sent,p={res:l.res,bucket:u.bucket,name:t,etag:l.res.headers.etag},u.headers&&u.headers["x-oss-callback"]&&(p.data=JSON.parse(l.data.toString())),e.abrupt("return",p);case 21:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),e._uploadPart=function(){var i=(0,t.default)(f.default.mark(function e(t,r,n,s,i){var o,a,c;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o={},u(i=i||{}).to(o),o.headers={"Content-Length":s.size},o.subres={partNumber:n,uploadId:r},(a=this._objectRequestParams("PUT",t,o)).mime=o.mime,l&&l.browser?a.content=s.content:a.stream=s.stream,a.successStatuses=[200],a.disabledMD5=i.disabledMD5,e.next=13,this.request(a);case 13:if((c=e.sent).res.headers.etag){e.next=16;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 16:return s.stream&&(s.stream=null,a.stream=null),e.abrupt("return",{name:t,etag:c.res.headers.etag,res:c.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r,n,s){return i.apply(this,arguments)}}()}.call(this)}.call(this,r("_process"))},{"./callback":24,"./utils/deepCopy":56,"./utils/isBuffer":63,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator"));e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var c=n(e("@babel/runtime/helpers/typeof")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,r=r,u=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];r.copy=function(){var s=(0,i.default)(a.default.mark(function e(t,r,n,s){var i,o;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=(s="object"===(0,c.default)(n)?n:s)||{}).headers=s.headers||{},Object.keys(s.headers).forEach(function(e){s.headers["x-oss-copy-source-".concat(e.toLowerCase())]=s.headers[e]}),(s.meta||Object.keys(s.headers).find(function(e){return u.includes(e.toLowerCase())}))&&(s.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(s.meta,s.headers),r=this._getSourceName(r,n),s.versionId&&(r="".concat(r,"?versionId=").concat(s.versionId)),s.headers["x-oss-copy-source"]=r,(o=this._objectRequestParams("PUT",t,s)).xmlResponse=!0,o.successStatuses=[200,304],e.next=14,this.request(o);case 14:return i=e.sent,o=(o=i.data)&&{etag:o.ETag,lastModified:o.LastModified},e.abrupt("return",{data:o,res:i.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return s.apply(this,arguments)}}(),r._getSourceName=function(e,t){return"string"==typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),s(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),s=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var i=n(e("@babel/runtime/helpers/asyncToGenerator"));r.delete=function(){var t=(0,i.default)(s.default.mark(function e(t){var r,n=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1=this.options.refreshSTSTokenInterval?(this.stsTokenFreshTime=e,this.options.refreshSTSToken().then(function(e){e=h(e,"firstLowerCase");e.securityToken&&(e.stsToken=e.securityToken),f(e),Object.assign(r.options,e)})):this.stsTokenFreshTime=e),this.options.stsToken&&(t["security-token"]=this.options.stsToken);i=u._signatureForURL(this.options.accessKeySecret,t,i,n),s=o.parse(this._getReqUrl(s));return s.query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:i.Signature},c(i.subResource).to(s.query),s.format()}},{"../../common/signUtils":49,"../../common/utils/isFunction":65,"../utils/formatObjKey":59,"../utils/isIP":66,"../utils/setSTSToken":72,"copy-to":88,"core-js/modules/es.object.assign.js":255,url:404,utility:406}],48:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),p=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var i=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("./utils/isArray").isArray,r=r;r._parallelNode=function(){var s=(0,i.default)(p.default.mark(function e(t,r,n,s){var i,o,a,c,u,l;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=this,o=[],a=[],u=t.length/r,l=t.length%r,c=0==l?u:(t.length-l)/r+1,u=1,l=0;case 8:if(!(lt[0]?1:e[0]").concat(e[t],""):"object"===i(e[t])?n+="<".concat(t,">").concat(r(e[t]),""):"array"===i(e[t])?n+=e[t].map(function(e){return"<".concat(t,">").concat(r(e),"")}).join(""):n+="<".concat(t,">").concat(e[t].toString(),""))}):n+=e.toString(),n}},{"./formatObjKey":59,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],70:[function(e,t,r){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0,r.retry=function(i,o){var e=2=this.options.refreshSTSTokenInterval)return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();e.next=12;break;case 7:r=e.sent,(r=o.formatObjKey(r,"firstLowerCase")).securityToken&&(r.stsToken=r.securityToken),c(r),Object.assign(this.options,r);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function c(e){var r=Object.keys(e);["accessKeySecret","accessKeyId","stsToken"].forEach(function(t){if(!r.find(function(e){return e===t}))throw Error("refreshSTSToken must return contains ".concat(t))})}r.setSTSToken=function(){return a.apply(this,arguments)},r.checkCredentials=c},{"./formatObjKey":59,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.find.js":244,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],73:[function(e,t,r){function c(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}t.exports=function(a){return function(){var e=this,o=arguments;return new Promise(function(t,r){var n=a.apply(e,o);function s(e){c(n,t,r,s,i,"next",e)}function i(e){c(n,t,r,s,i,"throw",e)}s(void 0)})}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],74:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],75:[function(e,t,r){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},{}],76:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":342}],77:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],78:[function(x,T,e){!function(j){!function(){"use strict";var e=x("object-assign");function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);s>16&255,i[o++]=t>>8&255,i[o++]=255&t;2===n&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,i[o++]=255&t);1===n&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,i[o++]=t>>8&255,i[o++]=255&t);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],i=0,o=r-n;i>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n));return s.join("")}(e,i,o>2]+a[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],s.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return s.join("")};for(var a=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,i=n.length;st[1][r])return 1;if(t[0][r]!==t[1][r])return-1;if(0===r)return 0}}function i(e,t,r){var n=a;"string"==typeof t&&(r=t,t=void 0),void 0===t&&(t=!1);var s,i=""+(n=r?o(r):n).version;for(s in e)if(e.hasOwnProperty(s)&&n[s]){if("string"!=typeof e[s])throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(e));return x([i,e[s]])<0}return t}return a.test=function(e){for(var t=0;t=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function h(e,t){if(p.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var r=(e="string"!=typeof e?""+e:e).length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(n)return A(e).length;t=(""+t).toLowerCase(),n=!0}}function t(e,t,r){var n,s,i,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0);(!r||r<0||n=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=p.from(t,n)),p.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,s);if("number"==typeof t)return t&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(s?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):y(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,s){var i=1,o=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o/=i=2,a/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s)for(var u=-1,l=r;l>8,n=n%256,s.push(n),s.push(r);return s}(t,e.length-r),e,r,n)}function v(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s>>10&1023|55296),l=56320|1023&l),n.push(l),s+=p}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nt&&(e+=" ... ")),""},p.prototype.compare=function(e,t,r,n,s){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(s<=n&&r<=t)return 0;if(s<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(s>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),a=Math.min(i,o),c=this.slice(n,s),u=e.slice(t,r),l=0;lthis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,o,a,c=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var s=e.length-r;if((!n||s<(n=Number(n)))&&(n=s),(s=t.length)%2!=0)throw new TypeError("Invalid hex string");s/2e.length)throw new RangeError("Index out of range")}function T(e,t,r,n){t<0&&(t=65535+t+1);for(var s=0,i=Math.min(e.length-r,2);s>>8*(n?s:1-s)}function k(e,t,r,n){t<0&&(t=4294967295+t+1);for(var s=0,i=Math.min(e.length-r,4);s>>8*(n?s:3-s)&255}function E(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,n,s){return s||E(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,s){return s||E(e,0,r,8),i.write(e,t,r,n,52,8),r+8}p.prototype.slice=function(e,t){var r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r>>8):T(this,e,t,!0),t+2},p.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},p.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):k(this,e,t,!0),t+4},p.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},p.prototype.writeIntLE=function(e,t,r,n){e=+e,t|=0,n||x(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var s=0,i=1,o=0;for(this[t]=255&e;++s>0)-o&255;return t+r},p.prototype.writeIntBE=function(e,t,r,n){e=+e,t|=0,n||x(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var s=r-1,i=1,o=0;for(this[t+s]=255&e;0<=--s&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+r},p.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,1,127,-128),p.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},p.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},p.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},p.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):k(this,e,t,!0),t+4},p.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),p.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},p.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},p.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},p.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},p.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},p.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),(n=0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var s,i=(n=e.length-t>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(a=t;a>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function D(e){return a.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var s=0;s=t.length||s>=e.length);++s)t[s+r]=e[s];return s}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},C("buffer").Buffer)},{"base64-js":82,buffer:85,ieee754:304,isarray:313}],86:[function(e,t,r){var n=e("buffer").Buffer,s=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};r=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!s(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function a(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}r.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},r.prototype.end=function(e){var t,r,n="";return e&&e.length&&(n=this.write(e)),this.charReceived&&(t=this.charReceived,r=this.charBuffer,e=this.encoding,n+=r.slice(0,t).toString(e)),n}},{buffer:85}],87:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],88:[function(e,t,r){"use strict";var n=Array.prototype.slice;function s(e,t){if(!(this instanceof s))return new s(e,t);this.src=e,this._withAccess=t}(t.exports=s).prototype.withAccess=function(e){return this._withAccess=!1!==e,this},s.prototype.pick=function(e){return(e=!Array.isArray(e)?n.call(arguments):e).length&&(this.keys=e),this},s.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r>8&255]}function i(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function a(e){return F(e,23,4)}function c(e){return F(e,52,8)}function u(e,t){_(e[R],t,{get:function(){return D(this)[t]}})}function l(e,t,r,n){var s=j(r),r=D(e);if(s+t>r.byteLength)throw q(M);return e=D(r.buffer).bytes,r=s+r.byteOffset,t=e.slice(r,r+t),n?t:t.reverse()}function p(e,t,r,n,s,i){if(r=j(r),e=D(e),r+t>e.byteLength)throw q(M);for(var o=D(e.buffer).bytes,a=r+e.byteOffset,c=n(+s),u=0;uV;)(G=X[V++])in L||m(L,G,P[G]);b.constructor=L}k&&T(e)!==A&&k(e,A);var A=new B(new L(2)),W=e.setInt8;A.setInt8(0,2147483648),A.setInt8(1,2147483649),!A.getInt8(0)&&A.getInt8(1)||y(e,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},{unsafe:!0})}else L=function(e){g(this,L,C);e=j(e);I(this,{bytes:S.call(new Array(e),0),byteLength:e}),h||(this.byteLength=e)},B=function(e,t,r){g(this,B,N),g(e,L,N);var n=D(e).byteLength,t=v(t);if(t<0||n>24},getUint8:function(e){return l(this,1,e)[0]},getInt16:function(e){e=l(this,2,e,1>16},getUint16:function(e){e=l(this,2,e,1>>0},getFloat32:function(e){return U(l(this,4,e,10)e[i]=e[--i];if(i!==n++)e[i]=s}return e}(e,t):function(e,t,r){var n=e.length,s=t.length,i=0,o=0,a=[];while(i]*>)/g,d=/\$([$&'`]|\d{1,2})/g;t.exports=function(i,o,a,c,u,e){var l=a+i.length,p=c.length,t=d;return void 0!==u&&(u=n(u),t=h),s.call(e,t,function(e,t){var r;switch(t.charAt(0)){case"$":return"$";case"&":return i;case"`":return o.slice(0,a);case"'":return o.slice(l);case"<":r=u[t.slice(1,-1)];break;default:var n=+t;if(0==n)return e;if(p>1,u=23===t?h(2,-24)-h(2,-77):0,l=e<0||0===e&&1/e<0?1:0,p=0;for((e=f(e))!=e||e===1/0?(s=e!=e?1:0,n=a):(n=d(m(e)/y),e*(r=h(2,-n))<1&&(n--,r*=2),2<=(e+=1<=n+c?u/r:u*h(2,1-c))*r&&(n++,r/=2),a<=n+c?(s=0,n=a):1<=n+c?(s=(e*r-1)*h(2,t),n+=c):(s=e*h(2,c-1)*h(2,t),n=0));8<=t;i[p++]=255&s,s/=256,t-=8);for(n=n<>1,a=s-7,c=n-1,n=e[c--],u=127&n;for(n>>=7;0>=-a,a+=t;0"+e+""},y=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"==typeof document||document.domain&&i?s(i):(e=p("iframe"),t="java"+h+":",e.style.display="none",l.appendChild(e),e.src=String(t),(e=e.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var r=c.length;r--;)delete y[f][c[r]];return y()};u[d]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(n[f]=o(e),r=new n,n[f]=null,r[d]=e):r=y(),void 0===t?r:a(r,t)}},{"../internals/an-object":94,"../internals/document-create-element":126,"../internals/enum-bug-keys":138,"../internals/hidden-keys":149,"../internals/html":151,"../internals/object-define-properties":178,"../internals/shared-key":209}],178:[function(e,t,r){var n=e("../internals/descriptors"),o=e("../internals/object-define-property"),a=e("../internals/an-object"),c=e("../internals/object-keys");t.exports=n?Object.defineProperties:function(e,t){a(e);for(var r,n=c(t),s=n.length,i=0;is;)o(n,r=t[s++])&&(~c(i,r)||i.push(r));return i}},{"../internals/array-includes":103,"../internals/has":148,"../internals/hidden-keys":149,"../internals/to-indexed-object":219}],186:[function(e,t,r){var n=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,s)}},{"../internals/enum-bug-keys":138,"../internals/object-keys-internal":185}],187:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!n.call({1:2},1);r.f=i?function(e){e=s(this,e);return!!e&&e.enumerable}:n},{}],188:[function(e,t,r){var s=e("../internals/an-object"),i=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return s(e),i(t),n?r.call(e,t):e.__proto__=t,e}}():void 0)},{"../internals/a-possible-prototype":90,"../internals/an-object":94}],189:[function(e,t,r){function n(a){return function(e){for(var t,r=l(e),n=u(r),s=n.length,i=0,o=[];ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},{"../internals/global":147,"./fails":140}],204:[function(e,t,r){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],205:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],206:[function(e,t,r){var n=e("../internals/global");t.exports=function(t,r){try{Object.defineProperty(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},{"../internals/global":147}],207:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),s=e("../internals/object-define-property"),i=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),a=i("species");t.exports=function(e){var t=n(e),e=s.f;o&&t&&!t[a]&&e(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":125,"../internals/get-built-in":143,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],208:[function(e,t,r){var n=e("../internals/object-define-property").f,s=e("../internals/has"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!s(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"../internals/has":148,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],209:[function(e,t,r){var n=e("../internals/shared"),s=e("../internals/uid"),i=n("keys");t.exports=function(e){return i[e]||(i[e]=s(e))}},{"../internals/shared":211,"../internals/uid":234}],210:[function(e,t,r){var n=e("../internals/global"),s=e("../internals/set-global"),e="__core-js_shared__",e=n[e]||s(e,{});t.exports=e},{"../internals/global":147,"../internals/set-global":206}],211:[function(e,t,r){var n=e("../internals/is-pure"),s=e("../internals/shared-store");(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.2",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":163,"../internals/shared-store":210}],212:[function(e,t,r){var n=e("../internals/an-object"),s=e("../internals/a-function"),i=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,e=n(e).constructor;return void 0===e||null==(r=n(e)[i])?t:s(r)}},{"../internals/a-function":89,"../internals/an-object":94,"../internals/well-known-symbol":237}],213:[function(e,t,r){function n(i){return function(e,t){var r,n=a(c(e)),s=o(t),e=n.length;return s<0||e<=s?i?"":void 0:(t=n.charCodeAt(s))<55296||56319=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),i.Arguments=i.Array,s("keys"),s("values"),s("entries")},{"../internals/add-to-unscopables":91,"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/iterators":169,"../internals/to-indexed-object":219}],248:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/indexed-object"),i=e("../internals/to-indexed-object"),e=e("../internals/array-method-is-strict"),o=[].join,s=s!=Object,e=e("join",",");n({target:"Array",proto:!0,forced:s||!e},{join:function(e){return o.call(i(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":107,"../internals/export":139,"../internals/indexed-object":154,"../internals/to-indexed-object":219}],249:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("map")},{map:function(e){return s(this,e,1l(t)?1:-1}))).length,o=0;o_;_++)c(w,T=E[_])&&!c(k,T)&&b(k,T,y(w,T));(k.prototype=j).constructor=k,a(i,v,k)}},{"../internals/classof-raw":114,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/is-forced":160,"../internals/is-symbol":165,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/string-trim":215,"../internals/to-primitive":225}],255:[function(e,t,r){var n=e("../internals/export"),e=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==e},{assign:e})},{"../internals/export":139,"../internals/object-assign":176}],256:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(e){return s(e)}})},{"../internals/export":139,"../internals/object-to-array":189}],257:[function(e,t,r){var n=e("../internals/export"),s=e("../internals/to-object"),i=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){i(1)})},{keys:function(e){return i(s(e))}})},{"../internals/export":139,"../internals/fails":140,"../internals/object-keys":186,"../internals/to-object":222}],258:[function(e,t,r){var n=e("../internals/to-string-tag-support"),s=e("../internals/redefine"),e=e("../internals/object-to-string");n||s(Object.prototype,"toString",e,{unsafe:!0})},{"../internals/object-to-string":190,"../internals/redefine":197,"../internals/to-string-tag-support":227}],259:[function(e,t,r){"use strict";var n,s,i,o,a=e("../internals/export"),c=e("../internals/is-pure"),m=e("../internals/global"),u=e("../internals/get-built-in"),l=e("../internals/native-promise-constructor"),p=e("../internals/redefine"),f=e("../internals/redefine-all"),h=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),y=e("../internals/set-species"),b=e("../internals/is-object"),g=e("../internals/a-function"),v=e("../internals/an-instance"),w=e("../internals/inspect-source"),j=e("../internals/iterate"),x=e("../internals/check-correctness-of-iteration"),T=e("../internals/species-constructor"),k=e("../internals/task").set,E=e("../internals/microtask"),_=e("../internals/promise-resolve"),S=e("../internals/host-report-errors"),O=e("../internals/new-promise-capability"),A=e("../internals/perform"),D=e("../internals/internal-state"),I=e("../internals/is-forced"),C=e("../internals/well-known-symbol"),N=e("../internals/engine-is-browser"),R=e("../internals/engine-is-node"),M=e("../internals/engine-v8-version"),P=C("species"),L="Promise",B=D.get,q=D.set,F=D.getterFor(L),D=l&&l.prototype,U=l,G=D,X=m.TypeError,V=m.document,W=m.process,z=O.f,H=z,K=!!(V&&V.createEvent&&m.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,$="unhandledrejection",J="rejectionhandled",Z=1,Q=2,ee=1,te=2,re=!1,I=I(L,function(){var e=w(U),t=e!==String(U);if(!t&&66===M)return!0;if(c&&!G.finally)return!0;if(51<=M&&/native code/.test(e))return!1;function r(e){e(function(){},function(){})}e=new U(function(e){e(1)});return(e.constructor={})[P]=r,!(re=e.then(function(){})instanceof r)||!t&&N&&!Y}),x=I||!x(function(e){U.all(e).catch(function(){})}),ne=function(e){var t;return!(!b(e)||"function"!=typeof(t=e.then))&&t},se=function(f,h){var d;f.notified||(f.notified=!0,d=f.reactions,E(function(){for(var s,e=f.value,t=f.state==Z,r=0;d.length>r;){var n,i,o,a=d[r++],c=t?a.ok:a.fail,u=a.resolve,l=a.reject,p=a.domain;try{c?(t||(f.rejection===te&&function(t){k.call(m,function(){var e=t.facade;if(R)W.emit("rejectionHandled",e);else ie(J,e,t.value)})}(f),f.rejection=ee),!0===c?n=e:(p&&p.enter(),n=c(e),p&&(p.exit(),o=!0)),n===a.promise?l(X("Promise-chain cycle")):(i=ne(n))?i.call(n,u,l):u(n)):l(e)}catch(e){p&&!o&&p.exit(),l(e)}}f.reactions=[],f.notified=!1,h&&!f.rejection&&(s=f,k.call(m,function(){var e,t=s.facade,r=s.value,n=oe(s);if(n&&(e=A(function(){R?W.emit("unhandledRejection",r,t):ie($,t,r)}),s.rejection=R||oe(s)?te:ee,e.error))throw e.value}))}))},ie=function(e,t,r){var n,s;K?((n=V.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),m.dispatchEvent(n)):n={promise:t,reason:r},!Y&&(s=m["on"+e])?s(n):e===$&&S("Unhandled promise rejection",r)},oe=function(e){return e.rejection!==ee&&!e.parent},ae=function(t,r,n){return function(e){t(r,e,n)}},ce=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=Q,se(e,!0))},ue=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw X("Promise can't be resolved itself");var n=ne(e);n?E(function(){var t={done:!1};try{n.call(e,ae(ue,t,r),ae(ce,t,r))}catch(e){ce(t,e,r)}}):(r.value=e,r.state=Z,se(r,!1))}catch(e){ce({done:!1},e,r)}}};if(I&&(G=(U=function(e){v(this,U,L),g(e),n.call(this);var t=B(this);try{e(ae(ue,t),ae(ce,t))}catch(e){ce(t,e)}}).prototype,(n=function(e){q(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(G,{then:function(e,t){var r=F(this),n=z(T(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?W.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&se(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new n,t=B(e);this.promise=e,this.resolve=ae(ue,t),this.reject=ae(ce,t)},O.f=z=function(e){return e===U||e===i?new s:H(e)},!c&&"function"==typeof l&&D!==Object.prototype)){o=D.then,re||(p(D,"then",function(e,t){var r=this;return new U(function(e,t){o.call(r,e,t)}).then(e,t)},{unsafe:!0}),p(D,"catch",G.catch,{unsafe:!0}));try{delete D.constructor}catch(e){}h&&h(D,G)}a({global:!0,wrap:!0,forced:I},{Promise:U}),d(U,L,!1,!0),y(L),i=u(L),a({target:L,stat:!0,forced:I},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),a({target:L,stat:!0,forced:c||I},{resolve:function(e){return _(c&&this===i?U:this,e)}}),a({target:L,stat:!0,forced:x},{all:function(e){var a=this,t=z(a),c=t.resolve,u=t.reject,r=A(function(){var n=g(a.resolve),s=[],i=0,o=1;j(e,function(e){var t=i++,r=!1;s.push(void 0),o++,n.call(a,e).then(function(e){r||(r=!0,s[t]=e,--o||c(s))},u)}),--o||c(s)});return r.error&&u(r.value),t.promise},race:function(e){var r=this,n=z(r),s=n.reject,t=A(function(){var t=g(r.resolve);j(e,function(e){t.call(r,e).then(n.resolve,s)})});return t.error&&s(t.value),n.promise}})},{"../internals/a-function":89,"../internals/an-instance":93,"../internals/check-correctness-of-iteration":113,"../internals/engine-is-browser":129,"../internals/engine-is-node":133,"../internals/engine-v8-version":136,"../internals/export":139,"../internals/get-built-in":143,"../internals/global":147,"../internals/host-report-errors":150,"../internals/inspect-source":156,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-object":162,"../internals/is-pure":163,"../internals/iterate":166,"../internals/microtask":170,"../internals/native-promise-constructor":171,"../internals/new-promise-capability":174,"../internals/object-set-prototype-of":188,"../internals/perform":194,"../internals/promise-resolve":195,"../internals/redefine":197,"../internals/redefine-all":196,"../internals/set-species":207,"../internals/set-to-string-tag":208,"../internals/species-constructor":212,"../internals/task":216,"../internals/well-known-symbol":237}],260:[function(e,t,r){var n=e("../internals/descriptors"),s=e("../internals/global"),i=e("../internals/is-forced"),u=e("../internals/inherit-if-required"),l=e("../internals/create-non-enumerable-property"),o=e("../internals/object-define-property").f,a=e("../internals/object-get-own-property-names").f,p=e("../internals/is-regexp"),f=e("../internals/to-string"),h=e("../internals/regexp-flags"),c=e("../internals/regexp-sticky-helpers"),d=e("../internals/redefine"),m=e("../internals/fails"),y=e("../internals/has"),b=e("../internals/internal-state").enforce,g=e("../internals/set-species"),v=e("../internals/well-known-symbol"),w=e("../internals/regexp-unsupported-dot-all"),j=e("../internals/regexp-unsupported-ncg"),x=v("match"),T=s.RegExp,k=T.prototype,E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,S=/a/g,v=new T(_)!==_,O=c.UNSUPPORTED_Y,m=n&&(!v||O||w||j||m(function(){return S[x]=!1,T(_)!=_||T(S)==S||"/a/i"!=T(_,"i")})),A=function(e){for(var t,r=e.length,n=0,s="",i=!1;n<=r;n++)"\\"!==(t=e.charAt(n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),s+=t):s+="[\\s\\S]":s+=t+e.charAt(++n);return s},D=function(e){for(var t,r=e.length,n=0,s="",i=[],o={},a=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=e.charAt(n)))t+=e.charAt(++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:E.test(e.slice(n+1))&&(n+=2,c=!0),s+=t,u++;continue;case">"===t&&c:if(""===l||y(o,l))throw new SyntaxError("Invalid capture group name");o[l]=!0,i.push([l,u]),c=!1,l="";continue}c?l+=t:s+=t}return[s,i]};if(i("RegExp",m)){for(var I=function(e,t){var r,n,s=this instanceof I,i=p(e),o=void 0===t,a=[],c=e;if(!s&&i&&o&&e.constructor===I)return e;if((i||e instanceof I)&&(e=e.source,o&&(t="flags"in c?c.flags:h.call(c))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),c=e,i=t=w&&"dotAll"in _&&(r=!!t&&-1N;)!function(t){t in I||o(I,t,{configurable:!0,get:function(){return T[t]},set:function(e){T[t]=e}})}(C[N++]);(k.constructor=I).prototype=k,d(s,"RegExp",I)}g("RegExp")},{"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-regexp":164,"../internals/object-define-property":179,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/regexp-sticky-helpers":201,"../internals/regexp-unsupported-dot-all":202,"../internals/regexp-unsupported-ncg":203,"../internals/set-species":207,"../internals/to-string":228,"../internals/well-known-symbol":237}],261:[function(e,t,r){"use strict";var n=e("../internals/export"),e=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})},{"../internals/export":139,"../internals/regexp-exec":199}],262:[function(e,t,r){"use strict";var n=e("../internals/redefine"),s=e("../internals/an-object"),i=e("../internals/to-string"),o=e("../internals/fails"),a=e("../internals/regexp-flags"),c="toString",u=RegExp.prototype,l=u[c],e=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),o=l.name!=c;(e||o)&&n(RegExp.prototype,c,function(){var e=s(this),t=i(e.source),r=e.flags;return"/"+t+"/"+i(void 0===r&&e instanceof RegExp&&!("flags"in u)?a.call(e):r)},{unsafe:!0})},{"../internals/an-object":94,"../internals/fails":140,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/to-string":228}],263:[function(e,t,r){"use strict";var n=e("../internals/export"),s=e("../internals/not-a-regexp"),i=e("../internals/require-object-coercible"),o=e("../internals/to-string");n({target:"String",proto:!0,forced:!e("../internals/correct-is-regexp-logic")("includes")},{includes:function(e){return!!~o(i(this)).indexOf(o(s(e)),1=t.length?{value:void 0,done:!0}:(r=n(t,r),e.index+=r.length,{value:r,done:!1})})},{"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/string-multibyte":213,"../internals/to-string":228}],265:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),u=e("../internals/an-object"),l=e("../internals/to-length"),p=e("../internals/to-string"),s=e("../internals/require-object-coercible"),f=e("../internals/advance-string-index"),h=e("../internals/regexp-exec-abstract");n("match",function(n,a,c){return[function(e){var t=s(this),r=null==e?void 0:e[n];return void 0!==r?r.call(e,t):new RegExp(e)[n](p(t))},function(e){var t=u(this),r=p(e),e=c(a,t,r);if(e.done)return e.value;if(!t.global)return h(t,r);for(var n=t.unicode,s=[],i=t.lastIndex=0;null!==(o=h(t,r));){var o=p(o[0]);""===(s[i]=o)&&(t.lastIndex=f(r,l(t.lastIndex),n)),i++}return 0===i?null:s}]})},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-length":221,"../internals/to-string":228}],266:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/fails"),x=e("../internals/an-object"),T=e("../internals/to-integer"),k=e("../internals/to-length"),E=e("../internals/to-string"),i=e("../internals/require-object-coercible"),_=e("../internals/advance-string-index"),S=e("../internals/get-substitution"),O=e("../internals/regexp-exec-abstract"),o=e("../internals/well-known-symbol")("replace"),A=Math.max,D=Math.min,e="$0"==="a".replace(/./,"$0"),a=!!/./[o]&&""===/./[o]("a","$0");n("replace",function(e,v,w){var j=a?"$":"$0";return[function(e,t){var r=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,r,t):v.call(E(r),e,t)},function(e,t){var r=x(this),n=E(e);if("string"==typeof t&&-1===t.indexOf(j)&&-1===t.indexOf("$<")){e=w(v,r,n,t);if(e.done)return e.value}var s="function"==typeof t;s||(t=E(t));var i,o=r.global;o&&(i=r.unicode,r.lastIndex=0);for(var a=[];;){if(null===(f=O(r,n)))break;if(a.push(f),!o)break;""===E(f[0])&&(r.lastIndex=_(n,k(r.lastIndex),i))}for(var c,u="",l=0,p=0;p")})||!e||a)},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fails":140,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/get-substitution":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-integer":220,"../internals/to-length":221,"../internals/to-string":228,"../internals/well-known-symbol":237}],267:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),a=e("../internals/require-object-coercible"),c=e("../internals/same-value"),u=e("../internals/to-string"),l=e("../internals/regexp-exec-abstract");n("search",function(n,s,i){return[function(e){var t=a(this),r=null==e?void 0:e[n];return void 0!==r?r.call(e,t):new RegExp(e)[n](u(t))},function(e){var t=o(this),r=u(e),e=i(s,t,r);if(e.done)return e.value;e=t.lastIndex;c(e,0)||(t.lastIndex=0);r=l(t,r);return c(t.lastIndex,e)||(t.lastIndex=e),null===r?-1:r.index}]})},{"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/same-value":205,"../internals/to-string":228}],268:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),l=e("../internals/is-regexp"),b=e("../internals/an-object"),p=e("../internals/require-object-coercible"),g=e("../internals/species-constructor"),v=e("../internals/advance-string-index"),w=e("../internals/to-length"),j=e("../internals/to-string"),x=e("../internals/regexp-exec-abstract"),f=e("../internals/regexp-exec"),s=e("../internals/regexp-sticky-helpers"),e=e("../internals/fails"),T=s.UNSUPPORTED_Y,h=[].push,k=Math.min;n("split",function(s,d,m){var y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=j(p(this)),n=void 0===t?4294967295:t>>>0;if(0==n)return[];if(void 0===e)return[r];if(!l(e))return d.call(r,e,n);for(var s,i,o,a=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,u=new RegExp(e.source,t+"g");(s=f.call(u,r))&&!(c<(i=u.lastIndex)&&(a.push(r.slice(c,s.index)),1=n));)u.lastIndex===s.index&&u.lastIndex++;return c===r.length?!o&&u.test("")||a.push(""):a.push(r.slice(c)),a.length>n?a.slice(0,n):a}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:d.call(this,e,t)}:d;return[function(e,t){var r=p(this),n=null==e?void 0:e[s];return void 0!==n?n.call(e,r,t):y.call(j(r),e,t)},function(e,t){var r=b(this),n=j(e),s=m(y,r,n,t,y!==d);if(s.done)return s.value;var e=g(r,RegExp),i=r.unicode,s=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(T?"g":"y"),o=new e(T?"^(?:"+r.source+")":r,s),a=void 0===t?4294967295:t>>>0;if(0==a)return[];if(0===n.length)return null===x(o,n)?[n]:[];for(var c=0,u=0,l=[];u]/;t.exports=function(e){var t,r=""+e,e=o.exec(r);if(!e)return r;var n="",s=0,i=0;for(s=e.index;sr&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.once=function(e,t){if(!c(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,s,i;if(!c(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,n=-1,r===t||c(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(u(r)){for(i=s;0>1,l=-7,p=r?s-1:0,f=r?-1:1,r=e[t+p];for(p+=f,i=r&(1<<-l)-1,r>>=-l,l+=a;0>=-l,l+=n;0>1,p=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,h=n?1:-1,i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+l?p/n:p*Math.pow(2,1-l))*n&&(o++,n/=2),u<=o+l?(a=0,o=u):1<=o+l?(a=(t*n-1)*Math.pow(2,s),o+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,s),o=0));8<=s;e[r+f]=255&a,f+=h,a/=256,s-=8);for(o=o<>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)}function n(e){var t=[0,2,1][e.length%3],e=e.charCodeAt(0)<<16|(1>>18),u.charAt(e>>>12&63),2<=t?"=":u.charAt(e>>>6&63),1<=t?"=":u.charAt(63&e)].join("")}function s(e){return h(f(String(e)))}function c(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")}function i(e,t){return t?c(s(e)):s(e)}var e,o=(t=t||{}).Base64,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r>>18)+u.charAt(i>>>12&63)+(void 0!==o?u.charAt(i>>>6&63):"=")+(void 0!==a?u.charAt(63&i):"=")}return t?c(r):r});function d(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}}function m(e){var t=e.length,r=t%4,e=(0>>16),l(e>>>8&255),l(255&e)]).length-=[0,0,2,1][r],e.join("")}function y(e){return x(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))}function b(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")}function g(e){return e=b(e),j(x(e))}var v,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,j=function(e){return e.replace(w,d)},x=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,m)};t.Uint8Array&&(v=function(e){return Uint8Array.from(y(b(e)),function(e){return e.charCodeAt(0)})});var T;return t.Base64={VERSION:"2.6.4",atob:y,btoa:h,fromBase64:g,toBase64:i,utob:f,encode:i,encodeURI:function(e){return i(e,!0)},btou:j,decode:g,noConflict:function(){var e=t.Base64;return t.Base64=o,e},fromUint8Array:e,toUint8Array:v},"function"==typeof Object.defineProperty&&(T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return g(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(e){return i(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return i(this,!0)}))}),t.Meteor&&(Base64=t.Base64),void 0!==k&&k.exports&&(k.exports.Base64=t.Base64),{Base64:t.Base64}},"object"==typeof n&&void 0!==k?k.exports=t(e):t(e)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],315:[function(e,t,r){"use strict";t.exports=function(r,n,s){if(!r)throw new TypeError("argument dest is required");if(!n)throw new TypeError("argument src is required");void 0===s&&(s=!0);return Object.getOwnPropertyNames(n).forEach(function(e){var t;!s&&i.call(r,e)||(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t))}),r};var i=Object.prototype.hasOwnProperty},{}],316:[function(e,t,r){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=b-1,v=Math.floor,w=String.fromCharCode;function j(e){throw new RangeError(p[e])}function h(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function d(e,t){var r=e.split("@"),n="";return 1>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,r){var n=0;for(e=r?v(e/a):e>>1,e+=v(e/t);f*g>>1v((y-l)/i))&&j("overflow"),l+=a*i,!(a<(a=o<=f?1:f+g<=o?g:o-f));o+=b)i>v(y/(a=b-a))&&j("overflow"),i*=a;f=k(l-s,t=c.length+1,0==s),v(l/t)>y-p&&j("overflow"),p+=v(l/t),l%=t,c.splice(l++,0,p)}return m(c)}function _(e){for(var t,r,n,s,i,o,a,c,u,l,p=[],f=(e=x(e)).length,h=128,d=72,m=t=0;mv((y-t)/(c=r+1))&&j("overflow"),t+=(s-h)*c,h=s,m=0;my&&j("overflow"),a==h){for(i=t,o=b;!(i<(u=o<=d?1:d+g<=o?g:o-d));o+=b)p.push(w(T(u+(l=i-u)%(u=b-u),0))),i=v(l/u);p.push(w(T(i,0))),d=k(t,c,r==n),t=0,++r}++t,++h}return p.join("")}if(s={version:"1.4.1",ucs2:{decode:x,encode:m},decode:E,encode:_,toASCII:function(e){return d(e,function(e){return u.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return d(e,function(e){return c.test(e)?E(e.slice(4).toLowerCase()):e})}},0,t&&r)if(O.exports==t)r.exports=s;else for(i in s)s.hasOwnProperty(i)&&(t[i]=s[i]);else e.punycode=s}(this)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],326:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var i=/\+/g;e=e.split(t=t||"&");t=1e3;n&&"number"==typeof n.maxKeys&&(t=n.maxKeys);var o=e.length;0t.highWaterMark&&(t.highWaterMark=(h<=(r=e)?r=h:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function v(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m.nextTick(w,e):w(e))}function w(e){g("emit readable"),e.emit("readable"),E(e)}function j(e,t){t.readingMore||(t.readingMore=!0,m.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(o===i.length?s+=i:s+=i.slice(0,e),0===(e-=o)){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=i.slice(o);break}++n}return t.length-=n,s}:function(e,t){var r=l.allocUnsafe(e),n=t.head,s=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),0===(e-=o)){o===i.length?(++s,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=i.slice(o);break}++s}return t.length-=s,r})(e,t);return n}(e,t.buffer,t.decoder),r);var r}function S(e){var t=e._readableState;if(0=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?S:v)(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&S(this),null;var n=t.needReadable;return g("need readable",n),(0===t.length||t.length-e>>0),s=this.head,i=0;s;)t=s.data,r=i,t.copy(n,r),i+=s.data.length,s=s.next;return n},s),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":343,util:84}],336:[function(e,t,r){"use strict";var i=e("process-nextick-args");function o(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return n||s?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i.nextTick(o,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":323}],337:[function(e,t,r){t.exports=e("events").EventEmitter},{events:301}],338:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":339}],339:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":330,"./lib/_stream_passthrough.js":331,"./lib/_stream_readable.js":332,"./lib/_stream_transform.js":333,"./lib/_stream_writable.js":334}],340:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":339}],341:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":334}],342:[function(e,t,r){t=function(o){"use strict";var c,e=Object.prototype,u=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",s=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function a(e,t,r,n){var s,i,o,a,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new E(n||[]);return t._invoke=(s=e,i=r,o=n,a=p,function(e,t){if(a===h)throw new Error("Generator is already running");if(a===d){if("throw"===e)throw t;return S()}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r){var n=function e(t,r){var n=t.iterator[r.method];if(n===c){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=c,e(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=l(n,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m;{if(!n.done)return n;r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=c)}r.delegate=null;return m}(r,o);if(n){if(n===m)continue;return n}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(a===p)throw a=d,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a=h;n=l(s,i,o);if("normal"===n.type){if(a=o.done?d:f,n.arg!==m)return{value:n.arg,done:o.done}}else"throw"===n.type&&(a=d,o.method="throw",o.arg=n.arg)}}),t}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=a;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",m={};function y(){}function b(){}function g(){}var v={};i(v,n,function(){return this});t=Object.getPrototypeOf,t=t&&t(t(_([])));t&&t!==e&&u.call(t,n)&&(v=t);var w=g.prototype=y.prototype=Object.create(v);function j(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function x(o,a){var t;this._invoke=function(r,n){function e(){return new a(function(e,t){!function t(e,r,n,s){e=l(o[e],o,r);if("throw"!==e.type){var i=e.arg;return(r=i.value)&&"object"==typeof r&&u.call(r,"__await")?a.resolve(r.__await).then(function(e){t("next",e,n,s)},function(e){t("throw",e,n,s)}):a.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,s)})}s(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,e=function e(){for(;++r"===i?(E(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=T.TEXT):(v(i)&&(t.state=T.SGML_DECL_QUOTED),t.sgmlDecl+=i);continue;case T.SGML_DECL_QUOTED:i===t.q&&(t.state=T.SGML_DECL,t.q=""),t.sgmlDecl+=i;continue;case T.DOCTYPE:">"===i?(t.state=T.TEXT,E(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=i,"["===i?t.state=T.DOCTYPE_DTD:v(i)&&(t.state=T.DOCTYPE_QUOTED,t.q=i));continue;case T.DOCTYPE_QUOTED:t.doctype+=i,i===t.q&&(t.q="",t.state=T.DOCTYPE);continue;case T.DOCTYPE_DTD:t.doctype+=i,"]"===i?t.state=T.DOCTYPE:v(i)&&(t.state=T.DOCTYPE_DTD_QUOTED,t.q=i);continue;case T.DOCTYPE_DTD_QUOTED:t.doctype+=i,i===t.q&&(t.state=T.DOCTYPE_DTD,t.q="");continue;case T.COMMENT:"-"===i?t.state=T.COMMENT_ENDING:t.comment+=i;continue;case T.COMMENT_ENDING:"-"===i?(t.state=T.COMMENT_ENDED,t.comment=S(t.opt,t.comment),t.comment&&E(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+i,t.state=T.COMMENT);continue;case T.COMMENT_ENDED:">"!==i?(D(t,"Malformed comment"),t.comment+="--"+i,t.state=T.COMMENT):t.state=T.TEXT;continue;case T.CDATA:"]"===i?t.state=T.CDATA_ENDING:t.cdata+=i;continue;case T.CDATA_ENDING:"]"===i?t.state=T.CDATA_ENDING_2:(t.cdata+="]"+i,t.state=T.CDATA);continue;case T.CDATA_ENDING_2:">"===i?(t.cdata&&E(t,"oncdata",t.cdata),E(t,"onclosecdata"),t.cdata="",t.state=T.TEXT):"]"===i?t.cdata+="]":(t.cdata+="]]"+i,t.state=T.CDATA);continue;case T.PROC_INST:"?"===i?t.state=T.PROC_INST_ENDING:g(i)?t.state=T.PROC_INST_BODY:t.procInstName+=i;continue;case T.PROC_INST_BODY:if(!t.procInstBody&&g(i))continue;"?"===i?t.state=T.PROC_INST_ENDING:t.procInstBody+=i;continue;case T.PROC_INST_ENDING:">"===i?(E(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=T.TEXT):(t.procInstBody+="?"+i,t.state=T.PROC_INST_BODY);continue;case T.OPEN_TAG:w(m,i)?t.tagName+=i:(function(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns);e.attribList.length=0,E(e,"onopentagstart",r)}(t),">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:(g(i)||D(t,"Invalid character in tag name"),t.state=T.ATTRIB));continue;case T.OPEN_TAG_SLASH:">"===i?(N(t,!0),R(t)):(D(t,"Forward-slash in opening tag not followed by >"),t.state=T.ATTRIB);continue;case T.ATTRIB:if(g(i))continue;">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:w(d,i)?(t.attribName=i,t.attribValue="",t.state=T.ATTRIB_NAME):D(t,"Invalid attribute name");continue;case T.ATTRIB_NAME:"="===i?t.state=T.ATTRIB_VALUE:">"===i?(D(t,"Attribute without value"),t.attribValue=t.attribName,C(t),N(t)):g(i)?t.state=T.ATTRIB_NAME_SAW_WHITE:w(m,i)?t.attribName+=i:D(t,"Invalid attribute name");continue;case T.ATTRIB_NAME_SAW_WHITE:if("="===i)t.state=T.ATTRIB_VALUE;else{if(g(i))continue;D(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",E(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===i?N(t):w(d,i)?(t.attribName=i,t.state=T.ATTRIB_NAME):(D(t,"Invalid attribute name"),t.state=T.ATTRIB)}continue;case T.ATTRIB_VALUE:if(g(i))continue;v(i)?(t.q=i,t.state=T.ATTRIB_VALUE_QUOTED):(D(t,"Unquoted attribute value"),t.state=T.ATTRIB_VALUE_UNQUOTED,t.attribValue=i);continue;case T.ATTRIB_VALUE_QUOTED:if(i!==t.q){"&"===i?t.state=T.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=i;continue}C(t),t.q="",t.state=T.ATTRIB_VALUE_CLOSED;continue;case T.ATTRIB_VALUE_CLOSED:g(i)?t.state=T.ATTRIB:">"===i?N(t):"/"===i?t.state=T.OPEN_TAG_SLASH:w(d,i)?(D(t,"No whitespace between attributes"),t.attribName=i,t.attribValue="",t.state=T.ATTRIB_NAME):D(t,"Invalid attribute name");continue;case T.ATTRIB_VALUE_UNQUOTED:if(!function(e){return">"===e||g(e)}(i)){"&"===i?t.state=T.ATTRIB_VALUE_ENTITY_U:t.attribValue+=i;continue}C(t),">"===i?N(t):t.state=T.ATTRIB;continue;case T.CLOSE_TAG:if(t.tagName)">"===i?R(t):w(m,i)?t.tagName+=i:t.script?(t.script+=""===i?R(t):D(t,"Invalid characters in closing tag");continue;case T.TEXT_ENTITY:case T.ATTRIB_VALUE_ENTITY_Q:case T.ATTRIB_VALUE_ENTITY_U:switch(t.state){case T.TEXT_ENTITY:r=T.TEXT,n="textNode";break;case T.ATTRIB_VALUE_ENTITY_Q:r=T.ATTRIB_VALUE_QUOTED,n="attribValue";break;case T.ATTRIB_VALUE_ENTITY_U:r=T.ATTRIB_VALUE_UNQUOTED,n="attribValue"}";"===i?(t[n]+=function(e){var t,r=e.entity,n=r.toLowerCase(),s="";if(e.ENTITIES[r])return e.ENTITIES[r];if(e.ENTITIES[n])return e.ENTITIES[n];"#"===(r=n).charAt(0)&&(s="x"===r.charAt(1)?(r=r.slice(2),(t=parseInt(r,16)).toString(16)):(r=r.slice(1),(t=parseInt(r,10)).toString(10)));if(r=r.replace(/^0+/,""),isNaN(t)||s.toLowerCase()!==r)return D(e,"Invalid character entity"),"&"+e.entity+";";return String.fromCodePoint(t)}(t),t.entity="",t.state=r):w(t.entity.length?b:y,i)?t.entity+=i:(D(t,"Invalid character in entity name"),t[n]+="&"+t.entity+i,t.entity="",t.state=r);continue;default:throw new Error(t,"Unknown state: "+t.state)}}t.position>=t.bufferCheckPosition&&function(e){for(var t=Math.max(a.MAX_BUFFER_LENGTH,10),r=0,n=0,s=c.length;n",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach(function(e){var t=a.ENTITIES[e],t="number"==typeof t?String.fromCharCode(t):t;a.ENTITIES[e]=t}),a.STATE)a.STATE[a.STATE[e]]=e;function k(e,t,r){e[t]&&e[t](r)}function E(e,t,r){e.textNode&&_(e),k(e,t,r)}function _(e){e.textNode=S(e.opt,e.textNode),e.textNode&&k(e,"ontext",e.textNode),e.textNode=""}function S(e,t){return e.trim&&(t=t.trim()),t=e.normalize?t.replace(/\s+/g," "):t}function O(e,t){return _(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,k(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&D(e,"Unclosed root tag"),e.state!==T.BEGIN&&e.state!==T.BEGIN_WHITESPACE&&e.state!==T.TEXT&&O(e,"Unexpected end"),_(e),e.c="",e.closed=!0,k(e,"onend"),s.call(e,e.strict,e.opt),e}function D(e,t){if("object"!=typeof e||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function I(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],r=r[1];return t&&"xmlns"===e&&(n="xmlns",r=""),{prefix:n,local:r}}function C(e){var t,r,n;e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)||(e.opt.xmlns?(n=(r=I(e.attribName,!0)).prefix,t=r.local,"xmlns"===n&&("xml"===t&&e.attribValue!==p?D(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue):"xmlns"===t&&e.attribValue!==f?D(e,"xmlns: prefix must be bound to "+f+"\nActual: "+e.attribValue):(r=e.tag,n=e.tags[e.tags.length-1]||e,r.ns===n.ns&&(r.ns=Object.create(n.ns)),r.ns[t]=e.attribValue)),e.attribList.push([e.attribName,e.attribValue])):(e.tag.attributes[e.attribName]=e.attribValue,E(e,"onattribute",{name:e.attribName,value:e.attribValue}))),e.attribName=e.attribValue=""}function N(t,e){if(t.opt.xmlns){var r=t.tag,n=I(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(D(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);n=t.tags[t.tags.length-1]||t;r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){E(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var s=0,i=t.attribList.length;s",r.tagName="",void(r.state=T.SCRIPT);E(r,"onscript",r.script),r.script=""}for(var e=r.tags.length,t=r.tagName,n=t=!r.strict?t[r.looseCase]():t;e--;){if(r.tags[e].name===n)break;D(r,"Unexpected close tag")}if(e<0)return D(r,"Unmatched closing tag: "+r.tagName),r.textNode+="",void(r.state=T.TEXT);r.tagName=t;for(var s=r.tags.length;s-- >e;){var i=r.tag=r.tags.pop();r.tagName=r.tag.name,E(r,"onclosetag",r.tagName);var o,a={};for(o in i.ns)a[o]=i.ns[o];var c=r.tags[r.tags.length-1]||r;r.opt.xmlns&&i.ns!==c.ns&&Object.keys(i.ns).forEach(function(e){var t=i.ns[e];E(r,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0,r.state=T.TEXT}function M(e,t){"<"===t?(e.state=T.OPEN_WAKA,e.startTagPosition=e.position):g(t)||(D(e,"Non-whitespace before first tag."),e.textNode=t,e.state=T.TEXT)}function P(e,t){var r="";return r=t>10),s%1024+56320)),(t+1===r||16384>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e){var t,r=this.lastTotal-this.lastNeed,n=(n=this,128!=(192&(t=e)[0])?(n.lastNeed=0,"\ufffd"):1")||0<=e.indexOf("<"))},h=function(e){return""},t=function(e){return e.replace("]]>","]]]]>")},i.Builder=(e.prototype.buildObject=function(e){var c,t,u,l=this.options.attrkey,p=this.options.charkey;return 1===Object.keys(e).length&&this.options.rootName===s[.2].rootName?e=e[t=Object.keys(e)[0]]:t=this.options.rootName,u=this,c=function(e,t){var r,n,s,i,o,a;if("object"!=typeof t)u.options.cdata&&f(t)?e.raw(h(t)):e.txt(t);else if(Array.isArray(t)){for(i in t)if(d.call(t,i))for(o in n=t[i])s=n[o],e=c(e.ele(o),s).up()}else for(o in t)if(d.call(t,o))if(n=t[o],o===l){if("object"==typeof n)for(r in n)a=n[r],e=e.att(r,a)}else if(o===p)e=u.options.cdata&&f(n)?e.raw(h(n)):e.txt(n);else if(Array.isArray(n))for(i in n)d.call(n,i)&&(e=("string"==typeof(s=n[i])?u.options.cdata&&f(s)?e.ele(o).raw(h(s)):e.ele(o,s):c(e.ele(o),s)).up());else e="object"==typeof n?c(e.ele(o),n).up():"string"==typeof n&&u.options.cdata&&f(n)?e.ele(o).raw(h(n)).up():(null==n&&(n=""),e.ele(o,n.toString()).up());return e},t=r.create(t,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(t,e).end(this.options.renderOpts)},e)}.call(this)},{"./defaults":355,xmlbuilder:391}],355:[function(e,t,r){!function(){r.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}.call(this)},{}],356:[function(a,e,u){!function(){"use strict";function s(e,t){return function(){return e.apply(t,arguments)}}var e,i,t,f,h,o,c,n,d={}.hasOwnProperty;function r(e){var t,r,n;if(this.parseStringPromise=s(this.parseStringPromise,this),this.parseString=s(this.parseString,this),this.reset=s(this.reset,this),this.assignOrPush=s(this.assignOrPush,this),this.processAsync=s(this.processAsync,this),!(this instanceof u.Parser))return new u.Parser(e);for(t in this.options={},r=i[.2])d.call(r,t)&&(n=r[t],this.options[t]=n);for(t in e)d.call(e,t)&&(n=e[t],this.options[t]=n);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(o.normalize)),this.reset()}c=a("sax"),t=a("events"),e=a("./bom"),o=a("./processors"),n=a("timers").setImmediate,i=a("./defaults").defaults,f=function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length},h=function(e,t,r){for(var n=0,s=e.length;n":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e)}.call(this)},{"./NodeType":360,"./XMLNode":382}],364:[function(t,i,e){!function(){var r,e,s={}.hasOwnProperty;function n(e,t){if(n.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=r.CData,this.value=this.stringify.cdata(t)}r=t("./NodeType"),e=t("./XMLCharacterData"),i.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},n)}.call(this)},{"./NodeType":360,"./XMLCharacterData":365}],365:[function(r,n,e){!function(){var e,s={}.hasOwnProperty;function t(e){t.__super__.constructor.call(this,e),this.value=""}e=r("./XMLNode"),n.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t)}.call(this)},{"./XMLNode":382}],366:[function(t,i,e){!function(){var r,e,s={}.hasOwnProperty;function n(e,t){if(n.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=r.Comment,this.value=this.stringify.comment(t)}r=t("./NodeType"),e=t("./XMLCharacterData"),i.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},n)}.call(this)},{"./NodeType":360,"./XMLCharacterData":365}],367:[function(n,s,e){!function(){var e,t;function r(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}e=n("./XMLDOMErrorHandler"),t=n("./XMLDOMStringList"),s.exports=(Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new t(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},r.prototype.canSetParameter=function(e,t){return!0},r.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},r)}.call(this)},{"./XMLDOMErrorHandler":368,"./XMLDOMStringList":370}],368:[function(e,t,r){!function(){function e(){}t.exports=(e.prototype.handleError=function(e){throw new Error(e)},e)}.call(this)},{}],369:[function(e,t,r){!function(){function e(){}t.exports=(e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e)}.call(this)},{}],370:[function(e,t,r){!function(){function e(e){this.arr=e||[]}t.exports=(Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e)}.call(this)},{}],371:[function(t,r,e){!function(){var o,e,s={}.hasOwnProperty;function a(e,t,r,n,s,i){if(a.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(t));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(t));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(t));if(!(s=0!==s.indexOf("#")?"#"+s:s).match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(i&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.name(t),this.type=o.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(n),i&&(this.defaultValue=this.stringify.dtdAttDefault(i)),this.defaultValueType=s}e=t("./XMLNode"),o=t("./NodeType"),r.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(a,e),a.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},a)}.call(this)},{"./NodeType":360,"./XMLNode":382}],372:[function(t,r,e){!function(){var n,e,s={}.hasOwnProperty;function i(e,t,r){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());r=r||"(#PCDATA)",Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(t),this.type=n.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}e=t("./XMLNode"),n=t("./NodeType"),r.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(i,e),i.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},i)}.call(this)},{"./NodeType":360,"./XMLNode":382}],373:[function(t,r,e){!function(){var s,e,i,o={}.hasOwnProperty;function a(e,t,r,n){if(a.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==n)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!t,this.name=this.stringify.name(r),this.type=s.EntityDeclaration,i(n)){if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID)),null!=n.nData&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(n),this.internal=!0}i=t("./Utility").isObject,e=t("./XMLNode"),s=t("./NodeType"),r.exports=(function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(a,e),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},a)}.call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],374:[function(t,r,e){!function(){var n,e,s={}.hasOwnProperty;function i(e,t,r){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD notation name. "+this.debugInfo(t));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));this.name=this.stringify.name(t),this.type=n.NotationDeclaration,null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}e=t("./XMLNode"),n=t("./NodeType"),r.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(i,e),Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},i)}.call(this)},{"./NodeType":360,"./XMLNode":382}],375:[function(t,r,e){!function(){var s,e,i,o={}.hasOwnProperty;function a(e,t,r,n){a.__super__.constructor.call(this,e),i(t)&&(t=(e=t).version,r=e.encoding,n=e.standalone),t=t||"1.0",this.type=s.Declaration,this.version=this.stringify.xmlVersion(t),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=n&&(this.standalone=this.stringify.xmlStandalone(n))}i=t("./Utility").isObject,e=t("./XMLNode"),s=t("./NodeType"),r.exports=(function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(a,e),a.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},a)}.call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],376:[function(t,p,e){!function(){var c,i,r,n,s,o,e,u,a={}.hasOwnProperty;function l(e,t,r){var n,s,i,o,a;if(l.__super__.constructor.call(this,e),this.type=c.DocType,e.children)for(s=0,i=(o=e.children).length;s":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.InsideTag}else this.writerOptions.state=i.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),r+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(r,this.currentLevel),e.isOpen=!0}},k.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=i.CloseTag,t=e.type===u.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.None,this.onData(t,this.currentLevel),e.isClosed=!0},k.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},k.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},k.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},k.prototype.ele=function(){return this.element.apply(this,arguments)},k.prototype.nod=function(e,t,r){return this.node(e,t,r)},k.prototype.txt=function(e){return this.text(e)},k.prototype.dat=function(e){return this.cdata(e)},k.prototype.com=function(e){return this.comment(e)},k.prototype.ins=function(e,t){return this.instruction(e,t)},k.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},k.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)},k.prototype.e=function(e,t,r){return this.element(e,t,r)},k.prototype.n=function(e,t,r){return this.node(e,t,r)},k.prototype.t=function(e){return this.text(e)},k.prototype.d=function(e){return this.cdata(e)},k.prototype.c=function(e){return this.comment(e)},k.prototype.r=function(e){return this.raw(e)},k.prototype.i=function(e,t){return this.instruction(e,t)},k.prototype.att=function(){return(this.currentNode&&this.currentNode.type===u.DocType?this.attList:this.attribute).apply(this,arguments)},k.prototype.a=function(){return(this.currentNode&&this.currentNode.type===u.DocType?this.attList:this.attribute).apply(this,arguments)},k.prototype.ent=function(e,t){return this.entity(e,t)},k.prototype.pent=function(e,t){return this.pEntity(e,t)},k.prototype.not=function(e,t){return this.notation(e,t)},k)}.call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLAttribute":363,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDocument":377,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLStringWriter":387,"./XMLStringifier":388,"./XMLText":389}],379:[function(n,i,e){!function(){var t,e,s={}.hasOwnProperty;function r(e){r.__super__.constructor.call(this,e),this.type=t.Dummy}e=n("./XMLNode"),t=n("./NodeType"),i.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(e){return""},r)}.call(this)},{"./NodeType":360,"./XMLNode":382}],380:[function(r,n,e){!function(){var a,s,e,i,o,c,t,u={}.hasOwnProperty;function l(e,t,r){var n,s,i,o;if(l.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(t),this.type=a.Element,this.attribs={},(this.schemaTypeInfo=null)!=r&&this.attribute(r),e.type===a.Document&&(this.isRoot=!0,(this.documentObject=e).rootObject=this,e.children))for(s=0,i=(o=e.children).length;s":null!=(t=this.parent)&&t.name?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},g.prototype.ele=function(e,t,r){return this.element(e,t,r)},g.prototype.nod=function(e,t,r){return this.node(e,t,r)},g.prototype.txt=function(e){return this.text(e)},g.prototype.dat=function(e){return this.cdata(e)},g.prototype.com=function(e){return this.comment(e)},g.prototype.ins=function(e,t){return this.instruction(e,t)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},g.prototype.e=function(e,t,r){return this.element(e,t,r)},g.prototype.n=function(e,t,r){return this.node(e,t,r)},g.prototype.t=function(e){return this.text(e)},g.prototype.d=function(e){return this.cdata(e)},g.prototype.c=function(e){return this.comment(e)},g.prototype.r=function(e){return this.raw(e)},g.prototype.i=function(e,t){return this.instruction(e,t)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(e){return this.importDocument(e)},g.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return 0!==this.children.length},g.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(e,t){return!0},g.prototype.hasAttributes=function(){return 0!==this.attribs.length},g.prototype.compareDocumentPosition=function(e){var t;return this===e?0:this.document()!==e.document()?(t=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?t|=r.Preceding:t|=r.Following,t):this.isAncestor(e)?r.Contains|r.Preceding:this.isDescendant(e)?r.Contains|r.Following:this.isPreceding(e)?r.Preceding:r.Following},g.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:n<=r;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},g.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},g.prototype.isDescendant=function(e){for(var t,r=this.children,n=0,s=r.length;n"),this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},n.prototype.element=function(e,t,r){var n,s,i,o,a,c,u,l,p;for(u in this.openNode(e,t,r=r||0),t.state=h.OpenTag,this.stream.write(this.indent(e,t,r)+"<"+e.name),l=e.attribs)d.call(l,u)&&(n=l[u],this.attribute(n,t,r));if(o=0===(i=e.children.length)?null:e.children[0],0===i||e.children.every(function(e){return(e.type===f.Text||e.type===f.Raw)&&""===e.value}))t.allowEmpty?(this.stream.write(">"),t.state=h.CloseTag,this.stream.write("")):(t.state=h.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==i||o.type!==f.Text&&o.type!==f.Raw||null==o.value){for(this.stream.write(">"+this.endline(e,t,r)),t.state=h.InsideTag,a=0,c=(p=e.children).length;a")}else this.stream.write(">"),t.state=h.InsideTag,t.suppressPrettyCount++,this.writeChildNode(o,t,r+1),t.suppressPrettyCount--,t.state=h.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},n.prototype.processingInstruction=function(e,t,r){return this.stream.write(n.__super__.processingInstruction.call(this,e,t,r))},n.prototype.raw=function(e,t,r){return this.stream.write(n.__super__.raw.call(this,e,t,r))},n.prototype.text=function(e,t,r){return this.stream.write(n.__super__.text.call(this,e,t,r))},n.prototype.dtdAttList=function(e,t,r){return this.stream.write(n.__super__.dtdAttList.call(this,e,t,r))},n.prototype.dtdElement=function(e,t,r){return this.stream.write(n.__super__.dtdElement.call(this,e,t,r))},n.prototype.dtdEntity=function(e,t,r){return this.stream.write(n.__super__.dtdEntity.call(this,e,t,r))},n.prototype.dtdNotation=function(e,t,r){return this.stream.write(n.__super__.dtdNotation.call(this,e,t,r))},n)}.call(this)},{"./NodeType":360,"./WriterState":362,"./XMLWriterBase":390}],387:[function(r,n,e){!function(){var e,s={}.hasOwnProperty;function t(e){t.__super__.constructor.call(this,e)}e=r("./XMLWriterBase"),n.exports=(function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.document=function(e,t){var r,n,s,i,o;for(t=this.filterOptions(t),i="",n=0,s=(o=e.children).length;n","]]]]>"),this.assertLegalChar(e))},e.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(this.options.noValidation)return e;if("1.0"===this.options.version){if(t=e.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index)}else if("1.1"===this.options.version&&(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.assertLegalName=function(e){if(this.options.noValidation)return e;if(this.assertLegalChar(e),!e.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return e},e.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.comment=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"\x3c!-- ",t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=" --\x3e"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.declaration=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"",n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.docType=function(e,t,r){var n,s,i,o,a;if(this.openNode(e,t,r=r||0),t.state=g.OpenTag,o=this.indent(e,t,r),o+="",o+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),o},e.prototype.element=function(e,t,r){var n,s,i,o,a,c,u,l,p,f,h,d,m=!1,y="";for(p in this.openNode(e,t,r=r||0),t.state=g.OpenTag,y+=this.indent(e,t,r)+"<"+e.name,f=e.attribs)v.call(f,p)&&(n=f[p],y+=this.attribute(n,t,r));if(o=0===(i=e.children.length)?null:e.children[0],0===i||e.children.every(function(e){return(e.type===b.Text||e.type===b.Raw)&&""===e.value}))t.allowEmpty?(y+=">",t.state=g.CloseTag,y+=""+this.endline(e,t,r)):(t.state=g.CloseTag,y+=t.spaceBeforeSlash+"/>"+this.endline(e,t,r));else if(!t.pretty||1!==i||o.type!==b.Text&&o.type!==b.Raw||null==o.value){if(t.dontPrettyTextNodes)for(a=0,u=(h=e.children).length;a"+this.endline(e,t,r),t.state=g.InsideTag,c=0,l=(d=e.children).length;c",m&&t.suppressPrettyCount--,y+=this.endline(e,t,r),t.state=g.None}else y+=">",t.state=g.InsideTag,t.suppressPrettyCount++,m=!0,y+=this.writeChildNode(o,t,r+1),t.suppressPrettyCount--,m=!1,t.state=g.CloseTag,y+=""+this.endline(e,t,r);return this.closeNode(e,t,r),y},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case b.CData:return this.cdata(e,t,r);case b.Comment:return this.comment(e,t,r);case b.Element:return this.element(e,t,r);case b.Raw:return this.raw(e,t,r);case b.Text:return this.text(e,t,r);case b.ProcessingInstruction:return this.processingInstruction(e,t,r);case b.Dummy:return"";case b.Declaration:return this.declaration(e,t,r);case b.DocType:return this.docType(e,t,r);case b.AttributeDeclaration:return this.dtdAttList(e,t,r);case b.ElementDeclaration:return this.dtdElement(e,t,r);case b.EntityDeclaration:return this.dtdEntity(e,t,r);case b.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"",n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.raw=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.text=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdAttList=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdElement=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdEntity=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdNotation=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e)}.call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDummy":379,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLText":389}],391:[function(u,l,e){!function(){var e=u("./Utility"),s=e.assign,i=e.isFunction,t=u("./XMLDOMImplementation"),o=u("./XMLDocument"),a=u("./XMLDocumentCB"),r=u("./XMLStringWriter"),n=u("./XMLStreamWriter"),c=u("./NodeType"),e=u("./WriterState");l.exports.create=function(e,t,r,n){if(null==e)throw new Error("Root element needs a name.");return n=s({},t,r,n),e=(r=new o(n)).element(e),n.headless||(r.declaration(n),null==n.pubID&&null==n.sysID||r.dtd(n)),e},l.exports.begin=function(e,t,r){var n;return i(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t?new a(e,t,r):new o(e)},l.exports.stringWriter=function(e){return new r(e)},l.exports.streamWriter=function(e,t){return new n(e,t)},l.exports.implementation=new t,l.exports.nodeType=c,l.exports.writerState=e}.call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLDOMImplementation":369,"./XMLDocument":377,"./XMLDocumentCB":378,"./XMLStreamWriter":386,"./XMLStringWriter":387}],392:[function(e,t,r){t.exports=function(){for(var e={},t=0;ta?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var r=1732584193,n=-271733879,s=-1732584194,i=271733878,o=0;o>>32-s,r)}function p(e,t,r,n,s,i,o){return a(t&r|~t&n,e,t,s,i,o)}function f(e,t,r,n,s,i,o){return a(t&n|r&~n,e,t,s,i,o)}function h(e,t,r,n,s,i,o){return a(t^r^n,e,t,s,i,o)}function d(e,t,r,n,s,i,o){return a(r^(t|~n),e,t,s,i,o)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n.hash(e,s,16)}},{"./helpers":394}],396:[function(e,t,r){"use strict";var n=e("./helpers");function s(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,s,i=Array(80),o=1732584193,a=-271733879,c=-1732584194,u=271733878,l=-1009589776,p=0;p>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t){return e<>>32-t}t.exports=function(e){return n.hash(e,s,20,!0)}},{"./helpers":394}],397:[function(e,t,r){"use strict";t.exports=function(){return function(){}}},{}],398:[function(s,i,e){!function(n){!function(){"use strict";var t=s("@babel/runtime/helpers/interopRequireDefault")(s("@babel/runtime/helpers/typeof")),r=s("stream").Stream,e=s("../lib/common/utils/isArray").isArray;i.exports.string=function(e){return"string"==typeof e},i.exports.array=e,i.exports.buffer=n.isBuffer,i.exports.writableStream=function(e){return e instanceof r&&"function"==typeof e._write&&"object"===(0,t.default)(e._writableState)}}.call(this)}.call(this,{isBuffer:s("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":61,"../node_modules/is-buffer/index.js":312,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,stream:345}],399:[function(e,t,r){"use strict";e=e("immediate"),t=t.exports={};function n(){}t.nextTick=e,t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.prependListener=n,t.prependOnceListener=n,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{immediate:305}],400:[function(n,e,s){!function(u){!function(){"use strict";n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.search.js");var o=n("./lib/request"),e=n("./lib/response"),a=n("xtend"),t=n("builtin-status-codes"),c=n("url"),r=s;r.request=function(e,t){e="string"==typeof e?c.parse(e):a(e);var r=-1===u.location.protocol.search(/^https?:$/)?"http:":"",n=e.protocol||r,s=e.hostname||e.host,i=e.port,r=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?n+"//"+s:"")+(i?":"+i:"")+r,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};e=new o(e);return t&&e.on("response",t),e},r.get=function(e,t){t=r.request(e,t);return t.end(),t},r.ClientRequest=o,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":402,"./lib/response":403,"builtin-status-codes":87,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.search.js":267,url:404,xtend:392}],401:[function(a,e,c){!function(o){!function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),c.fetch=i(o.fetch)&&i(o.ReadableStream),c.writableStream=i(o.WritableStream),c.abortController=i(o.AbortController),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var t;function r(){if(void 0!==t)return t;if(o.XMLHttpRequest){t=new o.XMLHttpRequest;try{t.open("GET",o.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function e(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var n=void 0!==o.ArrayBuffer,s=n&&i(o.ArrayBuffer.prototype.slice);function i(e){return"function"==typeof e}c.arraybuffer=c.fetch||n&&e("arraybuffer"),c.msstream=!c.fetch&&s&&e("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&n&&e("moz-chunked-arraybuffer"),c.overrideMimeType=c.fetch||!!r()&&i(r().overrideMimeType),c.vbArray=i(o.VBArray),t=null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":239,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259}],402:[function(i,o,e){!function(p,f,h){!function(){"use strict";i("core-js/modules/es.object.to-string.js"),i("core-js/modules/es.regexp.to-string.js"),i("core-js/modules/web.dom-collections.for-each.js"),i("core-js/modules/es.object.keys.js"),i("core-js/modules/es.array.concat.js"),i("core-js/modules/es.array.map.js"),i("core-js/modules/es.function.name.js"),i("core-js/modules/es.promise.js"),i("core-js/modules/es.regexp.exec.js"),i("core-js/modules/es.string.split.js");var c=i("./capability"),e=i("inherits"),t=i("./response"),s=i("readable-stream"),u=i("to-arraybuffer"),r=t.IncomingMessage,l=t.readyStates;t=o.exports=function(t){var r=this;s.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new h(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])});var e,n=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!c.abortController)e=!(n=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!c.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(e=e,n=n,c.fetch&&n?"fetch":c.mozchunkedarraybuffer?"moz-chunked-arraybuffer":c.msstream?"ms-stream":c.arraybuffer&&e?"arraybuffer":c.vbArray&&e?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};e(t,s.Writable),t.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===n.indexOf(r)&&(this._headers[r]={name:e,value:t})},t.prototype.getHeader=function(e){e=this._headers[e.toLowerCase()];return e?e.value:null},t.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},t.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,n=null;"GET"!==e.method&&"HEAD"!==e.method&&(n=c.arraybuffer?u(h.concat(t._body)):c.blobConstructor?new f.Blob(t._body.map(function(e){return u(e)}),{type:(r["content-type"]||{}).value||""}):h.concat(t._body).toString());var s=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,e=r[e].value;Array.isArray(e)?e.forEach(function(e){s.push([t,e])}):s.push([t,e])}),"fetch"===t._mode){var i,o=null;c.abortController&&(o=(i=new AbortController).signal,t._fetchAbortController=i,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=f.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))),f.fetch(t._opts.url,{method:t._opts.method,headers:s,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){f.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var a=t._xhr=new f.XMLHttpRequest;try{a.open(t._opts.method,t._opts.url,!0)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}"responseType"in a&&(a.responseType=t._mode.split(":")[0]),"withCredentials"in a&&(a.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(a.timeout=e.requestTimeout,a.ontimeout=function(){t.emit("requestTimeout")}),s.forEach(function(e){a.setRequestHeader(e[0],e[1])}),t._response=null,a.onreadystatechange=function(){switch(a.readyState){case l.LOADING:case l.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(a.onprogress=function(){t._onXHRProgress()}),a.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{a.send(n)}catch(e){return void p.nextTick(function(){t.emit("error",e)})}}}},t.prototype._onXHRProgress=function(){!function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},t.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},t.prototype._write=function(e,t,r){this._body.push(e),r()},t.prototype.abort=t.prototype.destroy=function(){this._destroyed=!0,f.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},t.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var n=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}.call(this)}.call(this,i("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},i("buffer").Buffer)},{"./capability":401,"./response":403,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.split.js":268,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339,"to-arraybuffer":348}],403:[function(r,e,n){!function(l,p,f){!function(){"use strict";r("core-js/modules/web.dom-collections.for-each.js"),r("core-js/modules/es.object.to-string.js"),r("core-js/modules/es.promise.js"),r("core-js/modules/es.regexp.exec.js"),r("core-js/modules/es.string.split.js"),r("core-js/modules/es.string.match.js"),r("core-js/modules/es.array.iterator.js"),r("core-js/modules/es.array-buffer.slice.js"),r("core-js/modules/es.typed-array.uint8-array.js"),r("core-js/modules/es.typed-array.copy-within.js"),r("core-js/modules/es.typed-array.every.js"),r("core-js/modules/es.typed-array.fill.js"),r("core-js/modules/es.typed-array.filter.js"),r("core-js/modules/es.typed-array.find.js"),r("core-js/modules/es.typed-array.find-index.js"),r("core-js/modules/es.typed-array.for-each.js"),r("core-js/modules/es.typed-array.includes.js"),r("core-js/modules/es.typed-array.index-of.js"),r("core-js/modules/es.typed-array.iterator.js"),r("core-js/modules/es.typed-array.join.js"),r("core-js/modules/es.typed-array.last-index-of.js"),r("core-js/modules/es.typed-array.map.js"),r("core-js/modules/es.typed-array.reduce.js"),r("core-js/modules/es.typed-array.reduce-right.js"),r("core-js/modules/es.typed-array.reverse.js"),r("core-js/modules/es.typed-array.set.js"),r("core-js/modules/es.typed-array.slice.js"),r("core-js/modules/es.typed-array.some.js"),r("core-js/modules/es.typed-array.sort.js"),r("core-js/modules/es.typed-array.subarray.js"),r("core-js/modules/es.typed-array.to-locale-string.js"),r("core-js/modules/es.typed-array.to-string.js"),r("core-js/modules/es.array.slice.js");var a=r("./capability"),e=r("inherits"),c=r("readable-stream"),u=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var s=this;if(c.Readable.call(s),s._mode=r,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){l.nextTick(function(){s.emit("close")})}),"fetch"===r){var i=function t(){o.read().then(function(e){if(!s._destroyed){if(e.done)return p.clearTimeout(n),void s.push(null);s.push(new f(e.value)),t()}}).catch(function(e){p.clearTimeout(n),s._destroyed||s.emit("error",e)})};if(s._fetchResponse=t,s.url=t.url,s.statusCode=t.status,s.statusMessage=t.statusText,t.headers.forEach(function(e,t){s.headers[t.toLowerCase()]=e,s.rawHeaders.push(t,e)}),a.writableStream){r=new WritableStream({write:function(r){return new Promise(function(e,t){s._destroyed?t():s.push(new f(r))?e():s._resumeFetch=e})},close:function(){p.clearTimeout(n),s._destroyed||s.push(null)},abort:function(e){s._destroyed||s.emit("error",e)}});try{return void t.body.pipeTo(r).catch(function(e){p.clearTimeout(n),s._destroyed||s.emit("error",e)})}catch(e){}}var o=t.body.getReader();i()}else s._xhr=e,s._pos=0,s.url=e.responseURL,s.statusCode=e.status,s.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);t&&("set-cookie"===(e=t[1].toLowerCase())?(void 0===s.headers[e]&&(s.headers[e]=[]),s.headers[e].push(t[2])):void 0!==s.headers[e]?s.headers[e]+=", "+t[2]:s.headers[e]=t[2],s.rawHeaders.push(t[1],t[2]))}),s._charset="x-user-defined",a.overrideMimeType||(!(e=s.rawHeaders["mime-type"])||(e=e.match(/;\s*charset=([^;])(;|$)/))&&(s._charset=e[1].toLowerCase()),s._charset||(s._charset="utf-8"))};e(t,c.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{r=new p.VBArray(e.responseBody).toArray()}catch(e){}if(null!==r){t.push(new f(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var s=new f(n.length),i=0;it._pos&&(t.push(new f(new Uint8Array(o.result.slice(t._pos)))),t._pos=o.result.byteLength)},o.onload=function(){t.push(null)},o.readAsArrayBuffer(r)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}.call(this)}.call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":401,_process:399,buffer:85,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.match.js":265,"core-js/modules/es.string.split.js":268,"core-js/modules/es.typed-array.copy-within.js":272,"core-js/modules/es.typed-array.every.js":273,"core-js/modules/es.typed-array.fill.js":274,"core-js/modules/es.typed-array.filter.js":275,"core-js/modules/es.typed-array.find-index.js":276,"core-js/modules/es.typed-array.find.js":277,"core-js/modules/es.typed-array.for-each.js":278,"core-js/modules/es.typed-array.includes.js":279,"core-js/modules/es.typed-array.index-of.js":280,"core-js/modules/es.typed-array.iterator.js":281,"core-js/modules/es.typed-array.join.js":282,"core-js/modules/es.typed-array.last-index-of.js":283,"core-js/modules/es.typed-array.map.js":284,"core-js/modules/es.typed-array.reduce-right.js":285,"core-js/modules/es.typed-array.reduce.js":286,"core-js/modules/es.typed-array.reverse.js":287,"core-js/modules/es.typed-array.set.js":288,"core-js/modules/es.typed-array.slice.js":289,"core-js/modules/es.typed-array.some.js":290,"core-js/modules/es.typed-array.sort.js":291,"core-js/modules/es.typed-array.subarray.js":292,"core-js/modules/es.typed-array.to-locale-string.js":293,"core-js/modules/es.typed-array.to-string.js":294,"core-js/modules/es.typed-array.uint8-array.js":295,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339}],404:[function(e,t,r){"use strict";var _=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js");var S=e("punycode"),O=e("./util");function j(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=s,r.resolve=function(e,t){return s(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?s(e,!1,!0).resolveObject(t):t},r.format=function(e){O.isString(e)&&(e=s(e));return e instanceof j?e.format():j.prototype.format.call(e)},r.Url=j;var A=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,D=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),I=["'"].concat(r),C=["%","/","?",";","#"].concat(I),N=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,M=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},L={javascript:!0,"javascript:":!0},B={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},q=e("querystring");function s(e,t,r){if(e&&O.isObject(e)&&e instanceof j)return e;var n=new j;return n.parse(e,t,r),n}j.prototype.parse=function(e,t,r){if(!O.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,_.default)(e));var n=e.indexOf("?"),s=-1!==n&&nc.maxRedirects)){var n=c.formatRedirectUrl?c.formatRedirectUrl(a,r):F.resolve(a,r);X("Request#%d %s: `redirected` from %s to %s",l,d.path,a,n),O(),c.headers&&c.headers.Host&&H.test(r)&&(c.headers.Host=null);r=u;return u=null,Z.requestWithCallback(n,c,r),{redirect:!0,error:null}}(t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+a)).name="MaxRedirectError"}else(t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:t}}c.timing&&(_={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),c.gzip&&(d.headers["Accept-Encoding"]||d.headers["accept-encoding"]||(d.headers["Accept-Encoding"]="gzip"));var I,C,N,R=c.writeStream;function M(s){if(_&&(_.waiting=Date.now()-f),X("Request#%d %s `req response` event emit: status %d, headers: %j",l,a,s.statusCode,s.headers),c.streaming){var e=D(s);return e.redirect?void s.resume():e.error?(s.resume(),A(e.error,null,s)):A(null,null,s)}if(s.on("close",function(){X("Request#%d %s: `res close` event emit, total size %d",l,a,j)}),s.on("error",function(){X("Request#%d %s: `res error` event emit, total size %d",l,a,j)}),s.on("aborted",function(){T=!0,X("Request#%d %s: `res aborted` event emit, total size %d",l,a,j)}),R){e=D(s);return e.redirect?void s.resume():e.error?(s.resume(),R.end(),A(e.error,null,s)):(!1===c.consumeWriteStream?s.on("end",A.bind(null,null,null,s)):R.on("close",function(){X("Request#%d %s: writeStream close event emitted",l,a),A(g||null,null,s)}),s.pipe(R))}var t=[];s.on("data",function(e){X("Request#%d %s: `res data` event emit, size %d",l,a,e.length),j+=e.length,t.push(e)}),s.on("end",function(){var n=J.concat(t,j);if(X("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",l,a,j,s._dumped),g)return A(g,n,s);var e=D(s);if(e.error)return A(e.error,n,s);e.redirect||function(e,t,r){if(e)return A(e,n,s);if(!r&&0<=Y.indexOf(c.dataType)){try{t=decodeBodyByCharset(t,s)}catch(e){return X("decodeBodyByCharset error: %s",e),A(null,t,s)}"json"===c.dataType&&(0===j?t=null:(r=parseJSON(t,i)).error?e=r.error:t=r.data)}T&&X("Request#%d %s: Remote socket was terminated before `response.end()` was called",l,a),A(e,t,s)}(null,n,s.headers["content-encoding"])})}function P(){X("Response timer ticking, timeout: %d",C),b=setTimeout(function(){b=null;var e="Response timeout for "+C+"ms";(g=new Error(e)).name="ResponseTimeoutError",g.requestId=l,X("ResponseTimeout: Request#%d %s %s: %s, connected: %s",l,a,g.name,e,v),L()},C)}X("Request#%d %s %s with headers %j, options.path: %s",l,r,a,d.headers,d.path),c.requestUrls.push(a),Array.isArray(c.timeout)?(I=V(c.timeout[0]),C=V(c.timeout[1])):I=C=V(c.timeout),X("ConnectTimeout: %d, ResponseTimeout: %d",I,C),d.mode=c.mode||"";try{N=s.request(d,M)}catch(e){return A(e)}function L(){X("Request#%d %s abort, connected: %s",l,a,v),N.socket||(g.noSocket=!0,A(g)),N.abort()}return"undefined"==typeof window?(X("Connect timer ticking, timeout: %d",I),y=setTimeout(function(){y=null,-1===x&&(x=-2);var e="Connect timeout for "+I+"ms",t="ConnectionTimeoutError";N.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),(g=new Error(e)).name=t,g.requestId=l,X("ConnectTimeout: Request#%d %s %s: %s, connected: %s",l,a,g.name,e,v),L()},I)):N.on("requestTimeout",function(){-1===x&&(x=-2);(g=new Error("Connect timeout for "+I+"ms")).name="ConnectionTimeoutError",g.requestId=l,L()}),_&&N.on("finish",function(){_.requestSent=Date.now()-f}),N.once("socket",function(e){_&&(_.queuing=Date.now()-f);var t=e.readyState;if("opening"===t)return e.once("lookup",function(e,t,r){X("Request#%d %s lookup: %s, %s, %s",l,a,e,t,r),_&&(_.dnslookup=Date.now()-f),t&&(k=t)}),void e.once("connect",function(){_&&(_.connected=Date.now()-f),S(),P(),X("Request#%d %s new socket connected",l,a),v=!0,k=k||e.remoteAddress,E=e.remotePort});X("Request#%d %s reuse socket connected, readyState: %s",l,a,t),w=v=!0,k=k||e.remoteAddress,E=e.remotePort,S(),P()}),N.on("error",function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=v?"ResponseError":"RequestError"),e.message+=' (req "error")',X("Request#%d %s `req error` event emit, %s: %s",l,a,e.name,e.message),A(g||e)}),R&&R.once("error",function(e){e.message+=' (writeStream "error")',X("Request#%d %s `writeStream error` event emit, %s: %s",l,a,(g=e).name,e.message),L()}),c.stream?(c.stream.pipe(N),c.stream.once("error",function(e){e.message+=' (stream "error")',X("Request#%d %s `readStream error` event emit, %s: %s",l,a,(g=e).name,e.message),L()})):N.end(e),N.requestId=l,N}}.call(this)}.call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.split.js":268,"core-js/modules/es.string.trim.js":269,debug:397,http:400,https:302,"humanize-ms":303,url:404,util:352}]},{},[1])(1)});