pangea-helpers 1.0.21 → 1.0.23
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/dist/main.cjs.js +17 -0
- package/dist/main.es.js +6121 -0
- package/dist/types/main.d.ts +8 -0
- package/package.json +8 -42
- package/dist/animation-6901ffc4.cjs +0 -1
- package/dist/animation-af1322b3.js +0 -24
- package/dist/animation.cjs.js +0 -1
- package/dist/animation.es.js +0 -4
- package/dist/coin-251f810c.js +0 -1466
- package/dist/coin-fe1122f0.cjs +0 -6
- package/dist/coin.cjs.js +0 -1
- package/dist/coin.es.js +0 -6
- package/dist/datetime-9d947e21.cjs +0 -1
- package/dist/datetime-dbf7ffd9.js +0 -29
- package/dist/datetime.cjs.js +0 -1
- package/dist/datetime.es.js +0 -4
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -16
- package/dist/number-355de26b.js +0 -14
- package/dist/number-48ed1448.cjs +0 -1
- package/dist/number.cjs.js +0 -1
- package/dist/number.es.js +0 -4
- package/dist/object-7a404c78.js +0 -2610
- package/dist/object-d8cc8ea7.cjs +0 -10
- package/dist/object.cjs.js +0 -1
- package/dist/object.es.js +0 -5
- package/dist/token-3d1b3c32.cjs +0 -3
- package/dist/token-3f22e6d2.js +0 -1984
- package/dist/token.cjs.js +0 -1
- package/dist/token.es.js +0 -4
- package/dist/types/animation.d.ts +0 -1
- package/dist/types/coin.d.ts +0 -1
- package/dist/types/datetime.d.ts +0 -1
- package/dist/types/number.d.ts +0 -1
- package/dist/types/object.d.ts +0 -1
- package/dist/types/token.d.ts +0 -1
- package/dist/types/url.d.ts +0 -1
- package/dist/url-4fb04989.cjs +0 -1
- package/dist/url-9802dbc9.js +0 -24
- package/dist/url.cjs.js +0 -1
- package/dist/url.es.js +0 -4
package/dist/main.cjs.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var wo=Object.defineProperty;var _o=(e,t,r)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var kr=(e,t,r)=>(_o(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Eo(e,t,r="animate__"){return new Promise(n=>{const s=`${r}${t}`,i=document.querySelector(e);if(i){i.classList.add(`${r}animated`,s);const a=o=>{o.stopPropagation(),i==null||i.classList.remove(`${r}animated`,s),n("Animation ended")};i.addEventListener("animationend",a,{once:!0})}})}const bo=Object.freeze(Object.defineProperty({__proto__:null,animateCSS:Eo},Symbol.toStringTag,{value:"Module"}));function ii(e,t){return function(){return e.apply(t,arguments)}}const{toString:vo}=Object.prototype,{getPrototypeOf:fn}=Object,nr=(e=>t=>{const r=vo.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ge=e=>(e=e.toLowerCase(),t=>nr(t)===e),sr=e=>t=>typeof t===e,{isArray:tt}=Array,mt=sr("undefined");function Oo(e){return e!==null&&!mt(e)&&e.constructor!==null&&!mt(e.constructor)&&ne(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ai=ge("ArrayBuffer");function To(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ai(e.buffer),t}const Ro=sr("string"),ne=sr("function"),oi=sr("number"),ir=e=>e!==null&&typeof e=="object",$o=e=>e===!0||e===!1,Yt=e=>{if(nr(e)!=="object")return!1;const t=fn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Do=ge("Date"),No=ge("File"),Ao=ge("Blob"),ko=ge("FileList"),Io=e=>ir(e)&&ne(e.pipe),Po=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ne(e.append)&&((t=nr(e))==="formdata"||t==="object"&&ne(e.toString)&&e.toString()==="[object FormData]"))},Mo=ge("URLSearchParams"),Lo=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _t(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),tt(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function li(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ui=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ci=e=>!mt(e)&&e!==ui;function zr(){const{caseless:e}=ci(this)&&this||{},t={},r=(n,s)=>{const i=e&&li(t,s)||s;Yt(t[i])&&Yt(n)?t[i]=zr(t[i],n):Yt(n)?t[i]=zr({},n):tt(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&_t(arguments[n],r);return t}const xo=(e,t,r,{allOwnKeys:n}={})=>(_t(t,(s,i)=>{r&&ne(s)?e[i]=ii(s,r):e[i]=s},{allOwnKeys:n}),e),Yo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Co=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Fo=(e,t,r,n)=>{let s,i,a;const o={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=r!==!1&&fn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},jo=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Uo=e=>{if(!e)return null;if(tt(e))return e;let t=e.length;if(!oi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Wo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fn(Uint8Array)),Ho=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Vo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Bo=ge("HTMLFormElement"),Go=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),ts=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zo=ge("RegExp"),fi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_t(r,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(n[i]=a||s)}),Object.defineProperties(e,n)},qo=e=>{fi(e,(t,r)=>{if(ne(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ne(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jo=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return tt(e)?n(e):n(String(e).split(t)),r},Xo=()=>{},Ko=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ir="abcdefghijklmnopqrstuvwxyz",rs="0123456789",di={DIGIT:rs,ALPHA:Ir,ALPHA_DIGIT:Ir+Ir.toUpperCase()+rs},Zo=(e=16,t=di.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Qo(e){return!!(e&&ne(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const el=e=>{const t=new Array(10),r=(n,s)=>{if(ir(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=tt(n)?[]:{};return _t(n,(a,o)=>{const l=r(a,s+1);!mt(l)&&(i[o]=l)}),t[s]=void 0,i}}return n};return r(e,0)},tl=ge("AsyncFunction"),rl=e=>e&&(ir(e)||ne(e))&&ne(e.then)&&ne(e.catch),h={isArray:tt,isArrayBuffer:ai,isBuffer:Oo,isFormData:Po,isArrayBufferView:To,isString:Ro,isNumber:oi,isBoolean:$o,isObject:ir,isPlainObject:Yt,isUndefined:mt,isDate:Do,isFile:No,isBlob:Ao,isRegExp:zo,isFunction:ne,isStream:Io,isURLSearchParams:Mo,isTypedArray:Wo,isFileList:ko,forEach:_t,merge:zr,extend:xo,trim:Lo,stripBOM:Yo,inherits:Co,toFlatObject:Fo,kindOf:nr,kindOfTest:ge,endsWith:jo,toArray:Uo,forEachEntry:Ho,matchAll:Vo,isHTMLForm:Bo,hasOwnProperty:ts,hasOwnProp:ts,reduceDescriptors:fi,freezeMethods:qo,toObjectSet:Jo,toCamelCase:Go,noop:Xo,toFiniteNumber:Ko,findKey:li,global:ui,isContextDefined:ci,ALPHABET:di,generateString:Zo,isSpecCompliantForm:Qo,toJSONObject:el,isAsyncFn:tl,isThenable:rl};function k(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}h.inherits(k,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:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hi=k.prototype,mi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mi[e]={value:e}});Object.defineProperties(k,mi);Object.defineProperty(hi,"isAxiosError",{value:!0});k.from=(e,t,r,n,s,i)=>{const a=Object.create(hi);return h.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),k.call(a,e.message,t,r,n,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const nl=null;function qr(e){return h.isPlainObject(e)||h.isArray(e)}function pi(e){return h.endsWith(e,"[]")?e.slice(0,-2):e}function ns(e,t,r){return e?e.concat(t).map(function(s,i){return s=pi(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function sl(e){return h.isArray(e)&&!e.some(qr)}const il=h.toFlatObject(h,{},null,function(t){return/^is[A-Z]/.test(t)});function ar(e,t,r){if(!h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=h.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,P){return!h.isUndefined(P[S])});const n=r.metaTokens,s=r.visitor||f,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(t);if(!h.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(h.isDate(d))return d.toISOString();if(!l&&h.isBlob(d))throw new k("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(d)||h.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,S,P){let W=d;if(d&&!P&&typeof d=="object"){if(h.endsWith(S,"{}"))S=n?S:S.slice(0,-2),d=JSON.stringify(d);else if(h.isArray(d)&&sl(d)||(h.isFileList(d)||h.endsWith(S,"[]"))&&(W=h.toArray(d)))return S=pi(S),W.forEach(function(G,Ar){!(h.isUndefined(G)||G===null)&&t.append(a===!0?ns([S],Ar,i):a===null?S:S+"[]",u(G))}),!1}return qr(d)?!0:(t.append(ns(P,S,i),u(d)),!1)}const c=[],_=Object.assign(il,{defaultVisitor:f,convertValue:u,isVisitable:qr});function p(d,S){if(!h.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+S.join("."));c.push(d),h.forEach(d,function(W,x){(!(h.isUndefined(W)||W===null)&&s.call(t,W,h.isString(x)?x.trim():x,S,_))===!0&&p(W,S?S.concat(x):[x])}),c.pop()}}if(!h.isObject(e))throw new TypeError("data must be an object");return p(e),t}function ss(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dn(e,t){this._pairs=[],e&&ar(e,this,t)}const yi=dn.prototype;yi.append=function(t,r){this._pairs.push([t,r])};yi.toString=function(t){const r=t?function(n){return t.call(this,n,ss)}:ss;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function al(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Si(e,t,r){if(!t)return e;const n=r&&r.encode||al,s=r&&r.serialize;let i;if(s?i=s(t,r):i=h.isURLSearchParams(t)?t.toString():new dn(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ol{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,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){h.forEach(this.handlers,function(n){n!==null&&t(n)})}}const is=ol,gi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ll=typeof URLSearchParams<"u"?URLSearchParams:dn,ul=typeof FormData<"u"?FormData:null,cl=typeof Blob<"u"?Blob:null,fl={isBrowser:!0,classes:{URLSearchParams:ll,FormData:ul,Blob:cl},protocols:["http","https","file","blob","url","data"]},wi=typeof window<"u"&&typeof document<"u",dl=(e=>wi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hl=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ml=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wi,hasStandardBrowserEnv:dl,hasStandardBrowserWebWorkerEnv:hl},Symbol.toStringTag,{value:"Module"})),pe={...ml,...fl};function pl(e,t){return ar(e,new pe.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return pe.isNode&&h.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yl(e){return h.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sl(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function _i(e){function t(r,n,s,i){let a=r[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=r.length;return a=!a&&h.isArray(s)?s.length:a,l?(h.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!o):((!s[a]||!h.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],i)&&h.isArray(s[a])&&(s[a]=Sl(s[a])),!o)}if(h.isFormData(e)&&h.isFunction(e.entries)){const r={};return h.forEachEntry(e,(n,s)=>{t(yl(n),s,r,0)}),r}return null}function gl(e,t,r){if(h.isString(e))try{return(t||JSON.parse)(e),h.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hn={transitional:gi,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=h.isObject(t);if(i&&h.isHTMLForm(t)&&(t=new FormData(t)),h.isFormData(t))return s?JSON.stringify(_i(t)):t;if(h.isArrayBuffer(t)||h.isBuffer(t)||h.isStream(t)||h.isFile(t)||h.isBlob(t))return t;if(h.isArrayBufferView(t))return t.buffer;if(h.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pl(t,this.formSerializer).toString();if((o=h.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ar(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),gl(t)):t}],transformResponse:[function(t){const r=this.transitional||hn.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&h.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?k.from(o,k.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],e=>{hn.headers[e]={}});const mn=hn,wl=h.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"]),_l=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&wl[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},as=Symbol("internals");function lt(e){return e&&String(e).trim().toLowerCase()}function Ct(e){return e===!1||e==null?e:h.isArray(e)?e.map(Ct):String(e)}function El(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const bl=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pr(e,t,r,n,s){if(h.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!h.isString(t)){if(h.isString(n))return t.indexOf(n)!==-1;if(h.isRegExp(n))return n.test(t)}}function vl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ol(e,t){const r=h.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,a){return this[n].call(this,t,s,i,a)},configurable:!0})})}class or{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(o,l,u){const f=lt(l);if(!f)throw new Error("header name must be a non-empty string");const c=h.findKey(s,f);(!c||s[c]===void 0||u===!0||u===void 0&&s[c]!==!1)&&(s[c||l]=Ct(o))}const a=(o,l)=>h.forEach(o,(u,f)=>i(u,f,l));return h.isPlainObject(t)||t instanceof this.constructor?a(t,r):h.isString(t)&&(t=t.trim())&&!bl(t)?a(_l(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=lt(t),t){const n=h.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return El(s);if(h.isFunction(r))return r.call(this,s,n);if(h.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=lt(t),t){const n=h.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Pr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(a){if(a=lt(a),a){const o=h.findKey(n,a);o&&(!r||Pr(n,n[o],o,r))&&(delete n[o],s=!0)}}return h.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||Pr(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return h.forEach(this,(s,i)=>{const a=h.findKey(n,i);if(a){r[a]=Ct(s),delete r[i];return}const o=t?vl(i):String(i).trim();o!==i&&delete r[i],r[o]=Ct(s),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return h.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&h.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[as]=this[as]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=lt(a);n[o]||(Ol(s,a),n[o]=!0)}return h.isArray(t)?t.forEach(i):i(t),this}}or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(or.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});h.freezeMethods(or);const Re=or;function Mr(e,t){const r=this||mn,n=t||r,s=Re.from(n.headers);let i=n.data;return h.forEach(e,function(o){i=o.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Ei(e){return!!(e&&e.__CANCEL__)}function Et(e,t,r){k.call(this,e??"canceled",k.ERR_CANCELED,t,r),this.name="CanceledError"}h.inherits(Et,k,{__CANCEL__:!0});function Tl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new k("Request failed with status code "+r.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Rl=pe.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const a=[e+"="+encodeURIComponent(t)];h.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),h.isString(n)&&a.push("path="+n),h.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $l(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bi(e,t){return e&&!$l(t)?Dl(e,t):t}const Nl=pe.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{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 n=s(window.location.href),function(a){const o=h.isString(a)?s(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Al(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kl(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[i];a||(a=u),r[s]=l,n[s]=u;let c=i,_=0;for(;c!==s;)_+=r[c++],c=c%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-a<t)return;const p=f&&u-f;return p?Math.round(_*1e3/p):void 0}}function os(e,t){let r=0;const n=kl(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,o=i-r,l=n(o),u=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const Il=typeof XMLHttpRequest<"u",Pl=Il&&function(e){return new Promise(function(r,n){let s=e.data;const i=Re.from(e.headers).normalize();let{responseType:a,withXSRFToken:o}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(h.isFormData(s)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[S,...P]=f?f.split(";").map(W=>W.trim()).filter(Boolean):[];i.setContentType([S||"multipart/form-data",...P].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",P=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+P))}const _=bi(e.baseURL,e.url);c.open(e.method.toUpperCase(),Si(_,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const S=Re.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),W={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:S,config:e,request:c};Tl(function(G){r(G),u()},function(G){n(G),u()},W),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(n(new k("Request aborted",k.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new k("Network Error",k.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let P=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const W=e.transitional||gi;e.timeoutErrorMessage&&(P=e.timeoutErrorMessage),n(new k(P,W.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,e,c)),c=null},pe.hasStandardBrowserEnv&&(o&&h.isFunction(o)&&(o=o(e)),o||o!==!1&&Nl(_))){const S=e.xsrfHeaderName&&e.xsrfCookieName&&Rl.read(e.xsrfCookieName);S&&i.set(e.xsrfHeaderName,S)}s===void 0&&i.setContentType(null),"setRequestHeader"in c&&h.forEach(i.toJSON(),function(P,W){c.setRequestHeader(W,P)}),h.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",os(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",os(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=S=>{c&&(n(!S||S.type?new Et(null,e,c):S),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=Al(_);if(d&&pe.protocols.indexOf(d)===-1){n(new k("Unsupported protocol "+d+":",k.ERR_BAD_REQUEST,e));return}c.send(s||null)})},Jr={http:nl,xhr:Pl};h.forEach(Jr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ls=e=>`- ${e}`,Ml=e=>h.isFunction(e)||e===null||e===!1,vi={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Ml(r)&&(n=Jr[(a=String(r)).toLowerCase()],n===void 0))throw new k(`Unknown adapter '${a}'`);if(n)break;s[a||"#"+i]=n}if(!n){const i=Object.entries(s).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
4
|
+
`+i.map(ls).join(`
|
|
5
|
+
`):" "+ls(i[0]):"as no adapter specified";throw new k("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Jr};function Lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function us(e){return Lr(e),e.headers=Re.from(e.headers),e.data=Mr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vi.getAdapter(e.adapter||mn.adapter)(e).then(function(n){return Lr(e),n.data=Mr.call(e,e.transformResponse,n),n.headers=Re.from(n.headers),n},function(n){return Ei(n)||(Lr(e),n&&n.response&&(n.response.data=Mr.call(e,e.transformResponse,n.response),n.response.headers=Re.from(n.response.headers))),Promise.reject(n)})}const cs=e=>e instanceof Re?{...e}:e;function Xe(e,t){t=t||{};const r={};function n(u,f,c){return h.isPlainObject(u)&&h.isPlainObject(f)?h.merge.call({caseless:c},u,f):h.isPlainObject(f)?h.merge({},f):h.isArray(f)?f.slice():f}function s(u,f,c){if(h.isUndefined(f)){if(!h.isUndefined(u))return n(void 0,u,c)}else return n(u,f,c)}function i(u,f){if(!h.isUndefined(f))return n(void 0,f)}function a(u,f){if(h.isUndefined(f)){if(!h.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function o(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,f)=>s(cs(u),cs(f),!0)};return h.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||s,_=c(e[f],t[f],f);h.isUndefined(_)&&c!==o||(r[f]=_)}),r}const Oi="1.6.8",pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const fs={};pn.transitional=function(t,r,n){function s(i,a){return"[Axios v"+Oi+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new k(s(a," has been removed"+(r?" in "+r:"")),k.ERR_DEPRECATED);return r&&!fs[a]&&(fs[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,o):!0}};function Ll(e,t,r){if(typeof e!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],a=t[i];if(a){const o=e[i],l=o===void 0||a(o,i,e);if(l!==!0)throw new k("option "+i+" must be "+l,k.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new k("Unknown option "+i,k.ERR_BAD_OPTION)}}const Xr={assertOptions:Ll,validators:pn},Ie=Xr.validators;class Ht{constructor(t){this.defaults=t,this.interceptors={request:new is,response:new is}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xe(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Xr.assertOptions(n,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),s!=null&&(h.isFunction(s)?r.paramsSerializer={serialize:s}:Xr.assertOptions(s,{encode:Ie.function,serialize:Ie.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&h.merge(i.common,i[r.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=Re.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(r)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let f,c=0,_;if(!l){const d=[us.bind(this),void 0];for(d.unshift.apply(d,o),d.push.apply(d,u),_=d.length,f=Promise.resolve(r);c<_;)f=f.then(d[c++],d[c++]);return f}_=o.length;let p=r;for(c=0;c<_;){const d=o[c++],S=o[c++];try{p=d(p)}catch(P){S.call(this,P);break}}try{f=us.call(this,p)}catch(d){return Promise.reject(d)}for(c=0,_=u.length;c<_;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Xe(this.defaults,t);const r=bi(t.baseURL,t.url);return Si(r,t.params,t.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(t){Ht.prototype[t]=function(r,n){return this.request(Xe(n||{},{method:t,url:r,data:(n||{}).data}))}});h.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,o){return this.request(Xe(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ht.prototype[t]=r(),Ht.prototype[t+"Form"]=r(!0)});const Ft=Ht;class yn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,o){n.reason||(n.reason=new Et(i,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new yn(function(s){t=s}),cancel:t}}}const xl=yn;function Yl(e){return function(r){return e.apply(null,r)}}function Cl(e){return h.isObject(e)&&e.isAxiosError===!0}const Kr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kr).forEach(([e,t])=>{Kr[t]=e});const Fl=Kr;function Ti(e){const t=new Ft(e),r=ii(Ft.prototype.request,t);return h.extend(r,Ft.prototype,t,{allOwnKeys:!0}),h.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Ti(Xe(e,s))},r}const q=Ti(mn);q.Axios=Ft;q.CanceledError=Et;q.CancelToken=xl;q.isCancel=Ei;q.VERSION=Oi;q.toFormData=ar;q.AxiosError=k;q.Cancel=q.CanceledError;q.all=function(t){return Promise.all(t)};q.spread=Yl;q.isAxiosError=Cl;q.mergeConfig=Xe;q.AxiosHeaders=Re;q.formToJSON=e=>_i(h.isHTMLForm(e)?new FormData(e):e);q.getAdapter=vi.getAdapter;q.HttpStatusCode=Fl;q.default=q;const jl=q;function Ri(e,t){const r=e.toLocaleString(void 0,{maximumFractionDigits:t});return r==="-0"?"0":r}const Ul=Object.freeze(Object.defineProperty({__proto__:null,getValueInString:Ri},Symbol.toStringTag,{value:"Module"}));function Wl(e,t,r,n=!0){let s=Ri(e,t);return n&&(s=s+=` ${r}`),s}async function Hl(){return(await jl.get("https://dolarapi.com/v1/dolares/blue")).data.venta}const Vl=Object.freeze(Object.defineProperty({__proto__:null,getAmountInString:Wl,getDollarValue:Hl},Symbol.toStringTag,{value:"Module"}));function Bl(e,t){const n={...{format:"short",withTime:!0},...t};if(!e)return"-";const s={weekday:n.format==="numbers"?void 0:n.format,year:"numeric",month:n.format==="numbers"?"2-digit":n.format,day:"2-digit",hour:n.withTime?"2-digit":void 0,minute:n.withTime?"2-digit":void 0,hour12:!1},i=e.toLocaleString("es-ES",s);return i.charAt(0).toUpperCase()+i.slice(1)}const Gl=Object.freeze(Object.defineProperty({__proto__:null,getDatetimeInString:Bl},Symbol.toStringTag,{value:"Module"}));//! moment.js
|
|
7
|
+
//! version : 2.30.1
|
|
8
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
9
|
+
//! license : MIT
|
|
10
|
+
//! momentjs.com
|
|
11
|
+
var $i;function y(){return $i.apply(null,arguments)}function zl(e){$i=e}function le(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Fe(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Sn(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(M(e,t))return!1;return!0}function Z(e){return e===void 0}function Ne(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function bt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Di(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function Me(e,t){for(var r in t)M(t,r)&&(e[r]=t[r]);return M(t,"toString")&&(e.toString=t.toString),M(t,"valueOf")&&(e.valueOf=t.valueOf),e}function we(e,t,r,n){return Ki(e,t,r,n,!0).utc()}function ql(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function $(e){return e._pf==null&&(e._pf=ql()),e._pf}var Zr;Array.prototype.some?Zr=Array.prototype.some:Zr=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function gn(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=$(e),r=Zr.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function lr(e){var t=we(NaN);return e!=null?Me($(t),e):$(t).userInvalidated=!0,t}var ds=y.momentProperties=[],xr=!1;function wn(e,t){var r,n,s,i=ds.length;if(Z(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Z(t._i)||(e._i=t._i),Z(t._f)||(e._f=t._f),Z(t._l)||(e._l=t._l),Z(t._strict)||(e._strict=t._strict),Z(t._tzm)||(e._tzm=t._tzm),Z(t._isUTC)||(e._isUTC=t._isUTC),Z(t._offset)||(e._offset=t._offset),Z(t._pf)||(e._pf=$(t)),Z(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=ds[r],s=t[n],Z(s)||(e[n]=s);return e}function vt(e){wn(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),xr===!1&&(xr=!0,y.updateOffset(this),xr=!1)}function ue(e){return e instanceof vt||e!=null&&e._isAMomentObject!=null}function Ni(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function se(e,t){var r=!0;return Me(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),r){var n=[],s,i,a,o=arguments.length;for(i=0;i<o;i++){if(s="",typeof arguments[i]=="object"){s+=`
|
|
12
|
+
[`+i+"] ";for(a in arguments[0])M(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];n.push(s)}Ni(e+`
|
|
13
|
+
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
14
|
+
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var hs={};function Ai(e,t){y.deprecationHandler!=null&&y.deprecationHandler(e,t),hs[e]||(Ni(t),hs[e]=!0)}y.suppressDeprecationWarnings=!1;y.deprecationHandler=null;function _e(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Jl(e){var t,r;for(r in e)M(e,r)&&(t=e[r],_e(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Qr(e,t){var r=Me({},e),n;for(n in t)M(t,n)&&(Fe(e[n])&&Fe(t[n])?(r[n]={},Me(r[n],e[n]),Me(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)M(e,n)&&!M(t,n)&&Fe(e[n])&&(r[n]=Me({},r[n]));return r}function _n(e){e!=null&&this.set(e)}var en;Object.keys?en=Object.keys:en=function(e){var t,r=[];for(t in e)M(e,t)&&r.push(t);return r};var Xl={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Kl(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return _e(n)?n.call(t,r):n}function Se(e,t,r){var n=""+Math.abs(e),s=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var En=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Yr={},ze={};function b(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(ze[e]=s),t&&(ze[t[0]]=function(){return Se(s.apply(this,arguments),t[1],t[2])}),r&&(ze[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Zl(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ql(e){var t=e.match(En),r,n;for(r=0,n=t.length;r<n;r++)ze[t[r]]?t[r]=ze[t[r]]:t[r]=Zl(t[r]);return function(s){var i="",a;for(a=0;a<n;a++)i+=_e(t[a])?t[a].call(s,e):t[a];return i}}function jt(e,t){return e.isValid()?(t=ki(t,e.localeData()),Yr[t]=Yr[t]||Ql(t),Yr[t](e)):e.localeData().invalidDate()}function ki(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(Nt.lastIndex=0;r>=0&&Nt.test(e);)e=e.replace(Nt,n),Nt.lastIndex=0,r-=1;return e}var eu={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function tu(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(En).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var ru="Invalid date";function nu(){return this._invalidDate}var su="%d",iu=/\d{1,2}/;function au(e){return this._ordinal.replace("%d",e)}var ou={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function lu(e,t,r,n){var s=this._relativeTime[r];return _e(s)?s(e,t,r,n):s.replace(/%d/i,e)}function uu(e,t){var r=this._relativeTime[e>0?"future":"past"];return _e(r)?r(t):r.replace(/%s/i,t)}var ms={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return typeof e=="string"?ms[e]||ms[e.toLowerCase()]:void 0}function bn(e){var t={},r,n;for(n in e)M(e,n)&&(r=ie(n),r&&(t[r]=e[n]));return t}var cu={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function fu(e){var t=[],r;for(r in e)M(e,r)&&t.push({unit:r,priority:cu[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var Ii=/\d/,te=/\d\d/,Pi=/\d{3}/,vn=/\d{4}/,ur=/[+-]?\d{6}/,U=/\d\d?/,Mi=/\d\d\d\d?/,Li=/\d\d\d\d\d\d?/,cr=/\d{1,3}/,On=/\d{1,4}/,fr=/[+-]?\d{1,6}/,rt=/\d+/,dr=/[+-]?\d+/,du=/Z|[+-]\d\d:?\d\d/gi,hr=/Z|[+-]\d\d(?::?\d\d)?/gi,hu=/[+-]?\d+(\.\d{1,3})?/,Ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,nt=/^[1-9]\d?/,Tn=/^([1-9]\d|\d)/,Vt;Vt={};function w(e,t,r){Vt[e]=_e(t)?t:function(n,s){return n&&r?r:t}}function mu(e,t){return M(Vt,e)?Vt[e](t._strict,t._locale):new RegExp(pu(e))}function pu(e){return $e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,i){return r||n||s||i}))}function $e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function A(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=re(t)),r}var tn={};function C(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),Ne(t)&&(n=function(i,a){a[t]=A(i)}),s=e.length,r=0;r<s;r++)tn[e[r]]=n}function Tt(e,t){C(e,function(r,n,s,i){s._w=s._w||{},t(r,s._w,s,i)})}function yu(e,t,r){t!=null&&M(tn,e)&&tn[e](t,r._a,r,e)}function mr(e){return e%4===0&&e%100!==0||e%400===0}var X=0,Oe=1,me=2,J=3,oe=4,Te=5,Ce=6,Su=7,gu=8;b("Y",0,0,function(){var e=this.year();return e<=9999?Se(e,4):"+"+e});b(0,["YY",2],0,function(){return this.year()%100});b(0,["YYYY",4],0,"year");b(0,["YYYYY",5],0,"year");b(0,["YYYYYY",6,!0],0,"year");w("Y",dr);w("YY",U,te);w("YYYY",On,vn);w("YYYYY",fr,ur);w("YYYYYY",fr,ur);C(["YYYYY","YYYYYY"],X);C("YYYY",function(e,t){t[X]=e.length===2?y.parseTwoDigitYear(e):A(e)});C("YY",function(e,t){t[X]=y.parseTwoDigitYear(e)});C("Y",function(e,t){t[X]=parseInt(e,10)});function ht(e){return mr(e)?366:365}y.parseTwoDigitYear=function(e){return A(e)+(A(e)>68?1900:2e3)};var xi=st("FullYear",!0);function wu(){return mr(this.year())}function st(e,t){return function(r){return r!=null?(Yi(this,e,r),y.updateOffset(this,t),this):pt(this,e)}}function pt(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Yi(e,t,r){var n,s,i,a,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,a=e.month(),o=e.date(),o=o===29&&a===1&&!mr(i)?28:o,s?n.setUTCFullYear(i,a,o):n.setFullYear(i,a,o)}}function _u(e){return e=ie(e),_e(this[e])?this[e]():this}function Eu(e,t){if(typeof e=="object"){e=bn(e);var r=fu(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=ie(e),_e(this[e]))return this[e](t);return this}function bu(e,t){return(e%t+t)%t}var B;Array.prototype.indexOf?B=Array.prototype.indexOf:B=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Rn(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=bu(t,12);return e+=(t-r)/12,r===1?mr(e)?29:28:31-r%7%2}b("M",["MM",2],"Mo",function(){return this.month()+1});b("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});b("MMMM",0,0,function(e){return this.localeData().months(this,e)});w("M",U,nt);w("MM",U,te);w("MMM",function(e,t){return t.monthsShortRegex(e)});w("MMMM",function(e,t){return t.monthsRegex(e)});C(["M","MM"],function(e,t){t[Oe]=A(e)-1});C(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[Oe]=s:$(r).invalidMonth=e});var vu="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ci="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ou=Ot,Tu=Ot;function Ru(e,t){return e?le(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Fi).test(t)?"format":"standalone"][e.month()]:le(this._months)?this._months:this._months.standalone}function $u(e,t){return e?le(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Fi.test(t)?"format":"standalone"][e.month()]:le(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Du(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=we([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(s=B.call(this._shortMonthsParse,a),s!==-1?s:null):(s=B.call(this._longMonthsParse,a),s!==-1?s:null):t==="MMM"?(s=B.call(this._shortMonthsParse,a),s!==-1?s:(s=B.call(this._longMonthsParse,a),s!==-1?s:null)):(s=B.call(this._longMonthsParse,a),s!==-1?s:(s=B.call(this._shortMonthsParse,a),s!==-1?s:null))}function Nu(e,t,r){var n,s,i;if(this._monthsParseExact)return Du.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=we([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function ji(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=A(t);else if(t=e.localeData().monthsParse(t),!Ne(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Rn(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function Ui(e){return e!=null?(ji(this,e),y.updateOffset(this,!0),this):pt(this,"Month")}function Au(){return Rn(this.year(),this.month())}function ku(e){return this._monthsParseExact?(M(this,"_monthsRegex")||Wi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(M(this,"_monthsShortRegex")||(this._monthsShortRegex=Ou),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Iu(e){return this._monthsParseExact?(M(this,"_monthsRegex")||Wi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(M(this,"_monthsRegex")||(this._monthsRegex=Tu),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Wi(){function e(l,u){return u.length-l.length}var t=[],r=[],n=[],s,i,a,o;for(s=0;s<12;s++)i=we([2e3,s]),a=$e(this.monthsShort(i,"")),o=$e(this.months(i,"")),t.push(a),r.push(o),n.push(o),n.push(a);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Pu(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function yt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Bt(e,t,r){var n=7+t-r,s=(7+yt(e,0,n).getUTCDay()-t)%7;return-s+n-1}function Hi(e,t,r,n,s){var i=(7+r-n)%7,a=Bt(e,n,s),o=1+7*(t-1)+i+a,l,u;return o<=0?(l=e-1,u=ht(l)+o):o>ht(e)?(l=e+1,u=o-ht(e)):(l=e,u=o),{year:l,dayOfYear:u}}function St(e,t,r){var n=Bt(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+De(a,t,r)):s>De(e.year(),t,r)?(i=s-De(e.year(),t,r),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function De(e,t,r){var n=Bt(e,t,r),s=Bt(e+1,t,r);return(ht(e)-n+s)/7}b("w",["ww",2],"wo","week");b("W",["WW",2],"Wo","isoWeek");w("w",U,nt);w("ww",U,te);w("W",U,nt);w("WW",U,te);Tt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=A(e)});function Mu(e){return St(e,this._week.dow,this._week.doy).week}var Lu={dow:0,doy:6};function xu(){return this._week.dow}function Yu(){return this._week.doy}function Cu(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Fu(e){var t=St(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}b("d",0,"do","day");b("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});b("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});b("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});b("e",0,0,"weekday");b("E",0,0,"isoWeekday");w("d",U);w("e",U);w("E",U);w("dd",function(e,t){return t.weekdaysMinRegex(e)});w("ddd",function(e,t){return t.weekdaysShortRegex(e)});w("dddd",function(e,t){return t.weekdaysRegex(e)});Tt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:$(r).invalidWeekday=e});Tt(["d","e","E"],function(e,t,r,n){t[n]=A(e)});function ju(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Uu(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function $n(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Wu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vu=Ot,Bu=Ot,Gu=Ot;function zu(e,t){var r=le(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?$n(r,this._week.dow):e?r[e.day()]:r}function qu(e){return e===!0?$n(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ju(e){return e===!0?$n(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Xu(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=we([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=B.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=B.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=B.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=B.call(this._weekdaysParse,a),s!==-1||(s=B.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=B.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=B.call(this._shortWeekdaysParse,a),s!==-1||(s=B.call(this._weekdaysParse,a),s!==-1)?s:(s=B.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=B.call(this._minWeekdaysParse,a),s!==-1||(s=B.call(this._weekdaysParse,a),s!==-1)?s:(s=B.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function Ku(e,t,r){var n,s,i;if(this._weekdaysParseExact)return Xu.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=we([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Zu(e){if(!this.isValid())return e!=null?this:NaN;var t=pt(this,"Day");return e!=null?(e=ju(e,this.localeData()),this.add(e-t,"d")):t}function Qu(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ec(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Uu(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function tc(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Dn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(M(this,"_weekdaysRegex")||(this._weekdaysRegex=Vu),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function rc(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Dn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(M(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bu),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function nc(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Dn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(M(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gu),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Dn(){function e(f,c){return c.length-f.length}var t=[],r=[],n=[],s=[],i,a,o,l,u;for(i=0;i<7;i++)a=we([2e3,1]).day(i),o=$e(this.weekdaysMin(a,"")),l=$e(this.weekdaysShort(a,"")),u=$e(this.weekdays(a,"")),t.push(o),r.push(l),n.push(u),s.push(o),s.push(l),s.push(u);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Nn(){return this.hours()%12||12}function sc(){return this.hours()||24}b("H",["HH",2],0,"hour");b("h",["hh",2],0,Nn);b("k",["kk",2],0,sc);b("hmm",0,0,function(){return""+Nn.apply(this)+Se(this.minutes(),2)});b("hmmss",0,0,function(){return""+Nn.apply(this)+Se(this.minutes(),2)+Se(this.seconds(),2)});b("Hmm",0,0,function(){return""+this.hours()+Se(this.minutes(),2)});b("Hmmss",0,0,function(){return""+this.hours()+Se(this.minutes(),2)+Se(this.seconds(),2)});function Bi(e,t){b(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bi("a",!0);Bi("A",!1);function Gi(e,t){return t._meridiemParse}w("a",Gi);w("A",Gi);w("H",U,Tn);w("h",U,nt);w("k",U,nt);w("HH",U,te);w("hh",U,te);w("kk",U,te);w("hmm",Mi);w("hmmss",Li);w("Hmm",Mi);w("Hmmss",Li);C(["H","HH"],J);C(["k","kk"],function(e,t,r){var n=A(e);t[J]=n===24?0:n});C(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});C(["h","hh"],function(e,t,r){t[J]=A(e),$(r).bigHour=!0});C("hmm",function(e,t,r){var n=e.length-2;t[J]=A(e.substr(0,n)),t[oe]=A(e.substr(n)),$(r).bigHour=!0});C("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[J]=A(e.substr(0,n)),t[oe]=A(e.substr(n,2)),t[Te]=A(e.substr(s)),$(r).bigHour=!0});C("Hmm",function(e,t,r){var n=e.length-2;t[J]=A(e.substr(0,n)),t[oe]=A(e.substr(n))});C("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[J]=A(e.substr(0,n)),t[oe]=A(e.substr(n,2)),t[Te]=A(e.substr(s))});function ic(e){return(e+"").toLowerCase().charAt(0)==="p"}var ac=/[ap]\.?m?\.?/i,oc=st("Hours",!0);function lc(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var zi={calendar:Xl,longDateFormat:eu,invalidDate:ru,ordinal:su,dayOfMonthOrdinalParse:iu,relativeTime:ou,months:vu,monthsShort:Ci,week:Lu,weekdays:Wu,weekdaysMin:Hu,weekdaysShort:Vi,meridiemParse:ac},H={},ut={},gt;function uc(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function ps(e){return e&&e.toLowerCase().replace("_","-")}function cc(e){for(var t=0,r,n,s,i;t<e.length;){for(i=ps(e[t]).split("-"),r=i.length,n=ps(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=pr(i.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&uc(i,n)>=r-1)break;r--}t++}return gt}function fc(e){return!!(e&&e.match("^[^/\\\\]*$"))}function pr(e){var t=null,r;if(H[e]===void 0&&typeof module<"u"&&module&&module.exports&&fc(e))try{t=gt._abbr,r=require,r("./locale/"+e),xe(t)}catch{H[e]=null}return H[e]}function xe(e,t){var r;return e&&(Z(t)?r=Ae(e):r=An(e,t),r?gt=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),gt._abbr}function An(e,t){if(t!==null){var r,n=zi;if(t.abbr=e,H[e]!=null)Ai("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=H[e]._config;else if(t.parentLocale!=null)if(H[t.parentLocale]!=null)n=H[t.parentLocale]._config;else if(r=pr(t.parentLocale),r!=null)n=r._config;else return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;return H[e]=new _n(Qr(n,t)),ut[e]&&ut[e].forEach(function(s){An(s.name,s.config)}),xe(e),H[e]}else return delete H[e],null}function dc(e,t){if(t!=null){var r,n,s=zi;H[e]!=null&&H[e].parentLocale!=null?H[e].set(Qr(H[e]._config,t)):(n=pr(e),n!=null&&(s=n._config),t=Qr(s,t),n==null&&(t.abbr=e),r=new _n(t),r.parentLocale=H[e],H[e]=r),xe(e)}else H[e]!=null&&(H[e].parentLocale!=null?(H[e]=H[e].parentLocale,e===xe()&&xe(e)):H[e]!=null&&delete H[e]);return H[e]}function Ae(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return gt;if(!le(e)){if(t=pr(e),t)return t;e=[e]}return cc(e)}function hc(){return en(H)}function kn(e){var t,r=e._a;return r&&$(e).overflow===-2&&(t=r[Oe]<0||r[Oe]>11?Oe:r[me]<1||r[me]>Rn(r[X],r[Oe])?me:r[J]<0||r[J]>24||r[J]===24&&(r[oe]!==0||r[Te]!==0||r[Ce]!==0)?J:r[oe]<0||r[oe]>59?oe:r[Te]<0||r[Te]>59?Te:r[Ce]<0||r[Ce]>999?Ce:-1,$(e)._overflowDayOfYear&&(t<X||t>me)&&(t=me),$(e)._overflowWeeks&&t===-1&&(t=Su),$(e)._overflowWeekday&&t===-1&&(t=gu),$(e).overflow=t),e}var mc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pc=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yc=/Z|[+-]\d\d(?::?\d\d)?/,At=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Cr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sc=/^\/?Date\((-?\d+)/i,gc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wc={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qi(e){var t,r,n=e._i,s=mc.exec(n)||pc.exec(n),i,a,o,l,u=At.length,f=Cr.length;if(s){for($(e).iso=!0,t=0,r=u;t<r;t++)if(At[t][1].exec(s[1])){a=At[t][0],i=At[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(s[3]){for(t=0,r=f;t<r;t++)if(Cr[t][1].exec(s[3])){o=(s[2]||" ")+Cr[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(s[4])if(yc.exec(s[4]))l="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(l||""),Pn(e)}else e._isValid=!1}function _c(e,t,r,n,s,i){var a=[Ec(e),Ci.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return i&&a.push(parseInt(i,10)),a}function Ec(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bc(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vc(e,t,r){if(e){var n=Vi.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return $(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Oc(e,t,r){if(e)return wc[e];if(t)return 0;var n=parseInt(r,10),s=n%100,i=(n-s)/100;return i*60+s}function Ji(e){var t=gc.exec(bc(e._i)),r;if(t){if(r=_c(t[4],t[3],t[2],t[5],t[6],t[7]),!vc(t[1],r,e))return;e._a=r,e._tzm=Oc(t[8],t[9],t[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),$(e).rfc2822=!0}else e._isValid=!1}function Tc(e){var t=Sc.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(qi(e),e._isValid===!1)delete e._isValid;else return;if(Ji(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:y.createFromInputFallback(e)}y.createFromInputFallback=se("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ve(e,t,r){return e??t??r}function Rc(e){var t=new Date(y.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function In(e){var t,r,n=[],s,i,a;if(!e._d){for(s=Rc(e),e._w&&e._a[me]==null&&e._a[Oe]==null&&$c(e),e._dayOfYear!=null&&(a=Ve(e._a[X],s[X]),(e._dayOfYear>ht(a)||e._dayOfYear===0)&&($(e)._overflowDayOfYear=!0),r=yt(a,0,e._dayOfYear),e._a[Oe]=r.getUTCMonth(),e._a[me]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[J]===24&&e._a[oe]===0&&e._a[Te]===0&&e._a[Ce]===0&&(e._nextDay=!0,e._a[J]=0),e._d=(e._useUTC?yt:Pu).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[J]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&($(e).weekdayMismatch=!0)}}function $c(e){var t,r,n,s,i,a,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,r=Ve(t.GG,e._a[X],St(j(),1,4).year),n=Ve(t.W,1),s=Ve(t.E,1),(s<1||s>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=St(j(),i,a),r=Ve(t.gg,e._a[X],u.year),n=Ve(t.w,u.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),n<1||n>De(r,i,a)?$(e)._overflowWeeks=!0:l!=null?$(e)._overflowWeekday=!0:(o=Hi(r,n,s,i,a),e._a[X]=o.year,e._dayOfYear=o.dayOfYear)}y.ISO_8601=function(){};y.RFC_2822=function(){};function Pn(e){if(e._f===y.ISO_8601){qi(e);return}if(e._f===y.RFC_2822){Ji(e);return}e._a=[],$(e).empty=!0;var t=""+e._i,r,n,s,i,a,o=t.length,l=0,u,f;for(s=ki(e._f,e._locale).match(En)||[],f=s.length,r=0;r<f;r++)i=s[r],n=(t.match(mu(i,e))||[])[0],n&&(a=t.substr(0,t.indexOf(n)),a.length>0&&$(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),l+=n.length),ze[i]?(n?$(e).empty=!1:$(e).unusedTokens.push(i),yu(i,n,e)):e._strict&&!n&&$(e).unusedTokens.push(i);$(e).charsLeftOver=o-l,t.length>0&&$(e).unusedInput.push(t),e._a[J]<=12&&$(e).bigHour===!0&&e._a[J]>0&&($(e).bigHour=void 0),$(e).parsedDateParts=e._a.slice(0),$(e).meridiem=e._meridiem,e._a[J]=Dc(e._locale,e._a[J],e._meridiem),u=$(e).era,u!==null&&(e._a[X]=e._locale.erasConvertYear(u,e._a[X])),In(e),kn(e)}function Dc(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function Nc(e){var t,r,n,s,i,a,o=!1,l=e._f.length;if(l===0){$(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,a=!1,t=wn({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Pn(t),gn(t)&&(a=!0),i+=$(t).charsLeftOver,i+=$(t).unusedTokens.length*10,$(t).score=i,o?i<n&&(n=i,r=t):(n==null||i<n||a)&&(n=i,r=t,a&&(o=!0));Me(e,r||t)}function Ac(e){if(!e._d){var t=bn(e._i),r=t.day===void 0?t.date:t.day;e._a=Di([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),In(e)}}function kc(e){var t=new vt(kn(Xi(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Xi(e){var t=e._i,r=e._f;return e._locale=e._locale||Ae(e._l),t===null||r===void 0&&t===""?lr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ue(t)?new vt(kn(t)):(bt(t)?e._d=t:le(r)?Nc(e):r?Pn(e):Ic(e),gn(e)||(e._d=null),e))}function Ic(e){var t=e._i;Z(t)?e._d=new Date(y.now()):bt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Tc(e):le(t)?(e._a=Di(t.slice(0),function(r){return parseInt(r,10)}),In(e)):Fe(t)?Ac(e):Ne(t)?e._d=new Date(t):y.createFromInputFallback(e)}function Ki(e,t,r,n,s){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Fe(e)&&Sn(e)||le(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=r,i._i=e,i._f=t,i._strict=n,kc(i)}function j(e,t,r,n){return Ki(e,t,r,n,!1)}var Pc=se("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:lr()}),Mc=se("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:lr()});function Zi(e,t){var r,n;if(t.length===1&&le(t[0])&&(t=t[0]),!t.length)return j();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Lc(){var e=[].slice.call(arguments,0);return Zi("isBefore",e)}function xc(){var e=[].slice.call(arguments,0);return Zi("isAfter",e)}var Yc=function(){return Date.now?Date.now():+new Date},ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Cc(e){var t,r=!1,n,s=ct.length;for(t in e)if(M(e,t)&&!(B.call(ct,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[ct[n]]){if(r)return!1;parseFloat(e[ct[n]])!==A(e[ct[n]])&&(r=!0)}return!0}function Fc(){return this._isValid}function jc(){return ce(NaN)}function yr(e){var t=bn(e),r=t.year||0,n=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=Cc(t),this._milliseconds=+f+u*1e3+l*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+s+n*3+r*12,this._data={},this._locale=Ae(),this._bubble()}function Ut(e){return e instanceof yr}function rn(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Uc(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,a;for(a=0;a<n;a++)(r&&e[a]!==t[a]||!r&&A(e[a])!==A(t[a]))&&i++;return i+s}function Qi(e,t){b(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Se(~~(r/60),2)+t+Se(~~r%60,2)})}Qi("Z",":");Qi("ZZ","");w("Z",hr);w("ZZ",hr);C(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Mn(hr,e)});var Wc=/([\+\-]|\d\d)/gi;function Mn(e,t){var r=(t||"").match(e),n,s,i;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(Wc)||["-",0,0],i=+(s[1]*60)+A(s[2]),i===0?0:s[0]==="+"?i:-i)}function Ln(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(ue(e)||bt(e)?e.valueOf():j(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),y.updateOffset(r,!1),r):j(e).local()}function nn(e){return-Math.round(e._d.getTimezoneOffset())}y.updateOffset=function(){};function Hc(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mn(hr,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=nn(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?ra(this,ce(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:nn(this)}function Vc(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Bc(e){return this.utcOffset(0,e)}function Gc(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(nn(this),"m")),this}function zc(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mn(du,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qc(e){return this.isValid()?(e=e?j(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Jc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xc(){if(!Z(this._isDSTShifted))return this._isDSTShifted;var e={},t;return wn(e,this),e=Xi(e),e._a?(t=e._isUTC?we(e._a):j(e._a),this._isDSTShifted=this.isValid()&&Uc(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Kc(){return this.isValid()?!this._isUTC:!1}function Zc(){return this.isValid()?this._isUTC:!1}function ea(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Qc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ef=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ce(e,t){var r=e,n=null,s,i,a;return Ut(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Ne(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Qc.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:A(n[me])*s,h:A(n[J])*s,m:A(n[oe])*s,s:A(n[Te])*s,ms:A(rn(n[Ce]*1e3))*s}):(n=ef.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ye(n[2],s),M:Ye(n[3],s),w:Ye(n[4],s),d:Ye(n[5],s),h:Ye(n[6],s),m:Ye(n[7],s),s:Ye(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=tf(j(r.from),j(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new yr(r),Ut(e)&&M(e,"_locale")&&(i._locale=e._locale),Ut(e)&&M(e,"_isValid")&&(i._isValid=e._isValid),i}ce.fn=yr.prototype;ce.invalid=jc;function Ye(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function ys(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function tf(e,t){var r;return e.isValid()&&t.isValid()?(t=Ln(t,e),e.isBefore(t)?r=ys(e,t):(r=ys(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function ta(e,t){return function(r,n){var s,i;return n!==null&&!isNaN(+n)&&(Ai(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),s=ce(r,n),ra(this,s,e),this}}function ra(e,t,r,n){var s=t._milliseconds,i=rn(t._days),a=rn(t._months);e.isValid()&&(n=n??!0,a&&ji(e,pt(e,"Month")+a*r),i&&Yi(e,"Date",pt(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&y.updateOffset(e,i||a))}var rf=ta(1,"add"),nf=ta(-1,"subtract");function na(e){return typeof e=="string"||e instanceof String}function sf(e){return ue(e)||bt(e)||na(e)||Ne(e)||of(e)||af(e)||e===null||e===void 0}function af(e){var t=Fe(e)&&!Sn(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=n.length;for(s=0;s<a;s+=1)i=n[s],r=r||M(e,i);return t&&r}function of(e){var t=le(e),r=!1;return t&&(r=e.filter(function(n){return!Ne(n)&&na(e)}).length===0),t&&r}function lf(e){var t=Fe(e)&&!Sn(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<n.length;s+=1)i=n[s],r=r||M(e,i);return t&&r}function uf(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function cf(e,t){arguments.length===1&&(arguments[0]?sf(arguments[0])?(e=arguments[0],t=void 0):lf(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||j(),n=Ln(r,this).startOf("day"),s=y.calendarFormat(this,n)||"sameElse",i=t&&(_e(t[s])?t[s].call(this,r):t[s]);return this.format(i||this.localeData().calendar(s,this,j(r)))}function ff(){return new vt(this)}function df(e,t){var r=ue(e)?e:j(e);return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function hf(e,t){var r=ue(e)?e:j(e);return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function mf(e,t,r,n){var s=ue(e)?e:j(e),i=ue(t)?t:j(t);return this.isValid()&&s.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function pf(e,t){var r=ue(e)?e:j(e),n;return this.isValid()&&r.isValid()?(t=ie(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function yf(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Sf(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function gf(e,t,r){var n,s,i;if(!this.isValid())return NaN;if(n=Ln(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=ie(t),t){case"year":i=Wt(this,n)/12;break;case"month":i=Wt(this,n);break;case"quarter":i=Wt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-s)/864e5;break;case"week":i=(this-n-s)/6048e5;break;default:i=this-n}return r?i:re(i)}function Wt(e,t){if(e.date()<t.date())return-Wt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,i;return t-n<0?(s=e.clone().add(r-1,"months"),i=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),i=(t-n)/(s-n)),-(r+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _f(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?jt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",jt(r,"Z")):jt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ef(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+s+i)}function bf(e){e||(e=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=jt(this,e);return this.localeData().postformat(t)}function vf(e,t){return this.isValid()&&(ue(e)&&e.isValid()||j(e).isValid())?ce({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Of(e){return this.from(j(),e)}function Tf(e,t){return this.isValid()&&(ue(e)&&e.isValid()||j(e).isValid())?ce({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Rf(e){return this.to(j(),e)}function sa(e){var t;return e===void 0?this._locale._abbr:(t=Ae(e),t!=null&&(this._locale=t),this)}var ia=se("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function aa(){return this._locale}var Gt=1e3,qe=60*Gt,zt=60*qe,oa=(365*400+97)*24*zt;function Je(e,t){return(e%t+t)%t}function la(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-oa:new Date(e,t,r).valueOf()}function ua(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-oa:Date.UTC(e,t,r)}function $f(e){var t,r;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ua:la,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Je(t+(this._isUTC?0:this.utcOffset()*qe),zt);break;case"minute":t=this._d.valueOf(),t-=Je(t,qe);break;case"second":t=this._d.valueOf(),t-=Je(t,Gt);break}return this._d.setTime(t),y.updateOffset(this,!0),this}function Df(e){var t,r;if(e=ie(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ua:la,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=zt-Je(t+(this._isUTC?0:this.utcOffset()*qe),zt)-1;break;case"minute":t=this._d.valueOf(),t+=qe-Je(t,qe)-1;break;case"second":t=this._d.valueOf(),t+=Gt-Je(t,Gt)-1;break}return this._d.setTime(t),y.updateOffset(this,!0),this}function Nf(){return this._d.valueOf()-(this._offset||0)*6e4}function Af(){return Math.floor(this.valueOf()/1e3)}function kf(){return new Date(this.valueOf())}function If(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Pf(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mf(){return this.isValid()?this.toISOString():null}function Lf(){return gn(this)}function xf(){return Me({},$(this))}function Yf(){return $(this).overflow}function Cf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}b("N",0,0,"eraAbbr");b("NN",0,0,"eraAbbr");b("NNN",0,0,"eraAbbr");b("NNNN",0,0,"eraName");b("NNNNN",0,0,"eraNarrow");b("y",["y",1],"yo","eraYear");b("y",["yy",2],0,"eraYear");b("y",["yyy",3],0,"eraYear");b("y",["yyyy",4],0,"eraYear");w("N",xn);w("NN",xn);w("NNN",xn);w("NNNN",Jf);w("NNNNN",Xf);C(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?$(r).era=s:$(r).invalidEra=e});w("y",rt);w("yy",rt);w("yyy",rt);w("yyyy",rt);w("yo",Kf);C(["y","yy","yyy","yyyy"],X);C(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[X]=r._locale.eraYearOrdinalParse(e,s):t[X]=parseInt(e,10)});function Ff(e,t){var r,n,s,i=this._eras||Ae("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":s=y(i[r].since).startOf("day"),i[r].since=s.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":s=y(i[r].until).startOf("day").valueOf(),i[r].until=s.valueOf();break}}return i}function jf(e,t,r){var n,s,i=this.eras(),a,o,l;for(e=e.toUpperCase(),n=0,s=i.length;n<s;++n)if(a=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(a===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([a,o,l].indexOf(e)>=0)return i[n]}function Uf(e,t){var r=e.since<=e.until?1:-1;return t===void 0?y(e.since).year():y(e.since).year()+(t-e.offset)*r}function Wf(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function Hf(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function Vf(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Bf(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-y(s[e].since).year())*r+s[e].offset;return this.year()}function Gf(e){return M(this,"_erasNameRegex")||Yn.call(this),e?this._erasNameRegex:this._erasRegex}function zf(e){return M(this,"_erasAbbrRegex")||Yn.call(this),e?this._erasAbbrRegex:this._erasRegex}function qf(e){return M(this,"_erasNarrowRegex")||Yn.call(this),e?this._erasNarrowRegex:this._erasRegex}function xn(e,t){return t.erasAbbrRegex(e)}function Jf(e,t){return t.erasNameRegex(e)}function Xf(e,t){return t.erasNarrowRegex(e)}function Kf(e,t){return t._eraYearOrdinalRegex||rt}function Yn(){var e=[],t=[],r=[],n=[],s,i,a,o,l,u=this.eras();for(s=0,i=u.length;s<i;++s)a=$e(u[s].name),o=$e(u[s].abbr),l=$e(u[s].narrow),t.push(a),e.push(o),r.push(l),n.push(a),n.push(o),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}b(0,["gg",2],0,function(){return this.weekYear()%100});b(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Sr(e,t){b(0,[e,e.length],0,t)}Sr("gggg","weekYear");Sr("ggggg","weekYear");Sr("GGGG","isoWeekYear");Sr("GGGGG","isoWeekYear");w("G",dr);w("g",dr);w("GG",U,te);w("gg",U,te);w("GGGG",On,vn);w("gggg",On,vn);w("GGGGG",fr,ur);w("ggggg",fr,ur);Tt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=A(e)});Tt(["gg","GG"],function(e,t,r,n){t[n]=y.parseTwoDigitYear(e)});function Zf(e){return ca.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Qf(e){return ca.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ed(){return De(this.year(),1,4)}function td(){return De(this.isoWeekYear(),1,4)}function rd(){var e=this.localeData()._week;return De(this.year(),e.dow,e.doy)}function nd(){var e=this.localeData()._week;return De(this.weekYear(),e.dow,e.doy)}function ca(e,t,r,n,s){var i;return e==null?St(this,n,s).year:(i=De(e,n,s),t>i&&(t=i),sd.call(this,e,t,r,n,s))}function sd(e,t,r,n,s){var i=Hi(e,t,r,n,s),a=yt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}b("Q",0,"Qo","quarter");w("Q",Ii);C("Q",function(e,t){t[Oe]=(A(e)-1)*3});function id(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}b("D",["DD",2],"Do","date");w("D",U,nt);w("DD",U,te);w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});C(["D","DD"],me);C("Do",function(e,t){t[me]=A(e.match(U)[0])});var fa=st("Date",!0);b("DDD",["DDDD",3],"DDDo","dayOfYear");w("DDD",cr);w("DDDD",Pi);C(["DDD","DDDD"],function(e,t,r){r._dayOfYear=A(e)});function ad(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}b("m",["mm",2],0,"minute");w("m",U,Tn);w("mm",U,te);C(["m","mm"],oe);var od=st("Minutes",!1);b("s",["ss",2],0,"second");w("s",U,Tn);w("ss",U,te);C(["s","ss"],Te);var ld=st("Seconds",!1);b("S",0,0,function(){return~~(this.millisecond()/100)});b(0,["SS",2],0,function(){return~~(this.millisecond()/10)});b(0,["SSS",3],0,"millisecond");b(0,["SSSS",4],0,function(){return this.millisecond()*10});b(0,["SSSSS",5],0,function(){return this.millisecond()*100});b(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});b(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});b(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});b(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});w("S",cr,Ii);w("SS",cr,te);w("SSS",cr,Pi);var Le,da;for(Le="SSSS";Le.length<=9;Le+="S")w(Le,rt);function ud(e,t){t[Ce]=A(("0."+e)*1e3)}for(Le="S";Le.length<=9;Le+="S")C(Le,ud);da=st("Milliseconds",!1);b("z",0,0,"zoneAbbr");b("zz",0,0,"zoneName");function cd(){return this._isUTC?"UTC":""}function fd(){return this._isUTC?"Coordinated Universal Time":""}var m=vt.prototype;m.add=rf;m.calendar=cf;m.clone=ff;m.diff=gf;m.endOf=Df;m.format=bf;m.from=vf;m.fromNow=Of;m.to=Tf;m.toNow=Rf;m.get=_u;m.invalidAt=Yf;m.isAfter=df;m.isBefore=hf;m.isBetween=mf;m.isSame=pf;m.isSameOrAfter=yf;m.isSameOrBefore=Sf;m.isValid=Lf;m.lang=ia;m.locale=sa;m.localeData=aa;m.max=Mc;m.min=Pc;m.parsingFlags=xf;m.set=Eu;m.startOf=$f;m.subtract=nf;m.toArray=If;m.toObject=Pf;m.toDate=kf;m.toISOString=_f;m.inspect=Ef;typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});m.toJSON=Mf;m.toString=wf;m.unix=Af;m.valueOf=Nf;m.creationData=Cf;m.eraName=Wf;m.eraNarrow=Hf;m.eraAbbr=Vf;m.eraYear=Bf;m.year=xi;m.isLeapYear=wu;m.weekYear=Zf;m.isoWeekYear=Qf;m.quarter=m.quarters=id;m.month=Ui;m.daysInMonth=Au;m.week=m.weeks=Cu;m.isoWeek=m.isoWeeks=Fu;m.weeksInYear=rd;m.weeksInWeekYear=nd;m.isoWeeksInYear=ed;m.isoWeeksInISOWeekYear=td;m.date=fa;m.day=m.days=Zu;m.weekday=Qu;m.isoWeekday=ec;m.dayOfYear=ad;m.hour=m.hours=oc;m.minute=m.minutes=od;m.second=m.seconds=ld;m.millisecond=m.milliseconds=da;m.utcOffset=Hc;m.utc=Bc;m.local=Gc;m.parseZone=zc;m.hasAlignedHourOffset=qc;m.isDST=Jc;m.isLocal=Kc;m.isUtcOffset=Zc;m.isUtc=ea;m.isUTC=ea;m.zoneAbbr=cd;m.zoneName=fd;m.dates=se("dates accessor is deprecated. Use date instead.",fa);m.months=se("months accessor is deprecated. Use month instead",Ui);m.years=se("years accessor is deprecated. Use year instead",xi);m.zone=se("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vc);m.isDSTShifted=se("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Xc);function dd(e){return j(e*1e3)}function hd(){return j.apply(null,arguments).parseZone()}function ha(e){return e}var L=_n.prototype;L.calendar=Kl;L.longDateFormat=tu;L.invalidDate=nu;L.ordinal=au;L.preparse=ha;L.postformat=ha;L.relativeTime=lu;L.pastFuture=uu;L.set=Jl;L.eras=Ff;L.erasParse=jf;L.erasConvertYear=Uf;L.erasAbbrRegex=zf;L.erasNameRegex=Gf;L.erasNarrowRegex=qf;L.months=Ru;L.monthsShort=$u;L.monthsParse=Nu;L.monthsRegex=Iu;L.monthsShortRegex=ku;L.week=Mu;L.firstDayOfYear=Yu;L.firstDayOfWeek=xu;L.weekdays=zu;L.weekdaysMin=Ju;L.weekdaysShort=qu;L.weekdaysParse=Ku;L.weekdaysRegex=tc;L.weekdaysShortRegex=rc;L.weekdaysMinRegex=nc;L.isPM=ic;L.meridiem=lc;function qt(e,t,r,n){var s=Ae(),i=we().set(n,t);return s[r](i,e)}function ma(e,t,r){if(Ne(e)&&(t=e,e=void 0),e=e||"",t!=null)return qt(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=qt(e,n,r,"month");return s}function Cn(e,t,r,n){typeof e=="boolean"?(Ne(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Ne(t)&&(r=t,t=void 0),t=t||"");var s=Ae(),i=e?s._week.dow:0,a,o=[];if(r!=null)return qt(t,(r+i)%7,n,"day");for(a=0;a<7;a++)o[a]=qt(t,(a+i)%7,n,"day");return o}function md(e,t){return ma(e,t,"months")}function pd(e,t){return ma(e,t,"monthsShort")}function yd(e,t,r){return Cn(e,t,r,"weekdays")}function Sd(e,t,r){return Cn(e,t,r,"weekdaysShort")}function gd(e,t,r){return Cn(e,t,r,"weekdaysMin")}xe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=A(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});y.lang=se("moment.lang is deprecated. Use moment.locale instead.",xe);y.langData=se("moment.langData is deprecated. Use moment.localeData instead.",Ae);var be=Math.abs;function wd(){var e=this._data;return this._milliseconds=be(this._milliseconds),this._days=be(this._days),this._months=be(this._months),e.milliseconds=be(e.milliseconds),e.seconds=be(e.seconds),e.minutes=be(e.minutes),e.hours=be(e.hours),e.months=be(e.months),e.years=be(e.years),this}function pa(e,t,r,n){var s=ce(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function _d(e,t){return pa(this,e,t,1)}function Ed(e,t){return pa(this,e,t,-1)}function Ss(e){return e<0?Math.floor(e):Math.ceil(e)}function bd(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,i,a,o,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Ss(sn(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=re(e/1e3),n.seconds=s%60,i=re(s/60),n.minutes=i%60,a=re(i/60),n.hours=a%24,t+=re(a/24),l=re(ya(t)),r+=l,t-=Ss(sn(l)),o=re(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function ya(e){return e*4800/146097}function sn(e){return e*146097/4800}function vd(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ie(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+ya(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(sn(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ke(e){return function(){return this.as(e)}}var Sa=ke("ms"),Od=ke("s"),Td=ke("m"),Rd=ke("h"),$d=ke("d"),Dd=ke("w"),Nd=ke("M"),Ad=ke("Q"),kd=ke("y"),Id=Sa;function Pd(){return ce(this)}function Md(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ue(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ld=Ue("milliseconds"),xd=Ue("seconds"),Yd=Ue("minutes"),Cd=Ue("hours"),Fd=Ue("days"),jd=Ue("months"),Ud=Ue("years");function Wd(){return re(this.days()/7)}var ve=Math.round,Ge={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Hd(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function Vd(e,t,r,n){var s=ce(e).abs(),i=ve(s.as("s")),a=ve(s.as("m")),o=ve(s.as("h")),l=ve(s.as("d")),u=ve(s.as("M")),f=ve(s.as("w")),c=ve(s.as("y")),_=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(_=_||f<=1&&["w"]||f<r.w&&["ww",f]),_=_||u<=1&&["M"]||u<r.M&&["MM",u]||c<=1&&["y"]||["yy",c],_[2]=t,_[3]=+e>0,_[4]=n,Hd.apply(null,_)}function Bd(e){return e===void 0?ve:typeof e=="function"?(ve=e,!0):!1}function Gd(e,t){return Ge[e]===void 0?!1:t===void 0?Ge[e]:(Ge[e]=t,e==="s"&&(Ge.ss=t-1),!0)}function zd(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Ge,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Ge,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),i=Vd(this,!r,n,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var Fr=Math.abs;function We(e){return(e>0)-(e<0)||+e}function gr(){if(!this.isValid())return this.localeData().invalidDate();var e=Fr(this._milliseconds)/1e3,t=Fr(this._days),r=Fr(this._months),n,s,i,a,o=this.asSeconds(),l,u,f,c;return o?(n=re(e/60),s=re(n/60),e%=60,n%=60,i=re(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=We(this._months)!==We(o)?"-":"",f=We(this._days)!==We(o)?"-":"",c=We(this._milliseconds)!==We(o)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?f+t+"D":"")+(s||n||e?"T":"")+(s?c+s+"H":"")+(n?c+n+"M":"")+(e?c+a+"S":"")):"P0D"}var I=yr.prototype;I.isValid=Fc;I.abs=wd;I.add=_d;I.subtract=Ed;I.as=vd;I.asMilliseconds=Sa;I.asSeconds=Od;I.asMinutes=Td;I.asHours=Rd;I.asDays=$d;I.asWeeks=Dd;I.asMonths=Nd;I.asQuarters=Ad;I.asYears=kd;I.valueOf=Id;I._bubble=bd;I.clone=Pd;I.get=Md;I.milliseconds=Ld;I.seconds=xd;I.minutes=Yd;I.hours=Cd;I.days=Fd;I.weeks=Wd;I.months=jd;I.years=Ud;I.humanize=zd;I.toISOString=gr;I.toString=gr;I.toJSON=gr;I.locale=sa;I.localeData=aa;I.toIsoString=se("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gr);I.lang=ia;b("X",0,0,"unix");b("x",0,0,"valueOf");w("x",dr);w("X",hu);C("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});C("x",function(e,t,r){r._d=new Date(A(e))});//! moment.js
|
|
15
|
+
y.version="2.30.1";zl(j);y.fn=m;y.min=Lc;y.max=xc;y.now=Yc;y.utc=we;y.unix=dd;y.months=md;y.isDate=bt;y.locale=xe;y.invalid=lr;y.duration=ce;y.isMoment=ue;y.weekdays=yd;y.parseZone=hd;y.localeData=Ae;y.isDuration=Ut;y.monthsShort=pd;y.weekdaysMin=gd;y.defineLocale=An;y.updateLocale=dc;y.locales=hc;y.weekdaysShort=Sd;y.normalizeUnits=ie;y.relativeTimeRounding=Bd;y.relativeTimeThreshold=Gd;y.calendarFormat=uf;y.prototype=m;y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function qd(e,t,r){t&&Object.keys(t).forEach(n=>{if(e.hasOwnProperty(n)){if(!t[n]||t[n]instanceof File)return e[n]=t[n];if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(t[n])&&y(t[n],y.ISO_8601,!0).isValid())return e[n]=new Date(t[n]);if(typeof t[n]=="object"&&(r!=null&&r[n]))if(Array.isArray(t[n])){e[n]=[];for(let s=0;s<t[n].length;s++)e[n].push(new r[n](t[n][s]))}else e[n]=new r[n](t[n]);else e[n]=t[n]}})}function ga(e,t){if(!(!e||!t))for(const r in t)t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(typeof t[r]=="object"&&t[r]!==null?ga(e[r],t[r]):e[r]=t[r])}const Jd=Object.freeze(Object.defineProperty({__proto__:null,copyAvailableFields:ga,copyModelFields:qd},Symbol.toStringTag,{value:"Module"}));function Xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Ee={},an={exports:{}};const Zd={},Qd=Object.freeze(Object.defineProperty({__proto__:null,default:Zd},Symbol.toStringTag,{value:"Module"})),Q=Kd(Qd);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Q,n=r.Buffer;function s(a,o){for(var l in a)o[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=i);function i(a,o,l){return n(a,o,l)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(a,o,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,l)},i.alloc=function(a,o,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=n(a);return o!==void 0?typeof l=="string"?u.fill(o,l):u.fill(o):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(an,an.exports);var Rt=an.exports,Jt=Rt.Buffer,eh=Q,th=Q;function wr(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=Jt.alloc(0),this;if(typeof e.pipe=="function")return this.buffer=Jt.alloc(0),e.pipe(this),this;if(e.length||typeof e=="object")return this.buffer=e,this.writable=!1,process.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}th.inherits(wr,eh);wr.prototype.write=function(t){this.buffer=Jt.concat([this.buffer,Jt.from(t)]),this.emit("data",t)};wr.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1};var wa=wr,wt=Q.Buffer,Fn=Q.SlowBuffer,rh=Xt;function Xt(e,t){if(!wt.isBuffer(e)||!wt.isBuffer(t)||e.length!==t.length)return!1;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}Xt.install=function(){wt.prototype.equal=Fn.prototype.equal=function(t){return Xt(this,t)}};var nh=wt.prototype.equal,sh=Fn.prototype.equal;Xt.restore=function(){wt.prototype.equal=nh,Fn.prototype.equal=sh};function jr(e){var t=(e/8|0)+(e%8===0?0:1);return t}var ih={ES256:jr(256),ES384:jr(384),ES512:jr(521)};function ah(e){var t=ih[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}var oh=ah,Kt=Rt.Buffer,_a=oh,Zt=128,Ea=0,lh=32,uh=16,ch=2,ba=uh|lh|Ea<<6,Qt=ch|Ea<<6;function fh(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function va(e){if(Kt.isBuffer(e))return e;if(typeof e=="string")return Kt.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function dh(e,t){e=va(e);var r=_a(t),n=r+1,s=e.length,i=0;if(e[i++]!==ba)throw new Error('Could not find expected "seq"');var a=e[i++];if(a===(Zt|1)&&(a=e[i++]),s-i<a)throw new Error('"seq" specified length of "'+a+'", only "'+(s-i)+'" remaining');if(e[i++]!==Qt)throw new Error('Could not find expected "int" for "r"');var o=e[i++];if(s-i-2<o)throw new Error('"r" specified length of "'+o+'", only "'+(s-i-2)+'" available');if(n<o)throw new Error('"r" specified length of "'+o+'", max of "'+n+'" is acceptable');var l=i;if(i+=o,e[i++]!==Qt)throw new Error('Could not find expected "int" for "s"');var u=e[i++];if(s-i!==u)throw new Error('"s" specified length of "'+u+'", expected "'+(s-i)+'"');if(n<u)throw new Error('"s" specified length of "'+u+'", max of "'+n+'" is acceptable');var f=i;if(i+=u,i!==s)throw new Error('Expected to consume entire buffer, but "'+(s-i)+'" bytes remain');var c=r-o,_=r-u,p=Kt.allocUnsafe(c+o+_+u);for(i=0;i<c;++i)p[i]=0;e.copy(p,i,l+Math.max(-c,0),l+o),i=r;for(var d=i;i<d+_;++i)p[i]=0;return e.copy(p,i,f+Math.max(-_,0),f+u),p=p.toString("base64"),p=fh(p),p}function gs(e,t,r){for(var n=0;t+n<r&&e[t+n]===0;)++n;var s=e[t+n]>=Zt;return s&&--n,n}function hh(e,t){e=va(e);var r=_a(t),n=e.length;if(n!==r*2)throw new TypeError('"'+t+'" signatures must be "'+r*2+'" bytes, saw "'+n+'"');var s=gs(e,0,r),i=gs(e,r,e.length),a=r-s,o=r-i,l=1+1+a+1+1+o,u=l<Zt,f=Kt.allocUnsafe((u?2:3)+l),c=0;return f[c++]=ba,u?f[c++]=l:(f[c++]=Zt|1,f[c++]=l&255),f[c++]=Qt,f[c++]=a,s<0?(f[c++]=0,c+=e.copy(f,c,0,r)):c+=e.copy(f,c,s,r),f[c++]=Qt,f[c++]=o,i<0?(f[c++]=0,e.copy(f,c,r)):e.copy(f,c,r+i),f}var mh={derToJose:dh,joseToDer:hh},ph=rh,Ke=Rt.Buffer,ye=Q,Oa=mh,ws=Q,yh=`"%s" is not a valid algorithm.
|
|
16
|
+
Supported algorithms are:
|
|
17
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,dt="secret must be a string or buffer",Be="key must be a string or a buffer",Sh="key must be a string, a buffer or an object",jn=typeof ye.createPublicKey=="function";jn&&(Be+=" or a KeyObject",dt+="or a KeyObject");function Ta(e){if(!Ke.isBuffer(e)&&typeof e!="string"&&(!jn||typeof e!="object"||typeof e.type!="string"||typeof e.asymmetricKeyType!="string"||typeof e.export!="function"))throw ae(Be)}function Ra(e){if(!Ke.isBuffer(e)&&typeof e!="string"&&typeof e!="object")throw ae(Sh)}function gh(e){if(!Ke.isBuffer(e)){if(typeof e=="string")return e;if(!jn||typeof e!="object"||e.type!=="secret"||typeof e.export!="function")throw ae(dt)}}function Un(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $a(e){e=e.toString();var t=4-e.length%4;if(t!==4)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function ae(e){var t=[].slice.call(arguments,1),r=ws.format.bind(ws,e).apply(null,t);return new TypeError(r)}function wh(e){return Ke.isBuffer(e)||typeof e=="string"}function $t(e){return wh(e)||(e=JSON.stringify(e)),e}function Da(e){return function(r,n){gh(n),r=$t(r);var s=ye.createHmac("sha"+e,n),i=(s.update(r),s.digest("base64"));return Un(i)}}function _h(e){return function(r,n,s){var i=Da(e)(r,s);return ph(Ke.from(n),Ke.from(i))}}function Na(e){return function(r,n){Ra(n),r=$t(r);var s=ye.createSign("RSA-SHA"+e),i=(s.update(r),s.sign(n,"base64"));return Un(i)}}function Aa(e){return function(r,n,s){Ta(s),r=$t(r),n=$a(n);var i=ye.createVerify("RSA-SHA"+e);return i.update(r),i.verify(s,n,"base64")}}function Eh(e){return function(r,n){Ra(n),r=$t(r);var s=ye.createSign("RSA-SHA"+e),i=(s.update(r),s.sign({key:n,padding:ye.constants.RSA_PKCS1_PSS_PADDING,saltLength:ye.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return Un(i)}}function bh(e){return function(r,n,s){Ta(s),r=$t(r),n=$a(n);var i=ye.createVerify("RSA-SHA"+e);return i.update(r),i.verify({key:s,padding:ye.constants.RSA_PKCS1_PSS_PADDING,saltLength:ye.constants.RSA_PSS_SALTLEN_DIGEST},n,"base64")}}function vh(e){var t=Na(e);return function(){var n=t.apply(null,arguments);return n=Oa.derToJose(n,"ES"+e),n}}function Oh(e){var t=Aa(e);return function(n,s,i){s=Oa.joseToDer(s,"ES"+e).toString("base64");var a=t(n,s,i);return a}}function Th(){return function(){return""}}function Rh(){return function(t,r){return r===""}}var ka=function(t){var r={hs:Da,rs:Na,ps:Eh,es:vh,none:Th},n={hs:_h,rs:Aa,ps:bh,es:Oh,none:Rh},s=t.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!s)throw ae(yh,t);var i=(s[1]||s[3]).toLowerCase(),a=s[2];return{sign:r[i](a),verify:n[i](a)}},$h=Q.Buffer,Ia=function(t){return typeof t=="string"?t:typeof t=="number"||$h.isBuffer(t)?t.toString():JSON.stringify(t)},Dh=Rt.Buffer,_s=wa,Nh=ka,Ah=Q,Es=Ia,Wn=Q;function bs(e,t){return Dh.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function kh(e,t,r){r=r||"utf8";var n=bs(Es(e),"binary"),s=bs(Es(t),r);return Wn.format("%s.%s",n,s)}function Pa(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,s=e.encoding,i=Nh(t.alg),a=kh(t,r,s),o=i.sign(a,n);return Wn.format("%s.%s",a,o)}function _r(e){var t=e.secret||e.privateKey||e.key,r=new _s(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new _s(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}Wn.inherits(_r,Ah);_r.prototype.sign=function(){try{var t=Pa({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",t),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(r){this.readable=!1,this.emit("error",r),this.emit("close")}};_r.sign=Pa;var Ih=_r,Ma=Rt.Buffer,vs=wa,Ph=ka,Mh=Q,La=Ia,Lh=Q,xh=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function Yh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ch(e){if(Yh(e))return e;try{return JSON.parse(e)}catch{return}}function xa(e){var t=e.split(".",1)[0];return Ch(Ma.from(t,"base64").toString("binary"))}function Fh(e){return e.split(".",2).join(".")}function Ya(e){return e.split(".")[2]}function jh(e,t){t=t||"utf8";var r=e.split(".")[1];return Ma.from(r,"base64").toString(t)}function Ca(e){return xh.test(e)&&!!xa(e)}function Fa(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}e=La(e);var s=Ya(e),i=Fh(e),a=Ph(t);return a.verify(i,s,r)}function ja(e,t){if(t=t||{},e=La(e),!Ca(e))return null;var r=xa(e);if(!r)return null;var n=jh(e);return(r.typ==="JWT"||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:Ya(e)}}function it(e){e=e||{};var t=e.secret||e.publicKey||e.key,r=new vs(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new vs(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}Lh.inherits(it,Mh);it.prototype.verify=function(){try{var t=Fa(this.signature.buffer,this.algorithm,this.key.buffer),r=ja(this.signature.buffer,this.encoding);return this.emit("done",t,r),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(n){this.readable=!1,this.emit("error",n),this.emit("close")}};it.decode=ja;it.isValid=Ca;it.verify=Fa;var Uh=it,Ua=Ih,Er=Uh,Wh=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];Ee.ALGORITHMS=Wh;Ee.sign=Ua.sign;Ee.verify=Er.verify;Ee.decode=Er.decode;Ee.isValid=Er.isValid;Ee.createSign=function(t){return new Ua(t)};Ee.createVerify=function(t){return new Er(t)};var Hh=Ee,Wa=function(e,t){t=t||{};var r=Hh.decode(e,t);if(!r)return null;var n=r.payload;if(typeof n=="string")try{var s=JSON.parse(n);s!==null&&typeof s=="object"&&(n=s)}catch{}return t.complete===!0?{header:r.header,payload:n,signature:r.signature}:n},er=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};er.prototype=Object.create(Error.prototype);er.prototype.constructor=er;var br=er,Ha=br,tr=function(e,t){Ha.call(this,e),this.name="NotBeforeError",this.date=t};tr.prototype=Object.create(Ha.prototype);tr.prototype.constructor=tr;var Va=tr,Ba=br,rr=function(e,t){Ba.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};rr.prototype=Object.create(Ba.prototype);rr.prototype.constructor=rr;var Ga=rr,Ze=1e3,Qe=Ze*60,et=Qe*60,je=et*24,Vh=je*7,Bh=je*365.25,Gh=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return zh(e);if(r==="number"&&isFinite(e))return t.long?Jh(e):qh(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function zh(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Bh;case"weeks":case"week":case"w":return r*Vh;case"days":case"day":case"d":return r*je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*et;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function qh(e){var t=Math.abs(e);return t>=je?Math.round(e/je)+"d":t>=et?Math.round(e/et)+"h":t>=Qe?Math.round(e/Qe)+"m":t>=Ze?Math.round(e/Ze)+"s":e+"ms"}function Jh(e){var t=Math.abs(e);return t>=je?kt(e,t,je,"day"):t>=et?kt(e,t,et,"hour"):t>=Qe?kt(e,t,Qe,"minute"):t>=Ze?kt(e,t,Ze,"second"):e+" ms"}function kt(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}var Xh=Gh,za=function(e,t){var r=t||Math.floor(Date.now()/1e3);if(typeof e=="string"){var n=Xh(e);return typeof n>"u"?void 0:Math.floor(r+n/1e3)}else return typeof e=="number"?r+e:void 0},on={exports:{}};const Kh="2.0.0",qa=256,Zh=Number.MAX_SAFE_INTEGER||9007199254740991,Qh=16,em=qa-6,tm=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var vr={MAX_LENGTH:qa,MAX_SAFE_COMPONENT_LENGTH:Qh,MAX_SAFE_BUILD_LENGTH:em,MAX_SAFE_INTEGER:Zh,RELEASE_TYPES:tm,SEMVER_SPEC_VERSION:Kh,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const rm=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Or=rm;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=vr,i=Or;t=e.exports={};const a=t.re=[],o=t.safeRe=[],l=t.src=[],u=t.t={};let f=0;const c="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",s],[c,n]],p=S=>{for(const[P,W]of _)S=S.split(`${P}*`).join(`${P}{0,${W}}`).split(`${P}+`).join(`${P}{1,${W}}`);return S},d=(S,P,W)=>{const x=p(P),G=f++;i(S,G,P),u[S]=G,l[G]=P,a[G]=new RegExp(P,W?"g":void 0),o[G]=new RegExp(x,W?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),d("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${c}+`),d("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),d("FULL",`^${l[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),d("LOOSE",`^${l[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),d("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),d("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",l[u.COERCE],!0),d("COERCERTLFULL",l[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(on,on.exports);var Dt=on.exports;const nm=Object.freeze({loose:!0}),sm=Object.freeze({}),im=e=>e?typeof e!="object"?nm:e:sm;var Hn=im;const Os=/^[0-9]+$/,Ja=(e,t)=>{const r=Os.test(e),n=Os.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},am=(e,t)=>Ja(t,e);var Xa={compareIdentifiers:Ja,rcompareIdentifiers:am};const It=Or,{MAX_LENGTH:Ts,MAX_SAFE_INTEGER:Pt}=vr,{safeRe:Rs,t:$s}=Dt,om=Hn,{compareIdentifiers:He}=Xa;let lm=class he{constructor(t,r){if(r=om(r),t instanceof he){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Ts)throw new TypeError(`version is longer than ${Ts} characters`);It("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?Rs[$s.LOOSE]:Rs[$s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Pt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Pt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Pt||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const i=+s;if(i>=0&&i<Pt)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(It("SemVer.compare",this.version,this.options,t),!(t instanceof he)){if(typeof t=="string"&&t===this.version)return 0;t=new he(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof he||(t=new he(t,this.options)),He(this.major,t.major)||He(this.minor,t.minor)||He(this.patch,t.patch)}comparePre(t){if(t instanceof he||(t=new he(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],s=t.prerelease[r];if(It("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return He(n,s)}while(++r)}compareBuild(t){t instanceof he||(t=new he(t,this.options));let r=0;do{const n=this.build[r],s=t.build[r];if(It("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return He(n,s)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const s=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let i=[r,s];n===!1&&(i=[r]),He(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var K=lm;const Ds=K,um=(e,t,r=!1)=>{if(e instanceof Ds)return e;try{return new Ds(e,t)}catch(n){if(!r)return null;throw n}};var at=um;const cm=at,fm=(e,t)=>{const r=cm(e,t);return r?r.version:null};var dm=fm;const hm=at,mm=(e,t)=>{const r=hm(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var pm=mm;const Ns=K,ym=(e,t,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Ns(e instanceof Ns?e.version:e,r).inc(t,n,s).version}catch{return null}};var Sm=ym;const As=at,gm=(e,t)=>{const r=As(e,null,!0),n=As(t,null,!0),s=r.compare(n);if(s===0)return null;const i=s>0,a=i?r:n,o=i?n:r,l=!!a.prerelease.length;if(!!o.prerelease.length&&!l)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";const f=l?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};var wm=gm;const _m=K,Em=(e,t)=>new _m(e,t).major;var bm=Em;const vm=K,Om=(e,t)=>new vm(e,t).minor;var Tm=Om;const Rm=K,$m=(e,t)=>new Rm(e,t).patch;var Dm=$m;const Nm=at,Am=(e,t)=>{const r=Nm(e,t);return r&&r.prerelease.length?r.prerelease:null};var km=Am;const ks=K,Im=(e,t,r)=>new ks(e,r).compare(new ks(t,r));var fe=Im;const Pm=fe,Mm=(e,t,r)=>Pm(t,e,r);var Lm=Mm;const xm=fe,Ym=(e,t)=>xm(e,t,!0);var Cm=Ym;const Is=K,Fm=(e,t,r)=>{const n=new Is(e,r),s=new Is(t,r);return n.compare(s)||n.compareBuild(s)};var Vn=Fm;const jm=Vn,Um=(e,t)=>e.sort((r,n)=>jm(r,n,t));var Wm=Um;const Hm=Vn,Vm=(e,t)=>e.sort((r,n)=>Hm(n,r,t));var Bm=Vm;const Gm=fe,zm=(e,t,r)=>Gm(e,t,r)>0;var Tr=zm;const qm=fe,Jm=(e,t,r)=>qm(e,t,r)<0;var Bn=Jm;const Xm=fe,Km=(e,t,r)=>Xm(e,t,r)===0;var Ka=Km;const Zm=fe,Qm=(e,t,r)=>Zm(e,t,r)!==0;var Za=Qm;const ep=fe,tp=(e,t,r)=>ep(e,t,r)>=0;var Gn=tp;const rp=fe,np=(e,t,r)=>rp(e,t,r)<=0;var zn=np;const sp=Ka,ip=Za,ap=Tr,op=Gn,lp=Bn,up=zn,cp=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return sp(e,r,n);case"!=":return ip(e,r,n);case">":return ap(e,r,n);case">=":return op(e,r,n);case"<":return lp(e,r,n);case"<=":return up(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Qa=cp;const fp=K,dp=at,{safeRe:Mt,t:Lt}=Dt,hp=(e,t)=>{if(e instanceof fp)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Mt[Lt.COERCEFULL]:Mt[Lt.COERCE]);else{const l=t.includePrerelease?Mt[Lt.COERCERTLFULL]:Mt[Lt.COERCERTL];let u;for(;(u=l.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;const n=r[2],s=r[3]||"0",i=r[4]||"0",a=t.includePrerelease&&r[5]?`-${r[5]}`:"",o=t.includePrerelease&&r[6]?`+${r[6]}`:"";return dp(`${n}.${s}.${i}${a}${o}`,t)};var mp=hp;class pp{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(t,r)}return this}}var yp=pp,Ur,Ps;function de(){if(Ps)return Ur;Ps=1;class e{constructor(g,R){if(R=n(R),g instanceof e)return g.loose===!!R.loose&&g.includePrerelease===!!R.includePrerelease?g:new e(g.raw,R);if(g instanceof s)return this.raw=g.value,this.set=[[g]],this.format(),this;if(this.options=R,this.loose=!!R.loose,this.includePrerelease=!!R.includePrerelease,this.raw=g.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(O=>this.parseRange(O.trim())).filter(O=>O.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const O=this.set[0];if(this.set=this.set.filter(T=>!d(T[0])),this.set.length===0)this.set=[O];else if(this.set.length>1){for(const T of this.set)if(T.length===1&&S(T[0])){this.set=[T];break}}}this.format()}format(){return this.range=this.set.map(g=>g.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(g){const O=((this.options.includePrerelease&&_)|(this.options.loose&&p))+":"+g,T=r.get(O);if(T)return T;const v=this.options.loose,D=v?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];g=g.replace(D,So(this.options.includePrerelease)),i("hyphen replace",g),g=g.replace(o[l.COMPARATORTRIM],u),i("comparator trim",g),g=g.replace(o[l.TILDETRIM],f),i("tilde trim",g),g=g.replace(o[l.CARETTRIM],c),i("caret trim",g);let Y=g.split(" ").map(z=>W(z,this.options)).join(" ").split(/\s+/).map(z=>yo(z,this.options));v&&(Y=Y.filter(z=>(i("loose invalid filter",z,this.options),!!z.match(o[l.COMPARATORLOOSE])))),i("range list",Y);const N=new Map,V=Y.map(z=>new s(z,this.options));for(const z of V){if(d(z))return[z];N.set(z.value,z)}N.size>1&&N.has("")&&N.delete("");const ee=[...N.values()];return r.set(O,ee),ee}intersects(g,R){if(!(g instanceof e))throw new TypeError("a Range is required");return this.set.some(O=>P(O,R)&&g.set.some(T=>P(T,R)&&O.every(v=>T.every(D=>v.intersects(D,R)))))}test(g){if(!g)return!1;if(typeof g=="string")try{g=new a(g,this.options)}catch{return!1}for(let R=0;R<this.set.length;R++)if(go(this.set[R],g,this.options))return!0;return!1}}Ur=e;const t=yp,r=new t,n=Hn,s=Rr(),i=Or,a=K,{safeRe:o,t:l,comparatorTrimReplace:u,tildeTrimReplace:f,caretTrimReplace:c}=Dt,{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:p}=vr,d=E=>E.value==="<0.0.0-0",S=E=>E.value==="",P=(E,g)=>{let R=!0;const O=E.slice();let T=O.pop();for(;R&&O.length;)R=O.every(v=>T.intersects(v,g)),T=O.pop();return R},W=(E,g)=>(i("comp",E,g),E=co(E,g),i("caret",E),E=G(E,g),i("tildes",E),E=ho(E,g),i("xrange",E),E=po(E,g),i("stars",E),E),x=E=>!E||E.toLowerCase()==="x"||E==="*",G=(E,g)=>E.trim().split(/\s+/).map(R=>Ar(R,g)).join(" "),Ar=(E,g)=>{const R=g.loose?o[l.TILDELOOSE]:o[l.TILDE];return E.replace(R,(O,T,v,D,Y)=>{i("tilde",E,O,T,v,D,Y);let N;return x(T)?N="":x(v)?N=`>=${T}.0.0 <${+T+1}.0.0-0`:x(D)?N=`>=${T}.${v}.0 <${T}.${+v+1}.0-0`:Y?(i("replaceTilde pr",Y),N=`>=${T}.${v}.${D}-${Y} <${T}.${+v+1}.0-0`):N=`>=${T}.${v}.${D} <${T}.${+v+1}.0-0`,i("tilde return",N),N})},co=(E,g)=>E.trim().split(/\s+/).map(R=>fo(R,g)).join(" "),fo=(E,g)=>{i("caret",E,g);const R=g.loose?o[l.CARETLOOSE]:o[l.CARET],O=g.includePrerelease?"-0":"";return E.replace(R,(T,v,D,Y,N)=>{i("caret",E,T,v,D,Y,N);let V;return x(v)?V="":x(D)?V=`>=${v}.0.0${O} <${+v+1}.0.0-0`:x(Y)?v==="0"?V=`>=${v}.${D}.0${O} <${v}.${+D+1}.0-0`:V=`>=${v}.${D}.0${O} <${+v+1}.0.0-0`:N?(i("replaceCaret pr",N),v==="0"?D==="0"?V=`>=${v}.${D}.${Y}-${N} <${v}.${D}.${+Y+1}-0`:V=`>=${v}.${D}.${Y}-${N} <${v}.${+D+1}.0-0`:V=`>=${v}.${D}.${Y}-${N} <${+v+1}.0.0-0`):(i("no pr"),v==="0"?D==="0"?V=`>=${v}.${D}.${Y}${O} <${v}.${D}.${+Y+1}-0`:V=`>=${v}.${D}.${Y}${O} <${v}.${+D+1}.0-0`:V=`>=${v}.${D}.${Y} <${+v+1}.0.0-0`),i("caret return",V),V})},ho=(E,g)=>(i("replaceXRanges",E,g),E.split(/\s+/).map(R=>mo(R,g)).join(" ")),mo=(E,g)=>{E=E.trim();const R=g.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return E.replace(R,(O,T,v,D,Y,N)=>{i("xRange",E,O,T,v,D,Y,N);const V=x(v),ee=V||x(D),z=ee||x(Y),ot=z;return T==="="&&ot&&(T=""),N=g.includePrerelease?"-0":"",V?T===">"||T==="<"?O="<0.0.0-0":O="*":T&&ot?(ee&&(D=0),Y=0,T===">"?(T=">=",ee?(v=+v+1,D=0,Y=0):(D=+D+1,Y=0)):T==="<="&&(T="<",ee?v=+v+1:D=+D+1),T==="<"&&(N="-0"),O=`${T+v}.${D}.${Y}${N}`):ee?O=`>=${v}.0.0${N} <${+v+1}.0.0-0`:z&&(O=`>=${v}.${D}.0${N} <${v}.${+D+1}.0-0`),i("xRange return",O),O})},po=(E,g)=>(i("replaceStars",E,g),E.trim().replace(o[l.STAR],"")),yo=(E,g)=>(i("replaceGTE0",E,g),E.trim().replace(o[g.includePrerelease?l.GTE0PRE:l.GTE0],"")),So=E=>(g,R,O,T,v,D,Y,N,V,ee,z,ot)=>(x(O)?R="":x(T)?R=`>=${O}.0.0${E?"-0":""}`:x(v)?R=`>=${O}.${T}.0${E?"-0":""}`:D?R=`>=${R}`:R=`>=${R}${E?"-0":""}`,x(V)?N="":x(ee)?N=`<${+V+1}.0.0-0`:x(z)?N=`<${V}.${+ee+1}.0-0`:ot?N=`<=${V}.${ee}.${z}-${ot}`:E?N=`<${V}.${ee}.${+z+1}-0`:N=`<=${N}`,`${R} ${N}`.trim()),go=(E,g,R)=>{for(let O=0;O<E.length;O++)if(!E[O].test(g))return!1;if(g.prerelease.length&&!R.includePrerelease){for(let O=0;O<E.length;O++)if(i(E[O].semver),E[O].semver!==s.ANY&&E[O].semver.prerelease.length>0){const T=E[O].semver;if(T.major===g.major&&T.minor===g.minor&&T.patch===g.patch)return!0}return!1}return!0};return Ur}var Wr,Ms;function Rr(){if(Ms)return Wr;Ms=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,c){if(c=r(c),f instanceof t){if(f.loose===!!c.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),a("comparator",f,c),this.options=c,this.loose=!!c.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(f){const c=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],_=f.match(c);if(!_)throw new TypeError(`Invalid comparator: ${f}`);this.operator=_[1]!==void 0?_[1]:"",this.operator==="="&&(this.operator=""),_[2]?this.semver=new o(_[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(a("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new o(f,this.options)}catch{return!1}return i(f,this.operator,this.semver,this.options)}intersects(f,c){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(f.value,c).test(this.value):f.operator===""?f.value===""?!0:new l(this.value,c).test(f.semver):(c=r(c),c.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!c.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||i(this.semver,"<",f.semver,c)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||i(this.semver,">",f.semver,c)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}Wr=t;const r=Hn,{safeRe:n,t:s}=Dt,i=Qa,a=Or,o=K,l=de();return Wr}const Sp=de(),gp=(e,t,r)=>{try{t=new Sp(t,r)}catch{return!1}return t.test(e)};var $r=gp;const wp=de(),_p=(e,t)=>new wp(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Ep=_p;const bp=K,vp=de(),Op=(e,t,r)=>{let n=null,s=null,i=null;try{i=new vp(t,r)}catch{return null}return e.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new bp(n,r))}),n};var Tp=Op;const Rp=K,$p=de(),Dp=(e,t,r)=>{let n=null,s=null,i=null;try{i=new $p(t,r)}catch{return null}return e.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Rp(n,r))}),n};var Np=Dp;const Hr=K,Ap=de(),Ls=Tr,kp=(e,t)=>{e=new Ap(e,t);let r=new Hr("0.0.0");if(e.test(r)||(r=new Hr("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const s=e.set[n];let i=null;s.forEach(a=>{const o=new Hr(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!i||Ls(o,i))&&(i=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!r||Ls(r,i))&&(r=i)}return r&&e.test(r)?r:null};var Ip=kp;const Pp=de(),Mp=(e,t)=>{try{return new Pp(e,t).range||"*"}catch{return null}};var Lp=Mp;const xp=K,eo=Rr(),{ANY:Yp}=eo,Cp=de(),Fp=$r,xs=Tr,Ys=Bn,jp=zn,Up=Gn,Wp=(e,t,r,n)=>{e=new xp(e,n),t=new Cp(t,n);let s,i,a,o,l;switch(r){case">":s=xs,i=jp,a=Ys,o=">",l=">=";break;case"<":s=Ys,i=Up,a=xs,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Fp(e,t,n))return!1;for(let u=0;u<t.set.length;++u){const f=t.set[u];let c=null,_=null;if(f.forEach(p=>{p.semver===Yp&&(p=new eo(">=0.0.0")),c=c||p,_=_||p,s(p.semver,c.semver,n)?c=p:a(p.semver,_.semver,n)&&(_=p)}),c.operator===o||c.operator===l||(!_.operator||_.operator===o)&&i(e,_.semver))return!1;if(_.operator===l&&a(e,_.semver))return!1}return!0};var qn=Wp;const Hp=qn,Vp=(e,t,r)=>Hp(e,t,">",r);var Bp=Vp;const Gp=qn,zp=(e,t,r)=>Gp(e,t,"<",r);var qp=zp;const Cs=de(),Jp=(e,t,r)=>(e=new Cs(e,r),t=new Cs(t,r),e.intersects(t,r));var Xp=Jp;const Kp=$r,Zp=fe;var Qp=(e,t,r)=>{const n=[];let s=null,i=null;const a=e.sort((f,c)=>Zp(f,c,r));for(const f of a)Kp(f,t,r)?(i=f,s||(s=f)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);const o=[];for(const[f,c]of n)f===c?o.push(f):!c&&f===a[0]?o.push("*"):c?f===a[0]?o.push(`<=${c}`):o.push(`${f} - ${c}`):o.push(`>=${f}`);const l=o.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return l.length<u.length?l:t};const Fs=de(),Jn=Rr(),{ANY:Vr}=Jn,ft=$r,Xn=fe,ey=(e,t,r={})=>{if(e===t)return!0;e=new Fs(e,r),t=new Fs(t,r);let n=!1;e:for(const s of e.set){for(const i of t.set){const a=ry(s,i,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},ty=[new Jn(">=0.0.0-0")],js=[new Jn(">=0.0.0")],ry=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Vr){if(t.length===1&&t[0].semver===Vr)return!0;r.includePrerelease?e=ty:e=js}if(t.length===1&&t[0].semver===Vr){if(r.includePrerelease)return!0;t=js}const n=new Set;let s,i;for(const p of e)p.operator===">"||p.operator===">="?s=Us(s,p,r):p.operator==="<"||p.operator==="<="?i=Ws(i,p,r):n.add(p.semver);if(n.size>1)return null;let a;if(s&&i){if(a=Xn(s.semver,i.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(const p of n){if(s&&!ft(p,String(s),r)||i&&!ft(p,String(i),r))return null;for(const d of t)if(!ft(p,String(d),r))return!1;return!0}let o,l,u,f,c=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,_=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;c&&c.prerelease.length===1&&i.operator==="<"&&c.prerelease[0]===0&&(c=!1);for(const p of t){if(f=f||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",s){if(_&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===_.major&&p.semver.minor===_.minor&&p.semver.patch===_.patch&&(_=!1),p.operator===">"||p.operator===">="){if(o=Us(s,p,r),o===p&&o!==s)return!1}else if(s.operator===">="&&!ft(s.semver,String(p),r))return!1}if(i){if(c&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===c.major&&p.semver.minor===c.minor&&p.semver.patch===c.patch&&(c=!1),p.operator==="<"||p.operator==="<="){if(l=Ws(i,p,r),l===p&&l!==i)return!1}else if(i.operator==="<="&&!ft(i.semver,String(p),r))return!1}if(!p.operator&&(i||s)&&a!==0)return!1}return!(s&&u&&!i&&a!==0||i&&f&&!s&&a!==0||_||c)},Us=(e,t,r)=>{if(!e)return t;const n=Xn(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Ws=(e,t,r)=>{if(!e)return t;const n=Xn(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var ny=ey;const Br=Dt,Hs=vr,sy=K,Vs=Xa,iy=at,ay=dm,oy=pm,ly=Sm,uy=wm,cy=bm,fy=Tm,dy=Dm,hy=km,my=fe,py=Lm,yy=Cm,Sy=Vn,gy=Wm,wy=Bm,_y=Tr,Ey=Bn,by=Ka,vy=Za,Oy=Gn,Ty=zn,Ry=Qa,$y=mp,Dy=Rr(),Ny=de(),Ay=$r,ky=Ep,Iy=Tp,Py=Np,My=Ip,Ly=Lp,xy=qn,Yy=Bp,Cy=qp,Fy=Xp,jy=Qp,Uy=ny;var Kn={parse:iy,valid:ay,clean:oy,inc:ly,diff:uy,major:cy,minor:fy,patch:dy,prerelease:hy,compare:my,rcompare:py,compareLoose:yy,compareBuild:Sy,sort:gy,rsort:wy,gt:_y,lt:Ey,eq:by,neq:vy,gte:Oy,lte:Ty,cmp:Ry,coerce:$y,Comparator:Dy,Range:Ny,satisfies:Ay,toComparators:ky,maxSatisfying:Iy,minSatisfying:Py,minVersion:My,validRange:Ly,outside:xy,gtr:Yy,ltr:Cy,intersects:Fy,simplifyRange:jy,subset:Uy,SemVer:sy,re:Br.re,src:Br.src,tokens:Br.t,SEMVER_SPEC_VERSION:Hs.SEMVER_SPEC_VERSION,RELEASE_TYPES:Hs.RELEASE_TYPES,compareIdentifiers:Vs.compareIdentifiers,rcompareIdentifiers:Vs.rcompareIdentifiers};const Wy=Kn;var Hy=Wy.satisfies(process.version,">=15.7.0");const Vy=Kn;var By=Vy.satisfies(process.version,">=16.9.0");const Gy=Hy,zy=By,qy={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},Jy={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};var to=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const n=qy[r];if(!n)throw new Error(`Unknown key type "${r}".`);if(!n.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${n.join(", ")}.`);if(Gy)switch(r){case"ec":const s=t.asymmetricKeyDetails.namedCurve,i=Jy[e];if(s!==i)throw new Error(`"alg" parameter "${e}" requires curve "${i}".`);break;case"rsa-pss":if(zy){const a=parseInt(e.slice(-3),10),{hashAlgorithm:o,mgf1HashAlgorithm:l,saltLength:u}=t.asymmetricKeyDetails;if(o!==`sha${a}`||l!==o)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(u!==void 0&&u>a>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}break}},Xy=Kn,ro=Xy.satisfies(process.version,"^6.12.0 || >=8.0.0");const F=br,Ky=Va,Bs=Ga,Zy=Wa,Qy=za,e0=to,t0=ro,r0=Ee,{KeyObject:n0,createSecretKey:s0,createPublicKey:i0}=Q,ln=["RS256","RS384","RS512"],a0=["ES256","ES384","ES512"],un=["RS256","RS384","RS512"],o0=["HS256","HS384","HS512"];t0&&(ln.splice(ln.length,0,"PS256","PS384","PS512"),un.splice(un.length,0,"PS256","PS384","PS512"));var l0=function(e,t,r,n){typeof r=="function"&&!n&&(n=r,r={}),r||(r={}),r=Object.assign({},r);let s;if(n?s=n:s=function(f,c){if(f)throw f;return c},r.clockTimestamp&&typeof r.clockTimestamp!="number")return s(new F("clockTimestamp must be a number"));if(r.nonce!==void 0&&(typeof r.nonce!="string"||r.nonce.trim()===""))return s(new F("nonce must be a non-empty string"));if(r.allowInvalidAsymmetricKeyTypes!==void 0&&typeof r.allowInvalidAsymmetricKeyTypes!="boolean")return s(new F("allowInvalidAsymmetricKeyTypes must be a boolean"));const i=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return s(new F("jwt must be provided"));if(typeof e!="string")return s(new F("jwt must be a string"));const a=e.split(".");if(a.length!==3)return s(new F("jwt malformed"));let o;try{o=Zy(e,{complete:!0})}catch(f){return s(f)}if(!o)return s(new F("invalid token"));const l=o.header;let u;if(typeof t=="function"){if(!n)return s(new F("verify must be called asynchronous if secret or public key is provided as a callback"));u=t}else u=function(f,c){return c(null,t)};return u(l,function(f,c){if(f)return s(new F("error in secret or public key callback: "+f.message));const _=a[2].trim()!=="";if(!_&&c)return s(new F("jwt signature is required"));if(_&&!c)return s(new F("secret or public key must be provided"));if(!_&&!r.algorithms)return s(new F('please specify "none" in "algorithms" to verify unsigned tokens'));if(c!=null&&!(c instanceof n0))try{c=i0(c)}catch{try{c=s0(typeof c=="string"?Buffer.from(c):c)}catch{return s(new F("secretOrPublicKey is not valid key material"))}}if(r.algorithms||(c.type==="secret"?r.algorithms=o0:["rsa","rsa-pss"].includes(c.asymmetricKeyType)?r.algorithms=un:c.asymmetricKeyType==="ec"?r.algorithms=a0:r.algorithms=ln),r.algorithms.indexOf(o.header.alg)===-1)return s(new F("invalid algorithm"));if(l.alg.startsWith("HS")&&c.type!=="secret")return s(new F(`secretOrPublicKey must be a symmetric key when using ${l.alg}`));if(/^(?:RS|PS|ES)/.test(l.alg)&&c.type!=="public")return s(new F(`secretOrPublicKey must be an asymmetric key when using ${l.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{e0(l.alg,c)}catch(S){return s(S)}let p;try{p=r0.verify(e,o.header.alg,c)}catch(S){return s(S)}if(!p)return s(new F("invalid signature"));const d=o.payload;if(typeof d.nbf<"u"&&!r.ignoreNotBefore){if(typeof d.nbf!="number")return s(new F("invalid nbf value"));if(d.nbf>i+(r.clockTolerance||0))return s(new Ky("jwt not active",new Date(d.nbf*1e3)))}if(typeof d.exp<"u"&&!r.ignoreExpiration){if(typeof d.exp!="number")return s(new F("invalid exp value"));if(i>=d.exp+(r.clockTolerance||0))return s(new Bs("jwt expired",new Date(d.exp*1e3)))}if(r.audience){const S=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(d.aud)?d.aud:[d.aud]).some(function(x){return S.some(function(G){return G instanceof RegExp?G.test(x):G===x})}))return s(new F("jwt audience invalid. expected: "+S.join(" or ")))}if(r.issuer&&(typeof r.issuer=="string"&&d.iss!==r.issuer||Array.isArray(r.issuer)&&r.issuer.indexOf(d.iss)===-1))return s(new F("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&d.sub!==r.subject)return s(new F("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&d.jti!==r.jwtid)return s(new F("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&d.nonce!==r.nonce)return s(new F("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if(typeof d.iat!="number")return s(new F("iat required when maxAge is specified"));const S=Qy(r.maxAge,d.iat);if(typeof S>"u")return s(new F('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(i>=S+(r.clockTolerance||0))return s(new Bs("maxAge exceeded",new Date(S*1e3)))}if(r.complete===!0){const S=o.signature;return s(null,{header:l,payload:d,signature:S})}return s(null,d)})},Gs=1/0,no=9007199254740991,u0=17976931348623157e292,zs=0/0,c0="[object Arguments]",f0="[object Function]",d0="[object GeneratorFunction]",h0="[object String]",m0="[object Symbol]",p0=/^\s+|\s+$/g,y0=/^[-+]0x[0-9a-f]+$/i,S0=/^0b[01]+$/i,g0=/^0o[0-7]+$/i,w0=/^(?:0|[1-9]\d*)$/,_0=parseInt;function E0(e,t){for(var r=-1,n=e?e.length:0,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}function b0(e,t,r,n){for(var s=e.length,i=r+(n?1:-1);n?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function v0(e,t,r){if(t!==t)return b0(e,O0,r);for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function O0(e){return e!==e}function T0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function R0(e,t){return E0(t,function(r){return e[r]})}function $0(e,t){return function(r){return e(t(r))}}var Dr=Object.prototype,Zn=Dr.hasOwnProperty,Nr=Dr.toString,D0=Dr.propertyIsEnumerable,N0=$0(Object.keys,Object),A0=Math.max;function k0(e,t){var r=so(e)||x0(e)?T0(e.length,String):[],n=r.length,s=!!n;for(var i in e)(t||Zn.call(e,i))&&!(s&&(i=="length"||P0(i,n)))&&r.push(i);return r}function I0(e){if(!M0(e))return N0(e);var t=[];for(var r in Object(e))Zn.call(e,r)&&r!="constructor"&&t.push(r);return t}function P0(e,t){return t=t??no,!!t&&(typeof e=="number"||w0.test(e))&&e>-1&&e%1==0&&e<t}function M0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dr;return e===r}function L0(e,t,r,n){e=Qn(e)?e:G0(e),r=r&&!n?H0(r):0;var s=e.length;return r<0&&(r=A0(s+r,0)),j0(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&v0(e,t,r)>-1}function x0(e){return Y0(e)&&Zn.call(e,"callee")&&(!D0.call(e,"callee")||Nr.call(e)==c0)}var so=Array.isArray;function Qn(e){return e!=null&&F0(e.length)&&!C0(e)}function Y0(e){return es(e)&&Qn(e)}function C0(e){var t=cn(e)?Nr.call(e):"";return t==f0||t==d0}function F0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=no}function cn(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function es(e){return!!e&&typeof e=="object"}function j0(e){return typeof e=="string"||!so(e)&&es(e)&&Nr.call(e)==h0}function U0(e){return typeof e=="symbol"||es(e)&&Nr.call(e)==m0}function W0(e){if(!e)return e===0?e:0;if(e=V0(e),e===Gs||e===-Gs){var t=e<0?-1:1;return t*u0}return e===e?e:0}function H0(e){var t=W0(e),r=t%1;return t===t?r?t-r:t:0}function V0(e){if(typeof e=="number")return e;if(U0(e))return zs;if(cn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(p0,"");var r=S0.test(e);return r||g0.test(e)?_0(e.slice(2),r?2:8):y0.test(e)?zs:+e}function B0(e){return Qn(e)?k0(e):I0(e)}function G0(e){return e?R0(e,B0(e)):[]}var z0=L0,q0="[object Boolean]",J0=Object.prototype,X0=J0.toString;function K0(e){return e===!0||e===!1||Z0(e)&&X0.call(e)==q0}function Z0(e){return!!e&&typeof e=="object"}var Q0=K0,qs=1/0,eS=17976931348623157e292,Js=0/0,tS="[object Symbol]",rS=/^\s+|\s+$/g,nS=/^[-+]0x[0-9a-f]+$/i,sS=/^0b[01]+$/i,iS=/^0o[0-7]+$/i,aS=parseInt,oS=Object.prototype,lS=oS.toString;function uS(e){return typeof e=="number"&&e==hS(e)}function Xs(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cS(e){return!!e&&typeof e=="object"}function fS(e){return typeof e=="symbol"||cS(e)&&lS.call(e)==tS}function dS(e){if(!e)return e===0?e:0;if(e=mS(e),e===qs||e===-qs){var t=e<0?-1:1;return t*eS}return e===e?e:0}function hS(e){var t=dS(e),r=t%1;return t===t?r?t-r:t:0}function mS(e){if(typeof e=="number")return e;if(fS(e))return Js;if(Xs(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xs(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(rS,"");var r=sS.test(e);return r||iS.test(e)?aS(e.slice(2),r?2:8):nS.test(e)?Js:+e}var pS=uS,yS="[object Number]",SS=Object.prototype,gS=SS.toString;function wS(e){return!!e&&typeof e=="object"}function _S(e){return typeof e=="number"||wS(e)&&gS.call(e)==yS}var ES=_S,bS="[object Object]";function vS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function OS(e,t){return function(r){return e(t(r))}}var TS=Function.prototype,io=Object.prototype,ao=TS.toString,RS=io.hasOwnProperty,$S=ao.call(Object),DS=io.toString,NS=OS(Object.getPrototypeOf,Object);function AS(e){return!!e&&typeof e=="object"}function kS(e){if(!AS(e)||DS.call(e)!=bS||vS(e))return!1;var t=NS(e);if(t===null)return!0;var r=RS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ao.call(r)==$S}var IS=kS,PS="[object String]",MS=Object.prototype,LS=MS.toString,xS=Array.isArray;function YS(e){return!!e&&typeof e=="object"}function CS(e){return typeof e=="string"||!xS(e)&&YS(e)&&LS.call(e)==PS}var FS=CS,jS="Expected a function",Ks=1/0,US=17976931348623157e292,Zs=0/0,WS="[object Symbol]",HS=/^\s+|\s+$/g,VS=/^[-+]0x[0-9a-f]+$/i,BS=/^0b[01]+$/i,GS=/^0o[0-7]+$/i,zS=parseInt,qS=Object.prototype,JS=qS.toString;function XS(e,t){var r;if(typeof t!="function")throw new TypeError(jS);return e=tg(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function KS(e){return XS(2,e)}function Qs(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ZS(e){return!!e&&typeof e=="object"}function QS(e){return typeof e=="symbol"||ZS(e)&&JS.call(e)==WS}function eg(e){if(!e)return e===0?e:0;if(e=rg(e),e===Ks||e===-Ks){var t=e<0?-1:1;return t*US}return e===e?e:0}function tg(e){var t=eg(e),r=t%1;return t===t?r?t-r:t:0}function rg(e){if(typeof e=="number")return e;if(QS(e))return Zs;if(Qs(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qs(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(HS,"");var r=BS.test(e);return r||GS.test(e)?zS(e.slice(2),r?2:8):VS.test(e)?Zs:+e}var ng=KS;const ei=za,sg=ro,ig=to,ti=Ee,ag=z0,xt=Q0,ri=pS,Gr=ES,oo=IS,Pe=FS,og=ng,{KeyObject:lg,createSecretKey:ug,createPrivateKey:cg}=Q,lo=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];sg&&lo.splice(3,0,"PS256","PS384","PS512");const fg={expiresIn:{isValid:function(e){return ri(e)||Pe(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return ri(e)||Pe(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return Pe(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:ag.bind(null,lo),message:'"algorithm" must be a valid string enum value'},header:{isValid:oo,message:'"header" must be an object'},encoding:{isValid:Pe,message:'"encoding" must be a string'},issuer:{isValid:Pe,message:'"issuer" must be a string'},subject:{isValid:Pe,message:'"subject" must be a string'},jwtid:{isValid:Pe,message:'"jwtid" must be a string'},noTimestamp:{isValid:xt,message:'"noTimestamp" must be a boolean'},keyid:{isValid:Pe,message:'"keyid" must be a string'},mutatePayload:{isValid:xt,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:xt,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:xt,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},dg={iat:{isValid:Gr,message:'"iat" should be a number of seconds'},exp:{isValid:Gr,message:'"exp" should be a number of seconds'},nbf:{isValid:Gr,message:'"nbf" should be a number of seconds'}};function uo(e,t,r,n){if(!oo(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach(function(s){const i=e[s];if(!i){if(!t)throw new Error('"'+s+'" is not allowed in "'+n+'"');return}if(!i.isValid(r[s]))throw new Error(i.message)})}function hg(e){return uo(fg,!1,e,"options")}function mg(e){return uo(dg,!0,e,"payload")}const ni={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},pg=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];var yg=function(e,t,r,n){typeof r=="function"?(n=r,r={}):r=r||{};const s=typeof e=="object"&&!Buffer.isBuffer(e),i=Object.assign({alg:r.algorithm||"HS256",typ:s?"JWT":void 0,kid:r.keyid},r.header);function a(u){if(n)return n(u);throw u}if(!t&&r.algorithm!=="none")return a(new Error("secretOrPrivateKey must have a value"));if(t!=null&&!(t instanceof lg))try{t=cg(t)}catch{try{t=ug(typeof t=="string"?Buffer.from(t):t)}catch{return a(new Error("secretOrPrivateKey is not valid key material"))}}if(i.alg.startsWith("HS")&&t.type!=="secret")return a(new Error(`secretOrPrivateKey must be a symmetric key when using ${i.alg}`));if(/^(?:RS|PS|ES)/.test(i.alg)){if(t.type!=="private")return a(new Error(`secretOrPrivateKey must be an asymmetric key when using ${i.alg}`));if(!r.allowInsecureKeySizes&&!i.alg.startsWith("ES")&&t.asymmetricKeyDetails!==void 0&&t.asymmetricKeyDetails.modulusLength<2048)return a(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`))}if(typeof e>"u")return a(new Error("payload is required"));if(s){try{mg(e)}catch(u){return a(u)}r.mutatePayload||(e=Object.assign({},e))}else{const u=pg.filter(function(f){return typeof r[f]<"u"});if(u.length>0)return a(new Error("invalid "+u.join(",")+" option for "+typeof e+" payload"))}if(typeof e.exp<"u"&&typeof r.expiresIn<"u")return a(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof e.nbf<"u"&&typeof r.notBefore<"u")return a(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{hg(r)}catch(u){return a(u)}if(!r.allowInvalidAsymmetricKeyTypes)try{ig(i.alg,t)}catch(u){return a(u)}const o=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:s&&(e.iat=o),typeof r.notBefore<"u"){try{e.nbf=ei(r.notBefore,o)}catch(u){return a(u)}if(typeof e.nbf>"u")return a(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof r.expiresIn<"u"&&typeof e=="object"){try{e.exp=ei(r.expiresIn,o)}catch(u){return a(u)}if(typeof e.exp>"u")return a(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(ni).forEach(function(u){const f=ni[u];if(typeof r[u]<"u"){if(typeof e[f]<"u")return a(new Error('Bad "options.'+u+'" option. The payload already has an "'+f+'" property.'));e[f]=r[u]}});const l=r.encoding||"utf8";if(typeof n=="function")n=n&&og(n),ti.createSign({header:i,privateKey:t,payload:e,encoding:l}).once("error",n).once("done",function(u){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&u.length<256)return n(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`));n(null,u)});else{let u=ti.sign({header:i,payload:e,secret:t,encoding:l});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(i.alg)&&u.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${i.alg}`);return u}},Sg={decode:Wa,verify:l0,sign:yg,JsonWebTokenError:br,NotBeforeError:Va,TokenExpiredError:Ga};const si=Xd(Sg);class gg{constructor(t,r){kr(this,"secretPrivateKey","secretPrivateKey");kr(this,"daysToExpire",30);this.secretPrivateKey=t,this.daysToExpire=r}createAccessToken(t,r){return si.sign({[t]:r},this.secretPrivateKey,{expiresIn:60*60*24*this.daysToExpire})}verifyAccessToken(t){return si.verify(t,this.secretPrivateKey)}}const wg=Object.freeze(Object.defineProperty({__proto__:null,Token:gg},Symbol.toStringTag,{value:"Module"}));function _g(e){if(!e)return!1;let t=e;const r=["http://","https://"];for(const n of r)if(e.startsWith(n)){t=e.replace(n,"");break}return t=t.replace(/:(\d*)$/,""),window.location.href.includes(t)}const Eg=Object.freeze(Object.defineProperty({__proto__:null,isCurrentUrl:_g},Symbol.toStringTag,{value:"Module"}));exports.animationHelpers=bo;exports.coinHelpers=Vl;exports.datetimeHelpers=Gl;exports.numberHelpers=Ul;exports.objectHelpers=Jd;exports.tokenHelpers=wg;exports.urlHelpers=Eg;
|