oss-file-upload.8a97fc68.js 226 KB

12345678910111213
  1. import{b6 as commonjsGlobal,b7 as getDefaultExportFromCjs,y as request,g as state}from"./ResizeObserver.es.f28023e0.js";var cosJsSdkV5={exports:{}};(function(module,exports){(function(m,u){module.exports=u()})(commonjsGlobal,function(){return function(g){var m={};function u(h){if(m[h])return m[h].exports;var x=m[h]={i:h,l:!1,exports:{}};return g[h].call(x.exports,x,x.exports,u),x.l=!0,x.exports}return u.m=g,u.c=m,u.d=function(h,x,c){u.o(h,x)||Object.defineProperty(h,x,{enumerable:!0,get:c})},u.r=function(h){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},u.t=function(h,x){if(x&1&&(h=u(h)),x&8||x&4&&typeof h=="object"&&h&&h.__esModule)return h;var c=Object.create(null);if(u.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:h}),x&2&&typeof h!="string")for(var S in h)u.d(c,S,function(_){return h[_]}.bind(null,S));return c},u.n=function(h){var x=h&&h.__esModule?function(){return h.default}:function(){return h};return u.d(x,"a",x),x},u.o=function(h,x){return Object.prototype.hasOwnProperty.call(h,x)},u.p="/dist/",u(u.s="./index.js")}({"./index.js":function(g,m,u){var h=u("./src/cos.js");g.exports=h},"./lib/base64.js":function(g,m){var u=function(h){h=h||{};var x=h.Base64,c="2.1.9",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=function(I){for(var L={},B=0,P=I.length;B<P;B++)L[I.charAt(B)]=B;return L}(S),N=String.fromCharCode,O=function(L){if(L.length<2){var B=L.charCodeAt(0);return B<128?L:B<2048?N(192|B>>>6)+N(128|B&63):N(224|B>>>12&15)+N(128|B>>>6&63)+N(128|B&63)}else{var B=65536+(L.charCodeAt(0)-55296)*1024+(L.charCodeAt(1)-56320);return N(240|B>>>18&7)+N(128|B>>>12&63)+N(128|B>>>6&63)+N(128|B&63)}},T=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,H=function(L){return L.replace(T,O)},X=function(L){var B=[0,2,1][L.length%3],P=L.charCodeAt(0)<<16|(L.length>1?L.charCodeAt(1):0)<<8|(L.length>2?L.charCodeAt(2):0),K=[S.charAt(P>>>18),S.charAt(P>>>12&63),B>=2?"=":S.charAt(P>>>6&63),B>=1?"=":S.charAt(P&63)];return K.join("")},V=h.btoa?function(I){return h.btoa(I)}:function(I){return I.replace(/[\s\S]{1,3}/g,X)},U=function(I){return V(H(I))},M=function(L,B){return B?U(String(L)).replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,""):U(String(L))},re=function(L){return M(L,!0)},Q=new RegExp(["[\xC0-\xDF][\x80-\xBF]","[\xE0-\xEF][\x80-\xBF]{2}","[\xF0-\xF7][\x80-\xBF]{3}"].join("|"),"g"),ue=function(L){switch(L.length){case 4:var B=(7&L.charCodeAt(0))<<18|(63&L.charCodeAt(1))<<12|(63&L.charCodeAt(2))<<6|63&L.charCodeAt(3),P=B-65536;return N((P>>>10)+55296)+N((P&1023)+56320);case 3:return N((15&L.charCodeAt(0))<<12|(63&L.charCodeAt(1))<<6|63&L.charCodeAt(2));default:return N((31&L.charCodeAt(0))<<6|63&L.charCodeAt(1))}},R=function(L){return L.replace(Q,ue)},A=function(L){var B=L.length,P=B%4,K=(B>0?_[L.charAt(0)]<<18:0)|(B>1?_[L.charAt(1)]<<12:0)|(B>2?_[L.charAt(2)]<<6:0)|(B>3?_[L.charAt(3)]:0),z=[N(K>>>16),N(K>>>8&255),N(K&255)];return z.length-=[0,0,2,1][P],z.join("")},v=h.atob?function(I){return h.atob(I)}:function(I){return I.replace(/[\s\S]{1,4}/g,A)},W=function(I){return R(v(I))},p=function(L){return W(String(L).replace(/[-_]/g,function(B){return B=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},q=function(){var L=h.Base64;return h.Base64=x,L},j={VERSION:c,atob:v,btoa:V,fromBase64:p,toBase64:M,utob:H,encode:M,encodeURI:re,btou:R,decode:p,noConflict:q};return j}();g.exports=u},"./lib/beacon.min.js":function(g,m,u){var h,x,c=u("./node_modules/@babel/runtime/helpers/typeof.js");(function(S,_){c(m)=="object"&&typeof g!="undefined"?g.exports=_():(h=_,x=typeof h=="function"?h.call(m,u,m,g):h,x!==void 0&&(g.exports=x))})(this,function(){var S=function(n,r){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(o[b]=f[b])},S(n,r)},_=function(){return _=Object.assign||function(n){for(var r,o=1,f=arguments.length;o<f;o++)for(var b in r=arguments[o])Object.prototype.hasOwnProperty.call(r,b)&&(n[b]=r[b]);return n},_.apply(this,arguments)};function N(s,n,r,o){return new(r||(r=Promise))(function(f,b){function k(he){try{de(o.next(he))}catch(J){b(J)}}function G(he){try{de(o.throw(he))}catch(J){b(J)}}function de(he){var J;he.done?f(he.value):(J=he.value,J instanceof r?J:new r(function(Se){Se(J)})).then(k,G)}de((o=o.apply(s,n||[])).next())})}function O(s,n){var r,o,f,b,k={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return b={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function G(de){return function(he){return function(J){if(r)throw new TypeError("Generator is already executing.");for(;k;)try{if(r=1,o&&(f=2&J[0]?o.return:J[0]?o.throw||((f=o.return)&&f.call(o),0):o.next)&&!(f=f.call(o,J[1])).done)return f;switch(o=0,f&&(J=[2&J[0],f.value]),J[0]){case 0:case 1:f=J;break;case 4:return k.label++,{value:J[1],done:!1};case 5:k.label++,o=J[1],J=[0];continue;case 7:J=k.ops.pop(),k.trys.pop();continue;default:if(f=k.trys,!((f=f.length>0&&f[f.length-1])||J[0]!==6&&J[0]!==2)){k=0;continue}if(J[0]===3&&(!f||J[1]>f[0]&&J[1]<f[3])){k.label=J[1];break}if(J[0]===6&&k.label<f[1]){k.label=f[1],f=J;break}if(f&&k.label<f[2]){k.label=f[2],k.ops.push(J);break}f[2]&&k.ops.pop(),k.trys.pop();continue}J=n.call(s,k)}catch(Se){J=[6,Se],o=0}finally{r=f=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([de,he])}}}var T="__BEACON_",H="__BEACON_deviceId",X="last_report_time",V="sending_event_ids",U="beacon_config",M="beacon_config_request_time",re=function(){function s(){var n=this;this.emit=function(r,o){if(n){var f,b=n.__EventsList[r];if(b!=null&&b.length){b=b.slice();for(var k=0;k<b.length;k++){f=b[k];try{var G=f.callback.apply(n,[o]);if(f.type===1&&n.remove(r,f.callback),G===!1)break}catch(de){throw de}}}return n}},this.__EventsList={}}return s.prototype.indexOf=function(n,r){for(var o=0;o<n.length;o++)if(n[o].callback===r)return o;return-1},s.prototype.on=function(n,r,o){if(o===void 0&&(o=0),this){var f=this.__EventsList[n];if(f||(f=this.__EventsList[n]=[]),this.indexOf(f,r)===-1){var b={name:n,type:o||0,callback:r};return f.push(b),this}return this}},s.prototype.one=function(n,r){this.on(n,r,1)},s.prototype.remove=function(n,r){if(this){var o=this.__EventsList[n];if(!o)return null;if(!r){try{delete this.__EventsList[n]}catch{}return null}if(o.length){var f=this.indexOf(o,r);o.splice(f,1)}return this}},s}();function Q(s,n){for(var r={},o=0,f=Object.keys(s);o<f.length;o++){var b=f[o],k=s[b];if(typeof k=="string")r[ue(b)]=ue(k);else{if(n)throw new Error("value mast be string !!!!");r[ue(String(b))]=ue(String(k))}}return r}function ue(s){if(typeof s!="string")return s;try{return s.replace(new RegExp("\\|","g"),"%7C").replace(new RegExp("\\&","g"),"%26").replace(new RegExp("\\=","g"),"%3D").replace(new RegExp("\\+","g"),"%2B")}catch{return""}}function R(s){return String(s.A99)+String(s.A100)}var A=function(){},v=function(){function s(n){var r=this;this.lifeCycle=new re,this.uploadJobQueue=[],this.additionalParams={},this.delayTime=0,this._normalLogPipeline=function(o){if(!o||!o.reduce||!o.length)throw new TypeError("createPipeline \u65B9\u6CD5\u9700\u8981\u4F20\u5165\u81F3\u5C11\u6709\u4E00\u4E2A pipe \u7684\u6570\u7EC4");return o.length===1?function(f,b){o[0](f,b||A)}:o.reduce(function(f,b){return function(k,G){return G===void 0&&(G=A),f(k,function(de){return b==null?void 0:b(de,G)})}})}([function(o){r.send({url:r.strategy.getUploadUrl(),data:o,method:"post",contentType:"application/json;charset=UTF-8"},function(){var f=r.config.onReportSuccess;typeof f=="function"&&f(JSON.stringify(o.events))},function(){var f=r.config.onReportFail;typeof f=="function"&&f(JSON.stringify(o.events))})}]),function(o,f){if(!o)throw f instanceof Error?f:new Error(f)}(Boolean(n.appkey),"appkey must be initial"),this.config=_({},n)}return s.prototype.onUserAction=function(n,r){this.preReport(n,r,!1)},s.prototype.onDirectUserAction=function(n,r){this.preReport(n,r,!0)},s.prototype.preReport=function(n,r,o){n?this.strategy.isEventUpOnOff()&&(this.strategy.isBlackEvent(n)||this.strategy.isSampleEvent(n)||this.onReport(n,r,o)):this.errorReport.reportError("602"," no eventCode")},s.prototype.addAdditionalParams=function(n){for(var r=0,o=Object.keys(n);r<o.length;r++){var f=o[r];this.additionalParams[f]=n[f]}},s.prototype.setChannelId=function(n){this.commonInfo.channelID=String(n)},s.prototype.setOpenId=function(n){this.commonInfo.openid=String(n)},s.prototype.setUnionid=function(n){this.commonInfo.unid=String(n)},s.prototype.getDeviceId=function(){return this.commonInfo.deviceId},s.prototype.getCommonInfo=function(){return this.commonInfo},s.prototype.removeSendingId=function(n){try{var r=JSON.parse(this.storage.getItem(V)),o=r.indexOf(n);o!=-1&&(r.splice(o,1),this.storage.setItem(V,JSON.stringify(r)))}catch{}},s}(),W=function(){function s(n,r,o,f){this.requestParams={},this.network=f,this.requestParams.attaid="00400014144",this.requestParams.token="6478159937",this.requestParams.product_id=n.appkey,this.requestParams.platform=o,this.requestParams.uin=r.deviceId,this.requestParams.model="",this.requestParams.os=o,this.requestParams.app_version=n.appVersion,this.requestParams.sdk_version=r.sdkVersion,this.requestParams.error_stack="",this.uploadUrl=n.isOversea?"https://htrace.wetvinfo.com/kv":"https://h.trace.qq.com/kv"}return s.prototype.reportError=function(n,r){this.requestParams._dc=Math.random(),this.requestParams.error_msg=r,this.requestParams.error_code=n,this.network.get(this.uploadUrl,{params:this.requestParams}).catch(function(o){})},s}(),p=function(){function s(n,r,o,f,b){this.strategy={isEventUpOnOff:!0,httpsUploadUrl:"https://otheve.beacon.qq.com/analytics/v2_upload",requestInterval:30,blacklist:[],samplelist:[]},this.realSample={},this.appkey="",this.needQueryConfig=!0,this.appkey=r.appkey,this.storage=f,this.needQueryConfig=n;try{var k=JSON.parse(this.storage.getItem(U));k&&this.processData(k)}catch{}r.isOversea&&(this.strategy.httpsUploadUrl="https://svibeacon.onezapp.com/analytics/v2_upload"),!r.isOversea&&this.needRequestConfig()&&this.requestConfig(r.appVersion,o,b)}return s.prototype.requestConfig=function(n,r,o){var f=this;this.storage.setItem(M,Date.now().toString()),o.post("https://oth.str.beacon.qq.com/trpc.beacon.configserver.BeaconConfigService/QueryConfig",{platformId:typeof wx=="undefined"?"3":"4",mainAppKey:this.appkey,appVersion:n,sdkVersion:r.sdkVersion,osVersion:r.userAgent,model:"",packageName:"",params:{A3:r.deviceId}}).then(function(b){if(b.data.ret==0)try{var k=JSON.parse(b.data.beaconConfig);k&&(f.processData(k),f.storage.setItem(U,b.data.beaconConfig))}catch{}else f.processData(null),f.storage.setItem(U,"")}).catch(function(b){})},s.prototype.processData=function(n){var r,o,f,b,k;this.strategy.isEventUpOnOff=(r=n==null?void 0:n.isEventUpOnOff)!==null&&r!==void 0?r:this.strategy.isEventUpOnOff,this.strategy.httpsUploadUrl=(o=n==null?void 0:n.httpsUploadUrl)!==null&&o!==void 0?o:this.strategy.httpsUploadUrl,this.strategy.requestInterval=(f=n==null?void 0:n.requestInterval)!==null&&f!==void 0?f:this.strategy.requestInterval,this.strategy.blacklist=(b=n==null?void 0:n.blacklist)!==null&&b!==void 0?b:this.strategy.blacklist,this.strategy.samplelist=(k=n==null?void 0:n.samplelist)!==null&&k!==void 0?k:this.strategy.samplelist;for(var G=0,de=this.strategy.samplelist;G<de.length;G++){var he=de[G].split(",");he.length==2&&(this.realSample[he[0]]=he[1])}},s.prototype.needRequestConfig=function(){if(!this.needQueryConfig)return!1;var n=Number(this.storage.getItem(M));return Date.now()-n>60*this.strategy.requestInterval*1e3},s.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},s.prototype.isBlackEvent=function(n){return this.strategy.blacklist.indexOf(n)!=-1},s.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},s.prototype.isSampleEvent=function(n){return!!Object.prototype.hasOwnProperty.call(this.realSample,n)&&this.realSample[n]<Math.floor(Math.random()*Math.floor(1e4))},s}(),q="session_storage_key",j=function(){function s(n,r,o){this.getSessionStackDepth=0,this.beacon=o,this.storage=n,this.duration=r,this.appkey=o.config.appkey}return s.prototype.getSession=function(){this.getSessionStackDepth+=1;var n=this.storage.getItem(q);if(!n)return this.createSession();var r="",o=0;try{var f=JSON.parse(n)||{sessionId:void 0,sessionStart:void 0};if(!f.sessionId||!f.sessionStart)return this.createSession();var b=Number(this.storage.getItem(X));if(Date.now()-b>this.duration)return this.createSession();r=f.sessionId,o=f.sessionStart,this.getSessionStackDepth=0}catch{}return{sessionId:r,sessionStart:o}},s.prototype.createSession=function(){var n=Date.now(),r={sessionId:this.appkey+"_"+n.toString(),sessionStart:n};this.storage.setItem(q,JSON.stringify(r)),this.storage.setItem(X,n.toString());var o="is_new_user",f=this.storage.getItem(o);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:f?"N":"Y"}),this.storage.setItem(o,JSON.stringify(!1)),r},s}();function I(){var s=navigator.userAgent,n=s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1,r=s.indexOf("Edge")>-1&&!n,o=s.indexOf("Trident")>-1&&s.indexOf("rv:11.0")>-1;if(n){new RegExp("MSIE (\\d+\\.\\d+);").test(s);var f=parseFloat(RegExp.$1);return f==7?7:f==8?8:f==9?9:f==10?10:6}return r?-2:o?11:-1}function L(s,n){var r,o;return(r="https://tun-cos-1258344701.file.myqcloud.com/fp.js",o===void 0&&(o=Date.now()+"-"+Math.random()),new Promise(function(f,b){if(document.getElementById(o))f(void 0);else{var k=document.getElementsByTagName("head")[0],G=document.createElement("script");G.onload=function(){return function(){G.onload=null,f(void 0)}},G.onerror=function(de){G.onerror=null,k.removeChild(G),b(de)},G.src=r,G.id=o,k.appendChild(G)}})).then(function(){new Fingerprint().getQimei36(s,n)}).catch(function(f){}),""}var B=function(){return(B=Object.assign||function(n){for(var r,o=1,f=arguments.length;o<f;o++)for(var b in r=arguments[o])Object.prototype.hasOwnProperty.call(r,b)&&(n[b]=r[b]);return n}).apply(this,arguments)},P,K=function(){function s(n,r){r===void 0&&(r={}),this.reportOptions={},this.config=n,this.reportOptions=r}return s.canUseDB=function(){return!!(window!=null&&window.indexedDB)},s.prototype.openDB=function(){var n=this;return new Promise(function(r,o){if(!s.canUseDB())return o({message:"\u5F53\u524D\u4E0D\u652F\u6301 indexeddb"});var f=n.config,b=f.name,k=f.version,G=f.stores,de=indexedDB.open(b,k);de.onsuccess=function(){n.db=de.result,r(),B({result:1,func:"open",params:JSON.stringify(n.config)},n.reportOptions)},de.onerror=function(he){var J,Se;o(he),B({result:0,func:"open",params:JSON.stringify(n.config),error_msg:(Se=(J=he.target)===null||J===void 0?void 0:J.error)===null||Se===void 0?void 0:Se.message},n.reportOptions)},de.onupgradeneeded=function(){n.db=de.result;try{G==null||G.forEach(function(he){n.createStore(he)})}catch(he){B({result:0,func:"open",params:JSON.stringify(n.config),error_msg:he.message},n.reportOptions),o(he)}}})},s.prototype.useStore=function(n){return this.storeName=n,this},s.prototype.deleteDB=function(){var n=this;return this.closeDB(),new Promise(function(r,o){var f=indexedDB.deleteDatabase(n.config.name);f.onsuccess=function(){return r()},f.onerror=o})},s.prototype.closeDB=function(){var n;(n=this.db)===null||n===void 0||n.close(),this.db=null},s.prototype.getStoreCount=function(){var n=this;return new Promise(function(r,o){var f=n.getStore("readonly").count();f.onsuccess=function(){return r(f.result)},f.onerror=o})},s.prototype.clearStore=function(){var n=this;return new Promise(function(r,o){var f=n.getStore("readwrite").clear();f.onsuccess=function(){return r()},f.onerror=o})},s.prototype.add=function(n,r){var o=this;return new Promise(function(f,b){var k=o.getStore("readwrite").add(n,r);k.onsuccess=function(){f(k.result)},k.onerror=b})},s.prototype.put=function(n,r){var o=this;return new Promise(function(f,b){var k=o.getStore("readwrite").put(n,r);k.onsuccess=function(){f(k.result)},k.onerror=b})},s.prototype.getStoreAllData=function(){var n=this;return new Promise(function(r,o){var f=n.getStore("readonly").openCursor(),b=[];f.onsuccess=function(){var k;if(!((k=f.result)===null||k===void 0)&&k.value){var G=f.result.value;b.push(G),f.result.continue()}else r(b)},f.onerror=o})},s.prototype.getDataRangeByIndex=function(n,r,o,f,b){var k=this;return new Promise(function(G,de){var he=k.getStore().index(n),J=IDBKeyRange.bound(r,o,f,b),Se=[],_e=he.openCursor(J);_e.onsuccess=function(){var Ue;!((Ue=_e==null?void 0:_e.result)===null||Ue===void 0)&&Ue.value?(Se.push(_e==null?void 0:_e.result.value),_e==null||_e.result.continue()):G(Se)},_e.onerror=de})},s.prototype.removeDataByIndex=function(n,r,o,f,b){var k=this;return new Promise(function(G,de){var he=k.getStore("readwrite").index(n),J=IDBKeyRange.bound(r,o,f,b),Se=he.openCursor(J),_e=0;Se.onsuccess=function(Ue){var Re=Ue.target.result;Re?(_e+=1,Re.delete(),Re.continue()):G(_e)},Se.onerror=de})},s.prototype.createStore=function(n){var r=n.name,o=n.indexes,f=o===void 0?[]:o,b=n.options;if(this.db){this.db.objectStoreNames.contains(r)&&this.db.deleteObjectStore(r);var k=this.db.createObjectStore(r,b);f.forEach(function(G){k.createIndex(G.indexName,G.keyPath,G.options)})}},s.prototype.getStore=function(n){var r;return n===void 0&&(n="readonly"),(r=this.db)===null||r===void 0?void 0:r.transaction(this.storeName,n).objectStore(this.storeName)},s}(),z="event_table_v3",$="eventId",ne=function(){function s(n){this.isReady=!1,this.taskQueue=Promise.resolve(),this.db=new K({name:"Beacon_"+n+"_V3",version:1,stores:[{name:z,options:{keyPath:$},indexes:[{indexName:$,keyPath:$,options:{unique:!0}}]}]}),this.open()}return s.prototype.getCount=function(){var n=this;return this.readyExec(function(){return n.db.getStoreCount()})},s.prototype.setItem=function(n,r){var o=this;return this.readyExec(function(){return o.db.add({eventId:n,value:r})})},s.prototype.getItem=function(n){return N(this,void 0,void 0,function(){var r=this;return O(this,function(o){return[2,this.readyExec(function(){return r.db.getDataRangeByIndex($,n,n)})]})})},s.prototype.removeItem=function(n){var r=this;return this.readyExec(function(){return r.db.removeDataByIndex($,n,n)})},s.prototype.updateItem=function(n,r){var o=this;return this.readyExec(function(){return o.db.put({eventId:n,value:r})})},s.prototype.iterate=function(n){var r=this;return this.readyExec(function(){return r.db.getStoreAllData().then(function(o){o.forEach(function(f){n(f.value)})})})},s.prototype.open=function(){return N(this,void 0,void 0,function(){var n=this;return O(this,function(r){switch(r.label){case 0:return this.taskQueue=this.taskQueue.then(function(){return n.db.openDB()}),[4,this.taskQueue];case 1:return r.sent(),this.isReady=!0,this.db.useStore(z),[2]}})})},s.prototype.readyExec=function(n){return this.isReady?n():(this.taskQueue=this.taskQueue.then(function(){return n()}),this.taskQueue)},s}(),ce=function(){function s(n){this.keyObject={},this.storage=n}return s.prototype.getCount=function(){return this.storage.getStoreCount()},s.prototype.removeItem=function(n){this.storage.removeItem(n),delete this.keyObject[n]},s.prototype.setItem=function(n,r){var o=JSON.stringify(r);this.storage.setItem(n,o),this.keyObject[n]=r},s.prototype.iterate=function(n){for(var r=Object.keys(this.keyObject),o=0;o<r.length;o++){var f=this.storage.getItem(r[o]);n(JSON.parse(f))}},s}(),ie=function(){function s(n,r){var o=this;this.dbEventCount=0,I()>0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new ce(r),this.dbEventCount=this.store.getCount()):(this.store=new ne(n),this.getCount().then(function(f){o.dbEventCount=f}).catch(function(f){}))}return s.prototype.getCount=function(){return N(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,n.sent()];case 2:return n.sent(),[2,Promise.reject()];case 3:return[2]}})})},s.prototype.insertEvent=function(n,r){return N(this,void 0,void 0,function(){var o,f;return O(this,function(b){switch(b.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];o=R(n.mapValue),b.label=1;case 1:return b.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(o,n)];case 2:return[2,b.sent()];case 3:return f=b.sent(),r&&r(f,n),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},s.prototype.getEvents=function(){return N(this,void 0,void 0,function(){var n;return O(this,function(r){switch(r.label){case 0:n=[],r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.store.iterate(function(o){n.push(o)})];case 2:return r.sent(),[2,Promise.all(n)];case 3:return r.sent(),[2,Promise.all(n)];case 4:return[2]}})})},s.prototype.removeEvent=function(n){return N(this,void 0,void 0,function(){var r;return O(this,function(o){switch(o.label){case 0:r=R(n.mapValue),o.label=1;case 1:return o.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(r)];case 2:return[2,o.sent()];case 3:return o.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},s}(),ee=function(){return(ee=Object.assign||function(n){for(var r,o=1,f=arguments.length;o<f;o++)for(var b in r=arguments[o])Object.prototype.hasOwnProperty.call(r,b)&&(n[b]=r[b]);return n}).apply(this,arguments)};function le(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function se(s,n){var r=[null,void 0,"",NaN].includes(s);if(n.isSkipEmpty&&r)return null;var o=!n.isSkipEmpty&&r?"":s;try{return n.encode?encodeURIComponent(o):o}catch{return null}}function ye(s,n){n===void 0&&(n={encode:!0,isSkipEmpty:!1});var r=s.url,o=s.query,f=o===void 0?{}:o,b=s.hash,k=r.split("#"),G=k[0],de=k[1],he=de===void 0?"":de,J=G.split("?")[0],Se=[],_e=se(b||he,n),Ue=ee(ee({},function(Re){var Le=Re.split("#"),ze=Le[0],Ve=Le[1],We=Ve===void 0?"":Ve,Ke=ze.split("?"),Ge=Ke[0],Xe=Ke[1],rt=Xe===void 0?"":Xe,et=le(We),nt=Object.create(null);return rt.split("&").forEach(function(i){var l=i.split("="),E=l[0],F=l[1],fe=F===void 0?"":F,xe=le(E),Ne=le(fe);xe===null||Ne===null||xe===""&&Ne===""||nt[xe]||(nt[xe]=Ne)}),{url:Ge,query:nt,hash:et}}(r).query),f);return Object.keys(Ue).forEach(function(Re){var Le=se(Re,n),ze=se(Ue[Re],n);Le!==null&&ze!==null&&Se.push(Le+"="+ze)}),J+(Se.length?"?"+Se.join("&"):"")+(_e?"#"+_e:"")}function Y(s,n){return new Promise(function(r,o){if(n&&document.querySelectorAll("script[data-tag="+n+"]").length)return r();var f=document.createElement("script"),b=ee({type:"text/javascript",charset:"utf-8"},s);Object.keys(b).forEach(function(k){return function(G,de,he){if(G)return he===void 0?G.getAttribute(de):G.setAttribute(de,he)}(f,k,b[k])}),n&&(f.dataset.tag=n),f.onload=function(){return r()},f.onreadystatechange=function(){var k=f.readyState;["complete","loaded"].includes(k)&&(f.onreadystatechange=null,r())},f.onerror=o,document.body.appendChild(f)})}(function(s){s[s.equal=0]="equal",s[s.low=-1]="low",s[s.high=1]="high"})(P||(P={}));var te=function(){return(te=Object.assign||function(n){for(var r,o=1,f=arguments.length;o<f;o++)for(var b in r=arguments[o])Object.prototype.hasOwnProperty.call(r,b)&&(n[b]=r[b]);return n}).apply(this,arguments)};function pe(s,n,r,o){return new(r||(r=Promise))(function(f,b){function k(he){try{de(o.next(he))}catch(J){b(J)}}function G(he){try{de(o.throw(he))}catch(J){b(J)}}function de(he){var J;he.done?f(he.value):(J=he.value,J instanceof r?J:new r(function(Se){Se(J)})).then(k,G)}de((o=o.apply(s,n||[])).next())})}function me(s,n){var r,o,f,b,k={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return b={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function G(de){return function(he){return function(J){if(r)throw new TypeError("Generator is already executing.");for(;k;)try{if(r=1,o&&(f=2&J[0]?o.return:J[0]?o.throw||((f=o.return)&&f.call(o),0):o.next)&&!(f=f.call(o,J[1])).done)return f;switch(o=0,f&&(J=[2&J[0],f.value]),J[0]){case 0:case 1:f=J;break;case 4:return k.label++,{value:J[1],done:!1};case 5:k.label++,o=J[1],J=[0];continue;case 7:J=k.ops.pop(),k.trys.pop();continue;default:if(!((f=(f=k.trys).length>0&&f[f.length-1])||J[0]!==6&&J[0]!==2)){k=0;continue}if(J[0]===3&&(!f||J[1]>f[0]&&J[1]<f[3])){k.label=J[1];break}if(J[0]===6&&k.label<f[1]){k.label=f[1],f=J;break}if(f&&k.label<f[2]){k.label=f[2],k.ops.push(J);break}f[2]&&k.ops.pop(),k.trys.pop();continue}J=n.call(s,k)}catch(Se){J=[6,Se],o=0}finally{r=f=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([de,he])}}}var ge=function(){function s(){this.interceptors=[]}return s.prototype.use=function(n,r){return this.interceptors.push({resolved:n,rejected:r}),this.interceptors.length-1},s.prototype.traverse=function(n,r){r===void 0&&(r=!1);var o=Promise.resolve(n);return(r?Array.prototype.reduceRight:Array.prototype.reduce).call(this.interceptors,function(f,b){if(b){var k=b.resolved,G=b.rejected;o=o.then(k,G)}return f},""),o},s.prototype.eject=function(n){this.interceptors[n]&&(this.interceptors[n]=null)},s}(),ve={defaults:{timeout:0,method:"GET",mode:"cors",redirect:"follow",credentials:"same-origin"},headers:{common:{Accept:"application/json, text/plain, */*"},POST:{"Content-Type":"application/x-www-form-urlencoded"},PUT:{"Content-Type":"application/x-www-form-urlencoded"},PATCH:{"Content-Type":"application/x-www-form-urlencoded"}},baseURL:"",polyfillUrl:"https://vm.gtimg.cn/comps/script/fetch.min.js",interceptors:{request:new ge,response:new ge}},Ce=/^([a-z][a-z\d+\-.]*:)?\/\//i,De=Object.prototype.toString;function be(s){return pe(this,void 0,void 0,function(){var n;return me(this,function(r){switch(r.label){case 0:if(window.fetch)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Y({src:s})];case 2:return r.sent(),[3,4];case 3:throw n=r.sent(),new Error("\u52A0\u8F7D polyfill "+s+" \u5931\u8D25: "+n.message);case 4:return[2]}})})}function Te(s){return["Accept","Content-Type"].forEach(function(n){return r=n,void((o=s.headers)&&Object.keys(o).forEach(function(f){f!==r&&f.toUpperCase()===r.toUpperCase()&&(o[r]=o[f],delete o[f])}));var r,o}),function(n){if(De.call(n)!=="[object Object]")return!1;var r=Object.getPrototypeOf(n);return r===null||r===Object.prototype}(s.body)&&(s.body=JSON.stringify(s.body),s.headers&&(s.headers["Content-Type"]="application/json;charset=utf-8")),s}function ke(s){return pe(this,void 0,void 0,function(){var n,r,o,f,b,k,G,de,he,J,Se,_e,Ue,Re,Le,ze,Ve;return me(this,function(We){switch(We.label){case 0:return n=ve.baseURL,r=ve.defaults,o=ve.interceptors,[4,be(ve.polyfillUrl)];case 1:return We.sent(),(f=te(te({},r),s)).headers||(f.headers=function(Ke){Ke===void 0&&(Ke="GET");var Ge=ve.headers[Ke]||{};return te(te({},ve.headers.common),Ge)}(f.method)),Te(f),[4,o.request.traverse(f,!0)];case 2:if((b=We.sent())instanceof Error)throw b;return b.url=function(Ke,Ge){return!Ke||Ce.test(Ge)?Ge:Ke.replace(/\/+$/,"")+"/"+Ge.replace(/^\/+/,"")}(n,b.url),k=b.url,G=b.timeout,de=b.params,he=b.method,J=["GET","DELETE","OPTIONS","HEAD"].includes(he===void 0?"GET":he)&&!!de,Se=J?ye({url:k,query:de}):k,_e=[],G&&!b.signal&&(Le=new Promise(function(Ke){Ue=setTimeout(function(){Ke(new Error("timeout"))},G)}),_e.push(Le),Re=new AbortController,b.signal=Re.signal),_e.push(fetch(Se,b).catch(function(Ke){return Ke})),[4,Promise.race(_e)];case 3:return ze=We.sent(),Ue&&clearTimeout(Ue),[4,o.response.traverse(ze)];case 4:if((Ve=We.sent())instanceof Error)throw Re==null||Re.abort(),Ve;return[2,Ve]}})})}var Fe=function(){function s(n){ve.interceptors.request.use(function(r){var o=r.url,f=r.method,b=r.body,k=b;if(n.onReportBeforeSend){var G=n.onReportBeforeSend({url:o,method:f,data:b?JSON.parse(b):null});k=G!=null&&G.data?JSON.stringify(G.data):null}return f!="GET"&&k?_(_({},r),{body:k}):r})}return s.prototype.get=function(n,r){return N(this,void 0,void 0,function(){var o,f;return O(this,function(b){switch(b.label){case 0:return[4,ke(_({url:n},r))];case 1:return[4,(o=b.sent()).json()];case 2:return f=b.sent(),[2,Promise.resolve({data:f,status:o.status,statusText:o.statusText,headers:o.headers})]}})})},s.prototype.post=function(n,r,o){return N(this,void 0,void 0,function(){var f,b;return O(this,function(k){switch(k.label){case 0:return[4,ke(_({url:n,body:r,method:"POST"},o))];case 1:return[4,(f=k.sent()).json()];case 2:return b=k.sent(),[2,Promise.resolve({data:b,status:f.status,statusText:f.statusText,headers:f.headers})]}})})},s}(),Me=function(){function s(n){this.appkey=n}return s.prototype.getItem=function(n){try{return window.localStorage.getItem(this.getStoreKey(n))}catch{return""}},s.prototype.removeItem=function(n){try{window.localStorage.removeItem(this.getStoreKey(n))}catch{}},s.prototype.setItem=function(n,r){try{window.localStorage.setItem(this.getStoreKey(n),r)}catch{}},s.prototype.setSessionItem=function(n,r){try{window.sessionStorage.setItem(this.getStoreKey(n),r)}catch{}},s.prototype.getSessionItem=function(n){try{return window.sessionStorage.getItem(this.getStoreKey(n))}catch{return""}},s.prototype.getStoreKey=function(n){return T+this.appkey+"_"+n},s.prototype.createDeviceId=function(){try{var n=window.localStorage.getItem(H);return n||(n=function(r){for(var o="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",f="",b=0;b<r;b++)f+=o.charAt(Math.floor(Math.random()*o.length));return f}(32),window.localStorage.setItem(H,n)),n}catch{return""}},s.prototype.clear=function(){try{for(var n=window.localStorage.length,r=0;r<n;r++){var o=window.localStorage.key(r);(o==null?void 0:o.substr(0,9))==T&&window.localStorage.removeItem(o)}}catch{}},s.prototype.getStoreCount=function(){var n=0;try{n=window.localStorage.length}catch{}return n},s}(),Pe="logid_start",oe="4.5.14-web";return function(s){function n(r){var o=s.call(this,r)||this;o.qimei36="",o.uselessCycleTaskNum=0,o.underWeakNet=!1,o.pauseSearching=!1,o.send=function(G,de,he){o.storage.setItem(X,Date.now().toString()),o.network.post(o.uploadUrl||o.strategy.getUploadUrl(),G.data).then(function(J){var Se;((Se=J==null?void 0:J.data)===null||Se===void 0?void 0:Se.result)==100?o.delayTime=1e3*J.data.delayTime:o.delayTime=0,de&&de(G.data),G.data.events.forEach(function(_e){o.store.removeEvent(_e).then(function(){o.removeSendingId(R(_e.mapValue))})}),o.doCustomCycleTask()}).catch(function(J){var Se=G.data.events;o.errorReport.reportError(J.code?J.code.toString():"600",J.message),he&&he(G.data);var _e=JSON.parse(o.storage.getItem(V));Se.forEach(function(Ue){_e&&_e.indexOf(R(Ue))!=-1&&o.store.insertEvent(Ue,function(Re,Le){Re&&o.errorReport.reportError("604","insertEvent fail!")}),o.removeSendingId(R(Ue))}),o.monitorUploadFailed()})};var f,b,k=I();return o.isUnderIE8=k>0&&k<8,o.isUnderIE8||(o.isUnderIE=k>0,r.needInitQimei&&L(r.appkey,function(G){o.qimei36=G.q36}),o.network=new Fe(r),o.storage=new Me(r.appkey),o.initCommonInfo(r),o.store=new ie(r.appkey,o.storage),o.errorReport=new W(o.config,o.commonInfo,"web",o.network),o.strategy=new p(r.needQueryConfig==null||r.needQueryConfig,o.config,o.commonInfo,o.storage,o.network),o.logidStartTime=o.storage.getItem(Pe),o.logidStartTime||(o.logidStartTime=Date.now().toString(),o.storage.setItem(Pe,o.logidStartTime)),f=o.logidStartTime,b=Date.now()-Number.parseFloat(f),Math.floor(b/864e5)>=365&&o.storage.clear(),o.initSession(r),o.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return o.lifeCycle.emit("init")},0),o.initDelayTime=r.delay?r.delay:1e3,o.cycleTask(o.initDelayTime)),o}return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function f(){this.constructor=r}S(r,o),r.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}(n,s),n.prototype.initSession=function(r){var o=18e5;r.sessionDuration&&r.sessionDuration>3e4&&(o=r.sessionDuration),this.beaconSession=new j(this.storage,o,this)},n.prototype.initCommonInfo=function(r){var o=Number(this.storage.getItem(X));try{var f=JSON.parse(this.storage.getItem(V));(Date.now()-o>3e4||!f)&&this.storage.setItem(V,JSON.stringify([]))}catch{}r.uploadUrl&&(this.uploadUrl=r.uploadUrl+"?appkey="+r.appkey);var b=[window.screen.width,window.screen.height];window.devicePixelRatio&&b.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:b.join("*"),channelID:r.channelID?String(r.channelID):"",openid:r.openid?String(r.openid):"",unid:r.unionid?String(r.unionid):"",sdkVersion:oe},this.config.appVersion=r.versionCode?String(r.versionCode):"",this.config.strictMode=r.strictMode},n.prototype.cycleTask=function(r){var o=this;this.intervalID=window.setInterval(function(){o.pauseSearching||o.store.getEvents().then(function(f){f.length==0&&(o.pauseSearching=!0);var b=[],k=JSON.parse(o.storage.getItem(V));k||(k=[]),f&&f.forEach(function(G){var de=R(G.mapValue);k.indexOf(de)==-1&&(b.push(G),k.push(de))}),b.length!=0&&(o.storage.setItem(V,JSON.stringify(k)),o._normalLogPipeline(o.assembleData(b)))}).catch(function(f){})},r)},n.prototype.onReport=function(r,o,f){var b=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var k=this.generateData(r,o,f);if(f&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(k));else{var G=k.shift();G&&this.store.insertEvent(G,function(de){de&&b.errorReport.reportError("604","insertEvent fail!")}).catch(function(de){b._normalLogPipeline(b.assembleData(k))})}}},n.prototype.onSendBeacon=function(r,o){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var f=this.assembleData(this.generateData(r,o,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(f))}},n.prototype.generateData=function(r,o,f){var b=[],k="4.5.14-web_"+(f?"direct_log_id":"normal_log_id"),G=Number(this.storage.getItem(k));return G=G||1,o=_(_({},o),{A99:f?"Y":"N",A100:G.toString(),A72:oe,A88:this.logidStartTime}),G++,this.storage.setItem(k,G.toString()),b.push({eventCode:r,eventTime:Date.now().toString(),mapValue:Q(o,this.config.strictMode)}),b},n.prototype.assembleData=function(r){var o=this.beaconSession.getSession();return{appVersion:this.config.appVersion?ue(this.config.appVersion):"",sdkId:"js",sdkVersion:oe,mainAppKey:this.config.appkey,platformId:3,common:Q(_(_({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:o.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:r}},n.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},n.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},n}(v)})},"./lib/crypto.js":function(g,m,u){(function(h){var x=u("./node_modules/@babel/runtime/helpers/typeof.js"),c=c||function(S,_){var N={},O=N.lib={},T=function(){},H=O.Base={extend:function(A){T.prototype=this;var v=new T;return A&&v.mixIn(A),v.hasOwnProperty("init")||(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var v in A)A.hasOwnProperty(v)&&(this[v]=A[v]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}},X=O.WordArray=H.extend({init:function(A,v){A=this.words=A||[],this.sigBytes=v!=_?v:4*A.length},toString:function(A){return(A||U).stringify(this)},concat:function(A){var v=this.words,W=A.words,p=this.sigBytes;if(A=A.sigBytes,this.clamp(),p%4)for(var q=0;q<A;q++)v[p+q>>>2]|=(W[q>>>2]>>>24-8*(q%4)&255)<<24-8*((p+q)%4);else if(65535<W.length)for(q=0;q<A;q+=4)v[p+q>>>2]=W[q>>>2];else v.push.apply(v,W);return this.sigBytes+=A,this},clamp:function(){var A=this.words,v=this.sigBytes;A[v>>>2]&=4294967295<<32-8*(v%4),A.length=S.ceil(v/4)},clone:function(){var A=H.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var v=[],W=0;W<A;W+=4)v.push(4294967296*S.random()|0);return new X.init(v,A)}}),V=N.enc={},U=V.Hex={stringify:function(A){var v=A.words;A=A.sigBytes;for(var W=[],p=0;p<A;p++){var q=v[p>>>2]>>>24-8*(p%4)&255;W.push((q>>>4).toString(16)),W.push((q&15).toString(16))}return W.join("")},parse:function(A){for(var v=A.length,W=[],p=0;p<v;p+=2)W[p>>>3]|=parseInt(A.substr(p,2),16)<<24-4*(p%8);return new X.init(W,v/2)}},M=V.Latin1={stringify:function(A){var v=A.words;A=A.sigBytes;for(var W=[],p=0;p<A;p++)W.push(String.fromCharCode(v[p>>>2]>>>24-8*(p%4)&255));return W.join("")},parse:function(A){for(var v=A.length,W=[],p=0;p<v;p++)W[p>>>2]|=(A.charCodeAt(p)&255)<<24-8*(p%4);return new X.init(W,v)}},re=V.Utf8={stringify:function(A){try{return decodeURIComponent(escape(M.stringify(A)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(A){return M.parse(unescape(encodeURIComponent(A)))}},Q=O.BufferedBlockAlgorithm=H.extend({reset:function(){this._data=new X.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=re.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var v=this._data,W=v.words,p=v.sigBytes,q=this.blockSize,j=p/(4*q),j=A?S.ceil(j):S.max((j|0)-this._minBufferSize,0);if(A=j*q,p=S.min(4*A,p),A){for(var I=0;I<A;I+=q)this._doProcessBlock(W,I);I=W.splice(0,A),v.sigBytes-=p}return new X.init(I,p)},clone:function(){var A=H.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0});O.Hasher=Q.extend({cfg:H.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){Q.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){return A&&this._append(A),this._doFinalize()},blockSize:16,_createHelper:function(A){return function(v,W){return new A.init(W).finalize(v)}},_createHmacHelper:function(A){return function(v,W){return new ue.HMAC.init(A,W).finalize(v)}}});var ue=N.algo={};return N}(Math);(function(){var S=c,T=S.lib,_=T.WordArray,N=T.Hasher,O=[],T=S.algo.SHA1=N.extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(X,V){for(var U=this._hash.words,M=U[0],re=U[1],Q=U[2],ue=U[3],R=U[4],A=0;80>A;A++){if(16>A)O[A]=X[V+A]|0;else{var v=O[A-3]^O[A-8]^O[A-14]^O[A-16];O[A]=v<<1|v>>>31}v=(M<<5|M>>>27)+R+O[A],v=20>A?v+((re&Q|~re&ue)+1518500249):40>A?v+((re^Q^ue)+1859775393):60>A?v+((re&Q|re&ue|Q&ue)-1894007588):v+((re^Q^ue)-899497514),R=ue,ue=Q,Q=re<<30|re>>>2,re=M,M=v}U[0]=U[0]+M|0,U[1]=U[1]+re|0,U[2]=U[2]+Q|0,U[3]=U[3]+ue|0,U[4]=U[4]+R|0},_doFinalize:function(){var X=this._data,V=X.words,U=8*this._nDataBytes,M=8*X.sigBytes;return V[M>>>5]|=128<<24-M%32,V[(M+64>>>9<<4)+14]=Math.floor(U/4294967296),V[(M+64>>>9<<4)+15]=U,X.sigBytes=4*V.length,this._process(),this._hash},clone:function(){var X=N.clone.call(this);return X._hash=this._hash.clone(),X}});S.SHA1=N._createHelper(T),S.HmacSHA1=N._createHmacHelper(T)})(),function(){var S=c,_=S.enc.Utf8;S.algo.HMAC=S.lib.Base.extend({init:function(O,T){O=this._hasher=new O.init,typeof T=="string"&&(T=_.parse(T));var H=O.blockSize,X=4*H;T.sigBytes>X&&(T=O.finalize(T)),T.clamp();for(var V=this._oKey=T.clone(),U=this._iKey=T.clone(),M=V.words,re=U.words,Q=0;Q<H;Q++)M[Q]^=1549556828,re[Q]^=909522486;V.sigBytes=U.sigBytes=X,this.reset()},reset:function(){var O=this._hasher;O.reset(),O.update(this._iKey)},update:function(O){return this._hasher.update(O),this},finalize:function(O){var T=this._hasher;return O=T.finalize(O),T.reset(),T.finalize(this._oKey.clone().concat(O))}})}(),function(){var S=c,_=S.lib,N=_.WordArray,O=S.enc;O.Base64={stringify:function(H){var X=H.words,V=H.sigBytes,U=this._map;H.clamp();for(var M=[],re=0;re<V;re+=3)for(var Q=X[re>>>2]>>>24-re%4*8&255,ue=X[re+1>>>2]>>>24-(re+1)%4*8&255,R=X[re+2>>>2]>>>24-(re+2)%4*8&255,A=Q<<16|ue<<8|R,v=0;v<4&&re+v*.75<V;v++)M.push(U.charAt(A>>>6*(3-v)&63));var W=U.charAt(64);if(W)for(;M.length%4;)M.push(W);return M.join("")},parse:function(H){var X=H.length,V=this._map,U=V.charAt(64);if(U){var M=H.indexOf(U);M!=-1&&(X=M)}for(var re=[],Q=0,ue=0;ue<X;ue++)if(ue%4){var R=V.indexOf(H.charAt(ue-1))<<ue%4*2,A=V.indexOf(H.charAt(ue))>>>6-ue%4*2;re[Q>>>2]|=(R|A)<<24-Q%4*8,Q++}return N.create(re,Q)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),x(h)==="object"?h.exports=c:window.CryptoJS=c}).call(this,u("./node_modules/webpack/buildin/module.js")(g))},"./lib/json2xml.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js"),x="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",c="-.0-9\xB7\u0300-\u036F\u203F\u2040",S=new RegExp("^([^"+x+"])|^((x|X)(m|M)(l|L))|([^"+x+c+"])","g"),_=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,N=function(V){var U=[];if(V instanceof Object)for(var M in V)V.hasOwnProperty(M)&&U.push(M);return U},O=function(V,U){var M=function(Q,ue,R,A,v){var W=U.indent!==void 0?U.indent:" ",p=U.prettyPrint?`
  2. `+new Array(A).join(W):"";U.removeIllegalNameCharacters&&(Q=Q.replace(S,"_"));var q=[p,"<",Q,R||""];return ue&&ue.length>0?(q.push(">"),q.push(ue),v&&q.push(p),q.push("</"),q.push(Q),q.push(">")):q.push("/>"),q.join("")};return function re(Q,ue,R){var A=h(Q);switch((Array.isArray?Array.isArray(Q):Q instanceof Array)?A="array":Q instanceof Date&&(A="date"),A){case"array":var v=[];return Q.map(function(j){v.push(re(j,1,R+1))}),U.prettyPrint&&v.push(`
  3. `),v.join("");case"date":return Q.toJSON?Q.toJSON():Q+"";case"object":var W=[];for(var p in Q)if(Q.hasOwnProperty(p))if(Q[p]instanceof Array)for(var q=0;q<Q[p].length;q++)Q[p].hasOwnProperty(q)&&W.push(M(p,re(Q[p][q],0,R+1),null,R+1,N(Q[p][q]).length));else W.push(M(p,re(Q[p],0,R+1),null,R+1));return U.prettyPrint&&W.length>0&&W.push(`
  4. `),W.join("");case"function":return Q();default:return U.escape?H(Q):""+Q}}(V,0,0)},T=function(V){var U=['<?xml version="1.0" encoding="UTF-8"'];return V&&U.push(' standalone="yes"'),U.push("?>"),U.join("")};function H(X){return(""+X).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(_,"")}g.exports=function(X,V){if(V||(V={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof X=="string")try{X=JSON.parse(X.toString())}catch{return!1}var U="",M="";V&&(h(V)=="object"?(V.xmlHeader&&(U=T(!!V.xmlHeader.standalone)),typeof V.docType!="undefined"&&(M="<!DOCTYPE "+V.docType+">")):U=T()),V=V||{};var re=[U,V.prettyPrint&&M?`
  5. `:"",M,O(X,V)];return re.join("").replace(/\n{2,}/g,`
  6. `).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__webpack_require__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(g){return Object.prototype.toString.call(g)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(g){return _typeof(g)==="object"&&g.buffer&&g.buffer.constructor===ArrayBuffer});var createOutputMethod=function(m){return function(u,h){return new Md5(!0).update(u,h)[m]()}},createMethod=function(){var m=createOutputMethod("hex");NODE_JS&&(m=nodeWrap(m)),m.getCtx=m.create=function(){return new Md5},m.update=function(x){return m.create().update(x)};for(var u=0;u<OUTPUT_TYPES.length;++u){var h=OUTPUT_TYPES[u];m[h]=createOutputMethod(h)}return m},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function g(m){if(typeof m=="string")return crypto.createHash("md5").update(m,"utf8").digest("hex");if(m==null)throw ERROR;return m.constructor===ArrayBuffer&&(m=new Uint8Array(m)),Array.isArray(m)||ArrayBuffer.isView(m)||m.constructor===Buffer?crypto.createHash("md5").update(new Buffer(m)).digest("hex"):method(m)};return nodeMethod};function Md5(g){if(g)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var m=new ArrayBuffer(68);this.buffer8=new Uint8Array(m),this.blocks=new Uint32Array(m)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(g,m){if(!this.finalized){for(var u,h=0,x,c=g.length,S=this.blocks,_=this.buffer8;h<c;){if(this.hashed&&(this.hashed=!1,S[0]=S[16],S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0),ARRAY_BUFFER)for(x=this.start;h<c&&x<64;++h)u=g.charCodeAt(h),m||u<128?_[x++]=u:u<2048?(_[x++]=192|u>>6,_[x++]=128|u&63):u<55296||u>=57344?(_[x++]=224|u>>12,_[x++]=128|u>>6&63,_[x++]=128|u&63):(u=65536+((u&1023)<<10|g.charCodeAt(++h)&1023),_[x++]=240|u>>18,_[x++]=128|u>>12&63,_[x++]=128|u>>6&63,_[x++]=128|u&63);else for(x=this.start;h<c&&x<64;++h)u=g.charCodeAt(h),m||u<128?S[x>>2]|=u<<SHIFT[x++&3]:u<2048?(S[x>>2]|=(192|u>>6)<<SHIFT[x++&3],S[x>>2]|=(128|u&63)<<SHIFT[x++&3]):u<55296||u>=57344?(S[x>>2]|=(224|u>>12)<<SHIFT[x++&3],S[x>>2]|=(128|u>>6&63)<<SHIFT[x++&3],S[x>>2]|=(128|u&63)<<SHIFT[x++&3]):(u=65536+((u&1023)<<10|g.charCodeAt(++h)&1023),S[x>>2]|=(240|u>>18)<<SHIFT[x++&3],S[x>>2]|=(128|u>>12&63)<<SHIFT[x++&3],S[x>>2]|=(128|u>>6&63)<<SHIFT[x++&3],S[x>>2]|=(128|u&63)<<SHIFT[x++&3]);this.lastByteIndex=x,this.bytes+=x-this.start,x>=64?(this.start=x-64,this.hash(),this.hashed=!0):this.start=x}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var g=this.blocks,m=this.lastByteIndex;g[m>>2]|=EXTRA[m&3],m>=56&&(this.hashed||this.hash(),g[0]=g[16],g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0),g[14]=this.bytes<<3,g[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var g,m,u,h,x,c,S=this.blocks;this.first?(g=S[0]-680876937,g=(g<<7|g>>>25)-271733879<<0,h=(-1732584194^g&2004318071)+S[1]-117830708,h=(h<<12|h>>>20)+g<<0,u=(-271733879^h&(g^-271733879))+S[2]-1126478375,u=(u<<17|u>>>15)+h<<0,m=(g^u&(h^g))+S[3]-1316259209,m=(m<<22|m>>>10)+u<<0):(g=this.h0,m=this.h1,u=this.h2,h=this.h3,g+=(h^m&(u^h))+S[0]-680876936,g=(g<<7|g>>>25)+m<<0,h+=(u^g&(m^u))+S[1]-389564586,h=(h<<12|h>>>20)+g<<0,u+=(m^h&(g^m))+S[2]+606105819,u=(u<<17|u>>>15)+h<<0,m+=(g^u&(h^g))+S[3]-1044525330,m=(m<<22|m>>>10)+u<<0),g+=(h^m&(u^h))+S[4]-176418897,g=(g<<7|g>>>25)+m<<0,h+=(u^g&(m^u))+S[5]+1200080426,h=(h<<12|h>>>20)+g<<0,u+=(m^h&(g^m))+S[6]-1473231341,u=(u<<17|u>>>15)+h<<0,m+=(g^u&(h^g))+S[7]-45705983,m=(m<<22|m>>>10)+u<<0,g+=(h^m&(u^h))+S[8]+1770035416,g=(g<<7|g>>>25)+m<<0,h+=(u^g&(m^u))+S[9]-1958414417,h=(h<<12|h>>>20)+g<<0,u+=(m^h&(g^m))+S[10]-42063,u=(u<<17|u>>>15)+h<<0,m+=(g^u&(h^g))+S[11]-1990404162,m=(m<<22|m>>>10)+u<<0,g+=(h^m&(u^h))+S[12]+1804603682,g=(g<<7|g>>>25)+m<<0,h+=(u^g&(m^u))+S[13]-40341101,h=(h<<12|h>>>20)+g<<0,u+=(m^h&(g^m))+S[14]-1502002290,u=(u<<17|u>>>15)+h<<0,m+=(g^u&(h^g))+S[15]+1236535329,m=(m<<22|m>>>10)+u<<0,g+=(u^h&(m^u))+S[1]-165796510,g=(g<<5|g>>>27)+m<<0,h+=(m^u&(g^m))+S[6]-1069501632,h=(h<<9|h>>>23)+g<<0,u+=(g^m&(h^g))+S[11]+643717713,u=(u<<14|u>>>18)+h<<0,m+=(h^g&(u^h))+S[0]-373897302,m=(m<<20|m>>>12)+u<<0,g+=(u^h&(m^u))+S[5]-701558691,g=(g<<5|g>>>27)+m<<0,h+=(m^u&(g^m))+S[10]+38016083,h=(h<<9|h>>>23)+g<<0,u+=(g^m&(h^g))+S[15]-660478335,u=(u<<14|u>>>18)+h<<0,m+=(h^g&(u^h))+S[4]-405537848,m=(m<<20|m>>>12)+u<<0,g+=(u^h&(m^u))+S[9]+568446438,g=(g<<5|g>>>27)+m<<0,h+=(m^u&(g^m))+S[14]-1019803690,h=(h<<9|h>>>23)+g<<0,u+=(g^m&(h^g))+S[3]-187363961,u=(u<<14|u>>>18)+h<<0,m+=(h^g&(u^h))+S[8]+1163531501,m=(m<<20|m>>>12)+u<<0,g+=(u^h&(m^u))+S[13]-1444681467,g=(g<<5|g>>>27)+m<<0,h+=(m^u&(g^m))+S[2]-51403784,h=(h<<9|h>>>23)+g<<0,u+=(g^m&(h^g))+S[7]+1735328473,u=(u<<14|u>>>18)+h<<0,m+=(h^g&(u^h))+S[12]-1926607734,m=(m<<20|m>>>12)+u<<0,x=m^u,g+=(x^h)+S[5]-378558,g=(g<<4|g>>>28)+m<<0,h+=(x^g)+S[8]-2022574463,h=(h<<11|h>>>21)+g<<0,c=h^g,u+=(c^m)+S[11]+1839030562,u=(u<<16|u>>>16)+h<<0,m+=(c^u)+S[14]-35309556,m=(m<<23|m>>>9)+u<<0,x=m^u,g+=(x^h)+S[1]-1530992060,g=(g<<4|g>>>28)+m<<0,h+=(x^g)+S[4]+1272893353,h=(h<<11|h>>>21)+g<<0,c=h^g,u+=(c^m)+S[7]-155497632,u=(u<<16|u>>>16)+h<<0,m+=(c^u)+S[10]-1094730640,m=(m<<23|m>>>9)+u<<0,x=m^u,g+=(x^h)+S[13]+681279174,g=(g<<4|g>>>28)+m<<0,h+=(x^g)+S[0]-358537222,h=(h<<11|h>>>21)+g<<0,c=h^g,u+=(c^m)+S[3]-722521979,u=(u<<16|u>>>16)+h<<0,m+=(c^u)+S[6]+76029189,m=(m<<23|m>>>9)+u<<0,x=m^u,g+=(x^h)+S[9]-640364487,g=(g<<4|g>>>28)+m<<0,h+=(x^g)+S[12]-421815835,h=(h<<11|h>>>21)+g<<0,c=h^g,u+=(c^m)+S[15]+530742520,u=(u<<16|u>>>16)+h<<0,m+=(c^u)+S[2]-995338651,m=(m<<23|m>>>9)+u<<0,g+=(u^(m|~h))+S[0]-198630844,g=(g<<6|g>>>26)+m<<0,h+=(m^(g|~u))+S[7]+1126891415,h=(h<<10|h>>>22)+g<<0,u+=(g^(h|~m))+S[14]-1416354905,u=(u<<15|u>>>17)+h<<0,m+=(h^(u|~g))+S[5]-57434055,m=(m<<21|m>>>11)+u<<0,g+=(u^(m|~h))+S[12]+1700485571,g=(g<<6|g>>>26)+m<<0,h+=(m^(g|~u))+S[3]-1894986606,h=(h<<10|h>>>22)+g<<0,u+=(g^(h|~m))+S[10]-1051523,u=(u<<15|u>>>17)+h<<0,m+=(h^(u|~g))+S[1]-2054922799,m=(m<<21|m>>>11)+u<<0,g+=(u^(m|~h))+S[8]+1873313359,g=(g<<6|g>>>26)+m<<0,h+=(m^(g|~u))+S[15]-30611744,h=(h<<10|h>>>22)+g<<0,u+=(g^(h|~m))+S[6]-1560198380,u=(u<<15|u>>>17)+h<<0,m+=(h^(u|~g))+S[13]+1309151649,m=(m<<21|m>>>11)+u<<0,g+=(u^(m|~h))+S[4]-145523070,g=(g<<6|g>>>26)+m<<0,h+=(m^(g|~u))+S[11]-1120210379,h=(h<<10|h>>>22)+g<<0,u+=(g^(h|~m))+S[2]+718787259,u=(u<<15|u>>>17)+h<<0,m+=(h^(u|~g))+S[9]-343485551,m=(m<<21|m>>>11)+u<<0,this.first?(this.h0=g+1732584193<<0,this.h1=m-271733879<<0,this.h2=u-1732584194<<0,this.h3=h+271733878<<0,this.first=!1):(this.h0=this.h0+g<<0,this.h1=this.h1+m<<0,this.h2=this.h2+u<<0,this.h3=this.h3+h<<0)},Md5.prototype.hex=function(){this.finalize();var g=this.h0,m=this.h1,u=this.h2,h=this.h3;return HEX_CHARS[g>>4&15]+HEX_CHARS[g&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[m&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[h&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(g){if(g==="hex")return this.hex();this.finalize();var m=this.h0,u=this.h1,h=this.h2,x=this.h3,c=[m&255,m>>8&255,m>>16&255,m>>24&255,u&255,u>>8&255,u>>16&255,u>>24&255,h&255,h>>8&255,h>>16&255,h>>24&255,x&255,x>>8&255,x>>16&255,x>>24&255];return c},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var g=new ArrayBuffer(16),m=new Uint32Array(g);return m[0]=this.h0,m[1]=this.h1,m[2]=this.h2,m[3]=this.h3,g},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var g,m,u,h="",x=this.array(),c=0;c<15;)g=x[c++],m=x[c++],u=x[c++],h+=BASE64_ENCODE_CHAR[g>>>2]+BASE64_ENCODE_CHAR[(g<<4|m>>>4)&63]+BASE64_ENCODE_CHAR[(m<<2|u>>>6)&63]+BASE64_ENCODE_CHAR[u&63];return g=x[c],h+=BASE64_ENCODE_CHAR[g>>>2]+BASE64_ENCODE_CHAR[g<<4&63]+"==",h};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__("./node_modules/process/browser.js"),__webpack_require__("./node_modules/webpack/buildin/global.js"),__webpack_require__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js"),x=function(T){switch(h(T)){case"string":return T;case"boolean":return T?"true":"false";case"number":return isFinite(T)?T:"";default:return""}},c=function(T,H,X,V){return H=H||"&",X=X||"=",T===null&&(T=void 0),h(T)==="object"?Object.keys(T).map(function(U){var M=encodeURIComponent(x(U))+X;return Array.isArray(T[U])?T[U].map(function(re){return M+encodeURIComponent(x(re))}).join(H):M+encodeURIComponent(x(T[U]))}).filter(Boolean).join(H):V?encodeURIComponent(x(V))+X+encodeURIComponent(x(T)):""},S=function(T,H,X){var V={};return H.getAllResponseHeaders().trim().split(`
  7. `).forEach(function(U){if(U){var M=U.indexOf(":"),re=U.substr(0,M).trim().toLowerCase(),Q=U.substr(M+1).trim();V[re]=Q}}),{error:T,statusCode:H.status,statusMessage:H.statusText,headers:V,body:X}},_=function(T,H){return!H&&H==="text"?T.responseText:T.response},N=function(T,H){var X=(T.method||"GET").toUpperCase(),V=T.url;if(T.qs){var U=c(T.qs);U&&(V+=(V.indexOf("?")===-1?"?":"&")+U)}var M=new XMLHttpRequest;if(M.open(X,V,!0),M.responseType=T.dataType||"text",T.xhrFields)for(var re in T.xhrFields)M[re]=T.xhrFields[re];var Q=T.headers;if(Q)for(var ue in Q)Q.hasOwnProperty(ue)&&ue.toLowerCase()!=="content-length"&&ue.toLowerCase()!=="user-agent"&&ue.toLowerCase()!=="origin"&&ue.toLowerCase()!=="host"&&M.setRequestHeader(ue,Q[ue]);return T.onProgress&&M.upload&&(M.upload.onprogress=T.onProgress),T.onDownloadProgress&&(M.onprogress=T.onDownloadProgress),T.timeout&&(M.timeout=T.timeout),M.ontimeout=function(R){var A=new Error("timeout");H(S(A,M))},M.onload=function(){H(S(null,M,_(M,T.dataType)))},M.onerror=function(R){var A=_(M,T.dataType);if(A)H(S(null,M,A));else{var v=M.statusText;!v&&M.status===0&&(v=new Error("CORS blocked or network error")),H(S(v,M,A))}},M.send(T.body||""),M};g.exports=N},"./lib/xml2json.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,x=function(){this.version="1.3.5";var S={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},_=new RegExp(/(?!xmlns)^.*:/);return this.grokType=function(N){return/^\s*$/.test(N)?null:/^(?:true|false)$/i.test(N)?N.toLowerCase()==="true":isFinite(N)?parseFloat(N):N},this.parseString=function(N,O){if(N){var T=this.stringToXML(N);return T.getElementsByTagName("parsererror").length?null:this.parseXML(T,O)}else return null},this.parseXML=function(N,O){for(var T in O)S[T]=O[T];var H={},X=0,V="",U=N.childNodes.length;if(U)for(var M,re,Q,ue=0;ue<N.childNodes.length;ue++)M=N.childNodes.item(ue),M.nodeType===4?S.mergeCDATA&&(V+=M.nodeValue):M.nodeType===3?V+=M.nodeValue:M.nodeType===1&&(X===0&&(H={}),S.stripElemPrefix?re=M.nodeName.replace(_,""):re=M.nodeName,Q=x.parseXML(M),H.hasOwnProperty(re)?(H[re].constructor!==Array&&(H[re]=[H[re]]),H[re].push(Q)):(H[re]=Q,X++));return Object.keys(H).length||(H=V||""),H},this.xmlToString=function(N){try{var O=N.xml?N.xml:new XMLSerializer().serializeToString(N);return O}catch{return null}},this.stringToXML=function(N){try{var O=null;if(window.DOMParser){var T=new h;return O=T.parseFromString(N,"text/xml"),O}else return O=new ActiveXObject("Microsoft.XMLDOM"),O.async=!1,O.loadXML(N),O}catch{return null}},this}.call({}),c=function(_){return x.parseString(_)};g.exports=c},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(g,m){function u(h,x){if(!(h instanceof x))throw new TypeError("Cannot call a class as a function")}g.exports=u,g.exports.__esModule=!0,g.exports.default=g.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function x(S,_){for(var N=0;N<_.length;N++){var O=_[N];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(S,h(O.key),O)}}function c(S,_,N){return _&&x(S.prototype,_),N&&x(S,N),Object.defineProperty(S,"prototype",{writable:!1}),S}g.exports=c,g.exports.__esModule=!0,g.exports.default=g.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js").default;function x(c,S){if(h(c)!=="object"||c===null)return c;var _=c[Symbol.toPrimitive];if(_!==void 0){var N=_.call(c,S||"default");if(h(N)!=="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(c)}g.exports=x,g.exports.__esModule=!0,g.exports.default=g.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js").default,x=u("./node_modules/@babel/runtime/helpers/toPrimitive.js");function c(S){var _=x(S,"string");return h(_)==="symbol"?_:String(_)}g.exports=c,g.exports.__esModule=!0,g.exports.default=g.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(g,m){function u(h){return g.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},g.exports.__esModule=!0,g.exports.default=g.exports,u(h)}g.exports=u,g.exports.__esModule=!0,g.exports.default=g.exports},"./node_modules/@xmldom/xmldom/lib/conventions.js":function(g,m,u){function h(N,O,T){if(T===void 0&&(T=Array.prototype),N&&typeof T.find=="function")return T.find.call(N,O);for(var H=0;H<N.length;H++)if(Object.prototype.hasOwnProperty.call(N,H)){var X=N[H];if(O.call(void 0,X,H,N))return X}}function x(N,O){return O===void 0&&(O=Object),O&&typeof O.freeze=="function"?O.freeze(N):N}function c(N,O){if(N===null||typeof N!="object")throw new TypeError("target is not an object");for(var T in O)Object.prototype.hasOwnProperty.call(O,T)&&(N[T]=O[T]);return N}var S=x({HTML:"text/html",isHTML:function(N){return N===S.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),_=x({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(N){return N===_.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});m.assign=c,m.find=h,m.freeze=x,m.MIME_TYPE=S,m.NAMESPACE=_},"./node_modules/@xmldom/xmldom/lib/dom-parser.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/conventions.js"),x=u("./node_modules/@xmldom/xmldom/lib/dom.js"),c=u("./node_modules/@xmldom/xmldom/lib/entities.js"),S=u("./node_modules/@xmldom/xmldom/lib/sax.js"),_=x.DOMImplementation,N=h.NAMESPACE,O=S.ParseError,T=S.XMLReader;function H(R){return R.replace(/\r[\n\u0085]/g,`
  8. `).replace(/[\r\u0085\u2028]/g,`
  9. `)}function X(R){this.options=R||{locator:{}}}X.prototype.parseFromString=function(R,A){var v=this.options,W=new T,p=v.domBuilder||new U,q=v.errorHandler,j=v.locator,I=v.xmlns||{},L=/\/x?html?$/.test(A),B=L?c.HTML_ENTITIES:c.XML_ENTITIES;j&&p.setDocumentLocator(j),W.errorHandler=V(q,p,j),W.domBuilder=v.domBuilder||p,L&&(I[""]=N.HTML),I.xml=I.xml||N.XML;var P=v.normalizeLineEndings||H;return R&&typeof R=="string"?W.parse(P(R),I,B):W.errorHandler.error("invalid doc source"),p.doc};function V(R,A,v){if(!R){if(A instanceof U)return A;R=A}var W={},p=R instanceof Function;v=v||{};function q(j){var I=R[j];!I&&p&&(I=R.length==2?function(L){R(j,L)}:R),W[j]=I&&function(L){I("[xmldom "+j+"] "+L+re(v))}||function(){}}return q("warning"),q("error"),q("fatalError"),W}function U(){this.cdata=!1}function M(R,A){A.lineNumber=R.lineNumber,A.columnNumber=R.columnNumber}U.prototype={startDocument:function(){this.doc=new _().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(R,A,v,W){var p=this.doc,q=p.createElementNS(R,v||A),j=W.length;ue(this,q),this.currentElement=q,this.locator&&M(this.locator,q);for(var I=0;I<j;I++){var R=W.getURI(I),L=W.getValue(I),v=W.getQName(I),B=p.createAttributeNS(R,v);this.locator&&M(W.getLocator(I),B),B.value=B.nodeValue=L,q.setAttributeNode(B)}},endElement:function(R,A,v){var W=this.currentElement;W.tagName,this.currentElement=W.parentNode},startPrefixMapping:function(R,A){},endPrefixMapping:function(R){},processingInstruction:function(R,A){var v=this.doc.createProcessingInstruction(R,A);this.locator&&M(this.locator,v),ue(this,v)},ignorableWhitespace:function(R,A,v){},characters:function(R,A,v){if(R=Q.apply(this,arguments),R){if(this.cdata)var W=this.doc.createCDATASection(R);else var W=this.doc.createTextNode(R);this.currentElement?this.currentElement.appendChild(W):/^\s*$/.test(R)&&this.doc.appendChild(W),this.locator&&M(this.locator,W)}},skippedEntity:function(R){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(R){(this.locator=R)&&(R.lineNumber=0)},comment:function(R,A,v){R=Q.apply(this,arguments);var W=this.doc.createComment(R);this.locator&&M(this.locator,W),ue(this,W)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(R,A,v){var W=this.doc.implementation;if(W&&W.createDocumentType){var p=W.createDocumentType(R,A,v);this.locator&&M(this.locator,p),ue(this,p),this.doc.doctype=p}},warning:function(R){console.warn("[xmldom warning] "+R,re(this.locator))},error:function(R){console.error("[xmldom error] "+R,re(this.locator))},fatalError:function(R){throw new O(R,this.locator)}};function re(R){if(R)return`
  10. @`+(R.systemId||"")+"#[line:"+R.lineNumber+",col:"+R.columnNumber+"]"}function Q(R,A,v){return typeof R=="string"?R.substr(A,v):R.length>=A+v||A?new java.lang.String(R,A,v)+"":R}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(R){U.prototype[R]=function(){return null}});function ue(R,A){R.currentElement?R.currentElement.appendChild(A):R.doc.appendChild(A)}m.__DOMHandler=U,m.normalizeLineEndings=H,m.DOMParser=X},"./node_modules/@xmldom/xmldom/lib/dom.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/conventions.js"),x=h.find,c=h.NAMESPACE;function S(i){return i!==""}function _(i){return i?i.split(/[\t\n\f\r ]+/).filter(S):[]}function N(i,l){return i.hasOwnProperty(l)||(i[l]=!0),i}function O(i){if(!i)return[];var l=_(i);return Object.keys(l.reduce(N,{}))}function T(i){return function(l){return i&&i.indexOf(l)!==-1}}function H(i,l){for(var E in i)Object.prototype.hasOwnProperty.call(i,E)&&(l[E]=i[E])}function X(i,l){var E=i.prototype;if(!(E instanceof l)){let F=function(){};F.prototype=l.prototype,F=new F,H(E,F),i.prototype=E=F}E.constructor!=i&&(typeof i!="function"&&console.error("unknown Class:"+i),E.constructor=i)}var V={},U=V.ELEMENT_NODE=1,M=V.ATTRIBUTE_NODE=2,re=V.TEXT_NODE=3,Q=V.CDATA_SECTION_NODE=4,ue=V.ENTITY_REFERENCE_NODE=5,R=V.ENTITY_NODE=6,A=V.PROCESSING_INSTRUCTION_NODE=7,v=V.COMMENT_NODE=8,W=V.DOCUMENT_NODE=9,p=V.DOCUMENT_TYPE_NODE=10,q=V.DOCUMENT_FRAGMENT_NODE=11,j=V.NOTATION_NODE=12,I={},L={};I.INDEX_SIZE_ERR=(L[1]="Index size error",1),I.DOMSTRING_SIZE_ERR=(L[2]="DOMString size error",2);var B=I.HIERARCHY_REQUEST_ERR=(L[3]="Hierarchy request error",3);I.WRONG_DOCUMENT_ERR=(L[4]="Wrong document",4),I.INVALID_CHARACTER_ERR=(L[5]="Invalid character",5),I.NO_DATA_ALLOWED_ERR=(L[6]="No data allowed",6),I.NO_MODIFICATION_ALLOWED_ERR=(L[7]="No modification allowed",7);var P=I.NOT_FOUND_ERR=(L[8]="Not found",8);I.NOT_SUPPORTED_ERR=(L[9]="Not supported",9);var K=I.INUSE_ATTRIBUTE_ERR=(L[10]="Attribute in use",10);I.INVALID_STATE_ERR=(L[11]="Invalid state",11),I.SYNTAX_ERR=(L[12]="Syntax error",12),I.INVALID_MODIFICATION_ERR=(L[13]="Invalid modification",13),I.NAMESPACE_ERR=(L[14]="Invalid namespace",14),I.INVALID_ACCESS_ERR=(L[15]="Invalid access",15);function z(i,l){if(l instanceof Error)var E=l;else E=this,Error.call(this,L[i]),this.message=L[i],Error.captureStackTrace&&Error.captureStackTrace(this,z);return E.code=i,l&&(this.message=this.message+": "+l),E}z.prototype=Error.prototype,H(I,z);function $(){}$.prototype={length:0,item:function(i){return i>=0&&i<this.length?this[i]:null},toString:function(i,l){for(var E=[],F=0;F<this.length;F++)Xe(this[F],E,i,l);return E.join("")},filter:function(i){return Array.prototype.filter.call(this,i)},indexOf:function(i){return Array.prototype.indexOf.call(this,i)}};function ne(i,l){this._node=i,this._refresh=l,ce(this)}function ce(i){var l=i._node._inc||i._node.ownerDocument._inc;if(i._inc!==l){var E=i._refresh(i._node);if(nt(i,"length",E.length),!i.$$length||E.length<i.$$length)for(var F=E.length;F in i;F++)Object.prototype.hasOwnProperty.call(i,F)&&delete i[F];H(E,i),i._inc=l}}ne.prototype.item=function(i){return ce(this),this[i]||null},X(ne,$);function ie(){}function ee(i,l){for(var E=i.length;E--;)if(i[E]===l)return E}function le(i,l,E,F){if(F?l[ee(l,F)]=E:l[l.length++]=E,i){E.ownerElement=i;var fe=i.ownerDocument;fe&&(F&&ve(fe,i,F),ge(fe,i,E))}}function se(i,l,E){var F=ee(l,E);if(F>=0){for(var fe=l.length-1;F<fe;)l[F]=l[++F];if(l.length=fe,i){var xe=i.ownerDocument;xe&&(ve(xe,i,E),E.ownerElement=null)}}else throw new z(P,new Error(i.tagName+"@"+E))}ie.prototype={length:0,item:$.prototype.item,getNamedItem:function(i){for(var l=this.length;l--;){var E=this[l];if(E.nodeName==i)return E}},setNamedItem:function(i){var l=i.ownerElement;if(l&&l!=this._ownerElement)throw new z(K);var E=this.getNamedItem(i.nodeName);return le(this._ownerElement,this,i,E),E},setNamedItemNS:function(i){var l=i.ownerElement,E;if(l&&l!=this._ownerElement)throw new z(K);return E=this.getNamedItemNS(i.namespaceURI,i.localName),le(this._ownerElement,this,i,E),E},removeNamedItem:function(i){var l=this.getNamedItem(i);return se(this._ownerElement,this,l),l},removeNamedItemNS:function(i,l){var E=this.getNamedItemNS(i,l);return se(this._ownerElement,this,E),E},getNamedItemNS:function(i,l){for(var E=this.length;E--;){var F=this[E];if(F.localName==l&&F.namespaceURI==i)return F}return null}};function ye(){}ye.prototype={hasFeature:function(i,l){return!0},createDocument:function(i,l,E){var F=new me;if(F.implementation=this,F.childNodes=new $,F.doctype=E||null,E&&F.appendChild(E),l){var fe=F.createElementNS(i,l);F.appendChild(fe)}return F},createDocumentType:function(i,l,E){var F=new Se;return F.name=i,F.nodeName=i,F.publicId=l||"",F.systemId=E||"",F}};function Y(){}Y.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(i,l){return o(this,i,l)},replaceChild:function(i,l){o(this,i,l,r),l&&this.removeChild(l)},removeChild:function(i){return De(this,i)},appendChild:function(i){return this.insertBefore(i,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(i){return et(this.ownerDocument||this,this,i)},normalize:function(){for(var i=this.firstChild;i;){var l=i.nextSibling;l&&l.nodeType==re&&i.nodeType==re?(this.removeChild(l),i.appendData(l.data)):(i.normalize(),i=l)}},isSupported:function(i,l){return this.ownerDocument.implementation.hasFeature(i,l)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(i){for(var l=this;l;){var E=l._nsMap;if(E){for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F)&&E[F]===i)return F}l=l.nodeType==M?l.ownerDocument:l.parentNode}return null},lookupNamespaceURI:function(i){for(var l=this;l;){var E=l._nsMap;if(E&&Object.prototype.hasOwnProperty.call(E,i))return E[i];l=l.nodeType==M?l.ownerDocument:l.parentNode}return null},isDefaultNamespace:function(i){var l=this.lookupPrefix(i);return l==null}};function te(i){return i=="<"&&"&lt;"||i==">"&&"&gt;"||i=="&"&&"&amp;"||i=='"'&&"&quot;"||"&#"+i.charCodeAt()+";"}H(V,Y),H(V,Y.prototype);function pe(i,l){if(l(i))return!0;if(i=i.firstChild)do if(pe(i,l))return!0;while(i=i.nextSibling)}function me(){this.ownerDocument=this}function ge(i,l,E){i&&i._inc++;var F=E.namespaceURI;F===c.XMLNS&&(l._nsMap[E.prefix?E.localName:""]=E.value)}function ve(i,l,E,F){i&&i._inc++;var fe=E.namespaceURI;fe===c.XMLNS&&delete l._nsMap[E.prefix?E.localName:""]}function Ce(i,l,E){if(i&&i._inc){i._inc++;var F=l.childNodes;if(E)F[F.length++]=E;else{for(var fe=l.firstChild,xe=0;fe;)F[xe++]=fe,fe=fe.nextSibling;F.length=xe,delete F[F.length]}}}function De(i,l){var E=l.previousSibling,F=l.nextSibling;return E?E.nextSibling=F:i.firstChild=F,F?F.previousSibling=E:i.lastChild=E,l.parentNode=null,l.previousSibling=null,l.nextSibling=null,Ce(i.ownerDocument,i),l}function be(i){return i&&(i.nodeType===Y.DOCUMENT_NODE||i.nodeType===Y.DOCUMENT_FRAGMENT_NODE||i.nodeType===Y.ELEMENT_NODE)}function Te(i){return i&&(Fe(i)||Me(i)||ke(i)||i.nodeType===Y.DOCUMENT_FRAGMENT_NODE||i.nodeType===Y.COMMENT_NODE||i.nodeType===Y.PROCESSING_INSTRUCTION_NODE)}function ke(i){return i&&i.nodeType===Y.DOCUMENT_TYPE_NODE}function Fe(i){return i&&i.nodeType===Y.ELEMENT_NODE}function Me(i){return i&&i.nodeType===Y.TEXT_NODE}function Pe(i,l){var E=i.childNodes||[];if(x(E,Fe)||ke(l))return!1;var F=x(E,ke);return!(l&&F&&E.indexOf(F)>E.indexOf(l))}function oe(i,l){var E=i.childNodes||[];function F(xe){return Fe(xe)&&xe!==l}if(x(E,F))return!1;var fe=x(E,ke);return!(l&&fe&&E.indexOf(fe)>E.indexOf(l))}function s(i,l,E){if(!be(i))throw new z(B,"Unexpected parent node type "+i.nodeType);if(E&&E.parentNode!==i)throw new z(P,"child not in parent");if(!Te(l)||ke(l)&&i.nodeType!==Y.DOCUMENT_NODE)throw new z(B,"Unexpected node type "+l.nodeType+" for parent node type "+i.nodeType)}function n(i,l,E){var F=i.childNodes||[],fe=l.childNodes||[];if(l.nodeType===Y.DOCUMENT_FRAGMENT_NODE){var xe=fe.filter(Fe);if(xe.length>1||x(fe,Me))throw new z(B,"More than one element or text in fragment");if(xe.length===1&&!Pe(i,E))throw new z(B,"Element in fragment can not be inserted before doctype")}if(Fe(l)&&!Pe(i,E))throw new z(B,"Only one element can be added and only after doctype");if(ke(l)){if(x(F,ke))throw new z(B,"Only one doctype is allowed");var Ne=x(F,Fe);if(E&&F.indexOf(Ne)<F.indexOf(E))throw new z(B,"Doctype can only be inserted before an element");if(!E&&Ne)throw new z(B,"Doctype can not be appended since element is present")}}function r(i,l,E){var F=i.childNodes||[],fe=l.childNodes||[];if(l.nodeType===Y.DOCUMENT_FRAGMENT_NODE){var xe=fe.filter(Fe);if(xe.length>1||x(fe,Me))throw new z(B,"More than one element or text in fragment");if(xe.length===1&&!oe(i,E))throw new z(B,"Element in fragment can not be inserted before doctype")}if(Fe(l)&&!oe(i,E))throw new z(B,"Only one element can be added and only after doctype");if(ke(l)){if(x(F,function(Qe){return ke(Qe)&&Qe!==E}))throw new z(B,"Only one doctype is allowed");var Ne=x(F,Fe);if(E&&F.indexOf(Ne)<F.indexOf(E))throw new z(B,"Doctype can only be inserted before an element")}}function o(i,l,E,F){s(i,l,E),i.nodeType===Y.DOCUMENT_NODE&&(F||n)(i,l,E);var fe=l.parentNode;if(fe&&fe.removeChild(l),l.nodeType===q){var xe=l.firstChild;if(xe==null)return l;var Ne=l.lastChild}else xe=Ne=l;var ae=E?E.previousSibling:i.lastChild;xe.previousSibling=ae,Ne.nextSibling=E,ae?ae.nextSibling=xe:i.firstChild=xe,E==null?i.lastChild=Ne:E.previousSibling=Ne;do xe.parentNode=i;while(xe!==Ne&&(xe=xe.nextSibling));return Ce(i.ownerDocument||i,i),l.nodeType==q&&(l.firstChild=l.lastChild=null),l}function f(i,l){return l.parentNode&&l.parentNode.removeChild(l),l.parentNode=i,l.previousSibling=i.lastChild,l.nextSibling=null,l.previousSibling?l.previousSibling.nextSibling=l:i.firstChild=l,i.lastChild=l,Ce(i.ownerDocument,i,l),l}me.prototype={nodeName:"#document",nodeType:W,doctype:null,documentElement:null,_inc:1,insertBefore:function(i,l){if(i.nodeType==q){for(var E=i.firstChild;E;){var F=E.nextSibling;this.insertBefore(E,l),E=F}return i}return o(this,i,l),i.ownerDocument=this,this.documentElement===null&&i.nodeType===U&&(this.documentElement=i),i},removeChild:function(i){return this.documentElement==i&&(this.documentElement=null),De(this,i)},replaceChild:function(i,l){o(this,i,l,r),i.ownerDocument=this,l&&this.removeChild(l),Fe(i)&&(this.documentElement=i)},importNode:function(i,l){return rt(this,i,l)},getElementById:function(i){var l=null;return pe(this.documentElement,function(E){if(E.nodeType==U&&E.getAttribute("id")==i)return l=E,!0}),l},getElementsByClassName:function(i){var l=O(i);return new ne(this,function(E){var F=[];return l.length>0&&pe(E.documentElement,function(fe){if(fe!==E&&fe.nodeType===U){var xe=fe.getAttribute("class");if(xe){var Ne=i===xe;if(!Ne){var ae=O(xe);Ne=l.every(T(ae))}Ne&&F.push(fe)}}}),F})},createElement:function(i){var l=new b;l.ownerDocument=this,l.nodeName=i,l.tagName=i,l.localName=i,l.childNodes=new $;var E=l.attributes=new ie;return E._ownerElement=l,l},createDocumentFragment:function(){var i=new Le;return i.ownerDocument=this,i.childNodes=new $,i},createTextNode:function(i){var l=new de;return l.ownerDocument=this,l.appendData(i),l},createComment:function(i){var l=new he;return l.ownerDocument=this,l.appendData(i),l},createCDATASection:function(i){var l=new J;return l.ownerDocument=this,l.appendData(i),l},createProcessingInstruction:function(i,l){var E=new ze;return E.ownerDocument=this,E.tagName=E.nodeName=E.target=i,E.nodeValue=E.data=l,E},createAttribute:function(i){var l=new k;return l.ownerDocument=this,l.name=i,l.nodeName=i,l.localName=i,l.specified=!0,l},createEntityReference:function(i){var l=new Re;return l.ownerDocument=this,l.nodeName=i,l},createElementNS:function(i,l){var E=new b,F=l.split(":"),fe=E.attributes=new ie;return E.childNodes=new $,E.ownerDocument=this,E.nodeName=l,E.tagName=l,E.namespaceURI=i,F.length==2?(E.prefix=F[0],E.localName=F[1]):E.localName=l,fe._ownerElement=E,E},createAttributeNS:function(i,l){var E=new k,F=l.split(":");return E.ownerDocument=this,E.nodeName=l,E.name=l,E.namespaceURI=i,E.specified=!0,F.length==2?(E.prefix=F[0],E.localName=F[1]):E.localName=l,E}},X(me,Y);function b(){this._nsMap={}}b.prototype={nodeType:U,hasAttribute:function(i){return this.getAttributeNode(i)!=null},getAttribute:function(i){var l=this.getAttributeNode(i);return l&&l.value||""},getAttributeNode:function(i){return this.attributes.getNamedItem(i)},setAttribute:function(i,l){var E=this.ownerDocument.createAttribute(i);E.value=E.nodeValue=""+l,this.setAttributeNode(E)},removeAttribute:function(i){var l=this.getAttributeNode(i);l&&this.removeAttributeNode(l)},appendChild:function(i){return i.nodeType===q?this.insertBefore(i,null):f(this,i)},setAttributeNode:function(i){return this.attributes.setNamedItem(i)},setAttributeNodeNS:function(i){return this.attributes.setNamedItemNS(i)},removeAttributeNode:function(i){return this.attributes.removeNamedItem(i.nodeName)},removeAttributeNS:function(i,l){var E=this.getAttributeNodeNS(i,l);E&&this.removeAttributeNode(E)},hasAttributeNS:function(i,l){return this.getAttributeNodeNS(i,l)!=null},getAttributeNS:function(i,l){var E=this.getAttributeNodeNS(i,l);return E&&E.value||""},setAttributeNS:function(i,l,E){var F=this.ownerDocument.createAttributeNS(i,l);F.value=F.nodeValue=""+E,this.setAttributeNode(F)},getAttributeNodeNS:function(i,l){return this.attributes.getNamedItemNS(i,l)},getElementsByTagName:function(i){return new ne(this,function(l){var E=[];return pe(l,function(F){F!==l&&F.nodeType==U&&(i==="*"||F.tagName==i)&&E.push(F)}),E})},getElementsByTagNameNS:function(i,l){return new ne(this,function(E){var F=[];return pe(E,function(fe){fe!==E&&fe.nodeType===U&&(i==="*"||fe.namespaceURI===i)&&(l==="*"||fe.localName==l)&&F.push(fe)}),F})}},me.prototype.getElementsByTagName=b.prototype.getElementsByTagName,me.prototype.getElementsByTagNameNS=b.prototype.getElementsByTagNameNS,X(b,Y);function k(){}k.prototype.nodeType=M,X(k,Y);function G(){}G.prototype={data:"",substringData:function(i,l){return this.data.substring(i,i+l)},appendData:function(i){i=this.data+i,this.nodeValue=this.data=i,this.length=i.length},insertData:function(i,l){this.replaceData(i,0,l)},appendChild:function(i){throw new Error(L[B])},deleteData:function(i,l){this.replaceData(i,l,"")},replaceData:function(i,l,E){var F=this.data.substring(0,i),fe=this.data.substring(i+l);E=F+E+fe,this.nodeValue=this.data=E,this.length=E.length}},X(G,Y);function de(){}de.prototype={nodeName:"#text",nodeType:re,splitText:function(i){var l=this.data,E=l.substring(i);l=l.substring(0,i),this.data=this.nodeValue=l,this.length=l.length;var F=this.ownerDocument.createTextNode(E);return this.parentNode&&this.parentNode.insertBefore(F,this.nextSibling),F}},X(de,G);function he(){}he.prototype={nodeName:"#comment",nodeType:v},X(he,G);function J(){}J.prototype={nodeName:"#cdata-section",nodeType:Q},X(J,G);function Se(){}Se.prototype.nodeType=p,X(Se,Y);function _e(){}_e.prototype.nodeType=j,X(_e,Y);function Ue(){}Ue.prototype.nodeType=R,X(Ue,Y);function Re(){}Re.prototype.nodeType=ue,X(Re,Y);function Le(){}Le.prototype.nodeName="#document-fragment",Le.prototype.nodeType=q,X(Le,Y);function ze(){}ze.prototype.nodeType=A,X(ze,Y);function Ve(){}Ve.prototype.serializeToString=function(i,l,E){return We.call(i,l,E)},Y.prototype.toString=We;function We(i,l){var E=[],F=this.nodeType==9&&this.documentElement||this,fe=F.prefix,xe=F.namespaceURI;if(xe&&fe==null){var fe=F.lookupPrefix(xe);if(fe==null)var Ne=[{namespace:xe,prefix:null}]}return Xe(this,E,i,l,Ne),E.join("")}function Ke(i,l,E){var F=i.prefix||"",fe=i.namespaceURI;if(!fe||F==="xml"&&fe===c.XML||fe===c.XMLNS)return!1;for(var xe=E.length;xe--;){var Ne=E[xe];if(Ne.prefix===F)return Ne.namespace!==fe}return!0}function Ge(i,l,E){i.push(" ",l,'="',E.replace(/[<>&"\t\n\r]/g,te),'"')}function Xe(i,l,E,F,fe){if(fe||(fe=[]),F)if(i=F(i),i){if(typeof i=="string"){l.push(i);return}}else return;switch(i.nodeType){case U:var xe=i.attributes,Ne=xe.length,D=i.firstChild,ae=i.tagName;E=c.isHTML(i.namespaceURI)||E;var Qe=ae;if(!E&&!i.prefix&&i.namespaceURI){for(var Je,$e=0;$e<xe.length;$e++)if(xe.item($e).name==="xmlns"){Je=xe.item($e).value;break}if(!Je)for(var e=fe.length-1;e>=0;e--){var d=fe[e];if(d.prefix===""&&d.namespace===i.namespaceURI){Je=d.namespace;break}}if(Je!==i.namespaceURI)for(var e=fe.length-1;e>=0;e--){var d=fe[e];if(d.namespace===i.namespaceURI){d.prefix&&(Qe=d.prefix+":"+ae);break}}}l.push("<",Qe);for(var t=0;t<Ne;t++){var a=xe.item(t);a.prefix=="xmlns"?fe.push({prefix:a.localName,namespace:a.value}):a.nodeName=="xmlns"&&fe.push({prefix:"",namespace:a.value})}for(var t=0;t<Ne;t++){var a=xe.item(t);if(Ke(a,E,fe)){var C=a.prefix||"",y=a.namespaceURI;Ge(l,C?"xmlns:"+C:"xmlns",y),fe.push({prefix:C,namespace:y})}Xe(a,l,E,F,fe)}if(ae===Qe&&Ke(i,E,fe)){var C=i.prefix||"",y=i.namespaceURI;Ge(l,C?"xmlns:"+C:"xmlns",y),fe.push({prefix:C,namespace:y})}if(D||E&&!/^(?:meta|link|img|br|hr|input)$/i.test(ae)){if(l.push(">"),E&&/^script$/i.test(ae))for(;D;)D.data?l.push(D.data):Xe(D,l,E,F,fe.slice()),D=D.nextSibling;else for(;D;)Xe(D,l,E,F,fe.slice()),D=D.nextSibling;l.push("</",Qe,">")}else l.push("/>");return;case W:case q:for(var D=i.firstChild;D;)Xe(D,l,E,F,fe.slice()),D=D.nextSibling;return;case M:return Ge(l,i.name,i.value);case re:return l.push(i.data.replace(/[<&>]/g,te));case Q:return l.push("<![CDATA[",i.data,"]]>");case v:return l.push("<!--",i.data,"-->");case p:var w=i.publicId,Z=i.systemId;if(l.push("<!DOCTYPE ",i.name),w)l.push(" PUBLIC ",w),Z&&Z!="."&&l.push(" ",Z),l.push(">");else if(Z&&Z!=".")l.push(" SYSTEM ",Z,">");else{var we=i.internalSubset;we&&l.push(" [",we,"]"),l.push(">")}return;case A:return l.push("<?",i.target," ",i.data,"?>");case ue:return l.push("&",i.nodeName,";");default:l.push("??",i.nodeName)}}function rt(i,l,E){var F;switch(l.nodeType){case U:F=l.cloneNode(!1),F.ownerDocument=i;case q:break;case M:E=!0;break}if(F||(F=l.cloneNode(!1)),F.ownerDocument=i,F.parentNode=null,E)for(var fe=l.firstChild;fe;)F.appendChild(rt(i,fe,E)),fe=fe.nextSibling;return F}function et(i,l,E){var F=new l.constructor;for(var fe in l)if(Object.prototype.hasOwnProperty.call(l,fe)){var xe=l[fe];typeof xe!="object"&&xe!=F[fe]&&(F[fe]=xe)}switch(l.childNodes&&(F.childNodes=new $),F.ownerDocument=i,F.nodeType){case U:var Ne=l.attributes,ae=F.attributes=new ie,Qe=Ne.length;ae._ownerElement=F;for(var Je=0;Je<Qe;Je++)F.setAttributeNode(et(i,Ne.item(Je),!0));break;case M:E=!0}if(E)for(var $e=l.firstChild;$e;)F.appendChild(et(i,$e,E)),$e=$e.nextSibling;return F}function nt(i,l,E){i[l]=E}try{if(Object.defineProperty){let i=function(l){switch(l.nodeType){case U:case q:var E=[];for(l=l.firstChild;l;)l.nodeType!==7&&l.nodeType!==8&&E.push(i(l)),l=l.nextSibling;return E.join("");default:return l.nodeValue}};Object.defineProperty(ne.prototype,"length",{get:function(){return ce(this),this.$$length}}),Object.defineProperty(Y.prototype,"textContent",{get:function(){return i(this)},set:function(l){switch(this.nodeType){case U:case q:for(;this.firstChild;)this.removeChild(this.firstChild);(l||String(l))&&this.appendChild(this.ownerDocument.createTextNode(l));break;default:this.data=l,this.value=l,this.nodeValue=l}}}),nt=function(l,E,F){l["$$"+E]=F}}}catch{}m.DocumentType=Se,m.DOMException=z,m.DOMImplementation=ye,m.Element=b,m.Node=Y,m.NodeList=$,m.XMLSerializer=Ve},"./node_modules/@xmldom/xmldom/lib/entities.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;m.XML_ENTITIES=h({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),m.HTML_ENTITIES=h({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
  11. `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),m.entityMap=m.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/dom.js");m.DOMImplementation=h.DOMImplementation,m.XMLSerializer=h.XMLSerializer,m.DOMParser=u("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(g,m,u){var h=u("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,x=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=new RegExp("[\\-\\.0-9"+x.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),S=new RegExp("^"+x.source+c.source+"*(?::"+x.source+c.source+"*)?$"),_=0,N=1,O=2,T=3,H=4,X=5,V=6,U=7;function M(B,P){this.message=B,this.locator=P,Error.captureStackTrace&&Error.captureStackTrace(this,M)}M.prototype=new Error,M.prototype.name=M.name;function re(){}re.prototype={parse:function(B,P,K){var z=this.domBuilder;z.startDocument(),p(P,P={}),Q(B,P,K,z,this.errorHandler),z.endDocument()}};function Q(B,P,K,z,$){function ne(b){if(b>65535){b-=65536;var k=55296+(b>>10),G=56320+(b&1023);return String.fromCharCode(k,G)}else return String.fromCharCode(b)}function ce(b){var k=b.slice(1,-1);return Object.hasOwnProperty.call(K,k)?K[k]:k.charAt(0)==="#"?ne(parseInt(k.substr(1).replace("x","0x"))):($.error("entity not found:"+b),b)}function ie(b){if(b>me){var k=B.substring(me,b).replace(/&#?\w+;/g,ce);Y&&ee(me),z.characters(k,0,b-me),me=b}}function ee(b,k){for(;b>=se&&(k=ye.exec(B));)le=k.index,se=le+k[0].length,Y.lineNumber++;Y.columnNumber=b-le+1}for(var le=0,se=0,ye=/.*(?:\r\n?|\n)|.*$/g,Y=z.locator,te=[{currentNSMap:P}],pe={},me=0;;){try{var ge=B.indexOf("<",me);if(ge<0){if(!B.substr(me).match(/^\s*$/)){var ve=z.doc,Ce=ve.createTextNode(B.substr(me));ve.appendChild(Ce),z.currentElement=Ce}return}switch(ge>me&&ie(ge),B.charAt(ge+1)){case"/":var s=B.indexOf(">",ge+3),De=B.substring(ge+2,s).replace(/[ \t\n\r]+$/g,""),be=te.pop();s<0?(De=B.substring(ge+2).replace(/[\s<].*/,""),$.error("end tag name: "+De+" is not complete:"+be.tagName),s=ge+1+De.length):De.match(/\s</)&&(De=De.replace(/[\s<].*/,""),$.error("end tag name: "+De+" maybe not complete"),s=ge+1+De.length);var Te=be.localNSMap,ke=be.tagName==De,Fe=ke||be.tagName&&be.tagName.toLowerCase()==De.toLowerCase();if(Fe){if(z.endElement(be.uri,be.localName,De),Te)for(var Me in Te)Object.prototype.hasOwnProperty.call(Te,Me)&&z.endPrefixMapping(Me);ke||$.fatalError("end tag name: "+De+" is not match the current start tagName:"+be.tagName)}else te.push(be);s++;break;case"?":Y&&ee(ge),s=j(B,ge,z);break;case"!":Y&&ee(ge),s=q(B,ge,z,$);break;default:Y&&ee(ge);var Pe=new I,oe=te[te.length-1].currentNSMap,s=R(B,ge,Pe,oe,ce,$),n=Pe.length;if(!Pe.closed&&W(B,s,Pe.tagName,pe)&&(Pe.closed=!0,K.nbsp||$.warning("unclosed xml attribute")),Y&&n){for(var r=ue(Y,{}),o=0;o<n;o++){var f=Pe[o];ee(f.offset),f.locator=ue(Y,{})}z.locator=r,A(Pe,z,oe)&&te.push(Pe),z.locator=Y}else A(Pe,z,oe)&&te.push(Pe);h.isHTML(Pe.uri)&&!Pe.closed?s=v(B,s,Pe.tagName,ce,z):s++}}catch(b){if(b instanceof M)throw b;$.error("element parse error: "+b),s=-1}s>me?me=s:ie(Math.max(ge,me)+1)}}function ue(B,P){return P.lineNumber=B.lineNumber,P.columnNumber=B.columnNumber,P}function R(B,P,K,z,$,ne){function ce(Y,te,pe){K.attributeNames.hasOwnProperty(Y)&&ne.fatalError("Attribute "+Y+" redefined"),K.addValue(Y,te.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,$),pe)}for(var ie,ee,le=++P,se=_;;){var ye=B.charAt(le);switch(ye){case"=":if(se===N)ie=B.slice(P,le),se=T;else if(se===O)se=T;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(se===T||se===N)if(se===N&&(ne.warning('attribute value must after "="'),ie=B.slice(P,le)),P=le+1,le=B.indexOf(ye,P),le>0)ee=B.slice(P,le),ce(ie,ee,P-1),se=X;else throw new Error("attribute value no end '"+ye+"' match");else if(se==H)ee=B.slice(P,le),ce(ie,ee,P),ne.warning('attribute "'+ie+'" missed start quot('+ye+")!!"),P=le+1,se=X;else throw new Error('attribute value must after "="');break;case"/":switch(se){case _:K.setTagName(B.slice(P,le));case X:case V:case U:se=U,K.closed=!0;case H:case N:break;case O:K.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ne.error("unexpected end of input"),se==_&&K.setTagName(B.slice(P,le)),le;case">":switch(se){case _:K.setTagName(B.slice(P,le));case X:case V:case U:break;case H:case N:ee=B.slice(P,le),ee.slice(-1)==="/"&&(K.closed=!0,ee=ee.slice(0,-1));case O:se===O&&(ee=ie),se==H?(ne.warning('attribute "'+ee+'" missed quot(")!'),ce(ie,ee,P)):((!h.isHTML(z[""])||!ee.match(/^(?:disabled|checked|selected)$/i))&&ne.warning('attribute "'+ee+'" missed value!! "'+ee+'" instead!!'),ce(ee,ee,P));break;case T:throw new Error("attribute value missed!!")}return le;case"\x80":ye=" ";default:if(ye<=" ")switch(se){case _:K.setTagName(B.slice(P,le)),se=V;break;case N:ie=B.slice(P,le),se=O;break;case H:var ee=B.slice(P,le);ne.warning('attribute "'+ee+'" missed quot(")!!'),ce(ie,ee,P);case X:se=V;break}else switch(se){case O:K.tagName,(!h.isHTML(z[""])||!ie.match(/^(?:disabled|checked|selected)$/i))&&ne.warning('attribute "'+ie+'" missed value!! "'+ie+'" instead2!!'),ce(ie,ie,P),P=le,se=N;break;case X:ne.warning('attribute space is required"'+ie+'"!!');case V:se=N,P=le;break;case T:se=H,P=le;break;case U:throw new Error("elements closed character '/' and '>' must be connected to")}}le++}}function A(B,P,K){for(var z=B.tagName,$=null,ye=B.length;ye--;){var ne=B[ye],ce=ne.qName,ie=ne.value,Y=ce.indexOf(":");if(Y>0)var ee=ne.prefix=ce.slice(0,Y),le=ce.slice(Y+1),se=ee==="xmlns"&&le;else le=ce,ee=null,se=ce==="xmlns"&&"";ne.localName=le,se!==!1&&($==null&&($={},p(K,K={})),K[se]=$[se]=ie,ne.uri=h.XMLNS,P.startPrefixMapping(se,ie))}for(var ye=B.length;ye--;){ne=B[ye];var ee=ne.prefix;ee&&(ee==="xml"&&(ne.uri=h.XML),ee!=="xmlns"&&(ne.uri=K[ee||""]))}var Y=z.indexOf(":");Y>0?(ee=B.prefix=z.slice(0,Y),le=B.localName=z.slice(Y+1)):(ee=null,le=B.localName=z);var te=B.uri=K[ee||""];if(P.startElement(te,le,z,B),B.closed){if(P.endElement(te,le,z),$)for(ee in $)Object.prototype.hasOwnProperty.call($,ee)&&P.endPrefixMapping(ee)}else return B.currentNSMap=K,B.localNSMap=$,!0}function v(B,P,K,z,$){if(/^(?:script|textarea)$/i.test(K)){var ne=B.indexOf("</"+K+">",P),ce=B.substring(P+1,ne);if(/[&<]/.test(ce))return/^script$/i.test(K)?($.characters(ce,0,ce.length),ne):(ce=ce.replace(/&#?\w+;/g,z),$.characters(ce,0,ce.length),ne)}return P+1}function W(B,P,K,z){var $=z[K];return $==null&&($=B.lastIndexOf("</"+K+">"),$<P&&($=B.lastIndexOf("</"+K)),z[K]=$),$<P}function p(B,P){for(var K in B)Object.prototype.hasOwnProperty.call(B,K)&&(P[K]=B[K])}function q(B,P,K,z){var $=B.charAt(P+2);switch($){case"-":if(B.charAt(P+3)==="-"){var ne=B.indexOf("-->",P+4);return ne>P?(K.comment(B,P+4,ne-P-4),ne+3):(z.error("Unclosed comment"),-1)}else return-1;default:if(B.substr(P+3,6)=="CDATA["){var ne=B.indexOf("]]>",P+9);return K.startCDATA(),K.characters(B,P+9,ne-P-9),K.endCDATA(),ne+3}var ce=L(B,P),ie=ce.length;if(ie>1&&/!doctype/i.test(ce[0][0])){var ee=ce[1][0],le=!1,se=!1;ie>3&&(/^public$/i.test(ce[2][0])?(le=ce[3][0],se=ie>4&&ce[4][0]):/^system$/i.test(ce[2][0])&&(se=ce[3][0]));var ye=ce[ie-1];return K.startDTD(ee,le,se),K.endDTD(),ye.index+ye[0].length}}return-1}function j(B,P,K){var z=B.indexOf("?>",P);if(z){var $=B.substring(P,z).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return $?($[0].length,K.processingInstruction($[1],$[2]),z+2):-1}return-1}function I(){this.attributeNames={}}I.prototype={setTagName:function(B){if(!S.test(B))throw new Error("invalid tagName:"+B);this.tagName=B},addValue:function(B,P,K){if(!S.test(B))throw new Error("invalid attribute:"+B);this.attributeNames[B]=this.length,this[this.length++]={qName:B,value:P,offset:K}},length:0,getLocalName:function(B){return this[B].localName},getLocator:function(B){return this[B].locator},getQName:function(B){return this[B].qName},getURI:function(B){return this[B].uri},getValue:function(B){return this[B].value}};function L(B,P){var K,z=[],$=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for($.lastIndex=P,$.exec(B);K=$.exec(B);)if(z.push(K),K[1])return z}m.XMLReader=re,m.ParseError=M},"./node_modules/process/browser.js":function(g,m){var u=g.exports={},h,x;function c(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?h=setTimeout:h=c}catch{h=c}try{typeof clearTimeout=="function"?x=clearTimeout:x=S}catch{x=S}})();function _(Q){if(h===setTimeout)return setTimeout(Q,0);if((h===c||!h)&&setTimeout)return h=setTimeout,setTimeout(Q,0);try{return h(Q,0)}catch{try{return h.call(null,Q,0)}catch{return h.call(this,Q,0)}}}function N(Q){if(x===clearTimeout)return clearTimeout(Q);if((x===S||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(Q);try{return x(Q)}catch{try{return x.call(null,Q)}catch{return x.call(this,Q)}}}var O=[],T=!1,H,X=-1;function V(){!T||!H||(T=!1,H.length?O=H.concat(O):X=-1,O.length&&U())}function U(){if(!T){var Q=_(V);T=!0;for(var ue=O.length;ue;){for(H=O,O=[];++X<ue;)H&&H[X].run();X=-1,ue=O.length}H=null,T=!1,N(Q)}}u.nextTick=function(Q){var ue=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)ue[R-1]=arguments[R];O.push(new M(Q,ue)),O.length===1&&!T&&_(U)};function M(Q,ue){this.fun=Q,this.array=ue}M.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={};function re(){}u.on=re,u.addListener=re,u.once=re,u.off=re,u.removeListener=re,u.removeAllListeners=re,u.emit=re,u.prependListener=re,u.prependOnceListener=re,u.listeners=function(Q){return[]},u.binding=function(Q){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(Q){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},"./node_modules/webpack/buildin/amd-options.js":function(g,m){(function(u){g.exports=u}).call(this,{})},"./node_modules/webpack/buildin/global.js":function(g,m){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch{typeof window=="object"&&(u=window)}g.exports=u},"./node_modules/webpack/buildin/module.js":function(g,m){g.exports=function(u){return u.webpackPolyfill||(u.deprecate=function(){},u.paths=[],u.children||(u.children=[]),Object.defineProperty(u,"loaded",{enumerable:!0,get:function(){return u.l}}),Object.defineProperty(u,"id",{enumerable:!0,get:function(){return u.i}}),u.webpackPolyfill=1),u}},"./package.json":function(g){g.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.4.21","description":"JavaScript SDK for [\u817E\u8BAF\u4E91\u5BF9\u8C61\u5B58\u50A8](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js test/test.js server/sts.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"@xmldom/xmldom":"^0.8.6"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js"),x=u("./src/session.js"),c=u("./src/async.js"),S=u("./src/event.js").EventProxy,_=u("./src/util.js"),N=u("./src/tracker.js");function O(p,q){var j=this,I=new S,L=p.TaskId,B=p.Bucket,P=p.Region,K=p.Key,z=p.Body,$=p.ChunkSize||p.SliceSize||j.options.ChunkSize,ne=p.AsyncLimit,ce=p.StorageClass,ie=p.ServerSideEncryption,ee,le,se=p.onHashProgress,ye=p.tracker;ye&&ye.setParams({chunkSize:$}),I.on("error",function(Y){if(!!j._isRunningTask(L))return Y.UploadId=p.UploadData.UploadId||"",q(Y)}),I.on("upload_complete",function(Y){var te=_.extend({UploadId:p.UploadData.UploadId||""},Y);q(null,te)}),I.on("upload_slice_complete",function(Y){var te={};_.each(p.Headers,function(pe,me){var ge=me.toLowerCase();(ge.indexOf("x-cos-meta-")===0||ge==="pic-operations")&&(te[me]=pe)}),M.call(j,{Bucket:B,Region:P,Key:K,UploadId:Y.UploadId,SliceList:Y.SliceList,Headers:te,tracker:ye},function(pe,me){if(!!j._isRunningTask(L)){if(x.removeUsing(Y.UploadId),pe)return le(null,!0),I.emit("error",pe);x.removeUploadId.call(j,Y.UploadId),le({loaded:ee,total:ee},!0),I.emit("upload_complete",me)}})}),I.on("get_upload_data_finish",function(Y){var te=x.getFileId(z,p.ChunkSize,B,K);te&&x.saveUploadId.call(j,te,Y.UploadId,j.options.UploadIdCacheLimit),x.setUsing(Y.UploadId),le(null,!0),V.call(j,{TaskId:L,Bucket:B,Region:P,Key:K,Body:z,FileSize:ee,SliceSize:$,AsyncLimit:ne,ServerSideEncryption:ie,UploadData:Y,Headers:p.Headers,onProgress:le,tracker:ye},function(pe,me){if(!!j._isRunningTask(L)){if(pe)return le(null,!0),I.emit("error",pe);I.emit("upload_slice_complete",me)}})}),I.on("get_file_size_finish",function(){if(le=_.throttleOnProgress.call(j,ee,p.onProgress),p.UploadData.UploadId)I.emit("get_upload_data_finish",p.UploadData);else{var Y=_.extend({TaskId:L,Bucket:B,Region:P,Key:K,Headers:p.Headers,StorageClass:ce,Body:z,FileSize:ee,SliceSize:$,onHashProgress:se,tracker:ye},p);T.call(j,Y,function(te,pe){if(!!j._isRunningTask(L)){if(te)return I.emit("error",te);p.UploadData.UploadId=pe.UploadId,p.UploadData.PartList=pe.PartList,I.emit("get_upload_data_finish",p.UploadData)}})}}),ee=p.ContentLength,delete p.ContentLength,!p.Headers&&(p.Headers={}),_.each(p.Headers,function(Y,te){te.toLowerCase()==="content-length"&&delete p.Headers[te]}),function(){for(var Y=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],te=1024*1024,pe=0;pe<Y.length&&(te=Y[pe]*1024*1024,!(ee/te<=j.options.MaxPartNumber));pe++);p.ChunkSize=p.SliceSize=$=Math.max($,te)}(),ee===0?(p.Body="",p.ContentLength=0,p.SkipTask=!0,j.putObject(p,q)):I.emit("get_file_size_finish")}function T(p,q){var j=p.TaskId,I=p.Bucket,L=p.Region,B=p.Key,P=p.StorageClass,K=this,z={},$=p.FileSize,ne=p.SliceSize,ce=Math.ceil($/ne),ie=0,ee=_.throttleOnProgress.call(K,$,p.onHashProgress),le=function(te,pe){var me=ne*(te-1),ge=Math.min(me+ne,$),ve=ge-me;z[te]?pe(null,{PartNumber:te,ETag:z[te],Size:ve}):_.fileSlice(p.Body,me,ge,!1,function(Ce){_.getFileMd5(Ce,function(De,be){if(De)return pe(_.error(De));var Te='"'+be+'"';z[te]=Te,ie+=ve,ee({loaded:ie,total:$}),pe(null,{PartNumber:te,ETag:Te,Size:ve})})})},se=function(te,pe){var me=te.length;if(me===0)return pe(null,!0);if(me>ce)return pe(null,!1);if(me>1){var ge=Math.max(te[0].Size,te[1].Size);if(ge!==ne)return pe(null,!1)}var ve=function Ce(De){if(De<me){var be=te[De];le(be.PartNumber,function(Te,ke){ke&&ke.ETag===be.ETag&&ke.Size===be.Size?Ce(De+1):pe(null,!1)})}else pe(null,!0)};ve(0)},ye=new S;ye.on("error",function(Y){if(!!K._isRunningTask(j))return q(Y)}),ye.on("upload_id_available",function(Y){var te={},pe=[];_.each(Y.PartList,function(ve){te[ve.PartNumber]=ve});for(var me=1;me<=ce;me++){var ge=te[me];ge?(ge.PartNumber=me,ge.Uploaded=!0):ge={PartNumber:me,ETag:null,Uploaded:!1},pe.push(ge)}Y.PartList=pe,q(null,Y)}),ye.on("no_available_upload_id",function(){if(!!K._isRunningTask(j)){var Y=_.extend({Bucket:I,Region:L,Key:B,Query:_.clone(p.Query),StorageClass:P,Body:p.Body,calledBySdk:"sliceUploadFile",tracker:p.tracker},p),te=_.clone(p.Headers);delete te["x-cos-mime-limit"],Y.Headers=te,K.multipartInit(Y,function(pe,me){if(!!K._isRunningTask(j)){if(pe)return ye.emit("error",pe);var ge=me.UploadId;if(!ge)return q(_.error(new Error("no such upload id")));ye.emit("upload_id_available",{UploadId:ge,PartList:[]})}})}}),ye.on("has_and_check_upload_id",function(Y){Y=Y.reverse(),c.eachLimit(Y,1,function(te,pe){if(!!K._isRunningTask(j)){if(x.using[te]){pe();return}X.call(K,{Bucket:I,Region:L,Key:B,UploadId:te,tracker:p.tracker},function(me,ge){if(!!K._isRunningTask(j)){if(me)return x.removeUsing(te),ye.emit("error",me);var ve=ge.PartList;ve.forEach(function(Ce){Ce.PartNumber*=1,Ce.Size*=1,Ce.ETag=Ce.ETag||""}),se(ve,function(Ce,De){if(!!K._isRunningTask(j)){if(Ce)return ye.emit("error",Ce);De?pe({UploadId:te,PartList:ve}):pe()}})}})}},function(te){!K._isRunningTask(j)||(ee(null,!0),te&&te.UploadId?ye.emit("upload_id_available",te):ye.emit("no_available_upload_id"))})}),ye.on("seek_local_avail_upload_id",function(Y){var te=x.getFileId(p.Body,p.ChunkSize,I,B),pe=x.getUploadIdList.call(K,te);if(!te||!pe){ye.emit("has_and_check_upload_id",Y);return}var me=function ge(ve){if(ve>=pe.length){ye.emit("has_and_check_upload_id",Y);return}var Ce=pe[ve];if(!_.isInArray(Y,Ce)){x.removeUploadId.call(K,Ce),ge(ve+1);return}if(x.using[Ce]){ge(ve+1);return}X.call(K,{Bucket:I,Region:L,Key:B,UploadId:Ce,tracker:p.tracker},function(De,be){!K._isRunningTask(j)||(De?(x.removeUploadId.call(K,Ce),ge(ve+1)):ye.emit("upload_id_available",{UploadId:Ce,PartList:be.PartList}))})};me(0)}),ye.on("get_remote_upload_id_list",function(){H.call(K,{Bucket:I,Region:L,Key:B,tracker:p.tracker},function(Y,te){if(!!K._isRunningTask(j)){if(Y)return ye.emit("error",Y);var pe=_.filter(te.UploadList,function(ve){return ve.Key===B&&(!P||ve.StorageClass.toUpperCase()===P.toUpperCase())}).reverse().map(function(ve){return ve.UploadId||ve.UploadID});if(pe.length)ye.emit("seek_local_avail_upload_id",pe);else{var me=x.getFileId(p.Body,p.ChunkSize,I,B),ge;me&&(ge=x.getUploadIdList.call(K,me))&&_.each(ge,function(ve){x.removeUploadId.call(K,ve)}),ye.emit("no_available_upload_id")}}})}),ye.emit("get_remote_upload_id_list")}function H(p,q){var j=this,I=[],L={Bucket:p.Bucket,Region:p.Region,Prefix:p.Key,calledBySdk:p.calledBySdk||"sliceUploadFile",tracker:p.tracker},B=function P(){j.multipartList(L,function(K,z){if(K)return q(K);I.push.apply(I,z.Upload||[]),z.IsTruncated==="true"?(L.KeyMarker=z.NextKeyMarker,L.UploadIdMarker=z.NextUploadIdMarker,P()):q(null,{UploadList:I})})};B()}function X(p,q){var j=this,I=[],L={Bucket:p.Bucket,Region:p.Region,Key:p.Key,UploadId:p.UploadId,calledBySdk:"sliceUploadFile",tracker:p.tracker},B=function P(){j.multipartListPart(L,function(K,z){if(K)return q(K);I.push.apply(I,z.Part||[]),z.IsTruncated==="true"?(L.PartNumberMarker=z.NextPartNumberMarker,P()):q(null,{PartList:I})})};B()}function V(p,q){var j=this,I=p.TaskId,L=p.Bucket,B=p.Region,P=p.Key,K=p.UploadData,z=p.FileSize,$=p.SliceSize,ne=Math.min(p.AsyncLimit||j.options.ChunkParallelLimit||1,256),ce=p.Body,ie=Math.ceil(z/$),ee=0,le=p.ServerSideEncryption,se=p.Headers,ye=_.filter(K.PartList,function(te){return te.Uploaded&&(ee+=te.PartNumber>=ie&&z%$||$),!te.Uploaded}),Y=p.onProgress;c.eachLimit(ye,ne,function(te,pe){if(!!j._isRunningTask(I)){var me=te.PartNumber,ge=Math.min(z,te.PartNumber*$)-(te.PartNumber-1)*$,ve=0;U.call(j,{TaskId:I,Bucket:L,Region:B,Key:P,SliceSize:$,FileSize:z,PartNumber:me,ServerSideEncryption:le,Body:ce,UploadData:K,Headers:se,onProgress:function(De){ee+=De.loaded-ve,ve=De.loaded,Y({loaded:ee,total:z})},tracker:p.tracker},function(Ce,De){!j._isRunningTask(I)||(!Ce&&!De.ETag&&(Ce='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),Ce?ee-=ve:(ee+=ge-ve,te.ETag=De.ETag),Y({loaded:ee,total:z}),pe(Ce||null,De))})}},function(te){if(!!j._isRunningTask(I)){if(te)return q(te);q(null,{UploadId:K.UploadId,SliceList:K.PartList})}})}function U(p,q){var j=this,I=p.TaskId,L=p.Bucket,B=p.Region,P=p.Key,K=p.FileSize,z=p.Body,$=p.PartNumber*1,ne=p.SliceSize,ce=p.ServerSideEncryption,ie=p.UploadData,ee=p.Headers||{},le=j.options.ChunkRetryTimes+1,se=ne*($-1),ye=ne,Y=se+ne;Y>K&&(Y=K,ye=Y-se);var te=["x-cos-traffic-limit","x-cos-mime-limit"],pe={};_.each(ee,function(ge,ve){te.indexOf(ve)>-1&&(pe[ve]=ge)});var me=ie.PartList[$-1];c.retry(le,function(ge){!j._isRunningTask(I)||_.fileSlice(z,se,Y,!0,function(ve){j.multipartUpload({TaskId:I,Bucket:L,Region:B,Key:P,ContentLength:ye,PartNumber:$,UploadId:ie.UploadId,ServerSideEncryption:ce,Body:ve,Headers:pe,onProgress:p.onProgress,calledBySdk:"sliceUploadFile",tracker:p.tracker},function(Ce,De){if(!!j._isRunningTask(I))return Ce?ge(Ce):(me.Uploaded=!0,ge(null,De))})})},function(ge,ve){if(!!j._isRunningTask(I))return q(ge,ve)})}function M(p,q){var j=p.Bucket,I=p.Region,L=p.Key,B=p.UploadId,P=p.SliceList,K=this,z=this.options.ChunkRetryTimes+1,$=p.Headers,ne=P.map(function(ce){return{PartNumber:ce.PartNumber,ETag:ce.ETag}});c.retry(z,function(ce){K.multipartComplete({Bucket:j,Region:I,Key:L,UploadId:B,Parts:ne,Headers:$,calledBySdk:"sliceUploadFile",tracker:p.tracker},ce)},function(ce,ie){q(ce,ie)})}function re(p,q){var j=p.Bucket,I=p.Region,L=p.Key,B=p.UploadId,P=p.Level||"task",K=p.AsyncLimit,z=this,$=new S;if($.on("error",function(ne){return q(ne)}),$.on("get_abort_array",function(ne){Q.call(z,{Bucket:j,Region:I,Key:L,Headers:p.Headers,AsyncLimit:K,AbortArray:ne},q)}),P==="bucket")H.call(z,{Bucket:j,Region:I,calledBySdk:"abortUploadTask"},function(ne,ce){if(ne)return q(ne);$.emit("get_abort_array",ce.UploadList||[])});else if(P==="file"){if(!L)return q(_.error(new Error("abort_upload_task_no_key")));H.call(z,{Bucket:j,Region:I,Key:L,calledBySdk:"abortUploadTask"},function(ne,ce){if(ne)return q(ne);$.emit("get_abort_array",ce.UploadList||[])})}else if(P==="task"){if(!B)return q(_.error(new Error("abort_upload_task_no_id")));if(!L)return q(_.error(new Error("abort_upload_task_no_key")));$.emit("get_abort_array",[{Key:L,UploadId:B}])}else return q(_.error(new Error("abort_unknown_level")))}function Q(p,q){var j=p.Bucket,I=p.Region,L=p.Key,B=p.AbortArray,P=p.AsyncLimit||1,K=this,z=0,$=new Array(B.length);c.eachLimit(B,P,function(ne,ce){var ie=z;if(L&&L!==ne.Key){$[ie]={error:{KeyNotMatch:!0}},ce(null);return}var ee=ne.UploadId||ne.UploadID;K.multipartAbort({Bucket:j,Region:I,Key:ne.Key,Headers:p.Headers,UploadId:ee},function(le){var se={Bucket:j,Region:I,Key:ne.Key,UploadId:ee};$[ie]={error:le,task:se},ce(null)}),z++},function(ne){if(ne)return q(ne);for(var ce=[],ie=[],ee=0,le=$.length;ee<le;ee++){var se=$[ee];se.task&&(se.error?ie.push(se.task):ce.push(se.task))}return q(null,{successList:ce,errorList:ie})})}function ue(p,q){var j=this,I=p.SliceSize===void 0?j.options.SliceSize:p.SliceSize,L=[],B=p.Body,P=B.size||B.length||0,K={TaskId:""};if(j.options.EnableTracker){var z=j.options.UseAccelerate||typeof j.options.Domain=="string"&&j.options.Domain.includes("accelerate.");p.tracker=new N({bucket:p.Bucket,region:p.Region,apiName:"uploadFile",fileKey:p.Key,fileSize:P,accelerate:z,deepTracker:j.options.DeepTracker,customId:j.options.CustomId,delay:j.options.TrackerDelay})}_.each(p,function(le,se){h(le)!=="object"&&typeof le!="function"&&(K[se]=le)});var $=p.onTaskReady,ne=function(se){K.TaskId=se,$&&$(se)};p.onTaskReady=ne;var ce=P>I?"sliceUploadFile":"putObject",ie=p.onFileFinish,ee=function(se,ye){p.tracker&&p.tracker.formatResult(se,ye),ie&&ie(se,ye,K),q&&q(se,ye)};L.push({api:ce,params:p,callback:ee}),j._addTasks(L)}function R(p,q){var j=this,I=p.SliceSize===void 0?j.options.SliceSize:p.SliceSize,L=0,B=0,P=_.throttleOnProgress.call(j,B,p.onProgress),K=p.files.length,z=p.onFileFinish,$=Array(K),ne=function(ee,le,se){P(null,!0),z&&z(ee,le,se),$[se.Index]={options:se,error:ee,data:le},--K<=0&&q&&q(null,{files:$})},ce=[];_.each(p.files,function(ie,ee){(function(){var le=ie.Body,se=le.size||le.length||0,ye={Index:ee,TaskId:""};if(!j.options.UseRawKey&&ie.Key&&ie.Key.substr(0,1)==="/"&&(ie.Key=ie.Key.substr(1)),L+=se,j.options.EnableTracker){var Y=j.options.UseAccelerate||typeof j.options.Domain=="string"&&j.options.Domain.includes("accelerate.");ie.tracker=new N({bucket:ie.Bucket,region:ie.Region,apiName:"uploadFiles",fileKey:ie.Key,fileSize:se,accelerate:Y,deepTracker:j.options.DeepTracker,customId:j.options.CustomId,delay:j.options.TrackerDelay})}_.each(ie,function(Te,ke){h(Te)!=="object"&&typeof Te!="function"&&(ye[ke]=Te)});var te=ie.onTaskReady,pe=function(ke){ye.TaskId=ke,te&&te(ke)};ie.onTaskReady=pe;var me=0,ge=ie.onProgress,ve=function(ke){B=B-me+ke.loaded,me=ke.loaded,ge&&ge(ke),P({loaded:B,total:L})};ie.onProgress=ve;var Ce=se>I?"sliceUploadFile":"putObject",De=ie.onFileFinish,be=function(ke,Fe){ie.tracker&&ie.tracker.formatResult(ke,Fe),De&&De(ke,Fe),ne&&ne(ke,Fe,ye)};ce.push({api:Ce,params:ie,callback:be})})()}),j._addTasks(ce)}function A(p,q){var j=new S,I=this,L=p.Bucket,B=p.Region,P=p.Key,K=p.CopySource,z=_.getSourceParams.call(this,K);if(!z){q(_.error(new Error("CopySource format error")));return}var $=z.Bucket,ne=z.Region,ce=decodeURIComponent(z.Key),ie=p.CopySliceSize===void 0?I.options.CopySliceSize:p.CopySliceSize;ie=Math.max(0,ie);var ee=p.CopyChunkSize||this.options.CopyChunkSize,le=this.options.CopyChunkParallelLimit,se=this.options.ChunkRetryTimes+1,ye=0,Y=0,te,pe,me={},ge={},ve={};j.on("copy_slice_complete",function(Ce){_.each(p.Headers,function(be,Te){Te.toLowerCase().indexOf("x-cos-meta-")});var De=_.map(Ce.PartList,function(be){return{PartNumber:be.PartNumber,ETag:be.ETag}});c.retry(se,function(be){I.multipartComplete({Bucket:L,Region:B,Key:P,UploadId:Ce.UploadId,Parts:De,calledBySdk:"sliceCopyFile"},be)},function(be,Te){if(x.removeUsing(Ce.UploadId),be)return pe(null,!0),q(be);x.removeUploadId(Ce.UploadId),pe({loaded:te,total:te},!0),q(null,Te)})}),j.on("get_copy_data_finish",function(Ce){var De=x.getCopyFileId(K,me,ee,L,P);De&&x.saveUploadId(De,Ce.UploadId,I.options.UploadIdCacheLimit),x.setUsing(Ce.UploadId);var be=_.filter(Ce.PartList,function(Te){return Te.Uploaded&&(Y+=Te.PartNumber>=ye&&te%ee||ee),!Te.Uploaded});c.eachLimit(be,le,function(Te,ke){var Fe=Te.PartNumber,Me=Te.CopySourceRange,Pe=Te.end-Te.start;c.retry(se,function(oe){v.call(I,{Bucket:L,Region:B,Key:P,CopySource:K,UploadId:Ce.UploadId,PartNumber:Fe,CopySourceRange:Me},oe)},function(oe,s){if(oe)return ke(oe);Y+=Pe,pe({loaded:Y,total:te}),Te.ETag=s.ETag,ke(oe||null,s)})},function(Te){if(Te)return x.removeUsing(Ce.UploadId),pe(null,!0),q(Te);j.emit("copy_slice_complete",Ce)})}),j.on("get_chunk_size_finish",function(){var Ce=function(){I.multipartInit({Bucket:L,Region:B,Key:P,Headers:ve},function(Fe,Me){if(Fe)return q(Fe);p.UploadId=Me.UploadId,j.emit("get_copy_data_finish",{UploadId:p.UploadId,PartList:p.PartList})})},De=x.getCopyFileId(K,me,ee,L,P),be=x.getUploadIdList(De);if(!De||!be)return Ce();var Te=function ke(Fe){if(Fe>=be.length)return Ce();var Me=be[Fe];if(x.using[Me])return ke(Fe+1);X.call(I,{Bucket:L,Region:B,Key:P,UploadId:Me},function(Pe,oe){if(Pe)x.removeUploadId(Me),ke(Fe+1);else{if(x.using[Me])return ke(Fe+1);var s={},n=0;_.each(oe.PartList,function(r){var o=parseInt(r.Size),f=n+o-1;s[r.PartNumber+"|"+n+"|"+f]=r.ETag,n+=o}),_.each(p.PartList,function(r){var o=s[r.PartNumber+"|"+r.start+"|"+r.end];o&&(r.ETag=o,r.Uploaded=!0)}),j.emit("get_copy_data_finish",{UploadId:Me,PartList:p.PartList})}})};Te(0)}),j.on("get_file_size_finish",function(){if(function(){for(var De=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],be=1024*1024,Te=0;Te<De.length&&(be=De[Te]*1024*1024,!(te/be<=I.options.MaxPartNumber));Te++);p.ChunkSize=ee=Math.max(ee,be),ye=Math.ceil(te/ee);for(var ke=[],Fe=1;Fe<=ye;Fe++){var Me=(Fe-1)*ee,Pe=Fe*ee<te?Fe*ee-1:te-1,oe={PartNumber:Fe,start:Me,end:Pe,CopySourceRange:"bytes="+Me+"-"+Pe};ke.push(oe)}p.PartList=ke}(),p.Headers["x-cos-metadata-directive"]==="Replaced"?ve=p.Headers:ve=ge,ve["x-cos-storage-class"]=p.Headers["x-cos-storage-class"]||ge["x-cos-storage-class"],ve=_.clearKey(ve),ge["x-cos-storage-class"]==="ARCHIVE"||ge["x-cos-storage-class"]==="DEEP_ARCHIVE"){var Ce=ge["x-cos-restore"];if(!Ce||Ce==='ongoing-request="true"'){q(_.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete ve["x-cos-copy-source"],delete ve["x-cos-metadata-directive"],delete ve["x-cos-copy-source-If-Modified-Since"],delete ve["x-cos-copy-source-If-Unmodified-Since"],delete ve["x-cos-copy-source-If-Match"],delete ve["x-cos-copy-source-If-None-Match"],j.emit("get_chunk_size_finish")}),I.headObject({Bucket:$,Region:ne,Key:ce},function(Ce,De){if(Ce){Ce.statusCode&&Ce.statusCode===404?q(_.error(Ce,{ErrorStatus:ce+" Not Exist"})):q(Ce);return}if(te=p.FileSize=De.headers["content-length"],te===void 0||!te){q(_.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.\uFF08 \u83B7\u53D6Content-Length\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0Content-Length\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 \uFF09')));return}if(pe=_.throttleOnProgress.call(I,te,p.onProgress),te<=ie)p.Headers["x-cos-metadata-directive"]||(p.Headers["x-cos-metadata-directive"]="Copy"),I.putObjectCopy(p,function(Te,ke){if(Te)return pe(null,!0),q(Te);pe({loaded:te,total:te},!0),q(Te,ke)});else{var be=De.headers;me=be,ge={"Cache-Control":be["cache-control"],"Content-Disposition":be["content-disposition"],"Content-Encoding":be["content-encoding"],"Content-Type":be["content-type"],Expires:be.expires,"x-cos-storage-class":be["x-cos-storage-class"]},_.each(be,function(Te,ke){var Fe="x-cos-meta-";ke.indexOf(Fe)===0&&ke.length>Fe.length&&(ge[ke]=Te)}),j.emit("get_file_size_finish")}})}function v(p,q){var j=p.TaskId,I=p.Bucket,L=p.Region,B=p.Key,P=p.CopySource,K=p.UploadId,z=p.PartNumber*1,$=p.CopySourceRange,ne=this.options.ChunkRetryTimes+1,ce=this;c.retry(ne,function(ie){ce.uploadPartCopy({TaskId:j,Bucket:I,Region:L,Key:B,CopySource:P,UploadId:K,PartNumber:z,CopySourceRange:$},function(ee,le){ie(ee||null,le)})},function(ie,ee){return q(ie,ee)})}var W={sliceUploadFile:O,abortUploadTask:re,uploadFile:ue,uploadFiles:R,sliceCopyFile:A};g.exports.init=function(p,q){q.transferToTaskMethod(W,"sliceUploadFile"),_.each(W,function(j,I){p.prototype[I]=_.apiWrapper(I,j)})}},"./src/async.js":function(g,m){var u=function(S,_,N,O){if(O=O||function(){},!S.length||_<=0)return O();var T=0,H=0,X=0;(function V(){if(T>=S.length)return O();for(;X<_&&H<S.length;)H+=1,X+=1,N(S[H-1],function(U){U?(O(U),O=function(){}):(T+=1,X-=1,T>=S.length?O():V())})})()},h=function(S,_,N){var O=function T(H){_(function(X,V){X&&H<S?T(H+1):N(X,V)})};S<1?N():O(1)},x={eachLimit:u,retry:h};g.exports=x},"./src/base.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/typeof.js"),x=u("./lib/request.js"),c=u("./src/util.js");function S(e,d){typeof e=="function"&&(d=e,e={});var t=this.options.Protocol||(c.isBrowser&&(typeof location=="undefined"?"undefined":h(location))==="object"&&location.protocol==="http:"?"http:":"https:"),a=this.options.ServiceDomain,C=e.AppId||this.options.appId,y=e.Region;a?(a=a.replace(/\{\{AppId\}\}/gi,C||"").replace(/\{\{Region\}\}/gi,y||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(a)||(a=t+"//"+a),a.slice(-1)==="/"&&(a=a.slice(0,-1))):y?a=t+"//cos."+y+".myqcloud.com":a=t+"//service.cos.myqcloud.com";var D="",w=y?"cos."+y+".myqcloud.com":"service.cos.myqcloud.com",Z=a.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");w===Z&&(D=w),ae.call(this,{Action:"name/cos:GetService",url:a,method:"GET",headers:e.Headers,SignHost:D},function(we,Ee){if(we)return d(we);var Ae=Ee&&Ee.ListAllMyBucketsResult&&Ee.ListAllMyBucketsResult.Buckets&&Ee.ListAllMyBucketsResult.Buckets.Bucket||[];Ae=c.isArray(Ae)?Ae:[Ae];var Be=Ee&&Ee.ListAllMyBucketsResult&&Ee.ListAllMyBucketsResult.Owner||{};d(null,{Buckets:Ae,Owner:Be,statusCode:Ee.statusCode,headers:Ee.headers})})}function _(e,d){var t=this,a="";if(e.BucketAZConfig){var C={BucketAZConfig:e.BucketAZConfig};a=c.json2xml({CreateBucketConfiguration:C})}ae.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,body:a},function(y,D){if(y)return d(y);var w=F({protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:e.Region,isLocation:!0});d(null,{Location:w,statusCode:D.statusCode,headers:D.headers})})}function N(e,d){ae.call(this,{Action:"name/cos:HeadBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"HEAD"},d)}function O(e,d){var t={};t.prefix=e.Prefix||"",t.delimiter=e.Delimiter,t.marker=e.Marker,t["max-keys"]=e.MaxKeys,t["encoding-type"]=e.EncodingType,ae.call(this,{Action:"name/cos:GetBucket",ResourceKey:t.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:t},function(a,C){if(a)return d(a);var y=C.ListBucketResult||{},D=y.Contents||[],w=y.CommonPrefixes||[];D=c.isArray(D)?D:[D],w=c.isArray(w)?w:[w];var Z=c.clone(y);c.extend(Z,{Contents:D,CommonPrefixes:w,statusCode:C.statusCode,headers:C.headers}),d(null,Z)})}function T(e,d){ae.call(this,{Action:"name/cos:DeleteBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"DELETE"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function H(e,d){var t=e.Headers,a="";if(e.AccessControlPolicy){var C=c.clone(e.AccessControlPolicy||{}),y=C.Grants||C.Grant;y=c.isArray(y)?y:[y],delete C.Grant,delete C.Grants,C.AccessControlList={Grant:y},a=c.json2xml({AccessControlPolicy:C}),t["Content-Type"]="application/xml",t["Content-MD5"]=c.b64(c.md5(a))}c.each(t,function(D,w){w.indexOf("x-cos-grant-")===0&&(t[w]=E(t[w]))}),ae.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:t,action:"acl",body:a},function(D,w){if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function X(e,d){ae.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"acl"},function(t,a){if(t)return d(t);var C=a.AccessControlPolicy||{},y=C.Owner||{},D=C.AccessControlList.Grant||[];D=c.isArray(D)?D:[D];var w=l(C);a.headers&&a.headers["x-cos-acl"]&&(w.ACL=a.headers["x-cos-acl"]),w=c.extend(w,{Owner:y,Grants:D,statusCode:a.statusCode,headers:a.headers}),d(null,w)})}function V(e,d){var t=e.CORSConfiguration||{},a=t.CORSRules||e.CORSRules||[];a=c.clone(c.isArray(a)?a:[a]),c.each(a,function(w){c.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Z){var we=Z+"s",Ee=w[we]||w[Z]||[];delete w[we],w[Z]=c.isArray(Ee)?Ee:[Ee]})});var C={CORSRule:a};e.ResponseVary&&(C.ResponseVary=e.ResponseVary);var y=c.json2xml({CORSConfiguration:C}),D=e.Headers;D["Content-Type"]="application/xml",D["Content-MD5"]=c.b64(c.md5(y)),ae.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:y,action:"cors",headers:D},function(w,Z){if(w)return d(w);d(null,{statusCode:Z.statusCode,headers:Z.headers})})}function U(e,d){ae.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},function(t,a){if(t){if(t.statusCode===404&&t.error&&t.error.Code==="NoSuchCORSConfiguration"){var C={CORSRules:[],statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=a.CORSConfiguration||{},D=y.CORSRules||y.CORSRule||[];D=c.clone(c.isArray(D)?D:[D]);var w=y.ResponseVary;c.each(D,function(Z){c.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(we){var Ee=we+"s",Ae=Z[Ee]||Z[we]||[];delete Z[we],Z[Ee]=c.isArray(Ae)?Ae:[Ae]})}),d(null,{CORSRules:D,ResponseVary:w,statusCode:a.statusCode,headers:a.headers})})}function M(e,d){ae.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode||t.statusCode,headers:a.headers})})}function re(e,d){ae.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"location"},d)}function Q(e,d){var t=e.Policy;try{typeof t=="string"&&(t=JSON.parse(t))}catch{}if(!t||typeof t=="string")return d(c.error(new Error("Policy format error")));var a=JSON.stringify(t);t.version||(t.version="2.0");var C=e.Headers;C["Content-Type"]="application/json",C["Content-MD5"]=c.b64(c.md5(a)),ae.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:e.Bucket,Region:e.Region,action:"policy",body:a,headers:C},function(y,D){if(y&&y.statusCode===204)return d(null,{statusCode:y.statusCode});if(y)return d(y);d(null,{statusCode:D.statusCode,headers:D.headers})})}function ue(e,d){ae.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy",rawBody:!0},function(t,a){if(t)return t.statusCode&&t.statusCode===403?d(c.error(t,{ErrorStatus:"Access Denied"})):t.statusCode&&t.statusCode===405?d(c.error(t,{ErrorStatus:"Method Not Allowed"})):t.statusCode&&t.statusCode===404?d(c.error(t,{ErrorStatus:"Policy Not Found"})):d(t);var C={};try{C=JSON.parse(a.body)}catch{}d(null,{Policy:C,statusCode:a.statusCode,headers:a.headers})})}function R(e,d){ae.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode||t.statusCode,headers:a.headers})})}function A(e,d){var t=e.Tagging||{},a=t.TagSet||t.Tags||e.Tags||[];a=c.clone(c.isArray(a)?a:[a]);var C=c.json2xml({Tagging:{TagSet:{Tag:a}}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"tagging",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function v(e,d){ae.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},function(t,a){if(t){if(t.statusCode===404&&t.error&&(t.error==="Not Found"||t.error.Code==="NoSuchTagSet")){var C={Tags:[],statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=[];try{y=a.Tagging.TagSet.Tag||[]}catch{}y=c.clone(c.isArray(y)?y:[y]),d(null,{Tags:y,statusCode:a.statusCode,headers:a.headers})})}function W(e,d){ae.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function p(e,d){var t=e.LifecycleConfiguration||{},a=t.Rules||e.Rules||[];a=c.clone(a);var C=c.json2xml({LifecycleConfiguration:{Rule:a}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"lifecycle",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function q(e,d){ae.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},function(t,a){if(t){if(t.statusCode===404&&t.error&&t.error.Code==="NoSuchLifecycleConfiguration"){var C={Rules:[],statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=[];try{y=a.LifecycleConfiguration.Rule||[]}catch{}y=c.clone(c.isArray(y)?y:[y]),d(null,{Rules:y,statusCode:a.statusCode,headers:a.headers})})}function j(e,d){ae.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function I(e,d){if(!e.VersioningConfiguration){d(c.error(new Error("missing param VersioningConfiguration")));return}var t=e.VersioningConfiguration||{},a=c.json2xml({VersioningConfiguration:t}),C=e.Headers;C["Content-Type"]="application/xml",C["Content-MD5"]=c.b64(c.md5(a)),ae.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"versioning",headers:C},function(y,D){if(y&&y.statusCode===204)return d(null,{statusCode:y.statusCode});if(y)return d(y);d(null,{statusCode:D.statusCode,headers:D.headers})})}function L(e,d){ae.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"versioning"},function(t,a){t||!a.VersioningConfiguration&&(a.VersioningConfiguration={}),d(t,a)})}function B(e,d){var t=c.clone(e.ReplicationConfiguration),a=c.json2xml({ReplicationConfiguration:t});a=a.replace(/<(\/?)Rules>/gi,"<$1Rule>"),a=a.replace(/<(\/?)Tags>/gi,"<$1Tag>");var C=e.Headers;C["Content-Type"]="application/xml",C["Content-MD5"]=c.b64(c.md5(a)),ae.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"replication",headers:C},function(y,D){if(y&&y.statusCode===204)return d(null,{statusCode:y.statusCode});if(y)return d(y);d(null,{statusCode:D.statusCode,headers:D.headers})})}function P(e,d){ae.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(t,a){if(t){if(t.statusCode===404&&t.error&&(t.error==="Not Found"||t.error.Code==="ReplicationConfigurationnotFoundError")){var C={ReplicationConfiguration:{Rules:[]},statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}!a.ReplicationConfiguration&&(a.ReplicationConfiguration={}),a.ReplicationConfiguration.Rule&&(a.ReplicationConfiguration.Rules=c.makeArray(a.ReplicationConfiguration.Rule),delete a.ReplicationConfiguration.Rule),d(t,a)})}function K(e,d){ae.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function z(e,d){if(!e.WebsiteConfiguration){d(c.error(new Error("missing param WebsiteConfiguration")));return}var t=c.clone(e.WebsiteConfiguration||{}),a=t.RoutingRules||t.RoutingRule||[];a=c.isArray(a)?a:[a],delete t.RoutingRule,delete t.RoutingRules,a.length&&(t.RoutingRules={RoutingRule:a});var C=c.json2xml({WebsiteConfiguration:t}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"website",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function $(e,d){ae.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},function(t,a){if(t){if(t.statusCode===404&&t.error.Code==="NoSuchWebsiteConfiguration"){var C={WebsiteConfiguration:{},statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=a.WebsiteConfiguration||{};if(y.RoutingRules){var D=c.clone(y.RoutingRules.RoutingRule||[]);D=c.makeArray(D),y.RoutingRules=D}d(null,{WebsiteConfiguration:y,statusCode:a.statusCode,headers:a.headers})})}function ne(e,d){ae.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function ce(e,d){if(!e.RefererConfiguration){d(c.error(new Error("missing param RefererConfiguration")));return}var t=c.clone(e.RefererConfiguration||{}),a=t.DomainList||{},C=a.Domains||a.Domain||[];C=c.isArray(C)?C:[C],C.length&&(t.DomainList={Domain:C});var y=c.json2xml({RefererConfiguration:t}),D=e.Headers;D["Content-Type"]="application/xml",D["Content-MD5"]=c.b64(c.md5(y)),ae.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:y,action:"referer",headers:D},function(w,Z){if(w&&w.statusCode===204)return d(null,{statusCode:w.statusCode});if(w)return d(w);d(null,{statusCode:Z.statusCode,headers:Z.headers})})}function ie(e,d){ae.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},function(t,a){if(t){if(t.statusCode===404&&t.error.Code==="NoSuchRefererConfiguration"){var C={WebsiteConfiguration:{},statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=a.RefererConfiguration||{};if(y.DomainList){var D=c.makeArray(y.DomainList.Domain||[]);y.DomainList={Domains:D}}d(null,{RefererConfiguration:y,statusCode:a.statusCode,headers:a.headers})})}function ee(e,d){var t=e.DomainConfiguration||{},a=t.DomainRule||e.DomainRule||[];a=c.clone(a);var C=c.json2xml({DomainConfiguration:{DomainRule:a}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"domain",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function le(e,d){ae.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(t,a){if(t)return d(t);var C=[];try{C=a.DomainConfiguration.DomainRule||[]}catch{}C=c.clone(c.isArray(C)?C:[C]),d(null,{DomainRule:C,statusCode:a.statusCode,headers:a.headers})})}function se(e,d){ae.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function ye(e,d){var t=e.OriginConfiguration||{},a=t.OriginRule||e.OriginRule||[];a=c.clone(a);var C=c.json2xml({OriginConfiguration:{OriginRule:a}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"origin",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function Y(e,d){ae.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(t,a){if(t)return d(t);var C=[];try{C=a.OriginConfiguration.OriginRule||[]}catch{}C=c.clone(c.isArray(C)?C:[C]),d(null,{OriginRule:C,statusCode:a.statusCode,headers:a.headers})})}function te(e,d){ae.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function pe(e,d){var t=c.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=c.b64(c.md5(t)),ae.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"logging",headers:a},function(C,y){if(C&&C.statusCode===204)return d(null,{statusCode:C.statusCode});if(C)return d(C);d(null,{statusCode:y.statusCode,headers:y.headers})})}function me(e,d){ae.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},function(t,a){if(t)return d(t);d(null,{BucketLoggingStatus:a.BucketLoggingStatus,statusCode:a.statusCode,headers:a.headers})})}function ge(e,d,t){var a=c.clone(d.InventoryConfiguration);if(a.OptionalFields){var C=a.OptionalFields||[];a.OptionalFields={Field:C}}if(a.Destination&&a.Destination.COSBucketDestination&&a.Destination.COSBucketDestination.Encryption){var y=a.Destination.COSBucketDestination.Encryption;Object.keys(y).indexOf("SSECOS")>-1&&(y["SSE-COS"]=y.SSECOS,delete y.SSECOS)}var D=c.json2xml({InventoryConfiguration:a}),w=d.Headers;w["Content-Type"]="application/xml",w["Content-MD5"]=c.b64(c.md5(D));var Z=e==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";ae.call(this,{Action:Z,method:e,Bucket:d.Bucket,Region:d.Region,body:D,action:"inventory",qs:{id:d.Id},headers:w},function(we,Ee){if(we&&we.statusCode===204)return t(null,{statusCode:we.statusCode});if(we)return t(we);t(null,{statusCode:Ee.statusCode,headers:Ee.headers})})}function ve(e,d){return ge.call(this,"PUT",e,d)}function Ce(e,d){return ge.call(this,"POST",e,d)}function De(e,d){ae.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(t,a){if(t)return d(t);var C=a.InventoryConfiguration;if(C&&C.OptionalFields&&C.OptionalFields.Field){var y=C.OptionalFields.Field;c.isArray(y)||(y=[y]),C.OptionalFields=y}if(C.Destination&&C.Destination.COSBucketDestination&&C.Destination.COSBucketDestination.Encryption){var D=C.Destination.COSBucketDestination.Encryption;Object.keys(D).indexOf("SSE-COS")>-1&&(D.SSECOS=D["SSE-COS"],delete D["SSE-COS"])}d(null,{InventoryConfiguration:C,statusCode:a.statusCode,headers:a.headers})})}function be(e,d){ae.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},function(t,a){if(t)return d(t);var C=a.ListInventoryConfigurationResult,y=C.InventoryConfiguration||[];y=c.isArray(y)?y:[y],delete C.InventoryConfiguration,c.each(y,function(D){if(D&&D.OptionalFields&&D.OptionalFields.Field){var w=D.OptionalFields.Field;c.isArray(w)||(w=[w]),D.OptionalFields=w}if(D.Destination&&D.Destination.COSBucketDestination&&D.Destination.COSBucketDestination.Encryption){var Z=D.Destination.COSBucketDestination.Encryption;Object.keys(Z).indexOf("SSE-COS")>-1&&(Z.SSECOS=Z["SSE-COS"],delete Z["SSE-COS"])}}),C.InventoryConfigurations=y,c.extend(C,{statusCode:a.statusCode,headers:a.headers}),d(null,C)})}function Te(e,d){ae.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function ke(e,d){if(!e.AccelerateConfiguration){d(c.error(new Error("missing param AccelerateConfiguration")));return}var t={AccelerateConfiguration:e.AccelerateConfiguration||{}},a=c.json2xml(t),C={};C["Content-Type"]="application/xml",C["Content-MD5"]=c.b64(c.md5(a)),ae.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"accelerate",headers:C},function(y,D){if(y)return d(y);d(null,{statusCode:D.statusCode,headers:D.headers})})}function Fe(e,d){ae.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},function(t,a){t||!a.AccelerateConfiguration&&(a.AccelerateConfiguration={}),d(t,a)})}function Me(e,d){var t=e.ServerSideEncryptionConfiguration||{},a=t.Rule||t.Rules||[],C=c.json2xml({ServerSideEncryptionConfiguration:{Rule:a}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:C,action:"encryption",headers:y},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function Pe(e,d){ae.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(t,a){if(t){if(t.statusCode===404&&t.code==="NoSuchEncryptionConfiguration"){var C={EncryptionConfiguration:{Rules:[]},statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=c.makeArray(a.EncryptionConfiguration&&a.EncryptionConfiguration.Rule||[]);a.EncryptionConfiguration={Rules:y},d(t,a)})}function oe(e,d){ae.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function s(e,d){ae.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(t,a){if(t){var C=t.statusCode;return e.Headers["If-Modified-Since"]&&C&&C===304?d(null,{NotModified:!0,statusCode:C}):d(t)}a.ETag=c.attr(a.headers,"etag",""),d(null,a)})}function n(e,d){var t={};t.prefix=e.Prefix||"",t.delimiter=e.Delimiter,t["key-marker"]=e.KeyMarker,t["version-id-marker"]=e.VersionIdMarker,t["max-keys"]=e.MaxKeys,t["encoding-type"]=e.EncodingType,ae.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:t.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:t,action:"versions"},function(a,C){if(a)return d(a);var y=C.ListVersionsResult||{},D=y.DeleteMarker||[];D=c.isArray(D)?D:[D];var w=y.Version||[];w=c.isArray(w)?w:[w];var Z=c.clone(y);delete Z.DeleteMarker,delete Z.Version,c.extend(Z,{DeleteMarkers:D,Versions:w,statusCode:C.statusCode,headers:C.headers}),d(null,Z)})}function r(e,d){var t=e.Query||{},a=e.QueryString||"",C=c.throttleOnProgress.call(this,0,e.onProgress),y=e.tracker;y&&y.setParams({signStartTime:new Date().getTime()}),t["response-content-type"]=e.ResponseContentType,t["response-content-language"]=e.ResponseContentLanguage,t["response-expires"]=e.ResponseExpires,t["response-cache-control"]=e.ResponseCacheControl,t["response-content-disposition"]=e.ResponseContentDisposition,t["response-content-encoding"]=e.ResponseContentEncoding,ae.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:t,qsStr:a,rawBody:!0,onDownloadProgress:C,tracker:y},function(D,w){if(C(null,!0),D){var Z=D.statusCode;return e.Headers["If-Modified-Since"]&&Z&&Z===304?d(null,{NotModified:!0}):d(D)}d(null,{Body:w.body,ETag:c.attr(w.headers,"etag",""),statusCode:w.statusCode,headers:w.headers})})}function o(e,d){var t=this,a=e.ContentLength,C=c.throttleOnProgress.call(t,a,e.onProgress),y=e.Headers;!y["Cache-Control"]&&!y["cache-control"]&&(y["Cache-Control"]=""),!y["Content-Type"]&&!y["content-type"]&&(y["Content-Type"]=e.Body&&e.Body.type||"");var D=e.UploadAddMetaMd5||t.options.UploadAddMetaMd5||t.options.UploadCheckContentMd5,w=e.tracker;D&&w&&w.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(D,e.Body,function(Z){Z&&(w&&w.setParams({md5EndTime:new Date().getTime()}),t.options.UploadCheckContentMd5&&(y["Content-MD5"]=c.b64(Z)),(e.UploadAddMetaMd5||t.options.UploadAddMetaMd5)&&(y["x-cos-meta-md5"]=Z)),e.ContentLength!==void 0&&(y["Content-Length"]=e.ContentLength),C(null,!0),ae.call(t,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:C,tracker:w},function(we,Ee){if(we)return C(null,!0),d(we);C({loaded:a,total:a},!0);var Ae=F({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:t.options.UseAccelerate?"accelerate":e.Region,object:e.Key});Ae=Ae.substr(Ae.indexOf("://")+3),Ee.Location=Ae,Ee.ETag=c.attr(Ee.headers,"etag",""),d(null,Ee)})},e.onHashProgress)}function f(e,d){ae.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},function(t,a){if(t){var C=t.statusCode;return C&&C===404?d(null,{BucketNotFound:!0,statusCode:C}):d(t)}d(null,{statusCode:a.statusCode,headers:a.headers})})}function b(e,d){var t={};e.VersionId&&(t.versionId=e.VersionId),ae.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:t,action:"acl"},function(a,C){if(a)return d(a);var y=C.AccessControlPolicy||{},D=y.Owner||{},w=y.AccessControlList&&y.AccessControlList.Grant||[];w=c.isArray(w)?w:[w];var Z=l(y);delete Z.GrantWrite,C.headers&&C.headers["x-cos-acl"]&&(Z.ACL=C.headers["x-cos-acl"]),Z=c.extend(Z,{Owner:D,Grants:w,statusCode:C.statusCode,headers:C.headers}),d(null,Z)})}function k(e,d){var t=e.Headers,a="";if(e.AccessControlPolicy){var C=c.clone(e.AccessControlPolicy||{}),y=C.Grants||C.Grant;y=c.isArray(y)?y:[y],delete C.Grant,delete C.Grants,C.AccessControlList={Grant:y},a=c.json2xml({AccessControlPolicy:C}),t["Content-Type"]="application/xml",t["Content-MD5"]=c.b64(c.md5(a))}c.each(t,function(D,w){w.indexOf("x-cos-grant-")===0&&(t[w]=E(t[w]))}),ae.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:t,body:a},function(D,w){if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function G(e,d){var t=e.Headers;t.Origin=e.Origin,t["Access-Control-Request-Method"]=e.AccessControlRequestMethod,t["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,ae.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:t},function(a,C){if(a)return a.statusCode&&a.statusCode===403?d(null,{OptionsForbidden:!0,statusCode:a.statusCode}):d(a);var y=C.headers||{};d(null,{AccessControlAllowOrigin:y["access-control-allow-origin"],AccessControlAllowMethods:y["access-control-allow-methods"],AccessControlAllowHeaders:y["access-control-allow-headers"],AccessControlExposeHeaders:y["access-control-expose-headers"],AccessControlMaxAge:y["access-control-max-age"],statusCode:C.statusCode,headers:C.headers})})}function de(e,d){var t=this,a=e.Headers;!a["Cache-Control"]&&!a["cache-control"]&&(a["Cache-Control"]="");var C=e.CopySource||"",y=c.getSourceParams.call(this,C);if(!y){d(c.error(new Error("CopySource format error")));return}var D=y.Bucket,w=y.Region,Z=decodeURIComponent(y.Key);ae.call(this,{Scope:[{action:"name/cos:GetObject",bucket:D,region:w,prefix:Z},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(we,Ee){if(we)return d(we);var Ae=c.clone(Ee.CopyObjectResult||{}),Be=F({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});c.extend(Ae,{Location:Be,statusCode:Ee.statusCode,headers:Ee.headers}),d(null,Ae)})}function he(e,d){var t=e.CopySource||"",a=c.getSourceParams.call(this,t);if(!a){d(c.error(new Error("CopySource format error")));return}var C=a.Bucket,y=a.Region,D=decodeURIComponent(a.Key);ae.call(this,{Scope:[{action:"name/cos:GetObject",bucket:C,region:y,prefix:D},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},function(w,Z){if(w)return d(w);var we=c.clone(Z.CopyPartResult||{});c.extend(we,{statusCode:Z.statusCode,headers:Z.headers}),d(null,we)})}function J(e,d){var t=e.Objects||[],a=e.Quiet;t=c.isArray(t)?t:[t];var C=c.json2xml({Delete:{Object:t,Quiet:a||!1}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C));var D=c.map(t,function(w){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:w.Key}});ae.call(this,{Scope:D,method:"POST",Bucket:e.Bucket,Region:e.Region,body:C,action:"delete",headers:y},function(w,Z){if(w)return d(w);var we=Z.DeleteResult||{},Ee=we.Deleted||[],Ae=we.Error||[];Ee=c.isArray(Ee)?Ee:[Ee],Ae=c.isArray(Ae)?Ae:[Ae];var Be=c.clone(we);c.extend(Be,{Error:Ae,Deleted:Ee,statusCode:Z.statusCode,headers:Z.headers}),d(null,Be)})}function Se(e,d){var t=e.Headers;if(!e.RestoreRequest){d(c.error(new Error("missing param RestoreRequest")));return}var a=e.RestoreRequest||{},C=c.json2xml({RestoreRequest:a});t["Content-Type"]="application/xml",t["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:C,action:"restore",headers:t},d)}function _e(e,d){var t=e.Tagging||{},a=t.TagSet||t.Tags||e.Tags||[];a=c.clone(c.isArray(a)?a:[a]);var C=c.json2xml({Tagging:{TagSet:{Tag:a}}}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:C,action:"tagging",headers:y,VersionId:e.VersionId},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);d(null,{statusCode:w.statusCode,headers:w.headers})})}function Ue(e,d){ae.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(t,a){if(t){if(t.statusCode===404&&t.error&&(t.error==="Not Found"||t.error.Code==="NoSuchTagSet")){var C={Tags:[],statusCode:t.statusCode};t.headers&&(C.headers=t.headers),d(null,C)}else d(t);return}var y=[];try{y=a.Tagging.TagSet.Tag||[]}catch{}y=c.clone(c.isArray(y)?y:[y]),d(null,{Tags:y,statusCode:a.statusCode,headers:a.headers})})}function Re(e,d){ae.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(t,a){if(t&&t.statusCode===204)return d(null,{statusCode:t.statusCode});if(t)return d(t);d(null,{statusCode:a.statusCode,headers:a.headers})})}function Le(e,d){var t=e.SelectType;if(!t)return d(c.error(new Error("missing param SelectType")));var a=e.SelectRequest||{},C=c.json2xml({SelectRequest:a}),y=e.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=c.b64(c.md5(C)),ae.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:C,DataType:"arraybuffer",rawBody:!0},function(D,w){if(D&&D.statusCode===204)return d(null,{statusCode:D.statusCode});if(D)return d(D);var Z=c.parseSelectPayload(w.body);d(null,{statusCode:w.statusCode,headers:w.headers,Body:Z.body,Payload:Z.payload})})}function ze(e,d){var t=this,a=e.Headers,C=e.tracker;!a["Cache-Control"]&&!a["cache-control"]&&(a["Cache-Control"]=""),!a["Content-Type"]&&!a["content-type"]&&(a["Content-Type"]=e.Body&&e.Body.type||"");var y=e.Body&&(e.UploadAddMetaMd5||t.options.UploadAddMetaMd5);y&&C&&C.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(y,e.Body,function(D){D&&(e.Headers["x-cos-meta-md5"]=D),y&&C&&C.setParams({md5EndTime:new Date().getTime()}),ae.call(t,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:C},function(w,Z){if(w)return C&&C.parent&&C.parent.setParams({errorNode:"multipartInit"}),d(w);if(Z=c.clone(Z||{}),Z&&Z.InitiateMultipartUploadResult)return d(null,c.extend(Z.InitiateMultipartUploadResult,{statusCode:Z.statusCode,headers:Z.headers}));d(null,Z)})},e.onHashProgress)}function Ve(e,d){var t=this;c.getFileSize("multipartUpload",e,function(){var a=e.tracker,C=t.options.UploadCheckContentMd5;C&&a&&a.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(C,e.Body,function(y){y&&(e.Headers["Content-MD5"]=c.b64(y)),C&&a&&a.setParams({md5EndTime:new Date().getTime()}),a&&a.setParams({partNumber:e.PartNumber}),ae.call(t,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:a},function(D,w){if(D)return a&&a.parent&&a.parent.setParams({errorNode:"multipartUpload"}),d(D);d(null,{ETag:c.attr(w.headers,"etag",""),statusCode:w.statusCode,headers:w.headers})})})})}function We(e,d){for(var t=this,a=e.UploadId,C=e.Parts,y=e.tracker,D=0,w=C.length;D<w;D++)C[D].ETag&&C[D].ETag.indexOf('"')===0||(C[D].ETag='"'+C[D].ETag+'"');var Z=c.json2xml({CompleteMultipartUpload:{Part:C}});Z=Z.replace(/\n\s*/g,"");var we=e.Headers;we["Content-Type"]="application/xml",we["Content-MD5"]=c.b64(c.md5(Z)),ae.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{uploadId:a},body:Z,headers:we,tracker:y},function(Ee,Ae){if(Ee)return y&&y.parent&&y.parent.setParams({errorNode:"multipartComplete"}),d(Ee);var Be=F({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0}),qe=Ae.CompleteMultipartUploadResult||{};qe.ProcessResults&&qe&&qe.ProcessResults&&(qe.UploadResult={OriginalInfo:{Key:qe.Key,Location:Be,ETag:qe.ETag,ImageInfo:qe.ImageInfo},ProcessResults:qe.ProcessResults},delete qe.ImageInfo,delete qe.ProcessResults);var Ye=c.extend(qe,{Location:Be,statusCode:Ae.statusCode,headers:Ae.headers});d(null,Ye)})}function Ke(e,d){var t={};t.delimiter=e.Delimiter,t["encoding-type"]=e.EncodingType,t.prefix=e.Prefix||"",t["max-uploads"]=e.MaxUploads,t["key-marker"]=e.KeyMarker,t["upload-id-marker"]=e.UploadIdMarker,t=c.clearKey(t);var a=e.tracker;a&&a.setParams({signStartTime:new Date().getTime()}),ae.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:t.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:t,action:"uploads",tracker:a},function(C,y){if(C)return a&&a.parent&&a.parent.setParams({errorNode:"multipartList"}),d(C);if(y&&y.ListMultipartUploadsResult){var D=y.ListMultipartUploadsResult.Upload||[];D=c.isArray(D)?D:[D],y.ListMultipartUploadsResult.Upload=D}var w=c.clone(y.ListMultipartUploadsResult||{});c.extend(w,{statusCode:y.statusCode,headers:y.headers}),d(null,w)})}function Ge(e,d){var t={},a=e.tracker;t.uploadId=e.UploadId,t["encoding-type"]=e.EncodingType,t["max-parts"]=e.MaxParts,t["part-number-marker"]=e.PartNumberMarker,ae.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:t},function(C,y){if(C)return a&&a.parent&&a.parent.setParams({errorNode:"multipartListPart"}),d(C);var D=y.ListPartsResult||{},w=D.Part||[];w=c.isArray(w)?w:[w],D.Part=w;var Z=c.clone(D);c.extend(Z,{statusCode:y.statusCode,headers:y.headers}),d(null,Z)})}function Xe(e,d){var t={};t.uploadId=e.UploadId,ae.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:t},function(a,C){if(a)return d(a);d(null,{statusCode:C.statusCode,headers:C.headers})})}function rt(e,d){ae.call(this,{method:e.Method,Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:e.Action,headers:e.Headers,qs:e.Query,body:e.Body,Url:e.Url,rawBody:e.RawBody,DataType:e.DataType},function(t,a){if(t)return d(t);a&&a.body&&(a.Body=a.body,delete a.body),d(t,a)})}function et(e,d){var t=e.Headers;!t["Cache-Control"]&&!t["cache-control"]&&(t["Cache-Control"]=""),!t["Content-Type"]&&!t["content-type"]&&(t["Content-Type"]=e.Body&&e.Body.type||""),ae.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:e.Bucket,Region:e.Region,action:"append",Key:e.Key,body:e.Body,qs:{position:e.Position},headers:e.Headers},function(a,C){if(a)return d(a);d(null,C)})}function nt(e){var d=this;return c.getAuth({SecretId:e.SecretId||this.options.SecretId||"",SecretKey:e.SecretKey||this.options.SecretKey||"",Bucket:e.Bucket,Region:e.Region,Method:e.Method,Key:e.Key,Query:e.Query,Headers:e.Headers,Expires:e.Expires,UseRawKey:d.options.UseRawKey,SystemClockOffset:d.options.SystemClockOffset})}function i(e,d){var t=this,a=e.UseAccelerate===void 0?t.options.UseAccelerate:e.UseAccelerate,C=F({ForcePathStyle:t.options.ForcePathStyle,protocol:e.Protocol||t.options.Protocol,domain:e.Domain||t.options.Domain,bucket:e.Bucket,region:a?"accelerate":e.Region,object:e.Key}),y="";e.Query&&(y+=c.obj2str(e.Query)),e.QueryString&&(y+=(y?"&":"")+e.QueryString);var D=C;if(e.Sign!==void 0&&!e.Sign)return y&&(D+="?"+y),d(null,{Url:D}),D;var w=fe.call(this,{Bucket:e.Bucket,Region:e.Region,UseAccelerate:e.UseAccelerate,Url:C}),Z=xe.call(this,{Action:(e.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:e.Bucket||"",Region:e.Region||"",Method:e.Method||"get",Key:e.Key,Expires:e.Expires,Headers:e.Headers,Query:e.Query,SignHost:w,ForceSignHost:e.ForceSignHost===!1?!1:t.options.ForceSignHost},function(we,Ee){if(!!d){if(we){d(we);return}var Ae=function(Ye){var it=Ye.match(/q-url-param-list.*?(?=&)/g)[0],ot="q-url-param-list="+encodeURIComponent(it.replace(/q-url-param-list=/,"")).toLowerCase(),Ze=new RegExp(it,"g"),ut=Ye.replace(Ze,ot);return ut},Be=C;Be+="?"+(Ee.Authorization.indexOf("q-signature")>-1?Ae(Ee.Authorization):"sign="+encodeURIComponent(Ee.Authorization)),Ee.SecurityToken&&(Be+="&x-cos-security-token="+Ee.SecurityToken),Ee.ClientIP&&(Be+="&clientIP="+Ee.ClientIP),Ee.ClientUA&&(Be+="&clientUA="+Ee.ClientUA),Ee.Token&&(Be+="&token="+Ee.Token),y&&(Be+="&"+y),setTimeout(function(){d(null,{Url:Be})})}});return Z?(D+="?"+Z.Authorization+(Z.SecurityToken?"&x-cos-security-token="+Z.SecurityToken:""),y&&(D+="&"+y)):y&&(D+="?"+y),D}function l(e){var d={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},t={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},a=e&&e.AccessControlList||{},C=a.Grant;C&&(C=c.isArray(C)?C:[C]);var y={READ:0,WRITE:0,FULL_CONTROL:0};return C&&C.length&&c.each(C,function(D){D.Grantee.ID==="qcs::cam::anyone:anyone"||D.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?y[D.Permission]=1:D.Grantee.ID!==e.Owner.ID&&d[t[D.Permission]].push('id="'+D.Grantee.ID+'"')}),y.FULL_CONTROL||y.WRITE&&y.READ?d.ACL="public-read-write":y.READ?d.ACL="public-read":d.ACL="private",c.each(t,function(D){d[D]=E(d[D].join(","))}),d}function E(e){var d=e.split(","),t={},a,C;for(a=0;a<d.length;)C=d[a].trim(),t[C]?d.splice(a,1):(t[C]=!0,d[a]=C,a++);return d.join(",")}function F(e){var d=e.region||"",t=e.bucket||"",a=t.substr(0,t.lastIndexOf("-")),C=t.substr(t.lastIndexOf("-")+1),y=e.domain,D=e.object;typeof y=="function"&&(y=y({Bucket:t,Region:d})),["http","https"].includes(e.protocol)&&(e.protocol=e.protocol+":");var w=e.protocol||(c.isBrowser&&(typeof location=="undefined"?"undefined":h(location))==="object"&&location.protocol==="http:"?"http:":"https:");y||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(d)>-1?y="{Region}.myqcloud.com":y="cos.{Region}.myqcloud.com",e.ForcePathStyle||(y="{Bucket}."+y)),y=y.replace(/\{\{AppId\}\}/gi,C).replace(/\{\{Bucket\}\}/gi,a).replace(/\{\{Region\}\}/gi,d).replace(/\{\{.*?\}\}/gi,""),y=y.replace(/\{AppId\}/gi,C).replace(/\{BucketName\}/gi,a).replace(/\{Bucket\}/gi,t).replace(/\{Region\}/gi,d).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(y)||(y=w+"//"+y),y.slice(-1)==="/"&&(y=y.slice(0,-1));var Z=y;return e.ForcePathStyle&&(Z+="/"+t),Z+="/",D&&(Z+=c.camSafeUrlEncode(D).replace(/%2F/g,"/")),e.isLocation&&(Z=Z.replace(/^https?:\/\//,"")),Z}var fe=function(d){if(!d.Bucket||!d.Region)return"";var t=d.UseAccelerate===void 0?this.options.UseAccelerate:d.UseAccelerate,a=d.Url||F({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:d.Bucket,region:t?"accelerate":d.Region}),C=a.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),y=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return y.test(C)?C:""};function xe(e,d){var t=c.clone(e.Headers),a="";c.each(t,function(Ie,Oe){(Ie===""||["content-type","cache-control","expires"].indexOf(Oe.toLowerCase())>-1)&&delete t[Oe],Oe.toLowerCase()==="host"&&(a=Ie)});var C=e.ForceSignHost!==!1;!a&&e.SignHost&&C&&(t.Host=e.SignHost);var y=!1,D=function(Oe,je){y||(y=!0,je&&je.XCosSecurityToken&&!je.SecurityToken&&(je=c.clone(je),je.SecurityToken=je.XCosSecurityToken,delete je.XCosSecurityToken),d&&d(Oe,je))},w=this,Z=e.Bucket||"",we=e.Region||"",Ee=e.Key||"";w.options.ForcePathStyle&&Z&&(Ee=Z+"/"+Ee);var Ae="/"+Ee,Be={},qe=e.Scope;if(!qe){var Ye=e.Action||"",it=e.ResourceKey||e.Key||"";qe=e.Scope||[{action:Ye,bucket:Z,region:we,prefix:it}]}var ot=c.md5(JSON.stringify(qe));w._StsCache=w._StsCache||[],function(){var Ie,Oe;for(Ie=w._StsCache.length-1;Ie>=0;Ie--){Oe=w._StsCache[Ie];var je=Math.round(c.getSkewTime(w.options.SystemClockOffset)/1e3)+30;if(Oe.StartTime&&je<Oe.StartTime||je>=Oe.ExpiredTime){w._StsCache.splice(Ie,1);continue}if(!Oe.ScopeLimit||Oe.ScopeLimit&&Oe.ScopeKey===ot){Be=Oe;break}}}();var Ze=function(){var Oe="";Be.StartTime&&e.Expires?Oe=Be.StartTime+";"+(Be.StartTime+e.Expires*1):Be.StartTime&&Be.ExpiredTime&&(Oe=Be.StartTime+";"+Be.ExpiredTime);var je=c.getAuth({SecretId:Be.TmpSecretId,SecretKey:Be.TmpSecretKey,Method:e.Method,Pathname:Ae,Query:e.Query,Headers:t,Expires:e.Expires,UseRawKey:w.options.UseRawKey,SystemClockOffset:w.options.SystemClockOffset,KeyTime:Oe,ForceSignHost:C}),He={Authorization:je,SecurityToken:Be.SecurityToken||Be.XCosSecurityToken||"",Token:Be.Token||"",ClientIP:Be.ClientIP||"",ClientUA:Be.ClientUA||""};D(null,He)},ut=function(Oe){if(Oe.Authorization){var je=!1,He=Oe.Authorization;if(He)if(He.indexOf(" ")>-1)je=!1;else if(He.indexOf("q-sign-algorithm=")>-1&&He.indexOf("q-ak=")>-1&&He.indexOf("q-sign-time=")>-1&&He.indexOf("q-key-time=")>-1&&He.indexOf("q-url-param-list=")>-1)je=!0;else try{He=atob(He),He.indexOf("a=")>-1&&He.indexOf("k=")>-1&&He.indexOf("t=")>-1&&He.indexOf("r=")>-1&&He.indexOf("b=")>-1&&(je=!0)}catch{}if(!je)return c.error(new Error("getAuthorization callback params format error"))}else{if(!Oe.TmpSecretId)return c.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Oe.TmpSecretKey)return c.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Oe.SecurityToken&&!Oe.XCosSecurityToken)return c.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Oe.ExpiredTime)return c.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Oe.ExpiredTime&&Oe.ExpiredTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Oe.StartTime&&Oe.StartTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Be.ExpiredTime&&Be.ExpiredTime-c.getSkewTime(w.options.SystemClockOffset)/1e3>60)Ze();else if(w.options.getAuthorization)w.options.getAuthorization.call(w,{Bucket:Z,Region:we,Method:e.Method,Key:Ee,Pathname:Ae,Query:e.Query,Headers:t,Scope:qe,SystemClockOffset:w.options.SystemClockOffset,ForceSignHost:C},function(Ie){typeof Ie=="string"&&(Ie={Authorization:Ie});var Oe=ut(Ie);if(Oe)return D(Oe);Ie.Authorization?D(null,Ie):(Be=Ie||{},Be.Scope=qe,Be.ScopeKey=ot,w._StsCache.push(Be),Ze())});else if(w.options.getSTS)w.options.getSTS.call(w,{Bucket:Z,Region:we},function(Ie){Be=Ie||{},Be.Scope=qe,Be.ScopeKey=ot,Be.TmpSecretId||(Be.TmpSecretId=Be.SecretId),Be.TmpSecretKey||(Be.TmpSecretKey=Be.SecretKey);var Oe=ut(Be);if(Oe)return D(Oe);w._StsCache.push(Be),Ze()});else return function(){var Ie=c.getAuth({SecretId:e.SecretId||w.options.SecretId,SecretKey:e.SecretKey||w.options.SecretKey,Method:e.Method,Pathname:Ae,Query:e.Query,Headers:t,Expires:e.Expires,UseRawKey:w.options.UseRawKey,SystemClockOffset:w.options.SystemClockOffset,ForceSignHost:C}),Oe={Authorization:Ie,SecurityToken:w.options.SecurityToken||w.options.XCosSecurityToken};return D(null,Oe),Oe}();return""}function Ne(e){var d=!1,t=!1,a=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var C=e.error.Code,y=e.error.Message;(C==="RequestTimeTooSkewed"||C==="AccessDenied"&&y==="Request has expired")&&(t=!0)}catch{}if(e)if(t&&a){var D=Date.parse(a);this.options.CorrectClockSkew&&Math.abs(c.getSkewTime(this.options.SystemClockOffset)-D)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=D-Date.now(),d=!0)}else Math.floor(e.statusCode/100)===5&&(d=!0);return d}function ae(e,d){var t=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=c.clearKey(e.qs),e.headers&&(e.headers=c.clearKey(e.headers)),e.qs&&(e.qs=c.clearKey(e.qs));var a=c.clone(e.qs);e.action&&(a[e.action]="");var C=e.url||e.Url,y=e.SignHost||fe.call(this,{Bucket:e.Bucket,Region:e.Region,Url:C}),D=e.tracker,w=function Z(we){var Ee=t.options.SystemClockOffset;D&&D.setParams({signStartTime:new Date().getTime(),retryTimes:we-1}),xe.call(t,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:a,Headers:e.headers,SignHost:y,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:t.options.ForceSignHost},function(Ae,Be){if(Ae){d(Ae);return}D&&D.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),e.AuthData=Be,Qe.call(t,e,function(qe,Ye){D&&D.setParams({httpEndTime:new Date().getTime()}),qe&&we<2&&(Ee!==t.options.SystemClockOffset||Ne.call(t,qe))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),Z(we+1)):d(qe,Ye)})})};w(1)}function Qe(e,d){var t=this,a=e.TaskId;if(!(a&&!t._isRunningTask(a))){var C=e.Bucket,y=e.Region,D=e.Key,w=e.method||"GET",Z=e.Url||e.url,we=e.body,Ee=e.rawBody;t.options.UseAccelerate&&(y="accelerate"),Z=Z||F({ForcePathStyle:t.options.ForcePathStyle,protocol:t.options.Protocol,domain:t.options.Domain,bucket:C,region:y,object:D}),e.action&&(Z=Z+"?"+(c.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(Z.indexOf("?")>-1?Z=Z+"&"+e.qsStr:Z=Z+"?"+e.qsStr);var Ae={method:w,url:Z,headers:e.headers,qs:e.qs,body:we},Be="x-cos-security-token";if(c.isCIHost(Z)&&(Be="x-ci-security-token"),Ae.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(Ae.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(Ae.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(Ae.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(Ae.headers[Be]=e.AuthData.SecurityToken),Ae.headers&&(Ae.headers=c.clearKey(Ae.headers)),Ae=c.clearKey(Ae),e.onProgress&&typeof e.onProgress=="function"){var qe=we&&(we.size||we.length)||0;Ae.onProgress=function(Ie){if(!(a&&!t._isRunningTask(a))){var Oe=Ie?Ie.loaded:0;e.onProgress({loaded:Oe,total:qe})}}}e.onDownloadProgress&&(Ae.onDownloadProgress=e.onDownloadProgress),e.DataType&&(Ae.dataType=e.DataType),this.options.Timeout&&(Ae.timeout=this.options.Timeout),t.options.ForcePathStyle&&(Ae.pathStyle=t.options.ForcePathStyle),t.emit("before-send",Ae);var Ye=Ae.url.includes("accelerate."),it=Ae.qs?Object.keys(Ae.qs).map(function(Ie){return"".concat(Ie,"=").concat(Ae.qs[Ie])}).join("&"):"",ot=it?Ae.url+"?"+it:Ae.url;e.tracker&&e.tracker.setParams({reqUrl:ot,accelerate:Ye?"Y":"N"}),e.tracker&&e.tracker.parent&&e.tracker.parent.setParams({reqUrl:ot,accelerate:Ye?"Y":"N"});var Ze=(t.options.Request||x)(Ae,function(Ie){if(!(Ie&&Ie.error==="abort")){var Oe={options:Ae,error:Ie&&Ie.error,statusCode:Ie&&Ie.statusCode||0,statusMessage:Ie&&Ie.statusMessage||"",headers:Ie&&Ie.headers||{},body:Ie&&Ie.body};t.emit("after-receive",Oe);var je=Oe.error,He=Oe.body,tt={statusCode:Oe.statusCode,statusMessage:Oe.statusMessage,headers:Oe.headers},pt,st=function(dt,ht){if(a&&t.off("inner-kill-task",ut),!pt){pt=!0;var ft={};tt&&tt.statusCode&&(ft.statusCode=tt.statusCode),tt&&tt.headers&&(ft.headers=tt.headers),dt?(dt=c.extend(dt||{},ft),d(dt,null)):(ht=c.extend(ht||{},ft),d(null,ht)),Ze=null}};if(je)return st(c.error(je));var ct=tt.statusCode,gt=Math.floor(ct/100)===2;if(Ee&&gt)return st(null,{body:He});var at;try{at=He&&He.indexOf("<")>-1&&He.indexOf(">")>-1&&c.xml2json(He)||{}}catch{at={}}var lt=at&&at.Error;gt?st(null,at):lt?st(c.error(new Error(lt.Message),{code:lt.Code,error:lt})):ct?st(c.error(new Error(tt.statusMessage),{code:""+ct})):ct&&st(c.error(new Error("statusCode error")))}}),ut=function Ie(Oe){Oe.TaskId===a&&(Ze&&Ze.abort&&Ze.abort(),t.off("inner-kill-task",Ie))};a&&t.on("inner-kill-task",ut)}}var Je={getService:S,putBucket:_,headBucket:N,getBucket:O,deleteBucket:T,putBucketAcl:H,getBucketAcl:X,putBucketCors:V,getBucketCors:U,deleteBucketCors:M,getBucketLocation:re,getBucketPolicy:ue,putBucketPolicy:Q,deleteBucketPolicy:R,putBucketTagging:A,getBucketTagging:v,deleteBucketTagging:W,putBucketLifecycle:p,getBucketLifecycle:q,deleteBucketLifecycle:j,putBucketVersioning:I,getBucketVersioning:L,putBucketReplication:B,getBucketReplication:P,deleteBucketReplication:K,putBucketWebsite:z,getBucketWebsite:$,deleteBucketWebsite:ne,putBucketReferer:ce,getBucketReferer:ie,putBucketDomain:ee,getBucketDomain:le,deleteBucketDomain:se,putBucketOrigin:ye,getBucketOrigin:Y,deleteBucketOrigin:te,putBucketLogging:pe,getBucketLogging:me,putBucketInventory:ve,postBucketInventory:Ce,getBucketInventory:De,listBucketInventory:be,deleteBucketInventory:Te,putBucketAccelerate:ke,getBucketAccelerate:Fe,putBucketEncryption:Me,getBucketEncryption:Pe,deleteBucketEncryption:oe,getObject:r,headObject:s,listObjectVersions:n,putObject:o,deleteObject:f,getObjectAcl:b,putObjectAcl:k,optionsObject:G,putObjectCopy:de,deleteMultipleObject:J,restoreObject:Se,putObjectTagging:_e,getObjectTagging:Ue,deleteObjectTagging:Re,selectObjectContent:Le,appendObject:et,uploadPartCopy:he,multipartInit:ze,multipartUpload:Ve,multipartComplete:We,multipartList:Ke,multipartListPart:Ge,multipartAbort:Xe,request:rt,getObjectUrl:i,getAuth:nt};function $e(e,d,t){c.each(["Cors","Acl"],function(a){if(e.slice(-a.length)===a){var C=e.slice(0,-a.length)+a.toUpperCase(),y=c.apiWrapper(e,d),D=!1;t[C]=function(){!D&&console.warn("warning: cos."+C+" has been deprecated. Please Use cos."+e+" instead."),D=!0,y.apply(this,arguments)}}})}g.exports.init=function(e,d){d.transferToTaskMethod(Je,"putObject"),c.each(Je,function(t,a){e.prototype[a]=c.apiWrapper(a,t),$e(a,t,e.prototype)})}},"./src/cos.js":function(g,m,u){var h=u("./src/util.js"),x=u("./src/event.js"),c=u("./src/task.js"),S=u("./src/base.js"),_=u("./src/advance.js"),N=u("./package.json"),O={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},T=function(X){this.options=h.extend(h.clone(O),X||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),h.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),x.init(this),c.init(this)};S.init(T,c),_.init(T,c),T.util={md5:h.md5,xml2json:h.xml2json,json2xml:h.json2xml,encodeBase64:h.encodeBase64},T.getAuthorization=h.getAuth,T.version=N.version,g.exports=T},"./src/event.js":function(g,m){var u=function(c){var S={},_=function(O){return!S[O]&&(S[O]=[]),S[O]};c.on=function(N,O){N==="task-list-update"&&console.warn('warning: Event "'+N+'" has been deprecated. Please use "list-update" instead.'),_(N).push(O)},c.off=function(N,O){for(var T=_(N),H=T.length-1;H>=0;H--)O===T[H]&&T.splice(H,1)},c.emit=function(N,O){for(var T=_(N).map(function(X){return X}),H=0;H<T.length;H++)T[H](O)}},h=function(){u(this)};g.exports.init=u,g.exports.EventProxy=h},"./src/session.js":function(g,m,u){var h=u("./src/util.js"),x="cos_sdk_upload_cache",c=30*24*3600,S,_,N=function(){try{var U=JSON.parse(localStorage.getItem(x))}catch{}U||(U=[]),S=U},O=function(){try{S.length?localStorage.setItem(x,JSON.stringify(S)):localStorage.removeItem(x)}catch{}},T=function(){if(!S){N.call(this);for(var U=!1,M=Math.round(Date.now()/1e3),re=S.length-1;re>=0;re--){var Q=S[re][2];(!Q||Q+c<M)&&(S.splice(re,1),U=!0)}U&&O()}},H=function(){_||(_=setTimeout(function(){O(),_=null},400))},X={using:{},setUsing:function(U){X.using[U]=!0},removeUsing:function(U){delete X.using[U]},getFileId:function(U,M,re,Q){return U.name&&U.size&&U.lastModifiedDate&&M?h.md5([U.name,U.size,U.lastModifiedDate,M,re,Q].join("::")):null},getCopyFileId:function(U,M,re,Q,ue){var R=M["content-length"],A=M.etag||"",v=M["last-modified"];return U&&re?h.md5([U,R,A,v,re,Q,ue].join("::")):null},getUploadIdList:function(U){if(!U)return null;T.call(this);for(var M=[],re=0;re<S.length;re++)S[re][0]===U&&M.push(S[re][1]);return M.length?M:null},saveUploadId:function(U,M,re){if(T.call(this),!!U){for(var Q=S.length-1;Q>=0;Q--){var ue=S[Q];ue[0]===U&&ue[1]===M&&S.splice(Q,1)}S.unshift([U,M,Math.round(Date.now()/1e3)]),S.length>re&&S.splice(re),H()}},removeUploadId:function(U){T.call(this),delete X.using[U];for(var M=S.length-1;M>=0;M--)S[M][1]===U&&S.splice(M,1);H()}};g.exports=X},"./src/task.js":function(g,m,u){var h=u("./src/session.js"),x=u("./src/util.js"),c={},S=function(O,T){c[T]=O[T],O[T]=function(H,X){H.SkipTask?c[T].call(this,H,X):this._addTask(T,H,X)}},_=function(O){var T=[],H={},X=0,V=0,U=function(v){var W={id:v.id,Bucket:v.Bucket,Region:v.Region,Key:v.Key,FilePath:v.FilePath,state:v.state,loaded:v.loaded,size:v.size,speed:v.speed,percent:v.percent,hashPercent:v.hashPercent,error:v.error};return v.FilePath&&(W.FilePath=v.FilePath),v._custom&&(W._custom=v._custom),W},M=function(){var A,v=function(){A=0,O.emit("task-list-update",{list:x.map(T,U)}),O.emit("list-update",{list:x.map(T,U)})};return function(){A||(A=setTimeout(v))}}(),re=function(){if(!(T.length<=O.options.UploadQueueSize)){for(var v=0;v<V&&v<T.length&&T.length>O.options.UploadQueueSize;){var W=T[v].state==="waiting"||T[v].state==="checking"||T[v].state==="uploading";!T[v]||!W?(H[T[v].id]&&delete H[T[v].id],T.splice(v,1),V--):v++}M()}},Q=function A(){if(!(X>=O.options.FileParallelLimit)){for(;T[V]&&T[V].state!=="waiting";)V++;if(!(V>=T.length)){var v=T[V];V++,X++,v.state="checking",v.params.onTaskStart&&v.params.onTaskStart(U(v)),!v.params.UploadData&&(v.params.UploadData={});var W=x.formatParams(v.api,v.params);c[v.api].call(O,W,function(p,q){!O._isRunningTask(v.id)||((v.state==="checking"||v.state==="uploading")&&(v.state=p?"error":"success",p&&(v.error=p),X--,M(),A(),v.callback&&v.callback(p,q),v.state==="success"&&(v.params&&(delete v.params.UploadData,delete v.params.Body,delete v.params),delete v.callback)),re())}),M(),setTimeout(A)}}},ue=function(v,W){var p=H[v];if(!!p){var q=p&&p.state==="waiting",j=p&&(p.state==="checking"||p.state==="uploading");if(W==="canceled"&&p.state!=="canceled"||W==="paused"&&q||W==="paused"&&j){if(W==="paused"&&p.params.Body&&typeof p.params.Body.pipe=="function"){console.error("stream not support pause");return}p.state=W,O.emit("inner-kill-task",{TaskId:v,toState:W});try{var I=p&&p.params&&p.params.UploadData.UploadId}catch{}W==="canceled"&&I&&h.removeUsing(I),M(),j&&(X--,Q()),W==="canceled"&&(p.params&&(delete p.params.UploadData,delete p.params.Body,delete p.params),delete p.callback)}re()}};O._addTasks=function(A){x.each(A,function(v){O._addTask(v.api,v.params,v.callback,!0)}),M()};var R=!0;O._addTask=function(A,v,W,p){v=x.formatParams(A,v);var q=x.uuid();v.TaskId=q,v.onTaskReady&&v.onTaskReady(q),v.TaskReady&&(v.TaskReady(q),R&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),R=!1);var j={params:v,callback:W,api:A,index:T.length,id:q,Bucket:v.Bucket,Region:v.Region,Key:v.Key,FilePath:v.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:v._custom},I=v.onHashProgress;v.onHashProgress=function(B){!O._isRunningTask(j.id)||(j.hashPercent=B.percent,I&&I(B),M())};var L=v.onProgress;return v.onProgress=function(B){!O._isRunningTask(j.id)||(j.state==="checking"&&(j.state="uploading"),j.loaded=B.loaded,j.speed=B.speed,j.percent=B.percent,L&&L(B),M())},x.getFileSize(A,v,function(B,P){if(B)return W(x.error(B));H[q]=j,T.push(j),j.size=P,!p&&M(),Q(),re()}),q},O._isRunningTask=function(A){var v=H[A];return!!(v&&(v.state==="checking"||v.state==="uploading"))},O.getTaskList=function(){return x.map(T,U)},O.cancelTask=function(A){ue(A,"canceled")},O.pauseTask=function(A){ue(A,"paused")},O.restartTask=function(A){var v=H[A];v&&(v.state==="paused"||v.state==="error")&&(v.state="waiting",M(),V=Math.min(V,v.index),Q())},O.isUploadRunning=function(){return X||V<T.length}};g.exports.transferToTaskMethod=S,g.exports.init=_},"./src/tracker.js":function(g,m,u){var h=u("./node_modules/@babel/runtime/helpers/classCallCheck.js"),x=u("./node_modules/@babel/runtime/helpers/createClass.js"),c=u("./node_modules/@babel/runtime/helpers/typeof.js"),S=u("./package.json"),_=null,N=function(A){if(!_){var v=u("./lib/beacon.min.js");_=new v({appkey:"0AND0VEVB24UBGDU",versionCode:S.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:A,sessionDuration:60*1e3})}return _},O={getUid:function(){var A=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return A()+A()+"-"+A()+"-"+A()+"-"+A()+"-"+A()+A()+A()},getNetType:function(){if((typeof navigator=="undefined"?"undefined":c(navigator))==="object"){var A=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(A==null?void 0:A.type)||(A==null?void 0:A.effectiveType)||"unknown"}return"unknown"},getOsType:function(){if((typeof navigator=="undefined"?"undefined":c(navigator))!=="object")return"unknown os";var A=navigator.userAgent.toLowerCase(),v=/macintosh|mac os x/i.test(navigator.userAgent);return A.indexOf("win32")>=0||A.indexOf("wow32")>=0?"win32":A.indexOf("win64")>=0||A.indexOf("wow64")>=0?"win64":v?"mac":"unknown os"},isMobile:function(){var A=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(A))},isAndroid:function(){var A=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(A))},isIOS:function(){var A=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(A))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":c(navigator))!=="object")return"unknown device";var A=navigator.userAgent.toLowerCase();if(A.includes("app/tencent_wemeet"))return"tencent_wemeet";if(A.indexOf("maxthon")>=0){var v=A.match(/maxthon\/([\d.]+)/),W=v&&v[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(W).trim()}if(A.indexOf("qqbrowser")>=0){var p=A.match(/qqbrowser\/([\d.]+)/),q=p&&p[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(q).trim()}if(A.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(A.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(A.indexOf("msie")>=0){var j=A.match(/msie ([\d.]+)/),I=j&&j[1]||"";return"IE ".concat(I).trim()}if(A.indexOf("firefox")>=0){var L=A.match(/firefox\/([\d.]+)/),B=L&&L[1]||"";return"Firefox ".concat(B).trim()}if(A.indexOf("chrome")>=0){var P=A.match(/chrome\/([\d.]+)/),K=P&&P[1]||"";return"Chrome ".concat(K).trim()}if(A.indexOf("opera")>=0){var z=A.match(/opera.([\d.]+)/),$=z&&z[1]||"";return"Opera ".concat($).trim()}if(A.indexOf("safari")>=0){var ne=A.match(/version\/([\d.]+)/),ce=ne&&ne[1]||"";return"Safari ".concat(ce).trim()}if(A.indexOf("edge")>=0){var ie=A.match(/edge\/([\d.]+)/),ee=ie&&ie[1]||"";return"edge ".concat(ee).trim()}return A.substr(0,200)}},T={isMobile:O.isMobile(),isBrowser:!O.isMobile(),mobileOsType:O.isAndroid()?"android":O.isIOS?"ios":"other_mobile",pcOsType:O.getOsType()},H={deviceType:T.isMobile?"mobile":T.isBrowser?"browser":"unknown",devicePlatform:T.isMobile?T.mobileOsType:T.pcOsType,deviceName:O.getDeviceName()},X=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],V=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(X),U=["getObject"];function M(R){return V.includes(R)?"cos_upload":U.includes(R)?"cos_download":"base_service"}function re(R){return R.replace(/([A-Z])/g,"_$1").toLowerCase()}function Q(R){var A={},v=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],W=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],p=R.result==="Success"?W:v;for(var q in R)if(!!p.includes(q)){var j=re(q);A[j]=R[q]}return A}var ue=function(){function R(A){h(this,R);var v=A.parent,W=A.traceId,p=A.bucket,q=A.region,j=A.apiName,I=A.fileKey,L=A.fileSize,B=A.accelerate,P=A.customId,K=A.delay,z=A.deepTracker,$=p&&p.substr(p.lastIndexOf("-")+1)||"";this.parent=v,this.deepTracker=z,this.delay=K,this.params={cossdkVersion:S.version,region:q,networkType:"",host:"",accelerate:B?"Y":"N",requestPath:I||"",size:L||-1,httpMd5:0,httpSign:0,httpFull:0,name:j||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:W||O.getUid(),bucket:p,appid:$,partNumber:0,retryTimes:0,reqUrl:"",customId:P||"",deviceType:H.deviceType,devicePlatform:H.devicePlatform,deviceName:H.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=N(K)}return x(R,[{key:"formatResult",value:function(v,W){var p,q,j,I,L,B,P=new Date().getTime(),K=P-this.params.startTime,z=O.getNetType(),$=v?(v==null?void 0:v.code)||(v==null||(p=v.error)===null||p===void 0?void 0:p.code)||(v==null||(q=v.error)===null||q===void 0?void 0:q.Code):"",ne=v?(v==null?void 0:v.message)||(v==null||(j=v.error)===null||j===void 0?void 0:j.message)||(v==null||(I=v.error)===null||I===void 0?void 0:I.Message):"",ce=v?(v==null?void 0:v.resource)||(v==null||(L=v.error)===null||L===void 0?void 0:L.resource)||(v==null||(B=v.error)===null||B===void 0?void 0:B.Resource):"",ie=v?v==null?void 0:v.statusCode:W.statusCode,ee=v?(v==null?void 0:v.headers)&&(v==null?void 0:v.headers["x-cos-request-id"]):(W==null?void 0:W.headers)&&(W==null?void 0:W.headers["x-cos-request-id"]),le=v?ee?"Server":"Client":"";if(Object.assign(this.params,{tookTime:K,networkType:z,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:v?"Fail":"Success",errorType:le,errorCode:$,errorStatusCode:ie,errorMessage:ne,errorServiceName:ce,errorRequestId:ee}),v&&(!$||!ne)&&(this.params.fullError=v?JSON.stringify(v):""),this.params.name==="getObject"&&(this.params.size=W?W.headers&&W.headers["content-length"]:-1),this.params.reqUrl)try{var se=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=se[2]}catch{this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(v){Object.assign(this.params,v)}},{key:"sendEvents",value:function(){if(!(X.includes(this.params.name)&&!this.deepTracker)){var v=M(this.params.name),W=Q(this.params);this.beacon||(this.beacon=N(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(v,W):this.beacon&&this.beacon.onUserAction(v,W)}}},{key:"generateSubTracker",value:function(v){return Object.assign(v,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new R(v)}}]),R}();g.exports=ue},"./src/util.js":function(g,m,u){(function(h){var x=u("./node_modules/@babel/runtime/helpers/typeof.js"),c=u("./lib/md5.js"),S=u("./lib/crypto.js"),_=u("./lib/xml2json.js"),N=u("./lib/json2xml.js"),O=u("./lib/base64.js"),T=u("./src/tracker.js");function H(oe){return encodeURIComponent(oe).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function X(oe,s){var n=[];for(var r in oe)oe.hasOwnProperty(r)&&n.push(s?H(r).toLowerCase():r);return n.sort(function(o,f){return o=o.toLowerCase(),f=f.toLowerCase(),o===f?0:o>f?1:-1})}var V=function(s,n){var r,o,f,b=[],k=X(s);for(r=0;r<k.length;r++)o=k[r],f=s[o]===void 0||s[o]===null?"":""+s[o],o=n?H(o).toLowerCase():H(o),f=H(f)||"",b.push(o+"="+f);return b.join("&")},U=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding"],M=function(s){var n={};for(var r in s){var o=r.toLowerCase();(o.indexOf("x-cos-")>-1||U.indexOf(o)>-1)&&(n[r]=s[r])}return n},re=function(s){s=s||{};var n=s.SecretId,r=s.SecretKey,o=s.KeyTime,f=(s.method||s.Method||"get").toLowerCase(),b=P(s.Query||s.params||{}),k=M(P(s.Headers||s.headers||{})),G=s.Key||"",de;s.UseRawKey?de=s.Pathname||s.pathname||"/"+G:(de=s.Pathname||s.pathname||G,de.indexOf("/")!==0&&(de="/"+de));var he=s.ForceSignHost!==!1;if(!k.Host&&!k.host&&s.Bucket&&s.Region&&he&&(k.Host=s.Bucket+".cos."+s.Region+".myqcloud.com"),!n)throw new Error("missing param SecretId");if(!r)throw new Error("missing param SecretKey");var J=Math.round(ve(s.SystemClockOffset)/1e3)-1,Se=J,_e=s.Expires||s.expires;_e===void 0?Se+=900:Se+=_e*1||0;var Ue="sha1",Re=n,Le=o||J+";"+Se,ze=o||J+";"+Se,Ve=X(k,!0).join(";").toLowerCase(),We=X(b,!0).join(";").toLowerCase(),Ke=S.HmacSHA1(ze,r).toString(),Ge=[f,de,Pe.obj2str(b,!0),Pe.obj2str(k,!0),""].join(`
  12. `),Xe=["sha1",Le,S.SHA1(Ge).toString(),""].join(`
  13. `),rt=S.HmacSHA1(Xe,Ke).toString(),et=["q-sign-algorithm="+Ue,"q-ak="+Re,"q-sign-time="+Le,"q-key-time="+ze,"q-header-list="+Ve,"q-url-param-list="+We,"q-signature="+rt].join("&");return et},Q=function(s,n,r){var o=n/8,f=s.slice(r,r+o);return new Uint8Array(f).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[n](f)[0]},ue=function(s,n,r,o){var f=s.slice(n,r),b="";return new Uint8Array(f).forEach(function(k){b+=String.fromCharCode(k)}),o&&(b=decodeURIComponent(escape(b))),b},R=function(s){for(var n={},r=ue(s),o={records:[]};s.byteLength;){var f=Q(s,32,0),b=Q(s,32,4),k=f-b-16,G=0,de;for(s=s.slice(12);G<b;){var he=Q(s,8,G),J=ue(s,G+1,G+1+he),Se=Q(s,16,G+he+2),_e=ue(s,G+he+4,G+he+4+Se);n[J]=_e,G+=he+4+Se}if(n[":event-type"]==="Records")de=ue(s,G,G+k,!0),o.records.push(de);else if(n[":event-type"]==="Stats")de=ue(s,G,G+k,!0),o.stats=Pe.xml2json(de).Stats;else if(n[":event-type"]==="error"){var Ue=n[":error-code"],Re=n[":error-message"],Le=new Error(Re);Le.message=Re,Le.name=Le.code=Ue,o.error=Le}s=s.slice(G+k+4)}return{payload:o.records.join(""),body:r}},A=function(s){var n=this.options.CopySourceParser;if(n)return n(s);var r=s.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return r?{Bucket:r[1],Region:r[3],Key:r[7]}:null},v=function(){},W=function(s){var n={};for(var r in s)s.hasOwnProperty(r)&&s[r]!==void 0&&s[r]!==null&&(n[r]=s[r]);return n},p=function(s,n){var r,o=new FileReader;FileReader.prototype.readAsBinaryString?(r=FileReader.prototype.readAsBinaryString,o.onload=function(){n(this.result)}):FileReader.prototype.readAsArrayBuffer?r=function(b){var k="",G=new FileReader;G.onload=function(de){for(var he=new Uint8Array(G.result),J=he.byteLength,Se=0;Se<J;Se++)k+=String.fromCharCode(he[Se]);n(k)},G.readAsArrayBuffer(b)}:console.error("FileReader not support readAsBinaryString"),r.call(o,s)},q=function(){var oe=function(r,o){r=r.split("."),o=o.split(".");for(var f=0;f<o.length;f++)if(r[f]!==o[f])return parseInt(r[f])>parseInt(o[f])?1:-1;return 0},s=function(r){if(!r)return!1;var o=(r.match(/Chrome\/([.\d]+)/)||[])[1],f=(r.match(/QBCore\/([.\d]+)/)||[])[1],b=(r.match(/QQBrowser\/([.\d]+)/)||[])[1],k=o&&oe(o,"53.0.2785.116")<0&&f&&oe(f,"3.53.991.400")<0&&b&&oe(b,"9.0.2524.400")<=0||!1;return k};return s(typeof navigator!="undefined"&&navigator.userAgent)}(),j=function(s,n,r,o,f){var b;if(s.slice?b=s.slice(n,r):s.mozSlice?b=s.mozSlice(n,r):s.webkitSlice&&(b=s.webkitSlice(n,r)),o&&q){var k=new FileReader;k.onload=function(G){b=null,f(new Blob([k.result]))},k.readAsArrayBuffer(b)}else f(b)},I=function(s,n,r,o){r=r||v,s?typeof n=="string"?r(Pe.md5(n,!0)):Blob&&n instanceof Blob?Pe.getFileMd5(n,function(f,b){r(b)},o):r():r()},L=1024*1024,B=function(s,n,r){var o=s.size,f=0,b=c.getCtx(),k=function G(de){if(de>=o){var he=b.digest("hex");n(null,he);return}var J=Math.min(o,de+L);Pe.fileSlice(s,de,J,!1,function(Se){p(Se,function(_e){Se=null,b=b.update(_e,!0),f+=_e.length,_e=null,r&&r({loaded:f,total:o,percent:Math.round(f/o*1e4)/1e4}),G(de+L)})})};k(0)};function P(oe){return ee(oe,function(s){return x(s)==="object"&&s!==null?P(s):s})}function K(oe,s,n){return oe&&s in oe?oe[s]:n}function z(oe,s){return ie(s,function(n,r){oe[r]=s[r]}),oe}function $(oe){return oe instanceof Array}function ne(oe,s){for(var n=!1,r=0;r<oe.length;r++)if(s===oe[r]){n=!0;break}return n}function ce(oe){return $(oe)?oe:[oe]}function ie(oe,s){for(var n in oe)oe.hasOwnProperty(n)&&s(oe[n],n)}function ee(oe,s){var n=$(oe)?[]:{};for(var r in oe)oe.hasOwnProperty(r)&&(n[r]=s(oe[r],r));return n}function le(oe,s){var n=$(oe),r=n?[]:{};for(var o in oe)oe.hasOwnProperty(o)&&s(oe[o],o)&&(n?r.push(oe[o]):r[o]=oe[o]);return r}var se=function(s){var n,r,o,f="";for(n=0,r=s.length/2;n<r;n++)o=parseInt(s[n*2]+s[n*2+1],16),f+=String.fromCharCode(o);return btoa(f)},ye=function(){var s=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()},Y=function(s,n){var r=n.Bucket,o=n.Region,f=n.Key,b=this.options.Domain,k=!b||typeof b=="string"&&b.indexOf("{Bucket}")>-1,G=!b||typeof b=="string"&&b.indexOf("{Region}")>-1;if(s.indexOf("Bucket")>-1||s==="deleteMultipleObject"||s==="multipartList"||s==="listObjectVersions"){if(k&&!r)return"Bucket";if(G&&!o)return"Region"}else if(s.indexOf("Object")>-1||s.indexOf("multipart")>-1||s==="sliceUploadFile"||s==="abortUploadTask"){if(k&&!r)return"Bucket";if(G&&!o)return"Region";if(!f)return"Key"}return!1},te=function(s,n){if(n=z({},n),s!=="getAuth"&&s!=="getV4Auth"&&s!=="getObjectUrl"){var r=n.Headers||{};if(n&&x(n)==="object"){(function(){for(var f in n)n.hasOwnProperty(f)&&f.indexOf("x-cos-")>-1&&(r[f]=n[f])})();var o={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Pe.each(o,function(f,b){n[f]!==void 0&&(r[b]=n[f])}),n.Headers=W(r)}}return n},pe=function(s,n){return function(r,o){var f=this;typeof r=="function"&&(o=r,r={}),r=te(s,r);var b;if(f.options.EnableTracker)if(r.calledBySdk==="sliceUploadFile")b=r.tracker&&r.tracker.generateSubTracker({apiName:s});else if(["uploadFile","uploadFiles"].includes(s))b=null;else{var k=-1;r.Body&&(k=typeof r.Body=="string"?r.Body.length:r.Body.size||r.Body.byteLength||-1),b=new T({bucket:r.Bucket,region:r.Region,apiName:s,fileKey:r.Key,fileSize:k,deepTracker:f.options.DeepTracker,customId:f.options.CustomId,delay:f.options.TrackerDelay})}r.tracker=b;var G=function(Re){return Re&&Re.headers&&(Re.headers["x-cos-request-id"]&&(Re.RequestId=Re.headers["x-cos-request-id"]),Re.headers["x-ci-request-id"]&&(Re.RequestId=Re.headers["x-ci-request-id"]),Re.headers["x-cos-version-id"]&&(Re.VersionId=Re.headers["x-cos-version-id"]),Re.headers["x-cos-delete-marker"]&&(Re.DeleteMarker=Re.headers["x-cos-delete-marker"])),Re},de=function(Re,Le){b&&b.formatResult(Re,Le),o&&o(G(Re),G(Le))},he=function(){if(s!=="getService"&&s!=="abortUploadTask"){var Re=Y.call(f,s,r);if(Re)return"missing param "+Re;if(r.Region){if(f.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(r.Region))return"Region format error."}else{if(r.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(r.Region))return"Region format error."}!f.options.CompatibilityMode&&r.Region.indexOf("-")===-1&&r.Region!=="yfb"&&r.Region!=="default"&&r.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(r.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(r.Bucket))if(r.AppId)r.Bucket=r.Bucket+"-"+r.AppId;else if(f.options.AppId)r.Bucket=r.Bucket+"-"+f.options.AppId;else return'Bucket should format as "test-1250000000".';r.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete r.AppId)}!f.options.UseRawKey&&r.Key&&r.Key.substr(0,1)==="/"&&(r.Key=r.Key.substr(1))}},J=he(),Se=["getAuth","getObjectUrl"].includes(s);if(typeof Promise=="function"&&!Se&&!o)return new Promise(function(Ue,Re){if(o=function(ze,Ve){ze?Re(ze):Ue(Ve)},J)return de(Pe.error(new Error(J)));n.call(f,r,de)});if(J)return de(Pe.error(new Error(J)));var _e=n.call(f,r,de);if(Se)return _e}},me=function(s,n){var r=this,o=0,f=0,b=Date.now(),k,G;function de(){if(G=0,n&&typeof n=="function"){k=Date.now();var he=Math.max(0,Math.round((f-o)/((k-b)/1e3)*100)/100)||0,J;f===0&&s===0?J=1:J=Math.floor(f/s*100)/100||0,b=k,o=f;try{n({loaded:f,total:s,speed:he,percent:J})}catch{}}}return function(he,J){if(he&&(f=he.loaded,s=he.total),J)clearTimeout(G),de();else{if(G)return;G=setTimeout(de,r.options.ProgressInterval)}}},ge=function(s,n,r){var o;if(typeof n.Body=="string"?n.Body=new Blob([n.Body],{type:"text/plain"}):n.Body instanceof ArrayBuffer&&(n.Body=new Blob([n.Body])),n.Body&&(n.Body instanceof Blob||n.Body.toString()==="[object File]"||n.Body.toString()==="[object Blob]"))o=n.Body.size;else{r(Pe.error(new Error("params body format error, Only allow File|Blob|String.")));return}n.ContentLength=o,r(null,o)},ve=function(s){return Date.now()+(s||0)},Ce=function(s,n){var r=s;return s.message=s.message||null,typeof n=="string"?(s.error=n,s.message=n):x(n)==="object"&&n!==null&&(z(s,n),(n.code||n.name)&&(s.code=n.code||n.name),n.message&&(s.message=n.message),n.stack&&(s.stack=n.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(s,"name",{writable:!0,enumerable:!1}),Object.defineProperty(s,"message",{enumerable:!0})),s.name=n&&n.name||s.name||s.code||"Error",s.code||(s.code=s.name),s.error||(s.error=P(r)),s},De=function(){return(typeof globalThis=="undefined"?"undefined":x(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},be=function(){return(typeof window=="undefined"?"undefined":x(window))!=="object"&&(typeof h=="undefined"?"undefined":x(h))==="object"&&!0&&!De()},Te=function(s){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(s)},ke=function(){if((typeof navigator=="undefined"?"undefined":x(navigator))!=="object")return!1;var oe=navigator.userAgent,s=!!oe.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return s}(),Fe=function(){return(typeof navigator=="undefined"?"undefined":x(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Me=function(s,n){var r=O.encode(s);return n&&(r=r.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),r},Pe={noop:v,formatParams:te,apiWrapper:pe,xml2json:_,json2xml:N,md5:c,clearKey:W,fileSlice:j,getBodyMd5:I,getFileMd5:B,b64:se,extend:z,isArray:$,isInArray:ne,makeArray:ce,each:ie,map:ee,filter:le,clone:P,attr:K,uuid:ye,camSafeUrlEncode:H,throttleOnProgress:me,getFileSize:ge,getSkewTime:ve,error:Ce,obj2str:V,getAuth:re,parseSelectPayload:R,getSourceParams:A,isBrowser:!0,isNode:be,isCIHost:Te,isIOS_QQ:ke&&Fe,encodeBase64:Me};g.exports=Pe}).call(this,u("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var COS=getDefaultExportFromCjs(cosJsSdkV5.exports);const ossSwitch="tencent",tencentBucket="daya-online-1303457149",getUploadSign=async(g,m=!1)=>{const{bucketName:u,filename:h,postData:x}=g,c=ossSwitch;let S=u,_=h,N={};return S=tencentBucket,_="klx/"+h,N={key:"klx/"+x.key},request.post(state.platformApi+"/open/getUploadSign",{hideLoading:m,data:{postData:N,pluginName:c,bucketName:S,filename:_},params:{pluginName:c}})},onOnlyFileUpload=async(g,m)=>{{let u="",h=null;if(await new COS({Domain:"https://oss.dayaedu.com",getAuthorization:async(c,S)=>{S({Authorization:m.signature})}}).uploadFile({Bucket:tencentBucket,Region:"ap-nanjing",Key:`klx/${m.name}`,Body:m.file,SliceSize:1024*1024*500}).then(c=>{var S;((S=c.Location)==null?void 0:S.indexOf("http"))>=0?u=c.Location:u="https://"+c.Location}).catch(c=>{h=c}),u)return u;throw new Error(h)}};export{getUploadSign as g,onOnlyFileUpload as o};