@sjvair/monitor-map 1.0.0
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 +2 -0
- package/dist/module/MonitorDetails.css +1 -0
- package/dist/module/assets/MonitorDetails.f45a43a0.js +1 -0
- package/dist/module/assets/worker.923a158a.js +1 -0
- package/dist/module/assets/worker.e5dbf0ee.js +1 -0
- package/dist/module/favicon.ico +0 -0
- package/dist/module/lungs.svg +99 -0
- package/dist/module/sjvairMonitorMap.css +1 -0
- package/dist/module/sjvairMonitorMap.js +10 -0
- package/dist/standalone/assets/MonitorDetails.7e810786.css +1 -0
- package/dist/standalone/assets/MonitorDetails.82cbe6d1.js +1 -0
- package/dist/standalone/assets/index.21b3aa4e.css +1 -0
- package/dist/standalone/assets/index.fab00cbe.js +10 -0
- package/dist/standalone/assets/lungs.d2442d24.svg +99 -0
- package/dist/standalone/assets/worker.e40e87c7.js +1 -0
- package/dist/standalone/assets/worker.f1df3f4d.js +1 -0
- package/dist/standalone/favicon.ico +0 -0
- package/dist/standalone/index.html +22 -0
- package/package.json +42 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 514.327 514.327" style="enable-background:new 0 0 514.327 514.327;" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<g>
|
|
7
|
+
<path d="M454.982,130.327c-22.109-31.418-52.364-47.709-91.927-47.709c-34.909,0-60.509,26.764-67.491,73.309
|
|
8
|
+
c-2.327,17.455-1.164,31.418,0,44.218c1.164,9.309,1.164,17.455,1.164,26.764c-16.291-10.473-29.091-23.273-29.091-39.564V24.436
|
|
9
|
+
c0-6.982-4.655-11.636-11.636-11.636c-6.982,0-11.636,4.655-11.636,11.636v162.909c0,16.291-12.8,30.255-29.091,39.564
|
|
10
|
+
c0-9.309,0-18.618,1.164-26.764c1.164-13.964,2.327-27.927,0-44.218c-6.982-46.545-32.582-73.309-67.491-73.309
|
|
11
|
+
c-39.564,0-69.818,16.291-90.764,47.709C29.091,172.218,0,229.236,0,339.782c0,59.345,5.818,129.164,46.545,152.436
|
|
12
|
+
c6.982,4.655,19.782,9.309,37.236,9.309c59.345,0,118.691-54.691,139.636-93.091c5.818-12.8,9.309-29.091,9.309-52.364
|
|
13
|
+
c0-24.436-3.491-45.382-6.982-65.164c-1.164-5.818-6.982-10.473-13.964-9.309c-5.818,1.164-10.473,6.982-9.309,13.964
|
|
14
|
+
c3.491,18.618,6.982,38.4,6.982,61.673c0,18.618-2.327,33.745-6.982,41.891c-17.455,32.582-69.818,80.291-118.691,80.291
|
|
15
|
+
c-12.8,0-20.945-3.491-26.764-5.818c-34.909-19.782-34.909-104.727-34.909-132.655c0-103.564,26.764-157.091,53.527-196.655
|
|
16
|
+
c18.618-26.764,41.891-38.4,73.309-38.4c23.273,0,39.564,19.782,45.382,53.527c2.327,13.964,1.164,25.6,0,38.4
|
|
17
|
+
s-2.327,25.6-1.164,40.727c-6.982,3.491-15.127,5.818-20.945,6.982s-10.473,8.145-8.145,13.964
|
|
18
|
+
c1.164,4.655,5.818,8.146,11.636,8.146c1.164,0,2.327,0,3.491,0c11.636-3.491,57.018-16.291,77.964-46.545
|
|
19
|
+
c22.109,30.255,67.491,43.055,77.964,46.545c1.164,0,2.327,0,3.491,0c4.655,0,9.309-3.491,11.636-8.146
|
|
20
|
+
c1.164-5.818-2.327-12.8-8.145-13.964s-13.964-4.655-20.945-6.982c1.164-15.127,0-27.927-1.164-40.727s-2.327-24.436,0-38.4
|
|
21
|
+
c5.818-33.745,22.109-53.527,45.382-53.527c31.418,0,54.691,11.636,72.146,37.236c26.764,38.4,53.527,93.091,53.527,196.655
|
|
22
|
+
c0,27.927,0,112.873-34.909,132.655c-4.655,2.327-13.964,5.818-26.764,5.818c-48.873,0-101.236-47.709-118.691-80.291
|
|
23
|
+
c-4.655-8.145-6.982-23.273-6.982-41.891c0-23.273,3.491-41.891,6.982-61.673c1.164-5.818-3.491-12.8-9.309-13.964
|
|
24
|
+
c-5.818-1.164-12.8,3.491-13.964,9.309c-3.491,19.782-6.982,40.727-6.982,65.164c0,23.273,3.491,40.727,9.309,52.364
|
|
25
|
+
c19.782,39.564,80.291,93.091,139.636,93.091c17.455,0,30.255-4.655,38.4-9.309c40.727-23.273,46.545-94.255,46.545-152.436
|
|
26
|
+
C512,229.236,482.909,172.218,454.982,130.327z"/>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
<g>
|
|
30
|
+
<g>
|
|
31
|
+
<path d="M359.564,285.091c-5.818-5.818-12.8-5.818-17.455-2.327c-4.655,3.491-5.818,11.636-1.164,16.291
|
|
32
|
+
c12.8,16.291,20.945,34.909,20.945,51.2c0,6.982,4.655,11.636,11.636,11.636s11.636-4.655,11.636-11.636
|
|
33
|
+
C385.164,329.309,375.855,304.873,359.564,285.091z"/>
|
|
34
|
+
</g>
|
|
35
|
+
</g>
|
|
36
|
+
<g>
|
|
37
|
+
<g>
|
|
38
|
+
<path d="M422.4,281.6l-34.909-11.636c-5.818-2.327-12.8,1.164-13.964,6.982c-2.327,5.818,1.164,12.8,6.982,15.127l34.909,11.636
|
|
39
|
+
c1.164,0,2.327,1.164,3.491,1.164c4.655,0,9.309-3.491,10.473-8.145C431.709,290.909,428.218,283.927,422.4,281.6z"/>
|
|
40
|
+
</g>
|
|
41
|
+
</g>
|
|
42
|
+
<g>
|
|
43
|
+
<g>
|
|
44
|
+
<path d="M415.418,202.473c-4.655-4.655-11.636-4.655-16.291,0l-34.909,34.909c-4.655,4.655-4.655,11.636,0,16.291
|
|
45
|
+
c2.327,2.327,5.818,3.491,8.145,3.491s5.818-1.164,8.145-3.491l34.909-34.909C420.073,214.109,420.073,207.127,415.418,202.473z"
|
|
46
|
+
/>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
<g>
|
|
50
|
+
<g>
|
|
51
|
+
<path d="M171.055,282.764c-4.655-3.491-12.8-3.491-16.291,1.164C137.309,304.873,128,329.309,128,350.255
|
|
52
|
+
c0,6.982,4.655,11.636,11.636,11.636s11.636-4.655,11.636-11.636c0-16.291,8.146-34.909,20.945-51.2
|
|
53
|
+
C175.709,294.4,175.709,286.255,171.055,282.764z"/>
|
|
54
|
+
</g>
|
|
55
|
+
</g>
|
|
56
|
+
<g>
|
|
57
|
+
<g>
|
|
58
|
+
<path d="M138.473,275.782c-2.327-5.818-8.145-9.309-15.127-6.982l-34.909,11.636c-4.655,2.327-8.145,9.309-5.818,15.127
|
|
59
|
+
c1.164,4.655,5.818,8.145,10.473,8.145c1.164,0,2.327,0,3.491-1.164l34.909-11.636C137.309,288.582,140.8,282.764,138.473,275.782
|
|
60
|
+
z"/>
|
|
61
|
+
</g>
|
|
62
|
+
</g>
|
|
63
|
+
<g>
|
|
64
|
+
<g>
|
|
65
|
+
<path d="M147.782,237.382l-34.909-34.909c-4.655-4.655-11.636-4.655-16.291,0s-4.655,11.636,0,16.291l34.909,34.909
|
|
66
|
+
c2.327,2.327,4.655,3.491,8.145,3.491s5.818-1.164,8.145-3.491C152.436,249.018,152.436,242.036,147.782,237.382z"/>
|
|
67
|
+
</g>
|
|
68
|
+
</g>
|
|
69
|
+
<g>
|
|
70
|
+
</g>
|
|
71
|
+
<g>
|
|
72
|
+
</g>
|
|
73
|
+
<g>
|
|
74
|
+
</g>
|
|
75
|
+
<g>
|
|
76
|
+
</g>
|
|
77
|
+
<g>
|
|
78
|
+
</g>
|
|
79
|
+
<g>
|
|
80
|
+
</g>
|
|
81
|
+
<g>
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
</g>
|
|
85
|
+
<g>
|
|
86
|
+
</g>
|
|
87
|
+
<g>
|
|
88
|
+
</g>
|
|
89
|
+
<g>
|
|
90
|
+
</g>
|
|
91
|
+
<g>
|
|
92
|
+
</g>
|
|
93
|
+
<g>
|
|
94
|
+
</g>
|
|
95
|
+
<g>
|
|
96
|
+
</g>
|
|
97
|
+
<g>
|
|
98
|
+
</g>
|
|
99
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(t,e,r)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__publicField=(t,e,r)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,r),r);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}function e(t,e,r){return Math.min(Math.max(t,r),e)}class r extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var n=r;function i(t){if("string"!=typeof t)throw new n(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let r=t.trim();r=d.test(t)?function(t){const e=t.toLowerCase().trim(),r=s[function(t){let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return(e>>>0)%2341}(e)];if(!r)throw new n(t);return`#${r}`}(t):t;const i=u.exec(r);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(a(t,2),16))),parseInt(a(t[3]||"f",2),16)/255]}const o=c.exec(r);if(o){const t=Array.from(o).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const h=f.exec(r);if(h){const t=Array.from(h).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const m=l.exec(r);if(m){const[r,i,o,s]=Array.from(m).slice(1).map(parseFloat);if(e(0,100,i)!==i)throw new n(t);if(e(0,100,o)!==o)throw new n(t);return[...p(r,i,o),s||1]}throw new n(t)}const o=t=>parseInt(t.replace(/_/g,""),36),s="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const r=o(e.substring(0,3)),n=o(e.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return t[r]=`${i}${n}`,t}),{});const a=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),u=new RegExp(`^#${a("([a-f0-9])",3)}([a-f0-9])?$`,"i"),c=new RegExp(`^#${a("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),f=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${a(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),l=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,d=/^[a-z]+$/i,h=t=>Math.round(255*t),p=(t,e,r)=>{let n=r/100;if(0===e)return[n,n,n].map(h);const i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,u=0,c=0;i>=0&&i<1?(a=o,u=s):i>=1&&i<2?(a=s,u=o):i>=2&&i<3?(u=o,c=s):i>=3&&i<4?(u=s,c=o):i>=4&&i<5?(a=s,c=o):i>=5&&i<6&&(a=o,c=s);const f=n-o/2;return[a+f,u+f,c+f].map(h)};function m(t,r){const[n,o,s,a]=function(t){const[e,r,n,o]=i(t).map(((t,e)=>3===e?t:t/255)),s=Math.max(e,r,n),a=Math.min(e,r,n),u=(s+a)/2;if(s===a)return[0,0,u,o];const c=s-a;return[60*(e===s?(r-n)/c+(r<n?6:0):r===s?(n-e)/c+2:(e-r)/c+4),u>.5?c/(2-s-a):c/(s+a),u,o]}(t);return function(t,r,n,i){return`hsla(${(t%360).toFixed()}, ${e(0,100,100*r).toFixed()}%, ${e(0,100,100*n).toFixed()}%, ${parseFloat(e(0,1,i).toFixed(3))})`}(n,o,s-r,a)}function v(t,r,n){const o=(t,e)=>3===e?t:t/255,[s,a,u,c]=i(t).map(o),[f,l,d,h]=i(r).map(o),p=h-c,m=2*n-1,v=((m*p==-1?m:m+p/(1+m*p))+1)/2,_=1-v;return g=255*(a*_+l*v),y=255*(u*_+d*v),b=h*n+c*(1-n),`rgba(${e(0,255,255*(s*_+f*v)).toFixed()}, ${e(0,255,g).toFixed()}, ${e(0,255,y).toFixed()}, ${parseFloat(e(0,1,b).toFixed(3))})`;var g,y,b}function _(t){const[r,n,o,s]=i(t);let a=t=>{const r=e(0,255,t).toString(16);return 1===r.length?`0${r}`:r};return`#${a(r)}${a(n)}${a(o)}${s<1?a(Math.round(255*s)):""}`}const g="969696",y="000000",b="00e400",w="ffff00",$="ff7e00",O="ff0000",E="8f3f97",x="7e0023";function M(t,e){const r=e[e.length-1];if(t>=r.min)return`#${r.color}`;if(t<=0)return`#${e[0].color}`;for(let n=0;n<=e.length-1;n++)if(e[n].min>t){const r=e[n-1],i=e[n],o=r.min===-1/0?i.min:i.min-r.min,s=(o-(i.min-t))/o;return v(`#${r.color}`,`#${i.color}`,s)}return"#FFFFFF"}const S=class{constructor(t,e,r,n){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",S.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=r,n.latest&&this.name in n.latest&&(this.latest=Math.round(parseFloat(n.latest[this.name])))}};let D=S;function j(t){switch(t.device){case"AirNow":return function(t){return T(["pm25","PM 2.5","60m",t],["pm100","PM 10","60M",t])}(t);case"BAM1022":return function(t){return T(["pm25","PM 2.5","60m",t])}(t);case"PurpleAir":return function(t){return T(["pm10","PM 1.0","2m",t],["pm25","PM 2.5","2m",t],["pm25_avg_15","PM 2.5","15m",t],["pm25_avg_60","PM 2.5","60m",t],["pm100","PM 10","",t])}(t)}}function T(...t){const e={};for(let r of t)e[r[0]]=new D(...r);return e}__publicField(D,"levels",[{min:-1/0,color:b},{min:12,color:w},{min:35,color:$},{min:55,color:O},{min:150,color:E},{min:250,color:x}]);"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}var A={exports:{}};A.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",a="day",u="week",c="month",f="quarter",l="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,v={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("_")},_=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:_,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+_(n,2,"0")+":"+_(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,c),o=r-i<0,s=e.clone().add(n+(o?-1:1),c);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:c,y:l,w:u,d:a,D:d,h:s,m:o,s:i,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",b={};b[y]=v;var w=function(t){return t instanceof x},$=function t(e,r,n){var i;if(!e)return y;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&&(y=i),i||!n&&y},O=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new x(r)},E=g;E.l=$,E.i=w,E.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function v(t){this.$L=$(t.locale,null,!0),this.parse(t)}var _=v.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(E.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.$x=t.x||{},this.init()},_.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()},_.$utils=function(){return E},_.isValid=function(){return!(this.$d.toString()===h)},_.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},_.isAfter=function(t,e){return O(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<O(t)},_.$g=function(t,e,r){return E.u(t)?this[e]:this.set(r,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var r=this,n=!!E.u(e)||e,f=E.p(t),h=function(t,e){var i=E.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 E.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,v=this.$M,_=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case l:return n?h(1,0):h(31,11);case c:return n?h(1,v):h(0,v+1);case u:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return h(n?_-b:_+(6-b),v);case a:case d:return p(g+"Hours",0);case s:return p(g+"Minutes",1);case o:return p(g+"Seconds",2);case i:return p(g+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var r,u=E.p(t),f="set"+(this.$u?"UTC":""),h=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[l]=f+"FullYear",r[s]=f+"Hours",r[o]=f+"Minutes",r[i]=f+"Seconds",r[n]=f+"Milliseconds",r)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[E.p(t)]()},_.add=function(n,f){var d,h=this;n=Number(n);var p=E.p(f),m=function(t){var e=O(h);return E.w(e.date(e.date()+Math.round(t*n)),h)};if(p===c)return this.set(c,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return m(1);if(p===u)return m(7);var v=(d={},d[o]=e,d[s]=r,d[i]=t,d)[p]||1,_=this.$d.getTime()+n*v;return E.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,s=this.$m,a=this.$M,u=r.weekdays,c=r.months,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},l=function(t){return E.s(o%12||12,t,"0")},d=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:E.s(a+1,2,"0"),MMM:f(r.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,u,2),ddd:f(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:E.s(o,2,"0"),h:l(1),hh:l(2),a:d(o,s,!0),A:d(o,s,!1),m:String(s),mm:E.s(s,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:i};return n.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(n,d,h){var p,m=E.p(d),v=O(n),_=(v.utcOffset()-this.utcOffset())*e,g=this-v,y=E.m(this,v);return y=(p={},p[l]=y/12,p[c]=y,p[f]=y/3,p[u]=(g-_)/6048e5,p[a]=(g-_)/864e5,p[s]=g/r,p[o]=g/e,p[i]=g/t,p)[m]||g,h?y:E.a(y)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return b[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=$(t,e,!0);return n&&(r.$L=n),r},_.clone=function(){return E.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},v}(),M=x.prototype;return O.prototype=M,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",d]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,x,O),t.$i=!0),O},O.locale=$,O.isDayjs=w,O.unix=function(t){return O(1e3*t)},O.en=b[y],O.Ls=b,O.p={},O}();var z=A.exports,F={exports:{}};!function(t,e){t.exports=function(t,e,r){t=t||{};var n=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,r,i){return n.fromToBase(t,e,r,i)}r.en.relativeTime=i,n.fromToBase=function(e,n,o,s,a){for(var u,c,f,l=o.$locale().relativeTime||i,d=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=d.length,p=0;p<h;p+=1){var m=d[p];m.d&&(u=s?r(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var v=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,v<=m.r||!m.r){v<=1&&p>0&&(m=d[p-1]);var _=l[m.l];a&&(v=a(""+v)),c="string"==typeof _?_.replace("%d",v):_(v,n,m.l,f);break}}if(n)return c;var g=f?l.future:l.past;return"function"==typeof g?g(c):g.replace("%s",c)},n.to=function(t,e){return o(t,e,this,!0)},n.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?r.utc():r()};n.toNow=function(t){return this.to(s(this),t)},n.fromNow=function(t){return this.from(s(this),t)}}}(F);var k=F.exports,N={exports:{}};!function(t,e){var r,n;t.exports=(r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={},function(t,e,i){var o,s=function(t,e,r){void 0===r&&(r={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var r=e.timeZoneName||"short",i=t+"|"+r,o=n[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),n[i]=o),o}(e,r).formatToParts(i)},a=function(t,e){for(var n=s(t,e),o=[],a=0;a<n.length;a+=1){var u=n[a],c=u.type,f=u.value,l=r[c];l>=0&&(o[l]=parseInt(f,10))}var d=o[3],h=24===d?0:d,p=o[0]+"-"+o[1]+"-"+o[2]+" "+h+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},u=e.prototype;u.tz=function(t,e){void 0===t&&(t=o);var r=this.utcOffset(),n=this.toDate(),s=n.toLocaleString("en-US",{timeZone:t}),a=Math.round((n-new Date(s))/1e3/60),u=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(r-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),r=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return r&&r.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(r,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,r){var n=r&&e,s=r||e||o,u=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var c=function(t,e,r){var n=t-60*e*1e3,i=a(n,r);if(e===i)return[n,e];var o=a(n-=60*(i-e)*1e3,r);return i===o?[n,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,n).valueOf(),u,s),f=c[0],l=c[1],d=i(f).utcOffset(l);return d.$x.$timezone=s,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(N);var C=N.exports,P={exports:{}};!function(t,e){var r,n,i;t.exports=(r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),r):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(n);if(!e)return null;var r=(""+e[0]).match(i)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,r)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var f=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var d=s.diff;s.diff=function(t,e,r){if(t&&this.$u===t.$u)return d.call(this,t,e,r);var n=this.local(),i=o(t).local();return d.call(n,i,e,r)}})}(P);var U=P.exports;z.$defaultFormat=function(t){return z.utc(t).format("YYYY-MM-DD HH:mm:ss")},z.$prettyPrint=function(t){return z(t).format("h:mma dddd MMM DD, YYYY")};z.extend(k),z.extend(C),z.extend(((t,e,r)=>{e.prototype.skewedDiff=function(t,e){const r=Math.abs(this.diff(t))/6e4;return r>e?Math.floor(r):r<e?Math.ceil(r):r}})),z.extend(U);const L=z;var B,q={exports:{}},I={exports:{}},Y=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},H=Y,W=Object.prototype.toString,V=(B=Object.create(null),function(t){var e=W.call(t);return B[e]||(B[e]=e.slice(8,-1).toLowerCase())});function J(t){return t=t.toLowerCase(),function(e){return V(e)===t}}function Z(t){return Array.isArray(t)}function K(t){return void 0===t}var Q=J("ArrayBuffer");function X(t){return null!==t&&"object"==typeof t}function G(t){if("object"!==V(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var tt=J("Date"),et=J("File"),rt=J("Blob"),nt=J("FileList");function it(t){return"[object Function]"===W.call(t)}var ot=J("URLSearchParams");function st(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Z(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var at,ut=(at="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return at&&t instanceof at}),ct={isArray:Z,isArrayBuffer:Q,isBuffer:function(t){return null!==t&&!K(t)&&null!==t.constructor&&!K(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||W.call(t)===e||it(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Q(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:X,isPlainObject:G,isUndefined:K,isDate:tt,isFile:et,isBlob:rt,isFunction:it,isStream:function(t){return X(t)&&it(t.pipe)},isURLSearchParams:ot,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:st,merge:function t(){var e={};function r(r,n){G(e[n])&&G(r)?e[n]=t(e[n],r):G(r)?e[n]=t({},r):Z(r)?e[n]=r.slice():e[n]=r}for(var n=0,i=arguments.length;n<i;n++)st(arguments[n],r);return e},extend:function(t,e,r){return st(e,(function(e,n){t[n]=r&&"function"==typeof e?H(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,i,o,s={};e=e||{};do{for(i=(n=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=n[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:V,kindOfTest:J,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(K(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:ut,isFileList:nt},ft=ct;function lt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dt=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(ft.isURLSearchParams(e))n=e.toString();else{var i=[];ft.forEach(e,(function(t,e){null!=t&&(ft.isArray(t)?e+="[]":t=[t],ft.forEach(t,(function(t){ft.isDate(t)?t=t.toISOString():ft.isObject(t)&&(t=JSON.stringify(t)),i.push(lt(e)+"="+lt(t))})))})),n=i.join("&")}if(n){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},ht=ct;function pt(){this.handlers=[]}pt.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},pt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},pt.prototype.forEach=function(t){ht.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var mt=pt,vt=ct,_t=ct;function gt(t,e,r,n,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}_t.inherits(gt,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var yt=gt.prototype,bt={};["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"].forEach((function(t){bt[t]={value:t}})),Object.defineProperties(gt,bt),Object.defineProperty(yt,"isAxiosError",{value:!0}),gt.from=function(t,e,r,n,i,o){var s=Object.create(yt);return _t.toFlatObject(t,s,(function(t){return t!==Error.prototype})),gt.call(s,t.message,e,r,n,i),s.name=t.name,o&&Object.assign(s,o),s};var wt=gt,$t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ot=ct;var Et,xt,Mt,St,Dt=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":Ot.isDate(t)?t.toISOString():Ot.isArrayBuffer(t)||Ot.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,o){if(Ot.isPlainObject(i)||Ot.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+o);r.push(i),Ot.forEach(i,(function(r,i){if(!Ot.isUndefined(r)){var s,a=o?o+"."+i:i;if(r&&!o&&"object"==typeof r)if(Ot.endsWith(i,"{}"))r=JSON.stringify(r);else if(Ot.endsWith(i,"[]")&&(s=Ot.toArray(r)))return void s.forEach((function(t){!Ot.isUndefined(t)&&e.append(a,n(t))}));t(r,a)}})),r.pop()}else e.append(o,n(i))}(t),e};var jt,Tt,Rt,At,zt,Ft,kt,Nt,Ct,Pt,Ut,Lt,Bt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},qt=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},It=function(t,e){return t&&!Bt(e)?qt(t,e):e};function Yt(){if(Ft)return zt;Ft=1;var t=wt;function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return ct.inherits(e,t,{__CANCEL__:!0}),zt=e}function Ht(){if(Pt)return Ct;Pt=1;var t=ct,e=function(){if(xt)return Et;xt=1;var t=wt;return Et=function(e,r,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?r(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}(),r=function(){if(St)return Mt;St=1;var t=ct;return Mt=t.isStandardBrowserEnv()?{write:function(e,r,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),t.isString(i)&&a.push("path="+i),t.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}(),n=dt,i=It,o=function(){if(Tt)return jt;Tt=1;var t=ct,e=["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"];return jt=function(r){var n,i,o,s={};return r?(t.forEach(r.split("\n"),(function(r){if(o=r.indexOf(":"),n=t.trim(r.substr(0,o)).toLowerCase(),i=t.trim(r.substr(o+1)),n){if(s[n]&&e.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([i]):s[n]?s[n]+", "+i:i}})),s):s}}(),s=function(){if(At)return Rt;At=1;var t=ct;return Rt=t.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var e=t;return r&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(r){var n=t.isString(r)?i(r):r;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}}(),a=$t,u=wt,c=Yt(),f=Nt?kt:(Nt=1,kt=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""});return Ct=function(l){return new Promise((function(d,h){var p,m=l.data,v=l.headers,_=l.responseType;function g(){l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}t.isFormData(m)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var y=new XMLHttpRequest;if(l.auth){var b=l.auth.username||"",w=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var $=i(l.baseURL,l.url);function O(){if(y){var t="getAllResponseHeaders"in y?o(y.getAllResponseHeaders()):null,r={data:_&&"text"!==_&&"json"!==_?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:t,config:l,request:y};e((function(t){d(t),g()}),(function(t){h(t),g()}),r),y=null}}if(y.open(l.method.toUpperCase(),n($,l.params,l.paramsSerializer),!0),y.timeout=l.timeout,"onloadend"in y?y.onloadend=O:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(O)},y.onabort=function(){y&&(h(new u("Request aborted",u.ECONNABORTED,l,y)),y=null)},y.onerror=function(){h(new u("Network Error",u.ERR_NETWORK,l,y,y)),y=null},y.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||a;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),h(new u(t,e.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,l,y)),y=null},t.isStandardBrowserEnv()){var E=(l.withCredentials||s($))&&l.xsrfCookieName?r.read(l.xsrfCookieName):void 0;E&&(v[l.xsrfHeaderName]=E)}"setRequestHeader"in y&&t.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),_&&"json"!==_&&(y.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&y.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(p=function(t){y&&(h(!t||t&&t.type?new c:t),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p))),m||(m=null);var x=f($);x&&-1===["http","https","file"].indexOf(x)?h(new u("Unsupported protocol "+x+":",u.ERR_BAD_REQUEST,l)):y.send(m)}))}}var Wt=ct,Vt=function(t,e){vt.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))},Jt=wt,Zt=Dt,Kt={"Content-Type":"application/x-www-form-urlencoded"};function Qt(t,e){!Wt.isUndefined(t)&&Wt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Xt,Gt={transitional:$t,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Xt=Ht()),Xt),transformRequest:[function(t,e){if(Vt(e,"Accept"),Vt(e,"Content-Type"),Wt.isFormData(t)||Wt.isArrayBuffer(t)||Wt.isBuffer(t)||Wt.isStream(t)||Wt.isFile(t)||Wt.isBlob(t))return t;if(Wt.isArrayBufferView(t))return t.buffer;if(Wt.isURLSearchParams(t))return Qt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=Wt.isObject(t),i=e&&e["Content-Type"];if((r=Wt.isFileList(t))||n&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Zt(r?{"files[]":t}:t,o&&new o)}return n||"application/json"===i?(Qt(e,"application/json"),function(t,e,r){if(Wt.isString(t))try{return(e||JSON.parse)(t),Wt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||Gt.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&Wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw Jt.from(o,Jt.ERR_BAD_RESPONSE,this,null,this.response);throw o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt?Ut:(Lt=1,Ut=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Wt.forEach(["delete","get","head"],(function(t){Gt.headers[t]={}})),Wt.forEach(["post","put","patch"],(function(t){Gt.headers[t]=Wt.merge(Kt)}));var te,ee,re=Gt,ne=ct,ie=re;function oe(){return ee?te:(ee=1,te=function(t){return!(!t||!t.__CANCEL__)})}var se=ct,ae=function(t,e,r){var n=this||ie;return ne.forEach(r,(function(r){t=r.call(n,t,e)})),t},ue=oe(),ce=re,fe=Yt();function le(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fe}var de,he,pe=ct,me=function(t,e){e=e||{};var r={};function n(t,e){return pe.isPlainObject(t)&&pe.isPlainObject(e)?pe.merge(t,e):pe.isPlainObject(e)?pe.merge({},e):pe.isArray(e)?e.slice():e}function i(r){return pe.isUndefined(e[r])?pe.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function o(t){if(!pe.isUndefined(e[t]))return n(void 0,e[t])}function s(r){return pe.isUndefined(e[r])?pe.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function a(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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};return pe.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,n=e(t);pe.isUndefined(n)&&e!==a||(r[t]=n)})),r};function ve(){return he?de:(he=1,de={version:"0.27.2"})}var _e=ve().version,ge=wt,ye={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ye[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var be={};ye.transitional=function(t,e,r){function n(t,e){return"[Axios v"+_e+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,i,o){if(!1===t)throw new ge(n(i," has been removed"+(e?" in "+e:"")),ge.ERR_DEPRECATED);return e&&!be[i]&&(be[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)}};var we,$e,Oe,Ee,xe,Me,Se=ct,De=dt,je=mt,Te=function(t){return le(t),t.headers=t.headers||{},t.data=ae.call(t,t.data,t.headers,t.transformRequest),t.headers=se.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),se.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||ce.adapter)(t).then((function(e){return le(t),e.data=ae.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return ue(e)||(le(t),e&&e.response&&(e.response.data=ae.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},Re=me,Ae=It,ze={assertOptions:function(t,e,r){if("object"!=typeof t)throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),i=n.length;i-- >0;){var o=n[i],s=e[o];if(s){var a=t[o],u=void 0===a||s(a,o,t);if(!0!==u)throw new ge("option "+o+" must be "+u,ge.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ge("Unknown option "+o,ge.ERR_BAD_OPTION)}},validators:ye},Fe=ze.validators;function ke(t){this.defaults=t,this.interceptors={request:new je,response:new je}}ke.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=Re(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;void 0!==r&&ze.assertOptions(r,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!i){var a=[Te,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var c=n.shift(),f=n.shift();try{u=c(u)}catch(l){f(l);break}}try{o=Te(u)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},ke.prototype.getUri=function(t){t=Re(this.defaults,t);var e=Ae(t.baseURL,t.url);return De(e,t.params,t.paramsSerializer)},Se.forEach(["delete","get","head","options"],(function(t){ke.prototype[t]=function(e,r){return this.request(Re(r||{},{method:t,url:e,data:(r||{}).data}))}})),Se.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,i){return this.request(Re(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ke.prototype[t]=e(),ke.prototype[t+"Form"]=e(!0)}));var Ne=ct,Ce=Y,Pe=ke,Ue=me;var Le=function t(e){var r=new Pe(e),n=Ce(Pe.prototype.request,r);return Ne.extend(n,Pe.prototype,r),Ne.extend(n,r),n.create=function(r){return t(Ue(e,r))},n}(re);Le.Axios=Pe,Le.CanceledError=Yt(),Le.CancelToken=function(){if($e)return we;$e=1;var t=Yt();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(e){n.reason||(n.reason=new t(e),r(n.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},we=e}(),Le.isCancel=oe(),Le.VERSION=ve().version,Le.toFormData=Dt,Le.AxiosError=wt,Le.Cancel=Le.CanceledError,Le.all=function(t){return Promise.all(t)},Le.spread=Ee?Oe:(Ee=1,Oe=function(t){return function(e){return t.apply(null,e)}}),Le.isAxiosError=function(){if(Me)return xe;Me=1;var t=ct;return xe=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),I.exports=Le,I.exports.default=Le,function(t){t.exports=I.exports}(q);const Be="lib"==={VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_BUILD_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/",qe=R(q.exports).create({baseURL:Be});class Ie{constructor(t){__publicField(this,"data"),__publicField(this,"dataFields"),__publicField(this,"displayField"),__publicField(this,"lastUpdated"),__publicField(this,"markerParams"),__publicField(this,"monitorFields"),this.data=t,this.markerParams=function(t){const e=`#${g}`,r={border_color:_(m(e,.1)),border_size:1,fill_color:e,value_color:e,size:8,shape:"square"};switch(t.device){case"AirNow":case"BAM1022":r.shape="triangle";break;case"PurpleAir":t.is_sjvair&&(r.shape="circle");break;default:console.error(`Unknown device type for monitor ${t.id}`),r.shape="diamond"}if(t.latest){const e=M(+t.latest.pm25_avg_15,D.levels);if(r.value_color=e,t.is_active)switch(r.fill_color=M(+t.latest.pm25_avg_15,D.levels),r.border_color=_(m(r.fill_color,.1)),t.device){case"AirNow":case"BAM1022":r.size=14;break;case"PurpleAir":t.is_sjvair?r.size=16:r.size=10}"inside"===t.location&&(r.border_color=`#${y}`,r.border_size=2)}return r}(t),this.monitorFields=j(t),this.dataFields=Object.keys(this.monitorFields),this.displayField=this.monitorFields.pm25_avg_15,this.lastUpdated=t.latest&&Object.keys(t.latest).length>1?L(t.latest.timestamp).fromNow():"never"}}var Ye=Object.freeze({__proto__:null,fetchMonitors:async function(){return qe.get("/monitors").then((t=>{const e={};for(let r of t.data.data)r.position.coordinates[1]>42||(e[r.id]=new Ie(r));return e}))},fetchEntries:async function t(e,r,n=1){const i=[],o={fields:e.dataFields.join(","),page:n,timestamp__gte:L.$defaultFormat(r.start),timestamp__lte:L.$defaultFormat(r.end)};return qe.get(`monitors/${e.data.id}/entries/`,{params:o}).then((async o=>{const s=o.data;if(s.data.length&&(i.push(...s.data),s.has_next_page)){const o=await t(e,r,++n).catch((t=>{throw t}));o.length&&i.push(...o)}return i}))},fetchSubscriptions:async function(){return qe.get("alerts/subscriptions").then((t=>t.data.data))},fetchTempByCoords:async function(t){const e=`https://api.weather.gov/points/${t.join(",")}`;return await qe(e).then((async t=>{try{return(await qe(t.data.properties.forecastHourly)).data.properties.periods[0].temperature}catch(e){throw e}}))}});new class{constructor(e,r){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=r,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:r,taskName:n,parameters:i}=e.data;this.serviceModule[n];const o=new t(r);n in this.serviceModule?await this.serviceModule[n](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(n)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("MonitorsService",Ye)}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__publicField=(t,e,n)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,n),n);!function(){"use strict";class t{constructor(t){__publicField(this,"id"),__publicField(this,"error"),__publicField(this,"success"),__publicField(this,"payload"),this.id=t}pass(t){this.success=!0,this.payload=t}fail(t){this.success=!1,this.error=t}}const e="00e400",n="ffff00",r="ff7e00",i="ff0000",o="8f3f97",s="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var u={exports:{}};u.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",u="week",c="month",f="quarter",l="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,v={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("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),o=n-i<0,s=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-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:c,y:l,w:u,d:a,D:h,h:s,m:o,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",w={};w[_]=v;var b=function(t){return t instanceof S},O=function t(e,n,r){var i;if(!e)return _;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var a=e.name;w[a]=e,i=a}return!r&&i&&(_=i),i||!r&&_},E=function(t,e){if(b(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},$=y;$.l=O,$.i=b,$.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function v(t){this.$L=O(t.locale,null,!0),this.parse(t)}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},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 $},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return E(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<E(t)},g.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!$.u(e)||e,f=$.p(t),d=function(t,e){var i=$.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},p=function(t,e){return $.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case l:return r?d(1,0):d(31,11);case c:return r?d(1,v):d(0,v+1);case u:var _=this.$locale().weekStart||0,w=(m<_?m+7:m)-_;return d(r?g-w:g+(6-w),v);case a:case h:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=$.p(t),f="set"+(this.$u?"UTC":""),d=(n={},n[a]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[l]=f+"FullYear",n[s]=f+"Hours",n[o]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===l){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[$.p(t)]()},g.add=function(r,f){var h,d=this;r=Number(r);var p=$.p(f),m=function(t){var e=E(d);return $.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return m(1);if(p===u)return m(7);var v=(h={},h[o]=e,h[s]=n,h[i]=t,h)[p]||1,g=this.$d.getTime()+r*v;return $.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=$.z(this),o=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},l=function(t){return $.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:$.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:$.s(o,2,"0"),h:l(1),hh:l(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:$.s(s,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(t,e){return e||p[t]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,d){var p,m=$.p(h),v=E(r),g=(v.utcOffset()-this.utcOffset())*e,y=this-v,_=$.m(this,v);return _=(p={},p[l]=_/12,p[c]=_,p[f]=_/3,p[u]=(y-g)/6048e5,p[a]=(y-g)/864e5,p[s]=y/n,p[o]=y/e,p[i]=y/t,p)[m]||y,d?_:$.a(_)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return $.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()},v}(),D=S.prototype;return E.prototype=D,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,S,E),t.$i=!0),E},E.locale=O,E.isDayjs=b,E.unix=function(t){return E(1e3*t)},E.en=w[_],E.Ls=w,E.p={},E}();var c=u.exports,f={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,i){return r.fromToBase(t,e,n,i)}n.en.relativeTime=i,r.fromToBase=function(e,r,o,s,a){for(var u,c,f,l=o.$locale().relativeTime||i,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],d=h.length,p=0;p<d;p+=1){var m=h[p];m.d&&(u=s?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var v=(t.rounding||Math.round)(Math.abs(u));if(f=u>0,v<=m.r||!m.r){v<=1&&p>0&&(m=h[p-1]);var g=l[m.l];a&&(v=a(""+v)),c="string"==typeof g?g.replace("%d",v):g(v,r,m.l,f);break}}if(r)return c;var y=f?l.future:l.past;return"function"==typeof y?y(c):y.replace("%s",c)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var s=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(s(this),t)},r.fromNow=function(t){return this.from(s(this),t)}}}(f);var l=f.exports,h={exports:{}};!function(t,e){var n,r;t.exports=(n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={},function(t,e,i){var o,s=function(t,e,n){void 0===n&&(n={});var i=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",i=t+"|"+n,o=r[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:n}),r[i]=o),o}(e,n).formatToParts(i)},a=function(t,e){for(var r=s(t,e),o=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,f=u.value,l=n[c];l>=0&&(o[l]=parseInt(f,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+t;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},u=e.prototype;u.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),s=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(s))/1e3/60),u=i(s).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=s(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,s=n||e||o,u=a(+i(),s);if("string"!=typeof t)return i(t).tz(s);var c=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var o=a(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),u,s),f=c[0],l=c[1],h=i(f).utcOffset(l);return h.$x.$timezone=s,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}})}(h);var d=h.exports,p={exports:{}};!function(t,e){var n,r,i;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g,function(t,e,o){var s=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},s.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(t,e){var o=this.$utils().u;if(o(t))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var n=(""+e[0]).match(i)||["-",0,0],o=n[0],s=60*+n[1]+ +n[2];return 0===s?0:"+"===o?s:-s}(t)))return this;var s=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=s,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,n)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var f=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var h=s.diff;s.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=o(t).local();return h.call(r,i,e,n)}})}(p);var m=p.exports;c.$defaultFormat=function(t){return c.utc(t).format("YYYY-MM-DD HH:mm:ss")},c.$prettyPrint=function(t){return c(t).format("h:mma dddd MMM DD, YYYY")};c.extend(l),c.extend(d),c.extend(((t,e,n)=>{e.prototype.skewedDiff=function(t,e){const n=Math.abs(this.diff(t))/6e4;return n>e?Math.floor(n):n<e?Math.ceil(n):n}})),c.extend(m);const v=c;var g,y={exports:{}},_={exports:{}},w=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},b=w,O=Object.prototype.toString,E=(g=Object.create(null),function(t){var e=O.call(t);return g[e]||(g[e]=e.slice(8,-1).toLowerCase())});function $(t){return t=t.toLowerCase(),function(e){return E(e)===t}}function S(t){return Array.isArray(t)}function D(t){return void 0===t}var M=$("ArrayBuffer");function R(t){return null!==t&&"object"==typeof t}function T(t){if("object"!==E(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var x=$("Date"),A=$("File"),N=$("Blob"),j=$("FileList");function C(t){return"[object Function]"===O.call(t)}var k=$("URLSearchParams");function P(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),S(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var U,L=(U="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return U&&t instanceof U}),F={isArray:S,isArrayBuffer:M,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||O.call(t)===e||C(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&M(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:R,isPlainObject:T,isUndefined:D,isDate:x,isFile:A,isBlob:N,isFunction:C,isStream:function(t){return R(t)&&C(t.pipe)},isURLSearchParams:k,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:P,merge:function t(){var e={};function n(n,r){T(e[r])&&T(n)?e[r]=t(e[r],n):T(n)?e[r]=t({},n):S(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)P(arguments[r],n);return e},extend:function(t,e,n){return P(e,(function(e,r){t[r]=n&&"function"==typeof e?b(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,n,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)},toFlatObject:function(t,e,n){var r,i,o,s={};e=e||{};do{for(i=(r=Object.getOwnPropertyNames(t)).length;i-- >0;)s[o=r[i]]||(e[o]=t[o],s[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:E,kindOfTest:$,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(D(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:L,isFileList:j},B=F;function Y(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var I=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(B.isURLSearchParams(e))r=e.toString();else{var i=[];B.forEach(e,(function(t,e){null!=t&&(B.isArray(t)?e+="[]":t=[t],B.forEach(t,(function(t){B.isDate(t)?t=t.toISOString():B.isObject(t)&&(t=JSON.stringify(t)),i.push(Y(e)+"="+Y(t))})))})),r=i.join("&")}if(r){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t},z=F;function H(){this.handlers=[]}H.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},H.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},H.prototype.forEach=function(t){z.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var W=H,q=F,V=F;function J(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}V.inherits(J,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Z=J.prototype,K={};["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"].forEach((function(t){K[t]={value:t}})),Object.defineProperties(J,K),Object.defineProperty(Z,"isAxiosError",{value:!0}),J.from=function(t,e,n,r,i,o){var s=Object.create(Z);return V.toFlatObject(t,s,(function(t){return t!==Error.prototype})),J.call(s,t.message,e,n,r,i),s.name=t.name,o&&Object.assign(s,o),s};var Q=J,X={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},G=F;var tt,et,nt,rt,it=function(t,e){e=e||new FormData;var n=[];function r(t){return null===t?"":G.isDate(t)?t.toISOString():G.isArrayBuffer(t)||G.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(i,o){if(G.isPlainObject(i)||G.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),G.forEach(i,(function(n,i){if(!G.isUndefined(n)){var s,a=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(G.endsWith(i,"{}"))n=JSON.stringify(n);else if(G.endsWith(i,"[]")&&(s=G.toArray(n)))return void s.forEach((function(t){!G.isUndefined(t)&&e.append(a,r(t))}));t(n,a)}})),n.pop()}else e.append(o,r(i))}(t),e};var ot,st,at,ut,ct,ft,lt,ht,dt,pt,mt,vt,gt=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},yt=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t},_t=function(t,e){return t&&!gt(e)?yt(t,e):e};function wt(){if(ft)return ct;ft=1;var t=Q;function e(e){t.call(this,null==e?"canceled":e,t.ERR_CANCELED),this.name="CanceledError"}return F.inherits(e,t,{__CANCEL__:!0}),ct=e}function bt(){if(pt)return dt;pt=1;var t=F,e=function(){if(et)return tt;et=1;var t=Q;return tt=function(e,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(new t("Request failed with status code "+r.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}}(),n=function(){if(rt)return nt;rt=1;var t=F;return nt=t.isStandardBrowserEnv()?{write:function(e,n,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),t.isString(i)&&a.push("path="+i),t.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}(),r=I,i=_t,o=function(){if(st)return ot;st=1;var t=F,e=["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"];return ot=function(n){var r,i,o,s={};return n?(t.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=t.trim(n.substr(0,o)).toLowerCase(),i=t.trim(n.substr(o+1)),r){if(s[r]&&e.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([i]):s[r]?s[r]+", "+i:i}})),s):s}}(),s=function(){if(ut)return at;ut=1;var t=F;return at=t.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(n){var r=t.isString(n)?i(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}}(),a=X,u=Q,c=wt(),f=ht?lt:(ht=1,lt=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""});return dt=function(l){return new Promise((function(h,d){var p,m=l.data,v=l.headers,g=l.responseType;function y(){l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}t.isFormData(m)&&t.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(l.auth){var w=l.auth.username||"",b=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+b)}var O=i(l.baseURL,l.url);function E(){if(_){var t="getAllResponseHeaders"in _?o(_.getAllResponseHeaders()):null,n={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:t,config:l,request:_};e((function(t){h(t),y()}),(function(t){d(t),y()}),n),_=null}}if(_.open(l.method.toUpperCase(),r(O,l.params,l.paramsSerializer),!0),_.timeout=l.timeout,"onloadend"in _?_.onloadend=E:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(E)},_.onabort=function(){_&&(d(new u("Request aborted",u.ECONNABORTED,l,_)),_=null)},_.onerror=function(){d(new u("Network Error",u.ERR_NETWORK,l,_,_)),_=null},_.ontimeout=function(){var t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",e=l.transitional||a;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),d(new u(t,e.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,l,_)),_=null},t.isStandardBrowserEnv()){var $=(l.withCredentials||s(O))&&l.xsrfCookieName?n.read(l.xsrfCookieName):void 0;$&&(v[l.xsrfHeaderName]=$)}"setRequestHeader"in _&&t.forEach(v,(function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete v[e]:_.setRequestHeader(e,t)})),t.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),g&&"json"!==g&&(_.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&_.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",l.onUploadProgress),(l.cancelToken||l.signal)&&(p=function(t){_&&(d(!t||t&&t.type?new c:t),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p))),m||(m=null);var S=f(O);S&&-1===["http","https","file"].indexOf(S)?d(new u("Unsupported protocol "+S+":",u.ERR_BAD_REQUEST,l)):_.send(m)}))}}var Ot=F,Et=function(t,e){q.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},$t=Q,St=it,Dt={"Content-Type":"application/x-www-form-urlencoded"};function Mt(t,e){!Ot.isUndefined(t)&&Ot.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var Rt,Tt={transitional:X,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Rt=bt()),Rt),transformRequest:[function(t,e){if(Et(e,"Accept"),Et(e,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return Mt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,r=Ot.isObject(t),i=e&&e["Content-Type"];if((n=Ot.isFileList(t))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return St(n?{"files[]":t}:t,o&&new o)}return r||"application/json"===i?(Mt(e,"application/json"),function(t,e,n){if(Ot.isString(t))try{return(e||JSON.parse)(t),Ot.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||Tt.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw $t.from(o,$t.ERR_BAD_RESPONSE,this,null,this.response);throw o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt?mt:(vt=1,mt=null)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],(function(t){Tt.headers[t]={}})),Ot.forEach(["post","put","patch"],(function(t){Tt.headers[t]=Ot.merge(Dt)}));var xt,At,Nt=Tt,jt=F,Ct=Nt;function kt(){return At?xt:(At=1,xt=function(t){return!(!t||!t.__CANCEL__)})}var Pt=F,Ut=function(t,e,n){var r=this||Ct;return jt.forEach(n,(function(n){t=n.call(r,t,e)})),t},Lt=kt(),Ft=Nt,Bt=wt();function Yt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bt}var It,zt,Ht=F,Wt=function(t,e){e=e||{};var n={};function r(t,e){return Ht.isPlainObject(t)&&Ht.isPlainObject(e)?Ht.merge(t,e):Ht.isPlainObject(e)?Ht.merge({},e):Ht.isArray(e)?e.slice():e}function i(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Ht.isUndefined(e[t]))return r(void 0,e[t])}function s(n){return Ht.isUndefined(e[n])?Ht.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function a(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials: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};return Ht.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);Ht.isUndefined(r)&&e!==a||(n[t]=r)})),n};function qt(){return zt?It:(zt=1,It={version:"0.27.2"})}var Vt=qt().version,Jt=Q,Zt={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Zt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var Kt={};Zt.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Vt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,o){if(!1===t)throw new Jt(r(i," has been removed"+(e?" in "+e:"")),Jt.ERR_DEPRECATED);return e&&!Kt[i]&&(Kt[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Qt,Xt,Gt,te,ee,ne,re={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Jt("options must be an object",Jt.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],s=e[o];if(s){var a=t[o],u=void 0===a||s(a,o,t);if(!0!==u)throw new Jt("option "+o+" must be "+u,Jt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Jt("Unknown option "+o,Jt.ERR_BAD_OPTION)}},validators:Zt},ie=F,oe=I,se=W,ae=function(t){return Yt(t),t.headers=t.headers||{},t.data=Ut.call(t,t.data,t.headers,t.transformRequest),t.headers=Pt.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Pt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||Ft.adapter)(t).then((function(e){return Yt(t),e.data=Ut.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return Lt(e)||(Yt(t),e&&e.response&&(e.response.data=Ut.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ue=Wt,ce=_t,fe=re,le=fe.validators;function he(t){this.defaults=t,this.interceptors={request:new se,response:new se}}he.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ue(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&fe.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!i){var a=[ae,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;r.length;){var c=r.shift(),f=r.shift();try{u=c(u)}catch(l){f(l);break}}try{o=ae(u)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},he.prototype.getUri=function(t){t=ue(this.defaults,t);var e=ce(t.baseURL,t.url);return oe(e,t.params,t.paramsSerializer)},ie.forEach(["delete","get","head","options"],(function(t){he.prototype[t]=function(e,n){return this.request(ue(n||{},{method:t,url:e,data:(n||{}).data}))}})),ie.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(ue(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}he.prototype[t]=e(),he.prototype[t+"Form"]=e(!0)}));var de=F,pe=w,me=he,ve=Wt;var ge=function t(e){var n=new me(e),r=pe(me.prototype.request,n);return de.extend(r,me.prototype,n),de.extend(r,n),r.create=function(n){return t(ve(e,n))},r}(Nt);ge.Axios=me,ge.CanceledError=wt(),ge.CancelToken=function(){if(Xt)return Qt;Xt=1;var t=wt();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},e((function(e){r.reason||(r.reason=new t(e),n(r.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t;return{token:new e((function(e){t=e})),cancel:t}},Qt=e}(),ge.isCancel=kt(),ge.VERSION=qt().version,ge.toFormData=it,ge.AxiosError=Q,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=te?Gt:(te=1,Gt=function(t){return function(e){return t.apply(null,e)}}),ge.isAxiosError=function(){if(ne)return ee;ne=1;var t=F;return ee=function(e){return t.isObject(e)&&!0===e.isAxiosError}}(),_.exports=ge,_.exports.default=ge,function(t){t.exports=_.exports}(y);const ye="lib"==={VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_BUILD_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/";a(y.exports).create({baseURL:ye});const _e=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",_e.levels),__publicField(this,"name"),__publicField(this,"updateDuration"),this.label=e,this.name=t,this.updateDuration=n,r.latest&&this.name in r.latest&&(this.latest=Math.round(parseFloat(r.latest[this.name])))}};let we=_e;function be(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(we,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:i},{min:150,color:o},{min:250,color:s}]);const Oe=Object.prototype.hasOwnProperty,Ee=(t,e)=>Oe.call(t,e),$e=Array.isArray,Se=t=>"[object Map]"===Te(t),De=t=>"symbol"==typeof t,Me=t=>null!==t&&"object"==typeof t,Re=Object.prototype.toString,Te=t=>Re.call(t),xe=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Ae=(t,e)=>!Object.is(t,e),Ne=t=>{const e=new Set(t);return e.w=0,e.n=0,e},je=new WeakMap;let Ce;const ke=Symbol(""),Pe=Symbol("");let Ue=!0;const Le=[];function Fe(t,e,n){0}function Be(t,e,n,r,i,o){const s=je.get(t);if(!s)return;let a=[];if("clear"===e)a=[...s.values()];else if("length"===n&&$e(t))s.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(s.get(n)),e){case"add":$e(t)?xe(n)&&a.push(s.get("length")):(a.push(s.get(ke)),Se(t)&&a.push(s.get(Pe)));break;case"delete":$e(t)||(a.push(s.get(ke)),Se(t)&&a.push(s.get(Pe)));break;case"set":Se(t)&&a.push(s.get(ke))}if(1===a.length)a[0]&&Ye(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);Ye(Ne(t))}}function Ye(t,e){const n=$e(t)?t:[...t];for(const r of n)r.computed&&Ie(r);for(const r of n)r.computed||Ie(r)}function Ie(t,e){(t!==Ce||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ze=be("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(De)),We=Ze(),qe=Ze(!0),Ve=Je();function Je(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=xn(this);for(let e=0,i=this.length;e<i;e++)Fe();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(xn)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){Le.push(Ue),Ue=!1;const n=xn(this)[e].apply(this,t);return function(){const t=Le.pop();Ue=void 0===t||t}(),n}})),t}function Ze(t=!1,e=!1){return function(n,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&i===(t?e?En:On:e?bn:wn).get(n))return n;const o=$e(n);if(!t&&o&&Ee(Ve,r))return Reflect.get(Ve,r,i);const s=Reflect.get(n,r,i);return(De(r)?He.has(r):ze(r))?s:(t||Fe(),e?s:jn(s)?o&&xe(r)?s:s.value:Me(s)?t?Dn(s):Sn(s):s)}}function Ke(t=!1){return function(e,n,r,i){let o=e[n];if(Rn(o)&&jn(o)&&!jn(r))return!1;if(!t&&(Tn(r)||Rn(r)||(o=xn(o),r=xn(r)),!$e(e)&&jn(o)&&!jn(r)))return o.value=r,!0;const s=$e(e)&&xe(n)?Number(n)<e.length:Ee(e,n),a=Reflect.set(e,n,r,i);return e===xn(i)&&(s?Ae(r,o)&&Be(e,"set",n,r):Be(e,"add",n,r)),a}}const Qe={get:We,set:Ke(),deleteProperty:function(t,e){const n=Ee(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Be(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return De(e)&&He.has(e)||Fe(),n},ownKeys:function(t){return Fe(0,0,$e(t)),Reflect.ownKeys(t)}},Xe={get:qe,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Ge=t=>t,tn=t=>Reflect.getPrototypeOf(t);function en(t,e,n=!1,r=!1){const i=xn(t=t.__v_raw),o=xn(e);n||(e!==o&&Fe(),Fe());const{has:s}=tn(i),a=r?Ge:n?Nn:An;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function nn(t,e=!1){const n=this.__v_raw,r=(xn(n),xn(t));return e||(t!==r&&Fe(),Fe()),t===r?n.has(t):n.has(t)||n.has(r)}function rn(t,e=!1){return t=t.__v_raw,!e&&Fe(xn(t)),Reflect.get(t,"size",t)}function on(t){t=xn(t);const e=xn(this);return tn(e).has.call(e,t)||(e.add(t),Be(e,"add",t,t)),this}function sn(t,e){e=xn(e);const n=xn(this),{has:r,get:i}=tn(n);let o=r.call(n,t);o||(t=xn(t),o=r.call(n,t));const s=i.call(n,t);return n.set(t,e),o?Ae(e,s)&&Be(n,"set",t,e):Be(n,"add",t,e),this}function an(t){const e=xn(this),{has:n,get:r}=tn(e);let i=n.call(e,t);i||(t=xn(t),i=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return i&&Be(e,"delete",t,void 0),o}function un(){const t=xn(this),e=0!==t.size,n=t.clear();return e&&Be(t,"clear",void 0,void 0),n}function cn(t,e){return function(n,r){const i=this,o=i.__v_raw,s=(xn(o),e?Ge:t?Nn:An);return!t&&Fe(),o.forEach(((t,e)=>n.call(r,s(t),s(e),i)))}}function fn(t,e,n){return function(...r){const i=this.__v_raw,o=xn(i),s=Se(o),a="entries"===t||t===Symbol.iterator&&s,u=i[t](...r),c=n?Ge:e?Nn:An;return!e&&Fe(),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function ln(t){return function(...e){return"delete"!==t&&this}}function hn(){const t={get(t){return en(this,t)},get size(){return rn(this)},has:nn,add:on,set:sn,delete:an,clear:un,forEach:cn(!1,!1)},e={get(t){return en(this,t,!1,!0)},get size(){return rn(this)},has:nn,add:on,set:sn,delete:an,clear:un,forEach:cn(!1,!0)},n={get(t){return en(this,t,!0)},get size(){return rn(this,!0)},has(t){return nn.call(this,t,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:cn(!0,!1)},r={get(t){return en(this,t,!0,!0)},get size(){return rn(this,!0)},has(t){return nn.call(this,t,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:cn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{t[i]=fn(i,!1,!1),n[i]=fn(i,!0,!1),e[i]=fn(i,!1,!0),r[i]=fn(i,!0,!0)})),[t,n,e,r]}const[dn,pn,mn,vn]=hn();function gn(t,e){const n=e?t?vn:mn:t?pn:dn;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(Ee(n,r)&&r in e?n:e,r,i)}const yn={get:gn(!1,!1)},_n={get:gn(!0,!1)},wn=new WeakMap,bn=new WeakMap,On=new WeakMap,En=new WeakMap;function $n(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Te(t).slice(8,-1))(t))}function Sn(t){return Rn(t)?t:Mn(t,!1,Qe,yn,wn)}function Dn(t){return Mn(t,!0,Xe,_n,On)}function Mn(t,e,n,r,i){if(!Me(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const s=$n(t);if(0===s)return t;const a=new Proxy(t,2===s?r:n);return i.set(t,a),a}function Rn(t){return!(!t||!t.__v_isReadonly)}function Tn(t){return!(!t||!t.__v_isShallow)}function xn(t){const e=t&&t.__v_raw;return e?xn(e):t}const An=t=>Me(t)?Sn(t):t,Nn=t=>Me(t)?Dn(t):t;function jn(t){return!(!t||!0!==t.__v_isRef)}class Cn{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:xn(t),this._value=e?t:An(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Tn(t)||Rn(t);var n;t=e?t:xn(t),Ae(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:An(t),(n=xn(n=this)).dep&&Ye(n.dep))}}class kn{constructor(t,e,n){__publicField(this,"id"),__publicField(this,"parameters"),__publicField(this,"taskName"),this.id=t,this.parameters=n,this.taskName=e}}new Event("MonitorsLoaded");const Pn=new function(){return new Worker("/assets/worker.e40e87c7.js")},Un=new class{constructor(t){__publicField(this,"globalTaskID",0),__publicField(this,"responders",new Map),__publicField(this,"worker"),this.worker=t,this.worker.onmessageerror=t=>console.error("worker failed: ",t),this.worker.onmessage=t=>{const{id:e,error:n,payload:r,success:i}=t.data,o=this.responders.get(e);i?o.resolve(r):n?o.reject(r):console.error(`Unknown response from background service "${this.constructor.name}"`,t),this.responders.delete(e)}}run(t,...e){const n=new kn(++this.globalTaskID,t,JSON.parse(JSON.stringify(e)));return new Promise(((t,e)=>{this.responders.set(n.id,{resolve:t,reject:e}),this.worker.postMessage(n)}))}}(Pn);var Ln,Fn;Fn=!1,jn(Ln={})||new Cn(Ln,Fn);const Bn={pm25:"#00ccff",pm25_avg_15:"#006699",pm25_avg_60:"#000033"};function Yn(t,e,n,r){r?t.push(v(r).utc().tz("America/Los_Angeles")):t.push(v(n.timestamp).utc().tz("America/Los_Angeles"));for(let i of e.keys())if(i in n){const t=e.get(i);let o;if(r)o=null;else{const t=parseFloat(n[i]);o=t>=0?t:0}t.push(o)}}we.levels.map((t=>[t.min,t.color])),we.levels.map((t=>[t.min,t.color]));var In=Object.freeze({__proto__:null,fetchChartData:async function(t,e){return async function(t,e,n=1){return await Un.run("fetchEntries",t,e,n)}(t,e).then((e=>{const n=[],r="PurpleAir"===t.data.device?2:60,i=new Map(Object.keys(Bn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=v(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),Yn(n,i,o,t)}Yn(n,i,o)}return[n.map((t=>t.unix())),...i.values()].filter((t=>t.length))}))}});new class{constructor(e,n){__publicField(this,"serviceModule"),__publicField(this,"serviceModuleName"),this.serviceModule=n,this.serviceModuleName=e,self.addEventListener("message",(async e=>{const{id:n,taskName:r,parameters:i}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...i).then((t=>o.pass(t))).catch((t=>o.fail(t.message))):o.fail(`Background task "${String(r)}" not found in "${this.serviceModuleName}" controller`),self.postMessage(o)}))}}("DataChartService",In)}();
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>SJVAir Monitor Map</title>
|
|
8
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
|
|
9
|
+
|
|
10
|
+
<style>
|
|
11
|
+
#SJVAirMonitorMap {
|
|
12
|
+
height: 100vh;
|
|
13
|
+
width: 100vw;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<script async type="module" crossorigin src="/assets/index.fab00cbe.js"></script>
|
|
17
|
+
<link rel="stylesheet" href="/assets/index.21b3aa4e.css">
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="SJVAirMonitorMap"></div>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sjvair/monitor-map",
|
|
3
|
+
"description": "SJVAir's interactive monitor map",
|
|
4
|
+
"files": [ "dist" ],
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "npm run build:standalone && npm run build:module",
|
|
10
|
+
"build:standalone": "vue-tsc --noEmit && vite build",
|
|
11
|
+
"build:module": "VITE_BUILD_MODE=lib npm run build:standalone",
|
|
12
|
+
"build:pages": "VITE_BUILD_MODE=ghp npm run build:standalone",
|
|
13
|
+
"preview": "vite preview"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@vuepic/vue-datepicker": "^3.4.8",
|
|
17
|
+
"axios": "^0.27.2",
|
|
18
|
+
"bulma": "^0.9.4",
|
|
19
|
+
"color2k": "^2.0.0",
|
|
20
|
+
"d3": "^7.6.1",
|
|
21
|
+
"dayjs": "^1.11.5",
|
|
22
|
+
"leaflet": "^1.8.0",
|
|
23
|
+
"leaflet-svg-shape-markers": "^1.4.0",
|
|
24
|
+
"uplot": "^1.6.22",
|
|
25
|
+
"vue": "^3.2.39",
|
|
26
|
+
"vue-router": "^4.1.5"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/d3": "^7.4.0",
|
|
30
|
+
"@types/leaflet": "^1.7.11",
|
|
31
|
+
"@types/node": "18.0.0",
|
|
32
|
+
"@vitejs/plugin-vue": "^3.1.0",
|
|
33
|
+
"i": "^0.3.7",
|
|
34
|
+
"npm": "^8.19.2",
|
|
35
|
+
"sass": "^1.54.9",
|
|
36
|
+
"terser": "^5.15.0",
|
|
37
|
+
"typescript": "^4.8.3",
|
|
38
|
+
"vite": "^3.1.0",
|
|
39
|
+
"vite-plugin-purgecss": "^0.2.12",
|
|
40
|
+
"vue-tsc": "^0.40.13"
|
|
41
|
+
}
|
|
42
|
+
}
|