w-dwdata-tweqod 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
1
  /*!
2
- * w-dwdata-tweqod v1.0.1
2
+ * w-dwdata-tweqod v1.0.3
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("fs"),require("path"),require("events"),require("fs/promises"),require("node:fs/promises"),require("node:stream"),require("node:path"),require("os"),require("url")):"function"==typeof define&&define.amd?define(["fs","path","events","fs/promises","node:fs/promises","node:stream","node:path","os","url"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-dwdata-tweqod"]=e(t.fs,t.path,t.events,t.promises$1,t.promises,t.node_stream,t.node_path,t.os,t.url)}(this,function(t,e,r,n,i,o,s,a,c){"use strict";var u="undefined"!=typeof document?document.currentScript:null;function l(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var f=l(e),h=Array.isArray,d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,m=d||p||Function("return this")(),y=m.Symbol,g=Object.prototype,v=g.hasOwnProperty,w=g.toString,b=y?y.toStringTag:void 0;var _=Object.prototype.toString;var S=y?y.toStringTag:void 0;function E(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?function(t){var e=v.call(t,b),r=t[b];try{t[b]=void 0;var n=!0}catch(t){}var i=w.call(t);return n&&(e?t[b]=r:delete t[b]),i}(t):function(t){return _.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}function j(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==E(t)}var R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;function x(t,e){if(h(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!j(t))||(A.test(t)||!R.test(t)||null!=e&&t in Object(e))}function k(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function D(t){if(!k(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var P,T=m["__core-js_shared__"],C=(P=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var N=Function.prototype.toString;function L(t){if(null!=t){try{return N.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var F=/^\[object .+?Constructor\]$/,$=Function.prototype,M=Object.prototype,z=$.toString,U=M.hasOwnProperty,I=RegExp("^"+z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B(t){return!(!k(t)||(e=t,C&&C in e))&&(D(t)?I:F).test(L(t));var e}function W(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return B(r)?r:void 0}var q=W(Object,"create");var H=Object.prototype.hasOwnProperty;var J=Object.prototype.hasOwnProperty;function V(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Y(t,e){return t===e||t!=t&&e!=e}function K(t,e){for(var r=t.length;r--;)if(Y(t[r][0],e))return r;return-1}V.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},V.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},V.prototype.get=function(t){var e=this.__data__;if(q){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return H.call(e,t)?e[t]:void 0},V.prototype.has=function(t){var e=this.__data__;return q?void 0!==e[t]:J.call(e,t)},V.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=q&&void 0===e?"__lodash_hash_undefined__":e,this};var G=Array.prototype.splice;function X(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=K(e,t);return!(r<0)&&(r==e.length-1?e.pop():G.call(e,r,1),--this.size,!0)},X.prototype.get=function(t){var e=this.__data__,r=K(e,t);return r<0?void 0:e[r][1]},X.prototype.has=function(t){return K(this.__data__,t)>-1},X.prototype.set=function(t,e){var r=this.__data__,n=K(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var Z=W(m,"Map");function Q(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function tt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}tt.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(Z||X),string:new V}},tt.prototype.delete=function(t){var e=Q(this,t).delete(t);return this.size-=e?1:0,e},tt.prototype.get=function(t){return Q(this,t).get(t)},tt.prototype.has=function(t){return Q(this,t).has(t)},tt.prototype.set=function(t,e){var r=Q(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function et(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(et.Cache||tt),r}et.Cache=tt;var rt,nt,it,ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,st=/\\(\\)?/g,at=(rt=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ot,function(t,r,n,i){e.push(n?i.replace(st,"$1"):r||t)}),e},nt=et(rt,function(t){return 500===it.size&&it.clear(),t}),it=nt.cache,nt),ct=at;function ut(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var lt=y?y.prototype:void 0,ft=lt?lt.toString:void 0;function ht(t){if("string"==typeof t)return t;if(h(t))return ut(t,ht)+"";if(j(t))return ft?ft.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function dt(t){return null==t?"":ht(t)}function pt(t,e){return h(t)?t:x(t,e)?[t]:ct(dt(t))}function mt(t){if("string"==typeof t||j(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function yt(t,e){for(var r=0,n=(e=pt(e,t)).length;null!=t&&r<n;)t=t[mt(e[r++])];return r&&r==n?t:void 0}function gt(t,e,r){var n=null==t?void 0:yt(t,e);return void 0===n?r:n}function vt(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var wt,bt=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var a=o[wt?s:++n];if(!1===e(i[a],a,i))break}return t};function _t(t){return O(t)&&"[object Arguments]"==E(t)}var St=Object.prototype,Et=St.hasOwnProperty,Ot=St.propertyIsEnumerable,jt=_t(function(){return arguments}())?_t:function(t){return O(t)&&Et.call(t,"callee")&&!Ot.call(t,"callee")},Rt=jt;var At="object"==typeof exports&&exports&&!exports.nodeType&&exports,xt=At&&"object"==typeof module&&module&&!module.nodeType&&module,kt=xt&&xt.exports===At?m.Buffer:void 0,Dt=(kt?kt.isBuffer:void 0)||function(){return!1},Pt=/^(?:0|[1-9]\d*)$/;function Tt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Pt.test(t))&&t>-1&&t%1==0&&t<e}function Ct(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Nt={};Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;var Lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ft=Lt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Ft&&Ft.exports===Lt&&d.process,Mt=function(){try{var t=Ft&&Ft.require&&Ft.require("util").types;return t||$t&&$t.binding&&$t.binding("util")}catch(t){}}(),zt=Mt&&Mt.isTypedArray,Ut=zt?function(t){return function(e){return t(e)}}(zt):function(t){return O(t)&&Ct(t.length)&&!!Nt[E(t)]},It=Ut,Bt=Object.prototype.hasOwnProperty;function Wt(t,e){var r=h(t),n=!r&&Rt(t),i=!r&&!n&&Dt(t),o=!r&&!n&&!i&&It(t),s=r||n||i||o,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!Bt.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Tt(u,c))||a.push(u);return a}var qt=Object.prototype;var Ht=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),Jt=Ht,Vt=Object.prototype.hasOwnProperty;function Yt(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||qt))return Jt(t);var e,r,n=[];for(var i in Object(t))Vt.call(t,i)&&"constructor"!=i&&n.push(i);return n}function Kt(t){return null!=t&&Ct(t.length)&&!D(t)}function Gt(t){return Kt(t)?Wt(t):Yt(t)}var Xt=function(t,e){return function(r,n){if(null==r)return r;if(!Kt(r))return t(r,n);for(var i=r.length,o=e?i:-1,s=Object(r);(e?o--:++o<i)&&!1!==n(s[o],o,s););return r}}(function(t,e){return t&&bt(t,e,Gt)}),Zt=Xt;function Qt(t){return t}function te(t,e){var r;return(h(t)?vt:Zt)(t,"function"==typeof(r=e)?r:Qt)}var ee=Array.prototype.reverse;function re(t){return null==t?[]:function(t,e){return ut(e,function(e){return t[e]})}(t,Gt(t))}function ne(t){return"[object String]"===Object.prototype.toString.call(t)}function ie(t){return!(!ne(t)||""===t)}function oe(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function se(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function ae(t){return"[object Object]"===Object.prototype.toString.call(t)}function ce(t){return t!=t}function ue(t){let e=!1;if(ie(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(ce(t))return!1;e=!0}return e}function le(t,e){return!!ae(t)&&(!(!ie(e)&&!ue(e))&&e in t)}var fe=/\s/;var he=/^\s+/;function de(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&fe.test(t.charAt(e)););return e}(t)+1).replace(he,""):t}var pe=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ye=/^0o[0-7]+$/i,ge=parseInt;function ve(t){if("number"==typeof t)return t;if(j(t))return NaN;if(k(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=k(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=de(t);var r=me.test(t);return r||ye.test(t)?ge(t.slice(2),r?2:8):pe.test(t)?NaN:+t}var we=1/0;function be(t){return t?(t=ve(t))===we||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _e(t){var e=be(t),r=e%1;return e==e?r?e-r:e:0}function Se(t,e,r){var n=null==t?0:t.length;return n?function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(t,(e=r||void 0===e?1:_e(e))<0?0:e,n):[]}function Ee(){let t,e,r=new Promise(function(){t=arguments[0],e=arguments[1]});return r.resolve=t,r.reject=e,r}function Oe(t){return"[object Array]"===Object.prototype.toString.call(t)}function je(t,e){let r=Ee();if(!Oe(t)&&!ae(t))return r.reject("rs is not an array or object"),r;let n=!1;if(ae(t)){n=!0;let e=[];te(t,(t,r)=>{e.push({k:r,v:t})}),t=e}oe(e)||(e=function(t){return t});let i=-1,o=[];return t.reduce(function(t,r){return t.then(function(t){o.push(t),i+=1;let s=i,a=r;return n&&(s=r.k,a=r.v),oe(e)?e(a,s):a})},Promise.resolve()).then(function(t){o.push(t),o=Se(o),r.resolve(o)}).catch(function(t){r.reject(t)}),r}function Re(t,e={}){let r=gt(e,"fs");if(!r.existsSync(t))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function Ae(e){return Re(e,{fs:t})}function xe(t){return!0===(e=t)||!1===e||O(e)&&"[object Boolean]"==E(e);var e}function ke(t,e={}){let r=gt(e,"fs");return!!r.existsSync(t)&&(!r.lstatSync(t).isDirectory()&&!r.lstatSync(t).isSymbolicLink())}function De(t,e={}){let r=gt(e,"fs");if(Re(t,{fs:r}))return{success:"input folder is already exists: "+t};if(r.existsSync(t))return{error:"input path already exists: "+t};try{r.mkdirSync(t,{recursive:!0})}catch(t){return{error:t}}return{success:"done: "+t}}function Pe(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs"),o=gt(r,"useSync","");xe(o)||(o=!0);let s="";return s=o?function(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs");if(!ke(t,{fs:i}))return{error:`fpSrc[${t}] is not a file`};try{De(n.dirname(e),{fs:i}),i.copyFileSync(t,e)}catch(t){return{error:t}}return{success:"done: "+e}}(t,e,{path:n,fs:i}):async function(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs");if(!ke(t,{fs:i}))return{error:`fpSrc[${t}] is not a file`};let o=null;return await(async(t,e)=>{De(n.dirname(e),{fs:i}),await new Promise((r,n)=>{let o=i.createReadStream(t),s=i.createWriteStream(e);o.on("error",n),s.on("error",n),s.on("finish",r),o.pipe(s)})})(t,e).then(()=>{o={success:"done: "+e}}).catch(t=>{o={error:t}}),o}(t,e,{path:n,fs:i}),s}function Te(r,n,i={}){return Pe(r,n,{path:e,fs:t,...i})}function Ce(r){return function(t,e={}){let r=gt(e,"path"),n=gt(e,"fs");if(!n.existsSync(t)){let e=De(t,{fs:n});return e.error?e.error:{success:"done: "+t}}if(!Re(t,{fs:n}))return{error:"input path is not a folder"};try{let e=n.readdirSync(t);for(let i of e){let e=r.join(t,i);n.statSync(e).isDirectory()?n.rmSync(e,{recursive:!0,force:!0}):n.unlinkSync(e)}}catch(t){return{error:t}}return{success:"done: "+t}}(r,{path:e,fs:t})}function Ne(e){return De(e,{fs:t})}function Le(e){return function(t,e={}){let r=gt(e,"fs");if(!r.existsSync(t))return{success:"folder does not exist: "+t};if(!Re(t,{fs:r}))return{error:"input path is not a folder: "+t};try{r.rmSync(t,{recursive:!0,force:!0})}catch(t){return{error:t}}return{success:"done: "+t}}(e,{fs:t})}function Fe(r,n=1){return function(t,e=1,r={}){let n=1,i=gt(r,"path"),o=gt(r,"fs");if(!Re(t,{fs:o}))throw new Error(`fd[${t}] is not a folder`);return function t(r){let s=[];return Re(r,{fs:o})?(te(o.readdirSync(r),function(a){let c=i.resolve(r,a),u=null;try{u=o.statSync(c)}catch(t){}u&&u.isDirectory()?(s.push({isFolder:!0,level:n,path:c,name:i.basename(c)}),n+=1,(n<=e||null===e)&&(s=s.concat(t(c))),n-=1):s.push({isFolder:!1,level:n,path:c,name:i.basename(c)})}),s):s}(t)}(r,n,{path:e,fs:t})}const $e=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);function Me(t){if(!ue(t))return 0;return be(t)}async function ze(t,e={}){let r=gt(e,"fs"),n=gt(e,"chunkSize");if(ue(n)||(n=67108864),n=Me(n),!ke(t,{fs:r}))return Promise.reject("fp is not a file");let i=Ee();try{let{create64:e}=await async function(){return function(t){const{exports:{mem:e,xxh32:r,xxh64:n,init32:i,update32:o,digest32:s,init64:a,update64:c,digest64:u}}=t;let l=new Uint8Array(e.buffer);function f(t,r){if(e.buffer.byteLength<t+r){const n=Math.ceil((t+r-e.buffer.byteLength)/65536);e.grow(n),l=new Uint8Array(e.buffer)}}function h(t,e,r,n,i,o){f(t);const s=new Uint8Array(t);return l.set(s),r(0,e),s.set(l.subarray(0,t)),{update(e){let r;return l.set(s),"string"==typeof e?(f(3*e.length,t),r=y.encodeInto(e,l.subarray(t)).written):(f(e.byteLength,t),l.set(e,t),r=e.byteLength),n(0,t,r),s.set(l.subarray(0,t)),this},digest:()=>(l.set(s),o(i(0)))}}function d(t){return t>>>0}const p=2n**64n-1n;function m(t){return t&p}const y=new TextEncoder;function g(t,e=0){return f(3*t.length,0),d(r(0,y.encodeInto(t,l).written,e))}function v(t,e=0n){return f(3*t.length,0),m(n(0,y.encodeInto(t,l).written,e))}return{h32:g,h32ToString:(t,e=0)=>g(t,e).toString(16).padStart(8,"0"),h32Raw:(t,e=0)=>(f(t.byteLength,0),l.set(t),d(r(0,t.byteLength,e))),create32:(t=0)=>h(48,t,i,o,s,d),h64:v,h64ToString:(t,e=0n)=>v(t,e).toString(16).padStart(16,"0"),h64Raw:(t,e=0n)=>(f(t.byteLength,0),l.set(t),m(n(0,t.byteLength,e))),create64:(t=0n)=>h(88,t,a,c,u,m)}}((await WebAssembly.instantiate($e)).instance)}(),o=e(),s=r.createReadStream(t,{highWaterMark:n});s.on("data",t=>{o.update(t)}),s.on("end",()=>{let t=o.digest().toString(16).padStart(16,"0");i.resolve(t)}),s.on("error",i.reject)}catch(t){i.reject(t.toString())}return i}var Ue=W(m,"DataView"),Ie=W(m,"Promise"),Be=W(m,"Set"),We=W(m,"WeakMap"),qe="[object Map]",He="[object Promise]",Je="[object Set]",Ve="[object WeakMap]",Ye="[object DataView]",Ke=L(Ue),Ge=L(Z),Xe=L(Ie),Ze=L(Be),Qe=L(We),tr=E;(Ue&&tr(new Ue(new ArrayBuffer(1)))!=Ye||Z&&tr(new Z)!=qe||Ie&&tr(Ie.resolve())!=He||Be&&tr(new Be)!=Je||We&&tr(new We)!=Ve)&&(tr=function(t){var e=E(t),r="[object Object]"==e?t.constructor:void 0,n=r?L(r):"";if(n)switch(n){case Ke:return Ye;case Ge:return qe;case Xe:return He;case Ze:return Je;case Qe:return Ve}return e});var er=tr;function rr(t){return function(e){return null==e?void 0:e[t]}}var nr=rr("length"),ir=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var or="\\ud800-\\udfff",sr="["+or+"]",ar="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cr="\\ud83c[\\udffb-\\udfff]",ur="[^"+or+"]",lr="(?:\\ud83c[\\udde6-\\uddff]){2}",fr="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="(?:"+ar+"|"+cr+")"+"?",dr="[\\ufe0e\\ufe0f]?",pr=dr+hr+("(?:\\u200d(?:"+[ur,lr,fr].join("|")+")"+dr+hr+")*"),mr="(?:"+[ur+ar+"?",ar,lr,fr,sr].join("|")+")",yr=RegExp(cr+"(?="+cr+")|"+mr+pr,"g");function gr(t){return function(t){return ir.test(t)}(t)?function(t){for(var e=yr.lastIndex=0;yr.test(t);)++e;return e}(t):nr(t)}function vr(t){if(null==t)return 0;if(Kt(t))return"string"==typeof(e=t)||!h(e)&&O(e)&&"[object String]"==E(e)?gr(t):t.length;var e,r=er(t);return"[object Map]"==r||"[object Set]"==r?t.size:Yt(t).length}function wr(t){if(ae(t)){for(let e in t)return!0;return!1}return!1}var br="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sr(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){if(this instanceof t){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(e,r))}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}),r}var Er={exports:{}};var Or,jr={exports:{}},Rr=Sr(Object.freeze({__proto__:null,default:{}}));function Ar(){return Or||(Or=1,function(t){var e;t.exports=(e=e||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==br&&br.crypto&&(r=br.crypto),!r)try{r=Rr}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),o={},s=o.lib={},a=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var a=0;a<i;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=o.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},h=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},d=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*u,o);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}});var p=o.algo={};return o}(Math),e)}(jr)),jr.exports}!function(t){t.exports=Ar().enc.Utf8}(Er);var xr=_r(Er.exports),kr={exports:{}};!function(t){var e;t.exports=(e=Ar(),function(){var t=e,r=t.lib.WordArray;function n(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return r.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64)}(kr);var Dr=_r(kr.exports);function Pr(t){if(!ie(t))return"";let e=xr.parse(t);return Dr.stringify(e)}function Tr(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}function Cr(t,e){var r=[];return Zt(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}function Nr(t){var e=this.__data__=new X(t);this.size=e.size}Nr.prototype.clear=function(){this.__data__=new X,this.size=0},Nr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Nr.prototype.get=function(t){return this.__data__.get(t)},Nr.prototype.has=function(t){return this.__data__.has(t)},Nr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof X){var n=r.__data__;if(!Z||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new tt(n)}return r.set(t,e),this.size=r.size,this};function Lr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new tt;++e<r;)this.add(t[e])}function Fr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function $r(t,e){return t.has(e)}Lr.prototype.add=Lr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Lr.prototype.has=function(t){return this.__data__.has(t)};function Mr(t,e,r,n,i,o){var s=1&r,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,d=2&r?new Lr:void 0;for(o.set(t,e),o.set(e,t);++f<a;){var p=t[f],m=e[f];if(n)var y=s?n(m,p,f,e,t,o):n(p,m,f,t,e,o);if(void 0!==y){if(y)continue;h=!1;break}if(d){if(!Fr(e,function(t,e){if(!$r(d,e)&&(p===t||i(p,t,r,n,o)))return d.push(e)})){h=!1;break}}else if(p!==m&&!i(p,m,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h}var zr=m.Uint8Array;function Ur(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function Ir(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Br=y?y.prototype:void 0,Wr=Br?Br.valueOf:void 0;var qr=Object.prototype.propertyIsEnumerable,Hr=Object.getOwnPropertySymbols,Jr=Hr?function(t){return null==t?[]:(t=Object(t),Tr(Hr(t),function(e){return qr.call(t,e)}))}:function(){return[]};function Vr(t){return function(t,e,r){var n=e(t);return h(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,Gt,Jr)}var Yr=Object.prototype.hasOwnProperty;var Kr="[object Arguments]",Gr="[object Array]",Xr="[object Object]",Zr=Object.prototype.hasOwnProperty;function Qr(t,e,r,n,i,o){var s=h(t),a=h(e),c=s?Gr:er(t),u=a?Gr:er(e),l=(c=c==Kr?Xr:c)==Xr,f=(u=u==Kr?Xr:u)==Xr,d=c==u;if(d&&Dt(t)){if(!Dt(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Nr),s||It(t)?Mr(t,e,r,n,i,o):function(t,e,r,n,i,o,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new zr(t),new zr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Y(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Ur;case"[object Set]":var c=1&n;if(a||(a=Ir),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;n|=2,s.set(t,e);var l=Mr(a(t),a(e),n,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Wr)return Wr.call(t)==Wr.call(e)}return!1}(t,e,c,r,n,i,o);if(!(1&r)){var p=l&&Zr.call(t,"__wrapped__"),m=f&&Zr.call(e,"__wrapped__");if(p||m){var y=p?t.value():t,g=m?e.value():e;return o||(o=new Nr),i(y,g,r,n,o)}}return!!d&&(o||(o=new Nr),function(t,e,r,n,i,o){var s=1&r,a=Vr(t),c=a.length;if(c!=Vr(e).length&&!s)return!1;for(var u=c;u--;){var l=a[u];if(!(s?l in e:Yr.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var d=!0;o.set(t,e),o.set(e,t);for(var p=s;++u<c;){var m=t[l=a[u]],y=e[l];if(n)var g=s?n(y,m,l,e,t,o):n(m,y,l,t,e,o);if(!(void 0===g?m===y||i(m,y,r,n,o):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,r,n,i,o))}function tn(t,e,r,n,i){return t===e||(null==t||null==e||!O(t)&&!O(e)?t!=t&&e!=e:Qr(t,e,r,n,tn,i))}function en(t){return t==t&&!k(t)}function rn(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function nn(t){var e=function(t){for(var e=Gt(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,en(i)]}return e}(t);return 1==e.length&&e[0][2]?rn(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var a=r[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=r[i])[0],u=t[c],l=a[1];if(s&&a[2]){if(void 0===u&&!(c in t))return!1}else{var f=new Nr;if(n)var h=n(u,l,c,t,e,f);if(!(void 0===h?tn(l,u,3,n,f):h))return!1}}return!0}(r,t,e)}}function on(t,e){return null!=t&&e in Object(t)}function sn(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=pt(e,t)).length,o=!1;++n<i;){var s=mt(e[n]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Ct(i)&&Tt(s,i)&&(h(t)||Rt(t))}(t,e,on)}function an(t){return x(t)?rr(mt(t)):function(t){return function(e){return yt(e,t)}}(t)}function cn(t){return"function"==typeof t?t:null==t?Qt:"object"==typeof t?h(t)?(e=t[0],r=t[1],x(e)&&en(r)?rn(mt(e),r):function(t){var n=gt(t,e);return void 0===n&&n===r?sn(t,e):tn(r,n,3)}):nn(t):an(t);var e,r}function un(t,e){return(h(t)?Tr:Cr)(t,cn(e))}function ln(t,e,r,n={}){let i=gt(n,"withInfor");xe(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!ie(r))return console.log("invalid key"),i&&(o.infor={}),o;Oe(t)||(t=[t]),Oe(e)||(e=[e]),t=un(t,t=>le(t,r)),e=un(e,t=>le(t,r));let s=new Map(e.map(t=>[t[r],t]));for(let e of t){let t=s.get(e[r]);if(t){JSON.stringify(e)===JSON.stringify(t)?o.same.push(t):o.diff.push(t),s.delete(e[r])}else o.del.push(e)}if(o.add=Array.from(s.values()),i){let t={};for(let e of o.del)t[e[r]]="del";for(let e of o.add)t[e[r]]="add";for(let e of o.diff)t[e[r]]="diff";for(let e of o.same)t[e[r]]="same";o.infor=t}return o}var fn={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,o||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,i,o,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,d=l.length;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,i);break;default:if(!c)for(h=1,c=new Array(f-1);h<f;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||s(this,o);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==e||i&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a}(fn);var hn=_r(fn.exports);function dn(){return new hn}function pn(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs");if(!Re(t,{fs:i}))return{error:`fpSrc[${t}] is not a folder`};try{i.readdirSync(t).forEach(function(r){let o=n.resolve(t,r),s=n.resolve(e,r),a=i.lstatSync(o);if(a.isDirectory())De(s,{fs:i}),pn(o,s,{path:n,fs:i});else if(a.isSymbolicLink()){let t=i.readlinkSync(o);i.symlinkSync(t,s)}else De(n.dirname(s),{fs:i}),i.copyFileSync(o,s)})}catch(t){return{error:t}}return{success:"done: "+e}}function mn(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs"),o=gt(r,"useSync","");xe(o)||(o=!0);let s="";return s=o?pn(t,e,{path:n,fs:i}):async function(t,e,r={}){let n=gt(r,"path"),i=gt(r,"fs");if(!Re(t,{fs:i}))return{error:`fpSrc[${t}] is not a folder`};let o=async(t,e)=>{let r=i.readdirSync(t);for(let s of r){let r=n.join(t,s),a=n.join(e,s),c=i.lstatSync(r);if(c.isDirectory())De(a,{fs:i}),await o(r,a);else if(c.isSymbolicLink()){let t=i.readlinkSync(r);i.symlinkSync(t,a)}else De(n.dirname(a),{fs:i}),await new Promise((t,e)=>{let n=i.createReadStream(r),o=i.createWriteStream(a);n.on("error",e),o.on("error",e),o.on("finish",t),n.pipe(o)})}},s=null;return await o(t,e).then(()=>{s={success:"done: "+e}}).catch(t=>{s={error:t}}),s}(t,e,{path:n,fs:i}),s}function yn(r,n,i={}){return mn(r,n,{path:e,fs:t,...i})}function gn(t){return"[object Undefined]"===Object.prototype.toString.call(t)}function vn(t){return!!ue(t)&&(t=Me(t),"number"==typeof(e=t)&&e==_e(e));var e}var wn=m.isFinite,bn=Math.min;var _n=function(t){var e=Math[t];return function(t,r){if(t=ve(t),(r=null==r?0:bn(_e(r),292))&&wn(t)){var n=(dt(t)+"e").split("e");return+((n=(dt(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round"),Sn=_n;function En(t){if(!ue(t))return 0;t=Me(t);let e=Sn(t);return"0"===String(e)?0:e}function On(t){if(!vn(t))return!1;return En(t)>0}function jn(t=300){return new function(t){let e=[],r=null,n=null;return On(t)||(t=300),t=En(t),function(i,...o){oe(i)?(n=Date.now(),e.push({func:i,input:o}),null===r&&(r=setInterval(()=>{if(Date.now()-n>t){let t=e.pop();e=[],t.func(...t.input)}0===e.length&&(clearInterval(r),r=null)},10))):console.log("func is not a function")}}(t)}const Rn="files",An="directories",xn="files_directories",kn="all",Dn={root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:Rn,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(Dn);const Pn="READDIRP_RECURSIVE_ERROR",Tn=new Set(["ENOENT","EPERM","EACCES","ELOOP",Pn]),Cn=[An,kn,xn,Rn],Nn=new Set([An,kn,xn]),Ln=new Set([kn,xn,Rn]),Fn="win32"===process.platform,$n=t=>!0,Mn=t=>{if(void 0===t)return $n;if("function"==typeof t)return t;if("string"==typeof t){const e=t.trim();return t=>t.basename===e}if(Array.isArray(t)){const e=t.map(t=>t.trim());return t=>e.some(e=>t.basename===e)}return $n};class zn extends o.Readable{constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark});const e={...Dn,...t},{root:r,type:n}=e;this._fileFilter=Mn(e.fileFilter),this._directoryFilter=Mn(e.directoryFilter);const o=e.lstat?i.lstat:i.stat;this._stat=Fn?t=>o(t,{bigint:!0}):o,this._maxDepth=e.depth??Dn.depth,this._wantsDir=!!n&&Nn.has(n),this._wantsFile=!!n&&Ln.has(n),this._wantsEverything=n===kn,this._root=s.resolve(r),this._isDirent=!e.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){const e=this.parent,r=e&&e.files;if(r&&r.length>0){const{path:n,depth:i}=e,o=r.splice(0,t).map(t=>this._formatEntry(t,n)),s=await Promise.all(o);for(const e of s){if(!e)continue;if(this.destroyed)return;const r=await this._getEntryType(e);"directory"===r&&this._directoryFilter(e)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(e.fullPath,i+1)),this._wantsDir&&(this.push(e),t--)):("file"===r||this._includeAsFile(e))&&this._fileFilter(e)&&this._wantsFile&&(this.push(e),t--)}}else{const t=this.parents.pop();if(!t){this.push(null);break}if(this.parent=await t,this.destroyed)return}}}catch(t){this.destroy(t)}finally{this.reading=!1}}}async _exploreDir(t,e){let r;try{r=await i.readdir(t,this._rdOptions)}catch(t){this._onError(t)}return{files:r,depth:e,path:t}}async _formatEntry(t,e){let r;const n=this._isDirent?t.name:t;try{const i=s.resolve(s.join(e,n));r={path:s.relative(this._root,i),fullPath:i,basename:n},r[this._statsProp]=this._isDirent?t:await this._stat(i)}catch(t){return void this._onError(t)}return r}_onError(t){var e;e=t,Tn.has(e.code)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){if(!t&&this._statsProp in t)return"";const e=t[this._statsProp];if(e.isFile())return"file";if(e.isDirectory())return"directory";if(e&&e.isSymbolicLink()){const e=t.fullPath;try{const t=await i.realpath(e),r=await i.lstat(t);if(r.isFile())return"file";if(r.isDirectory()){const r=t.length;if(e.startsWith(t)&&e.substr(r,1)===s.sep){const r=new Error(`Circular symlink detected: "${e}" points to "${t}"`);return r.code=Pn,this._onError(r)}return"directory"}}catch(t){return this._onError(t),""}}}_includeAsFile(t){const e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}}const Un=()=>{},In=process.platform,Bn="win32"===In,Wn="darwin"===In,qn="linux"===In,Hn="freebsd"===In,Jn="OS400"===a.type(),Vn={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Yn=Vn,Kn={lstat:n.lstat,stat:n.stat},Gn="listeners",Xn="errHandlers",Zn="rawEmitters",Qn=[Gn,Xn,Zn],ti=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),ei=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},ri=(t,e,r)=>{let n=t[e];n instanceof Set||(t[e]=n=new Set([n])),n.add(r)},ni=(t,e,r)=>{const n=t[e];n instanceof Set?n.delete(r):n===r&&delete t[e]},ii=t=>t instanceof Set?0===t.size:!t,oi=new Map;function si(e,r,n,i,o){const s=(t,r)=>{n(e),o(t,r,{watchedPath:e}),r&&e!==r&&ai(f.resolve(e,r),Gn,f.join(e,r))};try{return t.watch(e,{persistent:r.persistent},s)}catch(t){return void i(t)}}const ai=(t,e,r,n,i)=>{const o=oi.get(t);o&&ei(o[e],t=>{t(r,n,i)})},ci=(t,e,r,i)=>{const{listener:o,errHandler:s,rawEmitter:a}=i;let c,u=oi.get(e);if(!r.persistent){if(c=si(t,r,o,s,a),!c)return;return c.close.bind(c)}if(u)ri(u,Gn,o),ri(u,Xn,s),ri(u,Zn,a);else{if(c=si(t,r,ai.bind(null,e,Gn),s,ai.bind(null,e,Zn)),!c)return;c.on(Yn.ERROR,async r=>{const i=ai.bind(null,e,Xn);if(u&&(u.watcherUnusable=!0),Bn&&"EPERM"===r.code)try{const e=await n.open(t,"r");await e.close(),i(r)}catch(t){}else i(r)}),u={listeners:o,errHandlers:s,rawEmitters:a,watcher:c},oi.set(e,u)}return()=>{ni(u,Gn,o),ni(u,Xn,s),ni(u,Zn,a),ii(u.listeners)&&(u.watcher.close(),oi.delete(e),Qn.forEach((t=>e=>{const r=t[e];r instanceof Set?r.clear():delete t[e]})(u)),u.watcher=void 0,Object.freeze(u))}},ui=new Map;class li{constructor(t){this.fsw=t,this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(e,r){const n=this.fsw.options,i=f.dirname(e),o=f.basename(e);this.fsw._getWatchedDir(i).add(o);const s=f.resolve(e),a={persistent:n.persistent};let c;if(r||(r=Un),n.usePolling){const i=n.interval!==n.binaryInterval;a.interval=i&&(u=o,ti.has(f.extname(u).slice(1).toLowerCase()))?n.binaryInterval:n.interval,c=((e,r,n,i)=>{const{listener:o,rawEmitter:s}=i;let a=ui.get(r);const c=a&&a.options;return c&&(c.persistent<n.persistent||c.interval>n.interval)&&(t.unwatchFile(r),a=void 0),a?(ri(a,Gn,o),ri(a,Zn,s)):(a={listeners:o,rawEmitters:s,options:n,watcher:t.watchFile(r,n,(t,n)=>{ei(a.rawEmitters,e=>{e(Yn.CHANGE,r,{curr:t,prev:n})});const i=t.mtimeMs;(t.size!==n.size||i>n.mtimeMs||0===i)&&ei(a.listeners,r=>r(e,t))})},ui.set(r,a)),()=>{ni(a,Gn,o),ni(a,Zn,s),ii(a.listeners)&&(ui.delete(r),t.unwatchFile(r),a.options=a.watcher=void 0,Object.freeze(a))}})(e,s,a,{listener:r,rawEmitter:this.fsw._emitRaw})}else c=ci(e,s,a,{listener:r,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});var u;return c}_handleFile(t,e,r){if(this.fsw.closed)return;const i=f.dirname(t),o=f.basename(t),s=this.fsw._getWatchedDir(i);let a=e;if(s.has(o))return;const c=async(e,r)=>{if(this.fsw._throttle("watch",t,5))if(r&&0!==r.mtimeMs){if(s.has(o)){const e=r.atimeMs,n=r.mtimeMs;(!e||e<=n||n!==a.mtimeMs)&&this.fsw._emit(Yn.CHANGE,t,r),a=r}}else try{const r=await n.stat(t);if(this.fsw.closed)return;const i=r.atimeMs,o=r.mtimeMs;if((!i||i<=o||o!==a.mtimeMs)&&this.fsw._emit(Yn.CHANGE,t,r),(Wn||qn||Hn)&&a.ino!==r.ino){this.fsw._closeFile(e),a=r;const n=this._watchWithNodeFs(t,c);n&&this.fsw._addPathCloser(e,n)}else a=r}catch(t){this.fsw._remove(i,o)}},u=this._watchWithNodeFs(t,c);if((!r||!this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(Yn.ADD,t,0))return;this.fsw._emit(Yn.ADD,t,e)}return u}async _handleSymlink(t,e,r,i){if(this.fsw.closed)return;const o=t.fullPath,s=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){let e;this.fsw._incrReadyCount();try{e=await n.realpath(r)}catch(t){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;return s.has(i)?this.fsw._symlinkPaths.get(o)!==e&&(this.fsw._symlinkPaths.set(o,e),this.fsw._emit(Yn.CHANGE,r,t.stats)):(s.add(i),this.fsw._symlinkPaths.set(o,e),this.fsw._emit(Yn.ADD,r,t.stats)),this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(t,e,r,n,i,o,s){if(t=f.join(t,""),!(s=this.fsw._throttle("readdir",t,1e3)))return;const a=this.fsw._getWatchedDir(r.path),c=new Set;let u=this.fsw._readdirp(t,{fileFilter:t=>r.filterPath(t),directoryFilter:t=>r.filterDir(t)});return u?(u.on("data",async s=>{if(this.fsw.closed)return void(u=void 0);const l=s.path;let h=f.join(t,l);c.add(l),s.stats.isSymbolicLink()&&await this._handleSymlink(s,t,h,l)||(this.fsw.closed?u=void 0:l!==n&&(n||a.has(l))||(this.fsw._incrReadyCount(),h=f.join(i,f.relative(i,h)),this._addToNodeFs(h,e,r,o+1)))}).on(Yn.ERROR,this._boundHandleError),new Promise((e,l)=>{if(!u)return l();u.once("end",()=>{if(this.fsw.closed)return void(u=void 0);const l=!!s&&s.clear();e(void 0),a.getChildren().filter(e=>e!==t&&!c.has(e)).forEach(e=>{this.fsw._remove(t,e)}),u=void 0,l&&this._handleRead(t,!1,r,n,i,o,s)})})):void 0}async _handleDir(t,e,r,n,i,o,s){const a=this.fsw._getWatchedDir(f.dirname(t)),c=a.has(f.basename(t));let u,l;r&&this.fsw.options.ignoreInitial||i||c||this.fsw._emit(Yn.ADD_DIR,t,e),a.add(f.basename(t)),this.fsw._getWatchedDir(t);const h=this.fsw.options.depth;if((null==h||n<=h)&&!this.fsw._symlinkPaths.has(s)){if(!i&&(await this._handleRead(t,r,o,i,t,n,u),this.fsw.closed))return;l=this._watchWithNodeFs(t,(e,r)=>{r&&0===r.mtimeMs||this._handleRead(e,!1,o,i,t,n,u)})}return l}async _addToNodeFs(t,e,r,i,o){const s=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return s(),!1;const a=this.fsw._getWatchHelpers(t);r&&(a.filterPath=t=>r.filterPath(t),a.filterDir=t=>r.filterDir(t));try{const r=await Kn[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,r))return s(),!1;const c=this.fsw.options.followSymlinks;let u;if(r.isDirectory()){const s=f.resolve(t),l=c?await n.realpath(t):t;if(this.fsw.closed)return;if(u=await this._handleDir(a.watchPath,r,e,i,o,a,l),this.fsw.closed)return;s!==l&&void 0!==l&&this.fsw._symlinkPaths.set(s,l)}else if(r.isSymbolicLink()){const o=c?await n.realpath(t):t;if(this.fsw.closed)return;const s=f.dirname(a.watchPath);if(this.fsw._getWatchedDir(s).add(a.watchPath),this.fsw._emit(Yn.ADD,a.watchPath,r),u=await this._handleDir(s,r,e,i,t,a,o),this.fsw.closed)return;void 0!==o&&this.fsw._symlinkPaths.set(f.resolve(t),o)}else u=this._handleFile(a.watchPath,r,e);return s(),u&&this.fsw._addPathCloser(t,u),!1}catch(e){if(this.fsw._handleError(e))return s(),t}}}
7
- /*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */const fi=/\\/g,hi=/\/\//,di=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,pi=/^\.[/\\]/;function mi(t){return Array.isArray(t)?t:[t]}const yi=t=>"object"==typeof t&&null!==t&&!(t instanceof RegExp);function gi(t,e,r){const n=function(t){if("string"!=typeof t)throw new Error("string expected");let e=!1;(t=(t=f.normalize(t)).replace(/\\/g,"/")).startsWith("//")&&(e=!0);const r=/\/\//;for(;t.match(r);)t=t.replace(r,"/");return e&&(t="/"+t),t}(e);for(let e=0;e<t.length;e++){if((0,t[e])(n,r))return!0}return!1}function vi(t,e){if(null==t)throw new TypeError("anymatch: specify first argument");const r=mi(t).map(t=>function(t){return"function"==typeof t?t:"string"==typeof t?e=>t===e:t instanceof RegExp?e=>t.test(e):"object"==typeof t&&null!==t?e=>{if(t.path===e)return!0;if(t.recursive){const r=f.relative(t.path,e);return!!r&&!r.startsWith("..")&&!f.isAbsolute(r)}return!1}:()=>!1}(t));return null==e?(t,e)=>gi(r,t,e):gi(r,e)}const wi=t=>{const e=mi(t).flat();if(!e.every(t=>"string"==typeof t))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(_i)},bi=t=>{let e=t.replace(fi,"/"),r=!1;for(e.startsWith("//")&&(r=!0);e.match(hi);)e=e.replace(hi,"/");return r&&(e="/"+e),e},_i=t=>bi(f.normalize(bi(t))),Si=(t="")=>e=>"string"==typeof e?_i(f.isAbsolute(e)?e:f.join(t,e)):e,Ei=Object.freeze(new Set);class Oi{constructor(t,e){this.path=t,this._removeWatcher=e,this.items=new Set}add(t){const{items:e}=this;e&&"."!==t&&".."!==t&&e.add(t)}async remove(t){const{items:e}=this;if(!e)return;if(e.delete(t),e.size>0)return;const r=this.path;try{await n.readdir(r)}catch(t){this._removeWatcher&&this._removeWatcher(f.dirname(r),f.basename(r))}}has(t){const{items:e}=this;if(e)return e.has(t)}getChildren(){const{items:t}=this;return t?[...t.values()]:[]}dispose(){this.items.clear(),this.path="",this._removeWatcher=Un,this.items=Ei,Object.freeze(this)}}class ji{constructor(t,e,r){this.fsw=r;const n=t;this.path=t=t.replace(pi,""),this.watchPath=n,this.fullWatchPath=f.resolve(n),this.dirParts=[],this.dirParts.forEach(t=>{t.length>1&&t.pop()}),this.followSymlinks=e,this.statMethod=e?"stat":"lstat"}entryPath(t){return f.join(this.watchPath,f.relative(this.watchPath,t.fullPath))}filterPath(t){const{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);const r=this.entryPath(t);return this.fsw._isntIgnored(r,e)&&this.fsw._hasReadPermissions(e)}filterDir(t){return this.fsw._isntIgnored(this.entryPath(t),t.stats)}}class Ri extends r.EventEmitter{constructor(t={}){super(),this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;const e=t.awaitWriteFinish,r={stabilityThreshold:2e3,pollInterval:100},n={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...t,ignored:t.ignored?mi(t.ignored):mi([]),awaitWriteFinish:!0===e?r:"object"==typeof e&&{...r,...e}};Jn&&(n.usePolling=!0),void 0===n.atomic&&(n.atomic=!n.usePolling);const i=process.env.CHOKIDAR_USEPOLLING;if(void 0!==i){const t=i.toLowerCase();n.usePolling="false"!==t&&"0"!==t&&("true"===t||"1"===t||!!t)}const o=process.env.CHOKIDAR_INTERVAL;o&&(n.interval=Number.parseInt(o,10));let s=0;this._emitReady=()=>{s++,s>=this._readyCount&&(this._emitReady=Un,this._readyEmitted=!0,process.nextTick(()=>this.emit(Vn.READY)))},this._emitRaw=(...t)=>this.emit(Vn.RAW,...t),this._boundRemove=this._remove.bind(this),this.options=n,this._nodeFsHandler=new li(this),Object.freeze(n)}_addIgnoredPath(t){if(yi(t))for(const e of this._ignoredPaths)if(yi(e)&&e.path===t.path&&e.recursive===t.recursive)return;this._ignoredPaths.add(t)}_removeIgnoredPath(t){if(this._ignoredPaths.delete(t),"string"==typeof t)for(const e of this._ignoredPaths)yi(e)&&e.path===t&&this._ignoredPaths.delete(e)}add(t,e,r){const{cwd:n}=this.options;this.closed=!1,this._closePromise=void 0;let i=wi(t);return n&&(i=i.map(t=>{const e=((t,e)=>f.isAbsolute(t)?t:f.join(e,t))(t,n);return e})),i.forEach(t=>{this._removeIgnoredPath(t)}),this._userIgnored=void 0,this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async t=>{const n=await this._nodeFsHandler._addToNodeFs(t,!r,void 0,0,e);return n&&this._emitReady(),n})).then(t=>{this.closed||t.forEach(t=>{t&&this.add(f.dirname(t),f.basename(e||t))})}),this}unwatch(t){if(this.closed)return this;const e=wi(t),{cwd:r}=this.options;return e.forEach(t=>{f.isAbsolute(t)||this._closers.has(t)||(r&&(t=f.join(r,t)),t=f.resolve(t)),this._closePath(t),this._addIgnoredPath(t),this._watched.has(t)&&this._addIgnoredPath({path:t,recursive:!0}),this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();const t=[];return this._closers.forEach(e=>e.forEach(e=>{const r=e();r instanceof Promise&&t.push(r)})),this._streams.forEach(t=>t.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(t=>t.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const t={};return this._watched.forEach((e,r)=>{const n=this.options.cwd?f.relative(this.options.cwd,r):r;t[n||"."]=e.getChildren().sort()}),t}emitWithAll(t,e){this.emit(t,...e),t!==Vn.ERROR&&this.emit(Vn.ALL,t,...e)}async _emit(t,e,r){if(this.closed)return;const i=this.options;Bn&&(e=f.normalize(e)),i.cwd&&(e=f.relative(i.cwd,e));const o=[e];null!=r&&o.push(r);const s=i.awaitWriteFinish;let a;if(s&&(a=this._pendingWrites.get(e)))return a.lastChange=new Date,this;if(i.atomic){if(t===Vn.UNLINK)return this._pendingUnlinks.set(e,[t,...o]),setTimeout(()=>{this._pendingUnlinks.forEach((t,e)=>{this.emit(...t),this.emit(Vn.ALL,...t),this._pendingUnlinks.delete(e)})},"number"==typeof i.atomic?i.atomic:100),this;t===Vn.ADD&&this._pendingUnlinks.has(e)&&(t=Vn.CHANGE,this._pendingUnlinks.delete(e))}if(s&&(t===Vn.ADD||t===Vn.CHANGE)&&this._readyEmitted){const r=(e,r)=>{e?(t=Vn.ERROR,o[0]=e,this.emitWithAll(t,o)):r&&(o.length>1?o[1]=r:o.push(r),this.emitWithAll(t,o))};return this._awaitWriteFinish(e,s.stabilityThreshold,t,r),this}if(t===Vn.CHANGE){if(!this._throttle(Vn.CHANGE,e,50))return this}if(i.alwaysStat&&void 0===r&&(t===Vn.ADD||t===Vn.ADD_DIR||t===Vn.CHANGE)){const t=i.cwd?f.join(i.cwd,e):e;let r;try{r=await n.stat(t)}catch(t){}if(!r||this.closed)return;o.push(r)}return this.emitWithAll(t,o),this}_handleError(t){const e=t&&t.code;return t&&"ENOENT"!==e&&"ENOTDIR"!==e&&(!this.options.ignorePermissionErrors||"EPERM"!==e&&"EACCES"!==e)&&this.emit(Vn.ERROR,t),t||this.closed}_throttle(t,e,r){this._throttled.has(t)||this._throttled.set(t,new Map);const n=this._throttled.get(t);if(!n)throw new Error("invalid throttle");const i=n.get(e);if(i)return i.count++,!1;let o;const s=()=>{const t=n.get(e),r=t?t.count:0;return n.delete(e),clearTimeout(o),t&&clearTimeout(t.timeoutObject),r};o=setTimeout(s,r);const a={timeoutObject:o,clear:s,count:0};return n.set(e,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,r,n,i){const o=this.options.awaitWriteFinish;if("object"!=typeof o)return;const s=o.pollInterval;let a,c=e;this.options.cwd&&!f.isAbsolute(e)&&(c=f.join(this.options.cwd,e));const u=new Date,l=this._pendingWrites;l.has(e)||(l.set(e,{lastChange:u,cancelWait:()=>(l.delete(e),clearTimeout(a),n)}),a=setTimeout(function n(o){t.stat(c,(t,c)=>{if(t||!l.has(e))return void(t&&"ENOENT"!==t.code&&i(t));const u=Number(new Date);o&&c.size!==o.size&&(l.get(e).lastChange=u),u-l.get(e).lastChange>=r?(l.delete(e),i(void 0,c)):a=setTimeout(n,s,c)})},s))}_isIgnored(t,e){if(this.options.atomic&&di.test(t))return!0;if(!this._userIgnored){const{cwd:t}=this.options,e=(this.options.ignored||[]).map(Si(t)),r=[...[...this._ignoredPaths].map(Si(t)),...e];this._userIgnored=vi(r,void 0)}return this._userIgnored(t,e)}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t){return new ji(t,this.options.followSymlinks,this)}_getWatchedDir(t){const e=f.resolve(t);return this._watched.has(e)||this._watched.set(e,new Oi(e,this._boundRemove)),this._watched.get(e)}_hasReadPermissions(t){return!!this.options.ignorePermissionErrors||Boolean(256&Number(t.mode))}_remove(t,e,r){const n=f.join(t,e),i=f.resolve(n);if(r=null!=r?r:this._watched.has(n)||this._watched.has(i),!this._throttle("remove",n,100))return;r||1!==this._watched.size||this.add(t,e,!0);this._getWatchedDir(n).getChildren().forEach(t=>this._remove(n,t));const o=this._getWatchedDir(t),s=o.has(e);o.remove(e),this._symlinkPaths.has(i)&&this._symlinkPaths.delete(i);let a=n;if(this.options.cwd&&(a=f.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(a)){if(this._pendingWrites.get(a).cancelWait()===Vn.ADD)return}this._watched.delete(n),this._watched.delete(i);const c=r?Vn.UNLINK_DIR:Vn.UNLINK;s&&!this._isIgnored(n)&&this._emit(c,n),this._closePath(n)}_closePath(t){this._closeFile(t);const e=f.dirname(t);this._getWatchedDir(e).remove(f.basename(t))}_closeFile(t){const e=this._closers.get(t);e&&(e.forEach(t=>t()),this._closers.delete(t))}_addPathCloser(t,e){if(!e)return;let r=this._closers.get(t);r||(r=[],this._closers.set(t,r)),r.push(e)}_readdirp(t,e){if(this.closed)return;let r=function(t,e={}){let r=e.entryType||e.type;if("both"===r&&(r=xn),r&&(e.type=r),!t)throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");if("string"!=typeof t)throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(r&&!Cn.includes(r))throw new Error(`readdirp: Invalid type passed. Use one of ${Cn.join(", ")}`);return e.root=t,new zn(e)}(t,{type:Vn.ALL,alwaysStat:!0,lstat:!0,...e,depth:0});return this._streams.add(r),r.once("close",()=>{r=void 0}),r.once("end",()=>{r&&(this._streams.delete(r),r=void 0)}),r}}var Ai={watch:function(t,e={}){const r=new Ri(e);return r.add(t),r},FSWatcher:Ri};function xi(n,i={}){let o=gt(i,"polling");xe(o)||(o=!1);let s=gt(i,"timeInterval");On(s)||(s=100),s=En(s);let a=gt(i,"timeBinaryInterval");On(a)||(a=300),a=En(a);let c=new r.EventEmitter,u=n,l=null,f=setInterval(()=>{null===l&&(ke(u,{fs:t})&&(l=Ai.watch(u,{usePolling:o,interval:s,binaryInterval:a,awaitWriteFinish:!0}),l.on("all",(t,r,n)=>{r=e.resolve(r),c.emit("change",{type:t,fp:r,stats:n})})))},s);return c.clear=()=>{(()=>{if(null!==l){try{l.unwatch(u)}catch(t){console.log(t)}l.close().catch(t=>{console.log(t)}).finally(()=>{l=null})}})(),clearInterval(f)},c}function ki(e,r,n={}){Ae(e)||Ne(e),Ae(r)||Ne(r);let i=`${e}/fpHash.json`,o=`${r}/fpHash.json`,s=e=>{let r={};try{r=function(t){if(!ie(t))return{};let e={};try{e=JSON.parse(t)}catch(t){e={}}return e}(t.readFileSync(e,"utf8"))}catch(t){}return r},a=(e,r)=>{try{let n=function(t,e=!1){if(gn(t))return"";let r="";try{r=e?JSON.stringify(t,null,2):JSON.stringify(t)}catch(t){r=""}return r}(r);t.writeFileSync(e,n,"utf8")}catch(t){}},c=(t,e)=>gt(s(t),e,""),u=(t,e,r)=>{let n=s(t);n[e]=r,a(t,n)},l=(t,e)=>{let r=s(t);le(r,e)&&delete r[e],a(t,r)},f=()=>s(i),h=t=>a(i,t),d=t=>c(i,t),p=()=>s(o),m=t=>a(o,t),y=t=>c(o,t),g=(t,e)=>u(o,t,e),v=t=>l(o,t),w=t=>{let e=[];return te(t,(t,r)=>{e.push({fp:r,hash:t})}),e};return{buildSrc:()=>{let t=dn();return t.set=(e,r)=>{((t,e)=>{u(i,t,e)})(e,r),t.emit("set",{type:"set",fp:e,hash:r})},t.get=d,t.remove=e=>{(t=>{l(i,t)})(e),t.emit("remove",{type:"remove",fp:e})},t.readKp=f,t.writeKp=h,t},buildTar:()=>{let t=dn(),e=jn(300),r=xi(i);return r.on("change",r=>{e(()=>{(async()=>{let e=Ee(),r=f();if(!wr(r))return e.resolve("no src"),e;let n=p(),i=w(r),o=ln(w(n),i,"fp",{withInfor:!1}),s=Ee();return s.then(t=>{m(r)}).catch(()=>{}),t.emit("change",{kpSrc:r,kpTar:n,kpCmp:o,pm:s}),e})().catch(()=>{})})}),t.set=g,t.get=y,t.remove=v,t.readKp=p,t.writeKp=m,t.clear=r.clear,t}}}var Di={exports:{}};!function(t){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",c="week",u="month",l="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,u),o=r-i<0,s=e.clone().add(n+(o?-1:1),u);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:f,w:c,d:a,D:h,h:s,m:o,s:i,ms:n,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=y;var _="$isDayjsObject",S=function(t){return t instanceof R||!(!t||!t[_])},E=function t(e,r,n){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;b[a]=e,i=a}return!n&&i&&(w=i),i||!n&&w},O=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new R(r)},j=v;j.l=E,j.i=S,j.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var R=function(){function y(t){this.$L=E(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var g=y.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(j.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return j},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return O(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<O(t)},g.$g=function(t,e,r){return j.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!j.u(e)||e,l=j.p(t),d=function(t,e){var i=j.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(a)},p=function(t,e){return j.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case f:return n?d(1,0):d(31,11);case u:return n?d(1,y):d(0,y+1);case c:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return d(n?g-b:g+(6-b),y);case a:case h:return p(v+"Hours",0);case s:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var r,c=j.p(t),l="set"+(this.$u?"UTC":""),d=(r={},r[a]=l+"Date",r[h]=l+"Date",r[u]=l+"Month",r[f]=l+"FullYear",r[s]=l+"Hours",r[o]=l+"Minutes",r[i]=l+"Seconds",r[n]=l+"Milliseconds",r)[c],p=c===a?this.$D+(e-this.$W):e;if(c===u||c===f){var m=this.clone().set(h,1);m.$d[d](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[j.p(t)]()},g.add=function(n,l){var h,d=this;n=Number(n);var p=j.p(l),m=function(t){var e=O(d);return j.w(e.date(e.date()+Math.round(t*n)),d)};if(p===u)return this.set(u,this.$M+n);if(p===f)return this.set(f,this.$y+n);if(p===a)return m(1);if(p===c)return m(7);var y=(h={},h[o]=e,h[s]=r,h[i]=t,h)[p]||1,g=this.$d.getTime()+n*y;return j.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=j.z(this),o=this.$H,s=this.$m,a=this.$M,c=r.weekdays,u=r.months,l=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},h=function(t){return j.s(o%12||12,t,"0")},p=l||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return j.s(e.$y,4,"0");case"M":return a+1;case"MM":return j.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,u,3);case"MMMM":return f(u,a);case"D":return e.$D;case"DD":return j.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(o);case"HH":return j.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,s,!0);case"A":return p(o,s,!1);case"m":return String(s);case"mm":return j.s(s,2,"0");case"s":return String(e.$s);case"ss":return j.s(e.$s,2,"0");case"SSS":return j.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,h,d){var p,m=this,y=j.p(h),g=O(n),v=(g.utcOffset()-this.utcOffset())*e,w=this-g,b=function(){return j.m(m,g)};switch(y){case f:p=b()/12;break;case u:p=b();break;case l:p=b()/3;break;case c:p=(w-v)/6048e5;break;case a:p=(w-v)/864e5;break;case s:p=w/r;break;case o:p=w/e;break;case i:p=w/t;break;default:p=w}return d?p:j.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return b[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=E(t,e,!0);return n&&(r.$L=n),r},g.clone=function(){return j.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),A=R.prototype;return O.prototype=A,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",h]].forEach(function(t){A[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),O.extend=function(t,e){return t.$i||(t(e,R,O),t.$i=!0),O},O.locale=E,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=b[w],O.Ls=b,O.p={},O}()}(Di);var Pi=_r(Di.exports),Ti={exports:{}};function Ci(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}const Ni=function(t,e,r){var n=r&&r.stringify||Ci;if("object"==typeof t&&null!==t){var i=e.length+1;if(1===i)return t;var o=new Array(i);o[0]=n(t);for(var s=1;s<i;s++)o[s]=n(e[s]);return o.join(" ")}if("string"!=typeof t)return t;var a=e.length;if(0===a)return t;for(var c="",u=0,l=-1,f=t&&t.length||0,h=0;h<f;){if(37===t.charCodeAt(h)&&h+1<f){switch(l=l>-1?l:0,t.charCodeAt(h+1)){case 100:case 102:if(u>=a)break;if(null==e[u])break;l<h&&(c+=t.slice(l,h)),c+=Number(e[u]),l=h+2,h++;break;case 105:if(u>=a)break;if(null==e[u])break;l<h&&(c+=t.slice(l,h)),c+=Math.floor(Number(e[u])),l=h+2,h++;break;case 79:case 111:case 106:if(u>=a)break;if(void 0===e[u])break;l<h&&(c+=t.slice(l,h));var d=typeof e[u];if("string"===d){c+="'"+e[u]+"'",l=h+2,h++;break}if("function"===d){c+=e[u].name||"<anonymous>",l=h+2,h++;break}c+=n(e[u]),l=h+2,h++;break;case 115:if(u>=a)break;l<h&&(c+=t.slice(l,h)),c+=String(e[u]),l=h+2,h++;break;case 37:l<h&&(c+=t.slice(l,h)),c+="%",l=h+2,h++,u--}++u}++h}if(-1===l)return t;l<f&&(c+=t.slice(l));return c};Ti.exports=Bi;const Li=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},Fi={mapHttpRequest:Yi,mapHttpResponse:Yi,wrapRequestSerializer:Ki,wrapResponseSerializer:Ki,wrapErrorSerializer:Ki,req:Yi,res:Yi,err:Ji,errWithCause:Ji};function $i(t,e){return"silent"===t?1/0:e.levels.values[t]}const Mi=Symbol("pino.logFuncs"),zi=Symbol("pino.hierarchy"),Ui={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function Ii(t,e){const r={logger:e,parent:t[zi]};e[zi]=r}function Bi(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const r=t.browser.write||Li;t.browser.write&&(t.browser.asObject=!0);const n=t.serializers||{},i=function(t,e){if(Array.isArray(t))return t.filter(function(t){return"!stdSerializers.err"!==t});return!0===t&&Object.keys(e)}(t.browser.serialize,n);let o=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const s=Object.keys(t.customLevels||{}),a=["error","fatal","warn","info","debug","trace"].concat(s);"function"==typeof r&&a.forEach(function(t){r[t]=r}),(!1===t.enabled||t.browser.disabled)&&(t.level="silent");const c=t.level||"info",u=Object.create(r);u.log||(u.log=Gi),function(t,e,r){const n={};e.forEach(t=>{n[t]=r[t]?r[t]:Li[t]||Li[Ui[t]||"log"]||Gi}),t[Mi]=n}(u,a,r),Ii({},u),Object.defineProperty(u,"levelVal",{get:function(){return $i(this.level,this)}}),Object.defineProperty(u,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,Wi(this,l,u,"error"),Wi(this,l,u,"fatal"),Wi(this,l,u,"warn"),Wi(this,l,u,"info"),Wi(this,l,u,"debug"),Wi(this,l,u,"trace"),s.forEach(t=>{Wi(this,l,u,t)})}});const l={transmit:e,serialize:i,asObject:t.browser.asObject,asObjectBindingsOnly:t.browser.asObjectBindingsOnly,formatters:t.browser.formatters,levels:a,timestamp:Vi(t),messageKey:t.messageKey||"msg",onChild:t.onChild||Gi};function f(r,o,s){if(!o)throw new Error("missing bindings for child Pino");s=s||{},i&&o.serializers&&(s.serializers=o.serializers);const a=s.serializers;if(i&&a){var c=Object.assign({},n,a),u=!0===t.browser.serialize?Object.keys(c):i;delete o.serializers,qi([o],u,c,this._stdErrSerialize)}function l(t){this._childLevel=1+(0|t._childLevel),this.bindings=o,c&&(this.serializers=c,this._serialize=u),e&&(this._logEvent=Hi([].concat(t._logEvent.bindings,o)))}l.prototype=this;const h=new l(this);return Ii(this,h),h.child=function(...t){return f.call(this,r,...t)},h.level=s.level||this.level,r.onChild(h),h}return u.levels=function(t){const e=t.customLevels||{},r=Object.assign({},Bi.levels.values,e),n=Object.assign({},Bi.levels.labels,function(t){const e={};return Object.keys(t).forEach(function(r){e[t[r]]=r}),e}(e));return{values:r,labels:n}}(t),u.level=c,u.isLevelEnabled=function(t){return!!this.levels.values[t]&&this.levels.values[t]>=this.levels.values[this.level]},u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=Gi,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=function(...t){return f.call(this,l,...t)},e&&(u._logEvent=Hi()),u}function Wi(t,e,r,n){if(Object.defineProperty(t,n,{value:$i(t.level,r)>$i(n,r)?Gi:r[Mi][n],writable:!0,enumerable:!0,configurable:!0}),t[n]===Gi){if(!e.transmit)return;const i=$i(e.transmit.level||t.level,r);if($i(n,r)<i)return}t[n]=function(t,e,r,n){return i=t[Mi][n],function(){const o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Li?Li:this;for(var c=0;c<s.length;c++)s[c]=arguments[c];var u=!1;if(e.serialize&&(qi(s,this._serialize,this.serializers,this._stdErrSerialize),u=!0),e.asObject||e.formatters?i.call(a,...function(t,e,r,n,i){const{level:o,log:s=t=>t}=i.formatters||{},a=r.slice();let c=a[0];const u={};let l=1+(0|t._childLevel);if(l<1&&(l=1),n&&(u.time=n),o){const r=o(e,t.levels.values[e]);Object.assign(u,r)}else u.level=t.levels.values[e];if(i.asObjectBindingsOnly){if(null!==c&&"object"==typeof c)for(;l--&&"object"==typeof a[0];)Object.assign(u,a.shift());return[s(u),...a]}if(null!==c&&"object"==typeof c){for(;l--&&"object"==typeof a[0];)Object.assign(u,a.shift());c=a.length?Ni(a.shift(),a):void 0}else"string"==typeof c&&(c=Ni(a.shift(),a));return void 0!==c&&(u[i.messageKey]=c),[s(u)]}(this,n,s,o,e)):i.apply(a,s),e.transmit){const i=e.transmit.level||t._level,a=$i(i,r),c=$i(n,r);if(c<a)return;!function(t,e,r,n=!1){const i=e.send,o=e.ts,s=e.methodLevel,a=e.methodValue,c=e.val,u=t._logEvent.bindings;n||qi(r,t._serialize||Object.keys(t.serializers),t.serializers,void 0===t._stdErrSerialize||t._stdErrSerialize),t._logEvent.ts=o,t._logEvent.messages=r.filter(function(t){return-1===u.indexOf(t)}),t._logEvent.level.label=s,t._logEvent.level.value=a,i(s,t._logEvent,c),t._logEvent=Hi(u)}(this,{ts:o,methodLevel:n,methodValue:c,transmitLevel:i,transmitValue:r.levels.values[e.transmit.level||t._level],send:e.transmit.send,val:$i(t._level,r)},s,u)}};var i}(t,e,r,n);const i=function(t){const e=[];t.bindings&&e.push(t.bindings);let r=t[zi];for(;r.parent;)r=r.parent,r.logger.bindings&&e.push(r.logger.bindings);return e.reverse()}(t);0!==i.length&&(t[n]=function(t,e){return function(){return e.apply(this,[...t,...arguments])}}(i,t[n]))}function qi(t,e,r,n){for(const i in t)if(n&&t[i]instanceof Error)t[i]=Bi.stdSerializers.err(t[i]);else if("object"==typeof t[i]&&!Array.isArray(t[i])&&e)for(const n in t[i])e.indexOf(n)>-1&&n in r&&(t[i][n]=r[n](t[i][n]))}function Hi(t){return{ts:0,messages:[],bindings:t||[],level:{label:"",value:0}}}function Ji(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const r in t)void 0===e[r]&&(e[r]=t[r]);return e}function Vi(t){return"function"==typeof t.timestamp?t.timestamp:!1===t.timestamp?Xi:Zi}function Yi(){return{}}function Ki(t){return t}function Gi(){}function Xi(){return!1}function Zi(){return Date.now()}Bi.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},Bi.stdSerializers=Fi,Bi.stdTimeFunctions=Object.assign({},{nullTime:Xi,epochTime:Zi,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}}),Ti.exports.default=Bi,Ti.exports.pino=Bi;var Qi=_r(Ti.exports);let to=c.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(to).href:"undefined"==typeof document?location.href:u&&"SCRIPT"===u.tagName.toUpperCase()&&u.src||new URL("w-dwdata-tweqod.umd.js",document.baseURI).href),eo=e.dirname(to);let ro=function(t={}){let r=gt(t,"fdLog");ie(r)||(r="./_logs");let n=gt(t,"interval");"day"!==n&&"hr"!==n&&(n="day");let i=Qi.transport({targets:[{level:"info",target:e.resolve(eo,"./formatter.mjs"),options:{interval:n,logDir:r}}]});return Qi(i)}({fdLog:"./_logs",interval:"hr"}),no=async(t={})=>{let e=gt(t,"keyId");ie(e)||(e="id");let r=gt(t,"fdDwAttime");ie(r)||(r="./_dwAttime"),Ae(r)||Ne(r);let n=gt(t,"fdDwCurrent");ie(n)||(n="./_dwCurrent"),Ae(n)||Ne(n);let i=gt(t,"fdResult");ie(i)||(i="./_result"),Ae(i)||Ne(i);let o=gt(t,"fdTaskCpSrc");ie(o)||(o="./_taskCpSrc"),Ae(o)||Ne(o);let s=gt(t,"funDownload");if(!oe(s))throw new Error("invalid funDownload");let a=gt(t,"funGetCurrent");if(!oe(a))throw new Error("invalid funGetCurrent");let c=gt(t,"funAdd");if(!oe(c))throw new Error("invalid funAdd");let u=gt(t,"funModify");if(!oe(u))throw new Error("invalid funModify");let l=gt(t,"funRemove");if(!oe(l))throw new Error("invalid funRemove");let f=dn(),h={info:t=>{ro.info(t),f.emit("change",{type:"info",...t})},error:t=>{ro.error(t),f.emit("change",{type:"error",...t})}};return(async()=>{await function(t=10){ue(t)||(t=10);let e=Ee();return setTimeout(function(){e.resolve()},t),e}(1);let t=Pi(),i=()=>{let e=Pi(),r=e.diff(t,"second");return{timeRunStart:t.format("YYYY-MM-DDTHH:mm:ssZ"),timeRunEnd:e.format("YYYY-MM-DDTHH:mm:ssZ"),timeRunSpent:`${r}s`}};h.info({event:"start",msg:"running..."});let f="",d=ki(o,o).buildSrc(),p=[];try{h.info({event:"proc-callfun-download",msg:"start..."});let t=s();se(t)&&(t=await t),h.info({event:"proc-callfun-download",msg:"done"}),p=t}catch(t){console.log(t),h.error({event:"proc-callfun-download",msg:t.message}),f="error at proc-callfun-download"}if(ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});let m=[];try{h.info({event:"proc-callfun-getCurrent",msg:"start..."});let t=a();se(t)&&(t=await t),h.info({event:"proc-callfun-getCurrent",msg:"done"}),m=t}catch(t){console.log(t),h.error({event:"proc-callfun-getCurrent",msg:t.message}),f="error at proc-callfun-getCurrent"}if(ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});if(0===vr(p))return console.log("invalid data, task canceled"),void h.info({event:"cancel",...i(),msg:"can not download data"});if(vr(m)-vr(p)>10)return console.log(`difference between the data before and after is too large, size(itemsCur)[${vr(m)}]-size(itemsAtt)[${vr(p)}]>10`),void h.info({event:"cancel",...i(),msg:"difference between the data before and after is too large"});let y=null;try{h.info({event:"compare",msg:"start..."}),y=ln(m,p,e,{withInfor:!1}),h.info({event:"compare",msg:"done"})}catch(t){console.log(t),h.error({event:"compare",msg:t.message})}if(!wr(y))return console.log("can not calculate the difference, task canceled"),void h.info({event:"cancel",...i(),msg:"can not calculate the difference between the data before and after"});if(0===vr(y.del)&&0===vr(y.add)&&0===vr(y.diff))return console.log("no difference, task canceled"),void h.info({event:"cancel",...i(),msg:"no difference"});if(await je(y.del,async t=>{if(!ie(f)){try{h.info({event:"proc-remove-callfun-remove",[e]:t[e],msg:"start..."});let r=l(t);se(r)&&(r=await r)}catch(r){console.log(r),h.error({event:"proc-remove-callfun-remove",[e]:t[e],msg:r.message}),f="error at proc-remove-callfun-remove"}if(!ie(f))try{d.remove(t[e]),h.info({event:"proc-remove-callfun-remove",[e]:t[e],msg:"done"})}catch(r){console.log(r),h.error({event:"proc-remove-otk-remove",[e]:t[e],msg:r.message}),f="error at proc-remove-otk-remove"}}}),ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});if(await je(y.add,async t=>{if(!ie(f)){try{h.info({event:"proc-add-callfun-add",[e]:t[e],msg:"start..."});let r=c(t);se(r)&&(r=await r)}catch(r){console.log(r),h.error({event:"proc-add-callfun-add",[e]:t[e],msg:r.message}),f="error at proc-add-callfun-add"}if(!ie(f))try{let r=Pr(JSON.stringify(t));d.set(t[e],r),h.info({event:"proc-add-callfun-add",[e]:t[e],msg:"done"})}catch(r){console.log(r),h.error({event:"proc-add-otk-set",[e]:t[e],msg:r.message}),f="error at proc-add-otk-set"}}}),ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});if(await je(y.diff,async t=>{if(!ie(f)){try{h.info({event:"proc-diff-callfun-modify",[e]:t[e],msg:"start..."});let r=u(t);se(r)&&(r=await r)}catch(r){console.log(r),h.error({event:"proc-diff-callfun-modify",[e]:t[e],msg:r.message}),f="error at proc-diff-callfun-modify"}if(!ie(f))try{let r=Pr(JSON.stringify(t));d.set(t[e],r),h.info({event:"proc-diff-callfun-modify",[e]:t[e],msg:"done"})}catch(r){console.log(r),h.error({event:"proc-diff-otk-set",[e]:t[e],msg:r.message}),f="error at proc-diff-otk-set"}}}),ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});{Ce(n);let t=yn(r,n);if(t.error)return console.log(t.error),h.error({event:"task-update-rawData",msg:t.error}),void(f="error at task-update-rawData")}if(ie(f))return console.log("error occurred, task canceled"),void h.info({event:"cancel",...i(),msg:f});h.info({event:"end",...i(),msg:"done"})})().catch(t=>{console.log(t),h.error({event:"proc-core",msg:t.message})}),f.srlog=h,f};function io(t){return!!gn(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(ae(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!function(t){return!(!ne(t)||""!==t)}(t)||(!!function(t){return!!Oe(t)&&0===t.length}(t)||!!ce(t)))))}function oo(t){if(!ie(t)&&!ue(t)&&!j(t))return"";let e="";try{e=String(t)}catch(t){}try{e=t.toString()}catch(t){}return e}function so(t){if(!vn(t))return!1;return En(t)>=0}function ao(t,e){return ie(t)&&so(e)?0===(e=En(e))?t:function(t,e){if(!ie(t))return"";if(!so(e))return"";if(0===(e=En(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}(t,t.length-e):""}function co(t,e){return function(){return t.apply(e,arguments)}}const{toString:uo}=Object.prototype,{getPrototypeOf:lo}=Object,{iterator:fo,toStringTag:ho}=Symbol,po=(t=>e=>{const r=uo.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mo=t=>(t=t.toLowerCase(),e=>po(e)===t),yo=t=>e=>typeof e===t,{isArray:go}=Array,vo=yo("undefined");function wo(t){return null!==t&&!vo(t)&&null!==t.constructor&&!vo(t.constructor)&&So(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const bo=mo("ArrayBuffer");const _o=yo("string"),So=yo("function"),Eo=yo("number"),Oo=t=>null!==t&&"object"==typeof t,jo=t=>{if("object"!==po(t))return!1;const e=lo(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||ho in t||fo in t)},Ro=mo("Date"),Ao=mo("File"),xo=mo("Blob"),ko=mo("FileList"),Do=mo("URLSearchParams"),[Po,To,Co,No]=["ReadableStream","Request","Response","Headers"].map(mo);function Lo(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,i;if("object"!=typeof t&&(t=[t]),go(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(wo(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function Fo(t,e){if(wo(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n,i=r.length;for(;i-- >0;)if(n=r[i],e===n.toLowerCase())return n;return null}const $o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Mo=t=>!vo(t)&&t!==$o;const zo=(Uo="undefined"!=typeof Uint8Array&&lo(Uint8Array),t=>Uo&&t instanceof Uo);var Uo;const Io=mo("HTMLFormElement"),Bo=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Wo=mo("RegExp"),qo=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Lo(r,(r,i)=>{let o;!1!==(o=e(r,i,t))&&(n[i]=o||r)}),Object.defineProperties(t,n)};const Ho=mo("AsyncFunction"),Jo=(Vo="function"==typeof setImmediate,Yo=So($o.postMessage),Vo?setImmediate:Yo?(Ko=`axios@${Math.random()}`,Go=[],$o.addEventListener("message",({source:t,data:e})=>{t===$o&&e===Ko&&Go.length&&Go.shift()()},!1),t=>{Go.push(t),$o.postMessage(Ko,"*")}):t=>setTimeout(t));var Vo,Yo,Ko,Go;const Xo="undefined"!=typeof queueMicrotask?queueMicrotask.bind($o):"undefined"!=typeof process&&process.nextTick||Jo;var Zo={isArray:go,isArrayBuffer:bo,isBuffer:wo,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||So(t.append)&&("formdata"===(e=po(t))||"object"===e&&So(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&bo(t.buffer),e},isString:_o,isNumber:Eo,isBoolean:t=>!0===t||!1===t,isObject:Oo,isPlainObject:jo,isEmptyObject:t=>{if(!Oo(t)||wo(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:Po,isRequest:To,isResponse:Co,isHeaders:No,isUndefined:vo,isDate:Ro,isFile:Ao,isBlob:xo,isRegExp:Wo,isFunction:So,isStream:t=>Oo(t)&&So(t.pipe),isURLSearchParams:Do,isTypedArray:zo,isFileList:ko,forEach:Lo,merge:function t(){const{caseless:e}=Mo(this)&&this||{},r={},n=(n,i)=>{const o=e&&Fo(r,i)||i;jo(r[o])&&jo(n)?r[o]=t(r[o],n):jo(n)?r[o]=t({},n):go(n)?r[o]=n.slice():r[o]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Lo(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(Lo(e,(e,n)=>{r&&So(e)?t[n]=co(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],n&&!n(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==r&&lo(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:po,kindOfTest:mo,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(go(t))return t;let e=t.length;if(!Eo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[fo]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:Io,hasOwnProperty:Bo,hasOwnProp:Bo,reduceDescriptors:qo,freezeMethods:t=>{qo(t,(e,r)=>{if(So(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];So(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return go(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:Fo,global:$o,isContextDefined:Mo,isSpecCompliantForm:function(t){return!!(t&&So(t.append)&&"FormData"===t[ho]&&t[fo])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(Oo(t)){if(e.indexOf(t)>=0)return;if(wo(t))return t;if(!("toJSON"in t)){e[n]=t;const i=go(t)?[]:{};return Lo(t,(t,e)=>{const o=r(t,n+1);!vo(o)&&(i[e]=o)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:Ho,isThenable:t=>t&&(Oo(t)||So(t))&&So(t.then)&&So(t.catch),setImmediate:Jo,asap:Xo,isIterable:t=>null!=t&&So(t[fo])};function Qo(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Zo.inherits(Qo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Zo.toJSONObject(this.config),code:this.code,status:this.status}}});const ts=Qo.prototype,es={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{es[t]={value:t}}),Object.defineProperties(Qo,es),Object.defineProperty(ts,"isAxiosError",{value:!0}),Qo.from=(t,e,r,n,i,o)=>{const s=Object.create(ts);return Zo.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),Qo.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};function rs(t){return Zo.isPlainObject(t)||Zo.isArray(t)}function ns(t){return Zo.endsWith(t,"[]")?t.slice(0,-2):t}function is(t,e,r){return t?t.concat(e).map(function(t,e){return t=ns(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}const os=Zo.toFlatObject(Zo,{},null,function(t){return/^is[A-Z]/.test(t)});function ss(t,e,r){if(!Zo.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=Zo.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!Zo.isUndefined(e[t])})).metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Zo.isSpecCompliantForm(e);if(!Zo.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Zo.isDate(t))return t.toISOString();if(Zo.isBoolean(t))return t.toString();if(!a&&Zo.isBlob(t))throw new Qo("Blob is not supported. Use a Buffer instead.");return Zo.isArrayBuffer(t)||Zo.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,i){let a=t;if(t&&!i&&"object"==typeof t)if(Zo.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Zo.isArray(t)&&function(t){return Zo.isArray(t)&&!t.some(rs)}(t)||(Zo.isFileList(t)||Zo.endsWith(r,"[]"))&&(a=Zo.toArray(t)))return r=ns(r),a.forEach(function(t,n){!Zo.isUndefined(t)&&null!==t&&e.append(!0===s?is([r],n,o):null===s?r:r+"[]",c(t))}),!1;return!!rs(t)||(e.append(is(i,r,o),c(t)),!1)}const l=[],f=Object.assign(os,{defaultVisitor:u,convertValue:c,isVisitable:rs});if(!Zo.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Zo.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Zo.forEach(r,function(r,o){!0===(!(Zo.isUndefined(r)||null===r)&&i.call(e,r,Zo.isString(o)?o.trim():o,n,f))&&t(r,n?n.concat(o):[o])}),l.pop()}}(t),e}function as(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function cs(t,e){this._pairs=[],t&&ss(t,this,e)}const us=cs.prototype;function ls(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fs(t,e,r){if(!e)return t;const n=r&&r.encode||ls;Zo.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(o=i?i(e,r):Zo.isURLSearchParams(e)?e.toString():new cs(e,r).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}us.append=function(t,e){this._pairs.push([t,e])},us.toString=function(t){const e=t?function(e){return t.call(this,e,as)}:as;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var hs=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Zo.forEach(this.handlers,function(e){null!==e&&t(e)})}},ds={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ps={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:cs,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ms="undefined"!=typeof window&&"undefined"!=typeof document,ys="object"==typeof navigator&&navigator||void 0,gs=ms&&(!ys||["ReactNative","NativeScript","NS"].indexOf(ys.product)<0),vs="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ws=ms&&window.location.href||"http://localhost";var bs={...Object.freeze({__proto__:null,hasBrowserEnv:ms,hasStandardBrowserEnv:gs,hasStandardBrowserWebWorkerEnv:vs,navigator:ys,origin:ws}),...ps};function _s(t){function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=t.length;if(o=!o&&Zo.isArray(n)?n.length:o,a)return Zo.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&Zo.isObject(n[o])||(n[o]=[]);return e(t,r,n[o],i)&&Zo.isArray(n[o])&&(n[o]=function(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}(n[o])),!s}if(Zo.isFormData(t)&&Zo.isFunction(t.entries)){const r={};return Zo.forEachEntry(t,(t,n)=>{e(function(t){return Zo.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),n,r,0)}),r}return null}const Ss={transitional:ds,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=Zo.isObject(t);i&&Zo.isHTMLForm(t)&&(t=new FormData(t));if(Zo.isFormData(t))return n?JSON.stringify(_s(t)):t;if(Zo.isArrayBuffer(t)||Zo.isBuffer(t)||Zo.isStream(t)||Zo.isFile(t)||Zo.isBlob(t)||Zo.isReadableStream(t))return t;if(Zo.isArrayBufferView(t))return t.buffer;if(Zo.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return ss(t,new bs.classes.URLSearchParams,{visitor:function(t,e,r,n){return bs.isNode&&Zo.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((o=Zo.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ss(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),function(t,e,r){if(Zo.isString(t))try{return(e||JSON.parse)(t),Zo.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Ss.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(Zo.isResponse(t)||Zo.isReadableStream(t))return t;if(t&&Zo.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw Qo.from(t,Qo.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bs.classes.FormData,Blob:bs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Zo.forEach(["delete","get","head","post","put","patch"],t=>{Ss.headers[t]={}});var Es=Ss;const Os=Zo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const js=Symbol("internals");function Rs(t){return t&&String(t).trim().toLowerCase()}function As(t){return!1===t||null==t?t:Zo.isArray(t)?t.map(As):String(t)}function xs(t,e,r,n,i){return Zo.isFunction(n)?n.call(this,e,r):(i&&(e=r),Zo.isString(e)?Zo.isString(n)?-1!==e.indexOf(n):Zo.isRegExp(n)?n.test(e):void 0:void 0)}class ks{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function i(t,e,r){const i=Rs(e);if(!i)throw new Error("header name must be a non-empty string");const o=Zo.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||e]=As(t))}const o=(t,e)=>Zo.forEach(t,(t,r)=>i(t,r,e));if(Zo.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(Zo.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let r,n,i;return t&&t.split("\n").forEach(function(t){i=t.indexOf(":"),r=t.substring(0,i).trim().toLowerCase(),n=t.substring(i+1).trim(),!r||e[r]&&Os[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e})(t),e);else if(Zo.isObject(t)&&Zo.isIterable(t)){let r,n,i={};for(const e of t){if(!Zo.isArray(e))throw TypeError("Object iterator must return a key-value pair");i[n=e[0]]=(r=i[n])?Zo.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}o(i,e)}else null!=t&&i(e,t,r);return this}get(t,e){if(t=Rs(t)){const r=Zo.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Zo.isFunction(e))return e.call(this,t,r);if(Zo.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Rs(t)){const r=Zo.findKey(this,t);return!(!r||void 0===this[r]||e&&!xs(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function i(t){if(t=Rs(t)){const i=Zo.findKey(r,t);!i||e&&!xs(0,r[i],i,e)||(delete r[i],n=!0)}}return Zo.isArray(t)?t.forEach(i):i(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];t&&!xs(0,this[i],i,t,!0)||(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return Zo.forEach(this,(n,i)=>{const o=Zo.findKey(r,i);if(o)return e[o]=As(n),void delete e[i];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}(i):String(i).trim();s!==i&&delete e[i],e[s]=As(n),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Zo.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Zo.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=(this[js]=this[js]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Rs(t);e[n]||(!function(t,e){const r=Zo.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(r,t),e[n]=!0)}return Zo.isArray(t)?t.forEach(n):n(t),this}}ks.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Zo.reduceDescriptors(ks.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),Zo.freezeMethods(ks);var Ds=ks;function Ps(t,e){const r=this||Es,n=e||r,i=Ds.from(n.headers);let o=n.data;return Zo.forEach(t,function(t){o=t.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Ts(t){return!(!t||!t.__CANCEL__)}function Cs(t,e,r){Qo.call(this,null==t?"canceled":t,Qo.ERR_CANCELED,e,r),this.name="CanceledError"}function Ns(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new Qo("Request failed with status code "+r.status,[Qo.ERR_BAD_REQUEST,Qo.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}Zo.inherits(Cs,Qo,{__CANCEL__:!0});const Ls=(t,e,r=3)=>{let n=0;const i=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];i||(i=c),r[o]=a,n[o]=c;let l=s,f=0;for(;l!==o;)f+=r[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*f/h):void 0}}(50,250);return function(t,e){let r,n,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),t(...e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(r=t,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,c=i(a);n=o;t({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0})},r)},Fs=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},$s=t=>(...e)=>Zo.asap(()=>t(...e));var Ms=bs.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,bs.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(bs.origin),bs.navigator&&/(msie|trident)/i.test(bs.navigator.userAgent)):()=>!0,zs=bs.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const s=[t+"="+encodeURIComponent(e)];Zo.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Zo.isString(n)&&s.push("path="+n),Zo.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Us(t,e,r){let n=!function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}(e);return t&&(n||0==r)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Is=t=>t instanceof Ds?{...t}:t;function Bs(t,e){e=e||{};const r={};function n(t,e,r,n){return Zo.isPlainObject(t)&&Zo.isPlainObject(e)?Zo.merge.call({caseless:n},t,e):Zo.isPlainObject(e)?Zo.merge({},e):Zo.isArray(e)?e.slice():e}function i(t,e,r,i){return Zo.isUndefined(e)?Zo.isUndefined(t)?void 0:n(void 0,t,0,i):n(t,e,0,i)}function o(t,e){if(!Zo.isUndefined(e))return n(void 0,e)}function s(t,e){return Zo.isUndefined(e)?Zo.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,i,o){return o in e?n(r,i):o in t?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>i(Is(t),Is(e),0,!0)};return Zo.forEach(Object.keys({...t,...e}),function(n){const o=c[n]||i,s=o(t[n],e[n],n);Zo.isUndefined(s)&&o!==a||(r[n]=s)}),r}var Ws=t=>{const e=Bs({},t);let r,{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=Ds.from(a),e.url=fs(Us(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Zo.isFormData(n))if(bs.hasStandardBrowserEnv||bs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(bs.hasStandardBrowserEnv&&(i&&Zo.isFunction(i)&&(i=i(e)),i||!1!==i&&Ms(e.url))){const t=o&&s&&zs.read(s);t&&a.set(o,t)}return e};var qs="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,r){const n=Ws(t);let i=n.data;const o=Ds.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:h,onDownloadProgress:d}=n;function p(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function y(){if(!m)return;const n=Ds.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ns(function(t){e(t),p()},function(t){r(t),p()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:t,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new Qo("Request aborted",Qo.ECONNABORTED,t,m)),m=null)},m.onerror=function(){r(new Qo("Network Error",Qo.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ds;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new Qo(e,i.clarifyTimeoutError?Qo.ETIMEDOUT:Qo.ECONNABORTED,t,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&Zo.forEach(o.toJSON(),function(t,e){m.setRequestHeader(e,t)}),Zo.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),d&&([c,l]=Ls(d,!0),m.addEventListener("progress",c)),h&&m.upload&&([a,u]=Ls(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{m&&(r(!e||e.type?new Cs(null,t,m):e),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);g&&-1===bs.protocols.indexOf(g)?r(new Qo("Unsupported protocol "+g+":",Qo.ERR_BAD_REQUEST,t)):m.send(i||null)})};var Hs=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const i=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof Qo?e:new Cs(e instanceof Error?e.message:e))}};let o=e&&setTimeout(()=>{o=null,i(new Qo(`timeout ${e} of ms exceeded`,Qo.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)}),t=null)};t.forEach(t=>t.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>Zo.asap(s),a}};const Js=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,i=0;for(;i<r;)n=i+e,yield t.slice(i,n),i=n},Vs=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Ys=(t,e,r,n)=>{const i=async function*(t,e){for await(const r of Vs(t))yield*Js(r,e)}(t,e);let o,s=0,a=t=>{o||(o=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await i.next();if(e)return a(),void t.close();let o=n.byteLength;if(r){let t=s+=o;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),i.return())},{highWaterMark:2})},Ks="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Gs=Ks&&"function"==typeof ReadableStream,Xs=Ks&&("function"==typeof TextEncoder?(Zs=new TextEncoder,t=>Zs.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var Zs;const Qs=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},ta=Gs&&Qs(()=>{let t=!1;const e=new Request(bs.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ea=Gs&&Qs(()=>Zo.isReadableStream(new Response("").body)),ra={stream:ea&&(t=>t.body)};var na;Ks&&(na=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ra[t]&&(ra[t]=Zo.isFunction(na[t])?e=>e[t]():(e,r)=>{throw new Qo(`Response type '${t}' is not supported`,Qo.ERR_NOT_SUPPORT,r)})}));const ia=async(t,e)=>{const r=Zo.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(Zo.isBlob(t))return t.size;if(Zo.isSpecCompliantForm(t)){const e=new Request(bs.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Zo.isArrayBufferView(t)||Zo.isArrayBuffer(t)?t.byteLength:(Zo.isURLSearchParams(t)&&(t+=""),Zo.isString(t)?(await Xs(t)).byteLength:void 0)})(e):r};var oa=Ks&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:h}=Ws(t);u=u?(u+"").toLowerCase():"text";let d,p=Hs([i,o&&o.toAbortSignal()],s);const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(c&&ta&&"get"!==r&&"head"!==r&&0!==(y=await ia(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(Zo.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Fs(y,Ls($s(c)));n=Ys(r.body,65536,t,e)}}Zo.isString(f)||(f=f?"include":"omit");const i="credentials"in Request.prototype;d=new Request(e,{...h,signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:i?f:void 0});let o=await fetch(d,h);const s=ea&&("stream"===u||"response"===u);if(ea&&(a||s&&m)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=o[e]});const e=Zo.toFiniteNumber(o.headers.get("content-length")),[r,n]=a&&Fs(e,Ls($s(a),!0))||[];o=new Response(Ys(o.body,65536,r,()=>{n&&n(),m&&m()}),t)}u=u||"text";let g=await ra[Zo.findKey(ra,u)||"text"](o,t);return!s&&m&&m(),await new Promise((e,r)=>{Ns(e,r,{data:g,headers:Ds.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:d})})}catch(e){if(m&&m(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Qo("Network Error",Qo.ERR_NETWORK,t,d),{cause:e.cause||e});throw Qo.from(e,e&&e.code,t,d)}});const sa={http:null,xhr:qs,fetch:oa};Zo.forEach(sa,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const aa=t=>`- ${t}`,ca=t=>Zo.isFunction(t)||null===t||!1===t;var ua=t=>{t=Zo.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o<e;o++){let e;if(r=t[o],n=r,!ca(r)&&(n=sa[(e=String(r)).toLowerCase()],void 0===n))throw new Qo(`Unknown adapter '${e}'`);if(n)break;i[e||"#"+o]=n}if(!n){const t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new Qo("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(aa).join("\n"):" "+aa(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function la(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cs(null,t)}function fa(t){la(t),t.headers=Ds.from(t.headers),t.data=Ps.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ua(t.adapter||Es.adapter)(t).then(function(e){return la(t),e.data=Ps.call(t,t.transformResponse,e),e.headers=Ds.from(e.headers),e},function(e){return Ts(e)||(la(t),e&&e.response&&(e.response.data=Ps.call(t,t.transformResponse,e.response),e.response.headers=Ds.from(e.response.headers))),Promise.reject(e)})}const ha="1.11.0",da={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{da[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const pa={};da.transitional=function(t,e,r){function n(t,e){return"[Axios v"+ha+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,i,o)=>{if(!1===t)throw new Qo(n(i," has been removed"+(e?" in "+e:"")),Qo.ERR_DEPRECATED);return e&&!pa[i]&&(pa[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,i,o)}},da.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var ma={assertOptions:function(t,e,r){if("object"!=typeof t)throw new Qo("options must be an object",Qo.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],s=e[o];if(s){const e=t[o],r=void 0===e||s(e,o,t);if(!0!==r)throw new Qo("option "+o+" must be "+r,Qo.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Qo("Unknown option "+o,Qo.ERR_BAD_OPTION)}},validators:da};const ya=ma.validators;class ga{constructor(t){this.defaults=t||{},this.interceptors={request:new hs,response:new hs}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Bs(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:i}=e;void 0!==r&&ma.assertOptions(r,{silentJSONParsing:ya.transitional(ya.boolean),forcedJSONParsing:ya.transitional(ya.boolean),clarifyTimeoutError:ya.transitional(ya.boolean)},!1),null!=n&&(Zo.isFunction(n)?e.paramsSerializer={serialize:n}:ma.assertOptions(n,{encode:ya.function,serialize:ya.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ma.assertOptions(e,{baseUrl:ya.spelling("baseURL"),withXsrfToken:ya.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Zo.merge(i.common,i[e.method]);i&&Zo.forEach(["delete","get","head","post","put","patch","common"],t=>{delete i[t]}),e.headers=Ds.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))});const c=[];let u;this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l,f=0;if(!a){const t=[fa.bind(this),void 0];for(t.unshift(...s),t.push(...c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let h=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{u=fa.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return fs(Us((t=Bs(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}Zo.forEach(["delete","get","head","options"],function(t){ga.prototype[t]=function(e,r){return this.request(Bs(r||{},{method:t,url:e,data:(r||{}).data}))}}),Zo.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request(Bs(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ga.prototype[t]=e(),ga.prototype[t+"Form"]=e(!0)});var va=ga;class wa{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,i){r.reason||(r.reason=new Cs(t,n,i),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new wa(function(e){t=e}),cancel:t}}}var ba=wa;const _a={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_a).forEach(([t,e])=>{_a[e]=t});var Sa=_a;const Ea=function t(e){const r=new va(e),n=co(va.prototype.request,r);return Zo.extend(n,va.prototype,r,{allOwnKeys:!0}),Zo.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Bs(e,r))},n}(Es);Ea.Axios=va,Ea.CanceledError=Cs,Ea.CancelToken=ba,Ea.isCancel=Ts,Ea.VERSION=ha,Ea.toFormData=ss,Ea.AxiosError=Qo,Ea.Cancel=Ea.CanceledError,Ea.all=function(t){return Promise.all(t)},Ea.spread=function(t){return function(e){return t.apply(null,e)}},Ea.isAxiosError=function(t){return Zo.isObject(t)&&!0===t.isAxiosError},Ea.mergeConfig=Bs,Ea.AxiosHeaders=Ds,Ea.formToJSON=t=>_s(Zo.isHTMLForm(t)?new FormData(t):t),Ea.getAdapter=ua,Ea.HttpStatusCode=Sa,Ea.default=Ea;var Oa=Ea;let ja=async t=>{let e=null,r=await Oa.get(`https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001?Authorization=${t}`).catch(t=>{e=t});if(null!==e)return;let n=[...gt(r,"data.records.earthquake",[]),...gt(r,"data.records.Earthquake",[])];if(!Oe(i=n)||0===i.length||1===i.length&&io(i[0]))throw console.log("rEqsL",r),new Error("無法取得顯著有感地震之earthquake數據");var i;let o=[];return te(n,t=>{let e=gt(t,"earthquakeInfo.originTime",""),r=gt(t,"EarthquakeInfo.OriginTime",""),n=e||r;if(!ie(n))throw console.log("v",t),new Error(`無法取得originTime[${n}]`);let i=gt(t,"earthquakeInfo.magnitude.magnitudeType",""),s=gt(t,"EarthquakeInfo.EarthquakeMagnitude.MagnitudeType",""),a=i||s;if(!ie(a))throw console.log("v",t),new Error(`無法取得magnitudeType[${a}]`);let c=gt(t,"earthquakeInfo.magnitude.magnitudeValue",""),u=gt(t,"EarthquakeInfo.EarthquakeMagnitude.MagnitudeValue",""),l=c||u;if(!ue(l))throw console.log("v",t),new Error(`無法取得magnitudeValue[${l}]`);let f=gt(t,"ReportContent",""),h=l;h=oo(h);let d=Pi(n),p=gt(t,"EarthquakeNo","");p=oo(p);let m=ao(p,3),y=n,g=d.format("YYYY-MM-DDTHH:mm:ssZ"),v=d.format("YYYYMMDDHHmmss"),w=gt(t,"EarthquakeInfo.FocalDepth","");w=oo(w);let b=gt(t,"EarthquakeInfo.Epicenter.Location",""),_=gt(t,"EarthquakeInfo.Epicenter.EpicenterLongitude","");_=oo(_);let S=gt(t,"EarthquakeInfo.Epicenter.EpicenterLatitude","");S=oo(S);let E={id:p,tag:"",number:m,time:g,timeRec:y,timeTag:v,ml:h,depth:w,description:f,location:b,intensity:"",longitude:_,latitude:S,data:t};o.push(E)}),o};return async(e,r={})=>{let n=gt(r,"fdDwStorage");ie(n)||(n="./_dwStorage"),Ae(n)||Ne(n);let i=gt(r,"fdDwAttime");ie(i)||(i="./_dwAttime"),Ae(i)||Ne(i);let o=gt(r,"fdDwCurrent");ie(o)||(o="./_dwCurrent"),Ae(o)||Ne(o);let s=gt(r,"fdResult");ie(s)||(s="./_result"),Ae(s)||Ne(s);let a=gt(r,"fdTaskCpSrc");ie(a)||(a="./_taskCpSrc"),Ae(a)||Ne(a);let c=gt(r,"funDownloadEqs"),u=gt(r,"funDownload"),l=gt(r,"funGetCurrent"),f=gt(r,"funAdd"),h=gt(r,"funModify"),d=gt(r,"funRemove"),p=async()=>{let r=[];var s;oe(c)?(r=c(),se(r)&&(r=await r)):r=await ja(e),r=null==(s=r)?s:ee.call(s),Ce(i),yn(o,i);let a=(e=>{let r=Fe(e,1),n=[];return te(r,e=>{let r=t.readFileSync(e.path,"utf8"),i=JSON.parse(r);n.push(i)}),n})(i),u={};return te(a,t=>{u[t.id]=t}),await je(r,async e=>{let r=`${n}/${e.id}.json`;t.writeFileSync(r,JSON.stringify(e),"utf8");let o=await function(e,r={}){return ze(e,{fs:t,...r})}(r);if(le(u,e.id)){if(o!==u[e.id].hash){u[e.id].hash=o;let r=`${i}/${e.id}.json`;t.writeFileSync(r,JSON.stringify(u[e.id]),"utf8")}}else{u[e.id]={id:e.id,hash:o};let r=`${i}/${e.id}.json`;t.writeFileSync(r,JSON.stringify(u[e.id]),"utf8")}}),re(u)};oe(u)||(u=p);let m=async()=>{let e=Fe(o,1),r=[];return te(e,e=>{let n=t.readFileSync(e.path,"utf8"),i=JSON.parse(n);r.push(i)}),r};oe(l)||(l=m);let y=async t=>{let e=`${s}/${t.id}`;Ae(e)&&Le(e)};oe(d)||(d=y);let g=async t=>{let e=`${s}/${t.id}`;Ae(e)&&Ce(e),Te(`${n}/${t.id}.json`,`${e}/${t.id}.json`)};oe(f)||(f=g);let v=async t=>{let e=`${s}/${t.id}`;Ae(e)&&Ce(e),Te(`${n}/${t.id}.json`,`${e}/${t.id}.json`)};oe(h)||(h=v);let w={fdDwAttime:i,fdDwCurrent:o,fdResult:s,fdTaskCpSrc:a,funDownload:u,funGetCurrent:l,funRemove:d,funAdd:f,funModify:h};return await no(w)}});
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs"),require("path"),require("xxhash-wasm"),require("events"),require("chokidar"),require("url"),require("pino")):"function"==typeof define&&define.amd?define(["fs","path","xxhash-wasm","events","chokidar","url","pino"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["w-dwdata-tweqod"]=t(e.fs,e.path,e["xxhash-wasm"],e.events,e.chokidar,e.url,e.pino)}(this,function(e,t,r,n,o,i,s){"use strict";var a="undefined"!=typeof document?document.currentScript:null,c=Array.isArray,u="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,l=u||f||Function("return this")(),d=l.Symbol,h=Object.prototype,p=h.hasOwnProperty,y=h.toString,m=d?d.toStringTag:void 0;var g=Object.prototype.toString;var v=d?d.toStringTag:void 0;function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=p.call(e,m),r=e[m];try{e[m]=void 0;var n=!0}catch(e){}var o=y.call(e);return n&&(t?e[m]=r:delete e[m]),o}(e):function(e){return g.call(e)}(e)}function w(e){return null!=e&&"object"==typeof e}function S(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==b(e)}var _=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/;function j(e,t){if(c(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!S(e))||(O.test(e)||!_.test(e)||null!=t&&e in Object(t))}function E(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function R(e){if(!E(e))return!1;var t=b(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var A,x=l["__core-js_shared__"],T=(A=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"";var k=Function.prototype.toString;function C(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $=/^\[object .+?Constructor\]$/,D=Function.prototype,N=Object.prototype,P=D.toString,M=N.hasOwnProperty,F=RegExp("^"+P.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(e){return!(!E(e)||(t=e,T&&T in t))&&(R(e)?F:$).test(C(e));var t}function U(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return L(r)?r:void 0}var B=U(Object,"create");var q=Object.prototype.hasOwnProperty;var I=Object.prototype.hasOwnProperty;function z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function H(e,t){return e===t||e!=e&&t!=t}function J(e,t){for(var r=e.length;r--;)if(H(e[r][0],t))return r;return-1}z.prototype.clear=function(){this.__data__=B?B(null):{},this.size=0},z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},z.prototype.get=function(e){var t=this.__data__;if(B){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return q.call(t,e)?t[e]:void 0},z.prototype.has=function(e){var t=this.__data__;return B?void 0!==t[e]:I.call(t,e)},z.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=B&&void 0===t?"__lodash_hash_undefined__":t,this};var W=Array.prototype.splice;function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,r=J(t,e);return!(r<0)&&(r==t.length-1?t.pop():W.call(t,r,1),--this.size,!0)},Y.prototype.get=function(e){var t=this.__data__,r=J(t,e);return r<0?void 0:t[r][1]},Y.prototype.has=function(e){return J(this.__data__,e)>-1},Y.prototype.set=function(e,t){var r=this.__data__,n=J(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var V=U(l,"Map");function K(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function G(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}G.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(V||Y),string:new z}},G.prototype.delete=function(e){var t=K(this,e).delete(e);return this.size-=t?1:0,t},G.prototype.get=function(e){return K(this,e).get(e)},G.prototype.has=function(e){return K(this,e).has(e)},G.prototype.set=function(e,t){var r=K(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function X(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(X.Cache||G),r}X.Cache=G;var Z,Q,ee,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/\\(\\)?/g,ne=(Z=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,function(e,r,n,o){t.push(n?o.replace(re,"$1"):r||e)}),t},Q=X(Z,function(e){return 500===ee.size&&ee.clear(),e}),ee=Q.cache,Q),oe=ne;function ie(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var se=d?d.prototype:void 0,ae=se?se.toString:void 0;function ce(e){if("string"==typeof e)return e;if(c(e))return ie(e,ce)+"";if(S(e))return ae?ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ue(e){return null==e?"":ce(e)}function fe(e,t){return c(e)?e:j(e,t)?[e]:oe(ue(e))}function le(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function de(e,t){for(var r=0,n=(t=fe(t,e)).length;null!=e&&r<n;)e=e[le(t[r++])];return r&&r==n?e:void 0}function he(e,t,r){var n=null==e?void 0:de(e,t);return void 0===n?r:n}function pe(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}var ye,me=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),s=i.length;s--;){var a=i[ye?s:++n];if(!1===t(o[a],a,o))break}return e};function ge(e){return w(e)&&"[object Arguments]"==b(e)}var ve=Object.prototype,be=ve.hasOwnProperty,we=ve.propertyIsEnumerable,Se=ge(function(){return arguments}())?ge:function(e){return w(e)&&be.call(e,"callee")&&!we.call(e,"callee")},_e=Se;var Oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=Oe&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=je&&je.exports===Oe?l.Buffer:void 0,Re=(Ee?Ee.isBuffer:void 0)||function(){return!1},Ae=/^(?:0|[1-9]\d*)$/;function xe(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ae.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var ke={};ke["[object Float32Array]"]=ke["[object Float64Array]"]=ke["[object Int8Array]"]=ke["[object Int16Array]"]=ke["[object Int32Array]"]=ke["[object Uint8Array]"]=ke["[object Uint8ClampedArray]"]=ke["[object Uint16Array]"]=ke["[object Uint32Array]"]=!0,ke["[object Arguments]"]=ke["[object Array]"]=ke["[object ArrayBuffer]"]=ke["[object Boolean]"]=ke["[object DataView]"]=ke["[object Date]"]=ke["[object Error]"]=ke["[object Function]"]=ke["[object Map]"]=ke["[object Number]"]=ke["[object Object]"]=ke["[object RegExp]"]=ke["[object Set]"]=ke["[object String]"]=ke["[object WeakMap]"]=!1;var Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,De=$e&&$e.exports===Ce&&u.process,Ne=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||De&&De.binding&&De.binding("util")}catch(e){}}(),Pe=Ne&&Ne.isTypedArray,Me=Pe?function(e){return function(t){return e(t)}}(Pe):function(e){return w(e)&&Te(e.length)&&!!ke[b(e)]},Fe=Me,Le=Object.prototype.hasOwnProperty;function Ue(e,t){var r=c(e),n=!r&&_e(e),o=!r&&!n&&Re(e),i=!r&&!n&&!o&&Fe(e),s=r||n||o||i,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=a.length;for(var f in e)!t&&!Le.call(e,f)||s&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||xe(f,u))||a.push(f);return a}var Be=Object.prototype;function qe(e,t){return function(r){return e(t(r))}}var Ie=qe(Object.keys,Object),ze=Object.prototype.hasOwnProperty;function He(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Be))return Ie(e);var t,r,n=[];for(var o in Object(e))ze.call(e,o)&&"constructor"!=o&&n.push(o);return n}function Je(e){return null!=e&&Te(e.length)&&!R(e)}function We(e){return Je(e)?Ue(e):He(e)}var Ye=function(e,t){return function(r,n){if(null==r)return r;if(!Je(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&!1!==n(s[i],i,s););return r}}(function(e,t){return e&&me(e,t,We)}),Ve=Ye;function Ke(e){return e}function Ge(e,t){var r;return(c(e)?pe:Ve)(e,"function"==typeof(r=t)?r:Ke)}var Xe=Array.prototype.reverse;function Ze(e){return null==e?[]:function(e,t){return ie(t,function(t){return e[t]})}(e,We(e))}function Qe(e){return"[object String]"===Object.prototype.toString.call(e)}function et(e){return!(!Qe(e)||""===e)}function tt(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function rt(e){let t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r,t)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}function nt(e){return"[object Object]"===Object.prototype.toString.call(e)}function ot(e){return e!=e}function it(e){let t=!1;if(et(e))t=!isNaN(Number(e));else if(function(e){return"[object Number]"===Object.prototype.toString.call(e)}(e)){if(ot(e))return!1;t=!0}return t}function st(e,t){return!!nt(e)&&(!(!et(t)&&!it(t))&&t in e)}var at=/\s/;var ct=/^\s+/;function ut(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&at.test(e.charAt(t)););return t}(e)+1).replace(ct,""):e}var ft=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,dt=/^0o[0-7]+$/i,ht=parseInt;function pt(e){if("number"==typeof e)return e;if(S(e))return NaN;if(E(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ut(e);var r=lt.test(e);return r||dt.test(e)?ht(e.slice(2),r?2:8):ft.test(e)?NaN:+e}var yt=1/0;function mt(e){return e?(e=pt(e))===yt||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gt(e){var t=mt(e),r=t%1;return t==t?r?t-r:t:0}function vt(e,t,r){var n=null==e?0:e.length;return n?function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(e,(t=r||void 0===t?1:gt(t))<0?0:t,n):[]}function bt(){let e,t,r=new Promise(function(){e=arguments[0],t=arguments[1]});return r.resolve=e,r.reject=t,r}function wt(e){return"[object Array]"===Object.prototype.toString.call(e)}function St(e,t){let r=bt();if(!wt(e)&&!nt(e))return r.reject("rs is not an array or object"),r;let n=!1;if(nt(e)){n=!0;let t=[];Ge(e,(e,r)=>{t.push({k:r,v:e})}),e=t}tt(t)||(t=function(e){return e});let o=-1,i=[];return e.reduce(function(e,r){return e.then(function(e){i.push(e),o+=1;let s=o,a=r;return n&&(s=r.k,a=r.v),tt(t)?t(a,s):a})},Promise.resolve()).then(function(e){i.push(e),i=vt(i),r.resolve(i)}).catch(function(e){r.reject(e)}),r}function _t(e,t={}){let r=he(t,"fs");if(!r.existsSync(e))return!1;let n=r.lstatSync(e);return!n.isFile()&&!n.isSymbolicLink()}function Ot(t){return _t(t,{fs:e})}function jt(e){return!0===(t=e)||!1===t||w(t)&&"[object Boolean]"==b(t);var t}function Et(e,t={}){let r=he(t,"fs");return!!r.existsSync(e)&&(!r.lstatSync(e).isDirectory()&&!r.lstatSync(e).isSymbolicLink())}function Rt(e,t={}){let r=he(t,"fs");if(_t(e,{fs:r}))return{success:"input folder is already exists: "+e};if(r.existsSync(e))return{error:"input path already exists: "+e};try{r.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function At(e,t,r={}){let n=he(r,"path"),o=he(r,"fs"),i=he(r,"useSync","");jt(i)||(i=!0);let s="";return s=i?function(e,t,r={}){let n=he(r,"path"),o=he(r,"fs");if(!Et(e,{fs:o}))return{error:`fpSrc[${e}] is not a file`};try{Rt(n.dirname(t),{fs:o}),o.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:n,fs:o}):async function(e,t,r={}){let n=he(r,"path"),o=he(r,"fs");if(!Et(e,{fs:o}))return{error:`fpSrc[${e}] is not a file`};let i=null;return await(async(e,t)=>{Rt(n.dirname(t),{fs:o}),await new Promise((r,n)=>{let i=o.createReadStream(e),s=o.createWriteStream(t);i.on("error",n),s.on("error",n),s.on("finish",r),i.pipe(s)})})(e,t).then(()=>{i={success:"done: "+t}}).catch(e=>{i={error:e}}),i}(e,t,{path:n,fs:o}),s}function xt(r,n,o={}){return At(r,n,{path:t,fs:e,...o})}function Tt(r){return function(e,t={}){let r=he(t,"path"),n=he(t,"fs");if(!n.existsSync(e)){let t=Rt(e,{fs:n});return t.error?t.error:{success:"done: "+e}}if(!_t(e,{fs:n}))return{error:"input path is not a folder"};try{let t=n.readdirSync(e);for(let o of t){let t=r.join(e,o);n.statSync(t).isDirectory()?n.rmSync(t,{recursive:!0,force:!0}):n.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}(r,{path:t,fs:e})}function kt(t){return Rt(t,{fs:e})}function Ct(t){return function(e,t={}){let r=he(t,"fs");if(!r.existsSync(e))return{success:"folder does not exist: "+e};if(!_t(e,{fs:r}))return{error:"input path is not a folder: "+e};try{r.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}(t,{fs:e})}function $t(r,n=1){return function(e,t=1,r={}){let n=1,o=he(r,"path"),i=he(r,"fs");if(!_t(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);return function e(r){let s=[];return _t(r,{fs:i})?(Ge(i.readdirSync(r),function(a){let c=o.resolve(r,a),u=null;try{u=i.statSync(c)}catch(e){}u&&u.isDirectory()?(s.push({isFolder:!0,level:n,path:c,name:o.basename(c)}),n+=1,(n<=t||null===t)&&(s=s.concat(e(c))),n-=1):s.push({isFolder:!1,level:n,path:c,name:o.basename(c)})}),s):s}(e)}(r,n,{path:t,fs:e})}function Dt(e){if(!it(e))return 0;return mt(e)}function Nt(t,n={}){return async function(e,t={}){let n=he(t,"fs"),o=he(t,"chunkSize");if(it(o)||(o=67108864),o=Dt(o),!Et(e,{fs:n}))return Promise.reject("fp is not a file");let i=bt();try{let{create64:t}=await r(),s=t(),a=n.createReadStream(e,{highWaterMark:o});a.on("data",e=>{s.update(e)}),a.on("end",()=>{let e=s.digest().toString(16).padStart(16,"0");i.resolve(e)}),a.on("error",i.reject)}catch(e){i.reject(e.toString())}return i}(t,{fs:e,...n})}var Pt=U(l,"DataView"),Mt=U(l,"Promise"),Ft=U(l,"Set"),Lt=U(l,"WeakMap"),Ut="[object Map]",Bt="[object Promise]",qt="[object Set]",It="[object WeakMap]",zt="[object DataView]",Ht=C(Pt),Jt=C(V),Wt=C(Mt),Yt=C(Ft),Vt=C(Lt),Kt=b;(Pt&&Kt(new Pt(new ArrayBuffer(1)))!=zt||V&&Kt(new V)!=Ut||Mt&&Kt(Mt.resolve())!=Bt||Ft&&Kt(new Ft)!=qt||Lt&&Kt(new Lt)!=It)&&(Kt=function(e){var t=b(e),r="[object Object]"==t?e.constructor:void 0,n=r?C(r):"";if(n)switch(n){case Ht:return zt;case Jt:return Ut;case Wt:return Bt;case Yt:return qt;case Vt:return It}return t});var Gt=Kt;function Xt(e){return function(t){return null==t?void 0:t[e]}}var Zt=Xt("length"),Qt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var er="\\ud800-\\udfff",tr="["+er+"]",rr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nr="\\ud83c[\\udffb-\\udfff]",or="[^"+er+"]",ir="(?:\\ud83c[\\udde6-\\uddff]){2}",sr="[\\ud800-\\udbff][\\udc00-\\udfff]",ar="(?:"+rr+"|"+nr+")"+"?",cr="[\\ufe0e\\ufe0f]?",ur=cr+ar+("(?:\\u200d(?:"+[or,ir,sr].join("|")+")"+cr+ar+")*"),fr="(?:"+[or+rr+"?",rr,ir,sr,tr].join("|")+")",lr=RegExp(nr+"(?="+nr+")|"+fr+ur,"g");function dr(e){return function(e){return Qt.test(e)}(e)?function(e){for(var t=lr.lastIndex=0;lr.test(e);)++t;return t}(e):Zt(e)}function hr(e){if(null==e)return 0;if(Je(e))return"string"==typeof(t=e)||!c(t)&&w(t)&&"[object String]"==b(t)?dr(e):e.length;var t,r=Gt(e);return"[object Map]"==r||"[object Set]"==r?e.size:He(e).length}function pr(e){if(nt(e)){for(let t in e)return!0;return!1}return!1}var yr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var vr={exports:{}};var br,wr={exports:{}},Sr=gr(Object.freeze({__proto__:null,default:{}}));function _r(){return br||(br=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==yr&&yr.crypto&&(r=yr.crypto),!r)try{r=Sr}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),u=i.enc={},f=u.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},l=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,f=e.min(4*u,i);if(u){for(var l=0;l<u;l+=s)this._doProcessBlock(o,l);r=o.splice(0,u),n.sigBytes-=f}return new c.init(r,f)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=h.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new p.HMAC.init(e,r).finalize(t)}}});var p=i.algo={};return i}(Math),t)}(wr)),wr.exports}!function(e){e.exports=_r().enc.Utf8}(vr);var Or=mr(vr.exports),jr={exports:{}};!function(e){var t;e.exports=(t=_r(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(jr);var Er=mr(jr.exports);function Rr(e){if(!et(e))return"";let t=Or.parse(e);return Er.stringify(t)}function Ar(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function xr(e,t){var r=[];return Ve(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}function Tr(e){var t=this.__data__=new Y(e);this.size=t.size}Tr.prototype.clear=function(){this.__data__=new Y,this.size=0},Tr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Tr.prototype.get=function(e){return this.__data__.get(e)},Tr.prototype.has=function(e){return this.__data__.has(e)},Tr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Y){var n=r.__data__;if(!V||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new G(n)}return r.set(e,t),this.size=r.size,this};function kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new G;++t<r;)this.add(e[t])}function Cr(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function $r(e,t){return e.has(t)}kr.prototype.add=kr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},kr.prototype.has=function(e){return this.__data__.has(e)};function Dr(e,t,r,n,o,i){var s=1&r,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var l=-1,d=!0,h=2&r?new kr:void 0;for(i.set(e,t),i.set(t,e);++l<a;){var p=e[l],y=t[l];if(n)var m=s?n(y,p,l,t,e,i):n(p,y,l,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Cr(t,function(e,t){if(!$r(h,t)&&(p===e||o(p,e,r,n,i)))return h.push(t)})){d=!1;break}}else if(p!==y&&!o(p,y,r,n,i)){d=!1;break}}return i.delete(e),i.delete(t),d}var Nr=l.Uint8Array;function Pr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Mr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Fr=d?d.prototype:void 0,Lr=Fr?Fr.valueOf:void 0;var Ur=Object.prototype.propertyIsEnumerable,Br=Object.getOwnPropertySymbols,qr=Br?function(e){return null==e?[]:(e=Object(e),Ar(Br(e),function(t){return Ur.call(e,t)}))}:function(){return[]};function Ir(e){return function(e,t,r){var n=t(e);return c(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,We,qr)}var zr=Object.prototype.hasOwnProperty;var Hr="[object Arguments]",Jr="[object Array]",Wr="[object Object]",Yr=Object.prototype.hasOwnProperty;function Vr(e,t,r,n,o,i){var s=c(e),a=c(t),u=s?Jr:Gt(e),f=a?Jr:Gt(t),l=(u=u==Hr?Wr:u)==Wr,d=(f=f==Hr?Wr:f)==Wr,h=u==f;if(h&&Re(e)){if(!Re(t))return!1;s=!0,l=!1}if(h&&!l)return i||(i=new Tr),s||Fe(e)?Dr(e,t,r,n,o,i):function(e,t,r,n,o,i,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Nr(e),new Nr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Pr;case"[object Set]":var c=1&n;if(a||(a=Mr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var f=Dr(a(e),a(t),n,o,i,s);return s.delete(e),f;case"[object Symbol]":if(Lr)return Lr.call(e)==Lr.call(t)}return!1}(e,t,u,r,n,o,i);if(!(1&r)){var p=l&&Yr.call(e,"__wrapped__"),y=d&&Yr.call(t,"__wrapped__");if(p||y){var m=p?e.value():e,g=y?t.value():t;return i||(i=new Tr),o(m,g,r,n,i)}}return!!h&&(i||(i=new Tr),function(e,t,r,n,o,i){var s=1&r,a=Ir(e),c=a.length;if(c!=Ir(t).length&&!s)return!1;for(var u=c;u--;){var f=a[u];if(!(s?f in t:zr.call(t,f)))return!1}var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=s;++u<c;){var y=e[f=a[u]],m=t[f];if(n)var g=s?n(m,y,f,t,e,i):n(y,m,f,e,t,i);if(!(void 0===g?y===m||o(y,m,r,n,i):g)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,r,n,o,i))}function Kr(e,t,r,n,o){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:Vr(e,t,r,n,Kr,o))}function Gr(e){return e==e&&!E(e)}function Xr(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function Zr(e){var t=function(e){for(var t=We(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Gr(o)]}return t}(e);return 1==t.length&&t[0][2]?Xr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,i=o,s=!n;if(null==e)return!i;for(e=Object(e);o--;){var a=r[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var c=(a=r[o])[0],u=e[c],f=a[1];if(s&&a[2]){if(void 0===u&&!(c in e))return!1}else{var l=new Tr;if(n)var d=n(u,f,c,e,t,l);if(!(void 0===d?Kr(f,u,3,n,l):d))return!1}}return!0}(r,e,t)}}function Qr(e,t){return null!=e&&t in Object(e)}function en(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=fe(t,e)).length,i=!1;++n<o;){var s=le(t[n]);if(!(i=null!=e&&r(e,s)))break;e=e[s]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Te(o)&&xe(s,o)&&(c(e)||_e(e))}(e,t,Qr)}function tn(e){return j(e)?Xt(le(e)):function(e){return function(t){return de(t,e)}}(e)}function rn(e){return"function"==typeof e?e:null==e?Ke:"object"==typeof e?c(e)?function(e,t){return j(e)&&Gr(t)?Xr(le(e),t):function(r){var n=he(r,e);return void 0===n&&n===t?en(r,e):Kr(t,n,3)}}(e[0],e[1]):Zr(e):tn(e)}function nn(e,t){return(c(e)?Ar:xr)(e,rn(t))}function on(e,t,r,n={}){let o=he(n,"withInfor");jt(o)||(o=!0);let i={del:[],add:[],same:[],diff:[]};if(!et(r))return console.log("invalid key"),o&&(i.infor={}),i;wt(e)||(e=[e]),wt(t)||(t=[t]),e=nn(e,e=>st(e,r)),t=nn(t,e=>st(e,r));let s=new Map(t.map(e=>[e[r],e]));for(let t of e){let e=s.get(t[r]);if(e){JSON.stringify(t)===JSON.stringify(e)?i.same.push(e):i.diff.push(e),s.delete(t[r])}else i.del.push(t)}if(i.add=Array.from(s.values()),o){let e={};for(let t of i.del)e[t[r]]="del";for(let t of i.add)e[t[r]]="add";for(let t of i.diff)e[t[r]]="diff";for(let t of i.same)e[t[r]]="same";i.infor=e}return i}var sn={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,u,f=this._events[a],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,n),!0;case 4:return f.fn.call(f.context,t,n,o),!0;case 5:return f.fn.call(f.context,t,n,o,i),!0;case 6:return f.fn.call(f.context,t,n,o,i,s),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];f.fn.apply(f.context,c)}else{var d,h=f.length;for(u=0;u<h;u++)switch(f[u].once&&this.removeListener(e,f[u].fn,void 0,!0),l){case 1:f[u].fn.call(f[u].context);break;case 2:f[u].fn.call(f[u].context,t);break;case 3:f[u].fn.call(f[u].context,t,n);break;case 4:f[u].fn.call(f[u].context,t,n,o);break;default:if(!c)for(d=1,c=new Array(l-1);d<l;d++)c[d-1]=arguments[d];f[u].fn.apply(f[u].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],f=a.length;c<f;c++)(a[c].fn!==t||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a}(sn);var an=mr(sn.exports);function cn(){return new an}var un=qe(Object.getPrototypeOf,Object),fn=Function.prototype,ln=Object.prototype,dn=fn.toString,hn=ln.hasOwnProperty,pn=dn.call(Object);function yn(e){if(!w(e))return!1;var t=b(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!w(e)||"[object Object]"!=b(e))return!1;var t=un(e);if(null===t)return!0;var r=hn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&dn.call(r)==pn}(e)}function mn(e){if(!et(e)&&!it(e)&&!S(e))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function gn(e){let t="";if(yn(e))t=e.message;else{if(Qe(e))return e;if(nt(e))return st(e,"message")?e.message:JSON.stringify(e);if(wt(e))return JSON.stringify(e);t=mn(e)}return t}function vn(e,t,r={}){let n=he(r,"path"),o=he(r,"fs");if(!_t(e,{fs:o}))return{error:`fpSrc[${e}] is not a folder`};try{o.readdirSync(e).forEach(function(r){let i=n.resolve(e,r),s=n.resolve(t,r),a=o.lstatSync(i);if(a.isDirectory())Rt(s,{fs:o}),vn(i,s,{path:n,fs:o});else if(a.isSymbolicLink()){let e=o.readlinkSync(i);o.symlinkSync(e,s)}else Rt(n.dirname(s),{fs:o}),o.copyFileSync(i,s)})}catch(e){return{error:e}}return{success:"done: "+t}}function bn(e,t,r={}){let n=he(r,"path"),o=he(r,"fs"),i=he(r,"useSync","");jt(i)||(i=!0);let s="";return s=i?vn(e,t,{path:n,fs:o}):async function(e,t,r={}){let n=he(r,"path"),o=he(r,"fs");if(!_t(e,{fs:o}))return{error:`fpSrc[${e}] is not a folder`};let i=async(e,t)=>{let r=o.readdirSync(e);for(let s of r){let r=n.join(e,s),a=n.join(t,s),c=o.lstatSync(r);if(c.isDirectory())Rt(a,{fs:o}),await i(r,a);else if(c.isSymbolicLink()){let e=o.readlinkSync(r);o.symlinkSync(e,a)}else Rt(n.dirname(a),{fs:o}),await new Promise((e,t)=>{let n=o.createReadStream(r),i=o.createWriteStream(a);n.on("error",t),i.on("error",t),i.on("finish",e),n.pipe(i)})}},s=null;return await i(e,t).then(()=>{s={success:"done: "+t}}).catch(e=>{s={error:e}}),s}(e,t,{path:n,fs:o}),s}function wn(r,n,o={}){return bn(r,n,{path:t,fs:e,...o})}function Sn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function _n(e){return!!it(e)&&(e=Dt(e),"number"==typeof(t=e)&&t==gt(t));var t}var On=l.isFinite,jn=Math.min;var En=function(e){var t=Math[e];return function(e,r){if(e=pt(e),(r=null==r?0:jn(gt(r),292))&&On(e)){var n=(ue(e)+"e").split("e");return+((n=(ue(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}("round"),Rn=En;function An(e){if(!it(e))return 0;e=Dt(e);let t=Rn(e);return"0"===String(t)?0:t}function xn(e){if(!_n(e))return!1;return An(e)>0}function Tn(e=300){return new function(e){let t=[],r=null,n=null;return xn(e)||(e=300),e=An(e),function(o,...i){tt(o)?(n=Date.now(),t.push({func:o,input:i}),null===r&&(r=setInterval(()=>{if(Date.now()-n>e){let e=t.pop();t=[],e.func(...e.input)}0===t.length&&(clearInterval(r),r=null)},10))):console.log("func is not a function")}}(e)}function kn(r,i={}){let s=he(i,"polling");jt(s)||(s=!1);let a=he(i,"timeInterval");xn(a)||(a=100),a=An(a);let c=he(i,"timeBinaryInterval");xn(c)||(c=300),c=An(c);let u=new n.EventEmitter,f=r,l=null,d=setInterval(()=>{null===l&&(Et(f,{fs:e})&&(l=o.watch(f,{usePolling:s,interval:a,binaryInterval:c,awaitWriteFinish:!0}),l.on("all",(e,r,n)=>{r=t.resolve(r),u.emit("change",{type:e,fp:r,stats:n})})))},a);return u.clear=()=>{(()=>{if(null!==l){try{l.unwatch(f)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}})(),clearInterval(d)},u}function Cn(t,r,n={}){Ot(t)||kt(t),Ot(r)||kt(r);let o=`${t}/fpHash.json`,i=`${r}/fpHash.json`,s=t=>{let r={};try{r=function(e){if(!et(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}(e.readFileSync(t,"utf8"))}catch(e){}return r},a=(t,r)=>{try{let n=function(e,t=!1){if(Sn(e))return"";let r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}(r);e.writeFileSync(t,n,"utf8")}catch(e){}},c=(e,t)=>he(s(e),t,""),u=(e,t,r)=>{let n=s(e);n[t]=r,a(e,n)},f=(e,t)=>{let r=s(e);st(r,t)&&delete r[t],a(e,r)},l=()=>s(o),d=e=>a(o,e),h=e=>c(o,e),p=()=>s(i),y=e=>a(i,e),m=e=>c(i,e),g=(e,t)=>u(i,e,t),v=e=>f(i,e),b=e=>{let t=[];return Ge(e,(e,r)=>{t.push({fp:r,hash:e})}),t};return{buildSrc:()=>{let e=cn();return e.set=(t,r)=>{((e,t)=>{u(o,e,t)})(t,r),e.emit("set",{type:"set",fp:t,hash:r})},e.get=h,e.remove=t=>{(e=>{f(o,e)})(t),e.emit("remove",{type:"remove",fp:t})},e.readKp=l,e.writeKp=d,e},buildTar:()=>{let e=cn(),t=Tn(300),r=kn(o);return r.on("change",r=>{t(()=>{(async()=>{let t=bt(),r=l();if(!pr(r))return t.resolve("no src"),t;let n=p(),o=b(r),i=on(b(n),o,"fp",{withInfor:!1}),s=bt();return s.then(e=>{y(r)}).catch(()=>{}),e.emit("change",{kpSrc:r,kpTar:n,kpCmp:i,pm:s}),t})().catch(()=>{})})}),e.set=g,e.get=m,e.remove=v,e.readKp=p,e.writeKp=y,e.clear=r.clear,e}}}var $n={exports:{}};!function(e){e.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",c="week",u="month",f="quarter",l="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,u),i=r-o<0,s=t.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-s:s-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:c,d:a,D:d,h:s,m:i,s:o,ms:n,Q:f}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=m;var S="$isDayjsObject",_=function(e){return e instanceof R||!(!e||!e[S])},O=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),r&&(w[i]=r,o=i);var s=t.split("-");if(!o&&s.length>1)return e(s[0])}else{var a=t.name;w[a]=t,o=a}return!n&&o&&(b=o),o||!n&&b},j=function(e,t){if(_(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new R(r)},E=v;E.l=O,E.i=_,E.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var r=j(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return j(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<j(e)},g.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,n=!!E.u(t)||t,f=E.p(e),h=function(e,t){var o=E.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?o:o.endOf(a)},p=function(e,t){return E.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},y=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case l:return n?h(1,0):h(31,11);case u:return n?h(1,m):h(0,m+1);case c:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return h(n?g-w:g+(6-w),m);case a:case d:return p(v+"Hours",0);case s:return p(v+"Minutes",1);case i:return p(v+"Seconds",2);case o:return p(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var r,c=E.p(e),f="set"+(this.$u?"UTC":""),h=(r={},r[a]=f+"Date",r[d]=f+"Date",r[u]=f+"Month",r[l]=f+"FullYear",r[s]=f+"Hours",r[i]=f+"Minutes",r[o]=f+"Seconds",r[n]=f+"Milliseconds",r)[c],p=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var y=this.clone().set(d,1);y.$d[h](p),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(n,f){var d,h=this;n=Number(n);var p=E.p(f),y=function(e){var t=j(h);return E.w(t.date(t.date()+Math.round(e*n)),h)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return y(1);if(p===c)return y(7);var m=(d={},d[i]=t,d[s]=r,d[o]=e,d)[p]||1,g=this.$d.getTime()+n*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,s=this.$m,a=this.$M,c=r.weekdays,u=r.months,f=r.meridiem,l=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},p=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return a+1;case"MM":return E.s(a+1,2,"0");case"MMM":return l(r.monthsShort,a,u,3);case"MMMM":return l(u,a);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(r.weekdaysMin,t.$W,c,2);case"ddd":return l(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,s,!0);case"A":return p(i,s,!1);case"m":return String(s);case"mm":return E.s(s,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,y=this,m=E.p(d),g=j(n),v=(g.utcOffset()-this.utcOffset())*t,b=this-g,w=function(){return E.m(y,g)};switch(m){case l:p=w()/12;break;case u:p=w();break;case f:p=w()/3;break;case c:p=(b-v)/6048e5;break;case a:p=(b-v)/864e5;break;case s:p=b/r;break;case i:p=b/t;break;case o:p=b/e;break;default:p=b}return h?p:E.a(p)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=O(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),A=R.prototype;return j.prototype=A,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",l],["$D",d]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,R,j),e.$i=!0),j},j.locale=O,j.isDayjs=_,j.unix=function(e){return j(1e3*e)},j.en=w[b],j.Ls=w,j.p={},j}()}($n);var Dn=mr($n.exports);let Nn=i.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(Nn).href:"undefined"==typeof document?location.href:a&&"SCRIPT"===a.tagName.toUpperCase()&&a.src||new URL("w-dwdata-tweqod.umd.js",document.baseURI).href),Pn=t.dirname(Nn);let Mn=function(e={}){let r=he(e,"fdLog");et(r)||(r="./_logs");let n=he(e,"interval");"day"!==n&&"hr"!==n&&(n="day");let o=s.transport({targets:[{level:"info",target:t.resolve(Pn,"./formatter.mjs"),options:{interval:n,logDir:r}}]});return s(o)}({fdLog:"./_logs",interval:"hr"}),Fn=async(e={})=>{let t=he(e,"keyId");et(t)||(t="id");let r=he(e,"fdDwAttime");et(r)||(r="./_dwAttime"),Ot(r)||kt(r);let n=he(e,"fdDwCurrent");et(n)||(n="./_dwCurrent"),Ot(n)||kt(n);let o=he(e,"fdResult");et(o)||(o="./_result"),Ot(o)||kt(o);let i=he(e,"fdTaskCpSrc");et(i)||(i="./_taskCpSrc"),Ot(i)||kt(i);let s=he(e,"funDownload");if(!tt(s))throw new Error("invalid funDownload");let a=he(e,"funGetCurrent");if(!tt(a))throw new Error("invalid funGetCurrent");let c=he(e,"funAdd");if(!tt(c))throw new Error("invalid funAdd");let u=he(e,"funModify");if(!tt(u))throw new Error("invalid funModify");let f=he(e,"funRemove");if(!tt(f))throw new Error("invalid funRemove");let l=cn(),d={info:e=>{Mn.info(e),l.emit("change",{type:"info",...e})},error:e=>{Mn.error(e),l.emit("change",{type:"error",...e})}};return(async()=>{await function(e=10){it(e)||(e=10);let t=bt();return setTimeout(function(){t.resolve()},e),t}(1);let e=Dn(),o=()=>{let t=Dn(),r=t.diff(e,"second");return{timeRunStart:e.format("YYYY-MM-DDTHH:mm:ssZ"),timeRunEnd:t.format("YYYY-MM-DDTHH:mm:ssZ"),timeRunSpent:`${r}s`}};d.info({event:"start",msg:"running..."});let l="",h=Cn(i,i).buildSrc(),p=[];try{d.info({event:"proc-callfun-download",msg:"start..."});let e=s();rt(e)&&(e=await e),d.info({event:"proc-callfun-download",msg:"done"}),p=e}catch(e){console.log(e),d.error({event:"proc-callfun-download",msg:gn(e)}),l="error at proc-callfun-download"}if(et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});let y=[];try{d.info({event:"proc-callfun-getCurrent",msg:"start..."});let e=a();rt(e)&&(e=await e),d.info({event:"proc-callfun-getCurrent",msg:"done"}),y=e}catch(e){console.log(e),d.error({event:"proc-callfun-getCurrent",msg:gn(e)}),l="error at proc-callfun-getCurrent"}if(et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});if(0===hr(p))return console.log("invalid data, task canceled"),void d.info({event:"cancel",...o(),msg:"can not download data"});if(hr(y)-hr(p)>10)return console.log(`difference between the data before and after is too large, size(itemsCur)[${hr(y)}]-size(itemsAtt)[${hr(p)}]>10`),void d.info({event:"cancel",...o(),msg:"difference between the data before and after is too large"});let m=null;try{d.info({event:"compare",msg:"start..."}),m=on(y,p,t,{withInfor:!1}),d.info({event:"compare",msg:"done"})}catch(e){console.log(e),d.error({event:"compare",msg:gn(e)})}if(!pr(m))return console.log("can not calculate the difference, task canceled"),void d.info({event:"cancel",...o(),msg:"can not calculate the difference between the data before and after"});if(0===hr(m.del)&&0===hr(m.add)&&0===hr(m.diff))return console.log("no difference, task canceled"),void d.info({event:"cancel",...o(),msg:"no difference"});if(await St(m.del,async e=>{if(!et(l)){try{d.info({event:"proc-remove-callfun-remove",[t]:e[t],msg:"start..."});let r=f(e);rt(r)&&(r=await r)}catch(r){console.log(r),d.error({event:"proc-remove-callfun-remove",[t]:e[t],msg:gn(r)}),l="error at proc-remove-callfun-remove"}if(!et(l))try{h.remove(e[t]),d.info({event:"proc-remove-callfun-remove",[t]:e[t],msg:"done"})}catch(r){console.log(r),d.error({event:"proc-remove-otk-remove",[t]:e[t],msg:gn(r)}),l="error at proc-remove-otk-remove"}}}),et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});if(await St(m.add,async e=>{if(!et(l)){try{d.info({event:"proc-add-callfun-add",[t]:e[t],msg:"start..."});let r=c(e);rt(r)&&(r=await r)}catch(r){console.log(r),d.error({event:"proc-add-callfun-add",[t]:e[t],msg:gn(r)}),l="error at proc-add-callfun-add"}if(!et(l))try{let r=Rr(JSON.stringify(e));h.set(e[t],r),d.info({event:"proc-add-callfun-add",[t]:e[t],msg:"done"})}catch(r){console.log(r),d.error({event:"proc-add-otk-set",[t]:e[t],msg:gn(r)}),l="error at proc-add-otk-set"}}}),et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});if(await St(m.diff,async e=>{if(!et(l)){try{d.info({event:"proc-diff-callfun-modify",[t]:e[t],msg:"start..."});let r=u(e);rt(r)&&(r=await r)}catch(r){console.log(r),d.error({event:"proc-diff-callfun-modify",[t]:e[t],msg:gn(r)}),l="error at proc-diff-callfun-modify"}if(!et(l))try{let r=Rr(JSON.stringify(e));h.set(e[t],r),d.info({event:"proc-diff-callfun-modify",[t]:e[t],msg:"done"})}catch(r){console.log(r),d.error({event:"proc-diff-otk-set",[t]:e[t],msg:gn(r)}),l="error at proc-diff-otk-set"}}}),et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});{Tt(n);let e=wn(r,n);if(e.error)return console.log(e.error),d.error({event:"task-update-rawData",msg:e.error}),void(l="error at task-update-rawData")}if(et(l))return console.log("error occurred, task canceled"),void d.info({event:"cancel",...o(),msg:l});d.info({event:"end",...o(),msg:"done"})})().catch(e=>{console.log(e),d.error({event:"proc-core",msg:gn(e)})}),l.srlog=d,l};function Ln(e){return!!Sn(e)||(!!function(e){return"[object Null]"===Object.prototype.toString.call(e)}(e)||(!!function(e){if(nt(e)){for(let t in e)return!1;return!0}return!1}(e)||(!!function(e){return!(!Qe(e)||""!==e)}(e)||(!!function(e){return!!wt(e)&&0===e.length}(e)||!!ot(e)))))}function Un(e){if(!_n(e))return!1;return An(e)>=0}function Bn(e,t){return et(e)&&Un(t)?0===(t=An(t))?e:function(e,t){if(!et(e))return"";if(!Un(t))return"";if(0===(t=An(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}(e,e.length-t):""}function qn(e,t){return function(){return e.apply(t,arguments)}}const{toString:In}=Object.prototype,{getPrototypeOf:zn}=Object,{iterator:Hn,toStringTag:Jn}=Symbol,Wn=(e=>t=>{const r=In.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Yn=e=>(e=e.toLowerCase(),t=>Wn(t)===e),Vn=e=>t=>typeof t===e,{isArray:Kn}=Array,Gn=Vn("undefined");function Xn(e){return null!==e&&!Gn(e)&&null!==e.constructor&&!Gn(e.constructor)&&eo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zn=Yn("ArrayBuffer");const Qn=Vn("string"),eo=Vn("function"),to=Vn("number"),ro=e=>null!==e&&"object"==typeof e,no=e=>{if("object"!==Wn(e))return!1;const t=zn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Jn in e||Hn in e)},oo=Yn("Date"),io=Yn("File"),so=Yn("Blob"),ao=Yn("FileList"),co=Yn("URLSearchParams"),[uo,fo,lo,ho]=["ReadableStream","Request","Response","Headers"].map(Yn);function po(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),Kn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Xn(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function yo(e,t){if(Xn(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const mo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,go=e=>!Gn(e)&&e!==mo;const vo=(bo="undefined"!=typeof Uint8Array&&zn(Uint8Array),e=>bo&&e instanceof bo);var bo;const wo=Yn("HTMLFormElement"),So=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_o=Yn("RegExp"),Oo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};po(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const jo=Yn("AsyncFunction"),Eo=(Ro="function"==typeof setImmediate,Ao=eo(mo.postMessage),Ro?setImmediate:Ao?(xo=`axios@${Math.random()}`,To=[],mo.addEventListener("message",({source:e,data:t})=>{e===mo&&t===xo&&To.length&&To.shift()()},!1),e=>{To.push(e),mo.postMessage(xo,"*")}):e=>setTimeout(e));var Ro,Ao,xo,To;const ko="undefined"!=typeof queueMicrotask?queueMicrotask.bind(mo):"undefined"!=typeof process&&process.nextTick||Eo;var Co={isArray:Kn,isArrayBuffer:Zn,isBuffer:Xn,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eo(e.append)&&("formdata"===(t=Wn(e))||"object"===t&&eo(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Zn(e.buffer),t},isString:Qn,isNumber:to,isBoolean:e=>!0===e||!1===e,isObject:ro,isPlainObject:no,isEmptyObject:e=>{if(!ro(e)||Xn(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:uo,isRequest:fo,isResponse:lo,isHeaders:ho,isUndefined:Gn,isDate:oo,isFile:io,isBlob:so,isRegExp:_o,isFunction:eo,isStream:e=>ro(e)&&eo(e.pipe),isURLSearchParams:co,isTypedArray:vo,isFileList:ao,forEach:po,merge:function e(){const{caseless:t}=go(this)&&this||{},r={},n=(n,o)=>{const i=t&&yo(r,o)||o;no(r[i])&&no(n)?r[i]=e(r[i],n):no(n)?r[i]=e({},n):Kn(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&po(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(po(t,(t,n)=>{r&&eo(t)?e[n]=qn(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&zn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Wn,kindOfTest:Yn,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Kn(e))return e;let t=e.length;if(!to(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Hn]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:wo,hasOwnProperty:So,hasOwnProp:So,reduceDescriptors:Oo,freezeMethods:e=>{Oo(e,(t,r)=>{if(eo(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];eo(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return Kn(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:yo,global:mo,isContextDefined:go,isSpecCompliantForm:function(e){return!!(e&&eo(e.append)&&"FormData"===e[Jn]&&e[Hn])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(ro(e)){if(t.indexOf(e)>=0)return;if(Xn(e))return e;if(!("toJSON"in e)){t[n]=e;const o=Kn(e)?[]:{};return po(e,(e,t)=>{const i=r(e,n+1);!Gn(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:jo,isThenable:e=>e&&(ro(e)||eo(e))&&eo(e.then)&&eo(e.catch),setImmediate:Eo,asap:ko,isIterable:e=>null!=e&&eo(e[Hn])};function $o(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Co.inherits($o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Co.toJSONObject(this.config),code:this.code,status:this.status}}});const Do=$o.prototype,No={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{No[e]={value:e}}),Object.defineProperties($o,No),Object.defineProperty(Do,"isAxiosError",{value:!0}),$o.from=(e,t,r,n,o,i)=>{const s=Object.create(Do);return Co.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),$o.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function Po(e){return Co.isPlainObject(e)||Co.isArray(e)}function Mo(e){return Co.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(e,t){return e=Mo(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Lo=Co.toFlatObject(Co,{},null,function(e){return/^is[A-Z]/.test(e)});function Uo(e,t,r){if(!Co.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Co.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Co.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Co.isSpecCompliantForm(t);if(!Co.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Co.isDate(e))return e.toISOString();if(Co.isBoolean(e))return e.toString();if(!a&&Co.isBlob(e))throw new $o("Blob is not supported. Use a Buffer instead.");return Co.isArrayBuffer(e)||Co.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(Co.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Co.isArray(e)&&function(e){return Co.isArray(e)&&!e.some(Po)}(e)||(Co.isFileList(e)||Co.endsWith(r,"[]"))&&(a=Co.toArray(e)))return r=Mo(r),a.forEach(function(e,n){!Co.isUndefined(e)&&null!==e&&t.append(!0===s?Fo([r],n,i):null===s?r:r+"[]",c(e))}),!1;return!!Po(e)||(t.append(Fo(o,r,i),c(e)),!1)}const f=[],l=Object.assign(Lo,{defaultVisitor:u,convertValue:c,isVisitable:Po});if(!Co.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Co.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),Co.forEach(r,function(r,i){!0===(!(Co.isUndefined(r)||null===r)&&o.call(t,r,Co.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])}),f.pop()}}(e),t}function Bo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function qo(e,t){this._pairs=[],e&&Uo(e,this,t)}const Io=qo.prototype;function zo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ho(e,t,r){if(!t)return e;const n=r&&r.encode||zo;Co.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):Co.isURLSearchParams(t)?t.toString():new qo(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Io.append=function(e,t){this._pairs.push([e,t])},Io.toString=function(e){const t=e?function(t){return e.call(this,t,Bo)}:Bo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Jo=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Co.forEach(this.handlers,function(t){null!==t&&e(t)})}},Wo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:qo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Vo="undefined"!=typeof window&&"undefined"!=typeof document,Ko="object"==typeof navigator&&navigator||void 0,Go=Vo&&(!Ko||["ReactNative","NativeScript","NS"].indexOf(Ko.product)<0),Xo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Zo=Vo&&window.location.href||"http://localhost";var Qo={...Object.freeze({__proto__:null,hasBrowserEnv:Vo,hasStandardBrowserEnv:Go,hasStandardBrowserWebWorkerEnv:Xo,navigator:Ko,origin:Zo}),...Yo};function ei(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Co.isArray(n)?n.length:i,a)return Co.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&Co.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&Co.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!s}if(Co.isFormData(e)&&Co.isFunction(e.entries)){const r={};return Co.forEachEntry(e,(e,n)=>{t(function(e){return Co.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const ti={transitional:Wo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Co.isObject(e);o&&Co.isHTMLForm(e)&&(e=new FormData(e));if(Co.isFormData(e))return n?JSON.stringify(ei(e)):e;if(Co.isArrayBuffer(e)||Co.isBuffer(e)||Co.isStream(e)||Co.isFile(e)||Co.isBlob(e)||Co.isReadableStream(e))return e;if(Co.isArrayBufferView(e))return e.buffer;if(Co.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Uo(e,new Qo.classes.URLSearchParams,{visitor:function(e,t,r,n){return Qo.isNode&&Co.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Co.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Uo(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(Co.isString(e))try{return(t||JSON.parse)(e),Co.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ti.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Co.isResponse(e)||Co.isReadableStream(e))return e;if(e&&Co.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $o.from(e,$o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qo.classes.FormData,Blob:Qo.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Co.forEach(["delete","get","head","post","put","patch"],e=>{ti.headers[e]={}});var ri=ti;const ni=Co.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const oi=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function si(e){return!1===e||null==e?e:Co.isArray(e)?e.map(si):String(e)}function ai(e,t,r,n,o){return Co.isFunction(n)?n.call(this,t,r):(o&&(t=r),Co.isString(t)?Co.isString(n)?-1!==t.indexOf(n):Co.isRegExp(n)?n.test(t):void 0:void 0)}class ci{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ii(t);if(!o)throw new Error("header name must be a non-empty string");const i=Co.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=si(e))}const i=(e,t)=>Co.forEach(e,(e,r)=>o(e,r,t));if(Co.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Co.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ni[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Co.isObject(e)&&Co.isIterable(e)){let r,n,o={};for(const t of e){if(!Co.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?Co.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=ii(e)){const r=Co.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Co.isFunction(t))return t.call(this,e,r);if(Co.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ii(e)){const r=Co.findKey(this,e);return!(!r||void 0===this[r]||t&&!ai(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ii(e)){const o=Co.findKey(r,e);!o||t&&!ai(0,r[o],o,t)||(delete r[o],n=!0)}}return Co.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!ai(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Co.forEach(this,(n,o)=>{const i=Co.findKey(r,o);if(i)return t[i]=si(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=si(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Co.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Co.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[oi]=this[oi]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ii(e);t[n]||(!function(e,t){const r=Co.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Co.isArray(e)?e.forEach(n):n(e),this}}ci.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Co.reduceDescriptors(ci.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Co.freezeMethods(ci);var ui=ci;function fi(e,t){const r=this||ri,n=t||r,o=ui.from(n.headers);let i=n.data;return Co.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function li(e){return!(!e||!e.__CANCEL__)}function di(e,t,r){$o.call(this,null==e?"canceled":e,$o.ERR_CANCELED,t,r),this.name="CanceledError"}function hi(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $o("Request failed with status code "+r.status,[$o.ERR_BAD_REQUEST,$o.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Co.inherits(di,$o,{__CANCEL__:!0});const pi=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let f=s,l=0;for(;f!==i;)l+=r[f++],f%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*l/d):void 0}}(50,250);return function(e,t){let r,n,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},yi=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mi=e=>(...t)=>Co.asap(()=>e(...t));var gi=Qo.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Qo.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Qo.origin),Qo.navigator&&/(msie|trident)/i.test(Qo.navigator.userAgent)):()=>!0,vi=Qo.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];Co.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Co.isString(n)&&s.push("path="+n),Co.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function bi(e,t,r){let n=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const wi=e=>e instanceof ui?{...e}:e;function Si(e,t){t=t||{};const r={};function n(e,t,r,n){return Co.isPlainObject(e)&&Co.isPlainObject(t)?Co.merge.call({caseless:n},e,t):Co.isPlainObject(t)?Co.merge({},t):Co.isArray(t)?t.slice():t}function o(e,t,r,o){return Co.isUndefined(t)?Co.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Co.isUndefined(t))return n(void 0,t)}function s(e,t){return Co.isUndefined(t)?Co.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(wi(e),wi(t),0,!0)};return Co.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,s=i(e[n],t[n],n);Co.isUndefined(s)&&i!==a||(r[n]=s)}),r}var _i=e=>{const t=Si({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=ui.from(a),t.url=Ho(bi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Co.isFormData(n))if(Qo.hasStandardBrowserEnv||Qo.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Qo.hasStandardBrowserEnv&&(o&&Co.isFunction(o)&&(o=o(t)),o||!1!==o&&gi(t.url))){const e=i&&s&&vi.read(s);e&&a.set(i,e)}return t};var Oi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=_i(e);let o=n.data;const i=ui.from(n.headers).normalize();let s,a,c,u,f,{responseType:l,onUploadProgress:d,onDownloadProgress:h}=n;function p(){u&&u(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function m(){if(!y)return;const n=ui.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());hi(function(e){t(e),p()},function(e){r(e),p()},{data:l&&"text"!==l&&"json"!==l?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new $o("Request aborted",$o.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new $o("Network Error",$o.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Wo;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $o(t,o.clarifyTimeoutError?$o.ETIMEDOUT:$o.ECONNABORTED,e,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&Co.forEach(i.toJSON(),function(e,t){y.setRequestHeader(t,e)}),Co.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),l&&"json"!==l&&(y.responseType=n.responseType),h&&([c,f]=pi(h,!0),y.addEventListener("progress",c)),d&&y.upload&&([a,u]=pi(d),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{y&&(r(!t||t.type?new di(null,e,y):t),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===Qo.protocols.indexOf(g)?r(new $o("Unsupported protocol "+g+":",$o.ERR_BAD_REQUEST,e)):y.send(o||null)})};var ji=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $o?t:new di(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new $o(`timeout ${t} of ms exceeded`,$o.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>Co.asap(s),a}};const Ei=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Ri=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ai=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Ri(e))yield*Ei(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},xi="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ti=xi&&"function"==typeof ReadableStream,ki=xi&&("function"==typeof TextEncoder?(Ci=new TextEncoder,e=>Ci.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ci;const $i=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Di=Ti&&$i(()=>{let e=!1;const t=new Request(Qo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ni=Ti&&$i(()=>Co.isReadableStream(new Response("").body)),Pi={stream:Ni&&(e=>e.body)};var Mi;xi&&(Mi=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Pi[e]&&(Pi[e]=Co.isFunction(Mi[e])?t=>t[e]():(t,r)=>{throw new $o(`Response type '${e}' is not supported`,$o.ERR_NOT_SUPPORT,r)})}));const Fi=async(e,t)=>{const r=Co.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Co.isBlob(e))return e.size;if(Co.isSpecCompliantForm(e)){const t=new Request(Qo.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Co.isArrayBufferView(e)||Co.isArrayBuffer(e)?e.byteLength:(Co.isURLSearchParams(e)&&(e+=""),Co.isString(e)?(await ki(e)).byteLength:void 0)})(t):r};var Li=xi&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:l="same-origin",fetchOptions:d}=_i(e);u=u?(u+"").toLowerCase():"text";let h,p=ji([o,i&&i.toAbortSignal()],s);const y=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&Di&&"get"!==r&&"head"!==r&&0!==(m=await Fi(f,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(Co.isFormData(n)&&(e=r.headers.get("content-type"))&&f.setContentType(e),r.body){const[e,t]=yi(m,pi(mi(c)));n=Ai(r.body,65536,e,t)}}Co.isString(l)||(l=l?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...d,signal:p,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:o?l:void 0});let i=await fetch(h,d);const s=Ni&&("stream"===u||"response"===u);if(Ni&&(a||s&&y)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Co.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&yi(t,pi(mi(a),!0))||[];i=new Response(Ai(i.body,65536,r,()=>{n&&n(),y&&y()}),e)}u=u||"text";let g=await Pi[Co.findKey(Pi,u)||"text"](i,e);return!s&&y&&y(),await new Promise((t,r)=>{hi(t,r,{data:g,headers:ui.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})})}catch(t){if(y&&y(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new $o("Network Error",$o.ERR_NETWORK,e,h),{cause:t.cause||t});throw $o.from(t,t&&t.code,e,h)}});const Ui={http:null,xhr:Oi,fetch:Li};Co.forEach(Ui,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Bi=e=>`- ${e}`,qi=e=>Co.isFunction(e)||null===e||!1===e;var Ii=e=>{e=Co.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!qi(r)&&(n=Ui[(t=String(r)).toLowerCase()],void 0===n))throw new $o(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+i]=n}if(!n){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new $o("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Bi).join("\n"):" "+Bi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function zi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function Hi(e){zi(e),e.headers=ui.from(e.headers),e.data=fi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ii(e.adapter||ri.adapter)(e).then(function(t){return zi(e),t.data=fi.call(e,e.transformResponse,t),t.headers=ui.from(t.headers),t},function(t){return li(t)||(zi(e),t&&t.response&&(t.response.data=fi.call(e,e.transformResponse,t.response),t.response.headers=ui.from(t.response.headers))),Promise.reject(t)})}const Ji="1.11.0",Wi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yi={};Wi.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Ji+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $o(n(o," has been removed"+(t?" in "+t:"")),$o.ERR_DEPRECATED);return t&&!Yi[o]&&(Yi[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Wi.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Vi={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $o("options must be an object",$o.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new $o("option "+i+" must be "+r,$o.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $o("Unknown option "+i,$o.ERR_BAD_OPTION)}},validators:Wi};const Ki=Vi.validators;class Gi{constructor(e){this.defaults=e||{},this.interceptors={request:new Jo,response:new Jo}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Si(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Vi.assertOptions(r,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),null!=n&&(Co.isFunction(n)?t.paramsSerializer={serialize:n}:Vi.assertOptions(n,{encode:Ki.function,serialize:Ki.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Vi.assertOptions(t,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Co.merge(o.common,o[t.method]);o&&Co.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ui.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f,l=0;if(!a){const e=[Hi.bind(this),void 0];for(e.unshift(...s),e.push(...c),f=e.length,u=Promise.resolve(t);l<f;)u=u.then(e[l++],e[l++]);return u}f=s.length;let d=t;for(l=0;l<f;){const e=s[l++],t=s[l++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Hi.call(this,d)}catch(e){return Promise.reject(e)}for(l=0,f=c.length;l<f;)u=u.then(c[l++],c[l++]);return u}getUri(e){return Ho(bi((e=Si(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Co.forEach(["delete","get","head","options"],function(e){Gi.prototype[e]=function(t,r){return this.request(Si(r||{},{method:e,url:t,data:(r||{}).data}))}}),Co.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Si(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Gi.prototype[e]=t(),Gi.prototype[e+"Form"]=t(!0)});var Xi=Gi;class Zi{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new di(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Zi(function(t){e=t}),cancel:e}}}var Qi=Zi;const es={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(es).forEach(([e,t])=>{es[t]=e});var ts=es;const rs=function e(t){const r=new Xi(t),n=qn(Xi.prototype.request,r);return Co.extend(n,Xi.prototype,r,{allOwnKeys:!0}),Co.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Si(t,r))},n}(ri);rs.Axios=Xi,rs.CanceledError=di,rs.CancelToken=Qi,rs.isCancel=li,rs.VERSION=Ji,rs.toFormData=Uo,rs.AxiosError=$o,rs.Cancel=rs.CanceledError,rs.all=function(e){return Promise.all(e)},rs.spread=function(e){return function(t){return e.apply(null,t)}},rs.isAxiosError=function(e){return Co.isObject(e)&&!0===e.isAxiosError},rs.mergeConfig=Si,rs.AxiosHeaders=ui,rs.formToJSON=e=>ei(Co.isHTMLForm(e)?new FormData(e):e),rs.getAdapter=Ii,rs.HttpStatusCode=ts,rs.default=rs;var ns=rs;let os=async e=>{let t=null,r=await ns.get(`https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001?Authorization=${e}`).catch(e=>{t=e});if(null!==t)return;let n=[...he(r,"data.records.earthquake",[]),...he(r,"data.records.Earthquake",[])];if(!wt(o=n)||0===o.length||1===o.length&&Ln(o[0]))throw console.log("rEqsL",r),new Error("無法取得顯著有感地震之earthquake數據");var o;let i=[];return Ge(n,e=>{let t=he(e,"earthquakeInfo.originTime",""),r=he(e,"EarthquakeInfo.OriginTime",""),n=t||r;if(!et(n))throw console.log("v",e),new Error(`無法取得originTime[${n}]`);let o=he(e,"earthquakeInfo.magnitude.magnitudeType",""),s=he(e,"EarthquakeInfo.EarthquakeMagnitude.MagnitudeType",""),a=o||s;if(!et(a))throw console.log("v",e),new Error(`無法取得magnitudeType[${a}]`);let c=he(e,"earthquakeInfo.magnitude.magnitudeValue",""),u=he(e,"EarthquakeInfo.EarthquakeMagnitude.MagnitudeValue",""),f=c||u;if(!it(f))throw console.log("v",e),new Error(`無法取得magnitudeValue[${f}]`);let l=he(e,"ReportContent",""),d=f;d=mn(d);let h=Dn(n),p=he(e,"EarthquakeNo","");p=mn(p);let y=Bn(p,3),m=n,g=h.format("YYYY-MM-DDTHH:mm:ssZ"),v=h.format("YYYYMMDDHHmmss"),b=he(e,"EarthquakeInfo.FocalDepth","");b=mn(b);let w=he(e,"EarthquakeInfo.Epicenter.Location",""),S=he(e,"EarthquakeInfo.Epicenter.EpicenterLongitude","");S=mn(S);let _=he(e,"EarthquakeInfo.Epicenter.EpicenterLatitude","");_=mn(_);let O={id:p,tag:"",number:y,time:g,timeRec:m,timeTag:v,ml:d,depth:b,description:l,location:w,intensity:"",longitude:S,latitude:_,data:e};i.push(O)}),i};return async(t,r={})=>{let n=he(r,"fdDwStorage");et(n)||(n="./_dwStorage"),Ot(n)||kt(n);let o=he(r,"fdDwAttime");et(o)||(o="./_dwAttime"),Ot(o)||kt(o);let i=he(r,"fdDwCurrent");et(i)||(i="./_dwCurrent"),Ot(i)||kt(i);let s=he(r,"fdResult");et(s)||(s="./_result"),Ot(s)||kt(s);let a=he(r,"fdTaskCpSrc");et(a)||(a="./_taskCpSrc"),Ot(a)||kt(a);let c=he(r,"funDownloadEqs"),u=he(r,"funDownload"),f=he(r,"funGetCurrent"),l=he(r,"funAdd"),d=he(r,"funModify"),h=he(r,"funRemove"),p=async()=>{let r=[];var s;tt(c)?(r=c(),rt(r)&&(r=await r)):r=await os(t),r=null==(s=r)?s:Xe.call(s),Tt(o),wn(i,o);let a=(t=>{let r=$t(t,1),n=[];return Ge(r,t=>{let r=e.readFileSync(t.path,"utf8"),o=JSON.parse(r);n.push(o)}),n})(o),u={};return Ge(a,e=>{u[e.id]=e}),await St(r,async t=>{let r=`${n}/${t.id}.json`;e.writeFileSync(r,JSON.stringify(t),"utf8");let i=await Nt(r);if(st(u,t.id)){if(i!==u[t.id].hash){u[t.id].hash=i;let r=`${o}/${t.id}.json`;e.writeFileSync(r,JSON.stringify(u[t.id]),"utf8")}}else{u[t.id]={id:t.id,hash:i};let r=`${o}/${t.id}.json`;e.writeFileSync(r,JSON.stringify(u[t.id]),"utf8")}}),Ze(u)};tt(u)||(u=p);let y=async()=>{let t=$t(i,1),r=[];return Ge(t,t=>{let n=e.readFileSync(t.path,"utf8"),o=JSON.parse(n);r.push(o)}),r};tt(f)||(f=y);let m=async e=>{let t=`${s}/${e.id}`;Ot(t)&&Ct(t)};tt(h)||(h=m);let g=async e=>{let t=`${s}/${e.id}`;Ot(t)&&Tt(t),xt(`${n}/${e.id}.json`,`${t}/${e.id}.json`)};tt(l)||(l=g);let v=async e=>{let t=`${s}/${e.id}`;Ot(t)&&Tt(t),xt(`${n}/${e.id}.json`,`${t}/${e.id}.json`)};tt(d)||(d=v);let b={fdDwAttime:o,fdDwCurrent:i,fdResult:s,fdTaskCpSrc:a,funDownload:u,funGetCurrent:f,funRemove:h,funAdd:l,funModify:d};return await Fn(b)}});
8
7
  //# sourceMappingURL=w-dwdata-tweqod.umd.js.map