w-dwdata-tweqod 1.0.0 → 1.0.1

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.
package/README.md CHANGED
@@ -20,5 +20,60 @@ npm i w-dwdata-tweqod
20
20
  #### Example:
21
21
  > **Link:** [[dev source code](https://github.com/yuda-lyu/w-dwdata-tweqod/blob/master/g.mjs)]
22
22
  ```alias
23
- bbb
23
+ import fs from 'fs'
24
+ import _ from 'lodash-es'
25
+ import w from 'wsemi'
26
+ import WDwdataTweqod from './src/WDwdataTweqod.mjs'
27
+
28
+ let j = fs.readFileSync('../_data/settings.json', 'utf8')
29
+ let st = JSON.parse(j)
30
+ let token = _.get(st, 'token')
31
+
32
+ //fdDwStorage
33
+ let fdDwStorage = `./_dwStorage`
34
+ w.fsCleanFolder(fdDwStorage)
35
+
36
+ //fdDwAttime
37
+ let fdDwAttime = `./_dwAttime`
38
+ w.fsCleanFolder(fdDwAttime)
39
+
40
+ //fdDwCurrent
41
+ let fdDwCurrent = `./_dwCurrent`
42
+ w.fsCleanFolder(fdDwCurrent)
43
+
44
+ //fdResult
45
+ let fdResult = './_result'
46
+ w.fsCleanFolder(fdResult)
47
+
48
+ let opt = {
49
+ fdDwStorage,
50
+ fdDwAttime,
51
+ fdDwCurrent,
52
+ fdResult,
53
+ // funDownload,
54
+ // funGetCurrent,
55
+ // funRemove,
56
+ // funAdd,
57
+ // funModify,
58
+ }
59
+ let ev = await WDwdataTweqod(token, opt)
60
+ .catch((err) => {
61
+ console.log(err)
62
+ })
63
+ ev.on('change', (msg) => {
64
+ delete msg.type
65
+ console.log('change', msg)
66
+ })
67
+ // change { event: 'start', msg: 'running...' }
68
+ // change { event: 'proc-callfun-download', msg: 'start...' }
69
+ // change { event: 'proc-callfun-download', msg: 'done' }
70
+ // change { event: 'proc-callfun-getCurrent', msg: 'start...' }
71
+ // change { event: 'proc-callfun-getCurrent', msg: 'done' }
72
+ // change { event: 'compare', msg: 'start...' }
73
+ // change { event: 'compare', msg: 'done' }
74
+ // change { event: 'proc-add-callfun-add', id: '114101', msg: 'start...' }
75
+ // change { event: 'proc-add-callfun-add', id: '114101', msg: 'done' }
76
+ // change { event: 'proc-add-callfun-add', id: '114102', msg: 'start...' }
77
+ // change { event: 'proc-add-callfun-add', id: '114102', msg: 'done' }
78
+ // ...
24
79
  ```
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * w-dwdata-tweqod v1.0.0
2
+ * w-dwdata-tweqod v1.0.1
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
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=t=>{ro.info(t),f.emit("change",{type:"info",...t})},d=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({event:"start",msg:"running..."});let f="",p=ki(o,o).buildSrc(),m=[];try{h({event:"proc-callfun-download",msg:"start..."});let t=s();se(t)&&(t=await t),h({event:"proc-callfun-download",msg:"done"}),m=t}catch(t){console.log(t),d({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({event:"cancel",...i(),msg:f});let y=[];try{h({event:"proc-callfun-getCurrent",msg:"start..."});let t=a();se(t)&&(t=await t),h({event:"proc-callfun-getCurrent",msg:"done"}),y=t}catch(t){console.log(t),d({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({event:"cancel",...i(),msg:f});if(0===vr(m))return console.log("invalid data, task canceled"),void h({event:"cancel",...i(),msg:"can not download data"});if(vr(y)-vr(m)>10)return console.log(`difference between the data before and after is too large, size(itemsCur)[${vr(y)}]-size(itemsAtt)[${vr(m)}]>10`),void h({event:"cancel",...i(),msg:"difference between the data before and after is too large"});let g=null;try{h({event:"compare",msg:"start..."}),g=ln(y,m,e,{withInfor:!1}),h({event:"compare",msg:"done"})}catch(t){console.log(t),d({event:"compare",msg:t.message})}if(!wr(g))return console.log("can not calculate the difference, task canceled"),void h({event:"cancel",...i(),msg:"can not calculate the difference between the data before and after"});if(0===vr(g.del)&&0===vr(g.add)&&0===vr(g.diff))return console.log("no difference, task canceled"),void h({event:"cancel",...i(),msg:"no difference"});if(await je(g.del,async t=>{if(!ie(f)){try{h({event:"proc-remove-callfun-remove",[e]:t[e],msg:"start..."});let r=l(t);se(r)&&(r=await r)}catch(r){console.log(r),d({event:"proc-remove-callfun-remove",[e]:t[e],msg:r.message}),f="error at proc-remove-callfun-remove"}if(!ie(f))try{p.remove(t[e]),h({event:"proc-remove-callfun-remove",[e]:t[e],msg:"done"})}catch(r){console.log(r),d({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({event:"cancel",...i(),msg:f});if(await je(g.add,async t=>{if(!ie(f)){try{h({event:"proc-add-callfun-add",[e]:t[e],msg:"start..."});let r=c(t);se(r)&&(r=await r)}catch(r){console.log(r),d({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));p.set(t[e],r),h({event:"proc-add-callfun-add",[e]:t[e],msg:"done"})}catch(r){console.log(r),d({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({event:"cancel",...i(),msg:f});if(await je(g.diff,async t=>{if(!ie(f)){try{h({event:"proc-diff-callfun-modify",[e]:t[e],msg:"start..."});let r=u(t);se(r)&&(r=await r)}catch(r){console.log(r),d({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));p.set(t[e],r),h({event:"proc-diff-callfun-modify",[e]:t[e],msg:"done"})}catch(r){console.log(r),d({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({event:"cancel",...i(),msg:f});{Ce(n);let t=yn(r,n);if(t.error)return console.log(t.error),d({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({event:"cancel",...i(),msg:f});h({event:"end",...i(),msg:"done"})})().catch(t=>{console.log(t),d({event:"proc-core",msg:t.message})}),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)}});
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)}});
8
8
  //# sourceMappingURL=w-dwdata-tweqod.umd.js.map