@sjvair/monitor-map 1.22.0 → 1.31.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.
Files changed (33) hide show
  1. package/dist/monitor-map/MonitorDetails.css +1 -1
  2. package/dist/monitor-map/assets/BackgroundRequests.b811f4e4.js +1 -0
  3. package/dist/monitor-map/assets/BackgroundRequests.fb718a46.js +1 -0
  4. package/dist/monitor-map/assets/BackgroundRequests.ff888db2.js +1 -0
  5. package/dist/monitor-map/assets/DataChartWorker.4879ca86.js +1 -0
  6. package/dist/monitor-map/assets/{worker.e3868a15.js → EVWorker.5fdb7f1b.js} +1 -1
  7. package/dist/monitor-map/assets/MonitorDetails.5fbc6ab3.js +1 -0
  8. package/dist/monitor-map/assets/{worker.76e59e0d.js → MonitorsWorker.263f4f3d.js} +1 -1
  9. package/dist/monitor-map/assets/WorkerServiceClient.d1a832d7.js +1 -0
  10. package/dist/monitor-map/assets/requests.2674e766.js +1 -0
  11. package/dist/monitor-map/assets/requests.26b66e48.js +1 -0
  12. package/dist/monitor-map/assets/requests.c54587a0.js +1 -0
  13. package/dist/monitor-map/main.css +1 -1
  14. package/dist/monitor-map/sjvairMonitorMap.js +2 -2
  15. package/dist/widget/MonitorDetails.css +1 -1
  16. package/dist/widget/assets/BackgroundRequests.444b9ebd.js +1 -0
  17. package/dist/widget/assets/BackgroundRequests.55fa28ec.js +1 -0
  18. package/dist/widget/assets/BackgroundRequests.c65e8f1b.js +1 -0
  19. package/dist/widget/assets/DataChartWorker.442afa94.js +1 -0
  20. package/dist/widget/assets/{worker.6293c41b.js → EVWorker.cb641fcb.js} +1 -1
  21. package/dist/widget/assets/MonitorDetails.c7f32dc5.js +1 -0
  22. package/dist/widget/assets/{worker.13d5a241.js → MonitorsWorker.b72a0a2e.js} +1 -1
  23. package/dist/widget/assets/WorkerServiceClient.d1a832d7.js +1 -0
  24. package/dist/widget/assets/requests.2f635b8a.js +1 -0
  25. package/dist/widget/assets/requests.391a0be3.js +1 -0
  26. package/dist/widget/assets/requests.7d7b6ced.js +1 -0
  27. package/dist/widget/main.css +1 -1
  28. package/dist/widget/sjvairMonitorMap.js +2 -2
  29. package/package.json +3 -3
  30. package/dist/monitor-map/assets/MonitorDetails.81525d0f.js +0 -1
  31. package/dist/monitor-map/assets/worker.30809057.js +0 -1
  32. package/dist/widget/assets/MonitorDetails.fc9add1d.js +0 -1
  33. package/dist/widget/assets/worker.da2ca2dd.js +0 -1
@@ -1 +0,0 @@
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",s="ff0000",o="8f3f97",i="7e0023";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var a={exports:{}};a.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",o="minute",i="hour",a="day",u="week",c="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,g={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("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(s,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()),s=e.clone().add(r,c),o=n-s<0,i=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:u,d:a,D:h,h:i,m:o,s:s,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=g;var _=function(t){return t instanceof $},O=function t(e,n,r){var s;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(s=o),n&&(b[o]=n,s=o);var i=e.split("-");if(!s&&i.length>1)return t(i[0])}else{var a=e.name;b[a]=e,s=a}return!r&&s&&(w=s),s||!r&&w},E=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new $(n)},S=v;S.l=O,S.i=_,S.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var $=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t)}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.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 s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.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()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=E(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return E(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<E(t)},y.$g=function(t,e,n){return S.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,r=!!S.u(e)||e,l=S.p(t),d=function(t,e){var s=S.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(a)},p=function(t,e){return S.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case f:return r?d(1,0):d(31,11);case c:return r?d(1,g):d(0,g+1);case u:var w=this.$locale().weekStart||0,b=(m<w?m+7:m)-w;return d(r?y-b:y+(6-b),g);case a:case h:return p(v+"Hours",0);case i:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case s:return p(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var n,u=S.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[a]=l+"Date",n[h]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[i]=l+"Hours",n[o]=l+"Minutes",n[s]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===a?this.$D+(e-this.$W):e;if(u===c||u===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},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(r,l){var h,d=this;r=Number(r);var p=S.p(l),m=function(t){var e=E(d);return S.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return m(1);if(p===u)return m(7);var g=(h={},h[o]=e,h[i]=n,h[s]=t,h)[p]||1,y=this.$d.getTime()+r*g;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),o=this.$H,i=this.$m,a=this.$M,u=n.weekdays,c=n.months,l=function(t,n,s,o){return t&&(t[n]||t(e,r))||s[n].slice(0,o)},f=function(t){return S.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.s(a+1,2,"0"),MMM:l(n.monthsShort,a,c,3),MMMM:l(c,a),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:S.s(o,2,"0"),h:f(1),hh:f(2),a:h(o,i,!0),A:h(o,i,!1),m:String(i),mm:S.s(i,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:s};return r.replace(m,(function(t,e){return e||p[t]||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var p,m=S.p(h),g=E(r),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,w=S.m(this,g);return w=(p={},p[f]=w/12,p[c]=w,p[l]=w/3,p[u]=(v-y)/6048e5,p[a]=(v-y)/864e5,p[i]=v/n,p[o]=v/e,p[s]=v/t,p)[m]||v,d?w:S.a(w)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=O(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=$.prototype;return E.prototype=D,[["$ms",r],["$s",s],["$m",o],["$H",i],["$W",a],["$M",c],["$y",f],["$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,$,E),t.$i=!0),E},E.locale=O,E.isDayjs=_,E.unix=function(t){return E(1e3*t)},E.en=b[w],E.Ls=b,E.p={},E}();var u=a.exports,c={exports:{}};!function(t,e){t.exports=function(t,e,n){t=t||{};var r=e.prototype,s={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,s){return r.fromToBase(t,e,n,s)}n.en.relativeTime=s,r.fromToBase=function(e,r,o,i,a){for(var u,c,l,f=o.$locale().relativeTime||s,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=i?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(u));if(l=u>0,g<=m.r||!m.r){g<=1&&p>0&&(m=h[p-1]);var y=f[m.l];a&&(g=a(""+g)),c="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return c;var v=l?f.future:f.past;return"function"==typeof v?v(c):v.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 i=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(i(this),t)},r.fromNow=function(t){return this.from(i(this),t)}}}(c);var l=c.exports,f={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,s){var o,i=function(t,e,n){void 0===n&&(n={});var s=new Date(t);return function(t,e){void 0===e&&(e={});var n=e.timeZoneName||"short",s=t+"|"+n,o=r[s];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[s]=o),o}(e,n).formatToParts(s)},a=function(t,e){for(var r=i(t,e),o=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,l=u.value,f=n[c];f>=0&&(o[f]=parseInt(l,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(s.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(),i=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(i))/1e3/60),u=s(i).$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||s.tz.guess(),n=i(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=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},s.tz=function(t,e,n){var r=n&&e,i=n||e||o,u=a(+s(),i);if("string"!=typeof t)return s(t).tz(i);var c=function(t,e,n){var r=t-60*e*1e3,s=a(r,n);if(e===s)return[r,e];var o=a(r-=60*(s-e)*1e3,n);return s===o?[r,s]:[t-60*Math.min(s,o)*1e3,Math.max(s,o)]}(s.utc(t,r).valueOf(),u,i),l=c[0],f=c[1],h=s(l).utcOffset(f);return h.$x.$timezone=i,h},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(t){o=t}})}(f);var h=f.exports,d={exports:{}};!function(t,e){var n,r,s;t.exports=(n="minute",r=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,e,o){var i=e.prototype;o.utc=function(t){return new e({date:t,utc:!0,args:arguments})},i.utc=function(t){var e=o(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),n):e},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=i.init;i.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=i.utcOffset;i.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(s)||["-",0,0],o=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===o?i:-i}(t)))return this;var i=Math.abs(t)<=16?60*t:t,a=this;if(e)return a.$offset=i,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(i+u,n)).$offset=i,a.$x.$localOffset=u}else a=this.utc();return a};var l=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var f=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=i.diff;i.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),s=o(t).local();return h.call(r,s,e,n)}})}(d);var p=d.exports;u.$defaultFormat=function(t){return u.utc(t).format("YYYY-MM-DD HH:mm:ss")},u.$prettyPrint=function(t){return u(t).format("h:mma dddd MMM DD, YYYY")};u.extend(l),u.extend(h),u.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}})),u.extend(p);const m=u;function g(t,e){return function(){return t.apply(e,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:v}=Object,w=(b=Object.create(null),t=>{const e=y.call(t);return b[e]||(b[e]=e.slice(8,-1).toLowerCase())});var b;const _=t=>(t=t.toLowerCase(),e=>w(e)===t),O=t=>e=>typeof e===t,{isArray:E}=Array,S=O("undefined");const $=_("ArrayBuffer");const D=O("string"),R=O("function"),T=O("number"),M=t=>null!==t&&"object"==typeof t,x=t=>{if("object"!==w(t))return!1;const e=v(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},A=_("Date"),j=_("File"),N=_("Blob"),C=_("FileList"),F=_("URLSearchParams");function P(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,s;if("object"!=typeof t&&(t=[t]),E(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let i;for(r=0;r<o;r++)i=s[r],e.call(null,t[i],i,t)}}const k=(U="undefined"!=typeof Uint8Array&&v(Uint8Array),t=>U&&t instanceof U);var U;const L=_("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),z=_("RegExp"),I=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};P(n,((n,s)=>{!1!==e(n,s,t)&&(r[s]=n)})),Object.defineProperties(t,r)};var Y={isArray:E,isArrayBuffer:$,isBuffer:function(t){return null!==t&&!S(t)&&null!==t.constructor&&!S(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||R(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&$(t.buffer),e},isString:D,isNumber:T,isBoolean:t=>!0===t||!1===t,isObject:M,isPlainObject:x,isUndefined:S,isDate:A,isFile:j,isBlob:N,isRegExp:z,isFunction:R,isStream:t=>M(t)&&R(t.pipe),isURLSearchParams:F,isTypedArray:k,isFileList:C,forEach:P,merge:function t(){const e={},n=(n,r)=>{x(e[r])&&x(n)?e[r]=t(e[r],n):x(n)?e[r]=t({},n):E(n)?e[r]=n.slice():e[r]=n};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&P(arguments[r],n);return e},extend:(t,e,n,{allOwnKeys:r}={})=>(P(e,((e,r)=>{n&&R(e)?t[r]=g(e,n):t[r]=e}),{allOwnKeys:r}),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,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],r&&!r(i,t,e)||a[i]||(e[i]=t[i],a[i]=!0);t=!1!==n&&v(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:w,kindOfTest:_,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(E(t))return t;let e=t.length;if(!T(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,n)=>{const r=t[n];R(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return E(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e)};function H(t,e,n,r,s){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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Y.inherits(H,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}}});const V=H.prototype,W={};["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=>{W[t]={value:t}})),Object.defineProperties(H,W),Object.defineProperty(V,"isAxiosError",{value:!0}),H.from=(t,e,n,r,s,o)=>{const i=Object.create(V);return Y.toFlatObject(t,i,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),H.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};var q="object"==typeof self?self.FormData:window.FormData;function J(t){return Y.isPlainObject(t)||Y.isArray(t)}function K(t){return Y.endsWith(t,"[]")?t.slice(0,-2):t}function Z(t,e,n){return t?t.concat(e).map((function(t,e){return t=K(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Q=Y.toFlatObject(Y,{},null,(function(t){return/^is[A-Z]/.test(t)}));function X(t,e,n){if(!Y.isObject(t))throw new TypeError("target must be an object");e=e||new(q||FormData);const r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Y.isUndefined(e[t])}))).metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((u=e)&&Y.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator]);var u;if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Y.isDate(t))return t.toISOString();if(!a&&Y.isBlob(t))throw new H("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(t)||Y.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,n,s){let a=t;if(t&&!s&&"object"==typeof t)if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Y.isArray(t)&&function(t){return Y.isArray(t)&&!t.some(J)}(t)||Y.isFileList(t)||Y.endsWith(n,"[]")&&(a=Y.toArray(t)))return n=K(n),a.forEach((function(t,r){!Y.isUndefined(t)&&null!==t&&e.append(!0===i?Z([n],r,o):null===i?n:n+"[]",c(t))})),!1;return!!J(t)||(e.append(Z(s,n,o),c(t)),!1)}const f=[],h=Object.assign(Q,{defaultVisitor:l,convertValue:c,isVisitable:J});if(!Y.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Y.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),Y.forEach(n,(function(n,o){!0===(!(Y.isUndefined(n)||null===n)&&s.call(e,n,Y.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),f.pop()}}(t),e}function G(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&X(t,this,e)}const et=tt.prototype;function nt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rt(t,e,n){if(!e)return t;const r=n&&n.encode||nt,s=n&&n.serialize;let o;if(o=s?s(e,n):Y.isURLSearchParams(e)?e.toString():new tt(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){const e=t?function(e){return t.call(this,e,G)}:G;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class st{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},it="undefined"!=typeof URLSearchParams?URLSearchParams:tt,at=FormData;const ut=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})();var ct={isBrowser:!0,classes:{URLSearchParams:it,FormData:at,Blob:Blob},isStandardBrowserEnv:ut,protocols:["http","https","file","blob","url","data"]};function lt(t){function e(t,n,r,s){let o=t[s++];const i=Number.isFinite(+o),a=s>=t.length;if(o=!o&&Y.isArray(r)?r.length:o,a)return Y.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i;r[o]&&Y.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],s)&&Y.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}(r[o])),!i}if(Y.isFormData(t)&&Y.isFunction(t.entries)){const n={};return Y.forEachEntry(t,((t,r)=>{e(function(t){return Y.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}var ft=ct.isStandardBrowserEnv?{write:function(t,e,n,r,s,o){const i=[];i.push(t+"="+encodeURIComponent(e)),Y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&i.push("path="+r),Y.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read:function(t){const 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(){}};function ht(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var dt=ct.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Y.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function pt(t,e,n){H.call(this,null==t?"canceled":t,H.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(pt,H,{__CANCEL__:!0});const mt=Y.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 gt=Symbol("internals"),yt=Symbol("defaults");function vt(t){return t&&String(t).trim().toLowerCase()}function wt(t){return!1===t||null==t?t:Y.isArray(t)?t.map(wt):String(t)}function bt(t,e,n,r){return Y.isFunction(r)?r.call(this,e,n):Y.isString(e)?Y.isString(r)?-1!==e.indexOf(r):Y.isRegExp(r)?r.test(e):void 0:void 0}function _t(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,s=n.length;for(;s-- >0;)if(r=n[s],e===r.toLowerCase())return r;return null}function Ot(t,e){t&&this.set(t),this[yt]=e||null}function Et(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s,o=0,i=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[i];s||(s=u),n[o]=a,r[o]=u;let l=i,f=0;for(;l!==o;)f+=n[l++],l%=t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const h=c&&u-c;return h?Math.round(1e3*f/h):void 0}}(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,u=r(a);n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:u||void 0,estimated:u&&i&&o<=i?(i-o)/u:void 0};c[e?"download":"upload"]=!0,t(c)}}function St(t){return new Promise((function(e,n){let r=t.data;const s=Ot.from(t.headers).normalize(),o=t.responseType;let i;function a(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}Y.isFormData(r)&&ct.isStandardBrowserEnv&&s.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(e+":"+n))}const c=ht(t.baseURL,t.url);function l(){if(!u)return;const r=Ot.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),a()}),(function(t){n(t),a()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),rt(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new H("Request aborted",H.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new H("Network Error",H.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ot;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new H(e,r.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,u)),u=null},ct.isStandardBrowserEnv){const e=(t.withCredentials||dt(c))&&t.xsrfCookieName&&ft.read(t.xsrfCookieName);e&&s.set(t.xsrfHeaderName,e)}void 0===r&&s.setContentType(null),"setRequestHeader"in u&&Y.forEach(s.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Y.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Et(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Et(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{u&&(n(!e||e.type?new pt(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(c);f&&-1===ct.protocols.indexOf(f)?n(new H("Unsupported protocol "+f+":",H.ERR_BAD_REQUEST,t)):u.send(r||null)}))}Object.assign(Ot.prototype,{set:function(t,e,n){const r=this;function s(t,e,n){const s=vt(e);if(!s)throw new Error("header name must be a non-empty string");const o=_t(r,s);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||e]=wt(t))}return Y.isPlainObject(t)?Y.forEach(t,((t,n)=>{s(t,n,e)})):s(e,t,n),this},get:function(t,e){if(!(t=vt(t)))return;const n=_t(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Y.isFunction(e))return e.call(this,t,n);if(Y.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}},has:function(t,e){if(t=vt(t)){const n=_t(this,t);return!(!n||e&&!bt(0,this[n],n,e))}return!1},delete:function(t,e){const n=this;let r=!1;function s(t){if(t=vt(t)){const s=_t(n,t);!s||e&&!bt(0,n[s],s,e)||(delete n[s],r=!0)}}return Y.isArray(t)?t.forEach(s):s(t),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(t){const e=this,n={};return Y.forEach(this,((r,s)=>{const o=_t(n,s);if(o)return e[o]=wt(r),void delete e[s];const i=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(s):String(s).trim();i!==s&&delete e[s],e[i]=wt(r),n[i]=!0})),this},toJSON:function(t){const e=Object.create(null);return Y.forEach(Object.assign({},this[yt]||null,this),((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Y.isArray(n)?n.join(", "):n)})),e}}),Object.assign(Ot,{from:function(t){return Y.isString(t)?new this((t=>{const e={};let n,r,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),n=t.substring(0,s).trim().toLowerCase(),r=t.substring(s+1).trim(),!n||e[n]&&mt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t)):t instanceof this?t:new this(t)},accessor:function(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(!function(t,e){const n=Y.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,s){return this[r].call(this,e,t,n,s)},configurable:!0})}))}(n,t),e[r]=!0)}return Y.isArray(t)?t.forEach(r):r(t),this}}),Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Y.freezeMethods(Ot.prototype),Y.freezeMethods(Ot);const $t={http:St,xhr:St};var Dt=t=>{if(Y.isString(t)){const e=$t[t];if(!t)throw Error(Y.hasOwnProp(t)?`Adapter '${t}' is not available in the build`:`Can not resolve adapter '${t}'`);return e}if(!Y.isFunction(t))throw new TypeError("adapter is not a function");return t};const Rt={"Content-Type":"application/x-www-form-urlencoded"};const Tt={transitional:ot,adapter:function(){let t;return"undefined"!=typeof XMLHttpRequest?t=Dt("xhr"):"undefined"!=typeof process&&"process"===Y.kindOf(process)&&(t=Dt("http")),t}(),transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,s=Y.isObject(t);s&&Y.isHTMLForm(t)&&(t=new FormData(t));if(Y.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return X(t,new ct.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return ct.isNode&&Y.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Y.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return X(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),function(t,e,n){if(Y.isString(t))try{return(e||JSON.parse)(t),Y.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Tt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Y.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(n){if("SyntaxError"===s.name)throw H.from(s,H.ERR_BAD_RESPONSE,this,null,this.response);throw s}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Mt(t,e){const n=this||Tt,r=e||n,s=Ot.from(r.headers);let o=r.data;return Y.forEach(t,(function(t){o=t.call(n,o,s.normalize(),e?e.status:void 0)})),s.normalize(),o}function xt(t){return!(!t||!t.__CANCEL__)}function At(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pt}function jt(t){At(t),t.headers=Ot.from(t.headers),t.data=Mt.call(t,t.transformRequest);return(t.adapter||Tt.adapter)(t).then((function(e){return At(t),e.data=Mt.call(t,t.transformResponse,e),e.headers=Ot.from(e.headers),e}),(function(e){return xt(e)||(At(t),e&&e.response&&(e.response.data=Mt.call(t,t.transformResponse,e.response),e.response.headers=Ot.from(e.response.headers))),Promise.reject(e)}))}function Nt(t,e){e=e||{};const n={};function r(t,e){return Y.isPlainObject(t)&&Y.isPlainObject(e)?Y.merge(t,e):Y.isPlainObject(e)?Y.merge({},e):Y.isArray(e)?e.slice():e}function s(n){return Y.isUndefined(e[n])?Y.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function o(t){if(!Y.isUndefined(e[t]))return r(void 0,e[t])}function i(n){return Y.isUndefined(e[n])?Y.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}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a};return Y.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){const e=u[t]||s,r=e(t);Y.isUndefined(r)&&e!==a||(n[t]=r)})),n}Y.forEach(["delete","get","head"],(function(t){Tt.headers[t]={}})),Y.forEach(["post","put","patch"],(function(t){Tt.headers[t]=Y.merge(Rt)}));const Ct="1.1.3",Ft={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ft[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Ft.transitional=function(t,e,n){function r(t,e){return"[Axios v1.1.3] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,s,o)=>{if(!1===t)throw new H(r(s," has been removed"+(e?" in "+e:"")),H.ERR_DEPRECATED);return e&&!Pt[s]&&(Pt[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,s,o)}};var kt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const e=t[o],n=void 0===e||i(e,o,t);if(!0!==n)throw new H("option "+o+" must be "+n,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+o,H.ERR_BAD_OPTION)}},validators:Ft};const Ut=kt.validators;class Lt{constructor(t){this.defaults=t,this.interceptors={request:new st,response:new st}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r}=e;void 0!==n&&kt.assertOptions(n,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),void 0!==r&&kt.assertOptions(r,{encode:Ut.function,serialize:Ut.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();const s=e.headers&&Y.merge(e.headers.common,e.headers[e.method]);s&&Y.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),e.headers=new Ot(e.headers,s);const o=[];let i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const a=[];let u;this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)}));let c,l=0;if(!i){const t=[jt.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,a),c=t.length,u=Promise.resolve(e);l<c;)u=u.then(t[l++],t[l++]);return u}c=o.length;let f=e;for(l=0;l<c;){const t=o[l++],e=o[l++];try{f=t(f)}catch(h){e.call(this,h);break}}try{u=jt.call(this,f)}catch(h){return Promise.reject(h)}for(l=0,c=a.length;l<c;)u=u.then(a[l++],a[l++]);return u}getUri(t){return rt(ht((t=Nt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Y.forEach(["delete","get","head","options"],(function(t){Lt.prototype[t]=function(e,n){return this.request(Nt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Y.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,s){return this.request(Nt(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[t]=e(),Lt.prototype[t+"Form"]=e(!0)}));class Bt{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 n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,s){n.reason||(n.reason=new pt(t,r,s),e(n.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)}static source(){let t;return{token:new Bt((function(e){t=e})),cancel:t}}}const zt=function t(e){const n=new Lt(e),r=g(Lt.prototype.request,n);return Y.extend(r,Lt.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Nt(e,n))},r}(Tt);zt.Axios=Lt,zt.CanceledError=pt,zt.CancelToken=Bt,zt.isCancel=xt,zt.VERSION=Ct,zt.toFormData=X,zt.AxiosError=H,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Y.isObject(t)&&!0===t.isAxiosError},zt.formToJSON=t=>lt(Y.isHTMLForm(t)?new FormData(t):t);const It="leach"!=={VITE_BUILD_MODE:"mod",VITE_MAPTILER_KEY:"NvYyjimTkUQBEjVebxLV",VITE_NREL_KEY:"BThVJdnwHbO8hDpQkBdeqsUoeXhQuMgMRgO3hvyo",VITE_OPENWEATHERMAP_KEY:"09b21cd89a07eaa465d3d9c2b2a6d0c3",BASE_URL:"/static/monitor-map/",MODE:"production",DEV:!1,PROD:!0}.VITE_REQUEST_MODE?"/api/1.0/":"https://www.sjvair.com/api/1.0/";zt.create({baseURL:It});const Yt=class{constructor(t,e,n,r){__publicField(this,"label"),__publicField(this,"latest"),__publicField(this,"levels",Yt.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 Ht=Yt;function Vt(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}__publicField(Ht,"levels",[{min:-1/0,color:e},{min:12,color:n},{min:35,color:r},{min:55,color:s},{min:150,color:o},{min:250,color:i}]);const Wt=Object.prototype.hasOwnProperty,qt=(t,e)=>Wt.call(t,e),Jt=Array.isArray,Kt=t=>"[object Map]"===Gt(t),Zt=t=>"symbol"==typeof t,Qt=t=>null!==t&&"object"==typeof t,Xt=Object.prototype.toString,Gt=t=>Xt.call(t),te=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ee=(t,e)=>!Object.is(t,e),ne=t=>{const e=new Set(t);return e.w=0,e.n=0,e},re=new WeakMap;let se;const oe=Symbol(""),ie=Symbol("");let ae=!0;const ue=[];function ce(t,e,n){0}function le(t,e,n,r,s,o){const i=re.get(t);if(!i)return;let a=[];if("clear"===e)a=[...i.values()];else if("length"===n&&Jt(t))i.forEach(((t,e)=>{("length"===e||e>=r)&&a.push(t)}));else switch(void 0!==n&&a.push(i.get(n)),e){case"add":Jt(t)?te(n)&&a.push(i.get("length")):(a.push(i.get(oe)),Kt(t)&&a.push(i.get(ie)));break;case"delete":Jt(t)||(a.push(i.get(oe)),Kt(t)&&a.push(i.get(ie)));break;case"set":Kt(t)&&a.push(i.get(oe))}if(1===a.length)a[0]&&fe(a[0]);else{const t=[];for(const e of a)e&&t.push(...e);fe(ne(t))}}function fe(t,e){const n=Jt(t)?t:[...t];for(const r of n)r.computed&&he(r);for(const r of n)r.computed||he(r)}function he(t,e){(t!==se||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const de=Vt("__proto__,__v_isRef,__isVue"),pe=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(Zt)),me=we(),ge=we(!0),ye=ve();function ve(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Ge(this);for(let e=0,s=this.length;e<s;e++)ce();const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Ge)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){ue.push(ae),ae=!1;const n=Ge(this)[e].apply(this,t);return function(){const t=ue.pop();ae=void 0===t||t}(),n}})),t}function we(t=!1,e=!1){return function(n,r,s){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&s===(t?e?We:Ve:e?He:Ye).get(n))return n;const o=Jt(n);if(!t&&o&&qt(ye,r))return Reflect.get(ye,r,s);const i=Reflect.get(n,r,s);return(Zt(r)?pe.has(r):de(r))?i:(t||ce(),e?i:nn(i)?o&&te(r)?i:i.value:Qt(i)?t?Ke(i):Je(i):i)}}function be(t=!1){return function(e,n,r,s){let o=e[n];if(Qe(o)&&nn(o)&&!nn(r))return!1;if(!t&&(Xe(r)||Qe(r)||(o=Ge(o),r=Ge(r)),!Jt(e)&&nn(o)&&!nn(r)))return o.value=r,!0;const i=Jt(e)&&te(n)?Number(n)<e.length:qt(e,n),a=Reflect.set(e,n,r,s);return e===Ge(s)&&(i?ee(r,o)&&le(e,"set",n,r):le(e,"add",n,r)),a}}const _e={get:me,set:be(),deleteProperty:function(t,e){const n=qt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&le(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return Zt(e)&&pe.has(e)||ce(),n},ownKeys:function(t){return ce(0,0,Jt(t)),Reflect.ownKeys(t)}},Oe={get:ge,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},Ee=t=>t,Se=t=>Reflect.getPrototypeOf(t);function $e(t,e,n=!1,r=!1){const s=Ge(t=t.__v_raw),o=Ge(e);n||(e!==o&&ce(),ce());const{has:i}=Se(s),a=r?Ee:n?en:tn;return i.call(s,e)?a(t.get(e)):i.call(s,o)?a(t.get(o)):void(t!==s&&t.get(e))}function De(t,e=!1){const n=this.__v_raw,r=(Ge(n),Ge(t));return e||(t!==r&&ce(),ce()),t===r?n.has(t):n.has(t)||n.has(r)}function Re(t,e=!1){return t=t.__v_raw,!e&&ce(Ge(t)),Reflect.get(t,"size",t)}function Te(t){t=Ge(t);const e=Ge(this);return Se(e).has.call(e,t)||(e.add(t),le(e,"add",t,t)),this}function Me(t,e){e=Ge(e);const n=Ge(this),{has:r,get:s}=Se(n);let o=r.call(n,t);o||(t=Ge(t),o=r.call(n,t));const i=s.call(n,t);return n.set(t,e),o?ee(e,i)&&le(n,"set",t,e):le(n,"add",t,e),this}function xe(t){const e=Ge(this),{has:n,get:r}=Se(e);let s=n.call(e,t);s||(t=Ge(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&le(e,"delete",t,void 0),o}function Ae(){const t=Ge(this),e=0!==t.size,n=t.clear();return e&&le(t,"clear",void 0,void 0),n}function je(t,e){return function(n,r){const s=this,o=s.__v_raw,i=(Ge(o),e?Ee:t?en:tn);return!t&&ce(),o.forEach(((t,e)=>n.call(r,i(t),i(e),s)))}}function Ne(t,e,n){return function(...r){const s=this.__v_raw,o=Ge(s),i=Kt(o),a="entries"===t||t===Symbol.iterator&&i,u=s[t](...r),c=n?Ee:e?en:tn;return!e&&ce(),{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 Ce(t){return function(...e){return"delete"!==t&&this}}function Fe(){const t={get(t){return $e(this,t)},get size(){return Re(this)},has:De,add:Te,set:Me,delete:xe,clear:Ae,forEach:je(!1,!1)},e={get(t){return $e(this,t,!1,!0)},get size(){return Re(this)},has:De,add:Te,set:Me,delete:xe,clear:Ae,forEach:je(!1,!0)},n={get(t){return $e(this,t,!0)},get size(){return Re(this,!0)},has(t){return De.call(this,t,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:je(!0,!1)},r={get(t){return $e(this,t,!0,!0)},get size(){return Re(this,!0)},has(t){return De.call(this,t,!0)},add:Ce("add"),set:Ce("set"),delete:Ce("delete"),clear:Ce("clear"),forEach:je(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((s=>{t[s]=Ne(s,!1,!1),n[s]=Ne(s,!0,!1),e[s]=Ne(s,!1,!0),r[s]=Ne(s,!0,!0)})),[t,n,e,r]}const[Pe,ke,Ue,Le]=Fe();function Be(t,e){const n=e?t?Le:Ue:t?ke:Pe;return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(qt(n,r)&&r in e?n:e,r,s)}const ze={get:Be(!1,!1)},Ie={get:Be(!0,!1)},Ye=new WeakMap,He=new WeakMap,Ve=new WeakMap,We=new WeakMap;function qe(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=>Gt(t).slice(8,-1))(t))}function Je(t){return Qe(t)?t:Ze(t,!1,_e,ze,Ye)}function Ke(t){return Ze(t,!0,Oe,Ie,Ve)}function Ze(t,e,n,r,s){if(!Qt(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=qe(t);if(0===i)return t;const a=new Proxy(t,2===i?r:n);return s.set(t,a),a}function Qe(t){return!(!t||!t.__v_isReadonly)}function Xe(t){return!(!t||!t.__v_isShallow)}function Ge(t){const e=t&&t.__v_raw;return e?Ge(e):t}const tn=t=>Qt(t)?Je(t):t,en=t=>Qt(t)?Ke(t):t;function nn(t){return!(!t||!0!==t.__v_isRef)}function rn(t){return function(t,e){if(nn(t))return t;return new sn(t,e)}(t,!1)}class sn{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Ge(t),this._value=e?t:tn(t)}get value(){return this._value}set value(t){const e=this.__v_isShallow||Xe(t)||Qe(t);var n;t=e?t:Ge(t),ee(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:tn(t),(n=Ge(n=this)).dep&&fe(n.dep))}}class on{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 an=new function(){return new Worker("/static/monitor-map/assets/worker.76e59e0d.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:s}=t.data,o=this.responders.get(e);s?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 on(++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)}))}}(an);rn({}),rn([]);const cn={pm25:"#00ccff",pm25_avg_60:"#000033"};Ht.levels.map((t=>[t.min,t.color]));function ln(t,e,n,r){r?t.push(m(r).utc().tz("America/Los_Angeles")):t.push(m(n.timestamp).utc().tz("America/Los_Angeles"));for(let s of e.keys())if(s in n){const t=e.get(s);let o;if(r)o=null;else{const t=parseFloat(n[s]);o=t>=0?t:0}t.push(o)}}Ht.levels.map((t=>[t.min,t.color])).push([1/0,"000000"]);var fn=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,s=new Map(Object.keys(cn).map((t=>[t,[]])));for(let t=e.length-1;t>=0;t--){const o=e[t];if(n.length>1){let t=m(n[n.length-1]);for(;t.skewedDiff(o.timestamp,r)>r+1;)t=t.add(r,"m"),ln(n,s,o,t)}ln(n,s,o)}return[n.map((t=>t.unix())),...s.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:s}=e.data;this.serviceModule[r];const o=new t(n);r in this.serviceModule?await this.serviceModule[r](...s).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",fn)}();